Browse Source

添加参数接收显示语句。

zhuoning 3 năm trước cách đây
mục cha
commit
b96e7b419f

+ 4 - 0
huimv-farm-receiver/src/main/java/com/huimv/receiver/farm/controller/WeightController.java

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