1. 优惠券增加描述、原件

This commit is contained in:
邱贞招 2024-09-03 18:01:27 +08:00
parent ec1af23e89
commit 24383a9cd9
2 changed files with 16 additions and 7 deletions

View File

@ -64,12 +64,16 @@ public class EtCoupon extends BaseEntity
/** 描述 */
@Excel(name = "描述")
private String desc;
private String descr;
/** 零售价 */
@Excel(name = "零售价")
private BigDecimal retailPrice;
/** 原价 */
@Excel(name = "原价")
private String originalPrice;
/** 有效期值 */
@Excel(name = "有效期值")
private Integer validityValue;

View File

@ -16,13 +16,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="validityUnit" column="validity_unit" />
<result property="status" column="status" />
<result property="limitNum" column="limit_num" />
<result property="desc" column="desc" />
<result property="descr" column="descr" />
<result property="retailPrice" column="retail_price" />
<result property="originalPrice" column="original_price" />
<result property="isHot" column="is_hot" />
</resultMap>
<sql id="selectEtCouponVo">
select coupon_id, name, type, discount_percent, area_id, discount_amount, create_time, validity_value, validity_unit, status, limit_num, `desc`, retail_price, is_hot from et_coupon
select coupon_id, name, type, discount_percent, area_id, discount_amount, create_time, validity_value, validity_unit, status, limit_num, `descr`, retail_price, original_price, is_hot from et_coupon
</sql>
<select id="selectEtCouponList" parameterType="EtCoupon" resultMap="EtCouponResult">
@ -39,8 +40,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
c.validity_unit,
c.status,
c.limit_num,
c.desc,
c.descr,
c.retail_price,
c.original_price,
c.is_hot
FROM
et_coupon c
@ -81,8 +83,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="validityUnit != null">validity_unit,</if>
<if test="status != null">status,</if>
<if test="limitNum != null">limit_num,</if>
<if test="desc != null">desc,</if>
<if test="descr != null">descr,</if>
<if test="retailPrice != null">retail_price,</if>
<if test="originalPrice != null">original_price,</if>
<if test="isHot != null">is_hot,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
@ -96,8 +99,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="validityUnit != null">#{validityUnit},</if>
<if test="status != null">#{status},</if>
<if test="limitNum != null">#{limitNum},</if>
<if test="desc != null">#{desc},</if>
<if test="descr != null">#{descr},</if>
<if test="retailPrice != null">#{retailPrice},</if>
<if test="originalPrice != null">#{originalPrice},</if>
<if test="isHot != null">#{isHot},</if>
</trim>
</insert>
@ -115,8 +119,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="validityUnit != null">validity_unit = #{validityUnit},</if>
<if test="status != null">status = #{status},</if>
<if test="limitNum != null">limit_num = #{limitNum},</if>
<if test="desc != null">desc = #{desc},</if>
<if test="descr != null">descr = #{descr},</if>
<if test="retailPrice != null">retail_price = #{retailPrice},</if>
<if test="originalPrice != null">original_price = #{originalPrice},</if>
<if test="isHot != null">is_hot = #{isHot},</if>
</trim>
where coupon_id = #{couponId}