|
|
|
@@ -11,10 +11,11 @@ |
|
|
|
<result column="update_date" jdbcType="TIMESTAMP" property="updateDate"/> |
|
|
|
<result column="discount_enable" jdbcType="SMALLINT" property="discountEnable"/> |
|
|
|
<result column="capability" jdbcType="VARCHAR" property="capability"/> |
|
|
|
<result column="scale" jdbcType="INTEGER" property="scale"/> |
|
|
|
</resultMap> |
|
|
|
|
|
|
|
<sql id="allColumns"> |
|
|
|
`id`, `tenant_id`, `points`, `level`, `description`, `create_date`, `update_date`, `discount_enable`, `capability` |
|
|
|
`id`, `tenant_id`, `points`, `level`, `description`, `create_date`, `update_date`, `discount_enable`, `capability`,`scale` |
|
|
|
</sql> |
|
|
|
|
|
|
|
<sql id="dynamicWhereConditions"> |
|
|
|
@@ -71,7 +72,7 @@ |
|
|
|
|
|
|
|
<insert id="insertBatch" parameterType="java.util.List"> |
|
|
|
insert into wx_level_config (id, tenant_id, points, level, description, create_date, update_date, |
|
|
|
discount_enable, capability) values |
|
|
|
discount_enable, capability,scale) values |
|
|
|
<foreach collection="list" item="item" index="index" separator=","> |
|
|
|
(#{item.id,jdbcType=BIGINT}, |
|
|
|
#{item.tenantId,jdbcType=VARCHAR}, |
|
|
|
@@ -81,7 +82,8 @@ |
|
|
|
#{item.createDate,jdbcType=TIMESTAMP}, |
|
|
|
#{item.updateDate,jdbcType=TIMESTAMP}, |
|
|
|
#{item.discountEnable,jdbcType=SMALLINT}, |
|
|
|
#{item.capability,jdbcType=VARCHAR}) |
|
|
|
#{item.capability,jdbcType=VARCHAR}, |
|
|
|
#{item.scale,jdbcType=INTEGER}) |
|
|
|
</foreach> |
|
|
|
</insert> |
|
|
|
|
|
|
|
@@ -96,6 +98,7 @@ |
|
|
|
<if test=" null != item.updateDate ">`update_date` = #{item.updateDate},</if> |
|
|
|
<if test=" null != item.discountEnable ">`discount_enable` = #{item.discountEnable},</if> |
|
|
|
<if test=" null != item.capability ">`capability` = #{item.capability},</if> |
|
|
|
<if test=" null != item.scale ">`scale` = #{item.scale},</if> |
|
|
|
</set> |
|
|
|
where id = ${item.id} |
|
|
|
</foreach> |
|
|
|
|