From 5db6268190f1c7bb7190c25218554b3fad9080f3 Mon Sep 17 00:00:00 2001 From: wangzhijiang Date: Wed, 12 Apr 2023 10:45:13 +0800 Subject: [PATCH] =?UTF-8?q?UAT=E9=97=AE=E9=A2=98=E6=B8=85=E5=8D=95?= =?UTF-8?q?=EF=BC=8C=E7=AC=AC6=E6=9D=A1=E3=80=82=E8=AE=A4=E8=AF=81?= =?UTF-8?q?=E6=B8=85=E5=8D=95=EF=BC=8C=E6=89=B9=E9=87=8F=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E7=8A=B6=E6=80=81=E6=8E=A5=E5=8F=A3=E5=BC=80=E5=8F=91=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...jectCertificationInventoryEOController.java | 12 ++++++++++++ ...ProjectCertificationInventoryEOService.java | 7 +++++++ ...ectCertificationInventoryEOServiceImpl.java | 18 ++++++++++++++++++ 3 files changed, 37 insertions(+) diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/controller/ProjectCertificationInventoryEOController.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/controller/ProjectCertificationInventoryEOController.java index 6d729a6d1..12fcc5ac6 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/controller/ProjectCertificationInventoryEOController.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/controller/ProjectCertificationInventoryEOController.java @@ -299,4 +299,16 @@ public class ProjectCertificationInventoryEOController extends JeroController citeDeliverable(@RequestBody JSONObject json) { return this.projectCertificationInventoryEOService.citeDeliverable(json); } + + /** + * 批量更新法规清单状态 + * @param json + * @return + */ + @AutoLog(value = "项目库-认证清单表-批量更新状态") + @ApiOperation(value="项目库-认证清单表-批量更新状态", notes="项目库-认证清单表-批量更新状态") + @PostMapping(value = "/updateStatusBatch") + public Result updateStatusBatch(@RequestBody JSONObject json) { + return this.projectCertificationInventoryEOService.updateStatusBatch(json); + } } diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/IProjectCertificationInventoryEOService.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/IProjectCertificationInventoryEOService.java index 08f3f68e5..870f8fdde 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/IProjectCertificationInventoryEOService.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/IProjectCertificationInventoryEOService.java @@ -234,4 +234,11 @@ public interface IProjectCertificationInventoryEOService extends IService dataUniqueCheck(List projectCertificationInventoryEOList, String cut,List result,String projectLibraryId); + + /** + * + * @param json + * @return + */ + Result updateStatusBatch(JSONObject json); } diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectCertificationInventoryEOServiceImpl.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectCertificationInventoryEOServiceImpl.java index c8cb9ad00..27044ddbf 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectCertificationInventoryEOServiceImpl.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectCertificationInventoryEOServiceImpl.java @@ -753,6 +753,24 @@ public class ProjectCertificationInventoryEOServiceImpl extends ServiceImpl updateStatusBatch(JSONObject json) { + String ids = json.getString("ids"); + String flowStatus = json.getString("flowStatus"); + if(StringUtils.isNotEmpty(ids)){ + QueryWrapper pciQueryWrap = new QueryWrapper<>(); + pciQueryWrap.lambda().in(ProjectCertificationInventoryEO::getId,Arrays.asList(ids.split(","))); + List pciEoList = this.list(pciQueryWrap); + if(CollectionUtils.isNotEmpty(pciEoList)){ + pciEoList.forEach(pciEo -> { + pciEo.setFlowStatus(flowStatus); + }); + this.updateBatchById(pciEoList); + } + } + return new Result<>().success("批量更新状态成功!"); + } + @Override public void importDisposeData(List datas, String cut) { if(CollectionUtils.isNotEmpty(datas)){