liupeng 3 лет назад
Родитель
Сommit
cc74219d55

+ 2 - 2
code/sapparent/sapservice/src/main/java/org/fouram/mapper/WxUserMapper.xml

@@ -62,8 +62,8 @@
 			select b.userId from sap_user b 
 			where (a.userId = b.userId or a.userId = b.email 
 				or a.userId = b.username or a.userId = b.formatMobile or a.mobile = b.formatMobile) 
-			and a.name = b.name and b.isPrimary = 1) 
-		where a.sapUserId is null
+			and a.name = b.name and b.isPrimary = 1 and b.delFlag = 0 and a.delFlag = 0) 
+		where a.delFlag = 0
 	</update>
 	
 	<select id="selectSapUserId" resultType="String">