From cf20a9f777951dbc61018a4294c12ae9b7421e78 Mon Sep 17 00:00:00 2001 From: lyh <925863403@qq.com> Date: 星期六, 12 七月 2025 16:59:55 +0800 Subject: [PATCH] 二保基础流程代码 --- lxzn-module-eam/src/main/java/org/jeecg/modules/eam/controller/EamSecondMaintenanceOrderController.java | 45 --------------------------------------------- 1 files changed, 0 insertions(+), 45 deletions(-) diff --git a/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/controller/EamSecondMaintenanceOrderController.java b/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/controller/EamSecondMaintenanceOrderController.java index c17443f..056eb5f 100644 --- a/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/controller/EamSecondMaintenanceOrderController.java +++ b/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/controller/EamSecondMaintenanceOrderController.java @@ -131,28 +131,6 @@ } /** - * 閫氳繃id浣滃簾 - * - * @param id - * @return - */ - @AutoLog(value = "璁惧浜岀骇淇濆吇-浣滃簾") - @ApiOperation(value = "璁惧浜岀骇淇濆吇-浣滃簾", notes = "璁惧浜岀骇淇濆吇-浣滃簾") - @DeleteMapping(value = "/abolish") - public Result<?> abolish(@RequestParam(name = "id", required = true) String id) { - EamSecondMaintenanceOrder entity = eamSecondMaintenanceOrderService.getById(id); - if (entity == null) { - return Result.error("瑕佷綔搴熺殑鏁版嵁涓嶅瓨鍦紝璇峰埛鏂伴噸璇曪紒"); - } - if (!SecondMaintenanceStatusEnum.WAIT_MAINTENANCE.name().equals(entity.getMaintenanceStatus())) { - return Result.error("璇ョ姸鎬佺殑鏁版嵁涓嶅厑璁歌繘琛屼綔搴燂紒"); - } - entity.setMaintenanceStatus(SecondMaintenanceStatusEnum.ABOLISH.name()); - eamSecondMaintenanceOrderService.updateById(entity); - return Result.OK("浣滃簾鎴愬姛!"); - } - - /** * 閫氳繃id棰嗗彇 * * @param id @@ -167,29 +145,6 @@ Result.OK("棰嗗彇澶辫触!"); } return Result.OK("棰嗗彇鎴愬姛!"); - } - - /** - * 閫氳繃id鎵归噺浣滃簾 - * - * @param ids - * @return - */ - @AutoLog(value = "鍛ㄤ繚宸ュ崟-鎵归噺浣滃簾") - @ApiOperation(value = "鍛ㄤ繚宸ュ崟-鎵归噺浣滃簾", notes = "鍛ㄤ繚宸ュ崟-鎵归噺浣滃簾") - @DeleteMapping(value = "/abolishBatch") - public Result<?> abolishBatch(@RequestParam(name = "ids", required = true) String ids) { - List<String> list = Arrays.asList(ids.split(",")); - AtomicInteger i = new AtomicInteger(); - list.forEach(id -> { - EamSecondMaintenanceOrder entity = eamSecondMaintenanceOrderService.getById(id); - if (entity != null && SecondMaintenanceStatusEnum.WAIT_MAINTENANCE.name().equals(entity.getMaintenanceStatus())) { - entity.setMaintenanceStatus(SecondMaintenanceStatusEnum.ABOLISH.name()); - eamSecondMaintenanceOrderService.updateById(entity); - i.getAndIncrement(); - } - }); - return Result.OK("鎵归噺浣滃簾鎴愬姛 " + i.get() + " 鏉″伐鍗曪紒"); } /** -- Gitblit v1.9.3