Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
cms
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
iuav
cms
Commits
4f8164e5
提交
4f8164e5
authored
12月 26, 2023
作者:
han
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
获取飞手团队管理员ID以及飞手手机号相关接口
上级
c5302c8c
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
29 行增加
和
14 行删除
+29
-14
PilotCertificationController.java
...r/controller/dronepilot/PilotCertificationController.java
+12
-6
PilotCertificationDao.java
...m/mmc/iuav/user/dao/dronepilot/PilotCertificationDao.java
+1
-1
PilotCertificationService.java
...av/user/service/dronepilot/PilotCertificationService.java
+6
-2
PilotCertificationServiceImpl.java
...ervice/dronepilot/impl/PilotCertificationServiceImpl.java
+7
-2
PilotCertificationDao.xml
...ain/resources/mapper/dronepilot/PilotCertificationDao.xml
+3
-3
没有找到文件。
csm-service/cms-service-user/src/main/java/com/mmc/iuav/user/controller/dronepilot/PilotCertificationController.java
浏览文件 @
4f8164e5
...
...
@@ -200,11 +200,17 @@ public class PilotCertificationController extends BaseController {
return
certificationService
.
selectPilotIdList
(
this
.
getUserLoginInfoFromRedis
(
request
).
getUserAccountId
());
}
@ApiOperation
(
value
=
"查询飞手的团队信息(团队管理员的ID)"
)
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
TeamMessageDO
.
class
)})
@GetMapping
(
"/selectPilotTeam"
)
public
TeamMessageDO
selectPilotTeam
(
@RequestParam
Integer
pilotId
){
return
certificationService
.
selectPilotTeam
(
pilotId
);
@ApiOperation
(
value
=
"查询飞手的团队管理员的ID"
)
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
Integer
.
class
)})
@GetMapping
(
"/selectPilotTeamManagerId"
)
public
Integer
selectPilotTeamManagerId
(
@RequestParam
Integer
pilotUserId
){
return
certificationService
.
selectPilotTeam
(
pilotUserId
);
}
;
@ApiOperation
(
value
=
"查询飞手的手机号"
)
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
Integer
.
class
)})
@GetMapping
(
"/getPilotApplyPhone"
)
public
String
getPilotApplyPhone
(
@RequestParam
Integer
pilotId
){
return
certificationService
.
getPilotApplyPhone
(
pilotId
);
}
}
csm-service/cms-service-user/src/main/java/com/mmc/iuav/user/dao/dronepilot/PilotCertificationDao.java
浏览文件 @
4f8164e5
...
...
@@ -159,5 +159,5 @@ public interface PilotCertificationDao {
/**
* 通过通过飞手ID查询飞手的团队信息
*/
TeamMessageDO
selectPilotTeam
(
Integer
pilot
Id
);
Integer
selectPilotTeam
(
Integer
pilotUser
Id
);
}
csm-service/cms-service-user/src/main/java/com/mmc/iuav/user/service/dronepilot/PilotCertificationService.java
浏览文件 @
4f8164e5
...
...
@@ -61,7 +61,11 @@ public interface PilotCertificationService {
List
<
Integer
>
selectPilotIdList
(
Integer
backUserId
);
/**
* 通过通过飞手ID查询飞手的团队信息
* 通过通过飞手
用户
ID查询飞手的团队信息
*/
TeamMessageDO
selectPilotTeam
(
Integer
pilotId
);
Integer
selectPilotTeam
(
Integer
pilotUserId
);
/**
* 通过飞手id查询飞手的手机号
*/
String
getPilotApplyPhone
(
Integer
pilotId
);
}
csm-service/cms-service-user/src/main/java/com/mmc/iuav/user/service/dronepilot/impl/PilotCertificationServiceImpl.java
浏览文件 @
4f8164e5
...
...
@@ -670,8 +670,13 @@ public class PilotCertificationServiceImpl implements PilotCertificationService
}
@Override
public
TeamMessageDO
selectPilotTeam
(
Integer
pilotId
)
{
return
certificationDao
.
selectPilotTeam
(
pilotId
);
public
Integer
selectPilotTeam
(
Integer
pilotUserId
)
{
return
certificationDao
.
selectPilotTeam
(
pilotUserId
);
}
@Override
public
String
getPilotApplyPhone
(
Integer
pilotId
)
{
return
certificationDao
.
getPilotApplyPhone
(
pilotId
);
}
public
JSONObject
spellMsg
(
String
name
,
String
result
){
...
...
csm-service/cms-service-user/src/main/resources/mapper/dronepilot/PilotCertificationDao.xml
浏览文件 @
4f8164e5
...
...
@@ -524,12 +524,12 @@
select phone_num from pilot_certification pc left join user_account ua on pc.user_account_id = ua.id
where pc.id = #{pilotId}
</select>
<select
id=
"selectPilotTeam"
resultType=
"
com.mmc.iuav.user.model.dto.TeamMessageDO
"
>
SELECT
p.id AS pilotId, p.pilot_user_id AS pilotUserId, cm.user_account_id AS pilotMessageI
d
<select
id=
"selectPilotTeam"
resultType=
"
java.lang.Integer
"
>
SELECT
cm.user_account_i
d
FROM pilot_join_team p
JOIN company_back_user cb ON p.back_user_id = cb.back_user_account_id
JOIN company_member cm ON cb.company_info_id = cm.company_info_id
WHERE p.
id = #{pilot
Id};
WHERE p.
pilot_user_id = #{pilotUser
Id};
</select>
</mapper>
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论