|
|
|
@ -19,6 +19,8 @@ package com.logpm.distribution.controller;
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
|
|
|
|
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; |
|
|
|
|
import com.logpm.basicdata.entity.BasicdataWarehouseEntity; |
|
|
|
|
import com.logpm.basicdata.feign.IBasicdataWarehouseClient; |
|
|
|
|
import com.logpm.distribution.entity.DistrilbutionBillStockEntity; |
|
|
|
|
import com.logpm.distribution.excel.DistributionBillOrderExcel; |
|
|
|
|
import com.logpm.distribution.excel.DistributionBillOrderPackExcel; |
|
|
|
@ -62,6 +64,10 @@ public class DistrilbutionBillStockController extends BladeController {
|
|
|
|
|
|
|
|
|
|
private final IDistrilbutionBillStockService distrilbutionBillStockService; |
|
|
|
|
|
|
|
|
|
private final IBasicdataWarehouseClient warehouseClient; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 提货单订单信息关联 详情 |
|
|
|
|
*/ |
|
|
|
@ -105,7 +111,14 @@ public class DistrilbutionBillStockController extends BladeController {
|
|
|
|
|
@GetMapping("/billOrderPack") |
|
|
|
|
@ApiOperationSupport(order = 1) |
|
|
|
|
@ApiOperation(value = "详情", notes = "传入distrilbutionBillLading") |
|
|
|
|
public R<IPage<DistributionBillOrderPackVO>> getBillOrderPack(@ApiIgnore @RequestParam Map<String, Object> distrilbutionBillStock, Query query) { |
|
|
|
|
public R getBillOrderPack(@ApiIgnore @RequestParam Map<String, Object> distrilbutionBillStock, Query query) { |
|
|
|
|
BasicdataWarehouseEntity myCurrentWarehouse = warehouseClient.getMyCurrentWarehouse(); |
|
|
|
|
if (Func.isEmpty(myCurrentWarehouse)){ |
|
|
|
|
//业务数据需要进行仓库选择
|
|
|
|
|
return R.fail(403,"未授权!!!"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
distrilbutionBillStock.put("warehouseId",myCurrentWarehouse.getId()); |
|
|
|
|
IPage<DistributionBillOrderPackVO> detail = distrilbutionBillStockService.getBillOrderPack(distrilbutionBillStock,Condition.getPage(query)); |
|
|
|
|
return R.data(detail); |
|
|
|
|
} |
|
|
|
|