|
|
@@ -1103,4 +1103,73 @@
|
|
|
from admin d left join department_management dm on dm.id = d.department_id
|
|
|
where d.department_id=(select department_id from admin where id=#{aid,jdbcType=INTEGER})
|
|
|
</select>
|
|
|
+
|
|
|
+ <select id="findEnteringAuditList" resultType="com.goafanti.customer.bo.CustomerListOut">
|
|
|
+ select u.id as uid,u.nickname as name,u.mobile as contactMobile,a.name as adminName,u.create_time as createTime,u.audit_status as auditStatus
|
|
|
+ from user u left join admin a on u.aid=a.id
|
|
|
+ where u.audit_status=0 and u.status != 1
|
|
|
+ <if test="aid != null and aid !=''">
|
|
|
+ and u.aid = #{aid,jdbcType=VARCHAR}
|
|
|
+ </if>
|
|
|
+ <if test="name != null and name != ''">
|
|
|
+ and u.nickname = #{name,jdbcType=VARCHAR}
|
|
|
+ </if>
|
|
|
+ <if test="adminName != null and adminName != ''">
|
|
|
+ and a.name = #{adminName,jdbcType=VARCHAR}
|
|
|
+ </if>
|
|
|
+ <if test="page_sql != null">
|
|
|
+ ${page_sql}
|
|
|
+ </if>
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="findEnteringAuditCount" resultType="java.lang.Integer">
|
|
|
+ select
|
|
|
+ count(0)
|
|
|
+ from user u left join admin a on u.aid=a.id
|
|
|
+ where u.audit_status=0 and u.status != 1
|
|
|
+ <if test="aid != null and aid !=''">
|
|
|
+ and u.aid = #{aid,jdbcType=VARCHAR}
|
|
|
+ </if>
|
|
|
+ <if test="name != null and name != ''">
|
|
|
+ and u.nickname = #{name,jdbcType=VARCHAR}
|
|
|
+ </if>
|
|
|
+ <if test="adminName != null and adminName != ''">
|
|
|
+ and a.name = #{adminName,jdbcType=VARCHAR}
|
|
|
+ </if>
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="findEnteringAuditIsNoList" resultType="com.goafanti.customer.bo.CustomerListOut">
|
|
|
+ select u.id as uid,u.nickname as name,u.mobile as contactMobile,a.name as adminName,u.create_time as createTime,
|
|
|
+ u.audit_status as auditStatus,u.audit_opinion as auditOpinion
|
|
|
+ from user u left join admin a on u.aid=a.id
|
|
|
+ where u.audit_status=2 and u.status != 1
|
|
|
+ <if test="aid != null and aid !=''">
|
|
|
+ and u.aid = #{aid,jdbcType=VARCHAR}
|
|
|
+ </if>
|
|
|
+ <if test="name != null and name != ''">
|
|
|
+ and u.nickname = #{name,jdbcType=VARCHAR}
|
|
|
+ </if>
|
|
|
+ <if test="adminName != null and adminName != ''">
|
|
|
+ and a.name = #{adminName,jdbcType=VARCHAR}
|
|
|
+ </if>
|
|
|
+ <if test="page_sql != null">
|
|
|
+ ${page_sql}
|
|
|
+ </if>
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="findEnteringAuditIsNoCount" resultType="java.lang.Integer">
|
|
|
+ select
|
|
|
+ count(0)
|
|
|
+ from user u left join admin a on u.aid=a.id
|
|
|
+ where u.audit_status=2 and u.status != 1
|
|
|
+ <if test="aid != null and aid !=''">
|
|
|
+ and u.aid = #{aid,jdbcType=VARCHAR}
|
|
|
+ </if>
|
|
|
+ <if test="name != null and name != ''">
|
|
|
+ and u.nickname = #{name,jdbcType=VARCHAR}
|
|
|
+ </if>
|
|
|
+ <if test="adminName != null and adminName != ''">
|
|
|
+ and a.name = #{adminName,jdbcType=VARCHAR}
|
|
|
+ </if>
|
|
|
+ </select>
|
|
|
</mapper>
|