|
|
|
@ -1,13 +1,16 @@ |
|
|
|
package com.epmet.processor; |
|
|
|
|
|
|
|
import com.epmet.commons.tools.utils.DateUtils; |
|
|
|
import com.epmet.commons.tools.utils.SpringContextUtils; |
|
|
|
import com.epmet.dao.IcResiUserDao; |
|
|
|
import com.epmet.entity.LingshanHelpCrowdDabingEntity; |
|
|
|
import com.epmet.enums.IcResiUserTableEnum; |
|
|
|
import com.epmet.service.impl.IcResiUserServiceImpl; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.stereotype.Component; |
|
|
|
|
|
|
|
import java.util.HashMap; |
|
|
|
import java.util.LinkedHashMap; |
|
|
|
|
|
|
|
@Component |
|
|
|
public class LingshanHelpCrowdDabingCallbackProcessor extends AbstractLingshanHelpCrowdCallbackProcessor<LingshanHelpCrowdDabingEntity> { |
|
|
|
@ -22,7 +25,7 @@ public class LingshanHelpCrowdDabingCallbackProcessor extends AbstractLingshanHe |
|
|
|
|
|
|
|
@Override |
|
|
|
public void onSaveSpecialCrowdDetail(LingshanHelpCrowdDabingEntity entity) { |
|
|
|
HashMap<String, String> map = new HashMap<>(); |
|
|
|
LinkedHashMap<String, String> map = new LinkedHashMap<>(); |
|
|
|
map.put("IS_DB", "1"); |
|
|
|
// map.put("SHDB", entity.getShbz()); // 因为excel模板里,用的不是字典,是手动输入,所以不能对应的居民信息的所患病种
|
|
|
|
|
|
|
|
@ -30,6 +33,11 @@ public class LingshanHelpCrowdDabingCallbackProcessor extends AbstractLingshanHe |
|
|
|
if (hbsj != null) { |
|
|
|
map.put("DBSJ", hbsj); |
|
|
|
} |
|
|
|
|
|
|
|
// 居民变更记录(一定要在更新主表之前执行,否则检测不出类别变更)
|
|
|
|
IcResiUserServiceImpl resiService = SpringContextUtils.getBean(IcResiUserServiceImpl.class); |
|
|
|
resiService.icUserChangeRecord(icResiUserDao.selectById(entity.getResiId()), map); |
|
|
|
|
|
|
|
icResiUserDao.updateTableSelective(IcResiUserTableEnum.IC_RESI_USER.getTableName(), entity.getResiId(), map); |
|
|
|
} |
|
|
|
} |
|
|
|
|