liupeng 4 jaren geleden
bovenliggende
commit
f6a538610a

+ 0 - 4
code/sapparent/sapservice/src/main/java/org/fouram/mapper/SapUserMapper.xml

@@ -48,10 +48,6 @@
 		update sap_user set result=#{result} where userId=#{userId}
 	</update>
 	
-	<update id="updateResultByPersonId">
-		update sap_user set result=#{result} where personId=#{personId}
-	</update>
-	
 	<update id="updateResultByDelFlag">
 		update sap_user set result=#{result} where delFlag=#{delFlag}
 	</update>

+ 2 - 7
code/sapparent/sapservice/src/main/java/org/fouram/service/SapUserService.java

@@ -213,7 +213,7 @@ public class SapUserService extends BaseService {
 
 	public void updateSyncWxResult(String personId) throws Exception {
 		String result = createOrUpdateWXUser(personId);
-		updateResultByPersonId(result, personId);
+		updateResultByUserId(result, personId);
 	}
 
 	private String createOrUpdateWXUser(String personId) throws Exception {
@@ -367,11 +367,6 @@ public class SapUserService extends BaseService {
 		update("SapUserMapper.updateResultByUserId", sapUser);
 	}
 
-	public void updateResultByPersonId(String result, String personId) throws Exception {
-		SapUser sapUser = SapUser.builder().personId(personId).result(result).build();
-		update("SapUserMapper.updateResultByPersonId", sapUser);
-	}
-
 	public void deleteQuitUserByUserId(String userId, String oprUserId) throws Exception {
 		SapUser sapUser = selectByUserId(userId);
 		String personId = sapUser.getPersonId();
@@ -398,7 +393,7 @@ public class SapUserService extends BaseService {
 	}
 
 	public void updateIngore(String personId) throws Exception {
-		updateResultByPersonId(SapUserResultEnum.INGORE.getCode(), personId);
+		updateResultByUserId(SapUserResultEnum.INGORE.getCode(), personId);
 	}
 
 	public void updateAllNormalSyncWxResult() throws Exception {