SjlrDnjlDAOImpl.java 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  1. package com.huimv.sjlr.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.sjlr.dataobject.SjlrDnjl;
  7. import com.huimv.sjlr.dataobject.SjlrDnjlExample;
  8. import com.huimv.sjlr.dataobject.SjlrMzda;
  9. public class SjlrDnjlDAOImpl extends SqlMapClientDaoSupport implements SjlrDnjlDAO {
  10. /**
  11. * This method was generated by Apache iBATIS ibator.
  12. * This method corresponds to the database table sjlr_dnjl
  13. *
  14. * @ibatorgenerated Thu Feb 23 13:43:48 CST 2017
  15. */
  16. public SjlrDnjlDAOImpl() {
  17. super();
  18. }
  19. /**
  20. * This method was generated by Apache iBATIS ibator.
  21. * This method corresponds to the database table sjlr_dnjl
  22. *
  23. * @ibatorgenerated Thu Feb 23 13:43:48 CST 2017
  24. */
  25. public int countByExample(SjlrDnjlExample example) {
  26. Integer count = (Integer) getSqlMapClientTemplate().queryForObject("sjlr_dnjl.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 sjlr_dnjl
  32. *
  33. * @ibatorgenerated Thu Feb 23 13:43:48 CST 2017
  34. */
  35. public int deleteByExample(SjlrDnjlExample example) {
  36. int rows = getSqlMapClientTemplate().delete("sjlr_dnjl.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 sjlr_dnjl
  42. *
  43. * @ibatorgenerated Thu Feb 23 13:43:48 CST 2017
  44. */
  45. public int deleteByPrimaryKey(Integer id) {
  46. SjlrDnjl key = new SjlrDnjl();
  47. key.setId(id);
  48. int rows = getSqlMapClientTemplate().delete("sjlr_dnjl.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 sjlr_dnjl
  54. *
  55. * @ibatorgenerated Thu Feb 23 13:43:48 CST 2017
  56. */
  57. public void insert(SjlrDnjl record) {
  58. getSqlMapClientTemplate().insert("sjlr_dnjl.ibatorgenerated_insert", record);
  59. }
  60. /**
  61. * This method was generated by Apache iBATIS ibator.
  62. * This method corresponds to the database table sjlr_dnjl
  63. *
  64. * @ibatorgenerated Thu Feb 23 13:43:48 CST 2017
  65. */
  66. public void insertSelective(SjlrDnjl record) {
  67. getSqlMapClientTemplate().insert("sjlr_dnjl.ibatorgenerated_insertSelective", record);
  68. }
  69. /**
  70. * This method was generated by Apache iBATIS ibator.
  71. * This method corresponds to the database table sjlr_dnjl
  72. *
  73. * @ibatorgenerated Thu Feb 23 13:43:48 CST 2017
  74. */
  75. @SuppressWarnings("unchecked")
  76. public List<SjlrDnjl> selectByExample(SjlrDnjlExample example) {
  77. List<SjlrDnjl> list = getSqlMapClientTemplate().queryForList("sjlr_dnjl.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 sjlr_dnjl
  83. *
  84. * @ibatorgenerated Thu Feb 23 13:43:48 CST 2017
  85. */
  86. public SjlrDnjl selectByPrimaryKey(Integer id) {
  87. SjlrDnjl key = new SjlrDnjl();
  88. key.setId(id);
  89. SjlrDnjl record = (SjlrDnjl) getSqlMapClientTemplate().queryForObject("sjlr_dnjl.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 sjlr_dnjl
  95. *
  96. * @ibatorgenerated Thu Feb 23 13:43:48 CST 2017
  97. */
  98. public int updateByExampleSelective(SjlrDnjl record, SjlrDnjlExample example) {
  99. UpdateByExampleParms parms = new UpdateByExampleParms(record, example);
  100. int rows = getSqlMapClientTemplate().update("sjlr_dnjl.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 sjlr_dnjl
  106. *
  107. * @ibatorgenerated Thu Feb 23 13:43:48 CST 2017
  108. */
  109. public int updateByExample(SjlrDnjl record, SjlrDnjlExample example) {
  110. UpdateByExampleParms parms = new UpdateByExampleParms(record, example);
  111. int rows = getSqlMapClientTemplate().update("sjlr_dnjl.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 sjlr_dnjl
  117. *
  118. * @ibatorgenerated Thu Feb 23 13:43:48 CST 2017
  119. */
  120. public int updateByPrimaryKeySelective(SjlrDnjl record) {
  121. int rows = getSqlMapClientTemplate().update("sjlr_dnjl.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 sjlr_dnjl
  127. *
  128. * @ibatorgenerated Thu Feb 23 13:43:48 CST 2017
  129. */
  130. public int updateByPrimaryKey(SjlrDnjl record) {
  131. int rows = getSqlMapClientTemplate().update("sjlr_dnjl.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 sjlr_dnjl
  137. *
  138. * @ibatorgenerated Thu Feb 23 13:43:48 CST 2017
  139. */
  140. private static class UpdateByExampleParms extends SjlrDnjlExample {
  141. private Object record;
  142. public UpdateByExampleParms(Object record, SjlrDnjlExample example) {
  143. super(example);
  144. this.record = record;
  145. }
  146. public Object getRecord() {
  147. return record;
  148. }
  149. }
  150. @Override
  151. public List<SjlrDnjl> selectDnjlListByParam(Map<String, Object> paramMap) {
  152. @SuppressWarnings("unchecked")
  153. List<SjlrDnjl> dnjlList = getSqlMapClientTemplate().queryForList(XtSqlMapConstant.SQLMAP_SELECT_SJLR_DNJL_BY_PARAM, paramMap);
  154. return dnjlList;
  155. }
  156. @Override
  157. public List<SjlrMzda> selectSearchDnjlListByParam(Map<String, Object> paramMap) {
  158. @SuppressWarnings("unchecked")
  159. List<SjlrMzda> mzdaList = getSqlMapClientTemplate().queryForList(XtSqlMapConstant.SQLMAP_SELECT_SJLR_SEARCHDNJL_BY_PARAM, paramMap);
  160. return mzdaList;
  161. }
  162. @Override
  163. public List<SjlrDnjl> selectAddDnjlListByParam(Map<String, Object> paramMap) {
  164. @SuppressWarnings("unchecked")
  165. List<SjlrDnjl> dnjlList = getSqlMapClientTemplate().queryForList(XtSqlMapConstant.SQLMAP_SELECT_SJLR_ADDDNJL_BY_PARAM, paramMap);
  166. return dnjlList;
  167. }
  168. @Override
  169. public List<SjlrDnjl> selectDnjltcByParam(Map<String, Object> paramMap) {
  170. List<SjlrDnjl> dnjlList = getSqlMapClientTemplate().queryForList(XtSqlMapConstant.SQLMAP_SELECT_SJLR_DNJLTC_BY_PARAM, paramMap);
  171. return dnjlList;
  172. }
  173. }