Przeglądaj źródła

fix bug

release_toaliyun_real
xiaohanzi 6 lat temu
rodzic
commit
80cd4aba0a
2 zmienionych plików z 2 dodań i 3 usunięć
  1. +1
    -2
      mallinkAdmin/src/main/java/com/iformall/controller/market/WxCouponController.java
  2. +1
    -1
      mallinkService/src/main/java/com/iformall/service/impl/WxCouponServiceImpl.java

+ 1
- 2
mallinkAdmin/src/main/java/com/iformall/controller/market/WxCouponController.java Wyświetl plik

@@ -118,8 +118,7 @@ public class WxCouponController extends BaseController {
if (wxCoupon.getId() == null) { if (wxCoupon.getId() == null) {
return new ResultData(ResultData.ERROR, "缺少id"); return new ResultData(ResultData.ERROR, "缺少id");
} }
//wxCoupon.updateTenantInfo(getTenantInfo());
wxCoupon.setTenantId("789");
wxCoupon.updateTenantInfo(getTenantInfo());
if(EnumDelFlag.YES.getCode().equals(wxCoupon.getIsDel())){ if(EnumDelFlag.YES.getCode().equals(wxCoupon.getIsDel())){
WxCouponChannel query = new WxCouponChannel(); WxCouponChannel query = new WxCouponChannel();
query.updateTenantInfo(wxCoupon); query.updateTenantInfo(wxCoupon);


+ 1
- 1
mallinkService/src/main/java/com/iformall/service/impl/WxCouponServiceImpl.java Wyświetl plik

@@ -273,7 +273,7 @@ public class WxCouponServiceImpl implements WxCouponService {
} }
} }


if (record.getContentType().equals(EnumCouponContentType.HTML.getCode())) {
if (EnumCouponContentType.HTML.getCode().equals(record.getContentType())) {
if (StringUtils.isEmpty(record.getHtml())) { if (StringUtils.isEmpty(record.getHtml())) {
return new ResultData(ErrorCode.SYS_PARAMETER_ERROR.getCode(), "请填写富文本内容"); return new ResultData(ErrorCode.SYS_PARAMETER_ERROR.getCode(), "请填写富文本内容");
} }


Ładowanie…
Anuluj
Zapisz