zhuoning пре 2 година
родитељ
комит
3228246b7b

+ 2 - 1
huimv-farm-produce/src/main/java/com/huimv/produce/warning/controller/BaseWarningInfoController.java

@@ -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);
     }