切换导航条
此项目
正在载入...
登录
allied-creation
/
allied-creation-cooperation
·
提交
转到一个项目
GitLab
转到群组
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
差异文件
浏览文件
作者
陈志颖
3 years ago
提交
150f8b4a5f4a29b3a9d0e5342874f6483eb4c7c0
2 个父辈
9943bf3e
005a1f23
合并分支 'dev' 到 'test'
fix:修复分红预算单号生成错误 查看合并请求
!38
隐藏空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
6 行增加
和
1 行删除
pkg/infrastructure/dao/pg_dividends_estimate_dao.go
pkg/infrastructure/dao/pg_dividends_estimate_dao.go
查看文件 @
150f8b4
...
...
@@ -95,6 +95,11 @@ func (dao *DividendsEstimateDao) CountDividendsEstimate(queryOptions map[string]
tx
:=
dao
.
transactionContext
.
PgTx
var
dividendsEstimateModels
[]
*
models
.
DividendsEstimate
query
:=
tx
.
Model
(
&
dividendsEstimateModels
)
currentTime
:=
time
.
Now
()
todayZeroTime
:=
utils
.
GetZeroTime
(
currentTime
)
nextDayZeroTime
:=
utils
.
GetNextDayZeroTime
(
currentTime
)
query
.
Where
(
"dividends_estimate.created_at >= ?"
,
todayZeroTime
)
query
.
Where
(
"dividends_estimate.created_at < ?"
,
nextDayZeroTime
)
if
companyId
,
ok
:=
queryOptions
[
"companyId"
];
ok
&&
companyId
.
(
int64
)
!=
0
{
query
=
query
.
Where
(
`dividends_estimate.company @> '{"companyId":"?"}'`
,
companyId
)
}
...
...
@@ -108,7 +113,7 @@ func (dao *DividendsEstimateDao) CountDividendsEstimate(queryOptions map[string]
}
}
// CountDividendsEstimate 统计当前分红预算单总数
// CountDividendsEstimate
DividendsAmount
统计当前分红预算单总数
func
(
dao
*
DividendsEstimateDao
)
CountDividendsEstimateDividendsAmount
(
queryOptions
map
[
string
]
interface
{})
(
float64
,
error
)
{
tx
:=
dao
.
transactionContext
.
PgTx
var
dividendsEstimateModels
[]
*
models
.
DividendsEstimate
...
...
请
注册
或
登录
后发表评论