切换导航条
此项目
正在载入...
登录
allied-creation
/
allied-creation-cooperation
·
提交
转到一个项目
GitLab
转到群组
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
yangfu
3 years ago
提交
7601eabff86b921cd4bf1ea1e49d48547149e777
1 个父辈
cec855b5
统计修改
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
4 行增加
和
0 行删除
pkg/infrastructure/dao/pg_credit_account_dao.go
pkg/infrastructure/domain_service/pg_cooperation_statistics_service.go
pkg/infrastructure/dao/pg_credit_account_dao.go
查看文件 @
7601eab
...
...
@@ -102,6 +102,7 @@ func (dao *CreditAccountDao) CooperationUsersDividendsStatistics(queryOptions ma
query
.
ColumnExpr
(
`sum(good_amount_count) dividends_order_amount`
)
query
.
ColumnExpr
(
`sum(settlement_amount) divides_amount`
)
query
.
ColumnExpr
(
`sum((case when payment_status = 2 then actually_paid_amount else 0 end)) actually_paid_amount`
)
query
.
ColumnExpr
(
`sum((case when payment_status = 1 then settlement_amount else 0 end)) un_paid_amount`
)
query
.
ColumnExpr
(
`max(participator->>'userId') user_id`
)
query
.
ColumnExpr
(
`max(participator#>>'{userInfo,userName}') user_name`
)
if
_
,
ok
:=
queryOptions
[
"beginTime"
];
ok
&&
!
queryOptions
[
"beginTime"
]
.
(
time
.
Time
)
.
IsZero
()
{
...
...
pkg/infrastructure/domain_service/pg_cooperation_statistics_service.go
查看文件 @
7601eab
...
...
@@ -339,6 +339,9 @@ func (ptr *CooperationStatisticsService) GetContractDividends(queryOptions map[s
"dividendsEstimateTime"
:
a
.
CreatedAt
.
Unix
()
*
1000
,
"orderOrReturnedOrderNum"
:
a
.
DividendsEstimateOrderNumber
,
}
if
a
.
PaymentStatus
==
0
{
item
[
"dividendsAccountStatus"
]
=
1
}
if
v
,
ok
:=
mapOrderGoods
[
a
.
OrderGoodId
];
ok
{
item
[
"orderGoodName"
]
=
v
.
OrderGoodName
if
v
.
OrderGoodAmount
>
0
{
...
...
请
注册
或
登录
后发表评论