Commit 3379e228 authored by chenjiuping's avatar chenjiuping

异常订单备案查询条件错误

parent b4996afa
...@@ -437,9 +437,7 @@ public class OrderExceptionServiceImpl extends AbstractService<OrderExceptionMap ...@@ -437,9 +437,7 @@ public class OrderExceptionServiceImpl extends AbstractService<OrderExceptionMap
if (StringUtils.isNotBlank(reqVo.getConsignor())) { if (StringUtils.isNotBlank(reqVo.getConsignor())) {
queryWrapper.eq("r.customer_id", reqVo.getConsignor()); queryWrapper.eq("r.customer_id", reqVo.getConsignor());
} }
if (StringUtils.isNotBlank(reqVo.getProductRecord())) {
queryWrapper.eqIfPresent("o.product_record", reqVo.getProductRecord());
}
queryWrapper.eq(StrUtil.isNotBlank(reqVo.getSalesmanId()), "o.salesman_id", reqVo.getSalesmanId()); queryWrapper.eq(StrUtil.isNotBlank(reqVo.getSalesmanId()), "o.salesman_id", reqVo.getSalesmanId());
if (null != reqVo.getCustomerIds() && reqVo.getCustomerIds().size() > 0) { if (null != reqVo.getCustomerIds() && reqVo.getCustomerIds().size() > 0) {
...@@ -494,6 +492,9 @@ public class OrderExceptionServiceImpl extends AbstractService<OrderExceptionMap ...@@ -494,6 +492,9 @@ public class OrderExceptionServiceImpl extends AbstractService<OrderExceptionMap
//商品类型 //商品类型
queryWrapper.in(null != reqVo.getGoodsTypes(), "m.prod_type", reqVo.getGoodsTypes()); queryWrapper.in(null != reqVo.getGoodsTypes(), "m.prod_type", reqVo.getGoodsTypes());
//备案
queryWrapper.in(null != reqVo.getProductRecords(), "o.product_record", reqVo.getProductRecords());
queryWrapper.orderByDesc("e.id"); queryWrapper.orderByDesc("e.id");
return orderExceptionMapper.getOrderExceptionExcelList(queryWrapper, reqVo.getOrderExceptionType(), startTime, endTime); return orderExceptionMapper.getOrderExceptionExcelList(queryWrapper, reqVo.getOrderExceptionType(), startTime, endTime);
...@@ -2537,9 +2538,6 @@ public class OrderExceptionServiceImpl extends AbstractService<OrderExceptionMap ...@@ -2537,9 +2538,6 @@ public class OrderExceptionServiceImpl extends AbstractService<OrderExceptionMap
if (StringUtils.isNotBlank(reqVo.getConsignor())) { if (StringUtils.isNotBlank(reqVo.getConsignor())) {
queryWrapper.eq("oc.customer_id", reqVo.getConsignor()); queryWrapper.eq("oc.customer_id", reqVo.getConsignor());
} }
if (StringUtils.isNotBlank(reqVo.getProductRecord())) {
queryWrapper.eqIfPresent("a.product_record", reqVo.getProductRecord());
}
//queryWrapper.eq(StrUtil.isNotBlank(reqVo.getSalesmanId()), "a.salesman_id", reqVo.getSalesmanId()); //queryWrapper.eq(StrUtil.isNotBlank(reqVo.getSalesmanId()), "a.salesman_id", reqVo.getSalesmanId());
if (null != reqVo.getCustomerIds() && reqVo.getCustomerIds().size() > 0) { if (null != reqVo.getCustomerIds() && reqVo.getCustomerIds().size() > 0) {
...@@ -2602,6 +2600,8 @@ public class OrderExceptionServiceImpl extends AbstractService<OrderExceptionMap ...@@ -2602,6 +2600,8 @@ public class OrderExceptionServiceImpl extends AbstractService<OrderExceptionMap
queryWrapper.in(null != reqVo.getTypes(), "a.type", reqVo.getTypes()); queryWrapper.in(null != reqVo.getTypes(), "a.type", reqVo.getTypes());
//商品类型 //商品类型
queryWrapper.in(null != reqVo.getGoodsTypes(), "m.prod_type", reqVo.getGoodsTypes()); queryWrapper.in(null != reqVo.getGoodsTypes(), "m.prod_type", reqVo.getGoodsTypes());
//备案
queryWrapper.in(null != reqVo.getProductRecords(), "a.product_record", reqVo.getProductRecords());
queryWrapper.orderByDesc("b.id"); queryWrapper.orderByDesc("b.id");
...@@ -2668,9 +2668,6 @@ public class OrderExceptionServiceImpl extends AbstractService<OrderExceptionMap ...@@ -2668,9 +2668,6 @@ public class OrderExceptionServiceImpl extends AbstractService<OrderExceptionMap
if (StringUtils.isNotBlank(reqVo.getConsignor())) { if (StringUtils.isNotBlank(reqVo.getConsignor())) {
queryWrapper.eq("oc.customer_id", reqVo.getConsignor()); queryWrapper.eq("oc.customer_id", reqVo.getConsignor());
} }
if (StringUtils.isNotBlank(reqVo.getProductRecord())) {
queryWrapper.eqIfPresent("a.product_record", reqVo.getProductRecord());
}
//queryWrapper.eq(StrUtil.isNotBlank(reqVo.getSalesmanId()), "a.salesman_id", reqVo.getSalesmanId()); //queryWrapper.eq(StrUtil.isNotBlank(reqVo.getSalesmanId()), "a.salesman_id", reqVo.getSalesmanId());
if (null != reqVo.getCustomerIds() && reqVo.getCustomerIds().size() > 0) { if (null != reqVo.getCustomerIds() && reqVo.getCustomerIds().size() > 0) {
...@@ -2726,6 +2723,9 @@ public class OrderExceptionServiceImpl extends AbstractService<OrderExceptionMap ...@@ -2726,6 +2723,9 @@ public class OrderExceptionServiceImpl extends AbstractService<OrderExceptionMap
//商品类型 //商品类型
queryWrapper.in(null != reqVo.getGoodsTypes(), "m.prod_type", reqVo.getGoodsTypes()); queryWrapper.in(null != reqVo.getGoodsTypes(), "m.prod_type", reqVo.getGoodsTypes());
//备案
queryWrapper.in(null != reqVo.getProductRecords(), "o.product_record", reqVo.getProductRecords());
StatisticsOrderVO vo = orderExceptionMapper.statisticsExceptionOrder(queryWrapper, reqVo.getOrderExceptionType(), startTime, endTime); StatisticsOrderVO vo = orderExceptionMapper.statisticsExceptionOrder(queryWrapper, reqVo.getOrderExceptionType(), startTime, endTime);
if (Objects.nonNull(vo)) { if (Objects.nonNull(vo)) {
vo.setTotalVolume(new BigDecimal(vo.getTotalVolume()).setScale(2, RoundingMode.HALF_UP).toString()); vo.setTotalVolume(new BigDecimal(vo.getTotalVolume()).setScale(2, RoundingMode.HALF_UP).toString());
......
...@@ -53,8 +53,8 @@ public class OrderExceptionQueryVO { ...@@ -53,8 +53,8 @@ public class OrderExceptionQueryVO {
@ApiModelProperty(value = "发货人") @ApiModelProperty(value = "发货人")
private String consignor; private String consignor;
@ApiModelProperty(value = "备案") /* @ApiModelProperty(value = "备案")
private String productRecord; private String productRecord;*/
@ApiModelProperty(value = "1:入仓时间2:处理时间") @ApiModelProperty(value = "1:入仓时间2:处理时间")
private String dateType; private String dateType;
...@@ -118,4 +118,7 @@ public class OrderExceptionQueryVO { ...@@ -118,4 +118,7 @@ public class OrderExceptionQueryVO {
@ApiModelProperty(value = "商品类型") @ApiModelProperty(value = "商品类型")
private List<Long> goodsTypes; private List<Long> goodsTypes;
@ApiModelProperty(value = "备案")
private List<Integer> productRecords;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment