Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
cms
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
iuav
cms
Commits
5df605ea
提交
5df605ea
authored
9月 22, 2023
作者:
xiaowang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
数据看板bug修复
上级
43d7277e
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
31 行增加
和
15 行删除
+31
-15
UserServiceDao.xml
...service-user/src/main/resources/mapper/UserServiceDao.xml
+26
-12
PilotCertificationDao.xml
...ain/resources/mapper/dronepilot/PilotCertificationDao.xml
+5
-3
没有找到文件。
csm-service/cms-service-user/src/main/resources/mapper/UserServiceDao.xml
浏览文件 @
5df605ea
...
...
@@ -505,6 +505,7 @@
select count(*)
from user_account
where disable = 0
and port_type = 100
</select>
<select
id=
"getYesterdayAddUserCount"
resultType=
"java.lang.Integer"
>
SELECT count(*)
...
...
@@ -519,15 +520,23 @@
</select>
<select
id=
"countPhoneNum"
resultType=
"java.lang.Integer"
>
select count(*) from user_account where phone_num = #{phoneNum} and `disable`=0 and account_status=1
select count(*)
from user_account
where phone_num = #{phoneNum}
and `disable` = 0
and account_status = 1
</select>
<select
id=
"countPhoneNums"
resultType=
"java.lang.Integer"
>
select count(*) from user_account where phone_num = #{phoneNum}
and `disable`=0 and account_status=1 and id=#{userAccountId}
select count(*)
from user_account
where phone_num = #{phoneNum}
and `disable` = 0
and account_status = 1
and id = #{userAccountId}
</select>
<select
id=
"updateAccountPhone"
>
<select
id=
"updateAccountPhone"
>
update user_account
<set>
phone_num = #{phoneNum}
...
...
@@ -559,22 +568,27 @@
<select
id=
"selectUserAccount"
resultType=
"java.lang.Integer"
parameterType=
"com.mmc.iuav.user.model.qo.UserMessageQO"
>
select count(*) from user_account where disable=0 and nick_name=#{nickName} and id!=#{id}
select count(*)
from user_account
where disable = 0
and nick_name = #{nickName}
and id!=#{id}
</select>
<select
id=
"selectUserAccountNickName"
resultType=
"java.lang.Integer"
parameterType=
"com.mmc.iuav.user.entity.UserAccountDO"
>
select count(*) from user_account where disable=0 and nick_name=#{nickName} and id!=#{id}
select count(*)
from user_account
where disable = 0
and nick_name = #{nickName}
and id!=#{id}
</select>
<select
id=
"getDistrictChild"
resultType=
"java.lang.String"
>
SELECT
concat( p1.`name`, p2.`name` ) AS region
FROM
sys_district p1,
SELECT concat(p1.`name`, p2.`name`) AS region
FROM sys_district p1,
sys_district p2
WHERE
p2.LEVEL != 3
WHERE p2.LEVEL != 3
AND p1.id = p2.pid
AND p2.id = #{districtChildId}
</select>
...
...
csm-service/cms-service-user/src/main/resources/mapper/dronepilot/PilotCertificationDao.xml
浏览文件 @
5df605ea
...
...
@@ -361,8 +361,10 @@
where id = #{id}
</select>
<select
id=
"getDronePilotCount"
resultType=
"java.lang.Integer"
>
select count(*)
from pilot_certification
where audit_status = 1
SELECT count(*)
FROM pilot_certification pc
LEFT JOIN user_account ua ON pc.user_account_id = ua.id
WHERE pc.audit_status = 1
AND ua.`disable` = 0
</select>
</mapper>
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论