Browse Source

#设备过滤

zhongwei
yang_shj 2 years ago
parent
commit
c5a288d6d8
  1. 10
      hzims-service/equipment/src/main/java/com/hnac/hzims/equipment/controller/EmInfoController.java

10
hzims-service/equipment/src/main/java/com/hnac/hzims/equipment/controller/EmInfoController.java

@ -228,4 +228,14 @@ public class EmInfoController extends BladeController {
public R<EmInfoEntity> getEmInfoByCode(@RequestParam(value = "emCode") String emCode){
return em_infoService.getEmInfoByCode(emCode);
}
/**
* 查询设备名称
*/
@GetMapping("/getDevices")
@ApiOperationSupport(order = 4)
@ApiOperation(value = "获取设备", notes = "传入设备列表集合")
public R getDevices(@RequestParam(value ="codes") List<String> codes) {
return R.data(em_infoService.listByCodes(codes));
}
}

Loading…
Cancel
Save