|
|
@ -14,6 +14,8 @@
|
|
|
|
<result column="auditTime" jdbcType="TIMESTAMP" property="auditTime"/>
|
|
|
|
<result column="auditTime" jdbcType="TIMESTAMP" property="auditTime"/>
|
|
|
|
<result column="status" jdbcType="BOOLEAN" property="status"/>
|
|
|
|
<result column="status" jdbcType="BOOLEAN" property="status"/>
|
|
|
|
<result column="remark" jdbcType="VARCHAR" property="remark"/>
|
|
|
|
<result column="remark" jdbcType="VARCHAR" property="remark"/>
|
|
|
|
|
|
|
|
<result column="inOrderIds" jdbcType="VARCHAR" property="inOrderIds"/>
|
|
|
|
|
|
|
|
<result column="outOrderIds" jdbcType="VARCHAR" property="outOrderIds"/>
|
|
|
|
</resultMap>
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
|
|
<sql id="Base_Column_List">
|
|
|
|
<sql id="Base_Column_List">
|
|
|
@ -28,7 +30,9 @@
|
|
|
|
auditUser,
|
|
|
|
auditUser,
|
|
|
|
auditTime,
|
|
|
|
auditTime,
|
|
|
|
`status`,
|
|
|
|
`status`,
|
|
|
|
remark
|
|
|
|
remark,
|
|
|
|
|
|
|
|
inOrderIds,
|
|
|
|
|
|
|
|
outOrderIds
|
|
|
|
</sql>
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
|
|
@ -49,11 +53,12 @@
|
|
|
|
insert into inv_count_order (orderId, invStorageCode,
|
|
|
|
insert into inv_count_order (orderId, invStorageCode,
|
|
|
|
invWarehouseCode, invSpaceCode, `createUser`,
|
|
|
|
invWarehouseCode, invSpaceCode, `createUser`,
|
|
|
|
createTime, updateTime, auditUser,
|
|
|
|
createTime, updateTime, auditUser,
|
|
|
|
auditTime, `status`, remark)
|
|
|
|
auditTime, `status`, remark, inOrderIds, outOrderIds)
|
|
|
|
values (#{orderId,jdbcType=VARCHAR}, #{invStorageCode,jdbcType=VARCHAR},
|
|
|
|
values (#{orderId,jdbcType=VARCHAR}, #{invStorageCode,jdbcType=VARCHAR},
|
|
|
|
#{invWarehouseCode,jdbcType=VARCHAR}, #{invSpaceCode,jdbcType=VARCHAR}, #{createUser,jdbcType=VARCHAR},
|
|
|
|
#{invWarehouseCode,jdbcType=VARCHAR}, #{invSpaceCode,jdbcType=VARCHAR}, #{createUser,jdbcType=VARCHAR},
|
|
|
|
#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{auditUser,jdbcType=VARCHAR},
|
|
|
|
#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{auditUser,jdbcType=VARCHAR},
|
|
|
|
#{auditTime,jdbcType=TIMESTAMP}, #{status,jdbcType=BOOLEAN}, #{remark,jdbcType=VARCHAR})
|
|
|
|
#{auditTime,jdbcType=TIMESTAMP}, #{status,jdbcType=BOOLEAN}, #{remark,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
#{inOrderIds,jdbcType=VARCHAR}, #{outOrderIds,jdbcType=VARCHAR})
|
|
|
|
</insert>
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
|
|
<insert id="insertSelective" parameterType="com.glxp.api.admin.entity.inventory.InvCountOrder">
|
|
|
|
<insert id="insertSelective" parameterType="com.glxp.api.admin.entity.inventory.InvCountOrder">
|
|
|
@ -95,6 +100,12 @@
|
|
|
|
<if test="remark != null">
|
|
|
|
<if test="remark != null">
|
|
|
|
remark,
|
|
|
|
remark,
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="inOrderIds != null and inOrderIds != ''">
|
|
|
|
|
|
|
|
inOrderIds,
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="outOrderIds != null and outOrderIds != ''">
|
|
|
|
|
|
|
|
outOrderIds,
|
|
|
|
|
|
|
|
</if>
|
|
|
|
</trim>
|
|
|
|
</trim>
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
<if test="id != null">
|
|
|
|
<if test="id != null">
|
|
|
@ -133,6 +144,12 @@
|
|
|
|
<if test="remark != null">
|
|
|
|
<if test="remark != null">
|
|
|
|
#{remark,jdbcType=VARCHAR},
|
|
|
|
#{remark,jdbcType=VARCHAR},
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="inOrderIds != null and inOrderIds != ''">
|
|
|
|
|
|
|
|
#{inOrderIds,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="outOrderIds != null and outOrderIds != ''">
|
|
|
|
|
|
|
|
#{outOrderIds,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
</trim>
|
|
|
|
</trim>
|
|
|
|
</insert>
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
|
@ -172,6 +189,12 @@
|
|
|
|
<if test="remark != null">
|
|
|
|
<if test="remark != null">
|
|
|
|
remark = #{remark,jdbcType=VARCHAR},
|
|
|
|
remark = #{remark,jdbcType=VARCHAR},
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="inOrderIds != null and inOrderIds != ''">
|
|
|
|
|
|
|
|
inOrderIds = #{inOrderIds,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="outOrderIds != null and outOrderIds != ''">
|
|
|
|
|
|
|
|
outOrderIds = #{outOrderIds,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
</set>
|
|
|
|
</set>
|
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
|
</update>
|
|
|
|
</update>
|
|
|
@ -188,7 +211,9 @@
|
|
|
|
auditUser = #{auditUser,jdbcType=VARCHAR},
|
|
|
|
auditUser = #{auditUser,jdbcType=VARCHAR},
|
|
|
|
auditTime = #{auditTime,jdbcType=TIMESTAMP},
|
|
|
|
auditTime = #{auditTime,jdbcType=TIMESTAMP},
|
|
|
|
`status` = #{status,jdbcType=BOOLEAN},
|
|
|
|
`status` = #{status,jdbcType=BOOLEAN},
|
|
|
|
remark = #{remark,jdbcType=VARCHAR}
|
|
|
|
remark = #{remark,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
inOrderIds = #{inOrderIds,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
outOrderIds = #{outOrderIds,jdbcType=VARCHAR}
|
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
|
</update>
|
|
|
|
</update>
|
|
|
|
|
|
|
|
|
|
|
@ -250,6 +275,16 @@
|
|
|
|
when id = #{item.id,jdbcType=INTEGER} then #{item.remark,jdbcType=VARCHAR}
|
|
|
|
when id = #{item.id,jdbcType=INTEGER} then #{item.remark,jdbcType=VARCHAR}
|
|
|
|
</foreach>
|
|
|
|
</foreach>
|
|
|
|
</trim>
|
|
|
|
</trim>
|
|
|
|
|
|
|
|
<trim prefix="inOrderIds = case" suffix="end,">
|
|
|
|
|
|
|
|
<foreach collection="list" index="index" item="item">
|
|
|
|
|
|
|
|
when id = #{item.id,jdbcType=INTEGER} then #{item.inOrderIds,jdbcType=VARCHAR}
|
|
|
|
|
|
|
|
</foreach>
|
|
|
|
|
|
|
|
</trim>
|
|
|
|
|
|
|
|
<trim prefix="outOrderIds = case" suffix="end,">
|
|
|
|
|
|
|
|
<foreach collection="list" index="index" item="item">
|
|
|
|
|
|
|
|
when id = #{item.id,jdbcType=INTEGER} then #{item.outOrderIds,jdbcType=VARCHAR}
|
|
|
|
|
|
|
|
</foreach>
|
|
|
|
|
|
|
|
</trim>
|
|
|
|
</trim>
|
|
|
|
</trim>
|
|
|
|
where id in
|
|
|
|
where id in
|
|
|
|
<foreach close=")" collection="list" item="item" open="(" separator=", ">
|
|
|
|
<foreach close=")" collection="list" item="item" open="(" separator=", ">
|
|
|
@ -260,7 +295,7 @@
|
|
|
|
<insert id="batchInsert" parameterType="map">
|
|
|
|
<insert id="batchInsert" parameterType="map">
|
|
|
|
insert into inv_count_order
|
|
|
|
insert into inv_count_order
|
|
|
|
(id, orderId, invStorageCode, invWarehouseCode, invSpaceCode, `createUser`, createTime,
|
|
|
|
(id, orderId, invStorageCode, invWarehouseCode, invSpaceCode, `createUser`, createTime,
|
|
|
|
updateTime, auditUser, auditTime, `status`, remark)
|
|
|
|
updateTime, auditUser, auditTime, `status`, remark, inOrderIds, outOrderIds)
|
|
|
|
values
|
|
|
|
values
|
|
|
|
<foreach collection="list" item="item" separator=",">
|
|
|
|
<foreach collection="list" item="item" separator=",">
|
|
|
|
(#{item.id,jdbcType=INTEGER}, #{item.orderId,jdbcType=VARCHAR}, #{item.invStorageCode,jdbcType=VARCHAR},
|
|
|
|
(#{item.id,jdbcType=INTEGER}, #{item.orderId,jdbcType=VARCHAR}, #{item.invStorageCode,jdbcType=VARCHAR},
|
|
|
@ -268,7 +303,7 @@
|
|
|
|
#{item.createUser,jdbcType=VARCHAR}, #{item.createTime,jdbcType=TIMESTAMP},
|
|
|
|
#{item.createUser,jdbcType=VARCHAR}, #{item.createTime,jdbcType=TIMESTAMP},
|
|
|
|
#{item.updateTime,jdbcType=TIMESTAMP},
|
|
|
|
#{item.updateTime,jdbcType=TIMESTAMP},
|
|
|
|
#{item.auditUser,jdbcType=VARCHAR}, #{item.auditTime,jdbcType=TIMESTAMP}, #{item.status,jdbcType=BOOLEAN},
|
|
|
|
#{item.auditUser,jdbcType=VARCHAR}, #{item.auditTime,jdbcType=TIMESTAMP}, #{item.status,jdbcType=BOOLEAN},
|
|
|
|
#{item.remark,jdbcType=VARCHAR})
|
|
|
|
#{item.remark,jdbcType=VARCHAR}, #{item.inOrderIds,jdbcType=VARCHAR}, #{item.outOrderIds,jdbcType=VARCHAR})
|
|
|
|
</foreach>
|
|
|
|
</foreach>
|
|
|
|
</insert>
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
|
@ -285,6 +320,8 @@
|
|
|
|
co.auditTime,
|
|
|
|
co.auditTime,
|
|
|
|
co.status,
|
|
|
|
co.status,
|
|
|
|
co.remark,
|
|
|
|
co.remark,
|
|
|
|
|
|
|
|
co.inOrderIds,
|
|
|
|
|
|
|
|
co.outOrderIds,
|
|
|
|
w.name as invStorageName,
|
|
|
|
w.name as invStorageName,
|
|
|
|
ws.name as invSubStorageName,
|
|
|
|
ws.name as invSubStorageName,
|
|
|
|
sp.name as invSpaceName
|
|
|
|
sp.name as invSpaceName
|
|
|
@ -342,7 +379,9 @@
|
|
|
|
auditUser = #{auditUser,jdbcType=VARCHAR},
|
|
|
|
auditUser = #{auditUser,jdbcType=VARCHAR},
|
|
|
|
auditTime = #{auditTime,jdbcType=TIMESTAMP},
|
|
|
|
auditTime = #{auditTime,jdbcType=TIMESTAMP},
|
|
|
|
`status` = #{status,jdbcType=BOOLEAN},
|
|
|
|
`status` = #{status,jdbcType=BOOLEAN},
|
|
|
|
remark = #{remark,jdbcType=VARCHAR}
|
|
|
|
remark = #{remark,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
inOrderIds = #{inOrderIds,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
outOrderIds = #{outOrderIds,jdbcType=VARCHAR}
|
|
|
|
where orderId = #{orderId}
|
|
|
|
where orderId = #{orderId}
|
|
|
|
</update>
|
|
|
|
</update>
|
|
|
|
|
|
|
|
|
|
|
|