|
|
@@ -441,6 +441,9 @@
|
|
|
<if test="pickupDateEnd != null">
|
|
|
AND tpp.pickup_date < #{pickupDateEnd}::timestamp with time zone + interval '1 day'
|
|
|
</if>
|
|
|
+ <if test="searchText !=null and searchText!='' " >
|
|
|
+ AND tpp.pur_no LIKE concat('%',my_ex.likequery(#{searchText}), '%')
|
|
|
+ </if>
|
|
|
</where>
|
|
|
</sql>
|
|
|
|
|
|
@@ -534,6 +537,8 @@
|
|
|
,tms1.staff_name as "makeStaffName"
|
|
|
,tmp.sup_name as "supplierName"
|
|
|
,tmw.wh_name as "whName"
|
|
|
+ ,tmw.wh_name as "whName"
|
|
|
+ ,tmw.wh_name as "whName"
|
|
|
FROM dkic_b.t_psi_purchase tpp
|
|
|
left join dkic_b.t_psi_purchase_item tppi on tppi.pur_id = tpp.pur_id
|
|
|
left join dkic_b.t_mst_goods_sku tmgs on tmgs.sku_id = tppi.sku_id
|
|
|
@@ -544,7 +549,10 @@
|
|
|
Left join dkic_b.t_mst_staff tms on tpp.staff_id = tms.staff_id
|
|
|
Left join dkic_b.t_mst_staff tms1 on tpp.make_staff = tms1.staff_id
|
|
|
Left join dkic_b.t_mst_warehouse tmw on tpp.wh_id = tmw.wh_id
|
|
|
+
|
|
|
+
|
|
|
<include refid="Condition_1"/>
|
|
|
+ ORDER BY tpp.make_time
|
|
|
<if test="pageSize != null and currentPage != null and pageSize != 0 and currentPage != 0">
|
|
|
limit #{end} offset #{start}
|
|
|
</if>
|