Authored by tanling

add log

... ... @@ -24,7 +24,7 @@ import java.util.*;
public class BodySignatureCheckInterceptor implements HandlerInterceptor {
private final Logger logger = LoggerFactory.getLogger(SecurityInterceptor.class);
private final Logger logger = LoggerFactory.getLogger(BodySignatureCheckInterceptor.class);
//读取配置文件中的private key 配置
private Map<String, String> privateKeyMap = new HashMap<>();
... ...
... ... @@ -42,6 +42,8 @@ public class ErpFastDeliveryController {
@IgnoreSession
@RequestMapping("/getStorageInfo")
public ApiResponse getStorageInfo(@RequestBody FastDeliveryBatchOnShelfReq req){
logger.info("getStorageInfo param {}", req);
List<StorageCheckResp> data = erpFastDeliveryService.getStorageInfo(req);
return new ApiResponse.ApiResponseBuilder().data(data).build();
}
... ... @@ -57,6 +59,8 @@ public class ErpFastDeliveryController {
@RequestMapping("/batchOnShelf")
public ApiResponse batchOnShelf(@RequestBody FastDeliveryBatchOnShelfReq req){
logger.info("batchOnShelf param {}", req);
int code =200;
String msg = "成功";
... ... @@ -87,6 +91,8 @@ public class ErpFastDeliveryController {
@RequestMapping("/singleDownSelf")
public ApiResponse singleDownSelf(@RequestBody FastDeliveryDownShelfReq req){
logger.info("singleDownSelf param {}", req);
boolean result = erpFastDeliveryService.singleDownSelf(req);
String msg = "下架成功";
if (!result) {
... ... @@ -106,6 +112,8 @@ public class ErpFastDeliveryController {
@RequestMapping("/singleAdjustPrice")
public ApiResponse singleAdjustPrice(@RequestBody FastDeliveryAdjustPriceReq req){
logger.info("singleAdjustPrice param {}", req);
boolean result = erpFastDeliveryService.singleAdjustPrice(req);
String msg = "调价成功";
if (!result) {
... ... @@ -125,6 +133,8 @@ public class ErpFastDeliveryController {
@RequestMapping("/getLowestPrice")
public ApiResponse getLowestPrice(@RequestBody FastDeliveryLeastPriceReq req){
logger.info("getLowestPrice param {}", req);
List<StorageInfoResp> result = erpFastDeliveryService.getLeastPriceByProductCode(req);
return new ApiResponse.ApiResponseBuilder().data(result).code(200).build();
}
... ... @@ -139,6 +149,8 @@ public class ErpFastDeliveryController {
@RequestMapping("/getShelfInfo")
public ApiResponse getShelfInfo(@RequestBody FastDeliveryGetShelfReq req){
logger.info("getShelfInfo param {}", req);
FastDeliveryGetShelfDetailResp data = erpFastDeliveryService.getShelfInfo(req);
return new ApiResponse.ApiResponseBuilder().data(data).code(200).build();
... ...