|
@@ -10,6 +10,10 @@
|
|
<if test="searchKeyWord != null and searchKeyWord != ''">
|
|
<if test="searchKeyWord != null and searchKeyWord != ''">
|
|
AND (lower(procurement_plan_no) like lower(CONCAT('%',#{searchKeyWord},'%'))
|
|
AND (lower(procurement_plan_no) like lower(CONCAT('%',#{searchKeyWord},'%'))
|
|
OR lower(title) like lower(CONCAT('%',#{searchKeyWord},'%')))
|
|
OR lower(title) like lower(CONCAT('%',#{searchKeyWord},'%')))
|
|
|
|
+ OR lower(goods_name) like lower(CONCAT('%',#{searchKeyWord},'%')))
|
|
|
|
+ </if>
|
|
|
|
+ <if test="receivePrivate != null and receivePrivate != '' and receivePrivate != '全国'">
|
|
|
|
+ AND (lower(receive_private) like lower(CONCAT('%',#{receivePrivate},'%'))
|
|
</if>
|
|
</if>
|
|
<if test="pcFlag != null and pcFlag != ''">
|
|
<if test="pcFlag != null and pcFlag != ''">
|
|
AND comp_id = #{compId}
|
|
AND comp_id = #{compId}
|
|
@@ -21,11 +25,15 @@
|
|
SELECT
|
|
SELECT
|
|
id,
|
|
id,
|
|
procurement_plan_no as procurementPlanNo,
|
|
procurement_plan_no as procurementPlanNo,
|
|
|
|
+ procurement_plan_type as procurementPlanType,
|
|
title as title,
|
|
title as title,
|
|
goods_name as goodsName,
|
|
goods_name as goodsName,
|
|
weight as weight,
|
|
weight as weight,
|
|
basis_price as basisPrice,
|
|
basis_price as basisPrice,
|
|
unit_price as unitPrice,
|
|
unit_price as unitPrice,
|
|
|
|
+ receive_private as receivePrivate,
|
|
|
|
+ receive_city as receiveCity,
|
|
|
|
+ receive_area as receiveArea,
|
|
receive_warehouse as receiveWarehouse,
|
|
receive_warehouse as receiveWarehouse,
|
|
status as status,
|
|
status as status,
|
|
update_date as updateDate
|
|
update_date as updateDate
|
|
@@ -34,9 +42,10 @@
|
|
<if test="searchKeyWord != null and searchKeyWord != ''">
|
|
<if test="searchKeyWord != null and searchKeyWord != ''">
|
|
AND (lower(procurement_plan_no) like lower(CONCAT('%',#{searchKeyWord},'%'))
|
|
AND (lower(procurement_plan_no) like lower(CONCAT('%',#{searchKeyWord},'%'))
|
|
OR lower(title) like lower(CONCAT('%',#{searchKeyWord},'%')))
|
|
OR lower(title) like lower(CONCAT('%',#{searchKeyWord},'%')))
|
|
|
|
+ OR lower(goods_name) like lower(CONCAT('%',#{searchKeyWord},'%')))
|
|
</if>
|
|
</if>
|
|
- <if test="goodsName != null and goodsName != ''">
|
|
|
|
- AND goods_name = #{goodsName}
|
|
|
|
|
|
+ <if test="receivePrivate != null and receivePrivate != '' and receivePrivate != '全国'">
|
|
|
|
+ AND (lower(receive_private) like lower(CONCAT('%',#{receivePrivate},'%'))
|
|
</if>
|
|
</if>
|
|
<if test="pcFlag != null and pcFlag != ''">
|
|
<if test="pcFlag != null and pcFlag != ''">
|
|
AND comp_id = #{compId}
|
|
AND comp_id = #{compId}
|