From 2466722a947ddd22ce3cace4df049d1053ae36f6 Mon Sep 17 00:00:00 2001 From: bai <1643359946@qq.com> Date: Tue, 31 Oct 2023 09:17:29 +0800 Subject: [PATCH] =?UTF-8?q?2023=E5=B9=B410=E6=9C=8831=E6=97=A5=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E6=9F=A5=E4=B8=8D=E5=88=B0=E5=87=80=E6=9C=88=E7=BB=BC?= =?UTF-8?q?=E5=90=88=E6=95=99=E5=AD=A6=E6=A5=BC=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../kc/grab/SynchronizationService/SyncTJwJsjbxxb.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/jeecg-module-main/src/main/java/org/jeecg/modules/kc/grab/SynchronizationService/SyncTJwJsjbxxb.java b/jeecg-module-main/src/main/java/org/jeecg/modules/kc/grab/SynchronizationService/SyncTJwJsjbxxb.java index 1ffc3068..23343e6f 100644 --- a/jeecg-module-main/src/main/java/org/jeecg/modules/kc/grab/SynchronizationService/SyncTJwJsjbxxb.java +++ b/jeecg-module-main/src/main/java/org/jeecg/modules/kc/grab/SynchronizationService/SyncTJwJsjbxxb.java @@ -4,6 +4,7 @@ import cn.hutool.core.bean.BeanUtil; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import lombok.extern.slf4j.Slf4j; import org.apache.commons.compress.utils.Lists; +import org.apache.commons.lang3.StringUtils; import org.jeecg.modules.kc.grab.SynchronizationService.base.BaseSync; import org.jeecg.modules.kc.grab.exports.entity.TJwJsjbxx; import org.jeecg.modules.kc.grab.exports.service.ITJwJsjbxxService; @@ -80,7 +81,11 @@ public class SyncTJwJsjbxxb extends BaseSync { List list = kcJiaoxuelouInfoService.list(); list.forEach(x -> { QueryWrapper qw = new QueryWrapper<>(); - qw.apply("jxlh in (select JZWH from xxhbjxljbxx where jzwmc in ('"+x.getJxlhName()+"') and yxh is not null)"); + if(StringUtils.equals("净月综合教学楼",x.getJxlhName())){ + qw.apply("jxlh in (select JZWH from xxhbjxljbxx where jzwmc in ('"+x.getJxlhName()+"') and yxh is null)"); + }else{ + qw.apply("jxlh in (select JZWH from xxhbjxljbxx where jzwmc in ('"+x.getJxlhName()+"') and yxh is not null)"); + } x.setJsNum(String.valueOf(impService.count(qw))); }); kcJiaoxuelouInfoService.updateBatchById(list);