|
|
|
@ -55,32 +55,31 @@
|
|
|
|
|
from device_collect_order_detail
|
|
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
|
|
</delete>
|
|
|
|
|
<insert id="insert" parameterType="com.glxp.api.admin.entity.inventory.DeviceCollectOrderDetailEntity">
|
|
|
|
|
insert into device_collect_order_detail (id, orderIdFk, originCode,
|
|
|
|
|
code, productId, nameCode,
|
|
|
|
|
batchNo, produceDate, expireDate,
|
|
|
|
|
serialNo, createTime, updateTime,
|
|
|
|
|
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},
|
|
|
|
|
#{receiveStorageCode,jdbcType=VARCHAR}
|
|
|
|
|
#{receiveWarehouseCode,jdbcType=VARCHAR},
|
|
|
|
|
#{receiveSpaceCode,jdbcType=VARCHAR})
|
|
|
|
|
|
|
|
|
|
<insert id="insert" keyColumn="id" keyProperty="id"
|
|
|
|
|
parameterType="com.glxp.api.admin.entity.inventory.DeviceCollectOrderDetailEntity" useGeneratedKeys="true">
|
|
|
|
|
insert into device_collect_order_detail (orderIdFk, originCode,
|
|
|
|
|
code, productId, nameCode,
|
|
|
|
|
batchNo, produceDate, expireDate,
|
|
|
|
|
serialNo, createTime, updateTime,
|
|
|
|
|
invStorageCode,
|
|
|
|
|
invWarehouseCode, invSpaceCode, receiveStorageCode,
|
|
|
|
|
receiveWarehouseCode,
|
|
|
|
|
receiveSpaceCode)
|
|
|
|
|
values (#{orderIdFk,jdbcType=VARCHAR}, #{originCode,jdbcType=VARCHAR},
|
|
|
|
|
#{code,jdbcType=VARCHAR}, #{productId,jdbcType=VARCHAR}, #{nameCode,jdbcType=VARCHAR},
|
|
|
|
|
#{batchNo,jdbcType=VARCHAR}, #{produceDate,jdbcType=VARCHAR}, #{expireDate,jdbcType=VARCHAR},
|
|
|
|
|
#{serialNo,jdbcType=VARCHAR}, #{createTime,jdbcType=VARCHAR}, #{updateTime,jdbcType=VARCHAR},
|
|
|
|
|
#{invStorageCode,jdbcType=VARCHAR},#{invWarehouseCode,jdbcType=VARCHAR}, #{invSpaceCode,jdbcType=VARCHAR},
|
|
|
|
|
#{receiveStorageCode,jdbcType=VARCHAR},
|
|
|
|
|
#{receiveWarehouseCode,jdbcType=VARCHAR},
|
|
|
|
|
#{receiveSpaceCode,jdbcType=VARCHAR})
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
<insert id="insertSelective" parameterType="com.glxp.api.admin.entity.inventory.DeviceCollectOrderDetailEntity">
|
|
|
|
|
<insert id="insertSelective" keyColumn="id" keyProperty="id"
|
|
|
|
|
parameterType="com.glxp.api.admin.entity.inventory.DeviceCollectOrderDetailEntity" useGeneratedKeys="true">
|
|
|
|
|
insert into device_collect_order_detail
|
|
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="id != null">
|
|
|
|
|
id,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="orderIdFk != null">
|
|
|
|
|
orderIdFk,
|
|
|
|
|
</if>
|
|
|
|
@ -134,9 +133,6 @@
|
|
|
|
|
</if>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="id != null">
|
|
|
|
|
#{id,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="orderIdFk != null">
|
|
|
|
|
#{orderIdFk,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
@ -281,35 +277,41 @@
|
|
|
|
|
|
|
|
|
|
<select id="filterList" resultType="com.glxp.api.admin.res.inventory.DeviceCollectOrderDetailResponse">
|
|
|
|
|
select dcod.id,
|
|
|
|
|
dcod.orderIdFk,
|
|
|
|
|
dcod.originCode,
|
|
|
|
|
dcod.code,
|
|
|
|
|
dcod.productId,
|
|
|
|
|
dcod.nameCode,
|
|
|
|
|
dcod.batchNo,
|
|
|
|
|
dcod.produceDate,
|
|
|
|
|
dcod.expireDate,
|
|
|
|
|
dcod.serialNo,
|
|
|
|
|
dcod.createTime,
|
|
|
|
|
dcod.updateTime,
|
|
|
|
|
dcod.invStorageCode,
|
|
|
|
|
dcod.invWarehouseCode,
|
|
|
|
|
dcod.invSpaceCode,
|
|
|
|
|
dcod.receiveStorageCode,
|
|
|
|
|
dcod.receiveWarehouseCode,
|
|
|
|
|
dcod.receiveSpaceCode,
|
|
|
|
|
bp.cpmctymc productName,
|
|
|
|
|
iws.name invWarehouseName,
|
|
|
|
|
isp.name invSpaceName
|
|
|
|
|
dcod.orderIdFk,
|
|
|
|
|
dcod.originCode,
|
|
|
|
|
dcod.code,
|
|
|
|
|
dcod.productId,
|
|
|
|
|
dcod.nameCode,
|
|
|
|
|
dcod.batchNo,
|
|
|
|
|
dcod.produceDate,
|
|
|
|
|
dcod.expireDate,
|
|
|
|
|
dcod.serialNo,
|
|
|
|
|
dcod.createTime,
|
|
|
|
|
dcod.updateTime,
|
|
|
|
|
dcod.invStorageCode,
|
|
|
|
|
dcod.invWarehouseCode,
|
|
|
|
|
dcod.invSpaceCode,
|
|
|
|
|
dcod.receiveStorageCode,
|
|
|
|
|
dcod.receiveWarehouseCode,
|
|
|
|
|
dcod.receiveSpaceCode,
|
|
|
|
|
bp.cpmctymc productName,
|
|
|
|
|
bp.zczbhhzbapzbh,
|
|
|
|
|
bp.ylqxzcrbarmc,
|
|
|
|
|
bp.ggxh,
|
|
|
|
|
iws.name invWarehouseName,
|
|
|
|
|
isp.name invSpaceName
|
|
|
|
|
from device_collect_order_detail dcod
|
|
|
|
|
left join basic_udirel bu on bu.id = dcod.productId
|
|
|
|
|
left join basic_products bp on bu.uuid = bp.uuid
|
|
|
|
|
left join inv_warehouse_sub iws on iws.code = dcod.invWarehouseCode
|
|
|
|
|
left join inv_space isp on isp.code = dcod.invSpaceCode
|
|
|
|
|
left join basic_udirel bu on bu.id = dcod.productId
|
|
|
|
|
left join basic_products bp on bu.uuid = bp.uuid
|
|
|
|
|
left join inv_warehouse_sub iws on iws.code = dcod.invWarehouseCode
|
|
|
|
|
left join inv_space isp on isp.code = dcod.invSpaceCode
|
|
|
|
|
<where>
|
|
|
|
|
<if test="orderIdFk != null and orderIdFk != ''">
|
|
|
|
|
AND orderIdFk = #{orderIdFk}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="code != null and code != ''">
|
|
|
|
|
AND dcod.originCode = #{code}
|
|
|
|
|
</if>
|
|
|
|
|
</where>
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|