package com.example.demo.sevice; import com.example.demo.domain.entity.Recharge; import com.example.demo.domain.vo.RechargeVo; import com.example.demo.domain.vo.Result; import com.github.pagehelper.PageInfo; import org.springframework.transaction.annotation.Transactional; import java.util.List; public interface RechargeService { @Transactional int add(Recharge recharge) throws Exception; int edit(Recharge recharge) throws Exception; Recharge findById(int id) throws Exception; List search(RechargeVo rechargeVo) ; PageInfo searchForPage(Integer pageNum, Integer pageSize, RechargeVo rechargeVo); int getAllByjwAndup(String jwcode); /** * 批量添加充值记录 * @param recharges 充值记录列表 * @return 处理结果 */ Result addRecharges(List recharges); }