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)){