2023年10月31日 修复查不到净月综合教学楼的问题
This commit is contained in:
parent
839a6efccf
commit
2466722a94
|
@ -4,6 +4,7 @@ import cn.hutool.core.bean.BeanUtil;
|
||||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.apache.commons.compress.utils.Lists;
|
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.SynchronizationService.base.BaseSync;
|
||||||
import org.jeecg.modules.kc.grab.exports.entity.TJwJsjbxx;
|
import org.jeecg.modules.kc.grab.exports.entity.TJwJsjbxx;
|
||||||
import org.jeecg.modules.kc.grab.exports.service.ITJwJsjbxxService;
|
import org.jeecg.modules.kc.grab.exports.service.ITJwJsjbxxService;
|
||||||
|
@ -80,7 +81,11 @@ public class SyncTJwJsjbxxb extends BaseSync {
|
||||||
List<KcJiaoxuelouInfo> list = kcJiaoxuelouInfoService.list();
|
List<KcJiaoxuelouInfo> list = kcJiaoxuelouInfoService.list();
|
||||||
list.forEach(x -> {
|
list.forEach(x -> {
|
||||||
QueryWrapper<Xxhbjsjbxx> qw = new QueryWrapper<>();
|
QueryWrapper<Xxhbjsjbxx> qw = new QueryWrapper<>();
|
||||||
|
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)");
|
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)));
|
x.setJsNum(String.valueOf(impService.count(qw)));
|
||||||
});
|
});
|
||||||
kcJiaoxuelouInfoService.updateBatchById(list);
|
kcJiaoxuelouInfoService.updateBatchById(list);
|
||||||
|
|
Loading…
Reference in New Issue