From 402bf977071dd04257493b1a38d9e85cca925ae4 Mon Sep 17 00:00:00 2001
From: jyy <jyy>
Date: Sat, 17 Jul 2021 17:05:23 +0800
Subject: [PATCH] Merge branch 'score_shop' into api_score_meger

---
 zq-erp/src/main/resources/mybatis/mapper/common/SysUsersDao.xml |   25 +++++++++++++------------
 1 files changed, 13 insertions(+), 12 deletions(-)

diff --git a/zq-erp/src/main/resources/mybatis/mapper/common/SysUsersDao.xml b/zq-erp/src/main/resources/mybatis/mapper/common/SysUsersDao.xml
index 05a7862..0daf98d 100644
--- a/zq-erp/src/main/resources/mybatis/mapper/common/SysUsersDao.xml
+++ b/zq-erp/src/main/resources/mybatis/mapper/common/SysUsersDao.xml
@@ -323,7 +323,7 @@
         <set>
             update_time=now(),
             <if test="updateBy!=null">
-                update_by = #{btnKey},
+                update_by = #{updateBy},
             </if>
             <if
                     test="(suName!=null and suName!='') or (suName!='' and suName==0)">
@@ -496,19 +496,19 @@
 	</update>
 
     <!-- 批量删除 -->
-    <delete id="deleteByIds" parameterType="java.util.List">
-        delete from sys_users where su_id in
+    <update id="deleteByIds" parameterType="java.util.List">
+        update  sys_users set su_valid='N' where su_id in
         <foreach collection="list" index="index" item="item" open="("
                  separator="," close=")">
             #{item}
         </foreach>
-    </delete>
+    </update>
 
     <!-- 根据id删除 -->
-    <delete id="deleteById" parameterType="Long">
-		DELETE FROM sys_users
-		where su_id=#{suId}
-	</delete>
+    <update id="deleteById" parameterType="Long">
+        update  sys_users set su_valid='N'
+        where su_id=#{suId}
+	</update>
 
     <!-- 根据对象删除 -->
     <delete id="deleteByModel" parameterType="Long">
@@ -960,7 +960,7 @@
                 </if>
                 <if
                         test="(record.suName!=null and record.suName!='') or (record.suName!='' and record.suName==0)">
-                    and su_name like concat('%',#{record.suName},'%')
+                    and (su_name like concat('%',concat(#{record.suName},'%')) or su_tel = #{record.suName})
                 </if>
                 <if
                         test="(record.suTel!=null and record.suTel!='') or (record.suTel!='' and record.suTel==0)">
@@ -1273,7 +1273,7 @@
     <select id="selectByRoleName" resultMap="SysUsersMap">
 
         SELECT
-        a.*
+        distinct a.*
         FROM
         sys_users a
         LEFT JOIN sys_role r ON FIND_IN_SET(r.role_id, a.role_ids)
@@ -1290,7 +1290,6 @@
         <if test="users.shopId !=null and users.shopId !=''">
             AND a.SHOP_ID = #{users.shopId}
         </if>
-
         ORDER BY
         a.SIGN_ORDER IS NULL,
         a.SIGN_ORDER
@@ -1319,5 +1318,7 @@
    where id=#{id}
    </update>
 
-
+    <select id="selectAppVersion" resultType="com.matrix.system.hive.bean.AppVersion">
+        select * from app_version
+    </select>
 </mapper>
\ No newline at end of file

--
Gitblit v1.9.1