liupeng 4 年之前
父節點
當前提交
bd399250d7
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      code/sapparent/sapservice/src/main/java/org/fouram/mapper/WxUserMapper.xml

+ 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>