1.修改字段命名

feature-order-fix
x_z 3 years ago
parent 16acbbed33
commit e3f7321a5e

@ -15,47 +15,47 @@ public class InvCountOrder {
/**
*
*/
private String orderid;
private String orderId;
/**
*
*/
private String invstoragecode;
private String invStorageCode;
/**
*
*/
private String invwarehousecode;
private String invWarehouseCode;
/**
*
*/
private String invspacecode;
private String invSpaceCode;
/**
* ID
*/
private String createuser;
private String createUser;
/**
*
*/
private Date createtime;
private Date createTime;
/**
*
*/
private Date updatetime;
private Date updateTime;
/**
* ID
*/
private String audituser;
private String auditUser;
/**
*
*/
private Date audittime;
private Date auditTime;
/**
*

@ -15,52 +15,52 @@ public class InvCountOrderDetail {
/**
*
*/
private String orderidfk;
private String orderIdFk;
/**
* ID
*/
private String productid;
private String productId;
/**
*
*/
private String batchno;
private String batchNo;
/**
*
*/
private Date producedate;
private Date produceDate;
/**
*
*/
private Date expiredate;
private Date expireDate;
/**
*
*/
private String serialno;
private String serialNo;
/**
*
*/
private Integer countnum;
private Integer countNum;
/**
*
*/
private Integer booknum;
private Integer bookNum;
/**
*
*/
private Integer profitnum;
private Integer profitNum;
/**
*
*/
private Integer lossnum;
private Integer lossNum;
/**
* 0 1

@ -1,46 +1,51 @@
<?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.InvCountCodesMapper">
<resultMap id="BaseResultMap" type="com.glxp.sale.admin.entity.inventory.InvCountCodes">
<!--@mbg.generated-->
<!--@Table inv_count_codes-->
<id column="id" jdbcType="INTEGER" property="id" />
<result column="orderIdFk" jdbcType="VARCHAR" property="orderidfk" />
<result column="productId" jdbcType="VARCHAR" property="productid" />
<result column="code" jdbcType="VARCHAR" property="code" />
<result column="status" jdbcType="BOOLEAN" property="status" />
<mapper namespace="com.glxp.api.admin.dao.inventory.InvCountCodesDao">
<resultMap id="BaseResultMap" type="com.glxp.api.admin.entity.inventory.InvCountCodes">
<id column="id" jdbcType="INTEGER" property="id"/>
<result column="orderIdFk" jdbcType="VARCHAR" property="orderIdFk"/>
<result column="productId" jdbcType="VARCHAR" property="productId"/>
<result column="code" jdbcType="VARCHAR" property="code"/>
<result column="status" jdbcType="BOOLEAN" property="status"/>
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
id, orderIdFk, productId, code, `status`
id,
orderIdFk,
productId,
code,
`status`
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
<!--@mbg.generated-->
select
<include refid="Base_Column_List" />
<include refid="Base_Column_List"/>
from inv_count_codes
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
<!--@mbg.generated-->
delete from inv_count_codes
delete
from inv_count_codes
where id = #{id,jdbcType=INTEGER}
</delete>
<insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.glxp.sale.admin.entity.inventory.InvCountCodes" useGeneratedKeys="true">
<!--@mbg.generated-->
<insert id="insert" keyColumn="id" keyProperty="id"
parameterType="com.glxp.api.admin.entity.inventory.InvCountCodes" useGeneratedKeys="true">
insert into inv_count_codes (orderIdFk, productId, code,
`status`)
values (#{orderidfk,jdbcType=VARCHAR}, #{productid,jdbcType=VARCHAR}, #{code,jdbcType=VARCHAR},
values (#{orderIdFk,jdbcType=VARCHAR}, #{productId,jdbcType=VARCHAR}, #{code,jdbcType=VARCHAR},
#{status,jdbcType=BOOLEAN})
</insert>
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.glxp.sale.admin.entity.inventory.InvCountCodes" useGeneratedKeys="true">
<!--@mbg.generated-->
<insert id="insertSelective" keyColumn="id" keyProperty="id"
parameterType="com.glxp.api.admin.entity.inventory.InvCountCodes" useGeneratedKeys="true">
insert into inv_count_codes
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="orderidfk != null">
<if test="orderIdFk != null">
orderIdFk,
</if>
<if test="productid != null">
<if test="productId != null">
productId,
</if>
<if test="code != null">
@ -51,11 +56,11 @@
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="orderidfk != null">
#{orderidfk,jdbcType=VARCHAR},
<if test="orderIdFk != null">
#{orderIdFk,jdbcType=VARCHAR},
</if>
<if test="productid != null">
#{productid,jdbcType=VARCHAR},
<if test="productId != null">
#{productId,jdbcType=VARCHAR},
</if>
<if test="code != null">
#{code,jdbcType=VARCHAR},
@ -65,15 +70,15 @@
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.glxp.sale.admin.entity.inventory.InvCountCodes">
<!--@mbg.generated-->
<update id="updateByPrimaryKeySelective" parameterType="com.glxp.api.admin.entity.inventory.InvCountCodes">
update inv_count_codes
<set>
<if test="orderidfk != null">
orderIdFk = #{orderidfk,jdbcType=VARCHAR},
<if test="orderIdFk != null">
orderIdFk = #{orderIdFk,jdbcType=VARCHAR},
</if>
<if test="productid != null">
productId = #{productid,jdbcType=VARCHAR},
<if test="productId != null">
productId = #{productId,jdbcType=VARCHAR},
</if>
<if test="code != null">
code = #{code,jdbcType=VARCHAR},
@ -84,27 +89,27 @@
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.glxp.sale.admin.entity.inventory.InvCountCodes">
<!--@mbg.generated-->
<update id="updateByPrimaryKey" parameterType="com.glxp.api.admin.entity.inventory.InvCountCodes">
update inv_count_codes
set orderIdFk = #{orderidfk,jdbcType=VARCHAR},
productId = #{productid,jdbcType=VARCHAR},
set orderIdFk = #{orderIdFk,jdbcType=VARCHAR},
productId = #{productId,jdbcType=VARCHAR},
code = #{code,jdbcType=VARCHAR},
`status` = #{status,jdbcType=BOOLEAN}
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateBatch" parameterType="java.util.List">
<!--@mbg.generated-->
update inv_count_codes
<trim prefix="set" suffixOverrides=",">
<trim prefix="orderIdFk = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.orderidfk,jdbcType=VARCHAR}
when id = #{item.id,jdbcType=INTEGER} then #{item.orderIdFk,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="productId = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.productid,jdbcType=VARCHAR}
when id = #{item.id,jdbcType=INTEGER} then #{item.productId,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="code = case" suffix="end,">
@ -123,13 +128,13 @@
#{item.id,jdbcType=INTEGER}
</foreach>
</update>
<insert id="batchInsert" keyColumn="id" keyProperty="id" parameterType="map" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into inv_count_codes
(orderIdFk, productId, code, `status`)
values
<foreach collection="list" item="item" separator=",">
(#{item.orderidfk,jdbcType=VARCHAR}, #{item.productid,jdbcType=VARCHAR}, #{item.code,jdbcType=VARCHAR},
(#{item.orderIdFk,jdbcType=VARCHAR}, #{item.productId,jdbcType=VARCHAR}, #{item.code,jdbcType=VARCHAR},
#{item.status,jdbcType=BOOLEAN})
</foreach>
</insert>

@ -1,84 +1,91 @@
<?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" />
<mapper namespace="com.glxp.api.admin.dao.inventory.InvCountOrderDao">
<resultMap id="BaseResultMap" type="com.glxp.api.admin.entity.inventory.InvCountOrder">
<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
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" />
<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
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 id="insert" parameterType="com.glxp.api.admin.entity.inventory.InvCountOrder">
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}
)
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">
<insert id="insertSelective" parameterType="com.glxp.api.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">
<if test="orderId != null">
orderId,
</if>
<if test="invstoragecode != null">
<if test="invStorageCode != null">
invStorageCode,
</if>
<if test="invwarehousecode != null">
<if test="invWarehouseCode != null">
invWarehouseCode,
</if>
<if test="invspacecode != null">
<if test="invSpaceCode != null">
invSpaceCode,
</if>
<if test="createuser != null">
<if test="createUser != null">
`createUser`,
</if>
<if test="createtime != null">
<if test="createTime != null">
createTime,
</if>
<if test="updatetime != null">
<if test="updateTime != null">
updateTime,
</if>
<if test="audituser != null">
<if test="auditUser != null">
auditUser,
</if>
<if test="audittime != null">
<if test="auditTime != null">
auditTime,
</if>
<if test="status != null">
@ -92,32 +99,32 @@
<if test="id != null">
#{id,jdbcType=INTEGER},
</if>
<if test="orderid != null">
#{orderid,jdbcType=VARCHAR},
<if test="orderId != null">
#{orderId,jdbcType=VARCHAR},
</if>
<if test="invstoragecode != null">
#{invstoragecode,jdbcType=VARCHAR},
<if test="invStorageCode != null">
#{invStorageCode,jdbcType=VARCHAR},
</if>
<if test="invwarehousecode != null">
#{invwarehousecode,jdbcType=VARCHAR},
<if test="invWarehouseCode != null">
#{invWarehouseCode,jdbcType=VARCHAR},
</if>
<if test="invspacecode != null">
#{invspacecode,jdbcType=VARCHAR},
<if test="invSpaceCode != null">
#{invSpaceCode,jdbcType=VARCHAR},
</if>
<if test="createuser != null">
#{createuser,jdbcType=VARCHAR},
<if test="createUser != null">
#{createUser,jdbcType=VARCHAR},
</if>
<if test="createtime != null">
#{createtime,jdbcType=TIMESTAMP},
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updatetime != null">
#{updatetime,jdbcType=TIMESTAMP},
<if test="updateTime != null">
#{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="audituser != null">
#{audituser,jdbcType=VARCHAR},
<if test="auditUser != null">
#{auditUser,jdbcType=VARCHAR},
</if>
<if test="audittime != null">
#{audittime,jdbcType=TIMESTAMP},
<if test="auditTime != null">
#{auditTime,jdbcType=TIMESTAMP},
</if>
<if test="status != null">
#{status,jdbcType=BOOLEAN},
@ -127,36 +134,36 @@
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.glxp.sale.admin.entity.inventory.InvCountOrder">
<!--@mbg.generated-->
<update id="updateByPrimaryKeySelective" parameterType="com.glxp.api.admin.entity.inventory.InvCountOrder">
update inv_count_order
<set>
<if test="orderid != null">
orderId = #{orderid,jdbcType=VARCHAR},
<if test="orderId != null">
orderId = #{orderId,jdbcType=VARCHAR},
</if>
<if test="invstoragecode != null">
invStorageCode = #{invstoragecode,jdbcType=VARCHAR},
<if test="invStorageCode != null">
invStorageCode = #{invStorageCode,jdbcType=VARCHAR},
</if>
<if test="invwarehousecode != null">
invWarehouseCode = #{invwarehousecode,jdbcType=VARCHAR},
<if test="invWarehouseCode != null">
invWarehouseCode = #{invWarehouseCode,jdbcType=VARCHAR},
</if>
<if test="invspacecode != null">
invSpaceCode = #{invspacecode,jdbcType=VARCHAR},
<if test="invSpaceCode != null">
invSpaceCode = #{invSpaceCode,jdbcType=VARCHAR},
</if>
<if test="createuser != null">
`createUser` = #{createuser,jdbcType=VARCHAR},
<if test="createUser != null">
`createUser` = #{createUser,jdbcType=VARCHAR},
</if>
<if test="createtime != null">
createTime = #{createtime,jdbcType=TIMESTAMP},
<if test="createTime != null">
createTime = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updatetime != null">
updateTime = #{updatetime,jdbcType=TIMESTAMP},
<if test="updateTime != null">
updateTime = #{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="audituser != null">
auditUser = #{audituser,jdbcType=VARCHAR},
<if test="auditUser != null">
auditUser = #{auditUser,jdbcType=VARCHAR},
</if>
<if test="audittime != null">
auditTime = #{audittime,jdbcType=TIMESTAMP},
<if test="auditTime != null">
auditTime = #{auditTime,jdbcType=TIMESTAMP},
</if>
<if test="status != null">
`status` = #{status,jdbcType=BOOLEAN},
@ -167,69 +174,69 @@
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.glxp.sale.admin.entity.inventory.InvCountOrder">
<!--@mbg.generated-->
<update id="updateByPrimaryKey" parameterType="com.glxp.api.admin.entity.inventory.InvCountOrder">
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},
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}
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}
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}
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}
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}
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}
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}
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}
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}
when id = #{item.id,jdbcType=INTEGER} then #{item.auditTime,jdbcType=TIMESTAMP}
</foreach>
</trim>
<trim prefix="`status` = case" suffix="end,">
@ -248,8 +255,8 @@
#{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)
@ -257,7 +264,8 @@
<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.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>

@ -1,82 +1,93 @@
<?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.InvCountOrderDetailMapper">
<resultMap id="BaseResultMap" type="com.glxp.sale.admin.entity.inventory.InvCountOrderDetail">
<!--@mbg.generated-->
<!--@Table inv_count_order_detail-->
<id column="id" jdbcType="INTEGER" property="id" />
<result column="orderIdFk" jdbcType="VARCHAR" property="orderidfk" />
<result column="productId" jdbcType="VARCHAR" property="productid" />
<result column="batchNo" jdbcType="VARCHAR" property="batchno" />
<result column="produceDate" jdbcType="TIMESTAMP" property="producedate" />
<result column="expireDate" jdbcType="TIMESTAMP" property="expiredate" />
<result column="serialNo" jdbcType="VARCHAR" property="serialno" />
<result column="countNum" jdbcType="INTEGER" property="countnum" />
<result column="bookNum" jdbcType="INTEGER" property="booknum" />
<result column="profitNum" jdbcType="INTEGER" property="profitnum" />
<result column="lossNum" jdbcType="INTEGER" property="lossnum" />
<result column="status" jdbcType="BOOLEAN" property="status" />
<mapper namespace="com.glxp.api.admin.dao.inventory.InvCountOrderDetailDao">
<resultMap id="BaseResultMap" type="com.glxp.api.admin.entity.inventory.InvCountOrderDetail">
<id column="id" jdbcType="INTEGER" property="id"/>
<result column="orderIdFk" jdbcType="VARCHAR" property="orderIdFk"/>
<result column="productId" jdbcType="VARCHAR" property="productId"/>
<result column="batchNo" jdbcType="VARCHAR" property="batchNo"/>
<result column="produceDate" jdbcType="TIMESTAMP" property="produceDate"/>
<result column="expireDate" jdbcType="TIMESTAMP" property="expireDate"/>
<result column="serialNo" jdbcType="VARCHAR" property="serialNo"/>
<result column="countNum" jdbcType="INTEGER" property="countNum"/>
<result column="bookNum" jdbcType="INTEGER" property="bookNum"/>
<result column="profitNum" jdbcType="INTEGER" property="profitNum"/>
<result column="lossNum" jdbcType="INTEGER" property="lossNum"/>
<result column="status" jdbcType="BOOLEAN" property="status"/>
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
id, orderIdFk, productId, batchNo, produceDate, expireDate, serialNo, countNum, bookNum,
profitNum, lossNum, `status`
id,
orderIdFk,
productId,
batchNo,
produceDate,
expireDate,
serialNo,
countNum,
bookNum,
profitNum,
lossNum,
`status`
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
<!--@mbg.generated-->
select
<include refid="Base_Column_List" />
<include refid="Base_Column_List"/>
from inv_count_order_detail
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
<!--@mbg.generated-->
delete from inv_count_order_detail
delete
from inv_count_order_detail
where id = #{id,jdbcType=INTEGER}
</delete>
<insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.glxp.sale.admin.entity.inventory.InvCountOrderDetail" useGeneratedKeys="true">
<!--@mbg.generated-->
<insert id="insert" keyColumn="id" keyProperty="id"
parameterType="com.glxp.api.admin.entity.inventory.InvCountOrderDetail" useGeneratedKeys="true">
insert into inv_count_order_detail (orderIdFk, productId, batchNo,
produceDate, expireDate, serialNo,
countNum, bookNum, profitNum,
lossNum, `status`)
values (#{orderidfk,jdbcType=VARCHAR}, #{productid,jdbcType=VARCHAR}, #{batchno,jdbcType=VARCHAR},
#{producedate,jdbcType=TIMESTAMP}, #{expiredate,jdbcType=TIMESTAMP}, #{serialno,jdbcType=VARCHAR},
#{countnum,jdbcType=INTEGER}, #{booknum,jdbcType=INTEGER}, #{profitnum,jdbcType=INTEGER},
#{lossnum,jdbcType=INTEGER}, #{status,jdbcType=BOOLEAN})
values (#{orderIdFk,jdbcType=VARCHAR}, #{productId,jdbcType=VARCHAR}, #{batchNo,jdbcType=VARCHAR},
#{produceDate,jdbcType=TIMESTAMP}, #{expireDate,jdbcType=TIMESTAMP}, #{serialNo,jdbcType=VARCHAR},
#{countNum,jdbcType=INTEGER}, #{bookNum,jdbcType=INTEGER}, #{profitNum,jdbcType=INTEGER},
#{lossNum,jdbcType=INTEGER}, #{status,jdbcType=BOOLEAN})
</insert>
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.glxp.sale.admin.entity.inventory.InvCountOrderDetail" useGeneratedKeys="true">
<!--@mbg.generated-->
<insert id="insertSelective" keyColumn="id" keyProperty="id"
parameterType="com.glxp.api.admin.entity.inventory.InvCountOrderDetail" useGeneratedKeys="true">
insert into inv_count_order_detail
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="orderidfk != null">
<if test="orderIdFk != null">
orderIdFk,
</if>
<if test="productid != null">
<if test="productId != null">
productId,
</if>
<if test="batchno != null">
<if test="batchNo != null">
batchNo,
</if>
<if test="producedate != null">
<if test="produceDate != null">
produceDate,
</if>
<if test="expiredate != null">
<if test="expireDate != null">
expireDate,
</if>
<if test="serialno != null">
<if test="serialNo != null">
serialNo,
</if>
<if test="countnum != null">
<if test="countNum != null">
countNum,
</if>
<if test="booknum != null">
<if test="bookNum != null">
bookNum,
</if>
<if test="profitnum != null">
<if test="profitNum != null">
profitNum,
</if>
<if test="lossnum != null">
<if test="lossNum != null">
lossNum,
</if>
<if test="status != null">
@ -84,74 +95,74 @@
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="orderidfk != null">
#{orderidfk,jdbcType=VARCHAR},
<if test="orderIdFk != null">
#{orderIdFk,jdbcType=VARCHAR},
</if>
<if test="productid != null">
#{productid,jdbcType=VARCHAR},
<if test="productId != null">
#{productId,jdbcType=VARCHAR},
</if>
<if test="batchno != null">
#{batchno,jdbcType=VARCHAR},
<if test="batchNo != null">
#{batchNo,jdbcType=VARCHAR},
</if>
<if test="producedate != null">
#{producedate,jdbcType=TIMESTAMP},
<if test="produceDate != null">
#{produceDate,jdbcType=TIMESTAMP},
</if>
<if test="expiredate != null">
#{expiredate,jdbcType=TIMESTAMP},
<if test="expireDate != null">
#{expireDate,jdbcType=TIMESTAMP},
</if>
<if test="serialno != null">
#{serialno,jdbcType=VARCHAR},
<if test="serialNo != null">
#{serialNo,jdbcType=VARCHAR},
</if>
<if test="countnum != null">
#{countnum,jdbcType=INTEGER},
<if test="countNum != null">
#{countNum,jdbcType=INTEGER},
</if>
<if test="booknum != null">
#{booknum,jdbcType=INTEGER},
<if test="bookNum != null">
#{bookNum,jdbcType=INTEGER},
</if>
<if test="profitnum != null">
#{profitnum,jdbcType=INTEGER},
<if test="profitNum != null">
#{profitNum,jdbcType=INTEGER},
</if>
<if test="lossnum != null">
#{lossnum,jdbcType=INTEGER},
<if test="lossNum != null">
#{lossNum,jdbcType=INTEGER},
</if>
<if test="status != null">
#{status,jdbcType=BOOLEAN},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.glxp.sale.admin.entity.inventory.InvCountOrderDetail">
<!--@mbg.generated-->
<update id="updateByPrimaryKeySelective" parameterType="com.glxp.api.admin.entity.inventory.InvCountOrderDetail">
update inv_count_order_detail
<set>
<if test="orderidfk != null">
orderIdFk = #{orderidfk,jdbcType=VARCHAR},
<if test="orderIdFk != null">
orderIdFk = #{orderIdFk,jdbcType=VARCHAR},
</if>
<if test="productid != null">
productId = #{productid,jdbcType=VARCHAR},
<if test="productId != null">
productId = #{productId,jdbcType=VARCHAR},
</if>
<if test="batchno != null">
batchNo = #{batchno,jdbcType=VARCHAR},
<if test="batchNo != null">
batchNo = #{batchNo,jdbcType=VARCHAR},
</if>
<if test="producedate != null">
produceDate = #{producedate,jdbcType=TIMESTAMP},
<if test="produceDate != null">
produceDate = #{produceDate,jdbcType=TIMESTAMP},
</if>
<if test="expiredate != null">
expireDate = #{expiredate,jdbcType=TIMESTAMP},
<if test="expireDate != null">
expireDate = #{expireDate,jdbcType=TIMESTAMP},
</if>
<if test="serialno != null">
serialNo = #{serialno,jdbcType=VARCHAR},
<if test="serialNo != null">
serialNo = #{serialNo,jdbcType=VARCHAR},
</if>
<if test="countnum != null">
countNum = #{countnum,jdbcType=INTEGER},
<if test="countNum != null">
countNum = #{countNum,jdbcType=INTEGER},
</if>
<if test="booknum != null">
bookNum = #{booknum,jdbcType=INTEGER},
<if test="bookNum != null">
bookNum = #{bookNum,jdbcType=INTEGER},
</if>
<if test="profitnum != null">
profitNum = #{profitnum,jdbcType=INTEGER},
<if test="profitNum != null">
profitNum = #{profitNum,jdbcType=INTEGER},
</if>
<if test="lossnum != null">
lossNum = #{lossnum,jdbcType=INTEGER},
<if test="lossNum != null">
lossNum = #{lossNum,jdbcType=INTEGER},
</if>
<if test="status != null">
`status` = #{status,jdbcType=BOOLEAN},
@ -159,74 +170,74 @@
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.glxp.sale.admin.entity.inventory.InvCountOrderDetail">
<!--@mbg.generated-->
<update id="updateByPrimaryKey" parameterType="com.glxp.api.admin.entity.inventory.InvCountOrderDetail">
update inv_count_order_detail
set orderIdFk = #{orderidfk,jdbcType=VARCHAR},
productId = #{productid,jdbcType=VARCHAR},
batchNo = #{batchno,jdbcType=VARCHAR},
produceDate = #{producedate,jdbcType=TIMESTAMP},
expireDate = #{expiredate,jdbcType=TIMESTAMP},
serialNo = #{serialno,jdbcType=VARCHAR},
countNum = #{countnum,jdbcType=INTEGER},
bookNum = #{booknum,jdbcType=INTEGER},
profitNum = #{profitnum,jdbcType=INTEGER},
lossNum = #{lossnum,jdbcType=INTEGER},
set orderIdFk = #{orderIdFk,jdbcType=VARCHAR},
productId = #{productId,jdbcType=VARCHAR},
batchNo = #{batchNo,jdbcType=VARCHAR},
produceDate = #{produceDate,jdbcType=TIMESTAMP},
expireDate = #{expireDate,jdbcType=TIMESTAMP},
serialNo = #{serialNo,jdbcType=VARCHAR},
countNum = #{countNum,jdbcType=INTEGER},
bookNum = #{bookNum,jdbcType=INTEGER},
profitNum = #{productId,jdbcType=INTEGER},
lossNum = #{lossNum,jdbcType=INTEGER},
`status` = #{status,jdbcType=BOOLEAN}
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateBatch" parameterType="java.util.List">
<!--@mbg.generated-->
update inv_count_order_detail
<trim prefix="set" suffixOverrides=",">
<trim prefix="orderIdFk = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.orderidfk,jdbcType=VARCHAR}
when id = #{item.id,jdbcType=INTEGER} then #{item.orderIdFk,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="productId = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.productid,jdbcType=VARCHAR}
when id = #{item.id,jdbcType=INTEGER} then #{item.productId,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="batchNo = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.batchno,jdbcType=VARCHAR}
when id = #{item.id,jdbcType=INTEGER} then #{item.batchNo,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="produceDate = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.producedate,jdbcType=TIMESTAMP}
when id = #{item.id,jdbcType=INTEGER} then #{item.produceDate,jdbcType=TIMESTAMP}
</foreach>
</trim>
<trim prefix="expireDate = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.expiredate,jdbcType=TIMESTAMP}
when id = #{item.id,jdbcType=INTEGER} then #{item.expireDate,jdbcType=TIMESTAMP}
</foreach>
</trim>
<trim prefix="serialNo = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.serialno,jdbcType=VARCHAR}
when id = #{item.id,jdbcType=INTEGER} then #{item.serialNo,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="countNum = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.countnum,jdbcType=INTEGER}
when id = #{item.id,jdbcType=INTEGER} then #{item.countNum,jdbcType=INTEGER}
</foreach>
</trim>
<trim prefix="bookNum = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.booknum,jdbcType=INTEGER}
when id = #{item.id,jdbcType=INTEGER} then #{item.bookNum,jdbcType=INTEGER}
</foreach>
</trim>
<trim prefix="profitNum = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.profitnum,jdbcType=INTEGER}
when id = #{item.id,jdbcType=INTEGER} then #{item.profitNum,jdbcType=INTEGER}
</foreach>
</trim>
<trim prefix="lossNum = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.lossnum,jdbcType=INTEGER}
when id = #{item.id,jdbcType=INTEGER} then #{item.lossNum,jdbcType=INTEGER}
</foreach>
</trim>
<trim prefix="`status` = case" suffix="end,">
@ -240,18 +251,17 @@
#{item.id,jdbcType=INTEGER}
</foreach>
</update>
<insert id="batchInsert" keyColumn="id" keyProperty="id" parameterType="map" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into inv_count_order_detail
(orderIdFk, productId, batchNo, produceDate, expireDate, serialNo, countNum, bookNum,
profitNum, lossNum, `status`)
values
<foreach collection="list" item="item" separator=",">
(#{item.orderidfk,jdbcType=VARCHAR}, #{item.productid,jdbcType=VARCHAR}, #{item.batchno,jdbcType=VARCHAR},
#{item.producedate,jdbcType=TIMESTAMP}, #{item.expiredate,jdbcType=TIMESTAMP},
#{item.serialno,jdbcType=VARCHAR}, #{item.countnum,jdbcType=INTEGER}, #{item.booknum,jdbcType=INTEGER},
#{item.profitnum,jdbcType=INTEGER}, #{item.lossnum,jdbcType=INTEGER}, #{item.status,jdbcType=BOOLEAN}
)
(#{item.orderIdFk,jdbcType=VARCHAR}, #{item.productId,jdbcType=VARCHAR}, #{item.batchNo,jdbcType=VARCHAR},
#{item.produceDate,jdbcType=TIMESTAMP}, #{item.expireDate,jdbcType=TIMESTAMP},
#{item.serialNo,jdbcType=VARCHAR}, #{item.countNum,jdbcType=INTEGER}, #{item.bookNum,jdbcType=INTEGER},
#{item.profitNum,jdbcType=INTEGER}, #{item.lossNum,jdbcType=INTEGER}, #{item.status,jdbcType=BOOLEAN})
</foreach>
</insert>
</mapper>
Loading…
Cancel
Save