2021-11-04 10:52:21 +08:00
|
|
|
|
package cn.com.tenlion.service.warning;
|
|
|
|
|
|
2021-11-10 17:31:22 +08:00
|
|
|
|
import cn.com.tenlion.pojo.dtos.warning.WarningReportDTO;
|
2021-11-04 10:52:21 +08:00
|
|
|
|
import ink.wgink.pojo.ListPage;
|
|
|
|
|
import ink.wgink.pojo.result.SuccessResultList;
|
|
|
|
|
import cn.com.tenlion.pojo.dtos.warning.WarningDTO;
|
|
|
|
|
import cn.com.tenlion.pojo.vos.warning.WarningVO;
|
|
|
|
|
import cn.com.tenlion.pojo.bos.warning.WarningBO;
|
|
|
|
|
import cn.com.tenlion.pojo.pos.warning.WarningPO;
|
|
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @ClassName: IWarningService
|
|
|
|
|
* @Description: 案件预警
|
|
|
|
|
* @Author: CodeFactory
|
|
|
|
|
* @Date: 2021-11-01 10:00:58
|
|
|
|
|
* @Version: 3.0
|
|
|
|
|
**/
|
|
|
|
|
public interface IWarningService {
|
|
|
|
|
|
2021-11-30 15:15:21 +08:00
|
|
|
|
void saveSystem(WarningVO warningVO);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 根据区域统计
|
|
|
|
|
* @param areaCode
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
Integer countByAreaCode(String areaCode);
|
|
|
|
|
|
|
|
|
|
SuccessResultList<List<WarningDTO>> listPageArea(ListPage page,String areaCode);
|
|
|
|
|
|
|
|
|
|
|
2021-12-03 10:08:47 +08:00
|
|
|
|
/**
|
|
|
|
|
* 根据事件ID更新
|
|
|
|
|
* @param reportId
|
|
|
|
|
*/
|
|
|
|
|
void updateByReportId(String reportId);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-11-30 15:15:21 +08:00
|
|
|
|
/**
|
|
|
|
|
* 根据任务ID更新
|
|
|
|
|
* @param taksId
|
|
|
|
|
*/
|
|
|
|
|
void updateByTaskId(String taksId);
|
2021-11-10 17:31:22 +08:00
|
|
|
|
|
2021-11-04 10:52:21 +08:00
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 统计案件预警次数
|
|
|
|
|
* @param reportId
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
Integer countByReportId(String reportId);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 新增案件预警
|
|
|
|
|
*
|
|
|
|
|
* @param warningVO
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
void save(WarningVO warningVO);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 新增案件预警
|
|
|
|
|
*
|
|
|
|
|
* @param token
|
|
|
|
|
* @param warningVO
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
void save(String token, WarningVO warningVO);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 新增案件预警
|
|
|
|
|
*
|
|
|
|
|
* @param warningVO
|
|
|
|
|
* @return warningId
|
|
|
|
|
*/
|
|
|
|
|
String saveReturnId(WarningVO warningVO);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 新增案件预警
|
|
|
|
|
*
|
|
|
|
|
* @param token
|
|
|
|
|
* @param warningVO
|
|
|
|
|
* @return warningId
|
|
|
|
|
*/
|
|
|
|
|
String saveReturnId(String token, WarningVO warningVO);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 删除案件预警
|
|
|
|
|
*
|
|
|
|
|
* @param ids id列表
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
void remove(List<String> ids);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 删除案件预警
|
|
|
|
|
*
|
|
|
|
|
* @param token
|
|
|
|
|
* @param ids id列表
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
void remove(String token, List<String> ids);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 删除案件预警(物理删除)
|
|
|
|
|
*
|
|
|
|
|
* @param ids id列表
|
|
|
|
|
*/
|
|
|
|
|
void delete(List<String> ids);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 修改案件预警
|
|
|
|
|
*
|
|
|
|
|
* @param warningId
|
|
|
|
|
* @param warningVO
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
void update(String warningId, WarningVO warningVO);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 修改案件预警
|
|
|
|
|
*
|
|
|
|
|
* @param token
|
|
|
|
|
* @param warningId
|
|
|
|
|
* @param warningVO
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
void update(String token, String warningId, WarningVO warningVO);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 案件预警详情
|
|
|
|
|
*
|
|
|
|
|
* @param params 参数Map
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
WarningDTO get(Map<String, Object> params);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 案件预警详情
|
|
|
|
|
*
|
|
|
|
|
* @param warningId
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
WarningDTO get(String warningId);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 案件预警详情
|
|
|
|
|
*
|
|
|
|
|
* @param params 参数Map
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
WarningBO getBO(Map<String, Object> params);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 案件预警详情
|
|
|
|
|
*
|
|
|
|
|
* @param warningId
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
WarningBO getBO(String warningId);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 案件预警详情
|
|
|
|
|
*
|
|
|
|
|
* @param params 参数Map
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
WarningPO getPO(Map<String, Object> params);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 案件预警详情
|
|
|
|
|
*
|
|
|
|
|
* @param warningId
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
WarningPO getPO(String warningId);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 案件预警列表
|
|
|
|
|
*
|
|
|
|
|
* @param params
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
List<WarningDTO> list(Map<String, Object> params);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 案件预警列表
|
|
|
|
|
*
|
|
|
|
|
* @param params
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
List<WarningBO> listBO(Map<String, Object> params);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 案件预警列表
|
|
|
|
|
*
|
|
|
|
|
* @param params
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
List<WarningPO> listPO(Map<String, Object> params);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 案件预警分页列表
|
|
|
|
|
*
|
|
|
|
|
* @param page
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
SuccessResultList<List<WarningDTO>> listPage(ListPage page);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 案件预警统计
|
|
|
|
|
*
|
|
|
|
|
* @param params
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
Integer count(Map<String, Object> params);
|
|
|
|
|
|
2021-12-07 10:38:13 +08:00
|
|
|
|
/**
|
|
|
|
|
* 单位预警案件(分页列表)
|
|
|
|
|
* @param page
|
|
|
|
|
* @param departmentIdList
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
SuccessResultList<List<WarningDTO>> listPageDept(ListPage page, List<String> departmentIdList);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 单位预警案件(分页列表)
|
|
|
|
|
* @param departmentIdList
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
Integer countDept(List<String> departmentIdList);
|
|
|
|
|
|
2021-11-04 10:52:21 +08:00
|
|
|
|
}
|