liupeng 3 年之前
父节点
当前提交
4d86a46f49
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      code/sapparent/sapservice/src/main/java/org/fouram/mapper/WxUserMapper.xml

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

@@ -62,7 +62,7 @@
 			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 and b.delFlag = 0 and a.delFlag = 0) 
+			and a.name = b.name and b.isPrimary = 1 and b.delFlag = 0 and a.delFlag = 0 LIMIT 1) 
 		where a.delFlag = 0
 	</update>