提交 e10d3ea8 作者: han

根据用户id查询用户手机号

上级 de5b6de9
流水线 #7737 已通过 于阶段
in 2 分 21 秒
......@@ -210,7 +210,7 @@ public class PilotCertificationController extends BaseController {
@ApiOperation(value = "查询飞手的手机号")
@ApiResponses({@ApiResponse(code = 200, message = "OK", response = Integer.class)})
@GetMapping("/getPilotApplyPhone")
public String getPilotApplyPhone(@RequestParam Integer pilotId){
return certificationService.getPilotApplyPhone(pilotId);
public String getPilotApplyPhone(@RequestParam Integer userAccountId){
return certificationService.getPilotApplyPhone(userAccountId);
}
}
......@@ -156,6 +156,8 @@ public interface PilotCertificationDao {
*/
String getPilotApplyPhone(Integer pilotId);
String getUserPhone(Integer userAccountId);
/**
* 通过通过飞手ID查询飞手的团队信息
*/
......
......@@ -65,7 +65,7 @@ public interface PilotCertificationService {
*/
Integer selectPilotTeam(Integer pilotUserId);
/**
* 通过飞手id查询飞手的手机号
* 通过用户id查询用户的手机号
*/
String getPilotApplyPhone(Integer pilotId);
String getPilotApplyPhone(Integer userAccountId);
}
......@@ -697,8 +697,8 @@ public class PilotCertificationServiceImpl implements PilotCertificationService
}
@Override
public String getPilotApplyPhone(Integer pilotId) {
return certificationDao.getPilotApplyPhone(pilotId);
public String getPilotApplyPhone(Integer userAccountId) {
return certificationDao.getUserPhone(userAccountId);
}
public JSONObject spellMsg(String name, String result){
......
......@@ -538,5 +538,10 @@
JOIN company_member cm ON cb.company_info_id = cm.company_info_id
WHERE p.pilot_user_id = #{pilotUserId};
</select>
<select id="getUserPhone" resultType="java.lang.String">
select phone_num
from user_account
where id = #{userAccountId}
</select>
</mapper>
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论