package com.ycl.platform.service;
|
|
import com.baomidou.mybatisplus.extension.service.IService;
|
import com.ycl.platform.domain.entity.YwPoint;
|
import com.ycl.platform.domain.form.BatchEditPointForm;
|
import com.ycl.platform.domain.form.YwPointForm;
|
import com.ycl.platform.domain.query.YwPointQuery;
|
import com.ycl.system.Result;
|
|
import java.util.List;
|
|
/**
|
* 运维点位 服务类
|
*
|
* @author xp
|
* @since 2024-03-05
|
*/
|
public interface YwPointService extends IService<YwPoint> {
|
|
/**
|
* 添加
|
* @param form
|
* @return
|
*/
|
Result add(YwPointForm form);
|
|
/**
|
* 修改
|
* @param form
|
* @return
|
*/
|
Result update(YwPointForm form);
|
|
/**
|
* 批量删除
|
* @param ids
|
* @return
|
*/
|
Result remove(List<String> ids);
|
|
/**
|
* id删除
|
* @param id
|
* @return
|
*/
|
Result removeById(String id);
|
|
/**
|
* 分页查询
|
* @param query
|
* @return
|
*/
|
Result page(YwPointQuery query);
|
|
/**
|
* 根据id查找
|
* @param id
|
* @return
|
*/
|
Result detail(String id);
|
|
/**
|
* 列表
|
* @return
|
*/
|
Result all();
|
|
/**
|
* 批量添加
|
* @param form
|
* @return
|
*/
|
Result batchAdd(List<YwPointForm> form);
|
|
/**
|
* 批量修改运维单位
|
* @param form
|
* @return
|
*/
|
Result batchEdit(BatchEditPointForm form);
|
|
/**
|
* 点位下拉
|
*
|
* @param keyword
|
* @return
|
*/
|
Result select(String keyword);
|
|
/**
|
* 批量同步状态
|
*
|
* @param pointIds 点位id
|
* @param recovery 状态
|
* @return 数量
|
*/
|
boolean updateRecovery(List<Integer> pointIds, int recovery);
|
|
/**
|
* 首页到期预警
|
* @return 数据
|
*/
|
List<YwPoint> home();
|
}
|