2
3
lining преди 6 години
родител
ревизия
76826679b0

+ 1 - 1
src/dashoo.cn/backend/api/business/oilsupplier/suppliercertappend/oilsuppliercertappendService.go

@@ -152,7 +152,7 @@ func (s *OilSupplierCertAppendService) GetMyPagingEntitiesWithOrderBytbl(supplie
 func (s *OilSupplierCertAppendService) GetTodoEntitie(supplierTableName, supplierCertAppendName string, entitiesPtr interface{}, where string) bool {
 
 	var sql string
-	sql = `select a.SupplierName, b.AppendType SupplierTypeCode, b.Status `
+	sql = `select b.Id, a.SupplierName, b.AppendType SupplierTypeCode, b.Status `
 	sql += ` from ` + supplierTableName + ` a `
 	sql += ` left join ` + supplierCertAppendName + " b on b.SupplierId = a.Id"
 	sql += ` where ` + where

+ 1 - 0
src/dashoo.cn/backend/api/controllers/oilsupplier/todolist.go

@@ -307,6 +307,7 @@ func (this *TodoListController) GetMyTaskEntityList() {
 				whereannu := where + id
 				has := svc.GetEntity(&listannu, whereannu)
 				if has {
+					todo.Id = listannu.Id
 					todo.SupplierId = strconv.Itoa(listannu.SupplierId)
 					todo.Type = todolist.ANNUALAUDIT
 					todo.SupplierName = listannu.SupplierName