...
|
...
|
@@ -842,7 +842,14 @@ type ExportPerformanceIndicator struct { |
|
|
Remark []domain.AssessContemtRemark `json:"remark"` // 评估内容填写反馈内容
|
|
|
}
|
|
|
|
|
|
func (d *StaffAssessDao) ExportPerformanceIndicator(companyId int, operatorId int, cycleId int, hrbp int, assessType string, userIds []string) ([]ExportPerformanceIndicator, error) {
|
|
|
func (d *StaffAssessDao) ExportPerformanceIndicator(
|
|
|
companyId int,
|
|
|
operatorId int,
|
|
|
cycleId int,
|
|
|
beginDays []string,
|
|
|
hrbp int,
|
|
|
assessType string,
|
|
|
userIds []string) ([]ExportPerformanceIndicator, error) {
|
|
|
sqlString := `
|
|
|
set time zone 'PRC';
|
|
|
with t_user_department as (
|
...
|
...
|
@@ -947,6 +954,11 @@ func (d *StaffAssessDao) ExportPerformanceIndicator(companyId int, operatorId in |
|
|
sqlString += ` and t_staff_assess_1.target_user_id in (?) `
|
|
|
condition = append(condition, pg.In(userIds))
|
|
|
}
|
|
|
if len(beginDays) > 0 {
|
|
|
sqlString += ` and t_staff_assess_1.begin_day in (?) `
|
|
|
condition = append(condition, pg.In(beginDays))
|
|
|
}
|
|
|
|
|
|
//sqlString += ` order by convert_to(t_staff_assess_1.target_user_name,'GBK'), staff_assess_content.sort_by`
|
|
|
sqlString += ` order by t_staff_assess_1.begin_day`
|
|
|
|
...
|
...
|
|