作者 tangxvhui

修复一些问题

@@ -147,6 +147,7 @@ func (d *StaffAssessDao) AllAssessCycleList(companyId int) ([]AssessCycle, error @@ -147,6 +147,7 @@ func (d *StaffAssessDao) AllAssessCycleList(companyId int) ([]AssessCycle, error
147 from staff_assess_task 147 from staff_assess_task
148 where staff_assess_task.company_id = ? 148 where staff_assess_task.company_id = ?
149 and staff_assess_task.deleted_at isnull 149 and staff_assess_task.deleted_at isnull
  150 + order by staff_assess_task.cycle_id desc
150 ` 151 `
151 152
152 tx := d.transactionContext.PgTx 153 tx := d.transactionContext.PgTx
@@ -175,7 +176,8 @@ func (d *StaffAssessDao) AllAssessCycleDayList(companyId int, cycleId int) ([]As @@ -175,7 +176,8 @@ func (d *StaffAssessDao) AllAssessCycleDayList(companyId int, cycleId int) ([]As
175 from staff_assess_task 176 from staff_assess_task
176 where staff_assess_task.cycle_id = ? 177 where staff_assess_task.cycle_id = ?
177 and company_id =? 178 and company_id =?
178 - and staff_assess_task.deleted_at isnull ` 179 + and staff_assess_task.deleted_at isnull
  180 + order by staff_assess_task.begin_day desc `
179 181
180 tx := d.transactionContext.PgTx 182 tx := d.transactionContext.PgTx
181 condition := []interface{}{ 183 condition := []interface{}{
@@ -188,17 +190,17 @@ func (d *StaffAssessDao) AllAssessCycleDayList(companyId int, cycleId int) ([]As @@ -188,17 +190,17 @@ func (d *StaffAssessDao) AllAssessCycleDayList(companyId int, cycleId int) ([]As
188 190
189 //获取员工填写评估内容 191 //获取员工填写评估内容
190 type UserAssessContent struct { 192 type UserAssessContent struct {
191 - AssessId string `json:"assessId"`  
192 - ContentId int `json:"contentId"`  
193 - TargetUserId string `json:"targetUserId"` //被评估人的id  
194 - TargetUserName string `json:"targetUserName"` //被评估人的名称  
195 - BeginDay string `json:"beginDay"` //评估的日期  
196 - EvaluationProjectId string `json:"evaluationProjectId"` //项目id  
197 - Value string `json:"value"` //评估填写的值  
198 - SortBy int `json:"sortBy"` //评估项顺序  
199 - Category string `json:"category"` //评估项分类  
200 - ContentName string `json:"contentName"` //评估项名称  
201 - Weight int `json:"weight"` //权重 193 + AssessId string `json:"assessId"`
  194 + ContentId int `json:"contentId"`
  195 + TargetUserId string `json:"targetUserId"` //被评估人的id
  196 + TargetUserName string `json:"targetUserName"` //被评估人的名称
  197 + BeginDay string `json:"beginDay"` //评估的日期
  198 + EvaluationProjectId string `json:"evaluationProjectId"` //项目id
  199 + Value string `json:"value"` //评估填写的值
  200 + SortBy int `json:"sortBy"` //评估项顺序
  201 + Category string `json:"category"` //评估项分类
  202 + ContentName string `json:"contentName"` //评估项名称
  203 + Weight float64 `json:"weight"` //权重
202 } 204 }
203 205
204 type SearchConditin1 struct { 206 type SearchConditin1 struct {
@@ -372,16 +374,16 @@ func (d *StaffAssessDao) useTStaffAssess(companyId int, cycleId int, userId int, @@ -372,16 +374,16 @@ func (d *StaffAssessDao) useTStaffAssess(companyId int, cycleId int, userId int,
372 type ExportData1 struct { 374 type ExportData1 struct {
373 AssessId string 375 AssessId string
374 ContentId int 376 ContentId int
375 - TargetUserId string //被评估人的id  
376 - TargetUserName string //被评估人的名称  
377 - BeginDay string //评估的日期  
378 - EvaluationProjectId string //项目id  
379 - Value string //评估填写的值  
380 - SortBy int //评估项顺序  
381 - Category string //评估项分类  
382 - ContentName string //评估项名称  
383 - Weight int //权重  
384 - PromptText string //评估标准 377 + TargetUserId string //被评估人的id
  378 + TargetUserName string //被评估人的名称
  379 + BeginDay string //评估的日期
  380 + EvaluationProjectId string //项目id
  381 + Value string //评估填写的值
  382 + SortBy int //评估项顺序
  383 + Category string //评估项分类
  384 + ContentName string //评估项名称
  385 + Weight float64 //权重
  386 + PromptText string //评估标准
385 Remark []domain.AssessContemtRemark 387 Remark []domain.AssessContemtRemark
386 } 388 }
387 389