public void DeleteBasicConfigHistory(BasicConfigHistoryDTO dto)
        {
            if (dto == null)
            {
                throw new ArgumentException("参数为空!");
            }
            BasicConfigHistory delBasicConfigHistory = _basicConfigHistoryRepository.Get(dto.Id);
            //获取需要删除的对象。

            if (delBasicConfigHistory != null)
            {
                _basicConfigHistoryRepository.Remove(delBasicConfigHistory); //删除基本构型历史。
            }
        }
        public void ModifyBasicConfigHistory(BasicConfigHistoryDTO dto)
        {
            BasicConfigGroup basicConfigGroup = _basicConfigGroupRepository.Get(dto.BasicConfigGroupId); //获取基本构型组
            ContractAircraft contractAircraft = _contractAircraftRepository.Get(dto.ContractAircraftId); //获取合同飞机

            //获取需要更新的对象
            BasicConfigHistory updateBasicConfigHistory = _basicConfigHistoryRepository.Get(dto.Id);
            if (updateBasicConfigHistory != null)
            {
                updateBasicConfigHistory.SetBasicConfigGroup(basicConfigGroup);
                updateBasicConfigHistory.SetContractAircraft(contractAircraft);
                updateBasicConfigHistory.SetEndDate(dto.EndDate);
                updateBasicConfigHistory.SetStartDate(dto.StartDate);
                _basicConfigHistoryRepository.Modify(updateBasicConfigHistory);
            }
        }
        public void InsertBasicConfigHistory(BasicConfigHistoryDTO dto)
        {
            BasicConfigGroup basicConfigGroup = _basicConfigGroupRepository.Get(dto.BasicConfigGroupId); //获取基本构型组
            ContractAircraft contractAircraft = _contractAircraftRepository.Get(dto.ContractAircraftId); //获取合同飞机

            //创建基本构型历史
            BasicConfigHistory newBasicConfigHistory = BasicConfigHistoryFactory.CreateBasicConfigHistory(
                contractAircraft, basicConfigGroup, dto.StartDate, dto.EndDate);
            newBasicConfigHistory.ChangeCurrentIdentity(dto.Id);

            _basicConfigHistoryRepository.Add(newBasicConfigHistory);
        }