| | |
| | | return vm_list; |
| | | } |
| | | |
| | | /* /// <summary> |
| | | /// 通过产品ID 获取 |
| | | /// </summary> |
| | | [Route("GetByPumpPartID@V1.0")] |
| | | [HttpGet] |
| | | public List<AssetsPumpPropContentDto> GetByPumpPartID(long pumpPartId) |
| | | { |
| | | var list = _service.GetByPartID(pumpPartId); |
| | | var vm_list = list?.Select(x => new AssetsPumpPropContentDto(x)).ToList(); |
| | | return vm_list; |
| | | }*/ |
| | | /// <summary> |
| | | /// 通过产品ID 获取 |
| | | /// </summary> |
| | | [Route("GetByPumpPartID@V1.0")] |
| | | [HttpGet] |
| | | public List<AssetsPumpPropContentDto> GetByPumpPartID(long pumpPartId) |
| | | { |
| | | var list = _service.GetByPartID(pumpPartId); |
| | | var vm_list = list?.Select(x => new AssetsPumpPropContentDto(x)).ToList(); |
| | | return vm_list; |
| | | } |
| | | |
| | | #endregion Query |
| | | |