修复同步问题
parent
f433f89ed5
commit
588e52939a
|
@ -55,8 +55,9 @@ public class UpdateState extends State {
|
||||||
whereList.add(definition.getWhereParam());
|
whereList.add(definition.getWhereParam());
|
||||||
}
|
}
|
||||||
RowDefinition rowDefinition = rowDefinitionList.get(0);
|
RowDefinition rowDefinition = rowDefinitionList.get(0);
|
||||||
|
String tempConditionScript = rowDefinition.getConditionScript();
|
||||||
String updateSql = MapperBuilderSql.builderUpdateSql(assignTable, rowDefinition.getUpdateParam(),"upItem");
|
String updateSql = MapperBuilderSql.builderUpdateSql(assignTable, rowDefinition.getUpdateParam(),"upItem");
|
||||||
updateSql = updateSql + " where " + conditionScript;
|
updateSql = updateSql + " where " + tempConditionScript;
|
||||||
boolean flag = this.configMapper.executeUpdateBatchCusSql(updateSql, updateList, whereList);
|
boolean flag = this.configMapper.executeUpdateBatchCusSql(updateSql, updateList, whereList);
|
||||||
logger.info("批量更新处理结果 ==>"+flag);
|
logger.info("批量更新处理结果 ==>"+flag);
|
||||||
//如果为主表则处理明细数据
|
//如果为主表则处理明细数据
|
||||||
|
|
|
@ -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," +
|
@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, " +
|
" 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," +
|
" dyjbr, (select lastname from hrmresource where id = dyjbr) dyjbr_span," +
|
||||||
" djr, (select lastname from hrmresource where id = djr) djr_span " +
|
" djr, (select lastname from hrmresource where id = djr) djr_span " +
|
||||||
" from uf_zwfwdjjmb main $t{param.whereSql} order by dlsk1 ")
|
" from uf_zwfwdjjmb main $t{param.whereSql} order by dlsk1 ")
|
||||||
|
|
Loading…
Reference in New Issue