EmployeeConfigInfoService.java 2.17 KB
package com.bsth.service.schedule;

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

import java.util.List;

/**
 * Created by xu on 16/5/10.
 */
public interface EmployeeConfigInfoService extends BService<EmployeeConfigInfo, Long> {
    // 验证驾驶员配置是否重复配置
    void validate_jsy(EmployeeConfigInfo employeeConfigInfo) throws ScheduleException;
    // 验证售票员配置是否重复配置
    void validate_spy(EmployeeConfigInfo employeeConfigInfo) throws ScheduleException;
    // 验证驾驶员是否配置在指定线路
    void validate_jsy_config(EmployeeConfigInfo employeeConfigInfo) throws ScheduleException;
    // 判定驾驶员所属公司和当前用户的所属公司
    void validate_jsy_gs(EmployeeConfigInfo employeeConfigInfo, List<CompanyAuthority> companyAuthorityList) throws ScheduleException;
    // 判定驾驶员所属分公司和当前用户的所属分公司
    void validate_jsy_fgs(EmployeeConfigInfo employeeConfigInfo, List<CompanyAuthority> companyAuthorityList) throws ScheduleException;
    // 验证售票员是否配置在指定线路
    void validate_spy_config(EmployeeConfigInfo employeeConfigInfo) throws ScheduleException;
    // 判定驾驶员所属公司和当前用户的所属公司
    void validate_spy_gs(EmployeeConfigInfo employeeConfigInfo, List<CompanyAuthority> companyAuthorityList) throws ScheduleException;
    // 判定驾驶员所属分公司和当前用户的所属分公司
    void validate_spy_fgs(EmployeeConfigInfo employeeConfigInfo, List<CompanyAuthority> companyAuthorityList) throws ScheduleException;
    // 验证驾驶员是否停用
    void validate_jsy_destroy(EmployeeConfigInfo employeeConfigInfo) throws ScheduleException;
    // 验证售票员是否停用
    void validate_spy_destroy(EmployeeConfigInfo employeeConfigInfo) throws ScheduleException;
    // 获取人员停用信息(使用排班信息辅助判定)
    List<String> validate_get_destory_info();

    void toggleCancel(Long id) throws ScheduleException;
    Long getMaxDbbm(Integer xlId);
}