소스 검색

定时任务hostname

tags/24080901
PoffyZhang 1 년 전
부모
커밋
9eb2c10fc2
7개의 변경된 파일45개의 추가작업 그리고 4개의 파일을 삭제
  1. +16
    -0
      pmapi/src/main/java/com/ningdatech/pmapi/filemanage/mapper/DocumentationMapper.java
  2. +5
    -0
      pmapi/src/main/java/com/ningdatech/pmapi/filemanage/mapper/DocumentationMapper.xml
  3. +20
    -0
      pmapi/src/main/java/com/ningdatech/pmapi/filemanage/service/impl/DocumentationServiceImpl.java
  4. +1
    -1
      pmapi/src/main/java/com/ningdatech/pmapi/scheduler/task/CheckProvincialReviewResultTask.java
  5. +1
    -1
      pmapi/src/main/java/com/ningdatech/pmapi/scheduler/task/InitProcessTask.java
  6. +1
    -1
      pmapi/src/main/java/com/ningdatech/pmapi/scheduler/task/ProjectStatusFlowTask.java
  7. +1
    -1
      pmapi/src/main/java/com/ningdatech/pmapi/scheduler/task/WorkNoticeFlowTask.java

+ 16
- 0
pmapi/src/main/java/com/ningdatech/pmapi/filemanage/mapper/DocumentationMapper.java 파일 보기

@@ -0,0 +1,16 @@
package com.ningdatech.pmapi.filemanage.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ningdatech.pmapi.filemanage.model.entity.Documentation;

/**
* <p>
* Mapper 接口
* </p>
*
* @author CMM
* @since 2023-02-27
*/
public interface DocumentationMapper extends BaseMapper<Documentation> {

}

+ 5
- 0
pmapi/src/main/java/com/ningdatech/pmapi/filemanage/mapper/DocumentationMapper.xml 파일 보기

@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ningdatech.pmapi.filemanage.mapper.DocumentationMapper">

</mapper>

+ 20
- 0
pmapi/src/main/java/com/ningdatech/pmapi/filemanage/service/impl/DocumentationServiceImpl.java 파일 보기

@@ -0,0 +1,20 @@
package com.ningdatech.pmapi.filemanage.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ningdatech.pmapi.filemanage.mapper.DocumentationMapper;
import com.ningdatech.pmapi.filemanage.model.entity.Documentation;
import com.ningdatech.pmapi.filemanage.service.IDocumentationService;
import org.springframework.stereotype.Service;

/**
* <p>
* 服务实现类
* </p>
*
* @author Poffy
* @since 2023-02-13
*/
@Service
public class DocumentationServiceImpl extends ServiceImpl<DocumentationMapper, Documentation> implements IDocumentationService {

}

+ 1
- 1
pmapi/src/main/java/com/ningdatech/pmapi/scheduler/task/CheckProvincialReviewResultTask.java 파일 보기

@@ -42,7 +42,7 @@ public class CheckProvincialReviewResultTask {
private final StateMachineUtils stateMachineUtils;

@Value("${hostname}")
private final String HOST_NAME;
private String HOST_NAME;

@Scheduled(cron = "0 */2 * * * ?")
public void statusFlow() throws UnknownHostException {


+ 1
- 1
pmapi/src/main/java/com/ningdatech/pmapi/scheduler/task/InitProcessTask.java 파일 보기

@@ -50,7 +50,7 @@ public class InitProcessTask {
private final RegionCacheHelper regionCacheHelper;

@Value("${hostname}")
private final String HOST_NAME;
private String HOST_NAME;

@Scheduled(cron = "0 14 16 07 3 ?")
public void doTask() throws UnknownHostException {


+ 1
- 1
pmapi/src/main/java/com/ningdatech/pmapi/scheduler/task/ProjectStatusFlowTask.java 파일 보기

@@ -42,7 +42,7 @@ public class ProjectStatusFlowTask {
private final ProjectStatusFlowMapUtil projectStatusFlowMapUtil;

@Value("${hostname}")
private final String HOST_NAME;
private String HOST_NAME;

@Scheduled(cron = "0 */1 * * * ?")
public void statusFlow() throws UnknownHostException {


+ 1
- 1
pmapi/src/main/java/com/ningdatech/pmapi/scheduler/task/WorkNoticeFlowTask.java 파일 보기

@@ -38,7 +38,7 @@ public class WorkNoticeFlowTask {
private final ZwddClient zwddClient;

@Value("${hostname}")
private final String HOST_NAME;
private String HOST_NAME;

@Scheduled(cron = "0 */1 * * * ?")
public void statusFlow() throws UnknownHostException {


불러오는 중...
취소
저장