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