Commit 956b60f4 by 范富荣

feat:新增区域经理查询/统计订单列表接口

1 parent 71894e25
...@@ -69,6 +69,7 @@ import cn.com.glsx.dj.smartcarlife.dto.GoodsOrderDTO; ...@@ -69,6 +69,7 @@ import cn.com.glsx.dj.smartcarlife.dto.GoodsOrderDTO;
import cn.com.glsx.dj.smartcarlife.dto.GoodsOrderLiveQRCodeDTO; import cn.com.glsx.dj.smartcarlife.dto.GoodsOrderLiveQRCodeDTO;
import cn.com.glsx.dj.smartcarlife.dto.GoodsOrderPerformanceDTO; import cn.com.glsx.dj.smartcarlife.dto.GoodsOrderPerformanceDTO;
import cn.com.glsx.dj.smartcarlife.dto.GoodsOrderStatDTO; import cn.com.glsx.dj.smartcarlife.dto.GoodsOrderStatDTO;
import cn.com.glsx.dj.smartcarlife.dto.GoodsOrderApplyStatDTO;
import cn.com.glsx.dj.smartcarlife.dto.GoodsOrderUpdateDTO; import cn.com.glsx.dj.smartcarlife.dto.GoodsOrderUpdateDTO;
import cn.com.glsx.dj.smartcarlife.dto.GoodsSubOrderDTO; import cn.com.glsx.dj.smartcarlife.dto.GoodsSubOrderDTO;
import cn.com.glsx.dj.smartcarlife.dto.LifeCustomerCouponDTO; import cn.com.glsx.dj.smartcarlife.dto.LifeCustomerCouponDTO;
...@@ -262,6 +263,30 @@ public class GoodsOrderController { ...@@ -262,6 +263,30 @@ public class GoodsOrderController {
return RopResponse.result(RopErrorEnum.SCL_ORDER_SEARCH_FAILURE); return RopResponse.result(RopErrorEnum.SCL_ORDER_SEARCH_FAILURE);
} }
@ServiceMethod(method="dj.api.smartcarlife.order.search.containPackageGoods.byArea", needInSession= NeedInSessionType.YES)
@ApiOperation("区域经理-搜索订单(含套餐)")
public RopResponse<RpcPagination<GoodsOrderDTO>> searchPackageByArea(SearchGoodsOrderRequest request) {
RpcPagination<GoodsOrderDTO> pagination = new RpcPagination<>();
pagination.setPageNum(request.getPageNum() == null ? 1:request.getPageNum());
pagination.setPageSize(request.getPageSize() == null ? 10:request.getPageSize());
GoodsOrderDTO condition = GoodsOrderDTOConvert.INSTANCE.fromSearchGoodsOrderRequest(request);
condition.setYqMerchantIds(request.getSellerMerchantIds());
condition.setOrderTypeList(Arrays.asList(OrderType.NORMAL.getValue(),OrderType.ABNORMAL.getValue(),
OrderType.UNCOLLECTED.getValue()));
condition.setMerchantIdList(Arrays.asList(request.getMerchantId()));
//区域经理,只能查看自己负责的订单
condition.setAdvanceUserId(CommonUtil.getLoginUserInfo().getUuid());
pagination.setCondition(condition);
logger.info("区域经理-搜索订单(含套餐)整合[{}]", JSON.toJSONString(condition));
RpcResponse<RpcPagination<GoodsOrderDTO>> res = goodsOrderRemote.listContainPackageGoodsOrderPage(pagination);
if(res.hasResult()){
return RopResponse.success(res.getResult());
}else{
logger.error("区域经理-搜索订单失败,msg:{}", res.getMessage());
}
return RopResponse.result(RopErrorEnum.SCL_ORDER_SEARCH_FAILURE);
}
@ServiceMethod(method="dj.api.smartcarlife.order.updateOrderStatus", needInSession= NeedInSessionType.YES) @ServiceMethod(method="dj.api.smartcarlife.order.updateOrderStatus", needInSession= NeedInSessionType.YES)
@ApiOperation("修改订单状态为撤销") @ApiOperation("修改订单状态为撤销")
...@@ -293,6 +318,20 @@ public class GoodsOrderController { ...@@ -293,6 +318,20 @@ public class GoodsOrderController {
return RopResponse.error(res); return RopResponse.error(res);
} }
@ApiOperation("根据审批状态统计订单数")
@ServiceMethod(method = "dj.api.smartcarlife.order.statByApplyStatus", needInSession = NeedInSessionType.YES)
public RopResponse<GoodsOrderApplyStatDTO> statByApplyStatus(SearchGoodsOrderRequest request){
GoodsOrderDTO goodsOrderDTO = GoodsOrderDTOConvert.INSTANCE.fromSearchGoodsOrderRequest(request);
goodsOrderDTO.setYqMerchantIds(request.getSellerMerchantIds());
goodsOrderDTO.setOrderTypeList(Arrays.asList(OrderType.NORMAL.getValue(),OrderType.ABNORMAL.getValue(),
OrderType.UNCOLLECTED.getValue()));
goodsOrderDTO.setMerchantIdList(Arrays.asList(request.getMerchantId()));
//区域经理,只能查看自己负责的订单
goodsOrderDTO.setAdvanceUserId(CommonUtil.getLoginUserInfo().getUuid());
RpcResponse<GoodsOrderApplyStatDTO> res = goodsOrderRemote.statByApplyStatus(goodsOrderDTO);
return CommonUtil.convertRopResponse(res);
}
@ServiceMethod(method="dj.api.smartcarlife.order.search.noLogin", needInSession= NeedInSessionType.NO) @ServiceMethod(method="dj.api.smartcarlife.order.search.noLogin", needInSession= NeedInSessionType.NO)
@ApiOperation("搜索订单") @ApiOperation("搜索订单")
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!