XxXxtsDAOImpl.java 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  1. package com.huimv.xx.dao;
  2. import java.util.List;
  3. import java.util.Map;
  4. import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;
  5. import com.huimv.busi.xt.constant.XtSqlMapConstant;
  6. import com.huimv.xt.dataobject.XtWxh;
  7. import com.huimv.xx.dataobject.XxXxts;
  8. import com.huimv.xx.dataobject.XxXxtsExample;
  9. public class XxXxtsDAOImpl extends SqlMapClientDaoSupport implements XxXxtsDAO {
  10. /**
  11. * This method was generated by Apache iBATIS ibator.
  12. * This method corresponds to the database table xx_xxts
  13. *
  14. * @ibatorgenerated Mon Apr 13 16:30:49 CST 2015
  15. */
  16. public XxXxtsDAOImpl() {
  17. super();
  18. }
  19. /**
  20. * This method was generated by Apache iBATIS ibator.
  21. * This method corresponds to the database table xx_xxts
  22. *
  23. * @ibatorgenerated Mon Apr 13 16:30:49 CST 2015
  24. */
  25. public int countByExample(XxXxtsExample example) {
  26. Integer count = (Integer) getSqlMapClientTemplate().queryForObject("xx_xxts.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 xx_xxts
  32. *
  33. * @ibatorgenerated Mon Apr 13 16:30:49 CST 2015
  34. */
  35. public int deleteByExample(XxXxtsExample example) {
  36. int rows = getSqlMapClientTemplate().delete("xx_xxts.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 xx_xxts
  42. *
  43. * @ibatorgenerated Mon Apr 13 16:30:49 CST 2015
  44. */
  45. public int deleteByPrimaryKey(Integer id) {
  46. XxXxts key = new XxXxts();
  47. key.setId(id);
  48. int rows = getSqlMapClientTemplate().delete("xx_xxts.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 xx_xxts
  54. *
  55. * @ibatorgenerated Mon Apr 13 16:30:49 CST 2015
  56. */
  57. public void insert(XxXxts record) {
  58. getSqlMapClientTemplate().insert("xx_xxts.ibatorgenerated_insert", record);
  59. }
  60. /**
  61. * This method was generated by Apache iBATIS ibator.
  62. * This method corresponds to the database table xx_xxts
  63. *
  64. * @ibatorgenerated Mon Apr 13 16:30:49 CST 2015
  65. */
  66. public void insertSelective(XxXxts record) {
  67. getSqlMapClientTemplate().insert("xx_xxts.ibatorgenerated_insertSelective", record);
  68. }
  69. /**
  70. * This method was generated by Apache iBATIS ibator.
  71. * This method corresponds to the database table xx_xxts
  72. *
  73. * @ibatorgenerated Mon Apr 13 16:30:49 CST 2015
  74. */
  75. @SuppressWarnings("unchecked")
  76. public List<XxXxts> selectByExample(XxXxtsExample example) {
  77. List<XxXxts> list = getSqlMapClientTemplate().queryForList("xx_xxts.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 xx_xxts
  83. *
  84. * @ibatorgenerated Mon Apr 13 16:30:49 CST 2015
  85. */
  86. public XxXxts selectByPrimaryKey(Integer id) {
  87. XxXxts key = new XxXxts();
  88. key.setId(id);
  89. XxXxts record = (XxXxts) getSqlMapClientTemplate().queryForObject("xx_xxts.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 xx_xxts
  95. *
  96. * @ibatorgenerated Mon Apr 13 16:30:49 CST 2015
  97. */
  98. public int updateByExampleSelective(XxXxts record, XxXxtsExample example) {
  99. UpdateByExampleParms parms = new UpdateByExampleParms(record, example);
  100. int rows = getSqlMapClientTemplate().update("xx_xxts.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 xx_xxts
  106. *
  107. * @ibatorgenerated Mon Apr 13 16:30:49 CST 2015
  108. */
  109. public int updateByExample(XxXxts record, XxXxtsExample example) {
  110. UpdateByExampleParms parms = new UpdateByExampleParms(record, example);
  111. int rows = getSqlMapClientTemplate().update("xx_xxts.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 xx_xxts
  117. *
  118. * @ibatorgenerated Mon Apr 13 16:30:49 CST 2015
  119. */
  120. public int updateByPrimaryKeySelective(XxXxts record) {
  121. int rows = getSqlMapClientTemplate().update("xx_xxts.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 xx_xxts
  127. *
  128. * @ibatorgenerated Mon Apr 13 16:30:49 CST 2015
  129. */
  130. public int updateByPrimaryKey(XxXxts record) {
  131. int rows = getSqlMapClientTemplate().update("xx_xxts.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 xx_xxts
  137. *
  138. * @ibatorgenerated Mon Apr 13 16:30:49 CST 2015
  139. */
  140. private static class UpdateByExampleParms extends XxXxtsExample {
  141. private Object record;
  142. public UpdateByExampleParms(Object record, XxXxtsExample example) {
  143. super(example);
  144. this.record = record;
  145. }
  146. public Object getRecord() {
  147. return record;
  148. }
  149. }
  150. @SuppressWarnings("unchecked")
  151. public List<XtWxh> selectWxhByParam(Map<String, Object> paramMap) {
  152. List<XtWxh> list = getSqlMapClientTemplate().queryForList(XtSqlMapConstant.SQLMAP_SELECT_WXH_BY_PARAM, paramMap);
  153. return list;
  154. }
  155. public int countXxByParam(Map<String, Object> paramMap) {
  156. int count = (int) getSqlMapClientTemplate().queryForObject(XtSqlMapConstant.SQLMAP_COUNT_GTXXTS_BY_PARAM, paramMap);
  157. return count;
  158. }
  159. public int countSbxxByParam(Map<String, Object> paramMap) {
  160. int count = (int) getSqlMapClientTemplate().queryForObject(XtSqlMapConstant.SQLMAP_COUNT_SBXX_BY_PARAM, paramMap);
  161. return count;
  162. }
  163. @SuppressWarnings("unchecked")
  164. public List<XxXxts> selectXxByParam(Map<String, Object> paramMap) {
  165. List<XxXxts> xxtsList = getSqlMapClientTemplate().queryForList(XtSqlMapConstant.SQLMAP_SELECT_GTXXTS_BY_PARAM, paramMap);
  166. return xxtsList;
  167. }
  168. @SuppressWarnings("unchecked")
  169. public List<XxXxts> selectZyByParam(Map<String, Object> paramMap) {
  170. List<XxXxts> xxtsList = getSqlMapClientTemplate().queryForList(XtSqlMapConstant.SQLMAP_SELECT_ZY_BY_PARAM, paramMap);
  171. return xxtsList;
  172. }
  173. @SuppressWarnings("unchecked")
  174. public List<XxXxts> selectXxtsByParam(Map<String, Object> paramMap) {
  175. List<XxXxts> xxtsList = getSqlMapClientTemplate().queryForList(XtSqlMapConstant.SQLMAP_SELECT_XXTS_BY_PARAM, paramMap);
  176. return xxtsList;
  177. }
  178. }