|
|
@@ -50,60 +50,60 @@ func (this *TodoListController) GetMyTaskEntityList() {
|
|
|
|
|
|
where = where + " and b.Id = "
|
|
|
|
|
|
- myTasksRetWithTimes = actisvc.GetMyTasksWithTime(workflow.OIL_SUPPLIER_APPLY, this.User.Id)
|
|
|
- for _,item := range myTasksRetWithTimes {
|
|
|
- //var entity []supplier.OilSupplierView
|
|
|
- var todo todolist.TodoList
|
|
|
- idx := strings.Index(item.BusinessKey, "-")
|
|
|
- if idx >= 0 {
|
|
|
- id := strings.Split(item.BusinessKey, "-")[0]
|
|
|
- whereadd := where + id
|
|
|
- has := svc.GetMyTodoEntitie(OilSupplierName, OilSupplierCertName, &todo, whereadd)
|
|
|
- if has {
|
|
|
- todo.UserName = this.User.Realname
|
|
|
- todo.CreateTime = item.CreateTime
|
|
|
- todolists = append(todolists, todo)
|
|
|
- }
|
|
|
- fmt.Println("1")
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- //一级物资供方准入流程图
|
|
|
- myTasksRetWithTimes = actisvc.GetMyTasksWithTime(workflow.OIL_FIRST_SUPPLIER_APPLY, this.User.Id)
|
|
|
- for _,item := range myTasksRetWithTimes {
|
|
|
- var todo todolist.TodoList
|
|
|
- idx := strings.Index(item.BusinessKey, "-")
|
|
|
- if idx >= 0 {
|
|
|
- id := strings.Split(item.BusinessKey, "-")[0]
|
|
|
- whereadd := where + id
|
|
|
- has := svc.GetMyTodoEntitie(OilSupplierName, OilSupplierCertName, &todo, whereadd)
|
|
|
- if has {
|
|
|
- todo.UserName = this.User.Realname
|
|
|
- todo.CreateTime = item.CreateTime
|
|
|
- todolists = append(todolists, todo)
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- //二级物资供方准入流程图
|
|
|
- myTasksRetWithTimes = actisvc.GetMyTasksWithTime(workflow.OIL_SECOND_SUPPLIER_APPLY, this.User.Id)
|
|
|
- for _,item := range myTasksRetWithTimes {
|
|
|
- //var entity []supplier.OilSupplierView
|
|
|
- var todo todolist.TodoList
|
|
|
- idx := strings.Index(item.BusinessKey, "-")
|
|
|
- if idx >= 0 {
|
|
|
- id := strings.Split(item.BusinessKey, "-")[0]
|
|
|
- whereadd := where + id
|
|
|
- has := svc.GetMyTodoEntitie(OilSupplierName, OilSupplierCertName, &todo, whereadd)
|
|
|
- fmt.Println("2")
|
|
|
- if has {
|
|
|
- todo.UserName = this.User.Realname
|
|
|
- todo.CreateTime = item.CreateTime
|
|
|
- todolists = append(todolists, todo)
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
- }
|
|
|
+ //myTasksRetWithTimes = actisvc.GetMyTasksWithTime(workflow.OIL_SUPPLIER_APPLY, this.User.Id)
|
|
|
+ //for _,item := range myTasksRetWithTimes {
|
|
|
+ // //var entity []supplier.OilSupplierView
|
|
|
+ // var todo todolist.TodoList
|
|
|
+ // idx := strings.Index(item.BusinessKey, "-")
|
|
|
+ // if idx >= 0 {
|
|
|
+ // id := strings.Split(item.BusinessKey, "-")[0]
|
|
|
+ // whereadd := where + id
|
|
|
+ // has := svc.GetMyTodoEntitie(OilSupplierName, OilSupplierCertName, &todo, whereadd)
|
|
|
+ // if has {
|
|
|
+ // todo.UserName = this.User.Realname
|
|
|
+ // todo.CreateTime = item.CreateTime
|
|
|
+ // todolists = append(todolists, todo)
|
|
|
+ // }
|
|
|
+ // fmt.Println("1")
|
|
|
+ // }
|
|
|
+ //}
|
|
|
+ //
|
|
|
+ ////一级物资供方准入流程图
|
|
|
+ //myTasksRetWithTimes = actisvc.GetMyTasksWithTime(workflow.OIL_FIRST_SUPPLIER_APPLY, this.User.Id)
|
|
|
+ //for _,item := range myTasksRetWithTimes {
|
|
|
+ // var todo todolist.TodoList
|
|
|
+ // idx := strings.Index(item.BusinessKey, "-")
|
|
|
+ // if idx >= 0 {
|
|
|
+ // id := strings.Split(item.BusinessKey, "-")[0]
|
|
|
+ // whereadd := where + id
|
|
|
+ // has := svc.GetMyTodoEntitie(OilSupplierName, OilSupplierCertName, &todo, whereadd)
|
|
|
+ // if has {
|
|
|
+ // todo.UserName = this.User.Realname
|
|
|
+ // todo.CreateTime = item.CreateTime
|
|
|
+ // todolists = append(todolists, todo)
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ //}
|
|
|
+ //
|
|
|
+ ////二级物资供方准入流程图
|
|
|
+ //myTasksRetWithTimes = actisvc.GetMyTasksWithTime(workflow.OIL_SECOND_SUPPLIER_APPLY, this.User.Id)
|
|
|
+ //for _,item := range myTasksRetWithTimes {
|
|
|
+ // //var entity []supplier.OilSupplierView
|
|
|
+ // var todo todolist.TodoList
|
|
|
+ // idx := strings.Index(item.BusinessKey, "-")
|
|
|
+ // if idx >= 0 {
|
|
|
+ // id := strings.Split(item.BusinessKey, "-")[0]
|
|
|
+ // whereadd := where + id
|
|
|
+ // has := svc.GetMyTodoEntitie(OilSupplierName, OilSupplierCertName, &todo, whereadd)
|
|
|
+ // fmt.Println("2")
|
|
|
+ // if has {
|
|
|
+ // todo.UserName = this.User.Realname
|
|
|
+ // todo.CreateTime = item.CreateTime
|
|
|
+ // todolists = append(todolists, todo)
|
|
|
+ // }
|
|
|
+ //
|
|
|
+ // }
|
|
|
+ //}
|
|
|
|
|
|
//企业用户准入流程图
|
|
|
myTasksRetWithTimes = actisvc.GetMyTasksWithTime(workflow.OIL_ENUSER_SUPPLIER_APPLY, this.User.Id)
|
|
|
@@ -175,59 +175,59 @@ func (this *TodoListController) GetMyTaskEntityList() {
|
|
|
where += " and b.Id ="
|
|
|
svcapp := suppliercertappend.GetOilSupplierCertAppendService(utils.DBE)
|
|
|
//供方增项流程图
|
|
|
- myTasksRetWithTimes = actisvc.GetMyTasksWithTime(workflow.OIL_APPEND_APPLY, this.User.Id)
|
|
|
- for _,item := range myTasksRetWithTimes {
|
|
|
-
|
|
|
- var todo todolist.TodoList
|
|
|
- idx := strings.Index(item.BusinessKey, "-")
|
|
|
- if idx >= 0 {
|
|
|
- id := strings.Split(item.BusinessKey, "-")[0]
|
|
|
- whereapp := where + id
|
|
|
- has := svcapp.GetTodoEntitie(OilSupplierName, OilSupplierCertAppendName, &todo, whereapp)
|
|
|
- if has {
|
|
|
- todo.Type = todolist.CERTAPPEND
|
|
|
- todo.UserName = this.User.Realname
|
|
|
- todo.CreateTime = item.CreateTime
|
|
|
- todolists = append(todolists, todo)
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
+ //myTasksRetWithTimes = actisvc.GetMyTasksWithTime(workflow.OIL_APPEND_APPLY, this.User.Id)
|
|
|
+ //for _,item := range myTasksRetWithTimes {
|
|
|
+ //
|
|
|
+ // var todo todolist.TodoList
|
|
|
+ // idx := strings.Index(item.BusinessKey, "-")
|
|
|
+ // if idx >= 0 {
|
|
|
+ // id := strings.Split(item.BusinessKey, "-")[0]
|
|
|
+ // whereapp := where + id
|
|
|
+ // has := svcapp.GetTodoEntitie(OilSupplierName, OilSupplierCertAppendName, &todo, whereapp)
|
|
|
+ // if has {
|
|
|
+ // todo.Type = todolist.CERTAPPEND
|
|
|
+ // todo.UserName = this.User.Realname
|
|
|
+ // todo.CreateTime = item.CreateTime
|
|
|
+ // todolists = append(todolists, todo)
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ //}
|
|
|
|
|
|
//一级物资供方增项流程图
|
|
|
- myTasksRetWithTimes = actisvc.GetMyTasksWithTime(workflow.OIL_FIRST_APPEND_APPLY, this.User.Id)
|
|
|
- for _,item := range myTasksRetWithTimes {
|
|
|
- var todo todolist.TodoList
|
|
|
- idx := strings.Index(item.BusinessKey, "-")
|
|
|
- if idx >= 0 {
|
|
|
- id := strings.Split(item.BusinessKey, "-")[0]
|
|
|
- whereapp := where + id
|
|
|
- has := svcapp.GetTodoEntitie(OilSupplierName, OilSupplierCertAppendName, &todo, whereapp)
|
|
|
- if has {
|
|
|
- todo.Type = todolist.CERTAPPEND
|
|
|
- todo.UserName = this.User.Realname
|
|
|
- todo.CreateTime = item.CreateTime
|
|
|
- todolists = append(todolists, todo)
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
+ //myTasksRetWithTimes = actisvc.GetMyTasksWithTime(workflow.OIL_FIRST_APPEND_APPLY, this.User.Id)
|
|
|
+ //for _,item := range myTasksRetWithTimes {
|
|
|
+ // var todo todolist.TodoList
|
|
|
+ // idx := strings.Index(item.BusinessKey, "-")
|
|
|
+ // if idx >= 0 {
|
|
|
+ // id := strings.Split(item.BusinessKey, "-")[0]
|
|
|
+ // whereapp := where + id
|
|
|
+ // has := svcapp.GetTodoEntitie(OilSupplierName, OilSupplierCertAppendName, &todo, whereapp)
|
|
|
+ // if has {
|
|
|
+ // todo.Type = todolist.CERTAPPEND
|
|
|
+ // todo.UserName = this.User.Realname
|
|
|
+ // todo.CreateTime = item.CreateTime
|
|
|
+ // todolists = append(todolists, todo)
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ //}
|
|
|
|
|
|
//二级物资供方准入流程图
|
|
|
- myTasksRetWithTimes = actisvc.GetMyTasksWithTime(workflow.OIL_SECOND_APPEND_APPLY, this.User.Id)
|
|
|
- for _,item := range myTasksRetWithTimes {
|
|
|
- var todo todolist.TodoList
|
|
|
- idx := strings.Index(item.BusinessKey, "-")
|
|
|
- if idx >= 0 {
|
|
|
- id := strings.Split(item.BusinessKey, "-")[0]
|
|
|
- whereapp := where + id
|
|
|
- has := svcapp.GetTodoEntitie(OilSupplierName, OilSupplierCertAppendName, &todo, whereapp)
|
|
|
- if has {
|
|
|
- todo.Type = todolist.CERTAPPEND
|
|
|
- todo.UserName = this.User.Realname
|
|
|
- todo.CreateTime = item.CreateTime
|
|
|
- todolists = append(todolists, todo)
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
+ //myTasksRetWithTimes = actisvc.GetMyTasksWithTime(workflow.OIL_SECOND_APPEND_APPLY, this.User.Id)
|
|
|
+ //for _,item := range myTasksRetWithTimes {
|
|
|
+ // var todo todolist.TodoList
|
|
|
+ // idx := strings.Index(item.BusinessKey, "-")
|
|
|
+ // if idx >= 0 {
|
|
|
+ // id := strings.Split(item.BusinessKey, "-")[0]
|
|
|
+ // whereapp := where + id
|
|
|
+ // has := svcapp.GetTodoEntitie(OilSupplierName, OilSupplierCertAppendName, &todo, whereapp)
|
|
|
+ // if has {
|
|
|
+ // todo.Type = todolist.CERTAPPEND
|
|
|
+ // todo.UserName = this.User.Realname
|
|
|
+ // todo.CreateTime = item.CreateTime
|
|
|
+ // todolists = append(todolists, todo)
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ //}
|
|
|
|
|
|
//企业用户增项流程图
|
|
|
myTasksRetWithTimes = actisvc.GetMyTasksWithTime(workflow.OIL_ENUSER_APPEND_APPLY, this.User.Id)
|
|
|
@@ -464,61 +464,61 @@ func (this *TodoListController) GetMyTaskFinishedList() {
|
|
|
where = where + " and b.Id = "
|
|
|
//已办任务===准入
|
|
|
//供方准入流程图
|
|
|
- myTasksRetWithTimes = actisvc.GetMyFinishedTasksWithTime(workflow.OIL_SUPPLIER_APPLY, this.User.Id)
|
|
|
- for _,item := range myTasksRetWithTimes {
|
|
|
- //var entity []supplier.OilSupplierView
|
|
|
- var todo todolist.TodoList
|
|
|
- idx := strings.Index(item.BusinessKey, "-")
|
|
|
- if idx >= 0 {
|
|
|
- id := strings.Split(item.BusinessKey, "-")[0]
|
|
|
- whereadd := where + id
|
|
|
- has := svc.GetMyTodoEntitie(OilSupplierName, OilSupplierCertName, &todo, whereadd)
|
|
|
- if has {
|
|
|
- todo.UserName = this.User.Realname
|
|
|
- todo.CreateTime = item.CreateTime
|
|
|
- todolists = append(todolists, todo)
|
|
|
- }
|
|
|
- fmt.Println("1")
|
|
|
- }
|
|
|
- }
|
|
|
+ //myTasksRetWithTimes = actisvc.GetMyFinishedTasksWithTime(workflow.OIL_SUPPLIER_APPLY, this.User.Id)
|
|
|
+ //for _,item := range myTasksRetWithTimes {
|
|
|
+ // //var entity []supplier.OilSupplierView
|
|
|
+ // var todo todolist.TodoList
|
|
|
+ // idx := strings.Index(item.BusinessKey, "-")
|
|
|
+ // if idx >= 0 {
|
|
|
+ // id := strings.Split(item.BusinessKey, "-")[0]
|
|
|
+ // whereadd := where + id
|
|
|
+ // has := svc.GetMyTodoEntitie(OilSupplierName, OilSupplierCertName, &todo, whereadd)
|
|
|
+ // if has {
|
|
|
+ // todo.UserName = this.User.Realname
|
|
|
+ // todo.CreateTime = item.CreateTime
|
|
|
+ // todolists = append(todolists, todo)
|
|
|
+ // }
|
|
|
+ // fmt.Println("1")
|
|
|
+ // }
|
|
|
+ //}
|
|
|
|
|
|
//一级物资供方准入流程图
|
|
|
- myTasksRetWithTimes = actisvc.GetMyFinishedTasksWithTime(workflow.OIL_FIRST_SUPPLIER_APPLY, this.User.Id)
|
|
|
- for _,item := range myTasksRetWithTimes {
|
|
|
- //var entity []supplier.OilSupplierView
|
|
|
- var todo todolist.TodoList
|
|
|
- idx := strings.Index(item.BusinessKey, "-")
|
|
|
- if idx >= 0 {
|
|
|
- id := strings.Split(item.BusinessKey, "-")[0]
|
|
|
- whereadd := where + id
|
|
|
- has := svc.GetMyTodoEntitie(OilSupplierName, OilSupplierCertName, &todo, whereadd)
|
|
|
- if has {
|
|
|
- todo.UserName = this.User.Realname
|
|
|
- todo.CreateTime = item.CreateTime
|
|
|
- todolists = append(todolists, todo)
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- //二级物资供方准入流程图
|
|
|
- myTasksRetWithTimes = actisvc.GetMyFinishedTasksWithTime(workflow.OIL_SECOND_SUPPLIER_APPLY, this.User.Id)
|
|
|
- for _,item := range myTasksRetWithTimes {
|
|
|
- //var entity []supplier.OilSupplierView
|
|
|
- var todo todolist.TodoList
|
|
|
- idx := strings.Index(item.BusinessKey, "-")
|
|
|
- if idx >= 0 {
|
|
|
- id := strings.Split(item.BusinessKey, "-")[0]
|
|
|
- whereadd := where + id
|
|
|
- has := svc.GetMyTodoEntitie(OilSupplierName, OilSupplierCertName, &todo, whereadd)
|
|
|
- fmt.Println("2")
|
|
|
- if has {
|
|
|
- todo.UserName = this.User.Realname
|
|
|
- todo.CreateTime = item.CreateTime
|
|
|
- todolists = append(todolists, todo)
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
- }
|
|
|
+ //myTasksRetWithTimes = actisvc.GetMyFinishedTasksWithTime(workflow.OIL_FIRST_SUPPLIER_APPLY, this.User.Id)
|
|
|
+ //for _,item := range myTasksRetWithTimes {
|
|
|
+ // //var entity []supplier.OilSupplierView
|
|
|
+ // var todo todolist.TodoList
|
|
|
+ // idx := strings.Index(item.BusinessKey, "-")
|
|
|
+ // if idx >= 0 {
|
|
|
+ // id := strings.Split(item.BusinessKey, "-")[0]
|
|
|
+ // whereadd := where + id
|
|
|
+ // has := svc.GetMyTodoEntitie(OilSupplierName, OilSupplierCertName, &todo, whereadd)
|
|
|
+ // if has {
|
|
|
+ // todo.UserName = this.User.Realname
|
|
|
+ // todo.CreateTime = item.CreateTime
|
|
|
+ // todolists = append(todolists, todo)
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ //}
|
|
|
+ //
|
|
|
+ ////二级物资供方准入流程图
|
|
|
+ //myTasksRetWithTimes = actisvc.GetMyFinishedTasksWithTime(workflow.OIL_SECOND_SUPPLIER_APPLY, this.User.Id)
|
|
|
+ //for _,item := range myTasksRetWithTimes {
|
|
|
+ // //var entity []supplier.OilSupplierView
|
|
|
+ // var todo todolist.TodoList
|
|
|
+ // idx := strings.Index(item.BusinessKey, "-")
|
|
|
+ // if idx >= 0 {
|
|
|
+ // id := strings.Split(item.BusinessKey, "-")[0]
|
|
|
+ // whereadd := where + id
|
|
|
+ // has := svc.GetMyTodoEntitie(OilSupplierName, OilSupplierCertName, &todo, whereadd)
|
|
|
+ // fmt.Println("2")
|
|
|
+ // if has {
|
|
|
+ // todo.UserName = this.User.Realname
|
|
|
+ // todo.CreateTime = item.CreateTime
|
|
|
+ // todolists = append(todolists, todo)
|
|
|
+ // }
|
|
|
+ //
|
|
|
+ // }
|
|
|
+ //}
|
|
|
|
|
|
//企业用户准入流程图
|
|
|
myTasksRetWithTimes = actisvc.GetMyFinishedTasksWithTime(workflow.OIL_ENUSER_SUPPLIER_APPLY, this.User.Id)
|
|
|
@@ -591,61 +591,61 @@ func (this *TodoListController) GetMyTaskFinishedList() {
|
|
|
where += " and b.Id ="
|
|
|
svcapp := suppliercertappend.GetOilSupplierCertAppendService(utils.DBE)
|
|
|
//供方增项流程图
|
|
|
- myTasksRetWithTimes = actisvc.GetMyFinishedTasksWithTime(workflow.OIL_APPEND_APPLY, this.User.Id)
|
|
|
- for _,item := range myTasksRetWithTimes {
|
|
|
- //var entity []supplier.OilSupplierView
|
|
|
- var todo todolist.TodoList
|
|
|
- idx := strings.Index(item.BusinessKey, "-")
|
|
|
- if idx >= 0 {
|
|
|
- id := strings.Split(item.BusinessKey, "-")[0]
|
|
|
- whereapp := where + id
|
|
|
- has := svcapp.GetTodoEntitie(OilSupplierName, OilSupplierCertAppendName, &todo, whereapp)
|
|
|
- if has {
|
|
|
- todo.Type = todolist.CERTAPPEND
|
|
|
- todo.UserName = this.User.Realname
|
|
|
- todo.CreateTime = item.CreateTime
|
|
|
- todolists = append(todolists, todo)
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- //一级物资供方增项流程图
|
|
|
- myTasksRetWithTimes = actisvc.GetMyFinishedTasksWithTime(workflow.OIL_FIRST_APPEND_APPLY, this.User.Id)
|
|
|
- for _,item := range myTasksRetWithTimes {
|
|
|
- //var entity []supplier.OilSupplierView
|
|
|
- var todo todolist.TodoList
|
|
|
- idx := strings.Index(item.BusinessKey, "-")
|
|
|
- if idx >= 0 {
|
|
|
- id := strings.Split(item.BusinessKey, "-")[0]
|
|
|
- whereapp := where + id
|
|
|
- has := svcapp.GetTodoEntitie(OilSupplierName, OilSupplierCertAppendName, &todo, whereapp)
|
|
|
- if has {
|
|
|
- todo.Type = todolist.CERTAPPEND
|
|
|
- todo.UserName = this.User.Realname
|
|
|
- todo.CreateTime = item.CreateTime
|
|
|
- todolists = append(todolists, todo)
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- //二级物资供方准入流程图
|
|
|
- myTasksRetWithTimes = actisvc.GetMyFinishedTasksWithTime(workflow.OIL_SECOND_APPEND_APPLY, this.User.Id)
|
|
|
- for _,item := range myTasksRetWithTimes {
|
|
|
- //var entity []supplier.OilSupplierView
|
|
|
- var todo todolist.TodoList
|
|
|
- idx := strings.Index(item.BusinessKey, "-")
|
|
|
- if idx >= 0 {
|
|
|
- id := strings.Split(item.BusinessKey, "-")[0]
|
|
|
- whereapp := where + id
|
|
|
- has := svcapp.GetTodoEntitie(OilSupplierName, OilSupplierCertAppendName, &todo, whereapp)
|
|
|
- if has {
|
|
|
- todo.Type = todolist.CERTAPPEND
|
|
|
- todo.UserName = this.User.Realname
|
|
|
- todo.CreateTime = item.CreateTime
|
|
|
- todolists = append(todolists, todo)
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
+ //myTasksRetWithTimes = actisvc.GetMyFinishedTasksWithTime(workflow.OIL_APPEND_APPLY, this.User.Id)
|
|
|
+ //for _,item := range myTasksRetWithTimes {
|
|
|
+ // //var entity []supplier.OilSupplierView
|
|
|
+ // var todo todolist.TodoList
|
|
|
+ // idx := strings.Index(item.BusinessKey, "-")
|
|
|
+ // if idx >= 0 {
|
|
|
+ // id := strings.Split(item.BusinessKey, "-")[0]
|
|
|
+ // whereapp := where + id
|
|
|
+ // has := svcapp.GetTodoEntitie(OilSupplierName, OilSupplierCertAppendName, &todo, whereapp)
|
|
|
+ // if has {
|
|
|
+ // todo.Type = todolist.CERTAPPEND
|
|
|
+ // todo.UserName = this.User.Realname
|
|
|
+ // todo.CreateTime = item.CreateTime
|
|
|
+ // todolists = append(todolists, todo)
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ //}
|
|
|
+ //
|
|
|
+ ////一级物资供方增项流程图
|
|
|
+ //myTasksRetWithTimes = actisvc.GetMyFinishedTasksWithTime(workflow.OIL_FIRST_APPEND_APPLY, this.User.Id)
|
|
|
+ //for _,item := range myTasksRetWithTimes {
|
|
|
+ // //var entity []supplier.OilSupplierView
|
|
|
+ // var todo todolist.TodoList
|
|
|
+ // idx := strings.Index(item.BusinessKey, "-")
|
|
|
+ // if idx >= 0 {
|
|
|
+ // id := strings.Split(item.BusinessKey, "-")[0]
|
|
|
+ // whereapp := where + id
|
|
|
+ // has := svcapp.GetTodoEntitie(OilSupplierName, OilSupplierCertAppendName, &todo, whereapp)
|
|
|
+ // if has {
|
|
|
+ // todo.Type = todolist.CERTAPPEND
|
|
|
+ // todo.UserName = this.User.Realname
|
|
|
+ // todo.CreateTime = item.CreateTime
|
|
|
+ // todolists = append(todolists, todo)
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ //}
|
|
|
+ //
|
|
|
+ ////二级物资供方准入流程图
|
|
|
+ //myTasksRetWithTimes = actisvc.GetMyFinishedTasksWithTime(workflow.OIL_SECOND_APPEND_APPLY, this.User.Id)
|
|
|
+ //for _,item := range myTasksRetWithTimes {
|
|
|
+ // //var entity []supplier.OilSupplierView
|
|
|
+ // var todo todolist.TodoList
|
|
|
+ // idx := strings.Index(item.BusinessKey, "-")
|
|
|
+ // if idx >= 0 {
|
|
|
+ // id := strings.Split(item.BusinessKey, "-")[0]
|
|
|
+ // whereapp := where + id
|
|
|
+ // has := svcapp.GetTodoEntitie(OilSupplierName, OilSupplierCertAppendName, &todo, whereapp)
|
|
|
+ // if has {
|
|
|
+ // todo.Type = todolist.CERTAPPEND
|
|
|
+ // todo.UserName = this.User.Realname
|
|
|
+ // todo.CreateTime = item.CreateTime
|
|
|
+ // todolists = append(todolists, todo)
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ //}
|
|
|
|
|
|
//企业用户增项流程图
|
|
|
myTasksRetWithTimes = actisvc.GetMyFinishedTasksWithTime(workflow.OIL_ENUSER_APPEND_APPLY, this.User.Id)
|