Commit be2ce15b authored by hongguangwu's avatar hongguangwu

1.5.4-社保派单合同日期拦截优化

parent 6bc49bd2
...@@ -2253,14 +2253,16 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T ...@@ -2253,14 +2253,16 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
if (Common.isEmpty(empVo.getContractName()) && validContractInfo(errorMessageList,excel)) { if (Common.isEmpty(empVo.getContractName()) && validContractInfo(errorMessageList,excel)) {
return true; return true;
} }
if (Common.isNotNull(empVo.getContractStart()) && Common.isNotNull(excel.getContractStart())) { if (Common.isNotNull(empVo.getContractStart())) {
// 系统已存在的合同起缴日期 // 系统已存在的合同起缴日期
String conYearMonthDay = DateUtil.formatDatePatten(empVo.getContractStart(),DateUtil.ISO_EXPANDED_DATE_FORMAT); if (Common.isNotNull(excel.getContractStart())) {
String excelConYearMonthDay = DateUtil.formatDatePatten(excel.getContractStart(),DateUtil.ISO_EXPANDED_DATE_FORMAT); String conYearMonthDay = DateUtil.formatDatePatten(empVo.getContractStart(), DateUtil.ISO_EXPANDED_DATE_FORMAT);
if (!conYearMonthDay.equals(excelConYearMonthDay)) { String excelConYearMonthDay = DateUtil.formatDatePatten(excel.getContractStart(), DateUtil.ISO_EXPANDED_DATE_FORMAT);
errorMessageList.add(new ErrorMessage(excel.getRowIndex(), "系统内[合同]起缴日期年月日【" if (!conYearMonthDay.equals(excelConYearMonthDay)) {
+ conYearMonthDay + "】与派单[合同]日期的年月日【" + excelConYearMonthDay + "】不一致!禁止派单!")); errorMessageList.add(new ErrorMessage(excel.getRowIndex(), "系统内[合同]起缴日期年月日【"
return true; + conYearMonthDay + "】与派单[合同]日期的年月日【" + excelConYearMonthDay + "】不一致!禁止派单!"));
return true;
}
} }
String conYearMonth = DateUtil.formatDatePatten(empVo.getContractStart(),DateUtil.DATETIME_YYYYMM); String conYearMonth = DateUtil.formatDatePatten(empVo.getContractStart(),DateUtil.DATETIME_YYYYMM);
if (Common.isEmpty(excel.getTrustRemark())) { if (Common.isEmpty(excel.getTrustRemark())) {
......
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