Browse Source

阿米巴开发

anderx 3 years ago
parent
commit
2b82fdeb77
1 changed files with 4 additions and 4 deletions
  1. 4 4
      src/main/java/com/goafanti/common/mapper/AdminMapper.xml

+ 4 - 4
src/main/java/com/goafanti/common/mapper/AdminMapper.xml

@@ -514,7 +514,7 @@
   <select id="listAdminByName" parameterType="java.lang.String" resultMap="BaseResultMap">
     select id,name from admin where   name like concat('%',#{name},'%')
     <if test="status==0">
-      and status= '正常'
+      and status= '0'
     </if>
     <if test="status==1">
       and status= '1'
@@ -824,7 +824,7 @@
     on a.contacts_id=b.id left join department c
     on c.id=b.department_id left join user_role x on x.uid=b.id
     left join `role` y on x.rid=y.id
-    where b.status ='正常'
+    where b.status ='0'
     <if test="roleName != null">
       and y.role_name= #{roleName,jdbcType=VARCHAR}
     </if>
@@ -851,7 +851,7 @@
     on a.contacts_id=b.id
     left join user_role x on x.uid=b.id
     left join `role` y on x.rid=y.id
-    where b.status ='正常'
+    where b.status ='0'
     <if test="roleName != null">
       and y.role_name= #{roleName,jdbcType=VARCHAR}
     </if>
@@ -875,7 +875,7 @@
   </delete>
   <select id="getaidFrequentContacts" resultType="java.lang.String">
     select b.id from admin_contacts a left join admin b on a.contacts_id = b.id
-    where b.status = '正常' and a.aid= #{id,jdbcType=VARCHAR}
+    where b.status = '0' and a.aid= #{id,jdbcType=VARCHAR}
   </select>