|
@@ -2,6 +2,7 @@ package com.fdkankan.fusion.controller;
|
|
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
|
|
|
+import com.fdkankan.fusion.aop.PushJm;
|
|
|
import com.fdkankan.fusion.common.ResultCode;
|
|
|
import com.fdkankan.fusion.common.ResultData;
|
|
|
import com.fdkankan.fusion.entity.FusionMeter;
|
|
@@ -36,11 +37,13 @@ public class FusionMeterController {
|
|
|
}
|
|
|
|
|
|
@PostMapping("/add")
|
|
|
+ @PushJm(event_type = "添加测量")
|
|
|
public ResultData add(@RequestBody FusionMeter fusionMeter){
|
|
|
return ResultData.ok( fusionMeterService.add(fusionMeter));
|
|
|
}
|
|
|
|
|
|
@PostMapping("/updateMeter")
|
|
|
+ @PushJm(event_type = "修改测量")
|
|
|
public ResultData updateMeter(@RequestBody FusionMeter fusionMeter){
|
|
|
if(fusionMeter.getFusionMeterId() == null ){
|
|
|
throw new BusinessException(ResultCode.MISSING_REQUIRED_PARAMETERS);
|
|
@@ -60,6 +63,7 @@ public class FusionMeterController {
|
|
|
return ResultData.ok();
|
|
|
}
|
|
|
@PostMapping("/hide")
|
|
|
+ @PushJm(event_type = "修改测量")
|
|
|
public ResultData hide( @RequestBody FusionMeter fusionMeter){
|
|
|
if((fusionMeter.getFusionMeterId() == null&& fusionMeter.getFusionId()== null) || fusionMeter.getHide()== null){
|
|
|
throw new BusinessException(ResultCode.MISSING_REQUIRED_PARAMETERS);
|
|
@@ -77,6 +81,7 @@ public class FusionMeterController {
|
|
|
}
|
|
|
|
|
|
@PostMapping("/delete")
|
|
|
+ @PushJm(event_type = "删除测量")
|
|
|
public ResultData delete(@RequestBody FusionMeter fusionMeter){
|
|
|
if(fusionMeter.getFusionMeterId() == null ){
|
|
|
throw new BusinessException(ResultCode.MISSING_REQUIRED_PARAMETERS);
|