You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
1.2 KiB

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.yami.shop.quartz.dao.ScheduleJobMapper">
<resultMap id="BaseResultMap" type="com.yami.shop.quartz.model.ScheduleJob">
<!--
WARNING - @mbg.generated
-->
<id column="job_id" jdbcType="BIGINT" property="jobId" />
<result column="bean_name" jdbcType="VARCHAR" property="beanName" />
<result column="method_name" jdbcType="VARCHAR" property="methodName" />
<result column="params" jdbcType="VARCHAR" property="params" />
<result column="cron_expression" jdbcType="VARCHAR" property="cronExpression" />
<result column="status" jdbcType="TINYINT" property="status" />
<result column="remark" jdbcType="VARCHAR" property="remark" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="group_name" jdbcType="VARCHAR" property="groupName" />
</resultMap>
<!-- 批量更新状态 -->
<update id="updateBatch">
update tz_schedule_job set status = #{status} where job_id in
<foreach item="jobId" collection="jobIds" open="(" separator="," close=")">
#{jobId}
</foreach>
</update>
</mapper>