作者 tangxvhui

更新

@@ -8,10 +8,10 @@ import ( @@ -8,10 +8,10 @@ import (
8 8
9 func TestGenerateToken(t *testing.T) { 9 func TestGenerateToken(t *testing.T) {
10 ut := UserAuth{ 10 ut := UserAuth{
11 - CompanyId: 8,  
12 - UserId: 3422174102828544,  
13 - Phone: "17708397664",  
14 - PlatformId: 28, 11 + CompanyId: 1,
  12 + UserId: 3245763368183552,
  13 + Phone: "18650060951",
  14 + PlatformId: 29,
15 AdminType: 1, 15 AdminType: 1,
16 } 16 }
17 tk, _ := ut.CreateAccessToken() 17 tk, _ := ut.CreateAccessToken()
@@ -1397,6 +1397,7 @@ func (d *StaffAssessDao) SearchAssessSelfContentRemark(projectId int, targetUser @@ -1397,6 +1397,7 @@ func (d *StaffAssessDao) SearchAssessSelfContentRemark(projectId int, targetUser
1397 and staff_assess.deleted_at isnull 1397 and staff_assess.deleted_at isnull
1398 and staff_assess_content.category =? 1398 and staff_assess_content.category =?
1399 and staff_assess_content."name" = ? 1399 and staff_assess_content."name" = ?
  1400 + and staff_assess."types" ='self'
1400 and staff_assess_content.level_value =? 1401 and staff_assess_content.level_value =?
1401 and staff_assess.evaluation_project_id=? 1402 and staff_assess.evaluation_project_id=?
1402 and target_user ->>'userId'='?' 1403 and target_user ->>'userId'='?'
@@ -299,14 +299,22 @@ func (d *StaffAssessDao) ListTargetUserNoInvite(companyId int, cycleId int, begi @@ -299,14 +299,22 @@ func (d *StaffAssessDao) ListTargetUserNoInvite(companyId int, cycleId int, begi
299 } 299 }
300 300
301 type UserSelfStaffAssess struct { 301 type UserSelfStaffAssess struct {
302 - CycleId string `pg:"cycle_id"`  
303 - AssessId string `pg:"assess_id"`  
304 - TargetUserId string `pg:"target_user_id"`  
305 - TargetUserName string `pg:"target_user_name"`  
306 - EvaluationProjectId string `pg:"evaluation_project_id"`  
307 - EvaluationProjectName string `pg:"evaluation_project_name"`  
308 - CompanyId string `pg:"company_id"`  
309 - BeginDay string `pg:"begin_day"` 302 + AssessId string `pg:"assess_id"`
  303 + EvaluationProjectName string `pg:"evaluation_project_name"` //项目名称
  304 + CompanyId string `pg:"company_id"` //公司id
  305 + ContentId int `pg:"content_id"` //
  306 + TargetUserId string `pg:"target_user_id"` //被评估人的id
  307 + TargetUserName string `pg:"target_user_name"` //被评估人的名称
  308 + BeginDay string `pg:"begin_day"` //评估的日期
  309 + EvaluationProjectId string `pg:"evaluation_project_id"` //项目id
  310 + Value string `pg:"value"` //评估填写的值
  311 + LevelValue string `pg:"level_value"` //评级的值
  312 + Rule domain.EvaluationRule `pg:"rule"` //规则
  313 + SortBy int `pg:"sort_by"` //评估项顺序
  314 + Category string `pg:"category"` //评估项分类
  315 + ContentName string `pg:"content_name"` //评估项名称
  316 + Weight float64 `pg:"weight"` //权重
  317 + CycleId string `pg:"cycle_id"` //周期id
310 } 318 }
311 319
312 type SearchConditin3 struct { 320 type SearchConditin3 struct {
  1 +-- 数据修复
  2 +UPDATE
  3 + summary_evaluation
  4 +SET
  5 + "status" = 'completed'
  6 +WHERE
  7 + id = 389;
  8 +