| | |
| | | cal.set(Calendar.MILLISECOND, 0); |
| | | cal.add(Calendar.DATE, dayCount); |
| | | QueryWrapper<KBBTJPDrawingBP> queryWrapper = new QueryWrapper<>(); |
| | | queryWrapper.select("scan_id,(task_quantity-isNull(report_count,0)) as notComplete,isNull((length*width*(task_quantity-isNull(report_count,0)))/1000000,0) as area_sum"). |
| | | gt("CreateDate",cal.getTime()).apply("task_quantity>isNull(report_count,0)"); |
| | | queryWrapper.select("OrderNo,(sum(task_quantity-isNull(report_count,0))) as notComplete,sum(isNull((length*width*(task_quantity-isNull(report_count,0)))/1000000,0)) as area_sum"). |
| | | gt("PlanDate",cal.getTime()).having("sum(task_quantity-isNull(report_count,0))>0") |
| | | .groupBy("OrderNo"); |
| | | List<Map> list=kBBTJPDrawingBPMapper.selectMaps((QueryWrapper)queryWrapper); |
| | | log.info("内容{}",list); |
| | | } |