生产日报表逻辑修改

master
Yangwl 2 months ago
parent b2217b0e80
commit cab780b4df

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

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

Loading…
Cancel
Save