Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
cms
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
iuav
cms
Commits
f9213492
提交
f9213492
authored
1月 04, 2024
作者:
han
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'develop' of
ssh://git.mmcuav.cn:8222/iuav/cms
into develop
上级
ab37d7c5
6035b3e7
流水线
#7860
已通过 于阶段
in 2 分 30 秒
变更
4
流水线
1
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
63 行增加
和
9 行删除
+63
-9
PilotCertificationDao.java
...m/mmc/iuav/user/dao/dronepilot/PilotCertificationDao.java
+2
-0
PilotCertificationServiceImpl.java
...ervice/dronepilot/impl/PilotCertificationServiceImpl.java
+8
-4
PilotCertificationDao.xml
...ain/resources/mapper/dronepilot/PilotCertificationDao.xml
+52
-4
kustomization.yaml
kustomization/overlays/dev/kustomization.yaml
+1
-1
没有找到文件。
csm-service/cms-service-user/src/main/java/com/mmc/iuav/user/dao/dronepilot/PilotCertificationDao.java
浏览文件 @
f9213492
...
@@ -39,6 +39,7 @@ public interface PilotCertificationDao {
...
@@ -39,6 +39,7 @@ public interface PilotCertificationDao {
List
<
PilotCertificationDO
>
pilotList
(
PilotCertificationQO
param
);
List
<
PilotCertificationDO
>
pilotList
(
PilotCertificationQO
param
);
int
pilotListCount
(
PilotCertificationQO
param
);
/**
/**
* 查询这个用户是否绑定飞手团队
* 查询这个用户是否绑定飞手团队
* @param userId 飞手id
* @param userId 飞手id
...
@@ -53,6 +54,7 @@ public interface PilotCertificationDao {
...
@@ -53,6 +54,7 @@ public interface PilotCertificationDao {
* @return {@link String}
* @return {@link String}
*/
*/
FlyingTeam
selectCompanyNameByFlyingUserId
(
Integer
userId
);
FlyingTeam
selectCompanyNameByFlyingUserId
(
Integer
userId
);
Integer
getPilotAuditSum
(
Integer
status
);
Integer
getPilotAuditSum
(
Integer
status
);
List
<
PilotAbilityVO
>
selectAbilityList
(
Integer
pilotCertificationId
);
List
<
PilotAbilityVO
>
selectAbilityList
(
Integer
pilotCertificationId
);
...
...
csm-service/cms-service-user/src/main/java/com/mmc/iuav/user/service/dronepilot/impl/PilotCertificationServiceImpl.java
浏览文件 @
f9213492
...
@@ -138,6 +138,13 @@ public class PilotCertificationServiceImpl implements PilotCertificationService
...
@@ -138,6 +138,13 @@ public class PilotCertificationServiceImpl implements PilotCertificationService
@Override
@Override
public
PageResult
pilotList
(
PilotCertificationQO
param
)
{
public
PageResult
pilotList
(
PilotCertificationQO
param
)
{
int
pilotListSize
=
certificationDao
.
pilotListCount
(
param
);
if
(
pilotListSize
<
1
)
{
return
PageResult
.
buildPage
(
param
.
getPageNo
(),
param
.
getPageSize
(),
pilotListSize
,
null
);
}
Integer
pageNo
=
param
.
getPageNo
();
Integer
pageNo
=
param
.
getPageNo
();
param
.
buildCurrentPage
();
param
.
buildCurrentPage
();
List
<
PilotCertificationDO
>
pilotList
=
certificationDao
.
pilotList
(
param
);
List
<
PilotCertificationDO
>
pilotList
=
certificationDao
.
pilotList
(
param
);
...
@@ -169,8 +176,6 @@ public class PilotCertificationServiceImpl implements PilotCertificationService
...
@@ -169,8 +176,6 @@ public class PilotCertificationServiceImpl implements PilotCertificationService
return
pilotCertificationDTO
;
return
pilotCertificationDTO
;
})
})
.
collect
(
Collectors
.
toList
());
.
collect
(
Collectors
.
toList
());
collect
=
collect
.
stream
().
skip
((
pageNo
-
1
)
*
param
.
getPageSize
()).
limit
(
param
.
getPageSize
()).
collect
(
Collectors
.
toList
());
Integer
tokenUserId
=
param
.
getTokenUserId
();
Integer
tokenUserId
=
param
.
getTokenUserId
();
if
(
tokenUserId
!=
null
){
if
(
tokenUserId
!=
null
){
...
@@ -191,7 +196,7 @@ public class PilotCertificationServiceImpl implements PilotCertificationService
...
@@ -191,7 +196,7 @@ public class PilotCertificationServiceImpl implements PilotCertificationService
}
}
}
}
}
}
PageResult
pageResult
=
PageResult
.
buildPage
(
pageNo
,
param
.
getPageSize
(),
pilotList
.
size
()
,
collect
);
PageResult
pageResult
=
PageResult
.
buildPage
(
pageNo
,
param
.
getPageSize
(),
pilotList
Size
,
collect
);
return
pageResult
;
return
pageResult
;
}
}
...
@@ -284,7 +289,6 @@ public class PilotCertificationServiceImpl implements PilotCertificationService
...
@@ -284,7 +289,6 @@ public class PilotCertificationServiceImpl implements PilotCertificationService
FlyingTeam
flyingTeam
=
certificationDao
.
selectCompanyNameByFlyingUserId
(
userAccountId
);
FlyingTeam
flyingTeam
=
certificationDao
.
selectCompanyNameByFlyingUserId
(
userAccountId
);
certificationDTO
.
setFlyingTeam
(
flyingTeam
.
getCompanyName
());
certificationDTO
.
setFlyingTeam
(
flyingTeam
.
getCompanyName
());
certificationDTO
.
setBackUserId
(
flyingTeam
.
getBackUserId
());
certificationDTO
.
setBackUserId
(
flyingTeam
.
getBackUserId
());
}
}
}
}
Integer
backUserId
=
param
.
getBackUserId
();
Integer
backUserId
=
param
.
getBackUserId
();
...
...
csm-service/cms-service-user/src/main/resources/mapper/dronepilot/PilotCertificationDao.xml
浏览文件 @
f9213492
...
@@ -511,10 +511,10 @@
...
@@ -511,10 +511,10 @@
select ci.company_name,
select ci.company_name,
cbu.back_user_account_id as backUserId,
cbu.back_user_account_id as backUserId,
cm.user_account_id as messageId
cm.user_account_id as messageId
from
company_info ci
from
pilot_join_team pjt
inner join company_back_user cbu on ci.id = cbu.company_info
_id
left join company_back_user cbu on cbu.back_user_account_id = pjt.back_user
_id
inner join pilot_join_team pjt on cbu.back_user_account_id = pjt.back_user
_id
left join company_info ci on ci.id = cbu.company_info
_id
inner
join company_member cm on ci.id = cm.company_info_id
left
join company_member cm on ci.id = cm.company_info_id
where pjt.pilot_user_id = #{userId} and cm.is_leader = 1
where pjt.pilot_user_id = #{userId} and cm.is_leader = 1
</select>
</select>
<select
id=
"selectPilotIdList"
resultType=
"java.lang.Integer"
>
<select
id=
"selectPilotIdList"
resultType=
"java.lang.Integer"
>
...
@@ -556,6 +556,54 @@
...
@@ -556,6 +556,54 @@
inner join company_member cm on cm.company_info_id = cbu.company_info_id
inner join company_member cm on cm.company_info_id = cbu.company_info_id
where cm.user_account_id = #{userId} limit 1
where cm.user_account_id = #{userId} limit 1
</select>
</select>
<select
id=
"pilotListCount"
resultType=
"java.lang.Integer"
>
SELECT
count(*)
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
LEFT JOIN pilot_reason pr ON pc.reason_id = pr.id
left join pilot_join_team pjt on pjt.pilot_user_id = ua.id
WHERE
1 = 1
AND ua.`disable` = 0
AND rna.is_deleted =0
<if
test=
" areaNumber != null and areaNumber != '' "
>
and pc.area_number =#{areaNumber}
</if>
<if
test=
" id != null "
>
and pc.id =#{id}
</if>
<if
test=
" licenseType != null and licenseType != '' "
>
and pc.license_type =#{licenseType}
</if>
<if
test=
" auditStatus != null "
>
and pc.audit_status =#{auditStatus}
</if>
<if
test=
"accountNumber != null and accountNumber != '' "
>
and ( pc.user_account_id like concat('%',#{accountNumber},'%')
or rna.user_name like concat('%',#{accountNumber},'%')
or ua.phone_num like concat('%',#{accountNumber},'%'))
</if>
<if
test=
"backUserId != null"
>
and pjt.back_user_id = #{backUserId} and pjt.pilot_status = 1
</if>
<if
test=
"isTeam == 1"
>
and pjt.back_user_id is not null and pjt.pilot_status = 1
</if>
</select>
<select
id=
"selectCompanyNameByFlyingUserIdOnlyOne"
resultType=
"com.mmc.iuav.user.model.dto.dronepilot.FlyingTeam"
>
select ci.company_name,
cbu.back_user_account_id as backUserId,
cm.user_account_id as messageId
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
inner join company_member cm on ci.id = cm.company_info_id
where pjt.pilot_user_id = #{userId} and cm.is_leader = 1
</select>
</mapper>
</mapper>
kustomization/overlays/dev/kustomization.yaml
浏览文件 @
f9213492
...
@@ -18,4 +18,4 @@ patches:
...
@@ -18,4 +18,4 @@ patches:
images
:
images
:
-
name
:
REGISTRY/NAMESPACE/IMAGE:TAG
-
name
:
REGISTRY/NAMESPACE/IMAGE:TAG
newName
:
mmc-registry.cn-shenzhen.cr.aliyuncs.com/sharefly-dev/cms
newName
:
mmc-registry.cn-shenzhen.cr.aliyuncs.com/sharefly-dev/cms
newTag
:
bcbb780e01ea45e7995837afec4ad62c87babdd1
newTag
:
f653ed1f3002804d5d8f9ce65976e8e90bb55bb9
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论