|
|
|
|
@ -292,7 +292,7 @@ public class GoodsController extends BladeController { |
|
|
|
|
* 入库详情 |
|
|
|
|
*/ |
|
|
|
|
@GetMapping("inDetail") |
|
|
|
|
public R<IPage> inDetail(Goods goods, Query query) { |
|
|
|
|
public R<IPage<ProductStoreDetial>> inDetail(Goods goods, Query query) { |
|
|
|
|
LambdaQueryWrapper<ProductStoreDetial> wrapper = new LambdaQueryWrapper<>(); |
|
|
|
|
wrapper.eq(ProductStoreDetial::getGoodsId, goods.getId()); |
|
|
|
|
if (goods.getStatus() != null) { |
|
|
|
|
@ -593,7 +593,7 @@ public class GoodsController extends BladeController { |
|
|
|
|
* 出入库记录查询 |
|
|
|
|
*/ |
|
|
|
|
@GetMapping("/inAndOutRecord") |
|
|
|
|
public R<IPage> inAndOutRecord(String id, Query query, String type, Date startTime, Date endTime) { |
|
|
|
|
public R<IPage<InAndOutRecord>> inAndOutRecord(String id, Query query, String type, Date startTime, Date endTime) { |
|
|
|
|
List<InAndOutRecord> inAndOutRecordList = new ArrayList<>(); |
|
|
|
|
|
|
|
|
|
// 物品出库信息
|
|
|
|
|
@ -645,7 +645,9 @@ public class GoodsController extends BladeController { |
|
|
|
|
page.setCurrent(query.getCurrent()); |
|
|
|
|
page.setSize(query.getSize()); |
|
|
|
|
page.setTotal(inAndOutRecords.size()); |
|
|
|
|
page.setPages((inAndOutRecords.size() / query.getSize()) + 1); |
|
|
|
|
if (query.getSize() != null && query.getSize() > 0) { |
|
|
|
|
page.setPages((inAndOutRecords.size() / query.getSize()) + 1); |
|
|
|
|
} |
|
|
|
|
return R.data(page); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|