正在显示
1 个修改的文件
包含
19 行增加
和
10 行删除
@@ -3,17 +3,17 @@ package domain | @@ -3,17 +3,17 @@ package domain | ||
3 | import "time" | 3 | import "time" |
4 | 4 | ||
5 | //评估任务重复执行的方式 | 5 | //评估任务重复执行的方式 |
6 | -type AssessTaskRepeatWay string | 6 | +// type AssessTaskRepeatWay string |
7 | 7 | ||
8 | -const ( | ||
9 | - AssessTaskRepeatDay AssessTaskRepeatWay = "day" //按天重复 | ||
10 | - AssessTaskRepeatWeek AssessTaskRepeatWay = "week" //按周重复 | ||
11 | - AssessTaskRepeatMonth AssessTaskRepeatWay = "month" //按月 | ||
12 | - AssessTaskRepeatMonthDouble AssessTaskRepeatWay = "month_double" //按双月 | ||
13 | - AssessTaskRepeatQuarter AssessTaskRepeatWay = "quarter" //按季度 | ||
14 | - AssessTaskRepeatYearHalf AssessTaskRepeatWay = "year_half" //按半年 | ||
15 | - AssessTaskRepeatYear AssessTaskRepeatWay = "year" //按年 | ||
16 | -) | 8 | +// const ( |
9 | +// AssessTaskRepeatDay AssessTaskRepeatWay = "day" //按天重复 | ||
10 | +// AssessTaskRepeatWeek AssessTaskRepeatWay = "week" //按周重复 | ||
11 | +// AssessTaskRepeatMonth AssessTaskRepeatWay = "month" //按月 | ||
12 | +// AssessTaskRepeatMonthDouble AssessTaskRepeatWay = "month_double" //按双月 | ||
13 | +// AssessTaskRepeatQuarter AssessTaskRepeatWay = "quarter" //按季度 | ||
14 | +// AssessTaskRepeatYearHalf AssessTaskRepeatWay = "year_half" //按半年 | ||
15 | +// AssessTaskRepeatYear AssessTaskRepeatWay = "year" //按年 | ||
16 | +// ) | ||
17 | 17 | ||
18 | // 执行评估的任务列表 | 18 | // 执行评估的任务列表 |
19 | type StaffAssessTask struct { | 19 | type StaffAssessTask struct { |
@@ -25,11 +25,20 @@ type StaffAssessTask struct { | @@ -25,11 +25,20 @@ type StaffAssessTask struct { | ||
25 | CycleName string `json:"cycleName"` //对应周期的名称 | 25 | CycleName string `json:"cycleName"` //对应周期的名称 |
26 | BeginTime time.Time `json:"beginTime"` //绩效考核开始时间 | 26 | BeginTime time.Time `json:"beginTime"` //绩效考核开始时间 |
27 | EndTime time.Time `json:"endTime"` //绩效考核截止时间 | 27 | EndTime time.Time `json:"endTime"` //绩效考核截止时间 |
28 | + StepList []AssessTaskStep `json:"steps"` //考评的流程 | ||
28 | CreatedAt time.Time `json:"createdAt"` //数据创建时间 | 29 | CreatedAt time.Time `json:"createdAt"` //数据创建时间 |
29 | UpdatedAt time.Time `json:"updatedAt"` //数据更新时间 | 30 | UpdatedAt time.Time `json:"updatedAt"` //数据更新时间 |
30 | DeletedAt time.Time `json:"deletedAt"` //数据删除时间 | 31 | DeletedAt time.Time `json:"deletedAt"` //数据删除时间 |
31 | } | 32 | } |
32 | 33 | ||
34 | +//考评的流程 | ||
35 | +type AssessTaskStep struct { | ||
36 | + SortBy int `json:"sortBy"` //排序 | ||
37 | + LinkNodeId int `json:"linkNodeId"` //考评的流程id | ||
38 | + LinkNodeName string `json:"linkNodeName"` //流程名称 | ||
39 | + LinkNodeType int `json:"linkNodeType"` //流程类型 同evaluation_template.go->LinkNode.Type | ||
40 | +} | ||
41 | + | ||
33 | type StaffAssessTaskRepository interface { | 42 | type StaffAssessTaskRepository interface { |
34 | Save(param *StaffAssessTask) (*StaffAssessTask, error) | 43 | Save(param *StaffAssessTask) (*StaffAssessTask, error) |
35 | Remove(id int) error | 44 | Remove(id int) error |
-
请 注册 或 登录 后发表评论