浏览代码

资质文件先于准入申请删除

yuedefeng 5 年之前
父节点
当前提交
550fd0d6c3
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/dashoo.cn/backend/api/controllers/oilsupplier/supplier.go

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

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