SjRcssjDAOImpl.java 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. package com.huimv.sj.dao;
  2. import java.util.HashMap;
  3. import java.util.List;
  4. import java.util.Map;
  5. import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;
  6. import com.huimv.busi.xt.constant.XtSqlMapConstant;
  7. import com.huimv.sj.dataobject.SjRcssj;
  8. import com.huimv.sj.dataobject.SjRcssjExample;
  9. public class SjRcssjDAOImpl extends SqlMapClientDaoSupport implements SjRcssjDAO {
  10. /**
  11. * This method was generated by Apache iBATIS ibator.
  12. * This method corresponds to the database table sj_rcssj
  13. *
  14. * @ibatorgenerated Thu Jun 19 15:59:45 CST 2014
  15. */
  16. public SjRcssjDAOImpl() {
  17. super();
  18. }
  19. /**
  20. * This method was generated by Apache iBATIS ibator.
  21. * This method corresponds to the database table sj_rcssj
  22. *
  23. * @ibatorgenerated Thu Jun 19 15:59:45 CST 2014
  24. */
  25. public int countByExample(SjRcssjExample example) {
  26. Integer count = (Integer) getSqlMapClientTemplate().queryForObject("sj_rcssj.ibatorgenerated_countByExample", example);
  27. return count;
  28. }
  29. /**
  30. * This method was generated by Apache iBATIS ibator.
  31. * This method corresponds to the database table sj_rcssj
  32. *
  33. * @ibatorgenerated Thu Jun 19 15:59:45 CST 2014
  34. */
  35. public int deleteByExample(SjRcssjExample example) {
  36. int rows = getSqlMapClientTemplate().delete("sj_rcssj.ibatorgenerated_deleteByExample", example);
  37. return rows;
  38. }
  39. /**
  40. * This method was generated by Apache iBATIS ibator.
  41. * This method corresponds to the database table sj_rcssj
  42. *
  43. * @ibatorgenerated Thu Jun 19 15:59:45 CST 2014
  44. */
  45. public int deleteByPrimaryKey(Integer id) {
  46. SjRcssj key = new SjRcssj();
  47. key.setId(id);
  48. int rows = getSqlMapClientTemplate().delete("sj_rcssj.ibatorgenerated_deleteByPrimaryKey", key);
  49. return rows;
  50. }
  51. /**
  52. * This method was generated by Apache iBATIS ibator.
  53. * This method corresponds to the database table sj_rcssj
  54. *
  55. * @ibatorgenerated Thu Jun 19 15:59:45 CST 2014
  56. */
  57. public void insert(SjRcssj record) {
  58. getSqlMapClientTemplate().insert("sj_rcssj.ibatorgenerated_insert", record);
  59. }
  60. /**
  61. * This method was generated by Apache iBATIS ibator.
  62. * This method corresponds to the database table sj_rcssj
  63. *
  64. * @ibatorgenerated Thu Jun 19 15:59:45 CST 2014
  65. */
  66. public void insertSelective(SjRcssj record) {
  67. getSqlMapClientTemplate().insert("sj_rcssj.ibatorgenerated_insertSelective", record);
  68. }
  69. /**
  70. * This method was generated by Apache iBATIS ibator.
  71. * This method corresponds to the database table sj_rcssj
  72. *
  73. * @ibatorgenerated Thu Jun 19 15:59:45 CST 2014
  74. */
  75. @SuppressWarnings("unchecked")
  76. public List<SjRcssj> selectByExample(SjRcssjExample example) {
  77. List<SjRcssj> list = getSqlMapClientTemplate().queryForList("sj_rcssj.ibatorgenerated_selectByExample", example);
  78. return list;
  79. }
  80. /**
  81. * This method was generated by Apache iBATIS ibator.
  82. * This method corresponds to the database table sj_rcssj
  83. *
  84. * @ibatorgenerated Thu Jun 19 15:59:45 CST 2014
  85. */
  86. public SjRcssj selectByPrimaryKey(Integer id) {
  87. SjRcssj key = new SjRcssj();
  88. key.setId(id);
  89. SjRcssj record = (SjRcssj) getSqlMapClientTemplate().queryForObject("sj_rcssj.ibatorgenerated_selectByPrimaryKey", key);
  90. return record;
  91. }
  92. /**
  93. * This method was generated by Apache iBATIS ibator.
  94. * This method corresponds to the database table sj_rcssj
  95. *
  96. * @ibatorgenerated Thu Jun 19 15:59:45 CST 2014
  97. */
  98. public int updateByExampleSelective(SjRcssj record, SjRcssjExample example) {
  99. UpdateByExampleParms parms = new UpdateByExampleParms(record, example);
  100. int rows = getSqlMapClientTemplate().update("sj_rcssj.ibatorgenerated_updateByExampleSelective", parms);
  101. return rows;
  102. }
  103. /**
  104. * This method was generated by Apache iBATIS ibator.
  105. * This method corresponds to the database table sj_rcssj
  106. *
  107. * @ibatorgenerated Thu Jun 19 15:59:45 CST 2014
  108. */
  109. public int updateByExample(SjRcssj record, SjRcssjExample example) {
  110. UpdateByExampleParms parms = new UpdateByExampleParms(record, example);
  111. int rows = getSqlMapClientTemplate().update("sj_rcssj.ibatorgenerated_updateByExample", parms);
  112. return rows;
  113. }
  114. /**
  115. * This method was generated by Apache iBATIS ibator.
  116. * This method corresponds to the database table sj_rcssj
  117. *
  118. * @ibatorgenerated Thu Jun 19 15:59:45 CST 2014
  119. */
  120. public int updateByPrimaryKeySelective(SjRcssj record) {
  121. int rows = getSqlMapClientTemplate().update("sj_rcssj.ibatorgenerated_updateByPrimaryKeySelective", record);
  122. return rows;
  123. }
  124. /**
  125. * This method was generated by Apache iBATIS ibator.
  126. * This method corresponds to the database table sj_rcssj
  127. *
  128. * @ibatorgenerated Thu Jun 19 15:59:45 CST 2014
  129. */
  130. public int updateByPrimaryKey(SjRcssj record) {
  131. int rows = getSqlMapClientTemplate().update("sj_rcssj.ibatorgenerated_updateByPrimaryKey", record);
  132. return rows;
  133. }
  134. /**
  135. * This class was generated by Apache iBATIS ibator.
  136. * This class corresponds to the database table sj_rcssj
  137. *
  138. * @ibatorgenerated Thu Jun 19 15:59:45 CST 2014
  139. */
  140. private static class UpdateByExampleParms extends SjRcssjExample {
  141. private Object record;
  142. public UpdateByExampleParms(Object record, SjRcssjExample example) {
  143. super(example);
  144. this.record = record;
  145. }
  146. @SuppressWarnings("unused")
  147. public Object getRecord() {
  148. return record;
  149. }
  150. }
  151. @SuppressWarnings("unchecked")
  152. public List<SjRcssj> selectByParam(HashMap<String, Object> map) {
  153. List<SjRcssj> list = getSqlMapClientTemplate().queryForList("sj_rcssj.select_rcssj_by_param", map);
  154. return list;
  155. }
  156. @Override
  157. public int countSelectByParam(HashMap<String, Object> map) {
  158. int count = (int)getSqlMapClientTemplate().queryForObject("sj_rcssj.select_count_rcssj_by_param", map);
  159. return count;
  160. }
  161. public String sumRcssjByParam(Map<String, Object> map) {
  162. String sum = (String) getSqlMapClientTemplate().queryForObject("sj_rcssj.select_sum_rcssj_by_param", map);
  163. return sum;
  164. }
  165. }