diff --git a/src/main/java/com/zcloud/controller/bus/IdentificationPartsController.java b/src/main/java/com/zcloud/controller/bus/IdentificationPartsController.java index 1e3c78c7..d718c8f5 100644 --- a/src/main/java/com/zcloud/controller/bus/IdentificationPartsController.java +++ b/src/main/java/com/zcloud/controller/bus/IdentificationPartsController.java @@ -278,7 +278,7 @@ public class IdentificationPartsController extends BaseController { @DockAnnotation public Object deleteAll() throws Exception{ Map map = new HashMap(); - String errInfo = "success"; + String errInfo = "fail"; PageData pd = new PageData(); pd = this.getPageData(); String DATA_IDS = pd.getString("DATA_IDS"); @@ -295,11 +295,9 @@ public class IdentificationPartsController extends BaseController { pd.put("OPERATOR", Jurisdiction.getUsername()); //修改人 pd.put("OPERATTIME", DateUtil.date2Str(new Date())); //修改时间 identificationpartsService.delete(pd); + errInfo = "success"; } // identificationpartsService.deleteAll(ArrayDATA_IDS); - errInfo = "success"; - }else{ - errInfo = "fail"; } pd.put("DATA_IDS",DATA_IDS); map.put("dockData", JSON.toJSONString(pd));