Stormeye.Wu 7 лет назад
Родитель
Сommit
32cc6fbd19
2 измененных файлов: 3 добавлений и 30 удалений
  1. +2
    -18
      mallinkService/src/main/java/com/simple/domain/po/WxCoupon.java
  2. +1
    -12
      mallinkService/src/main/resources/mapper/WxCouponMapper.xml

+ 2
- 18
mallinkService/src/main/java/com/simple/domain/po/WxCoupon.java Просмотреть файл

@@ -86,12 +86,7 @@ public class WxCoupon implements Serializable {
/*须知**/
@io.swagger.annotations.ApiModelProperty(value="须知",name="detail")
private String detail;
/*发券方式(1.主动领取,2.定向投放)**/
@io.swagger.annotations.ApiModelProperty(value="发券方式(1.主动领取,2.定向投放)",name="sendType")
private Integer sendType;
/*投放频道位置(1.banner图,2.限时抢购)**/
@io.swagger.annotations.ApiModelProperty(value="投放频道位置(1.banner图,2.限时抢购)",name="targetAd")
private Integer targetAd;

/*业态**/
@io.swagger.annotations.ApiModelProperty(value="业态",name="businesses")
private String businesses;
@@ -203,18 +198,7 @@ public class WxCoupon implements Serializable {
public void setDetail(String _detail) {
detail = _detail;
}
public Integer getSendType() {
return sendType;
}
public void setSendType(Integer _sendType) {
sendType = _sendType;
}
public Integer getTargetAd() {
return targetAd;
}
public void setTargetAd(Integer _targetAd) {
targetAd = _targetAd;
}

public String getBusinesses() {
return businesses;
}


+ 1
- 12
mallinkService/src/main/resources/mapper/WxCouponMapper.xml Просмотреть файл

@@ -18,8 +18,6 @@
<result column="valid_end_date" jdbcType="TIMESTAMP" property="validEndDate" />
<result column="valid_days" jdbcType="INTEGER" property="validDays" />
<result column="detail" jdbcType="VARCHAR" property="detail" />
<result column="send_type" jdbcType="INTEGER" property="sendType" />
<result column="target_ad" jdbcType="INTEGER" property="targetAd" />
<result column="businesses" jdbcType="VARCHAR" property="businesses" />
<result column="price" jdbcType="DECIMAL" property="price" />
<result column="number" jdbcType="INTEGER" property="number" />
@@ -115,16 +113,7 @@
and `detail` like concat('%', #{detail},'%')
</if>
<if test=" null != sendType ">
and `send_type` = #{sendType}
</if>
<if test=" null != targetAd ">
and `target_ad` = #{targetAd}
</if>

<if test=" null != businesses ">
and `businesses` like concat('%', #{businesses},'%')


Загрузка…
Отмена
Сохранить