|
@@ -19,7 +19,6 @@ import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import lombok.AllArgsConstructor;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
-import org.springframework.validation.annotation.Validated;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
|
|
@@ -69,10 +68,10 @@ public class DeviceDataServiceImpl extends ServiceImpl<DeviceDataMapper, DeviceD
|
|
|
return R.ok(toPageBean(DeviceDataDto.Vo.class, iPage));
|
|
|
}
|
|
|
|
|
|
- @PostMapping("saveOrAccum")
|
|
|
+ @Override
|
|
|
@ApiOperation("添加/累加")
|
|
|
@Lock(value = "saveOrAccum.deviceId", prefix = "data_save_accum_")
|
|
|
- public R saveOrAccum(@RequestBody @Validated DeviceDataDto.SaveOrAccum saveOrAccum) {
|
|
|
+ public R saveOrAccum(DeviceDataDto.SaveOrAccum saveOrAccum) {
|
|
|
LocalDateTime now = LocalDateTime.now();
|
|
|
String stringTime = DataTime.toString(now, "yyyyMMdd");
|
|
|
//获取字典
|