097c1e4f356920033cb09e93f00d26ca17ded28f.svn-base 1.1 KB

1234567891011121314151617181920212223242526
  1. package com.chinacreator.videoalliance.order.dao;
  2. import java.sql.SQLException;
  3. import org.springframework.stereotype.Component;
  4. import com.chinacreator.common.dao.ExecutorDao;
  5. import com.chinacreator.videoalliance.common.util.DataSource;
  6. import com.chinacreator.videoalliance.order.bean.SchoolChannel;
  7. import com.chinacreator.videoalliance.order.bean.SchoolChannelSp;
  8. import com.chinacreator.videoalliance.order.bean.SchoolOrderLog;
  9. @Component
  10. public class SchoolOrderDao extends ExecutorDao{
  11. public SchoolChannel querySchoolChannel(String channelcode) throws SQLException{
  12. return this.executor.queryObjectWithDBName(SchoolChannel.class,DataSource.NET3G, "querySchoolChannel",channelcode);
  13. }
  14. public SchoolChannelSp querySchoolChannelSp(String channelcode,String productid) throws SQLException{
  15. return this.executor.queryObjectWithDBName(SchoolChannelSp.class,DataSource.NET3G, "querySchoolChannelSp",channelcode,productid);
  16. }
  17. public void addSchoolOrderLog(SchoolOrderLog orderlog) throws SQLException{
  18. this.executor.insertBean(DataSource.NET3G,"addSchoolOrderLog", orderlog);
  19. }
  20. }