检查方法、检查部位接口部分细节修改
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
package com.openhis.web.check.appservice;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
import com.core.common.core.domain.R;
|
||||
import com.openhis.check.domain.CheckMethod;
|
||||
import com.openhis.web.check.dto.CheckMethodDto;
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
package com.openhis.web.check.appservice;
|
||||
|
||||
import com.core.common.core.domain.R;
|
||||
import com.openhis.check.service.ICheckPartService;
|
||||
import com.openhis.web.check.dto.CheckPartDto;
|
||||
|
||||
public interface ICheckPartAppService {
|
||||
|
||||
@@ -3,7 +3,6 @@ package com.openhis.web.check.controller;
|
||||
import com.core.common.core.domain.R;
|
||||
import com.openhis.web.check.appservice.ICheckMethodAppService;
|
||||
import com.openhis.web.check.dto.CheckMethodDto;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
|
||||
@@ -1,9 +1,7 @@
|
||||
package com.openhis.web.check.controller;
|
||||
|
||||
import com.core.common.core.domain.R;
|
||||
import com.openhis.check.service.ICheckPartService;
|
||||
import com.openhis.web.check.appservice.ICheckPartAppService;
|
||||
import com.openhis.web.check.dto.CheckMethodDto;
|
||||
import com.openhis.web.check.dto.CheckPartDto;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
@@ -22,7 +20,7 @@ public class CheckPartController {
|
||||
* @Param检查方法 此处参数注释有问题,完全是按照需求给的图来注释的
|
||||
*/
|
||||
@GetMapping("/list")
|
||||
public R<?> getCheckMethodList(){
|
||||
public R<?> getCheckPartList(){
|
||||
return R.ok(checkPartAppService.getCheckPartList());
|
||||
}
|
||||
|
||||
@@ -31,7 +29,7 @@ public class CheckPartController {
|
||||
* @Param
|
||||
*/
|
||||
@PostMapping("/add")
|
||||
public R<?> addCheckMethod(@RequestBody CheckPartDto checkPartDto){
|
||||
public R<?> addCheckPart(@RequestBody CheckPartDto checkPartDto){
|
||||
return R.ok(checkPartAppService.addCheckPart(checkPartDto));
|
||||
}
|
||||
|
||||
@@ -40,7 +38,7 @@ public class CheckPartController {
|
||||
* @Param code代码
|
||||
*/
|
||||
@DeleteMapping("/delete/{code}")
|
||||
public R<?> deleteCheckMethod(@PathVariable Long code){
|
||||
public R<?> deleteCheckPart(@PathVariable Long code){
|
||||
return R.ok(checkPartAppService.removeCheckPart(code));
|
||||
}
|
||||
|
||||
@@ -49,7 +47,7 @@ public class CheckPartController {
|
||||
* @Param
|
||||
*/
|
||||
@PutMapping("/update")
|
||||
public R<?> updateCheckMethod(@RequestBody CheckPartDto checkMethodDto){
|
||||
return R.ok(checkPartAppService.updateCheckPart(checkMethodDto));
|
||||
public R<?> updateCheckPart(@RequestBody CheckPartDto checkPartDto){
|
||||
return R.ok(checkPartAppService.updateCheckPart(checkPartDto));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user