切换导航条
此项目
正在载入...
登录
allied-creation
/
performance
·
提交
转到一个项目
GitLab
转到群组
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
差异文件
浏览文件
作者
tangxvhui
2 years ago
提交
81e2d1f5d7073f2e2e3628414e596bbc8bf774e3
2 个父辈
9da7bea5
1206578f
Merge branch 'test' into dev-tangxvhui
隐藏空白字符变更
内嵌
并排对比
正在显示
3 个修改的文件
包含
20 行增加
和
19 行删除
pkg/infrastructure/pg/models/evaluation_project.go
pkg/infrastructure/pg/models/staff_assess.go
pkg/infrastructure/pg/models/staff_assess_content.go
pkg/infrastructure/pg/models/evaluation_project.go
查看文件 @
81e2d1f
package
models
import
(
"gitlab.fjmaimaimai.com/allied-creation/performance/pkg/domain"
"time"
"gitlab.fjmaimaimai.com/allied-creation/performance/pkg/domain"
)
type
EvaluationProject
struct
{
...
...
@@ -14,8 +15,8 @@ type EvaluationProject struct {
CycleId
int64
`comment:"周期ID"`
CreatorId
int64
`comment:"创建人ID"`
State
int
`comment:"状态(0待完成配置、1待启用、2启用、3停用)" pg:",use_zero"`
HrBp
int
`comment:"HR角色权限"`
Pmp
int
`comment:"PM角色权限"`
HrBp
int
`pg:",use_zero" comment:"HR角色权限"`
Pmp
int
`pg:",use_zero" comment:"PM角色权限"`
PmpIds
[]
string
`comment:"项目管理员ID"`
Recipients
[]
string
`comment:"被评估人ID"`
Template
*
domain
.
EvaluationTemplate
`comment:"评估模板"`
...
...
pkg/infrastructure/pg/models/staff_assess.go
查看文件 @
81e2d1f
...
...
@@ -8,24 +8,24 @@ import (
// 记录用户需要的评估项
type
StaffAssess
struct
{
tableName
struct
{}
`pg:"staff_assess" comment:"记录用户需要的评估项"`
Id
int
`pg:",pk"`
//id
CompanyId
int
`comment:"公司id"`
//公司id
EvaluationProjectId
int
`comment:"对应的项目id"`
//对应的项目id
EvaluationProjectName
string
CycleId
int64
`comment:"对应的周期id"`
//对应的周期id
CycleName
string
StaffAssessTaskId
int
tableName
struct
{}
`pg:"staff_assess" comment:"记录用户需要的评估项"`
Id
int
`pg:",pk"`
//id
CompanyId
int
`comment:"公司id"`
//公司id
EvaluationProjectId
int
`comment:"对应的项目id"`
//对应的项目id
EvaluationProjectName
string
`comment:"对应的项目名称"`
CycleId
int64
`comment:"对应的周期id"`
//对应的周期id
CycleName
string
`comment:"对应的周期名称"`
StaffAssessTaskId
int
`comment:"评估任务的id"`
TargetUser
domain
.
StaffDesc
`comment:"被评估的目标用户"`
//被评估的目标用户
TargetDepartment
[]
domain
.
StaffDepartment
`comment:"被评估的用户所在的部门"`
//被评估的用户所在的部门
Executor
domain
.
StaffDesc
`comment:"填写评估的用户"`
//填写评估的用户
Types
string
`comment:"填写评估对应的类型"`
//填写评估对应的类型
LinkNodeId
int
`comment:"评估环节id"`
LinkNodeName
string
Status
string
`comment:"评估的填写状态"`
//评估的填写状态
BeginTime
time
.
Time
`comment:"开始时间"`
//开始时间
EndTime
time
.
Time
`comment:"截止时间"`
//截止时间
CreatedAt
time
.
Time
`comment:"数据创建时间"`
//数据创建时间
UpdatedAt
time
.
Time
`comment:"数据更新时间"`
//数据更新时间
DeletedAt
*
time
.
Time
`comment:"数据删除时间"`
//数据删除时间
LinkNodeName
string
`comment:"评估环节名称"`
Status
string
`comment:"评估的填写状态"`
//评估的填写状态
BeginTime
time
.
Time
`comment:"开始时间"`
//开始时间
EndTime
time
.
Time
`comment:"截止时间"`
//截止时间
CreatedAt
time
.
Time
`comment:"数据创建时间"`
//数据创建时间
UpdatedAt
time
.
Time
`comment:"数据更新时间"`
//数据更新时间
DeletedAt
*
time
.
Time
`comment:"数据删除时间"`
//数据删除时间
}
...
...
pkg/infrastructure/pg/models/staff_assess_content.go
查看文件 @
81e2d1f
...
...
@@ -22,7 +22,7 @@ type StaffAssessContent struct {
ReteResult
string
//评估的结果
Rule
domain
.
EvaluationRule
Remark
[]
domain
.
AssessContemtRemark
Weight
int
//权重
Weight
int
`pg:",use_zero"`
//权重
CreatedAt
time
.
Time
//数据创建时间
UpdatedAt
time
.
Time
//数据更新时间
DeletedAt
*
time
.
Time
...
...
请
注册
或
登录
后发表评论