/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.security.trans.securityCommandCenter.service;

import org.security.trans.common.service.FlowableService;
import org.security.trans.securityCommandCenter.dto.SccAlarmPushDTO;
import org.security.trans.securityCommandCenter.entity.SccAlarmPush;
import org.security.trans.securityCommandCenter.entity.SccAnswerAlarm;
import org.security.trans.securityCommandCenter.vo.SccAlarmPushVO;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.core.metadata.IPage;

import java.util.List;

/**
 * 警情推送 服务类
 *
 * @author BladeX
 * @since 2022-07-13
 */
public interface ISccAlarmPushService extends FlowableService<SccAlarmPush> {

	/**
	 * 自定义分页
	 *
	 * @param page
	 * @param sccAlarmPushDTO
	 * @return
	 */
	IPage<SccAlarmPushVO> selectSccAlarmPushPage(IPage<SccAlarmPushVO> page, SccAlarmPushDTO sccAlarmPushDTO);

	/**
	 * 获取警情推送详情
	 * @param id
	 * @return
	 */
	SccAlarmPushVO getData(String id);

	/**
	 * 警情推送信息入库
	 * @param sccAlarmPushDTO 警情信息
	 * @return
	 */
	boolean saveData(SccAlarmPushDTO sccAlarmPushDTO);

	/**
	 * 联系接警记录为接警记录-发起警情推送
	 * @param sccAnswerAlarm
	 * @return
	 */
	boolean senAlarmNotice(SccAnswerAlarm sccAnswerAlarm);

	/**
	 * 移除警情推送记录信息
	 * @param toStrList
	 * @return
	 */
	boolean removeData(List<String> toStrList);

	/**
	 * 警情推送提报暂存
	 * @param sccAlarmPushDTO
	 * @return
	 */
	boolean updateData(SccAlarmPushDTO sccAlarmPushDTO);

	/**
	 *定时任务获取未提报状态的警情信息
	 */
	List<SccAlarmPush> getListData(String status);
}
