Ver código fonte

项目模拟数据组件属性删除

huangxingxing 2 meses atrás
pai
commit
6218877ddb

+ 1 - 0
modelsrc/com/miniframe/model/es/EsProJob.java

@@ -7,6 +7,7 @@ import javax.persistence.*;
 
 @Table(name = "es_pro_job")
 public class EsProJob extends MiniserviceBaseModel implements Serializable {
+    @Id
     @Column(name = "job_id")
     private String jobId;
 

+ 1 - 1
modelsrc/com/miniframe/model/es/dbconfig/MapperConfig-es.xml

@@ -5,7 +5,7 @@
     This file is generated by MyBatis Generator.
     This file is the shell of a Mapper Config file - in many cases you will need to add
       to this file before it is usable by MyBatis.
-    This file was generated on Mon Jun 16 11:48:35 CST 2025.
+    This file was generated on Tue Jun 17 17:01:52 CST 2025.
   -->
   <mappers>
     <mapper resource="com/miniframe/model/es/xml/EsProMapper.xml" />

+ 1 - 1
modelsrc/com/miniframe/model/system/dbconfig/MapperConfig-system.xml

@@ -5,7 +5,7 @@
     This file is generated by MyBatis Generator.
     This file is the shell of a Mapper Config file - in many cases you will need to add
       to this file before it is usable by MyBatis.
-    This file was generated on Mon Jun 16 11:48:35 CST 2025.
+    This file was generated on Tue Jun 17 17:01:52 CST 2025.
   -->
   <mappers>
     <mapper resource="com/miniframe/model/system/xml/SysAppcodeMapper.xml" />

+ 11 - 2
src/test/java/com/miniframe/ApplicationTests.java

@@ -2,6 +2,8 @@ package com.miniframe;
 
 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.utils.MFServiceUtils;
 import es.template.TemplateGenerator;
@@ -10,6 +12,7 @@ import org.junit.jupiter.api.Test;
 import org.springframework.boot.test.context.SpringBootTest;
 
 import java.io.IOException;
+import java.util.Date;
 
 @SpringBootTest
 class ApplicationTests {
@@ -22,13 +25,19 @@ class ApplicationTests {
 
     @Test
     void mybatisTest(){
-
+        updateJob("5fa833b0a338452c80f8b70f8194720a");
     }
 
     @Test
     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
     void pipentXmlTest() throws Exception {
         String pid ="2d10f389f5c04fa686eac74289180d3d";

+ 1 - 0
系统设计/系统模块/ES(无锡发动机).csv

@@ -15,6 +15,7 @@
 100014,ES0014,任务查询,service,
 100015,ES0015,结果属性值查询,service,
 100016,ES0016,项目模拟数据组件属性删除,service,
+100017,ES0017,求解日志获取,service,
 
 110001,ES1001,组件查询,service,
 110002,BES001,基础字典查询,service,