瀏覽代碼

准入范围检查资质只检查0,1,3,5

wd 4 年之前
父節點
當前提交
8d079dccac
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      src/dashoo.cn/backend/api/controllers/oilsupplier/suppliercertsub.go

+ 3 - 3
src/dashoo.cn/backend/api/controllers/oilsupplier/suppliercertsub.go

@@ -367,7 +367,7 @@ func (this *OilSupplierCertSubController) CheckCertSubLost() {
 	supplierTypeCode := dataother.SupplierTypeCode
 	var tableheaderList []supplierfile.OilSupplierFile
 
-	fileSql := "SELECT * from OilSupplierFile WHERE SupplierId='" + strconv.Itoa(supplierId) + "'"
+	fileSql := "SELECT * from OilSupplierFile WHERE SupplierId='" + strconv.Itoa(supplierId) + "' and SupType in (0, 1, 3, 5)"
 	fileSql += " AND (SupplierTypeCode='" + supplierTypeCode + "' or SupplierTypeCode='000')"
 
 	svcHeader := tableheader.GetTableHeaderService(utils.DBE)
@@ -634,7 +634,7 @@ func (this *OilSupplierCertSubController) CheckTechCertLost() {
 		//}
 
 		var fileist []supplierfile.OilSupplierFile
-		where := "SupplierTypeCode in ('03','000') and SupplierId = '" + strconv.Itoa(dataother.SupplierId) + "'"
+		where := "SupplierTypeCode in ('03','000') and SupplierId = '" + strconv.Itoa(dataother.SupplierId) + "' and SupType in (0, 1, 3, 5)"
 		svcSupplier.GetEntitysByWhere(OilSupplierFileName, where, &fileist)
 
 		var companyHasHeaders string
@@ -818,7 +818,7 @@ func (this *OilSupplierCertSubController) CheckBasisBusinessLost() {
 
 	if err == nil {
 		var list []supplierfile.OilSupplierFile
-		where := "SupplierTypeCode in (02,000) and SupplierId = '" + strconv.Itoa(model.SupplierId) + "'"
+		where := "SupplierTypeCode in (02,000) and SupplierId = '" + strconv.Itoa(model.SupplierId) + "' and SupType in (0, 1, 3, 5)"
 		svcCert.GetEntitysByWhere(OilSupplierFileName, where, &list)
 		var companyHasHeaders string
 		for _, tableheader := range list {