Przeglądaj źródła

tt

release_toaliyun_real
xhxu 5 lat temu
rodzic
commit
be0a8771a2
3 zmienionych plików z 7 dodań i 2 usunięć
  1. +2
    -0
      mallinkService/src/main/java/com/iformall/domain/po/tt/TtCoupon.java
  2. +1
    -0
      mallinkService/src/main/java/com/iformall/service/tt/impl/TtCouponServiceImpl.java
  3. +4
    -2
      mallinkService/src/main/resources/mapper/TtCouponMapper.xml

+ 2
- 0
mallinkService/src/main/java/com/iformall/domain/po/tt/TtCoupon.java Wyświetl plik

@@ -104,6 +104,8 @@ public class TtCoupon extends TenantEntity {
private Date createDate; private Date createDate;
@io.swagger.annotations.ApiModelProperty(value="更新时间",name="updateDate") @io.swagger.annotations.ApiModelProperty(value="更新时间",name="updateDate")
private Date updateDate; private Date updateDate;
@io.swagger.annotations.ApiModelProperty(value="上架",name="putonDate")
private Date putonDate;


@io.swagger.annotations.ApiModelProperty(value="浏览数",name="seeCount") @io.swagger.annotations.ApiModelProperty(value="浏览数",name="seeCount")
private Integer seeCount; private Integer seeCount;


+ 1
- 0
mallinkService/src/main/java/com/iformall/service/tt/impl/TtCouponServiceImpl.java Wyświetl plik

@@ -175,6 +175,7 @@ public class TtCouponServiceImpl implements TtCouponService {
return new ResultData(ErrorCode.SYS_PARAMETER_ERROR,"此课程状态不允许上架或者已上架"); return new ResultData(ErrorCode.SYS_PARAMETER_ERROR,"此课程状态不允许上架或者已上架");
} }
byId.setStatus(EnumTtCouponStatus.TTCOUPON_STATUS_SHELFING.getCode()); byId.setStatus(EnumTtCouponStatus.TTCOUPON_STATUS_SHELFING.getCode());
byId.setPutonDate(new Date());
byId.setUpdateDate(new Date()); byId.setUpdateDate(new Date());
ttCouponMapper.updateById(byId); ttCouponMapper.updateById(byId);
return new ResultData(); return new ResultData();


+ 4
- 2
mallinkService/src/main/resources/mapper/TtCouponMapper.xml Wyświetl plik

@@ -32,6 +32,8 @@
<result column="status" jdbcType="INTEGER" property="status"/> <result column="status" jdbcType="INTEGER" property="status"/>
<result column="create_date" jdbcType="TIMESTAMP" property="createDate"/> <result column="create_date" jdbcType="TIMESTAMP" property="createDate"/>
<result column="update_date" jdbcType="TIMESTAMP" property="updateDate"/> <result column="update_date" jdbcType="TIMESTAMP" property="updateDate"/>
<result column="puton_date" jdbcType="TIMESTAMP" property="putonDate"/>

<result column="see_count" jdbcType="INTEGER" property="seeCount"/> <result column="see_count" jdbcType="INTEGER" property="seeCount"/>
<result column="sell_count" jdbcType="INTEGER" property="sellCount"/> <result column="sell_count" jdbcType="INTEGER" property="sellCount"/>
<result column="assess_count" jdbcType="INTEGER" property="assessCount"/> <result column="assess_count" jdbcType="INTEGER" property="assessCount"/>
@@ -55,7 +57,7 @@
c.`id`, c.`tenant_id`, c.`parent_tenant_id`, c.`type`, c.`cover_img`, c.`cover_picture`, c.`detail_picture`, 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.`count_class`, 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.`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.`dy_title`, c.`inventory`, c.`remark`, c.`status`, c.`create_date`, c.`update_date`, c.`puton_date`,
c.`see_count`, c.`sell_count`, c.`assess_count`, c.`collect_count`, c.`mark`,c.mark_time, c.`is_del`, c.`see_count`, c.`sell_count`, c.`assess_count`, c.`collect_count`, c.`mark`,c.mark_time, c.`is_del`,
c.`column_id`, c.`popularity`, c.`merchant_id`, c.`business_id`, c.`business_name`, c.`column_id`, c.`popularity`, c.`merchant_id`, c.`business_id`, c.`business_name`,
m.name merchant_name, m.img_url merchant_pic m.name merchant_name, m.img_url merchant_pic
@@ -108,7 +110,7 @@


<if test=" null != mark"> <if test=" null != mark">
<if test="mark == 0" > <if test="mark == 0" >
and (c.`mark` is null or m.`mark` &lt;&gt; 1)
and (c.`mark` is null or c.`mark` &lt;&gt; 1)
</if> </if>
<if test="mark == 1" > <if test="mark == 1" >
and c.`mark` = 1 and c.`mark` = 1


Ładowanie…
Anuluj
Zapisz