|
|
|
@@ -456,7 +456,7 @@ public class WxCouponController extends BaseController { |
|
|
|
// wxCoupon.setEnddate(DateUtils.stringToDate(DateUtils.getSystemTime("yyyy-MM-dd") + " 23:59:59")); |
|
|
|
// } |
|
|
|
wxCoupon.setSourceType(EnumCouponSourceType.COUPONSource_Admin.getCode()); |
|
|
|
if (EnumYesOrNo.YES.getCode() == wxCoupon.getPutIn()) { |
|
|
|
if (null != wxCoupon.getStartdate() || null != wxCoupon.getEnddate()) { |
|
|
|
//根据上架时间查询券 |
|
|
|
WxCouponChannel couponChannelQ = new WxCouponChannel(); |
|
|
|
couponChannelQ.updateTenantInfo(tenantEntity); |
|
|
|
@@ -468,7 +468,11 @@ public class WxCouponController extends BaseController { |
|
|
|
}else { |
|
|
|
wxCoupon.setId(-1L); |
|
|
|
} |
|
|
|
}else { |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
PageInfo<WxCouponStatisVo> pageInfo = wxCouponService.findCountData(wxCoupon,tenantEntitys, pageNum, pageSize); |
|
|
|
for (WxCouponStatisVo coupon : pageInfo.getList()) { |
|
|
|
if (coupon.getSaleAmount() == null) { |
|
|
|
@@ -500,7 +504,7 @@ public class WxCouponController extends BaseController { |
|
|
|
// wxCoupon.setEnddate(DateUtils.stringToDate(DateUtils.getSystemTime("yyyy-MM-dd") + " 23:59:59")); |
|
|
|
// } |
|
|
|
wxCoupon.setSourceType(EnumCouponSourceType.COUPONSource_Admin.getCode()); |
|
|
|
if (EnumYesOrNo.YES.getCode() == wxCoupon.getPutIn()) { |
|
|
|
if (null != wxCoupon.getStartdate() || null != wxCoupon.getEnddate()) { |
|
|
|
//根据上架时间查询券 |
|
|
|
WxCouponChannel couponChannelQ = new WxCouponChannel(); |
|
|
|
couponChannelQ.updateTenantInfo(tenantEntity); |
|
|
|
@@ -536,7 +540,7 @@ public class WxCouponController extends BaseController { |
|
|
|
// } |
|
|
|
|
|
|
|
wxCoupon.setSourceType(EnumCouponSourceType.COUPONSource_Admin.getCode()); |
|
|
|
if (EnumYesOrNo.YES.getCode() == wxCoupon.getPutIn()) { |
|
|
|
if (null != wxCoupon.getStartdate() || null != wxCoupon.getEnddate()) { |
|
|
|
//根据上架时间查询券 |
|
|
|
WxCouponChannel couponChannelQ = new WxCouponChannel(); |
|
|
|
couponChannelQ.updateTenantInfo(tenantEntity); |
|
|
|
@@ -578,7 +582,7 @@ public class WxCouponController extends BaseController { |
|
|
|
// } |
|
|
|
|
|
|
|
wxCoupon.setSourceType(EnumCouponSourceType.COUPONSource_Admin.getCode()); |
|
|
|
if (EnumYesOrNo.YES.getCode() == wxCoupon.getPutIn()) { |
|
|
|
if (null != wxCoupon.getStartdate() || null != wxCoupon.getEnddate()) { |
|
|
|
//根据上架时间查询券 |
|
|
|
WxCouponChannel couponChannelQ = new WxCouponChannel(); |
|
|
|
couponChannelQ.updateTenantInfo(tenantEntity); |
|
|
|
@@ -632,7 +636,7 @@ public class WxCouponController extends BaseController { |
|
|
|
|
|
|
|
//根据投放时间搜索 |
|
|
|
private void handleCouponStartDate(WxCoupon wxCoupon){ |
|
|
|
if (EnumYesOrNo.YES.getCode() == wxCoupon.getPutIn()) { |
|
|
|
if (null != wxCoupon.getStartdate() || null != wxCoupon.getEnddate()) { |
|
|
|
WxCouponChannel couponChannelQ = new WxCouponChannel(); |
|
|
|
couponChannelQ.updateTenantInfo(wxCoupon); |
|
|
|
couponChannelQ.setStartdate(wxCoupon.getStartdate()); |
|
|
|
|