|
|
|
@ -46,6 +46,49 @@
|
|
|
|
|
</if>
|
|
|
|
|
</where>
|
|
|
|
|
</select>
|
|
|
|
|
<select id="filterThrProducts1" parameterType="com.glxp.api.req.thrsys.FilterThrProductsRequest"
|
|
|
|
|
resultType="com.glxp.api.entity.thrsys.ThrProductsEntity">
|
|
|
|
|
SELECT * FROM thr_products
|
|
|
|
|
<where>
|
|
|
|
|
<if test="name != '' and name != null">
|
|
|
|
|
AND name = #{name}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="code != '' and code != null">
|
|
|
|
|
AND code = #{code}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="sptm != '' and sptm != null">
|
|
|
|
|
AND sptm= #{sptm}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="ybbm != '' and ybbm != null">
|
|
|
|
|
AND ybbm = #{ybbm}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="registerNo != '' and registerNo != null">
|
|
|
|
|
AND registerNo= #{registerNo}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="manufactory != '' and manufactory != null">
|
|
|
|
|
AND manufactory= #{manufactory}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="spec != '' and spec != null">
|
|
|
|
|
AND spec = #{spec}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="unionCode != '' and unionCode != null">
|
|
|
|
|
or code LIKE = #{unionCode} or sptm = #{unionCode} or ybbm LIKE
|
|
|
|
|
= #{unionCode}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="thirdSysFk != '' and thirdSysFk != null">
|
|
|
|
|
AND thirdSysFk = #{thirdSysFk}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="thirdSys != '' and thirdSys != null">
|
|
|
|
|
AND thirdSys = #{thirdSys}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="supName != '' and supName != null">
|
|
|
|
|
AND supName LIKE = #{supName}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="lastUpdateTime!=null and lastUpdateTime!=''">
|
|
|
|
|
<![CDATA[ and DATE_FORMAT(updateTime, '%Y-%m-%d %H:%i:%S')>= DATE_FORMAT(#{lastUpdateTime}, '%Y-%m-%d %H:%i:%S') ]]>
|
|
|
|
|
</if>
|
|
|
|
|
</where>
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<select id="filterJoinThrProducts" parameterType="com.glxp.api.req.thrsys.FilterThrProductsRequest"
|
|
|
|
|