| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- package cn.com.goldenwater.dcproj.service;
- import cn.com.goldenwater.core.service.CrudService;
- import org.springframework.web.multipart.MultipartFile;
- import javax.servlet.http.HttpServletResponse;
- import java.util.Map;
- /**
- * <p>
- * 水库问题批量导入Service接口
- * </p>
- *
- * @author liyz
- * @date 2019/7/10 16:00
- **/
- public interface ImpPblmService extends CrudService {
- // 自定义方法
- /**
- * 下载水库问题模板
- *
- * @param response HttpServletResponse
- * @param userId 用户ID
- * @param orgType 督查类型
- * @param datas JSON数据
- * @throws Exception 下载失败
- */
- void downloadTemplate(HttpServletResponse response, String userId, String orgType, String orgIds,String datas,String orgId) throws Exception;
- /**
- * 上传文件,水库问题的模板或者水库问题的多媒体文件
- *
- * @param file 文件流
- * @return 存储路径
- */
- String uploadFile(MultipartFile[] file);
- /**
- * 解析模板
- *
- * @param filePath 存储路径
- * @return 解析后的数据
- */
- Map<String, Object> parseTemplate(String filePath,String userId,String orgType);
- /**
- * 数据入库
- *
- * @param cacheId 缓存ID
- * @param userId 用户ID
- * @param updateState 1普通新增 0覆盖新增(先删后增)
- * @param orgType 督查类型
- * @return 入库状态
- */
- boolean insertTemplate(String cacheId, String userId, String updateState, String orgType);
- String insertTemplateInfo(String cacheId, String userId, String updateState, String orgType);
- }
|