|
|
|
@ -12,10 +12,11 @@
|
|
|
|
|
<result column="updateTime" jdbcType="TIMESTAMP" property="updateTime"/>
|
|
|
|
|
<result column="auditUser" jdbcType="VARCHAR" property="auditUser"/>
|
|
|
|
|
<result column="auditTime" jdbcType="TIMESTAMP" property="auditTime"/>
|
|
|
|
|
<result column="status" jdbcType="BOOLEAN" property="status"/>
|
|
|
|
|
<result column="status" jdbcType="TINYINT" property="status"/>
|
|
|
|
|
<result column="remark" jdbcType="VARCHAR" property="remark"/>
|
|
|
|
|
<result column="inOrderIds" jdbcType="VARCHAR" property="inOrderIds"/>
|
|
|
|
|
<result column="outOrderIds" jdbcType="VARCHAR" property="outOrderIds"/>
|
|
|
|
|
<result column="countType" jdbcType="TINYINT" property="countType"/>
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<sql id="Base_Column_List">
|
|
|
|
@ -32,7 +33,8 @@
|
|
|
|
|
`status`,
|
|
|
|
|
remark,
|
|
|
|
|
inOrderIds,
|
|
|
|
|
outOrderIds
|
|
|
|
|
outOrderIds,
|
|
|
|
|
countType
|
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
|
|
|
@ -53,12 +55,12 @@
|
|
|
|
|
insert into inv_count_order (orderId, invStorageCode,
|
|
|
|
|
invWarehouseCode, invSpaceCode, `createUser`,
|
|
|
|
|
createTime, updateTime, auditUser,
|
|
|
|
|
auditTime, `status`, remark, inOrderIds, outOrderIds)
|
|
|
|
|
auditTime, `status`, remark, inOrderIds, outOrderIds, countType)
|
|
|
|
|
values (#{orderId,jdbcType=VARCHAR}, #{invStorageCode,jdbcType=VARCHAR},
|
|
|
|
|
#{invWarehouseCode,jdbcType=VARCHAR}, #{invSpaceCode,jdbcType=VARCHAR}, #{createUser,jdbcType=VARCHAR},
|
|
|
|
|
#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{auditUser,jdbcType=VARCHAR},
|
|
|
|
|
#{auditTime,jdbcType=TIMESTAMP}, #{status,jdbcType=BOOLEAN}, #{remark,jdbcType=VARCHAR},
|
|
|
|
|
#{inOrderIds,jdbcType=VARCHAR}, #{outOrderIds,jdbcType=VARCHAR})
|
|
|
|
|
#{inOrderIds,jdbcType=VARCHAR}, #{outOrderIds,jdbcType=VARCHAR}, #{countType,jdbcType=TINYINT})
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
<insert id="insertSelective" parameterType="com.glxp.api.admin.entity.inventory.InvCountOrder">
|
|
|
|
@ -106,6 +108,9 @@
|
|
|
|
|
<if test="outOrderIds != null and outOrderIds != ''">
|
|
|
|
|
outOrderIds,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="countType != null">
|
|
|
|
|
countType,
|
|
|
|
|
</if>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="id != null">
|
|
|
|
@ -150,6 +155,9 @@
|
|
|
|
|
<if test="outOrderIds != null and outOrderIds != ''">
|
|
|
|
|
#{outOrderIds,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="countType != null">
|
|
|
|
|
#{countType,jdbcType=TINYINT},
|
|
|
|
|
</if>
|
|
|
|
|
</trim>
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
@ -195,6 +203,9 @@
|
|
|
|
|
<if test="outOrderIds != null and outOrderIds != ''">
|
|
|
|
|
outOrderIds = #{outOrderIds,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="countType != null">
|
|
|
|
|
countType = #{countType,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
</set>
|
|
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
|
|
</update>
|
|
|
|
@ -213,7 +224,8 @@
|
|
|
|
|
`status` = #{status,jdbcType=BOOLEAN},
|
|
|
|
|
remark = #{remark,jdbcType=VARCHAR},
|
|
|
|
|
inOrderIds = #{inOrderIds,jdbcType=VARCHAR},
|
|
|
|
|
outOrderIds = #{outOrderIds,jdbcType=VARCHAR}
|
|
|
|
|
outOrderIds = #{outOrderIds,jdbcType=VARCHAR},
|
|
|
|
|
countType = #{countType,jdbcType=INTEGER}
|
|
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
|
|
</update>
|
|
|
|
|
|
|
|
|
@ -285,6 +297,11 @@
|
|
|
|
|
when id = #{item.id,jdbcType=INTEGER} then #{item.outOrderIds,jdbcType=VARCHAR}
|
|
|
|
|
</foreach>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="countType = case" suffix="end,">
|
|
|
|
|
<foreach collection="list" index="index" item="item">
|
|
|
|
|
when id = #{item.id,jdbcType=INTEGER} then #{item.countType,jdbcType=INTEGER}
|
|
|
|
|
</foreach>
|
|
|
|
|
</trim>
|
|
|
|
|
</trim>
|
|
|
|
|
where id in
|
|
|
|
|
<foreach close=")" collection="list" item="item" open="(" separator=", ">
|
|
|
|
@ -295,7 +312,7 @@
|
|
|
|
|
<insert id="batchInsert" parameterType="map">
|
|
|
|
|
insert into inv_count_order
|
|
|
|
|
(id, orderId, invStorageCode, invWarehouseCode, invSpaceCode, `createUser`, createTime,
|
|
|
|
|
updateTime, auditUser, auditTime, `status`, remark, inOrderIds, outOrderIds)
|
|
|
|
|
updateTime, auditUser, auditTime, `status`, remark, inOrderIds, outOrderIds, countType)
|
|
|
|
|
values
|
|
|
|
|
<foreach collection="list" item="item" separator=",">
|
|
|
|
|
(#{item.id,jdbcType=INTEGER}, #{item.orderId,jdbcType=VARCHAR}, #{item.invStorageCode,jdbcType=VARCHAR},
|
|
|
|
@ -303,7 +320,8 @@
|
|
|
|
|
#{item.createUser,jdbcType=VARCHAR}, #{item.createTime,jdbcType=TIMESTAMP},
|
|
|
|
|
#{item.updateTime,jdbcType=TIMESTAMP},
|
|
|
|
|
#{item.auditUser,jdbcType=VARCHAR}, #{item.auditTime,jdbcType=TIMESTAMP}, #{item.status,jdbcType=BOOLEAN},
|
|
|
|
|
#{item.remark,jdbcType=VARCHAR}, #{item.inOrderIds,jdbcType=VARCHAR}, #{item.outOrderIds,jdbcType=VARCHAR})
|
|
|
|
|
#{item.remark,jdbcType=VARCHAR}, #{item.inOrderIds,jdbcType=VARCHAR}, #{item.outOrderIds,jdbcType=VARCHAR},
|
|
|
|
|
#{item.countType,jdbcType=INTEGER})
|
|
|
|
|
</foreach>
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
@ -322,6 +340,7 @@
|
|
|
|
|
co.remark,
|
|
|
|
|
co.inOrderIds,
|
|
|
|
|
co.outOrderIds,
|
|
|
|
|
co.countType,
|
|
|
|
|
w.name as invStorageName,
|
|
|
|
|
ws.name as invSubStorageName,
|
|
|
|
|
sp.name as invSpaceName
|
|
|
|
@ -381,7 +400,8 @@
|
|
|
|
|
`status` = #{status,jdbcType=BOOLEAN},
|
|
|
|
|
remark = #{remark,jdbcType=VARCHAR},
|
|
|
|
|
inOrderIds = #{inOrderIds,jdbcType=VARCHAR},
|
|
|
|
|
outOrderIds = #{outOrderIds,jdbcType=VARCHAR}
|
|
|
|
|
outOrderIds = #{outOrderIds,jdbcType=VARCHAR},
|
|
|
|
|
countType = #{countType,jdbcType=INTEGER}
|
|
|
|
|
where orderId = #{orderId}
|
|
|
|
|
</update>
|
|
|
|
|
|
|
|
|
|