HospitalConfigTask.java 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. package com.dashitech.migration.task.uc;
  2. import com.dashitech.migration.BaseTask;
  3. import com.dashitech.migration.core.DataMigrationter;
  4. import com.dashitech.migration.core.FieldMapper;
  5. import com.dashitech.migration.util.JdbcUtil;
  6. import org.apache.commons.logging.Log;
  7. import org.apache.commons.logging.LogFactory;
  8. import org.springframework.core.annotation.Order;
  9. import org.springframework.stereotype.Component;
  10. import org.springframework.transaction.annotation.Transactional;
  11. import java.util.HashMap;
  12. import java.util.List;
  13. import java.util.Map;
  14. /**
  15. * Created by CX on 2024/10/10.
  16. */
  17. @Component
  18. @Order(1)
  19. public class HospitalConfigTask extends BaseTask {
  20. public static Log log = LogFactory.getLog(HospitalConfigTask.class);
  21. @Override
  22. @Transactional(rollbackFor = Exception.class)
  23. public void start() {
  24. log.info(" *** HospitalConfigTask start开始 *** ");
  25. FieldMapper mapper = new FieldMapper();
  26. //clear释放内存
  27. mapper.clear();
  28. }
  29. @Override
  30. public FieldMapper loadCache() {
  31. log.info(" *** HospitalConfigTask loadCache开始 *** ");
  32. FieldMapper mapper = new FieldMapper();
  33. return mapper;
  34. }
  35. }