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

[合同优化][修改][修改预览账单]

release_toaliyun_real
luozukai 7 лет назад
Родитель
Сommit
e960965483
4 измененных файлов: 23 добавлений и 6 удалений
  1. +3
    -0
      mallinkAdmin/src/main/java/com/iformall/controller/market/WxTopicController.java
  2. +3
    -1
      mallinkService/src/main/java/com/iformall/domain/vo/WxCouponCVo.java
  3. +1
    -1
      mallinkService/src/main/resources/mapper/WxShopMapper.xml
  4. +16
    -4
      mallinkService/src/main/resources/mapper/WxTopicMapper.xml

+ 3
- 0
mallinkAdmin/src/main/java/com/iformall/controller/market/WxTopicController.java Просмотреть файл

@@ -33,6 +33,9 @@ public class WxTopicController extends BaseController {
wxTopic.setTenantId(tenantId);
PageInfo<WxTopic> page = wxTopicService.listAsPage(wxTopic, pageNum, pageSize);

//可投放、已上线,时间区间查的是活动开始时间
//已下线、已作为,时间区间查的是活动结束时间

//设置正在上架的专题
Date now = new Date();
page.getList().stream().forEach(cc->{


+ 3
- 1
mallinkService/src/main/java/com/iformall/domain/vo/WxCouponCVo.java Просмотреть файл

@@ -32,10 +32,12 @@ public class WxCouponCVo extends WxCoupon implements Serializable {
@Transient
private String priceStr;


@Transient
private Integer activityStatus;

@Transient
private String qrCode;


@io.swagger.annotations.ApiModelProperty(value="券ID",name="couponId")
private Long couponId;


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

@@ -574,7 +574,7 @@
,count(distinct w.shop_id) xCount
from wx_merchant_shop w
where w.is_del=0
and w.tenant_id = 456
and w.tenant_id = #{tenantId}
group by xTime
order by xTime
</select>


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

@@ -33,12 +33,24 @@
<if test=" null != tenantId ">
and `tenant_id` = #{tenantId}
</if>
<if test=" null != beginTime ">
and `begin_time` >= #{beginTime}

<if test='statusStr =="0,2" or status==1'>
<if test=" null != beginTime ">
and `begin_time` >= #{beginTime}
</if>
<if test=" null != endTime ">
and `begin_time` &lt;= #{endTime}
</if>
</if>
<if test=" null != endTime ">
and `end_time` &lt;= #{endTime}
<if test='status ==2 or status==3'>
<if test=" null != beginTime ">
and `end_time` >= #{beginTime}
</if>
<if test=" null != endTime ">
and `end_time` &lt;= #{endTime}
</if>
</if>

<if test=" null != status ">
and `status` = #{status}
</if>


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