Commit 24e39ea8 by 吕明尚

优惠卷领取增加字段

parent 7b39e7a3
...@@ -159,6 +159,9 @@ public class QPServiceImpl implements QPService { ...@@ -159,6 +159,9 @@ public class QPServiceImpl implements QPService {
sConsumerCoupon.setMinPrice(sCoupon.getMinPrice()); sConsumerCoupon.setMinPrice(sCoupon.getMinPrice());
sConsumerCoupon.setCouponTimeStart(sCoupon.getValidStartTime()); sConsumerCoupon.setCouponTimeStart(sCoupon.getValidStartTime());
sConsumerCoupon.setCouponTimeEnd(sCoupon.getValidEndTime()); sConsumerCoupon.setCouponTimeEnd(sCoupon.getValidEndTime());
sConsumerCoupon.setOrderType(sCoupon.getOrderType());
sConsumerCoupon.setPackageId(sCoupon.getPackageId());
sConsumerCoupon.setRemark(sCoupon.getRemark());
} }
isConsumerCouponService.insertSConsumerCoupon(sConsumerCoupon); isConsumerCouponService.insertSConsumerCoupon(sConsumerCoupon);
response.setConsumerCouponId(sConsumerCoupon.getId()); response.setConsumerCouponId(sConsumerCoupon.getId());
......
...@@ -77,7 +77,7 @@ public class SCouponServiceImpl implements ISCouponService ...@@ -77,7 +77,7 @@ public class SCouponServiceImpl implements ISCouponService
sCoupon.setValidEndTime(DEFAULT_END_TIME); sCoupon.setValidEndTime(DEFAULT_END_TIME);
sCoupon.setMinDuration(DEFAULT_DURATION); sCoupon.setMinDuration(DEFAULT_DURATION);
sCoupon.setMaxDuration(DEFAULT_MAX_DURATION); sCoupon.setMaxDuration(DEFAULT_MAX_DURATION);
sCoupon.setMinPrice(new BigDecimal(0)); sCoupon.setMinPrice(new BigDecimal("0.00"));
sCoupon.setCreateTime(DateUtils.getNowDate()); sCoupon.setCreateTime(DateUtils.getNowDate());
return sCouponMapper.insertSCoupon(sCoupon); return sCouponMapper.insertSCoupon(sCoupon);
......
...@@ -104,8 +104,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -104,8 +104,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="duration != null and duration != ''">duration,</if> <if test="duration != null and duration != ''">duration,</if>
<if test="minDuration != null and minDuration != ''">min_duration,</if> <if test="minDuration != null and minDuration != ''">min_duration,</if>
<if test="maxDuration != null and maxDuration != ''">max_duration,</if> <if test="maxDuration != null and maxDuration != ''">max_duration,</if>
<if test="minPrice != null and minPrice != ''">min_price,</if> <if test="minPrice != null">min_price,</if>
<if test="subPrice != null and subPrice != ''">sub_price,</if> <if test="subPrice != null">sub_price,</if>
<if test="isOverlay != null">is_overlay,</if> <if test="isOverlay != null">is_overlay,</if>
<if test="platformType != null">platform_type,</if> <if test="platformType != null">platform_type,</if>
<if test="number != null">number,</if> <if test="number != null">number,</if>
...@@ -127,8 +127,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -127,8 +127,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="duration != null and duration != ''">#{duration},</if> <if test="duration != null and duration != ''">#{duration},</if>
<if test="minDuration != null and minDuration != ''">#{minDuration},</if> <if test="minDuration != null and minDuration != ''">#{minDuration},</if>
<if test="maxDuration != null and maxDuration != ''">#{maxDuration},</if> <if test="maxDuration != null and maxDuration != ''">#{maxDuration},</if>
<if test="minPrice != null and minPrice != ''">#{minPrice},</if> <if test="minPrice != null">#{minPrice},</if>
<if test="subPrice != null and subPrice != ''">#{subPrice},</if> <if test="subPrice != null">#{subPrice},</if>
<if test="isOverlay != null">#{isOverlay},</if> <if test="isOverlay != null">#{isOverlay},</if>
<if test="platformType != null">#{platformType},</if> <if test="platformType != null">#{platformType},</if>
<if test="number != null">#{number},</if> <if test="number != null">#{number},</if>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment