...
|
...
|
@@ -560,12 +560,12 @@ func (srv TaskService) ListTask(param *command.ListTaskCommand) (map[string]inte |
|
|
return result, nil
|
|
|
}
|
|
|
|
|
|
func (t TaskService) canUpdateTask(taskData *domain.Task, stageList []*domain.TaskStage) (bool, error) {
|
|
|
func (srv TaskService) canUpdateTask(taskData *domain.Task, stageList []*domain.TaskStage) (bool, error) {
|
|
|
return true, nil
|
|
|
}
|
|
|
|
|
|
// CancelAttention 用户取消关注某个任务
|
|
|
func (t TaskService) CancelAttention(param *command.CancelAttentionCommand) error {
|
|
|
func (srv TaskService) CancelAttention(param *command.CancelAttentionCommand) error {
|
|
|
transactionContext, err := factory.CreateTransactionContext(nil)
|
|
|
if err != nil {
|
|
|
return application.ThrowError(application.TRANSACTION_ERROR, err.Error())
|
...
|
...
|
@@ -596,7 +596,7 @@ func (t TaskService) CancelAttention(param *command.CancelAttentionCommand) erro |
|
|
}
|
|
|
|
|
|
// 员工绩效-任务管理-列表
|
|
|
func (t TaskService) ListTask2(param *command.SearchTaskCommand) (map[string]interface{}, error) {
|
|
|
func (srv TaskService) ListTask2(param *command.SearchTaskCommand) (map[string]interface{}, error) {
|
|
|
transactionContext, err := factory.CreateTransactionContext(nil)
|
|
|
if err != nil {
|
|
|
return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
|
...
|
...
|
@@ -612,7 +612,7 @@ func (t TaskService) ListTask2(param *command.SearchTaskCommand) (map[string]int |
|
|
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "获取用户的角色信息"+err.Error())
|
|
|
}
|
|
|
if hrbpFlag == domain.RoleTypeSystem {
|
|
|
listData, err := t.listTask2ForHrbp(param)
|
|
|
listData, err := srv.listTask2ForHrbp(param)
|
|
|
return listData, err
|
|
|
}
|
|
|
var limit = 20
|
...
|
...
|
@@ -699,7 +699,7 @@ func (t TaskService) ListTask2(param *command.SearchTaskCommand) (map[string]int |
|
|
}
|
|
|
|
|
|
// 以hrbp角色权限获取任务列表
|
|
|
func (t TaskService) listTask2ForHrbp(param *command.SearchTaskCommand) (map[string]interface{}, error) {
|
|
|
func (srv TaskService) listTask2ForHrbp(param *command.SearchTaskCommand) (map[string]interface{}, error) {
|
|
|
var limit = 20
|
|
|
var offset = 0
|
|
|
if param.PageSize > 0 {
|
...
|
...
|
@@ -793,7 +793,7 @@ func (t TaskService) listTask2ForHrbp(param *command.SearchTaskCommand) (map[str |
|
|
}
|
|
|
|
|
|
// ReplyTaskStage 根据每日的任务反馈 ,更新任务里程碑
|
|
|
func (t TaskService) ReplyTaskStage(transactionContext application.TransactionContext, param []*domain.TaskRecord) error {
|
|
|
func (srv TaskService) ReplyTaskStage(transactionContext application.TransactionContext, param []*domain.TaskRecord) error {
|
|
|
taskRepo := factory.CreateTaskRepository(map[string]interface{}{
|
|
|
"transactionContext": transactionContext,
|
|
|
})
|
...
|
...
|
|