|
@@ -1005,19 +1005,22 @@ public class YyQfmxServiceImpl extends ServiceImpl<YyQfmxMapper, YyQfmx> impleme
|
|
|
.eq(YyCblr::getJsbz, JsbzEnum.未算费)
|
|
|
.eq(YyCblr::getShbz, ShbzEnum.审核通过)
|
|
|
.eq(YyCblr::getCbbz, CbbzEnum.已抄表)
|
|
|
- .eq(YyCblr::getJfzt, "1")
|
|
|
.gt(YyCblr::getSl, BigDecimal.ZERO)
|
|
|
- .apply("not exists (select 1 from yh_bjfl_fb fb left join yh_bjfl_zb zb on " +
|
|
|
- "fb.zb_id=zb.id where fb.zb_id<>fb.id and zb.isdisabled='1' and " +
|
|
|
- "fb.yhbh||fb.cbkh)=a.cbkid)")
|
|
|
+ .notExists("select 1 from yh_bjfl_fb fb left join yh_bjfl_zb zb on fb.zb_id=zb.id " +
|
|
|
+ "where fb.zb_id<>fb.id and zb.isdisabled='1' and (fb.yhbh||fb.cbkh)=cbkid")
|
|
|
.list();
|
|
|
- int count = this.Tasksf(cblrs);
|
|
|
Syscommlog syscommlog = new Syscommlog();
|
|
|
syscommlog.setTablename("yy_qfmx");
|
|
|
syscommlog.setMstext("自动算费suanfeiTask");
|
|
|
syscommlog.setAddate(LocalDateTime.now().format(DateTimeFormatter.ISO_DATE_TIME));
|
|
|
- syscommlog.setRemark(String.format("调用算费,成功%s条,失败%s条", count, cblrs.size() - count));
|
|
|
- syscommlog.setUserid(SecurityUtils.getUserId().toString());
|
|
|
+ if (!cblrs.isEmpty()) {
|
|
|
+ int count = this.Tasksf(cblrs);
|
|
|
+ syscommlog.setRemark(String.format("调用算费,成功%s条,失败%s条", count, cblrs.size() - count));
|
|
|
+
|
|
|
+ } else {
|
|
|
+ syscommlog.setRemark("调用算费:无未算费数据");
|
|
|
+ }
|
|
|
+ syscommlog.setUserid("3");
|
|
|
syscommlogService.save(syscommlog);
|
|
|
}
|
|
|
|