|
@@ -2,7 +2,9 @@ package com.coffee.bus.controller;
|
|
|
|
|
|
|
|
import cn.dev33.satoken.SaManager;
|
|
import cn.dev33.satoken.SaManager;
|
|
|
import cn.dev33.satoken.stp.StpLogic;
|
|
import cn.dev33.satoken.stp.StpLogic;
|
|
|
|
|
+import cn.hutool.core.util.StrUtil;
|
|
|
import com.baomidou.mybatisplus.core.mapper.Mapper;
|
|
import com.baomidou.mybatisplus.core.mapper.Mapper;
|
|
|
|
|
+import com.coffee.bus.controller.vo.DeviceManualVo;
|
|
|
import com.coffee.bus.entity.BusDeviceManualEntity;
|
|
import com.coffee.bus.entity.BusDeviceManualEntity;
|
|
|
import com.coffee.bus.entity.BusDrugEntity;
|
|
import com.coffee.bus.entity.BusDrugEntity;
|
|
|
import com.coffee.bus.service.LocalBusDeviceManualService;
|
|
import com.coffee.bus.service.LocalBusDeviceManualService;
|
|
@@ -10,8 +12,12 @@ import com.coffee.bus.service.LocalBusDrugService;
|
|
|
import com.coffee.common.crud.BaseService;
|
|
import com.coffee.common.crud.BaseService;
|
|
|
import com.coffee.common.crud.controller.BaseCrudController;
|
|
import com.coffee.common.crud.controller.BaseCrudController;
|
|
|
import com.coffee.common.crud.controller.BaseQueryController;
|
|
import com.coffee.common.crud.controller.BaseQueryController;
|
|
|
|
|
+import com.coffee.common.result.R;
|
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.Api;
|
|
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
|
import lombok.AllArgsConstructor;
|
|
import lombok.AllArgsConstructor;
|
|
|
|
|
+import org.springframework.web.bind.annotation.PostMapping;
|
|
|
|
|
+import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
|
@@ -25,7 +31,7 @@ import org.springframework.web.bind.annotation.RestController;
|
|
|
@RestController
|
|
@RestController
|
|
|
@AllArgsConstructor
|
|
@AllArgsConstructor
|
|
|
@RequestMapping("/device/manual")
|
|
@RequestMapping("/device/manual")
|
|
|
-@Api(tags = "无泵管理(即手动添加设备管理)",description = "统一权限前缀(device:manual),device:manual:add")
|
|
|
|
|
|
|
+@Api(tags = "其他监控(即手动添加设备管理)",description = "统一权限前缀(device:manual),device:manual:add")
|
|
|
public class BusDeviceManualController implements BaseQueryController<BusDeviceManualEntity,String> {
|
|
public class BusDeviceManualController implements BaseQueryController<BusDeviceManualEntity,String> {
|
|
|
private final LocalBusDeviceManualService deviceManualService;
|
|
private final LocalBusDeviceManualService deviceManualService;
|
|
|
|
|
|
|
@@ -50,4 +56,17 @@ public class BusDeviceManualController implements BaseQueryController<BusDeviceM
|
|
|
return deviceManualService;
|
|
return deviceManualService;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ @PostMapping("/edit")
|
|
|
|
|
+ @ApiOperation(value = "编辑病人信息",notes = "编辑病人信息,权限【device:manual:edit】")
|
|
|
|
|
+ public R edit(@RequestBody DeviceManualVo entity){
|
|
|
|
|
+// deviceManualService.update(entity.getManual(),entity.getClinic());
|
|
|
|
|
+ return R.success();
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ @PostMapping("/save")
|
|
|
|
|
+ @ApiOperation(value = "新增病人信息",notes = "新增病人信息,权限【device:manual:save】")
|
|
|
|
|
+ public R save(@RequestBody DeviceManualVo entity){
|
|
|
|
|
+// deviceManualService.save(entity.getManual(),entity.getClinic());
|
|
|
|
|
+ return R.success();
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|