|
|
|
@@ -20,6 +20,7 @@ import com.iformall.enums.*; |
|
|
|
import com.iformall.mapper.*; |
|
|
|
import com.iformall.service.*; |
|
|
|
import com.iformall.utils.Constant; |
|
|
|
import com.iformall.utils.DateUtils; |
|
|
|
import me.chanjar.weixin.common.error.WxErrorException; |
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
import org.slf4j.Logger; |
|
|
|
@@ -178,7 +179,7 @@ public class TtCouponGoodsServiceImpl implements TtCouponGoodsService { |
|
|
|
wxCouponChannel.setId(idWorker.nextId()); |
|
|
|
wxCouponChannel.updateTenantInfo(coupon); |
|
|
|
wxCouponChannel.setShowBeginTime(new Date()); |
|
|
|
// wxCouponChannel.setBeginTime(new Date()); |
|
|
|
wxCouponChannel.setBeginTime(new Date()); |
|
|
|
wxCouponChannel.setEndTime(coupon.getValidEndDate()); |
|
|
|
wxCouponChannel.setStatus(EnumCouponChannelStatus.STATUS_BEFORE.getCode()); |
|
|
|
wxCouponChannel.setCouponId(coupon.getId()); |
|
|
|
@@ -201,10 +202,11 @@ public class TtCouponGoodsServiceImpl implements TtCouponGoodsService { |
|
|
|
prostruct.setProductType(ttattrs.getProductType()); |
|
|
|
prostruct.setBizLine(5);//默认小程序 |
|
|
|
prostruct.setAccountName(couponMerchantList.get(0).getMerchantName()); |
|
|
|
// prostruct.setSoldStartTime(); |
|
|
|
// prostruct.setSoldEndTime(); |
|
|
|
prostruct.setOutUrl(getGoodsEntrySchema(coupon,wxCouponChannel.getId())); |
|
|
|
|
|
|
|
prostruct.setSoldStartTime((long) DateUtils.getSecondTimestamp(wxCouponChannel.getBeginTime())); |
|
|
|
prostruct.setSoldEndTime((long) DateUtils.getSecondTimestamp(wxCouponChannel.getEndTime())); |
|
|
|
|
|
|
|
prostruct.setOutUrl(getGoodsEntrySchema(coupon,wxCouponChannel.getId())); |
|
|
|
prostruct.setPoiList(poiList); |
|
|
|
Map<String, String> productAttrKeyValueMap = ttattrs.getProductAttrKeyValueMap(); |
|
|
|
productAttrKeyValueMap.put("trade_url",getUpOrderEntrySchema(coupon,wxCouponChannel.getId())); |
|
|
|
|