|
@@ -1,7 +1,7 @@
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
<mapper namespace="com.yh.saas.plugin.yiliangyiyun.mapper.ProcurementPlanInfoMapper">
|
|
<mapper namespace="com.yh.saas.plugin.yiliangyiyun.mapper.ProcurementPlanInfoMapper">
|
|
- <!-- 获得采购订单总数 -->
|
|
|
|
|
|
+ <!-- 获得采购计划总数 -->
|
|
<select id="getCountByCondition" parameterType="Map" resultType="java.lang.Integer">
|
|
<select id="getCountByCondition" parameterType="Map" resultType="java.lang.Integer">
|
|
SELECT
|
|
SELECT
|
|
COUNT(id)
|
|
COUNT(id)
|
|
@@ -14,7 +14,7 @@
|
|
OR lower(title) like lower(CONCAT('%',#{searchKeyWord},'%')))
|
|
OR lower(title) like lower(CONCAT('%',#{searchKeyWord},'%')))
|
|
</if>
|
|
</if>
|
|
</select>
|
|
</select>
|
|
- <!-- 获得采购订单列表 -->
|
|
|
|
|
|
+ <!-- 获得采购计划列表 -->
|
|
<select id="getListByCondition" parameterType="Map"
|
|
<select id="getListByCondition" parameterType="Map"
|
|
resultType="com.yh.saas.plugin.yiliangyiyun.entity.ProcurementPlanInfo">
|
|
resultType="com.yh.saas.plugin.yiliangyiyun.entity.ProcurementPlanInfo">
|
|
SELECT
|
|
SELECT
|
|
@@ -36,6 +36,9 @@
|
|
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 != ''">
|
|
|
|
+ AND (lower(goods_name) like lower(CONCAT('%',#{goodsName},'%'))
|
|
|
|
+ </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 != ''">
|
|
LIMIT ${startRecord}, ${pageSize}
|
|
LIMIT ${startRecord}, ${pageSize}
|