Commit 7237147b authored by hongguangwu's avatar hongguangwu

MVP1.6.4-失败原因模糊搜索

parent 767020cf
...@@ -436,7 +436,7 @@ public class TSocialSoldierServiceImpl extends ServiceImpl<TSocialSoldierMapper, ...@@ -436,7 +436,7 @@ public class TSocialSoldierServiceImpl extends ServiceImpl<TSocialSoldierMapper,
updateSocial.setYgsRemarkOld(excel.getMsg()); updateSocial.setYgsRemarkOld(excel.getMsg());
// 如果找到了失败原因配置: // 如果找到了失败原因配置:
if (Common.isNotNull(excel.getMsg())) { if (Common.isNotNull(excel.getMsg())) {
failConfig = errorMap.get(excel.getMsg()); failConfig = getConfig(excel.getMsg(),errorMap);
if (failConfig != null) { if (failConfig != null) {
updateSocial.setYgsRemark(failConfig.getSimpleReason()); updateSocial.setYgsRemark(failConfig.getSimpleReason());
// failConfig.getReplay() 1 继续办理 2 中止办理 3 人工办理 // failConfig.getReplay() 1 继续办理 2 中止办理 3 人工办理
...@@ -474,7 +474,7 @@ public class TSocialSoldierServiceImpl extends ServiceImpl<TSocialSoldierMapper, ...@@ -474,7 +474,7 @@ public class TSocialSoldierServiceImpl extends ServiceImpl<TSocialSoldierMapper,
updateSocial.setYsdRemarkOld(excel.getMsg()); updateSocial.setYsdRemarkOld(excel.getMsg());
// 如果找到了失败原因配置: // 如果找到了失败原因配置:
if (Common.isNotNull(excel.getMsg())) { if (Common.isNotNull(excel.getMsg())) {
failConfig = errorMap.get(excel.getMsg()); failConfig = getConfig(excel.getMsg(),errorMap);
if (failConfig != null) { if (failConfig != null) {
updateSocial.setYsdRemark(failConfig.getSimpleReason()); updateSocial.setYsdRemark(failConfig.getSimpleReason());
// failConfig.getReplay() 1 继续办理 2 中止办理 3 人工办理 // failConfig.getReplay() 1 继续办理 2 中止办理 3 人工办理
...@@ -544,6 +544,21 @@ public class TSocialSoldierServiceImpl extends ServiceImpl<TSocialSoldierMapper, ...@@ -544,6 +544,21 @@ public class TSocialSoldierServiceImpl extends ServiceImpl<TSocialSoldierMapper,
} }
} }
/**
* @Description: 查找失败原因的关键字
* @Author: hgw
* @Date: 2024/5/14 17:55
* @return: com.yifu.cloud.plus.v1.yifu.social.entity.FailReasonConfig
**/
private FailReasonConfig getConfig(String msg, Map<String, FailReasonConfig> errorMap) {
for (Map.Entry<String, FailReasonConfig> config : errorMap.entrySet()) {
if (msg.contains(config.getKey())) {
return config.getValue();
}
}
return null;
}
/** /**
* 调用成功的社保办理 * 调用成功的社保办理
* *
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment