作者 dong

日志管理界面修正

@@ -113,22 +113,22 @@ public class AiragLog implements Serializable { @@ -113,22 +113,22 @@ public class AiragLog implements Serializable {
113 private int ifSaveKnowledge; 113 private int ifSaveKnowledge;
114 114
115 // 新增:临时字段(非数据库字段) 115 // 新增:临时字段(非数据库字段)
116 - @TableField(exist = false) // MyBatis-Plus 标记该字段不存在于数据库表中 116 + @TableField(exist = false)
117 private String name; 117 private String name;
118 // 新增:临时字段(非数据库字段) 118 // 新增:临时字段(非数据库字段)
119 - @TableField(exist = false) // MyBatis-Plus 标记该字段不存在于数据库表中 119 + @TableField(exist = false)
120 private String buttonName; 120 private String buttonName;
121 121
122 // 新增:临时字段(非数据库字段) 122 // 新增:临时字段(非数据库字段)
123 - @TableField(exist = false) // MyBatis-Plus 标记该字段不存在于数据库表中 123 + @TableField(exist = false)
124 private String createTime_begin; 124 private String createTime_begin;
125 // 新增:临时字段(非数据库字段) 125 // 新增:临时字段(非数据库字段)
126 - @TableField(exist = false) // MyBatis-Plus 标记该字段不存在于数据库表中 126 + @TableField(exist = false)
127 private String createTime_end; 127 private String createTime_end;
128 // 新增:临时字段(非数据库字段) 128 // 新增:临时字段(非数据库字段)
129 - @TableField(exist = false) // MyBatis-Plus 标记该字段不存在于数据库表中 129 + @TableField(exist = false)
130 private String knowledgeId; 130 private String knowledgeId;
131 131
132 - @TableField(exist = false) // MyBatis-Plus 标记该字段不存在于数据库表中 132 + @TableField(exist = false)
133 private String createTimeStr; 133 private String createTimeStr;
134 } 134 }
@@ -16,7 +16,6 @@ import java.util.Map; @@ -16,7 +16,6 @@ import java.util.Map;
16 * @Version: V1.0 16 * @Version: V1.0
17 */ 17 */
18 public interface AiragLogMapper extends BaseMapper<AiragLog> { 18 public interface AiragLogMapper extends BaseMapper<AiragLog> {
19 - IPage<AiragLog> list1(@Param("param1")AiragLog airagLog, Page<AiragLog> page);  
20 19
21 IPage<AiragLog> pageList(@Param("param1") AiragLog airagLog, Page<AiragLog> page); 20 IPage<AiragLog> pageList(@Param("param1") AiragLog airagLog, Page<AiragLog> page);
22 21
@@ -2,12 +2,6 @@ @@ -2,12 +2,6 @@
2 <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> 2 <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
3 <mapper namespace="org.jeecg.modules.airag.app.mapper.AiragLogMapper"> 3 <mapper namespace="org.jeecg.modules.airag.app.mapper.AiragLogMapper">
4 4
5 - <select id="list1"  
6 - resultType="org.jeecg.modules.airag.app.entity.AiragLog">  
7 - select * from airag_log  
8 - where model_id = #{param1.modelId}  
9 - </select>  
10 -  
11 <select id="pageList" resultType="org.jeecg.modules.airag.app.entity.AiragLog"> 5 <select id="pageList" resultType="org.jeecg.modules.airag.app.entity.AiragLog">
12 select 6 select
13 id, create_by, create_time, 7 id, create_by, create_time,
@@ -19,8 +13,8 @@ @@ -19,8 +13,8 @@
19 <if test="param1.isStorage != null and param1.isStorage != -1"> 13 <if test="param1.isStorage != null and param1.isStorage != -1">
20 and is_storage = #{param1.isStorage} 14 and is_storage = #{param1.isStorage}
21 </if> 15 </if>
22 - <if test="param1.name != '' and param1.name != null">  
23 - and model_id = #{param1.name} 16 + <if test="param1.modelId != '' and param1.modelId != null">
  17 + and model_id = #{param1.modelId}
24 </if> 18 </if>
25 <if test="param1.question != '' and param1.question != null"> 19 <if test="param1.question != '' and param1.question != null">
26 and question LIKE CONCAT('%', #{param1.question}, '%') 20 and question LIKE CONCAT('%', #{param1.question}, '%')
@@ -23,8 +23,6 @@ public interface IAiragLogService extends IService<AiragLog> { @@ -23,8 +23,6 @@ public interface IAiragLogService extends IService<AiragLog> {
23 23
24 void saveToEmbeddingLibrary(AiragLog log) throws JsonProcessingException; 24 void saveToEmbeddingLibrary(AiragLog log) throws JsonProcessingException;
25 25
26 - IPage<AiragLog> list1(AiragLog airagLog,Page<AiragLog> page);  
27 -  
28 IPage<AiragLog> pageList(AiragLog airagLog, Page<AiragLog> page); 26 IPage<AiragLog> pageList(AiragLog airagLog, Page<AiragLog> page);
29 27
30 Map<String, Object> getStatistics(String rangeType, String startTime, String endTime); 28 Map<String, Object> getStatistics(String rangeType, String startTime, String endTime);
@@ -90,11 +90,6 @@ public class AiragLogServiceImpl extends ServiceImpl<AiragLogMapper, AiragLog> i @@ -90,11 +90,6 @@ public class AiragLogServiceImpl extends ServiceImpl<AiragLogMapper, AiragLog> i
90 } 90 }
91 91
92 @Override 92 @Override
93 - public IPage<AiragLog> list1(AiragLog airagLog,Page<AiragLog> page) {  
94 - return airagLogMapper.list1(airagLog,page);  
95 - }  
96 -  
97 - @Override  
98 public IPage<AiragLog> pageList(AiragLog airagLog, Page<AiragLog> page) { 93 public IPage<AiragLog> pageList(AiragLog airagLog, Page<AiragLog> page) {
99 return airagLogMapper.pageList(airagLog,page); 94 return airagLogMapper.pageList(airagLog,page);
100 } 95 }