|
|
|
@@ -1,6 +1,7 @@ |
|
|
|
package com.iformall.service.impl; |
|
|
|
|
|
|
|
import com.alibaba.fastjson.JSON; |
|
|
|
import com.alibaba.fastjson.JSONArray; |
|
|
|
import com.alibaba.fastjson.JSONObject; |
|
|
|
import com.github.pagehelper.PageHelper; |
|
|
|
import com.github.pagehelper.PageInfo; |
|
|
|
@@ -193,6 +194,11 @@ public class WxCouponServiceImpl implements WxCouponService { |
|
|
|
if (StringUtils.isNotEmpty(record.getSubsidyNumStr())) { |
|
|
|
record.setSubsidyNum(new BigDecimal(record.getSubsidyNumStr()).multiply(new BigDecimal(100)).intValue()); |
|
|
|
} |
|
|
|
if (StringUtils.isBlank(record.getCoverPicture())) { |
|
|
|
List<String> strList = new ArrayList<String>(); |
|
|
|
strList.add(record.getCoverImg()); |
|
|
|
record.setCoverPicture(JSONArray.toJSONString(strList)); |
|
|
|
} |
|
|
|
|
|
|
|
if (record.getValidType() != null) { |
|
|
|
if (record.getValidType().equals(EnumCouponValidType.DAYS_AFTER_RECEIVING.getCode())) { |
|
|
|
|