|
|
@@ -1,5 +1,12 @@
|
|
|
package com.coffee.bus.controller;
|
|
|
|
|
|
+import com.baomidou.mybatisplus.core.mapper.Mapper;
|
|
|
+import com.coffee.bus.entity.BusDrugEntity;
|
|
|
+import com.coffee.bus.service.LocalBusDrugService;
|
|
|
+import com.coffee.bus.service.LocalBusFormulaService;
|
|
|
+import com.coffee.common.crud.BaseService;
|
|
|
+import com.coffee.common.crud.controller.BaseCrudController;
|
|
|
+import com.coffee.common.result.R;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import lombok.AllArgsConstructor;
|
|
|
@@ -7,6 +14,8 @@ import org.springframework.web.bind.annotation.GetMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
/**
|
|
|
* @author lifang
|
|
|
* @version 1.0.0
|
|
|
@@ -18,10 +27,19 @@ import org.springframework.web.bind.annotation.RestController;
|
|
|
@AllArgsConstructor
|
|
|
@RequestMapping("/bus/drug")
|
|
|
@Api(tags = "药品管理",description = "统一权限前缀(bus:drug),例如新增bus:drug:add")
|
|
|
-public class BusDrugController {
|
|
|
+public class BusDrugController extends BaseCrudController<BusDrugEntity,String> {
|
|
|
+ private final LocalBusDrugService scoreService;
|
|
|
+
|
|
|
+
|
|
|
@GetMapping
|
|
|
@ApiOperation("改接口无意义,当该模块下存在接口时,将该接口删除")
|
|
|
public void show(){
|
|
|
|
|
|
}
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public BaseService<? extends Mapper<BusDrugEntity>, BusDrugEntity, String> getService() {
|
|
|
+ return scoreService;
|
|
|
+ }
|
|
|
+
|
|
|
}
|