...
|
...
|
@@ -176,7 +176,7 @@ func (d *StaffAssessDao) catchProjectIdByPermission(companyId int, cycleId int, |
|
|
type TargetUserCycleProject struct {
|
|
|
CycleId string `pg:"cycle_id" json:"cycleId"` //周期id
|
|
|
CycleName string `pg:"cycle_name" json:"cycleName"` //周期名称
|
|
|
EvaluationProjectIds []string `pg:"evaluation_project_ids" json:"evaluationProjectIds"`
|
|
|
EvaluationProjectIds []string `pg:"evaluation_project_ids,array" json:"evaluationProjectIds"`
|
|
|
}
|
|
|
|
|
|
// 获取目标员工的自评周期和项目
|
...
|
...
|
@@ -200,7 +200,7 @@ func (d *StaffAssessDao) SearchTargetUserCycleProject(companyId int, targetUserI |
|
|
group by cycle_id,cycle_name
|
|
|
limit ? offset ?
|
|
|
`
|
|
|
condition := []interface{}{companyId, targetUserId, limit, offset}
|
|
|
condition := []interface{}{targetUserId, companyId, limit, offset}
|
|
|
result := []TargetUserCycleProject{}
|
|
|
tx := d.transactionContext.PgTx
|
|
|
_, err := tx.Query(&result, sqlStr, condition...)
|
...
|
...
|
|