正在显示
3 个修改的文件
包含
15 行增加
和
1 行删除
@@ -24,6 +24,7 @@ type ExportPerformanceIndicatorCommand struct { | @@ -24,6 +24,7 @@ type ExportPerformanceIndicatorCommand struct { | ||
24 | CycleId int `cname:"周期ID" json:"cycleId,string"` | 24 | CycleId int `cname:"周期ID" json:"cycleId,string"` |
25 | Title string `cname:"标题" json:"title"` | 25 | Title string `cname:"标题" json:"title"` |
26 | Selected []ExportSelected `cname:"选中用户" json:"selected"` | 26 | Selected []ExportSelected `cname:"选中用户" json:"selected"` |
27 | + BeginDays []string `cname:"选中日期" json:"beginDays"` | ||
27 | CompanyId int `cname:"公司ID" json:"companyId"` | 28 | CompanyId int `cname:"公司ID" json:"companyId"` |
28 | OperatorId int `cname:"操作人ID" json:"operatorId"` | 29 | OperatorId int `cname:"操作人ID" json:"operatorId"` |
29 | } | 30 | } |
@@ -356,6 +356,7 @@ func (srv StaffAssessServeice) ExportPerformanceIndicator(in *query.ExportPerfor | @@ -356,6 +356,7 @@ func (srv StaffAssessServeice) ExportPerformanceIndicator(in *query.ExportPerfor | ||
356 | in.CompanyId, | 356 | in.CompanyId, |
357 | in.OperatorId, | 357 | in.OperatorId, |
358 | in.CycleId, | 358 | in.CycleId, |
359 | + in.BeginDays, | ||
359 | hrbp, | 360 | hrbp, |
360 | string(domain.AssessSelf), | 361 | string(domain.AssessSelf), |
361 | userIds) | 362 | userIds) |
@@ -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 |
-
请 注册 或 登录 后发表评论