From d738497ab2cefa032a8a443083eeccf4bd1e595b Mon Sep 17 00:00:00 2001 From: Harryxzy <822365880@qq.com> Date: Fri, 5 Sep 2025 10:24:38 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A2=86=E6=82=A6=E5=BB=BA=E6=A8=A1=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../salary/service/impl/LyPZServiceImpl.java | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) 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