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

[精准发券enum整理][整理]

release_toaliyun_real
Stormeye.Wu 7 лет назад
Родитель
Сommit
dceaebdb4b
1 измененных файлов: 4 добавлений и 3 удалений
  1. +4
    -3
      mallinkService/src/main/java/com/iformall/service/impl/CouponInjectServiceImpl.java

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

@@ -11,6 +11,7 @@ import com.iformall.enums.*;
import com.iformall.exception.MallinkException; import com.iformall.exception.MallinkException;
import com.iformall.mapper.CouponInjectMapper; import com.iformall.mapper.CouponInjectMapper;
import com.iformall.service.*; import com.iformall.service.*;
import com.iformall.utils.DateUtils;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
@@ -179,9 +180,9 @@ public class CouponInjectServiceImpl implements CouponInjectService {
logger.info("手机号未发现"); logger.info("手机号未发现");
return; return;
} }
if(record.getSendType()==1){//定时发送
wxmsg.setIsright(record.getSendType()==1?0:1);//值是相反的
wxmsg.setSendtime(com.iformall.utils.DateUtils.date2String(record.getSendTime(),"yyyy-MM-dd HH:mm:ss"));
if(record.getSendType().equals(EnumCouponInjectSendType.TIMING.getCode())){
wxmsg.setIsright(EnumMsgStatus.MSG_SEND_NOT_IMMEDIATELY.getCode());//值是相反的
wxmsg.setSendtime(DateUtils.date2String(record.getSendTime(),"yyyy-MM-dd HH:mm:ss"));
wxmsg.setStatus(EnumMsgStatus.MSG_STATUS_NOT_SEND.getCode()); wxmsg.setStatus(EnumMsgStatus.MSG_STATUS_NOT_SEND.getCode());
}else{ }else{
wxmsg.setIsright(EnumMsgStatus.MSG_SEND_IMMEDIATELY.getCode());//立即发送 wxmsg.setIsright(EnumMsgStatus.MSG_SEND_IMMEDIATELY.getCode());//立即发送


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