|
@@ -5,9 +5,7 @@ import com.huimv.produce.produce.service.IWeight;
|
|
import com.huimv.produce.produce.utils.DateUtil;
|
|
import com.huimv.produce.produce.utils.DateUtil;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
-import org.springframework.web.bind.annotation.RequestParam;
|
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import java.text.ParseException;
|
|
import java.text.ParseException;
|
|
|
|
|
|
@@ -20,7 +18,7 @@ import java.text.ParseException;
|
|
* @Create : 2020-12-25
|
|
* @Create : 2020-12-25
|
|
**/
|
|
**/
|
|
@RestController
|
|
@RestController
|
|
-@RequestMapping(value = "/weight")
|
|
|
|
|
|
+@RequestMapping(value = "/weight",method = RequestMethod.GET)
|
|
@Slf4j
|
|
@Slf4j
|
|
public class WeightController {
|
|
public class WeightController {
|
|
@Autowired
|
|
@Autowired
|
|
@@ -35,7 +33,7 @@ public class WeightController {
|
|
// }
|
|
// }
|
|
|
|
|
|
// 读取前N天的记录
|
|
// 读取前N天的记录
|
|
- @RequestMapping(value = "/getManyDayWeight")
|
|
|
|
|
|
+ @GetMapping("/getManyDayWeight")
|
|
public Result getManyDayWeight(@RequestParam("days") Integer days,
|
|
public Result getManyDayWeight(@RequestParam("days") Integer days,
|
|
@RequestParam("poundType") String poundType) throws ParseException {
|
|
@RequestParam("poundType") String poundType) throws ParseException {
|
|
//
|
|
//
|
|
@@ -43,7 +41,7 @@ public class WeightController {
|
|
}
|
|
}
|
|
|
|
|
|
//读取蛋场称重明细明细
|
|
//读取蛋场称重明细明细
|
|
- @RequestMapping(value = "/getWeightDetails")
|
|
|
|
|
|
+ @GetMapping("/getWeightDetails")
|
|
public Result getWeightDetails(@RequestParam("poundType") String poundType,
|
|
public Result getWeightDetails(@RequestParam("poundType") String poundType,
|
|
@RequestParam("carNumber") String carNumber,
|
|
@RequestParam("carNumber") String carNumber,
|
|
@RequestParam("consigner") String consigner,
|
|
@RequestParam("consigner") String consigner,
|