/*
 *      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.dataStatistics.dto.StatisticsDataDTO;
import org.security.trans.dataStatistics.dto.UnlocaleCheckDataDTO;
import org.security.trans.dataStatistics.vo.UnlocaleCheckDataVO;
import org.security.trans.securityCommandCenter.dto.SccCheckDTO;
import org.security.trans.securityCommandCenter.dto.SccCheckLinesDTO;
import org.security.trans.securityCommandCenter.entity.SccCheck;
import org.security.trans.securityCommandCenter.vo.SccCheckLinesVO;
import org.security.trans.securityCommandCenter.vo.SccCheckVO;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.core.metadata.IPage;

import java.text.ParseException;
import java.util.List;

/**
 * 安保指挥长中心-营业网点检查和自主银行检查记录 服务类
 *
 * @author BladeX
 * @since 2022-07-06
 */
public interface ISccCheckService extends FlowableService<SccCheck> {

	/**
	 * 自定义分页
	 *
	 * @param page
	 * @param sccCheckDTO
	 * @return
	 */
	IPage<SccCheckVO> selectSccCheckPage(IPage<SccCheckVO> page, SccCheckDTO sccCheckDTO);

	/**
	 * 获取营业网点检查日志或自助银行检查日志明细
	 * @param id 记录id
	 * @return
	 */
	SccCheckVO getData(String id);


	/**
	 * 安保指挥中心值班人员录入营业网点或自助银行的检查日志
	 * @param sccCheckDTO 检查日志
	 * @return
	 * @throws ParseException
	 */
	boolean saveCheckData(SccCheckDTO sccCheckDTO) throws ParseException;

	/**
	 * 删除检查日志记录
	 * @param toLongList 删除目标数据的id
	 * @return
	 */
	boolean removeData(List<Long> toLongList);

	/**
	 * 审批通过后回调该接口创建整改通知书
	 * @param id
	 * @return
	 */
	boolean createdCheackNotice(String id);

	/**
	 * 自定义分页 获取检查异常的日志记录
	 * @param page 分页参数
	 * @param sccCheckLinesDTO 查询条件
	 * @return
	 */
	IPage<SccCheckLinesVO> selectDetailPage(IPage<SccCheckLinesVO> page, SccCheckLinesDTO sccCheckLinesDTO);

	/**
	 *数据统计-获取统计数据
	 */
	List<UnlocaleCheckDataVO> getAimStatisticsData(UnlocaleCheckDataDTO unlocaleCheckDataDTO, List<String> aimDepts);
}
