|
|
|
|
@ -55,4 +55,58 @@ |
|
|
|
|
</where> |
|
|
|
|
-- ORDER BY a.reqdate DESC |
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<select id="priceSheetDataAll" resultType="org.springblade.desk.oem.pojo.vo.PriceSheetVO"> |
|
|
|
|
SELECT |
|
|
|
|
a.*, |
|
|
|
|
a.coating_desc as coatingDesc, |
|
|
|
|
a.AU_AG_PRICE as auAgPrice, |
|
|
|
|
a.STANDARD_PROCESS_CODE as standardProcessCode |
|
|
|
|
FROM |
|
|
|
|
dba_mgr.v_mes_rb_prtprice a |
|
|
|
|
<where> |
|
|
|
|
<if test="ocCode != null and ocCode != ''"> |
|
|
|
|
AND a.splycode LIKE concat(concat('%', #{ocCode}),'%') |
|
|
|
|
</if> |
|
|
|
|
<if test="ocName != null and ocName != ''"> |
|
|
|
|
AND a.splyname LIKE concat(concat('%', #{ocName}),'%') |
|
|
|
|
</if> |
|
|
|
|
<if test="partCode != null and partCode != ''"> |
|
|
|
|
AND a.prtno LIKE concat(concat('%', #{partCode}),'%') |
|
|
|
|
</if> |
|
|
|
|
<if test="ppsCode != null and ppsCode != ''"> |
|
|
|
|
AND a.gxinfo LIKE concat(concat('%', #{ppsCode}),'%') |
|
|
|
|
</if> |
|
|
|
|
<if test="productIdent != null and productIdent != ''"> |
|
|
|
|
AND a.prtlotno LIKE concat(concat('%', #{productIdent}),'%') |
|
|
|
|
</if> |
|
|
|
|
<if test="plate != null and plate != ''"> |
|
|
|
|
AND a.coating_desc LIKE concat(concat('%', #{plate}),'%') |
|
|
|
|
</if> |
|
|
|
|
<if test="memo != null and memo != ''"> |
|
|
|
|
AND a.remark LIKE concat(concat('%', #{memo}),'%') |
|
|
|
|
</if> |
|
|
|
|
<if test="inDateStart != null"> |
|
|
|
|
AND #{inDateStart} <![CDATA[ >= ]]> a.startdat |
|
|
|
|
</if> |
|
|
|
|
<if test="inDateEnd != null"> |
|
|
|
|
AND #{inDateEnd} <![CDATA[ <= ]]> a.validdat |
|
|
|
|
</if> |
|
|
|
|
<if test="validflags != null and validflags != ''"> |
|
|
|
|
AND a.validflag IN |
|
|
|
|
<foreach collection="validflags.split(',')" item="validflag" |
|
|
|
|
open="(" separator="," close=")" index="index"> |
|
|
|
|
#{validflag} |
|
|
|
|
</foreach> |
|
|
|
|
</if> |
|
|
|
|
<if test="papertype != null and papertype != ''"> |
|
|
|
|
AND a.papertype = #{papertype} |
|
|
|
|
</if> |
|
|
|
|
<if test="pricetype != null and pricetype != ''"> |
|
|
|
|
AND a.pricetype = #{pricetype} |
|
|
|
|
</if> |
|
|
|
|
</where> |
|
|
|
|
-- ORDER BY a.reqdate DESC |
|
|
|
|
</select> |
|
|
|
|
</mapper> |
|
|
|
|
|