|
|
@@ -81,7 +81,10 @@ func (this *TodoListController) GetMyTaskEntityList() {
|
|
|
}
|
|
|
}
|
|
|
certIdList = strings.Join(certIdarr, ",")
|
|
|
- where += " and b.Id in (" + certIdList + ")"
|
|
|
+ if certIdList != "" {
|
|
|
+ where += " and b.Id in (" + certIdList + ")"
|
|
|
+ }
|
|
|
+
|
|
|
//根据部门查询待办任务
|
|
|
|
|
|
svc := supplier.GetOilSupplierService(utils.DBE)
|
|
|
@@ -111,7 +114,10 @@ func (this *TodoListController) GetMyTaskEntityList() {
|
|
|
}
|
|
|
}
|
|
|
appendIdList = strings.Join(appendIdarr, ",")
|
|
|
- whereapp += " and b.Id in (" + appendIdList + ")"
|
|
|
+ if appendIdList != "" {
|
|
|
+ whereapp += " and b.Id in (" + appendIdList + ")"
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
var listapp []suppliercertappend.OilSupplierCertAppendTodo
|
|
|
svcapp := suppliercertappend.GetOilSupplierCertAppendService(utils.DBE)
|
|
|
@@ -138,7 +144,9 @@ func (this *TodoListController) GetMyTaskEntityList() {
|
|
|
}
|
|
|
}
|
|
|
certIdList = strings.Join(annuIdarr, ",")
|
|
|
- whereannu += " and Id in (" + certIdList + ")"
|
|
|
+ if certIdList != "" {
|
|
|
+ whereannu += " and Id in (" + certIdList + ")"
|
|
|
+ }
|
|
|
//根据部门查询待办任务
|
|
|
whereannu += " and Status != 2 "
|
|
|
svc.GetPagingEntitiesWithOrderBytbl("", page.CurrentPage, page.Size, orderby, asc, &listannu, whereannu)
|
|
|
@@ -163,8 +171,9 @@ func (this *TodoListController) GetMyTaskEntityList() {
|
|
|
}
|
|
|
}
|
|
|
certIdList = strings.Join(appendIdarr, ",")
|
|
|
- whereInfo += " and Id in (" + certIdList + ")"
|
|
|
-
|
|
|
+ if certIdList != "" {
|
|
|
+ whereInfo += " and Id in (" + certIdList + ")"
|
|
|
+ }
|
|
|
var listInfo []infochange.OilInfoChange
|
|
|
svc.GetPagingEntitiesWithOrderBytbl("", page.CurrentPage, page.Size, orderby, asc, &listInfo, whereInfo)
|
|
|
for _, item :=range listInfo {
|
|
|
@@ -187,7 +196,10 @@ func (this *TodoListController) GetMyTaskEntityList() {
|
|
|
}
|
|
|
}
|
|
|
certIdList = strings.Join(appendIdarr, ",")
|
|
|
- wherequal := "Id in (" + certIdList + ")"
|
|
|
+ wherequal := "1=1 "
|
|
|
+ if certIdList != "" {
|
|
|
+ wherequal += " and Id in (" + certIdList + ")"
|
|
|
+ }
|
|
|
wherequal += " and Status != -2 "
|
|
|
|
|
|
var listqual []qualchange.OilQualChangeMain
|
|
|
@@ -271,7 +283,10 @@ func (this *TodoListController) GetMyTaskFinishedList() {
|
|
|
}
|
|
|
}
|
|
|
certIdList = strings.Join(certIdarr, ",")
|
|
|
- where += " and b.Id in (" + certIdList + ")"
|
|
|
+ if certIdList != "" {
|
|
|
+ where += " and b.Id in (" + certIdList + ")"
|
|
|
+ }
|
|
|
+
|
|
|
//根据部门查询待办任务
|
|
|
|
|
|
svc := supplier.GetOilSupplierService(utils.DBE)
|
|
|
@@ -301,7 +316,10 @@ func (this *TodoListController) GetMyTaskFinishedList() {
|
|
|
}
|
|
|
}
|
|
|
appendIdList = strings.Join(appendIdarr, ",")
|
|
|
- whereapp += " and b.Id in (" + appendIdList + ")"
|
|
|
+ if appendIdList != "" {
|
|
|
+ whereapp += " and b.Id in (" + appendIdList + ")"
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
var listapp []suppliercertappend.OilSupplierCertAppendTodo
|
|
|
svcapp := suppliercertappend.GetOilSupplierCertAppendService(utils.DBE)
|
|
|
@@ -328,7 +346,10 @@ func (this *TodoListController) GetMyTaskFinishedList() {
|
|
|
}
|
|
|
}
|
|
|
certIdList = strings.Join(annuIdarr, ",")
|
|
|
- whereannu += " and Id in (" + certIdList + ")"
|
|
|
+ if certIdList != "" {
|
|
|
+ whereannu += " and Id in (" + certIdList + ")"
|
|
|
+ }
|
|
|
+
|
|
|
//根据部门查询待办任务
|
|
|
whereannu += " and Status != 2 "
|
|
|
svc.GetPagingEntitiesWithOrderBytbl("", page.CurrentPage, page.Size, orderby, asc, &listannu, whereannu)
|
|
|
@@ -353,7 +374,9 @@ func (this *TodoListController) GetMyTaskFinishedList() {
|
|
|
}
|
|
|
}
|
|
|
certIdList = strings.Join(appendIdarr, ",")
|
|
|
- whereInfo += " and Id in (" + certIdList + ")"
|
|
|
+ if certIdList != "" {
|
|
|
+ whereInfo += " and Id in (" + certIdList + ")"
|
|
|
+ }
|
|
|
|
|
|
var listInfo []infochange.OilInfoChange
|
|
|
svc.GetPagingEntitiesWithOrderBytbl("", page.CurrentPage, page.Size, orderby, asc, &listInfo, whereInfo)
|
|
|
@@ -377,7 +400,10 @@ func (this *TodoListController) GetMyTaskFinishedList() {
|
|
|
}
|
|
|
}
|
|
|
certIdList = strings.Join(appendIdarr, ",")
|
|
|
- wherequal := "Id in (" + certIdList + ")"
|
|
|
+ wherequal := "1=1 "
|
|
|
+ if certIdList != "" {
|
|
|
+ wherequal += " and Id in (" + certIdList + ")"
|
|
|
+ }
|
|
|
wherequal += " and Status != -2 "
|
|
|
|
|
|
var listqual []qualchange.OilQualChangeMain
|