修复 IP Spoofing定时任务配置相关表数据状态不同步

This commit is contained in:
wangwei
2019-04-25 10:26:44 +08:00
parent 0499fb845d
commit 6223c66618
3 changed files with 25 additions and 3 deletions

View File

@@ -18,6 +18,6 @@ public interface PxyObjSpoofingIpPoolDao extends CrudDao<PxyObjSpoofingIpPool>{
PxyObjSpoofingIpPool getPxyObjSpoofingIpPool(Long cfgId);
int insert(PxyObjSpoofingIpPool spoofingPool);
int update(PxyObjSpoofingIpPool spoofingPool);
int updateState(@Param("tableName")String tableName,@Param("compileId")int compileId,@Param("isValid")Integer isValid,@Param("editorId")Long editorId);
List<PxyObjSpoofingIpPool> findByPage(@Param("ids")String ids);
}

View File

@@ -307,6 +307,16 @@
left join request_info ri on r.request_id=ri.id
where r.CFG_ID in (${ids})
</select>
<update id="updateState">
update ${tableName}
<set>
is_valid = #{isValid} ,
is_audit = 1,
editor_id = #{editorId},
edit_time=now(),
</set>
where compile_id = #{compileId}
</update>
</mapper>