package com.thinkgem.jeesite.modules.youka.service;

import com.thinkgem.jeesite.common.service.BaseService;
import com.thinkgem.jeesite.common.service.CrudService;
import com.thinkgem.jeesite.common.utils.DateUtils;
import com.thinkgem.jeesite.modules.youka.dao.YoukaBenefitDao;
import com.thinkgem.jeesite.modules.youka.entity.YoukaBenefit;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.Date;
import java.util.List;

@Service
@Transactional(readOnly = true)
public class YoukaBenefitService extends CrudService<YoukaBenefitDao ,YoukaBenefit> {
    /**
     * 分润
     * @param request
     * @return
     */
    public List<YoukaBenefit> getBenefitList(YoukaBenefit request){

        return dao.getBenefitList(request);

    }


    // 通过时间修改分润的状态
    public Integer updateBenefitByDate(YoukaBenefit youkaBenefit){
        return dao.updateBenefitByDate(youkaBenefit);
    }

}
