Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
cms-ci-test
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
test-ci
cms-ci-test
Commits
adcd94f8
提交
adcd94f8
authored
11月 03, 2023
作者:
恶龙咆哮
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
飞手团队删除飞手
上级
23f16e93
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
29 行增加
和
2 行删除
+29
-2
PilotCertificationController.java
...r/controller/dronepilot/PilotCertificationController.java
+10
-2
PilotCertificationDao.java
...m/mmc/iuav/user/dao/dronepilot/PilotCertificationDao.java
+7
-0
PilotCertificationService.java
...av/user/service/dronepilot/PilotCertificationService.java
+2
-0
PilotCertificationServiceImpl.java
...ervice/dronepilot/impl/PilotCertificationServiceImpl.java
+6
-0
PilotCertificationDao.xml
...ain/resources/mapper/dronepilot/PilotCertificationDao.xml
+4
-0
没有找到文件。
csm-service/cms-service-user/src/main/java/com/mmc/iuav/user/controller/dronepilot/PilotCertificationController.java
浏览文件 @
adcd94f8
...
@@ -151,7 +151,7 @@ public class PilotCertificationController extends BaseController {
...
@@ -151,7 +151,7 @@ public class PilotCertificationController extends BaseController {
@ApiOperation
(
value
=
"后台-飞手团队添加飞手"
)
@ApiOperation
(
value
=
"后台-飞手团队添加飞手"
)
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
ResultBody
.
class
)})
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
ResultBody
.
class
)})
@
Pos
tMapping
(
"/insertPilotJoinTeam"
)
@
Ge
tMapping
(
"/insertPilotJoinTeam"
)
public
ResultBody
insertPilotJoinTeam
(
HttpServletRequest
request
,
@ApiParam
(
value
=
"要添加的飞手id"
,
required
=
true
)
@RequestParam
Integer
pilotId
)
{
public
ResultBody
insertPilotJoinTeam
(
HttpServletRequest
request
,
@ApiParam
(
value
=
"要添加的飞手id"
,
required
=
true
)
@RequestParam
Integer
pilotId
)
{
return
certificationService
.
insertPilotJoinTeam
(
pilotId
,
this
.
getUserLoginInfoFromRedis
(
request
).
getUserAccountId
());
return
certificationService
.
insertPilotJoinTeam
(
pilotId
,
this
.
getUserLoginInfoFromRedis
(
request
).
getUserAccountId
());
}
}
...
@@ -173,7 +173,7 @@ public class PilotCertificationController extends BaseController {
...
@@ -173,7 +173,7 @@ public class PilotCertificationController extends BaseController {
@ApiOperation
(
value
=
"小程序-飞手是否加入团队"
)
@ApiOperation
(
value
=
"小程序-飞手是否加入团队"
)
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
ResultBody
.
class
)})
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
ResultBody
.
class
)})
@
Pos
tMapping
(
"/changePilotStatus"
)
@
Ge
tMapping
(
"/changePilotStatus"
)
public
ResultBody
updatePilotStatus
(
HttpServletRequest
request
,
@ApiParam
(
value
=
"是否加入飞手团队 同意 1 ,拒绝 2"
,
required
=
true
)
@RequestParam
Integer
status
)
{
public
ResultBody
updatePilotStatus
(
HttpServletRequest
request
,
@ApiParam
(
value
=
"是否加入飞手团队 同意 1 ,拒绝 2"
,
required
=
true
)
@RequestParam
Integer
status
)
{
return
certificationService
.
updatePilotStatus
(
this
.
getUserLoginInfoFromRedis
(
request
).
getUserAccountId
(),
status
);
return
certificationService
.
updatePilotStatus
(
this
.
getUserLoginInfoFromRedis
(
request
).
getUserAccountId
(),
status
);
}
}
...
@@ -184,4 +184,12 @@ public class PilotCertificationController extends BaseController {
...
@@ -184,4 +184,12 @@ public class PilotCertificationController extends BaseController {
public
ResultBody
<
CompanyInfoVO
>
selectCompanyInfoByPilotId
(
HttpServletRequest
request
)
{
public
ResultBody
<
CompanyInfoVO
>
selectCompanyInfoByPilotId
(
HttpServletRequest
request
)
{
return
certificationService
.
selectCompanyInfoByPilotId
(
this
.
getUserLoginInfoFromRedis
(
request
).
getUserAccountId
());
return
certificationService
.
selectCompanyInfoByPilotId
(
this
.
getUserLoginInfoFromRedis
(
request
).
getUserAccountId
());
}
}
@ApiOperation
(
value
=
"后台-飞手团队踢人"
)
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
ResultBody
.
class
)})
@GetMapping
(
"/deletePilotFromTeam"
)
public
ResultBody
deletePilotFromTeam
(
@ApiParam
(
value
=
"把飞手踢出飞手团队"
,
required
=
true
)
@RequestParam
Integer
pilotId
)
{
return
certificationService
.
deletePilotFromTeam
(
pilotId
);
}
}
}
csm-service/cms-service-user/src/main/java/com/mmc/iuav/user/dao/dronepilot/PilotCertificationDao.java
浏览文件 @
adcd94f8
...
@@ -111,4 +111,11 @@ public interface PilotCertificationDao {
...
@@ -111,4 +111,11 @@ public interface PilotCertificationDao {
* @return {@link CompanyInfoDO}
* @return {@link CompanyInfoDO}
*/
*/
CompanyInfoDO
selectCompanyInfoByPilotId
(
Integer
pilotId
);
CompanyInfoDO
selectCompanyInfoByPilotId
(
Integer
pilotId
);
/**
* 根据飞手的id删除飞手绑定的飞手团队
* @param pilotId 飞手的user_id
*/
void
deletePilotFromTeam
(
Integer
pilotId
);
}
}
csm-service/cms-service-user/src/main/java/com/mmc/iuav/user/service/dronepilot/PilotCertificationService.java
浏览文件 @
adcd94f8
...
@@ -53,4 +53,6 @@ public interface PilotCertificationService {
...
@@ -53,4 +53,6 @@ public interface PilotCertificationService {
ResultBody
updatePilotStatus
(
Integer
userId
,
Integer
pilotStatus
);
ResultBody
updatePilotStatus
(
Integer
userId
,
Integer
pilotStatus
);
ResultBody
selectCompanyInfoByPilotId
(
Integer
pilotId
);
ResultBody
selectCompanyInfoByPilotId
(
Integer
pilotId
);
ResultBody
deletePilotFromTeam
(
Integer
pilotId
);
}
}
csm-service/cms-service-user/src/main/java/com/mmc/iuav/user/service/dronepilot/impl/PilotCertificationServiceImpl.java
浏览文件 @
adcd94f8
...
@@ -605,4 +605,10 @@ public class PilotCertificationServiceImpl implements PilotCertificationService
...
@@ -605,4 +605,10 @@ public class PilotCertificationServiceImpl implements PilotCertificationService
CompanyInfoVO
companyInfoVO
=
companyInfoDO
.
buildCompanyInfoVO
();
CompanyInfoVO
companyInfoVO
=
companyInfoDO
.
buildCompanyInfoVO
();
return
ResultBody
.
success
(
companyInfoVO
);
return
ResultBody
.
success
(
companyInfoVO
);
}
}
@Override
public
ResultBody
deletePilotFromTeam
(
Integer
pilotId
)
{
certificationDao
.
deletePilotFromTeam
(
pilotId
);
return
ResultBody
.
success
();
}
}
}
csm-service/cms-service-user/src/main/resources/mapper/dronepilot/PilotCertificationDao.xml
浏览文件 @
adcd94f8
...
@@ -93,6 +93,10 @@
...
@@ -93,6 +93,10 @@
from pilot_ability_certification
from pilot_ability_certification
where pilot_certification_id = #{id}
where pilot_certification_id = #{id}
</delete>
</delete>
<delete
id=
"deletePilotFromTeam"
>
delete from pilot_join_team
where pilot_user_id = #{pilotId}
</delete>
<update
id=
"updatePilot"
parameterType=
"com.mmc.iuav.user.entity.dronepilot.PilotCertificationDO"
>
<update
id=
"updatePilot"
parameterType=
"com.mmc.iuav.user.entity.dronepilot.PilotCertificationDO"
>
UPDATE pilot_certification
UPDATE pilot_certification
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论