|
@@ -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>
|