Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
cms
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
iuav
cms
Commits
e22b1952
提交
e22b1952
authored
1月 02, 2024
作者:
刘明祎-运维用途
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改查询总数
上级
cc458067
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
46 行增加
和
1 行删除
+46
-1
PilotCertificationDao.java
...m/mmc/iuav/user/dao/dronepilot/PilotCertificationDao.java
+1
-0
PilotCertificationServiceImpl.java
...ervice/dronepilot/impl/PilotCertificationServiceImpl.java
+8
-1
PilotCertificationDao.xml
...ain/resources/mapper/dronepilot/PilotCertificationDao.xml
+37
-0
没有找到文件。
csm-service/cms-service-user/src/main/java/com/mmc/iuav/user/dao/dronepilot/PilotCertificationDao.java
浏览文件 @
e22b1952
...
...
@@ -39,6 +39,7 @@ public interface PilotCertificationDao {
List
<
PilotCertificationDO
>
pilotList
(
PilotCertificationQO
param
);
int
pilotListCount
(
PilotCertificationQO
param
);
/**
* 查询这个用户是否绑定飞手团队
* @param userId 飞手id
...
...
csm-service/cms-service-user/src/main/java/com/mmc/iuav/user/service/dronepilot/impl/PilotCertificationServiceImpl.java
浏览文件 @
e22b1952
...
...
@@ -138,6 +138,13 @@ public class PilotCertificationServiceImpl implements PilotCertificationService
@Override
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
();
param
.
buildCurrentPage
();
List
<
PilotCertificationDO
>
pilotList
=
certificationDao
.
pilotList
(
param
);
...
...
@@ -191,7 +198,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
;
}
...
...
csm-service/cms-service-user/src/main/resources/mapper/dronepilot/PilotCertificationDao.xml
浏览文件 @
e22b1952
...
...
@@ -556,6 +556,43 @@
inner join company_member cm on cm.company_info_id = cbu.company_info_id
where cm.user_account_id = #{userId} limit 1
</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>
</mapper>
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论