|
|
@@ -3289,9 +3289,12 @@ func (this *OilSupplierController) CheckSupplierFileList() {
|
|
|
|
|
|
}
|
|
|
var certSubList1 []suppliercertsub.OilSupplierCertSub
|
|
|
- total := certsubService.GetPagingEntitiesWithOrderBytbl("", file.CurrentPage, file.Size, "Id", true, &certSubList1, "IsQuestion = 2 and SupplierId = "+strconv.Itoa(supplierEntity.Id))
|
|
|
+ var total int64
|
|
|
if file.CertId != "0" {
|
|
|
total = certsubService.GetPagingEntitiesWithOrderBytbl("", file.CurrentPage, file.Size, "Id", true, &certSubList1, "IsQuestion = 2 and SupplierId = "+strconv.Itoa(supplierEntity.Id)+" and SupplierCertId = "+file.CertId)
|
|
|
+ } else {
|
|
|
+ total = certsubService.GetPagingEntitiesWithOrderBytbl("", file.CurrentPage, file.Size, "Id", true, &certSubList1, "IsQuestion = 2 and SupplierId = "+strconv.Itoa(supplierEntity.Id))
|
|
|
+
|
|
|
}
|
|
|
var datainfo DataInfo
|
|
|
datainfo.CurrentItemCount = total
|