IP Spoofing增加定时任务ipPool状态变更BUG更改;

IP Spoofing取消状态的配置修改,ippool状态更改
This commit is contained in:
duandongmei
2019-04-26 16:55:41 +08:00
committed by 段冬梅
parent 9ade865187
commit ab8c4448ce
4 changed files with 17 additions and 18 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);
int updateState(@Param("tableName")String tableName,@Param("compileId")String compileId,@Param("isValid")Integer isValid);
List<PxyObjSpoofingIpPool> findByPage(@Param("ids")String ids);
}

View File

@@ -309,14 +309,12 @@
</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 ${tableName} SET
is_valid = #{isValid,jdbcType=INTEGER},
audit_time = now()
<where>
AND cfg_id =#{compileId}
</where>
</update>
</mapper>