XtCsjlpzDAOImpl.java 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. package com.huimv.xt.dao;
  2. import com.huimv.busi.xt.constant.XtSqlMapConstant;
  3. import com.huimv.xt.dataobject.XtCsjlpz;
  4. import com.huimv.xt.dataobject.XtCsjlpzExample;
  5. import com.huimv.xt.dataobject.XtCsjlyxcs;
  6. import java.util.List;
  7. import java.util.Map;
  8. import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;
  9. public class XtCsjlpzDAOImpl extends SqlMapClientDaoSupport implements XtCsjlpzDAO {
  10. /**
  11. * This method was generated by Apache iBATIS ibator.
  12. * This method corresponds to the database table xt_csjlpz
  13. *
  14. * @ibatorgenerated Fri Sep 01 13:59:46 CST 2017
  15. */
  16. public XtCsjlpzDAOImpl() {
  17. super();
  18. }
  19. /**
  20. * This method was generated by Apache iBATIS ibator.
  21. * This method corresponds to the database table xt_csjlpz
  22. *
  23. * @ibatorgenerated Fri Sep 01 13:59:46 CST 2017
  24. */
  25. public int countByExample(XtCsjlpzExample example) {
  26. Integer count = (Integer) getSqlMapClientTemplate().queryForObject("xt_csjlpz.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 xt_csjlpz
  32. *
  33. * @ibatorgenerated Fri Sep 01 13:59:46 CST 2017
  34. */
  35. public int deleteByExample(XtCsjlpzExample example) {
  36. int rows = getSqlMapClientTemplate().delete("xt_csjlpz.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 xt_csjlpz
  42. *
  43. * @ibatorgenerated Fri Sep 01 13:59:46 CST 2017
  44. */
  45. public int deleteByPrimaryKey(Integer id) {
  46. XtCsjlpz key = new XtCsjlpz();
  47. key.setId(id);
  48. int rows = getSqlMapClientTemplate().delete("xt_csjlpz.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 xt_csjlpz
  54. *
  55. * @ibatorgenerated Fri Sep 01 13:59:46 CST 2017
  56. */
  57. public void insert(XtCsjlpz record) {
  58. getSqlMapClientTemplate().insert("xt_csjlpz.ibatorgenerated_insert", record);
  59. }
  60. /**
  61. * This method was generated by Apache iBATIS ibator.
  62. * This method corresponds to the database table xt_csjlpz
  63. *
  64. * @ibatorgenerated Fri Sep 01 13:59:46 CST 2017
  65. */
  66. public void insertSelective(XtCsjlpz record) {
  67. getSqlMapClientTemplate().insert("xt_csjlpz.ibatorgenerated_insertSelective", record);
  68. }
  69. /**
  70. * This method was generated by Apache iBATIS ibator.
  71. * This method corresponds to the database table xt_csjlpz
  72. *
  73. * @ibatorgenerated Fri Sep 01 13:59:46 CST 2017
  74. */
  75. @SuppressWarnings("unchecked")
  76. public List<XtCsjlpz> selectByExample(XtCsjlpzExample example) {
  77. List<XtCsjlpz> list = getSqlMapClientTemplate().queryForList("xt_csjlpz.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 xt_csjlpz
  83. *
  84. * @ibatorgenerated Fri Sep 01 13:59:46 CST 2017
  85. */
  86. public XtCsjlpz selectByPrimaryKey(Integer id) {
  87. XtCsjlpz key = new XtCsjlpz();
  88. key.setId(id);
  89. XtCsjlpz record = (XtCsjlpz) getSqlMapClientTemplate().queryForObject("xt_csjlpz.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 xt_csjlpz
  95. *
  96. * @ibatorgenerated Fri Sep 01 13:59:46 CST 2017
  97. */
  98. public int updateByExampleSelective(XtCsjlpz record, XtCsjlpzExample example) {
  99. UpdateByExampleParms parms = new UpdateByExampleParms(record, example);
  100. int rows = getSqlMapClientTemplate().update("xt_csjlpz.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 xt_csjlpz
  106. *
  107. * @ibatorgenerated Fri Sep 01 13:59:46 CST 2017
  108. */
  109. public int updateByExample(XtCsjlpz record, XtCsjlpzExample example) {
  110. UpdateByExampleParms parms = new UpdateByExampleParms(record, example);
  111. int rows = getSqlMapClientTemplate().update("xt_csjlpz.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 xt_csjlpz
  117. *
  118. * @ibatorgenerated Fri Sep 01 13:59:46 CST 2017
  119. */
  120. public int updateByPrimaryKeySelective(XtCsjlpz record) {
  121. int rows = getSqlMapClientTemplate().update("xt_csjlpz.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 xt_csjlpz
  127. *
  128. * @ibatorgenerated Fri Sep 01 13:59:46 CST 2017
  129. */
  130. public int updateByPrimaryKey(XtCsjlpz record) {
  131. int rows = getSqlMapClientTemplate().update("xt_csjlpz.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 xt_csjlpz
  137. *
  138. * @ibatorgenerated Fri Sep 01 13:59:46 CST 2017
  139. */
  140. private static class UpdateByExampleParms extends XtCsjlpzExample {
  141. private Object record;
  142. public UpdateByExampleParms(Object record, XtCsjlpzExample example) {
  143. super(example);
  144. this.record = record;
  145. }
  146. public Object getRecord() {
  147. return record;
  148. }
  149. }
  150. /**
  151. * 打屏料线
  152. * @param param
  153. * @return
  154. */
  155. @SuppressWarnings("unchecked")
  156. public List<XtCsjlpz> selecDplxByParam(Map<String, Object> param) {
  157. List<XtCsjlpz> list = getSqlMapClientTemplate().queryForList(XtSqlMapConstant.SQLMAP_SELECT_DPCSJLPZ_BY_PARAM, param);
  158. return list;
  159. }
  160. }