update 桩基本信息表新增iccid字段

This commit is contained in:
Lemon
2024-11-01 13:30:47 +08:00
parent 67f4c80222
commit d66bb81290
2 changed files with 14 additions and 2 deletions

View File

@@ -15,6 +15,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="licenceId" column="licence_id" />
<result property="modelId" column="model_id" />
<result property="simId" column="sim_id" />
<result property="iccId" column="iccid" />
<result property="merchantId" column="merchant_id" />
<result property="stationId" column="station_id" />
<result property="faultReason" column="fault_reason" />
@@ -29,7 +30,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<sql id="Base_Column_List">
<!--@mbg.generated-->
id, sn, name, business_type, secret_key, software_protocol, production_date, licence_id, model_id, sim_id,
merchant_id, station_id, fault_reason, create_by, create_time, update_by, update_time, del_flag, remark
iccid, merchant_id, station_id, fault_reason, create_by, create_time, update_by, update_time, del_flag, remark
</sql>
<sql id="selectPileBasicInfoVo">
@@ -49,6 +50,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
--> <if test="licenceId != null "> and licence_id = #{licenceId}</if>
<if test="modelId != null "> and model_id = #{modelId}</if>
<if test="simId != null "> and sim_id = #{simId}</if>
<if test="iccId != null "> and iccid = #{iccId}</if>
<if test="merchantId != null "> and merchant_id = #{merchantId}</if>
<if test="stationId != null "> and station_id = #{stationId}</if>
<if test="faultReason != null and faultReason != ''"> and fault_reason = #{faultReason}</if>
@@ -78,6 +80,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="licenceId != null">licence_id,</if>
<if test="modelId != null">model_id,</if>
<if test="simId != null">sim_id,</if>
<if test="iccId != null">iccid,</if>
<if test="merchantId != null">merchant_id,</if>
<if test="stationId != null">station_id,</if>
<if test="faultReason != null">fault_reason,</if>
@@ -98,6 +101,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="licenceId != null">#{licenceId},</if>
<if test="modelId != null">#{modelId},</if>
<if test="simId != null">#{simId},</if>
<if test="iccId != null">#{iccId},</if>
<if test="merchantId != null">#{merchantId},</if>
<if test="stationId != null">#{stationId},</if>
<if test="faultReason != null">#{faultReason},</if>
@@ -122,6 +126,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="licenceId != null">licence_id = #{licenceId},</if>
<if test="modelId != null">model_id = #{modelId},</if>
<if test="simId != null">sim_id = #{simId},</if>
<if test="iccId != null">iccid = #{iccId},</if>
<if test="merchantId != null">merchant_id = #{merchantId},</if>
<if test="stationId != null">station_id = #{stationId},</if>
<if test="faultReason != null">fault_reason = #{faultReason},</if>
@@ -202,7 +207,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<insert id="batchInsertPileBasicInfo">
insert into pile_basic_info
(sn, name, business_type, secret_key, software_protocol, production_date, licence_id, model_id, sim_id,
(sn, name, business_type, secret_key, software_protocol, production_date, licence_id, model_id, sim_id, iccid,
merchant_id, station_id, fault_reason, create_by, update_by, del_flag, remark)
values
<foreach collection="infoList" item="item" separator=",">
@@ -216,6 +221,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
#{item.licenceId,jdbcType=BIGINT},
#{item.modelId,jdbcType=BIGINT},
#{item.simId,jdbcType=BIGINT},
#{item.iccId,jdbcType=VARCHAR},
#{item.merchantId,jdbcType=BIGINT},
#{item.stationId,jdbcType=BIGINT},
#{item.faultReason,jdbcType=VARCHAR},