Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
cms
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
iuav
cms
Commits
7cec5b9a
提交
7cec5b9a
authored
8月 02, 2023
作者:
张小凤
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
PilotCertificationController(add)
上级
0e4e1dc1
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
57 行增加
和
2 行删除
+57
-2
PilotCertificationController.java
...r/controller/dronepilot/PilotCertificationController.java
+9
-2
PilotCertificationDao.java
...m/mmc/iuav/user/dao/dronepilot/PilotCertificationDao.java
+2
-0
PilotCertificationService.java
...av/user/service/dronepilot/PilotCertificationService.java
+2
-0
PilotCertificationServiceImpl.java
...ervice/dronepilot/impl/PilotCertificationServiceImpl.java
+17
-0
PilotCertificationDao.xml
...ain/resources/mapper/dronepilot/PilotCertificationDao.xml
+27
-0
没有找到文件。
csm-service/cms-service-user/src/main/java/com/mmc/iuav/user/controller/dronepilot/PilotCertificationController.java
浏览文件 @
7cec5b9a
...
...
@@ -68,11 +68,18 @@ public class PilotCertificationController extends BaseController {
@ApiOperation
(
value
=
"小程序——详情————飞手执照及能力认证"
)
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
PilotCertificationDTO
.
class
)})
@
Pos
tMapping
(
"/detailPilot"
)
@
Ge
tMapping
(
"/detailPilot"
)
public
ResultBody
<
PilotCertificationDTO
>
detailPilot
(
HttpServletRequest
request
,
@RequestParam
(
value
=
"id"
,
required
=
true
)
Integer
id
)
{
return
ResultBody
.
success
(
certificationService
.
detailPilot
(
id
));
}
@ApiOperation
(
value
=
"小程序——用户详情————飞手执照及能力认证"
)
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
PilotCertificationDTO
.
class
)})
@GetMapping
(
"/userDetailPilot"
)
public
ResultBody
<
PilotCertificationDTO
>
userDetailPilot
(
HttpServletRequest
request
)
{
return
ResultBody
.
success
(
certificationService
.
userDetailPilot
(
this
.
getUserLoginInfoFromRedis
(
request
).
getUserAccountId
()));
}
@ApiOperation
(
value
=
"后台管理——列表————飞手执照及能力认证"
)
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
PilotCertificationDTO
.
class
)})
...
...
@@ -84,7 +91,7 @@ public class PilotCertificationController extends BaseController {
@ApiOperation
(
value
=
"后台管理——详情————飞手执照及能力认证"
)
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
PilotCertificationDTO
.
class
)})
@
Pos
tMapping
(
"/backDetailPilot"
)
@
Ge
tMapping
(
"/backDetailPilot"
)
public
ResultBody
<
PilotCertificationDTO
>
backDetailPilot
(
HttpServletRequest
request
,
@RequestParam
(
value
=
"id"
,
required
=
true
)
Integer
id
)
{
return
ResultBody
.
success
(
certificationService
.
detailPilot
(
id
));
}
...
...
csm-service/cms-service-user/src/main/java/com/mmc/iuav/user/dao/dronepilot/PilotCertificationDao.java
浏览文件 @
7cec5b9a
...
...
@@ -44,6 +44,8 @@ public interface PilotCertificationDao {
PilotCertificationDO
detailPilot
(
Integer
id
);
PilotCertificationDO
userDetailPilot
(
Integer
userAccountId
);
void
updateRemark
(
PilotRemarkQO
param
);
void
updateAuditStatus
(
PilotAuditStatusQO
param
);
...
...
csm-service/cms-service-user/src/main/java/com/mmc/iuav/user/service/dronepilot/PilotCertificationService.java
浏览文件 @
7cec5b9a
...
...
@@ -29,6 +29,8 @@ public interface PilotCertificationService {
PilotCertificationDTO
detailPilot
(
Integer
id
);
PilotCertificationDTO
userDetailPilot
(
Integer
userAccountId
);
PageResult
backListPilot
(
PilotCertificationQO
param
,
LoginSuccessDTO
userLoginInfoFromRedis
);
...
...
csm-service/cms-service-user/src/main/java/com/mmc/iuav/user/service/dronepilot/impl/PilotCertificationServiceImpl.java
浏览文件 @
7cec5b9a
...
...
@@ -145,6 +145,23 @@ public class PilotCertificationServiceImpl implements PilotCertificationService
}
@Override
public
PilotCertificationDTO
userDetailPilot
(
Integer
userAccountId
)
{
PilotCertificationDO
certificationDO
=
certificationDao
.
userDetailPilot
(
userAccountId
);
if
(
certificationDO
==
null
)
{
return
null
;
}
int
yearsOfWorking
=
0
;
yearsOfWorking
=
getYearsOfWorking
(
certificationDO
.
getTimeOfApplication
());
Integer
Working
=
certificationDO
.
getYearsOfWorking
();
yearsOfWorking
=
yearsOfWorking
+
Working
;
certificationDO
.
setYearsOfWorking
(
yearsOfWorking
);
certificationDO
.
setAge
(
getAgeByBirth
(
certificationDO
.
getBirthday
()));
PilotCertificationDTO
pilotCertificationDTO
=
certificationDO
.
buildPilotCertificationDTO
();
return
pilotCertificationDTO
;
}
@Override
public
PageResult
backListPilot
(
PilotCertificationQO
param
,
LoginSuccessDTO
userLoginInfoFromRedis
)
{
Integer
pageNo
=
param
.
getPageNo
();
param
.
buildCurrentPage
();
...
...
csm-service/cms-service-user/src/main/resources/mapper/dronepilot/PilotCertificationDao.xml
浏览文件 @
7cec5b9a
...
...
@@ -207,6 +207,33 @@
WHERE pc.id = #{id}
</select>
<select
id=
"userDetailPilot"
resultMap=
"pilotList"
>
SELECT pc.id,
pc.license_type,
pc.license_number,
pc.license_url,
pc.area_number,
pc.years_of_working,
pc.ability_url,
pc.individual_resume,
pc.audit_status,
pc.user_account_id,
pc.time_of_application,
pc.remark,
pc.resident_city,
pc.create_time,
pc.update_time,
rna.user_name,
rna.birthday,
rna.sex,
ua.phone_num
FROM pilot_certification pc
LEFT JOIN real_name_auth rna ON pc.user_account_id = rna.user_account_id
LEFT JOIN user_account ua ON pc.user_account_id = ua.id
WHERE pc.user_account_id = #{userAccountId}
</select>
<update
id=
"updateRemark"
parameterType=
"com.mmc.iuav.user.model.qo.dronepilot.PilotRemarkQO"
>
UPDATE pilot_certification
<set>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论