|
@@ -116,20 +116,24 @@ func (this *TodoListController) GetMyTaskEntityList() {
|
|
|
//找出待办任务 -- 增项
|
|
//找出待办任务 -- 增项
|
|
|
whereapp := "1=1"
|
|
whereapp := "1=1"
|
|
|
whereapp = whereapp + " and b.Status>0"
|
|
whereapp = whereapp + " and b.Status>0"
|
|
|
|
|
+
|
|
|
var appendIdList string
|
|
var appendIdList string
|
|
|
- if actisvc.GetMyTasks(workflow.OIL_APPEND_APPLY, this.User.Id) != "" {
|
|
|
|
|
- appendIdList = actisvc.GetMyTasks(workflow.OIL_APPEND_APPLY, this.User.Id)
|
|
|
|
|
|
|
+ ids := actisvc.GetMyTasks(workflow.OIL_APPEND_APPLY, this.User.Id)
|
|
|
|
|
+ if ids != "" {
|
|
|
|
|
+ appendIdList = ids
|
|
|
appendIdList = appendIdList + ","
|
|
appendIdList = appendIdList + ","
|
|
|
}
|
|
}
|
|
|
- if actisvc.GetMyTasks(workflow.OIL_FIRST_APPEND_APPLY, this.User.Id) != "" {
|
|
|
|
|
- appendIdList = fmt.Sprintf("%s %s", appendIdList, actisvc.GetMyTasks(workflow.OIL_FIRST_APPEND_APPLY, this.User.Id))
|
|
|
|
|
|
|
+ ids = actisvc.GetMyTasks(workflow.OIL_FIRST_APPEND_APPLY, this.User.Id)
|
|
|
|
|
+ if ids != "" {
|
|
|
|
|
+ appendIdList = fmt.Sprintf("%s %s", appendIdList, ids)
|
|
|
appendIdList = appendIdList + ","
|
|
appendIdList = appendIdList + ","
|
|
|
}
|
|
}
|
|
|
- if actisvc.GetMyTasks(workflow.OIL_SECOND_APPEND_APPLY, this.User.Id) != "" {
|
|
|
|
|
- appendIdList = fmt.Sprintf("%s %s", appendIdList, actisvc.GetMyTasks(workflow.OIL_SECOND_APPEND_APPLY, this.User.Id))
|
|
|
|
|
|
|
+ ids = actisvc.GetMyTasks(workflow.OIL_SECOND_APPEND_APPLY, this.User.Id)
|
|
|
|
|
+ if ids != "" {
|
|
|
|
|
+ appendIdList = fmt.Sprintf("%s %s", appendIdList, ids)
|
|
|
appendIdList = appendIdList + ","
|
|
appendIdList = appendIdList + ","
|
|
|
}
|
|
}
|
|
|
- appendIdList = strings.Trim(appendIdList, ",")
|
|
|
|
|
|
|
+
|
|
|
appendIdarr := strings.Split(appendIdList, ",")
|
|
appendIdarr := strings.Split(appendIdList, ",")
|
|
|
for i, item := range appendIdarr {
|
|
for i, item := range appendIdarr {
|
|
|
idx := strings.Index(item,"-")
|
|
idx := strings.Index(item,"-")
|
|
@@ -362,7 +366,24 @@ func (this *TodoListController) GetMyTaskFinishedList() {
|
|
|
//已办任务 -- 增项
|
|
//已办任务 -- 增项
|
|
|
whereapp := "1=1"
|
|
whereapp := "1=1"
|
|
|
whereapp = whereapp + " and b.Status>0"
|
|
whereapp = whereapp + " and b.Status>0"
|
|
|
- appendIdList := actisvc.GetHistoryMyTasks(workflow.OIL_APPEND_APPLY, this.User.Id)
|
|
|
|
|
|
|
+
|
|
|
|
|
+ var appendIdList string
|
|
|
|
|
+ ids := actisvc.GetHistoryMyTasks(workflow.OIL_APPEND_APPLY, this.User.Id)
|
|
|
|
|
+ if ids != "" {
|
|
|
|
|
+ appendIdList = ids
|
|
|
|
|
+ appendIdList = appendIdList + ","
|
|
|
|
|
+ }
|
|
|
|
|
+ ids = actisvc.GetHistoryMyTasks(workflow.OIL_FIRST_APPEND_APPLY, this.User.Id)
|
|
|
|
|
+ if ids != "" {
|
|
|
|
|
+ appendIdList = fmt.Sprintf("%s %s", appendIdList, ids)
|
|
|
|
|
+ appendIdList = appendIdList + ","
|
|
|
|
|
+ }
|
|
|
|
|
+ ids = actisvc.GetHistoryMyTasks(workflow.OIL_SECOND_APPEND_APPLY, this.User.Id)
|
|
|
|
|
+ if ids != "" {
|
|
|
|
|
+ appendIdList = fmt.Sprintf("%s %s", appendIdList, ids)
|
|
|
|
|
+ appendIdList = appendIdList + ","
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
appendIdarr := strings.Split(appendIdList, ",")
|
|
appendIdarr := strings.Split(appendIdList, ",")
|
|
|
for i, item := range appendIdarr {
|
|
for i, item := range appendIdarr {
|
|
|
idx := strings.Index(item, "-")
|
|
idx := strings.Index(item, "-")
|