Commit 9a11f7e2 authored by zhaoyuan's avatar zhaoyuan

/customer/products的请求参数中加入customerAddr字段

parent ec2bcbe0
...@@ -27,6 +27,7 @@ public interface OutboundOrderHeaderMapper extends BaseMapper<OutboundOrderHeade ...@@ -27,6 +27,7 @@ public interface OutboundOrderHeaderMapper extends BaseMapper<OutboundOrderHeade
List<OrderDetailListVo> selectCustomerProductSummary( List<OrderDetailListVo> selectCustomerProductSummary(
@Param("customerName") String customerName, @Param("customerName") String customerName,
@Param("customerCode") String customerCode, @Param("customerCode") String customerCode,
@Param("customerAddr") String customerAddr,
@Param("statusList") List<String> statusList, @Param("statusList") List<String> statusList,
@Param("startTime") Date startTime, @Param("startTime") Date startTime,
@Param("endTime") Date endTime, @Param("endTime") Date endTime,
......
...@@ -8,6 +8,7 @@ import java.util.Date; ...@@ -8,6 +8,7 @@ import java.util.Date;
public class CustomerProductQueryReq { public class CustomerProductQueryReq {
private String customerName; // 客户名称(模糊) private String customerName; // 客户名称(模糊)
private String customerCode; // 客户编码(精确) private String customerCode; // 客户编码(精确)
private String customerAddr; // 客户地址
private String status; // 订单状态 PENDING/TALLYING/DONE private String status; // 订单状态 PENDING/TALLYING/DONE
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date startTime; // 订单创建开始时间 private Date startTime; // 订单创建开始时间
......
...@@ -58,6 +58,7 @@ public class OutboundOrderServiceImpl implements OutboundOrderService { ...@@ -58,6 +58,7 @@ public class OutboundOrderServiceImpl implements OutboundOrderService {
page.setRecords(orderHeaderMapper.selectCustomerProductSummary( page.setRecords(orderHeaderMapper.selectCustomerProductSummary(
req.getCustomerName(), req.getCustomerName(),
req.getCustomerCode(), req.getCustomerCode(),
req.getCustomerAddr(),
statusList, statusList,
req.getStartTime(), req.getStartTime(),
req.getEndTime(), req.getEndTime(),
......
...@@ -140,6 +140,9 @@ ...@@ -140,6 +140,9 @@
<if test="customerCode != null and customerCode != ''"> <if test="customerCode != null and customerCode != ''">
AND h.customer_code = #{customerCode} AND h.customer_code = #{customerCode}
</if> </if>
<if test="customerAddr != null and customerAddr != ''">
AND h.customer_addr = #{customerAddr}
</if>
<if test="scanUser != null and scanUser != ''"> <if test="scanUser != null and scanUser != ''">
and h.scan_user= #{scanUser} and h.scan_user= #{scanUser}
</if> </if>
......
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