Merge branch 'dev'

This commit is contained in:
wangliwen 2022-12-08 16:05:06 +08:00
commit 91eea8e787
4 changed files with 6 additions and 4 deletions

View File

@ -99,7 +99,7 @@ public class ActHistoryService {
@Autowired
private TRemindersService tRemindersService;
@Value("${reminders.interval:7}") // 流程发起后多少天允许催办
@Value("${reminders.interval}") // 流程发起后多少天允许催办
private Integer interval;
@ -397,6 +397,7 @@ public class ActHistoryService {
Optional<Task> nowTask = taskService.createTaskQuery().processInstanceId(index.getProcessInstanceId())
.orderByTaskCreateTime().desc().active().list().stream().findFirst(); // 尝试获取当前task
if (nowTask.isPresent()) { // 存在正在进行的任务
logger.info("当前任务id:" + nowTask.get().getId());
LocalDate localDate = tRemindersService.selectRemindersTime(nowTask.get().getId());
if (localDate == null) { // 未进行过催办
LocalDate taskCreateDate = nowTask.get().getCreateTime().toInstant().atZone(ZoneId.systemDefault()).toLocalDate();
@ -424,6 +425,7 @@ public class ActHistoryService {
}
}
} else {
logger.info("不存在正在进行流程节点");
index.setAllowReminders(Boolean.FALSE);
index.setDoneReminders(Boolean.FALSE);
index.setNextRemindersDays(0);

View File

@ -103,7 +103,7 @@ public class TAbilityApplicationController {
@Value("${infrastructure.dept-can-apply-max}")
private Integer infrastructureMax;
@Value("${reminders.interval:7}") // 流程发起后多少天允许催办
@Value("${reminders.interval}") // 流程发起后多少天允许催办
private Integer interval;
@Autowired

View File

@ -57,7 +57,7 @@ public class TRemindersController {
@Autowired
protected TaskService taskService;
@Value("${reminders.interval:7}") // 流程发起后多少天允许催办
@Value("${reminders.interval}") // 流程发起后多少天允许催办
private Integer interval;
@GetMapping("page")

View File

@ -46,7 +46,7 @@ public class TRemindersServiceImpl extends CrudServiceImpl<TRemindersDao, TRemin
@Value("#{new Boolean(${notice.yawei})}")
private Boolean noticeYaWei; // 是否发送消息到亚微中心
@Value("${reminders.interval:7}") // 流程发起后多少天允许催办
@Value("${reminders.interval}") // 流程发起后多少天允许催办
private Integer interval;
@Autowired