|
|
@ -154,7 +154,7 @@
|
|
|
|
<select id="selectPurApplyDetailList" resultType="com.glxp.api.res.purchase.PurOrderDetailResponse">
|
|
|
|
<select id="selectPurApplyDetailList" resultType="com.glxp.api.res.purchase.PurOrderDetailResponse">
|
|
|
|
SELECT pur_apply_detail.*,
|
|
|
|
SELECT pur_apply_detail.*,
|
|
|
|
pur_apply.billNo,
|
|
|
|
pur_apply.billNo,
|
|
|
|
basic_products.ggxh spec,
|
|
|
|
COALESCE(basic_products.ggxh,basic_products.bzgg) AS spec,
|
|
|
|
basic_products.nameCode,
|
|
|
|
basic_products.nameCode,
|
|
|
|
basic_products.manufactory,
|
|
|
|
basic_products.manufactory,
|
|
|
|
basic_products.ylqxzcrbarmc,
|
|
|
|
basic_products.ylqxzcrbarmc,
|
|
|
@ -185,7 +185,10 @@
|
|
|
|
AND productName like concat('%', #{productName}, '%')
|
|
|
|
AND productName like concat('%', #{productName}, '%')
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="spec != null and spec != ''">
|
|
|
|
<if test="spec != null and spec != ''">
|
|
|
|
AND basic_products.ggxh like concat('%', #{spec}, '%')
|
|
|
|
AND (
|
|
|
|
|
|
|
|
basic_products.ggxh like concat('%', #{spec}, '%')
|
|
|
|
|
|
|
|
or basic_products.bzgg like concat('%', #{spec}, '%')
|
|
|
|
|
|
|
|
)
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="zczbhhzbapzbh != null and zczbhhzbapzbh != ''">
|
|
|
|
<if test="zczbhhzbapzbh != null and zczbhhzbapzbh != ''">
|
|
|
|
AND pur_apply_detail.zczbhhzbapzbh like concat('%', #{zczbhhzbapzbh}, '%')
|
|
|
|
AND pur_apply_detail.zczbhhzbapzbh like concat('%', #{zczbhhzbapzbh}, '%')
|
|
|
@ -203,6 +206,15 @@
|
|
|
|
and DATE_FORMAT(pur_apply.createTime, '%Y-%m-%d') <= #{endDate}
|
|
|
|
and DATE_FORMAT(pur_apply.createTime, '%Y-%m-%d') <= #{endDate}
|
|
|
|
]]>
|
|
|
|
]]>
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="keyWords != '' and keyWords != null">
|
|
|
|
|
|
|
|
AND (
|
|
|
|
|
|
|
|
basic_products.nameCode like concat('%', #{keyWords}, '%')
|
|
|
|
|
|
|
|
or productName like concat('%', #{keyWords}, '%')
|
|
|
|
|
|
|
|
or basic_products.ggxh like concat('%', #{keyWords}, '%')
|
|
|
|
|
|
|
|
or basic_products.bzgg LIKE concat('%', #{keyWords}, '%')
|
|
|
|
|
|
|
|
or basic_products.manufactory like concat('%', #{keyWords}, '%')
|
|
|
|
|
|
|
|
or pur_apply_detail.zczbhhzbapzbh like concat('%', #{keyWords}, '%'))
|
|
|
|
|
|
|
|
</if>
|
|
|
|
and (pur_apply.status = 3 or saf.status = 3)
|
|
|
|
and (pur_apply.status = 3 or saf.status = 3)
|
|
|
|
</where>
|
|
|
|
</where>
|
|
|
|
GROUP BY basic_products.uuid
|
|
|
|
GROUP BY basic_products.uuid
|
|
|
|