DaLqdaDAOImpl.java 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. package com.huimv.da.dao;
  2. import com.huimv.da.dataobject.DaLqda;
  3. import com.huimv.da.dataobject.DaLqdaExample;
  4. import java.util.List;
  5. import java.util.Map;
  6. import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;
  7. import com.huimv.busi.da.dto.DaLqdaDTO;
  8. import com.huimv.busi.da.dto.DaSlxxDTO;
  9. import com.huimv.busi.da.dto.DaZsdaDTO;
  10. import com.huimv.busi.xt.constant.XtSqlMapConstant;
  11. public class DaLqdaDAOImpl extends SqlMapClientDaoSupport implements DaLqdaDAO {
  12. /**
  13. * This method was generated by Apache iBATIS ibator.
  14. * This method corresponds to the database table da_lqda
  15. *
  16. * @ibatorgenerated Fri May 23 16:56:30 CST 2014
  17. */
  18. public DaLqdaDAOImpl() {
  19. super();
  20. }
  21. /**
  22. * This method was generated by Apache iBATIS ibator.
  23. * This method corresponds to the database table da_lqda
  24. *
  25. * @ibatorgenerated Fri May 23 16:56:30 CST 2014
  26. */
  27. public int countByExample(DaLqdaExample example) {
  28. Integer count = (Integer) getSqlMapClientTemplate().queryForObject("da_lqda.ibatorgenerated_countByExample", example);
  29. return count;
  30. }
  31. /**
  32. * This method was generated by Apache iBATIS ibator.
  33. * This method corresponds to the database table da_lqda
  34. *
  35. * @ibatorgenerated Fri May 23 16:56:30 CST 2014
  36. */
  37. public int deleteByExample(DaLqdaExample example) {
  38. int rows = getSqlMapClientTemplate().delete("da_lqda.ibatorgenerated_deleteByExample", example);
  39. return rows;
  40. }
  41. /**
  42. * This method was generated by Apache iBATIS ibator.
  43. * This method corresponds to the database table da_lqda
  44. *
  45. * @ibatorgenerated Fri May 23 16:56:30 CST 2014
  46. */
  47. public int deleteByPrimaryKey(Integer id) {
  48. DaLqda key = new DaLqda();
  49. key.setId(id);
  50. int rows = getSqlMapClientTemplate().delete("da_lqda.ibatorgenerated_deleteByPrimaryKey", key);
  51. return rows;
  52. }
  53. /**
  54. * This method was generated by Apache iBATIS ibator.
  55. * This method corresponds to the database table da_lqda
  56. *
  57. * @ibatorgenerated Fri May 23 16:56:30 CST 2014
  58. */
  59. public void insert(DaLqda record) {
  60. getSqlMapClientTemplate().insert("da_lqda.ibatorgenerated_insert", record);
  61. }
  62. /**
  63. * This method was generated by Apache iBATIS ibator.
  64. * This method corresponds to the database table da_lqda
  65. *
  66. * @ibatorgenerated Fri May 23 16:56:30 CST 2014
  67. */
  68. public void insertSelective(DaLqda record) {
  69. getSqlMapClientTemplate().insert("da_lqda.ibatorgenerated_insertSelective", record);
  70. }
  71. /**
  72. * This method was generated by Apache iBATIS ibator.
  73. * This method corresponds to the database table da_lqda
  74. *
  75. * @ibatorgenerated Fri May 23 16:56:30 CST 2014
  76. */
  77. @SuppressWarnings("unchecked")
  78. public List<DaLqda> selectByExample(DaLqdaExample example) {
  79. List<DaLqda> list = getSqlMapClientTemplate().queryForList("da_lqda.ibatorgenerated_selectByExample", example);
  80. return list;
  81. }
  82. /**
  83. * This method was generated by Apache iBATIS ibator.
  84. * This method corresponds to the database table da_lqda
  85. *
  86. * @ibatorgenerated Fri May 23 16:56:30 CST 2014
  87. */
  88. public DaLqda selectByPrimaryKey(Integer id) {
  89. DaLqda key = new DaLqda();
  90. key.setId(id);
  91. DaLqda record = (DaLqda) getSqlMapClientTemplate().queryForObject("da_lqda.ibatorgenerated_selectByPrimaryKey", key);
  92. return record;
  93. }
  94. /**
  95. * This method was generated by Apache iBATIS ibator.
  96. * This method corresponds to the database table da_lqda
  97. *
  98. * @ibatorgenerated Fri May 23 16:56:30 CST 2014
  99. */
  100. public int updateByExampleSelective(DaLqda record, DaLqdaExample example) {
  101. UpdateByExampleParms parms = new UpdateByExampleParms(record, example);
  102. int rows = getSqlMapClientTemplate().update("da_lqda.ibatorgenerated_updateByExampleSelective", parms);
  103. return rows;
  104. }
  105. /**
  106. * This method was generated by Apache iBATIS ibator.
  107. * This method corresponds to the database table da_lqda
  108. *
  109. * @ibatorgenerated Fri May 23 16:56:30 CST 2014
  110. */
  111. public int updateByExample(DaLqda record, DaLqdaExample example) {
  112. UpdateByExampleParms parms = new UpdateByExampleParms(record, example);
  113. int rows = getSqlMapClientTemplate().update("da_lqda.ibatorgenerated_updateByExample", parms);
  114. return rows;
  115. }
  116. /**
  117. * This method was generated by Apache iBATIS ibator.
  118. * This method corresponds to the database table da_lqda
  119. *
  120. * @ibatorgenerated Fri May 23 16:56:30 CST 2014
  121. */
  122. public int updateByPrimaryKeySelective(DaLqda record) {
  123. int rows = getSqlMapClientTemplate().update("da_lqda.ibatorgenerated_updateByPrimaryKeySelective", record);
  124. return rows;
  125. }
  126. /**
  127. * This method was generated by Apache iBATIS ibator.
  128. * This method corresponds to the database table da_lqda
  129. *
  130. * @ibatorgenerated Fri May 23 16:56:30 CST 2014
  131. */
  132. public int updateByPrimaryKey(DaLqda record) {
  133. int rows = getSqlMapClientTemplate().update("da_lqda.ibatorgenerated_updateByPrimaryKey", record);
  134. return rows;
  135. }
  136. /**
  137. * This class was generated by Apache iBATIS ibator.
  138. * This class corresponds to the database table da_lqda
  139. *
  140. * @ibatorgenerated Fri May 23 16:56:30 CST 2014
  141. */
  142. private static class UpdateByExampleParms extends DaLqdaExample {
  143. private Object record;
  144. public UpdateByExampleParms(Object record, DaLqdaExample example) {
  145. super(example);
  146. this.record = record;
  147. }
  148. @SuppressWarnings("unused")
  149. public Object getRecord() {
  150. return record;
  151. }
  152. }
  153. @SuppressWarnings("unchecked")
  154. public List<DaLqdaDTO> selectMCZSLQDAByExample(DaLqdaExample example) {
  155. List<DaLqdaDTO> list = getSqlMapClientTemplate().queryForList("da_lqda.ibatorgenerated_selectMCZSLQDAByExample", example);
  156. return list;
  157. }
  158. public int countMCZSLQDAByExample(DaLqdaExample example) {
  159. Integer count = (Integer) getSqlMapClientTemplate().queryForObject("da_lqda.ibatorgenerated_countMCZSLQDAByExample", example);
  160. return count;
  161. }
  162. public DaLqdaDTO selectMCZSLQDAByPrimaryKey(Integer id) {
  163. DaLqda key = new DaLqda();
  164. key.setId(id);
  165. DaLqdaDTO daLqdaDTO = (DaLqdaDTO) getSqlMapClientTemplate().queryForObject("da_lqda.ibatorgenerated_selectMCZSLQDAByPrimaryKey", key);
  166. return daLqdaDTO;
  167. }
  168. @SuppressWarnings("unchecked")
  169. public List<DaLqda> selectLqdaByZsid(String zsid) {
  170. List<DaLqda> daLqdas = null;
  171. daLqdas = (List<DaLqda>) getSqlMapClientTemplate().queryForList(XtSqlMapConstant.SELECT_LQDA_BY_ZSID, zsid);
  172. return daLqdas;
  173. }
  174. @SuppressWarnings("unchecked")
  175. public List<DaSlxxDTO> selectMCZSLQSLByExample(DaLqdaExample example) {
  176. List<DaSlxxDTO> list = getSqlMapClientTemplate().queryForList("da_lqda.ibatorgenerated_selectMCZSLQSLByExample", example);
  177. return list;
  178. }
  179. @SuppressWarnings("unchecked")
  180. public List<DaZsdaDTO> selectZsdaDtoByParam(Map<String, Object> param) {
  181. List<DaZsdaDTO> list = getSqlMapClientTemplate().queryForList("select.zsdadto.by.mcid", param);
  182. return list;
  183. }
  184. @SuppressWarnings("unchecked")
  185. public List<DaLqda> selectDqlq() {
  186. List<DaLqda> list = getSqlMapClientTemplate().queryForList(XtSqlMapConstant.SQLMAP_SELECT_DQLQ_LQID);
  187. return list;
  188. }
  189. }