XtGydmDAO.java 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. package com.huimv.xt.dao;
  2. import java.util.List;
  3. import java.util.Map;
  4. import com.huimv.busi.base.dto.ResponseBean;
  5. import com.huimv.web.base.PageBean;
  6. import com.huimv.xt.dataobject.XtGydm;
  7. import com.huimv.xt.dataobject.XtGydmExample;
  8. import com.huimv.xt.dataobject.XtGydmKey;
  9. public interface XtGydmDAO {
  10. /**
  11. * This method was generated by Apache iBATIS ibator.
  12. * This method corresponds to the database table xt_gydm
  13. *
  14. * @ibatorgenerated Fri May 30 10:23:18 CST 2014
  15. */
  16. int countByExample(XtGydmExample example);
  17. /**
  18. * This method was generated by Apache iBATIS ibator.
  19. * This method corresponds to the database table xt_gydm
  20. *
  21. * @ibatorgenerated Fri May 30 10:23:18 CST 2014
  22. */
  23. int deleteByExample(XtGydmExample example);
  24. /**
  25. * This method was generated by Apache iBATIS ibator.
  26. * This method corresponds to the database table xt_gydm
  27. *
  28. * @ibatorgenerated Fri May 30 10:23:18 CST 2014
  29. */
  30. int deleteByPrimaryKey(XtGydmKey key);
  31. /**
  32. * This method was generated by Apache iBATIS ibator.
  33. * This method corresponds to the database table xt_gydm
  34. *
  35. * @ibatorgenerated Fri May 30 10:23:18 CST 2014
  36. */
  37. void insert(XtGydm record);
  38. /**
  39. * This method was generated by Apache iBATIS ibator.
  40. * This method corresponds to the database table xt_gydm
  41. *
  42. * @ibatorgenerated Fri May 30 10:23:18 CST 2014
  43. */
  44. void insertSelective(XtGydm record);
  45. /**
  46. * This method was generated by Apache iBATIS ibator.
  47. * This method corresponds to the database table xt_gydm
  48. *
  49. * @ibatorgenerated Fri May 30 10:23:18 CST 2014
  50. */
  51. List<XtGydm> selectByExample(XtGydmExample example);
  52. /**
  53. * This method was generated by Apache iBATIS ibator.
  54. * This method corresponds to the database table xt_gydm
  55. *
  56. * @ibatorgenerated Fri May 30 10:23:18 CST 2014
  57. */
  58. XtGydm selectByPrimaryKey(XtGydmKey key);
  59. /**
  60. * This method was generated by Apache iBATIS ibator.
  61. * This method corresponds to the database table xt_gydm
  62. *
  63. * @ibatorgenerated Fri May 30 10:23:18 CST 2014
  64. */
  65. int updateByExampleSelective(XtGydm record, XtGydmExample example);
  66. /**
  67. * This method was generated by Apache iBATIS ibator.
  68. * This method corresponds to the database table xt_gydm
  69. *
  70. * @ibatorgenerated Fri May 30 10:23:18 CST 2014
  71. */
  72. int updateByExample(XtGydm record, XtGydmExample example);
  73. /**
  74. * This method was generated by Apache iBATIS ibator.
  75. * This method corresponds to the database table xt_gydm
  76. *
  77. * @ibatorgenerated Fri May 30 10:23:18 CST 2014
  78. */
  79. int updateByPrimaryKeySelective(XtGydm record);
  80. /**
  81. * This method was generated by Apache iBATIS ibator.
  82. * This method corresponds to the database table xt_gydm
  83. *
  84. * @ibatorgenerated Fri May 30 10:23:18 CST 2014
  85. */
  86. int updateByPrimaryKey(XtGydm record);
  87. List<XtGydm> selectBydmmc(XtGydm gydm);
  88. /**
  89. * 根据参数搜索XtGydm
  90. *
  91. * @return
  92. * @throws Exception
  93. */
  94. ResponseBean selectXtGydmByParam(Map<String, Object> paramMap, PageBean pageBean) throws Exception;
  95. /**
  96. * 搜索指定条件的XtGydm条数
  97. */
  98. public int countGydmByParam(Map<String, Object> paramMap);
  99. /**
  100. * 插入XtGydm并更新同类别下XtGydm.SXH
  101. * @param xtGydm
  102. * 需要插入的XtGydm
  103. */
  104. void insertXtGydm(final XtGydm xtGydm);
  105. /**
  106. * 修改XtGydm,同时更新同lbid下的XtGydm.SXH
  107. * @param yXtGydm
  108. * 原XtGydm
  109. * @param xXtGydm
  110. * 新XtGydm
  111. */
  112. void updateXtGydm(final XtGydm yXtGydm, final XtGydm xXtGydm);
  113. /**
  114. * 置废XtGydm,同时更新同lbid的XtGydm.SXH
  115. * @param xtGydm
  116. * 需要置废的XtGydm
  117. */
  118. void disableXtGydm(final XtGydm xtGydm);
  119. /**
  120. * 返回指定LBID中最大的DMID
  121. */
  122. int selectMaxDmidByLbid(Integer lbid);
  123. /**
  124. * 根据lbmc获取gydm
  125. */
  126. public List<XtGydm> selectGydmByLbmc(String lbmc);
  127. }