Commit ebc380a7 by zhiheng.zhang

Merge branch 'feature/20210720-购物车日志修改-张志恒'

parents 393ecd68 ad43f2f4
...@@ -34,7 +34,7 @@ public class CallBackController { ...@@ -34,7 +34,7 @@ public class CallBackController {
private OrderCallBackService orderCallBackService; private OrderCallBackService orderCallBackService;
@PostMapping("/order") @PostMapping("/order")
@ApiAnnotation(logMessage = "/callback/order",printInfoLog = true) @ApiAnnotation(logMessage = "orderCallBackHandle",printInfoLog = true)
public BaseResponse orderCallBackHandle(@Valid @RequestBody @LogParams OrderCallBackRequestVo requestVo) { public BaseResponse orderCallBackHandle(@Valid @RequestBody @LogParams OrderCallBackRequestVo requestVo) {
return orderCallBackService.orderCallBackHandle(requestVo); return orderCallBackService.orderCallBackHandle(requestVo);
} }
......
...@@ -30,8 +30,9 @@ ...@@ -30,8 +30,9 @@
<dependency> <dependency>
<groupId>com.freemud.application.service.sdk</groupId> <groupId>com.freemud.application.service.sdk</groupId>
<artifactId>sdk-common-base</artifactId> <artifactId>sdk-common-base</artifactId>
<version>2.0.BETA</version> <version>2.2.BETA</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.freemud.application.service.sdk</groupId> <groupId>com.freemud.application.service.sdk</groupId>
<artifactId>productcenter-sdk</artifactId> <artifactId>productcenter-sdk</artifactId>
......
...@@ -9,18 +9,16 @@ import java.lang.annotation.*; ...@@ -9,18 +9,16 @@ import java.lang.annotation.*;
@Inherited @Inherited
public @interface IgnoreFeignLogAnnotation { public @interface IgnoreFeignLogAnnotation {
boolean printInfoLog() default true; String logMessage() default ""; // 输出方法名称,用以识别:Apollo临时开关temp-print-body-log-methods
/** boolean printInfoLog() default false; // 若设置为true,则会永久打印
* printLog 设置成true的时候,可以排除哪些状态码的响应不用打印响应报文,只会打印状态码
*
* @return
*/
String[] excludeStatusCodes() default "100";
String statusCodeFieldName() default "code"; String[] excludeStatusCodes() default "100"; // 设置系统除了100/200等正常状态码之外,依然会打印响应报文
String statusCodeFieldName() default "code"; // 兼容基础服务返回statusCode字段
String messageFieldName() default "message"; // 兼容基础服务返回message字段
String messageFieldName() default "message";
} }
...@@ -18,6 +18,9 @@ import com.freemud.api.assortment.datamanager.manager.customer.AssortmentCustome ...@@ -18,6 +18,9 @@ import com.freemud.api.assortment.datamanager.manager.customer.AssortmentCustome
import com.freemud.application.sdk.api.log.ErrorLog; import com.freemud.application.sdk.api.log.ErrorLog;
import com.freemud.application.sdk.api.log.ThirdPartyLog; import com.freemud.application.sdk.api.log.ThirdPartyLog;
import com.freemud.sdk.api.assortment.shoppingcart.util.ShoppingSdkLogUtil; import com.freemud.sdk.api.assortment.shoppingcart.util.ShoppingSdkLogUtil;
import com.google.common.collect.Lists;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang.exception.ExceptionUtils;
import org.aspectj.lang.ProceedingJoinPoint; import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.Signature; import org.aspectj.lang.Signature;
import org.aspectj.lang.annotation.Around; import org.aspectj.lang.annotation.Around;
...@@ -83,16 +86,16 @@ public class WebAspect { ...@@ -83,16 +86,16 @@ public class WebAspect {
/** /**
* 是否打印响应报文日志,默认是false,若为true会覆盖注解里面的{@link IgnoreFeignLogAnnotation}配置,输出响应报文里面所有的信息 * Apollo全局开关print-feign-response-body-log,一般是false,意思是全局都不打印响应报文,但是系统除了100/200等正常状态码之外,依然会打印响应报文,excludeStatusCodes = {ResponseCodeConstant.询问基础服务正常响应码}。
*/ */
@Value("${print-feign-response-body-log:false}") @Value("${print-feign-response-body-log:false}")
private volatile boolean printFeignResponseBodyLog = false; private volatile boolean printFeignResponseBodyLog = false;
/** /**
* 是否打印响应报文日志,默认是false,若为true会覆盖注解里面的{@link IgnoreFeignLogAnnotation}配置,输出响应报文里面所有的信息 * Apollo临时开关temp-feign-print-body-log-methods,平常都不想打印,只是偶尔想临时打印,使用添加logMessage = "aaa"的方法名称,用逗号拼接即可。
*/ */
@Value("${print-feign-response-body-log-shop-cart:false}") @Value("${temp-feign-print-body-log-methods:aaa,bbb}")
private volatile boolean printFeignResponseBodyLogForShopCart = false; private volatile List<String> tempFeignPrintBodyLogMethods = Lists.newArrayList();
@Pointcut("execution(* cn.freemud.controller..*.*(..))") @Pointcut("execution(* cn.freemud.controller..*.*(..))")
public void webAspect() { public void webAspect() {
...@@ -163,48 +166,13 @@ public class WebAspect { ...@@ -163,48 +166,13 @@ public class WebAspect {
@Around("clientLog()") @Around("clientLog()")
public Object doAround(ProceedingJoinPoint joinPoint) throws Throwable { public Object doAround(ProceedingJoinPoint joinPoint) throws Throwable {
/*long start = System.currentTimeMillis();
Object result = null;
try {
result = joinPoint.proceed();
} catch (Exception ex) {
throw ex;
}
try {
Signature sig = joinPoint.getSignature();
MethodSignature msig = null;
if (sig instanceof MethodSignature) {
msig = (MethodSignature) sig;
Method currentMethod = sig.getDeclaringType().getDeclaredMethod(msig.getName(), msig.getParameterTypes());
Object logReult = result;
// 打印第三方出参日志
if (!this.printFeignResponseBodyLogForShopCart) {
IgnoreFeignLogAnnotation logIgnore = currentMethod.getAnnotation(IgnoreFeignLogAnnotation.class);
if (logIgnore != null && logIgnore.printLog()) {
String statusCodeValue = org.apache.commons.beanutils.BeanUtils.getProperty(result, logIgnore.statusCodeFieldName());
String messageValue = org.apache.commons.beanutils.BeanUtils.getProperty(result, logIgnore.messageFieldName());
String[] excludeStatusCodes = logIgnore.excludeStatusCodes();
//当排除了这个状态码不打印响应的具体内容只会打印状态码和状态描述信息
if (!StringUtils.isEmpty(statusCodeValue) && this.containStatusCode(excludeStatusCodes, statusCodeValue)) {
logReult = result.getClass().newInstance();
org.apache.commons.beanutils.BeanUtils.setProperty(logReult, logIgnore.statusCodeFieldName(), statusCodeValue);
org.apache.commons.beanutils.BeanUtils.setProperty(logReult, logIgnore.messageFieldName(), messageValue);
}
}
}
ThirdPartyLog.infoConvertJson(LogThreadLocal.getTrackingNo(), SDKCommonBaseContextWare.getAppName(), start, System.currentTimeMillis(),
thirdPartLogVo.getUri(), thirdPartLogVo.getRequestBody(), logReult);
}
} catch (Exception e) {
}
return result;*/
long start = System.currentTimeMillis(); long start = System.currentTimeMillis();
Object result = null; Object result = null;
try { try {
result = joinPoint.proceed(); result = joinPoint.proceed();
} catch (Exception ex) { } catch (Exception ex) {
ThirdPartLogVo thirdPartLogVo = LogUtil.createThirdPartLogVo(joinPoint); ThirdPartLogVo thirdPartLogVo = LogUtil.createThirdPartLogVo(joinPoint);
ErrorLog.errorConvertJson(this.getClass(),thirdPartLogVo.getRequestBody(),ex); ErrorLog.printErrorLog(ex.getMessage(),thirdPartLogVo.getUri(),thirdPartLogVo.getRequestBody(),ex);
throw ex; throw ex;
} }
try { try {
...@@ -215,16 +183,14 @@ public class WebAspect { ...@@ -215,16 +183,14 @@ public class WebAspect {
Method currentMethod = sig.getDeclaringType().getDeclaredMethod(msig.getName(), msig.getParameterTypes()); Method currentMethod = sig.getDeclaringType().getDeclaredMethod(msig.getName(), msig.getParameterTypes());
Object logReult = result; Object logReult = result;
ThirdPartLogVo thirdPartLogVo = LogUtil.createThirdPartLogVo(joinPoint); ThirdPartLogVo thirdPartLogVo = LogUtil.createThirdPartLogVo(joinPoint);
String statusCodeValue = "ignore"; JSONObject json = JSON.parseObject(JSON.toJSONString(result));
String messageValue = "ignore"; String statusCodeValue = json.getString("code");
// 打印第三方出参日志 如果feign方法没有IgnoreFeignLogAnnotation注解,全部打日志,但是由于statusCodeValue = "ignore",是不是触发日志告警的 String messageValue = json.getString("message");
IgnoreFeignLogAnnotation logIgnore = currentMethod.getAnnotation(IgnoreFeignLogAnnotation.class); IgnoreFeignLogAnnotation logIgnore = currentMethod.getAnnotation(IgnoreFeignLogAnnotation.class);
if (logIgnore != null) { if (logIgnore != null) {
JSONObject json = JSON.parseObject(JSON.toJSONString(result));
statusCodeValue = json.getString(logIgnore.statusCodeFieldName()); statusCodeValue = json.getString(logIgnore.statusCodeFieldName());
messageValue = json.getString(logIgnore.messageFieldName()); messageValue = json.getString(logIgnore.messageFieldName());
if (!this.printFeignResponseBodyLog && !logIgnore.printInfoLog()) { if (!this.printFeignResponseBodyLog && !logIgnore.printInfoLog() && !this.tempFeignPrintBodyLogMethods.contains(logIgnore.logMessage())) {
//todo 当排除了这个状态码不打印响应的具体内容只会打印状态码和状态描述信息
String[] excludeStatusCodes = logIgnore.excludeStatusCodes(); String[] excludeStatusCodes = logIgnore.excludeStatusCodes();
if (!StringUtils.isEmpty(statusCodeValue) && this.containStatusCode(excludeStatusCodes, statusCodeValue)) { if (!StringUtils.isEmpty(statusCodeValue) && this.containStatusCode(excludeStatusCodes, statusCodeValue)) {
logReult = result.getClass().newInstance(); logReult = result.getClass().newInstance();
...@@ -237,7 +203,7 @@ public class WebAspect { ...@@ -237,7 +203,7 @@ public class WebAspect {
thirdPartLogVo.getUri(), thirdPartLogVo.getRequestBody(), logReult); thirdPartLogVo.getUri(), thirdPartLogVo.getRequestBody(), logReult);
} }
} catch (Exception e) { } catch (Exception e) {
ShoppingSdkLogUtil.errorLog("WebAspect Feign Log Ignore error {}",e, null); ErrorLog.errorConvertJson(this.getClass(),"WebAspect Feign Log Ignore error {}"+ExceptionUtils.getMessage(e),e);
} }
return result; return result;
} }
......
...@@ -30,28 +30,28 @@ public interface ActivityClient { ...@@ -30,28 +30,28 @@ public interface ActivityClient {
* 统一活动查询接口 * 统一活动查询接口
*/ */
@PostMapping("/activity/query") @PostMapping("/activity/query")
@IgnoreFeignLogAnnotation(excludeStatusCodes = {ResponseCodeConstant.RESPONSE_SUCCESS_STR},statusCodeFieldName= ResponseCodeKeyConstant.STATUS_CODE,messageFieldName=ResponseCodeKeyConstant.MSG) @IgnoreFeignLogAnnotation(logMessage="query", excludeStatusCodes = {ResponseCodeConstant.RESPONSE_SUCCESS_STR},statusCodeFieldName= ResponseCodeKeyConstant.STATUS_CODE,messageFieldName=ResponseCodeKeyConstant.MSG)
ActivityQueryResponseDto query(ActivityQueryRequestDto activityQueryRequestDto); ActivityQueryResponseDto query(ActivityQueryRequestDto activityQueryRequestDto);
/** /**
* 优惠金额计算 * 优惠金额计算
*/ */
@PostMapping("/calculation/discount") @PostMapping("/calculation/discount")
@IgnoreFeignLogAnnotation(excludeStatusCodes = {ResponseCodeConstant.RESPONSE_SUCCESS_STR},statusCodeFieldName= ResponseCodeKeyConstant.STATUS_CODE,messageFieldName=ResponseCodeKeyConstant.MSG) @IgnoreFeignLogAnnotation(logMessage="calculationDiscount",excludeStatusCodes = {ResponseCodeConstant.RESPONSE_SUCCESS_STR},statusCodeFieldName= ResponseCodeKeyConstant.STATUS_CODE,messageFieldName=ResponseCodeKeyConstant.MSG)
ActivityCalculationDiscountResponseDto calculationDiscount(ActivityCalculationDiscountRequestDto activityCalculationDiscountRequestDto); ActivityCalculationDiscountResponseDto calculationDiscount(ActivityCalculationDiscountRequestDto activityCalculationDiscountRequestDto);
/** /**
* 扣减库存 * 扣减库存
*/ */
@PostMapping("/activity/stock/subtractStock") @PostMapping("/activity/stock/subtractStock")
@IgnoreFeignLogAnnotation(excludeStatusCodes = {ResponseCodeConstant.RESPONSE_SUCCESS_STR},statusCodeFieldName= ResponseCodeKeyConstant.STATUS_CODE,messageFieldName=ResponseCodeKeyConstant.MSG) @IgnoreFeignLogAnnotation(logMessage="updateStock",excludeStatusCodes = {ResponseCodeConstant.RESPONSE_SUCCESS_STR},statusCodeFieldName= ResponseCodeKeyConstant.STATUS_CODE,messageFieldName=ResponseCodeKeyConstant.MSG)
ActivityBaseResponseDto updateStock(ActivityUpdateStockRequestDto activityUpdateStockRequestDto); ActivityBaseResponseDto updateStock(ActivityUpdateStockRequestDto activityUpdateStockRequestDto);
/** /**
* 库存冲正接口 * 库存冲正接口
*/ */
@PostMapping("/activity/stock/cancelStock") @PostMapping("/activity/stock/cancelStock")
@IgnoreFeignLogAnnotation(excludeStatusCodes = {ResponseCodeConstant.RESPONSE_SUCCESS_STR},statusCodeFieldName= ResponseCodeKeyConstant.STATUS_CODE,messageFieldName=ResponseCodeKeyConstant.MSG) @IgnoreFeignLogAnnotation(logMessage = "cancelStock",excludeStatusCodes = {ResponseCodeConstant.RESPONSE_SUCCESS_STR},statusCodeFieldName= ResponseCodeKeyConstant.STATUS_CODE,messageFieldName=ResponseCodeKeyConstant.MSG)
ActivityBaseResponseDto cancelStock(ActivityCancelStockRequestDto activityCancelStockRequestDto); ActivityBaseResponseDto cancelStock(ActivityCancelStockRequestDto activityCancelStockRequestDto);
...@@ -62,6 +62,6 @@ public interface ActivityClient { ...@@ -62,6 +62,6 @@ public interface ActivityClient {
* @return * @return
*/ */
@PostMapping("/calculation/discount/sharing") @PostMapping("/calculation/discount/sharing")
@IgnoreFeignLogAnnotation(excludeStatusCodes = {ResponseCodeConstant.RESPONSE_SUCCESS_STR},statusCodeFieldName= ResponseCodeKeyConstant.STATUS_CODE,messageFieldName=ResponseCodeKeyConstant.MSG) @IgnoreFeignLogAnnotation(logMessage = "calculationDiscountSharing",excludeStatusCodes = {ResponseCodeConstant.RESPONSE_SUCCESS_STR},statusCodeFieldName= ResponseCodeKeyConstant.STATUS_CODE,messageFieldName=ResponseCodeKeyConstant.MSG)
ActivityCalculationDiscountResponseDto calculationDiscountSharing(ActivityCalculationDiscountRequestDto activityCalculationDiscountRequestDto); ActivityCalculationDiscountResponseDto calculationDiscountSharing(ActivityCalculationDiscountRequestDto activityCalculationDiscountRequestDto);
} }
...@@ -19,6 +19,6 @@ public interface CalculationClient { ...@@ -19,6 +19,6 @@ public interface CalculationClient {
* 促销新的算价对接 * 促销新的算价对接
*/ */
@PostMapping("/promotioncenter/calculateservice/discount/sharing") @PostMapping("/promotioncenter/calculateservice/discount/sharing")
@IgnoreFeignLogAnnotation(excludeStatusCodes = {ResponseCodeConstant.RESPONSE_SUCCESS_STR},statusCodeFieldName= ResponseCodeKeyConstant.STATUS_CODE,messageFieldName=ResponseCodeKeyConstant.MEG) @IgnoreFeignLogAnnotation(logMessage = "calculationSharingDiscount",excludeStatusCodes = {ResponseCodeConstant.RESPONSE_SUCCESS_STR},statusCodeFieldName= ResponseCodeKeyConstant.STATUS_CODE,messageFieldName=ResponseCodeKeyConstant.MEG)
CalculationSharingDiscountResponseDto calculationSharingDiscount(CalculationSharingDiscountRequestDto shareDiscountRequestDto); CalculationSharingDiscountResponseDto calculationSharingDiscount(CalculationSharingDiscountRequestDto shareDiscountRequestDto);
} }
...@@ -21,7 +21,7 @@ public interface CardBinClient { ...@@ -21,7 +21,7 @@ public interface CardBinClient {
* @return * @return
*/ */
@PostMapping("/getAppKey") @PostMapping("/getAppKey")
@IgnoreFeignLogAnnotation(excludeStatusCodes = {ResponseCodeConstant.RESPONSE_SUCCESS_STR},statusCodeFieldName= ResponseCodeKeyConstant.STATUS_CODE,messageFieldName=ResponseCodeKeyConstant.MEG) @IgnoreFeignLogAnnotation(logMessage = "getAppKey",excludeStatusCodes = {ResponseCodeConstant.RESPONSE_SUCCESS_STR},statusCodeFieldName= ResponseCodeKeyConstant.STATUS_CODE,messageFieldName=ResponseCodeKeyConstant.MEG)
GetAppKeyResponseDto getAppKey(GetAppKeyRequestDto requestDto); GetAppKeyResponseDto getAppKey(GetAppKeyRequestDto requestDto);
/** /**
...@@ -30,7 +30,7 @@ public interface CardBinClient { ...@@ -30,7 +30,7 @@ public interface CardBinClient {
* @return * @return
*/ */
@PostMapping(value = "/batchQueryActivityInfo") @PostMapping(value = "/batchQueryActivityInfo")
@IgnoreFeignLogAnnotation(excludeStatusCodes = {ResponseCodeConstant.RESPONSE_SUCCESS_STR},statusCodeFieldName= ResponseCodeKeyConstant.STATUS_CODE,messageFieldName=ResponseCodeKeyConstant.MEG) @IgnoreFeignLogAnnotation(logMessage = "batchQueryActivityInfo",excludeStatusCodes = {ResponseCodeConstant.RESPONSE_SUCCESS_STR},statusCodeFieldName= ResponseCodeKeyConstant.STATUS_CODE,messageFieldName=ResponseCodeKeyConstant.MEG)
BatchQueryActivityInfoResponseDto batchQueryActivityInfo(BatchQueryActivityInfoRequestDto requestDto); BatchQueryActivityInfoResponseDto batchQueryActivityInfo(BatchQueryActivityInfoRequestDto requestDto);
......
...@@ -33,7 +33,7 @@ public interface CouponAdapterClient { ...@@ -33,7 +33,7 @@ public interface CouponAdapterClient {
* @return * @return
*/ */
@PostMapping("/getCouponsAvailable") @PostMapping("/getCouponsAvailable")
@IgnoreFeignLogAnnotation(excludeStatusCodes = {ResponseCodeConstant.RESPONSE_SUCCESS_STR},statusCodeFieldName= ResponseCodeKeyConstant.STATUS_CODE,messageFieldName=ResponseCodeKeyConstant.MSG) @IgnoreFeignLogAnnotation(logMessage = "getCouponsAvailable",excludeStatusCodes = {ResponseCodeConstant.RESPONSE_SUCCESS_STR},statusCodeFieldName= ResponseCodeKeyConstant.STATUS_CODE,messageFieldName=ResponseCodeKeyConstant.MSG)
CouponAvailableRespDto getCouponsAvailable(CouponAvailableReqVo couponAvailableReqVo); CouponAvailableRespDto getCouponsAvailable(CouponAvailableReqVo couponAvailableReqVo);
} }
...@@ -62,7 +62,7 @@ public interface CouponClient { ...@@ -62,7 +62,7 @@ public interface CouponClient {
* 麦咖啡校验券是否可用 * 麦咖啡校验券是否可用
*/ */
@PostMapping("/mccafe/getCouponsAvailable") @PostMapping("/mccafe/getCouponsAvailable")
@IgnoreFeignLogAnnotation(excludeStatusCodes = {ResponseCodeConstant.RESPONSE_SUCCESS_STR},statusCodeFieldName= ResponseCodeKeyConstant.STATUS_CODE,messageFieldName=ResponseCodeKeyConstant.MSG) @IgnoreFeignLogAnnotation(logMessage = "getCouponsAvailable",excludeStatusCodes = {ResponseCodeConstant.RESPONSE_SUCCESS_STR},statusCodeFieldName= ResponseCodeKeyConstant.STATUS_CODE,messageFieldName=ResponseCodeKeyConstant.MSG)
CouponAvailableResp getCouponsAvailable(CouponAvailableReq req); CouponAvailableResp getCouponsAvailable(CouponAvailableReq req);
......
...@@ -21,7 +21,7 @@ public interface CouponOnlineClient { ...@@ -21,7 +21,7 @@ public interface CouponOnlineClient {
/** /**
* 查询券详情 * 查询券详情
*/ */
@IgnoreFeignLogAnnotation(excludeStatusCodes = {ResponseCodeConstant.RESPONSE_SUCCESS_STR},statusCodeFieldName= ResponseCodeKeyConstant.STATUS_CODE) @IgnoreFeignLogAnnotation(logMessage = "getCouponDetails",excludeStatusCodes = {ResponseCodeConstant.RESPONSE_SUCCESS_STR},statusCodeFieldName= ResponseCodeKeyConstant.STATUS_CODE)
@PostMapping(value = "/code_v4", produces = MediaType.APPLICATION_JSON_UTF8_VALUE, @PostMapping(value = "/code_v4", produces = MediaType.APPLICATION_JSON_UTF8_VALUE,
consumes = {MediaType.APPLICATION_FORM_URLENCODED_VALUE} consumes = {MediaType.APPLICATION_FORM_URLENCODED_VALUE}
) )
......
...@@ -32,6 +32,6 @@ public interface CustomScoreClient { ...@@ -32,6 +32,6 @@ public interface CustomScoreClient {
* 用户可用积分 * 用户可用积分
*/ */
@PostMapping(value = "/user/scoreUseDetail") @PostMapping(value = "/user/scoreUseDetail")
@IgnoreFeignLogAnnotation(excludeStatusCodes = {ResponseCodeConstant.RESPONSE_SUCCESS_STR},statusCodeFieldName= ResponseCodeKeyConstant.STATUS_CODE,messageFieldName=ResponseCodeKeyConstant.MSG) @IgnoreFeignLogAnnotation(logMessage = "getUserScoreUseDetail",excludeStatusCodes = {ResponseCodeConstant.RESPONSE_SUCCESS_STR},statusCodeFieldName= ResponseCodeKeyConstant.STATUS_CODE,messageFieldName=ResponseCodeKeyConstant.MSG)
GetUserScoreUserDetailResponse getUserScoreUseDetail(@RequestBody GetUserScoreUseDetailRequest getUserScoreUseDetailRequest); GetUserScoreUserDetailResponse getUserScoreUseDetail(@RequestBody GetUserScoreUseDetailRequest getUserScoreUseDetailRequest);
} }
...@@ -30,12 +30,12 @@ public interface CustomerApplicationClient { ...@@ -30,12 +30,12 @@ public interface CustomerApplicationClient {
@PostMapping(value = "/membercard/getPaidRule") @PostMapping(value = "/membercard/getPaidRule")
@IgnoreFeignLogAnnotation(excludeStatusCodes = {ResponseCodeConstant.RESPONSE_SUCCESS_STR},statusCodeFieldName= ResponseCodeKeyConstant.STATUS_CODE,messageFieldName=ResponseCodeKeyConstant.MSG) @IgnoreFeignLogAnnotation(logMessage = "getPaidRule",excludeStatusCodes = {ResponseCodeConstant.RESPONSE_SUCCESS_STR},statusCodeFieldName= ResponseCodeKeyConstant.STATUS_CODE,messageFieldName=ResponseCodeKeyConstant.MSG)
BaseResponse<GetPaidRuleResponseDto> getPaidRule(GetPaidRuleRequestDto getPaidRuleRequestDto); BaseResponse<GetPaidRuleResponseDto> getPaidRule(GetPaidRuleRequestDto getPaidRuleRequestDto);
@PostMapping(value = "/user/getSessionUserInfo") @PostMapping(value = "/user/getSessionUserInfo")
@IgnoreFeignLogAnnotation(excludeStatusCodes = {ResponseCodeConstant.RESPONSE_SUCCESS_STR},statusCodeFieldName= ResponseCodeKeyConstant.STATUS_CODE,messageFieldName=ResponseCodeKeyConstant.MSG) @IgnoreFeignLogAnnotation(logMessage = "getSessionUserInfo",excludeStatusCodes = {ResponseCodeConstant.RESPONSE_SUCCESS_STR},statusCodeFieldName= ResponseCodeKeyConstant.STATUS_CODE,messageFieldName=ResponseCodeKeyConstant.MSG)
BaseResponse<CustomerInfoVo>getSessionUserInfo(GetSessionUserInfoDto getSessionUserInfoDto); BaseResponse<CustomerInfoVo>getSessionUserInfo(GetSessionUserInfoDto getSessionUserInfoDto);
......
...@@ -29,7 +29,7 @@ public interface CustomerExtendClient { ...@@ -29,7 +29,7 @@ public interface CustomerExtendClient {
/** /**
* 会员优惠券列表 * 会员优惠券列表
*/ */
@IgnoreFeignLogAnnotation(excludeStatusCodes = {ResponseCodeConstant.RESPONSE_SUCCESS_STR},statusCodeFieldName= ResponseCodeKeyConstant.STATUS_CODE,messageFieldName=ResponseCodeKeyConstant.MSG) @IgnoreFeignLogAnnotation(logMessage = "getMemberCouponListRequestDto",excludeStatusCodes = {ResponseCodeConstant.RESPONSE_SUCCESS_STR},statusCodeFieldName= ResponseCodeKeyConstant.STATUS_CODE,messageFieldName=ResponseCodeKeyConstant.MSG)
@PostMapping(value = "/customerextendservice/coupon/getCoupons") @PostMapping(value = "/customerextendservice/coupon/getCoupons")
GetMemberCouponListResponseDto getMemberCouponListRequestDto(@RequestBody GetMemberCouponListRequestDto getMemberCouponListRequestDto); GetMemberCouponListResponseDto getMemberCouponListRequestDto(@RequestBody GetMemberCouponListRequestDto getMemberCouponListRequestDto);
} }
...@@ -16,10 +16,10 @@ import org.springframework.web.bind.annotation.RequestBody; ...@@ -16,10 +16,10 @@ import org.springframework.web.bind.annotation.RequestBody;
public interface DeliveryFeiginClient { public interface DeliveryFeiginClient {
@PostMapping("/delivery/queryDeliveryTemplate") @PostMapping("/delivery/queryDeliveryTemplate")
@IgnoreFeignLogAnnotation(excludeStatusCodes = {ResponseCodeConstant.RESPONSE_SUCCESS_STR},statusCodeFieldName= ResponseCodeKeyConstant.STATUS_CODE,messageFieldName=ResponseCodeKeyConstant.MSG) @IgnoreFeignLogAnnotation(logMessage = "queryDeliveryTemplate",excludeStatusCodes = {ResponseCodeConstant.RESPONSE_SUCCESS_STR},statusCodeFieldName= ResponseCodeKeyConstant.STATUS_CODE,messageFieldName=ResponseCodeKeyConstant.MSG)
QueryDeliveryTemplateResponseVo queryDeliveryTemplate(@RequestBody QueryDeliveryTemplateRequestVo queryDeliveryTemplateRequestVo); QueryDeliveryTemplateResponseVo queryDeliveryTemplate(@RequestBody QueryDeliveryTemplateRequestVo queryDeliveryTemplateRequestVo);
@PostMapping("/tools/routePlanner") @PostMapping("/tools/routePlanner")
@IgnoreFeignLogAnnotation(excludeStatusCodes = {ResponseCodeConstant.RESPONSE_SUCCESS_STR},statusCodeFieldName= ResponseCodeKeyConstant.STATUS_CODE,messageFieldName=ResponseCodeKeyConstant.MSG) @IgnoreFeignLogAnnotation(logMessage = "queryDeliveryDistance",excludeStatusCodes = {ResponseCodeConstant.RESPONSE_SUCCESS_STR},statusCodeFieldName= ResponseCodeKeyConstant.STATUS_CODE,messageFieldName=ResponseCodeKeyConstant.MSG)
QueryDeliveryDistanceResponseVo queryDeliveryDistance(@RequestBody QueryDeliveryDistanceRequest queryDeliveryTemplateRequestVo); QueryDeliveryDistanceResponseVo queryDeliveryDistance(@RequestBody QueryDeliveryDistanceRequest queryDeliveryTemplateRequestVo);
} }
...@@ -22,7 +22,7 @@ public interface EcologyAdminApplicationClient { ...@@ -22,7 +22,7 @@ public interface EcologyAdminApplicationClient {
/** /**
* 获取虚拟门店 * 获取虚拟门店
*/ */
@IgnoreFeignLogAnnotation(excludeStatusCodes = {ResponseCodeConstant.RESPONSE_SUCCESS_STR},statusCodeFieldName= ResponseCodeKeyConstant.STATUS_CODE,messageFieldName=ResponseCodeKeyConstant.MSG) @IgnoreFeignLogAnnotation(logMessage = "getBuyBindVirtualStore",excludeStatusCodes = {ResponseCodeConstant.RESPONSE_SUCCESS_STR},statusCodeFieldName= ResponseCodeKeyConstant.STATUS_CODE,messageFieldName=ResponseCodeKeyConstant.MSG)
@PostMapping(value = "ecology/api/app/info/getBuyBindVirtualStore", produces = MediaType.APPLICATION_JSON_VALUE ,consumes = MediaType.APPLICATION_JSON_VALUE ) @PostMapping(value = "ecology/api/app/info/getBuyBindVirtualStore", produces = MediaType.APPLICATION_JSON_VALUE ,consumes = MediaType.APPLICATION_JSON_VALUE )
BaseResponse<VirtualBindStoreResponse> getBuyBindVirtualStore(@RequestBody VirtualStoreRequest virtualStoreRequest); BaseResponse<VirtualBindStoreResponse> getBuyBindVirtualStore(@RequestBody VirtualStoreRequest virtualStoreRequest);
} }
...@@ -20,7 +20,7 @@ public interface MemberToolsClient { ...@@ -20,7 +20,7 @@ public interface MemberToolsClient {
/** /**
* 根据会员手机号和商户获取会员信息 * 根据会员手机号和商户获取会员信息
*/ */
@IgnoreFeignLogAnnotation(excludeStatusCodes = {ResponseCodeConstant.RESPONSE_SUCCESS_STR},statusCodeFieldName= ResponseCodeKeyConstant.STATUS_CODE,messageFieldName=ResponseCodeKeyConstant.MSG) @IgnoreFeignLogAnnotation(logMessage = "getMemberList",excludeStatusCodes = {ResponseCodeConstant.RESPONSE_SUCCESS_STR},statusCodeFieldName= ResponseCodeKeyConstant.STATUS_CODE,messageFieldName=ResponseCodeKeyConstant.MSG)
@PostMapping(value = "/customerservice/getMembers") @PostMapping(value = "/customerservice/getMembers")
GetMemberListResponseDto getMemberList(@RequestBody GetMemberListRequestDto getMemberListRequestDto); GetMemberListResponseDto getMemberList(@RequestBody GetMemberListRequestDto getMemberListRequestDto);
} }
...@@ -62,7 +62,7 @@ public interface OpenPlatformClient { ...@@ -62,7 +62,7 @@ public interface OpenPlatformClient {
* @return * @return
*/ */
@PostMapping("/weixincard/weixinCardForApp/getProduct") @PostMapping("/weixincard/weixinCardForApp/getProduct")
@IgnoreFeignLogAnnotation(excludeStatusCodes = {ResponseCodeConstant.RESPONSE_SUCCESS_STR},statusCodeFieldName= ResponseCodeKeyConstant.STATUS_CODE,messageFieldName=ResponseCodeKeyConstant.MSG) @IgnoreFeignLogAnnotation(logMessage = "getWeixinProductRequestDto",excludeStatusCodes = {ResponseCodeConstant.RESPONSE_SUCCESS_STR},statusCodeFieldName= ResponseCodeKeyConstant.STATUS_CODE,messageFieldName=ResponseCodeKeyConstant.MSG)
WeixinProductResponseDto getWeixinProductRequestDto(WeixinProductRequestDto requestDto); WeixinProductResponseDto getWeixinProductRequestDto(WeixinProductRequestDto requestDto);
......
...@@ -32,12 +32,12 @@ import java.util.List; ...@@ -32,12 +32,12 @@ import java.util.List;
public interface ProductClient { public interface ProductClient {
@PostMapping({"/Shop/ListMenuMustProduct"}) @PostMapping({"/Shop/ListMenuMustProduct"})
@IgnoreFeignLogAnnotation(excludeStatusCodes = {ResponseCodeConstant.RESPONSE_SUCCESS_STR},statusCodeFieldName= ResponseCodeKeyConstant.ERR_CODE,messageFieldName = ResponseCodeKeyConstant.ERR_MSG) @IgnoreFeignLogAnnotation(logMessage = "getRequiredProductList",excludeStatusCodes = {ResponseCodeConstant.RESPONSE_SUCCESS_STR},statusCodeFieldName= ResponseCodeKeyConstant.ERR_CODE,messageFieldName = ResponseCodeKeyConstant.ERR_MSG)
ProductBaseResponse<List<String>> getRequiredProductList(@RequestBody RequiredProductRequest request); ProductBaseResponse<List<String>> getRequiredProductList(@RequestBody RequiredProductRequest request);
@PostMapping({"/Shop/ValidateShopProduct/Reason"}) @PostMapping({"/Shop/ValidateShopProduct/Reason"})
@IgnoreFeignLogAnnotation(excludeStatusCodes = {ResponseCodeConstant.RESPONSE_SUCCESS_STR},statusCodeFieldName= ResponseCodeKeyConstant.ERR_CODE,messageFieldName = ResponseCodeKeyConstant.ERR_MSG) @IgnoreFeignLogAnnotation(logMessage = "validateShopProductAboutReason",excludeStatusCodes = {ResponseCodeConstant.RESPONSE_SUCCESS_STR},statusCodeFieldName= ResponseCodeKeyConstant.ERR_CODE,messageFieldName = ResponseCodeKeyConstant.ERR_MSG)
ProductBaseResponse<ValiadShopProductResponse> validateShopProductAboutReason(@RequestBody ValidateShopProductRequest request); ProductBaseResponse<ValiadShopProductResponse> validateShopProductAboutReason(@RequestBody ValidateShopProductRequest request);
} }
...@@ -32,7 +32,7 @@ public interface StockClient { ...@@ -32,7 +32,7 @@ public interface StockClient {
* 前端查询多个商品库存信息 * 前端查询多个商品库存信息
*/ */
@PostMapping("/getAvailableStocks") @PostMapping("/getAvailableStocks")
@IgnoreFeignLogAnnotation(excludeStatusCodes = {ResponseCodeConstant.RESPONSE_SUCCESS_STR},statusCodeFieldName= ResponseCodeKeyConstant.STATUS_CODE,messageFieldName=ResponseCodeKeyConstant.MSG) @IgnoreFeignLogAnnotation(logMessage = "getAvailableStocks",excludeStatusCodes = {ResponseCodeConstant.RESPONSE_SUCCESS_STR},statusCodeFieldName= ResponseCodeKeyConstant.STATUS_CODE,messageFieldName=ResponseCodeKeyConstant.MSG)
GetProductStockResponseDto getAvailableStocks(@RequestBody GetProductStockRequestDto requestDto); GetProductStockResponseDto getAvailableStocks(@RequestBody GetProductStockRequestDto requestDto);
/** /**
...@@ -41,6 +41,6 @@ public interface StockClient { ...@@ -41,6 +41,6 @@ public interface StockClient {
* @return * @return
*/ */
@PostMapping("/updateStocks") @PostMapping("/updateStocks")
@IgnoreFeignLogAnnotation(excludeStatusCodes = {ResponseCodeConstant.RESPONSE_SUCCESS_STR},statusCodeFieldName= ResponseCodeKeyConstant.STATUS_CODE,messageFieldName=ResponseCodeKeyConstant.MSG) @IgnoreFeignLogAnnotation(logMessage = "updateStocks",excludeStatusCodes = {ResponseCodeConstant.RESPONSE_SUCCESS_STR},statusCodeFieldName= ResponseCodeKeyConstant.STATUS_CODE,messageFieldName=ResponseCodeKeyConstant.MSG)
BaseResponse updateStocks(@RequestBody UpdateProductStockRequestDto requestDto); BaseResponse updateStocks(@RequestBody UpdateProductStockRequestDto requestDto);
} }
...@@ -35,7 +35,7 @@ public interface StoreItemClient { ...@@ -35,7 +35,7 @@ public interface StoreItemClient {
* 获取门店特定时间段菜单分类 * 获取门店特定时间段菜单分类
*/ */
@PostMapping(value = "/Menu/GetMenu") @PostMapping(value = "/Menu/GetMenu")
@IgnoreFeignLogAnnotation(excludeStatusCodes = {ResponseCodeConstant.RESPONSE_SUCCESS_STR},statusCodeFieldName= ResponseCodeKeyConstant.STATUS_CODE,messageFieldName=ResponseCodeKeyConstant.MSG) @IgnoreFeignLogAnnotation(logMessage = "getMenuCategory",excludeStatusCodes = {ResponseCodeConstant.RESPONSE_SUCCESS_STR},statusCodeFieldName= ResponseCodeKeyConstant.STATUS_CODE,messageFieldName=ResponseCodeKeyConstant.MSG)
GetMenuResponseDto getMenuCategory(@RequestBody GetMenuCategoryInfoDto getMenuCategoryInfoDto); GetMenuResponseDto getMenuCategory(@RequestBody GetMenuCategoryInfoDto getMenuCategoryInfoDto);
/** /**
...@@ -43,14 +43,14 @@ public interface StoreItemClient { ...@@ -43,14 +43,14 @@ public interface StoreItemClient {
* 根据商品id查询门店特定时间段菜单 * 根据商品id查询门店特定时间段菜单
*/ */
@PostMapping(value = "/Menu/GetMenuByIds") @PostMapping(value = "/Menu/GetMenuByIds")
@IgnoreFeignLogAnnotation(excludeStatusCodes = {ResponseCodeConstant.RESPONSE_SUCCESS_STR},statusCodeFieldName= ResponseCodeKeyConstant.ERR_CODE,messageFieldName=ResponseCodeKeyConstant.MEG) @IgnoreFeignLogAnnotation(logMessage = "getMenuCategoryByIds",excludeStatusCodes = {ResponseCodeConstant.RESPONSE_SUCCESS_STR},statusCodeFieldName= ResponseCodeKeyConstant.ERR_CODE,messageFieldName=ResponseCodeKeyConstant.MEG)
GetMenuByIdsResponseDto getMenuCategoryByIds(@RequestBody GetMenuCategoryByIdsDto getMenuCategoryByIdsDto); GetMenuByIdsResponseDto getMenuCategoryByIds(@RequestBody GetMenuCategoryByIdsDto getMenuCategoryByIdsDto);
/** /**
* 获取商品的详细信息 * 获取商品的详细信息
*/ */
@PostMapping("/Shop/ListProductInfoByIdList") @PostMapping("/Shop/ListProductInfoByIdList")
@IgnoreFeignLogAnnotation(excludeStatusCodes = {ResponseCodeConstant.RESPONSE_SUCCESS_STR},statusCodeFieldName= ResponseCodeKeyConstant.ERR_CODE,messageFieldName=ResponseCodeKeyConstant.MEG) @IgnoreFeignLogAnnotation(logMessage = "listProductInfos",excludeStatusCodes = {ResponseCodeConstant.RESPONSE_SUCCESS_STR},statusCodeFieldName= ResponseCodeKeyConstant.ERR_CODE,messageFieldName=ResponseCodeKeyConstant.MEG)
ProductInfosDto listProductInfos(@RequestBody GetProductInfoDto getProductInfoDto); ProductInfosDto listProductInfos(@RequestBody GetProductInfoDto getProductInfoDto);
/** /**
...@@ -58,7 +58,7 @@ public interface StoreItemClient { ...@@ -58,7 +58,7 @@ public interface StoreItemClient {
* @return * @return
*/ */
@PostMapping("/Product/GetSpectionProductBySkuId") @PostMapping("/Product/GetSpectionProductBySkuId")
@IgnoreFeignLogAnnotation(excludeStatusCodes = {ResponseCodeConstant.RESPONSE_SUCCESS_STR},statusCodeFieldName= ResponseCodeKeyConstant.ERR_CODE,messageFieldName=ResponseCodeKeyConstant.MEG) @IgnoreFeignLogAnnotation(logMessage = "getSpuIdsBySkuIds",excludeStatusCodes = {ResponseCodeConstant.RESPONSE_SUCCESS_STR},statusCodeFieldName= ResponseCodeKeyConstant.ERR_CODE,messageFieldName=ResponseCodeKeyConstant.MEG)
ProductListDto getSpuIdsBySkuIds(@RequestBody GetSpuIdsBySkuIdsDto requestDto); ProductListDto getSpuIdsBySkuIds(@RequestBody GetSpuIdsBySkuIdsDto requestDto);
/** /**
...@@ -72,6 +72,6 @@ public interface StoreItemClient { ...@@ -72,6 +72,6 @@ public interface StoreItemClient {
* 校验商品在当前门店是否可售 * 校验商品在当前门店是否可售
*/ */
@PostMapping("/Shop/validateShopContainProduct") @PostMapping("/Shop/validateShopContainProduct")
@IgnoreFeignLogAnnotation(excludeStatusCodes = {ResponseCodeConstant.RESPONSE_SUCCESS_STR},statusCodeFieldName= ResponseCodeKeyConstant.ERR_CODE,messageFieldName=ResponseCodeKeyConstant.MEG) @IgnoreFeignLogAnnotation(logMessage = "validateShopContainProduct",excludeStatusCodes = {ResponseCodeConstant.RESPONSE_SUCCESS_STR},statusCodeFieldName= ResponseCodeKeyConstant.ERR_CODE,messageFieldName=ResponseCodeKeyConstant.MEG)
ValidateProductInfosDto validateShopContainProduct(@RequestBody GetValidateProductInfoDto getProductInfoDto); ValidateProductInfosDto validateShopContainProduct(@RequestBody GetValidateProductInfoDto getProductInfoDto);
} }
...@@ -24,6 +24,6 @@ import org.springframework.web.bind.annotation.RequestMapping; ...@@ -24,6 +24,6 @@ import org.springframework.web.bind.annotation.RequestMapping;
public interface SvcComPayClient { public interface SvcComPayClient {
@PostMapping("/paymentmanager/partnerSetting/queryAssociationPaymentFlagPartnerSetting") @PostMapping("/paymentmanager/partnerSetting/queryAssociationPaymentFlagPartnerSetting")
@IgnoreFeignLogAnnotation(excludeStatusCodes = {ResponseCodeConstant.RESPONSE_SUCCESS_STR},statusCodeFieldName= ResponseCodeKeyConstant.STATUS_CODE,messageFieldName=ResponseCodeKeyConstant.MSG) @IgnoreFeignLogAnnotation(logMessage = "query",excludeStatusCodes = {ResponseCodeConstant.RESPONSE_SUCCESS_STR},statusCodeFieldName= ResponseCodeKeyConstant.STATUS_CODE,messageFieldName=ResponseCodeKeyConstant.MSG)
SvcComPayResponseDto query(SvcComPayRequestDto svcComPayRequestDto); SvcComPayResponseDto query(SvcComPayRequestDto svcComPayRequestDto);
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment