|
|
@ -64,7 +64,7 @@ public class ProductionLineAppService |
|
|
|
var entity = await _repository.FirstOrDefaultAsync(p => p.LocationCode == locationCode).ConfigureAwait(false); |
|
|
|
if (entity == null) |
|
|
|
{ |
|
|
|
throw new UserFriendlyException($"【{locationCode}】库位不存在"); |
|
|
|
throw new UserFriendlyException($"生产线表中【{locationCode}】库位不存在"); |
|
|
|
} |
|
|
|
|
|
|
|
return ObjectMapper.Map<ProductionLine, ProductionLineDTO>(entity); |
|
|
|