|
|
|
@ -14,8 +14,10 @@
|
|
|
|
|
<result column="serialNo" jdbcType="VARCHAR" property="serialNo"/>
|
|
|
|
|
<result column="createTime" jdbcType="VARCHAR" property="createTime"/>
|
|
|
|
|
<result column="updateTime" jdbcType="VARCHAR" property="updateTime"/>
|
|
|
|
|
<result column="invStorageCode" jdbcType="VARCHAR" property="invStorageCode"/>
|
|
|
|
|
<result column="invWarehouseCode" jdbcType="VARCHAR" property="invWarehouseCode"/>
|
|
|
|
|
<result column="invSpaceCode" jdbcType="VARCHAR" property="invSpaceCode"/>
|
|
|
|
|
<result column="receiveStorageCode" jdbcType="VARCHAR" property="receiveStorageCode"/>
|
|
|
|
|
<result column="receiveWarehouseCode" jdbcType="VARCHAR" property="receiveWarehouseCode"/>
|
|
|
|
|
<result column="receiveSpaceCode" jdbcType="VARCHAR" property="receiveSpaceCode"/>
|
|
|
|
|
</resultMap>
|
|
|
|
@ -33,8 +35,10 @@
|
|
|
|
|
serialNo,
|
|
|
|
|
createTime,
|
|
|
|
|
updateTime,
|
|
|
|
|
invStorageCode,
|
|
|
|
|
invWarehouseCode,
|
|
|
|
|
invSpaceCode,
|
|
|
|
|
receiveStorageCode,
|
|
|
|
|
receiveWarehouseCode,
|
|
|
|
|
receiveSpaceCode
|
|
|
|
|
</sql>
|
|
|
|
@ -56,14 +60,18 @@
|
|
|
|
|
code, productId, nameCode,
|
|
|
|
|
batchNo, produceDate, expireDate,
|
|
|
|
|
serialNo, createTime, updateTime,
|
|
|
|
|
invWarehouseCode, invSpaceCode, receiveWarehouseCode,
|
|
|
|
|
invStorageCode,
|
|
|
|
|
invWarehouseCode, invSpaceCode, receiveStorageCode,
|
|
|
|
|
receiveWarehouseCode,
|
|
|
|
|
receiveSpaceCode)
|
|
|
|
|
values (#{id,jdbcType=INTEGER}, #{orderIdFk,jdbcType=VARCHAR}, #{originCode,jdbcType=VARCHAR},
|
|
|
|
|
#{code,jdbcType=VARCHAR}, #{productId,jdbcType=VARCHAR}, #{nameCode,jdbcType=VARCHAR},
|
|
|
|
|
#{batchNo,jdbcType=VARCHAR}, #{produceDate,jdbcType=VARCHAR}, #{expireDate,jdbcType=VARCHAR},
|
|
|
|
|
#{invStorageCode,jdbcType=VARCHAR},
|
|
|
|
|
#{serialNo,jdbcType=VARCHAR}, #{createTime,jdbcType=VARCHAR}, #{updateTime,jdbcType=VARCHAR},
|
|
|
|
|
#{invWarehouseCode,jdbcType=VARCHAR}, #{invSpaceCode,jdbcType=VARCHAR},
|
|
|
|
|
#{receiveWarehouseCode,jdbcType=VARCHAR},
|
|
|
|
|
#{receiveStorageCode,jdbcType=VARCHAR}
|
|
|
|
|
#{receiveWarehouseCode,jdbcType=VARCHAR},
|
|
|
|
|
#{receiveSpaceCode,jdbcType=VARCHAR})
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
@ -106,12 +114,18 @@
|
|
|
|
|
<if test="updateTime != null">
|
|
|
|
|
updateTime,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="invStorageCode != null">
|
|
|
|
|
invStorageCode,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="invWarehouseCode != null">
|
|
|
|
|
invWarehouseCode,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="invSpaceCode != null">
|
|
|
|
|
invSpaceCode,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="receiveStorageCode != null">
|
|
|
|
|
receiveStorageCode,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="receiveWarehouseCode != null">
|
|
|
|
|
receiveWarehouseCode,
|
|
|
|
|
</if>
|
|
|
|
@ -156,12 +170,18 @@
|
|
|
|
|
<if test="updateTime != null">
|
|
|
|
|
#{updateTime,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="invStorageCode != null">
|
|
|
|
|
#{invStorageCode,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="invWarehouseCode != null">
|
|
|
|
|
#{invWarehouseCode,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="invSpaceCode != null">
|
|
|
|
|
#{invSpaceCode,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="receiveStorageCode != null">
|
|
|
|
|
#{receiveStorageCode,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="receiveWarehouseCode != null">
|
|
|
|
|
#{receiveWarehouseCode,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
@ -208,12 +228,18 @@
|
|
|
|
|
<if test="updateTime != null">
|
|
|
|
|
updateTime = #{updateTime,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="invStorageCode != null">
|
|
|
|
|
invStorageCode = #{updateTime,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="invWarehouseCode != null">
|
|
|
|
|
invWarehouseCode = #{invWarehouseCode,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="invSpaceCode != null">
|
|
|
|
|
invSpaceCode = #{invSpaceCode,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="receiveStorageCode != null">
|
|
|
|
|
receiveStorageCode = #{invSpaceCode,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="receiveWarehouseCode != null">
|
|
|
|
|
receiveWarehouseCode = #{receiveWarehouseCode,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
@ -237,8 +263,10 @@
|
|
|
|
|
serialNo = #{serialNo,jdbcType=VARCHAR},
|
|
|
|
|
createTime = #{createTime,jdbcType=VARCHAR},
|
|
|
|
|
updateTime = #{updateTime,jdbcType=VARCHAR},
|
|
|
|
|
invStorageCode = #{invStorageCode,jdbcType=VARCHAR},
|
|
|
|
|
invWarehouseCode = #{invWarehouseCode,jdbcType=VARCHAR},
|
|
|
|
|
invSpaceCode = #{invSpaceCode,jdbcType=VARCHAR},
|
|
|
|
|
receiveStorageCode = #{receiveStorageCode,jdbcType=VARCHAR},
|
|
|
|
|
receiveWarehouseCode = #{receiveWarehouseCode,jdbcType=VARCHAR},
|
|
|
|
|
receiveSpaceCode = #{receiveSpaceCode,jdbcType=VARCHAR}
|
|
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
|
@ -264,8 +292,10 @@
|
|
|
|
|
dcod.serialNo,
|
|
|
|
|
dcod.createTime,
|
|
|
|
|
dcod.updateTime,
|
|
|
|
|
dcod.invStorageCode,
|
|
|
|
|
dcod.invWarehouseCode,
|
|
|
|
|
dcod.invSpaceCode,
|
|
|
|
|
dcod.receiveStorageCode,
|
|
|
|
|
dcod.receiveWarehouseCode,
|
|
|
|
|
dcod.receiveSpaceCode,
|
|
|
|
|
bp.cpmctymc productName,
|
|
|
|
@ -288,4 +318,18 @@
|
|
|
|
|
from device_collect_order_detail
|
|
|
|
|
where orderIdFk = #{orderIdFk}
|
|
|
|
|
</delete>
|
|
|
|
|
|
|
|
|
|
<select id="selectList" resultMap="BaseResultMap">
|
|
|
|
|
select
|
|
|
|
|
<include refid="Base_Column_List"/>
|
|
|
|
|
from device_collect_order_detail
|
|
|
|
|
<where>
|
|
|
|
|
<if test="orderIdFk != null and orderIdFk != ''">
|
|
|
|
|
AND orderIdFk = #{orderIdFk}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="code != null and code != ''">
|
|
|
|
|
AND code = #{code}
|
|
|
|
|
</if>
|
|
|
|
|
</where>
|
|
|
|
|
</select>
|
|
|
|
|
</mapper>
|