提交 5df605ea 作者: xiaowang

数据看板bug修复

上级 43d7277e
...@@ -505,6 +505,7 @@ ...@@ -505,6 +505,7 @@
select count(*) select count(*)
from user_account from user_account
where disable = 0 where disable = 0
and port_type = 100
</select> </select>
<select id="getYesterdayAddUserCount" resultType="java.lang.Integer"> <select id="getYesterdayAddUserCount" resultType="java.lang.Integer">
SELECT count(*) SELECT count(*)
...@@ -519,15 +520,23 @@ ...@@ -519,15 +520,23 @@
</select> </select>
<select id="countPhoneNum" resultType="java.lang.Integer"> <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>
<select id="countPhoneNums" resultType="java.lang.Integer"> <select id="countPhoneNums" resultType="java.lang.Integer">
select count(*) from user_account where phone_num = #{phoneNum} select count(*)
and `disable`=0 and account_status=1 and id=#{userAccountId} from user_account
where phone_num = #{phoneNum}
and `disable` = 0
and account_status = 1
and id = #{userAccountId}
</select> </select>
<select id="updateAccountPhone" > <select id="updateAccountPhone">
update user_account update user_account
<set> <set>
phone_num = #{phoneNum} phone_num = #{phoneNum}
...@@ -559,22 +568,27 @@ ...@@ -559,22 +568,27 @@
<select id="selectUserAccount" resultType="java.lang.Integer" <select id="selectUserAccount" resultType="java.lang.Integer"
parameterType="com.mmc.iuav.user.model.qo.UserMessageQO"> 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>
<select id="selectUserAccountNickName" resultType="java.lang.Integer" <select id="selectUserAccountNickName" resultType="java.lang.Integer"
parameterType="com.mmc.iuav.user.entity.UserAccountDO"> 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>
<select id="getDistrictChild" resultType="java.lang.String"> <select id="getDistrictChild" resultType="java.lang.String">
SELECT SELECT concat(p1.`name`, p2.`name`) AS region
concat( p1.`name`, p2.`name` ) AS region FROM sys_district p1,
FROM
sys_district p1,
sys_district p2 sys_district p2
WHERE WHERE p2.LEVEL != 3
p2.LEVEL != 3
AND p1.id = p2.pid AND p1.id = p2.pid
AND p2.id = #{districtChildId} AND p2.id = #{districtChildId}
</select> </select>
......
...@@ -361,8 +361,10 @@ ...@@ -361,8 +361,10 @@
where id = #{id} where id = #{id}
</select> </select>
<select id="getDronePilotCount" resultType="java.lang.Integer"> <select id="getDronePilotCount" resultType="java.lang.Integer">
select count(*) SELECT count(*)
from pilot_certification FROM pilot_certification pc
where audit_status = 1 LEFT JOIN user_account ua ON pc.user_account_id = ua.id
WHERE pc.audit_status = 1
AND ua.`disable` = 0
</select> </select>
</mapper> </mapper>
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论