|
@@ -24,6 +24,7 @@
|
|
|
<result column="paid_amount_" property="paidAmount"/>
|
|
|
<result column="open_max_term_" property="openMaxTerm" typeHandler="com.ym.mec.common.dal.CustomEnumTypeHandler"/>
|
|
|
<result column="version_" property="version"/>
|
|
|
+ <result column="is_support_user_register_" property="isSupportUserRegister"/>
|
|
|
<result column="tenant_id_" property="tenantId"/>
|
|
|
</resultMap>
|
|
|
|
|
@@ -46,10 +47,10 @@
|
|
|
useGeneratedKeys="true" keyColumn="id" keyProperty="id">
|
|
|
INSERT INTO sporadic_charge_info
|
|
|
(title_, charge_type_, organ_id_, amount_, discount_amount_, detail_, create_time_, update_time_, operator_id_,
|
|
|
- user_id_, music_group_id_, max_num_,max_amount_,open_max_term_,tenant_id_)
|
|
|
+ user_id_, music_group_id_, max_num_,max_amount_,open_max_term_,tenant_id_,is_support_user_register_)
|
|
|
VALUES (#{title}, #{chargeType,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
|
|
|
#{organId}, #{amount}, #{discountAmount}, #{detail}, now(), now(), #{operatorId}, #{userId},
|
|
|
- #{musicGroupId}, #{maxNum},#{maxAmount},#{openMaxTerm,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},#{tenantId})
|
|
|
+ #{musicGroupId}, #{maxNum},#{maxAmount},#{openMaxTerm,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},#{tenantId},#{isSupportUserRegister})
|
|
|
</insert>
|
|
|
|
|
|
<!-- 根据主键查询一条记录 -->
|
|
@@ -107,6 +108,9 @@
|
|
|
<if test="version != null">
|
|
|
version_ = version_+1,
|
|
|
</if>
|
|
|
+ <if test="isSupportUserRegister != null">
|
|
|
+ is_support_user_register_ = #{isSupportUserRegister},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
WHERE id_ = #{id} AND version_ = #{version} and tenant_id_ = #{tenantId}
|
|
|
</update>
|