package com.huimv.xt.dao; import java.util.List; import java.util.Map; import com.huimv.busi.base.dto.ResponseBean; import com.huimv.web.base.PageBean; import com.huimv.xt.dataobject.XtGydm; import com.huimv.xt.dataobject.XtGydmExample; import com.huimv.xt.dataobject.XtGydmKey; public interface XtGydmDAO { /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table xt_gydm * * @ibatorgenerated Fri May 30 10:23:18 CST 2014 */ int countByExample(XtGydmExample example); /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table xt_gydm * * @ibatorgenerated Fri May 30 10:23:18 CST 2014 */ int deleteByExample(XtGydmExample example); /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table xt_gydm * * @ibatorgenerated Fri May 30 10:23:18 CST 2014 */ int deleteByPrimaryKey(XtGydmKey key); /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table xt_gydm * * @ibatorgenerated Fri May 30 10:23:18 CST 2014 */ void insert(XtGydm record); /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table xt_gydm * * @ibatorgenerated Fri May 30 10:23:18 CST 2014 */ void insertSelective(XtGydm record); /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table xt_gydm * * @ibatorgenerated Fri May 30 10:23:18 CST 2014 */ List selectByExample(XtGydmExample example); /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table xt_gydm * * @ibatorgenerated Fri May 30 10:23:18 CST 2014 */ XtGydm selectByPrimaryKey(XtGydmKey key); /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table xt_gydm * * @ibatorgenerated Fri May 30 10:23:18 CST 2014 */ int updateByExampleSelective(XtGydm record, XtGydmExample example); /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table xt_gydm * * @ibatorgenerated Fri May 30 10:23:18 CST 2014 */ int updateByExample(XtGydm record, XtGydmExample example); /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table xt_gydm * * @ibatorgenerated Fri May 30 10:23:18 CST 2014 */ int updateByPrimaryKeySelective(XtGydm record); /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table xt_gydm * * @ibatorgenerated Fri May 30 10:23:18 CST 2014 */ int updateByPrimaryKey(XtGydm record); List selectBydmmc(XtGydm gydm); /** * 根据参数搜索XtGydm * * @return * @throws Exception */ ResponseBean selectXtGydmByParam(Map paramMap, PageBean pageBean) throws Exception; /** * 搜索指定条件的XtGydm条数 */ public int countGydmByParam(Map paramMap); /** * 插入XtGydm并更新同类别下XtGydm.SXH * @param xtGydm * 需要插入的XtGydm */ void insertXtGydm(final XtGydm xtGydm); /** * 修改XtGydm,同时更新同lbid下的XtGydm.SXH * @param yXtGydm * 原XtGydm * @param xXtGydm * 新XtGydm */ void updateXtGydm(final XtGydm yXtGydm, final XtGydm xXtGydm); /** * 置废XtGydm,同时更新同lbid的XtGydm.SXH * @param xtGydm * 需要置废的XtGydm */ void disableXtGydm(final XtGydm xtGydm); /** * 返回指定LBID中最大的DMID */ int selectMaxDmidByLbid(Integer lbid); /** * 根据lbmc获取gydm */ public List selectGydmByLbmc(String lbmc); }