update:医保对账页面新增手动添加备注页面
This commit is contained in:
@@ -145,6 +145,40 @@ public class MedicalInsuranceReconciliationController {
|
||||
|
||||
return responseMap;
|
||||
}
|
||||
|
||||
@ApiOperation(value = "更新医保对账备注", notes = "")
|
||||
@PostMapping("/updateMedicalInsuranceReconciliationRemark")
|
||||
@ResponseBody
|
||||
public HashMap<Object, Object> updateMedicalInsuranceReconciliationRemark(
|
||||
@ApiParam(value = "记录ID") @RequestParam String id,
|
||||
@ApiParam(value = "备注") @RequestParam(required = false) String remark) {
|
||||
|
||||
HashMap<Object, Object> responseMap = new HashMap<>();
|
||||
|
||||
try {
|
||||
if (id == null || "".equals(id.trim())) {
|
||||
responseMap.put("code", 1);
|
||||
responseMap.put("msg", "id不能为空");
|
||||
return responseMap;
|
||||
}
|
||||
|
||||
HashMap<Object, Object> updateMap = new HashMap<>();
|
||||
updateMap.put("id", id.trim());
|
||||
updateMap.put("remark", remark == null ? "" : remark.trim());
|
||||
|
||||
medicalInsuranceReconciliationService.updateMedicalInsuranceReconciliationRemark(updateMap);
|
||||
|
||||
responseMap.put("code", 0);
|
||||
responseMap.put("msg", "OK");
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
LogUtil.error(this.getClass(), "更新医保对账备注失败:" + e.getMessage());
|
||||
responseMap.put("code", 1);
|
||||
responseMap.put("msg", "更新失败:" + e.getMessage());
|
||||
}
|
||||
|
||||
return responseMap;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -33,6 +33,11 @@ public interface MedicalInsuranceReconciliationMapper {
|
||||
* 删除医保对账结果
|
||||
*/
|
||||
void deleteMedicalInsuranceReconciliationResult(HashMap<Object, Object> map) throws Exception;
|
||||
|
||||
/**
|
||||
* 更新医保对账备注
|
||||
*/
|
||||
void updateMedicalInsuranceReconciliationRemark(HashMap<Object, Object> map) throws Exception;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -102,10 +102,12 @@ public class MedicalInsuranceReconciliationMethod {
|
||||
prevQueryMap.put("trade_date", trade_date);
|
||||
List<HashMap<Object, Object>> prevResults = reconciliationService.findMedicalInsuranceReconciliationResult(prevQueryMap);
|
||||
HashMap<String, String> prevStatusMap = new HashMap<>();
|
||||
HashMap<String, String> prevRemarkMap = new HashMap<>();
|
||||
if (prevResults != null) {
|
||||
for (HashMap<Object, Object> prev : prevResults) {
|
||||
String key = StringDUtil.changeNullToEmpty(prev.get("insutype")) + "|" + StringDUtil.changeNullToEmpty(prev.get("clr_type"));
|
||||
prevStatusMap.put(key, StringDUtil.changeNullToEmpty(prev.get("stmt_rslt")));
|
||||
prevRemarkMap.put(key, StringDUtil.changeNullToEmpty(prev.get("recheck_user")));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -165,7 +167,7 @@ public class MedicalInsuranceReconciliationMethod {
|
||||
resultMap.put("recheck_flag", recheckFlag);
|
||||
resultMap.put("prev_stmt_rslt", prevStmt);
|
||||
resultMap.put("recheck_time", "1".equals(recheckFlag) ? DateDUtil.getCurrentDate(DateDUtil.yyyy_MM_dd_HH_mm_ss) : null);
|
||||
resultMap.put("recheck_user", "");
|
||||
resultMap.put("recheck_user", prevRemarkMap.getOrDefault(key, ""));
|
||||
resultMap.put("infcode", callResult.get("infcode"));
|
||||
resultMap.put("err_msg", callResult.get("err_msg"));
|
||||
resultMap.put("warn_msg", callResult.get("warn_msg"));
|
||||
@@ -199,7 +201,7 @@ public class MedicalInsuranceReconciliationMethod {
|
||||
resultMap.put("recheck_flag", "0");
|
||||
resultMap.put("prev_stmt_rslt", "");
|
||||
resultMap.put("recheck_time", null);
|
||||
resultMap.put("recheck_user", "");
|
||||
resultMap.put("recheck_user", prevRemarkMap.getOrDefault(insutype + "|" + clrType, ""));
|
||||
resultMap.put("api_result", "ERROR");
|
||||
resultMap.put("create_time", DateDUtil.getCurrentDate(DateDUtil.yyyy_MM_dd_HH_mm_ss));
|
||||
resultMap.put("modify_time", DateDUtil.getCurrentDate(DateDUtil.yyyy_MM_dd_HH_mm_ss));
|
||||
|
||||
@@ -30,6 +30,11 @@ public interface MedicalInsuranceReconciliationService {
|
||||
* 删除医保对账结果
|
||||
*/
|
||||
void deleteMedicalInsuranceReconciliationResult(HashMap<Object, Object> map) throws Exception;
|
||||
|
||||
/**
|
||||
* 更新医保对账备注
|
||||
*/
|
||||
void updateMedicalInsuranceReconciliationRemark(HashMap<Object, Object> map) throws Exception;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -41,6 +41,11 @@ public class MedicalInsuranceReconciliationServiceImpl implements MedicalInsuran
|
||||
public void deleteMedicalInsuranceReconciliationResult(HashMap<Object, Object> map) throws Exception {
|
||||
medicalInsuranceReconciliationMapper.deleteMedicalInsuranceReconciliationResult(map);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateMedicalInsuranceReconciliationRemark(HashMap<Object, Object> map) throws Exception {
|
||||
medicalInsuranceReconciliationMapper.updateMedicalInsuranceReconciliationRemark(map);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user