|
@@ -6,13 +6,14 @@
|
|
SELECT
|
|
SELECT
|
|
COUNT(id)
|
|
COUNT(id)
|
|
FROM procurement_plan_info
|
|
FROM procurement_plan_info
|
|
- WHERE
|
|
|
|
- comp_id = #{compId}
|
|
|
|
- and delete_flag = '0'
|
|
|
|
|
|
+ WHERE delete_flag = '0'
|
|
<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},'%')))
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="pcFlag != null and pcFlag != ''">
|
|
|
|
+ AND comp_id = #{compId}
|
|
|
|
+ </if>
|
|
</select>
|
|
</select>
|
|
<!-- 获得采购计划列表 -->
|
|
<!-- 获得采购计划列表 -->
|
|
<select id="getListByCondition" parameterType="Map"
|
|
<select id="getListByCondition" parameterType="Map"
|
|
@@ -29,15 +30,16 @@
|
|
status as status,
|
|
status as status,
|
|
update_date as updateDate
|
|
update_date as updateDate
|
|
FROM procurement_plan_info
|
|
FROM procurement_plan_info
|
|
- WHERE
|
|
|
|
- comp_id = #{compId}
|
|
|
|
- and delete_flag = '0'
|
|
|
|
|
|
+ WHERE delete_flag = '0'
|
|
<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},'%')))
|
|
</if>
|
|
</if>
|
|
<if test="goodsName != null and goodsName != ''">
|
|
<if test="goodsName != null and goodsName != ''">
|
|
- AND (lower(goods_name) like lower(CONCAT('%',#{goodsName},'%'))
|
|
|
|
|
|
+ AND goods_name = #{goodsName}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="pcFlag != null and pcFlag != ''">
|
|
|
|
+ AND comp_id = #{compId}
|
|
</if>
|
|
</if>
|
|
ORDER BY status DESC , update_date DESC
|
|
ORDER BY status DESC , update_date DESC
|
|
<if test="currentPage != null and currentPage != ''">
|
|
<if test="currentPage != null and currentPage != ''">
|