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

[云端测试 version:.426.552:营销统计-筛选问题]

release_toaliyun_real
gongbiao 7 лет назад
Родитель
Сommit
23c9abfe0f
2 измененных файлов: 10 добавлений и 6 удалений
  1. +2
    -2
      mallinkService/src/main/java/com/iformall/service/impl/MarkingDataReportServiceImpl.java
  2. +8
    -4
      mallinkService/src/main/resources/mapper/WxCouponOrderMapper.xml

+ 2
- 2
mallinkService/src/main/java/com/iformall/service/impl/MarkingDataReportServiceImpl.java Просмотреть файл

@@ -566,7 +566,7 @@ public class MarkingDataReportServiceImpl implements MarkingDataReportService {
if (markingCouponDataReportDto.getStartTime() != null)
params1.put("startTime", convertDateAndAdd(markingCouponDataReportDto.getStartTime(),0));
if (markingCouponDataReportDto.getEndTime() != null)
params1.put("endTime", convertDateAndAdd(markingCouponDataReportDto.getEndTime(), 1));
params1.put("endTime", markingCouponDataReportDto.getEndTime());
PageHelper.startPage(pageIndex, pageSize);
List<TouchUsersReportVo> wxUserVisitList = wxUserVisitMapper.touchUsersReportList(params1);

@@ -580,7 +580,7 @@ public class MarkingDataReportServiceImpl implements MarkingDataReportService {
if (markingCouponDataReportDto.getStartTime() != null)
params2.put("startTime", convertDateAndAdd(markingCouponDataReportDto.getStartTime(),0));
if (markingCouponDataReportDto.getEndTime() != null)
params2.put("endTime", convertDateAndAdd(markingCouponDataReportDto.getEndTime(), 1));
params2.put("endTime", markingCouponDataReportDto.getEndTime());
List<TouchUsersReportVo> couponDatalist = wxCouponOrderMapper.touchUsersReportList(params2);

Map<String,TouchUsersReportVo> visitMap = couponDatalist.stream().collect(Collectors.toMap(TouchUsersReportVo::getxTime, p -> p));


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

@@ -378,8 +378,8 @@
<if test=" null != couponOrderStatus ">
and co.coupon_order_status = #{couponOrderStatus}
</if>
<if test=" null != merchantName ">
<if test=" null != merchantName and merchantName!=''">
and (case when com.mc=1 then
(select m.name from wx_merchant m, wx_coupon_merchant cm
where m.id = cm.merchant_id and cm.product_id=co.coupon_id) else '[多商户通用]' end)
@@ -393,9 +393,13 @@
<if test="endDate != null">
AND co.create_date &lt; #{endDate,jdbcType=TIMESTAMP}
</if>

<if test=" null != id ">
and co.id = #{id}
</if>
<if test=" null != sortColumns"> order by ${sortColumns} </if>

</select>




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