Browse Source

[BUG][1000764]:限时抢购没有按时上架问题,A端时间条件过滤问题

release_toaliyun_real
hupeng 7 years ago
parent
commit
50f81ba6cf
3 changed files with 39 additions and 2 deletions
  1. +1
    -1
      mallinkCApi/src/main/java/com/iformall/controller/WxCouponChannelController.java
  2. +32
    -0
      mallinkService/src/main/java/com/iformall/domain/po/WxCouponChannel.java
  3. +6
    -1
      mallinkService/src/main/resources/mapper/WxCouponChannelMapper.xml

+ 1
- 1
mallinkCApi/src/main/java/com/iformall/controller/WxCouponChannelController.java View File

@@ -37,7 +37,7 @@ public class WxCouponChannelController extends BaseController {
wxCouponChannel.setTenantId(getTenantId());
wxCouponChannel.setStatus(EnumCouponChannelStatus.STATUS_THROW_IN.getCode());
wxCouponChannel.setSortColumns(WxCouponChannel.Field.CreateDate_DESC);
wxCouponChannel.setIsCRequest(0);//标记为C端调用
return new ResultData(wxCouponChannelService.listPageCVo(wxCouponChannel, pageNum, pageSize));
}



+ 32
- 0
mallinkService/src/main/java/com/iformall/domain/po/WxCouponChannel.java View File

@@ -40,6 +40,15 @@ public class WxCouponChannel implements Serializable {
this.ids = ids;
}

@Transient
private Integer isCRequest;

@Transient
private Date startdate;

@Transient
private Date enddate;


@Transient
protected List<Long> couponIds;
@@ -89,6 +98,13 @@ public class WxCouponChannel implements Serializable {
@io.swagger.annotations.ApiModelProperty(value="子频道ID",name="subTargetId")
private Long subTargetId;

public Integer getIsCRequest() {
return isCRequest;
}

public void setIsCRequest(Integer isCRequest) {
this.isCRequest = isCRequest;
}

public String getTenantId() {
return tenantId;
@@ -165,6 +181,22 @@ public class WxCouponChannel implements Serializable {
this.subTargetId = subTargetId;
}

public Date getStartdate() {
return startdate;
}

public void setStartdate(Date startdate) {
this.startdate = startdate;
}

public Date getEnddate() {
return enddate;
}

public void setEnddate(Date enddate) {
this.enddate = enddate;
}



public static enum Field


+ 6
- 1
mallinkService/src/main/resources/mapper/WxCouponChannelMapper.xml View File

@@ -52,7 +52,11 @@
and cc.`business` = #{business}
</if>

<if test=" null != beginTime and null != endTime and null != targetAd and 2 == targetAd">
<if test=" null != startdate and null!=enddate">
and cc.`create_date` between #{startdate} and #{enddate}
</if>

<if test="null !=isCRequest and null != targetAd and 2 == targetAd">
and cc.`begin_time` &lt; now()
and cc.`end_time` &gt; now()
</if>
@@ -68,6 +72,7 @@
<if test=" null != updateDate ">
and cc.`update_date` = #{updateDate}
</if>

<if test=" null != subTargetId ">
and cc.`sub_target_id` = #{subTargetId}
</if>


Loading…
Cancel
Save