清空所有域以后引用组的定时任务删除
This commit is contained in:
@@ -51,4 +51,5 @@ public interface CommonPolicyDao {
|
|||||||
List<ObjGroupCfg> getObjGroupList(@Param("ids")String ids);
|
List<ObjGroupCfg> getObjGroupList(@Param("ids")String ids);
|
||||||
|
|
||||||
List<ObjGroupCfg> getObjGroupPagedList(ObjGroupCfg entity);
|
List<ObjGroupCfg> getObjGroupPagedList(ObjGroupCfg entity);
|
||||||
|
void cancelScheduCfg(@Param("compileIds")String compileIds,@Param("tableName")String tableName);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1250,4 +1250,9 @@
|
|||||||
</otherwise>
|
</otherwise>
|
||||||
</choose>
|
</choose>
|
||||||
</select>
|
</select>
|
||||||
|
<delete id="cancelScheduCfg" >
|
||||||
|
delete from schedule_cfg
|
||||||
|
where table_name= #{tableName}
|
||||||
|
and compile_id in(${compileIds})
|
||||||
|
</delete>
|
||||||
</mapper>
|
</mapper>
|
||||||
@@ -3558,13 +3558,31 @@ public abstract class BaseService {
|
|||||||
}
|
}
|
||||||
//需要更新的cfg_index_info数据库更新
|
//需要更新的cfg_index_info数据库更新
|
||||||
if(toCancelCfgIndexInfos.size()>0){
|
if(toCancelCfgIndexInfos.size()>0){
|
||||||
|
StringBuffer ids=new StringBuffer();
|
||||||
for(CfgIndexInfo info:toCancelCfgIndexInfos){
|
for(CfgIndexInfo info:toCancelCfgIndexInfos){
|
||||||
commonPolicyDao.updateCfgIndexCommonGroupIds(info);
|
commonPolicyDao.updateCfgIndexCommonGroupIds(info);
|
||||||
|
if(StringUtils.isBlank(info.getCommonGroupIds())){
|
||||||
|
ids.append(info.getCompileId()+",");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//查询定时任务,失效定时任务
|
||||||
|
if(ids.toString().length()>0){
|
||||||
|
ids.deleteCharAt(ids.toString().length()-1);
|
||||||
|
commonPolicyDao.cancelScheduCfg(ids.toString(),CfgIndexInfo.getTablename());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(toUpdateCfgIndexInfos.size()>0){
|
if(toUpdateCfgIndexInfos.size()>0){
|
||||||
|
StringBuffer ids=new StringBuffer();
|
||||||
for(CfgIndexInfo info:toUpdateCfgIndexInfos){
|
for(CfgIndexInfo info:toUpdateCfgIndexInfos){
|
||||||
commonPolicyDao.updateCfgIndexCommonGroupIds(info);
|
commonPolicyDao.updateCfgIndexCommonGroupIds(info);
|
||||||
|
if(StringUtils.isBlank(info.getCommonGroupIds())){
|
||||||
|
ids.append(info.getCompileId()+",");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//查询定时任务,失效定时任务
|
||||||
|
if(ids.toString().length()>0){
|
||||||
|
ids.deleteCharAt(ids.toString().length()-1);
|
||||||
|
commonPolicyDao.cancelScheduCfg(ids.toString(),CfgIndexInfo.getTablename());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//向maat发送配置
|
//向maat发送配置
|
||||||
|
|||||||
Reference in New Issue
Block a user