|
@@ -2,10 +2,9 @@ package com.fjhx.controller.abnormal;
|
|
|
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.fjhx.base.Condition;
|
|
|
-import org.springblade.core.tool.api.R;
|
|
|
-import com.fjhx.entity.abnormal.AbnormalDetails;
|
|
|
import com.fjhx.params.abnormal.AbnormalDetailsVo;
|
|
|
import com.fjhx.service.abnormal.AbnormalDetailsService;
|
|
|
+import org.springblade.core.tool.api.R;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
@@ -29,17 +28,7 @@ public class AbnormalDetailsController {
|
|
|
@Autowired
|
|
|
private AbnormalDetailsService abnormalDetailsService;
|
|
|
|
|
|
-// @PostMapping("/page")
|
|
|
-// public R page(@RequestBody Map<String, Object> condition){
|
|
|
-// Page<AbnormalDetails> result = abnormalDetailsService.getPage(condition);
|
|
|
-// return R.success(result);
|
|
|
-// }
|
|
|
-//
|
|
|
-// @PostMapping("/add")
|
|
|
-// public R add(@RequestBody AbnormalDetailsVo abnormalDetailsVo){
|
|
|
-// abnormalDetailsService.add(abnormalDetailsVo);
|
|
|
-// return R.success();
|
|
|
-// }
|
|
|
+
|
|
|
//
|
|
|
// @PostMapping("/edit")
|
|
|
// public R edit(@RequestBody AbnormalDetailsVo abnormalDetailsVo){
|
|
@@ -55,10 +44,16 @@ public class AbnormalDetailsController {
|
|
|
|
|
|
|
|
|
@PostMapping("/page")
|
|
|
- public R page(@RequestBody Condition condition){
|
|
|
- Page<AbnormalDetails> result = abnormalDetailsService.getPage(condition);
|
|
|
+ public R page(@RequestBody Condition condition) {
|
|
|
+ Page<Map<String, Object>> result = abnormalDetailsService.getPage(condition);
|
|
|
return R.success(result);
|
|
|
}
|
|
|
|
|
|
+ @PostMapping("/add")
|
|
|
+ public R add(@RequestBody AbnormalDetailsVo abnormalDetailsVo) {
|
|
|
+ abnormalDetailsService.add(abnormalDetailsVo);
|
|
|
+ return R.success();
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
|