|
@@ -3,10 +3,7 @@ package com.huimv.env.environ.controller;
|
|
import com.huimv.common.result.Result;
|
|
import com.huimv.common.result.Result;
|
|
import com.huimv.env.environ.service.IEnviron;
|
|
import com.huimv.env.environ.service.IEnviron;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
-import org.springframework.web.bind.annotation.CrossOrigin;
|
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
-import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
/**
|
|
/**
|
|
* @Project : huimv.shiwan
|
|
* @Project : huimv.shiwan
|
|
@@ -34,8 +31,8 @@ public class EnvironController {
|
|
* @Time : 22:25
|
|
* @Time : 22:25
|
|
*/
|
|
*/
|
|
@RequestMapping(value = "/getLastEnviron",method = RequestMethod.GET)
|
|
@RequestMapping(value = "/getLastEnviron",method = RequestMethod.GET)
|
|
- public Result getLastEnviron(){
|
|
|
|
|
|
+ public Result getLastEnviron(@RequestParam(value = "farmId",required = true) Integer farmId){
|
|
//
|
|
//
|
|
- return environ.getLastEnviron();
|
|
|
|
|
|
+ return environ.getLastEnviron(farmId);
|
|
}
|
|
}
|
|
}
|
|
}
|