Przeglądaj źródła

删除时,把相关的准入范围也删除

yuedefeng 5 lat temu
rodzic
commit
7071110d0e

+ 2 - 1
src/dashoo.cn/backend/api/controllers/oilsupplier/supplier.go

@@ -1830,7 +1830,8 @@ func (this *OilSupplierController) DeleteAllEntity() {
 		return
 	}
 	svc := supplier.GetOilSupplierService(utils.DBE)
-	err := svc.DeleteEntityBytbl(OilSupplierCertName, "SupplierId="+Id+" and SupplierTypeCode='"+SupplierTypeCode+"'")
+	err := svc.DeleteEntityBytbl(OilSupplierCertSubName, "SupplierId="+Id+" and SupplierTypeCode='"+SupplierTypeCode+"'")
+	err = svc.DeleteEntityBytbl(OilSupplierCertName, "SupplierId="+Id+" and SupplierTypeCode='"+SupplierTypeCode+"'")
 	err = svc.DeleteEntityBytbl(OilSupplierFileName, "SupplierId="+Id+" and SupplierTypeCode='"+SupplierTypeCode+"'")
 
 	// TODO: 删除准入范围和资质对应关系表