| | |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.validation.constraints.NotNull; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | |
| | | * @author 江苏鵷雏网络科技有限公司 |
| | | * @since 2023-07-20 |
| | | */ |
| | | @Api(tags = "实验室-->设备台账-->3、设备码点") |
| | | @Api(tags = "实验室-->1、设备台账-->3、设备码点") |
| | | @RestController |
| | | @RequestMapping("/equipment-point") |
| | | public class EquipmentPointController { |
| | |
| | | return Result.fail("添加【"+ equipmentPoint.getEquipmentPointName() +"】失败!设备码点编码重复!"); |
| | | } |
| | | |
| | | @ApiOperation("查询所有设备码点数据") |
| | | @ApiOperation("根据仪器Id查询对应设备码点数据") |
| | | @ApiImplicitParams(value = { |
| | | @ApiImplicitParam(name = "InstrumentId", value = "仪器模块Id", dataTypeClass = String.class, required = true) |
| | | }) |
| | | @GetMapping("/list") |
| | | public Result<?> getListEquipmentPointInformation() { |
| | | List<Map<String, Object>> list = equipmentPointService.getListEquipmentPointInformation(); |
| | | public Result<?> getListEquipmentPointInformation(String InstrumentId) { |
| | | List<Map<String, Object>> list = equipmentPointService.getListEquipmentPointInformation(InstrumentId); |
| | | return Result.success(list); |
| | | } |
| | | |