package comdianservice;import comdiandomainFeiyong;import comdianmapperFeiyongMapper;import comgithubpagehelperPage;import comgithubpagehelperPageHelper;import orgspringframeworkstereotypeService;impo
这段代码是一个FeiyongService类,用于处理费用相关的业务逻辑。其中包含了对Feiyong对象的增删改查操作,以及查询分页和全量查询的方法。
具体方法包括:
- deleteByPrimaryKey(Integer id):根据id删除费用信息。
- insert(Feiyong entify):插入一条费用信息。
- insertSelective(Feiyong entify):选择性地插入一条费用信息。
- selectByPrimaryKey(Integer id):根据id查询一条费用信息。
- selectByLeixing(Integer id):根据类型查询一条费用信息。
- updateByPrimaryKeySelective(Feiyong entify):选择性地更新一条费用信息。
- updateByPrimaryKey(Feiyong entify):更新一条费用信息。
- selectByPage(Integer startId, Integer pageIndex, Integer pageSize):分页查询费用信息。
- query():查询所有费用信息。
该类使用了FeiyongMapper接口进行数据库操作,并通过注解@Resource将其注入到Service中。同时,该类还使用了PageHelper插件进行分页查询
原文地址: https://www.cveoy.top/t/topic/dp02 著作权归作者所有。请勿转载和采集!