VmsManageDao.java 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. package com.its.bis.dao.mapper.batch;
  2. import com.its.bis.dao.mapper.BatchDaoService;
  3. import lombok.extern.slf4j.Slf4j;
  4. import org.apache.ibatis.session.SqlSessionFactory;
  5. import org.springframework.stereotype.Repository;
  6. @Slf4j
  7. @Repository
  8. public class VmsManageDao extends BatchDaoService {
  9. public VmsManageDao(SqlSessionFactory sqlSessionFactory) {
  10. super(sqlSessionFactory);
  11. this.serviceName = "VmsManageDao";//this.getClass().getName();
  12. }
  13. //
  14. // public List<HashMap<String, Object>> getVmsDsplList(List<TbVmsDsplPrst> req) {
  15. // List<HashMap<String, Object>> lists = new ArrayList<>();
  16. // req.forEach(obj -> {
  17. // HashMap<String, Object> param = new HashMap<>();
  18. //
  19. // param.put("vmsCtlrNmbr", obj.getVmsCtlrNmbr());
  20. // param.put("phase", obj.getPhase());
  21. // param.put("dsplDt", obj.getDsplDt());
  22. // param.put("vmsSchType", obj.getVmsSchType());
  23. // param.put("vmsSchFormType", obj.getVmsSchFormType());
  24. // param.put("vmsFormId", obj.getVmsFormId());
  25. // param.put("dsplHh", obj.getDsplHh());
  26. // param.put("vmsDsplMsgData", obj.getVmsDsplMsgData());
  27. // param.put("vmsDsplMsgImag", obj.getVmsDsplMsgImag());
  28. // param.put("vmsDsplMsgTxt", obj.getVmsDsplMsgTxt());
  29. // param.put("vmsFormDsplDrctCd", obj.getVmsFormDsplDrctCd());
  30. // param.put("vmsFormDsplMthdCd", obj.getVmsFormDsplMthdCd());
  31. // param.put("dnldYn", obj.getDnldYn());
  32. //
  33. // lists.add(param);
  34. // });
  35. // return lists;
  36. // }
  37. //
  38. // public int updateVmsDsplPrst(List<TbVmsDsplPrst> req) {
  39. // String mapperFunc = "batchUpdateVmsDsplPrst";
  40. // log.info("{}.{}: START. {} EA.", this.serviceName, mapperFunc, req.size());
  41. // Elapsed elapsed = new Elapsed();
  42. // int total = updateBatch(mapperFunc, getVmsDsplList(req));
  43. // log.info("{}.{}: ..END. {} EA. {} ms.", this.serviceName, mapperFunc, total, elapsed.milliSeconds());
  44. // return total;
  45. // }
  46. //
  47. // public int insertVmsDsplPrst(List<TbVmsDsplPrst> req) {
  48. // String mapperFunc = "batchInsertVmsDsplPrst";
  49. // log.info("{}.{}: START. {} EA.", this.serviceName, mapperFunc, req.size());
  50. // Elapsed elapsed = new Elapsed();
  51. // int total = insertBatch("batchInsertVmsDsplPrst", getVmsDsplList(req));
  52. // log.info("{}.{}: ..END. {} EA. {} ms.", this.serviceName, mapperFunc, total, elapsed.milliSeconds());
  53. // return total;
  54. // }
  55. }