切换导航条
此项目
正在载入...
登录
mmm-go
/
partnermg
·
提交
转到一个项目
GitLab
转到群组
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
唐旭辉
5 years ago
提交
5c769bae36c68a549e01d0626fab8d7657b852fb
1 个父辈
d8ef0334
提交
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
5 行增加
和
9 行删除
main.go
pkg/application/orderinfo/service/order_info.go
main.go
查看文件 @
5c769ba
...
...
@@ -4,7 +4,6 @@ import (
"context"
"os"
"os/signal"
"sync"
"syscall"
"github.com/astaxie/beego"
...
...
@@ -28,11 +27,9 @@ func main() {
if
err
:=
consumerRun
.
InitConsumer
();
err
!=
nil
{
logs
.
Error
(
"启动kafka消息消费者失败:%s"
,
err
)
}
wg
:=
&
sync
.
WaitGroup
{}
wg
.
Add
(
1
)
go
func
()
{
consumerRun
.
Start
(
ctx
)
wg
.
Done
()
}()
go
func
()
{
<-
consumerRun
.
IsReady
()
...
...
@@ -47,7 +44,6 @@ func main() {
select
{
case
<-
sigs
:
cancel
()
wg
.
Wait
()
return
default
:
}
...
...
pkg/application/orderinfo/service/order_info.go
查看文件 @
5c769ba
...
...
@@ -923,10 +923,10 @@ func (service OrderInfoService) buildOrderBestshopInfoData(orderBase *domain.Ord
"paymentStatus"
:
orderBase
.
Goods
[
i
]
.
BonusStatus
,
"partnerRatio"
:
orderBase
.
Goods
[
i
]
.
PartnerBonusPercent
,
}
// if orderBase.Goods[i].PartnerBonusPercent >= 0 {
// hasPartnerBonusPercent = true
// detail["partnerRatio"] = fmt.Sprint(orderBase.Goods[i].PartnerBonusPercent)
// }
if
orderBase
.
Goods
[
i
]
.
PartnerBonusPercent
>=
0
{
hasPartnerBonusPercent
=
true
// detail["partnerRatio"] = fmt.Sprint(orderBase.Goods[i].PartnerBonusPercent)
}
goodBestshopId
:=
orderBase
.
Goods
[
i
]
.
DataFrom
.
DataId
if
v
,
ok
:=
orderGoodBestshopMap
[
goodBestshopId
];
ok
{
detail
[
"productCodes"
]
=
v
.
Sn
...
...
请
注册
或
登录
后发表评论