|
|
@ -51,7 +51,6 @@ public class PdmBdWorkorderServiceImpl extends ServiceImpl<PdmBdWorkorderMapper, |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private PdmBdWorkorderMapper pdmBdWorkorderMapper; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private WmsToAcsService wmsToAcsService; |
|
|
|
@Autowired |
|
|
@ -219,9 +218,14 @@ public class PdmBdWorkorderServiceImpl extends ServiceImpl<PdmBdWorkorderMapper, |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public IPage<MesOrderInfo> queryMesOrder(PdmBdWorkorderQuery query, PageQuery page) { |
|
|
|
IPage<MesOrderInfo> pages = new Page<>(page.getPage() + 1, page.getSize()); |
|
|
|
pages = wmsToMesService.selectPageMesOrder(pages, query.getMaterialId()); |
|
|
|
public IPage<MesOrderInfo> queryMesOrder(PdmBdWorkorderQuery query, PageQuery pageQuery) { |
|
|
|
Integer page = pageQuery.getPage() + 1; |
|
|
|
Integer size = pageQuery.getSize(); |
|
|
|
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); |
|
|
|
pages.setRecords(mesOrderInfoList); |
|
|
|
return pages; |
|
|
|
} |
|
|
|
|
|
|
|