生产日报表逻辑修改

master
Yangwl 2 months ago
parent b2217b0e80
commit cab780b4df

@ -250,7 +250,7 @@ public class MesReportWorkController extends BaseController {
@RequiresPermissions("mes:dailyReport:list") @RequiresPermissions("mes:dailyReport:list")
@GetMapping("/getDailyReportNew") @GetMapping("/getDailyReportNew")
@Log(title = "生日报表查询", businessType = BusinessType.QUERY) @Log(title = "生日报表查询", businessType = BusinessType.QUERY)
public TableDataInfo getDailyReportNew(MesDailyReportVo mesDailyReportVo) { public TableDataInfo getDailyReportNew(MesDailyReportVo mesDailyReportVo) {
startPage(); startPage();
List<MesDailyReportVo> list = mesReportWorkService.getDailyReportNew(mesDailyReportVo); List<MesDailyReportVo> list = mesReportWorkService.getDailyReportNew(mesDailyReportVo);

@ -456,10 +456,14 @@ public class MesReportWorkServiceImpl implements IMesReportWorkService {
sonMesReport = mesReportWorkMapper.getSumQuantityOne(quantityDto); sonMesReport = mesReportWorkMapper.getSumQuantityOne(quantityDto);
} }
//三层订单 //三层订单
QuantityDto quantityDtothree = new QuantityDto(); QuantityDto threeMesReport =new QuantityDto();
quantityDtothree.setWorkorderCode(sonMesReport.getWorkorderCode()); if (sonMesReport != null ){
quantityDtothree.setMachineCode(machineCode); QuantityDto quantityDtothree = new QuantityDto();
QuantityDto threeMesReport = mesReportWorkMapper.getSumQuantity(quantityDtothree); quantityDtothree.setWorkorderCode(sonMesReport.getWorkorderCode());
quantityDtothree.setMachineCode(machineCode);
threeMesReport = mesReportWorkMapper.getSumQuantity(quantityDtothree);
}
// 产量 // 产量
Long sumQua = 0L; Long sumQua = 0L;
// 实际产量 // 实际产量

Loading…
Cancel
Save