...
|
...
|
@@ -1193,10 +1193,10 @@ func (d *StaffAssessDao) SearchContentValueByAssessId(assessId []int) map[int][] |
|
|
}
|
|
|
|
|
|
type AssessContentLevelCode struct {
|
|
|
Cnt int `pg:"cnt"` //数量
|
|
|
LevelValue string `pg:"levelValue"` //评估的等级值
|
|
|
Category string `pg:"category"` //评估的分类
|
|
|
Name string `pg:"name"` //名称
|
|
|
Cnt int `pg:"cnt"` //数量
|
|
|
LevelValue string `pg:"level_value"` //评估的等级值
|
|
|
Category string `pg:"category"` //评估的分类
|
|
|
Name string `pg:"name"` //名称
|
|
|
}
|
|
|
|
|
|
func (d *StaffAssessDao) CountAssessContentLevelCode(targetUserId int, assessType domain.StaffAssessType, cycleId int) ([]AssessContentLevelCode, error) {
|
...
|
...
|
@@ -1255,8 +1255,8 @@ func (d *StaffAssessDao) CountUncompletedSelfAssess(companyId int, projectIds [] |
|
|
}
|
|
|
|
|
|
// SearchAssesBeforeNow
|
|
|
func (d *StaffAssessDao) SearchAssesBeforeNow(executorId int, companyId int, limit int, offset int) int {
|
|
|
sqlStr := `select
|
|
|
func (d *StaffAssessDao) SearchAssesBeforeNow(executorId int, companyId int, limit int, offset int) ([]AssessCycleDayMe, int, error) {
|
|
|
sqlStr1 := `select
|
|
|
distinct on(cycle_id ,begin_day)
|
|
|
staff_assess.cycle_id ,
|
|
|
staff_assess.cycle_name ,
|
...
|
...
|
@@ -1273,13 +1273,15 @@ func (d *StaffAssessDao) SearchAssesBeforeNow(executorId int, companyId int, lim |
|
|
order by begin_day desc
|
|
|
limit ? offset ?`
|
|
|
|
|
|
condition := []interface{}{
|
|
|
// sqlStr2 := ``
|
|
|
|
|
|
condition1 := []interface{}{
|
|
|
companyId, executorId, limit, offset,
|
|
|
}
|
|
|
|
|
|
_ = sqlStr
|
|
|
_ = condition
|
|
|
return 0
|
|
|
_ = sqlStr1
|
|
|
_ = condition1
|
|
|
return nil, 0, nil
|
|
|
|
|
|
}
|
|
|
|
...
|
...
|
|