|
|
|
@ -13,6 +13,12 @@
|
|
|
|
|
<if test="code != '' and code != null">
|
|
|
|
|
AND code LIKE concat('%',#{code},'%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="sptm != '' and sptm != null">
|
|
|
|
|
AND sptm LIKE concat('%',#{sptm},'%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="ybbm != '' and ybbm != null">
|
|
|
|
|
AND ybbm LIKE concat('%',#{ybbm},'%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="registerNo != '' and registerNo != null">
|
|
|
|
|
AND registerNo LIKE concat('%',#{registerNo},'%')
|
|
|
|
|
</if>
|
|
|
|
@ -22,22 +28,22 @@
|
|
|
|
|
<if test="spec != '' and spec != null">
|
|
|
|
|
AND spec LIKE concat('%',#{spec},'%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="supName != '' and supName != null">
|
|
|
|
|
AND supName LIKE concat('%',#{supName},'%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="unionCode != '' and unionCode != null">
|
|
|
|
|
or code LIKE concat('%',#{unionCode},'%') or sptm LIKE concat('%',#{unionCode},'%') or ybbm LIKE
|
|
|
|
|
concat('%',#{unionCode},'%')
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
|
|
<if test="thirdSysFk != '' and thirdSysFk != null">
|
|
|
|
|
AND thirdSysFk = #{thirdSysFk}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="supName != '' and supName != null">
|
|
|
|
|
AND supName = #{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>
|
|
|
|
|
ORDER BY updateTime DESC
|
|
|
|
|
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -84,13 +90,10 @@
|
|
|
|
|
<insert id="insertThrProducts" keyProperty="id" parameterType="com.glxp.sale.admin.entity.thrsys.ThrProductsEntity">
|
|
|
|
|
replace
|
|
|
|
|
INTO thr_products
|
|
|
|
|
(
|
|
|
|
|
code,name,measname,spec,registerNo,manufactory,
|
|
|
|
|
cplb,flbm,qxlb,ybbm,sptm,tyshxydm,zczbhhzbapzbh,ylqxzcrbarmc,ylqxzcrbarywmc,cpms,
|
|
|
|
|
thirdSysFk,updateTime,supName
|
|
|
|
|
)
|
|
|
|
|
values
|
|
|
|
|
(
|
|
|
|
|
(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)
|
|
|
|
|
values (
|
|
|
|
|
#{code},
|
|
|
|
|
#{name},
|
|
|
|
|
#{measname},
|
|
|
|
@ -109,32 +112,38 @@
|
|
|
|
|
#{cpms},
|
|
|
|
|
#{thirdSysFk},
|
|
|
|
|
#{updateTime},
|
|
|
|
|
#{supName}
|
|
|
|
|
#{supName},
|
|
|
|
|
#{model},
|
|
|
|
|
#{standard},
|
|
|
|
|
#{qtbm},
|
|
|
|
|
#{zczyxqz},
|
|
|
|
|
#{remark},
|
|
|
|
|
#{remark1},
|
|
|
|
|
#{remark2},
|
|
|
|
|
#{remark3},#{price}
|
|
|
|
|
)
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
<insert id="insertThrProductss" keyProperty="id" parameterType="java.util.List">
|
|
|
|
|
replace INTO thr_products
|
|
|
|
|
(
|
|
|
|
|
code,name,measname,spec,registerNo,manufactory,
|
|
|
|
|
cplb,flbm,qxlb,ybbm,sptm,tyshxydm,zczbhhzbapzbh,ylqxzcrbarmc,ylqxzcrbarywmc,cpms,
|
|
|
|
|
thirdSysFk,updateTime,supName
|
|
|
|
|
)
|
|
|
|
|
(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)
|
|
|
|
|
values
|
|
|
|
|
|
|
|
|
|
<foreach collection="thrProductsEntities" item="item" index="index"
|
|
|
|
|
separator=",">
|
|
|
|
|
(
|
|
|
|
|
#{item.code},
|
|
|
|
|
(#{item.code},
|
|
|
|
|
#{item.name},
|
|
|
|
|
#{item.measname},
|
|
|
|
|
#{item.spec},
|
|
|
|
|
#{item.registerNo},
|
|
|
|
|
#{item.manufactory},
|
|
|
|
|
#{item.cplb}, #{item.flbm}, #{item.qxlb}, #{item.ybbm},#{item.sptm},
|
|
|
|
|
#{item.tyshxydm}, #{item.zczbhhzbapzbh}, #{item.ylqxzcrbarmc}, #{item.ylqxzcrbarywmc},#{item.cpms},
|
|
|
|
|
#{item.thirdSysFk},#{item.updateTime},#{item.supName}
|
|
|
|
|
)
|
|
|
|
|
#{item.cplb}, #{item.flbm}, #{item.qxlb}, #{item.ybbm}, #{item.sptm},
|
|
|
|
|
#{item.tyshxydm}, #{item.zczbhhzbapzbh}, #{item.ylqxzcrbarmc}, #{item.ylqxzcrbarywmc}, #{item.cpms},
|
|
|
|
|
#{item.thirdSysFk}, #{item.updateTime}, #{item.supName}, #{item.model}, #{item.standard},#{item.qtbm},
|
|
|
|
|
#{item.zczyxqz},
|
|
|
|
|
#{item.remark}, #{item.remark1}, #{item.remark2}, #{item.remark3},#{item.price})
|
|
|
|
|
</foreach>
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
@ -166,6 +175,14 @@
|
|
|
|
|
<if test="thirdSysFk != null">thirdSysFk=#{thirdSysFk},</if>
|
|
|
|
|
<if test="updateTime != null">updateTime=#{updateTime},</if>
|
|
|
|
|
<if test="supName != null">supName=#{supName},</if>
|
|
|
|
|
<if test="model != null">model=#{model},</if>
|
|
|
|
|
<if test="standard != null">standard=#{standard},</if>
|
|
|
|
|
<if test="zczyxqz != null">zczyxqz=#{zczyxqz},</if>
|
|
|
|
|
<if test="remark != null">remark=#{remark},</if>
|
|
|
|
|
<if test="remark1 != null">remark1=#{remark1},</if>
|
|
|
|
|
<if test="remark2 != null">remark2=#{remark2},</if>
|
|
|
|
|
<if test="remark3 != null">remark3=#{remark3},</if>
|
|
|
|
|
<if test="price != null">price=#{price},</if>
|
|
|
|
|
|
|
|
|
|
</trim>
|
|
|
|
|
WHERE id = #{id}
|
|
|
|
@ -176,31 +193,11 @@
|
|
|
|
|
FROM thr_products
|
|
|
|
|
</delete>
|
|
|
|
|
|
|
|
|
|
<insert id="importThrProducts" parameterType="java.util.List">
|
|
|
|
|
replace INTO thr_products
|
|
|
|
|
(id, code, name, measname, spec, registerNo, manufactory,
|
|
|
|
|
cplb, flbm, qxlb, ybbm, sptm, tyshxydm, zczbhhzbapzbh, ylqxzcrbarmc, ylqxzcrbarywmc, cpms,
|
|
|
|
|
thirdSysFk, updateTime, supName)
|
|
|
|
|
values
|
|
|
|
|
<foreach collection="thrProductsEntities" item="item" index="index"
|
|
|
|
|
separator=",">
|
|
|
|
|
(#{item.id},
|
|
|
|
|
#{item.code},
|
|
|
|
|
#{item.name},
|
|
|
|
|
#{item.measname},
|
|
|
|
|
#{item.spec},
|
|
|
|
|
#{item.registerNo},
|
|
|
|
|
#{item.manufactory},
|
|
|
|
|
#{item.cplb}, #{item.flbm}, #{item.qxlb}, #{item.ybbm}, #{item.sptm},
|
|
|
|
|
#{item.tyshxydm}, #{item.zczbhhzbapzbh}, #{item.ylqxzcrbarmc}, #{item.ylqxzcrbarywmc}, #{item.cpms},
|
|
|
|
|
#{item.thirdSysFk}, #{item.updateTime}, #{item.supName})
|
|
|
|
|
</foreach>
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
<insert id="importThrProductss" parameterType="java.util.List">
|
|
|
|
|
replace into thr_products (id, code, name, measname, spec, registerNo, manufactory, thirdSysFk, cplb, flbm,
|
|
|
|
|
qxlb, ybbm, sptm, tyshxydm, zczbhhzbapzbh, ylqxzcrbarmc, ylqxzcrbarywmc, cpms,
|
|
|
|
|
updateTime, supName) VALUES
|
|
|
|
|
updateTime, supName, model, standard, qtbm, zczyxqz, remark, remark1, remark2,
|
|
|
|
|
remark3,price) VALUES
|
|
|
|
|
<foreach collection="thrProductsEntities" item="item" index="index" separator=",">
|
|
|
|
|
(#{item.id},
|
|
|
|
|
#{item.code},
|
|
|
|
@ -221,7 +218,14 @@
|
|
|
|
|
#{item.ylqxzcrbarywmc},
|
|
|
|
|
#{item.cpms},
|
|
|
|
|
#{item.updateTime},
|
|
|
|
|
#{item.supName})
|
|
|
|
|
#{item.supName},
|
|
|
|
|
#{item.model},
|
|
|
|
|
#{item.standard},
|
|
|
|
|
#{item.zczyxqz},
|
|
|
|
|
#{item.remark},
|
|
|
|
|
#{item.remark1},
|
|
|
|
|
#{item.remark2},
|
|
|
|
|
#{item.remark3},#{item.price})
|
|
|
|
|
</foreach>
|
|
|
|
|
</insert>
|
|
|
|
|
</mapper>
|