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 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<KcJiaoxuelouInfo> list = kcJiaoxuelouInfoService.list();
|
||||
list.forEach(x -> {
|
||||
QueryWrapper<Xxhbjsjbxx> 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);
|
||||
|
|
Loading…
Reference in New Issue