diff --git a/src/com/engine/salary/service/impl/LyPZServiceImpl.java b/src/com/engine/salary/service/impl/LyPZServiceImpl.java index 85df34ad0..0bf082fd7 100644 --- a/src/com/engine/salary/service/impl/LyPZServiceImpl.java +++ b/src/com/engine/salary/service/impl/LyPZServiceImpl.java @@ -1031,10 +1031,12 @@ public class LyPZServiceImpl extends Service implements LyPZService { } // 入库 if (CollectionUtils.isNotEmpty(needUpdateIds)) { + String formatLocalDateTime = SalaryDateUtil.getFormatLocalDateTime(new Date()); + List> partition = Lists.partition(needUpdateIds, 800); partition.forEach( part -> { String idStr = StringUtils.join(part, ","); - String updateSql = "update uf_sbgjj set sjsd = 0 where id in (" + idStr + ")"; + String updateSql = "update uf_sbgjj set sjsd = 0,modedatamodifydatetime='"+formatLocalDateTime+"' where id in (" + idStr + ")"; rs.execute(updateSql); }); // 获取社保公积金模块id @@ -1050,10 +1052,12 @@ public class LyPZServiceImpl extends Service implements LyPZService { } if (CollectionUtils.isNotEmpty(needUpdateGjjIds)) { + String formatLocalDateTime = SalaryDateUtil.getFormatLocalDateTime(new Date()); + List> partition = Lists.partition(needUpdateGjjIds, 800); partition.forEach( part -> { String idStr = StringUtils.join(part, ","); - String updateSql = "update uf_sbgjj set gjjsjsd = 0 where id in (" + idStr + ")"; + String updateSql = "update uf_sbgjj set gjjsjsd = 0,modedatamodifydatetime='"+formatLocalDateTime+"' where id in (" + idStr + ")"; rs.execute(updateSql); }); // 获取社保公积金模块id @@ -1541,10 +1545,11 @@ public class LyPZServiceImpl extends Service implements LyPZService { // 入库 if (CollectionUtils.isNotEmpty(needUpdateIds)) { + String formatLocalDateTime = SalaryDateUtil.getFormatLocalDateTime(new Date()); List> partition = Lists.partition(needUpdateIds, 800); partition.forEach( part -> { String idStr = StringUtils.join(part, ","); - String updateSql = "update uf_sbgjj set sjsd = 1 where id in (" + idStr + ")"; + String updateSql = "update uf_sbgjj set sjsd = 1,modedatamodifydatetime='"+formatLocalDateTime+"' where id in (" + idStr + ")"; rs.execute(updateSql); }); // 获取社保公积金模块id @@ -1561,10 +1566,11 @@ public class LyPZServiceImpl extends Service implements LyPZService { // 入库 if (CollectionUtils.isNotEmpty(needUpdateGjjIds)) { + String formatLocalDateTime = SalaryDateUtil.getFormatLocalDateTime(new Date()); List> partition = Lists.partition(needUpdateGjjIds, 800); partition.forEach( part -> { String idStr = StringUtils.join(part, ","); - String updateSql = "update uf_sbgjj set gjjsjsd = 1 where id in (" + idStr + ")"; + String updateSql = "update uf_sbgjj set gjjsjsd = 1,modedatamodifydatetime='"+formatLocalDateTime+"' where id in (" + idStr + ")"; rs.execute(updateSql); }); // 获取社保公积金模块id