73bc68bc35204bfa7ec0ee27babd9dacaac51f86.svn-base 924 B

123456789101112131415161718192021222324252627282930
  1. package com.chinacreator.process.dao;
  2. import com.chinacreator.common.support.cache.annotation.CacheName;
  3. import com.chinacreator.process.util.DataSource;
  4. import com.frameworkset.common.poolman.SQLExecutor;
  5. import org.springframework.cache.annotation.Cacheable;
  6. import org.springframework.stereotype.Component;
  7. import java.sql.SQLException;
  8. import java.util.HashMap;
  9. import java.util.List;
  10. import java.util.Map;
  11. /**
  12. * 虚拟配置
  13. *
  14. */
  15. @Component
  16. @CacheName("virtual")
  17. public class VirtualDao {
  18. @Cacheable(value="virtual",key = "#spid")
  19. public List<HashMap> getConfList(String spid) throws SQLException {
  20. System.out.println("查询数据库短信配置信息");
  21. String sql = "SELECT CONTENTID , SPID FROM TD_CONTENT_SPID_MAPPING WHERE STATUS ='0' AND SPID = ? ORDER BY TO_NUMBER(SEQ) ";
  22. return SQLExecutor.queryListWithDBName(HashMap.class,DataSource.NET3G, sql,spid);
  23. }
  24. }