|
|
|
@@ -332,6 +332,16 @@ public class WxCouponServiceImpl implements WxCouponService { |
|
|
|
if (StringUtils.isNotEmpty(record.getSubsidyNumStr())) { |
|
|
|
record.setSubsidyNum(new BigDecimal(record.getSubsidyNumStr()).multiply(new BigDecimal(100)).intValue()); |
|
|
|
} |
|
|
|
if (EnumCouponType.COUPON_DOUYIN.getCode().equals(record.getType())){ |
|
|
|
if(StringUtils.isBlank(record.getItemGroup())){ |
|
|
|
return new ResultData(ErrorCode.SYS_PARAMETER_ERROR.getCode(),"团购详情不能为"); |
|
|
|
} |
|
|
|
try{ |
|
|
|
JSON.parseArray(record.getItemGroup()); |
|
|
|
}catch(Exception e){ |
|
|
|
return new ResultData(ErrorCode.SYS_PARAMETER_ERROR.getCode(),"团购详情格式不正确"); |
|
|
|
} |
|
|
|
} |
|
|
|
if (StringUtils.isBlank(record.getCoverPicture())) { |
|
|
|
List<String> strList = new ArrayList<String>(); |
|
|
|
if (StringUtils.isNotBlank(record.getCoverImg())) { |
|
|
|
|