/*
 *      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.dailyDuties.service;

import org.security.trans.common.service.FlowableService;
import org.security.trans.dailyDuties.dto.InspectionLineDTO;
import org.security.trans.dailyDuties.entity.InspectionLine;
import org.security.trans.dailyDuties.vo.InspectionLineVO;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springframework.web.multipart.MultipartFile;

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

/**
 * 任务-监督检查明细 服务类
 *
 * @author BladeX
 * @since 2022-03-25
 */
public interface IInspectionLineService extends FlowableService<InspectionLine> {

	/**
	 * 自定义分页
	 *
	 * @param page
	 * @param inspectionLineDTO
	 * @return
	 */
	IPage<InspectionLineVO> selectInspectionLinePage(IPage<InspectionLineVO> page, InspectionLineDTO inspectionLineDTO);

	/**
	 * 问题整改
	 * @param inspectionLineDTO 检查明细数据
	 * @return
	 * @throws ParseException
	 */
	Boolean handinRectify(InspectionLineDTO inspectionLineDTO) throws ParseException;

	/**
	 * 删除信息
	 * @param toLongList 主表关联id
	 * @return
	 */
    boolean removeData(List<Long> toLongList);

	/**
	 *  导入检查明细
	 * @param id 主表记录id
	 * @param file 文件内容
	 * @return
	 */
    boolean saveData(String id, MultipartFile file);
	/**
	 * 查询检查明细行详情
	 * @param id
	 * @return
	 */
	InspectionLineVO getDetail(String id);
	/**
	 * 更新检查明细行详情
	 * @param inspectionLineDTO
	 * @return
	 */
	boolean saveInspectionLine(InspectionLineDTO inspectionLineDTO);

	/**
	 * 数据统计获取子级机构id
	 * @param aimDeptId
	 * @return
	 */
	List<String> getChildrenDeptId(String aimDeptId);
}
