|
|
@@ -3,7 +3,7 @@
|
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
<mapper namespace="com.fs.company.mapper.CompanyVoiceRoboticCalleesMapper">
|
|
|
-
|
|
|
+
|
|
|
<resultMap type="CompanyVoiceRoboticCallees" id="CompanyVoiceRoboticCalleesResult">
|
|
|
<result property="id" column="id" />
|
|
|
<result property="userId" column="user_id" />
|
|
|
@@ -19,7 +19,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
<select id="selectCompanyVoiceRoboticCalleesList" parameterType="CompanyVoiceRoboticCallees" resultType="CompanyVoiceRoboticCallees">
|
|
|
<include refid="selectCompanyVoiceRoboticCalleesVo"/>
|
|
|
- <where>
|
|
|
+ <where>
|
|
|
<if test="userId != null "> and user_id = #{userId}</if>
|
|
|
<if test="userName != null and userName != ''"> and user_name = #{userName}</if>
|
|
|
<if test="phone != null and phone != ''"> and phone = #{phone}</if>
|
|
|
@@ -27,7 +27,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="params != null and params != ''"> and params = #{params}</if>
|
|
|
</where>
|
|
|
</select>
|
|
|
-
|
|
|
<select id="selectCompanyVoiceRoboticCalleesById" parameterType="Long" resultMap="CompanyVoiceRoboticCalleesResult">
|
|
|
<include refid="selectCompanyVoiceRoboticCalleesVo"/>
|
|
|
where id = #{id}
|
|
|
@@ -79,7 +78,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</delete>
|
|
|
|
|
|
<delete id="deleteCompanyVoiceRoboticCalleesByIds" parameterType="String">
|
|
|
- delete from company_voice_robotic_callees where id in
|
|
|
+ delete from company_voice_robotic_callees where id in
|
|
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
|
|
#{id}
|
|
|
</foreach>
|
|
|
@@ -202,6 +201,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
</select>
|
|
|
|
|
|
+
|
|
|
<insert id="batchInsertGenerateInfo" useGeneratedKeys="true" keyProperty="id">
|
|
|
INSERT INTO company_voice_robotic_callees
|
|
|
(phone, robotic_id, task_flow, run_task_flow, is_we_com, user_id, user_name, is_generate)
|
|
|
@@ -212,4 +212,4 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
#{item.userName}, #{item.isGenerate})
|
|
|
</foreach>
|
|
|
</insert>
|
|
|
-</mapper>
|
|
|
+</mapper>
|