|
|
|
@ -6,6 +6,7 @@ import com.supervision.model.ConfigTreatmentPlan;
|
|
|
|
|
import io.swagger.annotations.Api;
|
|
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
|
|
import lombok.Value;
|
|
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
|
|
@ -24,23 +25,16 @@ public class TreatmentPlanManageController {
|
|
|
|
|
|
|
|
|
|
@ApiOperation("查询处置计划树")
|
|
|
|
|
@GetMapping("/queryTree")
|
|
|
|
|
public List<TreeNode> queryTree(@RequestParam("处置方式") Integer disposalMethod) {
|
|
|
|
|
public List<TreeNode> queryTree(@RequestParam(name = "disposalMethod",required = false) Integer disposalMethod) {
|
|
|
|
|
|
|
|
|
|
return configTreatmentPlanManageService.queryTree(disposalMethod);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ApiOperation("查询疾病处置计划列表")
|
|
|
|
|
@GetMapping("/queryList")
|
|
|
|
|
public List<ConfigTreatmentPlan> queryList(@RequestParam("处置方式") Integer disposalMethod) {
|
|
|
|
|
|
|
|
|
|
return configTreatmentPlanManageService.queryList(disposalMethod);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ApiOperation("根据id查询处置计划详情")
|
|
|
|
|
@GetMapping("/findById")
|
|
|
|
|
public TreeNode findById(@RequestParam("处置方式") String id) {
|
|
|
|
|
public ConfigTreatmentPlan findById(@RequestParam("处置方式") String id) {
|
|
|
|
|
|
|
|
|
|
return configTreatmentPlanManageService.findById(id);
|
|
|
|
|
|
|
|
|
|