0aac1d36217d166661c904b046673708f5f12c35.svn-base 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. package cn.com.goldenwater.dcproj.service;
  2. import cn.com.goldenwater.core.service.CrudService;
  3. import org.springframework.web.multipart.MultipartFile;
  4. import javax.servlet.http.HttpServletResponse;
  5. import java.util.Map;
  6. /**
  7. * <p>
  8. * 批量填报Service
  9. * </p>
  10. *
  11. * @author liyz
  12. * @date 2019/8/14 11:43
  13. **/
  14. public interface ImpDcInfoService extends CrudService {
  15. // 自定义方法
  16. /**
  17. * 下载模板
  18. *
  19. * @param response HttpServletResponse
  20. * @param userId 用户ID
  21. * @param orgType 督查类型
  22. * @throws Exception 下载失败
  23. */
  24. void downloadTemplate(HttpServletResponse response, String userId, String orgType, String orgIds) throws Exception;
  25. /**
  26. * 解析模板
  27. *
  28. * @param filePath 存储路径
  29. * @return 解析后的数据
  30. */
  31. Map<String, Object> parseTemplate(String filePath, String userId, String orgType);
  32. /**
  33. * 数据入库
  34. *
  35. * @param cacheId 缓存ID
  36. * @param userId 用户ID
  37. * @param orgType 督查类型
  38. * @return 入库信息
  39. */
  40. String insertTemplateInfo(String cacheId, String userId, String orgType);
  41. }