2b4254f2897c28cb80b6e9b4c5aa02aaf72239de.svn-base 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. package cn.com.goldenwater.dcproj.service.impl.importex;
  2. import cn.com.goldenwater.core.service.AbstractCrudService;
  3. import cn.com.goldenwater.dcproj.dao.BisInspAllDao;
  4. import cn.com.goldenwater.dcproj.dao.ImportExcelDao;
  5. import cn.com.goldenwater.dcproj.model.BisInspAll;
  6. import cn.com.goldenwater.dcproj.param.BisInspAllParam;
  7. import cn.com.goldenwater.dcproj.service.BisInspAllService;
  8. import cn.com.goldenwater.dcproj.service.ImportExcelService;
  9. import org.apache.commons.lang.StringUtils;
  10. import org.springframework.beans.factory.annotation.Autowired;
  11. import org.springframework.stereotype.Service;
  12. import org.springframework.transaction.annotation.Transactional;
  13. import java.util.ArrayList;
  14. import java.util.HashMap;
  15. import java.util.List;
  16. import java.util.Map;
  17. /**
  18. * @author lune
  19. * @date 2019-2-23
  20. */
  21. @Service
  22. @Transactional
  23. public class ImportExcelServiceImpl extends AbstractCrudService<BisInspAll, BisInspAllParam> implements ImportExcelService {
  24. @Autowired
  25. private ImportExcelDao bisInspAllDao;
  26. public ImportExcelServiceImpl(ImportExcelDao bisInspAllDao) {
  27. super(bisInspAllDao);
  28. this.bisInspAllDao = bisInspAllDao;
  29. }
  30. @Override
  31. public List<Map<String, Object>> getUserByOrg(String orgType) {
  32. return bisInspAllDao.getUserByOrg(orgType);
  33. }
  34. @Override
  35. public List<Map<String, Object>> getNodeByPidAndCode(String pid, String code, String type) {
  36. List<Map<String, Object>> list = new ArrayList<>();
  37. if (StringUtils.isNotBlank(pid)) {
  38. list = bisInspAllDao.getNodeByPidAndCode(pid, code, type);
  39. }
  40. return list;
  41. }
  42. @Override
  43. public String selectMax(BisInspAllParam inspAllParam) {
  44. return bisInspAllDao.selectMax(inspAllParam);
  45. }
  46. @Override
  47. public BisInspAll getOne(BisInspAllParam inspAllParam) {
  48. return bisInspAllDao.getOne(inspAllParam);
  49. }
  50. @Override
  51. public int selectCount(BisInspAllParam inspAllParam) {
  52. return bisInspAllDao.selectCount(inspAllParam);
  53. }
  54. @Override
  55. public String ProcessData(String mnth) {
  56. Map<String, Object> param = new HashMap<>();
  57. param.put("inspMnth", mnth);
  58. List<Map<String, Object>> groups = bisInspAllDao.getOldGroupInfo(param);
  59. return null;
  60. }
  61. @Override
  62. public List<Map<String, Object>> getOldGroupInfo(Map<String, Object> map) {
  63. return bisInspAllDao.getOldGroupInfo(map);
  64. }
  65. }