From 9b015b51b72ba050b4c38a6ba79eb45b7065e67d Mon Sep 17 00:00:00 2001 From: Lius <Lius2225@163.com> Date: 星期四, 25 七月 2024 10:11:52 +0800 Subject: [PATCH] 调整sql --- lxzn-module-eam/src/main/java/org/jeecg/modules/eam/controller/EquipmentProcessParametersController.java | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/controller/EquipmentProcessParametersController.java b/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/controller/EquipmentProcessParametersController.java index bd5f56f..2eb8d4b 100644 --- a/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/controller/EquipmentProcessParametersController.java +++ b/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/controller/EquipmentProcessParametersController.java @@ -15,6 +15,8 @@ import org.jeecg.common.system.query.QueryGenerator; import org.jeecg.common.util.oConvertUtils; +import org.jeecg.modules.eam.entity.Equipment; +import org.jeecg.modules.eam.entity.EquipmentPrecisionParameters; import org.jeecg.modules.eam.entity.EquipmentProcessParameters; import org.jeecg.modules.eam.entity.ProcessParameters; import org.jeecg.modules.eam.service.IEquipmentProcessParametersService; @@ -201,5 +203,16 @@ public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) { return super.importExcel(request, response, EquipmentProcessParameters.class); } + @PutMapping("/submitBatch") + public Result<?> submitBatch(@RequestBody List<EquipmentProcessParameters> equipmentProcessParameters){ + equipmentProcessParametersService.saveOrUpdateBatch(equipmentProcessParameters); + return Result.OK("鎻愪氦鎴愬姛"); + } + @PutMapping("newEdit") + public Result<?> newEdit(@RequestBody Equipment equipment){ + List<EquipmentProcessParameters> equipmentProcessParameters = equipment.getProcessEditTableList(); + equipmentProcessParametersService.saveOrUpdateBatch(equipmentProcessParameters); + return Result.OK("缁存姢鎴愬姛"); + } } -- Gitblit v1.9.3