diff --git a/mallinkService/src/main/java/com/iformall/domain/dto/MarkingCouponDataReportDto.java b/mallinkService/src/main/java/com/iformall/domain/dto/MarkingCouponDataReportDto.java index 9352b3cb4..8b3ad4ff2 100644 --- a/mallinkService/src/main/java/com/iformall/domain/dto/MarkingCouponDataReportDto.java +++ b/mallinkService/src/main/java/com/iformall/domain/dto/MarkingCouponDataReportDto.java @@ -11,6 +11,7 @@ public class MarkingCouponDataReportDto { private Date endTime; private Integer type; private Integer couponType; + private String couponTitle; public Integer getType() { return type; @@ -36,11 +37,17 @@ public class MarkingCouponDataReportDto { this.endTime = endTime; } - public Integer getCouponType() { - return couponType; - } + public Integer getCouponType() { return couponType; } public void setCouponType(Integer couponType) { this.couponType = couponType; } + + public String getCouponTitle() { + return couponTitle; + } + + public void setCouponTitle(String couponTitle) { + this.couponTitle = couponTitle; + } } diff --git a/mallinkService/src/main/java/com/iformall/service/impl/MarkingDataReportServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/MarkingDataReportServiceImpl.java index 95017bc52..e921ad979 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/MarkingDataReportServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/MarkingDataReportServiceImpl.java @@ -267,6 +267,9 @@ public class MarkingDataReportServiceImpl implements MarkingDataReportService { if(markingCouponDataReportDto.getCouponType()!=null){ params.put("couponType", markingCouponDataReportDto.getCouponType()); } + if(markingCouponDataReportDto.getCouponType()!=null){ + params.put("couponTitle", markingCouponDataReportDto.getCouponTitle()); + } PageHelper.startPage(pageIndex, pageSize); List couponDatalist = wxCouponOrderMapper.couponDataList(params); diff --git a/mallinkService/src/main/resources/mapper/WxCouponOrderMapper.xml b/mallinkService/src/main/resources/mapper/WxCouponOrderMapper.xml index e783ad94e..aab7b5e16 100644 --- a/mallinkService/src/main/resources/mapper/WxCouponOrderMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxCouponOrderMapper.xml @@ -408,6 +408,9 @@ and wx_coupon.type = #{couponType} + + and wx_coupon.title like concat('%', #{couponTitle},'%') + GROUP BY createTime,couponId order by createTime desc