|
@@ -9,6 +9,7 @@ import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
+import java.text.ParseException;
|
|
|
import java.util.Map;
|
|
|
|
|
|
/**
|
|
@@ -62,7 +63,7 @@ public class BaseWarningInfoController {
|
|
|
return warningInfoService.getLastWarning(map);
|
|
|
}
|
|
|
@PostMapping("/newAlarm")
|
|
|
- public Result newAlarm(@RequestBody Map<String, String> map ) {
|
|
|
+ public Result newAlarm(@RequestBody Map<String, String> map ) throws ParseException {
|
|
|
return warningInfoService.newAlarm(map);
|
|
|
}
|
|
|
|