|
@@ -2,6 +2,8 @@ package com.miniframe;
|
|
|
|
|
|
import com.miniframe.core.ext.UtilTools;
|
|
import com.miniframe.core.ext.UtilTools;
|
|
|
|
|
|
|
|
+import com.miniframe.model.es.EsProJob;
|
|
|
|
+import com.miniframe.model.es.dao.EsProJobMapper;
|
|
import com.miniframe.tools.XIFileUtils;
|
|
import com.miniframe.tools.XIFileUtils;
|
|
import com.miniframe.utils.MFServiceUtils;
|
|
import com.miniframe.utils.MFServiceUtils;
|
|
import es.template.TemplateGenerator;
|
|
import es.template.TemplateGenerator;
|
|
@@ -10,6 +12,7 @@ import org.junit.jupiter.api.Test;
|
|
import org.springframework.boot.test.context.SpringBootTest;
|
|
import org.springframework.boot.test.context.SpringBootTest;
|
|
|
|
|
|
import java.io.IOException;
|
|
import java.io.IOException;
|
|
|
|
+import java.util.Date;
|
|
|
|
|
|
@SpringBootTest
|
|
@SpringBootTest
|
|
class ApplicationTests {
|
|
class ApplicationTests {
|
|
@@ -22,13 +25,19 @@ class ApplicationTests {
|
|
|
|
|
|
@Test
|
|
@Test
|
|
void mybatisTest(){
|
|
void mybatisTest(){
|
|
-
|
|
|
|
|
|
+ updateJob("5fa833b0a338452c80f8b70f8194720a");
|
|
}
|
|
}
|
|
|
|
|
|
@Test
|
|
@Test
|
|
void httpTest() throws Exception {
|
|
void httpTest() throws Exception {
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+ private String updateJob(String jobId) {
|
|
|
|
+ EsProJobMapper epjDao = UtilTools.getBean(EsProJobMapper.class);
|
|
|
|
+ EsProJob esjob =epjDao.selectByPrimaryKey(jobId);
|
|
|
|
+ esjob.setEndTime(new Date());
|
|
|
|
+ epjDao.updateByPrimaryKey(esjob);
|
|
|
|
+ return jobId;
|
|
|
|
+ }
|
|
@Test
|
|
@Test
|
|
void pipentXmlTest() throws Exception {
|
|
void pipentXmlTest() throws Exception {
|
|
String pid ="2d10f389f5c04fa686eac74289180d3d";
|
|
String pid ="2d10f389f5c04fa686eac74289180d3d";
|