更新对账单增加租户字段

This commit is contained in:
panshuling321 2022-01-07 15:32:05 +08:00
parent e85ff50716
commit 45a8620fdd
2 changed files with 12 additions and 3 deletions

View File

@ -41,6 +41,8 @@ public class XhpcTradebillUploadRecordDomain implements Serializable {
private Integer checkedCount;
private String tenantId;
private static final long serialVersionUID = 1L;
}

View File

@ -17,10 +17,11 @@
<result column="fail_count" jdbcType="INTEGER" property="failCount" />
<result column="uncheck_count" jdbcType="INTEGER" property="uncheckCount" />
<result column="checked_count" jdbcType="INTEGER" property="checkedCount" />
<result column="tenant_id" jdbcType="VARCHAR" property="tenantId" />
</resultMap>
<sql id="Base_Column_List">
id, create_time, create_by, update_time, update_by, `source`, file_name, url, `type`,
`status`, del_flag, success_count, fail_count, uncheck_count, checked_count
`status`, del_flag, success_count, fail_count, uncheck_count, checked_count, tenant_id
</sql>
@ -62,12 +63,12 @@
update_by, `source`, file_name,
url, `type`, `status`,
del_flag, success_count, fail_count,
uncheck_count, checked_count)
uncheck_count, checked_count, tenant_id)
values (now(), #{createBy,jdbcType=VARCHAR}, now(),
#{updateBy,jdbcType=VARCHAR}, #{source,jdbcType=VARCHAR}, #{fileName,jdbcType=VARCHAR},
#{url,jdbcType=VARCHAR}, #{type,jdbcType=SMALLINT}, #{status,jdbcType=SMALLINT},
#{delFlag,jdbcType=SMALLINT}, #{successCount,jdbcType=INTEGER}, #{failCount,jdbcType=INTEGER},
#{uncheckCount,jdbcType=INTEGER}, #{checkedCount,jdbcType=INTEGER})
#{uncheckCount,jdbcType=INTEGER}, #{checkedCount,jdbcType=INTEGER}, #{tenantId, jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.xhpc.tradebill.domain.XhpcTradebillUploadRecordDomain" useGeneratedKeys="true">
insert into xhpc_tradebill_upload_record
@ -110,6 +111,9 @@
<if test="checkedCount != null">
checked_count,
</if>
<if test="tenantId != null">
tenant_id,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
now(),
@ -150,6 +154,9 @@
<if test="checkedCount != null">
#{checkedCount,jdbcType=INTEGER},
</if>
<if test="tenantId != null">
#{tenantId, jdbcType=VARCHAR},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.xhpc.tradebill.domain.XhpcTradebillUploadRecordDomain">