正在显示
6 个修改的文件
包含
21 行增加
和
4 行删除
go_build_main_go
已删除
100755 → 0
不能预览此文件类型
1 | package adapter | 1 | package adapter |
2 | 2 | ||
3 | type AssessCycleDayResp struct { | 3 | type AssessCycleDayResp struct { |
4 | - CycleId int `json:"cycleId"` | 4 | + CycleId string `json:"cycleId"` |
5 | CycleName string `json:"cycleName"` | 5 | CycleName string `json:"cycleName"` |
6 | BeginDay string `json:"beginDay"` | 6 | BeginDay string `json:"beginDay"` |
7 | } | 7 | } |
@@ -8,7 +8,7 @@ type AssessTaskDescQuery struct { | @@ -8,7 +8,7 @@ type AssessTaskDescQuery struct { | ||
8 | 8 | ||
9 | //获取我的项目周期进度描述 | 9 | //获取我的项目周期进度描述 |
10 | type AssessTaskDescV2Query struct { | 10 | type AssessTaskDescV2Query struct { |
11 | - CycleId int `json:"cycleId"` | 11 | + CycleId int `json:"cycleId,string"` |
12 | BeginDay string `json:"beginDay"` | 12 | BeginDay string `json:"beginDay"` |
13 | UserId int `json:"userId"` //当前登录人的id | 13 | UserId int `json:"userId"` //当前登录人的id |
14 | CompanyId int `json:"companyId"` //当前登录的公司 | 14 | CompanyId int `json:"companyId"` //当前登录的公司 |
@@ -30,7 +30,7 @@ func (srv StaffAssessServeice) SearchAssessTaskMeV2(param *query.SearchAssessMeQ | @@ -30,7 +30,7 @@ func (srv StaffAssessServeice) SearchAssessTaskMeV2(param *query.SearchAssessMeQ | ||
30 | staffAssessTaskRepo := dao.NewStaffAssessDao(map[string]interface{}{ | 30 | staffAssessTaskRepo := dao.NewStaffAssessDao(map[string]interface{}{ |
31 | "transactionContext": transactionContext, | 31 | "transactionContext": transactionContext, |
32 | }) | 32 | }) |
33 | - var limit int = 200 | 33 | + var limit int = 360 |
34 | var offset int = 0 | 34 | var offset int = 0 |
35 | if param.PageSize > 0 { | 35 | if param.PageSize > 0 { |
36 | limit = param.PageSize | 36 | limit = param.PageSize |
@@ -417,7 +417,7 @@ func (d *StaffAssessDao) ExportDataUserAssess(param SearchConditin1) ([]ExportDa | @@ -417,7 +417,7 @@ func (d *StaffAssessDao) ExportDataUserAssess(param SearchConditin1) ([]ExportDa | ||
417 | 417 | ||
418 | type AssessCycleDayMe struct { | 418 | type AssessCycleDayMe struct { |
419 | BeginDay string `json:"beginDay"` | 419 | BeginDay string `json:"beginDay"` |
420 | - CycleId int `json:"cycleId"` | 420 | + CycleId string `json:"cycleId"` |
421 | CycleName string `json:"cycleName"` | 421 | CycleName string `json:"cycleName"` |
422 | } | 422 | } |
423 | 423 |
@@ -132,3 +132,20 @@ func (c *StaffAssessControllerV2) GetAssessSelfMeInfo() { | @@ -132,3 +132,20 @@ func (c *StaffAssessControllerV2) GetAssessSelfMeInfo() { | ||
132 | data, err := srv.GetAssessSelfInfoV2(paramReq) | 132 | data, err := srv.GetAssessSelfInfoV2(paramReq) |
133 | c.Response(data, err) | 133 | c.Response(data, err) |
134 | } | 134 | } |
135 | + | ||
136 | +// 被评估的员工的评估列表-360评估 | ||
137 | +func (c *StaffAssessControllerV2) ListTargetUserInviteAssess() { | ||
138 | + srv := service.NewStaffAssessServeice() | ||
139 | + paramReq := &query.ListTargetAssessQuery{} | ||
140 | + err := c.BindJSON(paramReq) | ||
141 | + if err != nil { | ||
142 | + e := application.ThrowError(application.ARG_ERROR, "json 解析错误"+err.Error()) | ||
143 | + c.Response(nil, e) | ||
144 | + return | ||
145 | + } | ||
146 | + | ||
147 | + userReq := middlewares.GetUser(c.Ctx) | ||
148 | + paramReq.CompanyId = int(userReq.CompanyId) | ||
149 | + data, err := srv.ListTargetUserInviteAssess(paramReq) | ||
150 | + c.Response(data, err) | ||
151 | +} |
-
请 注册 或 登录 后发表评论