package com.ym.mec.collectfee.service;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

import com.ym.mec.collectfee.common.service.BaseService;
import com.ym.mec.collectfee.entity.Account;
import com.ym.mec.collectfee.entity.MecCourse;
import com.ym.mec.collectfee.entity.Order;
import com.ym.mec.collectfee.entity.Renewals;

public interface RenewalsService extends BaseService<Integer, Renewals> {

    /**
     * 生成续费的订单
     *
     * @param orderNo
     * @param mecCourses
     * @return
     */
    Order addRenewalsOrder(Renewals renewals, BigDecimal amount, String orderNo, List<MecCourse> mecCourses, Account routingAccount, String remark);

    void renewalsInsert(ArrayList<Renewals> renewalsArrayList);

    /**
     * 根据订单号获取小课续费信息
     *
     * @param orderId
     * @return
     */
    Renewals getRenewalsByOrderId(Integer orderId);
}