CarConfigInfoService.java 1.16 KB
package com.bsth.service.schedule;

import com.bsth.entity.schedule.CarConfigInfo;
import com.bsth.entity.sys.CompanyAuthority;
import com.bsth.service.schedule.exception.ScheduleException;

import java.util.List;

/**
 * Created by xu on 16/5/9.
 */
public interface CarConfigInfoService extends BService<CarConfigInfo, Long> {
    // 判定车辆是否配置在其他线路上
    void validate_cars(CarConfigInfo carConfigInfo) throws ScheduleException;
    // 判定车辆是否配置在其他线路上2
    void validate_cars(Integer xlId, Integer clId) throws ScheduleException;
    // 判定车辆是否配置在当前线路中
    void validate_cars_config(CarConfigInfo carConfigInfo) throws ScheduleException;
    // 判定车辆所属公司和当前用户的所属公司
    void validate_cars_gs(CarConfigInfo carConfigInfo, List<CompanyAuthority> companyAuthorityList) throws ScheduleException;
    // 判定车辆所属分公司和当前用户的所属分公司
    void validate_cars_fgs(CarConfigInfo carConfigInfo, List<CompanyAuthority> companyAuthorityList) throws ScheduleException;
    void toggleCancel(Long id) throws ScheduleException;


}