Browse Source

后:准入范围

dubch 5 năm trước cách đây
mục cha
commit
1e449b6555

+ 7 - 7
src/dashoo.cn/backend/api/controllers/oilsupplier/technologyservice.go

@@ -2138,11 +2138,11 @@ func (this *OilTechnologyServiceController) DeleteUpdate() {
 			subDelete.SubClassId = item.Id
 			err = svc.UpdateEntityBywheretbl(OilSupplierCertSubName, &subDelete, cols, "SupplierTypeCode = '03' and Name = '" + item.Name + "'")
 		}
-		var list []goodsaptitude.Ids
-		svc.DeleteTableBySelect(OilSupplierCertSubName, OilTechnologyServiceClassName, "a.SupplierTypeCode='03' AND b.Id IS NULL", &list, "Name")
-		for _,id := range list{
-			err = svc.DeleteTable(OilSupplierCertSubName, "Id = " + strconv.Itoa(id.Id))
-		}
+		//var list []goodsaptitude.Ids
+		//svc.DeleteTableBySelect(OilSupplierCertSubName, OilTechnologyServiceClassName, "a.SupplierTypeCode='03' AND b.Id IS NULL", &list, "Name")
+		//for _,id := range list{
+		//	err = svc.DeleteTable(OilSupplierCertSubName, "Id = " + strconv.Itoa(id.Id))
+		//}
 	}()
 	errinfo.Message = "更新中,请勿重复更新!"
 	errinfo.Code = 0
@@ -2259,9 +2259,9 @@ func (this *OilTechnologyServiceController) ManualDelete() {
 	for _, value := range list {
 		var sub1 suppliercertsub.OilSupplierCertSub
 		var class technologyserviceclass.OilTechnologyServiceClass
-		if value.Operation == "删除" {
+		if value.Operation == "删除" || value.Operation == "" {
 			svc.DeleteTable(OilSupplierCertSubName, "SupplierTypeCode='03' and Code = '" + value.Code + "' and Name = '" + value.Name + "'")
-		} else if value.Operation == "维持不动" || value.Operation == "" {
+		} else if value.Operation == "维持不动"{
 
 		} else if strings.Index(value.Operation, ",") > 0 {
 			//151508,151509