|
...
|
...
|
@@ -43,6 +43,7 @@ |
|
43
|
43
|
tb.create_time,
|
|
44
|
44
|
tb.update_time
|
|
45
|
45
|
FROM tbl_replenishment_order AS tb
|
|
|
46
|
+ left join base_data_customer as cu on cu.id = tb.customer_id
|
|
46
|
47
|
</sql>
|
|
47
|
48
|
|
|
48
|
49
|
<select id="query" resultMap="ReplenishmentOrder">
|
|
...
|
...
|
@@ -69,6 +70,9 @@ |
|
69
|
70
|
<if test="vo.applicationDateEnd != null">
|
|
70
|
71
|
AND tb.create_time <= #{vo.applicationDateEnd}
|
|
71
|
72
|
</if>
|
|
|
73
|
+ <if test="vo.searchKey != null and vo.searchKey != ''">
|
|
|
74
|
+ AND (tb.code LIKE CONCAT('%', #{vo.searchKey},'%') OR cu.name LIKE CONCAT('%', #{vo.searchKey},'%'))
|
|
|
75
|
+ </if>
|
|
72
|
76
|
</where>
|
|
73
|
77
|
order by tb.create_time desc
|
|
74
|
78
|
</select>
|
...
|
...
|
|