Commit cfb561b6 by 张富康

Merge branch 'v5.7.4' into 紧急需求_采购订单额大于等于5万触发经理审核

2 parents eaa1e83a 56af3e55
...@@ -43,12 +43,21 @@ public class MerchantShopGoodsStockController { ...@@ -43,12 +43,21 @@ public class MerchantShopGoodsStockController {
@ServiceMethod(method = "dj.api.smartcarlife.merchantShopGoodsStock.page", needInSession = NeedInSessionType.YES) @ServiceMethod(method = "dj.api.smartcarlife.merchantShopGoodsStock.page", needInSession = NeedInSessionType.YES)
public RopResponse<RpcPagination<MerchantShopGoodsStockPageResponse>> page(MerchantShopGoodsStockPageRequest request){ public RopResponse<RpcPagination<MerchantShopGoodsStockPageResponse>> page(MerchantShopGoodsStockPageRequest request){
RpcPagination<MerchantShopGoodsStockDTO> pagination = CommonUtil.getRpcPagination(MerchantShopGoodsStockDTO.class); RpcPagination<MerchantShopGoodsStockDTO> pagination = CommonUtil.getRpcPagination(MerchantShopGoodsStockDTO.class);
pagination.getCondition().setYqMerchantIds(CommonUtil.getMerchantIdsConsiderMainPartner()); if (request.getQueryOtherMerchant() != null && request.getQueryOtherMerchant()) {
if (Objects.nonNull(request.getYqMerchantId())) { if (Objects.nonNull(request.getYqMerchantId())) {
List<Integer> list = new ArrayList<>(CommonUtil.getMerchantIdsConsiderMainPartner()); List<Integer> list = new ArrayList<>();
list.add(request.getYqMerchantId()); List<Integer> yqMerchantIdList = CommonUtil.getMerchantIdsConsiderMainPartner();
pagination.getCondition().setYqMerchantIds(list); if (CollectionUtils.isNotEmpty(yqMerchantIdList)) {
list.addAll(yqMerchantIdList);
}
list.add(request.getYqMerchantId());
log.info("yqMerchantId list:{}", list);
pagination.getCondition().setYqMerchantIds(list);
}
} else {
pagination.getCondition().setYqMerchantIds(CommonUtil.getMerchantIdsConsiderMainPartner());
} }
RpcResponse<RpcPagination<MerchantShopGoodsStockDTO>> res = merchantShopGoodsStockRemote.page(pagination); RpcResponse<RpcPagination<MerchantShopGoodsStockDTO>> res = merchantShopGoodsStockRemote.page(pagination);
if(res.hasResult()){ if(res.hasResult()){
pagination = res.getResult(); pagination = res.getResult();
......
...@@ -37,8 +37,8 @@ public class PurchaseOrderDeliveryPageRequest extends AbstractRopRequest{ ...@@ -37,8 +37,8 @@ public class PurchaseOrderDeliveryPageRequest extends AbstractRopRequest{
@ApiModelProperty(name = "merchantName",notes = "所属商户",required = false, example = "cx园区店") @ApiModelProperty(name = "merchantName",notes = "所属商户",required = false, example = "cx园区店")
private String merchantName; private String merchantName;
@ApiModelProperty(name = "putStatus",notes = "入库状态(0.待签收,1.未入库,2.已入库,3.部分入库)",required = false, example = "1") @ApiModelProperty(name = "putStatusStr",notes = "入库状态(0.待签收,1.未入库,2.已入库,3.部分入库)",required = false, example = "1")
private Byte putStatus; private String putStatusStr;
/** /**
* 订单类型 0采购单 1调拨单 * 订单类型 0采购单 1调拨单
......
...@@ -73,6 +73,8 @@ public class PurchaseOrderShippingListRequest extends AbstractRopRequest { ...@@ -73,6 +73,8 @@ public class PurchaseOrderShippingListRequest extends AbstractRopRequest {
@ApiModelProperty(notes="发货方") @ApiModelProperty(notes="发货方")
private String shipper; private String shipper;
@ApiModelProperty(notes="签收状态")
private List<Integer> signStatusList; private List<Integer> signStatusList;
@ApiModelProperty(notes="签收状态")
private String signStatusStr;
} }
...@@ -39,4 +39,7 @@ public class MerchantShopGoodsStockPageRequest extends AbstractRopRequest { ...@@ -39,4 +39,7 @@ public class MerchantShopGoodsStockPageRequest extends AbstractRopRequest {
@ApiModelProperty(notes="查询时间") @ApiModelProperty(notes="查询时间")
private String queryDate; private String queryDate;
@ApiModelProperty(notes = "是否查看其他园区店库存 true / false 服务商saas传true")
private Boolean queryOtherMerchant;
} }
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!