|
|
|
@@ -1240,7 +1240,7 @@ public class WxCouponServiceImpl implements WxCouponService { |
|
|
|
|
|
|
|
@Override |
|
|
|
@Transactional(isolation=Isolation.SERIALIZABLE, propagation = Propagation.REQUIRED, rollbackFor = {Exception.class}) |
|
|
|
public ResultData productSave(WxCoupon coupon) { |
|
|
|
public ResultData productSave(WxCoupon coupon) throws Exception { |
|
|
|
WxCoupon ttattrs = this.getAttrsById(coupon.getId(), coupon.getTenantId()); |
|
|
|
if(ttattrs.getProductType() == null || ttattrs.getCategoryId() == null |
|
|
|
|| ttattrs.getProductAttrKeyValueMap().isEmpty() |
|
|
|
@@ -1295,11 +1295,13 @@ public class WxCouponServiceImpl implements WxCouponService { |
|
|
|
return new ResultData(); |
|
|
|
|
|
|
|
} catch (WxErrorException e) { |
|
|
|
logger.error(e.getMessage()); |
|
|
|
return new ResultData(ErrorCode.SYS_SERVER_ERROR.getCode(),e.getMessage()); |
|
|
|
throw new Exception(e); |
|
|
|
// logger.error(e.getMessage()); |
|
|
|
// return new ResultData(ErrorCode.SYS_SERVER_ERROR.getCode(),e.getMessage()); |
|
|
|
} catch (Exception e){ |
|
|
|
logger.error(e.getMessage()); |
|
|
|
return new ResultData(ErrorCode.SYS_SERVER_ERROR.getCode(),e.getMessage()); |
|
|
|
throw e; |
|
|
|
// logger.error(e.getMessage()); |
|
|
|
// return new ResultData(ErrorCode.SYS_SERVER_ERROR.getCode(),e.getMessage()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|