|
|
@@ -10,6 +10,7 @@ import javax.annotation.Resource;
|
|
|
import javax.mail.MessagingException;
|
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.scheduling.annotation.Scheduled;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
@@ -20,7 +21,6 @@ import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
import com.goafanti.common.bo.EmailBo;
|
|
|
import com.goafanti.common.bo.userDaysBo;
|
|
|
import com.goafanti.common.constant.AFTConstants;
|
|
|
-import com.goafanti.common.dao.NoticeMapper;
|
|
|
import com.goafanti.common.enums.NoticeStatus;
|
|
|
import com.goafanti.common.model.Notice;
|
|
|
import com.goafanti.common.model.User;
|
|
|
@@ -40,9 +40,9 @@ public class ReleaseUserTask {
|
|
|
private UserService userService;
|
|
|
@Autowired
|
|
|
private AsyncUtils asyncUtils;
|
|
|
+ @Value(value = "${dev.name}")
|
|
|
+ private String devName=null;
|
|
|
|
|
|
- @Autowired
|
|
|
- private NoticeMapper noticeMapper;
|
|
|
|
|
|
int pointsDataLimit = 50;
|
|
|
|
|
|
@@ -188,7 +188,7 @@ public class ReleaseUserTask {
|
|
|
Notice n = new Notice(UUID.randomUUID().toString(), new Date(), 0, "1",
|
|
|
NoticeStatus.TASK_PATENT_ERROR.getCode(), "==============客户释放失败================",null);
|
|
|
asyncUtils.addNotice(n);
|
|
|
- EmailBo emailBo = new EmailBo("释放客户失败", AFTConstants.ADMIN_EMAIL, "超管", "平台", "系统", "释放客户失败");
|
|
|
+ EmailBo emailBo = new EmailBo("释放客户失败", AFTConstants.ADMIN_EMAIL, "超管", "平台", "系统", devName+"释放客户失败");
|
|
|
try {
|
|
|
asyncUtils.send(emailBo);
|
|
|
} catch (UnsupportedEncodingException | MessagingException e1) {
|