From 588e52939a5308d58ceaa03239f18e3962c64561 Mon Sep 17 00:00:00 2001 From: ic_excellent <2570192571@qq.com> Date: Tue, 18 Jul 2023 16:52:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=90=8C=E6=AD=A5=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/aiyh/utils/response_deal/state/UpdateState.java | 3 ++- .../com/api/bokang/xiao/sh_bigdata/mapper/ReportMapper.java | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/aiyh/utils/response_deal/state/UpdateState.java b/src/main/java/aiyh/utils/response_deal/state/UpdateState.java index 3c39156..481486d 100644 --- a/src/main/java/aiyh/utils/response_deal/state/UpdateState.java +++ b/src/main/java/aiyh/utils/response_deal/state/UpdateState.java @@ -55,8 +55,9 @@ public class UpdateState extends State { whereList.add(definition.getWhereParam()); } RowDefinition rowDefinition = rowDefinitionList.get(0); + String tempConditionScript = rowDefinition.getConditionScript(); String updateSql = MapperBuilderSql.builderUpdateSql(assignTable, rowDefinition.getUpdateParam(),"upItem"); - updateSql = updateSql + " where " + conditionScript; + updateSql = updateSql + " where " + tempConditionScript; boolean flag = this.configMapper.executeUpdateBatchCusSql(updateSql, updateList, whereList); logger.info("批量更新处理结果 ==>"+flag); //如果为主表则处理明细数据 diff --git a/src/main/java/com/api/bokang/xiao/sh_bigdata/mapper/ReportMapper.java b/src/main/java/com/api/bokang/xiao/sh_bigdata/mapper/ReportMapper.java index 255ccdf..b6c5814 100644 --- a/src/main/java/com/api/bokang/xiao/sh_bigdata/mapper/ReportMapper.java +++ b/src/main/java/com/api/bokang/xiao/sh_bigdata/mapper/ReportMapper.java @@ -39,7 +39,7 @@ public interface ReportMapper { @Select("select id,hbwb,ysclwb,gzrywb,gzclwb,ldrwb,sfsjyc,ddsjyc,dlsk,yslx,hbcc,sfsj,ddsj,sfd,ddd,wdwcl,dwcljsy,wdwclqt,xcap,lxr," + " lxrdh,bz,gzcl,gzry,zs,dyjbr,djr,ldr,lddw,rwzt,ykdh,gbs, " + - " (select LISTAGG(concat(wb, ',', zw), '-') WITHIN GROUP (ORDER BY wb) from uf_zwfwdjjmb_dt1 where mainid = main.id) ysdx, " + + " (select LISTAGG(concat(wb, ',', dw), '-') WITHIN GROUP (ORDER BY wb) from uf_zwfwdjjmb_dt1 where mainid = main.id) ysdx, " + " dyjbr, (select lastname from hrmresource where id = dyjbr) dyjbr_span," + " djr, (select lastname from hrmresource where id = djr) djr_span " + " from uf_zwfwdjjmb main $t{param.whereSql} order by dlsk1 ")