|
|
@ -1,12 +1,14 @@ |
|
|
package com.epmet.processor; |
|
|
package com.epmet.processor; |
|
|
|
|
|
|
|
|
|
|
|
import com.epmet.commons.tools.utils.SpringContextUtils; |
|
|
import com.epmet.dao.IcResiUserDao; |
|
|
import com.epmet.dao.IcResiUserDao; |
|
|
import com.epmet.entity.LingshanHelpCrowdCanjiEntity; |
|
|
import com.epmet.entity.LingshanHelpCrowdCanjiEntity; |
|
|
import com.epmet.enums.IcResiUserTableEnum; |
|
|
import com.epmet.enums.IcResiUserTableEnum; |
|
|
|
|
|
import com.epmet.service.impl.IcResiUserServiceImpl; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.stereotype.Component; |
|
|
import org.springframework.stereotype.Component; |
|
|
|
|
|
|
|
|
import java.util.HashMap; |
|
|
import java.util.LinkedHashMap; |
|
|
|
|
|
|
|
|
@Component |
|
|
@Component |
|
|
public class LingshanHelpCrowdCanjiCallbackProcessor extends AbstractLingshanHelpCrowdCallbackProcessor<LingshanHelpCrowdCanjiEntity> { |
|
|
public class LingshanHelpCrowdCanjiCallbackProcessor extends AbstractLingshanHelpCrowdCallbackProcessor<LingshanHelpCrowdCanjiEntity> { |
|
|
@ -22,11 +24,16 @@ public class LingshanHelpCrowdCanjiCallbackProcessor extends AbstractLingshanHel |
|
|
@Override |
|
|
@Override |
|
|
public void onSaveSpecialCrowdDetail(LingshanHelpCrowdCanjiEntity entity) { |
|
|
public void onSaveSpecialCrowdDetail(LingshanHelpCrowdCanjiEntity entity) { |
|
|
// 更新残疾信息
|
|
|
// 更新残疾信息
|
|
|
HashMap<String, String> map = new HashMap<>(); |
|
|
LinkedHashMap<String, String> map = new LinkedHashMap<>(); |
|
|
map.put("IS_CJ", "1"); |
|
|
map.put("IS_CJ", "1"); |
|
|
map.put("CJLB", entity.getCjlb()); |
|
|
map.put("CJLB", entity.getCjlb()); |
|
|
map.put("CJZK", entity.getCjzk()); |
|
|
map.put("CJZK", entity.getCjzk()); |
|
|
map.put("CJZH", entity.getCjzh()); |
|
|
map.put("CJZH", entity.getCjzh()); |
|
|
|
|
|
|
|
|
|
|
|
// 居民变更记录(一定要在更新主表之前执行,否则检测不出类别变更)
|
|
|
|
|
|
IcResiUserServiceImpl resiService = SpringContextUtils.getBean(IcResiUserServiceImpl.class); |
|
|
|
|
|
resiService.icUserChangeRecord(icResiUserDao.selectById(entity.getResiId()), map); |
|
|
|
|
|
|
|
|
icResiUserDao.updateTableSelective(IcResiUserTableEnum.IC_RESI_USER.getTableName(), entity.getResiId(), map); |
|
|
icResiUserDao.updateTableSelective(IcResiUserTableEnum.IC_RESI_USER.getTableName(), entity.getResiId(), map); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|