...
|
...
|
@@ -281,7 +281,7 @@ func (d *StaffAssessDao) ListTargetUserNoInvite(companyId int, cycleId int, begi |
|
|
|
|
|
)
|
|
|
select staff_assess.target_user ->>'userId' as user_id,
|
|
|
staff_assess.target_user ->>'userName' as user_name,
|
|
|
staff_assess.target_user ->>'userName' as user_name
|
|
|
from staff_assess
|
|
|
left join t1 on staff_assess.target_user ->>'userId'=t1.user_id
|
|
|
where 1=1
|
...
|
...
|
@@ -298,6 +298,13 @@ func (d *StaffAssessDao) ListTargetUserNoInvite(companyId int, cycleId int, begi |
|
|
return result, err
|
|
|
}
|
|
|
|
|
|
type UserSelfStaffAssess struct {
|
|
|
CycleId string ``
|
|
|
AssessId string ``
|
|
|
TargetUserId string ``
|
|
|
TargetUserName string ``
|
|
|
}
|
|
|
|
|
|
// 根据周期的id和日期获取员工评估的评估任务。有进行查看权限过滤
|
|
|
// companyId int 公司id
|
|
|
// cycleId int, 评估周期id
|
...
|
...
|
@@ -306,7 +313,7 @@ func (d *StaffAssessDao) ListTargetUserNoInvite(companyId int, cycleId int, begi |
|
|
// hrbp 是否搜索HRBP角色的用户可以查看,1:是;-1:否
|
|
|
// limit int, 分页条数
|
|
|
// offset int 分页偏移
|
|
|
func (d *StaffAssessDao) SearchUserStaffAssess(param SearchConditin1) ([]UserAssessContent, error) {
|
|
|
func (d *StaffAssessDao) SearchUserSelfStaffAssess(param SearchConditin1) ([]UserAssessContent, error) {
|
|
|
withSql := d.catchProjectIdByPermission(param.CompanyId, param.CycleId, param.OperaterId, param.Hrbp)
|
|
|
sqlStr := `select
|
|
|
staff_assess.cycle_id ,
|
...
|
...
|
|