|
|
|
@ -19,27 +19,43 @@
|
|
|
|
|
|
|
|
|
|
<insert id="insertThrOrderDetail" keyProperty="id"
|
|
|
|
|
parameterType="com.glxp.sale.admin.entity.thrsys.ThrOrderDetailEntity">
|
|
|
|
|
replace INTO thr_order_detail
|
|
|
|
|
replace
|
|
|
|
|
INTO thr_order_detail
|
|
|
|
|
(productId, productName, spec, batchNo, expireDate,
|
|
|
|
|
productDate, count, reCount, orderIdFk, thirdSysFk, updateTime, price, corpName)
|
|
|
|
|
values (#{productId}, #{productName}, #{spec}, #{batchNo}, #{expireDate},
|
|
|
|
|
#{productDate}, #{count}, #{reCount}, #{orderIdFk}, #{thirdSysFk}, #{updateTime},
|
|
|
|
|
#{price}, #{corpName})
|
|
|
|
|
productDate, `count`, reCount, orderIdFk, thirdSysFk, updateTime, price, corpName,ylqxzcrbarmc,zczbhhzbapzbh,manufactory)
|
|
|
|
|
values (
|
|
|
|
|
#{productId},
|
|
|
|
|
#{productName},
|
|
|
|
|
#{spec},
|
|
|
|
|
#{batchNo},
|
|
|
|
|
#{expireDate},
|
|
|
|
|
#{productDate},
|
|
|
|
|
#{count},
|
|
|
|
|
#{reCount},
|
|
|
|
|
#{orderIdFk},
|
|
|
|
|
#{thirdSysFk},
|
|
|
|
|
#{updateTime},
|
|
|
|
|
#{price},
|
|
|
|
|
#{corpName},
|
|
|
|
|
#{ylqxzcrbarmc},
|
|
|
|
|
#{zczbhhzbapzbh},
|
|
|
|
|
#{manufactory}
|
|
|
|
|
)
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
<insert id="insertThrOrderDetails" keyProperty="id" parameterType="java.util.List">
|
|
|
|
|
replace INTO thr_order_detail
|
|
|
|
|
(productId, productName, spec, batchNo, expireDate,
|
|
|
|
|
productDate, count, reCount, orderIdFk, thirdSysFk, updateTime
|
|
|
|
|
, price, corpName)
|
|
|
|
|
values
|
|
|
|
|
(productId, productName, spec, batchNo, expireDate,
|
|
|
|
|
productDate, `count`, reCount, orderIdFk, thirdSysFk, updateTime
|
|
|
|
|
, price, corpName,ylqxzcrbarmc,zczbhhzbapzbh,manufactory)
|
|
|
|
|
values
|
|
|
|
|
|
|
|
|
|
<foreach collection="thrOrderDetailEntities" item="item" index="index"
|
|
|
|
|
separator=",">
|
|
|
|
|
(#{item.productId}, #{item.productName}, #{item.spec}, #{item.batchNo}, #{item.expireDate},
|
|
|
|
|
#{item.productDate}, #{item.count}, #{item.reCount}, #{item.orderIdFk}, #{item.thirdSysFk},
|
|
|
|
|
#{item.updateTime},
|
|
|
|
|
#{item.price}, #{item.corpName})
|
|
|
|
|
#{item.productDate}, #{item.count}, #{item.reCount}, #{item.orderIdFk}, #{item.thirdSysFk},
|
|
|
|
|
#{item.updateTime},
|
|
|
|
|
#{item.price}, #{item.corpName}, #{item.ylqxzcrbarmc}, #{item.zczbhhzbapzbh}, #{item.manufactory})
|
|
|
|
|
</foreach>
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
@ -48,7 +64,7 @@
|
|
|
|
|
replace
|
|
|
|
|
INTO thr_order_detail
|
|
|
|
|
(id,productId, productName, spec, batchNo, expireDate,
|
|
|
|
|
productDate, `count`, reCount, orderIdFk, thirdSysFk, updateTime, price, corpName)
|
|
|
|
|
productDate, `count`, reCount, orderIdFk, thirdSysFk, updateTime, price, corpName,ylqxzcrbarmc,zczbhhzbapzbh,manufactory)
|
|
|
|
|
values (
|
|
|
|
|
#{id},
|
|
|
|
|
#{productId},
|
|
|
|
@ -63,15 +79,22 @@
|
|
|
|
|
#{thirdSysFk},
|
|
|
|
|
#{updateTime},
|
|
|
|
|
#{price},
|
|
|
|
|
#{corpName}
|
|
|
|
|
#{corpName},
|
|
|
|
|
#{ylqxzcrbarmc},
|
|
|
|
|
#{zczbhhzbapzbh},
|
|
|
|
|
#{manufactory}
|
|
|
|
|
)
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
<delete id="deleteById" parameterType="Map">
|
|
|
|
|
DELETE FROM thr_order_detail WHERE id = #{id}
|
|
|
|
|
DELETE
|
|
|
|
|
FROM thr_order_detail
|
|
|
|
|
WHERE id = #{id}
|
|
|
|
|
</delete>
|
|
|
|
|
<delete id="deleteByOrderIdFk" parameterType="Map">
|
|
|
|
|
DELETE FROM thr_order_detail WHERE orderIdFk = #{orderIdFk}
|
|
|
|
|
DELETE
|
|
|
|
|
FROM thr_order_detail
|
|
|
|
|
WHERE orderIdFk = #{orderIdFk}
|
|
|
|
|
</delete>
|
|
|
|
|
|
|
|
|
|
<update id="updateThrOrderDetail" parameterType="com.glxp.sale.admin.entity.thrsys.ThrOrderDetailEntity">
|
|
|
|
@ -89,16 +112,19 @@
|
|
|
|
|
<if test="thirdSysFk != null">thirdSysFk=#{thirdSysFk},</if>
|
|
|
|
|
<if test="updateTime != null">updateTime=#{updateTime},</if>
|
|
|
|
|
<if test="price != null">price=#{price},</if>
|
|
|
|
|
<if test="corpName != null">corpName=#{corpName},</if>
|
|
|
|
|
<if test="corpName != null">corpName=#{corpName},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="ylqxzcrbarmc != null">ylqxzcrbarmc=#{ylqxzcrbarmc},</if>
|
|
|
|
|
<if test="zczbhhzbapzbh != null">zczbhhzbapzbh=#{zczbhhzbapzbh},</if>
|
|
|
|
|
<if test="manufactory != null">manufactory=#{manufactory},</if>
|
|
|
|
|
</trim>
|
|
|
|
|
WHERE id = #{id}
|
|
|
|
|
</update>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<delete id="deleteAll">
|
|
|
|
|
DELETE FROM thr_order_detail
|
|
|
|
|
DELETE
|
|
|
|
|
FROM thr_order_detail
|
|
|
|
|
</delete>
|
|
|
|
|
|
|
|
|
|
</mapper>
|