diff --git a/mallinkService/src/main/java/com/iformall/domain/po/tt/TtCoupon.java b/mallinkService/src/main/java/com/iformall/domain/po/tt/TtCoupon.java index e7d007ab7..40998e5ec 100644 --- a/mallinkService/src/main/java/com/iformall/domain/po/tt/TtCoupon.java +++ b/mallinkService/src/main/java/com/iformall/domain/po/tt/TtCoupon.java @@ -59,6 +59,9 @@ public class TtCoupon extends TenantEntity { @io.swagger.annotations.ApiModelProperty(value="副标题",name="subTitle") private String subTitle; + @io.swagger.annotations.ApiModelProperty(value="type=1时,课时",name="countClass") + private Integer countClass; + @io.swagger.annotations.ApiModelProperty(value="",name="videoId") private String videoId; @io.swagger.annotations.ApiModelProperty(value="视频时长(秒)",name="videoTime") diff --git a/mallinkService/src/main/java/com/iformall/service/tt/impl/TtCouponServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/tt/impl/TtCouponServiceImpl.java index 1abf10710..65f50a7d6 100644 --- a/mallinkService/src/main/java/com/iformall/service/tt/impl/TtCouponServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/tt/impl/TtCouponServiceImpl.java @@ -112,6 +112,7 @@ public class TtCouponServiceImpl implements TtCouponService { TtCoupon couponD = new TtCoupon(); couponD.setColumnId(record.getId()); couponD.setType(EnumTtCouponType.COUPON_MORE.getCode()); + couponD.setCountClass(record.getColumnCoupons().size()); ttCouponMapper.delete(new QueryWrapper(couponD)); for (TtCoupon ttc:record.getColumnCoupons()) { if(ttc.getId() == null){ diff --git a/mallinkService/src/main/resources/mapper/TtCouponMapper.xml b/mallinkService/src/main/resources/mapper/TtCouponMapper.xml index e90d06d3e..d53af3b04 100644 --- a/mallinkService/src/main/resources/mapper/TtCouponMapper.xml +++ b/mallinkService/src/main/resources/mapper/TtCouponMapper.xml @@ -11,6 +11,8 @@ + + @@ -49,7 +51,7 @@ c.`id`, c.`tenant_id`, c.`parent_tenant_id`, c.`type`, c.`cover_img`, c.`cover_picture`, c.`detail_picture`, - c.`title`, c.`sub_title`, c.`video_id`, c.`video_time`,c.`video_url`, c.`html`, c.`is_landscape`, c.`is_payment`, + c.`title`, c.`sub_title`, c.`count_class`, c.`video_id`, c.`video_time`,c.`video_url`, c.`html`, c.`is_landscape`, c.`is_payment`, c.`sale_price`, c.`orig_price`, c.`is_preview`, c.`preview_duration`, c.`detail`, c.`false_sell_count`, c.`dy_title`, c.`inventory`, c.`remark`, c.`status`, c.`create_date`, c.`update_date`, c.`see_count`, c.`sell_count`, c.`assess_count`, c.`collect_count`, c.`mark`, c.`is_del`,