XtSjpzDAOImpl.java 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  1. package com.huimv.xt.dao;
  2. import com.huimv.busi.xt.constant.XtSqlMapConstant;
  3. import com.huimv.da.dataobject.DaZsda;
  4. import com.huimv.xt.dataobject.XtHjbjcs;
  5. import com.huimv.xt.dataobject.XtSjpz;
  6. import com.huimv.xt.dataobject.XtSjpzExample;
  7. import java.util.List;
  8. import java.util.Map;
  9. import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;
  10. public class XtSjpzDAOImpl extends SqlMapClientDaoSupport implements XtSjpzDAO {
  11. /**
  12. * This method was generated by Apache iBATIS ibator.
  13. * This method corresponds to the database table xt_sjpz
  14. *
  15. * @ibatorgenerated Fri Jun 17 13:33:23 CST 2016
  16. */
  17. public XtSjpzDAOImpl() {
  18. super();
  19. }
  20. /**
  21. * This method was generated by Apache iBATIS ibator.
  22. * This method corresponds to the database table xt_sjpz
  23. *
  24. * @ibatorgenerated Fri Jun 17 13:33:23 CST 2016
  25. */
  26. public int countByExample(XtSjpzExample example) {
  27. Integer count = (Integer) getSqlMapClientTemplate().queryForObject("xt_sjpz.ibatorgenerated_countByExample", example);
  28. return count;
  29. }
  30. /**
  31. * This method was generated by Apache iBATIS ibator.
  32. * This method corresponds to the database table xt_sjpz
  33. *
  34. * @ibatorgenerated Fri Jun 17 13:33:23 CST 2016
  35. */
  36. public int deleteByExample(XtSjpzExample example) {
  37. int rows = getSqlMapClientTemplate().delete("xt_sjpz.ibatorgenerated_deleteByExample", example);
  38. return rows;
  39. }
  40. /**
  41. * This method was generated by Apache iBATIS ibator.
  42. * This method corresponds to the database table xt_sjpz
  43. *
  44. * @ibatorgenerated Fri Jun 17 13:33:23 CST 2016
  45. */
  46. public int deleteByPrimaryKey(Integer id) {
  47. XtSjpz key = new XtSjpz();
  48. key.setId(id);
  49. int rows = getSqlMapClientTemplate().delete("xt_sjpz.ibatorgenerated_deleteByPrimaryKey", key);
  50. return rows;
  51. }
  52. /**
  53. * This method was generated by Apache iBATIS ibator.
  54. * This method corresponds to the database table xt_sjpz
  55. *
  56. * @ibatorgenerated Fri Jun 17 13:33:23 CST 2016
  57. */
  58. public void insert(XtSjpz record) {
  59. getSqlMapClientTemplate().insert("xt_sjpz.ibatorgenerated_insert", record);
  60. }
  61. /**
  62. * This method was generated by Apache iBATIS ibator.
  63. * This method corresponds to the database table xt_sjpz
  64. *
  65. * @ibatorgenerated Fri Jun 17 13:33:23 CST 2016
  66. */
  67. public void insertSelective(XtSjpz record) {
  68. getSqlMapClientTemplate().insert("xt_sjpz.ibatorgenerated_insertSelective", record);
  69. }
  70. /**
  71. * This method was generated by Apache iBATIS ibator.
  72. * This method corresponds to the database table xt_sjpz
  73. *
  74. * @ibatorgenerated Fri Jun 17 13:33:23 CST 2016
  75. */
  76. @SuppressWarnings("unchecked")
  77. public List<XtSjpz> selectByExample(XtSjpzExample example) {
  78. List<XtSjpz> list = getSqlMapClientTemplate().queryForList("xt_sjpz.ibatorgenerated_selectByExample", example);
  79. return list;
  80. }
  81. /**
  82. * This method was generated by Apache iBATIS ibator.
  83. * This method corresponds to the database table xt_sjpz
  84. *
  85. * @ibatorgenerated Fri Jun 17 13:33:23 CST 2016
  86. */
  87. public XtSjpz selectByPrimaryKey(Integer id) {
  88. XtSjpz key = new XtSjpz();
  89. key.setId(id);
  90. XtSjpz record = (XtSjpz) getSqlMapClientTemplate().queryForObject("xt_sjpz.ibatorgenerated_selectByPrimaryKey", key);
  91. return record;
  92. }
  93. /**
  94. * This method was generated by Apache iBATIS ibator.
  95. * This method corresponds to the database table xt_sjpz
  96. *
  97. * @ibatorgenerated Fri Jun 17 13:33:23 CST 2016
  98. */
  99. public int updateByExampleSelective(XtSjpz record, XtSjpzExample example) {
  100. UpdateByExampleParms parms = new UpdateByExampleParms(record, example);
  101. int rows = getSqlMapClientTemplate().update("xt_sjpz.ibatorgenerated_updateByExampleSelective", parms);
  102. return rows;
  103. }
  104. /**
  105. * This method was generated by Apache iBATIS ibator.
  106. * This method corresponds to the database table xt_sjpz
  107. *
  108. * @ibatorgenerated Fri Jun 17 13:33:23 CST 2016
  109. */
  110. public int updateByExample(XtSjpz record, XtSjpzExample example) {
  111. UpdateByExampleParms parms = new UpdateByExampleParms(record, example);
  112. int rows = getSqlMapClientTemplate().update("xt_sjpz.ibatorgenerated_updateByExample", parms);
  113. return rows;
  114. }
  115. /**
  116. * This method was generated by Apache iBATIS ibator.
  117. * This method corresponds to the database table xt_sjpz
  118. *
  119. * @ibatorgenerated Fri Jun 17 13:33:23 CST 2016
  120. */
  121. public int updateByPrimaryKeySelective(XtSjpz record) {
  122. int rows = getSqlMapClientTemplate().update("xt_sjpz.ibatorgenerated_updateByPrimaryKeySelective", record);
  123. return rows;
  124. }
  125. /**
  126. * This method was generated by Apache iBATIS ibator.
  127. * This method corresponds to the database table xt_sjpz
  128. *
  129. * @ibatorgenerated Fri Jun 17 13:33:23 CST 2016
  130. */
  131. public int updateByPrimaryKey(XtSjpz record) {
  132. int rows = getSqlMapClientTemplate().update("xt_sjpz.ibatorgenerated_updateByPrimaryKey", record);
  133. return rows;
  134. }
  135. /**
  136. * This class was generated by Apache iBATIS ibator.
  137. * This class corresponds to the database table xt_sjpz
  138. *
  139. * @ibatorgenerated Fri Jun 17 13:33:23 CST 2016
  140. */
  141. private static class UpdateByExampleParms extends XtSjpzExample {
  142. private Object record;
  143. public UpdateByExampleParms(Object record, XtSjpzExample example) {
  144. super(example);
  145. this.record = record;
  146. }
  147. public Object getRecord() {
  148. return record;
  149. }
  150. }
  151. /**
  152. * 根据参数统计
  153. * @param paramMap
  154. * @return
  155. */
  156. @Override
  157. public int countHjbjsjpzByParam(Map<String, Object> paramMap) {
  158. Integer count = (Integer) getSqlMapClientTemplate().queryForObject(XtSqlMapConstant.SQLMAP_COUNT_HJBJSJPZ_BY_PARAM, paramMap);
  159. return count == null ? 0 : count;
  160. }
  161. /**
  162. * 根据参数查询
  163. * @param paramMap
  164. * @return
  165. */
  166. @SuppressWarnings("unchecked")
  167. @Override
  168. public List<XtSjpz> selectHjbjsjpzByParam(Map<String, Object> paramMap) {
  169. List<XtSjpz> list = getSqlMapClientTemplate().queryForList(XtSqlMapConstant.SQLMAP_SELECT_HJBJSJPZ_BY_PARAM, paramMap);
  170. return list;
  171. }
  172. /**
  173. * 判断猪舍信息是否重复
  174. */
  175. @SuppressWarnings("unchecked")
  176. @Override
  177. public List<DaZsda> selectHjbjsjpzCheckZsxx(Map<String, Object> paramMap) {
  178. List<DaZsda> list = getSqlMapClientTemplate().queryForList(XtSqlMapConstant.SQLMAP_SELECT_HJBJSJPZ_CHECK_ZSXX, paramMap);
  179. return list;
  180. }
  181. }