Procházet zdrojové kódy

fix bug

release_toaliyun_real
lin před 3 roky
rodič
revize
b093d254ed
3 změnil soubory, kde provedl 10 přidání a 9 odebrání
  1. +9
    -5
      mallinkAdmin/src/main/java/com/iformall/controller/market/WxCouponController.java
  2. +1
    -1
      mallinkAdmin/src/main/java/com/iformall/controller/market/WxOrderGroupController.java
  3. +0
    -3
      mallinkService/src/main/java/com/iformall/domain/po/WxCoupon.java

+ 9
- 5
mallinkAdmin/src/main/java/com/iformall/controller/market/WxCouponController.java Zobrazit soubor

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


wxCoupon.setSourceType(EnumCouponSourceType.COUPONSource_Admin.getCode()); wxCoupon.setSourceType(EnumCouponSourceType.COUPONSource_Admin.getCode());
if (EnumYesOrNo.YES.getCode() == wxCoupon.getPutIn()) {
if (null != wxCoupon.getStartdate() || null != wxCoupon.getEnddate()) {
//根据上架时间查询券 //根据上架时间查询券
WxCouponChannel couponChannelQ = new WxCouponChannel(); WxCouponChannel couponChannelQ = new WxCouponChannel();
couponChannelQ.updateTenantInfo(tenantEntity); couponChannelQ.updateTenantInfo(tenantEntity);
@@ -578,7 +582,7 @@ public class WxCouponController extends BaseController {
// } // }


wxCoupon.setSourceType(EnumCouponSourceType.COUPONSource_Admin.getCode()); wxCoupon.setSourceType(EnumCouponSourceType.COUPONSource_Admin.getCode());
if (EnumYesOrNo.YES.getCode() == wxCoupon.getPutIn()) {
if (null != wxCoupon.getStartdate() || null != wxCoupon.getEnddate()) {
//根据上架时间查询券 //根据上架时间查询券
WxCouponChannel couponChannelQ = new WxCouponChannel(); WxCouponChannel couponChannelQ = new WxCouponChannel();
couponChannelQ.updateTenantInfo(tenantEntity); couponChannelQ.updateTenantInfo(tenantEntity);
@@ -632,7 +636,7 @@ public class WxCouponController extends BaseController {


//根据投放时间搜索 //根据投放时间搜索
private void handleCouponStartDate(WxCoupon wxCoupon){ private void handleCouponStartDate(WxCoupon wxCoupon){
if (EnumYesOrNo.YES.getCode() == wxCoupon.getPutIn()) {
if (null != wxCoupon.getStartdate() || null != wxCoupon.getEnddate()) {
WxCouponChannel couponChannelQ = new WxCouponChannel(); WxCouponChannel couponChannelQ = new WxCouponChannel();
couponChannelQ.updateTenantInfo(wxCoupon); couponChannelQ.updateTenantInfo(wxCoupon);
couponChannelQ.setStartdate(wxCoupon.getStartdate()); couponChannelQ.setStartdate(wxCoupon.getStartdate());


+ 1
- 1
mallinkAdmin/src/main/java/com/iformall/controller/market/WxOrderGroupController.java Zobrazit soubor

@@ -80,7 +80,7 @@ public class WxOrderGroupController extends BaseController {


//处理投放时间 //处理投放时间
private void handleCouponStartDate(WxOrderGroupMarketing wxOrderGroupMarketing){ private void handleCouponStartDate(WxOrderGroupMarketing wxOrderGroupMarketing){
if (EnumYesOrNo.YES.getCode() == wxOrderGroupMarketing.getPutIn()) {
if (null != wxOrderGroupMarketing.getStartdate() || null != wxOrderGroupMarketing.getEnddate()) {
WxCouponChannel couponChannelQ = new WxCouponChannel(); WxCouponChannel couponChannelQ = new WxCouponChannel();
couponChannelQ.updateTenantInfo(wxOrderGroupMarketing); couponChannelQ.updateTenantInfo(wxOrderGroupMarketing);
couponChannelQ.setStartdate(wxOrderGroupMarketing.getStartdate()); couponChannelQ.setStartdate(wxOrderGroupMarketing.getStartdate());


+ 0
- 3
mallinkService/src/main/java/com/iformall/domain/po/WxCoupon.java Zobrazit soubor

@@ -400,9 +400,6 @@ public class WxCoupon extends TenantEntity {
@TableField(exist = false) @TableField(exist = false)
private String[] mallTenantIds; private String[] mallTenantIds;
@TableField(exist = false)
private Integer putIn;//是否已投放


public String getSalePriceStr() { public String getSalePriceStr() {
if(salePrice!=null) { if(salePrice!=null) {


Načítá se…
Zrušit
Uložit