|
|
@ -113,6 +113,7 @@ public class PdmBdWorkorderServiceImpl extends ServiceImpl<PdmBdWorkorderMapper, |
|
|
|
res.put("custer_no", entity.getCuster_no()); |
|
|
|
entity.setPlan_qty(ceil > inventoryCeil ? BigDecimal.valueOf(inventoryCeil) : BigDecimal.valueOf(ceil)); |
|
|
|
entity.setExt_data(res.toJSONString()); |
|
|
|
entity.setProduce_order(entity.getOrder_no()); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
@ -224,7 +225,7 @@ public class PdmBdWorkorderServiceImpl extends ServiceImpl<PdmBdWorkorderMapper, |
|
|
|
IPage<MesOrderInfo> pages = new Page<>(page, size); |
|
|
|
int currentPage = page * size; |
|
|
|
int currentSize = pageQuery.getPage() == 0 ? 1 : pageQuery.getPage() * size; |
|
|
|
List<MesOrderInfo> mesOrderInfoList = wmsToMesService.selectPageMesOrder(currentPage, currentSize); |
|
|
|
List<MesOrderInfo> mesOrderInfoList = wmsToMesService.selectPageMesOrder(query.getMaterialId(), currentPage, currentSize); |
|
|
|
pages.setRecords(mesOrderInfoList); |
|
|
|
return pages; |
|
|
|
} |
|
|
|