占桩订单表 实体类update

This commit is contained in:
2023-08-07 15:19:20 +08:00
parent ea3cc04ecd
commit ecf373be89
4 changed files with 85 additions and 22 deletions

View File

@@ -5,6 +5,7 @@
<!--@mbg.generated-->
<!--@Table order_pile_occupy-->
<id column="id" jdbcType="INTEGER" property="id" />
<result column="occupy_code" jdbcType="VARCHAR" property="occupyCode" />
<result column="status" jdbcType="CHAR" property="status" />
<result column="member_id" jdbcType="VARCHAR" property="memberId" />
<result column="order_code" jdbcType="VARCHAR" property="orderCode" />
@@ -22,9 +23,9 @@
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
id, `status`, member_id, order_code, transaction_code, start_time, end_time, pile_sn,
connector_code, pile_connector_code, create_time, create_by, update_time, update_by,
del_flag
id, occupy_code, `status`, member_id, order_code, transaction_code, start_time, end_time,
pile_sn, connector_code, pile_connector_code, create_time, create_by, update_time,
update_by, del_flag
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
<!--@mbg.generated-->
@@ -40,21 +41,26 @@
</delete>
<insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.jsowell.pile.domain.OrderPileOccupy" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into order_pile_occupy (`status`, member_id, order_code,
transaction_code, start_time, end_time,
pile_sn, connector_code, pile_connector_code,
create_time, create_by, update_time,
update_by, del_flag)
values (#{status,jdbcType=CHAR}, #{memberId,jdbcType=VARCHAR}, #{orderCode,jdbcType=VARCHAR},
#{transactionCode,jdbcType=VARCHAR}, #{startTime,jdbcType=TIMESTAMP}, #{endTime,jdbcType=TIMESTAMP},
#{pileSn,jdbcType=VARCHAR}, #{connectorCode,jdbcType=VARCHAR}, #{pileConnectorCode,jdbcType=VARCHAR},
#{createTime,jdbcType=TIMESTAMP}, #{createBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP},
#{updateBy,jdbcType=VARCHAR}, #{delFlag,jdbcType=CHAR})
insert into order_pile_occupy (occupy_code, `status`, member_id,
order_code, transaction_code, start_time,
end_time, pile_sn, connector_code,
pile_connector_code, create_time, create_by,
update_time, update_by, del_flag
)
values (#{occupyCode,jdbcType=VARCHAR}, #{status,jdbcType=CHAR}, #{memberId,jdbcType=VARCHAR},
#{orderCode,jdbcType=VARCHAR}, #{transactionCode,jdbcType=VARCHAR}, #{startTime,jdbcType=TIMESTAMP},
#{endTime,jdbcType=TIMESTAMP}, #{pileSn,jdbcType=VARCHAR}, #{connectorCode,jdbcType=VARCHAR},
#{pileConnectorCode,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{createBy,jdbcType=VARCHAR},
#{updateTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR}, #{delFlag,jdbcType=CHAR}
)
</insert>
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.jsowell.pile.domain.OrderPileOccupy" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into order_pile_occupy
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="occupyCode != null">
occupy_code,
</if>
<if test="status != null">
`status`,
</if>
@@ -99,6 +105,9 @@
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="occupyCode != null">
#{occupyCode,jdbcType=VARCHAR},
</if>
<if test="status != null">
#{status,jdbcType=CHAR},
</if>
@@ -147,6 +156,9 @@
<!--@mbg.generated-->
update order_pile_occupy
<set>
<if test="occupyCode != null">
occupy_code = #{occupyCode,jdbcType=VARCHAR},
</if>
<if test="status != null">
`status` = #{status,jdbcType=CHAR},
</if>
@@ -195,7 +207,8 @@
<update id="updateByPrimaryKey" parameterType="com.jsowell.pile.domain.OrderPileOccupy">
<!--@mbg.generated-->
update order_pile_occupy
set `status` = #{status,jdbcType=CHAR},
set occupy_code = #{occupyCode,jdbcType=VARCHAR},
`status` = #{status,jdbcType=CHAR},
member_id = #{memberId,jdbcType=VARCHAR},
order_code = #{orderCode,jdbcType=VARCHAR},
transaction_code = #{transactionCode,jdbcType=VARCHAR},
@@ -215,6 +228,11 @@
<!--@mbg.generated-->
update order_pile_occupy
<trim prefix="set" suffixOverrides=",">
<trim prefix="occupy_code = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.occupyCode,jdbcType=VARCHAR}
</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=CHAR}
@@ -295,6 +313,13 @@
<!--@mbg.generated-->
update order_pile_occupy
<trim prefix="set" suffixOverrides=",">
<trim prefix="occupy_code = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.occupyCode != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.occupyCode,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="`status` = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.status != null">
@@ -402,13 +427,13 @@
<insert id="batchInsert" keyColumn="id" keyProperty="id" parameterType="map" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into order_pile_occupy
(`status`, member_id, order_code, transaction_code, start_time, end_time, pile_sn,
connector_code, pile_connector_code, create_time, create_by, update_time, update_by,
del_flag)
(occupy_code, `status`, member_id, order_code, transaction_code, start_time, end_time,
pile_sn, connector_code, pile_connector_code, create_time, create_by, update_time,
update_by, del_flag)
values
<foreach collection="list" item="item" separator=",">
(#{item.status,jdbcType=CHAR}, #{item.memberId,jdbcType=VARCHAR}, #{item.orderCode,jdbcType=VARCHAR},
#{item.transactionCode,jdbcType=VARCHAR}, #{item.startTime,jdbcType=TIMESTAMP},
(#{item.occupyCode,jdbcType=VARCHAR}, #{item.status,jdbcType=CHAR}, #{item.memberId,jdbcType=VARCHAR},
#{item.orderCode,jdbcType=VARCHAR}, #{item.transactionCode,jdbcType=VARCHAR}, #{item.startTime,jdbcType=TIMESTAMP},
#{item.endTime,jdbcType=TIMESTAMP}, #{item.pileSn,jdbcType=VARCHAR}, #{item.connectorCode,jdbcType=VARCHAR},
#{item.pileConnectorCode,jdbcType=VARCHAR}, #{item.createTime,jdbcType=TIMESTAMP},
#{item.createBy,jdbcType=VARCHAR}, #{item.updateTime,jdbcType=TIMESTAMP}, #{item.updateBy,jdbcType=VARCHAR},
@@ -422,6 +447,7 @@
<if test="id != null">
id,
</if>
occupy_code,
`status`,
member_id,
order_code,
@@ -442,6 +468,7 @@
<if test="id != null">
#{id,jdbcType=INTEGER},
</if>
#{occupyCode,jdbcType=VARCHAR},
#{status,jdbcType=CHAR},
#{memberId,jdbcType=VARCHAR},
#{orderCode,jdbcType=VARCHAR},
@@ -462,6 +489,7 @@
<if test="id != null">
id = #{id,jdbcType=INTEGER},
</if>
occupy_code = #{occupyCode,jdbcType=VARCHAR},
`status` = #{status,jdbcType=CHAR},
member_id = #{memberId,jdbcType=VARCHAR},
order_code = #{orderCode,jdbcType=VARCHAR},
@@ -485,6 +513,9 @@
<if test="id != null">
id,
</if>
<if test="occupyCode != null">
occupy_code,
</if>
<if test="status != null">
`status`,
</if>
@@ -533,6 +564,9 @@
<if test="id != null">
#{id,jdbcType=INTEGER},
</if>
<if test="occupyCode != null">
#{occupyCode,jdbcType=VARCHAR},
</if>
<if test="status != null">
#{status,jdbcType=CHAR},
</if>
@@ -581,6 +615,9 @@
<if test="id != null">
id = #{id,jdbcType=INTEGER},
</if>
<if test="occupyCode != null">
occupy_code = #{occupyCode,jdbcType=VARCHAR},
</if>
<if test="status != null">
`status` = #{status,jdbcType=CHAR},
</if>