liupeng 4 rokov pred
rodič
commit
bd399250d7

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

@@ -61,8 +61,8 @@
 		update wx_user a set a.sapUserId = (
 			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) and a.name = b.name 
-			and b.isPrimary = 1) 
+				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
 	</update>