Commit 9a11f7e2 authored by zhaoyuan's avatar zhaoyuan

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

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