|
|
|
@@ -49,6 +49,12 @@ public class WxCUserBasicInfoServiceImpl implements WxCUserBasicInfoService { |
|
|
|
@Autowired |
|
|
|
WxTagsMapper wxTagsMapper; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
WxScoreHistoryMapper scoreHistoryMapper; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
WxCreditHistoryMapper creditHistoryMapper; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
WxCUserTagsService wxCUserTagsService; |
|
|
|
|
|
|
|
@@ -589,13 +595,28 @@ public class WxCUserBasicInfoServiceImpl implements WxCUserBasicInfoService { |
|
|
|
|
|
|
|
@Override |
|
|
|
public void updateObj(WxCUserBasicInfo record, Long newId) { |
|
|
|
// update c_user_tags |
|
|
|
CUserTagVo userTagVo = new CUserTagVo(); |
|
|
|
// 1. update c_user_tags |
|
|
|
CUserTagNewIdVo userTagVo = new CUserTagNewIdVo(); |
|
|
|
userTagVo.setTenantId(record.getTenantId()); |
|
|
|
userTagVo.setUserId(record.getId()); |
|
|
|
userTagVo.setNewUserId(newId); |
|
|
|
wxCUserTagsMapper.updateNewId(userTagVo); |
|
|
|
// base info |
|
|
|
|
|
|
|
// 2. update score history |
|
|
|
WxScoreHistoryNewIdVo scoreHistoryNewIdVo = new WxScoreHistoryNewIdVo(); |
|
|
|
scoreHistoryNewIdVo.setTenantId(record.getTenantId()); |
|
|
|
scoreHistoryNewIdVo.setCUserId(record.getId()); |
|
|
|
scoreHistoryNewIdVo.setNewUserId(newId); |
|
|
|
scoreHistoryMapper.updateNewId(scoreHistoryNewIdVo); |
|
|
|
|
|
|
|
// 3. update credit history |
|
|
|
WxCreditHistoryNewIdVo creditHistoryNewIdVo = new WxCreditHistoryNewIdVo(); |
|
|
|
creditHistoryNewIdVo.setTenantId(record.getTenantId()); |
|
|
|
creditHistoryNewIdVo.setCUserId(record.getId()); |
|
|
|
creditHistoryNewIdVo.setNewUserId(newId); |
|
|
|
creditHistoryMapper.updateNewId(creditHistoryNewIdVo); |
|
|
|
|
|
|
|
// 10. base info |
|
|
|
CUserBaseVo userBaseVo = new CUserBaseVo(); |
|
|
|
org.springframework.beans.BeanUtils.copyProperties(record, userBaseVo); |
|
|
|
userBaseVo.setNewId(newId); |
|
|
|
|