|
|
|
@ -4,10 +4,10 @@
|
|
|
|
|
<select id="filterList" parameterType="com.glxp.api.req.collect.CollectOrderBizRequest"
|
|
|
|
|
resultType="com.glxp.api.res.collect.CollectOrderBizResponse">
|
|
|
|
|
SELECT icob.*,
|
|
|
|
|
bp.nameCode diCode,
|
|
|
|
|
bp.nameCode diCode,
|
|
|
|
|
bp.zczbhhzbapzbh,
|
|
|
|
|
bp.manufactory,
|
|
|
|
|
COALESCE(bp.bzgg,icob.ggxh) AS spec,
|
|
|
|
|
COALESCE(bp.bzgg, icob.ggxh) AS spec,
|
|
|
|
|
sys_workplace_queue.code
|
|
|
|
|
FROM io_collect_order_biz icob
|
|
|
|
|
left join basic_udirel bu on icob.relId = bu.id
|
|
|
|
@ -45,4 +45,56 @@
|
|
|
|
|
SET autoResCount = #{autoResCount}
|
|
|
|
|
WHERE id = #{id}
|
|
|
|
|
</update>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<insert id="insertOrUpdate" keyColumn="id" keyProperty="id"
|
|
|
|
|
parameterType="com.glxp.api.entity.collect.IoCollectOrderBiz" useGeneratedKeys="true">
|
|
|
|
|
insert into io_collect_order_biz
|
|
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="id != null">
|
|
|
|
|
id,
|
|
|
|
|
</if>
|
|
|
|
|
orderIdFk, relId, thrCode, ybbm, sptm, payFeeCode, cpmctymc, nameCode, ggxh, batchNo,
|
|
|
|
|
productDate,
|
|
|
|
|
expireDate,
|
|
|
|
|
count, actCount, scanCount, scanActCount, measureUnit, tagStatus, tagMsg, remark, createTime, updateTime,
|
|
|
|
|
unTagCount,
|
|
|
|
|
autoResCount, replaceCode, autoTagStatus, tempWorkPlaceCount, splitUnCheck, tempSplitCount, searchRemark1
|
|
|
|
|
, searchRemark2, searchRemark3, searchRemark4, searchRemark5, remark1, remark2
|
|
|
|
|
, remark3, remark4, remark5, remark6, remark7, remark8, remark9, remark10, getConfirm
|
|
|
|
|
</trim>
|
|
|
|
|
values
|
|
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="id != null">
|
|
|
|
|
#{id,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
#{orderIdFk}, #{relId}, #{thrCode}, #{ybbm}, #{sptm}, #{payFeeCode}, #{cpmctymc}, #{nameCode}, #{ggxh},
|
|
|
|
|
#{batchNo},
|
|
|
|
|
#{productDate}, #{expireDate}, #{count}, #{actCount}, #{scanCount}, #{scanActCount}, #{measureUnit},
|
|
|
|
|
#{tagStatus}, #{tagMsg}, #{remark}, #{createTime}, #{updateTime},
|
|
|
|
|
#{unTagCount}, #{autoResCount}, #{replaceCode}, #{autoTagStatus}, #{tempWorkPlaceCount}, #{splitUnCheck},
|
|
|
|
|
#{tempSplitCount}, #{searchRemark1},
|
|
|
|
|
#{searchRemark2}, #{searchRemark3}, #{searchRemark4}, #{searchRemark5}, #{remark1}, #{remark2},
|
|
|
|
|
#{remark3}, #{remark4}, #{remark5}, #{remark6}, #{remark7}, #{remark8}, #{remark9}, #{remark10},
|
|
|
|
|
#{getConfirm}
|
|
|
|
|
</trim>
|
|
|
|
|
on duplicate key update
|
|
|
|
|
<trim suffixOverrides=",">
|
|
|
|
|
<if test="id != null">
|
|
|
|
|
id = #{id,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="addCount != null">
|
|
|
|
|
count = count + #{addCount},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="addActCount != null">
|
|
|
|
|
actCount = actCount + #{addActCount},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="addScanCount != null">
|
|
|
|
|
scanCount = scanCount + #{addScanCount},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="addScanActCount != null">
|
|
|
|
|
scanActCount = scanActCount + #{addScanActCount},
|
|
|
|
|
</if>
|
|
|
|
|
</trim>
|
|
|
|
|
</insert>
|
|
|
|
|
</mapper>
|
|
|
|
|