16ddbf942e5ca74e190b2975c821ffcaeac8d549.svn-base 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. package com.chinacreator.process.service;
  2. import com.chinacreator.process.dao.QueryPrmDataDao;
  3. import org.springframework.beans.factory.annotation.Autowired;
  4. import org.springframework.stereotype.Service;
  5. import org.springframework.transaction.annotation.Transactional;
  6. import java.sql.SQLException;
  7. import java.util.List;
  8. @Service
  9. @Transactional
  10. public class QueryPrmDataService {
  11. @Autowired
  12. private QueryPrmDataDao queryPrmDataDao;
  13. public Integer getDayNub(String spid) throws SQLException {
  14. return queryPrmDataDao.getDayNub(spid);
  15. }
  16. public void insertPrm(Integer nub, String time, String type, String status,String spid) throws SQLException {
  17. queryPrmDataDao.insertPrm(nub, time, type, status,spid);
  18. }
  19. public Integer geMonthNub(String spid) throws SQLException {
  20. return queryPrmDataDao.getMonthNub(spid);
  21. }
  22. public Integer geTotal(String spid) throws SQLException {
  23. return queryPrmDataDao.geTotal(spid);
  24. }
  25. public Integer getDayCancel(String spid) throws SQLException {
  26. return queryPrmDataDao.getDayCancel(spid);
  27. }
  28. public Integer getLastMonthNub(String spid) throws SQLException {
  29. return queryPrmDataDao.getLastMonthNub(spid);
  30. }
  31. public Integer getLastMonthCancel(String spid) throws SQLException {
  32. return queryPrmDataDao.getLastMonthCancel(spid);
  33. }
  34. public String getParName() throws SQLException {
  35. return queryPrmDataDao.getParName();
  36. }
  37. public Integer getOrderNubDay(String prmSpid, String parName) throws SQLException {
  38. return queryPrmDataDao.getOrderNubDay(prmSpid,parName);
  39. }
  40. public Integer getorderNubMonth(String prmSpid, String parName) throws SQLException {
  41. return queryPrmDataDao.getorderNubMonth(prmSpid,parName);
  42. }
  43. public List<String> getParNameList() throws SQLException {
  44. return queryPrmDataDao.getParNameList();
  45. }
  46. public Integer getOrderTotal(String spid, String parName) throws SQLException {
  47. return queryPrmDataDao.getOrderTotal(spid,parName);
  48. }
  49. public void insertOrderPrm(Integer nub, String time, String type, String status,String spid) throws SQLException {
  50. queryPrmDataDao.insertOrderPrm(nub,time,type,status,spid);
  51. }
  52. public Integer getmonthMoney(String spid) throws SQLException {
  53. return queryPrmDataDao.getmonthMoney(spid);
  54. }
  55. }