Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
order-group
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
order-group-application
order-group
Commits
96257768
Commit
96257768
authored
Jul 20, 2021
by
zhiheng.zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
购物车添加注解
parent
eb21af58
Hide whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
64 additions
and
24 deletions
+64
-24
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/StoreServiceImpl.java
+7
-2
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/UserServiceImpl.java
+3
-1
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/mcoffee/ShoppingCartMCoffeeServiceImpl.java
+2
-1
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/mcoffee/calculation/CouponDiscountCalculation.java
+3
-1
shopping-cart-application-service/src/main/java/cn/freemud/service/thirdparty/ActivityClient.java
+4
-2
shopping-cart-application-service/src/main/java/cn/freemud/service/thirdparty/CalculationClient.java
+1
-1
shopping-cart-application-service/src/main/java/cn/freemud/service/thirdparty/CardBinClient.java
+2
-2
shopping-cart-application-service/src/main/java/cn/freemud/service/thirdparty/CouponAdapterClient.java
+4
-0
shopping-cart-application-service/src/main/java/cn/freemud/service/thirdparty/CouponClient.java
+4
-0
shopping-cart-application-service/src/main/java/cn/freemud/service/thirdparty/CouponOnlineClient.java
+1
-1
shopping-cart-application-service/src/main/java/cn/freemud/service/thirdparty/CustomScoreClient.java
+1
-1
shopping-cart-application-service/src/main/java/cn/freemud/service/thirdparty/CustomerApplicationClient.java
+3
-2
shopping-cart-application-service/src/main/java/cn/freemud/service/thirdparty/CustomerExtendClient.java
+1
-1
shopping-cart-application-service/src/main/java/cn/freemud/service/thirdparty/DeliveryFeiginClient.java
+5
-0
shopping-cart-application-service/src/main/java/cn/freemud/service/thirdparty/EcologyAdminApplicationClient.java
+4
-0
shopping-cart-application-service/src/main/java/cn/freemud/service/thirdparty/MemberToolsClient.java
+1
-1
shopping-cart-application-service/src/main/java/cn/freemud/service/thirdparty/OpenPlatformClient.java
+4
-0
shopping-cart-application-service/src/main/java/cn/freemud/service/thirdparty/ProductClient.java
+2
-2
shopping-cart-application-service/src/main/java/cn/freemud/service/thirdparty/StockClient.java
+2
-1
shopping-cart-application-service/src/main/java/cn/freemud/service/thirdparty/StoreItemClient.java
+6
-5
shopping-cart-application-service/src/main/java/cn/freemud/service/thirdparty/SvcComPayClient.java
+4
-0
No files found.
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/StoreServiceImpl.java
View file @
96257768
...
...
@@ -13,6 +13,8 @@ import cn.freemud.manager.*;
//import cn.freemud.service.thirdparty.StoreClient;
import
cn.freemud.service.thirdparty.DeliveryFeiginClient
;
import
cn.freemud.utils.*
;
import
com.freemud.application.sdk.api.log.ApiLog
;
import
com.freemud.application.sdk.api.log.ErrorLog
;
import
com.google.common.collect.Lists
;
import
com.google.gson.Gson
;
import
org.apache.commons.collections4.CollectionUtils
;
...
...
@@ -62,7 +64,9 @@ public class StoreServiceImpl {
String
businessHourStr
=
businessHoursDay
.
replace
(
"-"
,
","
).
replace
(
"_"
,
","
);
String
[]
businessHours
=
businessHourStr
.
split
(
","
);
if
(
businessHours
.
length
!=
2
)
{
log
.
error
(
"checkStoreOpen businessHoursDay is invaild , businessHoursDay:{}"
,
businessHoursDay
);
ApiLog
.
printLog
(
"checkStoreOpen businessHoursDay is invaild , businessHoursDay:{}"
,
businessHoursDay
,
null
,
null
);
// ErrorLog.errorConvertJson(this.getClass(),"checkStoreOpen businessHoursDay is invaild , businessHoursDay:{}", businessHoursDay, "");
// log.error("checkStoreOpen businessHoursDay is invaild , businessHoursDay:{}", businessHoursDay);
return
false
;
}
String
startDateTimeStr
=
DateUtil
.
convert2String
(
new
Date
(),
DateUtil
.
FORMAT_YMD
)
+
" "
+
businessHours
[
0
]
+
":00"
;
...
...
@@ -73,7 +77,8 @@ public class StoreServiceImpl {
try
{
endDateTime
=
hhmmss
.
parse
(
endDateTimeStr
);
}
catch
(
ParseException
e
)
{
log
.
error
(
"checkStoreOpen businessHoursDay endDateTimeStr is invaild , endDateTimeStr:{}"
,
endDateTimeStr
);
ErrorLog
.
errorConvertJson
(
this
.
getClass
(),
"checkStoreOpen businessHoursDay is invaild , businessHoursDay:{}"
+
businessHoursDay
,
e
);
// log.error("checkStoreOpen businessHoursDay endDateTimeStr is invaild , endDateTimeStr:{}", endDateTimeStr);
return
false
;
}
Date
nowDate
=
new
Date
();
...
...
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/UserServiceImpl.java
View file @
96257768
...
...
@@ -28,6 +28,7 @@ import cn.freemud.service.thirdparty.*;
import
cn.freemud.utils.*
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONObject
;
import
com.freemud.application.sdk.api.log.ErrorLog
;
import
com.google.common.collect.Maps
;
import
com.google.gson.Gson
;
import
lombok.extern.slf4j.Slf4j
;
...
...
@@ -586,7 +587,8 @@ public class UserServiceImpl implements UserService {
phoneNumber
=
jsonObject
.
getString
(
"phoneNumber"
);
}
}
catch
(
Exception
e
)
{
log
.
error
(
"[UserServiceImpl][getPhoneNumber] is error !!"
,
sessionkey
+
"_"
+
encryptedData
+
"_"
+
iv
,
e
);
ErrorLog
.
errorConvertJson
(
this
.
getClass
(),
"[UserServiceImpl][getPhoneNumber] is error !!"
+
sessionkey
+
"_"
+
encryptedData
+
"_"
+
iv
,
e
);
// log.error("[UserServiceImpl][getPhoneNumber] is error !!", sessionkey + "_" + encryptedData + "_" + iv, e);
return
null
;
}
return
phoneNumber
;
...
...
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/mcoffee/ShoppingCartMCoffeeServiceImpl.java
View file @
96257768
...
...
@@ -2485,7 +2485,8 @@ public class ShoppingCartMCoffeeServiceImpl {
// }
return
CartResponseUtil
.
success
(
checkCartRequest
);
}
catch
(
Exception
e
)
{
log
.
error
(
"assortment-shoppingcart-sdk : "
+
ExceptionUtils
.
getExceptionInfo
(
e
)
+
" checkAllCartGoods : "
+
JSON
.
toJSONString
(
checkCartRequest
));
ErrorLog
.
errorConvertJson
(
this
.
getClass
(),
"assortment-shoppingcart-sdk : "
+
ExceptionUtils
.
getExceptionInfo
(
e
)
+
" checkAllCartGoods : "
+
JSON
.
toJSONString
(
checkCartRequest
),
e
);
// log.error("assortment-shoppingcart-sdk : " + ExceptionUtils.getExceptionInfo(e) + " checkAllCartGoods : " + JSON.toJSONString(checkCartRequest));
checkCartRequest
.
getShoppingCartGoodsResponseVo
().
setChanged
(
true
);
checkCartRequest
.
getShoppingCartGoodsResponseVo
().
setToastMsg
(
ShoppingCartConstant
.
SHOPPING_CART_INVALIAD_GOODS
);
return
CartResponseUtil
.
error
(
e
.
getMessage
(),
checkCartRequest
);
...
...
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/mcoffee/calculation/CouponDiscountCalculation.java
View file @
96257768
...
...
@@ -21,6 +21,7 @@ import cn.freemud.utils.LogUtil;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONObject
;
import
com.freemud.application.sdk.api.log.ApiLog
;
import
com.freemud.application.sdk.api.log.ErrorLog
;
import
com.google.common.collect.Lists
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.collections4.CollectionUtils
;
...
...
@@ -658,7 +659,8 @@ public class CouponDiscountCalculation {
totalAmount
=
totalAmount
+
product
.
getAmount
()
*
cartGood
.
getQty
();
}
}
catch
(
NumberFormatException
e
)
{
log
.
error
(
"数字转换异常:"
+
JSON
.
toJSONString
(
cartGoods
)
+
ExceptionUtils
.
getExceptionInfo
(
e
));
ErrorLog
.
errorConvertJson
(
this
.
getClass
(),
"数字转换异常:"
+
JSON
.
toJSONString
(
cartGoods
)
+
ExceptionUtils
.
getExceptionInfo
(
e
),
e
);
// log.error("数字转换异常:" + JSON.toJSONString(cartGoods) + ExceptionUtils.getExceptionInfo(e));
throw
new
ServiceException
(
ResponseResult
.
SYSTEM_ERROR
);
}
return
totalAmount
;
...
...
shopping-cart-application-service/src/main/java/cn/freemud/service/thirdparty/ActivityClient.java
View file @
96257768
...
...
@@ -37,19 +37,21 @@ public interface ActivityClient {
* 优惠金额计算
*/
@PostMapping
(
"/calculation/discount"
)
//
@IgnoreFeignLogAnnotation(excludeStatusCodes = {ResponseCodeConstant.RESPONSE_SUCCESS_STR},statusCodeFieldName= ResponseCodeKeyConstant.STATUS_CODE,messageFieldName=ResponseCodeKeyConstant.MSG)
@IgnoreFeignLogAnnotation
(
excludeStatusCodes
=
{
ResponseCodeConstant
.
RESPONSE_SUCCESS_STR
},
statusCodeFieldName
=
ResponseCodeKeyConstant
.
STATUS_CODE
,
messageFieldName
=
ResponseCodeKeyConstant
.
MSG
)
ActivityCalculationDiscountResponseDto
calculationDiscount
(
ActivityCalculationDiscountRequestDto
activityCalculationDiscountRequestDto
);
/**
* 扣减库存
*/
@PostMapping
(
"/activity/stock/subtractStock"
)
@IgnoreFeignLogAnnotation
(
excludeStatusCodes
=
{
ResponseCodeConstant
.
RESPONSE_SUCCESS_STR
},
statusCodeFieldName
=
ResponseCodeKeyConstant
.
STATUS_CODE
,
messageFieldName
=
ResponseCodeKeyConstant
.
MSG
)
ActivityBaseResponseDto
updateStock
(
ActivityUpdateStockRequestDto
activityUpdateStockRequestDto
);
/**
* 库存冲正接口
*/
@PostMapping
(
"/activity/stock/cancelStock"
)
@IgnoreFeignLogAnnotation
(
excludeStatusCodes
=
{
ResponseCodeConstant
.
RESPONSE_SUCCESS_STR
},
statusCodeFieldName
=
ResponseCodeKeyConstant
.
STATUS_CODE
,
messageFieldName
=
ResponseCodeKeyConstant
.
MSG
)
ActivityBaseResponseDto
cancelStock
(
ActivityCancelStockRequestDto
activityCancelStockRequestDto
);
...
...
@@ -60,6 +62,6 @@ public interface ActivityClient {
* @return
*/
@PostMapping
(
"/calculation/discount/sharing"
)
//
@IgnoreFeignLogAnnotation(excludeStatusCodes = {ResponseCodeConstant.RESPONSE_SUCCESS_STR},statusCodeFieldName= ResponseCodeKeyConstant.STATUS_CODE,messageFieldName=ResponseCodeKeyConstant.MSG)
@IgnoreFeignLogAnnotation
(
excludeStatusCodes
=
{
ResponseCodeConstant
.
RESPONSE_SUCCESS_STR
},
statusCodeFieldName
=
ResponseCodeKeyConstant
.
STATUS_CODE
,
messageFieldName
=
ResponseCodeKeyConstant
.
MSG
)
ActivityCalculationDiscountResponseDto
calculationDiscountSharing
(
ActivityCalculationDiscountRequestDto
activityCalculationDiscountRequestDto
);
}
shopping-cart-application-service/src/main/java/cn/freemud/service/thirdparty/CalculationClient.java
View file @
96257768
...
...
@@ -19,6 +19,6 @@ public interface CalculationClient {
* 促销新的算价对接
*/
@PostMapping
(
"/promotioncenter/calculateservice/discount/sharing"
)
//
@IgnoreFeignLogAnnotation(excludeStatusCodes = {ResponseCodeConstant.RESPONSE_SUCCESS_STR},statusCodeFieldName= ResponseCodeKeyConstant.STATUS_CODE,messageFieldName=ResponseCodeKeyConstant.MEG)
@IgnoreFeignLogAnnotation
(
excludeStatusCodes
=
{
ResponseCodeConstant
.
RESPONSE_SUCCESS_STR
},
statusCodeFieldName
=
ResponseCodeKeyConstant
.
STATUS_CODE
,
messageFieldName
=
ResponseCodeKeyConstant
.
MEG
)
CalculationSharingDiscountResponseDto
calculationSharingDiscount
(
CalculationSharingDiscountRequestDto
shareDiscountRequestDto
);
}
shopping-cart-application-service/src/main/java/cn/freemud/service/thirdparty/CardBinClient.java
View file @
96257768
...
...
@@ -21,7 +21,7 @@ public interface CardBinClient {
* @return
*/
@PostMapping
(
"/getAppKey"
)
//
@IgnoreFeignLogAnnotation(excludeStatusCodes = {ResponseCodeConstant.RESPONSE_SUCCESS_STR},statusCodeFieldName= ResponseCodeKeyConstant.STATUS_CODE,messageFieldName=ResponseCodeKeyConstant.MEG)
@IgnoreFeignLogAnnotation
(
excludeStatusCodes
=
{
ResponseCodeConstant
.
RESPONSE_SUCCESS_STR
},
statusCodeFieldName
=
ResponseCodeKeyConstant
.
STATUS_CODE
,
messageFieldName
=
ResponseCodeKeyConstant
.
MEG
)
GetAppKeyResponseDto
getAppKey
(
GetAppKeyRequestDto
requestDto
);
/**
...
...
@@ -30,7 +30,7 @@ public interface CardBinClient {
* @return
*/
@PostMapping
(
value
=
"/batchQueryActivityInfo"
)
//
@IgnoreFeignLogAnnotation(excludeStatusCodes = {ResponseCodeConstant.RESPONSE_SUCCESS_STR},statusCodeFieldName= ResponseCodeKeyConstant.STATUS_CODE,messageFieldName=ResponseCodeKeyConstant.MEG)
@IgnoreFeignLogAnnotation
(
excludeStatusCodes
=
{
ResponseCodeConstant
.
RESPONSE_SUCCESS_STR
},
statusCodeFieldName
=
ResponseCodeKeyConstant
.
STATUS_CODE
,
messageFieldName
=
ResponseCodeKeyConstant
.
MEG
)
BatchQueryActivityInfoResponseDto
batchQueryActivityInfo
(
BatchQueryActivityInfoRequestDto
requestDto
);
...
...
shopping-cart-application-service/src/main/java/cn/freemud/service/thirdparty/CouponAdapterClient.java
View file @
96257768
...
...
@@ -12,6 +12,9 @@
*/
package
cn
.
freemud
.
service
.
thirdparty
;
import
cn.freemud.annotations.IgnoreFeignLogAnnotation
;
import
cn.freemud.constant.ResponseCodeConstant
;
import
cn.freemud.constant.ResponseCodeKeyConstant
;
import
cn.freemud.entities.dto.coupon.CouponAvailableRespDto
;
import
cn.freemud.entities.vo.coupon.CouponAvailableReqVo
;
import
org.springframework.cloud.openfeign.FeignClient
;
...
...
@@ -30,6 +33,7 @@ public interface CouponAdapterClient {
* @return
*/
@PostMapping
(
"/getCouponsAvailable"
)
@IgnoreFeignLogAnnotation
(
excludeStatusCodes
=
{
ResponseCodeConstant
.
RESPONSE_SUCCESS_STR
},
statusCodeFieldName
=
ResponseCodeKeyConstant
.
STATUS_CODE
,
messageFieldName
=
ResponseCodeKeyConstant
.
MSG
)
CouponAvailableRespDto
getCouponsAvailable
(
CouponAvailableReqVo
couponAvailableReqVo
);
}
shopping-cart-application-service/src/main/java/cn/freemud/service/thirdparty/CouponClient.java
View file @
96257768
...
...
@@ -12,6 +12,9 @@
*/
package
cn
.
freemud
.
service
.
thirdparty
;
import
cn.freemud.annotations.IgnoreFeignLogAnnotation
;
import
cn.freemud.constant.ResponseCodeConstant
;
import
cn.freemud.constant.ResponseCodeKeyConstant
;
import
cn.freemud.entities.dto.*
;
import
cn.freemud.service.impl.mcoffee.entity.CouponAvailableReq
;
import
cn.freemud.service.impl.mcoffee.entity.CouponAvailableResp
;
...
...
@@ -59,6 +62,7 @@ public interface CouponClient {
* 麦咖啡校验券是否可用
*/
@PostMapping
(
"/mccafe/getCouponsAvailable"
)
@IgnoreFeignLogAnnotation
(
excludeStatusCodes
=
{
ResponseCodeConstant
.
RESPONSE_SUCCESS_STR
},
statusCodeFieldName
=
ResponseCodeKeyConstant
.
STATUS_CODE
,
messageFieldName
=
ResponseCodeKeyConstant
.
MSG
)
CouponAvailableResp
getCouponsAvailable
(
CouponAvailableReq
req
);
...
...
shopping-cart-application-service/src/main/java/cn/freemud/service/thirdparty/CouponOnlineClient.java
View file @
96257768
...
...
@@ -21,7 +21,7 @@ public interface CouponOnlineClient {
/**
* 查询券详情
*/
//
@IgnoreFeignLogAnnotation(excludeStatusCodes = {ResponseCodeConstant.RESPONSE_SUCCESS_STR},statusCodeFieldName= ResponseCodeKeyConstant.STATUS_CODE)
@IgnoreFeignLogAnnotation
(
excludeStatusCodes
=
{
ResponseCodeConstant
.
RESPONSE_SUCCESS_STR
},
statusCodeFieldName
=
ResponseCodeKeyConstant
.
STATUS_CODE
)
@PostMapping
(
value
=
"/code_v4"
,
produces
=
MediaType
.
APPLICATION_JSON_UTF8_VALUE
,
consumes
=
{
MediaType
.
APPLICATION_FORM_URLENCODED_VALUE
}
)
...
...
shopping-cart-application-service/src/main/java/cn/freemud/service/thirdparty/CustomScoreClient.java
View file @
96257768
...
...
@@ -32,6 +32,6 @@ public interface CustomScoreClient {
* 用户可用积分
*/
@PostMapping
(
value
=
"/user/scoreUseDetail"
)
@IgnoreFeignLogAnnotation
@IgnoreFeignLogAnnotation
(
excludeStatusCodes
=
{
ResponseCodeConstant
.
RESPONSE_SUCCESS_STR
},
statusCodeFieldName
=
ResponseCodeKeyConstant
.
STATUS_CODE
,
messageFieldName
=
ResponseCodeKeyConstant
.
MSG
)
GetUserScoreUserDetailResponse
getUserScoreUseDetail
(
@RequestBody
GetUserScoreUseDetailRequest
getUserScoreUseDetailRequest
);
}
shopping-cart-application-service/src/main/java/cn/freemud/service/thirdparty/CustomerApplicationClient.java
View file @
96257768
...
...
@@ -3,6 +3,7 @@ package cn.freemud.service.thirdparty;
import
cn.freemud.annotations.IgnoreFeignLogAnnotation
;
import
cn.freemud.base.entity.BaseResponse
;
import
cn.freemud.constant.ResponseCodeConstant
;
import
cn.freemud.constant.ResponseCodeKeyConstant
;
import
cn.freemud.entities.dto.GetPaidRuleRequestDto
;
import
cn.freemud.entities.dto.GetPaidRuleResponseDto
;
import
cn.freemud.entities.dto.user.GetSessionUserInfoDto
;
...
...
@@ -29,12 +30,12 @@ public interface CustomerApplicationClient {
@PostMapping
(
value
=
"/membercard/getPaidRule"
)
//@IgnoreFeignLogAnnotation(excludeStatusCodes = {ResponseCodeConstant.RESPONSE_SUCCESS_STR}
)
@IgnoreFeignLogAnnotation
(
excludeStatusCodes
=
{
ResponseCodeConstant
.
RESPONSE_SUCCESS_STR
},
statusCodeFieldName
=
ResponseCodeKeyConstant
.
STATUS_CODE
,
messageFieldName
=
ResponseCodeKeyConstant
.
MSG
)
BaseResponse
<
GetPaidRuleResponseDto
>
getPaidRule
(
GetPaidRuleRequestDto
getPaidRuleRequestDto
);
@PostMapping
(
value
=
"/user/getSessionUserInfo"
)
//@IgnoreFeignLogAnnotation(excludeStatusCodes = {ResponseCodeConstant.RESPONSE_SUCCESS_STR}
)
@IgnoreFeignLogAnnotation
(
excludeStatusCodes
=
{
ResponseCodeConstant
.
RESPONSE_SUCCESS_STR
},
statusCodeFieldName
=
ResponseCodeKeyConstant
.
STATUS_CODE
,
messageFieldName
=
ResponseCodeKeyConstant
.
MSG
)
BaseResponse
<
CustomerInfoVo
>
getSessionUserInfo
(
GetSessionUserInfoDto
getSessionUserInfoDto
);
...
...
shopping-cart-application-service/src/main/java/cn/freemud/service/thirdparty/CustomerExtendClient.java
View file @
96257768
...
...
@@ -29,7 +29,7 @@ public interface CustomerExtendClient {
/**
* 会员优惠券列表
*/
@IgnoreFeignLogAnnotation
()
@IgnoreFeignLogAnnotation
(
excludeStatusCodes
=
{
ResponseCodeConstant
.
RESPONSE_SUCCESS_STR
},
statusCodeFieldName
=
ResponseCodeKeyConstant
.
STATUS_CODE
,
messageFieldName
=
ResponseCodeKeyConstant
.
MSG
)
@PostMapping
(
value
=
"/customerextendservice/coupon/getCoupons"
)
GetMemberCouponListResponseDto
getMemberCouponListRequestDto
(
@RequestBody
GetMemberCouponListRequestDto
getMemberCouponListRequestDto
);
}
shopping-cart-application-service/src/main/java/cn/freemud/service/thirdparty/DeliveryFeiginClient.java
View file @
96257768
package
cn
.
freemud
.
service
.
thirdparty
;
import
cn.freemud.annotations.IgnoreFeignLogAnnotation
;
import
cn.freemud.base.entity.BaseResponse
;
import
cn.freemud.constant.ResponseCodeConstant
;
import
cn.freemud.constant.ResponseCodeKeyConstant
;
import
cn.freemud.entities.vo.QueryDeliveryDistanceRequest
;
import
cn.freemud.entities.vo.QueryDeliveryDistanceResponseVo
;
import
cn.freemud.entities.vo.QueryDeliveryTemplateRequestVo
;
...
...
@@ -13,8 +16,10 @@ import org.springframework.web.bind.annotation.RequestBody;
public
interface
DeliveryFeiginClient
{
@PostMapping
(
"/delivery/queryDeliveryTemplate"
)
@IgnoreFeignLogAnnotation
(
excludeStatusCodes
=
{
ResponseCodeConstant
.
RESPONSE_SUCCESS_STR
},
statusCodeFieldName
=
ResponseCodeKeyConstant
.
STATUS_CODE
,
messageFieldName
=
ResponseCodeKeyConstant
.
MSG
)
QueryDeliveryTemplateResponseVo
queryDeliveryTemplate
(
@RequestBody
QueryDeliveryTemplateRequestVo
queryDeliveryTemplateRequestVo
);
@PostMapping
(
"/tools/routePlanner"
)
@IgnoreFeignLogAnnotation
(
excludeStatusCodes
=
{
ResponseCodeConstant
.
RESPONSE_SUCCESS_STR
},
statusCodeFieldName
=
ResponseCodeKeyConstant
.
STATUS_CODE
,
messageFieldName
=
ResponseCodeKeyConstant
.
MSG
)
QueryDeliveryDistanceResponseVo
queryDeliveryDistance
(
@RequestBody
QueryDeliveryDistanceRequest
queryDeliveryTemplateRequestVo
);
}
shopping-cart-application-service/src/main/java/cn/freemud/service/thirdparty/EcologyAdminApplicationClient.java
View file @
96257768
package
cn
.
freemud
.
service
.
thirdparty
;
import
cn.freemud.annotations.IgnoreFeignLogAnnotation
;
import
cn.freemud.base.entity.BaseResponse
;
import
cn.freemud.constant.ResponseCodeConstant
;
import
cn.freemud.constant.ResponseCodeKeyConstant
;
import
cn.freemud.entities.ecology.VirtualBindStoreResponse
;
import
cn.freemud.entities.ecology.VirtualStoreRequest
;
import
org.springframework.cloud.openfeign.FeignClient
;
...
...
@@ -19,6 +22,7 @@ public interface EcologyAdminApplicationClient {
/**
* 获取虚拟门店
*/
@IgnoreFeignLogAnnotation
(
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
)
BaseResponse
<
VirtualBindStoreResponse
>
getBuyBindVirtualStore
(
@RequestBody
VirtualStoreRequest
virtualStoreRequest
);
}
shopping-cart-application-service/src/main/java/cn/freemud/service/thirdparty/MemberToolsClient.java
View file @
96257768
...
...
@@ -20,7 +20,7 @@ public interface MemberToolsClient {
/**
* 根据会员手机号和商户获取会员信息
*/
@IgnoreFeignLogAnnotation
@IgnoreFeignLogAnnotation
(
excludeStatusCodes
=
{
ResponseCodeConstant
.
RESPONSE_SUCCESS_STR
},
statusCodeFieldName
=
ResponseCodeKeyConstant
.
STATUS_CODE
,
messageFieldName
=
ResponseCodeKeyConstant
.
MSG
)
@PostMapping
(
value
=
"/customerservice/getMembers"
)
GetMemberListResponseDto
getMemberList
(
@RequestBody
GetMemberListRequestDto
getMemberListRequestDto
);
}
shopping-cart-application-service/src/main/java/cn/freemud/service/thirdparty/OpenPlatformClient.java
View file @
96257768
...
...
@@ -12,6 +12,9 @@
*/
package
cn
.
freemud
.
service
.
thirdparty
;
import
cn.freemud.annotations.IgnoreFeignLogAnnotation
;
import
cn.freemud.constant.ResponseCodeConstant
;
import
cn.freemud.constant.ResponseCodeKeyConstant
;
import
cn.freemud.entities.dto.*
;
import
cn.freemud.entities.dto.openplatform.*
;
import
org.springframework.cloud.openfeign.FeignClient
;
...
...
@@ -59,6 +62,7 @@ public interface OpenPlatformClient {
* @return
*/
@PostMapping
(
"/weixincard/weixinCardForApp/getProduct"
)
@IgnoreFeignLogAnnotation
(
excludeStatusCodes
=
{
ResponseCodeConstant
.
RESPONSE_SUCCESS_STR
},
statusCodeFieldName
=
ResponseCodeKeyConstant
.
STATUS_CODE
,
messageFieldName
=
ResponseCodeKeyConstant
.
MSG
)
WeixinProductResponseDto
getWeixinProductRequestDto
(
WeixinProductRequestDto
requestDto
);
...
...
shopping-cart-application-service/src/main/java/cn/freemud/service/thirdparty/ProductClient.java
View file @
96257768
...
...
@@ -32,12 +32,12 @@ import java.util.List;
public
interface
ProductClient
{
@PostMapping
({
"/Shop/ListMenuMustProduct"
})
//
@IgnoreFeignLogAnnotation(excludeStatusCodes = {ResponseCodeConstant.RESPONSE_SUCCESS_STR},statusCodeFieldName= ResponseCodeKeyConstant.ERR_CODE,messageFieldName = ResponseCodeKeyConstant.ERR_MSG)
@IgnoreFeignLogAnnotation
(
excludeStatusCodes
=
{
ResponseCodeConstant
.
RESPONSE_SUCCESS_STR
},
statusCodeFieldName
=
ResponseCodeKeyConstant
.
ERR_CODE
,
messageFieldName
=
ResponseCodeKeyConstant
.
ERR_MSG
)
ProductBaseResponse
<
List
<
String
>>
getRequiredProductList
(
@RequestBody
RequiredProductRequest
request
);
@PostMapping
({
"/Shop/ValidateShopProduct/Reason"
})
//
@IgnoreFeignLogAnnotation(excludeStatusCodes = {ResponseCodeConstant.RESPONSE_SUCCESS_STR},statusCodeFieldName= ResponseCodeKeyConstant.ERR_CODE,messageFieldName = ResponseCodeKeyConstant.ERR_MSG)
@IgnoreFeignLogAnnotation
(
excludeStatusCodes
=
{
ResponseCodeConstant
.
RESPONSE_SUCCESS_STR
},
statusCodeFieldName
=
ResponseCodeKeyConstant
.
ERR_CODE
,
messageFieldName
=
ResponseCodeKeyConstant
.
ERR_MSG
)
ProductBaseResponse
<
ValiadShopProductResponse
>
validateShopProductAboutReason
(
@RequestBody
ValidateShopProductRequest
request
);
}
shopping-cart-application-service/src/main/java/cn/freemud/service/thirdparty/StockClient.java
View file @
96257768
...
...
@@ -32,7 +32,7 @@ public interface StockClient {
* 前端查询多个商品库存信息
*/
@PostMapping
(
"/getAvailableStocks"
)
//@IgnoreFeignLogAnnotation(excludeStatusCodes = {ResponseCodeConstant.RESPONSE_SUCCESS_STR}
)
@IgnoreFeignLogAnnotation
(
excludeStatusCodes
=
{
ResponseCodeConstant
.
RESPONSE_SUCCESS_STR
},
statusCodeFieldName
=
ResponseCodeKeyConstant
.
STATUS_CODE
,
messageFieldName
=
ResponseCodeKeyConstant
.
MSG
)
GetProductStockResponseDto
getAvailableStocks
(
@RequestBody
GetProductStockRequestDto
requestDto
);
/**
...
...
@@ -41,5 +41,6 @@ public interface StockClient {
* @return
*/
@PostMapping
(
"/updateStocks"
)
@IgnoreFeignLogAnnotation
(
excludeStatusCodes
=
{
ResponseCodeConstant
.
RESPONSE_SUCCESS_STR
},
statusCodeFieldName
=
ResponseCodeKeyConstant
.
STATUS_CODE
,
messageFieldName
=
ResponseCodeKeyConstant
.
MSG
)
BaseResponse
updateStocks
(
@RequestBody
UpdateProductStockRequestDto
requestDto
);
}
shopping-cart-application-service/src/main/java/cn/freemud/service/thirdparty/StoreItemClient.java
View file @
96257768
...
...
@@ -35,6 +35,7 @@ public interface StoreItemClient {
* 获取门店特定时间段菜单分类
*/
@PostMapping
(
value
=
"/Menu/GetMenu"
)
@IgnoreFeignLogAnnotation
(
excludeStatusCodes
=
{
ResponseCodeConstant
.
RESPONSE_SUCCESS_STR
},
statusCodeFieldName
=
ResponseCodeKeyConstant
.
STATUS_CODE
,
messageFieldName
=
ResponseCodeKeyConstant
.
MSG
)
GetMenuResponseDto
getMenuCategory
(
@RequestBody
GetMenuCategoryInfoDto
getMenuCategoryInfoDto
);
/**
...
...
@@ -42,14 +43,14 @@ public interface StoreItemClient {
* 根据商品id查询门店特定时间段菜单
*/
@PostMapping
(
value
=
"/Menu/GetMenuByIds"
)
//
@IgnoreFeignLogAnnotation(excludeStatusCodes = {ResponseCodeConstant.RESPONSE_SUCCESS_STR},statusCodeFieldName= ResponseCodeKeyConstant.ERR_CODE,messageFieldName=ResponseCodeKeyConstant.MEG)
@IgnoreFeignLogAnnotation
(
excludeStatusCodes
=
{
ResponseCodeConstant
.
RESPONSE_SUCCESS_STR
},
statusCodeFieldName
=
ResponseCodeKeyConstant
.
ERR_CODE
,
messageFieldName
=
ResponseCodeKeyConstant
.
MEG
)
GetMenuByIdsResponseDto
getMenuCategoryByIds
(
@RequestBody
GetMenuCategoryByIdsDto
getMenuCategoryByIdsDto
);
/**
* 获取商品的详细信息
*/
@PostMapping
(
"/Shop/ListProductInfoByIdList"
)
//
@IgnoreFeignLogAnnotation(excludeStatusCodes = {ResponseCodeConstant.RESPONSE_SUCCESS_STR},statusCodeFieldName= ResponseCodeKeyConstant.ERR_CODE,messageFieldName=ResponseCodeKeyConstant.MEG)
@IgnoreFeignLogAnnotation
(
excludeStatusCodes
=
{
ResponseCodeConstant
.
RESPONSE_SUCCESS_STR
},
statusCodeFieldName
=
ResponseCodeKeyConstant
.
ERR_CODE
,
messageFieldName
=
ResponseCodeKeyConstant
.
MEG
)
ProductInfosDto
listProductInfos
(
@RequestBody
GetProductInfoDto
getProductInfoDto
);
/**
...
...
@@ -57,20 +58,20 @@ public interface StoreItemClient {
* @return
*/
@PostMapping
(
"/Product/GetSpectionProductBySkuId"
)
//
@IgnoreFeignLogAnnotation(excludeStatusCodes = {ResponseCodeConstant.RESPONSE_SUCCESS_STR},statusCodeFieldName= ResponseCodeKeyConstant.ERR_CODE,messageFieldName=ResponseCodeKeyConstant.MEG)
@IgnoreFeignLogAnnotation
(
excludeStatusCodes
=
{
ResponseCodeConstant
.
RESPONSE_SUCCESS_STR
},
statusCodeFieldName
=
ResponseCodeKeyConstant
.
ERR_CODE
,
messageFieldName
=
ResponseCodeKeyConstant
.
MEG
)
ProductListDto
getSpuIdsBySkuIds
(
@RequestBody
GetSpuIdsBySkuIdsDto
requestDto
);
/**
* 校验商品可用性
*/
@PostMapping
(
"Shop/ValidateShopProduct"
)
//
@IgnoreFeignLogAnnotation(excludeStatusCodes = {ResponseCodeConstant.RESPONSE_SUCCESS_STR},statusCodeFieldName= ResponseCodeKeyConstant.ERR_CODE,messageFieldName=ResponseCodeKeyConstant.MEG)
@IgnoreFeignLogAnnotation
(
excludeStatusCodes
=
{
ResponseCodeConstant
.
RESPONSE_SUCCESS_STR
},
statusCodeFieldName
=
ResponseCodeKeyConstant
.
ERR_CODE
,
messageFieldName
=
ResponseCodeKeyConstant
.
MEG
)
ProductResponseDTO
<
ValiadShopProductResponse
>
validateShopProduct
(
@RequestBody
ValidateShopProductRequest
request
);
/**
* 校验商品在当前门店是否可售
*/
@PostMapping
(
"/Shop/validateShopContainProduct"
)
//
@IgnoreFeignLogAnnotation(excludeStatusCodes = {ResponseCodeConstant.RESPONSE_SUCCESS_STR},statusCodeFieldName= ResponseCodeKeyConstant.ERR_CODE,messageFieldName=ResponseCodeKeyConstant.MEG)
@IgnoreFeignLogAnnotation
(
excludeStatusCodes
=
{
ResponseCodeConstant
.
RESPONSE_SUCCESS_STR
},
statusCodeFieldName
=
ResponseCodeKeyConstant
.
ERR_CODE
,
messageFieldName
=
ResponseCodeKeyConstant
.
MEG
)
ValidateProductInfosDto
validateShopContainProduct
(
@RequestBody
GetValidateProductInfoDto
getProductInfoDto
);
}
shopping-cart-application-service/src/main/java/cn/freemud/service/thirdparty/SvcComPayClient.java
View file @
96257768
package
cn
.
freemud
.
service
.
thirdparty
;
import
cn.freemud.annotations.IgnoreFeignLogAnnotation
;
import
cn.freemud.constant.ResponseCodeConstant
;
import
cn.freemud.constant.ResponseCodeKeyConstant
;
import
cn.freemud.entities.dto.SvcComPayRequestDto
;
import
cn.freemud.entities.dto.SvcComPayResponseDto
;
import
org.springframework.cloud.openfeign.FeignClient
;
...
...
@@ -21,5 +24,6 @@ import org.springframework.web.bind.annotation.RequestMapping;
public
interface
SvcComPayClient
{
@PostMapping
(
"/paymentmanager/partnerSetting/queryAssociationPaymentFlagPartnerSetting"
)
@IgnoreFeignLogAnnotation
(
excludeStatusCodes
=
{
ResponseCodeConstant
.
RESPONSE_SUCCESS_STR
},
statusCodeFieldName
=
ResponseCodeKeyConstant
.
STATUS_CODE
,
messageFieldName
=
ResponseCodeKeyConstant
.
MSG
)
SvcComPayResponseDto
query
(
SvcComPayRequestDto
svcComPayRequestDto
);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment