正在显示
4 个修改的文件
包含
17 行增加
和
2 行删除
@@ -5,8 +5,9 @@ import "time" | @@ -5,8 +5,9 @@ import "time" | ||
5 | // 实际被应用的评估条目 | 5 | // 实际被应用的评估条目 |
6 | type EvaluationItemUsed struct { | 6 | type EvaluationItemUsed struct { |
7 | Id int //id | 7 | Id int //id |
8 | + CompanyId int //公司id | ||
8 | EvaluationProjectId int //对应的项目id | 9 | EvaluationProjectId int //对应的项目id |
9 | - NodeId string //填写评估评估节点对应id | 10 | + NodeId int //填写评估评估节点对应id |
10 | NodeType string //填写评估评估节点对应类型同evaluation_template.go->LinkNode.Type, | 11 | NodeType string //填写评估评估节点对应类型同evaluation_template.go->LinkNode.Type, |
11 | SortBy int //排序 | 12 | SortBy int //排序 |
12 | Category string //类别 | 13 | Category string //类别 |
@@ -20,5 +21,9 @@ type EvaluationItemUsed struct { | @@ -20,5 +21,9 @@ type EvaluationItemUsed struct { | ||
20 | Required int // 必填项 | 21 | Required int // 必填项 |
21 | CreatedAt time.Time //数据创建时间 | 22 | CreatedAt time.Time //数据创建时间 |
22 | UpdatedAt time.Time //数据更新时间 | 23 | UpdatedAt time.Time //数据更新时间 |
23 | - DeletedAt *time.Time | 24 | +} |
25 | + | ||
26 | +type EvaluationItemUsedRepository interface { | ||
27 | + Insert(Item []EvaluationItemUsed) (*EvaluationItemUsed, error) | ||
28 | + Find(queryOptions map[string]interface{}) (int64, []*EvaluationItemUsed, error) | ||
24 | } | 29 | } |
@@ -5,6 +5,7 @@ import "time" | @@ -5,6 +5,7 @@ import "time" | ||
5 | // 周综合评估 | 5 | // 周综合评估 |
6 | type SummaryEvaluation struct { | 6 | type SummaryEvaluation struct { |
7 | Id int | 7 | Id int |
8 | + CompanyId int //公司id | ||
8 | EvaluationProjectId int //对应的项目id | 9 | EvaluationProjectId int //对应的项目id |
9 | EvaluationProjectName string //对应的项目名称 | 10 | EvaluationProjectName string //对应的项目名称 |
10 | CycleId int64 //对应的周期id | 11 | CycleId int64 //对应的周期id |
1 | +package repository |
-
请 注册 或 登录 后发表评论