回传任务表 定时回传

This commit is contained in:
liuhanqing
2025-09-25 15:57:49 +08:00
parent 535ef2fd6b
commit 91394ef32e
5 changed files with 61 additions and 22 deletions

View File

@@ -3,7 +3,7 @@
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.job.mapper.JobCallBackMapper">
<resultMap type="JobCallBack" id="JobCallBackResult">
<result property="id" column="id" />
<result property="type" column="type" />
@@ -22,7 +22,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectJobCallBackList" parameterType="JobCallBack" resultMap="JobCallBackResult">
<include refid="selectJobCallBackVo"/>
<where>
<where>
<if test="type != null and type != ''"> and type = #{type}</if>
<if test="taskNo != null "> and task_no = #{taskNo}</if>
<if test="mydojobId != null and mydojobId != ''"> and mydojob_id = #{mydojobId}</if>
@@ -32,11 +32,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="spare3 != null and spare3 != ''"> and spare3 = #{spare3}</if>
</where>
</select>
<select id="selectJobCallBackById" parameterType="Long" resultMap="JobCallBackResult">
<include refid="selectJobCallBackVo"/>
where id = #{id}
</select>
<select id="selectJobCallBackListNoSuccess" resultMap="JobCallBackResult">
<include refid="selectJobCallBackVo"/>
where status != '1'
</select>
<insert id="insertJobCallBack" parameterType="JobCallBack" useGeneratedKeys="true" keyProperty="id">
insert into job_call_back
@@ -82,9 +86,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</delete>
<delete id="deleteJobCallBackByIds" parameterType="String">
delete from job_call_back where id in
delete from job_call_back where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>
</mapper>