Commit 757295ba by Ren Ping

fix:自动任务优化

1 parent 685a6975
......@@ -129,6 +129,7 @@ services:
container_name: project-order
volumes:
- /usr/local/src:/usr/local/src
- /home/dev_boxi/project-dispatch/logs:/logs
ports:
- ${ORDER_PORT}:${ORDER_PORT}
- "62001:62001"
......
......@@ -21,6 +21,7 @@ import org.springframework.transaction.annotation.Transactional;
import java.io.File;
import java.time.LocalDate;
import java.time.format.DateTimeFormatter;
import java.util.Objects;
import java.util.UUID;
/**
......@@ -59,6 +60,11 @@ public class SchedulerServiceImpl implements SchedulerService {
@Override
public void dispatchRun2(String teamId) {
OrgTeamEntity orgTeamEntity = orgTeamDao.findByTeamId(teamId);
if (Objects.isNull(orgTeamEntity)) {
log.error(">>> teamId:{} 不存在", teamId);
return;
}
String groupId = orgTeamEntity.getGroupId();
log.info("dispatchRun group:{}, team:{} done", groupId, teamId);
for (int i = 1; i <= nextDaysLimit; i++) {
......
......@@ -6,7 +6,7 @@
<springProperty name="LOG_MAXFILESIZE" scope="context" source="logback.filesize" defaultValue="100MB"/>
<springProperty name="LOG_FILEMAXDAY" scope="context" source="logback.filemaxday" defaultValue="30"/>
<springProperty name="LOG_FILEMAXDAY" scope="contexmt" source="logback.filemaxday" defaultValue="30"/>
<springProperty name="spring.application.name" scope="context" source="spring.application.name" defaultValue="spring-boot-fusion"/>
<!-- 日志在工程中的输出位置 -->
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!