作者 tangxvhui

微调

... ... @@ -57,7 +57,6 @@ type AssessCountLeveltItem struct {
// 评级数量
type LevalCodeCount struct {
Code string `json:"code"` //评级代码
Number int `json:"number"` //数量
ItemList []string `json:"itemList"` //对应的评估项名称
Code string `json:"code"` //评级代码
Number int `json:"number"` //数量
}
... ...
... ... @@ -178,6 +178,7 @@ type TargetUserCycleProject struct {
CycleName string `pg:"cycle_name" json:"cycleName"` //周期名称
EvaluationProjectId string `pg:"evaluation_project_id" json:"evaluationProjectId"`
EvaluationProjectName string `pg:"evaluation_project_name" json:"evaluationProjectName"`
TargetUserId string `pg:"target_user_id" json:"targetUserId"`
}
// 获取目标员工的自评周期和项目
... ... @@ -186,6 +187,7 @@ func (d *StaffAssessDao) SearchTargetUserCycleProject(companyId int, targetUserI
staff_assess.cycle_name,
staff_assess.cycle_id ,
staff_assess.evaluation_project_id,
staff_assess.target_user ->>'userId' as target_user_id,
staff_assess.evaluation_project_name
from staff_assess ,staff_assess_task
where 1=1
... ...