Browse Source

//update test

release_toaliyun_real
xhxu 4 years ago
parent
commit
1b455dcf6a
1 changed files with 10 additions and 0 deletions
  1. +10
    -0
      mallinkService/src/main/java/com/iformall/service/impl/WxCouponServiceImpl.java

+ 10
- 0
mallinkService/src/main/java/com/iformall/service/impl/WxCouponServiceImpl.java View File

@@ -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())) {


Loading…
Cancel
Save