| | |
| | | import com.ruoyi.device.dto.DeviceExaminePlanDetailsDto; |
| | | import com.ruoyi.device.dto.DeviceExaminePlanDto; |
| | | import com.ruoyi.device.pojo.Device; |
| | | import com.ruoyi.device.pojo.DeviceExamineAttachment; |
| | | import com.ruoyi.device.pojo.DeviceExaminePlan; |
| | | import com.ruoyi.device.pojo.DeviceExaminePlanDetails; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | DeviceExaminePlanDetails resolveExaminePlanDetail(Integer deviceId, String checkTime); |
| | | |
| | | /** |
| | | * 查找指定设备可复用的核查记录计划明细(只查询,不新增计划或明细) |
| | | * @param deviceId 设备id |
| | | * @param checkTime 核查月份(yyyy-MM) |
| | | * @return 可复用的计划明细,没有时返回 null |
| | | */ |
| | | DeviceExaminePlanDetails findExaminePlanDetail(Integer deviceId, String checkTime); |
| | | |
| | | /** |
| | | * 修改计划明细(核查月份跨年时归到对应年份的计划) |
| | | * @param detail 计划明细 |
| | | * @return 是否修改成功 |
| | |
| | | * @return 是否删除成功 |
| | | */ |
| | | boolean removeExaminePlanDetail(Integer planDetailsId); |
| | | |
| | | /** |
| | | * 查询核查记录的附件列表 |
| | | * @param planDetailsId 计划明细id |
| | | * @return 附件列表 |
| | | */ |
| | | List<DeviceExamineAttachment> selectAttachments(Integer planDetailsId); |
| | | |
| | | /** |
| | | * 上传核查记录的附件(支持任意格式,可多个) |
| | | * @param planDetailsId 计划明细id |
| | | * @param file 文件 |
| | | * @return 附件信息 |
| | | */ |
| | | DeviceExamineAttachment uploadAttachment(Integer planDetailsId, MultipartFile file); |
| | | |
| | | /** |
| | | * 删除核查记录的附件 |
| | | * @param id 附件id |
| | | * @return 是否删除成功 |
| | | */ |
| | | boolean deleteAttachment(Long id); |
| | | } |