Browse Source

[A端][修复]:修复已存在的couponchannel重复建立问题

release_toaliyun_real
hupeng 7 years ago
parent
commit
9d870bd378
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      mallinkService/src/main/java/com/simple/service/impl/WxCampaignServiceImpl.java

+ 1
- 1
mallinkService/src/main/java/com/simple/service/impl/WxCampaignServiceImpl.java View File

@@ -120,7 +120,7 @@ public class WxCampaignServiceImpl implements WxCampaignService {

if(wxCouponChannels.size()>0) {
for (int i = 0; i < wxCouponChannels.size(); i++) {
if (wxCouponChannels.get(i).getId() == couponId) {
if (wxCouponChannels.get(i).getId().longValue() == couponId.longValue()) {
wxCouponChannels.get(i).setStatus(EnumCouponChannelStatus.STATUS_THROW_IN.getCode());
wxCouponChannels.get(i).setBeginTime(record.getValidStartDate());
wxCouponChannels.get(i).setEndTime(record.getValidEndDate());


Loading…
Cancel
Save