You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
265 lines
10 KiB
XML
265 lines
10 KiB
XML
3 years ago
|
<?xml version="1.0" encoding="UTF-8"?>
|
||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||
|
<mapper namespace="com.glxp.sale.admin.dao.inventory.InvCountOrderMapper">
|
||
|
<resultMap id="BaseResultMap" type="com.glxp.sale.admin.entity.inventory.InvCountOrder">
|
||
|
<!--@mbg.generated-->
|
||
|
<!--@Table inv_count_order-->
|
||
|
<id column="id" jdbcType="INTEGER" property="id" />
|
||
|
<result column="orderId" jdbcType="VARCHAR" property="orderid" />
|
||
|
<result column="invStorageCode" jdbcType="VARCHAR" property="invstoragecode" />
|
||
|
<result column="invWarehouseCode" jdbcType="VARCHAR" property="invwarehousecode" />
|
||
|
<result column="invSpaceCode" jdbcType="VARCHAR" property="invspacecode" />
|
||
|
<result column="createUser" jdbcType="VARCHAR" property="createuser" />
|
||
|
<result column="createTime" jdbcType="TIMESTAMP" property="createtime" />
|
||
|
<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="remark" jdbcType="VARCHAR" property="remark" />
|
||
|
</resultMap>
|
||
|
<sql id="Base_Column_List">
|
||
|
<!--@mbg.generated-->
|
||
|
id, orderId, invStorageCode, invWarehouseCode, invSpaceCode, `createUser`, createTime,
|
||
|
updateTime, auditUser, auditTime, `status`, remark
|
||
|
</sql>
|
||
|
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
||
|
<!--@mbg.generated-->
|
||
|
select
|
||
|
<include refid="Base_Column_List" />
|
||
|
from inv_count_order
|
||
|
where id = #{id,jdbcType=INTEGER}
|
||
|
</select>
|
||
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
||
|
<!--@mbg.generated-->
|
||
|
delete from inv_count_order
|
||
|
where id = #{id,jdbcType=INTEGER}
|
||
|
</delete>
|
||
|
<insert id="insert" parameterType="com.glxp.sale.admin.entity.inventory.InvCountOrder">
|
||
|
<!--@mbg.generated-->
|
||
|
insert into inv_count_order (id, orderId, invStorageCode,
|
||
|
invWarehouseCode, invSpaceCode, `createUser`,
|
||
|
createTime, updateTime, auditUser,
|
||
|
auditTime, `status`, remark
|
||
|
)
|
||
|
values (#{id,jdbcType=INTEGER}, #{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}
|
||
|
)
|
||
|
</insert>
|
||
|
<insert id="insertSelective" parameterType="com.glxp.sale.admin.entity.inventory.InvCountOrder">
|
||
|
<!--@mbg.generated-->
|
||
|
insert into inv_count_order
|
||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||
|
<if test="id != null">
|
||
|
id,
|
||
|
</if>
|
||
|
<if test="orderid != null">
|
||
|
orderId,
|
||
|
</if>
|
||
|
<if test="invstoragecode != null">
|
||
|
invStorageCode,
|
||
|
</if>
|
||
|
<if test="invwarehousecode != null">
|
||
|
invWarehouseCode,
|
||
|
</if>
|
||
|
<if test="invspacecode != null">
|
||
|
invSpaceCode,
|
||
|
</if>
|
||
|
<if test="createuser != null">
|
||
|
`createUser`,
|
||
|
</if>
|
||
|
<if test="createtime != null">
|
||
|
createTime,
|
||
|
</if>
|
||
|
<if test="updatetime != null">
|
||
|
updateTime,
|
||
|
</if>
|
||
|
<if test="audituser != null">
|
||
|
auditUser,
|
||
|
</if>
|
||
|
<if test="audittime != null">
|
||
|
auditTime,
|
||
|
</if>
|
||
|
<if test="status != null">
|
||
|
`status`,
|
||
|
</if>
|
||
|
<if test="remark != null">
|
||
|
remark,
|
||
|
</if>
|
||
|
</trim>
|
||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||
|
<if test="id != null">
|
||
|
#{id,jdbcType=INTEGER},
|
||
|
</if>
|
||
|
<if test="orderid != null">
|
||
|
#{orderid,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="createuser != null">
|
||
|
#{createuser,jdbcType=VARCHAR},
|
||
|
</if>
|
||
|
<if test="createtime != null">
|
||
|
#{createtime,jdbcType=TIMESTAMP},
|
||
|
</if>
|
||
|
<if test="updatetime != null">
|
||
|
#{updatetime,jdbcType=TIMESTAMP},
|
||
|
</if>
|
||
|
<if test="audituser != null">
|
||
|
#{audituser,jdbcType=VARCHAR},
|
||
|
</if>
|
||
|
<if test="audittime != null">
|
||
|
#{audittime,jdbcType=TIMESTAMP},
|
||
|
</if>
|
||
|
<if test="status != null">
|
||
|
#{status,jdbcType=BOOLEAN},
|
||
|
</if>
|
||
|
<if test="remark != null">
|
||
|
#{remark,jdbcType=VARCHAR},
|
||
|
</if>
|
||
|
</trim>
|
||
|
</insert>
|
||
|
<update id="updateByPrimaryKeySelective" parameterType="com.glxp.sale.admin.entity.inventory.InvCountOrder">
|
||
|
<!--@mbg.generated-->
|
||
|
update inv_count_order
|
||
|
<set>
|
||
|
<if test="orderid != null">
|
||
|
orderId = #{orderid,jdbcType=VARCHAR},
|
||
|
</if>
|
||
|
<if test="invstoragecode != null">
|
||
|
invStorageCode = #{invstoragecode,jdbcType=VARCHAR},
|
||
|
</if>
|
||
|
<if test="invwarehousecode != null">
|
||
|
invWarehouseCode = #{invwarehousecode,jdbcType=VARCHAR},
|
||
|
</if>
|
||
|
<if test="invspacecode != null">
|
||
|
invSpaceCode = #{invspacecode,jdbcType=VARCHAR},
|
||
|
</if>
|
||
|
<if test="createuser != null">
|
||
|
`createUser` = #{createuser,jdbcType=VARCHAR},
|
||
|
</if>
|
||
|
<if test="createtime != null">
|
||
|
createTime = #{createtime,jdbcType=TIMESTAMP},
|
||
|
</if>
|
||
|
<if test="updatetime != null">
|
||
|
updateTime = #{updatetime,jdbcType=TIMESTAMP},
|
||
|
</if>
|
||
|
<if test="audituser != null">
|
||
|
auditUser = #{audituser,jdbcType=VARCHAR},
|
||
|
</if>
|
||
|
<if test="audittime != null">
|
||
|
auditTime = #{audittime,jdbcType=TIMESTAMP},
|
||
|
</if>
|
||
|
<if test="status != null">
|
||
|
`status` = #{status,jdbcType=BOOLEAN},
|
||
|
</if>
|
||
|
<if test="remark != null">
|
||
|
remark = #{remark,jdbcType=VARCHAR},
|
||
|
</if>
|
||
|
</set>
|
||
|
where id = #{id,jdbcType=INTEGER}
|
||
|
</update>
|
||
|
<update id="updateByPrimaryKey" parameterType="com.glxp.sale.admin.entity.inventory.InvCountOrder">
|
||
|
<!--@mbg.generated-->
|
||
|
update inv_count_order
|
||
|
set orderId = #{orderid,jdbcType=VARCHAR},
|
||
|
invStorageCode = #{invstoragecode,jdbcType=VARCHAR},
|
||
|
invWarehouseCode = #{invwarehousecode,jdbcType=VARCHAR},
|
||
|
invSpaceCode = #{invspacecode,jdbcType=VARCHAR},
|
||
|
`createUser` = #{createuser,jdbcType=VARCHAR},
|
||
|
createTime = #{createtime,jdbcType=TIMESTAMP},
|
||
|
updateTime = #{updatetime,jdbcType=TIMESTAMP},
|
||
|
auditUser = #{audituser,jdbcType=VARCHAR},
|
||
|
auditTime = #{audittime,jdbcType=TIMESTAMP},
|
||
|
`status` = #{status,jdbcType=BOOLEAN},
|
||
|
remark = #{remark,jdbcType=VARCHAR}
|
||
|
where id = #{id,jdbcType=INTEGER}
|
||
|
</update>
|
||
|
<update id="updateBatch" parameterType="java.util.List">
|
||
|
<!--@mbg.generated-->
|
||
|
update inv_count_order
|
||
|
<trim prefix="set" suffixOverrides=",">
|
||
|
<trim prefix="orderId = case" suffix="end,">
|
||
|
<foreach collection="list" index="index" item="item">
|
||
|
when id = #{item.id,jdbcType=INTEGER} then #{item.orderid,jdbcType=VARCHAR}
|
||
|
</foreach>
|
||
|
</trim>
|
||
|
<trim prefix="invStorageCode = case" suffix="end,">
|
||
|
<foreach collection="list" index="index" item="item">
|
||
|
when id = #{item.id,jdbcType=INTEGER} then #{item.invstoragecode,jdbcType=VARCHAR}
|
||
|
</foreach>
|
||
|
</trim>
|
||
|
<trim prefix="invWarehouseCode = case" suffix="end,">
|
||
|
<foreach collection="list" index="index" item="item">
|
||
|
when id = #{item.id,jdbcType=INTEGER} then #{item.invwarehousecode,jdbcType=VARCHAR}
|
||
|
</foreach>
|
||
|
</trim>
|
||
|
<trim prefix="invSpaceCode = case" suffix="end,">
|
||
|
<foreach collection="list" index="index" item="item">
|
||
|
when id = #{item.id,jdbcType=INTEGER} then #{item.invspacecode,jdbcType=VARCHAR}
|
||
|
</foreach>
|
||
|
</trim>
|
||
|
<trim prefix="`createUser` = case" suffix="end,">
|
||
|
<foreach collection="list" index="index" item="item">
|
||
|
when id = #{item.id,jdbcType=INTEGER} then #{item.createuser,jdbcType=VARCHAR}
|
||
|
</foreach>
|
||
|
</trim>
|
||
|
<trim prefix="createTime = case" suffix="end,">
|
||
|
<foreach collection="list" index="index" item="item">
|
||
|
when id = #{item.id,jdbcType=INTEGER} then #{item.createtime,jdbcType=TIMESTAMP}
|
||
|
</foreach>
|
||
|
</trim>
|
||
|
<trim prefix="updateTime = case" suffix="end,">
|
||
|
<foreach collection="list" index="index" item="item">
|
||
|
when id = #{item.id,jdbcType=INTEGER} then #{item.updatetime,jdbcType=TIMESTAMP}
|
||
|
</foreach>
|
||
|
</trim>
|
||
|
<trim prefix="auditUser = case" suffix="end,">
|
||
|
<foreach collection="list" index="index" item="item">
|
||
|
when id = #{item.id,jdbcType=INTEGER} then #{item.audituser,jdbcType=VARCHAR}
|
||
|
</foreach>
|
||
|
</trim>
|
||
|
<trim prefix="auditTime = case" suffix="end,">
|
||
|
<foreach collection="list" index="index" item="item">
|
||
|
when id = #{item.id,jdbcType=INTEGER} then #{item.audittime,jdbcType=TIMESTAMP}
|
||
|
</foreach>
|
||
|
</trim>
|
||
|
<trim prefix="`status` = case" suffix="end,">
|
||
|
<foreach collection="list" index="index" item="item">
|
||
|
when id = #{item.id,jdbcType=INTEGER} then #{item.status,jdbcType=BOOLEAN}
|
||
|
</foreach>
|
||
|
</trim>
|
||
|
<trim prefix="remark = case" suffix="end,">
|
||
|
<foreach collection="list" index="index" item="item">
|
||
|
when id = #{item.id,jdbcType=INTEGER} then #{item.remark,jdbcType=VARCHAR}
|
||
|
</foreach>
|
||
|
</trim>
|
||
|
</trim>
|
||
|
where id in
|
||
|
<foreach close=")" collection="list" item="item" open="(" separator=", ">
|
||
|
#{item.id,jdbcType=INTEGER}
|
||
|
</foreach>
|
||
|
</update>
|
||
|
<insert id="batchInsert" parameterType="map">
|
||
|
<!--@mbg.generated-->
|
||
|
insert into inv_count_order
|
||
|
(id, orderId, invStorageCode, invWarehouseCode, invSpaceCode, `createUser`, createTime,
|
||
|
updateTime, auditUser, auditTime, `status`, remark)
|
||
|
values
|
||
|
<foreach collection="list" item="item" separator=",">
|
||
|
(#{item.id,jdbcType=INTEGER}, #{item.orderid,jdbcType=VARCHAR}, #{item.invstoragecode,jdbcType=VARCHAR},
|
||
|
#{item.invwarehousecode,jdbcType=VARCHAR}, #{item.invspacecode,jdbcType=VARCHAR},
|
||
|
#{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})
|
||
|
</foreach>
|
||
|
</insert>
|
||
|
</mapper>
|