Authored by tanling

add log

@@ -24,7 +24,7 @@ import java.util.*; @@ -24,7 +24,7 @@ import java.util.*;
24 public class BodySignatureCheckInterceptor implements HandlerInterceptor { 24 public class BodySignatureCheckInterceptor implements HandlerInterceptor {
25 25
26 26
27 - private final Logger logger = LoggerFactory.getLogger(SecurityInterceptor.class); 27 + private final Logger logger = LoggerFactory.getLogger(BodySignatureCheckInterceptor.class);
28 28
29 //读取配置文件中的private key 配置 29 //读取配置文件中的private key 配置
30 private Map<String, String> privateKeyMap = new HashMap<>(); 30 private Map<String, String> privateKeyMap = new HashMap<>();
@@ -42,6 +42,8 @@ public class ErpFastDeliveryController { @@ -42,6 +42,8 @@ public class ErpFastDeliveryController {
42 @IgnoreSession 42 @IgnoreSession
43 @RequestMapping("/getStorageInfo") 43 @RequestMapping("/getStorageInfo")
44 public ApiResponse getStorageInfo(@RequestBody FastDeliveryBatchOnShelfReq req){ 44 public ApiResponse getStorageInfo(@RequestBody FastDeliveryBatchOnShelfReq req){
  45 +
  46 + logger.info("getStorageInfo param {}", req);
45 List<StorageCheckResp> data = erpFastDeliveryService.getStorageInfo(req); 47 List<StorageCheckResp> data = erpFastDeliveryService.getStorageInfo(req);
46 return new ApiResponse.ApiResponseBuilder().data(data).build(); 48 return new ApiResponse.ApiResponseBuilder().data(data).build();
47 } 49 }
@@ -57,6 +59,8 @@ public class ErpFastDeliveryController { @@ -57,6 +59,8 @@ public class ErpFastDeliveryController {
57 @RequestMapping("/batchOnShelf") 59 @RequestMapping("/batchOnShelf")
58 public ApiResponse batchOnShelf(@RequestBody FastDeliveryBatchOnShelfReq req){ 60 public ApiResponse batchOnShelf(@RequestBody FastDeliveryBatchOnShelfReq req){
59 61
  62 + logger.info("batchOnShelf param {}", req);
  63 +
60 int code =200; 64 int code =200;
61 String msg = "成功"; 65 String msg = "成功";
62 66
@@ -87,6 +91,8 @@ public class ErpFastDeliveryController { @@ -87,6 +91,8 @@ public class ErpFastDeliveryController {
87 @RequestMapping("/singleDownSelf") 91 @RequestMapping("/singleDownSelf")
88 public ApiResponse singleDownSelf(@RequestBody FastDeliveryDownShelfReq req){ 92 public ApiResponse singleDownSelf(@RequestBody FastDeliveryDownShelfReq req){
89 93
  94 + logger.info("singleDownSelf param {}", req);
  95 +
90 boolean result = erpFastDeliveryService.singleDownSelf(req); 96 boolean result = erpFastDeliveryService.singleDownSelf(req);
91 String msg = "下架成功"; 97 String msg = "下架成功";
92 if (!result) { 98 if (!result) {
@@ -106,6 +112,8 @@ public class ErpFastDeliveryController { @@ -106,6 +112,8 @@ public class ErpFastDeliveryController {
106 @RequestMapping("/singleAdjustPrice") 112 @RequestMapping("/singleAdjustPrice")
107 public ApiResponse singleAdjustPrice(@RequestBody FastDeliveryAdjustPriceReq req){ 113 public ApiResponse singleAdjustPrice(@RequestBody FastDeliveryAdjustPriceReq req){
108 114
  115 + logger.info("singleAdjustPrice param {}", req);
  116 +
109 boolean result = erpFastDeliveryService.singleAdjustPrice(req); 117 boolean result = erpFastDeliveryService.singleAdjustPrice(req);
110 String msg = "调价成功"; 118 String msg = "调价成功";
111 if (!result) { 119 if (!result) {
@@ -125,6 +133,8 @@ public class ErpFastDeliveryController { @@ -125,6 +133,8 @@ public class ErpFastDeliveryController {
125 @RequestMapping("/getLowestPrice") 133 @RequestMapping("/getLowestPrice")
126 public ApiResponse getLowestPrice(@RequestBody FastDeliveryLeastPriceReq req){ 134 public ApiResponse getLowestPrice(@RequestBody FastDeliveryLeastPriceReq req){
127 135
  136 + logger.info("getLowestPrice param {}", req);
  137 +
128 List<StorageInfoResp> result = erpFastDeliveryService.getLeastPriceByProductCode(req); 138 List<StorageInfoResp> result = erpFastDeliveryService.getLeastPriceByProductCode(req);
129 return new ApiResponse.ApiResponseBuilder().data(result).code(200).build(); 139 return new ApiResponse.ApiResponseBuilder().data(result).code(200).build();
130 } 140 }
@@ -139,6 +149,8 @@ public class ErpFastDeliveryController { @@ -139,6 +149,8 @@ public class ErpFastDeliveryController {
139 @RequestMapping("/getShelfInfo") 149 @RequestMapping("/getShelfInfo")
140 public ApiResponse getShelfInfo(@RequestBody FastDeliveryGetShelfReq req){ 150 public ApiResponse getShelfInfo(@RequestBody FastDeliveryGetShelfReq req){
141 151
  152 + logger.info("getShelfInfo param {}", req);
  153 +
142 FastDeliveryGetShelfDetailResp data = erpFastDeliveryService.getShelfInfo(req); 154 FastDeliveryGetShelfDetailResp data = erpFastDeliveryService.getShelfInfo(req);
143 155
144 return new ApiResponse.ApiResponseBuilder().data(data).code(200).build(); 156 return new ApiResponse.ApiResponseBuilder().data(data).code(200).build();