Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
sibu-v-mall
/
sibu-v-mall-third-api
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
构建
提交
问题看板
文件
提交
网络
比较
分支
标签
45e4a563
由
wangzhiliang
编写于
2018-11-07 10:15:57 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
微服务接口增加日志ID
1 个父辈
2f9b7006
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
19 行增加
和
4 行删除
com.sibu.orderHelper.service/src/main/java/com/sibu/orderHelper/integral/service/pineapple/impl/CheckRefundStatusBizServiceImpl.java
com.sibu.orderHelper.service/src/main/java/com/sibu/orderHelper/integral/service/pineapple/impl/GetOrderBizServiceImpl.java
com.sibu.orderHelper.service/src/main/java/com/sibu/orderHelper/integral/service/pineapple/impl/GetRefundBizServiceImpl.java
com.sibu.orderHelper.service/src/main/java/com/sibu/orderHelper/integral/service/pineapple/impl/PineappleSendBizServiceImpl.java
com.sibu.orderHelper.service/src/main/java/com/sibu/orderHelper/integral/service/pineapple/impl/UpdateSellerMemoBizServiceImpl.java
com.sibu.orderHelper.service/src/main/java/com/sibu/orderHelper/integral/service/pineapple/impl/CheckRefundStatusBizServiceImpl.java
查看文件 @
45e4a56
...
...
@@ -2,6 +2,7 @@ package com.sibu.orderHelper.integral.service.pineapple.impl;
import
com.alibaba.dubbo.config.annotation.Reference
;
import
com.doubo.common.model.response.CommonResponse
;
import
com.sibu.mall.common.utils.SeqGenUtil
;
import
com.sibu.mall.order.request.third.ThirdQueryOrderRequest
;
import
com.sibu.mall.order.response.api.ApiOrdersResponse
;
import
com.sibu.mall.order.service.ThirdApiOrderService
;
...
...
@@ -46,6 +47,7 @@ public class CheckRefundStatusBizServiceImpl extends AbstractBizService<CheckRef
ThirdQueryOrderRequest
thirdQueryOrderRequest
=
new
ThirdQueryOrderRequest
();
thirdQueryOrderRequest
.
setOrderSn
(
callRequest
.
getBizModel
().
getOrderID
());
thirdQueryOrderRequest
.
setSellerId
(
callRequest
.
getSupplier
().
getId
());
thirdQueryOrderRequest
.
setInitiationID
(
SeqGenUtil
.
getLogId
());
Orders
orders
=
null
;
CommonResponse
<
ApiOrdersResponse
>
commonResponse
=
thirdApiOrderService
.
getOrdersByMap
(
thirdQueryOrderRequest
);
if
(
commonResponse
.
isSuccess
()){
...
...
com.sibu.orderHelper.service/src/main/java/com/sibu/orderHelper/integral/service/pineapple/impl/GetOrderBizServiceImpl.java
查看文件 @
45e4a56
...
...
@@ -3,6 +3,7 @@ package com.sibu.orderHelper.integral.service.pineapple.impl;
import
com.alibaba.dubbo.config.annotation.Reference
;
import
com.doubo.common.model.response.CommonResponse
;
import
com.sibu.mall.common.response.PageResult
;
import
com.sibu.mall.common.utils.SeqGenUtil
;
import
com.sibu.mall.order.request.api.ApiOrdersSnRequest
;
import
com.sibu.mall.order.request.third.ThirdPageQueryOrderListRequest
;
import
com.sibu.mall.order.response.api.ApiOrdersProductResponse
;
...
...
@@ -83,7 +84,7 @@ public class GetOrderBizServiceImpl extends AbstractBizService<GetOrderRequest>
}
thirdPageQueryOrderListRequest
.
setPageNow
(
callRequest
.
getBizModel
().
getPageIndex
());
thirdPageQueryOrderListRequest
.
setPageSize
(
callRequest
.
getBizModel
().
getPageSize
());
thirdPageQueryOrderListRequest
.
setInitiationID
(
SeqGenUtil
.
getLogId
());
CommonResponse
<
PageResult
<
ApiOrdersResponse
>>
thirdResponse
=
thirdApiOrderService
.
pageOrder
(
thirdPageQueryOrderListRequest
);
GetOrderResponse
response
=
new
GetOrderResponse
();
...
...
@@ -135,7 +136,9 @@ public class GetOrderBizServiceImpl extends AbstractBizService<GetOrderRequest>
OrderResponse
orderResponse
=
this
.
getOrderResponse
(
o
);
try
{
List
<
OrdersProduct
>
ordersProductList
=
null
;
CommonResponse
<
List
<
ApiOrdersProductResponse
>>
commonResponse
=
apiOrdersProductService
.
getOrdersProductByOrderSn
(
new
ApiOrdersSnRequest
(
o
.
getOrderSn
()));
ApiOrdersSnRequest
apiOrdersSnRequest
=
new
ApiOrdersSnRequest
(
o
.
getOrderSn
());
apiOrdersSnRequest
.
setInitiationID
(
SeqGenUtil
.
getLogId
());
CommonResponse
<
List
<
ApiOrdersProductResponse
>>
commonResponse
=
apiOrdersProductService
.
getOrdersProductByOrderSn
(
apiOrdersSnRequest
);
if
(
commonResponse
.
isSuccess
()){
ordersProductList
=
BeanCopyUtils
.
copyList
(
OrdersProduct
.
class
,
commonResponse
.
getResult
());
}
...
...
com.sibu.orderHelper.service/src/main/java/com/sibu/orderHelper/integral/service/pineapple/impl/GetRefundBizServiceImpl.java
查看文件 @
45e4a56
...
...
@@ -2,6 +2,7 @@ package com.sibu.orderHelper.integral.service.pineapple.impl;
import
com.alibaba.dubbo.config.annotation.Reference
;
import
com.doubo.common.model.response.CommonResponse
;
import
com.sibu.mall.common.utils.SeqGenUtil
;
import
com.sibu.mall.order.request.api.ApiOrdersSnRequest
;
import
com.sibu.mall.order.request.third.ThirdOrdersProductIdRequest
;
import
com.sibu.mall.order.response.api.ApiOrdersResponse
;
...
...
@@ -69,7 +70,9 @@ public class GetRefundBizServiceImpl extends AbstractBizService<GetRefundReques
orderSn
=
memberReadDao
.
getNewOrderSnByOldOrderSn
(
orderSn
);
}
CommonResponse
<
ApiOrdersResponse
>
orderResponse
=
apiOrdersService
.
getOrdersByOrderSn
(
new
ApiOrdersSnRequest
(
orderSn
));
ApiOrdersSnRequest
apiOrdersSnRequest
=
new
ApiOrdersSnRequest
(
orderSn
);
apiOrdersSnRequest
.
setInitiationID
(
SeqGenUtil
.
getLogId
());
CommonResponse
<
ApiOrdersResponse
>
orderResponse
=
apiOrdersService
.
getOrdersByOrderSn
(
apiOrdersSnRequest
);
if
(
orderResponse
.
isSuccess
()){
getRefundBean
.
setTotalamount
(
orderResponse
.
getResult
().
getMoneyOrder
());
getRefundBean
.
setPayamount
(
orderResponse
.
getResult
().
getMoneyOrder
());
...
...
@@ -77,7 +80,9 @@ public class GetRefundBizServiceImpl extends AbstractBizService<GetRefundReques
}
else
{
throw
new
BizException
(
orderResponse
.
getErrorMsg
());
}
CommonResponse
<
Integer
>
response
=
thirdApiOrderService
.
countOrderProductNum
(
new
ThirdOrdersProductIdRequest
(
getRefundBean
.
getOrdersproductuid
(),
orderSn
));
ThirdOrdersProductIdRequest
thirdOrdersProductIdRequest
=
new
ThirdOrdersProductIdRequest
(
getRefundBean
.
getOrdersproductuid
(),
orderSn
);
thirdOrdersProductIdRequest
.
setInitiationID
(
SeqGenUtil
.
getLogId
());
CommonResponse
<
Integer
>
response
=
thirdApiOrderService
.
countOrderProductNum
(
thirdOrdersProductIdRequest
);
getRefundBean
.
setProductnum
(
response
.
getResult
());
OrderStatusEnum
orderStatusEnum
=
OrderStatusEnum
.
resolveByPlatformOrderStatus
(
Integer
.
valueOf
(
getRefundBean
.
getOrderstatus
()));
if
(
orderStatusEnum
.
getCode
().
equals
(
OrderStatusEnum
.
UNKNOWN
.
getCode
())){
...
...
com.sibu.orderHelper.service/src/main/java/com/sibu/orderHelper/integral/service/pineapple/impl/PineappleSendBizServiceImpl.java
查看文件 @
45e4a56
...
...
@@ -2,6 +2,7 @@ package com.sibu.orderHelper.integral.service.pineapple.impl;
import
com.alibaba.dubbo.config.annotation.Reference
;
import
com.doubo.common.model.response.CommonResponse
;
import
com.sibu.mall.common.utils.SeqGenUtil
;
import
com.sibu.mall.order.request.third.ThirdQueryOrderRequest
;
import
com.sibu.mall.order.request.third.ThirdUpdateOrderRequest
;
import
com.sibu.mall.order.response.api.ApiOrdersResponse
;
...
...
@@ -53,6 +54,7 @@ public class PineappleSendBizServiceImpl extends AbstractBizService<PineappleSen
ThirdQueryOrderRequest
thirdQueryOrderRequest
=
new
ThirdQueryOrderRequest
();
thirdQueryOrderRequest
.
setOrderSn
(
callRequest
.
getBizModel
().
getPlatOrderNo
());
thirdQueryOrderRequest
.
setSellerId
(
callRequest
.
getSupplier
().
getId
());
thirdQueryOrderRequest
.
setInitiationID
(
SeqGenUtil
.
getLogId
());
Orders
orders
=
null
;
CommonResponse
<
ApiOrdersResponse
>
commonResponse
=
thirdApiOrderService
.
getOrdersByMap
(
thirdQueryOrderRequest
);
if
(
commonResponse
.
isSuccess
()){
...
...
com.sibu.orderHelper.service/src/main/java/com/sibu/orderHelper/integral/service/pineapple/impl/UpdateSellerMemoBizServiceImpl.java
查看文件 @
45e4a56
...
...
@@ -2,6 +2,7 @@ package com.sibu.orderHelper.integral.service.pineapple.impl;
import
com.alibaba.dubbo.config.annotation.Reference
;
import
com.doubo.common.model.response.CommonResponse
;
import
com.sibu.mall.common.utils.SeqGenUtil
;
import
com.sibu.mall.order.request.third.ThirdQueryOrderRequest
;
import
com.sibu.mall.order.request.third.ThirdUpdateOrderRequest
;
import
com.sibu.mall.order.response.api.ApiOrdersResponse
;
...
...
@@ -43,11 +44,13 @@ public class UpdateSellerMemoBizServiceImpl extends AbstractBizService<UpdateS
thirdQueryOrderRequest
.
setOrderSn
(
callRequest
.
getBizModel
().
getPlatOrderNo
());
thirdQueryOrderRequest
.
setSellerId
(
callRequest
.
getSupplier
().
getId
());
thirdQueryOrderRequest
.
setInitiationID
(
SeqGenUtil
.
getLogId
());
ThirdUpdateOrderRequest
thirdUpdateOrderRequest
=
new
ThirdUpdateOrderRequest
();
thirdUpdateOrderRequest
.
setOrderSn
(
callRequest
.
getBizModel
().
getPlatOrderNo
());
thirdUpdateOrderRequest
.
setSellerId
(
callRequest
.
getSupplier
().
getId
());
thirdUpdateOrderRequest
.
setRemark
(
callRequest
.
getBizModel
().
getSellerMemo
());
thirdUpdateOrderRequest
.
setInitiationID
(
SeqGenUtil
.
getLogId
());
Orders
orders
=
null
;
CommonResponse
<
ApiOrdersResponse
>
response
=
thirdApiOrderService
.
getOrdersByMap
(
thirdQueryOrderRequest
);
...
...
请
注册
或
登录
后发表评论