PropelServiceImpl.java 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. package com.happy.service.impl;
  2. import com.alibaba.fastjson.JSONObject;
  3. import com.happy.Model.Build_elec;
  4. import com.happy.Model.Detail_elc;
  5. import com.happy.Model.ElecTotal;
  6. import com.happy.Model.WaterTj;
  7. import com.happy.dao.PropelDao;
  8. import com.happy.service.PropelService;
  9. import flexjson.JSON;
  10. import org.springframework.beans.factory.annotation.Autowired;
  11. import org.springframework.stereotype.Service;
  12. import java.util.List;
  13. @Service("PropelService")
  14. public class PropelServiceImpl implements PropelService {
  15. @Autowired
  16. public PropelDao propelDao;
  17. public List<JSONObject> query(){
  18. return propelDao.query();
  19. }
  20. public List<Build_elec> queryEt(){
  21. return propelDao.queryEt();
  22. }
  23. public int updateUseSize(String pointid, double use_size){
  24. return propelDao.updateUseSize(pointid, use_size);
  25. }
  26. public List<JSONObject> queryElecT(){
  27. return propelDao.queryElecT();
  28. }
  29. public List<WaterTj> queryWaterTj(){
  30. return propelDao.queryWaterTj();
  31. }
  32. public int updateWaterUseSize(String pointid, double use_size){
  33. return propelDao.updateWaterUseSize(pointid, use_size);
  34. }
  35. public List<JSONObject> queryWaterT(){
  36. return propelDao.queryWaterT();
  37. }
  38. public List<Detail_elc> findAll(String sqlx){
  39. return propelDao.findAll(sqlx);
  40. };
  41. public int total(String sqlx){
  42. return propelDao.total(sqlx);
  43. };
  44. }