| | |
| | | where id = #{id} |
| | | </update> |
| | | <update id="updateRtype"> |
| | | update sys_taskqd |
| | | SET rtype=#{type} |
| | | where id = #{rid} |
| | | UPDATE sys_taskqd |
| | | <set> |
| | | <if test='type == "0" '>rtype=#{type},stime = now(),</if> |
| | | <if test='type == "1" '>rtype=#{type},sendtime = now(),</if> |
| | | </set> |
| | | WHERE id = #{rid} |
| | | </update> |
| | | |
| | | <update id="updateSerid"> |
| | |
| | | </choose> |
| | | LIMIT 0,15 |
| | | </select> |
| | | |
| | | <select id="getRealTime" resultType="java.lang.Integer"> |
| | | SELECT (UNIX_TIMESTAMP(sendtime)-UNIX_TIMESTAMP(stime)) |
| | | subsecond |
| | | FROM sys_taskqd |
| | | WHERE id = #{hdid} |
| | | </select> |
| | | </mapper> |