| | |
| | | { |
| | | try |
| | | { |
| | | if (stationTypeDTO.stationType < 1 || stationTypeDTO.stationType > 3) throw new Exception($"æªå®ä¹çç«å°ç±»åã{stationTypeDTO.stationType}ãï¼1å
¥åºç«å°ï¼2åºåºç«å°ï¼3åºå
¥åºç«å°"); |
| | | Dt_StationManger stationManger = _stationMangerService.Repository.QueryFirst(x => x.StationCode == stationTypeDTO.stationCode) ?? throw new Exception($"æªæ¾å°ç«å°ç¼å·ã{stationTypeDTO.stationCode}ãä¿¡æ¯"); |
| | | stationManger.StationType = stationTypeDTO.stationType; |
| | | _stationMangerService.Repository.UpdateData(stationManger); |