| @@ -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());//立即发送 | ||||