切换导航条
此项目
正在载入...
登录
allied-creation
/
performance
·
提交
转到一个项目
GitLab
转到群组
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
tangxvhui
2 years ago
提交
e80a5ff7fab401be9de869aaf71c41a7f67eb7c5
1 个父辈
68a350c5
里程碑数据查询错误
隐藏空白字符变更
内嵌
并排对比
正在显示
3 个修改的文件
包含
12 行增加
和
9 行删除
pkg/application/task/service/service.go
pkg/domain/user_auth_test.go
pkg/infrastructure/repository/pg_task_stage_repository.go
pkg/application/task/service/service.go
查看文件 @
e80a5ff
...
...
@@ -596,6 +596,11 @@ func (srv TaskService) ListTask(param *command.ListTaskCommand) (map[string]inte
Name
:
val
.
Name
,
StatusDescription
:
val
.
StatusDescription
(),
SortBy
:
val
.
SortBy
,
PlanCompletedAt
:
time
.
Unix
(
int64
(
val
.
PlanCompletedAt
),
0
)
.
Local
()
.
Format
(
"2006-01-02"
),
RealCompletedAt
:
""
,
}
if
val
.
RealCompletedAt
>
0
{
stage
.
RealCompletedAt
=
time
.
Unix
(
int64
(
val
.
RealCompletedAt
),
0
)
.
Local
()
.
Format
(
"2006-01-02"
)
}
switch
val
.
SortBy
{
case
1
:
...
...
@@ -887,10 +892,9 @@ func (srv TaskService) ReplyTaskStage(transactionContext application.Transaction
if
err
!=
nil
{
return
application
.
ThrowError
(
application
.
INTERNAL_SERVER_ERROR
,
"找不到任务数据"
+
err
.
Error
())
}
if
!
(
len
(
val
.
AssistContent
)
==
0
||
val
.
AssistContent
==
"无"
)
{
taskData
.
Anomaly
=
0
}
// if !(len(val.AssistContent) == 0 || val.AssistContent == "无") {
// taskData.Anomaly = 0
// }
taskList
=
append
(
taskList
,
taskData
)
_
,
stageList
,
err
:=
taskStageRepo
.
Find
(
map
[
string
]
interface
{}{
"ids"
:
[]
int
{
val
.
TaskStageCheck
.
Id
}})
if
err
!=
nil
{
...
...
pkg/domain/user_auth_test.go
查看文件 @
e80a5ff
...
...
@@ -8,9 +8,9 @@ import (
func
TestGenerateToken
(
t
*
testing
.
T
)
{
ut
:=
UserAuth
{
CompanyId
:
233
,
UserId
:
3240357405361920
,
Phone
:
"13459147023"
,
CompanyId
:
8
,
UserId
:
3438641393081088
,
Phone
:
"17711111111"
,
PlatformId
:
28
,
AdminType
:
1
,
}
...
...
pkg/infrastructure/repository/pg_task_stage_repository.go
查看文件 @
e80a5ff
...
...
@@ -102,8 +102,7 @@ func (repo *TaskStageRepository) Find(queryOptions map[string]interface{}) (int,
tx
:=
repo
.
transactionContext
.
PgTx
var
m
[]
*
models
.
TaskStage
query
:=
tx
.
Model
(
&
m
)
.
Where
(
"deleted_at isnull"
)
.
Limit
(
20
)
Where
(
"deleted_at isnull"
)
if
val
,
ok
:=
queryOptions
[
"taskId"
];
ok
{
query
.
Where
(
"task_stage.task_id = ?"
,
val
)
...
...
请
注册
或
登录
后发表评论