SjlrZzttDAOImpl.java 6.3 KB

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