Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
cms-ci-test
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
test-ci
cms-ci-test
Commits
7e3a2a0e
提交
7e3a2a0e
authored
11月 06, 2023
作者:
恶龙咆哮
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
飞手列表添加字段属于哪个飞手团队
上级
0122da71
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
35 行增加
和
0 行删除
+35
-0
PilotCertificationDTO.java
...iuav/user/model/dto/dronepilot/PilotCertificationDTO.java
+2
-0
PilotCertificationDao.java
...m/mmc/iuav/user/dao/dronepilot/PilotCertificationDao.java
+15
-0
PilotCertificationServiceImpl.java
...ervice/dronepilot/impl/PilotCertificationServiceImpl.java
+9
-0
PilotCertificationDao.xml
...ain/resources/mapper/dronepilot/PilotCertificationDao.xml
+9
-0
没有找到文件。
cms-common/cms-common-model/src/main/java/com/mmc/iuav/user/model/dto/dronepilot/PilotCertificationDTO.java
浏览文件 @
7e3a2a0e
...
...
@@ -109,4 +109,6 @@ public class PilotCertificationDTO {
private
String
userImg
;
@ApiModelProperty
(
value
=
"关注状态"
)
private
Boolean
status
;
@ApiModelProperty
(
value
=
"飞手团队名称"
)
private
String
flyingTeam
;
}
csm-service/cms-service-user/src/main/java/com/mmc/iuav/user/dao/dronepilot/PilotCertificationDao.java
浏览文件 @
7e3a2a0e
...
...
@@ -39,6 +39,21 @@ public interface PilotCertificationDao {
List
<
PilotCertificationDO
>
pilotList
(
PilotCertificationQO
param
);
/**
* 查询这个用户是否绑定飞手团队
* @param userId 飞手id
* @return int 1 说明绑定了 0 表示没有绑定
*/
int
selectCompanyByUserId
(
Integer
userId
);
/**
* 根据飞手id查询飞手团队名称
* @param userId 飞手id
* @return {@link String}
*/
String
selectCompanyNameByFlyingUserId
(
Integer
userId
);
Integer
getPilotAuditSum
(
Integer
status
);
List
<
PilotAbilityVO
>
selectAbilityList
(
Integer
pilotCertificationId
);
...
...
csm-service/cms-service-user/src/main/java/com/mmc/iuav/user/service/dronepilot/impl/PilotCertificationServiceImpl.java
浏览文件 @
7e3a2a0e
...
...
@@ -239,6 +239,15 @@ public class PilotCertificationServiceImpl implements PilotCertificationService
pilotList
=
pilotList
.
stream
().
filter
(
t
->
t
.
getPilotAbility
()
!=
null
).
collect
(
Collectors
.
toList
());
}
List
<
PilotCertificationDTO
>
collect
=
pilotList
.
stream
().
map
(
PilotCertificationDO:
:
buildPilotCertificationDTO
).
collect
(
Collectors
.
toList
());
for
(
PilotCertificationDTO
certificationDTO:
collect
)
{
Integer
userAccountId
=
certificationDTO
.
getUserAccountId
();
if
(
certificationDao
.
selectCompanyByUserId
(
userAccountId
)
<
1
)
{
continue
;
}
else
{
String
flyingTeamName
=
certificationDao
.
selectCompanyNameByFlyingUserId
(
userAccountId
);
certificationDTO
.
setFlyingTeam
(
flyingTeamName
);
}
}
collect
=
collect
.
stream
().
skip
((
pageNo
-
1
)
*
param
.
getPageSize
()).
limit
(
param
.
getPageSize
()).
collect
(
Collectors
.
toList
());
PageResult
pageResult
=
PageResult
.
buildPage
(
pageNo
,
param
.
getPageSize
(),
pilotList
.
size
(),
collect
);
...
...
csm-service/cms-service-user/src/main/resources/mapper/dronepilot/PilotCertificationDao.xml
浏览文件 @
7e3a2a0e
...
...
@@ -492,4 +492,13 @@
INNER JOIN pilot_join_team pjt on pjt.back_user_id = cbu.back_user_account_id
WHERE pjt.pilot_user_id = #{pilotId} and ci.is_deleted = 0 and pjt.pilot_status = #{pilotStatus}
</select>
<select
id=
"selectCompanyByUserId"
resultType=
"java.lang.Integer"
>
select count(id) from pilot_join_team where pilot_user_id = #{userId}
</select>
<select
id=
"selectCompanyNameByFlyingUserId"
resultType=
"java.lang.String"
>
select company_name from company_info ci
inner join company_back_user cbu on ci.id = cbu.company_info_id
inner join pilot_join_team pjt on cbu.back_user_account_id = pjt.back_user_id
where pjt.pilot_user_id = #{userId}
</select>
</mapper>
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论