| | |
| | | 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 |
| | |
| | | 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); |
| | |
| | | } |
| | | //添加结构树 |
| | | 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); |
| | | } |
| | | |
| | | /** |