切换导航条
此项目
正在载入...
登录
allied-creation
/
performance
·
提交
转到一个项目
GitLab
转到群组
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
tangxvhui
2 years ago
提交
3d39f57cd7bb5954d5587dd2dfcd00d00c39fa05
1 个父辈
bc0cec38
去除字段
隐藏空白字符变更
内嵌
并排对比
正在显示
4 个修改的文件
包含
9 行增加
和
9 行删除
pkg/application/summary_evaluation/service/service.go
pkg/domain/summary_evaluation_value.go
pkg/infrastructure/pg/models/summary_evaluation_value.go
pkg/infrastructure/repository/pg_summary_evaluation_value_repository.go
pkg/application/summary_evaluation/service/service.go
查看文件 @
3d39f57
...
...
@@ -1588,11 +1588,11 @@ func (srv *SummaryEvaluationService) editEvaluationValue(
for
_
,
v
:=
range
evaluationItems
{
newValue
:=
&
domain
.
SummaryEvaluationValue
{}
newValue
.
SetBlankValue
(
evaluationData
,
v
)
if
isTemporary
{
newValue
.
IsTemporary
=
1
}
else
{
newValue
.
IsTemporary
=
0
}
// if isTemporary {
// newValue.IsTemporary = 1
// } else {
// newValue.IsTemporary = 0
// }
evaluationValueMap
[
v
.
Id
]
=
newValue
evaluationItemMap
[
v
.
Id
]
=
v
//重置计数
...
...
pkg/domain/summary_evaluation_value.go
查看文件 @
3d39f57
...
...
@@ -21,7 +21,7 @@ type SummaryEvaluationValue struct {
Rating
RatingLevel
`json:"rating"`
//评级时的填写值
CreatedAt
time
.
Time
`json:"createdAt"`
//数据创建时间
UpdatedAt
time
.
Time
`json:"updatedAt"`
//数据更新时间
IsTemporary
int
`json:"IsTemporary"`
// 0-正式数据 1-临时提交的数据
//
IsTemporary int `json:"IsTemporary"` // 0-正式数据 1-临时提交的数据
}
type
SummaryEvaluationValueRepository
interface
{
...
...
pkg/infrastructure/pg/models/summary_evaluation_value.go
查看文件 @
3d39f57
...
...
@@ -20,5 +20,5 @@ type SummaryEvaluationValue struct {
Remark
string
//填写的内容反馈
CreatedAt
time
.
Time
//数据创建时间
UpdatedAt
time
.
Time
//数据更新时间
IsTemporary
int
`pg:",use_zero"`
// 0-正式数据 1-临时提交的数据
//
IsTemporary int `pg:",use_zero"` // 0-正式数据 1-临时提交的数据
}
...
...
pkg/infrastructure/repository/pg_summary_evaluation_value_repository.go
查看文件 @
3d39f57
...
...
@@ -34,7 +34,7 @@ func (repo *SummaryEvaluationValueRepository) TransformToDomain(d *models.Summar
Rating
:
d
.
Rating
,
CreatedAt
:
d
.
CreatedAt
,
UpdatedAt
:
d
.
UpdatedAt
,
IsTemporary
:
d
.
IsTemporary
,
//
IsTemporary: d.IsTemporary,
}
}
...
...
@@ -51,7 +51,7 @@ func (repo *SummaryEvaluationValueRepository) Save(param *domain.SummaryEvaluati
Remark
:
param
.
Remark
,
CreatedAt
:
param
.
CreatedAt
,
UpdatedAt
:
param
.
UpdatedAt
,
IsTemporary
:
param
.
IsTemporary
,
//
IsTemporary: param.IsTemporary,
}
db
:=
repo
.
transactionContext
.
PgTx
if
m
.
Id
==
0
{
...
...
请
注册
或
登录
后发表评论