定时任务任务表增加type:1-正常任务;2-全量同步执行时未执行的任务。
增加全量同步时未执行任务的扫描
全量同步时,业务无数据也需要下发{}至服务端。
This commit is contained in:
@@ -20,7 +20,7 @@ public interface SchedulerDao extends CrudDao<ScheduleCfg> {
|
||||
* @param size
|
||||
* @return
|
||||
*/
|
||||
List<ScheduleCfg> findNewlyCfg(@Param("id")Long id,@Param("limit")Long limit);
|
||||
List<ScheduleCfg> findNewlyCfg(@Param("id")Long id,@Param("limit")Long limit,@Param("type")int type);
|
||||
|
||||
/**
|
||||
* 更新 del_flag 字段为删除标识
|
||||
|
||||
@@ -135,6 +135,7 @@
|
||||
a.CFG_ID,
|
||||
a.IS_VALID,
|
||||
a.IS_AUDIT,
|
||||
a.function_id,
|
||||
a.CREATOR_ID,
|
||||
a.CREATE_TIME,
|
||||
a.EDITOR_ID,
|
||||
@@ -149,6 +150,7 @@
|
||||
<where>
|
||||
del_Flag = 1
|
||||
and id > #{id}
|
||||
and type=#{type}
|
||||
</where>
|
||||
order by a.id
|
||||
limit #{limit}
|
||||
@@ -176,7 +178,8 @@
|
||||
user_region2,
|
||||
user_region3,
|
||||
user_region4,
|
||||
user_region5
|
||||
user_region5,
|
||||
type
|
||||
) values (
|
||||
#{name,jdbcType=VARCHAR},
|
||||
#{cronValid,jdbcType=VARCHAR},
|
||||
@@ -196,7 +199,8 @@
|
||||
#{userRegion2,jdbcType=VARCHAR},
|
||||
#{userRegion3,jdbcType=VARCHAR},
|
||||
#{userRegion4,jdbcType=VARCHAR},
|
||||
#{userRegion5,jdbcType=VARCHAR}
|
||||
#{userRegion5,jdbcType=VARCHAR},
|
||||
#{type,jdbcType=INTEGER}
|
||||
)
|
||||
</insert>
|
||||
|
||||
@@ -236,7 +240,19 @@
|
||||
|
||||
<!-- 修改配置表状态 -->
|
||||
<update id="updateCfgTableStatus">
|
||||
update ${tableName} set is_valid = #{isValid} ,is_audit = 1 where compile_id = #{compileId}
|
||||
update ${tableName}
|
||||
<set>
|
||||
is_valid = #{isValid} ,
|
||||
is_audit = 1,
|
||||
<!-- <if test="isValid == 0 ">
|
||||
is_audit = 3,
|
||||
</if>
|
||||
<if test="isValid == 1 ">
|
||||
is_audit = 1,
|
||||
</if> -->
|
||||
audit_time=now(),
|
||||
</set>
|
||||
where compile_id = #{compileId}
|
||||
</update>
|
||||
|
||||
<!-- 查询最新的配置状态 -->
|
||||
|
||||
Reference in New Issue
Block a user