package com.bcxin.survey.service;

import com.bcxin.survey.dao.order.ExpertOrderPublicDao;
import com.bcxin.survey.domain.order.ExpertOrderPublic;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author hzp
 */
@Service
@Slf4j
public class ExpertOrderPublicServiceImpl implements ExpertOrderPublicService {


    @Autowired
    private ExpertOrderPublicDao dao;



    @Override
    public void updateStatusToCancel(Long activityId,String taskType,String taskStatus){
        dao.updateStatusToCancel(activityId,taskType,taskStatus);
    }

    @Override
    public void updateStatus(Long activityId,Long expertId,String taskType,String taskStatus){
        dao.updateStatus(activityId,expertId,taskType,taskStatus);
    }


    @Override
    public ExpertOrderPublic findExpertByIdWithActivity(Long activityId, Long expertId, String taskType){
        return dao.findExpertByIdWithActivity(activityId,expertId,taskType);
    }
}