|
|
@@ -25,6 +25,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="endTime2" column="end_time2" />
|
|
|
<result property="createTime" column="create_time" />
|
|
|
<result property="companyAiWorkflowId" column="company_ai_workflow_id" />
|
|
|
+ <result property="delFlag" column="del_flag" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectCompanyVoiceRoboticVo">
|
|
|
@@ -34,6 +35,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<select id="selectCompanyVoiceRoboticList" parameterType="CompanyVoiceRobotic" resultMap="CompanyVoiceRoboticResult">
|
|
|
<include refid="selectCompanyVoiceRoboticVo"/>
|
|
|
<where>
|
|
|
+ del_flag = 0
|
|
|
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
|
|
|
<if test="taskName != null and taskName != ''"> and task_name like concat('%', #{taskName}, '%')</if>
|
|
|
<if test="taskId != null "> and task_id = #{taskId}</if>
|
|
|
@@ -61,6 +63,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
inner join company_user u on a.create_user = u.user_id
|
|
|
inner join company_dept d on u.dept_id = d.dept_id
|
|
|
<where>
|
|
|
+ a.del_flag = 0
|
|
|
<if test="taskType != null "> and a.task_type = #{taskType} </if>
|
|
|
<if test="companyId != null"> and a.company_id = #{companyId} </if>
|
|
|
<if test="name != null and name != ''"> and a.name like concat('%', #{name}, '%')</if>
|
|
|
@@ -91,7 +94,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
<select id="selectCompanyVoiceRoboticById" parameterType="Long" resultMap="CompanyVoiceRoboticResult">
|
|
|
<include refid="selectCompanyVoiceRoboticVo"/>
|
|
|
- where id = #{id}
|
|
|
+ where id = #{id} and del_flag = 0
|
|
|
</select>
|
|
|
<select id="qwUserList" resultType="com.fs.company.vo.CompanyVoiceRoboticQwUserListVo">
|
|
|
select a.id, a.wx_nick_name, a.wx_no, b.nick_name as companyUserName from company_wx_account a
|
|
|
@@ -182,16 +185,20 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
where id = #{id}
|
|
|
</update>
|
|
|
|
|
|
- <delete id="deleteCompanyVoiceRoboticById" parameterType="Long">
|
|
|
- delete from company_voice_robotic where id = #{id}
|
|
|
- </delete>
|
|
|
+ <update id="deleteCompanyVoiceRoboticById" parameterType="Long">
|
|
|
+ update company_voice_robotic set del_flag = 1 where id = #{id}
|
|
|
+ </update>
|
|
|
|
|
|
- <delete id="deleteCompanyVoiceRoboticByIds" parameterType="String">
|
|
|
- delete from company_voice_robotic where id in
|
|
|
+ <update id="deleteCompanyVoiceRoboticByIds" parameterType="String">
|
|
|
+ update company_voice_robotic set del_flag = 1 where id in
|
|
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
|
|
#{id}
|
|
|
</foreach>
|
|
|
- </delete>
|
|
|
+ </update>
|
|
|
+
|
|
|
+ <update id="updateDelFlag">
|
|
|
+ update company_voice_robotic set del_flag = #{delFlag} where id = #{id}
|
|
|
+ </update>
|
|
|
|
|
|
<update id="finishRobotic" parameterType="java.lang.Long">
|
|
|
update company_voice_robotic set task_status = 3 where id = #{id} and task_flow = run_task_flow
|
|
|
@@ -219,6 +226,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
select * from company_voice_robotic where company_id = #{companyId}
|
|
|
and scene_type = #{sceneType}
|
|
|
and task_status = 1
|
|
|
+ and del_flag = 0
|
|
|
order by create_time desc
|
|
|
</select>
|
|
|
</mapper>
|