|
@@ -842,7 +842,14 @@ type ExportPerformanceIndicator struct { |
|
@@ -842,7 +842,14 @@ type ExportPerformanceIndicator struct { |
842
|
Remark []domain.AssessContemtRemark `json:"remark"` // 评估内容填写反馈内容
|
842
|
Remark []domain.AssessContemtRemark `json:"remark"` // 评估内容填写反馈内容
|
843
|
}
|
843
|
}
|
844
|
|
844
|
|
845
|
-func (d *StaffAssessDao) ExportPerformanceIndicator(companyId int, operatorId int, cycleId int, hrbp int, assessType string, userIds []string) ([]ExportPerformanceIndicator, error) {
|
845
|
+func (d *StaffAssessDao) ExportPerformanceIndicator(
|
|
|
846
|
+ companyId int,
|
|
|
847
|
+ operatorId int,
|
|
|
848
|
+ cycleId int,
|
|
|
849
|
+ beginDays []string,
|
|
|
850
|
+ hrbp int,
|
|
|
851
|
+ assessType string,
|
|
|
852
|
+ userIds []string) ([]ExportPerformanceIndicator, error) {
|
846
|
sqlString := `
|
853
|
sqlString := `
|
847
|
set time zone 'PRC';
|
854
|
set time zone 'PRC';
|
848
|
with t_user_department as (
|
855
|
with t_user_department as (
|
|
@@ -947,6 +954,11 @@ func (d *StaffAssessDao) ExportPerformanceIndicator(companyId int, operatorId in |
|
@@ -947,6 +954,11 @@ func (d *StaffAssessDao) ExportPerformanceIndicator(companyId int, operatorId in |
947
|
sqlString += ` and t_staff_assess_1.target_user_id in (?) `
|
954
|
sqlString += ` and t_staff_assess_1.target_user_id in (?) `
|
948
|
condition = append(condition, pg.In(userIds))
|
955
|
condition = append(condition, pg.In(userIds))
|
949
|
}
|
956
|
}
|
|
|
957
|
+ if len(beginDays) > 0 {
|
|
|
958
|
+ sqlString += ` and t_staff_assess_1.begin_day in (?) `
|
|
|
959
|
+ condition = append(condition, pg.In(beginDays))
|
|
|
960
|
+ }
|
|
|
961
|
+
|
950
|
//sqlString += ` order by convert_to(t_staff_assess_1.target_user_name,'GBK'), staff_assess_content.sort_by`
|
962
|
//sqlString += ` order by convert_to(t_staff_assess_1.target_user_name,'GBK'), staff_assess_content.sort_by`
|
951
|
sqlString += ` order by t_staff_assess_1.begin_day`
|
963
|
sqlString += ` order by t_staff_assess_1.begin_day`
|
952
|
|
964
|
|