|
@@ -6,7 +6,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
|
|
<resultMap type="CompanyVoiceRoboticWx" id="CompanyVoiceRoboticWxResult">
|
|
<resultMap type="CompanyVoiceRoboticWx" id="CompanyVoiceRoboticWxResult">
|
|
|
<result property="id" column="id" />
|
|
<result property="id" column="id" />
|
|
|
- <result property="accountId" column="account_id" />
|
|
|
|
|
<result property="intention" column="intention" />
|
|
<result property="intention" column="intention" />
|
|
|
<result property="accountId" column="account_id" />
|
|
<result property="accountId" column="account_id" />
|
|
|
<result property="wxDialogId" column="wx_dialog_id" />
|
|
<result property="wxDialogId" column="wx_dialog_id" />
|
|
@@ -16,7 +15,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
|
|
<sql id="selectCompanyVoiceRoboticWxVo">
|
|
<sql id="selectCompanyVoiceRoboticWxVo">
|
|
|
- select id, intention, account_id, account_id, wx_dialog_id, num, add_num, create_time, create_user from company_voice_robotic_wx
|
|
|
|
|
|
|
+ select id, intention, account_id, wx_dialog_id, num, add_num, create_time, create_by from company_voice_robotic_wx
|
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
|
|
<select id="selectCompanyVoiceRoboticWxList" resultMap="CompanyVoiceRoboticWxResult">
|
|
<select id="selectCompanyVoiceRoboticWxList" resultMap="CompanyVoiceRoboticWxResult">
|
|
@@ -24,7 +23,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<where>
|
|
<where>
|
|
|
<if test="intention != null and intention != ''"> and intention = #{intention}</if>
|
|
<if test="intention != null and intention != ''"> and intention = #{intention}</if>
|
|
|
<if test="accountId != null "> and account_id = #{accountId}</if>
|
|
<if test="accountId != null "> and account_id = #{accountId}</if>
|
|
|
- <if test="accountId != null "> and account_id = #{accountId}</if>
|
|
|
|
|
<if test="wxDialogId != null "> and wx_dialog_id = #{wxDialogId}</if>
|
|
<if test="wxDialogId != null "> and wx_dialog_id = #{wxDialogId}</if>
|
|
|
<if test="num != null "> and num = #{num}</if>
|
|
<if test="num != null "> and num = #{num}</if>
|
|
|
<if test="addNum != null "> and add_num = #{addNum}</if>
|
|
<if test="addNum != null "> and add_num = #{addNum}</if>
|
|
@@ -78,7 +76,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
<if test="intention != null">intention,</if>
|
|
<if test="intention != null">intention,</if>
|
|
|
<if test="accountId != null">account_id,</if>
|
|
<if test="accountId != null">account_id,</if>
|
|
|
- <if test="accountId != null">account_id,</if>
|
|
|
|
|
<if test="wxDialogId != null">wx_dialog_id,</if>
|
|
<if test="wxDialogId != null">wx_dialog_id,</if>
|
|
|
<if test="num != null">num,</if>
|
|
<if test="num != null">num,</if>
|
|
|
<if test="addNum != null">add_num,</if>
|
|
<if test="addNum != null">add_num,</if>
|
|
@@ -87,7 +84,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="intention != null">#{intention},</if>
|
|
<if test="intention != null">#{intention},</if>
|
|
|
<if test="accountId != null">#{accountId},</if>
|
|
<if test="accountId != null">#{accountId},</if>
|
|
|
- <if test="accountId != null">#{accountId},</if>
|
|
|
|
|
<if test="wxDialogId != null">#{wxDialogId},</if>
|
|
<if test="wxDialogId != null">#{wxDialogId},</if>
|
|
|
<if test="num != null">#{num},</if>
|
|
<if test="num != null">#{num},</if>
|
|
|
<if test="addNum != null">#{addNum},</if>
|
|
<if test="addNum != null">#{addNum},</if>
|
|
@@ -95,9 +91,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</trim>
|
|
</trim>
|
|
|
</insert>
|
|
</insert>
|
|
|
<insert id="insertList">
|
|
<insert id="insertList">
|
|
|
- insert into company_voice_robotic_wx (intention, account_id, account_id, wx_dialog_id, create_time) values
|
|
|
|
|
|
|
+ insert into company_voice_robotic_wx (intention, account_id, wx_dialog_id, create_time) values
|
|
|
<foreach collection="list" item="item" index="index" separator=",">
|
|
<foreach collection="list" item="item" index="index" separator=",">
|
|
|
- (#{item.intention},#{item.accountId},#{item.accountId},#{item.wxDialogId},now())
|
|
|
|
|
|
|
+ (#{item.intention},#{item.accountId},#{item.wxDialogId},now())
|
|
|
</foreach>
|
|
</foreach>
|
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
|
@@ -106,7 +102,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
<if test="intention != null">intention = #{intention},</if>
|
|
<if test="intention != null">intention = #{intention},</if>
|
|
|
<if test="accountId != null">account_id = #{accountId},</if>
|
|
<if test="accountId != null">account_id = #{accountId},</if>
|
|
|
- <if test="accountId != null">account_id = #{accountId},</if>
|
|
|
|
|
<if test="wxDialogId != null">wx_dialog_id = #{wxDialogId},</if>
|
|
<if test="wxDialogId != null">wx_dialog_id = #{wxDialogId},</if>
|
|
|
<if test="num != null">num = #{num},</if>
|
|
<if test="num != null">num = #{num},</if>
|
|
|
<if test="addNum != null">add_num = #{addNum},</if>
|
|
<if test="addNum != null">add_num = #{addNum},</if>
|