切换导航条
此项目
正在载入...
登录
allied-creation
/
performance
·
提交
转到一个项目
GitLab
转到群组
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
差异文件
浏览文件
作者
郑周
2 years ago
提交
969b314a77c0cd578f8ccba665f6669d15807257
2 个父辈
c0ba137c
60700047
Merge remote-tracking branch 'origin/test' into test
隐藏空白字符变更
内嵌
并排对比
正在显示
4 个修改的文件
包含
5 行增加
和
0 行删除
pkg/application/staff_assess/service/service.go
pkg/domain/staff_assess_content.go
pkg/infrastructure/pg/models/staff_assess_content.go
pkg/infrastructure/repository/pg_staff_assess_content_repository.go
pkg/application/staff_assess/service/service.go
查看文件 @
969b314
...
...
@@ -1055,6 +1055,7 @@ func (srv StaffAssessServeice) getAssessSelfInfoUncompleted(transactionContext a
Value
:
""
,
ReteResult
:
""
,
CreatedAt
:
nowTime
,
Weight
:
v
.
Weight
,
UpdatedAt
:
nowTime
,
DeletedAt
:
nil
,
// Rule: ,
...
...
pkg/domain/staff_assess_content.go
查看文件 @
969b314
...
...
@@ -15,6 +15,7 @@ type StaffAssessContent struct {
Value
string
`json:"value"`
//评估填写的值
ReteResult
string
`json:"reteResult"`
//评估的结果
Rule
EvaluationRule
`json:"rule"`
//评估的选项规则
Weight
int
`json:"weight" `
//"权重"
CreatedAt
time
.
Time
`json:"createdAt"`
//数据创建时间
UpdatedAt
time
.
Time
`json:"updatedAt"`
//数据更新时间
DeletedAt
*
time
.
Time
`json:"deletedAt"`
...
...
pkg/infrastructure/pg/models/staff_assess_content.go
查看文件 @
969b314
...
...
@@ -20,6 +20,7 @@ type StaffAssessContent struct {
ReteResult
string
//评估的结果
Rule
domain
.
EvaluationRule
Remark
[]
domain
.
AssessContemtRemark
Weight
int
//权重
CreatedAt
time
.
Time
//数据创建时间
UpdatedAt
time
.
Time
//数据更新时间
DeletedAt
*
time
.
Time
...
...
pkg/infrastructure/repository/pg_staff_assess_content_repository.go
查看文件 @
969b314
...
...
@@ -34,6 +34,7 @@ func (repo *StaffAssessContentRepository) TransformToDomain(d *models.StaffAsses
Value
:
d
.
Value
,
ReteResult
:
d
.
ReteResult
,
Rule
:
d
.
Rule
,
Weight
:
d
.
Weight
,
CreatedAt
:
d
.
CreatedAt
,
UpdatedAt
:
d
.
UpdatedAt
,
DeletedAt
:
nil
,
...
...
@@ -55,6 +56,7 @@ func (repo *StaffAssessContentRepository) Save(d *domain.StaffAssessContent) (*d
Rule
:
d
.
Rule
,
CreatedAt
:
d
.
CreatedAt
,
UpdatedAt
:
d
.
UpdatedAt
,
Weight
:
d
.
Weight
,
DeletedAt
:
nil
,
}
tx
:=
repo
.
transactionContext
.
PgTx
...
...
请
注册
或
登录
后发表评论