Преглед изворни кода

fix bug

release_toaliyun_real
zhengfangyuan пре 3 година
родитељ
комит
657984218c
2 измењених фајлова са 30 додато и 26 уклоњено
  1. +24
    -24
      mallinkAdmin/src/main/java/com/iformall/controller/market/WxCouponController.java
  2. +6
    -2
      mallinkService/src/main/resources/mapper/WxCouponChannelMapper.xml

+ 24
- 24
mallinkAdmin/src/main/java/com/iformall/controller/market/WxCouponController.java Прегледај датотеку

@@ -449,12 +449,12 @@ public class WxCouponController extends BaseController {
Map<String, Object> result = new HashedMap();
TenantEntity tenantEntity = getTenantInfo();
List<TenantEntity> tenantEntitys = wxMallService.getTenantEntitys(tenantEntity);
if (wxCoupon.getStartdate() == null) {
wxCoupon.setStartdate(DateUtils.getFirstDayForCurrMonth());
}
if (wxCoupon.getEnddate() == null) {
wxCoupon.setEnddate(DateUtils.stringToDate(DateUtils.getSystemTime("yyyy-MM-dd") + " 23:59:59"));
}
// if (wxCoupon.getStartdate() == null) {
// wxCoupon.setStartdate(DateUtils.getFirstDayForCurrMonth());
// }
// if (wxCoupon.getEnddate() == null) {
// wxCoupon.setEnddate(DateUtils.stringToDate(DateUtils.getSystemTime("yyyy-MM-dd") + " 23:59:59"));
// }
wxCoupon.setSourceType(EnumCouponSourceType.COUPONSource_Admin.getCode());
//根据上架时间查询券
WxCouponChannel couponChannelQ = new WxCouponChannel();
@@ -490,12 +490,12 @@ public class WxCouponController extends BaseController {
//默认时间本月第一天,截止到当天
TenantEntity tenantEntity = getTenantInfo();
List<TenantEntity> tenantEntitys = wxMallService.getTenantEntitys(tenantEntity);
if (wxCoupon.getStartdate() == null) {
wxCoupon.setStartdate(DateUtils.getFirstDayForCurrMonth());
}
if (wxCoupon.getEnddate() == null) {
wxCoupon.setEnddate(DateUtils.stringToDate(DateUtils.getSystemTime("yyyy-MM-dd") + " 23:59:59"));
}
// if (wxCoupon.getStartdate() == null) {
// wxCoupon.setStartdate(DateUtils.getFirstDayForCurrMonth());
// }
// if (wxCoupon.getEnddate() == null) {
// wxCoupon.setEnddate(DateUtils.stringToDate(DateUtils.getSystemTime("yyyy-MM-dd") + " 23:59:59"));
// }
wxCoupon.setSourceType(EnumCouponSourceType.COUPONSource_Admin.getCode());
//根据上架时间查询券
WxCouponChannel couponChannelQ = new WxCouponChannel();
@@ -523,12 +523,12 @@ public class WxCouponController extends BaseController {
TenantEntity tenantEntity = getTenantInfo();
List<TenantEntity> tenantEntitys = wxMallService.getTenantEntitys(tenantEntity);
Map<String, Object> result = new HashedMap();
if (wxCoupon.getStartdate() == null) {
wxCoupon.setStartdate(DateUtils.getFirstDayForCurrMonth());
}
if (wxCoupon.getEnddate() == null) {
wxCoupon.setEnddate(DateUtils.stringToDate(DateUtils.getSystemTime("yyyy-MM-dd") + " 23:59:59"));
}
// if (wxCoupon.getStartdate() == null) {
// wxCoupon.setStartdate(DateUtils.getFirstDayForCurrMonth());
// }
// if (wxCoupon.getEnddate() == null) {
// wxCoupon.setEnddate(DateUtils.stringToDate(DateUtils.getSystemTime("yyyy-MM-dd") + " 23:59:59"));
// }

wxCoupon.setSourceType(EnumCouponSourceType.COUPONSource_Admin.getCode());
//根据上架时间查询券
@@ -562,12 +562,12 @@ public class WxCouponController extends BaseController {
//默认时间本月第一天,截止到当天
TenantEntity tenantEntity = getTenantInfo();
List<TenantEntity> tenantEntitys = wxMallService.getTenantEntitys(tenantEntity);
if (wxCoupon.getStartdate() == null) {
wxCoupon.setStartdate(DateUtils.getFirstDayForCurrMonth());
}
if (wxCoupon.getEnddate() == null) {
wxCoupon.setEnddate(DateUtils.stringToDate(DateUtils.getSystemTime("yyyy-MM-dd") + " 23:59:59"));
}
// if (wxCoupon.getStartdate() == null) {
// wxCoupon.setStartdate(DateUtils.getFirstDayForCurrMonth());
// }
// if (wxCoupon.getEnddate() == null) {
// wxCoupon.setEnddate(DateUtils.stringToDate(DateUtils.getSystemTime("yyyy-MM-dd") + " 23:59:59"));
// }

wxCoupon.setSourceType(EnumCouponSourceType.COUPONSource_Admin.getCode());
//根据上架时间查询券


+ 6
- 2
mallinkService/src/main/resources/mapper/WxCouponChannelMapper.xml Прегледај датотеку

@@ -79,8 +79,12 @@
and cc.`show_begin_time` &lt;= #{showBeginTime}
</if>

<if test=" null != startdate and null!=enddate">
and cc.`create_date` between #{startdate} and #{enddate}
<if test=" null != startdate">
and cc.`create_date` &gt;= #{startdate}
</if>
<if test=" null !=enddate">
and cc.`create_date` &lt;= #{enddate}
</if>

<if test=" null != status ">


Loading…
Откажи
Сачувај