Просмотр исходного кода

[系统][修复]:记录作废卡券的操作时间

release_toaliyun_real
hupeng 7 лет назад
Родитель
Сommit
8a3db1ec54
3 измененных файлов: 5 добавлений и 0 удалений
  1. +1
    -0
      mallinkService/src/main/java/com/iformall/service/impl/WxCouponChannelServiceImpl.java
  2. +2
    -0
      mallinkService/src/main/java/com/iformall/service/impl/WxCouponSendServiceImpl.java
  3. +2
    -0
      mallinkService/src/main/java/com/iformall/service/impl/WxCouponServiceImpl.java

+ 1
- 0
mallinkService/src/main/java/com/iformall/service/impl/WxCouponChannelServiceImpl.java Просмотреть файл

@@ -99,6 +99,7 @@ public class WxCouponChannelServiceImpl implements WxCouponChannelService {
wxCouponChannel.setTenantId(tenantId);
wxCouponChannel.setStatus(status);
wxCouponChannel.setCouponId(couponId);
wxCouponChannel.setUpdateDate(new Date());
wxCouponChannelMapper.updateStatusByCouponId(wxCouponChannel);
}



+ 2
- 0
mallinkService/src/main/java/com/iformall/service/impl/WxCouponSendServiceImpl.java Просмотреть файл

@@ -15,6 +15,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.Date;
import java.util.List;

@Service
@@ -150,6 +151,7 @@ public class WxCouponSendServiceImpl implements WxCouponSendService {
wxCouponSend.setTenantId(tenantId);
wxCouponSend.setCouponId(couponId);
wxCouponSend.setStatus(status);
wxCouponSend.setUpdateDate(new Date());
wxCouponSendMapper.updateStatusByCouponId(wxCouponSend);
}



+ 2
- 0
mallinkService/src/main/java/com/iformall/service/impl/WxCouponServiceImpl.java Просмотреть файл

@@ -57,6 +57,7 @@ public class WxCouponServiceImpl implements WxCouponService {
record.setId(idWorker.nextId());
wxCouponMapper.insertSelective(record);
} else {
record.setUpdateDate(new Date());
wxCouponMapper.updateByPrimaryKeySelective(record);
}
return record.getId();
@@ -80,6 +81,7 @@ public class WxCouponServiceImpl implements WxCouponService {
if (wxCoupon.getStatus() != null) {
if (query.getStatus().equals(EnumCouponStatus.COUPON_STATUS_THROW_IN.getCode())
&& wxCoupon.getStatus().equals(EnumCouponStatus.COUPON_STATUS_TAKE_OFFF.getCode())) {

//作废所有投放频道
wxCouponChannelService
.updateStatusByCouponId(wxCoupon.getId(), query.getTenantId(), EnumCouponChannelStatus.STATUS_TAKE_OFFF.getCode());


Загрузка…
Отмена
Сохранить