| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "获得设备类型") |
| | | @Parameter(name = "id", description = "编号", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:dv-machinery-type:query')") |
| | | public CommonResult<MesDvMachineryTypeRespVO> getMachineryType(@RequestParam("id") Long id) { |
| | | MesDvMachineryTypeDO machineryType = machineryTypeService.getMachineryType(id); |
| | | return success(BeanUtils.toBean(machineryType, MesDvMachineryTypeRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/list") |
| | | @Operation(summary = "获得设备类型列表") |
| | | @PreAuthorize("@ss.hasPermission('mes:dv-machinery-type:query')") |
| | | public CommonResult<List<MesDvMachineryTypeRespVO>> getMachineryTypeList(@Valid MesDvMachineryTypeListReqVO listReqVO) { |
| | | List<MesDvMachineryTypeDO> list = machineryTypeService.getMachineryTypeList(listReqVO); |
| | | return success(BeanUtils.toBean(list, MesDvMachineryTypeRespVO.class)); |