|
@@ -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 {
|