From cc44920da3d40b8248b67560026e891afdd1a6ab Mon Sep 17 00:00:00 2001 From: lyh <925863403@qq.com> Date: 星期四, 08 五月 2025 17:57:14 +0800 Subject: [PATCH] 1.查询可以被引用的部件接口开发完成 2.借用部件(可批量) 开发完成 3.修改原有新增、修改部件接口 完成 4.修改原有删除文档与导入文档接口 完成 5.修改工作流问题 --- lxzn-module-dnc/src/main/java/org/jeecg/modules/dnc/service/impl/WorkStepServiceImpl.java | 20 ++++++++++++++------ 1 files changed, 14 insertions(+), 6 deletions(-) diff --git a/lxzn-module-dnc/src/main/java/org/jeecg/modules/dnc/service/impl/WorkStepServiceImpl.java b/lxzn-module-dnc/src/main/java/org/jeecg/modules/dnc/service/impl/WorkStepServiceImpl.java index 87be894..90a1463 100644 --- a/lxzn-module-dnc/src/main/java/org/jeecg/modules/dnc/service/impl/WorkStepServiceImpl.java +++ b/lxzn-module-dnc/src/main/java/org/jeecg/modules/dnc/service/impl/WorkStepServiceImpl.java @@ -22,10 +22,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; -import java.util.ArrayList; -import java.util.Collection; -import java.util.Collections; -import java.util.List; +import java.util.*; /** * @Description: TODO @@ -122,6 +119,7 @@ pd.setStepId(workStep.getId()); workStepDepartmentList.add(pd); PermissionStreamNew perm = new PermissionStreamNew(); + perm.setDepartId(item.getDepartId()); perm.setBusinessId(workStep.getId()); perm.setBusinessType("6"); permissionStreamList.add(perm); @@ -137,16 +135,21 @@ ExceptionCast.cast(CommonCode.FAIL); } } + //娣诲姞鐢ㄦ埛鏉冮檺 + b = productPermissionService.add(workStep.getId(), userId,"6"); + if (!b) { + ExceptionCast.cast(ProductInfoCode.PRODUCT_SAVE_ERROR); + } //娣诲姞缁撴瀯鏍� ProductMix productMix = new ProductMix(Long.parseLong(workStep.getId()),Long.parseLong(workStep.getProcessId()) - ,workStep.getStepName(),workStep.getStepCode(),"6"); + ,workStep.getStepName(),workStep.getStepCode(),6,new Date()); productMixService.save(productMix); //娣诲姞鏉冮檺楠岃瘉 PermissionStreamNew permissionStream = new PermissionStreamNew(); permissionStream.setUserId(userId); permissionStream.setBusinessId(workStep.getId()); permissionStream.setBusinessType("6"); - return permissionStreamNewService.save(permissionStream); + return permissionStreamNewService.addPermissionStreamNew(permissionStream); } /** @@ -164,6 +167,11 @@ WorkStep en = super.getById(id); if(en == null) ExceptionCast.cast(ProcessInfoCode.WORKSTEP_NOT_EXIST); + //鍚屾淇敼缁撴瀯鏍� + ProductMix productMix = productMixService.getById(Long.parseLong(id)); + productMix.setName(workStep.getStepName()); + productMix.setCode(workStep.getStepCode()); + productMixService.updateById(productMix); return super.updateById(workStep); } -- Gitblit v1.9.3