|
@@ -10,6 +10,7 @@
|
|
|
<result column="id_" property="id" />
|
|
|
<result column="name_" property="name" />
|
|
|
<result column="description_" property="description" />
|
|
|
+ <result column="use_system_" property="useSystem" />
|
|
|
<result column="status_" property="status" />
|
|
|
<result column="issuance_type_" jdbcType="INTEGER" property="issuanceType"/>
|
|
|
<result column="type_" property="type" typeHandler="com.ym.mec.common.dal.CustomEnumTypeHandler"/>
|
|
@@ -47,13 +48,13 @@
|
|
|
<insert id="insert" parameterType="com.ym.mec.biz.dal.entity.SysCoupon" useGeneratedKeys="true" keyColumn="id" keyProperty="id">
|
|
|
INSERT INTO sys_coupon (id_,name_,description_,status_,issuance_type_,type_,type_detail_,face_value_,full_amount_,limit_exchange_num_,effective_type_,deadline_,
|
|
|
effective_start_time_, effective_expire_time_,end_date_,start_date_,stock_count_,consume_num_,warning_stock_num_,
|
|
|
- create_time_,update_time_,tenant_id_,use_condition_)
|
|
|
+ create_time_,update_time_,tenant_id_,use_condition_,use_system_)
|
|
|
VALUES(#{id},#{name},#{description},#{status},#{issuanceType},
|
|
|
#{type, typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
|
|
|
#{typeDetail},#{faceValue},#{fullAmount},#{limitExchangeNum},
|
|
|
#{effectiveType, typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},#{deadline},
|
|
|
#{effectiveStartTime},#{effectiveExpireTime},#{endDate},#{startDate},#{stockCount},#{consumeNum},#{warningStockNum},
|
|
|
- NOW(), NOW(),#{tenantId},#{useCondition})
|
|
|
+ NOW(), NOW(),#{tenantId},#{useCondition},#{useSystem})
|
|
|
</insert>
|
|
|
|
|
|
<!-- 根据主键查询一条记录 -->
|
|
@@ -109,6 +110,9 @@
|
|
|
<if test="issuanceType != null">
|
|
|
issuance_type_ = #{issuanceType},
|
|
|
</if>
|
|
|
+ <if test="useSystem != null">
|
|
|
+ use_system_ = #{useSystem},
|
|
|
+ </if>
|
|
|
update_time_ = NOW()
|
|
|
</set>
|
|
|
WHERE id_ = #{id} and tenant_id_ = #{tenantId}
|