Переглянути джерело

智慧办公新增2个字段

wangmiaomiao 8 місяців тому
батько
коміт
e1e4972051

+ 9 - 1
slibra-system/src/main/java/com/slibra/business/domain/TXinyiAgentAssistant.java

@@ -35,8 +35,16 @@ public class TXinyiAgentAssistant extends BaseEntity
     @Excel(name = "标题")
     private String title;
 
+    /** 工具 */
+    @Excel(name = "工具")
+    private String tools;
+
+    /** 调用大模型的提示词 */
+    @Excel(name = "调用大模型的提示词")
+    private String prompt;
+
     /** 提示词内容 */
-    @Excel(name = "提示词内容")
+    @Excel(name = "展示内容")
     private String content;
 
     /** banner地址 */

+ 11 - 1
slibra-system/src/main/resources/mapper/business/TXinyiAgentAssistantMapper.xml

@@ -8,6 +8,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <result property="id"    column="id"    />
         <result property="category"    column="category"    />
         <result property="title"    column="title"    />
+        <result property="tools"    column="tools"    />
+        <result property="prompt"    column="prompt"    />
         <result property="content"    column="content"    />
         <result property="banner"    column="banner"    />
         <result property="sort"    column="sort"    />
@@ -21,7 +23,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
     </resultMap>
 
     <sql id="selectTXinyiAgentAssistantVo">
-        select id, category, title, content, banner, sort, del_flag, revision, create_by, create_time, update_by, update_time, remark from t_xinyi_agent_assistant
+        select id, category, title, tools, prompt, content, banner, sort, del_flag, revision, create_by, create_time, update_by, update_time, remark from t_xinyi_agent_assistant
     </sql>
 
     <select id="selectTXinyiAgentAssistantList" parameterType="TXinyiAgentAssistant" resultMap="TXinyiAgentAssistantResult">
@@ -30,6 +32,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             1 = 1
             <if test="category != null  and category != ''"> and category = #{category}</if>
             <if test="title != null  and title != ''"> and title = #{title}</if>
+            <if test="tools != null  and tools != ''"> and tools = #{tools}</if>
+            <if test="prompt != null  and prompt != ''"> and prompt = #{prompt}</if>
             <if test="content != null  and content != ''"> and content = #{content}</if>
             <if test="banner != null  and banner != ''"> and banner = #{banner}</if>
             <if test="sort != null  and sort != ''"> and sort = #{sort}</if>
@@ -48,6 +52,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <trim prefix="(" suffix=")" suffixOverrides=",">
             <if test="category != null">category,</if>
             <if test="title != null">title,</if>
+            <if test="tools != null">tools,</if>
+            <if test="prompt != null">prompt,</if>
             <if test="content != null">content,</if>
             <if test="banner != null">banner,</if>
             <if test="sort != null">sort,</if>
@@ -62,6 +68,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <trim prefix="values (" suffix=")" suffixOverrides=",">
             <if test="category != null">#{category},</if>
             <if test="title != null">#{title},</if>
+            <if test="tools != null">#{tools},</if>
+            <if test="prompt != null">#{prompt},</if>
             <if test="content != null">#{content},</if>
             <if test="banner != null">#{banner},</if>
             <if test="sort != null">#{sort},</if>
@@ -80,6 +88,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <trim prefix="SET" suffixOverrides=",">
             <if test="category != null">category = #{category},</if>
             <if test="title != null">title = #{title},</if>
+            <if test="tools != null">tools = #{tools},</if>
+            <if test="prompt != null">prompt = #{prompt},</if>
             <if test="content != null">content = #{content},</if>
             <if test="banner != null">banner = #{banner},</if>
             <if test="sort != null">sort = #{sort},</if>