6cd5bb87be2062fbbef34060b1850b95e2d10e26.svn-base 1.0 KB

12345678910111213141516171819202122232425262728
  1. package com.chinacreator.process.dao;
  2. import java.sql.SQLException;
  3. import java.util.List;
  4. import org.springframework.stereotype.Component;
  5. import com.chinacreator.process.util.DataSource;
  6. import com.frameworkset.common.poolman.SQLExecutor;
  7. @Component
  8. public class AsynDao {
  9. public List<String> getsyncOrderid() throws SQLException{
  10. String sql = "select distinct orderid from TD_ASYN_ACTIVITY where SYNCSTATUS=1 and ORDERSTATUS !=1 and VIPSTATUS!=1";
  11. return SQLExecutor.queryListWithDBName(String.class,DataSource.NET3G, sql,null);
  12. }
  13. public List<String> getOrderOrderid() throws SQLException{
  14. String sql = "select distinct orderid from TD_ASYN_ACTIVITY where ORDERSTATUS =1 and SYNCSTATUS=1";
  15. return SQLExecutor.queryListWithDBName(String.class,DataSource.NET3G, sql,null);
  16. }
  17. public List<String> getvipOrderid() throws SQLException{
  18. String sql = "select distinct orderid from TD_ASYN_ACTIVITY where VIPSTATUS=1 and SYNCSTATUS=1 and ORDERSTATUS !=1";
  19. return SQLExecutor.queryListWithDBName(String.class,DataSource.NET3G, sql,null);
  20. }
  21. }