|
|
|
@ -76,23 +76,21 @@
|
|
|
|
|
AND spec = #{spec}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="unionCode != '' and unionCode != null">
|
|
|
|
|
or code LIKE = #{unionCode}
|
|
|
|
|
or sptm = #{unionCode}
|
|
|
|
|
or ybbm LIKE
|
|
|
|
|
= #{unionCode}
|
|
|
|
|
or code LIKE #{unionCode}
|
|
|
|
|
or sptm LIKE #{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}
|
|
|
|
|
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')
|
|
|
|
|
and DATE_FORMAT(updateTime
|
|
|
|
|
, '%Y-%m-%d %H:%i:%S') >= DATE_FORMAT(#{lastUpdateTime}
|
|
|
|
|
, '%Y-%m-%d %H:%i:%S')
|
|
|
|
|
]]>
|
|
|
|
|
</if>
|
|
|
|
|
</where>
|
|
|
|
@ -166,12 +164,13 @@
|
|
|
|
|
<insert id="insertThrProducts" keyProperty="id"
|
|
|
|
|
parameterType="com.glxp.api.entity.thrsys.ThrProductsEntity">
|
|
|
|
|
replace
|
|
|
|
|
INTO thr_products
|
|
|
|
|
(id,code, `name`, measname, spec, registerNo, manufactory,
|
|
|
|
|
cplb, flbm, qxlb, ybbm, sptm, tyshxydm, zczbhhzbapzbh, ylqxzcrbarmc, ylqxzcrbarywmc, cpms,
|
|
|
|
|
thirdSysFk, updateTime, supName, model, standard, qtbm, zczyxqz, remark, remark1, remark2, remark3, price,
|
|
|
|
|
createUser, createTime, updateUser)
|
|
|
|
|
values ( #{id},
|
|
|
|
|
INTO thr_products
|
|
|
|
|
(id, code, `name`, measname, spec, registerNo, manufactory,
|
|
|
|
|
cplb, flbm, qxlb, ybbm, sptm, tyshxydm, zczbhhzbapzbh, ylqxzcrbarmc, ylqxzcrbarywmc, cpms,
|
|
|
|
|
thirdSysFk, updateTime, supName, model, standard, qtbm, zczyxqz, remark, remark1, remark2, remark3,
|
|
|
|
|
price,
|
|
|
|
|
createUser, createTime, updateUser)
|
|
|
|
|
values (#{id},
|
|
|
|
|
#{code},
|
|
|
|
|
#{name},
|
|
|
|
|
#{measname},
|
|
|
|
@ -349,12 +348,11 @@
|
|
|
|
|
<select id="filterThrProductsByMainId" resultType="com.glxp.api.entity.thrsys.ThrProductsEntity">
|
|
|
|
|
SELECT *
|
|
|
|
|
FROM thr_products
|
|
|
|
|
LEFT JOIN basic_udirel ON thr_products.id = basic_udirel.mainId
|
|
|
|
|
LEFT JOIN basic_udirel ON thr_products.id = basic_udirel.mainId
|
|
|
|
|
<where>
|
|
|
|
|
<if test="relId != '' and relId != null">
|
|
|
|
|
AND basic_udirel.id = #{relId}
|
|
|
|
|
AND basic_udirel.id = #{relId}
|
|
|
|
|
</if>
|
|
|
|
|
</where>
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
</mapper>
|
|
|
|
|