Browse Source

4/3上午合并谢翔代码 发布测试环境

chendayu 2 years ago
parent
commit
73c3bb542c

+ 2 - 2
.idea/dataSources.xml

@@ -1,11 +1,11 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <project version="4">
   <component name="DataSourceManagerImpl" format="xml" multifile-model="true">
-    <data-source source="LOCAL" name="pas@localhost" uuid="4ae3dfad-2867-4e22-80e0-f0b8aa5fcaf9">
+    <data-source source="LOCAL" name="@192.168.1.24" uuid="a4751ee5-a9a4-48cf-aa62-9a663c7bf91d">
       <driver-ref>mysql.8</driver-ref>
       <synchronize>true</synchronize>
       <jdbc-driver>com.mysql.cj.jdbc.Driver</jdbc-driver>
-      <jdbc-url>jdbc:mysql://localhost:3306/pas</jdbc-url>
+      <jdbc-url>jdbc:mysql://192.168.1.24:3306</jdbc-url>
       <working-dir>$ProjectFileDir$</working-dir>
     </data-source>
   </component>

+ 70 - 0
PAS/src/main/java/cn/cslg/pas/common/model/vo/EventListItemVO.java

@@ -0,0 +1,70 @@
+package cn.cslg.pas.common.model.vo;
+
+import com.baomidou.mybatisplus.annotation.TableField;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import lombok.Data;
+import lombok.experimental.Accessors;
+import org.springframework.format.annotation.DateTimeFormat;
+
+import java.io.Serializable;
+import java.util.Date;
+import java.util.List;
+
+/**
+ * 事件表的列表查询VO类
+ *
+ * @Author chenyu
+ * @Date 2023/4/2
+ */
+@Accessors(chain = true)
+@Data
+public class EventListItemVO implements Serializable {
+    /**
+     * 主键
+     */
+    private Integer id;
+    /**
+     * 事件名称
+     */
+    private String questionName;
+    /**
+     * 描述
+     */
+    private String description;
+    /**
+     * 应用场景(id集合)
+     */
+    private List<Integer> applicationScenarios;
+    /**
+     * 应用场景(名称集合)
+     */
+    private List<String> scenarioNames;
+    /**
+     * 时间
+     */
+    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+    @TableField(value = "event_date")
+    private Date eventDate;
+    /**
+     * 专题库id
+     */
+    private Integer projectId;
+    /**
+     * 创建人名称
+     */
+    private String createPersonName;
+    /**
+     * 创建时间
+     */
+    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+    private Date createTime;
+    /**
+     * 最后修改时间
+     */
+    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+    private Date modifiedTime;
+
+}

+ 10 - 0
PAS/src/main/java/cn/cslg/pas/mapper/EventMapper.java

@@ -1,5 +1,7 @@
 package cn.cslg.pas.mapper;
 
+import cn.cslg.pas.common.model.dto.EventQueryPageDTO;
+import cn.cslg.pas.common.model.vo.EventListItemVO;
 import cn.cslg.pas.domain.Event;
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
 import org.springframework.stereotype.Repository;
@@ -23,5 +25,13 @@ public interface EventMapper extends BaseMapper<Event> {
      */
     int countByNameAndProjectIds(String questionName, List<Integer> projectIds);
 
+    /**
+     * 分页查询事件列表
+     *
+     * @param eventQueryPageDTO 事件的分页查询DTO类
+     * @return 返回查询到的数据
+     */
+//    List<EventListItemVO> queryList(EventQueryPageDTO eventQueryPageDTO);
+
 
 }

+ 6 - 0
PAS/src/main/resources/mapper/EventMapper.xml

@@ -15,4 +15,10 @@
         )
     </select>
 
+    <!--分页查询事件列表-->
+    <!--List<EventListItemVO> queryList(EventQueryPageDTO eventQueryPageDTO);-->
+<!--    <select id="queryList" resultMap="queryListMap">-->
+<!--        select from pas.event-->
+<!--    </select>-->
+
 </mapper>