切换导航条
此项目
正在载入...
登录
allied-creation
/
performance
·
提交
转到一个项目
GitLab
转到群组
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
tangxvhui
about a year ago
提交
1ac0d3871c914763695d5318264b42a4bb5d6442
1 个父辈
834f410b
调整时区问题
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
6 行增加
和
6 行删除
pkg/application/notify/sms.go
pkg/infrastructure/repository/pg_staff_assess_repository.go
pkg/application/notify/sms.go
查看文件 @
1ac0d38
...
...
@@ -108,12 +108,12 @@ func (notices *notifySms) checkSendSms() error {
}()
logSmsRepo
:=
factory
.
CreateLogSmsRepository
(
map
[
string
]
interface
{}{
"transactionContext"
:
transactionContext
})
nowTime
:=
time
.
Now
()
//
nowDay := dayZeroTime(nowTime)
nowDay
:=
dayZeroTime
(
nowTime
)
_
,
logSmsList
,
err
:=
logSmsRepo
.
Find
(
map
[
string
]
interface
{}{
"status"
:
string
(
domain
.
SmsWait
),
"executeAtEnd"
:
nowTime
,
// "executeAtBegin": nowDay,
"limit"
:
1000
,
"status"
:
string
(
domain
.
SmsWait
),
"executeAtEnd"
:
nowTime
,
"executeAtBegin"
:
nowDay
,
"limit"
:
1000
,
})
if
err
!=
nil
{
return
err
...
...
pkg/infrastructure/repository/pg_staff_assess_repository.go
查看文件 @
1ac0d38
...
...
@@ -169,7 +169,7 @@ func (repo *StaffAssessRepository) Find(queryOptions map[string]interface{}) (in
}
//查询第几号日期的数据
if
v
,
ok
:=
queryOptions
[
"beginDayNumber"
];
ok
{
query
.
Where
(
"date_part('day',staff_assess.begin_time) = ?"
,
v
)
query
.
Where
(
"date_part('day',staff_assess.begin_time
at time zone 'PRC'
) = ?"
,
v
)
}
query
.
Order
(
"staff_assess.id DESC"
)
...
...
请
注册
或
登录
后发表评论