Просмотр исходного кода

[A端][修改]:数据塔台券数据接口增加名称过滤

release_toaliyun_real
hupeng 7 лет назад
Родитель
Сommit
d1eacee98f
3 измененных файлов: 16 добавлений и 3 удалений
  1. +10
    -3
      mallinkService/src/main/java/com/iformall/domain/dto/MarkingCouponDataReportDto.java
  2. +3
    -0
      mallinkService/src/main/java/com/iformall/service/impl/MarkingDataReportServiceImpl.java
  3. +3
    -0
      mallinkService/src/main/resources/mapper/WxCouponOrderMapper.xml

+ 10
- 3
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;
}
}

+ 3
- 0
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<MarkingCouponDataReportVo> couponDatalist = wxCouponOrderMapper.couponDataList(params);


+ 3
- 0
mallinkService/src/main/resources/mapper/WxCouponOrderMapper.xml Просмотреть файл

@@ -408,6 +408,9 @@
<if test="couponType != null">
and wx_coupon.type = #{couponType}
</if>
<if test="couponTitle != null">
and wx_coupon.title like concat('%', #{couponTitle},'%')
</if>
GROUP BY createTime,couponId
order by createTime desc
</select>


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