|
@@ -1,6 +1,7 @@
|
|
package com.huimv.receiver.farm.controller;
|
|
package com.huimv.receiver.farm.controller;
|
|
|
|
|
|
import com.huimv.receiver.farm.service.IWeight;
|
|
import com.huimv.receiver.farm.service.IWeight;
|
|
|
|
+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.*;
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
@@ -14,6 +15,7 @@ import org.springframework.web.bind.annotation.*;
|
|
**/
|
|
**/
|
|
@CrossOrigin
|
|
@CrossOrigin
|
|
@RestController
|
|
@RestController
|
|
|
|
+@Slf4j
|
|
@RequestMapping(value = "/receiver/farm/weight")
|
|
@RequestMapping(value = "/receiver/farm/weight")
|
|
public class WeightController {
|
|
public class WeightController {
|
|
@Autowired
|
|
@Autowired
|
|
@@ -22,6 +24,7 @@ public class WeightController {
|
|
//保存日总重
|
|
//保存日总重
|
|
@RequestMapping(value = "/putDayWeight",method = RequestMethod.POST)
|
|
@RequestMapping(value = "/putDayWeight",method = RequestMethod.POST)
|
|
public void putDayWeight(@RequestParam(value = "data",required = true) String data){
|
|
public void putDayWeight(@RequestParam(value = "data",required = true) String data){
|
|
|
|
+ log.info("接收每天总重>>"+data);
|
|
//
|
|
//
|
|
weight.saveDayWeight(data);
|
|
weight.saveDayWeight(data);
|
|
}
|
|
}
|
|
@@ -29,6 +32,7 @@ public class WeightController {
|
|
//保存批次总重
|
|
//保存批次总重
|
|
@RequestMapping(value = "/putBatchWeight",method = RequestMethod.POST)
|
|
@RequestMapping(value = "/putBatchWeight",method = RequestMethod.POST)
|
|
public void putBatchWeight(@RequestParam(value = "data",required = true) String data){
|
|
public void putBatchWeight(@RequestParam(value = "data",required = true) String data){
|
|
|
|
+ log.info("接收批次总重>>"+data);
|
|
//
|
|
//
|
|
weight.saveBatchWeight(data);
|
|
weight.saveBatchWeight(data);
|
|
}
|
|
}
|