From 8da1c8206be25beca325787b61ca948fbcc714bc Mon Sep 17 00:00:00 2001 From: orange-form <3510245832@qq.com> Date: Fri, 5 Jul 2024 14:37:18 +0000 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20images/o?= =?UTF-8?q?range-demo-activiti-service?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../orange-demo-activiti-service/.gitignore | 26 - images/orange-demo-activiti-service/README.md | 17 - .../application-webadmin/pom.xml | 87 - .../webadmin/WebAdminApplication.java | 28 - .../app/controller/AreaCodeController.java | 74 - .../webadmin/app/dao/AreaCodeMapper.java | 13 - .../app/dao/mapper/AreaCodeMapper.xml | 10 - .../webadmin/app/model/AreaCode.java | 39 - .../webadmin/app/service/AreaCodeService.java | 23 - .../app/service/impl/AreaCodeServiceImpl.java | 52 - .../app/util/FlowIdentityExtHelper.java | 135 - .../webadmin/app/vo/AreaCodeVo.java | 40 - .../webadmin/config/ApplicationConfig.java | 51 - .../webadmin/config/DataSourceType.java | 36 - .../webadmin/config/FilterConfig.java | 57 - .../webadmin/config/InterceptorConfig.java | 21 - .../config/MultiDataSourceConfig.java | 44 - .../AuthenticationInterceptor.java | 139 - .../upms/controller/LoginController.java | 313 - .../upms/controller/LoginUserController.java | 83 - .../controller/SysDataPermController.java | 293 - .../upms/controller/SysDeptController.java | 375 - .../upms/controller/SysMenuController.java | 219 - .../controller/SysPermCodeController.java | 190 - .../upms/controller/SysPermController.java | 191 - .../controller/SysPermModuleController.java | 163 - .../upms/controller/SysPostController.java | 173 - .../upms/controller/SysRoleController.java | 351 - .../upms/controller/SysUserController.java | 248 - .../upms/dao/SysDataPermDeptMapper.java | 13 - .../webadmin/upms/dao/SysDataPermMapper.java | 35 - .../upms/dao/SysDataPermUserMapper.java | 13 - .../webadmin/upms/dao/SysDeptMapper.java | 33 - .../webadmin/upms/dao/SysDeptPostMapper.java | 33 - .../upms/dao/SysDeptRelationMapper.java | 42 - .../webadmin/upms/dao/SysMenuMapper.java | 54 - .../upms/dao/SysMenuPermCodeMapper.java | 13 - .../webadmin/upms/dao/SysPermCodeMapper.java | 45 - .../upms/dao/SysPermCodePermMapper.java | 13 - .../webadmin/upms/dao/SysPermMapper.java | 54 - .../upms/dao/SysPermModuleMapper.java | 22 - .../upms/dao/SysPermWhitelistMapper.java | 13 - .../webadmin/upms/dao/SysPostMapper.java | 52 - .../webadmin/upms/dao/SysRoleMapper.java | 45 - .../webadmin/upms/dao/SysRoleMenuMapper.java | 13 - .../webadmin/upms/dao/SysUserMapper.java | 154 - .../webadmin/upms/dao/SysUserPostMapper.java | 13 - .../webadmin/upms/dao/SysUserRoleMapper.java | 13 - .../upms/dao/mapper/SysDataPermDeptMapper.xml | 8 - .../upms/dao/mapper/SysDataPermMapper.xml | 62 - .../upms/dao/mapper/SysDataPermUserMapper.xml | 8 - .../upms/dao/mapper/SysDeptMapper.xml | 70 - .../upms/dao/mapper/SysDeptPostMapper.xml | 46 - .../upms/dao/mapper/SysDeptRelationMapper.xml | 29 - .../upms/dao/mapper/SysMenuMapper.xml | 109 - .../upms/dao/mapper/SysMenuPermCodeMapper.xml | 8 - .../upms/dao/mapper/SysPermCodeMapper.xml | 91 - .../upms/dao/mapper/SysPermCodePermMapper.xml | 8 - .../upms/dao/mapper/SysPermMapper.xml | 132 - .../upms/dao/mapper/SysPermModuleMapper.xml | 44 - .../dao/mapper/SysPermWhitelistMapper.xml | 9 - .../upms/dao/mapper/SysPostMapper.xml | 82 - .../upms/dao/mapper/SysRoleMapper.xml | 91 - .../upms/dao/mapper/SysRoleMenuMapper.xml | 8 - .../upms/dao/mapper/SysUserMapper.xml | 290 - .../upms/dao/mapper/SysUserPostMapper.xml | 9 - .../upms/dao/mapper/SysUserRoleMapper.xml | 8 - .../webadmin/upms/dto/SysDataPermDeptDto.java | 28 - .../webadmin/upms/dto/SysDataPermDto.java | 56 - .../webadmin/upms/dto/SysDeptDto.java | 73 - .../webadmin/upms/dto/SysDeptPostDto.java | 48 - .../webadmin/upms/dto/SysMenuDto.java | 81 - .../webadmin/upms/dto/SysPermCodeDto.java | 64 - .../webadmin/upms/dto/SysPermDto.java | 61 - .../webadmin/upms/dto/SysPermModuleDto.java | 57 - .../webadmin/upms/dto/SysPostDto.java | 48 - .../webadmin/upms/dto/SysRoleDto.java | 33 - .../webadmin/upms/dto/SysUserDto.java | 119 - .../webadmin/upms/model/SysDataPerm.java | 113 - .../webadmin/upms/model/SysDataPermDept.java | 29 - .../webadmin/upms/model/SysDataPermUser.java | 27 - .../webadmin/upms/model/SysDept.java | 81 - .../webadmin/upms/model/SysDeptPost.java | 39 - .../webadmin/upms/model/SysDeptRelation.java | 31 - .../webadmin/upms/model/SysMenu.java | 143 - .../webadmin/upms/model/SysMenuPermCode.java | 27 - .../webadmin/upms/model/SysPerm.java | 87 - .../webadmin/upms/model/SysPermCode.java | 120 - .../webadmin/upms/model/SysPermCodePerm.java | 27 - .../webadmin/upms/model/SysPermModule.java | 81 - .../webadmin/upms/model/SysPermWhitelist.java | 33 - .../webadmin/upms/model/SysPost.java | 104 - .../webadmin/upms/model/SysRole.java | 96 - .../webadmin/upms/model/SysRoleMenu.java | 27 - .../webadmin/upms/model/SysUser.java | 194 - .../webadmin/upms/model/SysUserPost.java | 33 - .../webadmin/upms/model/SysUserRole.java | 27 - .../upms/model/constant/SysMenuType.java | 54 - .../model/constant/SysOnlineMenuPermType.java | 44 - .../upms/model/constant/SysPermCodeType.java | 49 - .../model/constant/SysPermModuleType.java | 44 - .../upms/model/constant/SysUserStatus.java | 44 - .../upms/model/constant/SysUserType.java | 49 - .../upms/service/SysDataPermService.java | 104 - .../webadmin/upms/service/SysDeptService.java | 153 - .../webadmin/upms/service/SysMenuService.java | 111 - .../upms/service/SysPermCodeService.java | 94 - .../upms/service/SysPermModuleService.java | 63 - .../webadmin/upms/service/SysPermService.java | 108 - .../upms/service/SysPermWhitelistService.java | 23 - .../webadmin/upms/service/SysPostService.java | 99 - .../webadmin/upms/service/SysRoleService.java | 105 - .../webadmin/upms/service/SysUserService.java | 194 - .../service/impl/SysDataPermServiceImpl.java | 336 - .../upms/service/impl/SysDeptServiceImpl.java | 340 - .../upms/service/impl/SysMenuServiceImpl.java | 335 - .../service/impl/SysPermCodeServiceImpl.java | 226 - .../impl/SysPermModuleServiceImpl.java | 124 - .../upms/service/impl/SysPermServiceImpl.java | 243 - .../impl/SysPermWhitelistServiceImpl.java | 52 - .../upms/service/impl/SysPostServiceImpl.java | 188 - .../upms/service/impl/SysRoleServiceImpl.java | 228 - .../upms/service/impl/SysUserServiceImpl.java | 410 - .../webadmin/upms/vo/SysDataPermDeptVo.java | 28 - .../webadmin/upms/vo/SysDataPermVo.java | 72 - .../webadmin/upms/vo/SysDeptPostVo.java | 40 - .../webadmin/upms/vo/SysDeptVo.java | 66 - .../webadmin/upms/vo/SysMenuVo.java | 108 - .../webadmin/upms/vo/SysPermCodeVo.java | 84 - .../webadmin/upms/vo/SysPermModuleVo.java | 78 - .../webadmin/upms/vo/SysPermVo.java | 84 - .../webadmin/upms/vo/SysPostVo.java | 73 - .../webadmin/upms/vo/SysRoleVo.java | 60 - .../webadmin/upms/vo/SysUserVo.java | 122 - .../src/main/resources/application.yml | 291 - .../src/main/resources/log4j2.xml | 89 - .../resources/template/views/print_error.ftl | 329 - .../common/common-core/pom.xml | 119 - .../core/advice/MyControllerAdvice.java | 30 - .../core/advice/MyExceptionHandler.java | 141 - .../core/annotation/DeptFilterColumn.java | 16 - .../core/annotation/DisableDataFilter.java | 17 - .../core/annotation/DisableTenantFilter.java | 28 - .../core/annotation/EnableDataPerm.java | 27 - .../core/annotation/JobUpdateTimeColumn.java | 16 - .../common/core/annotation/MyDataSource.java | 21 - .../core/annotation/MyDataSourceResolver.java | 29 - .../common/core/annotation/MyRequestBody.java | 31 - .../core/annotation/NoAuthInterface.java | 15 - .../core/annotation/RelationConstDict.java | 29 - .../common/core/annotation/RelationDict.java | 70 - .../core/annotation/RelationManyToMany.java | 38 - .../RelationManyToManyAggregation.java | 95 - .../core/annotation/RelationOneToMany.java | 53 - .../RelationOneToManyAggregation.java | 67 - .../core/annotation/RelationOneToOne.java | 60 - .../core/annotation/TenantFilterColumn.java | 16 - .../core/annotation/UploadFlagColumn.java | 24 - .../core/annotation/UserFilterColumn.java | 16 - .../common/core/aop/DataSourceAspect.java | 48 - .../core/aop/DataSourceResolveAspect.java | 62 - .../common/core/aop/DictCacheSyncAspect.java | 64 - .../common/core/base/dao/BaseDaoMapper.java | 87 - .../core/base/mapper/BaseModelMapper.java | 124 - .../core/base/mapper/DummyModelMapper.java | 58 - .../core/base/service/BaseDictService.java | 266 - .../common/core/base/service/BaseService.java | 1816 ---- .../core/base/service/IBaseDictService.java | 82 - .../core/base/service/IBaseService.java | 374 - .../common/core/cache/DictionaryCache.java | 88 - .../common/core/cache/MapDictionaryCache.java | 358 - .../core/cache/MapTreeDictionaryCache.java | 292 - .../core/config/CommonWebMvcConfig.java | 67 - .../core/config/DataSourceContextHolder.java | 52 - .../common/core/config/DynamicDataSource.java | 17 - .../common/core/config/EncryptConfig.java | 20 - .../core/config/RestTemplateConfig.java | 64 - .../common/core/config/TomcatConfig.java | 39 - .../common/core/constant/AggregationType.java | 81 - .../common/core/constant/AppDeviceType.java | 59 - .../core/constant/ApplicationConstant.java | 85 - .../common/core/constant/ErrorCodeEnum.java | 84 - .../core/constant/GlobalDeletedFlag.java | 25 - .../exception/DataValidationException.java | 26 - .../exception/InvalidClassFieldException.java | 30 - .../exception/InvalidDataFieldException.java | 30 - .../exception/InvalidDataModelException.java | 27 - .../exception/InvalidRedisModeException.java | 27 - .../exception/MapCacheAccessException.java | 20 - .../core/exception/MyRuntimeException.java | 36 - .../core/exception/NoDataAffectException.java | 26 - .../core/exception/NoDataPermException.java | 26 - .../exception/RedisCacheAccessException.java | 20 - .../MyRequestArgumentResolver.java | 234 - .../listener/LoadServiceRelationListener.java | 28 - .../common/core/object/CallResult.java | 87 - .../common/core/object/DummyClass.java | 27 - .../common/core/object/GlobalThreadLocal.java | 52 - .../common/core/object/LoginUserInfo.java | 62 - .../common/core/object/MyGroupCriteria.java | 24 - .../common/core/object/MyGroupParam.java | 170 - .../common/core/object/MyOrderParam.java | 265 - .../common/core/object/MyPageData.java | 36 - .../common/core/object/MyPageParam.java | 58 - .../common/core/object/MyRelationParam.java | 91 - .../common/core/object/MyWhereCriteria.java | 361 - .../common/core/object/ResponseResult.java | 235 - .../common/core/object/TableModelInfo.java | 33 - .../common/core/object/TokenData.java | 107 - .../common/core/object/Tuple2.java | 50 - .../common/core/upload/BaseUpDownloader.java | 137 - .../common/core/upload/LocalUpDownloader.java | 149 - .../core/upload/UpDownloaderFactory.java | 49 - .../core/upload/UploadResponseInfo.java | 29 - .../common/core/upload/UploadStoreInfo.java | 22 - .../core/upload/UploadStoreTypeEnum.java | 19 - .../common/core/util/AopTargetUtil.java | 64 - .../core/util/ApplicationContextHolder.java | 90 - .../common/core/util/ContextUtil.java | 49 - .../common/core/util/DataSourceResolver.java | 19 - .../common/core/util/ExportUtil.java | 95 - .../orangeforms/common/core/util/IpUtil.java | 104 - .../orangeforms/common/core/util/JwtUtil.java | 110 - .../common/core/util/LogMessageUtil.java | 33 - .../common/core/util/MyCommonUtil.java | 262 - .../common/core/util/MyDateUtil.java | 181 - .../common/core/util/MyModelUtil.java | 758 -- .../common/core/util/MyPageUtil.java | 108 - .../common/core/util/RedisKeyUtil.java | 86 - .../orangeforms/common/core/util/RsaUtil.java | 115 - .../common/core/util/TreeNode.java | 93 - .../common/core/validator/AddGroup.java | 10 - .../common/core/validator/ConstDictRef.java | 48 - .../core/validator/ConstDictValidator.java | 33 - .../common/core/validator/TextLength.java | 55 - .../core/validator/TextLengthValidator.java | 39 - .../common/core/validator/UpdateGroup.java | 11 - .../common/common-datafilter/pom.xml | 29 - .../aop/DisableDataFilterAspect.java | 41 - .../config/DataFilterAutoConfig.java | 13 - .../config/DataFilterProperties.java | 44 - .../config/DataFilterWebMvcConfigurer.java | 21 - .../datafilter/constant/DataPermRuleType.java | 69 - .../interceptor/DataFilterInterceptor.java | 42 - .../MybatisDataFilterInterceptor.java | 471 - .../listener/LoadDataFilterInfoListener.java | 25 - .../main/resources/META-INF/spring.factories | 2 - .../common/common-flow-online/pom.xml | 53 - .../online/config/FlowOnlineAutoConfig.java | 13 - .../online/config/FlowOnlineProperties.java | 20 - .../FlowOnlineOperationController.java | 726 -- .../service/FlowOnlineOperationService.java | 116 - .../impl/FlowOnlineOperationServiceImpl.java | 247 - .../main/resources/META-INF/spring.factories | 2 - .../common/common-flow/pom.xml | 92 - .../flow/base/service/BaseFlowService.java | 62 - .../command/AddMultiInstanceExecutionCmd.java | 89 - .../common/flow/config/FlowAutoConfig.java | 13 - .../common/flow/config/FlowProperties.java | 20 - .../flow/constant/FlowApprovalType.java | 92 - .../common/flow/constant/FlowConstant.java | 120 - .../common/flow/constant/FlowTaskStatus.java | 64 - .../common/flow/constant/FlowTaskType.java | 44 - .../controller/FlowCategoryController.java | 199 - .../flow/controller/FlowEntryController.java | 592 -- .../FlowEntryVariableController.java | 147 - .../controller/FlowMessageController.java | 46 - .../controller/FlowOperationController.java | 562 -- .../flow/custom/CustomUserGroupManager.java | 30 - .../common/flow/dao/FlowCategoryMapper.java | 26 - .../common/flow/dao/FlowEntryMapper.java | 26 - .../flow/dao/FlowEntryPublishMapper.java | 13 - .../dao/FlowEntryPublishVariableMapper.java | 22 - .../flow/dao/FlowEntryVariableMapper.java | 27 - .../FlowMessageCandidateIdentityMapper.java | 13 - .../common/flow/dao/FlowMessageMapper.java | 27 - .../flow/dao/FlowTaskCommentMapper.java | 13 - .../common/flow/dao/FlowTaskExtMapper.java | 22 - .../common/flow/dao/FlowWorkOrderMapper.java | 28 - .../flow/dao/mapper/FlowCategoryMapper.xml | 21 - .../flow/dao/mapper/FlowEntryMapper.xml | 73 - .../dao/mapper/FlowEntryPublishMapper.xml | 16 - .../mapper/FlowEntryPublishVariableMapper.xml | 30 - .../dao/mapper/FlowEntryVariableMapper.xml | 41 - .../FlowMessageCandidateIdentityMapper.xml | 10 - .../flow/dao/mapper/FlowMessageMapper.xml | 47 - .../flow/dao/mapper/FlowTaskCommentMapper.xml | 17 - .../flow/dao/mapper/FlowTaskExtMapper.xml | 32 - .../flow/dao/mapper/FlowWorkOrderMapper.xml | 60 - .../common/flow/dto/FlowCategoryDto.java | 48 - .../common/flow/dto/FlowEntryDto.java | 90 - .../common/flow/dto/FlowEntryVariableDto.java | 82 - .../common/flow/dto/FlowMessageDto.java | 52 - .../common/flow/dto/FlowTaskCommentDto.java | 39 - .../common/flow/dto/FlowWorkOrderDto.java | 34 - .../exception/FlowOperationException.java | 35 - .../flow/listener/DeptPostLeaderListener.java | 27 - .../flow/listener/FlowFinishedListener.java | 41 - .../listener/UpDeptPostLeaderListener.java | 27 - .../common/flow/model/FlowCategory.java | 74 - .../common/flow/model/FlowEntry.java | 155 - .../common/flow/model/FlowEntryPublish.java | 77 - .../flow/model/FlowEntryPublishVariable.java | 69 - .../common/flow/model/FlowEntryVariable.java | 86 - .../common/flow/model/FlowMessage.java | 160 - .../model/FlowMessageCandidateIdentity.java | 41 - .../common/flow/model/FlowTaskComment.java | 106 - .../common/flow/model/FlowTaskExt.java | 75 - .../common/flow/model/FlowWorkOrder.java | 148 - .../flow/model/constant/FlowBindFormType.java | 44 - .../flow/model/constant/FlowEntryStatus.java | 44 - .../flow/model/constant/FlowMessageType.java | 39 - .../flow/model/constant/FlowVariableType.java | 44 - .../flow/object/FlowTaskMultiSignAssign.java | 28 - .../common/flow/object/FlowTaskOperation.java | 34 - .../object/FlowTaskPostCandidateGroup.java | 61 - .../common/flow/service/FlowApiService.java | 403 - .../flow/service/FlowCategoryService.java | 61 - .../common/flow/service/FlowEntryService.java | 136 - .../service/FlowEntryVariableService.java | 68 - .../flow/service/FlowMessageService.java | 52 - .../flow/service/FlowTaskCommentService.java | 47 - .../flow/service/FlowTaskExtService.java | 38 - .../flow/service/FlowWorkOrderService.java | 86 - .../flow/service/impl/FlowApiServiceImpl.java | 791 -- .../service/impl/FlowCategoryServiceImpl.java | 129 - .../service/impl/FlowEntryServiceImpl.java | 431 - .../impl/FlowEntryVariableServiceImpl.java | 131 - .../service/impl/FlowMessageServiceImpl.java | 247 - .../impl/FlowTaskCommentServiceImpl.java | 94 - .../service/impl/FlowTaskExtServiceImpl.java | 62 - .../impl/FlowWorkOrderServiceImpl.java | 147 - .../flow/util/BaseDataSyncExtHelper.java | 59 - .../flow/util/BaseFlowIdentityExtHelper.java | 162 - .../flow/util/FlowCustomExtFactory.java | 44 - .../common/flow/util/FlowOperationHelper.java | 349 - .../common/flow/vo/FlowCategoryVo.java | 66 - .../common/flow/vo/FlowEntryPublishVo.java | 60 - .../common/flow/vo/FlowEntryVariableVo.java | 78 - .../common/flow/vo/FlowEntryVo.java | 134 - .../common/flow/vo/FlowMessageVo.java | 138 - .../common/flow/vo/FlowTaskCommentVo.java | 84 - .../common/flow/vo/FlowTaskVo.java | 96 - .../common/flow/vo/FlowWorkOrderVo.java | 129 - .../common/flow/vo/TaskInfoVo.java | 80 - .../main/resources/META-INF/spring.factories | 2 - .../common/common-log/pom.xml | 43 - .../common/log/annotation/OperationLog.java | 33 - .../common/log/aop/OperationLogAspect.java | 260 - .../log/config/CommonLogAutoConfig.java | 13 - .../log/config/OperationLogProperties.java | 24 - .../common/log/dao/SysOperationLogMapper.java | 34 - .../log/dao/mapper/SysOperationLogMapper.xml | 99 - .../common/log/model/SysOperationLog.java | 170 - .../model/constant/SysOperationLogType.java | 154 - .../log/service/SysOperationLogService.java | 45 - .../impl/SysOperationLogServiceImpl.java | 84 - .../main/resources/META-INF/spring.factories | 2 - .../common/common-online-api/pom.xml | 48 - .../api/config/OnlineApiAutoConfig.java | 13 - .../api/config/OnlineApiProperties.java | 32 - .../controller/OnlineColumnController.java | 402 - .../OnlineDatasourceController.java | 209 - .../OnlineDatasourceRelationController.java | 232 - .../controller/OnlineDblinkController.java | 94 - .../api/controller/OnlineDictController.java | 160 - .../api/controller/OnlineFormController.java | 261 - .../api/controller/OnlinePageController.java | 347 - .../api/controller/OnlineRuleController.java | 148 - .../api/controller/OnlineTableController.java | 120 - .../OnlineVirtualColumnController.java | 184 - .../main/resources/META-INF/spring.factories | 2 - .../common/common-online/pom.xml | 68 - .../online/config/OnlineAutoConfig.java | 13 - .../online/config/OnlineProperties.java | 30 - .../controller/OnlineOperationController.java | 788 -- .../common/online/dao/OnlineColumnMapper.java | 26 - .../online/dao/OnlineColumnRuleMapper.java | 25 - .../online/dao/OnlineDatasourceMapper.java | 61 - .../dao/OnlineDatasourceRelationMapper.java | 26 - .../dao/OnlineDatasourceTableMapper.java | 13 - .../common/online/dao/OnlineDblinkMapper.java | 113 - .../common/online/dao/OnlineDictMapper.java | 26 - .../dao/OnlineFormDatasourceMapper.java | 13 - .../common/online/dao/OnlineFormMapper.java | 26 - .../online/dao/OnlineOperationMapper.java | 228 - .../dao/OnlinePageDatasourceMapper.java | 13 - .../common/online/dao/OnlinePageMapper.java | 35 - .../common/online/dao/OnlineRuleMapper.java | 52 - .../common/online/dao/OnlineTableMapper.java | 34 - .../online/dao/OnlineVirtualColumnMapper.java | 26 - .../online/dao/mapper/OnlineColumnMapper.xml | 56 - .../dao/mapper/OnlineColumnRuleMapper.xml | 30 - .../dao/mapper/OnlineDatasourceMapper.xml | 89 - .../mapper/OnlineDatasourceRelationMapper.xml | 47 - .../mapper/OnlineDatasourceTableMapper.xml | 10 - .../online/dao/mapper/OnlineDblinkMapper.xml | 34 - .../online/dao/mapper/OnlineDictMapper.xml | 52 - .../dao/mapper/OnlineFormDatasourceMapper.xml | 9 - .../online/dao/mapper/OnlineFormMapper.xml | 51 - .../dao/mapper/OnlinePageDatasourceMapper.xml | 9 - .../online/dao/mapper/OnlinePageMapper.xml | 50 - .../online/dao/mapper/OnlineRuleMapper.xml | 66 - .../online/dao/mapper/OnlineTableMapper.xml | 48 - .../dao/mapper/OnlineVirtualColumnMapper.xml | 56 - .../common/online/dto/OnlineColumnDto.java | 160 - .../online/dto/OnlineColumnRuleDto.java | 39 - .../online/dto/OnlineDatasourceDto.java | 63 - .../dto/OnlineDatasourceRelationDto.java | 108 - .../common/online/dto/OnlineDblinkDto.java | 54 - .../common/online/dto/OnlineDictDto.java | 123 - .../common/online/dto/OnlineFilterDto.java | 61 - .../common/online/dto/OnlineFormDto.java | 92 - .../online/dto/OnlinePageDatasourceDto.java | 40 - .../common/online/dto/OnlinePageDto.java | 59 - .../common/online/dto/OnlineRuleDto.java | 57 - .../common/online/dto/OnlineTableDto.java | 48 - .../online/dto/OnlineVirtualColumnDto.java | 103 - .../common/online/model/OnlineColumn.java | 196 - .../common/online/model/OnlineColumnRule.java | 36 - .../common/online/model/OnlineDatasource.java | 107 - .../model/OnlineDatasourceRelation.java | 187 - .../online/model/OnlineDatasourceTable.java | 39 - .../common/online/model/OnlineDblink.java | 62 - .../common/online/model/OnlineDict.java | 169 - .../common/online/model/OnlineForm.java | 138 - .../online/model/OnlineFormDatasource.java | 33 - .../common/online/model/OnlinePage.java | 106 - .../online/model/OnlinePageDatasource.java | 33 - .../common/online/model/OnlineRule.java | 109 - .../common/online/model/OnlineTable.java | 107 - .../online/model/OnlineVirtualColumn.java | 96 - .../online/model/constant/DictType.java | 54 - .../model/constant/FieldFilterType.java | 59 - .../online/model/constant/FieldKind.java | 74 - .../online/model/constant/FormKind.java | 44 - .../online/model/constant/FormType.java | 54 - .../online/model/constant/PageStatus.java | 49 - .../online/model/constant/PageType.java | 49 - .../online/model/constant/RelationType.java | 44 - .../online/model/constant/RuleType.java | 69 - .../online/model/constant/VirtualType.java | 39 - .../common/online/object/ColumnData.java | 28 - .../common/online/object/JoinTableInfo.java | 28 - .../common/online/object/SqlTable.java | 41 - .../common/online/object/SqlTableColumn.java | 73 - .../online/service/OnlineColumnService.java | 141 - .../OnlineDatasourceRelationService.java | 88 - .../service/OnlineDatasourceService.java | 110 - .../online/service/OnlineDblinkService.java | 74 - .../online/service/OnlineDictService.java | 71 - .../online/service/OnlineFormService.java | 106 - .../service/OnlineOperationService.java | 142 - .../online/service/OnlinePageService.java | 112 - .../online/service/OnlineRuleService.java | 91 - .../online/service/OnlineTableService.java | 95 - .../service/OnlineVirtualColumnService.java | 69 - .../service/impl/OnlineColumnServiceImpl.java | 366 - .../OnlineDatasourceRelationServiceImpl.java | 255 - .../impl/OnlineDatasourceServiceImpl.java | 238 - .../service/impl/OnlineDblinkServiceImpl.java | 205 - .../service/impl/OnlineDictServiceImpl.java | 157 - .../service/impl/OnlineFormServiceImpl.java | 262 - .../impl/OnlineOperationServiceImpl.java | 973 -- .../service/impl/OnlinePageServiceImpl.java | 233 - .../service/impl/OnlineRuleServiceImpl.java | 181 - .../service/impl/OnlineTableServiceImpl.java | 236 - .../impl/OnlineVirtualColumnServiceImpl.java | 175 - .../common/online/util/OnlineConstant.java | 15 - .../online/util/OnlineDataSourceResolver.java | 50 - .../online/util/OnlineOperationHelper.java | 389 - .../common/online/util/OnlineUtil.java | 30 - .../common/online/vo/OnlineColumnRuleVo.java | 34 - .../common/online/vo/OnlineColumnVo.java | 163 - .../online/vo/OnlineDatasourceRelationVo.java | 133 - .../common/online/vo/OnlineDatasourceVo.java | 80 - .../common/online/vo/OnlineDblinkVo.java | 54 - .../common/online/vo/OnlineDictVo.java | 139 - .../common/online/vo/OnlineFormVo.java | 110 - .../online/vo/OnlinePageDatasourceVo.java | 34 - .../common/online/vo/OnlinePageVo.java | 79 - .../common/online/vo/OnlineRuleVo.java | 73 - .../common/online/vo/OnlineTableVo.java | 54 - .../online/vo/OnlineVirtualColumnVo.java | 88 - .../main/resources/META-INF/spring.factories | 2 - .../common/common-redis/pom.xml | 29 - .../redis/cache/RedisDictionaryCache.java | 412 - .../redis/cache/RedisTreeDictionaryCache.java | 354 - .../redis/cache/RedissonCacheConfig.java | 67 - .../redis/cache/SessionCacheHelper.java | 97 - .../common/redis/config/RedissonConfig.java | 105 - .../main/resources/META-INF/spring.factories | 2 - .../common/common-sequence/pom.xml | 24 - .../config/IdGeneratorAutoConfig.java | 14 - .../config/IdGeneratorProperties.java | 20 - .../sequence/generator/BasicIdGenerator.java | 48 - .../sequence/generator/MyIdGenerator.java | 24 - .../sequence/wrapper/IdGeneratorWrapper.java | 52 - .../main/resources/META-INF/spring.factories | 2 - .../common/common-swagger/pom.xml | 39 - .../config/SwaggerAutoConfiguration.java | 67 - .../swagger/config/SwaggerProperties.java | 45 - .../common/swagger/plugin/ByteBuddyUtil.java | 85 - .../plugin/DynamicBodyModelPlugin.java | 61 - .../plugin/DynamicBodyParameterBuilder.java | 64 - .../main/resources/META-INF/spring.factories | 2 - .../common/pom.xml | 26 - .../framework/apidoc-tools/pom.xml | 29 - .../apidoc/tools/ExportApiApp.java | 28 - .../apidoc/tools/ExportDocApp.java | 28 - .../tools/codeparser/ApiCodeConfig.java | 83 - .../tools/codeparser/ApiCodeParser.java | 672 -- .../ApiCodeConfigParseException.java | 27 - .../tools/exception/MapperParseException.java | 27 - .../apidoc/tools/export/ApiDocExporter.java | 84 - .../tools/export/ApiPostmanExporter.java | 53 - .../apidoc/tools/util/FreeMarkerUtils.java | 28 - .../src/main/resources/export-api-config.json | 24 - .../main/resources/templates/api-doc.md.ftl | 144 - .../templates/postman_collection.json.ftl | 42 - .../resources/templates/postman_common.ftl | 120 - .../framework/pom.xml | 17 - images/orange-demo-activiti-service/pom.xml | 265 - .../zz-resource/db-scripts/zzdemo-online.sql | 8155 ----------------- .../docker-files/docker-compose.yml | 16 - .../docker-files/services/redis/Dockerfile | 13 - .../docker-files/services/redis/redis.conf | 1307 --- 527 files changed, 60941 deletions(-) delete mode 100644 images/orange-demo-activiti-service/.gitignore delete mode 100644 images/orange-demo-activiti-service/README.md delete mode 100644 images/orange-demo-activiti-service/application-webadmin/pom.xml delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/WebAdminApplication.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/app/controller/AreaCodeController.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/app/dao/AreaCodeMapper.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/app/dao/mapper/AreaCodeMapper.xml delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/app/model/AreaCode.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/app/service/AreaCodeService.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/app/service/impl/AreaCodeServiceImpl.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/app/util/FlowIdentityExtHelper.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/app/vo/AreaCodeVo.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/config/ApplicationConfig.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/config/DataSourceType.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/config/FilterConfig.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/config/InterceptorConfig.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/config/MultiDataSourceConfig.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/interceptor/AuthenticationInterceptor.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/controller/LoginController.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/controller/LoginUserController.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/controller/SysDataPermController.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/controller/SysDeptController.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/controller/SysMenuController.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/controller/SysPermCodeController.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/controller/SysPermController.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/controller/SysPermModuleController.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/controller/SysPostController.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/controller/SysRoleController.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/controller/SysUserController.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/SysDataPermDeptMapper.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/SysDataPermMapper.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/SysDataPermUserMapper.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/SysDeptMapper.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/SysDeptPostMapper.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/SysDeptRelationMapper.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/SysMenuMapper.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/SysMenuPermCodeMapper.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/SysPermCodeMapper.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/SysPermCodePermMapper.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/SysPermMapper.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/SysPermModuleMapper.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/SysPermWhitelistMapper.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/SysPostMapper.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/SysRoleMapper.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/SysRoleMenuMapper.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/SysUserMapper.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/SysUserPostMapper.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/SysUserRoleMapper.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/mapper/SysDataPermDeptMapper.xml delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/mapper/SysDataPermMapper.xml delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/mapper/SysDataPermUserMapper.xml delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/mapper/SysDeptMapper.xml delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/mapper/SysDeptPostMapper.xml delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/mapper/SysDeptRelationMapper.xml delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/mapper/SysMenuMapper.xml delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/mapper/SysMenuPermCodeMapper.xml delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/mapper/SysPermCodeMapper.xml delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/mapper/SysPermCodePermMapper.xml delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/mapper/SysPermMapper.xml delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/mapper/SysPermModuleMapper.xml delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/mapper/SysPermWhitelistMapper.xml delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/mapper/SysPostMapper.xml delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/mapper/SysRoleMapper.xml delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/mapper/SysRoleMenuMapper.xml delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/mapper/SysUserMapper.xml delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/mapper/SysUserPostMapper.xml delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/mapper/SysUserRoleMapper.xml delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dto/SysDataPermDeptDto.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dto/SysDataPermDto.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dto/SysDeptDto.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dto/SysDeptPostDto.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dto/SysMenuDto.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dto/SysPermCodeDto.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dto/SysPermDto.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dto/SysPermModuleDto.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dto/SysPostDto.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dto/SysRoleDto.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dto/SysUserDto.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/SysDataPerm.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/SysDataPermDept.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/SysDataPermUser.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/SysDept.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/SysDeptPost.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/SysDeptRelation.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/SysMenu.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/SysMenuPermCode.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/SysPerm.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/SysPermCode.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/SysPermCodePerm.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/SysPermModule.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/SysPermWhitelist.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/SysPost.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/SysRole.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/SysRoleMenu.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/SysUser.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/SysUserPost.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/SysUserRole.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/constant/SysMenuType.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/constant/SysOnlineMenuPermType.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/constant/SysPermCodeType.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/constant/SysPermModuleType.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/constant/SysUserStatus.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/constant/SysUserType.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/service/SysDataPermService.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/service/SysDeptService.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/service/SysMenuService.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/service/SysPermCodeService.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/service/SysPermModuleService.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/service/SysPermService.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/service/SysPermWhitelistService.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/service/SysPostService.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/service/SysRoleService.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/service/SysUserService.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/service/impl/SysDataPermServiceImpl.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/service/impl/SysDeptServiceImpl.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/service/impl/SysMenuServiceImpl.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/service/impl/SysPermCodeServiceImpl.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/service/impl/SysPermModuleServiceImpl.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/service/impl/SysPermServiceImpl.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/service/impl/SysPermWhitelistServiceImpl.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/service/impl/SysPostServiceImpl.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/service/impl/SysRoleServiceImpl.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/service/impl/SysUserServiceImpl.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/vo/SysDataPermDeptVo.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/vo/SysDataPermVo.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/vo/SysDeptPostVo.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/vo/SysDeptVo.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/vo/SysMenuVo.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/vo/SysPermCodeVo.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/vo/SysPermModuleVo.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/vo/SysPermVo.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/vo/SysPostVo.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/vo/SysRoleVo.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/vo/SysUserVo.java delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/resources/application.yml delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/resources/log4j2.xml delete mode 100644 images/orange-demo-activiti-service/application-webadmin/src/main/resources/template/views/print_error.ftl delete mode 100644 images/orange-demo-activiti-service/common/common-core/pom.xml delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/advice/MyControllerAdvice.java delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/advice/MyExceptionHandler.java delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/annotation/DeptFilterColumn.java delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/annotation/DisableDataFilter.java delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/annotation/DisableTenantFilter.java delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/annotation/EnableDataPerm.java delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/annotation/JobUpdateTimeColumn.java delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/annotation/MyDataSource.java delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/annotation/MyDataSourceResolver.java delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/annotation/MyRequestBody.java delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/annotation/NoAuthInterface.java delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/annotation/RelationConstDict.java delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/annotation/RelationDict.java delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/annotation/RelationManyToMany.java delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/annotation/RelationManyToManyAggregation.java delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/annotation/RelationOneToMany.java delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/annotation/RelationOneToManyAggregation.java delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/annotation/RelationOneToOne.java delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/annotation/TenantFilterColumn.java delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/annotation/UploadFlagColumn.java delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/annotation/UserFilterColumn.java delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/aop/DataSourceAspect.java delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/aop/DataSourceResolveAspect.java delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/aop/DictCacheSyncAspect.java delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/base/dao/BaseDaoMapper.java delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/base/mapper/BaseModelMapper.java delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/base/mapper/DummyModelMapper.java delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/base/service/BaseDictService.java delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/base/service/BaseService.java delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/base/service/IBaseDictService.java delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/base/service/IBaseService.java delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/cache/DictionaryCache.java delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/cache/MapDictionaryCache.java delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/cache/MapTreeDictionaryCache.java delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/config/CommonWebMvcConfig.java delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/config/DataSourceContextHolder.java delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/config/DynamicDataSource.java delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/config/EncryptConfig.java delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/config/RestTemplateConfig.java delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/config/TomcatConfig.java delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/constant/AggregationType.java delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/constant/AppDeviceType.java delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/constant/ApplicationConstant.java delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/constant/ErrorCodeEnum.java delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/constant/GlobalDeletedFlag.java delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/exception/DataValidationException.java delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/exception/InvalidClassFieldException.java delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/exception/InvalidDataFieldException.java delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/exception/InvalidDataModelException.java delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/exception/InvalidRedisModeException.java delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/exception/MapCacheAccessException.java delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/exception/MyRuntimeException.java delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/exception/NoDataAffectException.java delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/exception/NoDataPermException.java delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/exception/RedisCacheAccessException.java delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/interceptor/MyRequestArgumentResolver.java delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/listener/LoadServiceRelationListener.java delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/object/CallResult.java delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/object/DummyClass.java delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/object/GlobalThreadLocal.java delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/object/LoginUserInfo.java delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/object/MyGroupCriteria.java delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/object/MyGroupParam.java delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/object/MyOrderParam.java delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/object/MyPageData.java delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/object/MyPageParam.java delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/object/MyRelationParam.java delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/object/MyWhereCriteria.java delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/object/ResponseResult.java delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/object/TableModelInfo.java delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/object/TokenData.java delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/object/Tuple2.java delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/upload/BaseUpDownloader.java delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/upload/LocalUpDownloader.java delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/upload/UpDownloaderFactory.java delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/upload/UploadResponseInfo.java delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/upload/UploadStoreInfo.java delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/upload/UploadStoreTypeEnum.java delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/util/AopTargetUtil.java delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/util/ApplicationContextHolder.java delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/util/ContextUtil.java delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/util/DataSourceResolver.java delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/util/ExportUtil.java delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/util/IpUtil.java delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/util/JwtUtil.java delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/util/LogMessageUtil.java delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/util/MyCommonUtil.java delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/util/MyDateUtil.java delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/util/MyModelUtil.java delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/util/MyPageUtil.java delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/util/RedisKeyUtil.java delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/util/RsaUtil.java delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/util/TreeNode.java delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/validator/AddGroup.java delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/validator/ConstDictRef.java delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/validator/ConstDictValidator.java delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/validator/TextLength.java delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/validator/TextLengthValidator.java delete mode 100644 images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/validator/UpdateGroup.java delete mode 100644 images/orange-demo-activiti-service/common/common-datafilter/pom.xml delete mode 100644 images/orange-demo-activiti-service/common/common-datafilter/src/main/java/com/orangeforms/common/datafilter/aop/DisableDataFilterAspect.java delete mode 100644 images/orange-demo-activiti-service/common/common-datafilter/src/main/java/com/orangeforms/common/datafilter/config/DataFilterAutoConfig.java delete mode 100644 images/orange-demo-activiti-service/common/common-datafilter/src/main/java/com/orangeforms/common/datafilter/config/DataFilterProperties.java delete mode 100644 images/orange-demo-activiti-service/common/common-datafilter/src/main/java/com/orangeforms/common/datafilter/config/DataFilterWebMvcConfigurer.java delete mode 100644 images/orange-demo-activiti-service/common/common-datafilter/src/main/java/com/orangeforms/common/datafilter/constant/DataPermRuleType.java delete mode 100644 images/orange-demo-activiti-service/common/common-datafilter/src/main/java/com/orangeforms/common/datafilter/interceptor/DataFilterInterceptor.java delete mode 100644 images/orange-demo-activiti-service/common/common-datafilter/src/main/java/com/orangeforms/common/datafilter/interceptor/MybatisDataFilterInterceptor.java delete mode 100644 images/orange-demo-activiti-service/common/common-datafilter/src/main/java/com/orangeforms/common/datafilter/listener/LoadDataFilterInfoListener.java delete mode 100644 images/orange-demo-activiti-service/common/common-datafilter/src/main/resources/META-INF/spring.factories delete mode 100644 images/orange-demo-activiti-service/common/common-flow-online/pom.xml delete mode 100644 images/orange-demo-activiti-service/common/common-flow-online/src/main/java/com/orangeforms/common/flow/online/config/FlowOnlineAutoConfig.java delete mode 100644 images/orange-demo-activiti-service/common/common-flow-online/src/main/java/com/orangeforms/common/flow/online/config/FlowOnlineProperties.java delete mode 100644 images/orange-demo-activiti-service/common/common-flow-online/src/main/java/com/orangeforms/common/flow/online/controller/FlowOnlineOperationController.java delete mode 100644 images/orange-demo-activiti-service/common/common-flow-online/src/main/java/com/orangeforms/common/flow/online/service/FlowOnlineOperationService.java delete mode 100644 images/orange-demo-activiti-service/common/common-flow-online/src/main/java/com/orangeforms/common/flow/online/service/impl/FlowOnlineOperationServiceImpl.java delete mode 100644 images/orange-demo-activiti-service/common/common-flow-online/src/main/resources/META-INF/spring.factories delete mode 100644 images/orange-demo-activiti-service/common/common-flow/pom.xml delete mode 100644 images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/base/service/BaseFlowService.java delete mode 100644 images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/command/AddMultiInstanceExecutionCmd.java delete mode 100644 images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/config/FlowAutoConfig.java delete mode 100644 images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/config/FlowProperties.java delete mode 100644 images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/constant/FlowApprovalType.java delete mode 100644 images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/constant/FlowConstant.java delete mode 100644 images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/constant/FlowTaskStatus.java delete mode 100644 images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/constant/FlowTaskType.java delete mode 100644 images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/controller/FlowCategoryController.java delete mode 100644 images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/controller/FlowEntryController.java delete mode 100644 images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/controller/FlowEntryVariableController.java delete mode 100644 images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/controller/FlowMessageController.java delete mode 100644 images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/controller/FlowOperationController.java delete mode 100644 images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/custom/CustomUserGroupManager.java delete mode 100644 images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dao/FlowCategoryMapper.java delete mode 100644 images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dao/FlowEntryMapper.java delete mode 100644 images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dao/FlowEntryPublishMapper.java delete mode 100644 images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dao/FlowEntryPublishVariableMapper.java delete mode 100644 images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dao/FlowEntryVariableMapper.java delete mode 100644 images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dao/FlowMessageCandidateIdentityMapper.java delete mode 100644 images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dao/FlowMessageMapper.java delete mode 100644 images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dao/FlowTaskCommentMapper.java delete mode 100644 images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dao/FlowTaskExtMapper.java delete mode 100644 images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dao/FlowWorkOrderMapper.java delete mode 100644 images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dao/mapper/FlowCategoryMapper.xml delete mode 100644 images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dao/mapper/FlowEntryMapper.xml delete mode 100644 images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dao/mapper/FlowEntryPublishMapper.xml delete mode 100644 images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dao/mapper/FlowEntryPublishVariableMapper.xml delete mode 100644 images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dao/mapper/FlowEntryVariableMapper.xml delete mode 100644 images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dao/mapper/FlowMessageCandidateIdentityMapper.xml delete mode 100644 images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dao/mapper/FlowMessageMapper.xml delete mode 100644 images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dao/mapper/FlowTaskCommentMapper.xml delete mode 100644 images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dao/mapper/FlowTaskExtMapper.xml delete mode 100644 images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dao/mapper/FlowWorkOrderMapper.xml delete mode 100644 images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dto/FlowCategoryDto.java delete mode 100644 images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dto/FlowEntryDto.java delete mode 100644 images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dto/FlowEntryVariableDto.java delete mode 100644 images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dto/FlowMessageDto.java delete mode 100644 images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dto/FlowTaskCommentDto.java delete mode 100644 images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dto/FlowWorkOrderDto.java delete mode 100644 images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/exception/FlowOperationException.java delete mode 100644 images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/listener/DeptPostLeaderListener.java delete mode 100644 images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/listener/FlowFinishedListener.java delete mode 100644 images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/listener/UpDeptPostLeaderListener.java delete mode 100644 images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/model/FlowCategory.java delete mode 100644 images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/model/FlowEntry.java delete mode 100644 images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/model/FlowEntryPublish.java delete mode 100644 images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/model/FlowEntryPublishVariable.java delete mode 100644 images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/model/FlowEntryVariable.java delete mode 100644 images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/model/FlowMessage.java delete mode 100644 images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/model/FlowMessageCandidateIdentity.java delete mode 100644 images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/model/FlowTaskComment.java delete mode 100644 images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/model/FlowTaskExt.java delete mode 100644 images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/model/FlowWorkOrder.java delete mode 100644 images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/model/constant/FlowBindFormType.java delete mode 100644 images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/model/constant/FlowEntryStatus.java delete mode 100644 images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/model/constant/FlowMessageType.java delete mode 100644 images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/model/constant/FlowVariableType.java delete mode 100644 images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/object/FlowTaskMultiSignAssign.java delete mode 100644 images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/object/FlowTaskOperation.java delete mode 100644 images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/object/FlowTaskPostCandidateGroup.java delete mode 100644 images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/service/FlowApiService.java delete mode 100644 images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/service/FlowCategoryService.java delete mode 100644 images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/service/FlowEntryService.java delete mode 100644 images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/service/FlowEntryVariableService.java delete mode 100644 images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/service/FlowMessageService.java delete mode 100644 images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/service/FlowTaskCommentService.java delete mode 100644 images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/service/FlowTaskExtService.java delete mode 100644 images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/service/FlowWorkOrderService.java delete mode 100644 images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/service/impl/FlowApiServiceImpl.java delete mode 100644 images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/service/impl/FlowCategoryServiceImpl.java delete mode 100644 images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/service/impl/FlowEntryServiceImpl.java delete mode 100644 images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/service/impl/FlowEntryVariableServiceImpl.java delete mode 100644 images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/service/impl/FlowMessageServiceImpl.java delete mode 100644 images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/service/impl/FlowTaskCommentServiceImpl.java delete mode 100644 images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/service/impl/FlowTaskExtServiceImpl.java delete mode 100644 images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/service/impl/FlowWorkOrderServiceImpl.java delete mode 100644 images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/util/BaseDataSyncExtHelper.java delete mode 100644 images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/util/BaseFlowIdentityExtHelper.java delete mode 100644 images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/util/FlowCustomExtFactory.java delete mode 100644 images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/util/FlowOperationHelper.java delete mode 100644 images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/vo/FlowCategoryVo.java delete mode 100644 images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/vo/FlowEntryPublishVo.java delete mode 100644 images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/vo/FlowEntryVariableVo.java delete mode 100644 images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/vo/FlowEntryVo.java delete mode 100644 images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/vo/FlowMessageVo.java delete mode 100644 images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/vo/FlowTaskCommentVo.java delete mode 100644 images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/vo/FlowTaskVo.java delete mode 100644 images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/vo/FlowWorkOrderVo.java delete mode 100644 images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/vo/TaskInfoVo.java delete mode 100644 images/orange-demo-activiti-service/common/common-flow/src/main/resources/META-INF/spring.factories delete mode 100644 images/orange-demo-activiti-service/common/common-log/pom.xml delete mode 100644 images/orange-demo-activiti-service/common/common-log/src/main/java/com/orangeforms/common/log/annotation/OperationLog.java delete mode 100644 images/orange-demo-activiti-service/common/common-log/src/main/java/com/orangeforms/common/log/aop/OperationLogAspect.java delete mode 100644 images/orange-demo-activiti-service/common/common-log/src/main/java/com/orangeforms/common/log/config/CommonLogAutoConfig.java delete mode 100644 images/orange-demo-activiti-service/common/common-log/src/main/java/com/orangeforms/common/log/config/OperationLogProperties.java delete mode 100644 images/orange-demo-activiti-service/common/common-log/src/main/java/com/orangeforms/common/log/dao/SysOperationLogMapper.java delete mode 100644 images/orange-demo-activiti-service/common/common-log/src/main/java/com/orangeforms/common/log/dao/mapper/SysOperationLogMapper.xml delete mode 100644 images/orange-demo-activiti-service/common/common-log/src/main/java/com/orangeforms/common/log/model/SysOperationLog.java delete mode 100644 images/orange-demo-activiti-service/common/common-log/src/main/java/com/orangeforms/common/log/model/constant/SysOperationLogType.java delete mode 100644 images/orange-demo-activiti-service/common/common-log/src/main/java/com/orangeforms/common/log/service/SysOperationLogService.java delete mode 100644 images/orange-demo-activiti-service/common/common-log/src/main/java/com/orangeforms/common/log/service/impl/SysOperationLogServiceImpl.java delete mode 100644 images/orange-demo-activiti-service/common/common-log/src/main/resources/META-INF/spring.factories delete mode 100644 images/orange-demo-activiti-service/common/common-online-api/pom.xml delete mode 100644 images/orange-demo-activiti-service/common/common-online-api/src/main/java/com/orangeforms/common/online/api/config/OnlineApiAutoConfig.java delete mode 100644 images/orange-demo-activiti-service/common/common-online-api/src/main/java/com/orangeforms/common/online/api/config/OnlineApiProperties.java delete mode 100644 images/orange-demo-activiti-service/common/common-online-api/src/main/java/com/orangeforms/common/online/api/controller/OnlineColumnController.java delete mode 100644 images/orange-demo-activiti-service/common/common-online-api/src/main/java/com/orangeforms/common/online/api/controller/OnlineDatasourceController.java delete mode 100644 images/orange-demo-activiti-service/common/common-online-api/src/main/java/com/orangeforms/common/online/api/controller/OnlineDatasourceRelationController.java delete mode 100644 images/orange-demo-activiti-service/common/common-online-api/src/main/java/com/orangeforms/common/online/api/controller/OnlineDblinkController.java delete mode 100644 images/orange-demo-activiti-service/common/common-online-api/src/main/java/com/orangeforms/common/online/api/controller/OnlineDictController.java delete mode 100644 images/orange-demo-activiti-service/common/common-online-api/src/main/java/com/orangeforms/common/online/api/controller/OnlineFormController.java delete mode 100644 images/orange-demo-activiti-service/common/common-online-api/src/main/java/com/orangeforms/common/online/api/controller/OnlinePageController.java delete mode 100644 images/orange-demo-activiti-service/common/common-online-api/src/main/java/com/orangeforms/common/online/api/controller/OnlineRuleController.java delete mode 100644 images/orange-demo-activiti-service/common/common-online-api/src/main/java/com/orangeforms/common/online/api/controller/OnlineTableController.java delete mode 100644 images/orange-demo-activiti-service/common/common-online-api/src/main/java/com/orangeforms/common/online/api/controller/OnlineVirtualColumnController.java delete mode 100644 images/orange-demo-activiti-service/common/common-online-api/src/main/resources/META-INF/spring.factories delete mode 100644 images/orange-demo-activiti-service/common/common-online/pom.xml delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/config/OnlineAutoConfig.java delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/config/OnlineProperties.java delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/controller/OnlineOperationController.java delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/OnlineColumnMapper.java delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/OnlineColumnRuleMapper.java delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/OnlineDatasourceMapper.java delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/OnlineDatasourceRelationMapper.java delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/OnlineDatasourceTableMapper.java delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/OnlineDblinkMapper.java delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/OnlineDictMapper.java delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/OnlineFormDatasourceMapper.java delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/OnlineFormMapper.java delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/OnlineOperationMapper.java delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/OnlinePageDatasourceMapper.java delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/OnlinePageMapper.java delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/OnlineRuleMapper.java delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/OnlineTableMapper.java delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/OnlineVirtualColumnMapper.java delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/mapper/OnlineColumnMapper.xml delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/mapper/OnlineColumnRuleMapper.xml delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/mapper/OnlineDatasourceMapper.xml delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/mapper/OnlineDatasourceRelationMapper.xml delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/mapper/OnlineDatasourceTableMapper.xml delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/mapper/OnlineDblinkMapper.xml delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/mapper/OnlineDictMapper.xml delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/mapper/OnlineFormDatasourceMapper.xml delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/mapper/OnlineFormMapper.xml delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/mapper/OnlinePageDatasourceMapper.xml delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/mapper/OnlinePageMapper.xml delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/mapper/OnlineRuleMapper.xml delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/mapper/OnlineTableMapper.xml delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/mapper/OnlineVirtualColumnMapper.xml delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dto/OnlineColumnDto.java delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dto/OnlineColumnRuleDto.java delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dto/OnlineDatasourceDto.java delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dto/OnlineDatasourceRelationDto.java delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dto/OnlineDblinkDto.java delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dto/OnlineDictDto.java delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dto/OnlineFilterDto.java delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dto/OnlineFormDto.java delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dto/OnlinePageDatasourceDto.java delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dto/OnlinePageDto.java delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dto/OnlineRuleDto.java delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dto/OnlineTableDto.java delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dto/OnlineVirtualColumnDto.java delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/model/OnlineColumn.java delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/model/OnlineColumnRule.java delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/model/OnlineDatasource.java delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/model/OnlineDatasourceRelation.java delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/model/OnlineDatasourceTable.java delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/model/OnlineDblink.java delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/model/OnlineDict.java delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/model/OnlineForm.java delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/model/OnlineFormDatasource.java delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/model/OnlinePage.java delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/model/OnlinePageDatasource.java delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/model/OnlineRule.java delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/model/OnlineTable.java delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/model/OnlineVirtualColumn.java delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/model/constant/DictType.java delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/model/constant/FieldFilterType.java delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/model/constant/FieldKind.java delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/model/constant/FormKind.java delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/model/constant/FormType.java delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/model/constant/PageStatus.java delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/model/constant/PageType.java delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/model/constant/RelationType.java delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/model/constant/RuleType.java delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/model/constant/VirtualType.java delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/object/ColumnData.java delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/object/JoinTableInfo.java delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/object/SqlTable.java delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/object/SqlTableColumn.java delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/service/OnlineColumnService.java delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/service/OnlineDatasourceRelationService.java delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/service/OnlineDatasourceService.java delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/service/OnlineDblinkService.java delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/service/OnlineDictService.java delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/service/OnlineFormService.java delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/service/OnlineOperationService.java delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/service/OnlinePageService.java delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/service/OnlineRuleService.java delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/service/OnlineTableService.java delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/service/OnlineVirtualColumnService.java delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/service/impl/OnlineColumnServiceImpl.java delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/service/impl/OnlineDatasourceRelationServiceImpl.java delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/service/impl/OnlineDatasourceServiceImpl.java delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/service/impl/OnlineDblinkServiceImpl.java delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/service/impl/OnlineDictServiceImpl.java delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/service/impl/OnlineFormServiceImpl.java delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/service/impl/OnlineOperationServiceImpl.java delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/service/impl/OnlinePageServiceImpl.java delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/service/impl/OnlineRuleServiceImpl.java delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/service/impl/OnlineTableServiceImpl.java delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/service/impl/OnlineVirtualColumnServiceImpl.java delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/util/OnlineConstant.java delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/util/OnlineDataSourceResolver.java delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/util/OnlineOperationHelper.java delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/util/OnlineUtil.java delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/vo/OnlineColumnRuleVo.java delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/vo/OnlineColumnVo.java delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/vo/OnlineDatasourceRelationVo.java delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/vo/OnlineDatasourceVo.java delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/vo/OnlineDblinkVo.java delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/vo/OnlineDictVo.java delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/vo/OnlineFormVo.java delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/vo/OnlinePageDatasourceVo.java delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/vo/OnlinePageVo.java delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/vo/OnlineRuleVo.java delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/vo/OnlineTableVo.java delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/vo/OnlineVirtualColumnVo.java delete mode 100644 images/orange-demo-activiti-service/common/common-online/src/main/resources/META-INF/spring.factories delete mode 100644 images/orange-demo-activiti-service/common/common-redis/pom.xml delete mode 100644 images/orange-demo-activiti-service/common/common-redis/src/main/java/com/orangeforms/common/redis/cache/RedisDictionaryCache.java delete mode 100644 images/orange-demo-activiti-service/common/common-redis/src/main/java/com/orangeforms/common/redis/cache/RedisTreeDictionaryCache.java delete mode 100644 images/orange-demo-activiti-service/common/common-redis/src/main/java/com/orangeforms/common/redis/cache/RedissonCacheConfig.java delete mode 100644 images/orange-demo-activiti-service/common/common-redis/src/main/java/com/orangeforms/common/redis/cache/SessionCacheHelper.java delete mode 100644 images/orange-demo-activiti-service/common/common-redis/src/main/java/com/orangeforms/common/redis/config/RedissonConfig.java delete mode 100644 images/orange-demo-activiti-service/common/common-redis/src/main/resources/META-INF/spring.factories delete mode 100644 images/orange-demo-activiti-service/common/common-sequence/pom.xml delete mode 100644 images/orange-demo-activiti-service/common/common-sequence/src/main/java/com/orangeforms/common/sequence/config/IdGeneratorAutoConfig.java delete mode 100644 images/orange-demo-activiti-service/common/common-sequence/src/main/java/com/orangeforms/common/sequence/config/IdGeneratorProperties.java delete mode 100644 images/orange-demo-activiti-service/common/common-sequence/src/main/java/com/orangeforms/common/sequence/generator/BasicIdGenerator.java delete mode 100644 images/orange-demo-activiti-service/common/common-sequence/src/main/java/com/orangeforms/common/sequence/generator/MyIdGenerator.java delete mode 100644 images/orange-demo-activiti-service/common/common-sequence/src/main/java/com/orangeforms/common/sequence/wrapper/IdGeneratorWrapper.java delete mode 100644 images/orange-demo-activiti-service/common/common-sequence/src/main/resources/META-INF/spring.factories delete mode 100644 images/orange-demo-activiti-service/common/common-swagger/pom.xml delete mode 100644 images/orange-demo-activiti-service/common/common-swagger/src/main/java/com/orangeforms/common/swagger/config/SwaggerAutoConfiguration.java delete mode 100644 images/orange-demo-activiti-service/common/common-swagger/src/main/java/com/orangeforms/common/swagger/config/SwaggerProperties.java delete mode 100644 images/orange-demo-activiti-service/common/common-swagger/src/main/java/com/orangeforms/common/swagger/plugin/ByteBuddyUtil.java delete mode 100644 images/orange-demo-activiti-service/common/common-swagger/src/main/java/com/orangeforms/common/swagger/plugin/DynamicBodyModelPlugin.java delete mode 100644 images/orange-demo-activiti-service/common/common-swagger/src/main/java/com/orangeforms/common/swagger/plugin/DynamicBodyParameterBuilder.java delete mode 100644 images/orange-demo-activiti-service/common/common-swagger/src/main/resources/META-INF/spring.factories delete mode 100644 images/orange-demo-activiti-service/common/pom.xml delete mode 100644 images/orange-demo-activiti-service/framework/apidoc-tools/pom.xml delete mode 100644 images/orange-demo-activiti-service/framework/apidoc-tools/src/main/java/com/orangeforms/apidoc/tools/ExportApiApp.java delete mode 100644 images/orange-demo-activiti-service/framework/apidoc-tools/src/main/java/com/orangeforms/apidoc/tools/ExportDocApp.java delete mode 100644 images/orange-demo-activiti-service/framework/apidoc-tools/src/main/java/com/orangeforms/apidoc/tools/codeparser/ApiCodeConfig.java delete mode 100644 images/orange-demo-activiti-service/framework/apidoc-tools/src/main/java/com/orangeforms/apidoc/tools/codeparser/ApiCodeParser.java delete mode 100644 images/orange-demo-activiti-service/framework/apidoc-tools/src/main/java/com/orangeforms/apidoc/tools/exception/ApiCodeConfigParseException.java delete mode 100644 images/orange-demo-activiti-service/framework/apidoc-tools/src/main/java/com/orangeforms/apidoc/tools/exception/MapperParseException.java delete mode 100644 images/orange-demo-activiti-service/framework/apidoc-tools/src/main/java/com/orangeforms/apidoc/tools/export/ApiDocExporter.java delete mode 100644 images/orange-demo-activiti-service/framework/apidoc-tools/src/main/java/com/orangeforms/apidoc/tools/export/ApiPostmanExporter.java delete mode 100644 images/orange-demo-activiti-service/framework/apidoc-tools/src/main/java/com/orangeforms/apidoc/tools/util/FreeMarkerUtils.java delete mode 100644 images/orange-demo-activiti-service/framework/apidoc-tools/src/main/resources/export-api-config.json delete mode 100644 images/orange-demo-activiti-service/framework/apidoc-tools/src/main/resources/templates/api-doc.md.ftl delete mode 100644 images/orange-demo-activiti-service/framework/apidoc-tools/src/main/resources/templates/postman_collection.json.ftl delete mode 100644 images/orange-demo-activiti-service/framework/apidoc-tools/src/main/resources/templates/postman_common.ftl delete mode 100644 images/orange-demo-activiti-service/framework/pom.xml delete mode 100644 images/orange-demo-activiti-service/pom.xml delete mode 100644 images/orange-demo-activiti-service/zz-resource/db-scripts/zzdemo-online.sql delete mode 100644 images/orange-demo-activiti-service/zz-resource/docker-files/docker-compose.yml delete mode 100644 images/orange-demo-activiti-service/zz-resource/docker-files/services/redis/Dockerfile delete mode 100644 images/orange-demo-activiti-service/zz-resource/docker-files/services/redis/redis.conf diff --git a/images/orange-demo-activiti-service/.gitignore b/images/orange-demo-activiti-service/.gitignore deleted file mode 100644 index e3fa94cd..00000000 --- a/images/orange-demo-activiti-service/.gitignore +++ /dev/null @@ -1,26 +0,0 @@ -target/ -!.mvn/wrapper/maven-wrapper.jar -/.mvn/* - -### STS ### -.apt_generated -.classpath -.factorypath -.project -.settings -.springBeans -.sts4-cache - -### IntelliJ IDEA ### -.idea -*.iws -*.iml -*.ipr - -### NetBeans ### -/nbproject/private/ -/build/ -/nbbuild/ -/dist/ -/nbdist/ -/.nb-gradle/ \ No newline at end of file diff --git a/images/orange-demo-activiti-service/README.md b/images/orange-demo-activiti-service/README.md deleted file mode 100644 index 20274fd0..00000000 --- a/images/orange-demo-activiti-service/README.md +++ /dev/null @@ -1,17 +0,0 @@ -### 服务接口文档 ---- -- Knife4j - - 服务启动后,Knife4j的文档入口地址 [http://localhost:8082/doc.html#/plus](http://localhost:8082/doc.html#/plus) -- Postman - - 无需启动服务,即可将当前工程的接口导出成Postman格式。在工程的common/common-tools/模块下,找到ExportApiApp文件,并执行main函数。 - -### 服务启动环境依赖 ---- - -执行docker-compose up -d 命令启动下面依赖的服务。 -执行docker-compose down 命令停止下面服务。 - -- Redis - - 版本:4 - - 端口: 6379 - - 推荐客户端工具 [AnotherRedisDesktopManager](https://github.com/qishibo/AnotherRedisDesktopManager) diff --git a/images/orange-demo-activiti-service/application-webadmin/pom.xml b/images/orange-demo-activiti-service/application-webadmin/pom.xml deleted file mode 100644 index 50e810a4..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/pom.xml +++ /dev/null @@ -1,87 +0,0 @@ - - - - com.orangeforms - DemoFlow - 1.0.0 - - 4.0.0 - - application-webadmin - 1.0.0 - application - jar - - - - - com.orangeforms - common-redis - 1.0.0 - - - com.orangeforms - common-online-api - 1.0.0 - - - com.orangeforms - common-flow-online - 1.0.0 - - - com.orangeforms - common-log - 1.0.0 - - - com.orangeforms - common-sequence - 1.0.0 - - - com.orangeforms - common-datafilter - 1.0.0 - - - com.orangeforms - common-swagger - 1.0.0 - - - - - - - src/main/resources - - **/*.* - - false - - - src/main/java - - **/*.xml - - false - - - - - org.springframework.boot - spring-boot-maven-plugin - ${spring-boot.version} - - - - repackage - - - - - - - diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/WebAdminApplication.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/WebAdminApplication.java deleted file mode 100644 index b80b6ec9..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/WebAdminApplication.java +++ /dev/null @@ -1,28 +0,0 @@ -package com.orangeforms.webadmin; - -import org.springframework.boot.SpringApplication; -import org.springframework.boot.autoconfigure.SpringBootApplication; -import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration; -import org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration; -import org.springframework.boot.actuate.autoconfigure.security.servlet.ManagementWebSecurityAutoConfiguration; -import org.springframework.context.annotation.ComponentScan; -import org.springframework.scheduling.annotation.EnableAsync; - -/** - * 应用服务启动类。 - * - * @author Jerry - * @date 2021-06-06 - */ -@EnableAsync -@SpringBootApplication(exclude = { - DataSourceAutoConfiguration.class, - SecurityAutoConfiguration.class, - ManagementWebSecurityAutoConfiguration.class}) -@ComponentScan("com.orangeforms") -public class WebAdminApplication { - - public static void main(String[] args) { - SpringApplication.run(WebAdminApplication.class, args); - } -} diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/app/controller/AreaCodeController.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/app/controller/AreaCodeController.java deleted file mode 100644 index b43e0957..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/app/controller/AreaCodeController.java +++ /dev/null @@ -1,74 +0,0 @@ -package com.orangeforms.webadmin.app.controller; - -import io.swagger.annotations.Api; -import cn.jimmyshi.beanquery.BeanQuery; -import com.orangeforms.webadmin.app.model.AreaCode; -import com.orangeforms.webadmin.app.service.AreaCodeService; -import com.orangeforms.common.core.object.ResponseResult; -import com.orangeforms.common.core.annotation.MyRequestBody; -import org.apache.commons.collections4.CollectionUtils; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.RestController; - -import java.util.*; - -/** - * 行政区划数据访问接口类。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Api(tags = "行政区划数据访问接口") -@RestController -@RequestMapping("/admin/app/areaCode") -public class AreaCodeController { - - @Autowired - private AreaCodeService areaCodeService; - - /** - * 按照字典的形式返回行政区划列表。 - * - * @return 字典形式的行政区划列表。 - */ - @GetMapping("/listDict") - public ResponseResult>> listDict() { - List resultList = areaCodeService.getAllListFromCache(); - return ResponseResult.success(BeanQuery.select( - "parentId as parentId", "areaId as id", "areaName as name").executeFrom(resultList)); - } - - /** - * 根据上级行政区划Id获取其下级行政区划列表。 - * - * @param parentId 上级行政区划Id。 - * @return 按照字典的形式返回下级行政区划列表。 - */ - @GetMapping("/listDictByParentId") - public ResponseResult>> listDictByParentId(@RequestParam(required = false) Long parentId) { - Collection resultList = areaCodeService.getListByParentId(parentId); - if (CollectionUtils.isEmpty(resultList)) { - return ResponseResult.success(new LinkedList<>()); - } - return ResponseResult.success(BeanQuery.select( - "parentId as parentId", "areaId as id", "areaName as name").executeFrom(resultList)); - } - - /** - * 根据字典Id集合,获取查询后的字典数据。 - * - * @param dictIds 字典Id集合。 - * @return 字典形式的行政区划列表。 - */ - @PostMapping("/listDictByIds") - public ResponseResult>> listDictByIds( - @MyRequestBody(elementType = Long.class) List dictIds) { - List resultList = areaCodeService.getInList(new HashSet<>(dictIds)); - return ResponseResult.success(BeanQuery.select( - "parentId as parentId", "areaId as id", "areaName as name").executeFrom(resultList)); - } -} diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/app/dao/AreaCodeMapper.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/app/dao/AreaCodeMapper.java deleted file mode 100644 index e40d5469..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/app/dao/AreaCodeMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.orangeforms.webadmin.app.dao; - -import com.orangeforms.common.core.base.dao.BaseDaoMapper; -import com.orangeforms.webadmin.app.model.AreaCode; - -/** - * 行政区划数据操作访问接口。 - * - * @author Jerry - * @date 2021-06-06 - */ -public interface AreaCodeMapper extends BaseDaoMapper { -} \ No newline at end of file diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/app/dao/mapper/AreaCodeMapper.xml b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/app/dao/mapper/AreaCodeMapper.xml deleted file mode 100644 index 09e629fa..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/app/dao/mapper/AreaCodeMapper.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - \ No newline at end of file diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/app/model/AreaCode.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/app/model/AreaCode.java deleted file mode 100644 index 7b280e41..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/app/model/AreaCode.java +++ /dev/null @@ -1,39 +0,0 @@ -package com.orangeforms.webadmin.app.model; - -import com.baomidou.mybatisplus.annotation.*; -import lombok.Data; - -/** - * 行政区划实体对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Data -@TableName(value = "zz_area_code") -public class AreaCode { - - /** - * 行政区划主键Id - */ - @TableId(value = "area_id") - private Long areaId; - - /** - * 行政区划名称 - */ - @TableField(value = "area_name") - private String areaName; - - /** - * 行政区划级别 (1: 省级别 2: 市级别 3: 区级别) - */ - @TableField(value = "area_level") - private Integer areaLevel; - - /** - * 父级行政区划Id - */ - @TableField(value = "parent_id") - private Long parentId; -} \ No newline at end of file diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/app/service/AreaCodeService.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/app/service/AreaCodeService.java deleted file mode 100644 index 946150d0..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/app/service/AreaCodeService.java +++ /dev/null @@ -1,23 +0,0 @@ -package com.orangeforms.webadmin.app.service; - -import com.orangeforms.common.core.base.service.IBaseDictService; -import com.orangeforms.webadmin.app.model.AreaCode; - -import java.util.Collection; - -/** - * 行政区划的Service接口。 - * - * @author Jerry - * @date 2021-06-06 - */ -public interface AreaCodeService extends IBaseDictService { - - /** - * 根据上级行政区划Id,获取其下级行政区划列表。 - * - * @param parentId 上级行政区划Id。 - * @return 下级行政区划列表。 - */ - Collection getListByParentId(Long parentId); -} diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/app/service/impl/AreaCodeServiceImpl.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/app/service/impl/AreaCodeServiceImpl.java deleted file mode 100644 index 2a0b8a4d..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/app/service/impl/AreaCodeServiceImpl.java +++ /dev/null @@ -1,52 +0,0 @@ -package com.orangeforms.webadmin.app.service.impl; - -import com.orangeforms.webadmin.app.service.AreaCodeService; -import com.orangeforms.webadmin.app.dao.AreaCodeMapper; -import com.orangeforms.webadmin.app.model.AreaCode; -import com.orangeforms.common.core.cache.MapTreeDictionaryCache; -import com.orangeforms.common.core.base.service.BaseDictService; -import com.orangeforms.common.core.base.dao.BaseDaoMapper; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; - -import javax.annotation.PostConstruct; -import java.util.Collection; - -/** - * 行政区划的Service类。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Service("areaCodeService") -public class AreaCodeServiceImpl extends BaseDictService implements AreaCodeService { - - @Autowired - private AreaCodeMapper areaCodeMapper; - - public AreaCodeServiceImpl() { - super(); - this.dictionaryCache = MapTreeDictionaryCache.create(AreaCode::getAreaId, AreaCode::getParentId); - } - - @PostConstruct - public void init() { - this.reloadCachedData(true); - } - - @Override - protected BaseDaoMapper mapper() { - return areaCodeMapper; - } - - /** - * 根据上级行政区划Id,获取其下级行政区划列表。 - * - * @param parentId 上级行政区划Id。 - * @return 下级行政区划列表。 - */ - @Override - public Collection getListByParentId(Long parentId) { - return ((MapTreeDictionaryCache) dictionaryCache).getListByParentId(parentId); - } -} diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/app/util/FlowIdentityExtHelper.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/app/util/FlowIdentityExtHelper.java deleted file mode 100644 index 520e5ba3..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/app/util/FlowIdentityExtHelper.java +++ /dev/null @@ -1,135 +0,0 @@ -package com.orangeforms.webadmin.app.util; - -import cn.hutool.core.collection.CollUtil; -import com.orangeforms.common.flow.util.BaseFlowIdentityExtHelper; -import com.orangeforms.common.flow.util.FlowCustomExtFactory; -import com.orangeforms.webadmin.upms.model.SysDept; -import com.orangeforms.webadmin.upms.model.SysUser; -import com.orangeforms.webadmin.upms.model.constant.SysUserStatus; -import com.orangeforms.webadmin.upms.model.SysDeptPost; -import com.orangeforms.webadmin.upms.service.SysDeptService; -import com.orangeforms.webadmin.upms.service.SysUserService; -import lombok.extern.slf4j.Slf4j; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Component; - -import javax.annotation.PostConstruct; -import java.util.*; -import java.util.stream.Collectors; - -/** - * 为流程提供所需的用户身份相关的等扩展信息的帮助类。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Slf4j -@Component -public class FlowIdentityExtHelper implements BaseFlowIdentityExtHelper { - - @Autowired - private SysDeptService sysDeptService; - @Autowired - private SysUserService sysUserService; - @Autowired - private FlowCustomExtFactory flowCustomExtFactory; - - @PostConstruct - public void doRegister() { - flowCustomExtFactory.registerFlowIdentityExtHelper(this); - } - - @Override - public Long getLeaderDeptPostId(Long deptId) { - List deptPostIdList = sysDeptService.getLeaderDeptPostIdList(deptId); - return CollUtil.isEmpty(deptPostIdList) ? null : deptPostIdList.get(0); - } - - @Override - public Long getUpLeaderDeptPostId(Long deptId) { - List deptPostIdList = sysDeptService.getUpLeaderDeptPostIdList(deptId); - return CollUtil.isEmpty(deptPostIdList) ? null : deptPostIdList.get(0); - } - - @Override - public Map getDeptPostIdMap(Long deptId, Set postIdSet) { - Set postIdSet2 = postIdSet.stream().map(Long::valueOf).collect(Collectors.toSet()); - List deptPostList = sysDeptService.getSysDeptPostList(deptId, postIdSet2); - if (CollUtil.isEmpty(deptPostList)) { - return null; - } - Map resultMap = new HashMap<>(deptPostList.size()); - deptPostList.forEach(sysDeptPost -> - resultMap.put(sysDeptPost.getPostId().toString(), sysDeptPost.getDeptPostId().toString())); - return resultMap; - } - - @Override - public Map getUpDeptPostIdMap(Long deptId, Set postIdSet) { - SysDept sysDept = sysDeptService.getById(deptId); - if (sysDept == null || sysDept.getParentId() == null) { - return null; - } - return getDeptPostIdMap(sysDept.getParentId(), postIdSet); - } - - @Override - public Set getUsernameListByRoleIds(Set roleIdSet) { - Set usernameSet = new HashSet<>(); - Set roleIdSet2 = roleIdSet.stream().map(Long::valueOf).collect(Collectors.toSet()); - SysUser filter = new SysUser(); - filter.setUserStatus(SysUserStatus.STATUS_NORMAL); - for (Long roleId : roleIdSet2) { - List userList = sysUserService.getSysUserListByRoleId(roleId, filter, null); - this.extractAndAppendUsernameList(usernameSet, userList); - } - return usernameSet; - } - - @Override - public Set getUsernameListByDeptIds(Set deptIdSet) { - Set usernameSet = new HashSet<>(); - Set deptIdSet2 = deptIdSet.stream().map(Long::valueOf).collect(Collectors.toSet()); - for (Long deptId : deptIdSet2) { - SysUser filter = new SysUser(); - filter.setDeptId(deptId); - filter.setUserStatus(SysUserStatus.STATUS_NORMAL); - List userList = sysUserService.getSysUserList(filter, null); - this.extractAndAppendUsernameList(usernameSet, userList); - } - return usernameSet; - } - - @Override - public Set getUsernameListByPostIds(Set postIdSet) { - Set usernameSet = new HashSet<>(); - Set postIdSet2 = postIdSet.stream().map(Long::valueOf).collect(Collectors.toSet()); - SysUser filter = new SysUser(); - filter.setUserStatus(SysUserStatus.STATUS_NORMAL); - for (Long postId : postIdSet2) { - List userList = sysUserService.getSysUserListByPostId(postId, filter, null); - this.extractAndAppendUsernameList(usernameSet, userList); - } - return usernameSet; - } - - @Override - public Set getUsernameListByDeptPostIds(Set deptPostIdSet) { - Set usernameSet = new HashSet<>(); - Set deptPostIdSet2 = deptPostIdSet.stream().map(Long::valueOf).collect(Collectors.toSet()); - SysUser filter = new SysUser(); - filter.setUserStatus(SysUserStatus.STATUS_NORMAL); - for (Long deptPostId : deptPostIdSet2) { - List userList = sysUserService.getSysUserListByDeptPostId(deptPostId, filter, null); - this.extractAndAppendUsernameList(usernameSet, userList); - } - return usernameSet; - } - - private void extractAndAppendUsernameList(Set resultUsernameList, List userList) { - List usernameList = userList.stream().map(SysUser::getLoginName).collect(Collectors.toList()); - if (CollUtil.isNotEmpty(usernameList)) { - resultUsernameList.addAll(usernameList); - } - } -} diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/app/vo/AreaCodeVo.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/app/vo/AreaCodeVo.java deleted file mode 100644 index 4dce7d89..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/app/vo/AreaCodeVo.java +++ /dev/null @@ -1,40 +0,0 @@ -package com.orangeforms.webadmin.app.vo; - -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.Data; - -/** - * 行政区划DomainVO对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@ApiModel("行政区划实体对象") -@Data -public class AreaCodeVo { - - /** - * 行政区划主键Id - */ - @ApiModelProperty(value = "行政区划主键Id", required = true) - private Long areaId; - - /** - * 行政区划名称 - */ - @ApiModelProperty(value = "行政区划名称") - private String areaName; - - /** - * 行政区划级别 (1: 省级别 2: 市级别 3: 区级别) - */ - @ApiModelProperty(value = "行政区划级别") - private Integer areaLevel; - - /** - * 父级行政区划Id - */ - @ApiModelProperty(value = "父级行政区划Id") - private Long parentId; -} \ No newline at end of file diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/config/ApplicationConfig.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/config/ApplicationConfig.java deleted file mode 100644 index e872b66c..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/config/ApplicationConfig.java +++ /dev/null @@ -1,51 +0,0 @@ -package com.orangeforms.webadmin.config; - -import lombok.Data; -import org.springframework.boot.context.properties.ConfigurationProperties; -import org.springframework.context.annotation.Configuration; - -/** - * 应用程序自定义的程序属性配置文件。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Data -@Configuration -@ConfigurationProperties(prefix = "application") -public class ApplicationConfig { - - /** - * token的Http Request Header的key - */ - private String tokenHeaderKey; - /** - * token在过期之前,但是已经需要被刷新时,response返回的header信息的key。 - */ - private String refreshedTokenHeaderKey; - /** - * token 加密用的密钥,该值的长度最少10个字符(过短会报错)。 - */ - private String tokenSigningKey; - /** - * 令牌的过期时间,单位毫秒 - */ - private Long expiration; - /** - * 用户密码被重置之后的缺省密码 - */ - private String defaultUserPassword; - /** - * 上传文件的基础目录 - */ - private String uploadFileBaseDir; - /** - * 授信ip列表,没有填写表示全部信任。多个ip之间逗号分隔,如: http://10.10.10.1:8080,http://10.10.10.2:8080 - */ - private String credentialIpList; - /** - * Session的用户权限在Redis中的过期时间(秒)。 - * 缺省值是 one day - */ - private int sessionExpiredSeconds = 86400; -} diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/config/DataSourceType.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/config/DataSourceType.java deleted file mode 100644 index 3c5d8e9e..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/config/DataSourceType.java +++ /dev/null @@ -1,36 +0,0 @@ -package com.orangeforms.webadmin.config; - -import java.util.HashMap; -import java.util.Map; - -/** - * 表示数据源类型的常量对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -public final class DataSourceType { - - public static final int MAIN = 0; - - private static final Map TYPE_MAP = new HashMap<>(2); - static { - TYPE_MAP.put("main", MAIN); - } - - /** - * 根据名称获取字典类型。 - * - * @param name 数据源在配置中的名称。 - * @return 返回可用于多数据源切换的数据源类型。 - */ - public static Integer getDataSourceTypeByName(String name) { - return TYPE_MAP.get(name); - } - - /** - * 私有构造函数,明确标识该常量类的作用。 - */ - private DataSourceType() { - } -} diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/config/FilterConfig.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/config/FilterConfig.java deleted file mode 100644 index bd4d63ce..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/config/FilterConfig.java +++ /dev/null @@ -1,57 +0,0 @@ -package com.orangeforms.webadmin.config; - -import org.apache.commons.lang3.StringUtils; -import org.springframework.boot.web.servlet.FilterRegistrationBean; -import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.Configuration; -import org.springframework.web.cors.CorsConfiguration; -import org.springframework.web.cors.UrlBasedCorsConfigurationSource; -import org.springframework.web.filter.CorsFilter; - -import javax.servlet.Filter; -import java.nio.charset.StandardCharsets; - -/** - * 这里主要配置Web的各种过滤器和监听器等Servlet容器组件。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Configuration -public class FilterConfig { - - /** - * 配置Ajax跨域过滤器。 - */ - @Bean - public CorsFilter corsFilterRegistration(ApplicationConfig applicationConfig) { - UrlBasedCorsConfigurationSource configSource = new UrlBasedCorsConfigurationSource(); - CorsConfiguration corsConfiguration = new CorsConfiguration(); - if (StringUtils.isNotBlank(applicationConfig.getCredentialIpList())) { - String[] credentialIpList = StringUtils.split(applicationConfig.getCredentialIpList(), ","); - if (credentialIpList.length > 0) { - for (String ip : credentialIpList) { - corsConfiguration.addAllowedOrigin(ip); - } - } - corsConfiguration.addAllowedHeader("*"); - corsConfiguration.addAllowedMethod("*"); - corsConfiguration.addExposedHeader(applicationConfig.getRefreshedTokenHeaderKey()); - corsConfiguration.setAllowCredentials(true); - configSource.registerCorsConfiguration("/**", corsConfiguration); - } - return new CorsFilter(configSource); - } - - @Bean - public FilterRegistrationBean characterEncodingFilterRegistration() { - FilterRegistrationBean filterRegistrationBean = new FilterRegistrationBean<>( - new org.springframework.web.filter.CharacterEncodingFilter()); - filterRegistrationBean.addUrlPatterns("/*"); - filterRegistrationBean.addInitParameter("encoding", StandardCharsets.UTF_8.name()); - // forceEncoding强制response也被编码,另外即使request中已经设置encoding,forceEncoding也会重新设置 - filterRegistrationBean.addInitParameter("forceEncoding", "true"); - filterRegistrationBean.setAsyncSupported(true); - return filterRegistrationBean; - } -} diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/config/InterceptorConfig.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/config/InterceptorConfig.java deleted file mode 100644 index 73aa3d0e..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/config/InterceptorConfig.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.orangeforms.webadmin.config; - -import com.orangeforms.webadmin.interceptor.AuthenticationInterceptor; -import org.springframework.context.annotation.Configuration; -import org.springframework.web.servlet.config.annotation.InterceptorRegistry; -import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; - -/** - * 所有的项目拦截器都在这里集中配置 - * - * @author Jerry - * @date 2021-06-06 - */ -@Configuration -public class InterceptorConfig implements WebMvcConfigurer { - - @Override - public void addInterceptors(InterceptorRegistry registry) { - registry.addInterceptor(new AuthenticationInterceptor()).addPathPatterns("/admin/**"); - } -} diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/config/MultiDataSourceConfig.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/config/MultiDataSourceConfig.java deleted file mode 100644 index 1e4a46c6..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/config/MultiDataSourceConfig.java +++ /dev/null @@ -1,44 +0,0 @@ -package com.orangeforms.webadmin.config; - -import com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceBuilder; -import com.orangeforms.common.core.config.DynamicDataSource; -import org.springframework.boot.context.properties.ConfigurationProperties; -import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.Configuration; -import org.springframework.context.annotation.Primary; -import org.springframework.transaction.annotation.EnableTransactionManagement; -import org.mybatis.spring.annotation.MapperScan; - -import javax.sql.DataSource; -import java.util.HashMap; -import java.util.Map; - -/** - * 多数据源配置对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Configuration -@EnableTransactionManagement -@MapperScan(value = {"com.orangeforms.webadmin.*.dao", "com.orangeforms.common.*.dao"}) -public class MultiDataSourceConfig { - - @Bean(initMethod = "init", destroyMethod = "close") - @ConfigurationProperties(prefix = "spring.datasource.druid.main") - public DataSource mainDataSource() { - return DruidDataSourceBuilder.create().build(); - } - - @Bean - @Primary - public DynamicDataSource dataSource() { - Map targetDataSources = new HashMap<>(1); - targetDataSources.put(DataSourceType.MAIN, mainDataSource()); - // 如果当前工程支持在线表单,这里请务必保证upms数据表所在数据库为缺省数据源。 - DynamicDataSource dynamicDataSource = new DynamicDataSource(); - dynamicDataSource.setTargetDataSources(targetDataSources); - dynamicDataSource.setDefaultTargetDataSource(mainDataSource()); - return dynamicDataSource; - } -} diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/interceptor/AuthenticationInterceptor.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/interceptor/AuthenticationInterceptor.java deleted file mode 100644 index 0ded5cdb..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/interceptor/AuthenticationInterceptor.java +++ /dev/null @@ -1,139 +0,0 @@ -package com.orangeforms.webadmin.interceptor; - -import com.alibaba.fastjson.JSON; -import com.orangeforms.webadmin.config.ApplicationConfig; -import com.orangeforms.webadmin.upms.model.SysPermWhitelist; -import com.orangeforms.webadmin.upms.service.SysPermWhitelistService; -import com.orangeforms.webadmin.upms.service.SysPermService; -import com.orangeforms.common.core.annotation.NoAuthInterface; -import com.orangeforms.common.core.constant.ErrorCodeEnum; -import com.orangeforms.common.core.object.ResponseResult; -import com.orangeforms.common.core.object.TokenData; -import com.orangeforms.common.core.util.ApplicationContextHolder; -import com.orangeforms.common.core.util.JwtUtil; -import com.orangeforms.common.core.util.RedisKeyUtil; -import io.jsonwebtoken.Claims; -import lombok.extern.slf4j.Slf4j; -import org.apache.commons.lang3.StringUtils; -import org.redisson.api.RBucket; -import org.redisson.api.RSet; -import org.redisson.api.RedissonClient; -import org.springframework.web.method.HandlerMethod; -import org.springframework.web.servlet.HandlerInterceptor; -import org.springframework.web.servlet.ModelAndView; - -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import java.io.IOException; -import java.io.PrintWriter; -import java.util.Set; -import java.util.List; -import java.util.stream.Collectors; - -/** - * 登录用户Token验证、生成和权限验证的拦截器。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Slf4j -public class AuthenticationInterceptor implements HandlerInterceptor { - - private final ApplicationConfig appConfig = - ApplicationContextHolder.getBean("applicationConfig"); - - private final RedissonClient redissonClient = ApplicationContextHolder.getBean(RedissonClient.class); - - private final SysPermService sysPermService = - ApplicationContextHolder.getBean(SysPermService.class); - - private static SysPermWhitelistService sysPermWhitelistService = - ApplicationContextHolder.getBean(SysPermWhitelistService.class); - - private static Set whitelistPermSet; - - static { - List sysPermWhitelistList = sysPermWhitelistService.getAllList(); - whitelistPermSet = sysPermWhitelistList.stream() - .map(SysPermWhitelist::getPermUrl).collect(Collectors.toSet()); - } - - @Override - public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) - throws Exception { - String url = request.getRequestURI(); - // 如果接口方法标记NoAuthInterface注解,可以直接跳过Token鉴权验证,这里主要为了测试接口方便 - if (handler instanceof HandlerMethod) { - HandlerMethod hm = (HandlerMethod) handler; - if (hm.getBeanType().getAnnotation(NoAuthInterface.class) != null - || hm.getMethodAnnotation(NoAuthInterface.class) != null) { - return true; - } - } - String token = request.getHeader(appConfig.getTokenHeaderKey()); - if (StringUtils.isBlank(token)) { - token = request.getParameter(appConfig.getTokenHeaderKey()); - } - Claims c = JwtUtil.parseToken(token, appConfig.getTokenSigningKey()); - if (JwtUtil.isNullOrExpired(c)) { - response.setStatus(HttpServletResponse.SC_UNAUTHORIZED); - this.outputResponseMessage(response, - ResponseResult.error(ErrorCodeEnum.UNAUTHORIZED_LOGIN, "用户会话已过期或尚未登录,请重新登录!")); - return false; - } - String sessionId = (String) c.get("sessionId"); - String sessionIdKey = RedisKeyUtil.makeSessionIdKey(sessionId); - RBucket sessionData = redissonClient.getBucket(sessionIdKey); - TokenData tokenData = null; - if (sessionData.isExists()) { - tokenData = JSON.parseObject(sessionData.get(), TokenData.class); - } - if (tokenData == null) { - response.setStatus(HttpServletResponse.SC_UNAUTHORIZED); - this.outputResponseMessage(response, - ResponseResult.error(ErrorCodeEnum.UNAUTHORIZED_LOGIN, "用户会话已失效,请重新登录!")); - return false; - } - TokenData.addToRequest(tokenData); - // 如果url在权限资源白名单中,则不需要进行鉴权操作 - if (Boolean.FALSE.equals(tokenData.getIsAdmin()) && !whitelistPermSet.contains(url)) { - RSet permSet = redissonClient.getSet(RedisKeyUtil.makeSessionPermIdKey(sessionId)); - if (!permSet.contains(url)) { - response.setStatus(HttpServletResponse.SC_FORBIDDEN); - this.outputResponseMessage(response, ResponseResult.error(ErrorCodeEnum.NO_OPERATION_PERMISSION)); - return false; - } - } - if (JwtUtil.needToRefresh(c)) { - String refreshedToken = JwtUtil.generateToken(c, appConfig.getExpiration(), appConfig.getTokenSigningKey()); - response.addHeader(appConfig.getRefreshedTokenHeaderKey(), refreshedToken); - } - return true; - } - - @Override - public void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler, - ModelAndView modelAndView) throws Exception { - // 这里需要空注解,否则sonar会不happy。 - } - - @Override - public void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex) - throws Exception { - // 这里需要空注解,否则sonar会不happy。 - } - - private void outputResponseMessage(HttpServletResponse response, ResponseResult respObj) { - PrintWriter out; - try { - out = response.getWriter(); - } catch (IOException e) { - log.error("Failed to call OutputResponseMessage.", e); - return; - } - response.setContentType("application/json; charset=utf-8"); - out.print(JSON.toJSONString(respObj)); - out.flush(); - out.close(); - } -} diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/controller/LoginController.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/controller/LoginController.java deleted file mode 100644 index 5d295fc3..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/controller/LoginController.java +++ /dev/null @@ -1,313 +0,0 @@ -package com.orangeforms.webadmin.upms.controller; - -import com.alibaba.fastjson.JSON; -import com.alibaba.fastjson.JSONObject; -import com.alibaba.fastjson.serializer.SerializerFeature; -import com.github.xiaoymin.knife4j.annotations.ApiSupport; -import io.swagger.annotations.Api; -import io.swagger.annotations.ApiImplicitParam; -import io.swagger.annotations.ApiImplicitParams; -import lombok.extern.slf4j.Slf4j; -import com.orangeforms.webadmin.config.ApplicationConfig; -import com.orangeforms.webadmin.upms.service.*; -import com.orangeforms.webadmin.upms.model.*; -import com.orangeforms.webadmin.upms.model.constant.SysUserStatus; -import com.orangeforms.webadmin.upms.model.constant.SysUserType; -import com.orangeforms.webadmin.upms.model.constant.SysMenuType; -import com.orangeforms.webadmin.upms.model.constant.SysOnlineMenuPermType; -import com.orangeforms.common.online.util.OnlineUtil; -import com.orangeforms.common.online.model.OnlineDatasource; -import com.orangeforms.common.online.service.OnlineDatasourceService; -import com.orangeforms.common.online.api.config.OnlineApiProperties; -import com.orangeforms.common.core.annotation.NoAuthInterface; -import com.orangeforms.common.core.annotation.MyRequestBody; -import com.orangeforms.common.core.constant.ApplicationConstant; -import com.orangeforms.common.core.constant.ErrorCodeEnum; -import com.orangeforms.common.core.object.*; -import com.orangeforms.common.core.util.*; -import com.orangeforms.common.redis.cache.SessionCacheHelper; -import org.apache.commons.collections4.CollectionUtils; -import org.apache.commons.lang3.StringUtils; -import org.redisson.api.RBucket; -import org.redisson.api.RedissonClient; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.security.crypto.password.PasswordEncoder; -import org.springframework.web.bind.annotation.*; - -import java.net.URLDecoder; -import java.nio.charset.StandardCharsets; -import java.util.*; -import java.util.concurrent.TimeUnit; -import java.util.stream.Collectors; - -/** - * 登录接口控制器类。 - * - * @author Jerry - * @date 2021-06-06 - */ -@ApiSupport(order = 1) -@Api(tags = "用户登录接口") -@Slf4j -@RestController -@RequestMapping("/admin/upms/login") -public class LoginController { - - @Autowired - private SysUserService sysUserService; - @Autowired - private SysMenuService sysMenuService; - @Autowired - private SysPermCodeService sysPermCodeService; - @Autowired - private SysPermService sysPermService; - @Autowired - private SysPostService sysPostService; - @Autowired - private SysRoleService sysRoleService; - @Autowired - private SysDataPermService sysDataPermService; - @Autowired - private OnlineDatasourceService onlineDatasourceService; - @Autowired - private OnlineApiProperties onlineProperties; - @Autowired - private ApplicationConfig appConfig; - @Autowired - private RedissonClient redissonClient; - @Autowired - private SessionCacheHelper cacheHelper; - @Autowired - private PasswordEncoder passwordEncoder; - - /** - * 登录接口。 - * - * @param loginName 登录名。 - * @param password 密码。 - * @return 应答结果对象,其中包括JWT的Token数据,以及菜单列表。 - */ - @ApiImplicitParams({ - // 这里包含密码密文,仅用于方便开发期间的接口测试,集成测试和发布阶段,需要将当前注解去掉。 - // 如果您重新生成了公钥和私钥,请替换password的缺省值。 - @ApiImplicitParam(name = "loginName", defaultValue = "admin"), - @ApiImplicitParam(name = "password", defaultValue = "IP3ccke3GhH45iGHB5qP9p7iZw6xUyj28Ju10rnBiPKOI35sc%2BjI7%2FdsjOkHWMfUwGYGfz8ik31HC2Ruk%2Fhkd9f6RPULTHj7VpFdNdde2P9M4mQQnFBAiPM7VT9iW3RyCtPlJexQ3nAiA09OqG%2F0sIf1kcyveSrulxembARDbDo%3D") - }) - @NoAuthInterface - @PostMapping("/doLogin") - public ResponseResult doLogin( - @MyRequestBody String loginName, @MyRequestBody String password) throws Exception { - if (MyCommonUtil.existBlankArgument(loginName, password)) { - return ResponseResult.error(ErrorCodeEnum.ARGUMENT_NULL_EXIST); - } - SysUser user = sysUserService.getSysUserByLoginName(loginName); - password = URLDecoder.decode(password, StandardCharsets.UTF_8.name()); - // NOTE: 第一次使用时,请务必阅读ApplicationConstant.PRIVATE_KEY的代码注释。 - // 执行RsaUtil工具类中的main函数,可以生成新的公钥和私钥。 - password = RsaUtil.decrypt(password, ApplicationConstant.PRIVATE_KEY); - if (user == null || !passwordEncoder.matches(password, user.getPassword())) { - return ResponseResult.error(ErrorCodeEnum.INVALID_USERNAME_PASSWORD); - } - String errorMessage; - if (user.getUserStatus() == SysUserStatus.STATUS_LOCKED) { - errorMessage = "登录失败,用户账号被锁定!"; - return ResponseResult.error(ErrorCodeEnum.INVALID_USER_STATUS, errorMessage); - } - String patternKey = RedisKeyUtil.getSessionIdPrefix(user.getLoginName(), MyCommonUtil.getDeviceType()) + "*"; - redissonClient.getKeys().deleteByPatternAsync(patternKey); - JSONObject jsonData = this.buildLoginData(user); - return ResponseResult.success(jsonData); - } - - /** - * 登出操作。同时将Session相关的信息从缓存中删除。 - * - * @return 应答结果对象。 - */ - @PostMapping("/doLogout") - public ResponseResult doLogout() { - TokenData tokenData = TokenData.takeFromRequest(); - String sessionIdKey = RedisKeyUtil.makeSessionIdKey(tokenData.getSessionId()); - redissonClient.getBucket(sessionIdKey).delete(); - sysPermService.removeUserSysPermCache(tokenData.getSessionId()); - sysDataPermService.removeDataPermCache(tokenData.getSessionId()); - cacheHelper.removeAllSessionCache(tokenData.getSessionId()); - return ResponseResult.success(); - } - - /** - * 在登录之后,通过token再次获取登录信息。 - * 用于在当前浏览器登录系统后,在新tab页中可以免密登录。 - * - * @return 应答结果对象,其中包括JWT的Token数据,以及菜单列表。 - */ - @GetMapping("/getLoginInfo") - public ResponseResult getLoginInfo() { - TokenData tokenData = TokenData.takeFromRequest(); - // 这里解释一下为什么没有缓存menuList和permCodeList。 - // 1. 该操作和权限验证不同,属于低频操作。 - // 2. 第一次登录和再次获取登录信息之间,如果修改了用户的权限,那么本次获取的是最新权限。 - // 3. 上一个问题无法避免,因为即便缓存也是有过期时间的,过期之后还是要从数据库获取的。 - JSONObject jsonData = new JSONObject(); - jsonData.put("showName", tokenData.getShowName()); - jsonData.put("isAdmin", tokenData.getIsAdmin()); - Collection menuList; - Collection permCodeList; - if (tokenData.getIsAdmin()) { - menuList = sysMenuService.getAllMenuList(); - permCodeList = sysPermCodeService.getAllPermCodeList(); - } else { - menuList = sysMenuService.getMenuListByUserId(tokenData.getUserId()); - permCodeList = sysPermCodeService.getPermCodeListByUserId(tokenData.getUserId()); - } - jsonData.put("menuList", menuList); - jsonData.put("permCodeList", permCodeList); - return ResponseResult.success(jsonData); - } - - /** - * 用户修改自己的密码。 - * - * @param oldPass 原有密码。 - * @param newPass 新密码。 - * @return 应答结果对象。 - */ - @PostMapping("/changePassword") - public ResponseResult changePassword( - @MyRequestBody String oldPass, @MyRequestBody String newPass) throws Exception { - if (MyCommonUtil.existBlankArgument(newPass, oldPass)) { - return ResponseResult.error(ErrorCodeEnum.ARGUMENT_NULL_EXIST); - } - TokenData tokenData = TokenData.takeFromRequest(); - SysUser user = sysUserService.getById(tokenData.getUserId()); - oldPass = URLDecoder.decode(oldPass, StandardCharsets.UTF_8.name()); - // NOTE: 第一次使用时,请务必阅读ApplicationConstant.PRIVATE_KEY的代码注释。 - // 执行RsaUtil工具类中的main函数,可以生成新的公钥和私钥。 - oldPass = RsaUtil.decrypt(oldPass, ApplicationConstant.PRIVATE_KEY); - if (user == null || !passwordEncoder.matches(oldPass, user.getPassword())) { - return ResponseResult.error(ErrorCodeEnum.INVALID_USERNAME_PASSWORD); - } - newPass = URLDecoder.decode(newPass, StandardCharsets.UTF_8.name()); - newPass = RsaUtil.decrypt(newPass, ApplicationConstant.PRIVATE_KEY); - if (!sysUserService.changePassword(tokenData.getUserId(), newPass)) { - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST); - } - return ResponseResult.success(); - } - - private JSONObject buildLoginData(SysUser user) { - int deviceType = MyCommonUtil.getDeviceType(); - boolean isAdmin = user.getUserType() == SysUserType.TYPE_ADMIN; - Map claims = new HashMap<>(3); - String sessionId = user.getLoginName() + "_" + deviceType + "_" + MyCommonUtil.generateUuid(); - claims.put("sessionId", sessionId); - String token = JwtUtil.generateToken(claims, appConfig.getExpiration(), appConfig.getTokenSigningKey()); - JSONObject jsonData = new JSONObject(); - jsonData.put(TokenData.REQUEST_ATTRIBUTE_NAME, token); - jsonData.put("showName", user.getShowName()); - jsonData.put("isAdmin", isAdmin); - TokenData tokenData = new TokenData(); - tokenData.setSessionId(sessionId); - tokenData.setUserId(user.getUserId()); - tokenData.setDeptId(user.getDeptId()); - tokenData.setLoginName(user.getLoginName()); - tokenData.setShowName(user.getShowName()); - tokenData.setIsAdmin(isAdmin); - tokenData.setLoginIp(IpUtil.getRemoteIpAddress(ContextUtil.getHttpRequest())); - tokenData.setLoginTime(new Date()); - tokenData.setDeviceType(deviceType); - List userPostList = sysPostService.getSysUserPostListByUserId(user.getUserId()); - if (CollectionUtils.isNotEmpty(userPostList)) { - Set deptPostIdSet = userPostList.stream().map(SysUserPost::getDeptPostId).collect(Collectors.toSet()); - tokenData.setDeptPostIds(StringUtils.join(deptPostIdSet, ",")); - Set postIdSet = userPostList.stream().map(SysUserPost::getPostId).collect(Collectors.toSet()); - tokenData.setPostIds(StringUtils.join(postIdSet, ",")); - } - List userRoleList = sysRoleService.getSysUserRoleListByUserId(user.getUserId()); - if (CollectionUtils.isNotEmpty(userRoleList)) { - Set userRoleIdSet = userRoleList.stream().map(SysUserRole::getRoleId).collect(Collectors.toSet()); - tokenData.setRoleIds(StringUtils.join(userRoleIdSet, ",")); - } - String sessionIdKey = RedisKeyUtil.makeSessionIdKey(sessionId); - String sessionData = JSON.toJSONString(tokenData, SerializerFeature.WriteNonStringValueAsString); - RBucket bucket = redissonClient.getBucket(sessionIdKey); - bucket.set(sessionData); - bucket.expire(appConfig.getSessionExpiredSeconds(), TimeUnit.SECONDS); - // 这里手动将TokenData存入request,便于OperationLogAspect统一处理操作日志。 - TokenData.addToRequest(tokenData); - Collection menuList; - Collection permCodeList; - if (isAdmin) { - menuList = sysMenuService.getAllMenuList(); - permCodeList = sysPermCodeService.getAllPermCodeList(); - } else { - menuList = sysMenuService.getMenuListByUserId(user.getUserId()); - permCodeList = sysPermCodeService.getPermCodeListByUserId(user.getUserId()); - } - List onlineMenuList; - if (isAdmin) { - onlineMenuList = sysMenuService.getAllOnlineMenuList(SysMenuType.TYPE_BUTTON); - } else { - onlineMenuList = sysMenuService.getOnlineMenuListByUserId(user.getUserId(), SysMenuType.TYPE_BUTTON); - } - OnlinePermData onlinePermData = this.getOnlinePermCodeSet(onlineMenuList); - if (CollectionUtils.isNotEmpty(onlinePermData.permCodeSet)) { - permCodeList.addAll(onlinePermData.permCodeSet); - } - jsonData.put("menuList", menuList); - jsonData.put("permCodeList", permCodeList); - if (user.getUserType() != SysUserType.TYPE_ADMIN) { - // 缓存用户的权限资源 - sysPermService.putUserSysPermCache(sessionId, user.getUserId()); - sysPermService.putOnlinePermToCache(sessionId, onlinePermData.permUrlSet); - sysDataPermService.putDataPermCache(sessionId, user.getUserId(), user.getDeptId()); - } - return jsonData; - } - - private OnlinePermData getOnlinePermCodeSet(List onlineMenuList) { - OnlinePermData permData = new OnlinePermData(); - if (CollectionUtils.isEmpty(onlineMenuList)) { - return permData; - } - Set viewFormIdSet = new HashSet<>(); - Set editFormIdSet = new HashSet<>(); - for (SysMenu menu : onlineMenuList) { - if (menu.getOnlineMenuPermType() == SysOnlineMenuPermType.TYPE_VIEW) { - viewFormIdSet.add(menu.getOnlineFormId()); - } else if (menu.getOnlineMenuPermType() == SysOnlineMenuPermType.TYPE_EDIT) { - editFormIdSet.add(menu.getOnlineFormId()); - } - } - if (CollectionUtils.isNotEmpty(viewFormIdSet)) { - List viewDatasourceList = - onlineDatasourceService.getOnlineDatasourceListByFormIds(viewFormIdSet); - for (OnlineDatasource datasource : viewDatasourceList) { - permData.permCodeSet.add(OnlineUtil.makeViewPermCode(datasource.getVariableName())); - for (String permUrl : onlineProperties.getViewUrlList()) { - permData.permUrlSet.add(permUrl + datasource.getVariableName()); - } - } - } - if (CollectionUtils.isNotEmpty(editFormIdSet)) { - List editableDatasourceList = - onlineDatasourceService.getOnlineDatasourceListByFormIds(editFormIdSet); - for (OnlineDatasource datasource : editableDatasourceList) { - permData.permCodeSet.add(OnlineUtil.makeEditPermCode(datasource.getVariableName())); - for (String permUrl : onlineProperties.getEditUrlList()) { - permData.permUrlSet.add(permUrl + datasource.getVariableName()); - } - } - } - // 这个非常非常重要,不能删除。因为在线票单的url前缀是可以配置的,那么表单字典接口的url也是动态。 - // 所以就不能把这个字典列表接口放到数据库的白名单表中。 - permData.permUrlSet.add(onlineProperties.getUrlPrefix() + "/onlineOperation/listDict"); - permData.permUrlSet.add(onlineProperties.getUrlPrefix() + "/onlineForm/render"); - return permData; - } - - static class OnlinePermData { - public final Set permCodeSet = new HashSet<>(); - public final Set permUrlSet = new HashSet<>(); - } -} diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/controller/LoginUserController.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/controller/LoginUserController.java deleted file mode 100644 index a3cb16af..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/controller/LoginUserController.java +++ /dev/null @@ -1,83 +0,0 @@ -package com.orangeforms.webadmin.upms.controller; - -import cn.hutool.core.bean.BeanUtil; -import cn.hutool.core.util.StrUtil; -import com.alibaba.fastjson.JSON; -import com.orangeforms.common.core.annotation.MyRequestBody; -import com.orangeforms.common.core.object.*; -import com.orangeforms.common.core.util.RedisKeyUtil; -import io.swagger.annotations.Api; -import lombok.extern.slf4j.Slf4j; -import org.redisson.api.RBucket; -import org.redisson.api.RedissonClient; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RestController; - -import java.util.*; - -/** - * 在线用户控制器对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Api(tags = "在线用户接口") -@Slf4j -@RestController -@RequestMapping("/admin/upms/loginUser") -public class LoginUserController { - - @Autowired - private RedissonClient redissonClient; - - /** - * 显示在线用户列表。 - * - * @param loginName 登录名过滤。 - * @param pageParam 分页参数。 - * @return 登录用户信息列表。 - */ - @PostMapping("/list") - public ResponseResult> list( - @MyRequestBody String loginName, @MyRequestBody MyPageParam pageParam) { - int queryCount = pageParam.getPageNum() * pageParam.getPageSize(); - int skipCount = (pageParam.getPageNum() - 1) * pageParam.getPageSize(); - String patternKey; - if (StrUtil.isBlank(loginName)) { - patternKey = RedisKeyUtil.getSessionIdPrefix() + "*"; - } else { - patternKey = RedisKeyUtil.getSessionIdPrefix(loginName) + "*"; - } - List loginUserInfoList = new LinkedList<>(); - Iterable keys = redissonClient.getKeys().getKeysByPattern(patternKey); - for (String key : keys) { - loginUserInfoList.add(this.buildTokenDataByRedisKey(key)); - } - loginUserInfoList.sort((o1, o2) -> (int) (o2.getLoginTime().getTime() - o1.getLoginTime().getTime())); - int toIndex = Math.min(skipCount + pageParam.getPageSize(), loginUserInfoList.size()); - List resultList = loginUserInfoList.subList(skipCount, toIndex); - return ResponseResult.success(new MyPageData<>(resultList, (long) loginUserInfoList.size())); - } - - /** - * 强制下线指定登录会话。 - * - * @param sessionId 待强制下线的SessionId。 - * @return 应答结果对象。 - */ - @PostMapping("/delete") - public ResponseResult delete(@MyRequestBody String sessionId) { - // 为了保证被剔除用户正在进行的操作不被干扰,这里只是删除sessionIdKey即可,这样可以使强制下线操作更加平滑。 - // 比如,如果删除操作权限或数据权限的redis session key,那么正在请求数据的操作就会报错。 - redissonClient.getBucket(RedisKeyUtil.makeSessionIdKey(sessionId)).delete(); - return ResponseResult.success(); - } - - private LoginUserInfo buildTokenDataByRedisKey(String key) { - RBucket sessionData = redissonClient.getBucket(key); - TokenData tokenData = JSON.parseObject(sessionData.get(), TokenData.class); - return BeanUtil.copyProperties(tokenData, LoginUserInfo.class); - } -} diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/controller/SysDataPermController.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/controller/SysDataPermController.java deleted file mode 100644 index 2f396b8f..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/controller/SysDataPermController.java +++ /dev/null @@ -1,293 +0,0 @@ -package com.orangeforms.webadmin.upms.controller; - -import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; -import io.swagger.annotations.Api; -import com.alibaba.fastjson.TypeReference; -import com.github.pagehelper.Page; -import com.github.pagehelper.page.PageMethod; -import lombok.extern.slf4j.Slf4j; -import com.orangeforms.webadmin.upms.dto.SysDataPermDto; -import com.orangeforms.webadmin.upms.dto.SysUserDto; -import com.orangeforms.webadmin.upms.vo.SysDataPermVo; -import com.orangeforms.webadmin.upms.vo.SysUserVo; -import com.orangeforms.webadmin.upms.model.SysDataPerm; -import com.orangeforms.webadmin.upms.model.SysUser; -import com.orangeforms.webadmin.upms.service.SysDataPermService; -import com.orangeforms.webadmin.upms.service.SysUserService; -import com.orangeforms.common.core.validator.UpdateGroup; -import com.orangeforms.common.core.constant.ErrorCodeEnum; -import com.orangeforms.common.core.object.*; -import com.orangeforms.common.core.util.*; -import com.orangeforms.common.core.annotation.MyRequestBody; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.*; - -import javax.validation.groups.Default; -import java.util.*; -import java.util.stream.Collectors; - -/** - * 数据权限接口控制器对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Api(tags = "数据权限管理接口") -@Slf4j -@RestController -@RequestMapping("/admin/upms/sysDataPerm") -public class SysDataPermController { - - @Autowired - private SysDataPermService sysDataPermService; - @Autowired - private SysUserService sysUserService; - - /** - * 添加新数据权限操作。 - * - * @param sysDataPermDto 新增对象。 - * @param deptIdListString 数据权限关联的部门Id列表,多个之间逗号分隔。 - * @return 应答结果对象。包含新增数据权限对象的主键Id。 - */ - @ApiOperationSupport(ignoreParameters = { - "sysDataPermDto.dataPermId", - "sysDataPermDto.createTimeStart", - "sysDataPermDto.createTimeEnd", - "sysDataPermDto.searchString"}) - @PostMapping("/add") - public ResponseResult add( - @MyRequestBody SysDataPermDto sysDataPermDto, @MyRequestBody String deptIdListString) { - String errorMessage = MyCommonUtil.getModelValidationError(sysDataPermDto); - if (errorMessage != null) { - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - SysDataPerm sysDataPerm = MyModelUtil.copyTo(sysDataPermDto, SysDataPerm.class); - CallResult result = sysDataPermService.verifyRelatedData(sysDataPerm, deptIdListString); - if (!result.isSuccess()) { - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, result.getErrorMessage()); - } - Set deptIdSet = null; - if (result.getData() != null) { - deptIdSet = result.getData().getObject("deptIdSet", new TypeReference>(){}); - } - sysDataPermService.saveNew(sysDataPerm, deptIdSet); - return ResponseResult.success(sysDataPerm.getDataPermId()); - } - - /** - * 更新数据权限操作。 - * - * @param sysDataPermDto 更新的数据权限对象。 - * @param deptIdListString 数据权限关联的部门Id列表,多个之间逗号分隔。 - * @return 应答结果对象。 - */ - @ApiOperationSupport(ignoreParameters = { - "sysDataPermDto.createTimeStart", - "sysDataPermDto.createTimeEnd", - "sysDataPermDto.searchString"}) - @PostMapping("/update") - public ResponseResult update( - @MyRequestBody SysDataPermDto sysDataPermDto, @MyRequestBody String deptIdListString) { - String errorMessage = MyCommonUtil.getModelValidationError(sysDataPermDto, Default.class, UpdateGroup.class); - if (errorMessage != null) { - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - SysDataPerm originalSysDataPerm = sysDataPermService.getById(sysDataPermDto.getDataPermId()); - if (originalSysDataPerm == null) { - errorMessage = "数据验证失败,当前数据权限并不存在,请刷新后重试!"; - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST, errorMessage); - } - SysDataPerm sysDataPerm = MyModelUtil.copyTo(sysDataPermDto, SysDataPerm.class); - CallResult result = sysDataPermService.verifyRelatedData(sysDataPerm, deptIdListString); - if (!result.isSuccess()) { - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, result.getErrorMessage()); - } - Set deptIdSet = null; - if (result.getData() != null) { - deptIdSet = result.getData().getObject("deptIdSet", new TypeReference>(){}); - } - if (!sysDataPermService.update(sysDataPerm, originalSysDataPerm, deptIdSet)) { - errorMessage = "更新失败,数据不存在,请刷新后重试!"; - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST, errorMessage); - } - return ResponseResult.success(); - } - - /** - * 删除数据权限操作。 - * - * @param dataPermId 待删除数据权限主键Id。 - * @return 应答数据结果。 - */ - @PostMapping("/delete") - public ResponseResult delete(@MyRequestBody Long dataPermId) { - if (MyCommonUtil.existBlankArgument(dataPermId)) { - return ResponseResult.error(ErrorCodeEnum.ARGUMENT_NULL_EXIST); - } - if (!sysDataPermService.remove(dataPermId)) { - String errorMessage = "数据操作失败,数据权限不存在,请刷新后重试!"; - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST, errorMessage); - } - return ResponseResult.success(); - } - - /** - * 查看数据权限列表。 - * - * @param sysDataPermDtoFilter 数据权限查询过滤对象。 - * @param orderParam 排序参数。 - * @param pageParam 分页参数。 - * @return 应答结果对象。包含数据权限列表。 - */ - @PostMapping("/list") - public ResponseResult> list( - @MyRequestBody SysDataPermDto sysDataPermDtoFilter, - @MyRequestBody MyOrderParam orderParam, - @MyRequestBody MyPageParam pageParam) { - if (pageParam != null) { - PageMethod.startPage(pageParam.getPageNum(), pageParam.getPageSize()); - } - SysDataPerm filter = MyModelUtil.copyTo(sysDataPermDtoFilter, SysDataPerm.class); - String orderBy = MyOrderParam.buildOrderBy(orderParam, SysDataPerm.class); - List dataPermList = sysDataPermService.getSysDataPermList(filter, orderBy); - List dataPermVoList = MyModelUtil.copyCollectionTo(dataPermList, SysDataPermVo.class); - long totalCount = 0L; - if (dataPermList instanceof Page) { - totalCount = ((Page) dataPermList).getTotal(); - } - return ResponseResult.success(MyPageUtil.makeResponseData(dataPermVoList, totalCount)); - } - - /** - * 查看单条数据权限详情。 - * - * @param dataPermId 数据权限的主键Id。 - * @return 应答结果对象,包含数据权限的详情。 - */ - @GetMapping("/view") - public ResponseResult view(@RequestParam Long dataPermId) { - if (MyCommonUtil.existBlankArgument(dataPermId)) { - return ResponseResult.error(ErrorCodeEnum.ARGUMENT_NULL_EXIST); - } - SysDataPerm dataPerm = sysDataPermService.getByIdWithRelation(dataPermId, MyRelationParam.full()); - if (dataPerm == null) { - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST); - } - SysDataPermVo dataPermVo = MyModelUtil.copyTo(dataPerm, SysDataPermVo.class); - return ResponseResult.success(dataPermVo); - } - - /** - * 获取不包含指定数据权限Id的用户列表。 - * 用户和数据权限是多对多关系,当前接口将返回没有赋值指定DataPermId的用户列表。可用于给数据权限添加新用户。 - * - * @param dataPermId 数据权限主键Id。 - * @param sysUserDtoFilter 用户数据的过滤对象。 - * @param orderParam 排序参数。 - * @param pageParam 分页参数。 - * @return 应答结果对象,包含用户列表数据。 - */ - @PostMapping("/listNotInDataPermUser") - public ResponseResult> listNotInDataPermUser( - @MyRequestBody Long dataPermId, - @MyRequestBody SysUserDto sysUserDtoFilter, - @MyRequestBody MyOrderParam orderParam, - @MyRequestBody MyPageParam pageParam) { - ResponseResult verifyResult = this.doDataPermUserVerify(dataPermId); - if (!verifyResult.isSuccess()) { - return ResponseResult.errorFrom(verifyResult); - } - if (pageParam != null) { - PageMethod.startPage(pageParam.getPageNum(), pageParam.getPageSize()); - } - SysUser filter = MyModelUtil.copyTo(sysUserDtoFilter, SysUser.class); - String orderBy = MyOrderParam.buildOrderBy(orderParam, SysUser.class); - List userList = - sysUserService.getNotInSysUserListByDataPermId(dataPermId, filter, orderBy); - List userVoList = MyModelUtil.copyCollectionTo(userList, SysUserVo.class); - return ResponseResult.success(MyPageUtil.makeResponseData(userVoList)); - } - - /** - * 拥有指定数据权限的用户列表。 - * - * @param dataPermId 数据权限Id。 - * @param sysUserDtoFilter 用户过滤对象。 - * @param orderParam 排序参数。 - * @param pageParam 分页参数。 - * @return 应答结果对象,包含用户列表数据。 - */ - @PostMapping("/listDataPermUser") - public ResponseResult> listDataPermUser( - @MyRequestBody Long dataPermId, - @MyRequestBody SysUserDto sysUserDtoFilter, - @MyRequestBody MyOrderParam orderParam, - @MyRequestBody MyPageParam pageParam) { - ResponseResult verifyResult = this.doDataPermUserVerify(dataPermId); - if (!verifyResult.isSuccess()) { - return ResponseResult.errorFrom(verifyResult); - } - if (pageParam != null) { - PageMethod.startPage(pageParam.getPageNum(), pageParam.getPageSize()); - } - SysUser filter = MyModelUtil.copyTo(sysUserDtoFilter, SysUser.class); - String orderBy = MyOrderParam.buildOrderBy(orderParam, SysUser.class); - List userList = - sysUserService.getSysUserListByDataPermId(dataPermId, filter, orderBy); - List userVoList = MyModelUtil.copyCollectionTo(userList, SysUserVo.class); - return ResponseResult.success(MyPageUtil.makeResponseData(userVoList)); - } - - private ResponseResult doDataPermUserVerify(Long dataPermId) { - if (MyCommonUtil.existBlankArgument(dataPermId)) { - return ResponseResult.error(ErrorCodeEnum.ARGUMENT_NULL_EXIST); - } - if (!sysDataPermService.existId(dataPermId)) { - return ResponseResult.error(ErrorCodeEnum.INVALID_RELATED_RECORD_ID); - } - return ResponseResult.success(); - } - - /** - * 为指定数据权限添加用户列表。该操作可同时给一批用户赋值数据权限,并在同一事务内完成。 - * - * @param dataPermId 数据权限主键Id。 - * @param userIdListString 逗号分隔的用户Id列表。 - * @return 应答结果对象。 - */ - @PostMapping("/addDataPermUser") - public ResponseResult addDataPermUser( - @MyRequestBody Long dataPermId, @MyRequestBody String userIdListString) { - if (MyCommonUtil.existBlankArgument(dataPermId, userIdListString)) { - return ResponseResult.error(ErrorCodeEnum.ARGUMENT_NULL_EXIST); - } - Set userIdSet = - Arrays.stream(userIdListString.split(",")).map(Long::valueOf).collect(Collectors.toSet()); - if (!sysDataPermService.existId(dataPermId) - || !sysUserService.existUniqueKeyList("userId", userIdSet)) { - return ResponseResult.error(ErrorCodeEnum.INVALID_RELATED_RECORD_ID); - } - sysDataPermService.addDataPermUserList(dataPermId, userIdSet); - return ResponseResult.success(); - } - - /** - * 为指定用户移除指定数据权限。 - * - * @param dataPermId 指定数据权限主键Id。 - * @param userId 指定用户主键Id。 - * @return 应答数据结果。 - */ - @PostMapping("/deleteDataPermUser") - public ResponseResult deleteDataPermUser( - @MyRequestBody Long dataPermId, @MyRequestBody Long userId) { - if (MyCommonUtil.existBlankArgument(dataPermId, userId)) { - return ResponseResult.error(ErrorCodeEnum.ARGUMENT_NULL_EXIST); - } - if (!sysDataPermService.removeDataPermUser(dataPermId, userId)) { - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST); - } - return ResponseResult.success(); - } -} diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/controller/SysDeptController.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/controller/SysDeptController.java deleted file mode 100644 index b20f51f4..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/controller/SysDeptController.java +++ /dev/null @@ -1,375 +0,0 @@ -package com.orangeforms.webadmin.upms.controller; - -import cn.jimmyshi.beanquery.BeanQuery; -import com.github.pagehelper.page.PageMethod; -import com.orangeforms.webadmin.upms.vo.*; -import com.orangeforms.webadmin.upms.dto.*; -import com.orangeforms.webadmin.upms.model.*; -import com.orangeforms.webadmin.upms.service.*; -import com.orangeforms.common.core.object.*; -import com.orangeforms.common.core.util.*; -import com.orangeforms.common.core.constant.*; -import com.orangeforms.common.core.annotation.MyRequestBody; -import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; -import io.swagger.annotations.Api; -import lombok.extern.slf4j.Slf4j; -import org.apache.commons.lang3.ObjectUtils; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.*; - -import java.util.*; -import java.util.stream.Collectors; - -/** - * 部门管理操作控制器类。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Api(tags = "部门管理管理接口") -@Slf4j -@RestController -@RequestMapping("/admin/upms/sysDept") -public class SysDeptController { - - @Autowired - private SysDeptService sysDeptService; - @Autowired - private SysPostService sysPostService; - - /** - * 新增部门管理数据。 - * - * @param sysDeptDto 新增对象。 - * @return 应答结果对象,包含新增对象主键Id。 - */ - @ApiOperationSupport(ignoreParameters = {"sysDeptDto.deptId"}) - @PostMapping("/add") - public ResponseResult add(@MyRequestBody SysDeptDto sysDeptDto) { - String errorMessage = MyCommonUtil.getModelValidationError(sysDeptDto, false); - if (errorMessage != null) { - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - SysDept sysDept = MyModelUtil.copyTo(sysDeptDto, SysDept.class); - // 验证父Id的数据合法性 - SysDept parentSysDept = null; - if (MyCommonUtil.isNotBlankOrNull(sysDept.getParentId())) { - parentSysDept = sysDeptService.getById(sysDept.getParentId()); - if (parentSysDept == null) { - errorMessage = "数据验证失败,关联的父节点并不存在,请刷新后重试!"; - return ResponseResult.error(ErrorCodeEnum.DATA_PARENT_ID_NOT_EXIST, errorMessage); - } - } - sysDept = sysDeptService.saveNew(sysDept, parentSysDept); - return ResponseResult.success(sysDept.getDeptId()); - } - - /** - * 更新部门管理数据。 - * - * @param sysDeptDto 更新对象。 - * @return 应答结果对象。 - */ - @PostMapping("/update") - public ResponseResult update(@MyRequestBody SysDeptDto sysDeptDto) { - String errorMessage = MyCommonUtil.getModelValidationError(sysDeptDto, true); - if (errorMessage != null) { - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - SysDept sysDept = MyModelUtil.copyTo(sysDeptDto, SysDept.class); - SysDept originalSysDept = sysDeptService.getById(sysDept.getDeptId()); - if (originalSysDept == null) { - // NOTE: 修改下面方括号中的话述 - errorMessage = "数据验证失败,当前 [数据] 并不存在,请刷新后重试!"; - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST, errorMessage); - } - // 验证父Id的数据合法性 - if (MyCommonUtil.isNotBlankOrNull(sysDept.getParentId()) - && ObjectUtils.notEqual(sysDept.getParentId(), originalSysDept.getParentId())) { - SysDept parentSysDept = sysDeptService.getById(sysDept.getParentId()); - if (parentSysDept == null) { - // NOTE: 修改下面方括号中的话述 - errorMessage = "数据验证失败,关联的 [父节点] 并不存在,请刷新后重试!"; - return ResponseResult.error(ErrorCodeEnum.DATA_PARENT_ID_NOT_EXIST, errorMessage); - } - } - if (!sysDeptService.update(sysDept, originalSysDept)) { - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST); - } - return ResponseResult.success(); - } - - /** - * 删除部门管理数据。 - * - * @param deptId 删除对象主键Id。 - * @return 应答结果对象。 - */ - @PostMapping("/delete") - public ResponseResult delete(@MyRequestBody Long deptId) { - String errorMessage; - if (MyCommonUtil.existBlankArgument(deptId)) { - return ResponseResult.error(ErrorCodeEnum.ARGUMENT_NULL_EXIST); - } - // 验证关联Id的数据合法性 - SysDept originalSysDept = sysDeptService.getById(deptId); - if (originalSysDept == null) { - // NOTE: 修改下面方括号中的话述 - errorMessage = "数据验证失败,当前 [对象] 并不存在,请刷新后重试!"; - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST, errorMessage); - } - if (sysDeptService.hasChildren(deptId)) { - // NOTE: 修改下面方括号中的话述 - errorMessage = "数据验证失败,当前 [对象存在子对象] ,请刷新后重试!"; - return ResponseResult.error(ErrorCodeEnum.HAS_CHILDREN_DATA, errorMessage); - } - if (sysDeptService.hasChildrenUser(deptId)) { - errorMessage = "数据验证失败,请先移除部门用户数据后,再删除当前部门!"; - return ResponseResult.error(ErrorCodeEnum.HAS_CHILDREN_DATA, errorMessage); - } - if (!sysDeptService.remove(deptId)) { - errorMessage = "数据操作失败,删除的对象不存在,请刷新后重试!"; - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST, errorMessage); - } - return ResponseResult.success(); - } - - /** - * 列出符合过滤条件的部门管理列表。 - * - * @param sysDeptDtoFilter 过滤对象。 - * @param orderParam 排序参数。 - * @param pageParam 分页参数。 - * @return 应答结果对象,包含查询结果集。 - */ - @PostMapping("/list") - public ResponseResult> list( - @MyRequestBody SysDeptDto sysDeptDtoFilter, - @MyRequestBody MyOrderParam orderParam, - @MyRequestBody MyPageParam pageParam) { - if (pageParam != null) { - PageMethod.startPage(pageParam.getPageNum(), pageParam.getPageSize()); - } - SysDept sysDeptFilter = MyModelUtil.copyTo(sysDeptDtoFilter, SysDept.class); - String orderBy = MyOrderParam.buildOrderBy(orderParam, SysDept.class); - List sysDeptList = sysDeptService.getSysDeptListWithRelation(sysDeptFilter, orderBy); - return ResponseResult.success(MyPageUtil.makeResponseData(sysDeptList, SysDept.INSTANCE)); - } - - /** - * 查看指定部门管理对象详情。 - * - * @param deptId 指定对象主键Id。 - * @return 应答结果对象,包含对象详情。 - */ - @GetMapping("/view") - public ResponseResult view(@RequestParam Long deptId) { - if (MyCommonUtil.existBlankArgument(deptId)) { - return ResponseResult.error(ErrorCodeEnum.ARGUMENT_NULL_EXIST); - } - SysDept sysDept = sysDeptService.getByIdWithRelation(deptId, MyRelationParam.full()); - if (sysDept == null) { - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST); - } - SysDeptVo sysDeptVo = SysDept.INSTANCE.fromModel(sysDept); - return ResponseResult.success(sysDeptVo); - } - - /** - * 列出不与指定部门管理存在多对多关系的 [岗位管理] 列表数据。通常用于查看添加新 [岗位管理] 对象的候选列表。 - * - * @param deptId 主表关联字段。 - * @param sysPostDtoFilter [岗位管理] 过滤对象。 - * @param orderParam 排序参数。 - * @param pageParam 分页参数。 - * @return 应答结果对象,返回符合条件的数据列表。 - */ - @PostMapping("/listNotInSysDeptPost") - public ResponseResult> listNotInSysDeptPost( - @MyRequestBody Long deptId, - @MyRequestBody SysPostDto sysPostDtoFilter, - @MyRequestBody MyOrderParam orderParam, - @MyRequestBody MyPageParam pageParam) { - if (MyCommonUtil.isNotBlankOrNull(deptId) && !sysDeptService.existId(deptId)) { - return ResponseResult.error(ErrorCodeEnum.INVALID_RELATED_RECORD_ID); - } - if (pageParam != null) { - PageMethod.startPage(pageParam.getPageNum(), pageParam.getPageSize()); - } - SysPost filter = MyModelUtil.copyTo(sysPostDtoFilter, SysPost.class); - String orderBy = MyOrderParam.buildOrderBy(orderParam, SysPost.class); - List sysPostList; - if (MyCommonUtil.isNotBlankOrNull(deptId)) { - sysPostList = sysPostService.getNotInSysPostListByDeptId(deptId, filter, orderBy); - } else { - sysPostList = sysPostService.getSysPostList(filter, orderBy); - sysPostService.buildRelationForDataList(sysPostList, MyRelationParam.dictOnly()); - } - return ResponseResult.success(MyPageUtil.makeResponseData(sysPostList, SysPost.INSTANCE)); - } - - /** - * 列出与指定部门管理存在多对多关系的 [岗位管理] 列表数据。 - * - * @param deptId 主表关联字段。 - * @param sysPostDtoFilter [岗位管理] 过滤对象。 - * @param orderParam 排序参数。 - * @param pageParam 分页参数。 - * @return 应答结果对象,返回符合条件的数据列表。 - */ - @PostMapping("/listSysDeptPost") - public ResponseResult> listSysDeptPost( - @MyRequestBody(required = true) Long deptId, - @MyRequestBody SysPostDto sysPostDtoFilter, - @MyRequestBody MyOrderParam orderParam, - @MyRequestBody MyPageParam pageParam) { - if (!sysDeptService.existId(deptId)) { - return ResponseResult.error(ErrorCodeEnum.INVALID_RELATED_RECORD_ID); - } - if (pageParam != null) { - PageMethod.startPage(pageParam.getPageNum(), pageParam.getPageSize()); - } - SysPost filter = MyModelUtil.copyTo(sysPostDtoFilter, SysPost.class); - String orderBy = MyOrderParam.buildOrderBy(orderParam, SysPost.class); - List sysPostList = sysPostService.getSysPostListByDeptId(deptId, filter, orderBy); - return ResponseResult.success(MyPageUtil.makeResponseData(sysPostList, SysPost.INSTANCE)); - } - - /** - * 批量添加部门管理和 [岗位管理] 对象的多对多关联关系数据。 - * - * @param deptId 主表主键Id。 - * @param sysDeptPostDtoList 关联对象列表。 - * @return 应答结果对象。 - */ - @PostMapping("/addSysDeptPost") - public ResponseResult addSysDeptPost( - @MyRequestBody Long deptId, - @MyRequestBody(elementType = SysDeptPostDto.class) List sysDeptPostDtoList) { - if (MyCommonUtil.existBlankArgument(deptId, sysDeptPostDtoList)) { - return ResponseResult.error(ErrorCodeEnum.ARGUMENT_NULL_EXIST); - } - String errorMessage = MyCommonUtil.getModelValidationError(sysDeptPostDtoList); - if (errorMessage != null) { - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - Set postIdSet = sysDeptPostDtoList.stream().map(SysDeptPostDto::getPostId).collect(Collectors.toSet()); - if (!sysDeptService.existId(deptId) || !sysPostService.existUniqueKeyList("postId", postIdSet)) { - return ResponseResult.error(ErrorCodeEnum.INVALID_RELATED_RECORD_ID); - } - List sysDeptPostList = MyModelUtil.copyCollectionTo(sysDeptPostDtoList, SysDeptPost.class); - sysDeptService.addSysDeptPostList(sysDeptPostList, deptId); - return ResponseResult.success(); - } - - /** - * 更新指定部门管理和指定 [岗位管理] 的多对多关联数据。 - * - * @param sysDeptPostDto 对多对中间表对象。 - * @return 应答结果对象。 - */ - @PostMapping("/updateSysDeptPost") - public ResponseResult updateSysDeptPost(@MyRequestBody SysDeptPostDto sysDeptPostDto) { - String errorMessage = MyCommonUtil.getModelValidationError(sysDeptPostDto); - if (errorMessage != null) { - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - SysDeptPost sysDeptPost = MyModelUtil.copyTo(sysDeptPostDto, SysDeptPost.class); - if (!sysDeptService.updateSysDeptPost(sysDeptPost)) { - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST); - } - return ResponseResult.success(); - } - - /** - * 显示部门管理和指定 [岗位管理] 的多对多关联详情数据。 - * - * @param deptId 主表主键Id。 - * @param postId 从表主键Id。 - * @return 应答结果对象,包括中间表详情。 - */ - @GetMapping("/viewSysDeptPost") - public ResponseResult viewSysDeptPost(@RequestParam Long deptId, @RequestParam Long postId) { - if (MyCommonUtil.existBlankArgument(deptId, postId)) { - return ResponseResult.error(ErrorCodeEnum.ARGUMENT_NULL_EXIST); - } - SysDeptPost sysDeptPost = sysDeptService.getSysDeptPost(deptId, postId); - if (sysDeptPost == null) { - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST); - } - SysDeptPostVo sysDeptPostVo = MyModelUtil.copyTo(sysDeptPost, SysDeptPostVo.class); - return ResponseResult.success(sysDeptPostVo); - } - - /** - * 移除指定部门管理和指定 [岗位管理] 的多对多关联关系。 - * - * @param deptId 主表主键Id。 - * @param postId 从表主键Id。 - * @return 应答结果对象。 - */ - @PostMapping("/deleteSysDeptPost") - public ResponseResult deleteSysDeptPost(@MyRequestBody Long deptId, @MyRequestBody Long postId) { - if (MyCommonUtil.existBlankArgument(deptId, postId)) { - return ResponseResult.error(ErrorCodeEnum.ARGUMENT_NULL_EXIST); - } - if (!sysDeptService.removeSysDeptPost(deptId, postId)) { - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST); - } - return ResponseResult.success(); - } - - /** - * 获取部门岗位多对多关联数据,及其关联的部门和岗位数据。 - * - * @param deptId 部门Id,如果为空,返回全部数据列表。 - * @return 部门岗位多对多关联数据,及其关联的部门和岗位数据 - */ - @GetMapping("/listSysDeptPostWithRelation") - public ResponseResult>> listSysDeptPostWithRelation( - @RequestParam(required = false) Long deptId) { - return ResponseResult.success(sysDeptService.getSysDeptPostListWithRelationByDeptId(deptId)); - } - - /** - * 以字典形式返回全部部门管理数据集合。字典的键值为[deptId, deptName]。 - * 白名单接口,登录用户均可访问。 - * - * @param filter 过滤对象。 - * @return 应答结果对象,包含的数据为 List>,map中包含两条记录,key的值分别是id和name,value对应具体数据。 - */ - @GetMapping("/listDict") - public ResponseResult>> listDict(SysDept filter) { - List resultList = sysDeptService.getListByFilter(filter); - return ResponseResult.success(BeanQuery.select( - "parentId as parentId", "deptId as id", "deptName as name").executeFrom(resultList)); - } - - /** - * 根据字典Id集合,获取查询后的字典数据。 - * - * @param dictIds 字典Id集合。 - * @return 应答结果对象,包含字典形式的数据集合。 - */ - @PostMapping("/listDictByIds") - public ResponseResult>> listDictByIds( - @MyRequestBody(elementType = Long.class) List dictIds) { - List resultList = sysDeptService.getInList(new HashSet<>(dictIds)); - return ResponseResult.success(BeanQuery.select( - "parentId as parentId", "deptId as id", "deptName as name").executeFrom(resultList)); - } - - /** - * 根据父主键Id,以字典的形式返回其下级数据列表。 - * 白名单接口,登录用户均可访问。 - * - * @param parentId 父主键Id。 - * @return 按照字典的形式返回下级数据列表。 - */ - @GetMapping("/listDictByParentId") - public ResponseResult>> listDictByParentId(@RequestParam(required = false) Long parentId) { - List resultList = sysDeptService.getListByParentId("parentId", parentId); - return ResponseResult.success(BeanQuery.select( - "parentId as parentId", "deptId as id", "deptName as name").executeFrom(resultList)); - } -} diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/controller/SysMenuController.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/controller/SysMenuController.java deleted file mode 100644 index c822ee4a..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/controller/SysMenuController.java +++ /dev/null @@ -1,219 +0,0 @@ -package com.orangeforms.webadmin.upms.controller; - -import cn.hutool.core.util.ObjectUtil; -import com.alibaba.fastjson.TypeReference; -import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; -import io.swagger.annotations.Api; -import lombok.extern.slf4j.Slf4j; -import com.orangeforms.webadmin.upms.dto.SysMenuDto; -import com.orangeforms.webadmin.upms.vo.SysMenuVo; -import com.orangeforms.webadmin.upms.model.SysMenu; -import com.orangeforms.webadmin.upms.model.constant.SysMenuType; -import com.orangeforms.webadmin.upms.service.SysMenuService; -import com.orangeforms.common.core.constant.ErrorCodeEnum; -import com.orangeforms.common.core.object.*; -import com.orangeforms.common.core.util.*; -import com.orangeforms.common.core.validator.UpdateGroup; -import com.orangeforms.common.core.annotation.MyRequestBody; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.*; - -import javax.validation.groups.Default; -import java.util.*; - -/** - * 菜单管理接口控制器类。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Api(tags = "菜单管理接口") -@Slf4j -@RestController -@RequestMapping("/admin/upms/sysMenu") -public class SysMenuController { - - @Autowired - private SysMenuService sysMenuService; - - /** - * 添加新菜单操作。 - * - * @param sysMenuDto 新菜单对象。 - * @param permCodeIdListString 与当前菜单Id绑定的权限Id列表,多个权限之间逗号分隔。 - * @return 应答结果对象,包含新增菜单的主键Id。 - */ - @ApiOperationSupport(ignoreParameters = {"sysMenuDto.menuId"}) - @PostMapping("/add") - public ResponseResult add( - @MyRequestBody SysMenuDto sysMenuDto, @MyRequestBody String permCodeIdListString) { - String errorMessage = MyCommonUtil.getModelValidationError(sysMenuDto); - if (errorMessage != null) { - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - SysMenu sysMenu = MyModelUtil.copyTo(sysMenuDto, SysMenu.class); - if (sysMenu.getParentId() != null) { - SysMenu parentSysMenu = sysMenuService.getById(sysMenu.getParentId()); - if (parentSysMenu == null) { - errorMessage = "数据验证失败,关联的父菜单不存在!"; - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - if (parentSysMenu.getOnlineFormId() != null) { - errorMessage = "数据验证失败,不能动态表单菜单添加父菜单!"; - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - } - CallResult result = sysMenuService.verifyRelatedData(sysMenu, null, permCodeIdListString); - if (!result.isSuccess()) { - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, result.getErrorMessage()); - } - Set permCodeIdSet = null; - if (result.getData() != null) { - permCodeIdSet = result.getData().getObject("permCodeIdSet", new TypeReference>(){}); - } - sysMenuService.saveNew(sysMenu, permCodeIdSet); - return ResponseResult.success(sysMenu.getMenuId()); - } - - /** - * 更新菜单数据操作。 - * - * @param sysMenuDto 更新菜单对象。 - * @param permCodeIdListString 与当前菜单Id绑定的权限Id列表,多个权限之间逗号分隔。 - * @return 应答结果对象。 - */ - @PostMapping("/update") - public ResponseResult update( - @MyRequestBody SysMenuDto sysMenuDto, @MyRequestBody String permCodeIdListString) { - String errorMessage = MyCommonUtil.getModelValidationError(sysMenuDto, Default.class, UpdateGroup.class); - if (errorMessage != null) { - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - SysMenu originalSysMenu = sysMenuService.getById(sysMenuDto.getMenuId()); - if (originalSysMenu == null) { - errorMessage = "数据验证失败,当前菜单并不存在,请刷新后重试!"; - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST, errorMessage); - } - SysMenu sysMenu = MyModelUtil.copyTo(sysMenuDto, SysMenu.class); - if (ObjectUtil.notEqual(originalSysMenu.getOnlineFormId(), sysMenu.getOnlineFormId())) { - if (originalSysMenu.getOnlineFormId() == null) { - errorMessage = "数据验证失败,不能为当前菜单添加在线表单Id属性!"; - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - if (sysMenu.getOnlineFormId() == null) { - errorMessage = "数据验证失败,不能去掉当前菜单的在线表单Id属性!"; - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - } - if (originalSysMenu.getOnlineFormId() != null - && originalSysMenu.getMenuType().equals(SysMenuType.TYPE_BUTTON)) { - errorMessage = "数据验证失败,在线表单的内置菜单不能编辑!"; - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - CallResult result = sysMenuService.verifyRelatedData(sysMenu, originalSysMenu, permCodeIdListString); - if (!result.isSuccess()) { - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, result.getErrorMessage()); - } - Set permCodeIdSet = null; - if (result.getData() != null) { - permCodeIdSet = result.getData().getObject("permCodeIdSet", new TypeReference>(){}); - } - if (!sysMenuService.update(sysMenu, originalSysMenu, permCodeIdSet)) { - errorMessage = "数据验证失败,当前权限字并不存在,请刷新后重试!"; - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST, errorMessage); - } - return ResponseResult.success(); - } - - /** - * 删除指定菜单操作。 - * - * @param menuId 指定菜单主键Id。 - * @return 应答结果对象。 - */ - @PostMapping("/delete") - public ResponseResult delete(@MyRequestBody Long menuId) { - if (MyCommonUtil.existBlankArgument(menuId)) { - return ResponseResult.error(ErrorCodeEnum.ARGUMENT_NULL_EXIST); - } - String errorMessage; - SysMenu menu = sysMenuService.getById(menuId); - if (menu == null) { - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST); - } - if (menu.getOnlineFormId() != null && menu.getMenuType().equals(SysMenuType.TYPE_BUTTON)) { - errorMessage = "数据验证失败,在线表单的内置菜单不能删除!"; - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - // 对于在线表单,无需进行子菜单的验证,而是在删除的时候,连同子菜单一起删除。 - if (menu.getOnlineFormId() == null && sysMenuService.hasChildren(menuId)) { - errorMessage = "数据验证失败,当前菜单存在下级菜单!"; - return ResponseResult.error(ErrorCodeEnum.HAS_CHILDREN_DATA, errorMessage); - } - if (!sysMenuService.remove(menu)) { - errorMessage = "数据操作失败,菜单不存在,请刷新后重试!"; - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST, errorMessage); - } - return ResponseResult.success(); - } - - /** - * 获取全部菜单列表。 - * - * @return 应答结果对象,包含全部菜单数据列表。 - */ - @PostMapping("/list") - public ResponseResult> list() { - List sysMenuList = sysMenuService.getAllListByOrder("showOrder"); - return ResponseResult.success(MyModelUtil.copyCollectionTo(sysMenuList, SysMenuVo.class)); - } - - /** - * 查看指定菜单数据详情。 - * - * @param menuId 指定菜单主键Id。 - * @return 应答结果对象,包含菜单详情。 - */ - @GetMapping("/view") - public ResponseResult view(@RequestParam Long menuId) { - if (MyCommonUtil.existBlankArgument(menuId)) { - return ResponseResult.error(ErrorCodeEnum.ARGUMENT_NULL_EXIST); - } - SysMenu sysMenu = sysMenuService.getByIdWithRelation(menuId, MyRelationParam.full()); - if (sysMenu == null) { - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST); - } - SysMenuVo sysMenuVo = MyModelUtil.copyTo(sysMenu, SysMenuVo.class); - return ResponseResult.success(sysMenuVo); - } - - /** - * 查询菜单的权限资源地址列表。同时返回详细的分配路径。 - * - * @param menuId 菜单Id。 - * @param url 权限资源地址过滤条件。 - * @return 应答对象,包含从菜单到权限资源的权限分配路径信息的查询结果列表。 - */ - @GetMapping("/listSysPermWithDetail") - public ResponseResult>> listSysPermWithDetail(Long menuId, String url) { - if (MyCommonUtil.isBlankOrNull(menuId)) { - return ResponseResult.error(ErrorCodeEnum.ARGUMENT_NULL_EXIST); - } - return ResponseResult.success(sysMenuService.getSysPermListWithDetail(menuId, url)); - } - - /** - * 查询菜单的用户列表。同时返回详细的分配路径。 - * - * @param menuId 菜单Id。 - * @param loginName 登录名。 - * @return 应答对象,包含从菜单到用户的完整权限分配路径信息的查询结果列表。 - */ - @GetMapping("/listSysUserWithDetail") - public ResponseResult>> listSysUserWithDetail(Long menuId, String loginName) { - if (MyCommonUtil.isBlankOrNull(menuId)) { - return ResponseResult.error(ErrorCodeEnum.ARGUMENT_NULL_EXIST); - } - return ResponseResult.success(sysMenuService.getSysUserListWithDetail(menuId, loginName)); - } -} diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/controller/SysPermCodeController.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/controller/SysPermCodeController.java deleted file mode 100644 index 22291fb0..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/controller/SysPermCodeController.java +++ /dev/null @@ -1,190 +0,0 @@ -package com.orangeforms.webadmin.upms.controller; - -import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; -import io.swagger.annotations.Api; -import com.alibaba.fastjson.TypeReference; -import lombok.extern.slf4j.Slf4j; -import com.orangeforms.webadmin.upms.dto.SysPermCodeDto; -import com.orangeforms.webadmin.upms.vo.SysPermCodeVo; -import com.orangeforms.webadmin.upms.model.SysPermCode; -import com.orangeforms.webadmin.upms.service.SysPermCodeService; -import com.orangeforms.common.core.constant.ErrorCodeEnum; -import com.orangeforms.common.core.object.*; -import com.orangeforms.common.core.util.*; -import com.orangeforms.common.core.validator.UpdateGroup; -import com.orangeforms.common.core.annotation.MyRequestBody; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.dao.DuplicateKeyException; -import org.springframework.web.bind.annotation.*; - -import javax.validation.groups.Default; -import java.util.*; - -/** - * 权限字管理接口控制器类。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Api(tags = "权限字管理接口") -@Slf4j -@RestController -@RequestMapping("/admin/upms/sysPermCode") -public class SysPermCodeController { - - @Autowired - private SysPermCodeService sysPermCodeService; - - /** - * 新增权限字操作。 - * - * @param sysPermCodeDto 新增权限字对象。 - * @param permIdListString 与当前权限Id绑定的权限资源Id列表,多个权限资源之间逗号分隔。 - * @return 应答结果对象,包含新增权限字的主键Id。 - */ - @ApiOperationSupport(ignoreParameters = {"sysPermCodeDto.permCodeId"}) - @PostMapping("/add") - public ResponseResult add( - @MyRequestBody SysPermCodeDto sysPermCodeDto, @MyRequestBody String permIdListString) { - String errorMessage = MyCommonUtil.getModelValidationError(sysPermCodeDto); - if (errorMessage != null) { - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED); - } - SysPermCode sysPermCode = MyModelUtil.copyTo(sysPermCodeDto, SysPermCode.class); - CallResult result = sysPermCodeService.verifyRelatedData(sysPermCode, null, permIdListString); - if (!result.isSuccess()) { - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, result.getErrorMessage()); - } - Set permIdSet = null; - if (result.getData() != null) { - permIdSet = result.getData().getObject("permIdSet", new TypeReference>(){}); - } - sysPermCode = sysPermCodeService.saveNew(sysPermCode, permIdSet); - return ResponseResult.success(sysPermCode.getPermCodeId()); - } - - /** - * 更新权限字操作。 - * - * @param sysPermCodeDto 更新权限字对象。 - * @param permIdListString 与当前权限Id绑定的权限资源Id列表,多个权限资源之间逗号分隔。 - * @return 应答结果对象。 - */ - @PostMapping("/update") - public ResponseResult update( - @MyRequestBody SysPermCodeDto sysPermCodeDto, @MyRequestBody String permIdListString) { - String errorMessage = MyCommonUtil.getModelValidationError(sysPermCodeDto, Default.class, UpdateGroup.class); - if (errorMessage != null) { - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - SysPermCode originalSysPermCode = sysPermCodeService.getById(sysPermCodeDto.getPermCodeId()); - if (originalSysPermCode == null) { - errorMessage = "数据验证失败,当前权限字并不存在,请刷新后重试!"; - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST, errorMessage); - } - SysPermCode sysPermCode = MyModelUtil.copyTo(sysPermCodeDto, SysPermCode.class); - CallResult result = sysPermCodeService.verifyRelatedData(sysPermCode, originalSysPermCode, permIdListString); - if (!result.isSuccess()) { - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, result.getErrorMessage()); - } - Set permIdSet = null; - if (result.getData() != null) { - permIdSet = result.getData().getObject("permIdSet", new TypeReference>(){}); - } - try { - if (!sysPermCodeService.update(sysPermCode, originalSysPermCode, permIdSet)) { - errorMessage = "数据验证失败,当前权限字并不存在,请刷新后重试!"; - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST, errorMessage); - } - } catch (DuplicateKeyException e) { - errorMessage = "数据操作失败,权限字编码已经存在!"; - return ResponseResult.error(ErrorCodeEnum.DUPLICATED_UNIQUE_KEY, errorMessage); - } - return ResponseResult.success(); - } - - /** - * 删除指定权限字操作。 - * - * @param permCodeId 指定的权限字主键Id。 - * @return 应答结果对象。 - */ - @PostMapping("/delete") - public ResponseResult delete(@MyRequestBody Long permCodeId) { - if (MyCommonUtil.existBlankArgument(permCodeId)) { - return ResponseResult.error(ErrorCodeEnum.ARGUMENT_NULL_EXIST); - } - String errorMessage; - if (sysPermCodeService.hasChildren(permCodeId)) { - errorMessage = "数据验证失败,当前权限字存在下级权限字!"; - return ResponseResult.error(ErrorCodeEnum.HAS_CHILDREN_DATA, errorMessage); - } - if (!sysPermCodeService.remove(permCodeId)) { - errorMessage = "数据操作失败,权限字不存在,请刷新后重试!"; - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST, errorMessage); - } - return ResponseResult.success(); - } - - /** - * 查看权限字列表。 - * - * @return 应答结果对象,包含权限字列表。 - */ - @PostMapping("/list") - public ResponseResult> list() { - List sysPermCodeList = - sysPermCodeService.getAllListByOrder("permCodeType", "showOrder"); - return ResponseResult.success(MyModelUtil.copyCollectionTo(sysPermCodeList, SysPermCodeVo.class)); - } - - /** - * 查看权限字对象详情。 - * - * @param permCodeId 指定权限字主键Id。 - * @return 应答结果对象,包含权限字对象详情。 - */ - @GetMapping("/view") - public ResponseResult view(@RequestParam Long permCodeId) { - if (MyCommonUtil.existBlankArgument(permCodeId)) { - return ResponseResult.error(ErrorCodeEnum.ARGUMENT_NULL_EXIST); - } - SysPermCode sysPermCode = - sysPermCodeService.getByIdWithRelation(permCodeId, MyRelationParam.full()); - if (sysPermCode == null) { - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST); - } - SysPermCodeVo sysPermCodeVo = MyModelUtil.copyTo(sysPermCode, SysPermCodeVo.class); - return ResponseResult.success(sysPermCodeVo); - } - - /** - * 查询权限字的用户列表。同时返回详细的分配路径。 - * - * @param permCodeId 权限字Id。 - * @param loginName 登录名。 - * @return 应答对象。包含从权限字到用户的完整权限分配路径信息的查询结果列表。 - */ - @GetMapping("/listSysUserWithDetail") - public ResponseResult>> listSysUserWithDetail(Long permCodeId, String loginName) { - if (MyCommonUtil.isBlankOrNull(permCodeId)) { - return ResponseResult.error(ErrorCodeEnum.ARGUMENT_NULL_EXIST); - } - return ResponseResult.success(sysPermCodeService.getSysUserListWithDetail(permCodeId, loginName)); - } - - /** - * 查询权限字的角色列表。同时返回详细的分配路径。 - * - * @param permCodeId 权限字Id。 - * @param roleName 角色名。 - * @return 应答对象。包含从权限字到角色的权限分配路径信息的查询结果列表。 - */ - @GetMapping("/listSysRoleWithDetail") - public ResponseResult>> listSysRoleWithDetail(Long permCodeId, String roleName) { - if (MyCommonUtil.isBlankOrNull(permCodeId)) { - return ResponseResult.error(ErrorCodeEnum.ARGUMENT_NULL_EXIST); - } - return ResponseResult.success(sysPermCodeService.getSysRoleListWithDetail(permCodeId, roleName)); - } -} diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/controller/SysPermController.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/controller/SysPermController.java deleted file mode 100644 index e6aa7d3a..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/controller/SysPermController.java +++ /dev/null @@ -1,191 +0,0 @@ -package com.orangeforms.webadmin.upms.controller; - -import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; -import io.swagger.annotations.Api; -import com.github.pagehelper.Page; -import com.github.pagehelper.page.PageMethod; -import lombok.extern.slf4j.Slf4j; -import com.orangeforms.webadmin.upms.dto.SysPermDto; -import com.orangeforms.webadmin.upms.vo.SysPermVo; -import com.orangeforms.webadmin.upms.model.SysPerm; -import com.orangeforms.webadmin.upms.service.SysPermService; -import com.orangeforms.common.core.constant.ErrorCodeEnum; -import com.orangeforms.common.core.object.*; -import com.orangeforms.common.core.util.*; -import com.orangeforms.common.core.validator.UpdateGroup; -import com.orangeforms.common.core.annotation.MyRequestBody; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.*; - -import javax.validation.groups.Default; -import java.util.List; -import java.util.Map; - -/** - * 权限资源管理接口控制器类。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Api(tags = "权限资源管理接口") -@Slf4j -@RestController -@RequestMapping("/admin/upms/sysPerm") -public class SysPermController { - - @Autowired - private SysPermService sysPermService; - - /** - * 新增权限资源操作。 - * - * @param sysPermDto 新增权限资源对象。 - * @return 应答结果对象,包含新增权限资源的主键Id。 - */ - @ApiOperationSupport(ignoreParameters = {"sysPermDto.permId"}) - @PostMapping("/add") - public ResponseResult add(@MyRequestBody SysPermDto sysPermDto) { - String errorMessage = MyCommonUtil.getModelValidationError(sysPermDto); - if (errorMessage != null) { - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - SysPerm sysPerm = MyModelUtil.copyTo(sysPermDto, SysPerm.class); - CallResult result = sysPermService.verifyRelatedData(sysPerm, null); - if (!result.isSuccess()) { - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, result.getErrorMessage()); - } - sysPerm = sysPermService.saveNew(sysPerm); - return ResponseResult.success(sysPerm.getPermId()); - } - - /** - * 更新权限资源操作。 - * - * @param sysPermDto 更新权限资源对象。 - * @return 应答结果对象,包含更新权限资源的主键Id。 - */ - @PostMapping("/update") - public ResponseResult update(@MyRequestBody SysPermDto sysPermDto) { - String errorMessage = MyCommonUtil.getModelValidationError(sysPermDto, Default.class, UpdateGroup.class); - if (errorMessage != null) { - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - SysPerm originalPerm = sysPermService.getById(sysPermDto.getPermId()); - if (originalPerm == null) { - errorMessage = "数据验证失败,当前权限资源并不存在,请刷新后重试!"; - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST, errorMessage); - } - SysPerm sysPerm = MyModelUtil.copyTo(sysPermDto, SysPerm.class); - CallResult result = sysPermService.verifyRelatedData(sysPerm, originalPerm); - if (!result.isSuccess()) { - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, result.getErrorMessage()); - } - sysPermService.update(sysPerm, originalPerm); - return ResponseResult.success(); - } - - /** - * 删除指定权限资源操作。 - * - * @param permId 指定的权限资源主键Id。 - * @return 应答结果对象。 - */ - @PostMapping("/delete") - public ResponseResult delete(@MyRequestBody Long permId) { - if (MyCommonUtil.existBlankArgument(permId)) { - return ResponseResult.error(ErrorCodeEnum.ARGUMENT_NULL_EXIST); - } - if (!sysPermService.remove(permId)) { - String errorMessage = "数据操作失败,权限不存在,请刷新后重试!"; - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST, errorMessage); - } - return ResponseResult.success(); - } - - /** - * 查看权限资源对象详情。 - * - * @param permId 指定权限资源主键Id。 - * @return 应答结果对象,包含权限资源对象详情。 - */ - @GetMapping("/view") - public ResponseResult view(@RequestParam Long permId) { - if (MyCommonUtil.existBlankArgument(permId)) { - return ResponseResult.error(ErrorCodeEnum.ARGUMENT_NULL_EXIST); - } - SysPerm perm = sysPermService.getById(permId); - if (perm == null) { - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST); - } - SysPermVo permVo = MyModelUtil.copyTo(perm, SysPermVo.class); - return ResponseResult.success(permVo); - } - - /** - * 查看权限资源列表。 - * - * @param sysPermDtoFilter 过滤对象。 - * @param pageParam 分页参数。 - * @return 应答结果对象,包含权限资源列表。 - */ - @PostMapping("/list") - public ResponseResult> list( - @MyRequestBody SysPermDto sysPermDtoFilter, @MyRequestBody MyPageParam pageParam) { - if (pageParam != null) { - PageMethod.startPage(pageParam.getPageNum(), pageParam.getPageSize()); - } - SysPerm filter = MyModelUtil.copyTo(sysPermDtoFilter, SysPerm.class); - List permList = sysPermService.getPermListWithRelation(filter); - List permVoList = MyModelUtil.copyCollectionTo(permList, SysPermVo.class); - long totalCount = 0L; - if (permList instanceof Page) { - totalCount = ((Page) permList).getTotal(); - } - return ResponseResult.success(MyPageUtil.makeResponseData(permVoList, totalCount)); - } - - /** - * 查询权限资源地址的用户列表。同时返回详细的分配路径。 - * - * @param permId 权限资源Id。 - * @param loginName 登录名。 - * @return 应答对象。包含从权限资源到用户的完整权限分配路径信息的查询结果列表。 - */ - @GetMapping("/listSysUserWithDetail") - public ResponseResult>> listSysUserWithDetail(Long permId, String loginName) { - if (MyCommonUtil.isBlankOrNull(permId)) { - return ResponseResult.error(ErrorCodeEnum.ARGUMENT_NULL_EXIST); - } - return ResponseResult.success(sysPermService.getSysUserListWithDetail(permId, loginName)); - } - - /** - * 查询权限资源地址的角色列表。同时返回详细的分配路径。 - * - * @param permId 权限资源Id。 - * @param roleName 角色名。 - * @return 应答对象。包含从权限资源到角色的权限分配路径信息的查询结果列表。 - */ - @GetMapping("/listSysRoleWithDetail") - public ResponseResult>> listSysRoleWithDetail(Long permId, String roleName) { - if (MyCommonUtil.isBlankOrNull(permId)) { - return ResponseResult.error(ErrorCodeEnum.ARGUMENT_NULL_EXIST); - } - return ResponseResult.success(sysPermService.getSysRoleListWithDetail(permId, roleName)); - } - - /** - * 查询权限资源地址的菜单列表。同时返回详细的分配路径。 - * - * @param permId 权限资源Id。 - * @param menuName 菜单名。 - * @return 应答对象。包含从权限资源到菜单的权限分配路径信息的查询结果列表。 - */ - @GetMapping("/listSysMenuWithDetail") - public ResponseResult>> listSysMenuWithDetail(Long permId, String menuName) { - if (MyCommonUtil.isBlankOrNull(permId)) { - return ResponseResult.error(ErrorCodeEnum.ARGUMENT_NULL_EXIST); - } - return ResponseResult.success(sysPermService.getSysMenuListWithDetail(permId, menuName)); - } -} diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/controller/SysPermModuleController.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/controller/SysPermModuleController.java deleted file mode 100644 index d8e2e4b9..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/controller/SysPermModuleController.java +++ /dev/null @@ -1,163 +0,0 @@ -package com.orangeforms.webadmin.upms.controller; - -import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; -import io.swagger.annotations.Api; -import lombok.extern.slf4j.Slf4j; -import com.orangeforms.webadmin.upms.dto.SysPermModuleDto; -import com.orangeforms.webadmin.upms.vo.SysPermModuleVo; -import com.orangeforms.webadmin.upms.model.SysPerm; -import com.orangeforms.webadmin.upms.model.SysPermModule; -import com.orangeforms.webadmin.upms.service.SysPermModuleService; -import com.orangeforms.common.core.constant.ErrorCodeEnum; -import com.orangeforms.common.core.object.*; -import com.orangeforms.common.core.util.*; -import com.orangeforms.common.core.validator.UpdateGroup; -import com.orangeforms.common.core.annotation.MyRequestBody; -import org.apache.commons.collections4.CollectionUtils; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.*; - -import javax.validation.groups.Default; -import java.util.HashMap; -import java.util.LinkedList; -import java.util.List; -import java.util.Map; - -/** - * 权限资源模块管理接口控制器类。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Api(tags = "权限资源模块管理接口") -@Slf4j -@RestController -@RequestMapping("/admin/upms/sysPermModule") -public class SysPermModuleController { - - @Autowired - private SysPermModuleService sysPermModuleService; - - /** - * 新增权限资源模块操作。 - * - * @param sysPermModuleDto 新增权限资源模块对象。 - * @return 应答结果对象,包含新增权限资源模块的主键Id。 - */ - @ApiOperationSupport(ignoreParameters = {"sysPermModuleDto.moduleId"}) - @PostMapping("/add") - public ResponseResult add(@MyRequestBody SysPermModuleDto sysPermModuleDto) { - String errorMessage = MyCommonUtil.getModelValidationError(sysPermModuleDto); - if (errorMessage != null) { - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - SysPermModule sysPermModule = MyModelUtil.copyTo(sysPermModuleDto, SysPermModule.class); - if (sysPermModule.getParentId() != null - && sysPermModuleService.getById(sysPermModule.getParentId()) == null) { - errorMessage = "数据验证失败,关联的上级权限模块并不存在,请刷新后重试!"; - return ResponseResult.error(ErrorCodeEnum.DATA_PARENT_ID_NOT_EXIST, errorMessage); - } - sysPermModuleService.saveNew(sysPermModule); - return ResponseResult.success(sysPermModule.getModuleId()); - } - - /** - * 更新权限资源模块操作。 - * - * @param sysPermModuleDto 更新权限资源模块对象。 - * @return 应答结果对象,包含新增权限资源模块的主键Id。 - */ - @PostMapping("/update") - public ResponseResult update(@MyRequestBody SysPermModuleDto sysPermModuleDto) { - String errorMessage = MyCommonUtil.getModelValidationError(sysPermModuleDto, Default.class, UpdateGroup.class); - if (errorMessage != null) { - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - SysPermModule sysPermModule = MyModelUtil.copyTo(sysPermModuleDto, SysPermModule.class); - SysPermModule originalPermModule = sysPermModuleService.getById(sysPermModule.getModuleId()); - if (originalPermModule == null) { - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST); - } - if (sysPermModule.getParentId() != null - && !sysPermModule.getParentId().equals(originalPermModule.getParentId())) { - if (sysPermModuleService.getById(sysPermModule.getParentId()) == null) { - errorMessage = "数据验证失败,关联的上级权限模块并不存在,请刷新后重试!"; - return ResponseResult.error(ErrorCodeEnum.DATA_PARENT_ID_NOT_EXIST, errorMessage); - } - } - if (!sysPermModuleService.update(sysPermModule, originalPermModule)) { - errorMessage = "数据验证失败,当前模块并不存在,请刷新后重试!"; - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST, errorMessage); - } - return ResponseResult.success(); - } - - /** - * 删除指定权限资源模块操作。 - * - * @param moduleId 指定的权限资源模块主键Id。 - * @return 应答结果对象。 - */ - @PostMapping("/delete") - public ResponseResult delete(@MyRequestBody Long moduleId) { - if (MyCommonUtil.existBlankArgument(moduleId)) { - return ResponseResult.error(ErrorCodeEnum.ARGUMENT_NULL_EXIST); - } - String errorMessage; - if (sysPermModuleService.hasChildren(moduleId) - || sysPermModuleService.hasModulePerms(moduleId)) { - errorMessage = "数据验证失败,当前权限模块存在子模块或权限资源,请先删除关联数据!"; - return ResponseResult.error(ErrorCodeEnum.HAS_CHILDREN_DATA, errorMessage); - } - if (!sysPermModuleService.remove(moduleId)) { - errorMessage = "数据操作失败,权限模块不存在,请刷新后重试!"; - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST, errorMessage); - } - return ResponseResult.success(); - } - - /** - * 查看全部权限资源模块列表。 - * - * @return 应答结果对象,包含权限资源模块列表。 - */ - @PostMapping("/list") - public ResponseResult> list() { - List permModuleList = sysPermModuleService.getAllListByOrder("showOrder"); - return ResponseResult.success(MyModelUtil.copyCollectionTo(permModuleList, SysPermModuleVo.class)); - } - - /** - * 列出全部权限资源模块及其下级关联的权限资源列表。 - * - * @return 应答结果对象,包含树状列表,结构为权限资源模块和权限资源之间的树状关系。 - */ - @PostMapping("/listAll") - public ResponseResult>> listAll() { - List sysPermModuleList = sysPermModuleService.getPermModuleAndPermList(); - List> resultList = new LinkedList<>(); - for (SysPermModule sysPermModule : sysPermModuleList) { - Map permModuleMap = new HashMap<>(5); - permModuleMap.put("id", sysPermModule.getModuleId()); - permModuleMap.put("name", sysPermModule.getModuleName()); - permModuleMap.put("type", sysPermModule.getModuleType()); - permModuleMap.put("isPerm", false); - if (MyCommonUtil.isNotBlankOrNull(sysPermModule.getParentId())) { - permModuleMap.put("parentId", sysPermModule.getParentId()); - } - resultList.add(permModuleMap); - if (CollectionUtils.isNotEmpty(sysPermModule.getSysPermList())) { - for (SysPerm sysPerm : sysPermModule.getSysPermList()) { - Map permMap = new HashMap<>(4); - permMap.put("id", sysPerm.getPermId()); - permMap.put("name", sysPerm.getPermName()); - permMap.put("isPerm", true); - permMap.put("url", sysPerm.getUrl()); - permMap.put("parentId", sysPermModule.getModuleId()); - resultList.add(permMap); - } - } - } - return ResponseResult.success(resultList); - } -} diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/controller/SysPostController.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/controller/SysPostController.java deleted file mode 100644 index a8ce9c79..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/controller/SysPostController.java +++ /dev/null @@ -1,173 +0,0 @@ -package com.orangeforms.webadmin.upms.controller; - -import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; -import io.swagger.annotations.Api; -import cn.jimmyshi.beanquery.BeanQuery; -import com.github.pagehelper.page.PageMethod; -import com.orangeforms.common.core.object.*; -import com.orangeforms.common.core.util.*; -import com.orangeforms.common.core.constant.*; -import com.orangeforms.common.core.annotation.MyRequestBody; -import com.orangeforms.common.core.validator.UpdateGroup; -import com.orangeforms.webadmin.upms.dto.SysPostDto; -import com.orangeforms.webadmin.upms.model.SysPost; -import com.orangeforms.webadmin.upms.service.SysPostService; -import com.orangeforms.webadmin.upms.vo.SysPostVo; -import lombok.extern.slf4j.Slf4j; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.*; - -import java.util.*; -import javax.validation.groups.Default; - -/** - * 岗位管理操作控制器类。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Api(tags = "岗位管理操作管理接口") -@Slf4j -@RestController -@RequestMapping("/admin/upms/sysPost") -public class SysPostController { - - @Autowired - private SysPostService sysPostService; - - /** - * 新增岗位管理数据。 - * - * @param sysPostDto 新增对象。 - * @return 应答结果对象,包含新增对象主键Id。 - */ - @ApiOperationSupport(ignoreParameters = {"sysPostDto.postId"}) - @PostMapping("/add") - public ResponseResult add(@MyRequestBody SysPostDto sysPostDto) { - String errorMessage = MyCommonUtil.getModelValidationError(sysPostDto); - if (errorMessage != null) { - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - SysPost sysPost = MyModelUtil.copyTo(sysPostDto, SysPost.class); - sysPost = sysPostService.saveNew(sysPost); - return ResponseResult.success(sysPost.getPostId()); - } - - /** - * 更新岗位管理数据。 - * - * @param sysPostDto 更新对象。 - * @return 应答结果对象。 - */ - @PostMapping("/update") - public ResponseResult update(@MyRequestBody SysPostDto sysPostDto) { - String errorMessage = MyCommonUtil.getModelValidationError(sysPostDto, Default.class, UpdateGroup.class); - if (errorMessage != null) { - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - SysPost sysPost = MyModelUtil.copyTo(sysPostDto, SysPost.class); - SysPost originalSysPost = sysPostService.getById(sysPost.getPostId()); - if (originalSysPost == null) { - // NOTE: 修改下面方括号中的话述 - errorMessage = "数据验证失败,当前 [数据] 并不存在,请刷新后重试!"; - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST, errorMessage); - } - if (!sysPostService.update(sysPost, originalSysPost)) { - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST); - } - return ResponseResult.success(); - } - - /** - * 删除岗位管理数据。 - * - * @param postId 删除对象主键Id。 - * @return 应答结果对象。 - */ - @PostMapping("/delete") - public ResponseResult delete(@MyRequestBody Long postId) { - String errorMessage; - if (MyCommonUtil.existBlankArgument(postId)) { - return ResponseResult.error(ErrorCodeEnum.ARGUMENT_NULL_EXIST); - } - // 验证关联Id的数据合法性 - SysPost originalSysPost = sysPostService.getById(postId); - if (originalSysPost == null) { - // NOTE: 修改下面方括号中的话述 - errorMessage = "数据验证失败,当前 [对象] 并不存在,请刷新后重试!"; - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST, errorMessage); - } - if (!sysPostService.remove(postId)) { - errorMessage = "数据操作失败,删除的对象不存在,请刷新后重试!"; - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST, errorMessage); - } - return ResponseResult.success(); - } - - /** - * 列出符合过滤条件的岗位管理列表。 - * - * @param sysPostDtoFilter 过滤对象。 - * @param orderParam 排序参数。 - * @param pageParam 分页参数。 - * @return 应答结果对象,包含查询结果集。 - */ - @PostMapping("/list") - public ResponseResult> list( - @MyRequestBody SysPostDto sysPostDtoFilter, - @MyRequestBody MyOrderParam orderParam, - @MyRequestBody MyPageParam pageParam) { - if (pageParam != null) { - PageMethod.startPage(pageParam.getPageNum(), pageParam.getPageSize()); - } - SysPost sysPostFilter = MyModelUtil.copyTo(sysPostDtoFilter, SysPost.class); - String orderBy = MyOrderParam.buildOrderBy(orderParam, SysPost.class); - List sysPostList = sysPostService.getSysPostListWithRelation(sysPostFilter, orderBy); - return ResponseResult.success(MyPageUtil.makeResponseData(sysPostList, SysPost.INSTANCE)); - } - - /** - * 查看指定岗位管理对象详情。 - * - * @param postId 指定对象主键Id。 - * @return 应答结果对象,包含对象详情。 - */ - @GetMapping("/view") - public ResponseResult view(@RequestParam Long postId) { - if (MyCommonUtil.existBlankArgument(postId)) { - return ResponseResult.error(ErrorCodeEnum.ARGUMENT_NULL_EXIST); - } - SysPost sysPost = sysPostService.getByIdWithRelation(postId, MyRelationParam.full()); - if (sysPost == null) { - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST); - } - SysPostVo sysPostVo = SysPost.INSTANCE.fromModel(sysPost); - return ResponseResult.success(sysPostVo); - } - - /** - * 以字典形式返回全部岗位管理数据集合。字典的键值为[postId, postName]。 - * 白名单接口,登录用户均可访问。 - * - * @param filter 过滤对象。 - * @return 应答结果对象,包含的数据为 List>,map中包含两条记录,key的值分别是id和name,value对应具体数据。 - */ - @GetMapping("/listDict") - public ResponseResult>> listDict(SysPost filter) { - List resultList = sysPostService.getListByFilter(filter); - return ResponseResult.success(BeanQuery.select("postId as id", "postName as name").executeFrom(resultList)); - } - - /** - * 根据字典Id集合,获取查询后的字典数据。 - * - * @param postIds 字典Id集合。 - * @return 应答结果对象,包含字典形式的数据集合。 - */ - @PostMapping("/listDictByIds") - public ResponseResult>> listDictByIds( - @MyRequestBody(elementType = Long.class) List postIds) { - List resultList = sysPostService.getInList(new HashSet<>(postIds)); - return ResponseResult.success(BeanQuery.select("postId as id", "postName as name").executeFrom(resultList)); - } -} diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/controller/SysRoleController.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/controller/SysRoleController.java deleted file mode 100644 index a4d01c6c..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/controller/SysRoleController.java +++ /dev/null @@ -1,351 +0,0 @@ -package com.orangeforms.webadmin.upms.controller; - -import cn.jimmyshi.beanquery.BeanQuery; -import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; -import io.swagger.annotations.Api; -import com.alibaba.fastjson.TypeReference; -import com.github.pagehelper.Page; -import com.github.pagehelper.page.PageMethod; -import lombok.extern.slf4j.Slf4j; -import com.orangeforms.webadmin.upms.dto.SysRoleDto; -import com.orangeforms.webadmin.upms.dto.SysUserDto; -import com.orangeforms.webadmin.upms.vo.SysRoleVo; -import com.orangeforms.webadmin.upms.vo.SysUserVo; -import com.orangeforms.webadmin.upms.model.SysRole; -import com.orangeforms.webadmin.upms.model.SysUser; -import com.orangeforms.webadmin.upms.model.SysUserRole; -import com.orangeforms.webadmin.upms.service.SysRoleService; -import com.orangeforms.webadmin.upms.service.SysUserService; -import com.orangeforms.common.core.validator.UpdateGroup; -import com.orangeforms.common.core.constant.ErrorCodeEnum; -import com.orangeforms.common.core.object.*; -import com.orangeforms.common.core.util.*; -import com.orangeforms.common.core.annotation.MyRequestBody; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.*; - -import javax.validation.groups.Default; -import java.util.*; -import java.util.stream.Collectors; - -/** - * 角色管理接口控制器类。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Api(tags = "角色管理接口") -@Slf4j -@RestController -@RequestMapping("/admin/upms/sysRole") -public class SysRoleController { - - @Autowired - private SysRoleService sysRoleService; - @Autowired - private SysUserService sysUserService; - - /** - * 新增角色操作。 - * - * @param sysRoleDto 新增角色对象。 - * @param menuIdListString 与当前角色Id绑定的menuId列表,多个menuId之间逗号分隔。 - * @return 应答结果对象,包含新增角色的主键Id。 - */ - @ApiOperationSupport(ignoreParameters = {"sysRoleDto.roleId", "sysRoleDto.createTimeStart", "sysRoleDto.createTimeEnd"}) - @PostMapping("/add") - public ResponseResult add( - @MyRequestBody SysRoleDto sysRoleDto, @MyRequestBody String menuIdListString) { - String errorMessage = MyCommonUtil.getModelValidationError(sysRoleDto); - if (errorMessage != null) { - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - SysRole sysRole = MyModelUtil.copyTo(sysRoleDto, SysRole.class); - CallResult result = sysRoleService.verifyRelatedData(sysRole, null, menuIdListString); - if (!result.isSuccess()) { - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, result.getErrorMessage()); - } - Set menuIdSet = null; - if (result.getData() != null) { - menuIdSet = result.getData().getObject("menuIdSet", new TypeReference>(){}); - } - sysRoleService.saveNew(sysRole, menuIdSet); - return ResponseResult.success(sysRole.getRoleId()); - } - - /** - * 更新角色操作。 - * - * @param sysRoleDto 更新角色对象。 - * @param menuIdListString 与当前角色Id绑定的menuId列表,多个menuId之间逗号分隔。 - * @return 应答结果对象。 - */ - @ApiOperationSupport(ignoreParameters = {"sysRoleDto.createTimeStart", "sysRoleDto.createTimeEnd"}) - @PostMapping("/update") - public ResponseResult update( - @MyRequestBody SysRoleDto sysRoleDto, @MyRequestBody String menuIdListString) { - String errorMessage = MyCommonUtil.getModelValidationError(sysRoleDto, Default.class, UpdateGroup.class); - if (errorMessage != null) { - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - SysRole originalSysRole = sysRoleService.getById(sysRoleDto.getRoleId()); - if (originalSysRole == null) { - errorMessage = "数据验证失败,当前角色并不存在,请刷新后重试!"; - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST, errorMessage); - } - SysRole sysRole = MyModelUtil.copyTo(sysRoleDto, SysRole.class); - CallResult result = sysRoleService.verifyRelatedData(sysRole, originalSysRole, menuIdListString); - if (!result.isSuccess()) { - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, result.getErrorMessage()); - } - Set menuIdSet = null; - if (result.getData() != null) { - menuIdSet = result.getData().getObject("menuIdSet", new TypeReference>(){}); - } - if (!sysRoleService.update(sysRole, originalSysRole, menuIdSet)) { - errorMessage = "更新失败,数据不存在,请刷新后重试!"; - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST, errorMessage); - } - return ResponseResult.success(); - } - - /** - * 删除指定角色操作。 - * - * @param roleId 指定角色主键Id。 - * @return 应答结果对象。 - */ - @PostMapping("/delete") - public ResponseResult delete(@MyRequestBody Long roleId) { - if (MyCommonUtil.existBlankArgument(roleId)) { - return ResponseResult.error(ErrorCodeEnum.ARGUMENT_NULL_EXIST); - } - if (!sysRoleService.remove(roleId)) { - String errorMessage = "数据操作失败,角色不存在,请刷新后重试!"; - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST, errorMessage); - } - return ResponseResult.success(); - } - - /** - * 查看角色列表。 - * - * @param sysRoleDtoFilter 角色过滤对象。 - * @param orderParam 排序参数。 - * @param pageParam 分页参数。 - * @return 应答结果对象,包含角色列表。 - */ - @PostMapping("/list") - public ResponseResult> list( - @MyRequestBody SysRoleDto sysRoleDtoFilter, - @MyRequestBody MyOrderParam orderParam, - @MyRequestBody MyPageParam pageParam) { - if (pageParam != null) { - PageMethod.startPage(pageParam.getPageNum(), pageParam.getPageSize()); - } - SysRole filter = MyModelUtil.copyTo(sysRoleDtoFilter, SysRole.class); - List roleList = sysRoleService.getSysRoleList( - filter, MyOrderParam.buildOrderBy(orderParam, SysRole.class)); - List roleVoList = MyModelUtil.copyCollectionTo(roleList, SysRoleVo.class); - long totalCount = 0L; - if (roleList instanceof Page) { - totalCount = ((Page) roleList).getTotal(); - } - return ResponseResult.success(MyPageUtil.makeResponseData(roleVoList, totalCount)); - } - - /** - * 查看角色详情。 - * - * @param roleId 指定角色主键Id。 - * @return 应答结果对象,包含角色详情对象。 - */ - @GetMapping("/view") - public ResponseResult view(@RequestParam Long roleId) { - if (MyCommonUtil.existBlankArgument(roleId)) { - return ResponseResult.error(ErrorCodeEnum.ARGUMENT_NULL_EXIST); - } - SysRole sysRole = sysRoleService.getByIdWithRelation(roleId, MyRelationParam.full()); - if (sysRole == null) { - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST); - } - SysRoleVo sysRoleVo = MyModelUtil.copyTo(sysRole, SysRoleVo.class); - return ResponseResult.success(sysRoleVo); - } - - /** - * 获取不包含指定角色Id的用户列表。 - * 用户和角色是多对多关系,当前接口将返回没有赋值指定RoleId的用户列表。可用于给角色添加新用户。 - * - * @param roleId 角色主键Id。 - * @param sysUserDtoFilter 用户过滤对象。 - * @param orderParam 排序参数。 - * @param pageParam 分页参数。 - * @return 应答结果对象,包含用户列表数据。 - */ - @PostMapping("/listNotInUserRole") - public ResponseResult> listNotInUserRole( - @MyRequestBody Long roleId, - @MyRequestBody SysUserDto sysUserDtoFilter, - @MyRequestBody MyOrderParam orderParam, - @MyRequestBody MyPageParam pageParam) { - ResponseResult verifyResult = this.doRoleUserVerify(roleId); - if (!verifyResult.isSuccess()) { - return ResponseResult.errorFrom(verifyResult); - } - if (pageParam != null) { - PageMethod.startPage(pageParam.getPageNum(), pageParam.getPageSize()); - } - SysUser filter = MyModelUtil.copyTo(sysUserDtoFilter, SysUser.class); - String orderBy = MyOrderParam.buildOrderBy(orderParam, SysUser.class); - List userList = sysUserService.getNotInSysUserListByRoleId(roleId, filter, orderBy); - List userVoList = MyModelUtil.copyCollectionTo(userList, SysUserVo.class); - return ResponseResult.success(MyPageUtil.makeResponseData(userVoList)); - } - - /** - * 拥有指定角色的用户列表。 - * - * @param roleId 角色主键Id。 - * @param sysUserDtoFilter 用户过滤对象。 - * @param orderParam 排序参数。 - * @param pageParam 分页参数。 - * @return 应答结果对象,包含用户列表数据。 - */ - @PostMapping("/listUserRole") - public ResponseResult> listUserRole( - @MyRequestBody Long roleId, - @MyRequestBody SysUserDto sysUserDtoFilter, - @MyRequestBody MyOrderParam orderParam, - @MyRequestBody MyPageParam pageParam) { - ResponseResult verifyResult = this.doRoleUserVerify(roleId); - if (!verifyResult.isSuccess()) { - return ResponseResult.errorFrom(verifyResult); - } - if (pageParam != null) { - PageMethod.startPage(pageParam.getPageNum(), pageParam.getPageSize()); - } - SysUser filter = MyModelUtil.copyTo(sysUserDtoFilter, SysUser.class); - String orderBy = MyOrderParam.buildOrderBy(orderParam, SysUser.class); - List userList = sysUserService.getSysUserListByRoleId(roleId, filter, orderBy); - List userVoList = MyModelUtil.copyCollectionTo(userList, SysUserVo.class); - return ResponseResult.success(MyPageUtil.makeResponseData(userVoList)); - } - - private ResponseResult doRoleUserVerify(Long roleId) { - if (MyCommonUtil.existBlankArgument(roleId)) { - return ResponseResult.error(ErrorCodeEnum.ARGUMENT_NULL_EXIST); - } - if (!sysRoleService.existId(roleId)) { - return ResponseResult.error(ErrorCodeEnum.INVALID_RELATED_RECORD_ID); - } - return ResponseResult.success(); - } - - /** - * 为指定角色添加用户列表。该操作可同时给一批用户赋值角色,并在同一事务内完成。 - * - * @param roleId 角色主键Id。 - * @param userIdListString 逗号分隔的用户Id列表。 - * @return 应答结果对象。 - */ - @PostMapping("/addUserRole") - public ResponseResult addUserRole( - @MyRequestBody Long roleId, @MyRequestBody String userIdListString) { - if (MyCommonUtil.existBlankArgument(roleId, userIdListString)) { - return ResponseResult.error(ErrorCodeEnum.ARGUMENT_NULL_EXIST); - } - Set userIdSet = Arrays.stream( - userIdListString.split(",")).map(Long::valueOf).collect(Collectors.toSet()); - if (!sysRoleService.existId(roleId) - || !sysUserService.existUniqueKeyList("userId", userIdSet)) { - return ResponseResult.error(ErrorCodeEnum.INVALID_RELATED_RECORD_ID); - } - List userRoleList = new LinkedList<>(); - for (Long userId : userIdSet) { - SysUserRole userRole = new SysUserRole(); - userRole.setRoleId(roleId); - userRole.setUserId(userId); - userRoleList.add(userRole); - } - sysRoleService.addUserRoleList(userRoleList); - return ResponseResult.success(); - } - - /** - * 为指定用户移除指定角色。 - * - * @param roleId 指定角色主键Id。 - * @param userId 指定用户主键Id。 - * @return 应答数据结果。 - */ - @PostMapping("/deleteUserRole") - public ResponseResult deleteUserRole( - @MyRequestBody Long roleId, @MyRequestBody Long userId) { - if (MyCommonUtil.existBlankArgument(roleId, userId)) { - return ResponseResult.error(ErrorCodeEnum.ARGUMENT_NULL_EXIST); - } - if (!sysRoleService.removeUserRole(roleId, userId)) { - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST); - } - return ResponseResult.success(); - } - - /** - * 以字典形式返回全部角色管理数据集合。字典的键值为[roleId, roleName]。 - * 白名单接口,登录用户均可访问。 - * - * @param filter 过滤对象。 - * @return 应答结果对象,包含的数据为 List>,map中包含两条记录,key的值分别是id和name,value对应具体数据。 - */ - @GetMapping("/listDict") - public ResponseResult>> listDict(SysRole filter) { - List resultList = sysRoleService.getListByFilter(filter); - return ResponseResult.success(BeanQuery.select( - "roleId as id", "roleName as name").executeFrom(resultList)); - } - - /** - * 根据字典Id集合,获取查询后的字典数据。 - * - * @param dictIds 字典Id集合。 - * @return 应答结果对象,包含字典形式的数据集合。 - */ - @PostMapping("/listDictByIds") - public ResponseResult>> listDictByIds( - @MyRequestBody(elementType = Long.class) List dictIds) { - List resultList = sysRoleService.getInList(new HashSet<>(dictIds)); - return ResponseResult.success(BeanQuery.select( - "roleId as id", "roleName as name").executeFrom(resultList)); - } - - /** - * 查询角色的权限资源地址列表。同时返回详细的分配路径。 - * - * @param roleId 角色Id。 - * @param url url过滤条件。 - * @return 应答对象,包含从角色到权限资源的完整权限分配路径信息的查询结果列表。 - */ - @GetMapping("/listSysPermWithDetail") - public ResponseResult>> listSysPermByWithDetail(Long roleId, String url) { - if (MyCommonUtil.isBlankOrNull(roleId)) { - return ResponseResult.error(ErrorCodeEnum.ARGUMENT_NULL_EXIST); - } - return ResponseResult.success(sysRoleService.getSysPermListWithDetail(roleId, url)); - } - - /** - * 查询角色的权限字列表。同时返回详细的分配路径。 - * - * @param roleId 角色Id。 - * @param permCode 权限字名称过滤条件。 - * @return 应答对象,包含从角色到权限字的权限分配路径信息的查询结果列表。 - */ - @GetMapping("/listSysPermCodeWithDetail") - public ResponseResult>> listSysPermCodeWithDetail(Long roleId, String permCode) { - if (MyCommonUtil.isBlankOrNull(roleId)) { - return ResponseResult.error(ErrorCodeEnum.ARGUMENT_NULL_EXIST); - } - return ResponseResult.success(sysRoleService.getSysPermCodeListWithDetail(roleId, permCode)); - } -} diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/controller/SysUserController.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/controller/SysUserController.java deleted file mode 100644 index fa4aa233..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/controller/SysUserController.java +++ /dev/null @@ -1,248 +0,0 @@ -package com.orangeforms.webadmin.upms.controller; - -import com.alibaba.fastjson.TypeReference; -import com.github.pagehelper.page.PageMethod; -import com.orangeforms.webadmin.upms.vo.*; -import com.orangeforms.webadmin.upms.dto.*; -import com.orangeforms.webadmin.upms.model.*; -import com.orangeforms.webadmin.upms.service.*; -import com.orangeforms.common.core.object.*; -import com.orangeforms.common.core.util.*; -import com.orangeforms.common.core.constant.*; -import com.orangeforms.common.core.annotation.MyRequestBody; -import com.orangeforms.webadmin.config.ApplicationConfig; -import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; -import io.swagger.annotations.Api; -import lombok.extern.slf4j.Slf4j; -import org.springframework.security.crypto.password.PasswordEncoder; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.*; - -import java.util.*; - -/** - * 用户管理操作控制器类。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Api(tags = "用户管理管理接口") -@Slf4j -@RestController -@RequestMapping("/admin/upms/sysUser") -public class SysUserController { - - @Autowired - private SysUserService sysUserService; - @Autowired - private PasswordEncoder passwordEncoder; - @Autowired - private ApplicationConfig appConfig; - - /** - * 新增用户操作。 - * - * @param sysUserDto 新增用户对象。 - * @param deptPostIdListString 逗号分隔的部门岗位Id列表。 - * @param dataPermIdListString 逗号分隔的数据权限Id列表。 - * @param roleIdListString 逗号分隔的角色Id列表。 - * @return 应答结果对象,包含新增用户的主键Id。 - */ - @ApiOperationSupport(ignoreParameters = { - "sysUserDto.userId", - "sysUserDto.createTimeStart", - "sysUserDto.createTimeEnd"}) - @PostMapping("/add") - public ResponseResult add( - @MyRequestBody SysUserDto sysUserDto, - @MyRequestBody String deptPostIdListString, - @MyRequestBody String dataPermIdListString, - @MyRequestBody String roleIdListString) { - String errorMessage = MyCommonUtil.getModelValidationError(sysUserDto, false); - if (errorMessage != null) { - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - SysUser sysUser = MyModelUtil.copyTo(sysUserDto, SysUser.class); - CallResult result = sysUserService.verifyRelatedData( - sysUser, null, roleIdListString, deptPostIdListString, dataPermIdListString); - if (!result.isSuccess()) { - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, result.getErrorMessage()); - } - Set deptPostIdSet = result.getData().getObject("deptPostIdSet", new TypeReference>() {}); - Set roleIdSet = result.getData().getObject("roleIdSet", new TypeReference>() {}); - Set dataPermIdSet = result.getData().getObject("dataPermIdSet", new TypeReference>() {}); - sysUserService.saveNew(sysUser, roleIdSet, deptPostIdSet, dataPermIdSet); - return ResponseResult.success(sysUser.getUserId()); - } - - /** - * 更新用户操作。 - * - * @param sysUserDto 更新用户对象。 - * @param deptPostIdListString 逗号分隔的部门岗位Id列表。 - * @param dataPermIdListString 逗号分隔的数据权限Id列表。 - * @param roleIdListString 逗号分隔的角色Id列表。 - * @return 应答结果对象。 - */ - @ApiOperationSupport(ignoreParameters = { - "sysUserDto.createTimeStart", - "sysUserDto.createTimeEnd"}) - @PostMapping("/update") - public ResponseResult update( - @MyRequestBody SysUserDto sysUserDto, - @MyRequestBody String deptPostIdListString, - @MyRequestBody String dataPermIdListString, - @MyRequestBody String roleIdListString) { - String errorMessage = MyCommonUtil.getModelValidationError(sysUserDto, true); - if (errorMessage != null) { - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - SysUser originalUser = sysUserService.getById(sysUserDto.getUserId()); - if (originalUser == null) { - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST); - } - SysUser sysUser = MyModelUtil.copyTo(sysUserDto, SysUser.class); - CallResult result = sysUserService.verifyRelatedData( - sysUser, originalUser, roleIdListString, deptPostIdListString, dataPermIdListString); - if (!result.isSuccess()) { - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, result.getErrorMessage()); - } - Set deptPostIdSet = result.getData().getObject("deptPostIdSet", new TypeReference>() {}); - Set roleIdSet = result.getData().getObject("roleIdSet", new TypeReference>() {}); - Set dataPermIdSet = result.getData().getObject("dataPermIdSet", new TypeReference>() {}); - if (!sysUserService.update(sysUser, originalUser, roleIdSet, deptPostIdSet, dataPermIdSet)) { - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST); - } - return ResponseResult.success(); - } - - /** - * 重置密码操作。 - * - * @param userId 指定用户主键Id。 - * @return 应答结果对象。 - */ - @PostMapping("/resetPassword") - public ResponseResult resetPassword(@MyRequestBody Long userId) { - if (MyCommonUtil.existBlankArgument(userId)) { - return ResponseResult.error(ErrorCodeEnum.ARGUMENT_NULL_EXIST); - } - if (!sysUserService.changePassword(userId, appConfig.getDefaultUserPassword())) { - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST); - } - return ResponseResult.success(); - } - - /** - * 删除用户管理数据。 - * - * @param userId 删除对象主键Id。 - * @return 应答结果对象。 - */ - @PostMapping("/delete") - public ResponseResult delete(@MyRequestBody Long userId) { - String errorMessage; - if (MyCommonUtil.existBlankArgument(userId)) { - return ResponseResult.error(ErrorCodeEnum.ARGUMENT_NULL_EXIST); - } - // 验证关联Id的数据合法性 - SysUser originalSysUser = sysUserService.getById(userId); - if (originalSysUser == null) { - // NOTE: 修改下面方括号中的话述 - errorMessage = "数据验证失败,当前 [对象] 并不存在,请刷新后重试!"; - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST, errorMessage); - } - if (!sysUserService.remove(userId)) { - errorMessage = "数据操作失败,删除的对象不存在,请刷新后重试!"; - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST, errorMessage); - } - return ResponseResult.success(); - } - - /** - * 列出符合过滤条件的用户管理列表。 - * - * @param sysUserDtoFilter 过滤对象。 - * @param orderParam 排序参数。 - * @param pageParam 分页参数。 - * @return 应答结果对象,包含查询结果集。 - */ - @PostMapping("/list") - public ResponseResult> list( - @MyRequestBody SysUserDto sysUserDtoFilter, - @MyRequestBody MyOrderParam orderParam, - @MyRequestBody MyPageParam pageParam) { - if (pageParam != null) { - PageMethod.startPage(pageParam.getPageNum(), pageParam.getPageSize()); - } - SysUser sysUserFilter = MyModelUtil.copyTo(sysUserDtoFilter, SysUser.class); - String orderBy = MyOrderParam.buildOrderBy(orderParam, SysUser.class); - List sysUserList = sysUserService.getSysUserListWithRelation(sysUserFilter, orderBy); - return ResponseResult.success(MyPageUtil.makeResponseData(sysUserList, SysUser.INSTANCE)); - } - - /** - * 查看指定用户管理对象详情。 - * - * @param userId 指定对象主键Id。 - * @return 应答结果对象,包含对象详情。 - */ - @GetMapping("/view") - public ResponseResult view(@RequestParam Long userId) { - if (MyCommonUtil.existBlankArgument(userId)) { - return ResponseResult.error(ErrorCodeEnum.ARGUMENT_NULL_EXIST); - } - // 这里查看用户数据时候,需要把用户多对多关联的角色和数据权限Id一并查出。 - SysUser sysUser = sysUserService.getByIdWithRelation(userId, MyRelationParam.full()); - if (sysUser == null) { - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST); - } - SysUserVo sysUserVo = SysUser.INSTANCE.fromModel(sysUser); - return ResponseResult.success(sysUserVo); - } - - /** - * 查询用户的权限资源地址列表。同时返回详细的分配路径。 - * - * @param userId 用户Id。 - * @param url url过滤条件。 - * @return 应答对象,包含从用户到权限资源的完整权限分配路径信息的查询结果列表。 - */ - @GetMapping("/listSysPermWithDetail") - public ResponseResult>> listSysPermWithDetail(Long userId, String url) { - if (MyCommonUtil.isBlankOrNull(userId)) { - return ResponseResult.error(ErrorCodeEnum.ARGUMENT_NULL_EXIST); - } - return ResponseResult.success(sysUserService.getSysPermListWithDetail(userId, url)); - } - - /** - * 查询用户的权限字列表。同时返回详细的分配路径。 - * - * @param userId 用户Id。 - * @param permCode 权限字名称过滤条件。 - * @return 应答对象,包含从用户到权限字的权限分配路径信息的查询结果列表。 - */ - @GetMapping("/listSysPermCodeWithDetail") - public ResponseResult>> listSysPermCodeWithDetail(Long userId, String permCode) { - if (MyCommonUtil.isBlankOrNull(userId)) { - return ResponseResult.error(ErrorCodeEnum.ARGUMENT_NULL_EXIST); - } - return ResponseResult.success(sysUserService.getSysPermCodeListWithDetail(userId, permCode)); - } - - /** - * 查询用户的菜单列表。同时返回详细的分配路径。 - * - * @param userId 用户Id。 - * @param menuName 菜单名称过滤条件。 - * @return 应答对象,包含从用户到菜单的权限分配路径信息的查询结果列表。 - */ - @GetMapping("/listSysMenuWithDetail") - public ResponseResult>> listSysMenuWithDetail(Long userId, String menuName) { - if (MyCommonUtil.isBlankOrNull(userId)) { - return ResponseResult.error(ErrorCodeEnum.ARGUMENT_NULL_EXIST); - } - return ResponseResult.success(sysUserService.getSysMenuListWithDetail(userId, menuName)); - } -} diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/SysDataPermDeptMapper.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/SysDataPermDeptMapper.java deleted file mode 100644 index 93d8028f..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/SysDataPermDeptMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.orangeforms.webadmin.upms.dao; - -import com.orangeforms.common.core.base.dao.BaseDaoMapper; -import com.orangeforms.webadmin.upms.model.SysDataPermDept; - -/** - * 数据权限与部门关系数据访问操作接口。 - * - * @author Jerry - * @date 2021-06-06 - */ -public interface SysDataPermDeptMapper extends BaseDaoMapper { -} diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/SysDataPermMapper.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/SysDataPermMapper.java deleted file mode 100644 index 947b3761..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/SysDataPermMapper.java +++ /dev/null @@ -1,35 +0,0 @@ -package com.orangeforms.webadmin.upms.dao; - -import com.orangeforms.common.core.base.dao.BaseDaoMapper; -import com.orangeforms.webadmin.upms.model.SysDataPerm; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * 数据权限数据访问操作接口。 - * NOTE: 该对象一定不能被 @EnableDataPerm 注解标注,否则会导致无限递归。 - * - * @author Jerry - * @date 2021-06-06 - */ -public interface SysDataPermMapper extends BaseDaoMapper { - - /** - * 获取数据权限列表。 - * - * @param sysDataPermFilter 过滤对象。 - * @param orderBy 排序字符串。 - * @return 过滤后的数据权限列表。 - */ - List getSysDataPermList( - @Param("sysDataPermFilter") SysDataPerm sysDataPermFilter, @Param("orderBy") String orderBy); - - /** - * 获取指定用户的数据权限列表。 - * - * @param userId 用户Id。 - * @return 数据权限列表。 - */ - List getSysDataPermListByUserId(@Param("userId") Long userId); -} diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/SysDataPermUserMapper.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/SysDataPermUserMapper.java deleted file mode 100644 index d68eb823..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/SysDataPermUserMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.orangeforms.webadmin.upms.dao; - -import com.orangeforms.common.core.base.dao.BaseDaoMapper; -import com.orangeforms.webadmin.upms.model.SysDataPermUser; - -/** - * 数据权限与用户关系数据访问操作接口。 - * - * @author Jerry - * @date 2021-06-06 - */ -public interface SysDataPermUserMapper extends BaseDaoMapper { -} diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/SysDeptMapper.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/SysDeptMapper.java deleted file mode 100644 index 30fb1c5d..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/SysDeptMapper.java +++ /dev/null @@ -1,33 +0,0 @@ -package com.orangeforms.webadmin.upms.dao; - -import com.orangeforms.common.core.base.dao.BaseDaoMapper; -import com.orangeforms.webadmin.upms.model.SysDept; -import org.apache.ibatis.annotations.Param; - -import java.util.*; - -/** - * 部门管理数据操作访问接口。 - * - * @author Jerry - * @date 2021-06-06 - */ -public interface SysDeptMapper extends BaseDaoMapper { - - /** - * 批量插入对象列表。 - * - * @param sysDeptList 新增对象列表。 - */ - void insertList(List sysDeptList); - - /** - * 获取过滤后的对象列表。 - * - * @param sysDeptFilter 主表过滤对象。 - * @param orderBy 排序字符串,order by从句的参数。 - * @return 对象列表。 - */ - List getSysDeptList( - @Param("sysDeptFilter") SysDept sysDeptFilter, @Param("orderBy") String orderBy); -} diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/SysDeptPostMapper.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/SysDeptPostMapper.java deleted file mode 100644 index 886dc84b..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/SysDeptPostMapper.java +++ /dev/null @@ -1,33 +0,0 @@ -package com.orangeforms.webadmin.upms.dao; - -import com.orangeforms.common.core.base.dao.BaseDaoMapper; -import com.orangeforms.webadmin.upms.model.SysDeptPost; -import org.apache.ibatis.annotations.Param; - -import java.util.List; -import java.util.Map; - -/** - * 部门岗位数据操作访问接口。 - * - * @author Jerry - * @date 2021-06-06 - */ -public interface SysDeptPostMapper extends BaseDaoMapper { - - /** - * 获取指定部门Id的部门岗位多对多关联数据列表,以及关联的部门和岗位数据。 - * - * @param deptId 部门Id。如果参数为空则返回全部数据。 - * @return 部门岗位多对多数据列表。 - */ - List> getSysDeptPostListWithRelationByDeptId(@Param("deptId") Long deptId); - - /** - * 获取指定部门Id的领导部门岗位列表。 - * - * @param deptId 部门Id。 - * @return 指定部门Id的领导部门岗位列表 - */ - List getLeaderDeptPostList(@Param("deptId") Long deptId); -} diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/SysDeptRelationMapper.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/SysDeptRelationMapper.java deleted file mode 100644 index 4c438921..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/SysDeptRelationMapper.java +++ /dev/null @@ -1,42 +0,0 @@ -package com.orangeforms.webadmin.upms.dao; - -import com.orangeforms.common.core.base.dao.BaseDaoMapper; -import com.orangeforms.webadmin.upms.model.SysDeptRelation; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * 部门关系树关联关系表访问接口。 - * - * @author Jerry - * @date 2021-06-06 - */ -public interface SysDeptRelationMapper extends BaseDaoMapper { - - /** - * 将myDeptId的所有子部门,与其父部门parentDeptId解除关联关系。 - * - * @param parentDeptId myDeptId的父部门Id。 - * @param myDeptId 当前部门。 - */ - void removeBetweenChildrenAndParents( - @Param("parentDeptId") Long parentDeptId, @Param("myDeptId") Long myDeptId); - - /** - * 批量插入部门关联数据。 - * 由于目前版本(3.4.1)的Mybatis Plus没有提供真正的批量插入,为了保证效率需要自己实现。 - * 目前我们仅仅给出MySQL的insert list实现作为参考,其他数据库需要自行修改。 - * - * @param deptRelationList 部门关联关系数据列表。 - */ - void insertList(List deptRelationList); - - /** - * 批量插入当前部门的所有父部门列表,包括自己和自己的关系。 - * - * @param parentDeptId myDeptId的父部门Id。 - * @param myDeptId 当前部门。 - */ - void insertParentList(@Param("parentDeptId") Long parentDeptId, @Param("myDeptId") Long myDeptId); -} diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/SysMenuMapper.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/SysMenuMapper.java deleted file mode 100644 index 3db2362d..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/SysMenuMapper.java +++ /dev/null @@ -1,54 +0,0 @@ -package com.orangeforms.webadmin.upms.dao; - -import com.orangeforms.common.core.base.dao.BaseDaoMapper; -import com.orangeforms.webadmin.upms.model.SysMenu; -import org.apache.ibatis.annotations.Param; - -import java.util.*; - -/** - * 菜单数据访问操作接口。 - * - * @author Jerry - * @date 2021-06-06 - */ -public interface SysMenuMapper extends BaseDaoMapper { - - /** - * 获取登录用户的菜单列表。 - * - * @param userId 登录用户。 - * @return 菜单列表。 - */ - List getMenuListByUserId(@Param("userId") Long userId); - - /** - * 获取当前用户有权访问的在线表单菜单,仅返回类型为BUTTON的菜单。 - * - * @param userId 指定的用户。 - * @param menuType 菜单类型,NULL则返回全部类型。 - * @return 在线表单关联的菜单列表。 - */ - List getOnlineMenuListByUserId( - @Param("userId") Long userId, @Param("menuType") Integer menuType); - - /** - * 查询菜单的权限资源地址列表。同时返回详细的分配路径。 - * - * @param menuId 菜单Id。 - * @param url 权限资源地址过滤条件。 - * @return 包含从菜单到权限资源的权限分配路径信息的查询结果列表。 - */ - List> getSysPermListWithDetail( - @Param("menuId") Long menuId, @Param("url") String url); - - /** - * 查询菜单的用户列表。同时返回详细的分配路径。 - * - * @param menuId 菜单Id。 - * @param loginName 登录名。 - * @return 包含从菜单到用户的完整权限分配路径信息的查询结果列表。 - */ - List> getSysUserListWithDetail( - @Param("menuId") Long menuId, @Param("loginName") String loginName); -} diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/SysMenuPermCodeMapper.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/SysMenuPermCodeMapper.java deleted file mode 100644 index cd91f783..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/SysMenuPermCodeMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.orangeforms.webadmin.upms.dao; - -import com.orangeforms.common.core.base.dao.BaseDaoMapper; -import com.orangeforms.webadmin.upms.model.SysMenuPermCode; - -/** - * 菜单与权限字关系数据访问操作接口。 - * - * @author Jerry - * @date 2021-06-06 - */ -public interface SysMenuPermCodeMapper extends BaseDaoMapper { -} diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/SysPermCodeMapper.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/SysPermCodeMapper.java deleted file mode 100644 index c9fa0469..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/SysPermCodeMapper.java +++ /dev/null @@ -1,45 +0,0 @@ -package com.orangeforms.webadmin.upms.dao; - -import com.orangeforms.common.core.base.dao.BaseDaoMapper; -import com.orangeforms.webadmin.upms.model.SysPermCode; -import org.apache.ibatis.annotations.Param; - -import java.util.List; -import java.util.Map; - -/** - * 权限字数据访问操作接口。 - * - * @author Jerry - * @date 2021-06-06 - */ -public interface SysPermCodeMapper extends BaseDaoMapper { - - /** - * 获取用户的所有权限字列表。 - * - * @param userId 用户Id。 - * @return 该用户的权限字列表。 - */ - List getPermCodeListByUserId(@Param("userId") Long userId); - - /** - * 查询权限字的用户列表。同时返回详细的分配路径。 - * - * @param permCodeId 权限字Id。 - * @param loginName 登录名。 - * @return 包含从权限字到用户的完整权限分配路径信息的查询结果列表。 - */ - List> getSysUserListWithDetail( - @Param("permCodeId") Long permCodeId, @Param("loginName") String loginName); - - /** - * 查询权限字的角色列表。同时返回详细的分配路径。 - * - * @param permCodeId 权限字Id。 - * @param roleName 角色名。 - * @return 包含从权限字到角色的权限分配路径信息的查询结果列表。 - */ - List> getSysRoleListWithDetail( - @Param("permCodeId") Long permCodeId, @Param("roleName") String roleName); -} diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/SysPermCodePermMapper.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/SysPermCodePermMapper.java deleted file mode 100644 index bc619a2f..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/SysPermCodePermMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.orangeforms.webadmin.upms.dao; - -import com.orangeforms.common.core.base.dao.BaseDaoMapper; -import com.orangeforms.webadmin.upms.model.SysPermCodePerm; - -/** - * 权限字与权限资源关系数据访问操作接口。 - * - * @author Jerry - * @date 2021-06-06 - */ -public interface SysPermCodePermMapper extends BaseDaoMapper { -} diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/SysPermMapper.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/SysPermMapper.java deleted file mode 100644 index be1d2bff..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/SysPermMapper.java +++ /dev/null @@ -1,54 +0,0 @@ -package com.orangeforms.webadmin.upms.dao; - -import com.orangeforms.common.core.base.dao.BaseDaoMapper; -import com.orangeforms.webadmin.upms.model.SysPerm; -import org.apache.ibatis.annotations.Param; - -import java.util.*; - -/** - * 权限资源数据访问操作接口。 - * - * @author Jerry - * @date 2021-06-06 - */ -public interface SysPermMapper extends BaseDaoMapper { - - /** - * 获取用户的权限列表。 - * - * @param userId 用户Id。 - * @return 该用户的权限标识列表。 - */ - List getPermListByUserId(@Param("userId") Long userId); - - /** - * 查询权限资源地址的用户列表。同时返回详细的分配路径。 - * - * @param permId 权限资源Id。 - * @param loginName 登录名。 - * @return 包含从权限资源到用户的完整权限分配路径信息的查询结果列表。 - */ - List> getSysUserListWithDetail( - @Param("permId") Long permId, @Param("loginName") String loginName); - - /** - * 查询权限资源地址的角色列表。同时返回详细的分配路径。 - * - * @param permId 权限资源Id。 - * @param roleName 角色名。 - * @return 包含从权限资源到角色的权限分配路径信息的查询结果列表。 - */ - List> getSysRoleListWithDetail( - @Param("permId") Long permId, @Param("roleName") String roleName); - - /** - * 查询权限资源地址的菜单列表。同时返回详细的分配路径。 - * - * @param permId 权限资源Id。 - * @param menuName 菜单名。 - * @return 包含从权限资源到菜单的权限分配路径信息的查询结果列表。 - */ - List> getSysMenuListWithDetail( - @Param("permId") Long permId, @Param("menuName") String menuName); -} diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/SysPermModuleMapper.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/SysPermModuleMapper.java deleted file mode 100644 index dc0e35c2..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/SysPermModuleMapper.java +++ /dev/null @@ -1,22 +0,0 @@ -package com.orangeforms.webadmin.upms.dao; - -import com.orangeforms.common.core.base.dao.BaseDaoMapper; -import com.orangeforms.webadmin.upms.model.SysPermModule; - -import java.util.List; - -/** - * 权限资源模块数据访问操作接口。 - * - * @author Jerry - * @date 2021-06-06 - */ -public interface SysPermModuleMapper extends BaseDaoMapper { - - /** - * 获取整个权限模块和权限关联后的全部数据。 - * - * @return 关联的权限模块和权限资源列表。 - */ - List getPermModuleAndPermList(); -} diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/SysPermWhitelistMapper.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/SysPermWhitelistMapper.java deleted file mode 100644 index e256c9dc..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/SysPermWhitelistMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.orangeforms.webadmin.upms.dao; - -import com.orangeforms.common.core.base.dao.BaseDaoMapper; -import com.orangeforms.webadmin.upms.model.SysPermWhitelist; - -/** - * 权限资源白名单数据访问操作接口。 - * - * @author Jerry - * @date 2021-06-06 - */ -public interface SysPermWhitelistMapper extends BaseDaoMapper { -} diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/SysPostMapper.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/SysPostMapper.java deleted file mode 100644 index 38781f51..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/SysPostMapper.java +++ /dev/null @@ -1,52 +0,0 @@ -package com.orangeforms.webadmin.upms.dao; - -import com.orangeforms.common.core.base.dao.BaseDaoMapper; -import com.orangeforms.webadmin.upms.model.SysPost; -import org.apache.ibatis.annotations.Param; - -import java.util.*; - -/** - * 岗位管理数据操作访问接口。 - * - * @author Jerry - * @date 2021-06-06 - */ -public interface SysPostMapper extends BaseDaoMapper { - - /** - * 获取过滤后的对象列表。 - * - * @param sysPostFilter 主表过滤对象。 - * @param orderBy 排序字符串,order by从句的参数。 - * @return 对象列表。 - */ - List getSysPostList( - @Param("sysPostFilter") SysPost sysPostFilter, @Param("orderBy") String orderBy); - - /** - * 获取指定部门的岗位列表。 - * - * @param deptId 部门Id。 - * @param sysPostFilter 从表过滤对象。 - * @param orderBy 排序字符串,order by从句的参数。 - * @return 岗位数据列表。 - */ - List getSysPostListByDeptId( - @Param("deptId") Long deptId, - @Param("sysPostFilter") SysPost sysPostFilter, - @Param("orderBy") String orderBy); - - /** - * 根据关联主表Id,获取关联从表中没有和主表建立关联关系的数据列表。 - * - * @param deptId 关联主表Id。 - * @param sysPostFilter 过滤对象。 - * @param orderBy 排序字符串,order by从句的参数。 - * @return 与主表没有建立关联的从表数据列表。 - */ - List getNotInSysPostListByDeptId( - @Param("deptId") Long deptId, - @Param("sysPostFilter") SysPost sysPostFilter, - @Param("orderBy") String orderBy); -} diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/SysRoleMapper.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/SysRoleMapper.java deleted file mode 100644 index 78d026b0..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/SysRoleMapper.java +++ /dev/null @@ -1,45 +0,0 @@ -package com.orangeforms.webadmin.upms.dao; - -import com.orangeforms.common.core.base.dao.BaseDaoMapper; -import com.orangeforms.webadmin.upms.model.SysRole; -import org.apache.ibatis.annotations.Param; - -import java.util.*; - -/** - * 角色数据访问操作接口。 - * - * @author Jerry - * @date 2021-06-06 - */ -public interface SysRoleMapper extends BaseDaoMapper { - - /** - * 获取对象列表,过滤条件中包含like和between条件。 - * - * @param sysRoleFilter 过滤对象。 - * @param orderBy 排序字符串,order by从句的参数。 - * @return 对象列表。 - */ - List getSysRoleList(@Param("sysRoleFilter") SysRole sysRoleFilter, @Param("orderBy") String orderBy); - - /** - * 查询角色的权限资源地址列表。同时返回详细的分配路径。 - * - * @param roleId 角色Id。 - * @param url url过滤条件。 - * @return 包含从角色到权限资源的完整权限分配路径信息的查询结果列表。 - */ - List> getSysPermListWithDetail( - @Param("roleId") Long roleId, @Param("url") String url); - - /** - * 查询角色的权限字列表。同时返回详细的分配路径。 - * - * @param roleId 角色Id。 - * @param permCode 权限字名称过滤条件。 - * @return 包含从角色到权限字的权限分配路径信息的查询结果列表。 - */ - List> getSysPermCodeListWithDetail( - @Param("roleId") Long roleId, @Param("permCode") String permCode); -} diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/SysRoleMenuMapper.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/SysRoleMenuMapper.java deleted file mode 100644 index 079256c6..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/SysRoleMenuMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.orangeforms.webadmin.upms.dao; - -import com.orangeforms.common.core.base.dao.BaseDaoMapper; -import com.orangeforms.webadmin.upms.model.SysRoleMenu; - -/** - * 角色与菜单操作关联关系数据访问操作接口。 - * - * @author Jerry - * @date 2021-06-06 - */ -public interface SysRoleMenuMapper extends BaseDaoMapper { -} diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/SysUserMapper.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/SysUserMapper.java deleted file mode 100644 index 08f9d524..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/SysUserMapper.java +++ /dev/null @@ -1,154 +0,0 @@ -package com.orangeforms.webadmin.upms.dao; - -import com.orangeforms.common.core.base.dao.BaseDaoMapper; -import com.orangeforms.webadmin.upms.model.SysUser; -import org.apache.ibatis.annotations.Param; - -import java.util.*; - -/** - * 用户管理数据操作访问接口。 - * - * @author Jerry - * @date 2021-06-06 - */ -public interface SysUserMapper extends BaseDaoMapper { - - /** - * 批量插入对象列表。 - * - * @param sysUserList 新增对象列表。 - */ - void insertList(List sysUserList); - - /** - * 获取过滤后的对象列表。 - * - * @param sysUserFilter 主表过滤对象。 - * @param orderBy 排序字符串,order by从句的参数。 - * @return 对象列表。 - */ - List getSysUserList( - @Param("sysUserFilter") SysUser sysUserFilter, @Param("orderBy") String orderBy); - - /** - * 根据角色Id,获取关联的用户Id列表。 - * - * @param roleId 关联的角色Id。 - * @param sysUserFilter 用户过滤条件对象。 - * @param orderBy order by从句的参数。 - * @return 和RoleId关联的用户列表。 - */ - List getSysUserListByRoleId( - @Param("roleId") Long roleId, - @Param("sysUserFilter") SysUser sysUserFilter, - @Param("orderBy") String orderBy); - - /** - * 根据角色Id,获取和当前角色Id没有建立多对多关联关系的用户Id列表。 - * - * @param roleId 关联的角色Id。 - * @param sysUserFilter 用户过滤条件对象。 - * @param orderBy order by从句的参数。 - * @return 和RoleId没有建立关联关系的用户列表。 - */ - List getNotInSysUserListByRoleId( - @Param("roleId") Long roleId, - @Param("sysUserFilter") SysUser sysUserFilter, - @Param("orderBy") String orderBy); - - /** - * 根据数据权限Id,获取关联的用户Id列表。 - * - * @param dataPermId 关联的数据权限Id。 - * @param sysUserFilter 用户过滤条件对象。 - * @param orderBy order by从句的参数。 - * @return 和DataPermId关联的用户列表。 - */ - List getSysUserListByDataPermId( - @Param("dataPermId") Long dataPermId, - @Param("sysUserFilter") SysUser sysUserFilter, - @Param("orderBy") String orderBy); - - /** - * 根据数据权限Id,获取和当前数据权限Id没有建立多对多关联关系的用户Id列表。 - * - * @param dataPermId 关联的数据权限Id。 - * @param sysUserFilter 用户过滤条件对象。 - * @param orderBy order by从句的参数。 - * @return 和DataPermId没有建立关联关系的用户列表。 - */ - List getNotInSysUserListByDataPermId( - @Param("dataPermId") Long dataPermId, - @Param("sysUserFilter") SysUser sysUserFilter, - @Param("orderBy") String orderBy); - - /** - * 根据部门岗位Id,获取关联的用户Id列表。 - * - * @param deptPostId 关联的部门岗位Id。 - * @param sysUserFilter 用户过滤条件对象。 - * @param orderBy order by从句的参数。 - * @return 和DeptPostId关联的用户列表。 - */ - List getSysUserListByDeptPostId( - @Param("deptPostId") Long deptPostId, - @Param("sysUserFilter") SysUser sysUserFilter, - @Param("orderBy") String orderBy); - - /** - * 根据部门岗位Id,获取和当前部门岗位Id没有建立多对多关联关系的用户Id列表。 - * - * @param deptPostId 关联的部门岗位Id。 - * @param sysUserFilter 用户过滤条件对象。 - * @param orderBy order by从句的参数。 - * @return 和deptPostId没有建立关联关系的用户列表。 - */ - List getNotInSysUserListByDeptPostId( - @Param("deptPostId") Long deptPostId, - @Param("sysUserFilter") SysUser sysUserFilter, - @Param("orderBy") String orderBy); - - /** - * 根据岗位Id,获取关联的用户Id列表。 - * - * @param postId 关联的岗位Id。 - * @param sysUserFilter 用户过滤条件对象。 - * @param orderBy order by从句的参数。 - * @return 和postId关联的用户列表。 - */ - List getSysUserListByPostId( - @Param("postId") Long postId, - @Param("sysUserFilter") SysUser sysUserFilter, - @Param("orderBy") String orderBy); - - /** - * 查询用户的权限资源地址列表。同时返回详细的分配路径。 - * - * @param userId 用户Id。 - * @param url url过滤条件。 - * @return 包含从用户到权限资源的完整权限分配路径信息的查询结果列表。 - */ - List> getSysPermListWithDetail( - @Param("userId") Long userId, @Param("url") String url); - - /** - * 查询用户的权限字列表。同时返回详细的分配路径。 - * - * @param userId 用户Id。 - * @param permCode 权限字名称过滤条件。 - * @return 包含从用户到权限字的权限分配路径信息的查询结果列表。 - */ - List> getSysPermCodeListWithDetail( - @Param("userId") Long userId, @Param("permCode") String permCode); - - /** - * 查询用户的菜单列表。同时返回详细的分配路径。 - * - * @param userId 用户Id。 - * @param menuName 菜单名称过滤条件。 - * @return 包含从用户到菜单的权限分配路径信息的查询结果列表。 - */ - List> getSysMenuListWithDetail( - @Param("userId") Long userId, @Param("menuName") String menuName); -} diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/SysUserPostMapper.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/SysUserPostMapper.java deleted file mode 100644 index e044b447..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/SysUserPostMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.orangeforms.webadmin.upms.dao; - -import com.orangeforms.common.core.base.dao.BaseDaoMapper; -import com.orangeforms.webadmin.upms.model.SysUserPost; - -/** - * 用户岗位数据操作访问接口。 - * - * @author Jerry - * @date 2021-06-06 - */ -public interface SysUserPostMapper extends BaseDaoMapper { -} diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/SysUserRoleMapper.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/SysUserRoleMapper.java deleted file mode 100644 index a5abe77a..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/SysUserRoleMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.orangeforms.webadmin.upms.dao; - -import com.orangeforms.common.core.base.dao.BaseDaoMapper; -import com.orangeforms.webadmin.upms.model.SysUserRole; - -/** - * 用户与角色关联关系数据访问操作接口。 - * - * @author Jerry - * @date 2021-06-06 - */ -public interface SysUserRoleMapper extends BaseDaoMapper { -} diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/mapper/SysDataPermDeptMapper.xml b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/mapper/SysDataPermDeptMapper.xml deleted file mode 100644 index d3b228e6..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/mapper/SysDataPermDeptMapper.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/mapper/SysDataPermMapper.xml b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/mapper/SysDataPermMapper.xml deleted file mode 100644 index a7cebbe6..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/mapper/SysDataPermMapper.xml +++ /dev/null @@ -1,62 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - AND zz_sys_data_perm.rule_type = #{sysDataPermFilter.ruleType} - - - - AND IFNULL(zz_sys_data_perm.data_perm_name, '') LIKE #{safeSearchString} - - - AND zz_sys_data_perm.deleted_flag = ${@com.orangeforms.common.core.constant.GlobalDeletedFlag@NORMAL} - - - - - - \ No newline at end of file diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/mapper/SysDataPermUserMapper.xml b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/mapper/SysDataPermUserMapper.xml deleted file mode 100644 index 2530c39f..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/mapper/SysDataPermUserMapper.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/mapper/SysDeptMapper.xml b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/mapper/SysDeptMapper.xml deleted file mode 100644 index ef63bdc9..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/mapper/SysDeptMapper.xml +++ /dev/null @@ -1,70 +0,0 @@ - - - - - - - - - - - - - - - - - INSERT INTO zz_sys_dept - (dept_id, - dept_name, - show_order, - parent_id, - deleted_flag, - create_user_id, - update_user_id, - create_time, - update_time) - VALUES - - (#{item.deptId}, - #{item.deptName}, - #{item.showOrder}, - #{item.parentId}, - #{item.deletedFlag}, - #{item.createUserId}, - #{item.updateUserId}, - #{item.createTime}, - #{item.updateTime}) - - - - - - - - AND zz_sys_dept.deleted_flag = ${@com.orangeforms.common.core.constant.GlobalDeletedFlag@NORMAL} - - - - - - - - AND zz_sys_dept.dept_name LIKE #{safeSysDeptDeptName} - - - AND zz_sys_dept.parent_id = #{sysDeptFilter.parentId} - - - - - - diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/mapper/SysDeptPostMapper.xml b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/mapper/SysDeptPostMapper.xml deleted file mode 100644 index cf332c9d..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/mapper/SysDeptPostMapper.xml +++ /dev/null @@ -1,46 +0,0 @@ - - - - - - - - - - - - - - diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/mapper/SysDeptRelationMapper.xml b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/mapper/SysDeptRelationMapper.xml deleted file mode 100644 index 6dfc6df6..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/mapper/SysDeptRelationMapper.xml +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - - DELETE a FROM zz_sys_dept_relation a - INNER JOIN zz_sys_dept_relation b ON a.dept_id = b.dept_id - WHERE a.parent_dept_id = #{parentDeptId} AND b.parent_dept_id = #{myDeptId} - - - - INSERT INTO zz_sys_dept_relation(parent_dept_id, dept_id) VALUES - - (#{item.parentDeptId}, #{item.deptId}) - - - - - INSERT INTO zz_sys_dept_relation(parent_dept_id, dept_id) - SELECT t.parent_dept_id, #{myDeptId} FROM zz_sys_dept_relation t - WHERE t.dept_id = #{parentDeptId} - UNION ALL - SELECT #{myDeptId}, #{myDeptId} - - diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/mapper/SysMenuMapper.xml b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/mapper/SysMenuMapper.xml deleted file mode 100644 index 6aff9bf3..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/mapper/SysMenuMapper.xml +++ /dev/null @@ -1,109 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/mapper/SysMenuPermCodeMapper.xml b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/mapper/SysMenuPermCodeMapper.xml deleted file mode 100644 index f3c00688..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/mapper/SysMenuPermCodeMapper.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/mapper/SysPermCodeMapper.xml b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/mapper/SysPermCodeMapper.xml deleted file mode 100644 index 37ab7fd0..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/mapper/SysPermCodeMapper.xml +++ /dev/null @@ -1,91 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/mapper/SysPermCodePermMapper.xml b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/mapper/SysPermCodePermMapper.xml deleted file mode 100644 index 2b35a883..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/mapper/SysPermCodePermMapper.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/mapper/SysPermMapper.xml b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/mapper/SysPermMapper.xml deleted file mode 100644 index e5fc3aee..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/mapper/SysPermMapper.xml +++ /dev/null @@ -1,132 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/mapper/SysPermModuleMapper.xml b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/mapper/SysPermModuleMapper.xml deleted file mode 100644 index b5ae216d..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/mapper/SysPermModuleMapper.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/mapper/SysPermWhitelistMapper.xml b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/mapper/SysPermWhitelistMapper.xml deleted file mode 100644 index 00d0c6d4..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/mapper/SysPermWhitelistMapper.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - \ No newline at end of file diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/mapper/SysPostMapper.xml b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/mapper/SysPostMapper.xml deleted file mode 100644 index 56fec569..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/mapper/SysPostMapper.xml +++ /dev/null @@ -1,82 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - AND zz_sys_post.deleted_flag = ${@com.orangeforms.common.core.constant.GlobalDeletedFlag@NORMAL} - - - - - - - - AND zz_sys_post.post_name LIKE #{safeSysPostPostName} - - - AND zz_sys_post.leader_post = #{sysPostFilter.leaderPost} - - - - - - - - - - diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/mapper/SysRoleMapper.xml b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/mapper/SysRoleMapper.xml deleted file mode 100644 index 950a176d..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/mapper/SysRoleMapper.xml +++ /dev/null @@ -1,91 +0,0 @@ - - - - - - - - - - - - - - - - - - AND role_name LIKE #{safeRoleName} - - - AND deleted_flag = ${@com.orangeforms.common.core.constant.GlobalDeletedFlag@NORMAL} - - - - - - - - - diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/mapper/SysRoleMenuMapper.xml b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/mapper/SysRoleMenuMapper.xml deleted file mode 100644 index 6bf30195..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/mapper/SysRoleMenuMapper.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/mapper/SysUserMapper.xml b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/mapper/SysUserMapper.xml deleted file mode 100644 index 183b5f4a..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/mapper/SysUserMapper.xml +++ /dev/null @@ -1,290 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - INSERT INTO zz_sys_user - (user_id, - login_name, - password, - show_name, - dept_id, - user_type, - head_image_url, - user_status, - deleted_flag, - create_user_id, - update_user_id, - create_time, - update_time) - VALUES - - (#{item.userId}, - #{item.loginName}, - #{item.password}, - #{item.showName}, - #{item.deptId}, - #{item.userType}, - #{item.headImageUrl}, - #{item.userStatus}, - #{item.deletedFlag}, - #{item.createUserId}, - #{item.updateUserId}, - #{item.createTime}, - #{item.updateTime}) - - - - - - - - AND zz_sys_user.deleted_flag = ${@com.orangeforms.common.core.constant.GlobalDeletedFlag@NORMAL} - - - - - - - - AND zz_sys_user.login_name LIKE #{safeSysUserLoginName} - - - - AND zz_sys_user.show_name LIKE #{safeSysUserShowName} - - - AND zz_sys_user.dept_id = #{sysUserFilter.deptId} - - - AND zz_sys_user.user_status = #{sysUserFilter.userStatus} - - - AND zz_sys_user.create_time >= #{sysUserFilter.createTimeStart} - - - AND zz_sys_user.create_time <= #{sysUserFilter.createTimeEnd} - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/mapper/SysUserPostMapper.xml b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/mapper/SysUserPostMapper.xml deleted file mode 100644 index b846ba04..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/mapper/SysUserPostMapper.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/mapper/SysUserRoleMapper.xml b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/mapper/SysUserRoleMapper.xml deleted file mode 100644 index c4993db0..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dao/mapper/SysUserRoleMapper.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dto/SysDataPermDeptDto.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dto/SysDataPermDeptDto.java deleted file mode 100644 index c0065cfe..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dto/SysDataPermDeptDto.java +++ /dev/null @@ -1,28 +0,0 @@ -package com.orangeforms.webadmin.upms.dto; - -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.Data; - -/** - * 数据权限与部门关联Dto。 - * - * @author Jerry - * @date 2021-06-06 - */ -@ApiModel("数据权限与部门关联Dto") -@Data -public class SysDataPermDeptDto { - - /** - * 数据权限Id。 - */ - @ApiModelProperty(value = "数据权限Id", required = true) - private Long dataPermId; - - /** - * 关联部门Id。 - */ - @ApiModelProperty(value = "关联部门Id", required = true) - private Long deptId; -} \ No newline at end of file diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dto/SysDataPermDto.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dto/SysDataPermDto.java deleted file mode 100644 index bfaa1622..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dto/SysDataPermDto.java +++ /dev/null @@ -1,56 +0,0 @@ -package com.orangeforms.webadmin.upms.dto; - -import com.orangeforms.common.core.validator.UpdateGroup; -import com.orangeforms.common.core.validator.ConstDictRef; -import com.orangeforms.common.datafilter.constant.DataPermRuleType; - -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.Data; - -import javax.validation.constraints.*; - -/** - * 数据权限Dto。 - * - * @author Jerry - * @date 2021-06-06 - */ -@ApiModel("数据权限Dto") -@Data -public class SysDataPermDto { - - /** - * 数据权限Id。 - */ - @ApiModelProperty(value = "数据权限Id", required = true) - @NotNull(message = "数据权限Id不能为空!", groups = {UpdateGroup.class}) - private Long dataPermId; - - /** - * 显示名称。 - */ - @ApiModelProperty(value = "显示名称", required = true) - @NotBlank(message = "数据权限名称不能为空!") - private String dataPermName; - - /** - * 数据权限规则类型(0: 全部可见 1: 只看自己 2: 只看本部门 3: 本部门及子部门 4: 多部门及子部门 5: 自定义部门列表)。 - */ - @ApiModelProperty(value = "数据权限规则类型", required = true) - @NotNull(message = "数据权限规则类型不能为空!") - @ConstDictRef(constDictClass = DataPermRuleType.class) - private Integer ruleType; - - /** - * 部门Id列表(逗号分隔)。 - */ - @ApiModelProperty(hidden = true) - private String deptIdListString; - - /** - * 搜索字符串。 - */ - @ApiModelProperty(value = "LIKE 模糊搜索字符串") - private String searchString; -} \ No newline at end of file diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dto/SysDeptDto.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dto/SysDeptDto.java deleted file mode 100644 index a2054d46..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dto/SysDeptDto.java +++ /dev/null @@ -1,73 +0,0 @@ -package com.orangeforms.webadmin.upms.dto; - -import com.orangeforms.common.core.validator.UpdateGroup; - -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.Data; - -import javax.validation.constraints.*; - -import java.util.Date; - -/** - * SysDeptDto对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@ApiModel("SysDeptDto对象") -@Data -public class SysDeptDto { - - /** - * 部门Id。 - */ - @ApiModelProperty(value = "部门Id", required = true) - @NotNull(message = "数据验证失败,部门Id不能为空!", groups = {UpdateGroup.class}) - private Long deptId; - - /** - * 部门名称。 - */ - @ApiModelProperty(value = "部门名称", required = true) - @NotBlank(message = "数据验证失败,部门名称不能为空!") - private String deptName; - - /** - * 显示顺序。 - */ - @ApiModelProperty(value = "显示顺序", required = true) - @NotNull(message = "数据验证失败,显示顺序不能为空!") - private Integer showOrder; - - /** - * 父部门Id。 - */ - @ApiModelProperty(value = "父部门Id") - private Long parentId; - - /** - * 创建者Id。 - */ - @ApiModelProperty(value = "创建者Id") - private Long createUserId; - - /** - * 更新者Id。 - */ - @ApiModelProperty(value = "更新者Id") - private Long updateUserId; - - /** - * 创建时间。 - */ - @ApiModelProperty(value = "创建时间") - private Date createTime; - - /** - * 更新时间。 - */ - @ApiModelProperty(value = "更新时间") - private Date updateTime; -} diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dto/SysDeptPostDto.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dto/SysDeptPostDto.java deleted file mode 100644 index 06a0814c..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dto/SysDeptPostDto.java +++ /dev/null @@ -1,48 +0,0 @@ -package com.orangeforms.webadmin.upms.dto; - -import com.orangeforms.common.core.validator.UpdateGroup; - -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.Data; - -import javax.validation.constraints.*; - -/** - * 部门岗位Dto对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@ApiModel("部门岗位Dto") -@Data -public class SysDeptPostDto { - - /** - * 部门岗位Id。 - */ - @ApiModelProperty(value = "部门岗位Id", required = true) - @NotNull(message = "数据验证失败,部门岗位Id不能为空!", groups = {UpdateGroup.class}) - private Long deptPostId; - - /** - * 部门Id。 - */ - @ApiModelProperty(value = "部门Id", required = true) - @NotNull(message = "数据验证失败,部门Id不能为空!", groups = {UpdateGroup.class}) - private Long deptId; - - /** - * 岗位Id。 - */ - @ApiModelProperty(value = "岗位Id", required = true) - @NotNull(message = "数据验证失败,岗位Id不能为空!", groups = {UpdateGroup.class}) - private Long postId; - - /** - * 部门岗位显示名称。 - */ - @ApiModelProperty(value = "部门岗位显示名称", required = true) - @NotBlank(message = "数据验证失败,部门岗位显示名称不能为空!") - private String postShowName; -} diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dto/SysMenuDto.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dto/SysMenuDto.java deleted file mode 100644 index 62314a90..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dto/SysMenuDto.java +++ /dev/null @@ -1,81 +0,0 @@ -package com.orangeforms.webadmin.upms.dto; - -import com.orangeforms.common.core.validator.ConstDictRef; -import com.orangeforms.common.core.validator.UpdateGroup; -import com.orangeforms.webadmin.upms.model.constant.SysMenuType; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.Data; - -import javax.validation.constraints.NotBlank; -import javax.validation.constraints.NotNull; - -/** - * 菜单Dto。 - * - * @author Jerry - * @date 2021-06-06 - */ -@ApiModel("菜单Dto") -@Data -public class SysMenuDto { - - /** - * 菜单Id。 - */ - @ApiModelProperty(value = "菜单Id", required = true) - @NotNull(message = "菜单Id不能为空!", groups = {UpdateGroup.class}) - private Long menuId; - - /** - * 父菜单Id,目录菜单的父菜单为null - */ - @ApiModelProperty(value = "父菜单Id") - private Long parentId; - - /** - * 菜单显示名称。 - */ - @ApiModelProperty(value = "菜单显示名称", required = true) - @NotBlank(message = "菜单显示名称不能为空!") - private String menuName; - - /** - * 菜单类型 (0: 目录 1: 菜单 2: 按钮 3: UI片段)。 - */ - @ApiModelProperty(value = "菜单类型", required = true) - @NotNull(message = "菜单类型不能为空!") - @ConstDictRef(constDictClass = SysMenuType.class, message = "数据验证失败,菜单类型为无效值!") - private Integer menuType; - - /** - * 前端表单路由名称,仅用于menu_type为1的菜单类型。 - */ - @ApiModelProperty(value = "前端表单路由名称") - private String formRouterName; - - /** - * 在线表单主键Id,仅用于在线表单绑定的菜单。 - */ - @ApiModelProperty(value = "在线表单主键Id") - private Long onlineFormId; - - /** - * 仅用于在线表单的流程Id。 - */ - @ApiModelProperty(value = "仅用于在线表单的流程Id") - private Long onlineFlowEntryId; - - /** - * 菜单显示顺序 (值越小,排序越靠前)。 - */ - @ApiModelProperty(value = "菜单显示顺序", required = true) - @NotNull(message = "菜单显示顺序不能为空!") - private Integer showOrder; - - /** - * 菜单图标。 - */ - @ApiModelProperty(value = "菜单显示顺序") - private String icon; -} diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dto/SysPermCodeDto.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dto/SysPermCodeDto.java deleted file mode 100644 index e6aa1878..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dto/SysPermCodeDto.java +++ /dev/null @@ -1,64 +0,0 @@ -package com.orangeforms.webadmin.upms.dto; - -import com.orangeforms.common.core.validator.ConstDictRef; -import com.orangeforms.common.core.validator.UpdateGroup; -import com.orangeforms.webadmin.upms.model.constant.SysPermCodeType; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.Data; - -import javax.validation.constraints.NotBlank; -import javax.validation.constraints.NotNull; - -/** - * 权限字Dto。 - * - * @author Jerry - * @date 2021-06-06 - */ -@ApiModel("权限字Dto") -@Data -public class SysPermCodeDto { - - /** - * 权限字Id。 - */ - @ApiModelProperty(value = "权限字Id", required = true) - @NotNull(message = "权限字Id不能为空!", groups = {UpdateGroup.class}) - private Long permCodeId; - - /** - * 权限字标识(一般为有含义的英文字符串)。 - */ - @ApiModelProperty(value = "权限字标识", required = true) - @NotBlank(message = "权限字编码不能为空!") - private String permCode; - - /** - * 上级权限字Id。 - */ - @ApiModelProperty(value = "上级权限字Id") - private Long parentId; - - /** - * 权限字类型(0: 表单 1: UI片段 2: 操作)。 - */ - @ApiModelProperty(value = "权限字类型", required = true) - @NotNull(message = "权限字类型不能为空!") - @ConstDictRef(constDictClass = SysPermCodeType.class, message = "数据验证失败,权限类型为无效值!") - private Integer permCodeType; - - /** - * 显示名称。 - */ - @ApiModelProperty(value = "显示名称", required = true) - @NotBlank(message = "权限字显示名称不能为空!") - private String showName; - - /** - * 显示顺序(数值越小,越靠前)。 - */ - @ApiModelProperty(value = "显示顺序", required = true) - @NotNull(message = "权限字显示顺序不能为空!") - private Integer showOrder; -} \ No newline at end of file diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dto/SysPermDto.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dto/SysPermDto.java deleted file mode 100644 index 163bed3e..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dto/SysPermDto.java +++ /dev/null @@ -1,61 +0,0 @@ -package com.orangeforms.webadmin.upms.dto; - -import com.orangeforms.common.core.validator.UpdateGroup; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.Data; - -import javax.validation.constraints.NotBlank; -import javax.validation.constraints.NotNull; - -/** - * 权限资源Dto。 - * - * @author Jerry - * @date 2021-06-06 - */ -@ApiModel("权限资源Dto") -@Data -public class SysPermDto { - - /** - * 权限资源Id。 - */ - @ApiModelProperty(value = "权限资源Id", required = true) - @NotNull(message = "权限Id不能为空!", groups = {UpdateGroup.class}) - private Long permId; - - /** - * 权限资源名称。 - */ - @ApiModelProperty(value = "权限资源名称", required = true) - @NotBlank(message = "权限资源名称不能为空!") - private String permName; - - /** - * shiro格式的权限字,如(upms:sysUser:add)。 - */ - @ApiModelProperty(value = "权限字") - private String permCode; - - /** - * 权限所在的权限模块Id。 - */ - @ApiModelProperty(value = "权限所在的权限模块Id") - @NotNull(message = "权限模块Id不能为空!") - private Long moduleId; - - /** - * 关联的URL。 - */ - @ApiModelProperty(value = "关联的URL", required = true) - @NotBlank(message = "权限关联的url不能为空!") - private String url; - - /** - * 权限在当前模块下的顺序,由小到大。 - */ - @ApiModelProperty(value = "显示顺序", required = true) - @NotNull(message = "权限显示顺序不能为空!") - private Integer showOrder; -} \ No newline at end of file diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dto/SysPermModuleDto.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dto/SysPermModuleDto.java deleted file mode 100644 index 29459739..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dto/SysPermModuleDto.java +++ /dev/null @@ -1,57 +0,0 @@ -package com.orangeforms.webadmin.upms.dto; - -import com.orangeforms.common.core.validator.ConstDictRef; -import com.orangeforms.common.core.validator.UpdateGroup; -import com.orangeforms.webadmin.upms.model.constant.SysPermModuleType; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.Data; - -import javax.validation.constraints.NotBlank; -import javax.validation.constraints.NotNull; - -/** - * 权限资源模块Dto。 - * - * @author Jerry - * @date 2021-06-06 - */ -@ApiModel("权限资源模块Dto") -@Data -public class SysPermModuleDto { - - /** - * 权限模块Id。 - */ - @ApiModelProperty(value = "权限模块Id", required = true) - @NotNull(message = "权限模块Id不能为空!", groups = {UpdateGroup.class}) - private Long moduleId; - - /** - * 权限模块名称。 - */ - @ApiModelProperty(value = "权限模块名称", required = true) - @NotBlank(message = "权限模块名称不能为空!") - private String moduleName; - - /** - * 上级权限模块Id。 - */ - @ApiModelProperty(value = "上级权限模块Id") - private Long parentId; - - /** - * 权限模块类型(0: 普通模块 1: Controller模块)。 - */ - @ApiModelProperty(value = "权限模块类型", required = true) - @NotNull(message = "模块类型不能为空!") - @ConstDictRef(constDictClass = SysPermModuleType.class, message = "数据验证失败,权限模块类型为无效值!") - private Integer moduleType; - - /** - * 权限模块在当前层级下的顺序,由小到大。 - */ - @ApiModelProperty(value = "显示顺序", required = true) - @NotNull(message = "权限模块显示顺序不能为空!") - private Integer showOrder; -} \ No newline at end of file diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dto/SysPostDto.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dto/SysPostDto.java deleted file mode 100644 index ea4d0d62..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dto/SysPostDto.java +++ /dev/null @@ -1,48 +0,0 @@ -package com.orangeforms.webadmin.upms.dto; - -import com.orangeforms.common.core.validator.UpdateGroup; - -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.Data; - -import javax.validation.constraints.*; - -/** - * 岗位Dto对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@ApiModel("岗位Dto") -@Data -public class SysPostDto { - - /** - * 岗位Id。 - */ - @ApiModelProperty(value = "岗位Id", required = true) - @NotNull(message = "数据验证失败,岗位Id不能为空!", groups = {UpdateGroup.class}) - private Long postId; - - /** - * 岗位名称。 - */ - @ApiModelProperty(value = "岗位名称", required = true) - @NotBlank(message = "数据验证失败,岗位名称不能为空!") - private String postName; - - /** - * 岗位层级,数值越小级别越高。 - */ - @ApiModelProperty(value = "岗位层级", required = true) - @NotNull(message = "数据验证失败,岗位层级不能为空!") - private Integer level; - - /** - * 是否领导岗位。 - */ - @ApiModelProperty(value = "是否领导岗位", required = true) - @NotNull(message = "数据验证失败,领导岗位不能为空!", groups = {UpdateGroup.class}) - private Boolean leaderPost; -} diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dto/SysRoleDto.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dto/SysRoleDto.java deleted file mode 100644 index bd14fed8..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dto/SysRoleDto.java +++ /dev/null @@ -1,33 +0,0 @@ -package com.orangeforms.webadmin.upms.dto; - -import com.orangeforms.common.core.validator.UpdateGroup; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.Data; - -import javax.validation.constraints.*; - -/** - * 角色Dto。 - * - * @author Jerry - * @date 2021-06-06 - */ -@ApiModel("角色Dto") -@Data -public class SysRoleDto { - - /** - * 角色Id。 - */ - @ApiModelProperty(value = "角色Id", required = true) - @NotNull(message = "角色Id不能为空!", groups = {UpdateGroup.class}) - private Long roleId; - - /** - * 角色名称。 - */ - @ApiModelProperty(value = "角色名称", required = true) - @NotBlank(message = "角色名称不能为空!") - private String roleName; -} diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dto/SysUserDto.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dto/SysUserDto.java deleted file mode 100644 index b09269c1..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/dto/SysUserDto.java +++ /dev/null @@ -1,119 +0,0 @@ -package com.orangeforms.webadmin.upms.dto; - -import com.orangeforms.common.core.validator.AddGroup; -import com.orangeforms.common.core.validator.UpdateGroup; -import com.orangeforms.common.core.validator.ConstDictRef; -import com.orangeforms.webadmin.upms.model.constant.SysUserType; -import com.orangeforms.webadmin.upms.model.constant.SysUserStatus; - -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.Data; - -import javax.validation.constraints.*; - -import java.util.Date; - -/** - * SysUserDto对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@ApiModel("SysUserDto对象") -@Data -public class SysUserDto { - - /** - * 用户Id。 - */ - @ApiModelProperty(value = "用户Id", required = true) - @NotNull(message = "数据验证失败,用户Id不能为空!", groups = {UpdateGroup.class}) - private Long userId; - - /** - * 登录用户名。 - */ - @ApiModelProperty(value = "登录用户名", required = true) - @NotBlank(message = "数据验证失败,登录用户名不能为空!") - private String loginName; - - /** - * 用户密码。 - */ - @ApiModelProperty(value = "用户密码", required = true) - @NotBlank(message = "数据验证失败,用户密码不能为空!", groups = {AddGroup.class}) - private String password; - - /** - * 用户显示名称。 - */ - @ApiModelProperty(value = "用户显示名称", required = true) - @NotBlank(message = "数据验证失败,用户显示名称不能为空!") - private String showName; - - /** - * 用户部门Id。 - */ - @ApiModelProperty(value = "用户部门Id", required = true) - @NotNull(message = "数据验证失败,用户部门Id不能为空!") - private Long deptId; - - /** - * 用户类型(0: 管理员 1: 系统管理用户 2: 系统业务用户)。 - */ - @ApiModelProperty(value = "用户类型(0: 管理员 1: 系统管理用户 2: 系统业务用户)", required = true) - @NotNull(message = "数据验证失败,用户类型(0: 管理员 1: 系统管理用户 2: 系统业务用户)不能为空!") - @ConstDictRef(constDictClass = SysUserType.class, message = "数据验证失败,用户类型(0: 管理员 1: 系统管理用户 2: 系统业务用户)为无效值!") - private Integer userType; - - /** - * 用户头像的Url。 - */ - @ApiModelProperty(value = "用户头像的Url") - private String headImageUrl; - - /** - * 用户状态(0: 正常 1: 锁定)。 - */ - @ApiModelProperty(value = "用户状态(0: 正常 1: 锁定)", required = true) - @NotNull(message = "数据验证失败,用户状态(0: 正常 1: 锁定)不能为空!") - @ConstDictRef(constDictClass = SysUserStatus.class, message = "数据验证失败,用户状态(0: 正常 1: 锁定)为无效值!") - private Integer userStatus; - - /** - * 创建者Id。 - */ - @ApiModelProperty(value = "创建者Id") - private Long createUserId; - - /** - * 更新者Id。 - */ - @ApiModelProperty(value = "更新者Id") - private Long updateUserId; - - /** - * 创建时间。 - */ - @ApiModelProperty(value = "创建时间") - private Date createTime; - - /** - * 更新时间。 - */ - @ApiModelProperty(value = "更新时间") - private Date updateTime; - - /** - * createTime 范围过滤起始值(>=)。 - */ - @ApiModelProperty(value = "createTime 范围过滤起始值(>=)") - private String createTimeStart; - - /** - * createTime 范围过滤结束值(<=)。 - */ - @ApiModelProperty(value = "createTime 范围过滤结束值(<=)") - private String createTimeEnd; -} diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/SysDataPerm.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/SysDataPerm.java deleted file mode 100644 index 6db9cc23..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/SysDataPerm.java +++ /dev/null @@ -1,113 +0,0 @@ -package com.orangeforms.webadmin.upms.model; - -import com.baomidou.mybatisplus.annotation.*; -import com.orangeforms.common.core.util.MyCommonUtil; -import com.orangeforms.common.core.annotation.RelationManyToMany; -import com.orangeforms.common.core.base.mapper.BaseModelMapper; -import com.orangeforms.webadmin.upms.vo.SysDataPermVo; -import lombok.Data; -import org.mapstruct.Mapper; -import org.mapstruct.Mapping; -import org.mapstruct.factory.Mappers; - -import java.util.*; - -/** - * 数据权限实体对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Data -@TableName(value = "zz_sys_data_perm") -public class SysDataPerm { - - /** - * 主键Id。 - */ - @TableId(value = "data_perm_id") - private Long dataPermId; - - /** - * 显示名称。 - */ - @TableField(value = "data_perm_name") - private String dataPermName; - - /** - * 数据权限规则类型(0: 全部可见 1: 只看自己 2: 只看本部门 3: 本部门及子部门 4: 多部门及子部门 5: 自定义部门列表)。 - */ - @TableField(value = "rule_type") - private Integer ruleType; - - /** - * 创建者Id。 - */ - @TableField(value = "create_user_id") - private Long createUserId; - - /** - * 创建时间。 - */ - @TableField(value = "create_time") - private Date createTime; - - /** - * 更新者Id。 - */ - @TableField(value = "update_user_id") - private Long updateUserId; - - /** - * 更新时间。 - */ - @TableField(value = "update_time") - private Date updateTime; - - /** - * 逻辑删除标记字段(1: 正常 -1: 已删除)。 - */ - @TableLogic - @TableField(value = "deleted_flag") - private Integer deletedFlag; - - @TableField(exist = false) - private String deptIdListString; - - @RelationManyToMany( - relationMapperName = "sysDataPermDeptMapper", - relationMasterIdField = "dataPermId", - relationModelClass = SysDataPermDept.class) - @TableField(exist = false) - private List dataPermDeptList; - - @TableField(exist = false) - private String searchString; - - public void setSearchString(String searchString) { - this.searchString = MyCommonUtil.replaceSqlWildcard(searchString); - } - - @Mapper - public interface SysDataPermModelMapper extends BaseModelMapper { - /** - * 转换VO对象到实体对象。 - * - * @param sysDataPermVo 域对象。 - * @return 实体对象。 - */ - @Mapping(target = "dataPermDeptList", expression = "java(mapToBean(sysDataPermVo.getDataPermDeptList(), com.orangeforms.webadmin.upms.model.SysDataPermDept.class))") - @Override - SysDataPerm toModel(SysDataPermVo sysDataPermVo); - /** - * 转换实体对象到VO对象。 - * - * @param sysDataPerm 实体对象。 - * @return 域对象。 - */ - @Mapping(target = "dataPermDeptList", expression = "java(beanToMap(sysDataPerm.getDataPermDeptList(), false))") - @Override - SysDataPermVo fromModel(SysDataPerm sysDataPerm); - } - public static final SysDataPermModelMapper INSTANCE = Mappers.getMapper(SysDataPerm.SysDataPermModelMapper.class); -} diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/SysDataPermDept.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/SysDataPermDept.java deleted file mode 100644 index f6e40002..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/SysDataPermDept.java +++ /dev/null @@ -1,29 +0,0 @@ -package com.orangeforms.webadmin.upms.model; - -import com.baomidou.mybatisplus.annotation.*; -import lombok.Data; -import lombok.ToString; - -/** - * 数据权限与部门关联实体对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Data -@ToString(of = {"deptId"}) -@TableName(value = "zz_sys_data_perm_dept") -public class SysDataPermDept { - - /** - * 数据权限Id。 - */ - @TableField(value = "data_perm_id") - private Long dataPermId; - - /** - * 关联部门Id。 - */ - @TableField(value = "dept_id") - private Long deptId; -} diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/SysDataPermUser.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/SysDataPermUser.java deleted file mode 100644 index 81256ca0..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/SysDataPermUser.java +++ /dev/null @@ -1,27 +0,0 @@ -package com.orangeforms.webadmin.upms.model; - -import com.baomidou.mybatisplus.annotation.*; -import lombok.Data; - -/** - * 数据权限与用户关联实体对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Data -@TableName(value = "zz_sys_data_perm_user") -public class SysDataPermUser { - - /** - * 数据权限Id。 - */ - @TableField(value = "data_perm_id") - private Long dataPermId; - - /** - * 用户Id。 - */ - @TableField(value = "user_id") - private Long userId; -} diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/SysDept.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/SysDept.java deleted file mode 100644 index d63fe74d..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/SysDept.java +++ /dev/null @@ -1,81 +0,0 @@ -package com.orangeforms.webadmin.upms.model; - -import com.baomidou.mybatisplus.annotation.*; -import com.orangeforms.common.core.base.mapper.BaseModelMapper; -import com.orangeforms.webadmin.upms.vo.SysDeptVo; -import lombok.Data; -import org.mapstruct.*; -import org.mapstruct.factory.Mappers; - -import java.util.Date; - -/** - * SysDept实体对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Data -@TableName(value = "zz_sys_dept") -public class SysDept { - - /** - * 部门Id。 - */ - @TableId(value = "dept_id") - private Long deptId; - - /** - * 部门名称。 - */ - @TableField(value = "dept_name") - private String deptName; - - /** - * 显示顺序。 - */ - @TableField(value = "show_order") - private Integer showOrder; - - /** - * 父部门Id。 - */ - @TableField(value = "parent_id") - private Long parentId; - - /** - * 逻辑删除标记字段(1: 正常 -1: 已删除)。 - */ - @TableLogic - @TableField(value = "deleted_flag") - private Integer deletedFlag; - - /** - * 创建者Id。 - */ - @TableField(value = "create_user_id") - private Long createUserId; - - /** - * 更新者Id。 - */ - @TableField(value = "update_user_id") - private Long updateUserId; - - /** - * 创建时间。 - */ - @TableField(value = "create_time") - private Date createTime; - - /** - * 更新时间。 - */ - @TableField(value = "update_time") - private Date updateTime; - - @Mapper - public interface SysDeptModelMapper extends BaseModelMapper { - } - public static final SysDeptModelMapper INSTANCE = Mappers.getMapper(SysDeptModelMapper.class); -} diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/SysDeptPost.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/SysDeptPost.java deleted file mode 100644 index c4001120..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/SysDeptPost.java +++ /dev/null @@ -1,39 +0,0 @@ -package com.orangeforms.webadmin.upms.model; - -import com.baomidou.mybatisplus.annotation.*; -import lombok.Data; - -/** - * 部门岗位多对多关联实体对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Data -@TableName(value = "zz_sys_dept_post") -public class SysDeptPost { - - /** - * 部门岗位Id。 - */ - @TableId(value = "dept_post_id") - private Long deptPostId; - - /** - * 部门Id。 - */ - @TableField(value = "dept_id") - private Long deptId; - - /** - * 岗位Id。 - */ - @TableField(value = "post_id") - private Long postId; - - /** - * 部门岗位显示名称。 - */ - @TableField(value = "post_show_name") - private String postShowName; -} diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/SysDeptRelation.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/SysDeptRelation.java deleted file mode 100644 index 717d1cb2..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/SysDeptRelation.java +++ /dev/null @@ -1,31 +0,0 @@ -package com.orangeforms.webadmin.upms.model; - -import com.baomidou.mybatisplus.annotation.*; -import lombok.AllArgsConstructor; -import lombok.Data; -import lombok.NoArgsConstructor; - -/** - * 部门关联实体对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Data -@AllArgsConstructor -@NoArgsConstructor -@TableName(value = "zz_sys_dept_relation") -public class SysDeptRelation { - - /** - * 上级部门Id。 - */ - @TableField(value = "parent_dept_id") - private Long parentDeptId; - - /** - * 部门Id。 - */ - @TableField(value = "dept_id") - private Long deptId; -} diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/SysMenu.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/SysMenu.java deleted file mode 100644 index 07126b16..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/SysMenu.java +++ /dev/null @@ -1,143 +0,0 @@ -package com.orangeforms.webadmin.upms.model; - -import com.baomidou.mybatisplus.annotation.*; -import com.orangeforms.common.core.annotation.RelationManyToMany; -import com.orangeforms.common.core.base.mapper.BaseModelMapper; -import com.orangeforms.webadmin.upms.vo.SysMenuVo; -import lombok.Data; -import org.mapstruct.Mapper; -import org.mapstruct.Mapping; -import org.mapstruct.factory.Mappers; - -import java.util.*; - -/** - * 菜单实体对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Data -@TableName(value = "zz_sys_menu") -public class SysMenu { - - /** - * 菜单Id。 - */ - @TableId(value = "menu_id") - private Long menuId; - - /** - * 父菜单Id,目录菜单的父菜单为null。 - */ - @TableField(value = "parent_id") - private Long parentId; - - /** - * 菜单显示名称。 - */ - @TableField(value = "menu_name") - private String menuName; - - /** - * 菜单类型(0: 目录 1: 菜单 2: 按钮 3: UI片段)。 - */ - @TableField(value = "menu_type") - private Integer menuType; - - /** - * 前端表单路由名称,仅用于menu_type为1的菜单类型。 - */ - @TableField(value = "form_router_name") - private String formRouterName; - - /** - * 在线表单主键Id,仅用于在线表单绑定的菜单。 - */ - @TableField(value = "online_form_id") - private Long onlineFormId; - - /** - * 在线表单菜单的权限控制类型,具体值可参考SysOnlineMenuPermType常量对象。 - */ - @TableField(value = "online_menu_perm_type") - private Integer onlineMenuPermType; - - /** - * 仅用于在线表单的流程Id。 - */ - @TableField(value = "online_flow_entry_id") - private Long onlineFlowEntryId; - - /** - * 菜单显示顺序 (值越小,排序越靠前)。 - */ - @TableField(value = "show_order") - private Integer showOrder; - - /** - * 菜单图标。 - */ - private String icon; - - /** - * 创建者Id。 - */ - @TableField(value = "create_user_id") - private Long createUserId; - - /** - * 创建时间。 - */ - @TableField(value = "create_time") - private Date createTime; - - /** - * 更新者Id。 - */ - @TableField(value = "update_user_id") - private Long updateUserId; - - /** - * 更新时间。 - */ - @TableField(value = "update_time") - private Date updateTime; - - /** - * 逻辑删除标记字段(1: 正常 -1: 已删除)。 - */ - @TableLogic - @TableField(value = "deleted_flag") - private Integer deletedFlag; - - @RelationManyToMany( - relationMapperName = "sysMenuPermCodeMapper", - relationMasterIdField = "menuId", - relationModelClass = SysMenuPermCode.class) - @TableField(exist = false) - private List sysMenuPermCodeList; - - @Mapper - public interface SysMenuModelMapper extends BaseModelMapper { - /** - * 转换VO对象到实体对象。 - * - * @param sysMenuVo 域对象。 - * @return 实体对象。 - */ - @Mapping(target = "sysMenuPermCodeList", expression = "java(mapToBean(sysMenuVo.getSysMenuPermCodeList(), com.orangeforms.webadmin.upms.model.SysMenuPermCode.class))") - @Override - SysMenu toModel(SysMenuVo sysMenuVo); - /** - * 转换实体对象到VO对象。 - * - * @param sysMenu 实体对象。 - * @return 域对象。 - */ - @Mapping(target = "sysMenuPermCodeList", expression = "java(beanToMap(sysMenu.getSysMenuPermCodeList(), false))") - @Override - SysMenuVo fromModel(SysMenu sysMenu); - } - public static final SysMenuModelMapper INSTANCE = Mappers.getMapper(SysMenu.SysMenuModelMapper.class); -} diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/SysMenuPermCode.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/SysMenuPermCode.java deleted file mode 100644 index 017e05e3..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/SysMenuPermCode.java +++ /dev/null @@ -1,27 +0,0 @@ -package com.orangeforms.webadmin.upms.model; - -import com.baomidou.mybatisplus.annotation.*; -import lombok.Data; - -/** - * 菜单与权限字关联实体对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Data -@TableName(value = "zz_sys_menu_perm_code") -public class SysMenuPermCode { - - /** - * 关联菜单Id。 - */ - @TableField(value = "menu_id") - private Long menuId; - - /** - * 关联权限字Id。 - */ - @TableField(value = "perm_code_id") - private Long permCodeId; -} diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/SysPerm.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/SysPerm.java deleted file mode 100644 index ee53b732..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/SysPerm.java +++ /dev/null @@ -1,87 +0,0 @@ -package com.orangeforms.webadmin.upms.model; - -import com.baomidou.mybatisplus.annotation.*; -import com.orangeforms.common.core.annotation.RelationDict; -import lombok.Data; - -import java.util.*; - -/** - * 权限资源实体对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Data -@TableName(value = "zz_sys_perm") -public class SysPerm { - - /** - * 权限资源Id。 - */ - @TableId(value = "perm_id") - private Long permId; - - /** - * 权限所在的权限模块Id。 - */ - @TableField(value = "module_id") - private Long moduleId; - - /** - * 权限名称。 - */ - @TableField(value = "perm_name") - private String permName; - - /** - * 关联的URL。 - */ - private String url; - - /** - * 权限在当前模块下的顺序,由小到大。 - */ - @TableField(value = "show_order") - private Integer showOrder; - - /** - * 创建者Id。 - */ - @TableField(value = "create_user_id") - private Long createUserId; - - /** - * 创建时间。 - */ - @TableField(value = "create_time") - private Date createTime; - - /** - * 更新者Id。 - */ - @TableField(value = "update_user_id") - private Long updateUserId; - - /** - * 更新时间。 - */ - @TableField(value = "update_time") - private Date updateTime; - - /** - * 逻辑删除标记字段(1: 正常 -1: 已删除)。 - */ - @TableLogic - @TableField(value = "deleted_flag") - private Integer deletedFlag; - - @RelationDict( - masterIdField = "moduleId", - slaveServiceName = "SysPermModuleService", - slaveModelClass = SysPermModule.class, - slaveIdField = "moduleId", - slaveNameField = "moduleName") - @TableField(exist = false) - private Map moduleIdDictMap; -} diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/SysPermCode.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/SysPermCode.java deleted file mode 100644 index e7a7aecc..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/SysPermCode.java +++ /dev/null @@ -1,120 +0,0 @@ -package com.orangeforms.webadmin.upms.model; - -import com.baomidou.mybatisplus.annotation.*; -import com.orangeforms.common.core.annotation.RelationManyToMany; -import com.orangeforms.common.core.base.mapper.BaseModelMapper; -import com.orangeforms.webadmin.upms.vo.SysPermCodeVo; -import lombok.Data; -import org.mapstruct.Mapper; -import org.mapstruct.Mapping; -import org.mapstruct.factory.Mappers; - -import java.util.*; - -/** - * 权限字实体对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Data -@TableName(value = "zz_sys_perm_code") -public class SysPermCode { - - /** - * 权限字Id。 - */ - @TableId(value = "perm_code_id") - private Long permCodeId; - - /** - * 上级权限字Id。 - */ - @TableField(value = "parent_id") - private Long parentId; - - /** - * 权限字标识(一般为有含义的英文字符串)。 - */ - @TableField(value = "perm_code") - private String permCode; - - /** - * 权限类型(0: 表单 1: UI片段 2: 操作)。 - */ - @TableField(value = "perm_code_type") - private Integer permCodeType; - - /** - * 显示名称。 - */ - @TableField(value = "show_name") - private String showName; - - /** - * 显示顺序(数值越小,越靠前)。 - */ - @TableField(value = "show_order") - private Integer showOrder; - - /** - * 创建者Id。 - */ - @TableField(value = "create_user_id") - private Long createUserId; - - /** - * 创建时间。 - */ - @TableField(value = "create_time") - private Date createTime; - - /** - * 更新者Id。 - */ - @TableField(value = "update_user_id") - private Long updateUserId; - - /** - * 更新时间。 - */ - @TableField(value = "update_time") - private Date updateTime; - - /** - * 逻辑删除标记字段(1: 正常 -1: 已删除)。 - */ - @TableLogic - @TableField(value = "deleted_flag") - private Integer deletedFlag; - - @RelationManyToMany( - relationMapperName = "sysPermCodePermMapper", - relationMasterIdField = "permCodeId", - relationModelClass = SysPermCodePerm.class) - @TableField(exist = false) - private List sysPermCodePermList; - - @Mapper - public interface SysPermCodeModelMapper extends BaseModelMapper { - /** - * 转换VO对象到实体对象。 - * - * @param sysPermCodeVo 域对象。 - * @return 实体对象。 - */ - @Mapping(target = "sysPermCodePermList", expression = "java(mapToBean(sysPermCodeVo.getSysPermCodePermList(), com.orangeforms.webadmin.upms.model.SysPermCodePerm.class))") - @Override - SysPermCode toModel(SysPermCodeVo sysPermCodeVo); - /** - * 转换实体对象到VO对象。 - * - * @param sysPermCode 实体对象。 - * @return 域对象。 - */ - @Mapping(target = "sysPermCodePermList", expression = "java(beanToMap(sysPermCode.getSysPermCodePermList(), false))") - @Override - SysPermCodeVo fromModel(SysPermCode sysPermCode); - } - public static final SysPermCodeModelMapper INSTANCE = Mappers.getMapper(SysPermCode.SysPermCodeModelMapper.class); -} diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/SysPermCodePerm.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/SysPermCodePerm.java deleted file mode 100644 index 6e885c92..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/SysPermCodePerm.java +++ /dev/null @@ -1,27 +0,0 @@ -package com.orangeforms.webadmin.upms.model; - -import com.baomidou.mybatisplus.annotation.*; -import lombok.Data; - -/** - * 权限字与权限资源关联实体对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Data -@TableName(value = "zz_sys_perm_code_perm") -public class SysPermCodePerm { - - /** - * 权限字Id。 - */ - @TableField(value = "perm_code_id") - private Long permCodeId; - - /** - * 权限Id。 - */ - @TableField(value = "perm_id") - private Long permId; -} diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/SysPermModule.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/SysPermModule.java deleted file mode 100644 index f7d7a365..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/SysPermModule.java +++ /dev/null @@ -1,81 +0,0 @@ -package com.orangeforms.webadmin.upms.model; - -import com.baomidou.mybatisplus.annotation.*; -import lombok.Data; - -import java.util.*; - -/** - * 权限模块实体对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Data -@TableName(value = "zz_sys_perm_module") -public class SysPermModule { - - /** - * 权限模块Id。 - */ - @TableId(value = "module_id") - private Long moduleId; - - /** - * 上级权限模块Id。 - */ - @TableField(value = "parent_id") - private Long parentId; - - /** - * 权限模块名称。 - */ - @TableField(value = "module_name") - private String moduleName; - - /** - * 权限模块类型(0: 普通模块 1: Controller模块)。 - */ - @TableField(value = "module_type") - private Integer moduleType; - - /** - * 权限模块在当前层级下的顺序,由小到大。 - */ - @TableField(value = "show_order") - private Integer showOrder; - - /** - * 创建者Id。 - */ - @TableField(value = "create_user_id") - private Long createUserId; - - /** - * 创建时间。 - */ - @TableField(value = "create_time") - private Date createTime; - - /** - * 更新者Id。 - */ - @TableField(value = "update_user_id") - private Long updateUserId; - - /** - * 更新时间。 - */ - @TableField(value = "update_time") - private Date updateTime; - - /** - * 逻辑删除标记字段(1: 正常 -1: 已删除)。 - */ - @TableLogic - @TableField(value = "deleted_flag") - private Integer deletedFlag; - - @TableField(exist = false) - private List sysPermList; -} diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/SysPermWhitelist.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/SysPermWhitelist.java deleted file mode 100644 index 209c9244..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/SysPermWhitelist.java +++ /dev/null @@ -1,33 +0,0 @@ -package com.orangeforms.webadmin.upms.model; - -import com.baomidou.mybatisplus.annotation.*; -import lombok.Data; - -/** - * 白名单实体对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Data -@TableName(value = "zz_sys_perm_whitelist") -public class SysPermWhitelist { - - /** - * 权限资源的URL。 - */ - @TableId(value = "perm_url") - private String permUrl; - - /** - * 权限资源所属模块名字(通常是Controller的名字)。 - */ - @TableField(value = "module_name") - private String moduleName; - - /** - * 权限的名称。 - */ - @TableField(value = "perm_name") - private String permName; -} diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/SysPost.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/SysPost.java deleted file mode 100644 index 682e5eb8..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/SysPost.java +++ /dev/null @@ -1,104 +0,0 @@ -package com.orangeforms.webadmin.upms.model; - -import com.baomidou.mybatisplus.annotation.*; -import com.orangeforms.common.core.base.mapper.BaseModelMapper; -import com.orangeforms.webadmin.upms.vo.SysPostVo; -import lombok.Data; -import org.mapstruct.*; -import org.mapstruct.factory.Mappers; - -import java.util.Date; - -/** - * 岗位实体对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Data -@TableName(value = "zz_sys_post") -public class SysPost { - - /** - * 岗位Id。 - */ - @TableId(value = "post_id") - private Long postId; - - /** - * 岗位名称。 - */ - @TableField(value = "post_name") - private String postName; - - /** - * 岗位层级,数值越小级别越高。 - */ - private Integer level; - - /** - * 是否领导岗位。 - */ - @TableField(value = "leader_post") - private Boolean leaderPost; - - /** - * 创建者Id。 - */ - @TableField(value = "create_user_id") - private Long createUserId; - - /** - * 创建时间。 - */ - @TableField(value = "create_time") - private Date createTime; - - /** - * 更新者Id。 - */ - @TableField(value = "update_user_id") - private Long updateUserId; - - /** - * 更新时间。 - */ - @TableField(value = "update_time") - private Date updateTime; - - /** - * 逻辑删除标记字段(1: 正常 -1: 已删除)。 - */ - @TableLogic - @TableField(value = "deleted_flag") - private Integer deletedFlag; - - /** - * postId 的多对多关联表数据对象。 - */ - @TableField(exist = false) - private SysDeptPost sysDeptPost; - - @Mapper - public interface SysPostModelMapper extends BaseModelMapper { - /** - * 转换Vo对象到实体对象。 - * - * @param sysPostVo 域对象。 - * @return 实体对象。 - */ - @Mapping(target = "sysDeptPost", expression = "java(mapToBean(sysPostVo.getSysDeptPost(), com.orangeforms.webadmin.upms.model.SysDeptPost.class))") - @Override - SysPost toModel(SysPostVo sysPostVo); - /** - * 转换实体对象到VO对象。 - * - * @param sysPost 实体对象。 - * @return 域对象。 - */ - @Mapping(target = "sysDeptPost", expression = "java(beanToMap(sysPost.getSysDeptPost(), false))") - @Override - SysPostVo fromModel(SysPost sysPost); - } - public static final SysPostModelMapper INSTANCE = Mappers.getMapper(SysPostModelMapper.class); -} diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/SysRole.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/SysRole.java deleted file mode 100644 index c1fafc3e..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/SysRole.java +++ /dev/null @@ -1,96 +0,0 @@ -package com.orangeforms.webadmin.upms.model; - -import com.baomidou.mybatisplus.annotation.*; -import com.orangeforms.common.core.annotation.RelationManyToMany; -import com.orangeforms.common.core.base.mapper.BaseModelMapper; -import com.orangeforms.webadmin.upms.vo.SysRoleVo; -import lombok.Data; -import org.mapstruct.Mapper; -import org.mapstruct.Mapping; -import org.mapstruct.factory.Mappers; - -import java.util.*; - -/** - * 角色实体对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Data -@TableName(value = "zz_sys_role") -public class SysRole { - - /** - * 角色Id。 - */ - @TableId(value = "role_id") - private Long roleId; - - /** - * 角色名称。 - */ - @TableField(value = "role_name") - private String roleName; - - /** - * 创建者Id。 - */ - @TableField(value = "create_user_id") - private Long createUserId; - - /** - * 创建时间。 - */ - @TableField(value = "create_time") - private Date createTime; - - /** - * 更新者Id。 - */ - @TableField(value = "update_user_id") - private Long updateUserId; - - /** - * 更新时间。 - */ - @TableField(value = "update_time") - private Date updateTime; - - /** - * 逻辑删除标记字段(1: 正常 -1: 已删除)。 - */ - @TableLogic - @TableField(value = "deleted_flag") - private Integer deletedFlag; - - @RelationManyToMany( - relationMapperName = "sysRoleMenuMapper", - relationMasterIdField = "roleId", - relationModelClass = SysRoleMenu.class) - @TableField(exist = false) - private List sysRoleMenuList; - - @Mapper - public interface SysRoleModelMapper extends BaseModelMapper { - /** - * 转换VO对象到实体对象。 - * - * @param sysRoleVo 域对象。 - * @return 实体对象。 - */ - @Mapping(target = "sysRoleMenuList", expression = "java(mapToBean(sysRoleVo.getSysRoleMenuList(), com.orangeforms.webadmin.upms.model.SysRoleMenu.class))") - @Override - SysRole toModel(SysRoleVo sysRoleVo); - /** - * 转换实体对象到VO对象。 - * - * @param sysRole 实体对象。 - * @return 域对象。 - */ - @Mapping(target = "sysRoleMenuList", expression = "java(beanToMap(sysRole.getSysRoleMenuList(), false))") - @Override - SysRoleVo fromModel(SysRole sysRole); - } - public static final SysRoleModelMapper INSTANCE = Mappers.getMapper(SysRole.SysRoleModelMapper.class); -} diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/SysRoleMenu.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/SysRoleMenu.java deleted file mode 100644 index 7b3dd7f0..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/SysRoleMenu.java +++ /dev/null @@ -1,27 +0,0 @@ -package com.orangeforms.webadmin.upms.model; - -import com.baomidou.mybatisplus.annotation.*; -import lombok.Data; - -/** - * 角色菜单实体对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Data -@TableName(value = "zz_sys_role_menu") -public class SysRoleMenu { - - /** - * 角色Id。 - */ - @TableField(value = "role_id") - private Long roleId; - - /** - * 菜单Id。 - */ - @TableField(value = "menu_id") - private Long menuId; -} diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/SysUser.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/SysUser.java deleted file mode 100644 index 916f41da..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/SysUser.java +++ /dev/null @@ -1,194 +0,0 @@ -package com.orangeforms.webadmin.upms.model; - -import com.baomidou.mybatisplus.annotation.*; -import com.orangeforms.webadmin.upms.model.constant.SysUserType; -import com.orangeforms.webadmin.upms.model.constant.SysUserStatus; -import com.orangeforms.common.core.annotation.*; -import com.orangeforms.common.core.base.mapper.BaseModelMapper; -import com.orangeforms.webadmin.upms.vo.SysUserVo; -import lombok.Data; -import org.mapstruct.*; -import org.mapstruct.factory.Mappers; - -import java.util.Date; -import java.util.Map; -import java.util.List; - -/** - * SysUser实体对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Data -@TableName(value = "zz_sys_user") -public class SysUser { - - /** - * 用户Id。 - */ - @TableId(value = "user_id") - private Long userId; - - /** - * 登录用户名。 - */ - @TableField(value = "login_name") - private String loginName; - - /** - * 用户密码。 - */ - private String password; - - /** - * 用户显示名称。 - */ - @TableField(value = "show_name") - private String showName; - - /** - * 用户部门Id。 - */ - @TableField(value = "dept_id") - private Long deptId; - - /** - * 用户类型(0: 管理员 1: 系统管理用户 2: 系统业务用户)。 - */ - @TableField(value = "user_type") - private Integer userType; - - /** - * 用户头像的Url。 - */ - @TableField(value = "head_image_url") - private String headImageUrl; - - /** - * 用户状态(0: 正常 1: 锁定)。 - */ - @TableField(value = "user_status") - private Integer userStatus; - - /** - * 逻辑删除标记字段(1: 正常 -1: 已删除)。 - */ - @TableLogic - @TableField(value = "deleted_flag") - private Integer deletedFlag; - - /** - * 创建者Id。 - */ - @TableField(value = "create_user_id") - private Long createUserId; - - /** - * 更新者Id。 - */ - @TableField(value = "update_user_id") - private Long updateUserId; - - /** - * 创建时间。 - */ - @TableField(value = "create_time") - private Date createTime; - - /** - * 更新时间。 - */ - @TableField(value = "update_time") - private Date updateTime; - - /** - * createTime 范围过滤起始值(>=)。 - */ - @TableField(exist = false) - private String createTimeStart; - - /** - * createTime 范围过滤结束值(<=)。 - */ - @TableField(exist = false) - private String createTimeEnd; - - /** - * 多对多用户部门岗位数据集合。 - */ - @RelationManyToMany( - relationMapperName = "sysUserPostMapper", - relationMasterIdField = "userId", - relationModelClass = SysUserPost.class) - @TableField(exist = false) - private List sysUserPostList; - - /** - * 多对多用户角色数据集合。 - */ - @RelationManyToMany( - relationMapperName = "sysUserRoleMapper", - relationMasterIdField = "userId", - relationModelClass = SysUserRole.class) - @TableField(exist = false) - private List sysUserRoleList; - - /** - * 多对多用户数据权限数据集合。 - */ - @RelationManyToMany( - relationMapperName = "sysDataPermUserMapper", - relationMasterIdField = "userId", - relationModelClass = SysDataPermUser.class) - @TableField(exist = false) - private List sysDataPermUserList; - - @RelationDict( - masterIdField = "deptId", - slaveServiceName = "sysDeptService", - slaveModelClass = SysDept.class, - slaveIdField = "deptId", - slaveNameField = "deptName") - @TableField(exist = false) - private Map deptIdDictMap; - - @RelationConstDict( - masterIdField = "userType", - constantDictClass = SysUserType.class) - @TableField(exist = false) - private Map userTypeDictMap; - - @RelationConstDict( - masterIdField = "userStatus", - constantDictClass = SysUserStatus.class) - @TableField(exist = false) - private Map userStatusDictMap; - - @Mapper - public interface SysUserModelMapper extends BaseModelMapper { - /** - * 转换Vo对象到实体对象。 - * - * @param sysUserVo 域对象。 - * @return 实体对象。 - */ - @Mapping(target = "sysUserRoleList", expression = "java(mapToBean(sysUserVo.getSysUserRoleList(), com.orangeforms.webadmin.upms.model.SysUserRole.class))") - @Mapping(target = "sysUserPostList", expression = "java(mapToBean(sysUserVo.getSysUserPostList(), com.orangeforms.webadmin.upms.model.SysUserPost.class))") - @Mapping(target = "sysDataPermUserList", expression = "java(mapToBean(sysUserVo.getSysDataPermUserList(), com.orangeforms.webadmin.upms.model.SysDataPermUser.class))") - @Override - SysUser toModel(SysUserVo sysUserVo); - /** - * 转换实体对象到VO对象。 - * - * @param sysUser 实体对象。 - * @return 域对象。 - */ - @Mapping(target = "sysUserRoleList", expression = "java(beanToMap(sysUser.getSysUserRoleList(), false))") - @Mapping(target = "sysUserPostList", expression = "java(beanToMap(sysUser.getSysUserPostList(), false))") - @Mapping(target = "sysDataPermUserList", expression = "java(beanToMap(sysUser.getSysDataPermUserList(), false))") - @Override - SysUserVo fromModel(SysUser sysUser); - } - public static final SysUserModelMapper INSTANCE = Mappers.getMapper(SysUserModelMapper.class); -} diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/SysUserPost.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/SysUserPost.java deleted file mode 100644 index 280baff1..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/SysUserPost.java +++ /dev/null @@ -1,33 +0,0 @@ -package com.orangeforms.webadmin.upms.model; - -import com.baomidou.mybatisplus.annotation.*; -import lombok.Data; - -/** - * 用户岗位多对多关系实体对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Data -@TableName(value = "zz_sys_user_post") -public class SysUserPost { - - /** - * 用户Id。 - */ - @TableField(value = "user_id") - private Long userId; - - /** - * 部门岗位Id。 - */ - @TableField(value = "dept_post_id") - private Long deptPostId; - - /** - * 岗位Id。 - */ - @TableField(value = "post_id") - private Long postId; -} diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/SysUserRole.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/SysUserRole.java deleted file mode 100644 index d3c0253e..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/SysUserRole.java +++ /dev/null @@ -1,27 +0,0 @@ -package com.orangeforms.webadmin.upms.model; - -import com.baomidou.mybatisplus.annotation.*; -import lombok.Data; - -/** - * 用户角色实体对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Data -@TableName(value = "zz_sys_user_role") -public class SysUserRole { - - /** - * 用户Id。 - */ - @TableField(value = "user_id") - private Long userId; - - /** - * 角色Id。 - */ - @TableField(value = "role_id") - private Long roleId; -} diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/constant/SysMenuType.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/constant/SysMenuType.java deleted file mode 100644 index 13bdf000..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/constant/SysMenuType.java +++ /dev/null @@ -1,54 +0,0 @@ -package com.orangeforms.webadmin.upms.model.constant; - -import java.util.HashMap; -import java.util.Map; - -/** - * 菜单类型常量对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -public final class SysMenuType { - - /** - * 目录菜单。 - */ - public static final int TYPE_DIRECTORY = 0; - /** - * 普通菜单。 - */ - public static final int TYPE_MENU = 1; - /** - * 表单片段类型。 - */ - public static final int TYPE_UI_FRAGMENT = 2; - /** - * 按钮类型。 - */ - public static final int TYPE_BUTTON = 3; - - private static final Map DICT_MAP = new HashMap<>(4); - static { - DICT_MAP.put(TYPE_DIRECTORY, "目录菜单"); - DICT_MAP.put(TYPE_MENU, "普通菜单"); - DICT_MAP.put(TYPE_UI_FRAGMENT, "表单片段类型"); - DICT_MAP.put(TYPE_BUTTON, "按钮类型"); - } - - /** - * 判断参数是否为当前常量字典的合法值。 - * - * @param value 待验证的参数值。 - * @return 合法返回true,否则false。 - */ - public static boolean isValid(Integer value) { - return value != null && DICT_MAP.containsKey(value); - } - - /** - * 私有构造函数,明确标识该常量类的作用。 - */ - private SysMenuType() { - } -} diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/constant/SysOnlineMenuPermType.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/constant/SysOnlineMenuPermType.java deleted file mode 100644 index d7c9825f..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/constant/SysOnlineMenuPermType.java +++ /dev/null @@ -1,44 +0,0 @@ -package com.orangeforms.webadmin.upms.model.constant; - -import java.util.HashMap; -import java.util.Map; - -/** - * 菜单关联在线表单的控制权限类型。 - * - * @author Jerry - * @date 2021-06-06 - */ -public final class SysOnlineMenuPermType { - - /** - * 查看。 - */ - public static final int TYPE_VIEW = 0; - /** - * 编辑。 - */ - public static final int TYPE_EDIT = 1; - - private static final Map DICT_MAP = new HashMap<>(4); - static { - DICT_MAP.put(TYPE_VIEW, "查看"); - DICT_MAP.put(TYPE_EDIT, "编辑"); - } - - /** - * 判断参数是否为当前常量字典的合法值。 - * - * @param value 待验证的参数值。 - * @return 合法返回true,否则false。 - */ - public static boolean isValid(Integer value) { - return value != null && DICT_MAP.containsKey(value); - } - - /** - * 私有构造函数,明确标识该常量类的作用。 - */ - private SysOnlineMenuPermType() { - } -} diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/constant/SysPermCodeType.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/constant/SysPermCodeType.java deleted file mode 100644 index 8856dda8..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/constant/SysPermCodeType.java +++ /dev/null @@ -1,49 +0,0 @@ -package com.orangeforms.webadmin.upms.model.constant; - -import java.util.HashMap; -import java.util.Map; - -/** - * 权限字类型常量对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -public final class SysPermCodeType { - - /** - * 表单权限字。 - */ - public static final int TYPE_FORM = 0; - /** - * 表单片段布局权限字。 - */ - public static final int TYPE_FRAGMENT = 1; - /** - * 操作权限字。 - */ - public static final int TYPE_OPERATION = 2; - - private static final Map DICT_MAP = new HashMap<>(3); - static { - DICT_MAP.put(TYPE_FORM, "表单权限字"); - DICT_MAP.put(TYPE_FRAGMENT, "表单片段布局权限字"); - DICT_MAP.put(TYPE_OPERATION, "操作权限字"); - } - - /** - * 判断参数是否为当前常量字典的合法值。 - * - * @param value 待验证的参数值。 - * @return 合法返回true,否则false。 - */ - public static boolean isValid(Integer value) { - return value != null && DICT_MAP.containsKey(value); - } - - /** - * 私有构造函数,明确标识该常量类的作用。 - */ - private SysPermCodeType() { - } -} diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/constant/SysPermModuleType.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/constant/SysPermModuleType.java deleted file mode 100644 index a08a62b7..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/constant/SysPermModuleType.java +++ /dev/null @@ -1,44 +0,0 @@ -package com.orangeforms.webadmin.upms.model.constant; - -import java.util.HashMap; -import java.util.Map; - -/** - * 权限资源模块类型常量对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -public final class SysPermModuleType { - - /** - * 普通模块。 - */ - public static final int TYPE_NORMAL = 0; - /** - * controller接口模块。 - */ - public static final int TYPE_CONTROLLER = 1; - - private static final Map DICT_MAP = new HashMap<>(2); - static { - DICT_MAP.put(TYPE_NORMAL, "普通模块"); - DICT_MAP.put(TYPE_CONTROLLER, "controller接口模块"); - } - - /** - * 判断参数是否为当前常量字典的合法值。 - * - * @param value 待验证的参数值。 - * @return 合法返回true,否则false。 - */ - public static boolean isValid(Integer value) { - return value != null && DICT_MAP.containsKey(value); - } - - /** - * 私有构造函数,明确标识该常量类的作用。 - */ - private SysPermModuleType() { - } -} diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/constant/SysUserStatus.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/constant/SysUserStatus.java deleted file mode 100644 index 09b80963..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/constant/SysUserStatus.java +++ /dev/null @@ -1,44 +0,0 @@ -package com.orangeforms.webadmin.upms.model.constant; - -import java.util.HashMap; -import java.util.Map; - -/** - * 用户状态常量字典对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -public final class SysUserStatus { - - /** - * 正常状态。 - */ - public static final int STATUS_NORMAL = 0; - /** - * 锁定状态。 - */ - public static final int STATUS_LOCKED = 1; - - private static final Map DICT_MAP = new HashMap<>(2); - static { - DICT_MAP.put(STATUS_NORMAL, "正常状态"); - DICT_MAP.put(STATUS_LOCKED, "锁定状态"); - } - - /** - * 判断参数是否为当前常量字典的合法值。 - * - * @param value 待验证的参数值。 - * @return 合法返回true,否则false。 - */ - public static boolean isValid(Integer value) { - return value != null && DICT_MAP.containsKey(value); - } - - /** - * 私有构造函数,明确标识该常量类的作用。 - */ - private SysUserStatus() { - } -} diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/constant/SysUserType.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/constant/SysUserType.java deleted file mode 100644 index e13b44b7..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/model/constant/SysUserType.java +++ /dev/null @@ -1,49 +0,0 @@ -package com.orangeforms.webadmin.upms.model.constant; - -import java.util.HashMap; -import java.util.Map; - -/** - * 用户类型常量字典对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -public final class SysUserType { - - /** - * 管理员。 - */ - public static final int TYPE_ADMIN = 0; - /** - * 系统操作员。 - */ - public static final int TYPE_SYSTEM = 1; - /** - * 普通操作员。 - */ - public static final int TYPE_OPERATOR = 2; - - private static final Map DICT_MAP = new HashMap<>(3); - static { - DICT_MAP.put(TYPE_ADMIN, "管理员"); - DICT_MAP.put(TYPE_SYSTEM, "系统操作员"); - DICT_MAP.put(TYPE_OPERATOR, "普通操作员"); - } - - /** - * 判断参数是否为当前常量字典的合法值。 - * - * @param value 待验证的参数值。 - * @return 合法返回true,否则false。 - */ - public static boolean isValid(Integer value) { - return value != null && DICT_MAP.containsKey(value); - } - - /** - * 私有构造函数,明确标识该常量类的作用。 - */ - private SysUserType() { - } -} diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/service/SysDataPermService.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/service/SysDataPermService.java deleted file mode 100644 index 7a3f3573..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/service/SysDataPermService.java +++ /dev/null @@ -1,104 +0,0 @@ -package com.orangeforms.webadmin.upms.service; - -import com.orangeforms.common.core.base.service.IBaseService; -import com.orangeforms.common.core.object.CallResult; -import com.orangeforms.webadmin.upms.model.*; - -import java.util.*; - -/** - * 数据权限数据服务接口。 - * - * @author Jerry - * @date 2021-06-06 - */ -public interface SysDataPermService extends IBaseService { - - /** - * 保存新增的数据权限对象。 - * - * @param dataPerm 新增的数据权限对象。 - * @param deptIdSet 关联的部门Id列表。 - * @return 新增后的数据权限对象。 - */ - SysDataPerm saveNew(SysDataPerm dataPerm, Set deptIdSet); - - /** - * 更新数据权限对象。 - * - * @param dataPerm 更新的数据权限对象。 - * @param originalDataPerm 原有的数据权限对象。 - * @param deptIdSet 关联的部门Id列表。 - * @return 更新成功返回true,否则false。 - */ - boolean update(SysDataPerm dataPerm, SysDataPerm originalDataPerm, Set deptIdSet); - - /** - * 删除指定数据权限。 - * - * @param dataPermId 数据权限主键Id。 - * @return 删除成功返回true,否则false。 - */ - boolean remove(Long dataPermId); - - /** - * 获取数据权限列表。 - * - * @param filter 数据权限过滤对象。 - * @param orderBy 排序参数。 - * @return 数据权限查询列表。 - */ - List getSysDataPermList(SysDataPerm filter, String orderBy); - - /** - * 将指定用户的指定会话的数据权限集合存入缓存。 - * - * @param sessionId 会话Id。 - * @param userId 用户主键Id。 - * @param deptId 用户所属部门主键Id。 - * @return 查询并缓存后的数据权限集合。返回格式为,Map。 - */ - Map putDataPermCache(String sessionId, Long userId, Long deptId); - - /** - * 将指定会话的数据权限集合从缓存中移除。 - * - * @param sessionId 会话Id。 - */ - void removeDataPermCache(String sessionId); - - /** - * 获取指定用户Id的数据权限列表。并基于权限规则类型进行了一级分组。 - * - * @param userId 指定的用户Id。 - * @param deptId 用户所属部门主键Id。 - * @return 合并优化后的数据权限列表。返回格式为,Map。 - */ - Map getSysDataPermListByUserId(Long userId, Long deptId); - - /** - * 添加用户和数据权限之间的多对多关联关系。 - * - * @param dataPermId 数据权限Id。 - * @param userIdSet 关联的用户Id列表。 - */ - void addDataPermUserList(Long dataPermId, Set userIdSet); - - /** - * 移除用户和数据权限之间的多对多关联关系。 - * - * @param dataPermId 数据权限主键Id。 - * @param userId 用户主键Id。 - * @return true移除成功,否则false。 - */ - boolean removeDataPermUser(Long dataPermId, Long userId); - - /** - * 验证数据权限对象关联菜单数据是否都合法。 - * - * @param dataPerm 数据权限关对象。 - * @param deptIdListString 与数据权限关联的部门Id列表。 - * @return 验证结果。 - */ - CallResult verifyRelatedData(SysDataPerm dataPerm, String deptIdListString); -} diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/service/SysDeptService.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/service/SysDeptService.java deleted file mode 100644 index b5993e8d..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/service/SysDeptService.java +++ /dev/null @@ -1,153 +0,0 @@ -package com.orangeforms.webadmin.upms.service; - -import com.orangeforms.webadmin.upms.model.*; -import com.orangeforms.common.core.base.service.IBaseService; - -import java.util.*; - -/** - * 部门管理数据操作服务接口。 - * - * @author Jerry - * @date 2021-06-06 - */ -public interface SysDeptService extends IBaseService { - - /** - * 保存新增的部门对象。 - * - * @param sysDept 新增的部门对象。 - * @param parentSysDept 上级部门对象。 - * @return 新增后的部门对象。 - */ - SysDept saveNew(SysDept sysDept, SysDept parentSysDept); - - /** - * 更新部门对象。 - * - * @param sysDept 更新的部门对象。 - * @param originalSysDept 原有的部门对象。 - * @return 更新成功返回true,否则false。 - */ - boolean update(SysDept sysDept, SysDept originalSysDept); - - /** - * 删除指定数据。 - * - * @param deptId 主键Id。 - * @return 成功返回true,否则false。 - */ - boolean remove(Long deptId); - - /** - * 获取单表查询结果。由于没有关联数据查询,因此在仅仅获取单表数据的场景下,效率更高。 - * 如果需要同时获取关联数据,请移步(getSysDeptListWithRelation)方法。 - * - * @param filter 过滤对象。 - * @param orderBy 排序参数。 - * @return 查询结果集。 - */ - List getSysDeptList(SysDept filter, String orderBy); - - /** - * 获取主表的查询结果,以及主表关联的字典数据和一对一从表数据,以及一对一从表的字典数据。 - * 该查询会涉及到一对一从表的关联过滤,或一对多从表的嵌套关联过滤,因此性能不如单表过滤。 - * 如果仅仅需要获取主表数据,请移步(getSysDeptList),以便获取更好的查询性能。 - * - * @param filter 主表过滤对象。 - * @param orderBy 排序参数。 - * @return 查询结果集。 - */ - List getSysDeptListWithRelation(SysDept filter, String orderBy); - - /** - * 判断指定对象是否包含下级对象。 - * - * @param deptId 主键Id。 - * @return 存在返回true,否则false。 - */ - boolean hasChildren(Long deptId); - - /** - * 判断指定部门Id是否包含用户对象。 - * - * @param deptId 部门主键Id。 - * @return 存在返回true,否则false。 - */ - boolean hasChildrenUser(Long deptId); - - /** - * 批量添加多对多关联关系。 - * - * @param sysDeptPostList 多对多关联表对象集合。 - * @param deptId 主表Id。 - */ - void addSysDeptPostList(List sysDeptPostList, Long deptId); - - /** - * 更新中间表数据。 - * - * @param sysDeptPost 中间表对象。 - * @return 更新成功与否。 - */ - boolean updateSysDeptPost(SysDeptPost sysDeptPost); - - /** - * 移除单条多对多关系。 - * - * @param deptId 主表Id。 - * @param postId 从表Id。 - * @return 成功返回true,否则false。 - */ - boolean removeSysDeptPost(Long deptId, Long postId); - - /** - * 获取中间表数据。 - * - * @param deptId 主表Id。 - * @param postId 从表Id。 - * @return 中间表对象。 - */ - SysDeptPost getSysDeptPost(Long deptId, Long postId); - - /** - * 根据部门岗位Id获取部门岗位关联对象。 - * - * @param deptPostId 部门岗位Id。 - * @return 部门岗位对象。 - */ - SysDeptPost getSysDeptPost(Long deptPostId); - - /** - * 获取指定部门Id的部门岗位多对多关联数据列表,以及关联的部门和岗位数据。 - * - * @param deptId 部门Id。如果参数为空则返回全部数据。 - * @return 部门岗位多对多数据列表。 - */ - List> getSysDeptPostListWithRelationByDeptId(Long deptId); - - /** - * 获取指定部门Id和岗位Id集合的部门岗位多对多关联数据列表。 - * - * @param deptId 部门Id。 - * @param postIdSet 指定的岗位Id集合。 - * @return 部门岗位多对多数据列表。 - */ - List getSysDeptPostList(Long deptId, Set postIdSet); - - /** - * 根据部门Id获取该部门领导岗位的部门岗位Id集合。 - * - * @param deptId 部门Id。 - * @return 部门领导岗位的部门岗位Id集合。 - */ - List getLeaderDeptPostIdList(Long deptId); - - /** - * 根据部门Id获取上级部门领导岗位的部门岗位Id集合。 - * - * @param deptId 部门Id。 - * @return 上级部门领导岗位的部门岗位Id集合。 - */ - List getUpLeaderDeptPostIdList(Long deptId); -} diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/service/SysMenuService.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/service/SysMenuService.java deleted file mode 100644 index 5c63205c..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/service/SysMenuService.java +++ /dev/null @@ -1,111 +0,0 @@ -package com.orangeforms.webadmin.upms.service; - -import com.orangeforms.common.core.base.service.IBaseService; -import com.orangeforms.common.core.object.CallResult; -import com.orangeforms.webadmin.upms.model.SysMenu; - -import java.util.*; - -/** - * 菜单数据服务接口。 - * - * @author Jerry - * @date 2021-06-06 - */ -public interface SysMenuService extends IBaseService { - - /** - * 保存新增的菜单对象。 - * - * @param sysMenu 新增的菜单对象。 - * @param permCodeIdSet 权限字Id列表。 - * @return 新增后的菜单对象。 - */ - SysMenu saveNew(SysMenu sysMenu, Set permCodeIdSet); - - /** - * 更新菜单对象。 - * - * @param sysMenu 更新的菜单对象。 - * @param originalSysMenu 原有的菜单对象。 - * @param permCodeIdSet 权限字Id列表。 - * @return 更新成功返回true,否则false。 - */ - boolean update(SysMenu sysMenu, SysMenu originalSysMenu, Set permCodeIdSet); - - /** - * 删除指定的菜单。 - * - * @param menu 菜单对象。 - * @return 删除成功返回true,否则false。 - */ - boolean remove(SysMenu menu); - - /** - * 获取全部菜单列表。 - * - * @return 全部菜单列表。 - */ - Collection getAllMenuList(); - - /** - * 获取指定用户Id的菜单列表,已去重。 - * - * @param userId 用户主键Id。 - * @return 用户关联的菜单列表。 - */ - Collection getMenuListByUserId(Long userId); - - /** - * 判断当前菜单是否存在子菜单。 - * - * @param menuId 菜单主键Id。 - * @return 存在返回true,否则false。 - */ - boolean hasChildren(Long menuId); - - /** - * 验证菜单对象关联的数据是否都合法。 - * - * @param sysMenu 当前操作的对象。 - * @param originalSysMenu 原有对象。 - * @param permCodeIdListString 逗号分隔的权限Id列表。 - * @return 验证结果。 - */ - CallResult verifyRelatedData(SysMenu sysMenu, SysMenu originalSysMenu, String permCodeIdListString); - - /** - * 查询菜单的权限资源地址列表。同时返回详细的分配路径。 - * - * @param menuId 菜单Id。 - * @param url 权限资源地址过滤条件。 - * @return 包含从菜单到权限资源的权限分配路径信息的查询结果列表。 - */ - List> getSysPermListWithDetail(Long menuId, String url); - - /** - * 查询菜单的用户列表。同时返回详细的分配路径。 - * - * @param menuId 菜单Id。 - * @param loginName 登录名。 - * @return 包含从菜单到用户的完整权限分配路径信息的查询结果列表。 - */ - List> getSysUserListWithDetail(Long menuId, String loginName); - - /** - * 获取指定类型的所有在线表单的菜单。 - * - * @param menuType 菜单类型,NULL则返回全部类型。 - * @return 在线表单关联的菜单列表。 - */ - List getAllOnlineMenuList(Integer menuType); - - /** - * 获取当前用户有权访问的在线表单菜单,仅返回类型为BUTTON的菜单。 - * - * @param userId 指定的用户。 - * @param menuType 菜单类型,NULL则返回全部类型。 - * @return 在线表单关联的菜单列表。 - */ - List getOnlineMenuListByUserId(Long userId, Integer menuType); -} diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/service/SysPermCodeService.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/service/SysPermCodeService.java deleted file mode 100644 index cbad1330..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/service/SysPermCodeService.java +++ /dev/null @@ -1,94 +0,0 @@ -package com.orangeforms.webadmin.upms.service; - -import com.orangeforms.common.core.base.service.IBaseService; -import com.orangeforms.common.core.object.CallResult; -import com.orangeforms.webadmin.upms.model.SysPermCode; - -import java.util.*; - -/** - * 权限字数据服务接口。 - * - * @author Jerry - * @date 2021-06-06 - */ -public interface SysPermCodeService extends IBaseService { - - /** - * 获取指定用户的权限字列表,已去重。 - * - * @param userId 用户主键Id。 - * @return 用户关联的权限字列表。 - */ - Collection getPermCodeListByUserId(Long userId); - - /** - * 获取所有权限字数据列表,已去重。 - * - * @return 全部权限字列表。 - */ - Collection getAllPermCodeList(); - - /** - * 保存新增的权限字对象。 - * - * @param sysPermCode 新增的权限字对象。 - * @param permIdSet 权限资源Id列表。 - * @return 新增后的权限字对象。 - */ - SysPermCode saveNew(SysPermCode sysPermCode, Set permIdSet); - - /** - * 更新权限字对象。 - * - * @param sysPermCode 更新的权限字对象。 - * @param originalSysPermCode 原有的权限字对象。 - * @param permIdSet 权限资源Id列表。 - * @return 更新成功返回true,否则false。 - */ - boolean update(SysPermCode sysPermCode, SysPermCode originalSysPermCode, Set permIdSet); - - /** - * 删除指定的权限字。 - * - * @param permCodeId 权限字主键Id。 - * @return 删除成功返回true,否则false。 - */ - boolean remove(Long permCodeId); - - /** - * 判断当前权限字是否存在下级权限字对象。 - * - * @param permCodeId 权限字主键Id。 - * @return 存在返回true,否则false。 - */ - boolean hasChildren(Long permCodeId); - - /** - * 验证权限字对象关联的数据是否都合法。 - * - * @param sysPermCode 当前操作的对象。 - * @param originalSysPermCode 原有对象。 - * @param permIdListString 逗号分隔的权限资源Id列表。 - * @return 验证结果。 - */ - CallResult verifyRelatedData(SysPermCode sysPermCode, SysPermCode originalSysPermCode, String permIdListString); - - /** - * 查询权限字的用户列表。同时返回详细的分配路径。 - * - * @param permCodeId 权限字Id。 - * @param loginName 登录名。 - * @return 包含从权限字到用户的完整权限分配路径信息的查询结果列表。 - */ - List> getSysUserListWithDetail(Long permCodeId, String loginName); - - /** - * 查询权限字的角色列表。同时返回详细的分配路径。 - * - * @param permCodeId 权限字Id。 - * @param roleName 角色名。 - * @return 包含从权限字到角色的权限分配路径信息的查询结果列表。 - */ - List> getSysRoleListWithDetail(Long permCodeId, String roleName); -} diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/service/SysPermModuleService.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/service/SysPermModuleService.java deleted file mode 100644 index 9881d084..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/service/SysPermModuleService.java +++ /dev/null @@ -1,63 +0,0 @@ -package com.orangeforms.webadmin.upms.service; - -import com.orangeforms.common.core.base.service.IBaseService; -import com.orangeforms.webadmin.upms.model.SysPermModule; - -import java.util.*; - -/** - * 权限资源模块数据服务接口。 - * - * @author Jerry - * @date 2021-06-06 - */ -public interface SysPermModuleService extends IBaseService { - - /** - * 保存新增的权限资源模块对象。 - * - * @param sysPermModule 新增的权限资源模块对象。 - * @return 新增后的权限资源模块对象。 - */ - SysPermModule saveNew(SysPermModule sysPermModule); - - /** - * 更新权限资源模块对象。 - * - * @param sysPermModule 更新的权限资源模块对象。 - * @param originalSysPermModule 原有的权限资源模块对象。 - * @return 更新成功返回true,否则false - */ - boolean update(SysPermModule sysPermModule, SysPermModule originalSysPermModule); - - /** - * 删除指定的权限资源模块。 - * - * @param moduleId 权限资源模块主键Id。 - * @return 删除成功返回true,否则false。 - */ - boolean remove(Long moduleId); - - /** - * 获取权限模块资源及其关联的权限资源列表。 - * - * @return 权限资源模块及其关联的权限资源列表。 - */ - List getPermModuleAndPermList(); - - /** - * 判断是否存在下级权限资源模块。 - * - * @param moduleId 权限资源模块主键Id。 - * @return 存在返回true,否则false。 - */ - boolean hasChildren(Long moduleId); - - /** - * 判断是否存在权限数据。 - * - * @param moduleId 权限资源模块主键Id。 - * @return 存在返回true,否则false。 - */ - boolean hasModulePerms(Long moduleId); -} diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/service/SysPermService.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/service/SysPermService.java deleted file mode 100644 index 93cacf6f..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/service/SysPermService.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.orangeforms.webadmin.upms.service; - -import com.orangeforms.common.core.base.service.IBaseService; -import com.orangeforms.common.core.object.CallResult; -import com.orangeforms.webadmin.upms.model.SysPerm; - -import java.util.*; - -/** - * 权限资源数据服务接口。 - * - * @author Jerry - * @date 2021-06-06 - */ -public interface SysPermService extends IBaseService { - - /** - * 保存新增的权限资源对象。 - * - * @param perm 新增的权限资源对象。 - * @return 新增后的权限资源对象。 - */ - SysPerm saveNew(SysPerm perm); - - /** - * 更新权限资源对象。 - * - * @param perm 更新的权限资源对象。 - * @param originalPerm 原有的权限资源对象。 - * @return 更新成功返回true,否则false。 - */ - boolean update(SysPerm perm, SysPerm originalPerm); - - /** - * 删除权限资源。 - * - * @param permId 权限资源主键Id。 - * @return 删除成功返回true,否则false。 - */ - boolean remove(Long permId); - - /** - * 获取权限数据列表。 - * - * @param sysPermFilter 过滤对象。 - * @return 权限列表。 - */ - List getPermListWithRelation(SysPerm sysPermFilter); - - /** - * 将指定用户的指定会话的权限集合存入缓存。 - * - * @param sessionId 会话Id。 - * @param userId 用户主键Id。 - * @return 查询并缓存后的权限集合。 - */ - Collection putUserSysPermCache(String sessionId, Long userId); - - /** - * 把在线表单的权限URL集合,存放到权限URL的缓存中。 - * - * @param sessionId 会话Id。 - * @param permUrlSet URL集合。 - */ - void putOnlinePermToCache(String sessionId, Set permUrlSet); - - /** - * 将指定会话的权限集合从缓存中移除。 - * - * @param sessionId 会话Id。 - */ - void removeUserSysPermCache(String sessionId); - - /** - * 获取与指定用户关联的权限资源列表,已去重。 - * - * @param userId 关联的用户主键Id。 - * @return 与指定用户Id关联的权限资源列表。 - */ - Collection getPermListByUserId(Long userId); - - /** - * 查询权限资源地址的用户列表。同时返回详细的分配路径。 - * - * @param permId 权限资源Id。 - * @param loginName 登录名。 - * @return 包含从权限资源到用户的完整权限分配路径信息的查询结果列表。 - */ - List> getSysUserListWithDetail(Long permId, String loginName); - - /** - * 查询权限资源地址的角色列表。同时返回详细的分配路径。 - * - * @param permId 权限资源Id。 - * @param roleName 角色名。 - * @return 包含从权限资源到角色的权限分配路径信息的查询结果列表。 - */ - List> getSysRoleListWithDetail(Long permId, String roleName); - - /** - * 查询权限资源地址的菜单列表。同时返回详细的分配路径。 - * - * @param permId 权限资源Id。 - * @param menuName 菜单名。 - * @return 包含从权限资源到菜单的权限分配路径信息的查询结果列表。 - */ - List> getSysMenuListWithDetail(Long permId, String menuName); -} diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/service/SysPermWhitelistService.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/service/SysPermWhitelistService.java deleted file mode 100644 index 0a0a5cbd..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/service/SysPermWhitelistService.java +++ /dev/null @@ -1,23 +0,0 @@ -package com.orangeforms.webadmin.upms.service; - -import com.orangeforms.common.core.base.service.IBaseService; -import com.orangeforms.webadmin.upms.model.SysPermWhitelist; - -import java.util.List; - -/** - * 权限资源白名单数据服务接口。 - * 白名单中的权限资源,可以不受权限控制,任何用户皆可访问,一般用于常用的字典数据列表接口。 - * - * @author Jerry - * @date 2021-06-06 - */ -public interface SysPermWhitelistService extends IBaseService { - - /** - * 获取白名单权限资源的列表。 - * - * @return 白名单权限资源地址列表。 - */ - List getWhitelistPermList(); -} diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/service/SysPostService.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/service/SysPostService.java deleted file mode 100644 index 87d65335..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/service/SysPostService.java +++ /dev/null @@ -1,99 +0,0 @@ -package com.orangeforms.webadmin.upms.service; - -import com.orangeforms.common.core.base.service.IBaseService; -import com.orangeforms.webadmin.upms.model.SysPost; -import com.orangeforms.webadmin.upms.model.SysUserPost; - -import java.util.*; - -/** - * 岗位管理数据操作服务接口。 - * - * @author Jerry - * @date 2021-06-06 - */ -public interface SysPostService extends IBaseService { - - /** - * 保存新增对象。 - * - * @param sysPost 新增对象。 - * @return 返回新增对象。 - */ - SysPost saveNew(SysPost sysPost); - - /** - * 更新数据对象。 - * - * @param sysPost 更新的对象。 - * @param originalSysPost 原有数据对象。 - * @return 成功返回true,否则false。 - */ - boolean update(SysPost sysPost, SysPost originalSysPost); - - /** - * 删除指定数据。 - * - * @param postId 主键Id。 - * @return 成功返回true,否则false。 - */ - boolean remove(Long postId); - - /** - * 获取单表查询结果。由于没有关联数据查询,因此在仅仅获取单表数据的场景下,效率更高。 - * 如果需要同时获取关联数据,请移步(getSysPostListWithRelation)方法。 - * - * @param filter 过滤对象。 - * @param orderBy 排序参数。 - * @return 查询结果集。 - */ - List getSysPostList(SysPost filter, String orderBy); - - /** - * 获取主表的查询结果,以及主表关联的字典数据和一对一从表数据,以及一对一从表的字典数据。 - * 该查询会涉及到一对一从表的关联过滤,或一对多从表的嵌套关联过滤,因此性能不如单表过滤。 - * 如果仅仅需要获取主表数据,请移步(getSysPostList),以便获取更好的查询性能。 - * - * @param filter 主表过滤对象。 - * @param orderBy 排序参数。 - * @return 查询结果集。 - */ - List getSysPostListWithRelation(SysPost filter, String orderBy); - - /** - * 在多对多关系中,当前Service的数据表为从表,返回不与指定主表主键Id存在对多对关系的列表。 - * - * @param deptId 主表主键Id。 - * @param filter 从表的过滤对象。 - * @param orderBy 排序参数。 - * @return 查询结果集。 - */ - List getNotInSysPostListByDeptId(Long deptId, SysPost filter, String orderBy); - - /** - * 获取指定部门的岗位列表。 - * - * @param deptId 部门Id。 - * @param filter 从表的过滤对象。 - * @param orderBy 排序参数。 - * @return 查询结果集。 - */ - List getSysPostListByDeptId(Long deptId, SysPost filter, String orderBy); - - /** - * 获取指定用户的用户岗位多对多关联数据列表。 - * - * @param userId 用户Id。 - * @return 用户岗位多对多关联数据列表。 - */ - List getSysUserPostListByUserId(Long userId); - - /** - * 判断指定的部门岗位Id集合是否都属于指定的部门Id。 - * - * @param deptPostIdSet 部门岗位Id集合。 - * @param deptId 部门Id。 - * @return 全部是返回true,否则false。 - */ - boolean existAllPrimaryKeys(Set deptPostIdSet, Long deptId); -} diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/service/SysRoleService.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/service/SysRoleService.java deleted file mode 100644 index f18a629d..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/service/SysRoleService.java +++ /dev/null @@ -1,105 +0,0 @@ -package com.orangeforms.webadmin.upms.service; - -import com.orangeforms.common.core.base.service.IBaseService; -import com.orangeforms.common.core.object.CallResult; -import com.orangeforms.webadmin.upms.model.SysRole; -import com.orangeforms.webadmin.upms.model.SysUserRole; - -import java.util.*; - -/** - * 角色数据服务接口。 - * - * @author Jerry - * @date 2021-06-06 - */ -public interface SysRoleService extends IBaseService { - - /** - * 保存新增的角色对象。 - * - * @param role 新增的角色对象。 - * @param menuIdSet 菜单Id列表。 - * @return 新增后的角色对象。 - */ - SysRole saveNew(SysRole role, Set menuIdSet); - - /** - * 更新角色对象。 - * - * @param role 更新的角色对象。 - * @param originalRole 原有的角色对象。 - * @param menuIdSet 菜单Id列表。 - * @return 更新成功返回true,否则false。 - */ - boolean update(SysRole role, SysRole originalRole, Set menuIdSet); - - /** - * 删除指定角色。 - * - * @param roleId 角色主键Id。 - * @return 删除成功返回true,否则false。 - */ - boolean remove(Long roleId); - - /** - * 获取角色列表。 - * - * @param filter 角色过滤对象。 - * @param orderBy 排序参数。 - * @return 角色列表。 - */ - List getSysRoleList(SysRole filter, String orderBy); - - /** - * 获取用户的用户角色对象列表。 - * - * @param userId 用户Id。 - * @return 用户角色对象列表。 - */ - List getSysUserRoleListByUserId(Long userId); - - /** - * 批量新增用户角色关联。 - * - * @param userRoleList 用户角色关系数据列表。 - */ - void addUserRoleList(List userRoleList); - - /** - * 移除指定用户和指定角色的关联关系。 - * - * @param roleId 角色主键Id。 - * @param userId 用户主键Id。 - * @return 移除成功返回true,否则false。 - */ - boolean removeUserRole(Long roleId, Long userId); - - /** - * 验证角色对象关联的数据是否都合法。 - * - * @param sysRole 当前操作的对象。 - * @param originalSysRole 原有对象。 - * @param menuIdListString 逗号分隔的menuId列表。 - * @return 验证结果。 - */ - CallResult verifyRelatedData(SysRole sysRole, SysRole originalSysRole, String menuIdListString); - - /** - * 查询角色的权限资源地址列表。同时返回详细的分配路径。 - * - * @param roleId 角色Id。 - * @param url url过滤条件。 - * @return 包含从角色到权限资源的完整权限分配路径信息的查询结果列表。 - */ - List> getSysPermListWithDetail(Long roleId, String url); - - /** - * 查询角色的权限字列表。同时返回详细的分配路径。 - * - * @param roleId 角色Id。 - * @param permCode 权限字名称过滤条件。 - * @return 包含从角色到权限字的权限分配路径信息的查询结果列表。 - */ - List> getSysPermCodeListWithDetail(Long roleId, String permCode); -} diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/service/SysUserService.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/service/SysUserService.java deleted file mode 100644 index e5f37cda..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/service/SysUserService.java +++ /dev/null @@ -1,194 +0,0 @@ -package com.orangeforms.webadmin.upms.service; - -import com.orangeforms.webadmin.upms.model.*; -import com.orangeforms.common.core.object.CallResult; -import com.orangeforms.common.core.base.service.IBaseService; - -import java.util.*; - -/** - * 用户管理数据操作服务接口。 - * - * @author Jerry - * @date 2021-06-06 - */ -public interface SysUserService extends IBaseService { - - /** - * 获取指定登录名的用户对象。 - * - * @param loginName 指定登录用户名。 - * @return 用户对象。 - */ - SysUser getSysUserByLoginName(String loginName); - - /** - * 保存新增的用户对象。 - * - * @param user 新增的用户对象。 - * @param roleIdSet 用户角色Id集合。 - * @param deptPostIdSet 部门岗位Id集合。 - * @param dataPermIdSet 数据权限Id集合。 - * @return 新增后的用户对象。 - */ - SysUser saveNew(SysUser user, Set roleIdSet, Set deptPostIdSet, Set dataPermIdSet); - - /** - * 更新用户对象。 - * - * @param user 更新的用户对象。 - * @param originalUser 原有的用户对象。 - * @param roleIdSet 用户角色Id列表。 - * @param deptPostIdSet 部门岗位Id集合。 - * @param dataPermIdSet 数据权限Id集合。 - * @return 更新成功返回true,否则false。 - */ - boolean update(SysUser user, SysUser originalUser, Set roleIdSet, Set deptPostIdSet, Set dataPermIdSet); - - /** - * 修改用户密码。 - * @param userId 用户主键Id。 - * @param newPass 新密码。 - * @return 成功返回true,否则false。 - */ - boolean changePassword(Long userId, String newPass); - - /** - * 删除指定数据。 - * - * @param userId 主键Id。 - * @return 成功返回true,否则false。 - */ - boolean remove(Long userId); - - /** - * 获取单表查询结果。由于没有关联数据查询,因此在仅仅获取单表数据的场景下,效率更高。 - * 如果需要同时获取关联数据,请移步(getSysUserListWithRelation)方法。 - * - * @param filter 过滤对象。 - * @param orderBy 排序参数。 - * @return 查询结果集。 - */ - List getSysUserList(SysUser filter, String orderBy); - - /** - * 获取主表的查询结果,以及主表关联的字典数据和一对一从表数据,以及一对一从表的字典数据。 - * 该查询会涉及到一对一从表的关联过滤,或一对多从表的嵌套关联过滤,因此性能不如单表过滤。 - * 如果仅仅需要获取主表数据,请移步(getSysUserList),以便获取更好的查询性能。 - * - * @param filter 主表过滤对象。 - * @param orderBy 排序参数。 - * @return 查询结果集。 - */ - List getSysUserListWithRelation(SysUser filter, String orderBy); - - /** - * 获取指定角色的用户列表。 - * - * @param roleId 角色主键Id。 - * @param filter 用户过滤对象。 - * @param orderBy 排序参数。 - * @return 用户列表。 - */ - List getSysUserListByRoleId(Long roleId, SysUser filter, String orderBy); - - /** - * 获取不属于指定角色的用户列表。 - * - * @param roleId 角色主键Id。 - * @param filter 用户过滤对象。 - * @param orderBy 排序参数。 - * @return 用户列表。 - */ - List getNotInSysUserListByRoleId(Long roleId, SysUser filter, String orderBy); - - /** - * 获取指定数据权限的用户列表。 - * - * @param dataPermId 数据权限主键Id。 - * @param filter 用户过滤对象。 - * @param orderBy 排序参数。 - * @return 用户列表。 - */ - List getSysUserListByDataPermId(Long dataPermId, SysUser filter, String orderBy); - - /** - * 获取不属于指定数据权限的用户列表。 - * - * @param dataPermId 数据权限主键Id。 - * @param filter 用户过滤对象。 - * @param orderBy 排序参数。 - * @return 用户列表。 - */ - List getNotInSysUserListByDataPermId(Long dataPermId, SysUser filter, String orderBy); - - /** - * 获取指定部门岗位的用户列表。 - * - * @param deptPostId 部门岗位主键Id。 - * @param filter 用户过滤对象。 - * @param orderBy 排序参数。 - * @return 用户列表。 - */ - List getSysUserListByDeptPostId(Long deptPostId, SysUser filter, String orderBy); - - /** - * 获取不属于指定部门岗位的用户列表。 - * - * @param deptPostId 部门岗位主键Id。 - * @param filter 用户过滤对象。 - * @param orderBy 排序参数。 - * @return 用户列表。 - */ - List getNotInSysUserListByDeptPostId(Long deptPostId, SysUser filter, String orderBy); - - /** - * 获取指定岗位的用户列表。 - * - * @param postId 岗位主键Id。 - * @param filter 用户过滤对象。 - * @param orderBy 排序参数。 - * @return 用户列表。 - */ - List getSysUserListByPostId(Long postId, SysUser filter, String orderBy); - - /** - * 查询用户的权限资源地址列表。同时返回详细的分配路径。 - * - * @param userId 用户Id。 - * @param url url过滤条件。 - * @return 包含从用户到权限资源的完整权限分配路径信息的查询结果列表。 - */ - List> getSysPermListWithDetail(Long userId, String url); - - /** - * 查询用户的权限字列表。同时返回详细的分配路径。 - * - * @param userId 用户Id。 - * @param permCode 权限字名称过滤条件。 - * @return 包含从用户到权限字的权限分配路径信息的查询结果列表。 - */ - List> getSysPermCodeListWithDetail(Long userId, String permCode); - - /** - * 查询用户的菜单列表。同时返回详细的分配路径。 - * - * @param userId 用户Id。 - * @param menuName 菜单名称过滤条件。 - * @return 包含从用户到菜单的权限分配路径信息的查询结果列表。 - */ - List> getSysMenuListWithDetail(Long userId, String menuName); - - /** - * 验证用户对象关联的数据是否都合法。 - * - * @param sysUser 当前操作的对象。 - * @param originalSysUser 原有对象。 - * @param roleIds 逗号分隔的角色Id列表字符串。 - * @param deptPostIds 逗号分隔的部门岗位Id列表字符串。 - * @param dataPermIds 逗号分隔的数据权限Id列表字符串。 - * @return 验证结果。 - */ - CallResult verifyRelatedData( - SysUser sysUser, SysUser originalSysUser, String roleIds, String deptPostIds, String dataPermIds); -} diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/service/impl/SysDataPermServiceImpl.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/service/impl/SysDataPermServiceImpl.java deleted file mode 100644 index f4284600..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/service/impl/SysDataPermServiceImpl.java +++ /dev/null @@ -1,336 +0,0 @@ -package com.orangeforms.webadmin.upms.service.impl; - -import com.alibaba.fastjson.JSON; -import com.alibaba.fastjson.JSONObject; -import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; -import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; -import com.orangeforms.common.sequence.wrapper.IdGeneratorWrapper; -import com.orangeforms.common.datafilter.constant.DataPermRuleType; -import com.orangeforms.common.core.base.service.BaseService; -import com.orangeforms.common.core.base.dao.BaseDaoMapper; -import com.orangeforms.common.core.constant.GlobalDeletedFlag; -import com.orangeforms.common.core.object.CallResult; -import com.orangeforms.common.core.util.MyModelUtil; -import com.orangeforms.common.core.util.RedisKeyUtil; -import com.orangeforms.webadmin.config.ApplicationConfig; -import com.orangeforms.webadmin.upms.dao.SysDataPermDeptMapper; -import com.orangeforms.webadmin.upms.dao.SysDataPermMapper; -import com.orangeforms.webadmin.upms.dao.SysDataPermUserMapper; -import com.orangeforms.webadmin.upms.model.*; -import com.orangeforms.webadmin.upms.service.SysDataPermService; -import com.orangeforms.webadmin.upms.service.SysDeptService; -import lombok.extern.slf4j.Slf4j; -import org.apache.commons.lang3.StringUtils; -import org.apache.commons.collections4.CollectionUtils; -import org.redisson.api.RBucket; -import org.redisson.api.RedissonClient; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; -import org.springframework.transaction.annotation.Transactional; - -import java.util.*; -import java.util.concurrent.TimeUnit; -import java.util.stream.Collectors; - -/** - * 数据权限数据服务类。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Slf4j -@Service("sysDataPermService") -public class SysDataPermServiceImpl extends BaseService implements SysDataPermService { - - @Autowired - private SysDataPermMapper sysDataPermMapper; - @Autowired - private SysDataPermDeptMapper sysDataPermDeptMapper; - @Autowired - private SysDataPermUserMapper sysDataPermUserMapper; - @Autowired - private SysDeptService sysDeptService; - @Autowired - private RedissonClient redissonClient; - @Autowired - private ApplicationConfig applicationConfig; - @Autowired - private IdGeneratorWrapper idGenerator; - - /** - * 返回主对象的Mapper对象。 - * - * @return 主对象的Mapper对象。 - */ - @Override - protected BaseDaoMapper mapper() { - return sysDataPermMapper; - } - - /** - * 保存新增的数据权限对象。 - * - * @param dataPerm 新增的数据权限对象。 - * @param deptIdSet 关联的部门Id列表。 - * @return 新增后的数据权限对象。 - */ - @Transactional(rollbackFor = Exception.class) - @Override - public SysDataPerm saveNew(SysDataPerm dataPerm, Set deptIdSet) { - dataPerm.setDataPermId(idGenerator.nextLongId()); - MyModelUtil.fillCommonsForInsert(dataPerm); - dataPerm.setDeletedFlag(GlobalDeletedFlag.NORMAL); - sysDataPermMapper.insert(dataPerm); - this.insertRelationData(dataPerm, deptIdSet); - return dataPerm; - } - - /** - * 更新数据权限对象。 - * - * @param dataPerm 更新的数据权限对象。 - * @param originalDataPerm 原有的数据权限对象。 - * @param deptIdSet 关联的部门Id列表。 - * @return 更新成功返回true,否则false。 - */ - @Transactional(rollbackFor = Exception.class) - @Override - public boolean update(SysDataPerm dataPerm, SysDataPerm originalDataPerm, Set deptIdSet) { - MyModelUtil.fillCommonsForUpdate(dataPerm, originalDataPerm); - UpdateWrapper uw = this.createUpdateQueryForNullValue(dataPerm, dataPerm.getDataPermId()); - if (sysDataPermMapper.update(dataPerm, uw) != 1) { - return false; - } - SysDataPermDept dataPermDept = new SysDataPermDept(); - dataPermDept.setDataPermId(dataPerm.getDataPermId()); - sysDataPermDeptMapper.delete(new QueryWrapper<>(dataPermDept)); - this.insertRelationData(dataPerm, deptIdSet); - return true; - } - - /** - * 删除指定数据权限。 - * - * @param dataPermId 数据权限主键Id。 - * @return 删除成功返回true,否则false。 - */ - @Transactional(rollbackFor = Exception.class) - @Override - public boolean remove(Long dataPermId) { - if (sysDataPermMapper.deleteById(dataPermId) != 1) { - return false; - } - SysDataPermDept dataPermDept = new SysDataPermDept(); - dataPermDept.setDataPermId(dataPermId); - sysDataPermDeptMapper.delete(new QueryWrapper<>(dataPermDept)); - SysDataPermUser dataPermUser = new SysDataPermUser(); - dataPermUser.setDataPermId(dataPermId); - sysDataPermUserMapper.delete(new QueryWrapper<>(dataPermUser)); - return true; - } - - /** - * 获取数据权限列表。 - * - * @param filter 数据权限过滤对象。 - * @param orderBy 排序参数。 - * @return 数据权限查询列表。 - */ - @Override - public List getSysDataPermList(SysDataPerm filter, String orderBy) { - return sysDataPermMapper.getSysDataPermList(filter, orderBy); - } - - /** - * 将指定用户的指定会话的数据权限集合存入缓存。 - * - * @param sessionId 会话Id。 - * @param userId 用户主键Id。 - * @param deptId 用户所属部门主键Id。 - * @return 查询并缓存后的数据权限集合。返回格式为,Map。 - */ - @Override - public Map putDataPermCache(String sessionId, Long userId, Long deptId) { - Map dataPermMap = this.getSysDataPermListByUserId(userId, deptId); - if (dataPermMap.size() > 0) { - String dataPermSessionKey = RedisKeyUtil.makeSessionDataPermIdKey(sessionId); - RBucket bucket = redissonClient.getBucket(dataPermSessionKey); - bucket.set(JSON.toJSONString(dataPermMap), - applicationConfig.getSessionExpiredSeconds(), TimeUnit.SECONDS); - } - return dataPermMap; - } - - /** - * 将指定会话的数据权限集合从缓存中移除。 - * - * @param sessionId 会话Id。 - */ - @Override - public void removeDataPermCache(String sessionId) { - String sessionPermKey = RedisKeyUtil.makeSessionDataPermIdKey(sessionId); - redissonClient.getBucket(sessionPermKey).deleteAsync(); - } - - /** - * 获取指定用户Id的数据权限列表。并基于权限规则类型进行了一级分组。 - * - * @param userId 指定的用户Id。 - * @param deptId 用户所属部门主键Id。 - * @return 合并优化后的数据权限列表。返回格式为,Map。 - */ - @Override - public Map getSysDataPermListByUserId(Long userId, Long deptId) { - List dataPermList = sysDataPermMapper.getSysDataPermListByUserId(userId); - dataPermList.forEach(dataPerm -> { - if (CollectionUtils.isNotEmpty(dataPerm.getDataPermDeptList())) { - Set deptIdSet = dataPerm.getDataPermDeptList().stream() - .map(SysDataPermDept::getDeptId).collect(Collectors.toSet()); - dataPerm.setDeptIdListString(StringUtils.join(deptIdSet, ",")); - } - }); - // 为了更方便进行后续的合并优化处理,这里再基于规则类型进行分组。ruleMap的key是规则类型。 - Map> ruleMap = - dataPermList.stream().collect(Collectors.groupingBy(SysDataPerm::getRuleType)); - Map resultMap = new HashMap<>(ruleMap.size()); - // 如有有ALL存在,就可以直接退出了,没有必要在处理后续的规则了。 - if (ruleMap.containsKey(DataPermRuleType.TYPE_ALL)) { - resultMap.put(DataPermRuleType.TYPE_ALL, "null"); - return resultMap; - } - // 这里优先合并最复杂的多部门及子部门场景。 - String deptIds = processMultiDeptAndChildren(ruleMap, deptId); - if (deptIds != null) { - resultMap.put(DataPermRuleType.TYPE_MULTI_DEPT_AND_CHILD_DEPT, deptIds); - } - // 合并当前部门及子部门的优化 - if (ruleMap.get(DataPermRuleType.TYPE_DEPT_AND_CHILD_DEPT) != null) { - // 需要与仅仅当前部门规则进行合并。 - ruleMap.remove(DataPermRuleType.TYPE_DEPT_ONLY); - resultMap.put(DataPermRuleType.TYPE_DEPT_AND_CHILD_DEPT, "null"); - } - // 合并自定义部门了。 - deptIds = processMultiDept(ruleMap, deptId); - if (deptIds != null) { - resultMap.put(DataPermRuleType.TYPE_CUSTOM_DEPT_LIST, deptIds); - } - // 最后处理当前部门和当前用户。 - if (ruleMap.get(DataPermRuleType.TYPE_DEPT_ONLY) != null) { - resultMap.put(DataPermRuleType.TYPE_DEPT_ONLY, "null"); - } - if (ruleMap.get(DataPermRuleType.TYPE_USER_ONLY) != null) { - resultMap.put(DataPermRuleType.TYPE_USER_ONLY, "null"); - } - return resultMap; - } - - private String processMultiDeptAndChildren(Map> ruleMap, Long deptId) { - List parentDeptList = ruleMap.get(DataPermRuleType.TYPE_MULTI_DEPT_AND_CHILD_DEPT); - if (parentDeptList == null) { - return null; - } - Set deptIdSet = new HashSet<>(); - for (SysDataPerm parentDept : parentDeptList) { - deptIdSet.addAll(Arrays.stream(StringUtils.split( - parentDept.getDeptIdListString(), ",")).map(Long::valueOf).collect(Collectors.toSet())); - } - // 在合并所有的多父部门Id之后,需要判断是否有本部门及子部门的规则。如果有,就继续合并。 - if (ruleMap.containsKey(DataPermRuleType.TYPE_DEPT_AND_CHILD_DEPT)) { - // 如果多父部门列表中包含当前部门,那么可以直接删除该规则了,如果没包含,就加入到多部门的DEPT_ID的IN LIST中。 - deptIdSet.add(deptId); - ruleMap.remove(DataPermRuleType.TYPE_DEPT_AND_CHILD_DEPT); - } - // 需要与仅仅当前部门规则进行合并。 - if (ruleMap.containsKey(DataPermRuleType.TYPE_DEPT_ONLY)) { - if (deptIdSet.contains(deptId)) { - ruleMap.remove(DataPermRuleType.TYPE_DEPT_ONLY); - } - } - return StringUtils.join(deptIdSet, ','); - } - - private String processMultiDept(Map> ruleMap, Long deptId) { - List customDeptList = ruleMap.get(DataPermRuleType.TYPE_CUSTOM_DEPT_LIST); - if (customDeptList == null) { - return null; - } - Set deptIdSet = new HashSet<>(); - for (SysDataPerm customDept : customDeptList) { - deptIdSet.addAll(Arrays.stream(StringUtils.split( - customDept.getDeptIdListString(), ",")).map(Long::valueOf).collect(Collectors.toSet())); - } - if (ruleMap.containsKey(DataPermRuleType.TYPE_DEPT_ONLY)) { - deptIdSet.add(deptId); - ruleMap.remove(DataPermRuleType.TYPE_DEPT_ONLY); - } - return StringUtils.join(deptIdSet, ','); - } - - /** - * 添加用户和数据权限之间的多对多关联关系。 - * - * @param dataPermId 数据权限Id。 - * @param userIdSet 关联的用户Id列表。 - */ - @Transactional(rollbackFor = Exception.class) - @Override - public void addDataPermUserList(Long dataPermId, Set userIdSet) { - for (Long userId : userIdSet) { - SysDataPermUser dataPermUser = new SysDataPermUser(); - dataPermUser.setDataPermId(dataPermId); - dataPermUser.setUserId(userId); - sysDataPermUserMapper.insert(dataPermUser); - } - } - - /** - * 移除用户和数据权限之间的多对多关联关系。 - * - * @param dataPermId 数据权限主键Id。 - * @param userId 用户主键Id。 - */ - @Transactional(rollbackFor = Exception.class) - @Override - public boolean removeDataPermUser(Long dataPermId, Long userId) { - SysDataPermUser dataPermUser = new SysDataPermUser(); - dataPermUser.setDataPermId(dataPermId); - dataPermUser.setUserId(userId); - return sysDataPermUserMapper.delete(new QueryWrapper<>(dataPermUser)) == 1; - } - - /** - * 验证数据权限对象关联菜单数据是否都合法。 - * - * @param dataPerm 数据权限关对象。 - * @param deptIdListString 与数据权限关联的部门Id列表。 - * @return 验证结果。 - */ - @Override - public CallResult verifyRelatedData(SysDataPerm dataPerm, String deptIdListString) { - JSONObject jsonObject = new JSONObject(); - if (dataPerm.getRuleType() == DataPermRuleType.TYPE_MULTI_DEPT_AND_CHILD_DEPT - || dataPerm.getRuleType() == DataPermRuleType.TYPE_CUSTOM_DEPT_LIST) { - if (StringUtils.isBlank(deptIdListString)) { - return CallResult.error("数据验证失败,部门列表不能为空!"); - } - Set deptIdSet = Arrays.stream(StringUtils.split( - deptIdListString, ",")).map(Long::valueOf).collect(Collectors.toSet()); - if (!sysDeptService.existAllPrimaryKeys(deptIdSet)) { - return CallResult.error("数据验证失败,存在不合法的部门数据,请刷新后重试!"); - } - jsonObject.put("deptIdSet", deptIdSet); - } - return CallResult.ok(jsonObject); - } - - private void insertRelationData(SysDataPerm dataPerm, Set deptIdSet) { - if (CollectionUtils.isNotEmpty(deptIdSet)) { - for (Long deptId : deptIdSet) { - SysDataPermDept dataPermDept = new SysDataPermDept(); - dataPermDept.setDataPermId(dataPerm.getDataPermId()); - dataPermDept.setDeptId(deptId); - sysDataPermDeptMapper.insert(dataPermDept); - } - } - } -} diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/service/impl/SysDeptServiceImpl.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/service/impl/SysDeptServiceImpl.java deleted file mode 100644 index 05160950..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/service/impl/SysDeptServiceImpl.java +++ /dev/null @@ -1,340 +0,0 @@ -package com.orangeforms.webadmin.upms.service.impl; - -import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; -import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; -import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; -import com.orangeforms.webadmin.upms.service.*; -import com.orangeforms.webadmin.upms.dao.*; -import com.orangeforms.webadmin.upms.model.*; -import com.orangeforms.common.core.base.dao.BaseDaoMapper; -import com.orangeforms.common.core.constant.GlobalDeletedFlag; -import com.orangeforms.common.core.object.MyRelationParam; -import com.orangeforms.common.core.base.service.BaseService; -import com.orangeforms.common.core.util.MyModelUtil; -import com.orangeforms.common.sequence.wrapper.IdGeneratorWrapper; -import com.github.pagehelper.Page; -import lombok.extern.slf4j.Slf4j; -import org.apache.commons.collections4.CollectionUtils; -import org.apache.commons.lang3.ObjectUtils; -import org.springframework.transaction.annotation.Transactional; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; - -import java.util.*; -import java.util.stream.Collectors; - -/** - * 部门管理数据操作服务类。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Slf4j -@Service("sysDeptService") -public class SysDeptServiceImpl extends BaseService implements SysDeptService { - - @Autowired - private SysDeptMapper sysDeptMapper; - @Autowired - private SysDeptRelationMapper sysDeptRelationMapper; - @Autowired - private SysUserService sysUserService; - @Autowired - private SysDeptPostMapper sysDeptPostMapper; - @Autowired - private SysDataPermDeptMapper sysDataPermDeptMapper; - @Autowired - private IdGeneratorWrapper idGenerator; - - /** - * 返回当前Service的主表Mapper对象。 - * - * @return 主表Mapper对象。 - */ - @Override - protected BaseDaoMapper mapper() { - return sysDeptMapper; - } - - /** - * 保存新增的部门对象。 - * - * @param sysDept 新增的部门对象。 - * @param parentSysDept 上级部门对象。 - * @return 新增后的部门对象。 - */ - @Transactional(rollbackFor = Exception.class) - @Override - public SysDept saveNew(SysDept sysDept, SysDept parentSysDept) { - sysDept.setDeptId(idGenerator.nextLongId()); - sysDept.setDeletedFlag(GlobalDeletedFlag.NORMAL); - MyModelUtil.fillCommonsForInsert(sysDept); - sysDeptMapper.insert(sysDept); - // 同步插入部门关联关系数据 - if (parentSysDept == null) { - sysDeptRelationMapper.insert(new SysDeptRelation(sysDept.getDeptId(), sysDept.getDeptId())); - } else { - sysDeptRelationMapper.insertParentList(parentSysDept.getDeptId(), sysDept.getDeptId()); - } - return sysDept; - } - - /** - * 更新部门对象。 - * - * @param sysDept 更新的部门对象。 - * @param originalSysDept 原有的部门对象。 - * @return 更新成功返回true,否则false。 - */ - @Transactional(rollbackFor = Exception.class) - @Override - public boolean update(SysDept sysDept, SysDept originalSysDept) { - MyModelUtil.fillCommonsForUpdate(sysDept, originalSysDept); - UpdateWrapper uw = this.createUpdateQueryForNullValue(sysDept, sysDept.getDeptId()); - if (sysDeptMapper.update(sysDept, uw) == 0) { - return false; - } - if (ObjectUtils.notEqual(sysDept.getParentId(), originalSysDept.getParentId())) { - this.updateParentRelation(sysDept, originalSysDept); - } - return true; - } - - private void updateParentRelation(SysDept sysDept, SysDept originalSysDept) { - // 1. 在删除当前部门与原有父部门的关联关系之前,先将原有的所有父部门Id缓存。 - List originalParentIdList = new LinkedList<>(); - if (originalSysDept.getParentId() != null) { - SysDept originalParentDept = getById(originalSysDept.getParentId()); - while (originalParentDept != null) { - originalParentIdList.add(originalParentDept.getDeptId()); - if (originalParentDept.getParentId() == null) { - break; - } - originalParentDept = getById(originalParentDept.getParentId()); - } - } - // 删除其子部门与其原有父部门之间的关联关系。 - for (Long parentDeptId : originalParentIdList) { - sysDeptRelationMapper.removeBetweenChildrenAndParents(parentDeptId, sysDept.getDeptId()); - } - // 2. 将当前部门与原有的父部门列表解除关系。 - SysDeptRelation filter = new SysDeptRelation(); - filter.setDeptId(sysDept.getDeptId()); - sysDeptRelationMapper.delete(new QueryWrapper<>(filter)); - // 3. 将当前部门和新的父部门列表建立关联关系。 - // 在插入与新父部门的关联关系 - List deptRelationList = new LinkedList<>(); - // 先插入自己和自己的关系。 - deptRelationList.add(new SysDeptRelation(sysDept.getDeptId(), sysDept.getDeptId())); - SysDept parentSysDept = null; - if (sysDept.getParentId() != null) { - parentSysDept = getById(sysDept.getParentId()); - } - List newParentIdList = new LinkedList<>(); - // 再插入直接父部门,以及父部门的父部门,并向上以此类推。 - while (parentSysDept != null) { - newParentIdList.add(parentSysDept.getDeptId()); - deptRelationList.add( - new SysDeptRelation(parentSysDept.getDeptId(), sysDept.getDeptId())); - if (parentSysDept.getParentId() == null) { - break; - } - parentSysDept = getById(parentSysDept.getParentId()); - } - sysDeptRelationMapper.insertList(deptRelationList); - // 4. 将当前部门的子部门与其新的父部门建立关联关系 - QueryWrapper queryWrapper = new QueryWrapper<>(); - queryWrapper.eq(MyModelUtil.mapToColumnName("parentDeptId", SysDeptRelation.class), sysDept.getDeptId()); - queryWrapper.ne(MyModelUtil.mapToColumnName("deptId", SysDeptRelation.class), sysDept.getDeptId()); - List childRelationList = sysDeptRelationMapper.selectList(queryWrapper); - List newChildrenAndParentList = new LinkedList<>(); - for (Long newParentId : newParentIdList) { - for (SysDeptRelation childDeptRelation : childRelationList) { - newChildrenAndParentList.add(new SysDeptRelation(newParentId, childDeptRelation.getDeptId())); - } - } - if (CollectionUtils.isNotEmpty(newChildrenAndParentList)) { - sysDeptRelationMapper.insertList(newChildrenAndParentList); - } - } - - /** - * 删除指定数据。 - * - * @param deptId 主键Id。 - * @return 成功返回true,否则false。 - */ - @Transactional(rollbackFor = Exception.class) - @Override - public boolean remove(Long deptId) { - if (sysDeptMapper.deleteById(deptId) == 0) { - return false; - } - // 这里删除当前部门及其父部门的关联关系。 - // 当前部门和子部门的关系无需在这里删除,因为包含子部门时不能删除父部门。 - SysDeptRelation deptRelation = new SysDeptRelation(); - deptRelation.setDeptId(deptId); - sysDeptRelationMapper.delete(new QueryWrapper<>(deptRelation)); - SysDataPermDept dataPermDept = new SysDataPermDept(); - dataPermDept.setDeptId(deptId); - sysDataPermDeptMapper.delete(new QueryWrapper<>(dataPermDept)); - return true; - } - - /** - * 获取单表查询结果。由于没有关联数据查询,因此在仅仅获取单表数据的场景下,效率更高。 - * 如果需要同时获取关联数据,请移步(getSysDeptListWithRelation)方法。 - * - * @param filter 过滤对象。 - * @param orderBy 排序参数。 - * @return 查询结果集。 - */ - @Override - public List getSysDeptList(SysDept filter, String orderBy) { - return sysDeptMapper.getSysDeptList(filter, orderBy); - } - - /** - * 获取主表的查询结果,以及主表关联的字典数据和一对一从表数据,以及一对一从表的字典数据。 - * 该查询会涉及到一对一从表的关联过滤,或一对多从表的嵌套关联过滤,因此性能不如单表过滤。 - * 如果仅仅需要获取主表数据,请移步(getSysDeptList),以便获取更好的查询性能。 - * - * @param filter 主表过滤对象。 - * @param orderBy 排序参数。 - * @return 查询结果集。 - */ - @Override - public List getSysDeptListWithRelation(SysDept filter, String orderBy) { - List resultList = sysDeptMapper.getSysDeptList(filter, orderBy); - // 在缺省生成的代码中,如果查询结果resultList不是Page对象,说明没有分页,那么就很可能是数据导出接口调用了当前方法。 - // 为了避免一次性的大量数据关联,规避因此而造成的系统运行性能冲击,这里手动进行了分批次读取,开发者可按需修改该值。 - int batchSize = resultList instanceof Page ? 0 : 1000; - this.buildRelationForDataList(resultList, MyRelationParam.normal(), batchSize); - return resultList; - } - - /** - * 判断指定对象是否包含下级对象。 - * - * @param deptId 主键Id。 - * @return 存在返回true,否则false。 - */ - @Override - public boolean hasChildren(Long deptId) { - SysDept filter = new SysDept(); - filter.setParentId(deptId); - return getCountByFilter(filter) > 0; - } - - /** - * 判断指定部门Id是否包含用户对象。 - * - * @param deptId 部门主键Id。 - * @return 存在返回true,否则false。 - */ - @Override - public boolean hasChildrenUser(Long deptId) { - SysUser sysUser = new SysUser(); - sysUser.setDeptId(deptId); - return sysUserService.getCountByFilter(sysUser) > 0; - } - - /** - * 批量添加多对多关联关系。 - * - * @param sysDeptPostList 多对多关联表对象集合。 - * @param deptId 主表Id。 - */ - @Transactional(rollbackFor = Exception.class) - @Override - public void addSysDeptPostList(List sysDeptPostList, Long deptId) { - for (SysDeptPost sysDeptPost : sysDeptPostList) { - sysDeptPost.setDeptPostId(idGenerator.nextLongId()); - sysDeptPost.setDeptId(deptId); - sysDeptPostMapper.insert(sysDeptPost); - } - } - - /** - * 更新中间表数据。 - * - * @param sysDeptPost 中间表对象。 - * @return 更新成功与否。 - */ - @Transactional(rollbackFor = Exception.class) - @Override - public boolean updateSysDeptPost(SysDeptPost sysDeptPost) { - SysDeptPost filter = new SysDeptPost(); - filter.setDeptPostId(sysDeptPost.getDeptPostId()); - filter.setDeptId(sysDeptPost.getDeptId()); - filter.setPostId(sysDeptPost.getPostId()); - UpdateWrapper uw = - BaseService.createUpdateQueryForNullValue(sysDeptPost, SysDeptPost.class); - uw.setEntity(filter); - return sysDeptPostMapper.update(sysDeptPost, uw) > 0; - } - - /** - * 移除单条多对多关系。 - * - * @param deptId 主表Id。 - * @param postId 从表Id。 - * @return 成功返回true,否则false。 - */ - @Transactional(rollbackFor = Exception.class) - @Override - public boolean removeSysDeptPost(Long deptId, Long postId) { - SysDeptPost filter = new SysDeptPost(); - filter.setDeptId(deptId); - filter.setPostId(postId); - return sysDeptPostMapper.delete(new QueryWrapper<>(filter)) > 0; - } - - /** - * 获取中间表数据。 - * - * @param deptId 主表Id。 - * @param postId 从表Id。 - * @return 中间表对象。 - */ - @Override - public SysDeptPost getSysDeptPost(Long deptId, Long postId) { - SysDeptPost filter = new SysDeptPost(); - filter.setDeptId(deptId); - filter.setPostId(postId); - return sysDeptPostMapper.selectOne(new QueryWrapper<>(filter)); - } - - @Override - public SysDeptPost getSysDeptPost(Long deptPostId) { - return sysDeptPostMapper.selectById(deptPostId); - } - - @Override - public List> getSysDeptPostListWithRelationByDeptId(Long deptId) { - return sysDeptPostMapper.getSysDeptPostListWithRelationByDeptId(deptId); - } - - @Override - public List getSysDeptPostList(Long deptId, Set postIdSet) { - LambdaQueryWrapper queryWrapper = new LambdaQueryWrapper<>(); - queryWrapper.eq(SysDeptPost::getDeptId, deptId); - queryWrapper.in(SysDeptPost::getPostId, postIdSet); - return sysDeptPostMapper.selectList(queryWrapper); - } - - @Override - public List getLeaderDeptPostIdList(Long deptId) { - List resultList = sysDeptPostMapper.getLeaderDeptPostList(deptId); - return resultList.stream().map(SysDeptPost::getDeptPostId).collect(Collectors.toList()); - } - - @Override - public List getUpLeaderDeptPostIdList(Long deptId) { - SysDept sysDept = this.getById(deptId); - if (sysDept.getParentId() == null) { - return new LinkedList<>(); - } - return this.getLeaderDeptPostIdList(sysDept.getParentId()); - } -} diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/service/impl/SysMenuServiceImpl.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/service/impl/SysMenuServiceImpl.java deleted file mode 100644 index b9fdf0b0..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/service/impl/SysMenuServiceImpl.java +++ /dev/null @@ -1,335 +0,0 @@ -package com.orangeforms.webadmin.upms.service.impl; - -import cn.hutool.core.util.ObjectUtil; -import com.alibaba.fastjson.JSONObject; -import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; -import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; -import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; -import com.orangeforms.common.core.base.service.BaseService; -import com.orangeforms.common.sequence.wrapper.IdGeneratorWrapper; -import com.orangeforms.common.core.base.dao.BaseDaoMapper; -import com.orangeforms.common.core.constant.GlobalDeletedFlag; -import com.orangeforms.common.core.util.MyModelUtil; -import com.orangeforms.common.core.object.CallResult; -import com.orangeforms.webadmin.upms.dao.SysMenuMapper; -import com.orangeforms.webadmin.upms.dao.SysMenuPermCodeMapper; -import com.orangeforms.webadmin.upms.dao.SysRoleMenuMapper; -import com.orangeforms.webadmin.upms.model.SysMenu; -import com.orangeforms.webadmin.upms.model.SysMenuPermCode; -import com.orangeforms.webadmin.upms.model.SysRoleMenu; -import com.orangeforms.webadmin.upms.model.constant.SysMenuType; -import com.orangeforms.webadmin.upms.model.constant.SysOnlineMenuPermType; -import com.orangeforms.webadmin.upms.service.SysMenuService; -import com.orangeforms.webadmin.upms.service.SysPermCodeService; -import lombok.extern.slf4j.Slf4j; -import org.apache.commons.lang3.StringUtils; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; -import org.springframework.transaction.annotation.Transactional; - -import java.util.*; -import java.util.stream.Collectors; - -/** - * 菜单数据服务类。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Slf4j -@Service("sysMenuService") -public class SysMenuServiceImpl extends BaseService implements SysMenuService { - - @Autowired - private SysMenuMapper sysMenuMapper; - @Autowired - private SysRoleMenuMapper sysRoleMenuMapper; - @Autowired - private SysMenuPermCodeMapper sysMenuPermCodeMapper; - @Autowired - private SysPermCodeService sysPermCodeService; - @Autowired - private IdGeneratorWrapper idGenerator; - - /** - * 返回主对象的Mapper对象。 - * - * @return 主对象的Mapper对象。 - */ - @Override - protected BaseDaoMapper mapper() { - return sysMenuMapper; - } - - /** - * 保存新增的菜单对象。 - * - * @param sysMenu 新增的菜单对象。 - * @param permCodeIdSet 权限字Id列表。 - * @return 新增后的菜单对象。 - */ - @Transactional(rollbackFor = Exception.class) - @Override - public SysMenu saveNew(SysMenu sysMenu, Set permCodeIdSet) { - sysMenu.setMenuId(idGenerator.nextLongId()); - MyModelUtil.fillCommonsForInsert(sysMenu); - sysMenu.setDeletedFlag(GlobalDeletedFlag.NORMAL); - sysMenuMapper.insert(sysMenu); - if (permCodeIdSet != null) { - for (Long permCodeId : permCodeIdSet) { - SysMenuPermCode menuPermCode = new SysMenuPermCode(); - menuPermCode.setMenuId(sysMenu.getMenuId()); - menuPermCode.setPermCodeId(permCodeId); - sysMenuPermCodeMapper.insert(menuPermCode); - } - } - // 判断当前菜单是否为指向在线表单的菜单,并将根据约定,动态插入两个子菜单。 - if (sysMenu.getOnlineFormId() != null && sysMenu.getOnlineFlowEntryId() == null) { - SysMenu viewSubMenu = new SysMenu(); - viewSubMenu.setMenuId(idGenerator.nextLongId()); - viewSubMenu.setParentId(sysMenu.getMenuId()); - viewSubMenu.setMenuType(SysMenuType.TYPE_BUTTON); - viewSubMenu.setMenuName("查看"); - viewSubMenu.setShowOrder(0); - viewSubMenu.setOnlineFormId(sysMenu.getOnlineFormId()); - viewSubMenu.setOnlineMenuPermType(SysOnlineMenuPermType.TYPE_VIEW); - viewSubMenu.setDeletedFlag(GlobalDeletedFlag.NORMAL); - MyModelUtil.fillCommonsForInsert(viewSubMenu); - sysMenuMapper.insert(viewSubMenu); - SysMenu editSubMenu = new SysMenu(); - editSubMenu.setMenuId(idGenerator.nextLongId()); - editSubMenu.setParentId(sysMenu.getMenuId()); - editSubMenu.setMenuType(SysMenuType.TYPE_BUTTON); - editSubMenu.setMenuName("编辑"); - editSubMenu.setShowOrder(1); - editSubMenu.setOnlineFormId(sysMenu.getOnlineFormId()); - editSubMenu.setOnlineMenuPermType(SysOnlineMenuPermType.TYPE_EDIT); - editSubMenu.setDeletedFlag(GlobalDeletedFlag.NORMAL); - MyModelUtil.fillCommonsForInsert(editSubMenu); - sysMenuMapper.insert(editSubMenu); - } - return sysMenu; - } - - /** - * 更新菜单对象。 - * - * @param sysMenu 更新的菜单对象。 - * @param originalSysMenu 原有的菜单对象。 - * @param permCodeIdSet 权限字Id列表。 - * @return 更新成功返回true,否则false。 - */ - @Transactional(rollbackFor = Exception.class) - @Override - public boolean update(SysMenu sysMenu, SysMenu originalSysMenu, Set permCodeIdSet) { - MyModelUtil.fillCommonsForUpdate(sysMenu, originalSysMenu); - sysMenu.setMenuType(originalSysMenu.getMenuType()); - UpdateWrapper uw = this.createUpdateQueryForNullValue(sysMenu, sysMenu.getMenuId()); - if (sysMenuMapper.update(sysMenu, uw) != 1) { - return false; - } - SysMenuPermCode deletedMenuPermCode = new SysMenuPermCode(); - deletedMenuPermCode.setMenuId(sysMenu.getMenuId()); - sysMenuPermCodeMapper.delete(new QueryWrapper<>(deletedMenuPermCode)); - if (permCodeIdSet != null) { - for (Long permCodeId : permCodeIdSet) { - SysMenuPermCode menuPermCode = new SysMenuPermCode(); - menuPermCode.setMenuId(sysMenu.getMenuId()); - menuPermCode.setPermCodeId(permCodeId); - sysMenuPermCodeMapper.insert(menuPermCode); - } - } - // 如果当前菜单的在线表单Id变化了,就需要同步更新他的内置子菜单也同步更新。 - if (ObjectUtil.notEqual(originalSysMenu.getOnlineFormId(), sysMenu.getOnlineFormId())) { - SysMenu onlineSubMenu = new SysMenu(); - onlineSubMenu.setOnlineFormId(sysMenu.getOnlineFormId()); - sysMenuMapper.update(onlineSubMenu, - new QueryWrapper().lambda().eq(SysMenu::getParentId, sysMenu.getMenuId())); - } - return true; - } - - /** - * 删除指定的菜单。 - * - * @param menu 菜单对象。 - * @return 删除成功返回true,否则false。 - */ - @Transactional(rollbackFor = Exception.class) - @Override - public boolean remove(SysMenu menu) { - Long menuId = menu.getMenuId(); - if (sysMenuMapper.deleteById(menuId) != 1) { - return false; - } - SysRoleMenu roleMenu = new SysRoleMenu(); - roleMenu.setMenuId(menuId); - sysRoleMenuMapper.delete(new QueryWrapper<>(roleMenu)); - SysMenuPermCode menuPermCode = new SysMenuPermCode(); - menuPermCode.setMenuId(menuId); - sysMenuPermCodeMapper.delete(new QueryWrapper<>(menuPermCode)); - // 如果为指向在线表单的菜单,则连同删除子菜单 - if (menu.getOnlineFormId() != null) { - sysMenuMapper.delete(new QueryWrapper().lambda().eq(SysMenu::getParentId, menuId)); - } - return true; - } - - /** - * 获取全部菜单列表。 - * - * @return 全部菜单列表。 - */ - @Override - public Collection getAllMenuList() { - QueryWrapper queryWrapper = new QueryWrapper<>(); - queryWrapper.orderByAsc(this.safeMapToColumnName("showOrder")); - queryWrapper.in(this.safeMapToColumnName("menuType"), - Arrays.asList(SysMenuType.TYPE_MENU, SysMenuType.TYPE_DIRECTORY)); - return sysMenuMapper.selectList(queryWrapper); - } - - /** - * 获取指定用户Id的菜单列表,已去重。 - * - * @param userId 用户主键Id。 - * @return 用户关联的菜单列表。 - */ - @Override - public Collection getMenuListByUserId(Long userId) { - List menuList = sysMenuMapper.getMenuListByUserId(userId); - LinkedHashMap menuMap = new LinkedHashMap<>(); - for (SysMenu menu : menuList) { - menuMap.put(menu.getMenuId(), menu); - } - return menuMap.values(); - } - - /** - * 判断当前菜单是否存在子菜单。 - * - * @param menuId 菜单主键Id。 - * @return 存在返回true,否则false。 - */ - @Override - public boolean hasChildren(Long menuId) { - SysMenu menu = new SysMenu(); - menu.setParentId(menuId); - return this.getCountByFilter(menu) > 0; - } - - /** - * 验证菜单对象关联的数据是否都合法。 - * - * @param sysMenu 当前操作的对象。 - * @param originalSysMenu 原有对象。 - * @param permCodeIdListString 逗号分隔的权限Id列表。 - * @return 验证结果。 - */ - @Override - public CallResult verifyRelatedData(SysMenu sysMenu, SysMenu originalSysMenu, String permCodeIdListString) { - // menu、ui fragment和button类型的menu不能没有parentId - if (sysMenu.getParentId() == null) { - if (sysMenu.getMenuType() != SysMenuType.TYPE_DIRECTORY) { - return CallResult.error("数据验证失败,当前类型菜单项的上级菜单不能为空!"); - } - } - if (this.needToVerify(sysMenu, originalSysMenu, SysMenu::getParentId)) { - String errorMessage = checkErrorOfNonDirectoryMenu(sysMenu); - if (errorMessage != null) { - return CallResult.error(errorMessage); - } - } - JSONObject jsonObject = null; - if (StringUtils.isNotBlank(permCodeIdListString)) { - Set permCodeIdSet = Arrays.stream( - permCodeIdListString.split(",")).map(Long::valueOf).collect(Collectors.toSet()); - if (!sysPermCodeService.existAllPrimaryKeys(permCodeIdSet)) { - return CallResult.error("数据验证失败,存在不合法的权限字,请刷新后重试!"); - } - jsonObject = new JSONObject(); - jsonObject.put("permCodeIdSet", permCodeIdSet); - } - return CallResult.ok(jsonObject); - } - - /** - * 查询菜单的权限资源地址列表。同时返回详细的分配路径。 - * - * @param menuId 菜单Id。 - * @param url 权限资源地址过滤条件。 - * @return 包含从菜单到权限资源的权限分配路径信息的查询结果列表。 - */ - @Override - public List> getSysPermListWithDetail(Long menuId, String url) { - return sysMenuMapper.getSysPermListWithDetail(menuId, url); - } - - /** - * 查询菜单的用户列表。同时返回详细的分配路径。 - * - * @param menuId 菜单Id。 - * @param loginName 登录名。 - * @return 包含从菜单到用户的完整权限分配路径信息的查询结果列表。 - */ - @Override - public List> getSysUserListWithDetail(Long menuId, String loginName) { - return sysMenuMapper.getSysUserListWithDetail(menuId, loginName); - } - - /** - * 获取指定类型的所有在线表单的菜单。 - * - * @param menuType 菜单类型,NULL则返回全部类型。 - * @return 在线表单关联的菜单列表。 - */ - @Override - public List getAllOnlineMenuList(Integer menuType) { - LambdaQueryWrapper queryWrapper = - new QueryWrapper().lambda().isNotNull(SysMenu::getOnlineFormId); - if (menuType != null) { - queryWrapper.eq(SysMenu::getMenuType, menuType); - } - return sysMenuMapper.selectList(queryWrapper); - } - - /** - * 获取当前用户有权访问的在线表单菜单,仅返回类型为BUTTON的菜单。 - * - * @param userId 指定的用户。 - * @param menuType 菜单类型,NULL则返回全部类型。 - * @return 在线表单关联的菜单列表。 - */ - @Override - public List getOnlineMenuListByUserId(Long userId, Integer menuType) { - return sysMenuMapper.getOnlineMenuListByUserId(userId, menuType); - } - - private String checkErrorOfNonDirectoryMenu(SysMenu sysMenu) { - // 判断父节点是否存在 - SysMenu parentSysMenu = getById(sysMenu.getParentId()); - if (parentSysMenu == null) { - return "数据验证失败,关联的上级菜单并不存在,请刷新后重试!"; - } - // 逐个判断每种类型的菜单,他的父菜单的合法性,先从目录类型和菜单类型开始 - if (sysMenu.getMenuType() == SysMenuType.TYPE_DIRECTORY - || sysMenu.getMenuType() == SysMenuType.TYPE_MENU) { - // 他们的上级只能是目录 - if (parentSysMenu.getMenuType() != SysMenuType.TYPE_DIRECTORY) { - return "数据验证失败,当前类型菜单项的上级菜单只能是目录类型!"; - } - } else if (sysMenu.getMenuType() == SysMenuType.TYPE_UI_FRAGMENT) { - // ui fragment的上级只能是menu类型 - if (parentSysMenu.getMenuType() != SysMenuType.TYPE_MENU) { - return "数据验证失败,当前类型菜单项的上级菜单只能是菜单类型和按钮类型!"; - } - } else if (sysMenu.getMenuType() == SysMenuType.TYPE_BUTTON) { - // button的上级只能是menu和ui fragment - if (parentSysMenu.getMenuType() != SysMenuType.TYPE_MENU - && parentSysMenu.getMenuType() != SysMenuType.TYPE_UI_FRAGMENT) { - return "数据验证失败,当前类型菜单项的上级菜单只能是菜单类型和UI片段类型!"; - } - } - return null; - } -} diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/service/impl/SysPermCodeServiceImpl.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/service/impl/SysPermCodeServiceImpl.java deleted file mode 100644 index fe8fe92b..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/service/impl/SysPermCodeServiceImpl.java +++ /dev/null @@ -1,226 +0,0 @@ -package com.orangeforms.webadmin.upms.service.impl; - -import com.alibaba.fastjson.JSONObject; -import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; -import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; -import com.orangeforms.common.core.base.service.BaseService; -import com.orangeforms.common.sequence.wrapper.IdGeneratorWrapper; -import com.orangeforms.common.core.base.dao.BaseDaoMapper; -import com.orangeforms.common.core.constant.GlobalDeletedFlag; -import com.orangeforms.common.core.util.MyModelUtil; -import com.orangeforms.common.core.object.CallResult; -import com.orangeforms.webadmin.upms.dao.SysMenuPermCodeMapper; -import com.orangeforms.webadmin.upms.dao.SysPermCodeMapper; -import com.orangeforms.webadmin.upms.dao.SysPermCodePermMapper; -import com.orangeforms.webadmin.upms.model.SysMenuPermCode; -import com.orangeforms.webadmin.upms.model.SysPermCode; -import com.orangeforms.webadmin.upms.model.SysPermCodePerm; -import com.orangeforms.webadmin.upms.service.SysPermCodeService; -import com.orangeforms.webadmin.upms.service.SysPermService; -import lombok.extern.slf4j.Slf4j; -import org.apache.commons.lang3.StringUtils; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; -import org.springframework.transaction.annotation.Transactional; - -import java.util.*; -import java.util.stream.Collectors; - -/** - * 权限字数据服务类。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Slf4j -@Service("sysPermCodeService") -public class SysPermCodeServiceImpl extends BaseService implements SysPermCodeService { - - @Autowired - private SysPermCodeMapper sysPermCodeMapper; - @Autowired - private SysPermCodePermMapper sysPermCodePermMapper; - @Autowired - private SysMenuPermCodeMapper sysMenuPermCodeMapper; - @Autowired - private SysPermService sysPermService; - @Autowired - private IdGeneratorWrapper idGenerator; - - /** - * 返回主对象的Mapper对象。 - * - * @return 主对象的Mapper对象。 - */ - @Override - protected BaseDaoMapper mapper() { - return sysPermCodeMapper; - } - - /** - * 获取指定用户的权限字列表,已去重。 - * - * @param userId 用户主键Id。 - * @return 用户关联的权限字列表。 - */ - @Override - public Collection getPermCodeListByUserId(Long userId) { - List permCodeList = sysPermCodeMapper.getPermCodeListByUserId(userId); - return new HashSet<>(permCodeList); - } - - /** - * 获取所有权限字数据列表,已去重。 - * - * @return 全部权限字列表。 - */ - @Override - public Collection getAllPermCodeList() { - List permCodeList = this.getAllList(); - return permCodeList.stream().map(SysPermCode::getPermCode).collect(Collectors.toSet()); - } - - /** - * 保存新增的权限字对象。 - * - * @param sysPermCode 新增的权限字对象。 - * @param permIdSet 权限资源Id列表。 - * @return 新增后的权限字对象。 - */ - @Transactional(rollbackFor = Exception.class) - @Override - public SysPermCode saveNew(SysPermCode sysPermCode, Set permIdSet) { - sysPermCode.setPermCodeId(idGenerator.nextLongId()); - MyModelUtil.fillCommonsForInsert(sysPermCode); - sysPermCode.setDeletedFlag(GlobalDeletedFlag.NORMAL); - sysPermCodeMapper.insert(sysPermCode); - if (permIdSet != null) { - for (Long permId : permIdSet) { - SysPermCodePerm permCodePerm = new SysPermCodePerm(); - permCodePerm.setPermCodeId(sysPermCode.getPermCodeId()); - permCodePerm.setPermId(permId); - sysPermCodePermMapper.insert(permCodePerm); - } - } - return sysPermCode; - } - - /** - * 更新权限字对象。 - * - * @param sysPermCode 更新的权限字对象。 - * @param originalSysPermCode 原有的权限字对象。 - * @param permIdSet 权限资源Id列表。 - * @return 更新成功返回true,否则false。 - */ - @Transactional(rollbackFor = Exception.class) - @Override - public boolean update(SysPermCode sysPermCode, SysPermCode originalSysPermCode, Set permIdSet) { - MyModelUtil.fillCommonsForUpdate(sysPermCode, originalSysPermCode); - sysPermCode.setParentId(originalSysPermCode.getParentId()); - UpdateWrapper uw = - this.createUpdateQueryForNullValue(sysPermCode, sysPermCode.getPermCodeId()); - if (sysPermCodeMapper.update(sysPermCode, uw) != 1) { - return false; - } - SysPermCodePerm deletedPermCodePerm = new SysPermCodePerm(); - deletedPermCodePerm.setPermCodeId(sysPermCode.getPermCodeId()); - sysPermCodePermMapper.delete(new QueryWrapper<>(deletedPermCodePerm)); - if (permIdSet != null) { - for (Long permId : permIdSet) { - SysPermCodePerm permCodePerm = new SysPermCodePerm(); - permCodePerm.setPermCodeId(sysPermCode.getPermCodeId()); - permCodePerm.setPermId(permId); - sysPermCodePermMapper.insert(permCodePerm); - } - } - return true; - } - - /** - * 删除指定的权限字。 - * - * @param permCodeId 权限字主键Id。 - * @return 删除成功返回true,否则false。 - */ - @Transactional(rollbackFor = Exception.class) - @Override - public boolean remove(Long permCodeId) { - if (sysPermCodeMapper.deleteById(permCodeId) != 1) { - return false; - } - SysMenuPermCode menuPermCode = new SysMenuPermCode(); - menuPermCode.setPermCodeId(permCodeId); - sysMenuPermCodeMapper.delete(new QueryWrapper<>(menuPermCode)); - SysPermCodePerm permCodePerm = new SysPermCodePerm(); - permCodePerm.setPermCodeId(permCodeId); - sysPermCodePermMapper.delete(new QueryWrapper<>(permCodePerm)); - return true; - } - - /** - * 判断当前权限字是否存在下级权限字对象。 - * - * @param permCodeId 权限字主键Id。 - * @return 存在返回true,否则false。 - */ - @Override - public boolean hasChildren(Long permCodeId) { - SysPermCode permCode = new SysPermCode(); - permCode.setParentId(permCodeId); - return this.getCountByFilter(permCode) > 0; - } - - /** - * 验证权限字对象关联的数据是否都合法。 - * - * @param sysPermCode 当前操作的对象。 - * @param originalSysPermCode 原有对象。 - * @param permIdListString 逗号分隔的权限资源Id列表。 - * @return 验证结果。 - */ - @Override - public CallResult verifyRelatedData( - SysPermCode sysPermCode, SysPermCode originalSysPermCode, String permIdListString) { - if (this.needToVerify(sysPermCode, originalSysPermCode, SysPermCode::getParentId)) { - if (getById(sysPermCode.getParentId()) == null) { - return CallResult.error("数据验证失败,关联的上级权限字并不存在,请刷新后重试!"); - } - } - JSONObject jsonObject = null; - if (StringUtils.isNotBlank(permIdListString)) { - Set permIdSet = Arrays.stream( - permIdListString.split(",")).map(Long::valueOf).collect(Collectors.toSet()); - if (!sysPermService.existAllPrimaryKeys(permIdSet)) { - return CallResult.error("数据验证失败,存在不合法的权限资源,请刷新后重试!"); - } - jsonObject = new JSONObject(); - jsonObject.put("permIdSet", permIdSet); - } - return CallResult.ok(jsonObject); - } - - /** - * 查询权限字的用户列表。同时返回详细的分配路径。 - * - * @param permCodeId 权限字Id。 - * @param loginName 登录名。 - * @return 包含从权限字到用户的完整权限分配路径信息的查询结果列表。 - */ - @Override - public List> getSysUserListWithDetail(Long permCodeId, String loginName) { - return sysPermCodeMapper.getSysUserListWithDetail(permCodeId, loginName); - } - - /** - * 查询权限字的角色列表。同时返回详细的分配路径。 - * - * @param permCodeId 权限字Id。 - * @param roleName 角色名。 - * @return 包含从权限字到角色的权限分配路径信息的查询结果列表。 - */ - @Override - public List> getSysRoleListWithDetail(Long permCodeId, String roleName) { - return sysPermCodeMapper.getSysRoleListWithDetail(permCodeId, roleName); - } -} diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/service/impl/SysPermModuleServiceImpl.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/service/impl/SysPermModuleServiceImpl.java deleted file mode 100644 index f73e0ea4..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/service/impl/SysPermModuleServiceImpl.java +++ /dev/null @@ -1,124 +0,0 @@ -package com.orangeforms.webadmin.upms.service.impl; - -import com.orangeforms.common.core.base.service.BaseService; -import com.orangeforms.common.sequence.wrapper.IdGeneratorWrapper; -import com.orangeforms.common.core.base.dao.BaseDaoMapper; -import com.orangeforms.common.core.constant.GlobalDeletedFlag; -import com.orangeforms.common.core.util.MyModelUtil; -import com.orangeforms.webadmin.upms.dao.SysPermModuleMapper; -import com.orangeforms.webadmin.upms.model.SysPerm; -import com.orangeforms.webadmin.upms.model.SysPermModule; -import com.orangeforms.webadmin.upms.service.SysPermModuleService; -import com.orangeforms.webadmin.upms.service.SysPermService; -import lombok.extern.slf4j.Slf4j; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; -import org.springframework.transaction.annotation.Transactional; - -import java.util.List; - -/** - * 权限资源模块数据服务类。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Slf4j -@Service("sysPermModuleService") -public class SysPermModuleServiceImpl extends BaseService implements SysPermModuleService { - - @Autowired - private SysPermModuleMapper sysPermModuleMapper; - @Autowired - private SysPermService sysPermService; - @Autowired - private IdGeneratorWrapper idGenerator; - - /** - * 返回主对象的Mapper对象。 - * - * @return 主对象的Mapper对象。 - */ - @Override - protected BaseDaoMapper mapper() { - return sysPermModuleMapper; - } - - /** - * 保存新增的权限资源模块对象。 - * - * @param sysPermModule 新增的权限资源模块对象。 - * @return 新增后的权限资源模块对象。 - */ - @Transactional(rollbackFor = Exception.class) - @Override - public SysPermModule saveNew(SysPermModule sysPermModule) { - sysPermModule.setModuleId(idGenerator.nextLongId()); - MyModelUtil.fillCommonsForInsert(sysPermModule); - sysPermModule.setDeletedFlag(GlobalDeletedFlag.NORMAL); - sysPermModuleMapper.insert(sysPermModule); - return sysPermModule; - } - - /** - * 更新权限资源模块对象。 - * - * @param sysPermModule 更新的权限资源模块对象。 - * @param originalSysPermModule 原有的权限资源模块对象。 - * @return 更新成功返回true,否则false - */ - @Transactional(rollbackFor = Exception.class) - @Override - public boolean update(SysPermModule sysPermModule, SysPermModule originalSysPermModule) { - MyModelUtil.fillCommonsForUpdate(sysPermModule, originalSysPermModule); - return sysPermModuleMapper.updateById(sysPermModule) != 0; - } - - /** - * 删除指定的权限资源模块。 - * - * @param moduleId 权限资源模块主键Id。 - * @return 删除成功返回true,否则false。 - */ - @Transactional(rollbackFor = Exception.class) - @Override - public boolean remove(Long moduleId) { - return sysPermModuleMapper.deleteById(moduleId) == 1; - } - - /** - * 获取权限模块资源及其关联的权限资源列表。 - * - * @return 权限资源模块及其关联的权限资源列表。 - */ - @Override - public List getPermModuleAndPermList() { - return sysPermModuleMapper.getPermModuleAndPermList(); - } - - /** - * 判断是否存在下级权限资源模块。 - * - * @param moduleId 权限资源模块主键Id。 - * @return 存在返回true,否则false。 - */ - @Override - public boolean hasChildren(Long moduleId) { - SysPermModule permModule = new SysPermModule(); - permModule.setParentId(moduleId); - return this.getCountByFilter(permModule) > 0; - } - - /** - * 判断是否存在权限数据。 - * - * @param moduleId 权限资源模块主键Id。 - * @return 存在返回true,否则false。 - */ - @Override - public boolean hasModulePerms(Long moduleId) { - SysPerm filter = new SysPerm(); - filter.setModuleId(moduleId); - return sysPermService.getCountByFilter(filter) > 0; - } -} diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/service/impl/SysPermServiceImpl.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/service/impl/SysPermServiceImpl.java deleted file mode 100644 index 2c887766..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/service/impl/SysPermServiceImpl.java +++ /dev/null @@ -1,243 +0,0 @@ -package com.orangeforms.webadmin.upms.service.impl; - -import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; -import cn.hutool.core.util.ObjectUtil; -import com.orangeforms.common.core.base.service.BaseService; -import com.orangeforms.common.sequence.wrapper.IdGeneratorWrapper; -import com.orangeforms.common.core.base.dao.BaseDaoMapper; -import com.orangeforms.common.core.object.MyRelationParam; -import com.orangeforms.common.core.constant.GlobalDeletedFlag; -import com.orangeforms.common.core.object.CallResult; -import com.orangeforms.common.core.util.MyModelUtil; -import com.orangeforms.common.core.util.RedisKeyUtil; -import com.orangeforms.webadmin.config.ApplicationConfig; -import com.orangeforms.webadmin.upms.service.*; -import com.orangeforms.webadmin.upms.dao.SysPermCodePermMapper; -import com.orangeforms.webadmin.upms.dao.SysPermMapper; -import com.orangeforms.webadmin.upms.model.SysPerm; -import com.orangeforms.webadmin.upms.model.SysPermCodePerm; -import com.orangeforms.webadmin.upms.model.SysPermModule; -import lombok.extern.slf4j.Slf4j; -import org.apache.commons.collections4.CollectionUtils; -import org.redisson.api.RSet; -import org.redisson.api.RedissonClient; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; -import org.springframework.transaction.annotation.Transactional; - -import java.util.*; -import java.util.concurrent.TimeUnit; -import java.util.stream.Collectors; - -/** - * 权限资源数据服务类。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Slf4j -@Service("sysPermService") -public class SysPermServiceImpl extends BaseService implements SysPermService { - - @Autowired - private SysPermMapper sysPermMapper; - @Autowired - private SysPermCodePermMapper sysPermCodePermMapper; - @Autowired - private SysPermModuleService sysPermModuleService; - @Autowired - private SysUserService sysUserService; - @Autowired - private IdGeneratorWrapper idGenerator; - @Autowired - private RedissonClient redissonClient; - @Autowired - private ApplicationConfig applicationConfig; - - /** - * 返回主对象的Mapper对象。 - * - * @return 主对象的Mapper对象。 - */ - @Override - protected BaseDaoMapper mapper() { - return sysPermMapper; - } - - /** - * 保存新增的权限资源对象。 - * - * @param perm 新增的权限资源对象。 - * @return 新增后的权限资源对象。 - */ - @Transactional(rollbackFor = Exception.class) - @Override - public SysPerm saveNew(SysPerm perm) { - perm.setPermId(idGenerator.nextLongId()); - MyModelUtil.fillCommonsForInsert(perm); - perm.setDeletedFlag(GlobalDeletedFlag.NORMAL); - sysPermMapper.insert(perm); - return perm; - } - - /** - * 更新权限资源对象。 - * - * @param perm 更新的权限资源对象。 - * @param originalPerm 原有的权限资源对象。 - * @return 更新成功返回true,否则false。 - */ - @Transactional(rollbackFor = Exception.class) - @Override - public boolean update(SysPerm perm, SysPerm originalPerm) { - MyModelUtil.fillCommonsForUpdate(perm, originalPerm); - return sysPermMapper.updateById(perm) != 0; - } - - /** - * 删除权限资源。 - * - * @param permId 权限资源主键Id。 - * @return 删除成功返回true,否则false。 - */ - @Transactional(rollbackFor = Exception.class) - @Override - public boolean remove(Long permId) { - if (sysPermMapper.deleteById(permId) != 1) { - return false; - } - SysPermCodePerm permCodePerm = new SysPermCodePerm(); - permCodePerm.setPermId(permId); - sysPermCodePermMapper.delete(new QueryWrapper<>(permCodePerm)); - return true; - } - - /** - * 获取权限数据列表。 - * - * @param sysPermFilter 过滤对象。 - * @return 权限列表。 - */ - @Override - public List getPermListWithRelation(SysPerm sysPermFilter) { - QueryWrapper queryWrapper = new QueryWrapper<>(); - queryWrapper.orderByAsc(this.safeMapToColumnName("showOrder")); - queryWrapper.eq(ObjectUtil.isNotNull(sysPermFilter.getModuleId()), - this.safeMapToColumnName("moduleId"), sysPermFilter.getModuleId()); - queryWrapper.like(ObjectUtil.isNotNull(sysPermFilter.getUrl()), - this.safeMapToColumnName("url"), "%" + sysPermFilter.getUrl() + "%"); - List permList = sysPermMapper.selectList(queryWrapper); - // 这里因为权限只有字典数据,所以仅仅做字典关联。 - this.buildRelationForDataList(permList, MyRelationParam.dictOnly()); - return permList; - } - - /** - * 将指定用户的指定会话的权限集合存入缓存。 - * - * @param sessionId 会话Id。 - * @param userId 用户主键Id。 - * @return 查询并缓存后的权限集合。 - */ - @Override - public Collection putUserSysPermCache(String sessionId, Long userId) { - Collection permList = this.getPermListByUserId(userId); - if (CollectionUtils.isEmpty(permList)) { - return permList; - } - String sessionPermKey = RedisKeyUtil.makeSessionPermIdKey(sessionId); - RSet redisPermSet = redissonClient.getSet(sessionPermKey); - redisPermSet.addAll(permList.stream().map(Object::toString).collect(Collectors.toSet())); - redisPermSet.expire(applicationConfig.getSessionExpiredSeconds(), TimeUnit.SECONDS); - return permList; - } - - /** - * 把在线表单的权限URL集合,存放到权限URL的缓存中。 - * - * @param sessionId 会话Id。 - * @param permUrlSet URL集合。 - */ - @Override - public void putOnlinePermToCache(String sessionId, Set permUrlSet) { - String sessionPermKey = RedisKeyUtil.makeSessionPermIdKey(sessionId); - redissonClient.getSet(sessionPermKey).addAll(permUrlSet); - } - - /** - * 将指定会话的权限集合从缓存中移除。 - * - * @param sessionId 会话Id。 - */ - @Override - public void removeUserSysPermCache(String sessionId) { - String sessionPermKey = RedisKeyUtil.makeSessionPermIdKey(sessionId); - redissonClient.getSet(sessionPermKey).deleteAsync(); - } - - /** - * 获取与指定用户关联的权限资源列表,已去重。 - * - * @param userId 关联的用户主键Id。 - * @return 与指定用户Id关联的权限资源列表。 - */ - @Override - public Collection getPermListByUserId(Long userId) { - List urlList = sysPermMapper.getPermListByUserId(userId); - return new HashSet<>(urlList); - } - - /** - * 验证权限资源对象关联的数据是否都合法。 - * - * @param sysPerm 当前操作的对象。 - * @param originalSysPerm 原有对象。 - * @return 验证结果。 - */ - @Override - public CallResult verifyRelatedData(SysPerm sysPerm, SysPerm originalSysPerm) { - if (this.needToVerify(sysPerm, originalSysPerm, SysPerm::getModuleId)) { - SysPermModule permModule = sysPermModuleService.getById(sysPerm.getModuleId()); - if (permModule == null) { - return CallResult.error("数据验证失败,关联的权限模块Id并不存在,请刷新后重试!"); - } - } - return CallResult.ok(); - } - - /** - * 查询权限资源地址的用户列表。同时返回详细的分配路径。 - * - * @param permId 权限资源Id。 - * @param loginName 登录名。 - * @return 包含从权限资源到用户的完整权限分配路径信息的查询结果列表。 - */ - @Override - public List> getSysUserListWithDetail(Long permId, String loginName) { - return sysPermMapper.getSysUserListWithDetail(permId, loginName); - } - - /** - * 查询权限资源地址的角色列表。同时返回详细的分配路径。 - * - * @param permId 权限资源Id。 - * @param roleName 角色名。 - * @return 包含从权限资源到角色的权限分配路径信息的查询结果列表。 - */ - @Override - public List> getSysRoleListWithDetail(Long permId, String roleName) { - return sysPermMapper.getSysRoleListWithDetail(permId, roleName); - } - - /** - * 查询权限资源地址的菜单列表。同时返回详细的分配路径。 - * - * @param permId 权限资源Id。 - * @param menuName 菜单名。 - * @return 包含从权限资源到菜单的权限分配路径信息的查询结果列表。 - */ - @Override - public List> getSysMenuListWithDetail(Long permId, String menuName) { - return sysPermMapper.getSysMenuListWithDetail(permId, menuName); - } -} diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/service/impl/SysPermWhitelistServiceImpl.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/service/impl/SysPermWhitelistServiceImpl.java deleted file mode 100644 index fc1cdb0e..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/service/impl/SysPermWhitelistServiceImpl.java +++ /dev/null @@ -1,52 +0,0 @@ -package com.orangeforms.webadmin.upms.service.impl; - -import com.orangeforms.common.core.base.service.BaseService; -import com.orangeforms.common.core.base.dao.BaseDaoMapper; -import com.orangeforms.webadmin.upms.dao.SysPermWhitelistMapper; -import com.orangeforms.webadmin.upms.model.SysPermWhitelist; -import com.orangeforms.webadmin.upms.service.SysPermWhitelistService; -import lombok.extern.slf4j.Slf4j; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; - -import java.util.List; -import java.util.function.Function; -import java.util.stream.Collectors; - -/** - * 权限资源白名单数据服务类。 - * 白名单中的权限资源,可以不受权限控制,任何用户皆可访问,一般用于常用的字典数据列表接口。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Slf4j -@Service("sysPermWhitelistService") -public class SysPermWhitelistServiceImpl extends BaseService implements SysPermWhitelistService { - - @Autowired - private SysPermWhitelistMapper sysPermWhitelistMapper; - - /** - * 返回主对象的Mapper对象。 - * - * @return 主对象的Mapper对象。 - */ - @Override - protected BaseDaoMapper mapper() { - return sysPermWhitelistMapper; - } - - /** - * 获取白名单权限资源的列表。 - * - * @return 白名单权限资源地址列表。 - */ - @Override - public List getWhitelistPermList() { - List dataList = this.getAllList(); - Function getterFunc = SysPermWhitelist::getPermUrl; - return dataList.stream() - .filter(x -> getterFunc.apply(x) != null).map(getterFunc).collect(Collectors.toList()); - } -} diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/service/impl/SysPostServiceImpl.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/service/impl/SysPostServiceImpl.java deleted file mode 100644 index d463e830..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/service/impl/SysPostServiceImpl.java +++ /dev/null @@ -1,188 +0,0 @@ -package com.orangeforms.webadmin.upms.service.impl; - -import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; -import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; -import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; -import com.github.pagehelper.Page; -import com.orangeforms.common.core.base.dao.BaseDaoMapper; -import com.orangeforms.common.core.base.service.BaseService; -import com.orangeforms.common.core.constant.GlobalDeletedFlag; -import com.orangeforms.common.core.object.MyRelationParam; -import com.orangeforms.common.core.util.MyModelUtil; -import com.orangeforms.common.sequence.wrapper.IdGeneratorWrapper; -import com.orangeforms.webadmin.upms.dao.SysDeptPostMapper; -import com.orangeforms.webadmin.upms.dao.SysPostMapper; -import com.orangeforms.webadmin.upms.dao.SysUserPostMapper; -import com.orangeforms.webadmin.upms.model.SysDeptPost; -import com.orangeforms.webadmin.upms.model.SysPost; -import com.orangeforms.webadmin.upms.model.SysUserPost; -import com.orangeforms.webadmin.upms.service.SysPostService; -import lombok.extern.slf4j.Slf4j; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; -import org.springframework.transaction.annotation.Transactional; - -import java.util.List; -import java.util.Set; - -/** - * 岗位管理数据操作服务类。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Slf4j -@Service("sysPostService") -public class SysPostServiceImpl extends BaseService implements SysPostService { - - @Autowired - private SysPostMapper sysPostMapper; - @Autowired - private SysUserPostMapper sysUserPostMapper; - @Autowired - private SysDeptPostMapper sysDeptPostMapper; - @Autowired - private IdGeneratorWrapper idGenerator; - - /** - * 返回当前Service的主表Mapper对象。 - * - * @return 主表Mapper对象。 - */ - @Override - protected BaseDaoMapper mapper() { - return sysPostMapper; - } - - /** - * 保存新增对象。 - * - * @param sysPost 新增对象。 - * @return 返回新增对象。 - */ - @Transactional(rollbackFor = Exception.class) - @Override - public SysPost saveNew(SysPost sysPost) { - sysPost.setPostId(idGenerator.nextLongId()); - sysPost.setDeletedFlag(GlobalDeletedFlag.NORMAL); - MyModelUtil.fillCommonsForInsert(sysPost); - MyModelUtil.setDefaultValue(sysPost, "leaderPost", false); - sysPostMapper.insert(sysPost); - return sysPost; - } - - /** - * 更新数据对象。 - * - * @param sysPost 更新的对象。 - * @param originalSysPost 原有数据对象。 - * @return 成功返回true,否则false。 - */ - @Transactional(rollbackFor = Exception.class) - @Override - public boolean update(SysPost sysPost, SysPost originalSysPost) { - MyModelUtil.fillCommonsForUpdate(sysPost, originalSysPost); - // 这里重点提示,在执行主表数据更新之前,如果有哪些字段不支持修改操作,请用原有数据对象字段替换当前数据字段。 - UpdateWrapper uw = this.createUpdateQueryForNullValue(sysPost, sysPost.getPostId()); - return sysPostMapper.update(sysPost, uw) == 1; - } - - /** - * 删除指定数据。 - * - * @param postId 主键Id。 - * @return 成功返回true,否则false。 - */ - @Transactional(rollbackFor = Exception.class) - @Override - public boolean remove(Long postId) { - if (sysPostMapper.deleteById(postId) != 1) { - return false; - } - // 开始删除多对多父表的关联 - SysUserPost sysUserPost = new SysUserPost(); - sysUserPost.setPostId(postId); - sysUserPostMapper.delete(new QueryWrapper<>(sysUserPost)); - SysDeptPost sysDeptPost = new SysDeptPost(); - sysDeptPost.setPostId(postId); - sysDeptPostMapper.delete(new QueryWrapper<>(sysDeptPost)); - return true; - } - - /** - * 获取单表查询结果。由于没有关联数据查询,因此在仅仅获取单表数据的场景下,效率更高。 - * 如果需要同时获取关联数据,请移步(getSysPostListWithRelation)方法。 - * - * @param filter 过滤对象。 - * @param orderBy 排序参数。 - * @return 查询结果集。 - */ - @Override - public List getSysPostList(SysPost filter, String orderBy) { - return sysPostMapper.getSysPostList(filter, orderBy); - } - - /** - * 获取主表的查询结果,以及主表关联的字典数据和一对一从表数据,以及一对一从表的字典数据。 - * 该查询会涉及到一对一从表的关联过滤,或一对多从表的嵌套关联过滤,因此性能不如单表过滤。 - * 如果仅仅需要获取主表数据,请移步(getSysPostList),以便获取更好的查询性能。 - * - * @param filter 主表过滤对象。 - * @param orderBy 排序参数。 - * @return 查询结果集。 - */ - @Override - public List getSysPostListWithRelation(SysPost filter, String orderBy) { - List resultList = sysPostMapper.getSysPostList(filter, orderBy); - // 在缺省生成的代码中,如果查询结果resultList不是Page对象,说明没有分页,那么就很可能是数据导出接口调用了当前方法。 - // 为了避免一次性的大量数据关联,规避因此而造成的系统运行性能冲击,这里手动进行了分批次读取,开发者可按需修改该值。 - int batchSize = resultList instanceof Page ? 0 : 1000; - this.buildRelationForDataList(resultList, MyRelationParam.normal(), batchSize); - return resultList; - } - - /** - * 在多对多关系中,当前Service的数据表为从表,返回不与指定主表主键Id存在对多对关系的列表。 - * - * @param deptId 主表主键Id。 - * @param filter 从表的过滤对象。 - * @param orderBy 排序参数。 - * @return 查询结果集。 - */ - @Override - public List getNotInSysPostListByDeptId(Long deptId, SysPost filter, String orderBy) { - List resultList = sysPostMapper.getNotInSysPostListByDeptId(deptId, filter, orderBy); - this.buildRelationForDataList(resultList, MyRelationParam.dictOnly()); - return resultList; - } - - /** - * 获取指定部门的岗位列表。 - * - * @param deptId 部门Id。 - * @param filter 从表的过滤对象。 - * @param orderBy 排序参数。 - * @return 查询结果集。 - */ - @Override - public List getSysPostListByDeptId(Long deptId, SysPost filter, String orderBy) { - List resultList = sysPostMapper.getSysPostListByDeptId(deptId, filter, orderBy); - this.buildRelationForDataList(resultList, MyRelationParam.dictOnly()); - return resultList; - } - - @Override - public List getSysUserPostListByUserId(Long userId) { - SysUserPost filter = new SysUserPost(); - filter.setUserId(userId); - return sysUserPostMapper.selectList(new QueryWrapper<>(filter)); - } - - @Override - public boolean existAllPrimaryKeys(Set deptPostIdSet, Long deptId) { - LambdaQueryWrapper queryWrapper = new LambdaQueryWrapper<>(); - queryWrapper.eq(SysDeptPost::getDeptId, deptId); - queryWrapper.in(SysDeptPost::getDeptPostId, deptPostIdSet); - return sysDeptPostMapper.selectCount(queryWrapper) == deptPostIdSet.size(); - } -} diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/service/impl/SysRoleServiceImpl.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/service/impl/SysRoleServiceImpl.java deleted file mode 100644 index deeed87d..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/service/impl/SysRoleServiceImpl.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.orangeforms.webadmin.upms.service.impl; - -import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; -import com.alibaba.fastjson.JSONObject; -import com.orangeforms.common.core.base.service.BaseService; -import com.orangeforms.common.core.util.MyModelUtil; -import com.orangeforms.common.sequence.wrapper.IdGeneratorWrapper; -import com.orangeforms.common.core.base.dao.BaseDaoMapper; -import com.orangeforms.common.core.constant.GlobalDeletedFlag; -import com.orangeforms.common.core.object.CallResult; -import com.orangeforms.webadmin.upms.dao.SysRoleMapper; -import com.orangeforms.webadmin.upms.dao.SysRoleMenuMapper; -import com.orangeforms.webadmin.upms.dao.SysUserRoleMapper; -import com.orangeforms.webadmin.upms.model.SysRole; -import com.orangeforms.webadmin.upms.model.SysRoleMenu; -import com.orangeforms.webadmin.upms.model.SysUserRole; -import com.orangeforms.webadmin.upms.service.SysMenuService; -import com.orangeforms.webadmin.upms.service.SysRoleService; -import lombok.extern.slf4j.Slf4j; -import org.apache.commons.lang3.StringUtils; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; -import org.springframework.transaction.annotation.Transactional; - -import java.util.*; -import java.util.stream.Collectors; - -/** - * 角色数据服务类。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Slf4j -@Service("sysRoleService") -public class SysRoleServiceImpl extends BaseService implements SysRoleService { - - @Autowired - private SysRoleMapper sysRoleMapper; - @Autowired - private SysRoleMenuMapper sysRoleMenuMapper; - @Autowired - private SysUserRoleMapper sysUserRoleMapper; - @Autowired - private SysMenuService sysMenuService; - @Autowired - private IdGeneratorWrapper idGenerator; - - /** - * 返回主对象的Mapper对象。 - * - * @return 主对象的Mapper对象。 - */ - @Override - protected BaseDaoMapper mapper() { - return sysRoleMapper; - } - - /** - * 保存新增的角色对象。 - * - * @param role 新增的角色对象。 - * @param menuIdSet 菜单Id列表。 - * @return 新增后的角色对象。 - */ - @Transactional(rollbackFor = Exception.class) - @Override - public SysRole saveNew(SysRole role, Set menuIdSet) { - role.setRoleId(idGenerator.nextLongId()); - MyModelUtil.fillCommonsForInsert(role); - role.setDeletedFlag(GlobalDeletedFlag.NORMAL); - sysRoleMapper.insert(role); - if (menuIdSet != null) { - for (Long menuId : menuIdSet) { - SysRoleMenu roleMenu = new SysRoleMenu(); - roleMenu.setRoleId(role.getRoleId()); - roleMenu.setMenuId(menuId); - sysRoleMenuMapper.insert(roleMenu); - } - } - return role; - } - - /** - * 更新角色对象。 - * - * @param role 更新的角色对象。 - * @param originalRole 原有的角色对象。 - * @param menuIdSet 菜单Id列表。 - * @return 更新成功返回true,否则false。 - */ - @Transactional(rollbackFor = Exception.class) - @Override - public boolean update(SysRole role, SysRole originalRole, Set menuIdSet) { - MyModelUtil.fillCommonsForUpdate(role, originalRole); - if (sysRoleMapper.updateById(role) != 1) { - return false; - } - SysRoleMenu deletedRoleMenu = new SysRoleMenu(); - deletedRoleMenu.setRoleId(role.getRoleId()); - sysRoleMenuMapper.delete(new QueryWrapper<>(deletedRoleMenu)); - if (menuIdSet != null) { - for (Long menuId : menuIdSet) { - SysRoleMenu roleMenu = new SysRoleMenu(); - roleMenu.setRoleId(role.getRoleId()); - roleMenu.setMenuId(menuId); - sysRoleMenuMapper.insert(roleMenu); - } - } - return true; - } - - /** - * 删除指定角色。 - * - * @param roleId 角色主键Id。 - * @return 删除成功返回true,否则false。 - */ - @Transactional(rollbackFor = Exception.class) - @Override - public boolean remove(Long roleId) { - if (sysRoleMapper.deleteById(roleId) != 1) { - return false; - } - SysRoleMenu roleMenu = new SysRoleMenu(); - roleMenu.setRoleId(roleId); - sysRoleMenuMapper.delete(new QueryWrapper<>(roleMenu)); - SysUserRole userRole = new SysUserRole(); - userRole.setRoleId(roleId); - sysUserRoleMapper.delete(new QueryWrapper<>(userRole)); - return true; - } - - /** - * 获取角色列表。 - * - * @param filter 角色过滤对象。 - * @param orderBy 排序参数。 - * @return 角色列表。 - */ - @Override - public List getSysRoleList(SysRole filter, String orderBy) { - return sysRoleMapper.getSysRoleList(filter, orderBy); - } - - @Override - public List getSysUserRoleListByUserId(Long userId) { - SysUserRole filter = new SysUserRole(); - filter.setUserId(userId); - return sysUserRoleMapper.selectList(new QueryWrapper<>(filter)); - } - - /** - * 批量新增用户角色关联。 - * - * @param userRoleList 用户角色关系数据列表。 - */ - @Transactional(rollbackFor = Exception.class) - @Override - public void addUserRoleList(List userRoleList) { - for (SysUserRole userRole : userRoleList) { - sysUserRoleMapper.insert(userRole); - } - } - - /** - * 移除指定用户和指定角色的关联关系。 - * - * @param roleId 角色主键Id。 - * @param userId 用户主键Id。 - * @return 移除成功返回true,否则false。 - */ - @Transactional(rollbackFor = Exception.class) - @Override - public boolean removeUserRole(Long roleId, Long userId) { - SysUserRole userRole = new SysUserRole(); - userRole.setRoleId(roleId); - userRole.setUserId(userId); - return sysUserRoleMapper.delete(new QueryWrapper<>(userRole)) == 1; - } - - /** - * 验证角色对象关联的数据是否都合法。 - * - * @param sysRole 当前操作的对象。 - * @param originalSysRole 原有对象。 - * @param menuIdListString 逗号分隔的menuId列表。 - * @return 验证结果。 - */ - @Override - public CallResult verifyRelatedData(SysRole sysRole, SysRole originalSysRole, String menuIdListString) { - JSONObject jsonObject = null; - if (StringUtils.isNotBlank(menuIdListString)) { - Set menuIdSet = Arrays.stream( - menuIdListString.split(",")).map(Long::valueOf).collect(Collectors.toSet()); - if (!sysMenuService.existAllPrimaryKeys(menuIdSet)) { - return CallResult.error("数据验证失败,存在不合法的菜单权限,请刷新后重试!"); - } - jsonObject = new JSONObject(); - jsonObject.put("menuIdSet", menuIdSet); - } - return CallResult.ok(jsonObject); - } - - /** - * 查询角色的权限资源地址列表。同时返回详细的分配路径。 - * - * @param roleId 角色Id。 - * @param url url过滤条件。 - * @return 包含从角色到权限资源的完整权限分配路径信息的查询结果列表。 - */ - @Override - public List> getSysPermListWithDetail(Long roleId, String url) { - return sysRoleMapper.getSysPermListWithDetail(roleId, url); - } - - /** - * 查询角色的权限字列表。同时返回详细的分配路径。 - * - * @param roleId 角色Id。 - * @param permCode 权限字名称过滤条件。 - * @return 包含从角色到权限字的权限分配路径信息的查询结果列表。 - */ - @Override - public List> getSysPermCodeListWithDetail(Long roleId, String permCode) { - return sysRoleMapper.getSysPermCodeListWithDetail(roleId, permCode); - } -} diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/service/impl/SysUserServiceImpl.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/service/impl/SysUserServiceImpl.java deleted file mode 100644 index f7eabf16..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/service/impl/SysUserServiceImpl.java +++ /dev/null @@ -1,410 +0,0 @@ -package com.orangeforms.webadmin.upms.service.impl; - -import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; -import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; -import com.alibaba.fastjson.JSONObject; -import com.orangeforms.webadmin.upms.service.*; -import com.orangeforms.webadmin.upms.dao.*; -import com.orangeforms.webadmin.upms.model.*; -import com.orangeforms.webadmin.upms.model.constant.SysUserStatus; -import com.orangeforms.common.core.base.dao.BaseDaoMapper; -import com.orangeforms.common.core.constant.GlobalDeletedFlag; -import com.orangeforms.common.core.object.MyRelationParam; -import com.orangeforms.common.core.object.CallResult; -import com.orangeforms.common.core.base.service.BaseService; -import com.orangeforms.common.core.util.MyModelUtil; -import com.orangeforms.common.sequence.wrapper.IdGeneratorWrapper; -import com.github.pagehelper.Page; -import lombok.extern.slf4j.Slf4j; -import org.apache.commons.collections4.CollectionUtils; -import org.apache.commons.lang3.StringUtils; -import org.springframework.transaction.annotation.Transactional; -import org.springframework.security.crypto.password.PasswordEncoder; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; - -import java.util.*; -import java.util.stream.Collectors; - -/** - * 用户管理数据操作服务类。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Slf4j -@Service("sysUserService") -public class SysUserServiceImpl extends BaseService implements SysUserService { - - @Autowired - private SysUserMapper sysUserMapper; - @Autowired - private SysUserRoleMapper sysUserRoleMapper; - @Autowired - private SysUserPostMapper sysUserPostMapper; - @Autowired - private SysDataPermUserMapper sysDataPermUserMapper; - @Autowired - private SysDeptService sysDeptService; - @Autowired - private SysRoleService sysRoleService; - @Autowired - private SysDataPermService sysDataPermService; - @Autowired - private SysPostService sysPostService; - @Autowired - private IdGeneratorWrapper idGenerator; - @Autowired - private PasswordEncoder passwordEncoder; - - /** - * 返回当前Service的主表Mapper对象。 - * - * @return 主表Mapper对象。 - */ - @Override - protected BaseDaoMapper mapper() { - return sysUserMapper; - } - - /** - * 获取指定登录名的用户对象。 - * - * @param loginName 指定登录用户名。 - * @return 用户对象。 - */ - @Override - public SysUser getSysUserByLoginName(String loginName) { - SysUser filter = new SysUser(); - filter.setLoginName(loginName); - return sysUserMapper.selectOne(new QueryWrapper<>(filter)); - } - - /** - * 保存新增的用户对象。 - * - * @param user 新增的用户对象。 - * @param roleIdSet 用户角色Id集合。 - * @param deptPostIdSet 部门岗位Id集合。 - * @param dataPermIdSet 数据权限Id集合。 - * @return 新增后的用户对象。 - */ - @Transactional(rollbackFor = Exception.class) - @Override - public SysUser saveNew(SysUser user, Set roleIdSet, Set deptPostIdSet, Set dataPermIdSet) { - user.setUserId(idGenerator.nextLongId()); - user.setPassword(passwordEncoder.encode(user.getPassword())); - user.setUserStatus(SysUserStatus.STATUS_NORMAL); - user.setDeletedFlag(GlobalDeletedFlag.NORMAL); - MyModelUtil.fillCommonsForInsert(user); - sysUserMapper.insert(user); - if (CollectionUtils.isNotEmpty(deptPostIdSet)) { - for (Long deptPostId : deptPostIdSet) { - SysDeptPost deptPost = sysDeptService.getSysDeptPost(deptPostId); - SysUserPost userPost = new SysUserPost(); - userPost.setUserId(user.getUserId()); - userPost.setDeptPostId(deptPostId); - userPost.setPostId(deptPost.getPostId()); - sysUserPostMapper.insert(userPost); - } - } - if (CollectionUtils.isNotEmpty(roleIdSet)) { - for (Long roleId : roleIdSet) { - SysUserRole userRole = new SysUserRole(); - userRole.setUserId(user.getUserId()); - userRole.setRoleId(roleId); - sysUserRoleMapper.insert(userRole); - } - } - if (CollectionUtils.isNotEmpty(dataPermIdSet)) { - for (Long dataPermId : dataPermIdSet) { - SysDataPermUser dataPermUser = new SysDataPermUser(); - dataPermUser.setDataPermId(dataPermId); - dataPermUser.setUserId(user.getUserId()); - sysDataPermUserMapper.insert(dataPermUser); - } - } - return user; - } - - /** - * 更新用户对象。 - * - * @param user 更新的用户对象。 - * @param originalUser 原有的用户对象。 - * @param roleIdSet 用户角色Id列表。 - * @param deptPostIdSet 部门岗位Id集合。 - * @param dataPermIdSet 数据权限Id集合。 - * @return 更新成功返回true,否则false。 - */ - @Transactional(rollbackFor = Exception.class) - @Override - public boolean update(SysUser user, SysUser originalUser, Set roleIdSet, Set deptPostIdSet, Set dataPermIdSet) { - user.setLoginName(originalUser.getLoginName()); - user.setPassword(originalUser.getPassword()); - MyModelUtil.fillCommonsForUpdate(user, originalUser); - UpdateWrapper uw = this.createUpdateQueryForNullValue(user, user.getUserId()); - if (sysUserMapper.update(user, uw) != 1) { - return false; - } - // 先删除原有的User-Post关联关系,再重新插入新的关联关系 - SysUserPost deletedUserPost = new SysUserPost(); - deletedUserPost.setUserId(user.getUserId()); - sysUserPostMapper.delete(new QueryWrapper<>(deletedUserPost)); - if (CollectionUtils.isNotEmpty(deptPostIdSet)) { - for (Long deptPostId : deptPostIdSet) { - SysDeptPost deptPost = sysDeptService.getSysDeptPost(deptPostId); - SysUserPost userPost = new SysUserPost(); - userPost.setUserId(user.getUserId()); - userPost.setDeptPostId(deptPostId); - userPost.setPostId(deptPost.getPostId()); - sysUserPostMapper.insert(userPost); - } - } - // 先删除原有的User-Role关联关系,再重新插入新的关联关系 - SysUserRole deletedUserRole = new SysUserRole(); - deletedUserRole.setUserId(user.getUserId()); - sysUserRoleMapper.delete(new QueryWrapper<>(deletedUserRole)); - if (CollectionUtils.isNotEmpty(roleIdSet)) { - for (Long roleId : roleIdSet) { - SysUserRole userRole = new SysUserRole(); - userRole.setUserId(user.getUserId()); - userRole.setRoleId(roleId); - sysUserRoleMapper.insert(userRole); - } - } - // 先删除原有的DataPerm-User关联关系,在重新插入新的关联关系 - SysDataPermUser deletedDataPermUser = new SysDataPermUser(); - deletedDataPermUser.setUserId(user.getUserId()); - sysDataPermUserMapper.delete(new QueryWrapper<>(deletedDataPermUser)); - if (CollectionUtils.isNotEmpty(dataPermIdSet)) { - for (Long dataPermId : dataPermIdSet) { - SysDataPermUser dataPermUser = new SysDataPermUser(); - dataPermUser.setDataPermId(dataPermId); - dataPermUser.setUserId(user.getUserId()); - sysDataPermUserMapper.insert(dataPermUser); - } - } - return true; - } - - /** - * 修改用户密码。 - * @param userId 用户主键Id。 - * @param newPass 新密码。 - * @return 成功返回true,否则false。 - */ - @Transactional(rollbackFor = Exception.class) - @Override - public boolean changePassword(Long userId, String newPass) { - SysUser updatedUser = new SysUser(); - updatedUser.setUserId(userId); - updatedUser.setPassword(passwordEncoder.encode(newPass)); - return sysUserMapper.updateById(updatedUser) == 1; - } - - /** - * 删除指定数据。 - * - * @param userId 主键Id。 - * @return 成功返回true,否则false。 - */ - @Transactional(rollbackFor = Exception.class) - @Override - public boolean remove(Long userId) { - if (sysUserMapper.deleteById(userId) == 0) { - return false; - } - SysUserRole userRole = new SysUserRole(); - userRole.setUserId(userId); - sysUserRoleMapper.delete(new QueryWrapper<>(userRole)); - SysDataPermUser dataPermUser = new SysDataPermUser(); - dataPermUser.setUserId(userId); - sysDataPermUserMapper.delete(new QueryWrapper<>(dataPermUser)); - return true; - } - - /** - * 获取单表查询结果。由于没有关联数据查询,因此在仅仅获取单表数据的场景下,效率更高。 - * 如果需要同时获取关联数据,请移步(getSysUserListWithRelation)方法。 - * - * @param filter 过滤对象。 - * @param orderBy 排序参数。 - * @return 查询结果集。 - */ - @Override - public List getSysUserList(SysUser filter, String orderBy) { - return sysUserMapper.getSysUserList(filter, orderBy); - } - - /** - * 获取主表的查询结果,以及主表关联的字典数据和一对一从表数据,以及一对一从表的字典数据。 - * 该查询会涉及到一对一从表的关联过滤,或一对多从表的嵌套关联过滤,因此性能不如单表过滤。 - * 如果仅仅需要获取主表数据,请移步(getSysUserList),以便获取更好的查询性能。 - * - * @param filter 主表过滤对象。 - * @param orderBy 排序参数。 - * @return 查询结果集。 - */ - @Override - public List getSysUserListWithRelation(SysUser filter, String orderBy) { - List resultList = sysUserMapper.getSysUserList(filter, orderBy); - // 在缺省生成的代码中,如果查询结果resultList不是Page对象,说明没有分页,那么就很可能是数据导出接口调用了当前方法。 - // 为了避免一次性的大量数据关联,规避因此而造成的系统运行性能冲击,这里手动进行了分批次读取,开发者可按需修改该值。 - int batchSize = resultList instanceof Page ? 0 : 1000; - this.buildRelationForDataList(resultList, MyRelationParam.normal(), batchSize); - return resultList; - } - - /** - * 获取指定角色的用户列表。 - * - * @param roleId 角色主键Id。 - * @param filter 用户过滤对象。 - * @param orderBy 排序参数。 - * @return 用户列表。 - */ - @Override - public List getSysUserListByRoleId(Long roleId, SysUser filter, String orderBy) { - return sysUserMapper.getSysUserListByRoleId(roleId, filter, orderBy); - } - - /** - * 获取不属于指定角色的用户列表。 - * - * @param roleId 角色主键Id。 - * @param filter 用户过滤对象。 - * @param orderBy 排序参数。 - * @return 用户列表。 - */ - @Override - public List getNotInSysUserListByRoleId(Long roleId, SysUser filter, String orderBy) { - return sysUserMapper.getNotInSysUserListByRoleId(roleId, filter, orderBy); - } - - /** - * 获取指定数据权限的用户列表。 - * - * @param dataPermId 数据权限主键Id。 - * @param filter 用户过滤对象。 - * @param orderBy 排序参数。 - * @return 用户列表。 - */ - @Override - public List getSysUserListByDataPermId(Long dataPermId, SysUser filter, String orderBy) { - return sysUserMapper.getSysUserListByDataPermId(dataPermId, filter, orderBy); - } - - /** - * 获取不属于指定数据权限的用户列表。 - * - * @param dataPermId 数据权限主键Id。 - * @param filter 用户过滤对象。 - * @param orderBy 排序参数。 - * @return 用户列表。 - */ - @Override - public List getNotInSysUserListByDataPermId(Long dataPermId, SysUser filter, String orderBy) { - return sysUserMapper.getNotInSysUserListByDataPermId(dataPermId, filter, orderBy); - } - - @Override - public List getSysUserListByDeptPostId(Long deptPostId, SysUser filter, String orderBy) { - return sysUserMapper.getSysUserListByDeptPostId(deptPostId, filter, orderBy); - } - - @Override - public List getNotInSysUserListByDeptPostId(Long deptPostId, SysUser filter, String orderBy) { - return sysUserMapper.getNotInSysUserListByDeptPostId(deptPostId, filter, orderBy); - } - - @Override - public List getSysUserListByPostId(Long postId, SysUser filter, String orderBy) { - return sysUserMapper.getSysUserListByPostId(postId, filter, orderBy); - } - - /** - * 查询用户的权限资源地址列表。同时返回详细的分配路径。 - * - * @param userId 用户Id。 - * @param url url过滤条件。 - * @return 包含从用户到权限资源的完整权限分配路径信息的查询结果列表。 - */ - @Override - public List> getSysPermListWithDetail(Long userId, String url) { - return sysUserMapper.getSysPermListWithDetail(userId, url); - } - - /** - * 查询用户的权限字列表。同时返回详细的分配路径。 - * - * @param userId 用户Id。 - * @param permCode 权限字名称过滤条件。 - * @return 包含从用户到权限字的权限分配路径信息的查询结果列表。 - */ - @Override - public List> getSysPermCodeListWithDetail(Long userId, String permCode) { - return sysUserMapper.getSysPermCodeListWithDetail(userId, permCode); - } - - /** - * 查询用户的菜单列表。同时返回详细的分配路径。 - * - * @param userId 用户Id。 - * @param menuName 菜单名称过滤条件。 - * @return 包含从用户到菜单的权限分配路径信息的查询结果列表。 - */ - @Override - public List> getSysMenuListWithDetail(Long userId, String menuName) { - return sysUserMapper.getSysMenuListWithDetail(userId, menuName); - } - - /** - * 验证用户对象关联的数据是否都合法。 - * - * @param sysUser 当前操作的对象。 - * @param originalSysUser 原有对象。 - * @param roleIds 逗号分隔的角色Id列表字符串。 - * @param deptPostIds 逗号分隔的部门岗位Id列表字符串。 - * @param dataPermIds 逗号分隔的数据权限Id列表字符串。 - * @return 验证结果。 - */ - @Override - public CallResult verifyRelatedData( - SysUser sysUser, SysUser originalSysUser, String roleIds, String deptPostIds, String dataPermIds) { - JSONObject jsonObject = new JSONObject(); - if (StringUtils.isBlank(deptPostIds)) { - return CallResult.error("数据验证失败,用户的部门岗位数据不能为空!"); - } - Set deptPostIdSet = - Arrays.stream(deptPostIds.split(",")).map(Long::valueOf).collect(Collectors.toSet()); - if (!sysPostService.existAllPrimaryKeys(deptPostIdSet, sysUser.getDeptId())) { - return CallResult.error("数据验证失败,存在不合法的用户岗位,请刷新后重试!"); - } - jsonObject.put("deptPostIdSet", deptPostIdSet); - if (StringUtils.isBlank(roleIds)) { - return CallResult.error("数据验证失败,用户的角色数据不能为空!"); - } - Set roleIdSet = Arrays.stream( - roleIds.split(",")).map(Long::valueOf).collect(Collectors.toSet()); - if (!sysRoleService.existAllPrimaryKeys(roleIdSet)) { - return CallResult.error("数据验证失败,存在不合法的用户角色,请刷新后重试!"); - } - jsonObject.put("roleIdSet", roleIdSet); - if (StringUtils.isBlank(dataPermIds)) { - return CallResult.error("数据验证失败,用户的数据权限不能为空!"); - } - Set dataPermIdSet = Arrays.stream( - dataPermIds.split(",")).map(Long::valueOf).collect(Collectors.toSet()); - if (!sysDataPermService.existAllPrimaryKeys(dataPermIdSet)) { - return CallResult.error("数据验证失败,存在不合法的数据权限,请刷新后重试!"); - } - jsonObject.put("dataPermIdSet", dataPermIdSet); - //这里是基于字典的验证。 - if (this.needToVerify(sysUser, originalSysUser, SysUser::getDeptId) - && !sysDeptService.existId(sysUser.getDeptId())) { - return CallResult.error("数据验证失败,关联的用户部门Id并不存在,请刷新后重试!"); - } - return CallResult.ok(jsonObject); - } -} diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/vo/SysDataPermDeptVo.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/vo/SysDataPermDeptVo.java deleted file mode 100644 index b789ce21..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/vo/SysDataPermDeptVo.java +++ /dev/null @@ -1,28 +0,0 @@ -package com.orangeforms.webadmin.upms.vo; - -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.Data; - -/** - * 数据权限与部门关联VO。 - * - * @author Jerry - * @date 2021-06-06 - */ -@ApiModel("数据权限与部门关联VO") -@Data -public class SysDataPermDeptVo { - - /** - * 数据权限Id。 - */ - @ApiModelProperty(value = "数据权限Id") - private Long dataPermId; - - /** - * 关联部门Id。 - */ - @ApiModelProperty(value = "关联部门Id") - private Long deptId; -} \ No newline at end of file diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/vo/SysDataPermVo.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/vo/SysDataPermVo.java deleted file mode 100644 index 20c05f90..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/vo/SysDataPermVo.java +++ /dev/null @@ -1,72 +0,0 @@ -package com.orangeforms.webadmin.upms.vo; - -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.Data; - -import java.util.*; - -/** - * 数据权限VO。 - * - * @author Jerry - * @date 2021-06-06 - */ -@ApiModel("数据权限VO") -@Data -public class SysDataPermVo { - - /** - * 数据权限Id。 - */ - @ApiModelProperty(value = "数据权限Id") - private Long dataPermId; - - /** - * 显示名称。 - */ - @ApiModelProperty(value = "显示名称") - private String dataPermName; - - /** - * 数据权限规则类型(0: 全部可见 1: 只看自己 2: 只看本部门 3: 本部门及子部门 4: 多部门及子部门 5: 自定义部门列表)。 - */ - @ApiModelProperty(value = "数据权限规则类型") - private Integer ruleType; - - /** - * 部门Id列表(逗号分隔)。 - */ - @ApiModelProperty(value = "部门Id列表") - private String deptIdListString; - - /** - * 创建者Id。 - */ - @ApiModelProperty(value = "创建者Id") - private Long createUserId; - - /** - * 创建时间。 - */ - @ApiModelProperty(value = "创建时间") - private Date createTime; - - /** - * 更新者Id。 - */ - @ApiModelProperty(value = "更新者Id") - private Long updateUserId; - - /** - * 更新时间。 - */ - @ApiModelProperty(value = "更新时间") - private Date updateTime; - - /** - * 数据权限与部门关联对象列表。 - */ - @ApiModelProperty(value = "数据权限与部门关联对象列表") - private List> dataPermDeptList; -} \ No newline at end of file diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/vo/SysDeptPostVo.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/vo/SysDeptPostVo.java deleted file mode 100644 index 208949fe..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/vo/SysDeptPostVo.java +++ /dev/null @@ -1,40 +0,0 @@ -package com.orangeforms.webadmin.upms.vo; - -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.Data; - -/** - * 部门岗位VO对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@ApiModel("部门岗位VO") -@Data -public class SysDeptPostVo { - - /** - * 部门岗位Id。 - */ - @ApiModelProperty(value = "部门岗位Id") - private Long deptPostId; - - /** - * 部门Id。 - */ - @ApiModelProperty(value = "部门Id") - private Long deptId; - - /** - * 岗位Id。 - */ - @ApiModelProperty(value = "岗位Id") - private Long postId; - - /** - * 部门岗位显示名称。 - */ - @ApiModelProperty(value = "部门岗位显示名称") - private String postShowName; -} diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/vo/SysDeptVo.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/vo/SysDeptVo.java deleted file mode 100644 index 34a2b9cf..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/vo/SysDeptVo.java +++ /dev/null @@ -1,66 +0,0 @@ -package com.orangeforms.webadmin.upms.vo; - -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.Data; - -import java.util.Date; - -/** - * SysDeptVO视图对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@ApiModel("SysDeptVO视图对象") -@Data -public class SysDeptVo { - - /** - * 部门Id。 - */ - @ApiModelProperty(value = "部门Id") - private Long deptId; - - /** - * 部门名称。 - */ - @ApiModelProperty(value = "部门名称") - private String deptName; - - /** - * 显示顺序。 - */ - @ApiModelProperty(value = "显示顺序") - private Integer showOrder; - - /** - * 父部门Id。 - */ - @ApiModelProperty(value = "父部门Id") - private Long parentId; - - /** - * 创建者Id。 - */ - @ApiModelProperty(value = "创建者Id") - private Long createUserId; - - /** - * 更新者Id。 - */ - @ApiModelProperty(value = "更新者Id") - private Long updateUserId; - - /** - * 创建时间。 - */ - @ApiModelProperty(value = "创建时间") - private Date createTime; - - /** - * 更新时间。 - */ - @ApiModelProperty(value = "更新时间") - private Date updateTime; -} diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/vo/SysMenuVo.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/vo/SysMenuVo.java deleted file mode 100644 index 3919fc22..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/vo/SysMenuVo.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.orangeforms.webadmin.upms.vo; - -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.Data; - -import java.util.*; - -/** - * 菜单VO。 - * - * @author Jerry - * @date 2021-06-06 - */ -@ApiModel("菜单VO") -@Data -public class SysMenuVo { - - /** - * 菜单Id。 - */ - @ApiModelProperty(value = "菜单Id") - private Long menuId; - - /** - * 父菜单Id,目录菜单的父菜单为null - */ - @ApiModelProperty(value = "父菜单Id") - private Long parentId; - - /** - * 菜单显示名称。 - */ - @ApiModelProperty(value = "菜单显示名称") - private String menuName; - - /** - * 菜单类型 (0: 目录 1: 菜单 2: 按钮 3: UI片段)。 - */ - @ApiModelProperty(value = "菜单类型") - private Integer menuType; - - /** - * 前端表单路由名称,仅用于menu_type为1的菜单类型。 - */ - @ApiModelProperty(value = "前端表单路由名称") - private String formRouterName; - - /** - * 在线表单主键Id,仅用于在线表单绑定的菜单。 - */ - @ApiModelProperty(value = "在线表单主键Id") - private Long onlineFormId; - - /** - * 在线表单菜单的权限控制类型,具体值可参考SysOnlineMenuPermType常量对象。 - */ - @ApiModelProperty(value = "在线表单菜单的权限控制类型") - private Integer onlineMenuPermType; - - /** - * 仅用于在线表单的流程Id。 - */ - @ApiModelProperty(value = "仅用于在线表单的流程Id") - private Long onlineFlowEntryId; - - /** - * 菜单显示顺序 (值越小,排序越靠前)。 - */ - @ApiModelProperty(value = "菜单显示顺序") - private Integer showOrder; - - /** - * 菜单图标。 - */ - @ApiModelProperty(value = "菜单显示顺序") - private String icon; - - /** - * 创建者Id。 - */ - @ApiModelProperty(value = "创建者Id") - private Long createUserId; - - /** - * 创建时间。 - */ - @ApiModelProperty(value = "创建时间") - private Date createTime; - - /** - * 更新者Id。 - */ - @ApiModelProperty(value = "更新者Id") - private Long updateUserId; - - /** - * 更新时间。 - */ - @ApiModelProperty(value = "更新时间") - private Date updateTime; - - /** - * 菜单与权限字关联对象列表。 - */ - @ApiModelProperty(value = "菜单与权限字关联对象列表") - private List> sysMenuPermCodeList; -} diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/vo/SysPermCodeVo.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/vo/SysPermCodeVo.java deleted file mode 100644 index bde57320..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/vo/SysPermCodeVo.java +++ /dev/null @@ -1,84 +0,0 @@ -package com.orangeforms.webadmin.upms.vo; - -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.Data; - -import java.util.*; - -/** - * 权限字VO。 - * - * @author Jerry - * @date 2021-06-06 - */ -@ApiModel("权限字VO") -@Data -public class SysPermCodeVo { - - /** - * 权限字Id。 - */ - @ApiModelProperty(value = "权限字Id") - private Long permCodeId; - - /** - * 权限字标识(一般为有含义的英文字符串)。 - */ - @ApiModelProperty(value = "权限字标识") - private String permCode; - - /** - * 上级权限字Id。 - */ - @ApiModelProperty(value = "上级权限字Id") - private Long parentId; - - /** - * 权限字类型(0: 表单 1: UI片段 2: 操作)。 - */ - @ApiModelProperty(value = "权限字类型") - private Integer permCodeType; - - /** - * 显示名称。 - */ - @ApiModelProperty(value = "显示名称") - private String showName; - - /** - * 显示顺序(数值越小,越靠前)。 - */ - @ApiModelProperty(value = "显示顺序") - private Integer showOrder; - - /** - * 创建者Id。 - */ - @ApiModelProperty(value = "创建者Id") - private Long createUserId; - - /** - * 创建时间。 - */ - @ApiModelProperty(value = "创建时间") - private Date createTime; - - /** - * 更新者Id。 - */ - @ApiModelProperty(value = "更新者Id") - private Long updateUserId; - - /** - * 更新时间。 - */ - @ApiModelProperty(value = "更新时间") - private Date updateTime; - - /** - * 权限字与权限资源关联对象列表。 - */ - @ApiModelProperty(value = "权限字与权限资源关联对象列表") - private List> sysPermCodePermList; -} \ No newline at end of file diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/vo/SysPermModuleVo.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/vo/SysPermModuleVo.java deleted file mode 100644 index 8176124e..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/vo/SysPermModuleVo.java +++ /dev/null @@ -1,78 +0,0 @@ -package com.orangeforms.webadmin.upms.vo; - -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.Data; - -import java.util.*; - -/** - * 权限资源模块VO。 - * - * @author Jerry - * @date 2021-06-06 - */ -@ApiModel("权限资源模块VO") -@Data -public class SysPermModuleVo { - - /** - * 权限模块Id。 - */ - @ApiModelProperty(value = "权限模块Id") - private Long moduleId; - - /** - * 权限模块名称。 - */ - @ApiModelProperty(value = "权限模块名称") - private String moduleName; - - /** - * 上级权限模块Id。 - */ - @ApiModelProperty(value = "上级权限模块Id") - private Long parentId; - - /** - * 权限模块类型(0: 普通模块 1: Controller模块)。 - */ - @ApiModelProperty(value = "权限模块类型") - private Integer moduleType; - - /** - * 权限模块在当前层级下的顺序,由小到大。 - */ - @ApiModelProperty(value = "显示顺序") - private Integer showOrder; - - /** - * 创建者Id。 - */ - @ApiModelProperty(value = "创建者Id") - private Long createUserId; - - /** - * 创建时间。 - */ - @ApiModelProperty(value = "创建时间") - private Date createTime; - - /** - * 更新者Id。 - */ - @ApiModelProperty(value = "更新者Id") - private Long updateUserId; - - /** - * 更新时间。 - */ - @ApiModelProperty(value = "更新时间") - private Date updateTime; - - /** - * 权限资源对象列表。 - */ - @ApiModelProperty(value = "权限资源对象列表") - private List sysPermList; -} \ No newline at end of file diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/vo/SysPermVo.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/vo/SysPermVo.java deleted file mode 100644 index 04deb5df..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/vo/SysPermVo.java +++ /dev/null @@ -1,84 +0,0 @@ -package com.orangeforms.webadmin.upms.vo; - -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.Data; - -import java.util.*; - -/** - * 权限资源VO。 - * - * @author Jerry - * @date 2021-06-06 - */ -@ApiModel("权限资源VO") -@Data -public class SysPermVo { - - /** - * 权限资源Id。 - */ - @ApiModelProperty(value = "权限资源Id") - private Long permId; - - /** - * 权限资源名称。 - */ - @ApiModelProperty(value = "权限资源名称") - private String permName; - - /** - * shiro格式的权限字,如(upms:sysUser:add)。 - */ - @ApiModelProperty(value = "权限字") - private String permCode; - - /** - * 权限所在的权限模块Id。 - */ - @ApiModelProperty(value = "权限所在的权限模块Id") - private Long moduleId; - - /** - * 关联的URL。 - */ - @ApiModelProperty(value = "关联的URL") - private String url; - - /** - * 权限在当前模块下的顺序,由小到大。 - */ - @ApiModelProperty(value = "显示顺序") - private Integer showOrder; - - /** - * 创建者Id。 - */ - @ApiModelProperty(value = "创建者Id") - private Long createUserId; - - /** - * 创建时间。 - */ - @ApiModelProperty(value = "创建时间") - private Date createTime; - - /** - * 更新者Id。 - */ - @ApiModelProperty(value = "更新者Id") - private Long updateUserId; - - /** - * 更新时间。 - */ - @ApiModelProperty(value = "更新时间") - private Date updateTime; - - /** - * 模块Id的字典关联数据。 - */ - @ApiModelProperty(value = "模块Id的字典关联数据") - private Map moduleIdDictMap; -} \ No newline at end of file diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/vo/SysPostVo.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/vo/SysPostVo.java deleted file mode 100644 index 32e36d75..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/vo/SysPostVo.java +++ /dev/null @@ -1,73 +0,0 @@ -package com.orangeforms.webadmin.upms.vo; - -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.Data; - -import java.util.Date; -import java.util.Map; - -/** - * 岗位VO对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@ApiModel("岗位VO") -@Data -public class SysPostVo { - - /** - * 岗位Id。 - */ - @ApiModelProperty(value = "岗位Id") - private Long postId; - - /** - * 岗位名称。 - */ - @ApiModelProperty(value = "岗位名称") - private String postName; - - /** - * 岗位层级,数值越小级别越高。 - */ - @ApiModelProperty(value = "岗位层级,数值越小级别越高") - private Integer level; - - /** - * 是否领导岗位。 - */ - @ApiModelProperty(value = "是否领导岗位") - private Boolean leaderPost; - - /** - * 创建者Id。 - */ - @ApiModelProperty(value = "创建者Id") - private Long createUserId; - - /** - * 创建时间。 - */ - @ApiModelProperty(value = "创建时间") - private Date createTime; - - /** - * 更新者Id。 - */ - @ApiModelProperty(value = "更新者Id") - private Long updateUserId; - - /** - * 更新时间。 - */ - @ApiModelProperty(value = "更新时间") - private Date updateTime; - - /** - * postId 的多对多关联表数据对象,数据对应类型为SysDeptPostVo。 - */ - @ApiModelProperty(value = "postId 的多对多关联表数据对象") - private Map sysDeptPost; -} diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/vo/SysRoleVo.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/vo/SysRoleVo.java deleted file mode 100644 index 634f4702..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/vo/SysRoleVo.java +++ /dev/null @@ -1,60 +0,0 @@ -package com.orangeforms.webadmin.upms.vo; - -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.Data; - -import java.util.*; - -/** - * 角色VO。 - * - * @author Jerry - * @date 2021-06-06 - */ -@ApiModel("角色VO") -@Data -public class SysRoleVo { - - /** - * 角色Id。 - */ - @ApiModelProperty(value = "角色Id") - private Long roleId; - - /** - * 角色名称。 - */ - @ApiModelProperty(value = "角色名称") - private String roleName; - - /** - * 创建者Id。 - */ - @ApiModelProperty(value = "创建者Id") - private Long createUserId; - - /** - * 创建时间。 - */ - @ApiModelProperty(value = "创建时间") - private Date createTime; - - /** - * 更新者Id。 - */ - @ApiModelProperty(value = "更新者Id") - private Long updateUserId; - - /** - * 更新时间。 - */ - @ApiModelProperty(value = "更新时间") - private Date updateTime; - - /** - * 角色与菜单关联对象列表。 - */ - @ApiModelProperty(value = "角色与菜单关联对象列表") - private List> sysRoleMenuList; -} diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/vo/SysUserVo.java b/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/vo/SysUserVo.java deleted file mode 100644 index 085efdad..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/java/com/orangeforms/webadmin/upms/vo/SysUserVo.java +++ /dev/null @@ -1,122 +0,0 @@ -package com.orangeforms.webadmin.upms.vo; - -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.Data; - -import java.util.Date; -import java.util.Map; -import java.util.List; - -/** - * SysUserVO视图对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@ApiModel("SysUserVO视图对象") -@Data -public class SysUserVo { - - /** - * 用户Id。 - */ - @ApiModelProperty(value = "用户Id") - private Long userId; - - /** - * 登录用户名。 - */ - @ApiModelProperty(value = "登录用户名") - private String loginName; - - /** - * 用户显示名称。 - */ - @ApiModelProperty(value = "用户显示名称") - private String showName; - - /** - * 用户部门Id。 - */ - @ApiModelProperty(value = "用户部门Id") - private Long deptId; - - /** - * 用户类型(0: 管理员 1: 系统管理用户 2: 系统业务用户)。 - */ - @ApiModelProperty(value = "用户类型(0: 管理员 1: 系统管理用户 2: 系统业务用户)") - private Integer userType; - - /** - * 用户头像的Url。 - */ - @ApiModelProperty(value = "用户头像的Url") - private String headImageUrl; - - /** - * 用户状态(0: 正常 1: 锁定)。 - */ - @ApiModelProperty(value = "用户状态(0: 正常 1: 锁定)") - private Integer userStatus; - - /** - * 创建者Id。 - */ - @ApiModelProperty(value = "创建者Id") - private Long createUserId; - - /** - * 更新者Id。 - */ - @ApiModelProperty(value = "更新者Id") - private Long updateUserId; - - /** - * 创建时间。 - */ - @ApiModelProperty(value = "创建时间") - private Date createTime; - - /** - * 更新时间。 - */ - @ApiModelProperty(value = "更新时间") - private Date updateTime; - - /** - * 多对多用户岗位数据集合。 - */ - @ApiModelProperty(value = "多对多用户岗位数据集合") - private List> sysUserPostList; - - /** - * 多对多用户角色数据集合。 - */ - @ApiModelProperty(value = "多对多用户角色数据集合") - private List> sysUserRoleList; - - /** - * 多对多用户数据权限数据集合。 - */ - @ApiModelProperty(value = "多对多用户数据权限数据集合") - private List> sysDataPermUserList; - - /** - * deptId 字典关联数据。 - */ - @ApiModelProperty(value = "deptId 字典关联数据") - private Map deptIdDictMap; - - /** - * userType 常量字典关联数据。 - */ - @ApiModelProperty(value = "userType 常量字典关联数据") - private Map userTypeDictMap; - - /** - * userStatus 常量字典关联数据。 - */ - @ApiModelProperty(value = "userStatus 常量字典关联数据") - private Map userStatusDictMap; -} diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/resources/application.yml b/images/orange-demo-activiti-service/application-webadmin/src/main/resources/application.yml deleted file mode 100644 index 22d2283f..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/resources/application.yml +++ /dev/null @@ -1,291 +0,0 @@ -logging: - level: - # 这里设置的日志级别优先于log4j2.xml文件Loggers中的日志级别。 - com.orangeforms: info - -server: - port: 8082 - tomcat: - uri-encoding: UTF-8 - threads: - max: 100 - min-spare: 10 - servlet: - encoding: - force: true - charset: UTF-8 - enabled: true - -# spring相关配置 -spring: - application: - name: application-webadmin - profiles: - active: dev - servlet: - multipart: - max-file-size: 50MB - max-request-size: 50MB - mvc: - converters: - preferred-json-mapper: fastjson - freemarker: - template-loader-path: classpath:/template/ - cache: false - charset: UTF-8 - check-template-location: true - content-type: text/html - expose-request-attributes: false - expose-session-attributes: false - request-context-attribute: request - suffix: .ftl - activiti: - check-process-definitions: false - database-schema-update: false - history-level: full - db-history-used: true - -mybatis-plus: - mapper-locations: classpath:com/orangeforms/webadmin/*/dao/mapper/*Mapper.xml,com/orangeforms/common/log/dao/mapper/*Mapper.xml,com/orangeforms/common/online/dao/mapper/*Mapper.xml,com/orangeforms/common/flow/dao/mapper/*Mapper.xml - type-aliases-package: com.orangeforms.webadmin.*.model,com.orangeforms.common.log.model,com.orangeforms.common.online.model,com.orangeforms.common.flow.model - global-config: - db-config: - logic-delete-value: -1 - logic-not-delete-value: 1 - -# 自动分页的配置 -pagehelper: - helperDialect: mysql - reasonable: true - supportMethodsArguments: false - params: count=countSql - -# 存储session数据的Redis,所有服务均需要,因此放到公共配置中。 -# 根据实际情况,该Redis也可以用于存储其他数据。 -redis: - # redisson的配置。每个服务可以自己的配置文件中覆盖此选项。 - redisson: - # 如果该值为false,系统将不会创建RedissionClient的bean。 - enabled: true - # mode的可用值为,single/cluster/sentinel/master-slave - mode: single - # single: 单机模式 - # address: redis://localhost:6379 - # cluster: 集群模式 - # 每个节点逗号分隔,同时每个节点前必须以redis://开头。 - # address: redis://localhost:6379,redis://localhost:6378,... - # sentinel: - # 每个节点逗号分隔,同时每个节点前必须以redis://开头。 - # address: redis://localhost:6379,redis://localhost:6378,... - # master-slave: - # 每个节点逗号分隔,第一个为主节点,其余为从节点。同时每个节点前必须以redis://开头。 - # address: redis://localhost:6379,redis://localhost:6378,... - address: redis://localhost:6379 - # 链接超时,单位毫秒。 - timeout: 6000 - # 单位毫秒。分布式锁的超时检测时长。 - # 如果一次锁内操作超该毫秒数,或在释放锁之前异常退出,Redis会在该时长之后主动删除该锁使用的key。 - lockWatchdogTimeout: 60000 - # redis 密码,空可以不填。 - password: - pool: - # 连接池数量。 - poolSize: 20 - # 连接池中最小空闲数量。 - minIdle: 5 - -common-online: - # 注意不要以反斜杠(/)结尾。 - operationUrlPrefix: /admin/online - # 在线表单业务数据上传资源路径 - uploadFileBaseDir: ./zz-resource/upload-files/online - # 如果为false,OnlineOperationController中的接口将不能使用。 - operationEnabled: true - -common-online-api: - # 注意不要以反斜杠(/)结尾。 - urlPrefix: /admin/online - # 下面的url列表,请保持反斜杠(/)结尾。 - viewUrlList: - - ${common-online.operationUrlPrefix}/onlineOperation/viewByDatasourceId/ - - ${common-online.operationUrlPrefix}/onlineOperation/viewByOneToManyRelationId/ - - ${common-online.operationUrlPrefix}/onlineOperation/listByDatasourceId/ - - ${common-online.operationUrlPrefix}/onlineOperation/listByOneToManyRelationId/ - - ${common-online.operationUrlPrefix}/onlineOperation/downloadDatasource/ - - ${common-online.operationUrlPrefix}/onlineOperation/downloadOneToManyRelation/ - editUrlList: - - ${common-online.operationUrlPrefix}/onlineOperation/addDatasource/ - - ${common-online.operationUrlPrefix}/onlineOperation/addOneToManyRelation/ - - ${common-online.operationUrlPrefix}/onlineOperation/updateDatasource/ - - ${common-online.operationUrlPrefix}/onlineOperation/updateOneToManyRelation/ - - ${common-online.operationUrlPrefix}/onlineOperation/deleteDatasource/ - - ${common-online.operationUrlPrefix}/onlineOperation/deleteOneToManyRelation/ - - ${common-online.operationUrlPrefix}/onlineOperation/uploadDatasource/ - - ${common-online.operationUrlPrefix}/onlineOperation/uploadOneToManyRelation/ - -common-flow: - # 请慎重修改urlPrefix的缺省配置,注意不要以反斜杠(/)结尾。如必须修改其他路径,请同步修改数据库脚本。 - urlPrefix: /admin/flow - -swagger: - # 当enabled为false的时候,则可禁用swagger。 - enabled: true - # 工程的基础包名。 - basePackage: com.orangeforms - # 工程服务的基础包名。 - serviceBasePackage: com.orangeforms.webadmin - title: 橙单单体服务工程 - description: 橙单单体服务工程详情 - version: 1.0 - -datafilter: - tenant: - # 对于单体服务,该值始终为false。 - enabled: false - dataperm: - enabled: true - # 在拼接数据权限过滤的SQL时,我们会用到sys_dept_relation表,该表的前缀由此配置项指定。 - # 如果没有前缀,请使用 "" 。 - deptRelationTablePrefix: zz_ - -# 暴露监控端点 -management: - endpoints: - web: - exposure: - include: '*' - jmx: - exposure: - include: '*' - endpoint: - # 与中间件相关的健康详情也会被展示 - health: - show-details: always - configprops: - # 在/actuator/configprops中,所有包含password的配置,将用 * 隐藏。 - # 如果不想隐藏任何配置项的值,可以直接使用如下被注释的空值。 - # keys-to-sanitize: - keys-to-sanitize: password - server: - servlet: - context-path: "/" - -# 开发数据库相关配置 ---- -spring: - profiles: dev - datasource: - type: com.alibaba.druid.pool.DruidDataSource - druid: - main: - url: jdbc:mysql://localhost:3306/zzdemo-online?characterEncoding=utf8&useSSL=true&serverTimezone=Asia/Shanghai - username: root - password: 123456 - driver-class-name: com.mysql.cj.jdbc.Driver - name: application-webadmin - initialSize: 10 - minIdle: 10 - maxActive: 50 - maxWait: 60000 - timeBetweenEvictionRunsMillis: 60000 - minEvictableIdleTimeMillis: 300000 - poolPreparedStatements: true - maxPoolPreparedStatementPerConnectionSize: 20 - maxOpenPreparedStatements: 20 - validationQuery: SELECT 'x' - testWhileIdle: true - testOnBorrow: false - testOnReturn: false - connectionProperties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000 - filters: stat,wall - useGlobalDataSourceStat: true - web-stat-filter: - enabled: true - url-pattern: /* - exclusions: "*.js,*.gif,*.jpg,*.bmp,*.png,*.css,*.ico,/druid/*,/actuator/*" - stat-view-servlet: - enabled: true - urlPattern: /druid/* - resetEnable: true - -application: - # Jwt令牌加密的签名值。该值的长度要超过10个字符(过短会报错)。 - tokenSigningKey: DemoFlow-signing-key - # Jwt令牌在Http Header中的键名称。 - tokenHeaderKey: Authorization - # Jwt令牌刷新后在Http Header中的键名称。 - refreshedTokenHeaderKey: RefreshedToken - # Jwt令牌过期时间(毫秒)。 - expiration: 72000000 - # 初始化密码。 - defaultUserPassword: 123456 - # 缺省的文件上传根目录。 - uploadFileBaseDir: ./zz-resource/upload-files/app - # 跨域的IP(http://192.168.10.10:8086)白名单列表,多个IP之间逗号分隔(* 表示全部信任,空白表示禁用跨域信任)。 - credentialIpList: "*" - # Session的用户和数据权限在Redis中的过期时间(秒)。 - sessionExpiredSeconds: 86400 - -sequence: - # Snowflake 分布式Id生成算法所需的WorkNode参数值。 - snowflakeWorkNode: 1 - -# 发布数据库相关配置 ---- -spring: - profiles: product - datasource: - type: com.alibaba.druid.pool.DruidDataSource - druid: - main: - url: jdbc:mysql://localhost:3306/zzdemo-online?characterEncoding=utf8&useSSL=true&serverTimezone=Asia/Shanghai - username: root - password: 123456 - driver-class-name: com.mysql.cj.jdbc.Driver - name: application-webadmin - initialSize: 10 - minIdle: 10 - maxActive: 50 - maxWait: 60000 - timeBetweenEvictionRunsMillis: 60000 - minEvictableIdleTimeMillis: 300000 - poolPreparedStatements: true - maxPoolPreparedStatementPerConnectionSize: 20 - maxOpenPreparedStatements: 20 - validationQuery: SELECT 'x' - testWhileIdle: true - testOnBorrow: false - testOnReturn: false - connectionProperties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000 - filters: stat,wall - useGlobalDataSourceStat: true - web-stat-filter: - enabled: true - url-pattern: /* - exclusions: "*.js,*.gif,*.jpg,*.bmp,*.png,*.css,*.ico,/druid/*,/actuator/*" - stat-view-servlet: - enabled: true - urlPattern: /druid/* - resetEnable: true - -application: - # Jwt令牌加密的签名值。该值的长度要超过10个字符(过短会报错)。 - tokenSigningKey: DemoFlow-signing-key - # Jwt令牌在Http Header中的键名称。 - tokenHeaderKey: Authorization - # Jwt令牌刷新后在Http Header中的键名称。 - refreshedTokenHeaderKey: RefreshedToken - # Jwt令牌过期时间(毫秒)。 - expiration: 72000000 - # 初始化密码。 - defaultUserPassword: 123456 - # 缺省的文件上传根目录。 - uploadFileBaseDir: ./zz-resource/upload-files/app - # 跨域的IP(http://192.168.10.10:8086)白名单列表,多个IP之间逗号分隔(* 表示全部信任,空白表示禁用跨域信任)。 - credentialIpList: "*" - # Session的用户和数据权限在Redis中的过期时间(秒)。 - sessionExpiredSeconds: 86400 - -sequence: - # Snowflake 分布式Id生成算法所需的WorkNode参数值。 - snowflakeWorkNode: 1 \ No newline at end of file diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/resources/log4j2.xml b/images/orange-demo-activiti-service/application-webadmin/src/main/resources/log4j2.xml deleted file mode 100644 index a6c83cf2..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/resources/log4j2.xml +++ /dev/null @@ -1,89 +0,0 @@ - - - - - - - - - - ./zzlogs/application-webadmin - - ./zzlogs/application-webadmin/backup - - info - - - - - - - - [%-5p] [%d{YYYY-MM-dd HH:mm:ss}] [%t] ==> %msg%n - - - [%-5p] [%d{YYYY-MM-dd HH:mm:ss}] T:[%X{traceId}] S:[%X{sessionId}] U:[%X{userId}] [%t] ==> %msg%n - - - 31 - - 20M - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/images/orange-demo-activiti-service/application-webadmin/src/main/resources/template/views/print_error.ftl b/images/orange-demo-activiti-service/application-webadmin/src/main/resources/template/views/print_error.ftl deleted file mode 100644 index af8b36a7..00000000 --- a/images/orange-demo-activiti-service/application-webadmin/src/main/resources/template/views/print_error.ftl +++ /dev/null @@ -1,329 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
天津公安警官职业学院2017—2018学年度第一学期课程表
班 级星期一星期二星期三星期四星期五
第1节第2节第3节第1节第2节第3节第1节第2节第3节第1节第2节第3节第1节第2节
16 级 刑 事 技 术 班 课程刑法自习刑事图像民 法(选修)派出所工作刑事图像法医学派出所工作法医学国内安全保卫体能自习刑事技术总论刑法
自习自习自习
教师曾岚陈磊邵刚杨丽伟陈磊于辉杨丽伟于辉朱学强张付海王 伟(刑技)曾岚
   
教室206206206206206206206206206操场206206
   
16 级 刑 事 侦 查 课程自习侦查措施经济案件侦查公安信息化公安信息化刑法体能自习痕迹检验刑法国内安全保卫经济案件侦查痕迹检验民 法(选修)
侦查措施
教师徐宏涛张静赵晓松赵晓松王骏强张付海郭海川王骏强朱学强张静郭海川邵刚
徐宏涛
教室2022023号机房3号机房202操场202202202202202202
16 级 治 安 管 理 班 课程刑事技术体能刑事技术治安秩序管理刑事侦查概论刑法群众工作与纠纷调解群众工作与纠纷调解公共关系(选修)刑事侦查概论刑法自习自习自习
q
教师郭海川 韩易浦张付海郭海川 韩易浦翟政亮邵妍薛强刘晓鹏刘晓鹏尚欣邵妍薛强
翟政亮
教室218操场218218218218218218218218218
16 网 络 安 全 监 察 1 班课程应用写作数据库系统应用周二中午:计算机安全管理及实用技术刑事诉讼法周一中午:数据库系统应用民法体育VB语言程序设计选修VB语言程序设计刑事诉讼法选修应用写作犯罪心理
民法犯罪心理
教师关利杨斌赵晓松王伟杨斌李静程军赵伟赵伟王伟关利张学林
李静张学林
教室东阶梯2号机房主楼2011012号机房101操场3号机房3号机房101东阶梯主楼201
主楼201
注:1、课程一栏中有两科次的,上面的课程单周上课,下面的课程双周上课。2、每天上课时间:上午第1节8:30至9:55;第2节10:15至11:40;中午上课时间12:30至13:55;下午第3节14:00至15:25。
- - diff --git a/images/orange-demo-activiti-service/common/common-core/pom.xml b/images/orange-demo-activiti-service/common/common-core/pom.xml deleted file mode 100644 index 43e24aa8..00000000 --- a/images/orange-demo-activiti-service/common/common-core/pom.xml +++ /dev/null @@ -1,119 +0,0 @@ - - - - com.orangeforms - common - 1.0.0 - - 4.0.0 - - common-core - 1.0.0 - common-core - jar - - - - - com.google.guava - guava - - - org.apache.commons - commons-lang3 - - - commons-codec - commons-codec - - - commons-io - commons-io - - - commons-fileupload - commons-fileupload - - - org.apache.httpcomponents - httpclient - - - joda-time - joda-time - - - org.apache.commons - commons-collections4 - ${commons-collections4.version} - - - org.apache.commons - commons-csv - ${common-csv.version} - - - cn.hutool - hutool-all - ${hutool.version} - - - io.jsonwebtoken - jjwt - ${jjwt.version} - - - com.alibaba - fastjson - ${fastjson.version} - - - com.github.ben-manes.caffeine - caffeine - ${caffeine.version} - - - cn.jimmyshi - bean-query - ${bean.query.version} - - - - org.apache.poi - poi-ooxml - ${poi-ooxml.version} - - - - mysql - mysql-connector-java - runtime - - - com.alibaba - druid-spring-boot-starter - ${druid.version} - - - com.sun - jconsole - - - com.sun - tools - - - - - com.baomidou - mybatis-plus-boot-starter - ${mybatisplus.version} - - - com.github.pagehelper - pagehelper-spring-boot-starter - ${pagehelper.version} - - - diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/advice/MyControllerAdvice.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/advice/MyControllerAdvice.java deleted file mode 100644 index e50be914..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/advice/MyControllerAdvice.java +++ /dev/null @@ -1,30 +0,0 @@ -package com.orangeforms.common.core.advice; - -import org.springframework.beans.propertyeditors.CustomDateEditor; -import org.springframework.web.bind.WebDataBinder; -import org.springframework.web.bind.annotation.ControllerAdvice; -import org.springframework.web.bind.annotation.InitBinder; - -import java.text.SimpleDateFormat; -import java.util.Date; - -/** - * Controller的环绕拦截类。 - * - * @author Jerry - * @date 2021-06-06 - */ -@ControllerAdvice -public class MyControllerAdvice { - - /** - * 转换前端传入的日期变量参数为指定格式。 - * - * @param binder 数据绑定参数。 - */ - @InitBinder - public void initBinder(WebDataBinder binder) { - binder.registerCustomEditor(Date.class, - new CustomDateEditor(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"), false)); - } -} diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/advice/MyExceptionHandler.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/advice/MyExceptionHandler.java deleted file mode 100644 index 227bc24f..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/advice/MyExceptionHandler.java +++ /dev/null @@ -1,141 +0,0 @@ -package com.orangeforms.common.core.advice; - -import com.orangeforms.common.core.exception.*; -import com.orangeforms.common.core.constant.ErrorCodeEnum; -import com.orangeforms.common.core.object.ResponseResult; -import com.orangeforms.common.core.util.ContextUtil; -import lombok.extern.slf4j.Slf4j; -import org.apache.ibatis.exceptions.PersistenceException; -import org.springframework.dao.DataAccessException; -import org.springframework.dao.DuplicateKeyException; -import org.springframework.dao.PermissionDeniedDataAccessException; -import org.springframework.web.bind.annotation.ExceptionHandler; -import org.springframework.web.bind.annotation.RestControllerAdvice; - -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import java.util.concurrent.TimeoutException; - -/** - * 业务层的异常处理类,这里只是给出最通用的Exception的捕捉,今后可以根据业务需要, - * 用不同的函数,处理不同类型的异常。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Slf4j -@RestControllerAdvice("com.orangeforms") -public class MyExceptionHandler { - - /** - * 通用异常处理方法。 - * - * @param ex 异常对象。 - * @param request http请求。 - * @return 应答对象。 - */ - @ExceptionHandler(value = Exception.class) - public ResponseResult exceptionHandle(Exception ex, HttpServletRequest request) { - log.error("Unhandled exception from URL [" + request.getRequestURI() + "]", ex); - ContextUtil.getHttpResponse().setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR); - return ResponseResult.error(ErrorCodeEnum.UNHANDLED_EXCEPTION, ex.getMessage()); - } - - /** - * 无效的实体对象异常。 - * - * @param ex 异常对象。 - * @param request http请求。 - * @return 应答对象。 - */ - @ExceptionHandler(value = InvalidDataModelException.class) - public ResponseResult invalidDataModelExceptionHandle(Exception ex, HttpServletRequest request) { - log.error("InvalidDataModelException exception from URL [" + request.getRequestURI() + "]", ex); - return ResponseResult.error(ErrorCodeEnum.INVALID_DATA_MODEL); - } - - /** - * 无效的实体对象字段异常。 - * - * @param ex 异常对象。 - * @param request http请求。 - * @return 应答对象。 - */ - @ExceptionHandler(value = InvalidDataFieldException.class) - public ResponseResult invalidDataFieldExceptionHandle(Exception ex, HttpServletRequest request) { - log.error("InvalidDataFieldException exception from URL [" + request.getRequestURI() + "]", ex); - return ResponseResult.error(ErrorCodeEnum.INVALID_DATA_FIELD); - } - - /** - * 无效类字段异常。 - * - * @param ex 异常对象。 - * @param request http请求。 - * @return 应答对象。 - */ - @ExceptionHandler(value = InvalidClassFieldException.class) - public ResponseResult invalidClassFieldExceptionHandle(Exception ex, HttpServletRequest request) { - log.error("InvalidClassFieldException exception from URL [" + request.getRequestURI() + "]", ex); - return ResponseResult.error(ErrorCodeEnum.INVALID_CLASS_FIELD); - } - - /** - * 重复键异常处理方法。 - * - * @param ex 异常对象。 - * @param request http请求。 - * @return 应答对象。 - */ - @ExceptionHandler(value = DuplicateKeyException.class) - public ResponseResult duplicateKeyExceptionHandle(Exception ex, HttpServletRequest request) { - log.error("DuplicateKeyException exception from URL [" + request.getRequestURI() + "]", ex); - return ResponseResult.error(ErrorCodeEnum.DUPLICATED_UNIQUE_KEY); - } - - /** - * 数据访问失败异常处理方法。 - * - * @param ex 异常对象。 - * @param request http请求。 - * @return 应答对象。 - */ - @ExceptionHandler(value = DataAccessException.class) - public ResponseResult dataAccessExceptionHandle(Exception ex, HttpServletRequest request) { - log.error("DataAccessException exception from URL [" + request.getRequestURI() + "]", ex); - if (ex.getCause() instanceof PersistenceException - && ex.getCause().getCause() instanceof PermissionDeniedDataAccessException) { - return ResponseResult.error(ErrorCodeEnum.DATA_PERM_ACCESS_FAILED); - } - return ResponseResult.error(ErrorCodeEnum.DATA_ACCESS_FAILED); - } - - /** - * 操作不存在或已逻辑删除数据的异常处理方法。 - * - * @param ex 异常对象。 - * @param request http请求。 - * @return 应答对象。 - */ - @ExceptionHandler(value = NoDataAffectException.class) - public ResponseResult noDataEffectExceptionHandle(Exception ex, HttpServletRequest request) { - log.error("NoDataAffectException exception from URL [" + request.getRequestURI() + "]", ex); - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST); - } - - /** - * Redis缓存访问异常处理方法。 - * - * @param ex 异常对象。 - * @param request http请求。 - * @return 应答对象。 - */ - @ExceptionHandler(value = RedisCacheAccessException.class) - public ResponseResult redisCacheAccessExceptionHandle(Exception ex, HttpServletRequest request) { - log.error("RedisCacheAccessException exception from URL [" + request.getRequestURI() + "]", ex); - if (ex.getCause() instanceof TimeoutException) { - return ResponseResult.error(ErrorCodeEnum.REDIS_CACHE_ACCESS_TIMEOUT); - } - return ResponseResult.error(ErrorCodeEnum.REDIS_CACHE_ACCESS_STATE_ERROR); - } -} diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/annotation/DeptFilterColumn.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/annotation/DeptFilterColumn.java deleted file mode 100644 index fc222c1b..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/annotation/DeptFilterColumn.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.orangeforms.common.core.annotation; - -import java.lang.annotation.*; - -/** - * 主要用于标记数据权限中基于DeptId进行过滤的字段。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Target({ElementType.FIELD}) -@Retention(RetentionPolicy.RUNTIME) -@Documented -public @interface DeptFilterColumn { - -} diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/annotation/DisableDataFilter.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/annotation/DisableDataFilter.java deleted file mode 100644 index 9fb89d04..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/annotation/DisableDataFilter.java +++ /dev/null @@ -1,17 +0,0 @@ -package com.orangeforms.common.core.annotation; - -import java.lang.annotation.*; - -/** - * 作为DisableDataFilterAspect的切点。 - * 该注解仅能标记在方法上,方法内所有的查询语句,均不会被Mybatis拦截器过滤数据。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Target({ElementType.METHOD}) -@Retention(RetentionPolicy.RUNTIME) -@Documented -public @interface DisableDataFilter { - -} diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/annotation/DisableTenantFilter.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/annotation/DisableTenantFilter.java deleted file mode 100644 index eba3558e..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/annotation/DisableTenantFilter.java +++ /dev/null @@ -1,28 +0,0 @@ -package com.orangeforms.common.core.annotation; - -import java.lang.annotation.*; - -/** - * 仅用于微服务的多租户项目。 - * 用于注解DAO层Mapper对象的租户过滤规则。被包含的方法将不会进行租户Id的过滤。 - * 对于tk mapper和mybatis plus中的内置方法,可以直接指定方法名即可,如:selectOne。 - * 需要说明的是,在大多数场景下,只要在实体对象中指定了租户Id字段,基于该主表的绝大部分增删改操作, - * 都需要经过租户Id过滤,仅当查询非常复杂,或者主表不在SQL语句之中的时候,可以通过该注解禁用该SQL, - * 并根据需求通过手动的方式实现租户过滤。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Target({ElementType.TYPE}) -@Retention(RetentionPolicy.RUNTIME) -@Documented -public @interface DisableTenantFilter { - - /** - * 包含的方法名称数组。该值不能为空,因为如想取消所有方法的租户过滤, - * 可以通过在实体对象中不指定租户Id字段注解的方式实现。 - * - * @return 被包括的方法名称数组。 - */ - String[] includeMethodName(); -} diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/annotation/EnableDataPerm.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/annotation/EnableDataPerm.java deleted file mode 100644 index 289964ef..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/annotation/EnableDataPerm.java +++ /dev/null @@ -1,27 +0,0 @@ -package com.orangeforms.common.core.annotation; - -import java.lang.annotation.*; - -/** - * 用于注解DAO层Mapper对象的数据权限规则。 - * 由于框架使用了tk.mapper,所以并非所有的Mapper接口均在当前Mapper对象中定义,有一部分被tk.mapper封装,如selectAll等。 - * 如果需要排除tk.mapper中的方法,可以直接使用tk.mapper基类所声明的方法名称即可。 - * 另外,比较特殊的场景是,因为tk.mapper是通用框架,所以同样的selectAll方法,可以获取不同的数据集合,因此在service中如果 - * 出现两个不同的方法调用Mapper的selectAll方法,但是一个需要参与过滤,另外一个不需要参与,那么就需要修改当前类的Mapper方法, - * 将其中一个方法重新定义一个具体的接口方法,并重新设定其是否参与数据过滤。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Target({ElementType.TYPE}) -@Retention(RetentionPolicy.RUNTIME) -@Documented -public @interface EnableDataPerm { - - /** - * 排除的方法名称数组。如果为空,所有的方法均会被Mybaits拦截注入权限过滤条件。 - * - * @return 被排序的方法名称数据。 - */ - String[] excluseMethodName() default {}; -} diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/annotation/JobUpdateTimeColumn.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/annotation/JobUpdateTimeColumn.java deleted file mode 100644 index 1b4dd5f9..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/annotation/JobUpdateTimeColumn.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.orangeforms.common.core.annotation; - -import java.lang.annotation.*; - -/** - * 主要用于标记Job实体对象的更新时间字段。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Target({ElementType.FIELD}) -@Retention(RetentionPolicy.RUNTIME) -@Documented -public @interface JobUpdateTimeColumn { - -} diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/annotation/MyDataSource.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/annotation/MyDataSource.java deleted file mode 100644 index 9ccdff9a..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/annotation/MyDataSource.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.orangeforms.common.core.annotation; - -import java.lang.annotation.*; - -/** - * 主要用于标记Service所依赖的数据源类型。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Target(ElementType.TYPE) -@Retention(RetentionPolicy.RUNTIME) -@Documented -public @interface MyDataSource { - - /** - * 标注的数据源类型 - * @return 当前标注的数据源类型。 - */ - int value(); -} diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/annotation/MyDataSourceResolver.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/annotation/MyDataSourceResolver.java deleted file mode 100644 index 3e08bfb2..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/annotation/MyDataSourceResolver.java +++ /dev/null @@ -1,29 +0,0 @@ -package com.orangeforms.common.core.annotation; - -import com.orangeforms.common.core.util.DataSourceResolver; - -import java.lang.annotation.*; - -/** - * 基于自定义解析规则的多数据源注解。主要用于标注Service的实现类。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Target(ElementType.TYPE) -@Retention(RetentionPolicy.RUNTIME) -@Documented -public @interface MyDataSourceResolver { - - /** - * 多数据源路由键解析接口的Class。 - * @return 多数据源路由键解析接口的Class。 - */ - Class resolver(); - - /** - * DataSourceResolver.resovle方法的入参。 - * @return DataSourceResolver.resovle方法的入参。 - */ - String arg() default ""; -} diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/annotation/MyRequestBody.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/annotation/MyRequestBody.java deleted file mode 100644 index 03a2584a..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/annotation/MyRequestBody.java +++ /dev/null @@ -1,31 +0,0 @@ -package com.orangeforms.common.core.annotation; - -import java.lang.annotation.ElementType; -import java.lang.annotation.Retention; -import java.lang.annotation.RetentionPolicy; -import java.lang.annotation.Target; - -/** - * 标记Controller中的方法参数,参数解析器会根据该注解将请求中的JSON数据,映射到参数中的绑定字段。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Target(ElementType.PARAMETER) -@Retention(RetentionPolicy.RUNTIME) -public @interface MyRequestBody { - - /** - * 是否必须出现的参数。 - */ - boolean required() default false; - /** - * 解析时用到的JSON的key。 - */ - String value() default ""; - /** - * 集合元素的ClassType。只有在接口参数为List的时候,需要把E的class传入。 - * 缺省值Class.class表示没有设置。 - */ - Class elementType() default Class.class; -} \ No newline at end of file diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/annotation/NoAuthInterface.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/annotation/NoAuthInterface.java deleted file mode 100644 index c5d72d40..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/annotation/NoAuthInterface.java +++ /dev/null @@ -1,15 +0,0 @@ -package com.orangeforms.common.core.annotation; - -import java.lang.annotation.*; - -/** - * 主要用于标记无需Token验证的接口 - * - * @author Jerry - * @date 2021-06-06 - */ -@Target({ElementType.METHOD, ElementType.TYPE}) -@Retention(RetentionPolicy.RUNTIME) -@Documented -public @interface NoAuthInterface { -} diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/annotation/RelationConstDict.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/annotation/RelationConstDict.java deleted file mode 100644 index 6d06329c..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/annotation/RelationConstDict.java +++ /dev/null @@ -1,29 +0,0 @@ -package com.orangeforms.common.core.annotation; - -import java.lang.annotation.*; - -/** - * 标识Model和常量字典之间的关联关系。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Target({ElementType.FIELD, ElementType.METHOD}) -@Retention(RetentionPolicy.RUNTIME) -@Documented -public @interface RelationConstDict { - - /** - * 当前对象的关联Id字段名称。 - * - * @return 当前对象的关联Id字段名称。 - */ - String masterIdField(); - - /** - * 被关联的常量字典的Class对象。 - * - * @return 关联的常量字典的Class对象。 - */ - Class constantDictClass(); -} diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/annotation/RelationDict.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/annotation/RelationDict.java deleted file mode 100644 index 102975de..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/annotation/RelationDict.java +++ /dev/null @@ -1,70 +0,0 @@ -package com.orangeforms.common.core.annotation; - -import com.orangeforms.common.core.object.DummyClass; - -import java.lang.annotation.*; - -/** - * 标识Model之间的字典关联关系。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Target({ElementType.FIELD, ElementType.METHOD}) -@Retention(RetentionPolicy.RUNTIME) -@Documented -public @interface RelationDict { - - /** - * 当前对象的关联Id字段名称。 - * - * @return 当前对象的关联Id字段名称。 - */ - String masterIdField(); - - /** - * 被关联Model对象的Class对象。 - * - * @return 被关联Model对象的Class对象。 - */ - Class slaveModelClass(); - - /** - * 被关联Model对象的关联Id字段名称。 - * - * @return 被关联Model对象的关联Id字段名称。 - */ - String slaveIdField(); - - /** - * 被关联Model对象的关联Name字段名称。 - * - * @return 被关联Model对象的关联Name字段名称。 - */ - String slaveNameField(); - - /** - * 被关联的本地Service对象名称。 - * 该参数的优先级高于 slaveService(),如果定义了该值,会优先使用加载service的bean对象。 - * - * @return 被关联的本地Service对象名称。 - */ - String slaveServiceName() default ""; - - /** - * 被关联的本地Service对象CLass类型。 - * - * @return 被关联的本地Service对象CLass类型。 - */ - Class slaveServiceClass() default DummyClass.class; - - /** - * 在同一个实体对象中,如果有一对一关联和字典关联,都是基于相同的主表字段,并关联到 - * 相同关联表的同一关联字段时,可以在字典关联的注解中引用被一对一注解标准的对象属性。 - * 从而在数据整合时,当前字典的数据可以直接取自"equalOneToOneRelationField"指定 - * 的字段,从而避免一次没必要的数据库查询操作,提升了加载显示的效率。 - * - * @return 与该字典字段引用关系完全相同的一对一关联属性名称。 - */ - String equalOneToOneRelationField() default ""; -} diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/annotation/RelationManyToMany.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/annotation/RelationManyToMany.java deleted file mode 100644 index 8ec59e32..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/annotation/RelationManyToMany.java +++ /dev/null @@ -1,38 +0,0 @@ -package com.orangeforms.common.core.annotation; - -import java.lang.annotation.*; - -/** - * 标注多对多的Model关系。 - * 重要提示:由于多对多关联表数据,很多时候都不需要跟随主表数据返回,所以该注解不会在 - * 生成的时候自动添加到实体类字段上,需要的时候,用户可自行手动添加。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Target({ElementType.FIELD, ElementType.METHOD}) -@Retention(RetentionPolicy.RUNTIME) -@Documented -public @interface RelationManyToMany { - - /** - * 多对多中间表的Mapper对象名称。 - * - * @return 被关联的本地Service对象名称。 - */ - String relationMapperName(); - - /** - * 多对多关联表Model对象的Class对象。 - * - * @return 被关联Model对象的Class对象。 - */ - Class relationModelClass(); - - /** - * 多对多关联表Model对象中与主表关联的Id字段名称。 - * - * @return 被关联Model对象的关联Id字段名称。 - */ - String relationMasterIdField(); -} diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/annotation/RelationManyToManyAggregation.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/annotation/RelationManyToManyAggregation.java deleted file mode 100644 index ade6ea11..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/annotation/RelationManyToManyAggregation.java +++ /dev/null @@ -1,95 +0,0 @@ -package com.orangeforms.common.core.annotation; - -import com.orangeforms.common.core.object.DummyClass; - -import java.lang.annotation.*; - -/** - * 主要用于多对多的Model关系。标注通过从表关联字段或者关联表关联字段计算主表聚合计算字段的规则。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Target({ElementType.FIELD, ElementType.METHOD}) -@Retention(RetentionPolicy.RUNTIME) -@Documented -public @interface RelationManyToManyAggregation { - - /** - * 当前对象的关联Id字段名称。 - * - * @return 当前对象的关联Id字段名称。 - */ - String masterIdField(); - - /** - * 被关联的本地Service对象名称。 - * 该参数的优先级高于 slaveService(),如果定义了该值,会优先使用加载service的bean对象。 - * - * @return 被关联的本地Service对象名称。 - */ - String slaveServiceName() default ""; - - /** - * 被关联的本地Service对象CLass类型。 - * - * @return 被关联的本地Service对象CLass类型。 - */ - Class slaveServiceClass() default DummyClass.class; - - /** - * 多对多从表Model对象的Class对象。 - * - * @return 被关联Model对象的Class对象。 - */ - Class slaveModelClass(); - - /** - * 多对多从表Model对象的关联Id字段名称。 - * - * @return 被关联Model对象的关联Id字段名称。 - */ - String slaveIdField(); - - /** - * 多对多关联表Model对象的Class对象。 - * - * @return 被关联Model对象的Class对象。 - */ - Class relationModelClass(); - - /** - * 多对多关联表Model对象中与主表关联的Id字段名称。 - * - * @return 被关联Model对象的关联Id字段名称。 - */ - String relationMasterIdField(); - - /** - * 多对多关联表Model对象中与从表关联的Id字段名称。 - * - * @return 被关联Model对象的关联Id字段名称。 - */ - String relationSlaveIdField(); - - /** - * 聚合计算所在的Model。 - * - * @return 聚合计算所在Model的Class。 - */ - Class aggregationModelClass(); - - /** - * 聚合类型。具体数值参考AggregationType对象。 - * - * @return 聚合类型。 - */ - int aggregationType(); - - /** - * 聚合计算所在Model的字段名称。 - * - * @return 聚合计算所在Model的字段名称。 - */ - String aggregationField(); -} diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/annotation/RelationOneToMany.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/annotation/RelationOneToMany.java deleted file mode 100644 index 7cfac911..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/annotation/RelationOneToMany.java +++ /dev/null @@ -1,53 +0,0 @@ -package com.orangeforms.common.core.annotation; - -import com.orangeforms.common.core.object.DummyClass; - -import java.lang.annotation.*; - -/** - * 标识Model之间的一对多关联关系。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Target({ElementType.FIELD, ElementType.METHOD}) -@Retention(RetentionPolicy.RUNTIME) -@Documented -public @interface RelationOneToMany { - - /** - * 当前对象的关联Id字段名称。 - * - * @return 当前对象的关联Id字段名称。 - */ - String masterIdField(); - - /** - * 被关联Model对象的Class对象。 - * - * @return 被关联Model对象的Class对象。 - */ - Class slaveModelClass(); - - /** - * 被关联Model对象的关联Id字段名称。 - * - * @return 被关联Model对象的关联Id字段名称。 - */ - String slaveIdField(); - - /** - * 被关联的本地Service对象名称。 - * 该参数的优先级高于 slaveService(),如果定义了该值,会优先使用加载service的bean对象。 - * - * @return 被关联的本地Service对象名称。 - */ - String slaveServiceName() default ""; - - /** - * 被关联的本地Service对象CLass类型。 - * - * @return 被关联的本地Service对象CLass类型。 - */ - Class slaveServiceClass() default DummyClass.class; -} diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/annotation/RelationOneToManyAggregation.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/annotation/RelationOneToManyAggregation.java deleted file mode 100644 index 66464e54..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/annotation/RelationOneToManyAggregation.java +++ /dev/null @@ -1,67 +0,0 @@ -package com.orangeforms.common.core.annotation; - -import com.orangeforms.common.core.object.DummyClass; - -import java.lang.annotation.*; - -/** - * 主要用于一对多的Model关系。标注通过从表关联字段计算主表聚合计算字段的规则。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Target({ElementType.FIELD, ElementType.METHOD}) -@Retention(RetentionPolicy.RUNTIME) -@Documented -public @interface RelationOneToManyAggregation { - - /** - * 当前对象的关联Id字段名称。 - * - * @return 当前对象的关联Id字段名称。 - */ - String masterIdField(); - - /** - * 被关联的本地Service对象名称。 - * 该参数的优先级高于 slaveService(),如果定义了该值,会优先使用加载service的bean对象。 - * - * @return 被关联的本地Service对象名称。 - */ - String slaveServiceName() default ""; - - /** - * 被关联的本地Service对象CLass类型。 - * - * @return 被关联的本地Service对象CLass类型。 - */ - Class slaveServiceClass() default DummyClass.class; - - /** - * 被关联Model对象的Class对象。 - * - * @return 被关联Model对象的Class对象。 - */ - Class slaveModelClass(); - - /** - * 被关联Model对象的关联Id字段名称。 - * - * @return 被关联Model对象的关联Id字段名称。 - */ - String slaveIdField(); - - /** - * 被关联Model对象中参与计算的聚合类型。具体数值参考AggregationType对象。 - * - * @return 被关联Model对象中参与计算的聚合类型。 - */ - int aggregationType(); - - /** - * 被关联Model对象中参与聚合计算的字段名称。 - * - * @return 被关联Model对象中参与计算字段的名称。 - */ - String aggregationField(); -} diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/annotation/RelationOneToOne.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/annotation/RelationOneToOne.java deleted file mode 100644 index 1968a634..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/annotation/RelationOneToOne.java +++ /dev/null @@ -1,60 +0,0 @@ -package com.orangeforms.common.core.annotation; - -import com.orangeforms.common.core.object.DummyClass; - -import java.lang.annotation.*; - -/** - * 标识Model之间的一对一关联关系。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Target({ElementType.FIELD, ElementType.METHOD}) -@Retention(RetentionPolicy.RUNTIME) -@Documented -public @interface RelationOneToOne { - - /** - * 当前对象的关联Id字段名称。 - * - * @return 当前对象的关联Id字段名称。 - */ - String masterIdField(); - - /** - * 被关联Model对象的Class对象。 - * - * @return 被关联Model对象的Class对象。 - */ - Class slaveModelClass(); - - /** - * 被关联Model对象的关联Id字段名称。 - * - * @return 被关联Model对象的关联Id字段名称。 - */ - String slaveIdField(); - - /** - * 被关联的本地Service对象名称。 - * 该参数的优先级高于 slaveService(),如果定义了该值,会优先使用加载service的bean对象。 - * - * @return 被关联的本地Service对象名称。 - */ - String slaveServiceName() default ""; - - /** - * 被关联的本地Service对象CLass类型。 - * - * @return 被关联的本地Service对象CLass类型。 - */ - Class slaveServiceClass() default DummyClass.class; - - /** - * 在一对一关联时,是否加载从表的字典关联。 - * - * @return 是否加载从表的字典关联。true关联,false则只返回从表自身数据。 - */ - boolean loadSlaveDict() default true; -} diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/annotation/TenantFilterColumn.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/annotation/TenantFilterColumn.java deleted file mode 100644 index c64fb6c0..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/annotation/TenantFilterColumn.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.orangeforms.common.core.annotation; - -import java.lang.annotation.*; - -/** - * 主要用于标记通过租户Id进行过滤的字段。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Target({ElementType.FIELD}) -@Retention(RetentionPolicy.RUNTIME) -@Documented -public @interface TenantFilterColumn { - -} diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/annotation/UploadFlagColumn.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/annotation/UploadFlagColumn.java deleted file mode 100644 index e94448a5..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/annotation/UploadFlagColumn.java +++ /dev/null @@ -1,24 +0,0 @@ -package com.orangeforms.common.core.annotation; - -import com.orangeforms.common.core.upload.UploadStoreTypeEnum; - -import java.lang.annotation.*; - -/** - * 用于标记支持数据上传和下载的字段。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Target({ElementType.FIELD}) -@Retention(RetentionPolicy.RUNTIME) -@Documented -public @interface UploadFlagColumn { - - /** - * 上传数据存储类型。 - * - * @return 上传数据存储类型。 - */ - UploadStoreTypeEnum storeType(); -} diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/annotation/UserFilterColumn.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/annotation/UserFilterColumn.java deleted file mode 100644 index 2ffe8400..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/annotation/UserFilterColumn.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.orangeforms.common.core.annotation; - -import java.lang.annotation.*; - -/** - * 主要用于标记数据权限中基于UserId进行过滤的字段。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Target({ElementType.FIELD}) -@Retention(RetentionPolicy.RUNTIME) -@Documented -public @interface UserFilterColumn { - -} diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/aop/DataSourceAspect.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/aop/DataSourceAspect.java deleted file mode 100644 index db002b38..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/aop/DataSourceAspect.java +++ /dev/null @@ -1,48 +0,0 @@ -package com.orangeforms.common.core.aop; - -import com.orangeforms.common.core.annotation.MyDataSource; -import com.orangeforms.common.core.config.DataSourceContextHolder; -import lombok.extern.slf4j.Slf4j; -import org.aspectj.lang.ProceedingJoinPoint; -import org.aspectj.lang.annotation.Around; -import org.aspectj.lang.annotation.Aspect; -import org.aspectj.lang.annotation.Pointcut; -import org.springframework.core.annotation.Order; -import org.springframework.stereotype.Component; - -/** - * 多数据源AOP切面处理类。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Aspect -@Component -@Order(1) -@Slf4j -public class DataSourceAspect { - - /** - * 所有配置MyDataSource注解的Service实现类。 - */ - @Pointcut("execution(public * com.orangeforms..service..*(..)) " + - "&& @target(com.orangeforms.common.core.annotation.MyDataSource)") - public void datasourcePointCut() { - // 空注释,避免sonar警告 - } - - @Around("datasourcePointCut()") - public Object around(ProceedingJoinPoint point) throws Throwable { - Class clazz = point.getTarget().getClass(); - MyDataSource ds = clazz.getAnnotation(MyDataSource.class); - // 通过判断 DataSource 中的值来判断当前方法应用哪个数据源 - Integer originalType = DataSourceContextHolder.setDataSourceType(ds.value()); - log.debug("set datasource is " + ds.value()); - try { - return point.proceed(); - } finally { - DataSourceContextHolder.unset(originalType); - log.debug("unset datasource is " + originalType); - } - } -} diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/aop/DataSourceResolveAspect.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/aop/DataSourceResolveAspect.java deleted file mode 100644 index e6d87d7f..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/aop/DataSourceResolveAspect.java +++ /dev/null @@ -1,62 +0,0 @@ -package com.orangeforms.common.core.aop; - -import com.orangeforms.common.core.annotation.MyDataSourceResolver; -import com.orangeforms.common.core.util.DataSourceResolver; -import com.orangeforms.common.core.config.DataSourceContextHolder; -import com.orangeforms.common.core.util.ApplicationContextHolder; -import lombok.extern.slf4j.Slf4j; -import org.aspectj.lang.ProceedingJoinPoint; -import org.aspectj.lang.annotation.Around; -import org.aspectj.lang.annotation.Aspect; -import org.aspectj.lang.annotation.Pointcut; -import org.springframework.core.annotation.Order; -import org.springframework.stereotype.Component; - -import java.util.HashMap; -import java.util.Map; - -/** - * 基于自定义解析规则的多数据源AOP切面处理类。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Aspect -@Component -@Order(1) -@Slf4j -public class DataSourceResolveAspect { - - private final Map, DataSourceResolver> resolverMap = new HashMap<>(); - - /** - * 所有配置 MyDataSource 注解的Service。 - */ - @Pointcut("execution(public * com.orangeforms..service..*(..)) " + - "&& @target(com.orangeforms.common.core.annotation.MyDataSourceResolver)") - public void datasourceResolverPointCut() { - // 空注释,避免sonar警告 - } - - @Around("datasourceResolverPointCut()") - public Object around(ProceedingJoinPoint point) throws Throwable { - Class clazz = point.getTarget().getClass(); - MyDataSourceResolver dsr = clazz.getAnnotation(MyDataSourceResolver.class); - Class resolverClass = dsr.resolver(); - DataSourceResolver resolver = resolverMap.get(resolverClass); - if (resolver == null) { - resolver = ApplicationContextHolder.getBean(resolverClass); - resolverMap.put(resolverClass, resolver); - } - int type = resolver.resolve(dsr.arg(), point.getArgs()); - // 通过判断 DataSource 中的值来判断当前方法应用哪个数据源 - Integer originalType = DataSourceContextHolder.setDataSourceType(type); - log.debug("set datasource is " + type); - try { - return point.proceed(); - } finally { - DataSourceContextHolder.unset(originalType); - log.debug("unset datasource is " + originalType); - } - } -} diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/aop/DictCacheSyncAspect.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/aop/DictCacheSyncAspect.java deleted file mode 100644 index c735af05..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/aop/DictCacheSyncAspect.java +++ /dev/null @@ -1,64 +0,0 @@ -package com.orangeforms.common.core.aop; - -import com.orangeforms.common.core.base.service.BaseDictService; -import lombok.extern.slf4j.Slf4j; -import org.aspectj.lang.ProceedingJoinPoint; -import org.aspectj.lang.annotation.Around; -import org.aspectj.lang.annotation.Aspect; -import org.aspectj.lang.annotation.Pointcut; -import org.springframework.core.Ordered; -import org.springframework.core.annotation.Order; -import org.springframework.stereotype.Component; - -import java.io.Serializable; - -/** - * 字典缓存同步的AOP。该AOP的优先级必须比事务切面的优先级高,因此会在事务外执行该切面的代码。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Aspect -@Component -@Order(Ordered.LOWEST_PRECEDENCE - 1) -@Slf4j -public class DictCacheSyncAspect { - - /** - * BaseDictService 字典服务父类中的字典数据增删改的方法。 - */ - @Pointcut("execution(public * com.orangeforms..BaseDictService.saveNew (..)) " + - "|| execution(public * com.orangeforms..BaseDictService.update (..)) " + - "|| execution(public * com.orangeforms..BaseDictService.remove (..))" ) - public void baseDictServicePointCut() { - // 空注释,避免sonar警告 - } - - @SuppressWarnings("unchecked") - @Around("baseDictServicePointCut()") - public Object around(ProceedingJoinPoint joinPoint) throws Throwable { - String methodName = joinPoint.getSignature().getName(); - Object arg = joinPoint.getArgs()[0]; - if ("saveNew".equals(methodName)) { - Object data = joinPoint.proceed(); - BaseDictService service = - (BaseDictService) joinPoint.getTarget(); - // 这里参数必须使用saveNew方法的返回对象,因为里面包含实际主键值。 - service.putDictionaryCache(data); - return data; - } else if ("update".equals(methodName)) { - Object data = joinPoint.proceed(); - BaseDictService service = - (BaseDictService) joinPoint.getTarget(); - // update的方法返回的是boolean,因此这里的参数需要使用第一个参数即可。 - service.putDictionaryCache(arg); - return data; - } else { - // remove - BaseDictService service = - (BaseDictService) joinPoint.getTarget(); - service.removeDictionaryCache((Serializable) arg); - return joinPoint.proceed(); - } - } -} diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/base/dao/BaseDaoMapper.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/base/dao/BaseDaoMapper.java deleted file mode 100644 index 715d8baa..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/base/dao/BaseDaoMapper.java +++ /dev/null @@ -1,87 +0,0 @@ -package com.orangeforms.common.core.base.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import org.apache.ibatis.annotations.Param; -import org.apache.ibatis.annotations.Select; - -import java.util.List; -import java.util.Map; - -/** - * 数据访问对象的基类。 - * - * @param 主Model实体对象。 - * @author Jerry - * @date 2021-06-06 - */ -public interface BaseDaoMapper extends BaseMapper { - - /** - * 根据指定的表名、显示字段列表、过滤条件字符串和分组字段,返回聚合计算后的查询结果。 - * - * @param selectTable 表名称。 - * @param selectFields 返回字段列表,逗号分隔。 - * @param whereClause SQL常量形式的条件从句。 - * @param groupBy 分组字段列表,逗号分隔。 - * @return 对象可选字段Map列表。 - */ - @Select("") - List> getGroupedListByCondition( - @Param("selectTable") String selectTable, - @Param("selectFields") String selectFields, - @Param("whereClause") String whereClause, - @Param("groupBy") String groupBy); - - /** - * 根据指定的表名、显示字段列表、过滤条件字符串和排序字符串,返回查询结果。 - * - * @param selectTable 表名称。 - * @param selectFields 选择的字段列表。 - * @param whereClause 过滤字符串。 - * @param orderBy 排序字符串。 - * @return 查询结果。 - */ - @Select("") - List> getListByCondition( - @Param("selectTable") String selectTable, - @Param("selectFields") String selectFields, - @Param("whereClause") String whereClause, - @Param("orderBy") String orderBy); - - /** - * 用指定过滤条件,计算记录数量。 - * - * @param selectTable 表名称。 - * @param whereClause 过滤字符串。 - * @return 返回过滤后的数据数量。 - */ - @Select("") - int getCountByCondition(@Param("selectTable") String selectTable, @Param("whereClause") String whereClause); -} diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/base/mapper/BaseModelMapper.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/base/mapper/BaseModelMapper.java deleted file mode 100644 index 64876005..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/base/mapper/BaseModelMapper.java +++ /dev/null @@ -1,124 +0,0 @@ -package com.orangeforms.common.core.base.mapper; - -import cn.hutool.core.bean.BeanUtil; -import org.apache.commons.collections4.CollectionUtils; - -import java.util.*; -import java.util.stream.Collectors; - -/** - * Model对象到Domain类型对象的相互转换。实现类通常声明在Model实体类中。 - * - * @param Domain域对象类型。 - * @param Model实体对象类型。 - * @author Jerry - * @date 2021-06-06 - */ -public interface BaseModelMapper { - - /** - * 转换Model实体对象到Domain域对象。 - * - * @param model Model实体对象。 - * @return Domain域对象。 - */ - D fromModel(M model); - - /** - * 转换Model实体对象列表到Domain域对象列表。 - * - * @param modelList Model实体对象列表。 - * @return Domain域对象列表。 - */ - List fromModelList(List modelList); - - /** - * 转换Domain域对象到Model实体对象。 - * - * @param domain Domain域对象。 - * @return Model实体对象。 - */ - M toModel(D domain); - - /** - * 转换Domain域对象列表到Model实体对象列表。 - * - * @param domainList Domain域对象列表。 - * @return Model实体对象列表。 - */ - List toModelList(List domainList); - - /** - * 转换bean到map - * - * @param bean bean对象。 - * @param ignoreNullValue 值为null的字段是否转换到Map。 - * @param bean类型。 - * @return 转换后的map对象。 - */ - default Map beanToMap(T bean, boolean ignoreNullValue) { - return BeanUtil.beanToMap(bean, false, ignoreNullValue); - } - - /** - * 转换bean集合到map集合 - * - * @param dataList bean对象集合。 - * @param ignoreNullValue 值为null的字段是否转换到Map。 - * @param bean类型。 - * @return 转换后的map对象集合。 - */ - default List> beanToMap(List dataList, boolean ignoreNullValue) { - if (CollectionUtils.isEmpty(dataList)) { - return new LinkedList<>(); - } - return dataList.stream() - .map(o -> BeanUtil.beanToMap(o, false, ignoreNullValue)) - .collect(Collectors.toList()); - } - - /** - * 转换map到bean。 - * - * @param map map对象。 - * @param beanClazz bean的Class对象。 - * @param bean类型。 - * @return 转换后的bean对象。 - */ - default T mapToBean(Map map, Class beanClazz) { - return BeanUtil.toBeanIgnoreError(map, beanClazz); - } - - /** - * 转换map集合到bean集合。 - * - * @param mapList map对象集合。 - * @param beanClazz bean的Class对象。 - * @param bean类型。 - * @return 转换后的bean对象集合。 - */ - default List mapToBean(List> mapList, Class beanClazz) { - if (CollectionUtils.isEmpty(mapList)) { - return new LinkedList<>(); - } - return mapList.stream() - .map(m -> BeanUtil.toBeanIgnoreError(m, beanClazz)) - .collect(Collectors.toList()); - } - - /** - * 对于Map字段到Map字段的映射场景,MapStruct会根据方法签名自动选择该函数 - * 作为对象copy的函数。由于该函数是直接返回的,因此没有对象copy,效率更高。 - * 如果没有该函数,MapStruct会生成如下代码: - * Map map = courseDto.getTeacherIdDictMap(); - * if ( map != null ) { - * course.setTeacherIdDictMap( new HashMap( map ) ); - * } - * - * @param map map对象。 - * @return 直接返回的map。 - */ - default Map mapToMap(Map map) { - return map; - } -} diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/base/mapper/DummyModelMapper.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/base/mapper/DummyModelMapper.java deleted file mode 100644 index 34009779..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/base/mapper/DummyModelMapper.java +++ /dev/null @@ -1,58 +0,0 @@ -package com.orangeforms.common.core.base.mapper; - -import java.util.List; - -/** - * 哑元占位对象。Model实体对象和Domain域对象相同的场景下使用。 - * 由于没有实际的数据转换,因此同时保证了代码统一和执行效率。 - * - * @param 数据类型。 - * @author Jerry - * @date 2021-06-06 - */ -public class DummyModelMapper implements BaseModelMapper { - - /** - * 不转换直接返回。 - * - * @param model Model实体对象。 - * @return Domain域对象。 - */ - @Override - public M fromModel(M model) { - return model; - } - - /** - * 不转换直接返回。 - * - * @param modelList Model实体对象列表。 - * @return Domain域对象列表。 - */ - @Override - public List fromModelList(List modelList) { - return modelList; - } - - /** - * 不转换直接返回。 - * - * @param domain Domain域对象。 - * @return Model实体对象。 - */ - @Override - public M toModel(M domain) { - return domain; - } - - /** - * 不转换直接返回。 - * - * @param domainList Domain域对象列表。 - * @return Model实体对象列表。 - */ - @Override - public List toModelList(List domainList) { - return domainList; - } -} diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/base/service/BaseDictService.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/base/service/BaseDictService.java deleted file mode 100644 index afca7f7d..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/base/service/BaseDictService.java +++ /dev/null @@ -1,266 +0,0 @@ -package com.orangeforms.common.core.base.service; - -import cn.hutool.core.util.ReflectUtil; -import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; -import com.orangeforms.common.core.constant.GlobalDeletedFlag; -import com.orangeforms.common.core.exception.MyRuntimeException; -import com.orangeforms.common.core.cache.DictionaryCache; -import com.orangeforms.common.core.object.TokenData; -import lombok.extern.slf4j.Slf4j; -import org.apache.commons.collections4.CollectionUtils; -import org.springframework.transaction.annotation.Transactional; - -import java.io.Serializable; -import java.util.*; - -/** - * 带有缓存功能的字典Service基类,需要留意的是,由于缓存基于Key/Value方式存储, - * 目前仅支持基于主键字段的缓存查找,其他条件的查找仍然从数据源获取。 - * - * @param Model实体对象的类型。 - * @param Model对象主键的类型。 - * @author Jerry - * @date 2021-06-06 - */ -@Slf4j -public abstract class BaseDictService extends BaseService implements IBaseDictService { - - /** - * 缓存池对象。 - */ - protected DictionaryCache dictionaryCache; - - /** - * 构造函数使用缺省缓存池对象。 - */ - public BaseDictService() { - super(); - } - - /** - * 重新加载数据库中所有当前表数据到系统内存。 - * - * @param force true则强制刷新,如果false,当缓存中存在数据时不刷新。 - */ - @Override - public void reloadCachedData(boolean force) { - // 在非强制刷新情况下。 - // 先行判断缓存中是否存在数据,如果有就不加载了。 - if (!force && dictionaryCache.getCount() > 0) { - return; - } - List allList = super.getAllList(); - dictionaryCache.reload(allList, force); - } - - /** - * 保存新增对象。 - * - * @param data 新增对象。 - * @return 返回新增对象。 - */ - @Transactional(rollbackFor = Exception.class) - @Override - public M saveNew(M data) { - if (deletedFlagFieldName != null) { - try { - setDeletedFlagMethod.invoke(data, GlobalDeletedFlag.NORMAL); - } catch (Exception e) { - log.error("Failed to call reflection [setDeletedFlagMethod] in BaseDictService.saveNew.", e); - throw new MyRuntimeException(e); - } - } - if (tenantIdField != null) { - ReflectUtil.setFieldValue(data, tenantIdField, TokenData.takeFromRequest().getTenantId()); - } - mapper().insert(data); - return data; - } - - /** - * 更新数据对象。 - * - * @param data 更新的对象。 - * @param originalData 原有数据对象。 - * @return 成功返回true,否则false。 - */ - @Transactional(rollbackFor = Exception.class) - @Override - public boolean update(M data, M originalData) { - if (tenantIdField != null) { - ReflectUtil.setFieldValue(data, tenantIdField, TokenData.takeFromRequest().getTenantId()); - } - return mapper().updateById(data) == 1; - } - - /** - * 删除指定数据。 - * - * @param id 主键Id。 - * @return 成功返回true,否则false。 - */ - @Transactional(rollbackFor = Exception.class) - @Override - public boolean remove(K id) { - return mapper().deleteById(id) == 1; - } - - /** - * 直接从缓存池中获取主键Id关联的数据。如果缓存中不存在,再从数据库中取出并回写到缓存。 - * - * @param id 主键Id。 - * @return 主键关联的数据,不存在返回null。 - */ - @SuppressWarnings("unchecked") - @Override - public M getById(Serializable id) { - M data = dictionaryCache.get((K) id); - if (data != null) { - return data; - } - data = super.getById(id); - if (data != null) { - this.dictionaryCache.put((K) id, data); - } - return data; - } - - /** - * 直接从缓存池中获取所有数据。 - * - * @return 返回所有数据。 - */ - @Override - public List getAllListFromCache() { - return dictionaryCache.getAll(); - } - - /** - * 直接从缓存池中返回符合主键 in (idValues) 条件的所有数据。 - * 对于缓存中不存在的数据,从数据库中获取并回写入缓存。 - * - * @param idValues 主键值列表。 - * @return 检索后的数据列表。 - */ - @SuppressWarnings("unchecked") - @Override - public List getInList(Set idValues) { - List resultList = dictionaryCache.getInList(idValues); - if (resultList.size() == idValues.size()) { - return resultList; - } - Set cachedIdList = new HashSet<>(); - for (M data : resultList) { - try { - cachedIdList.add((K) getIdFieldMethod.invoke(data)); - } catch (Exception e) { - log.error("Failed to call reflection method in BaseDictService.getInList.", e); - throw new MyRuntimeException(e); - } - } - // 找到未缓存的数据,然后从数据库读取后缓存。 - Set uncachedIdList = new HashSet<>(); - for (K id : idValues) { - if (!cachedIdList.contains(id)) { - uncachedIdList.add(id); - } - } - List uncachedResultList = super.getInList(uncachedIdList); - if (CollectionUtils.isNotEmpty(uncachedResultList)) { - for (M data : uncachedResultList) { - try { - K id = (K) getIdFieldMethod.invoke(data); - this.dictionaryCache.put(id, data); - } catch (Exception e) { - log.error("Failed to call reflection method in BaseDictService.getInList.", e); - throw new MyRuntimeException(e); - } - } - resultList.addAll(uncachedResultList); - } - return resultList; - } - - /** - * 返回符合 inFilterField in (inFilterValues) 条件的所有数据。属性property是主键,则从缓存中读取。 - * - * @param inFilterField 参与(In-list)过滤的Java字段。 - * @param inFilterValues 参与(In-list)过滤的Java字段值集合。 - * @return 检索后的数据列表。 - */ - @SuppressWarnings("unchecked") - @Override - public List getInList(String inFilterField, Set inFilterValues) { - if (inFilterField.equals(this.idFieldName)) { - return this.getInList((Set) inFilterValues); - } - return super.getInList(inFilterField, inFilterValues); - } - - /** - * 判断参数值列表中的所有数据,是否全部存在。另外,keyName字段在数据表中必须是唯一键值,否则返回结果会出现误判。 - * - * @param inFilterField 待校验的数据字段,这里使用Java对象中的属性,如courseId,而不是数据字段名course_id。 - * @param inFilterValues 数据值集合。 - * @return 全部存在返回true,否则false。 - */ - @SuppressWarnings("unchecked") - @Override - public boolean existUniqueKeyList(String inFilterField, Set inFilterValues) { - if (CollectionUtils.isEmpty(inFilterValues)) { - return true; - } - if (inFilterField.equals(this.idFieldName)) { - List dataList = this.getInList((Set) inFilterValues); - return dataList.size() == inFilterValues.size(); - } - String columnName = this.safeMapToColumnName(inFilterField); - QueryWrapper queryWrapper = new QueryWrapper<>(); - queryWrapper.in(columnName, inFilterValues); - return mapper().selectCount(queryWrapper) == inFilterValues.size(); - } - - /** - * 存入缓存。 - * - * @param data 新增或更新数据。 - */ - @SuppressWarnings("unchecked") - @Override - public void putDictionaryCache(M data) { - K key = (K) ReflectUtil.getFieldValue(data, idFieldName); - this.dictionaryCache.put(key, data); - } - - /** - * 根据字典主键将数据从缓存中删除。 - * - * @param id 字典主键。 - */ - @Override - public void removeDictionaryCache(K id) { - this.dictionaryCache.invalidate(id); - } - - /** - * 根据字典对象将数据从缓存中删除。 - * - * @param data 字典数据。 - */ - @SuppressWarnings("unchecked") - @Override - public void removeDictionaryCacheByModel(M data) { - K key = (K) ReflectUtil.getFieldValue(data, idFieldName); - this.dictionaryCache.invalidate(key); - } - - /** - * 获取缓存中的数据数量。 - * - * @return 缓存中的数据总量。 - */ - @Override - public int getCachedCount() { - return dictionaryCache.getCount(); - } -} diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/base/service/BaseService.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/base/service/BaseService.java deleted file mode 100644 index a70d7308..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/base/service/BaseService.java +++ /dev/null @@ -1,1816 +0,0 @@ -package com.orangeforms.common.core.base.service; - -import cn.hutool.core.collection.CollUtil; -import com.baomidou.mybatisplus.annotation.*; -import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; -import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; -import com.baomidou.mybatisplus.core.toolkit.Wrappers; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.orangeforms.common.core.annotation.*; -import com.orangeforms.common.core.base.dao.BaseDaoMapper; -import com.orangeforms.common.core.constant.AggregationType; -import com.orangeforms.common.core.constant.GlobalDeletedFlag; -import com.orangeforms.common.core.exception.InvalidDataFieldException; -import com.orangeforms.common.core.exception.MyRuntimeException; -import com.orangeforms.common.core.object.*; -import com.orangeforms.common.core.util.AopTargetUtil; -import com.orangeforms.common.core.util.ApplicationContextHolder; -import com.orangeforms.common.core.util.MyModelUtil; -import lombok.extern.slf4j.Slf4j; -import org.apache.commons.collections4.CollectionUtils; -import org.apache.commons.collections4.MapUtils; -import org.apache.commons.lang3.StringUtils; -import org.springframework.transaction.annotation.Transactional; -import cn.hutool.core.util.ReflectUtil; - -import java.io.Serializable; -import java.lang.reflect.Modifier; -import java.lang.reflect.Field; -import java.lang.reflect.Method; -import java.lang.reflect.ParameterizedType; -import java.util.*; -import java.util.function.BiConsumer; -import java.util.function.Consumer; -import java.util.function.Function; - -import static java.util.stream.Collectors.*; - -/** - * 所有Service的基类。 - * - * @param Model对象的类型。 - * @param Model对象主键的类型。 - * @author Jerry - * @date 2021-06-06 - */ -@Slf4j -public abstract class BaseService extends ServiceImpl, M> implements IBaseService { - /** - * 当前Service关联的主Model实体对象的Class。 - */ - protected final Class modelClass; - /** - * 当前Service关联的主Model实体对象主键字段的Class。 - */ - protected final Class idFieldClass; - /** - * 当前Service关联的主Model实体对象的实际表名称。 - */ - protected final String tableName; - /** - * 当前Service关联的主Model对象主键字段名称。 - */ - protected String idFieldName; - /** - * 当前Service关联的主数据表中主键列名称。 - */ - protected String idColumnName; - /** - * 当前Service关联的主Model对象逻辑删除字段名称。 - */ - protected String deletedFlagFieldName; - /** - * 当前Service关联的主数据表中逻辑删除字段名称。 - */ - protected String deletedFlagColumnName; - /** - * 当前Service关联的主Model对象租户Id字段。 - */ - protected Field tenantIdField; - /** - * 当前Service关联的主Model对象租户Id字段名称。 - */ - protected String tenantIdFieldName; - /** - * 当前Service关联的主数据表中租户Id列名称。 - */ - protected String tenantIdColumnName; - /** - * 当前Job服务源主表Model对象最后更新时间字段名称。 - */ - protected String jobUpdateTimeFieldName; - /** - * 当前Job服务源主表Model对象最后更新时间列名称。 - */ - protected String jobUpdateTimeColumnName; - /** - * 当前业务服务源主表Model对象最后更新时间字段名称。 - */ - protected String updateTimeFieldName; - /** - * 当前业务服务源主表Model对象最后更新时间列名称。 - */ - protected String updateTimeColumnName; - /** - * 当前业务服务源主表Model对象最后更新用户Id字段名称。 - */ - protected String updateUserIdFieldName; - /** - * 当前业务服务源主表Model对象最后更新用户Id列名称。 - */ - protected String updateUserIdColumnName; - /** - * 当前Service关联的主Model对象主键字段赋值方法的反射对象。 - */ - protected Method setIdFieldMethod; - /** - * 当前Service关联的主Model对象主键字段访问方法的反射对象。 - */ - protected Method getIdFieldMethod; - /** - * 当前Service关联的主Model对象逻辑删除字段赋值方法的反射对象。 - */ - protected Method setDeletedFlagMethod; - /** - * 当前Service关联的主Model对象的所有字典关联的结构列表,该字段在系统启动阶段一次性预加载,提升运行时效率。 - */ - private final List relationDictStructList = new LinkedList<>(); - /** - * 当前Service关联的主Model对象的所有常量字典关联的结构列表,该字段在系统启动阶段一次性预加载,提升运行时效率。 - */ - private final List relationConstDictStructList = new LinkedList<>(); - /** - * 当前Service关联的主Model对象的所有一对一关联的结构列表,该字段在系统启动阶段一次性预加载,提升运行时效率。 - */ - private final List relationOneToOneStructList = new LinkedList<>(); - /** - * 当前Service关联的主Model对象的所有一对多关联的结构列表,该字段在系统启动阶段一次性预加载,提升运行时效率。 - */ - private final List relationOneToManyStructList = new LinkedList<>(); - /** - * 当前Service关联的主Model对象的所有多对多关联的结构列表,该字段在系统启动阶段一次性预加载,提升运行时效率。 - */ - private final List relationManyToManyStructList = new LinkedList<>(); - /** - * 当前Service关联的主Model对象的所有一对多聚合关联的结构列表,该字段在系统启动阶段一次性预加载,提升运行时效率。 - */ - private final List relationOneToManyAggrStructList = new LinkedList<>(); - /** - * 当前Service关联的主Model对象的所有多对多聚合关联的结构列表,该字段在系统启动阶段一次性预加载,提升运行时效率。 - */ - private final List relationManyToManyAggrStructList = new LinkedList<>(); - /** - * 基础表的实体对象及表信息。 - */ - private final TableModelInfo tableModelInfo = new TableModelInfo(); - - private static final String GROUPED_KEY = "groupedKey"; - private static final String AGGREGATED_VALUE = "aggregatedValue"; - private static final String AND_OP = " AND "; - - @Override - public BaseDaoMapper getBaseMapper() { - return mapper(); - } - - /** - * 构造函数,在实例化的时候,一次性完成所有有关主Model对象信息的加载。 - */ - @SuppressWarnings("unchecked") - public BaseService() { - modelClass = (Class) ((ParameterizedType) getClass().getGenericSuperclass()).getActualTypeArguments()[0]; - idFieldClass = (Class) ((ParameterizedType) getClass().getGenericSuperclass()).getActualTypeArguments()[1]; - this.tableName = modelClass.getAnnotation(TableName.class).value(); - Field[] fields = ReflectUtil.getFields(modelClass); - for (Field field : fields) { - initializeField(field); - } - tableModelInfo.setModelName(modelClass.getSimpleName()); - tableModelInfo.setTableName(this.tableName); - tableModelInfo.setKeyFieldName(idFieldName); - tableModelInfo.setKeyColumnName(idColumnName); - } - - @Override - public TableModelInfo getTableModelInfo() { - return this.tableModelInfo; - } - - private void initializeField(Field field) { - if (idFieldName == null && null != field.getAnnotation(TableId.class)) { - idFieldName = field.getName(); - TableId c = field.getAnnotation(TableId.class); - idColumnName = c == null ? idFieldName : c.value(); - setIdFieldMethod = ReflectUtil.getMethod( - modelClass, "set" + StringUtils.capitalize(idFieldName), idFieldClass); - getIdFieldMethod = ReflectUtil.getMethod( - modelClass, "get" + StringUtils.capitalize(idFieldName)); - } - if (jobUpdateTimeFieldName == null && null != field.getAnnotation(JobUpdateTimeColumn.class)) { - jobUpdateTimeFieldName = field.getName(); - jobUpdateTimeColumnName = this.safeMapToColumnName(jobUpdateTimeFieldName); - } - if (deletedFlagFieldName == null && null != field.getAnnotation(TableLogic.class)) { - deletedFlagFieldName = field.getName(); - deletedFlagColumnName = this.safeMapToColumnName(deletedFlagFieldName); - setDeletedFlagMethod = ReflectUtil.getMethod( - modelClass, "set" + StringUtils.capitalize(deletedFlagFieldName), Integer.class); - } - if (tenantIdFieldName == null && null != field.getAnnotation(TenantFilterColumn.class)) { - tenantIdField = field; - tenantIdFieldName = field.getName(); - tenantIdColumnName = this.safeMapToColumnName(tenantIdFieldName); - } - } - - /** - * 获取子类中注入的Mapper类。 - * - * @return 子类中注入的Mapper类。 - */ - protected abstract BaseDaoMapper mapper(); - - @SuppressWarnings("unchecked") - @Override - public void saveNewOrUpdate(M data, Consumer saveNew, BiConsumer update) { - if (data == null) { - return; - } - K id = (K) ReflectUtil.getFieldValue(data, idFieldName); - if (id == null) { - saveNew.accept(data); - } else { - update.accept(data, this.getById(id)); - } - } - - @SuppressWarnings("unchecked") - @Override - public void saveNewOrUpdateBatch(List dataList, Consumer> saveNewBatch, BiConsumer update) { - if (CollUtil.isEmpty(dataList)) { - return; - } - List saveNewDataList = dataList.stream() - .filter(c -> ReflectUtil.getFieldValue(c, idFieldName) == null).collect(toList()); - if (CollUtil.isNotEmpty(saveNewDataList)) { - saveNewBatch.accept(saveNewDataList); - } - List updateDataList = dataList.stream() - .filter(c -> ReflectUtil.getFieldValue(c, idFieldName) != null).collect(toList()); - if (CollUtil.isNotEmpty(updateDataList)) { - for (M data : updateDataList) { - K id = (K) ReflectUtil.getFieldValue(data, idFieldName); - update.accept(data, this.getById(id)); - } - } - } - - /** - * 根据过滤条件删除数据。 - * - * @param filter 过滤对象。 - * @return 删除数量。 - */ - @Transactional(rollbackFor = Exception.class) - @Override - public Integer removeBy(M filter) { - return mapper().delete(new QueryWrapper<>(filter)); - } - - @Transactional(rollbackFor = Exception.class) - @Override - public void updateBatchOneToManyRelation( - String relationFieldName, - Object relationFieldValue, - String updateUserIdFieldName, - String updateTimeFieldName, - List dataList, - Consumer> batchInserter) { - // 删除在现有数据列表dataList中不存在的从表数据。 - QueryWrapper queryWrapper = new QueryWrapper<>(); - queryWrapper.eq(this.safeMapToColumnName(relationFieldName), relationFieldValue); - if (CollUtil.isNotEmpty(dataList)) { - Set keptIdSet = dataList.stream() - .filter(c -> ReflectUtil.getFieldValue(c, idFieldName) != null) - .map(c -> ReflectUtil.getFieldValue(c, idFieldName)).collect(toSet()); - if (CollUtil.isNotEmpty(keptIdSet)) { - queryWrapper.notIn(idColumnName, keptIdSet); - } - } - mapper().delete(queryWrapper); - if (CollUtil.isNotEmpty(dataList)) { - // 没有包含主键的对象被视为新对象,为了效率最优化,这里执行批量插入。 - List newDataList = dataList.stream() - .filter(c -> ReflectUtil.getFieldValue(c, idFieldName) == null).collect(toList()); - if (CollUtil.isNotEmpty(newDataList)) { - newDataList.forEach(o -> ReflectUtil.setFieldValue(o, relationFieldName, relationFieldValue)); - batchInserter.accept(newDataList); - } - // 对于主键已经存在的数据,我们视为已存在数据,这里执行逐条更新操作。 - List updateDataList = - dataList.stream().filter(c -> ReflectUtil.getFieldValue(c, idFieldName) != null).collect(toList()); - for (M updateData : updateDataList) { - // 如果前端将更新用户Id置空,这里使用当前用户更新该字段。 - if (updateUserIdFieldName != null && ReflectUtil.getFieldValue(updateData, updateUserIdFieldName) == null) { - ReflectUtil.setFieldValue(updateData, updateUserIdFieldName, TokenData.takeFromRequest().getUserId()); - } - // 如果前端将更新时间置空,这里使用当前时间更新该字段。 - if (updateTimeFieldName != null && ReflectUtil.getFieldValue(updateData, updateTimeFieldName) == null) { - ReflectUtil.setFieldValue(updateData, updateTimeFieldName, new Date()); - } - if (this.deletedFlagFieldName != null) { - ReflectUtil.setFieldValue(updateData, deletedFlagFieldName, GlobalDeletedFlag.NORMAL); - } - @SuppressWarnings("unchecked") - UpdateWrapper uw = this.createUpdateQueryForNullValue( - updateData, (K) ReflectUtil.getFieldValue(updateData, idFieldName)); - mapper().update(updateData, uw); - } - } - } - - /** - * 判断指定字段的数据是否存在,且仅仅存在一条记录。 - * 如果是基于主键的过滤,会直接调用existId过滤函数,提升性能。在有缓存的场景下,也可以利用缓存。 - * - * @param fieldName 待过滤的字段名(Java 字段)。 - * @param fieldValue 字段值。 - * @return 存在且仅存在一条返回true,否则false。 - */ - @SuppressWarnings("unchecked") - @Override - public boolean existOne(String fieldName, Object fieldValue) { - if (fieldName.equals(this.idFieldName)) { - return this.existId((K) fieldValue); - } - String columnName = MyModelUtil.mapToColumnName(fieldName, modelClass); - return mapper().selectCount(new QueryWrapper().eq(columnName, fieldValue)) == 1; - } - - /** - * 判断主键Id关联的数据是否存在。 - * - * @param id 主键Id。 - * @return 存在返回true,否则false。 - */ - @Override - public boolean existId(K id) { - return getById(id) != null; - } - - /** - * 返回符合 filterField = filterValue 条件的一条数据。 - * - * @param filterField 过滤的Java字段。 - * @param filterValue 过滤的Java字段值。 - * @return 查询后的数据对象。 - */ - @SuppressWarnings("unchecked") - @Override - public M getOne(String filterField, Object filterValue) { - if (filterField.equals(idFieldName)) { - return this.getById((K) filterValue); - } - String columnName = this.safeMapToColumnName(filterField); - QueryWrapper queryWrapper = new QueryWrapper().eq(columnName, filterValue); - return mapper().selectOne(queryWrapper); - } - - /** - * 获取主表的查询结果,以及主表关联的字典数据和一对一从表数据,以及一对一从表的字典数据。 - * - * @param id 主表主键Id。 - * @param relationParam 实体对象数据组装的参数构建器。 - * @return 查询结果对象。 - */ - @Override - public M getByIdWithRelation(K id, MyRelationParam relationParam) { - M dataObject = this.getById(id); - this.buildRelationForData(dataObject, relationParam); - return dataObject; - } - - /** - * 获取所有数据。 - * - * @return 返回所有数据。 - */ - @Override - public List getAllList() { - return mapper().selectList(Wrappers.emptyWrapper()); - } - - /** - * 获取排序后所有数据。 - * - * @param orderByProperties 需要排序的字段属性,这里使用Java对象中的属性名,而不是数据库字段名。 - * @return 返回排序后所有数据。 - */ - @Override - public List getAllListByOrder(String... orderByProperties) { - String[] columns = new String[orderByProperties.length]; - for (int i = 0; i < orderByProperties.length; i++) { - columns[i] = this.safeMapToColumnName(orderByProperties[i]); - } - return mapper().selectList(new QueryWrapper().orderByAsc(columns)); - } - - /** - * 判断参数值主键集合中的所有数据,是否全部存在 - * - * @param idSet 待校验的主键集合。 - * @return 全部存在返回true,否则false。 - */ - @Override - public boolean existAllPrimaryKeys(Set idSet) { - if (CollectionUtils.isEmpty(idSet)) { - return true; - } - return this.existUniqueKeyList(idFieldName, idSet); - } - - /** - * 判断参数值列表中的所有数据,是否全部存在。另外,keyName字段在数据表中必须是唯一键值,否则返回结果会出现误判。 - * - * @param inFilterField 待校验的数据字段,这里使用Java对象中的属性,如courseId,而不是数据字段名course_id - * @param inFilterValues 数据值列表。 - * @return 全部存在返回true,否则false。 - */ - @Override - public boolean existUniqueKeyList(String inFilterField, Set inFilterValues) { - if (CollectionUtils.isEmpty(inFilterValues)) { - return true; - } - String column = this.safeMapToColumnName(inFilterField); - return mapper().selectCount(new QueryWrapper().in(column, inFilterValues)) == inFilterValues.size(); - } - - /** - * 返回符合主键 in (idValues) 条件的所有数据。 - * - * @param idValues 主键值集合。 - * @return 检索后的数据列表。 - */ - @Override - public List getInList(Set idValues) { - return this.getInList(idFieldName, idValues, null); - } - - /** - * 返回符合 inFilterField in (inFilterValues) 条件的所有数据。 - * - * @param inFilterField 参与(In-list)过滤的Java字段。 - * @param inFilterValues 参与(In-list)过滤的Java字段值集合。 - * @return 检索后的数据列表。 - */ - @Override - public List getInList(String inFilterField, Set inFilterValues) { - return this.getInList(inFilterField, inFilterValues, null); - } - - /** - * 返回符合 inFilterField in (inFilterValues) 条件的所有数据,并根据orderBy字段排序。 - * - * @param inFilterField 参与(In-list)过滤的Java字段。 - * @param inFilterValues 参与(In-list)过滤的Java字段值集合。 - * @param orderBy 排序字段。 - * @return 检索后的数据列表。 - */ - @Override - public List getInList(String inFilterField, Set inFilterValues, String orderBy) { - if (CollectionUtils.isEmpty(inFilterValues)) { - return new LinkedList<>(); - } - String column = this.safeMapToColumnName(inFilterField); - QueryWrapper queryWrapper = new QueryWrapper().in(column, inFilterValues); - if (StringUtils.isNotBlank(orderBy)) { - queryWrapper.last(orderBy); - } - return mapper().selectList(queryWrapper); - } - - /** - * 返回符合主键 in (idValues) 条件的所有数据。同时返回关联数据。 - * - * @param idValues 主键值集合。 - * @param relationParam 实体对象数据组装的参数构建器。 - * @return 检索后的数据列表。 - */ - @Override - public List getInListWithRelation(Set idValues, MyRelationParam relationParam) { - List resultList = this.getInList(idValues); - this.buildRelationForDataList(resultList, relationParam); - return resultList; - } - - /** - * 返回符合 inFilterField in (inFilterValues) 条件的所有数据。同时返回关联数据。 - * - * @param inFilterField 参与(In-list)过滤的Java字段。 - * @param inFilterValues 参与(In-list)过滤的Java字段值集合。 - * @param relationParam 实体对象数据组装的参数构建器。 - * @return 检索后的数据列表。 - */ - @Override - public List getInListWithRelation(String inFilterField, Set inFilterValues, MyRelationParam relationParam) { - List resultList = this.getInList(inFilterField, inFilterValues); - this.buildRelationForDataList(resultList, relationParam); - return resultList; - } - - /** - * 返回符合 inFilterField in (inFilterValues) 条件的所有数据,并根据orderBy字段排序。同时返回关联数据。 - * - * @param inFilterField 参与(In-list)过滤的Java字段。 - * @param inFilterValues 参与(In-list)过滤的Java字段值集合。 - * @param orderBy 排序字段。 - * @param relationParam 实体对象数据组装的参数构建器。 - * @return 检索后的数据列表。 - */ - @Override - public List getInListWithRelation( - String inFilterField, Set inFilterValues, String orderBy, MyRelationParam relationParam) { - List resultList = this.getInList(inFilterField, inFilterValues, orderBy); - this.buildRelationForDataList(resultList, relationParam); - return resultList; - } - - /** - * 用参数对象作为过滤条件,获取数据数量。 - * - * @param filter 该方法基于mybatis 通用mapper,过滤对象中,只有被赋值的字段,才会成为where中的条件。 - * @return 返回过滤后的数据数量。 - */ - @Override - public int getCountByFilter(M filter) { - return mapper().selectCount(new QueryWrapper<>(filter)); - } - - /** - * 用参数对象作为过滤条件,判断是否存在过滤数据。 - * - * @param filter 该方法基于mybatis 通用mapper,过滤对象中,只有被赋值的字段,才会成为where中的条件。 - * @return 存在返回true,否则false。 - */ - @Override - public boolean existByFilter(M filter) { - return this.getCountByFilter(filter) > 0; - } - - /** - * 用参数对象作为过滤条件,获取查询结果。 - * - * @param filter 该方法基于mybatis的通用mapper。如果参数为null,则返回全部数据。 - * @return 返回过滤后的数据。 - */ - @Override - public List getListByFilter(M filter) { - return mapper().selectList(new QueryWrapper<>(filter)); - } - - /** - * 获取父主键Id下的所有子数据列表。 - * - * @param parentIdFieldName 父主键字段名字,如"courseId"。 - * @param parentId 父主键的值。 - * @return 父主键Id下的所有子数据列表。 - */ - @Override - public List getListByParentId(String parentIdFieldName, K parentId) { - QueryWrapper queryWrapper = new QueryWrapper<>(); - String parentIdColumn = this.safeMapToColumnName(parentIdFieldName); - if (parentId != null) { - queryWrapper.eq(parentIdColumn, parentId); - } else { - queryWrapper.isNull(parentIdColumn); - } - return mapper().selectList(queryWrapper); - } - - /** - * 根据指定的显示字段列表、过滤条件字符串和分组字符串,返回聚合计算后的查询结果。(基本是内部框架使用,不建议外部接口直接使用)。 - * - * @param selectFields 选择的字段列表,多个字段逗号分隔。 - * NOTE: 如果数据表字段和Java对象字段名字不同,Java对象字段应该以别名的形式出现。 - * 如: table_column_name modelFieldName。否则无法被反射回Bean对象。 - * @param whereClause SQL常量形式的条件从句。 - * @param groupBy SQL常量形式分组字段列表,逗号分隔。 - * @return 聚合计算后的数据结果集。 - */ - @Override - public List> getGroupedListByCondition( - String selectFields, String whereClause, String groupBy) { - return mapper().getGroupedListByCondition(tableName, selectFields, whereClause, groupBy); - } - - /** - * 根据指定的显示字段列表、过滤条件字符串和排序字符串,返回查询结果。(基本是内部框架使用,不建议外部接口直接使用)。 - * - * @param selectList 选择的Java字段列表。如果为空表示返回全部字段。 - * @param filter 过滤对象。 - * @param whereClause SQL常量形式的条件从句。 - * @param orderBy SQL常量形式排序字段列表,逗号分隔。 - * @return 查询结果。 - */ - @Override - public List getListByCondition(List selectList, M filter, String whereClause, String orderBy) { - QueryWrapper queryWrapper = new QueryWrapper<>(filter); - if (CollectionUtils.isNotEmpty(selectList)) { - String[] columns = new String[selectList.size()]; - for (int i = 0; i < selectList.size(); i++) { - columns[i] = this.safeMapToColumnName(selectList.get(i)); - } - queryWrapper.select(columns); - } - if (StringUtils.isNotBlank(whereClause)) { - queryWrapper.apply(whereClause); - } - if (StringUtils.isNotBlank(orderBy)) { - queryWrapper.last(" ORDER BY " + orderBy); - } - return mapper().selectList(queryWrapper); - } - - /** - * 用指定过滤条件,计算记录数量。(基本是内部框架使用,不建议外部接口直接使用)。 - * - * @param whereClause SQL常量形式的条件从句。 - * @return 返回过滤后的数据数量。 - */ - @Override - public Integer getCountByCondition(String whereClause) { - return mapper().getCountByCondition(this.tableName, whereClause); - } - - @Override - public CallResult verifyRelatedData(M data, M originalData) { - return CallResult.ok(); - } - - @SuppressWarnings("unchecked") - @Override - public CallResult verifyRelatedData(List dataList) { - if (CollUtil.isEmpty(dataList)) { - return CallResult.ok(); - } - // 1. 先过滤出数据列表中的主键Id集合。 - Set idList = dataList.stream() - .filter(c -> ReflectUtil.getFieldValue(c, idFieldName) != null) - .map(c -> (K) ReflectUtil.getFieldValue(c, idFieldName)).collect(toSet()); - // 2. 列表中,我们目前仅支持全部是更新数据,或全部新增数据,不能混着。如果有主键值,说明当前全是更新数据。 - if (CollUtil.isNotEmpty(idList)) { - // 3. 这里是批量读取的优化,用一个主键值得in list查询,一步获取全部原有数据。然后再在内存中基于Map排序。 - List originalList = this.getInList(idList); - Map originalMap = originalList.stream() - .collect(toMap(c -> ReflectUtil.getFieldValue(c, idFieldName), c2 -> c2)); - // 迭代列表,传入当前最新数据和更新前数据进行比对,如果关联数据变化了,就对新数据进行合法性验证。 - for (M data : dataList) { - CallResult result = this.verifyRelatedData( - data, originalMap.get(ReflectUtil.getFieldValue(data, idFieldName))); - if (!result.isSuccess()) { - return result; - } - } - } else { - // 4. 迭代列表,传入当前最新数据,对关联数据进行合法性验证。 - for (M data : dataList) { - CallResult result = this.verifyRelatedData(data, null); - if (!result.isSuccess()) { - return result; - } - } - } - return CallResult.ok(); - } - - /** - * 集成所有与主表实体对象相关的关联数据列表。包括本地和远程服务的一对一、字典、一对多和多对多聚合运算等。 - * 也可以根据实际需求,单独调用该函数所包含的各个数据集成函数。 - * NOTE: 该方法内执行的SQL将禁用数据权限过滤。 - * - * @param resultList 主表实体对象列表。数据集成将直接作用于该对象列表。 - * @param relationParam 实体对象数据组装的参数构建器。 - */ - @Override - public void buildRelationForDataList(List resultList, MyRelationParam relationParam) { - this.buildRelationForDataList(resultList, relationParam, null); - } - - /** - * 集成所有与主表实体对象相关的关联数据列表。包括一对一、字典、一对多和多对多聚合运算等。 - * 也可以根据实际需求,单独调用该函数所包含的各个数据集成函数。 - * NOTE: 该方法内执行的SQL将禁用数据权限过滤。 - * - * @param resultList 主表实体对象列表。数据集成将直接作用于该对象列表。 - * @param relationParam 实体对象数据组装的参数构建器。 - * @param ignoreFields 该集合中的字段,即便包含注解也不会在当前调用中进行数据组装。 - */ - @Override - public void buildRelationForDataList( - List resultList, MyRelationParam relationParam, Set ignoreFields) { - if (relationParam == null || CollectionUtils.isEmpty(resultList)) { - return; - } - boolean dataFilterValue = GlobalThreadLocal.setDataFilter(false); - try { - // 集成本地一对一和字段级别的数据关联。 - boolean buildOneToOne = relationParam.isBuildOneToOne() || relationParam.isBuildOneToOneWithDict(); - // 这里集成一对一关联。 - if (buildOneToOne) { - this.buildOneToOneForDataList(resultList, relationParam.isBuildOneToOneWithDict(), ignoreFields); - } - // 集成一对多关联 - if (relationParam.isBuildOneToMany()) { - this.buildOneToManyForDataList(resultList, ignoreFields); - } - // 这里集成字典关联 - if (relationParam.isBuildDict()) { - // 构建常量字典关联关系 - this.buildConstDictForDataList(resultList, ignoreFields); - this.buildDictForDataList(resultList, buildOneToOne, ignoreFields); - } - // 组装本地聚合计算关联数据 - if (relationParam.isBuildRelationAggregation()) { - // 处理多对多场景下,根据主表的结果,进行从表聚合数据的计算。 - this.buildManyToManyAggregationForDataList(resultList, buildAggregationAdditionalWhereCriteria(), ignoreFields); - // 处理多一多场景下,根据主表的结果,进行从表聚合数据的计算。 - this.buildOneToManyAggregationForDataList(resultList, buildAggregationAdditionalWhereCriteria(), ignoreFields); - } - } finally { - GlobalThreadLocal.setDataFilter(dataFilterValue); - } - } - - /** - * 该函数主要用于对查询结果的批量导出。不同于支持分页的列表查询,批量导出没有分页机制, - * 因此在导出数据量较大的情况下,很容易给数据库的内存、CPU和IO带来较大的压力。而通过 - * 我们的分批处理,可以极大的规避该问题的出现几率。调整batchSize的大小,也可以有效的 - * 改善运行效率。 - * 我们目前的处理机制是,先从主表取出所有符合条件的主表数据,这样可以避免分批处理时, - * 后面几批数据,因为skip过多而带来的效率问题。因为是单表过滤,不会给数据库带来过大的压力。 - * 之后再在主表结果集数据上进行分批级联处理。 - * 集成所有与主表实体对象相关的关联数据列表。包括一对一、字典、一对多和多对多聚合运算等。 - * 也可以根据实际需求,单独调用该函数所包含的各个数据集成函数。 - * NOTE: 该方法内执行的SQL将禁用数据权限过滤。 - * - * @param resultList 主表实体对象列表。数据集成将直接作用于该对象列表。 - * @param relationParam 实体对象数据组装的参数构建器。 - * @param batchSize 每批集成的记录数量。小于等于0时将不做分批处理。 - */ - @Override - public void buildRelationForDataList(List resultList, MyRelationParam relationParam, int batchSize) { - this.buildRelationForDataList(resultList, relationParam, batchSize, null); - } - - /** - * 该函数主要用于对查询结果的批量导出。不同于支持分页的列表查询,批量导出没有分页机制, - * 因此在导出数据量较大的情况下,很容易给数据库的内存、CPU和IO带来较大的压力。而通过 - * 我们的分批处理,可以极大的规避该问题的出现几率。调整batchSize的大小,也可以有效的 - * 改善运行效率。 - * 我们目前的处理机制是,先从主表取出所有符合条件的主表数据,这样可以避免分批处理时, - * 后面几批数据,因为skip过多而带来的效率问题。因为是单表过滤,不会给数据库带来过大的压力。 - * 之后再在主表结果集数据上进行分批级联处理。 - * 集成所有与主表实体对象相关的关联数据列表。包括一对一、字典、一对多和多对多聚合运算等。 - * 也可以根据实际需求,单独调用该函数所包含的各个数据集成函数。 - * NOTE: 该方法内执行的SQL将禁用数据权限过滤。 - * - * @param resultList 主表实体对象列表。数据集成将直接作用于该对象列表。 - * @param relationParam 实体对象数据组装的参数构建器。 - * @param batchSize 每批集成的记录数量。小于等于0时将不做分批处理。 - * @param ignoreFields 该集合中的字段,即便包含注解也不会在当前调用中进行数据组装。 - */ - @Override - public void buildRelationForDataList( - List resultList, MyRelationParam relationParam, int batchSize, Set ignoreFields) { - if (CollectionUtils.isEmpty(resultList)) { - return; - } - if (batchSize <= 0) { - this.buildRelationForDataList(resultList, relationParam); - return; - } - int totalCount = resultList.size(); - int fromIndex = 0; - int toIndex = Math.min(batchSize, totalCount); - while (toIndex > fromIndex) { - List subResultList = resultList.subList(fromIndex, toIndex); - this.buildRelationForDataList(subResultList, relationParam, ignoreFields); - fromIndex = toIndex; - toIndex = Math.min(batchSize + fromIndex, totalCount); - } - } - - /** - * 集成所有与主表实体对象相关的关联数据对象。包括本地和远程服务的一对一、字典、一对多和多对多聚合运算等。 - * 也可以根据实际需求,单独调用该函数所包含的各个数据集成函数。 - * NOTE: 该方法内执行的SQL将禁用数据权限过滤。 - * - * @param dataObject 主表实体对象。数据集成将直接作用于该对象。 - * @param relationParam 实体对象数据组装的参数构建器。 - * @param 实体对象类型。 - */ - @Override - public void buildRelationForData(T dataObject, MyRelationParam relationParam) { - this.buildRelationForData(dataObject, relationParam, null); - } - - /** - * 集成所有与主表实体对象相关的关联数据对象。包括一对一、字典、一对多和多对多聚合运算等。 - * 也可以根据实际需求,单独调用该函数所包含的各个数据集成函数。 - * NOTE: 该方法内执行的SQL将禁用数据权限过滤。 - * - * @param dataObject 主表实体对象。数据集成将直接作用于该对象。 - * @param relationParam 实体对象数据组装的参数构建器。 - * @param ignoreFields 该集合中的字段,即便包含注解也不会在当前调用中进行数据组装。 - * @param 实体对象类型。 - */ - @Override - public void buildRelationForData(T dataObject, MyRelationParam relationParam, Set ignoreFields) { - if (dataObject == null || relationParam == null) { - return; - } - boolean dataFilterValue = GlobalThreadLocal.setDataFilter(false); - try { - // 集成本地一对一和字段级别的数据关联。 - boolean buildOneToOne = relationParam.isBuildOneToOne() || relationParam.isBuildOneToOneWithDict(); - if (buildOneToOne) { - this.buildOneToOneForData(dataObject, relationParam.isBuildOneToOneWithDict(), ignoreFields); - } - // 集成一对多关联 - if (relationParam.isBuildOneToMany()) { - this.buildOneToManyForData(dataObject, ignoreFields); - } - if (relationParam.isBuildDict()) { - // 构建常量字典关联关系 - this.buildConstDictForData(dataObject, ignoreFields); - // 构建本地数据字典关联关系。 - this.buildDictForData(dataObject, buildOneToOne, ignoreFields); - } - // 组装本地聚合计算关联数据 - if (relationParam.isBuildRelationAggregation()) { - // 开始处理多对多场景。 - buildManyToManyAggregationForData(dataObject, buildAggregationAdditionalWhereCriteria(), ignoreFields); - // 构建一对多场景 - buildOneToManyAggregationForData(dataObject, buildAggregationAdditionalWhereCriteria(), ignoreFields); - } - if (relationParam.isBuildRelationManyToMany()) { - this.buildRelationManyToMany(dataObject, ignoreFields); - } - } finally { - GlobalThreadLocal.setDataFilter(dataFilterValue); - } - } - - /** - * 集成主表和多对多中间表之间的关联关系。 - * - * @param dataObject 关联后的主表数据对象。 - * @param ignoreFields 该集合中的字段,即便包含注解也不会在当前调用中进行数据组装。 - */ - private void buildRelationManyToMany(T dataObject, Set ignoreFields) { - if (dataObject == null || CollectionUtils.isEmpty(this.relationManyToManyStructList)) { - return; - } - for (RelationStruct relationStruct : this.relationManyToManyStructList) { - if (ignoreFields != null && ignoreFields.contains(relationStruct.relationField.getName())) { - continue; - } - Object masterIdValue = ReflectUtil.getFieldValue(dataObject, relationStruct.masterIdField); - String masterIdColumn = this.safeMapToColumnName(relationStruct.masterIdField.getName()); - Map filterMap = new HashMap<>(1); - filterMap.put(masterIdColumn, masterIdValue); - List manyToManyList = relationStruct.manyToManyMapper.selectByMap(filterMap); - ReflectUtil.setFieldValue(dataObject, relationStruct.relationField, manyToManyList); - } - } - - /** - * 为实体对象参数列表数据集成本地静态字典关联数据。 - * - * @param resultList 主表数据列表。 - * @param ignoreFields 该集合中的字段,即便包含注解也不会在当前调用中进行数据组装。 - */ - private void buildConstDictForDataList(List resultList, Set ignoreFields) { - if (CollectionUtils.isEmpty(this.relationConstDictStructList) || CollectionUtils.isEmpty(resultList)) { - return; - } - for (RelationStruct relationStruct : this.relationConstDictStructList) { - if (ignoreFields != null && ignoreFields.contains(relationStruct.relationField.getName())) { - continue; - } - for (M dataObject : resultList) { - Object id = ReflectUtil.getFieldValue(dataObject, relationStruct.masterIdField); - if (id != null) { - String name = relationStruct.dictMap.get(id); - if (name != null) { - Map dictMap = new HashMap<>(2); - dictMap.put("id", id); - dictMap.put("name", name); - ReflectUtil.setFieldValue(dataObject, relationStruct.relationField, dictMap); - } - } - } - } - } - - /** - * 为参数实体对象数据集成本地静态字典关联数据。 - * - * @param dataObject 实体对象。 - * @param ignoreFields 该集合中的字段,即便包含注解也不会在当前调用中进行数据组装。 - */ - private void buildConstDictForData(T dataObject, Set ignoreFields) { - if (dataObject == null || CollectionUtils.isEmpty(this.relationConstDictStructList)) { - return; - } - for (RelationStruct relationStruct : this.relationConstDictStructList) { - if (ignoreFields != null && ignoreFields.contains(relationStruct.relationField.getName())) { - continue; - } - Object id = ReflectUtil.getFieldValue(dataObject, relationStruct.masterIdField); - if (id != null) { - String name = relationStruct.dictMap.get(id); - if (name != null) { - Map dictMap = new HashMap<>(2); - dictMap.put("id", id); - dictMap.put("name", name); - ReflectUtil.setFieldValue(dataObject, relationStruct.relationField, dictMap); - } - } - } - } - - /** - * 为实体对象参数列表数据集成本地字典关联数据。 - * - * @param resultList 实体对象数据列表。 - * @param hasBuiltOneToOne 性能优化参数。如果该值为true,同时注解参数RelationDict.equalOneToOneRelationField - * 不为空,则直接从已经完成一对一数据关联的从表对象中获取数据,减少一次数据库交互。 - * @param ignoreFields 该集合中的字段,即便包含注解也不会在当前调用中进行数据组装。 - */ - private void buildDictForDataList(List resultList, boolean hasBuiltOneToOne, Set ignoreFields) { - if (CollectionUtils.isEmpty(this.relationDictStructList) || CollectionUtils.isEmpty(resultList)) { - return; - } - for (RelationStruct relationStruct : this.relationDictStructList) { - if (ignoreFields != null && ignoreFields.contains(relationStruct.relationField.getName())) { - continue; - } - List relationList = null; - if (hasBuiltOneToOne && relationStruct.equalOneToOneRelationField != null) { - relationList = resultList.stream() - .map(obj -> ReflectUtil.getFieldValue(obj, relationStruct.equalOneToOneRelationField)) - .filter(Objects::nonNull) - .collect(toList()); - } else { - String slaveId = relationStruct.relationDict.slaveIdField(); - Set masterIdSet = resultList.stream() - .map(obj -> ReflectUtil.getFieldValue(obj, relationStruct.masterIdField)) - .filter(Objects::nonNull) - .collect(toSet()); - if (CollectionUtils.isNotEmpty(masterIdSet)) { - relationList = relationStruct.service.getInList(slaveId, masterIdSet); - } - } - MyModelUtil.makeDictRelation( - modelClass, resultList, relationList, relationStruct.relationField.getName()); - } - } - - /** - * 为实体对象数据集成本地数据字典关联数据。 - * - * @param dataObject 实体对象。 - * @param hasBuiltOneToOne 性能优化参数。如果该值为true,同时注解参数RelationDict.equalOneToOneRelationField - * 不为空,则直接从已经完成一对一数据关联的从表对象中获取数据,减少一次数据库交互。 - * @param ignoreFields 该集合中的字段,即便包含注解也不会在当前调用中进行数据组装。 - */ - private void buildDictForData(T dataObject, boolean hasBuiltOneToOne, Set ignoreFields) { - if (dataObject == null || CollectionUtils.isEmpty(this.relationDictStructList)) { - return; - } - for (RelationStruct relationStruct : this.relationDictStructList) { - if (ignoreFields != null && ignoreFields.contains(relationStruct.relationField.getName())) { - continue; - } - Object relationObject = null; - if (hasBuiltOneToOne && relationStruct.equalOneToOneRelationField != null) { - relationObject = ReflectUtil.getFieldValue(dataObject, relationStruct.equalOneToOneRelationField); - } else { - Object id = ReflectUtil.getFieldValue(dataObject, relationStruct.masterIdField); - if (id != null) { - relationObject = relationStruct.service.getOne(relationStruct.relationDict.slaveIdField(), id); - } - } - MyModelUtil.makeDictRelation( - modelClass, dataObject, relationObject, relationStruct.relationField.getName()); - } - } - - /** - * 为实体对象参数列表数据集成本地一对一关联数据。 - * - * @param resultList 实体对象数据列表。 - * @param withDict 关联从表数据后,是否把从表的字典数据也一起关联了。 - * @param ignoreFields 该集合中的字段,即便包含注解也不会在当前调用中进行数据组装。 - */ - private void buildOneToOneForDataList(List resultList, boolean withDict, Set ignoreFields) { - if (CollectionUtils.isEmpty(this.relationOneToOneStructList) || CollectionUtils.isEmpty(resultList)) { - return; - } - for (RelationStruct relationStruct : this.relationOneToOneStructList) { - if (ignoreFields != null && ignoreFields.contains(relationStruct.relationField.getName())) { - continue; - } - Set masterIdSet = resultList.stream() - .map(obj -> ReflectUtil.getFieldValue(obj, relationStruct.masterIdField)) - .filter(Objects::nonNull) - .collect(toSet()); - // 从主表集合中,抽取主表关联字段的集合,再以in list形式去从表中查询。 - if (CollectionUtils.isNotEmpty(masterIdSet)) { - BaseService relationService = relationStruct.service; - List relationList = - relationService.getInList(relationStruct.relationOneToOne.slaveIdField(), masterIdSet); - MyModelUtil.makeOneToOneRelation( - modelClass, resultList, relationList, relationStruct.relationField.getName()); - // 仅仅当需要加载从表字典关联时,才去加载。 - if (withDict && relationStruct.relationOneToOne.loadSlaveDict() - && CollectionUtils.isNotEmpty(relationList)) { - @SuppressWarnings("unchecked") - BaseService proxyTarget = - (BaseService) AopTargetUtil.getTarget(relationService); - // 关联本地字典。 - proxyTarget.buildDictForDataList(relationList, false, ignoreFields); - // 关联常量字典 - proxyTarget.buildConstDictForDataList(relationList, ignoreFields); - } - } - } - } - - /** - * 为实体对象数据集成本地一对一关联数据。 - * - * @param dataObject 实体对象。 - * @param withDict 关联从表数据后,是否把从表的字典数据也一起关联了。 - * @param ignoreFields 该集合中的字段,即便包含注解也不会在当前调用中进行数据组装。 - */ - private void buildOneToOneForData(M dataObject, boolean withDict, Set ignoreFields) { - if (dataObject == null || CollectionUtils.isEmpty(this.relationOneToOneStructList)) { - return; - } - for (RelationStruct relationStruct : this.relationOneToOneStructList) { - if (ignoreFields != null && ignoreFields.contains(relationStruct.relationField.getName())) { - continue; - } - Object id = ReflectUtil.getFieldValue(dataObject, relationStruct.masterIdField); - if (id != null) { - BaseService relationService = relationStruct.service; - Object relationObject = relationService.getOne(relationStruct.relationOneToOne.slaveIdField(), id); - ReflectUtil.setFieldValue(dataObject, relationStruct.relationField, relationObject); - // 仅仅当需要加载从表字典关联时,才去加载。 - if (withDict && relationStruct.relationOneToOne.loadSlaveDict() && relationObject != null) { - @SuppressWarnings("unchecked") - BaseService proxyTarget = - (BaseService) AopTargetUtil.getTarget(relationService); - // 关联本地字典 - proxyTarget.buildDictForData(relationObject, false, ignoreFields); - // 关联常量字典 - proxyTarget.buildConstDictForData(relationObject, ignoreFields); - } - } - } - } - - /** - * 为实体对象参数列表数据集成本地一对多关联数据。 - * - * @param resultList 实体对象数据列表。 - * @param ignoreFields 该集合中的字段,即便包含注解也不会在当前调用中进行数据组装。 - */ - private void buildOneToManyForDataList(List resultList, Set ignoreFields) { - if (CollectionUtils.isEmpty(this.relationOneToManyStructList) || CollectionUtils.isEmpty(resultList)) { - return; - } - for (RelationStruct relationStruct : this.relationOneToManyStructList) { - if (ignoreFields != null && ignoreFields.contains(relationStruct.relationField.getName())) { - continue; - } - Set masterIdSet = resultList.stream() - .map(obj -> ReflectUtil.getFieldValue(obj, relationStruct.masterIdField)) - .filter(Objects::nonNull) - .collect(toSet()); - // 从主表集合中,抽取主表关联字段的集合,再以in list形式去从表中查询。 - if (CollectionUtils.isNotEmpty(masterIdSet)) { - BaseService relationService = relationStruct.service; - List relationList = - relationService.getInList(relationStruct.relationOneToMany.slaveIdField(), masterIdSet); - MyModelUtil.makeOneToManyRelation( - modelClass, resultList, relationList, relationStruct.relationField.getName()); - } - } - } - - /** - * 为实体对象数据集成本地一对多关联数据。 - * - * @param dataObject 实体对象。 - * @param ignoreFields 该集合中的字段,即便包含注解也不会在当前调用中进行数据组装。 - */ - private void buildOneToManyForData(M dataObject, Set ignoreFields) { - if (dataObject == null || CollectionUtils.isEmpty(this.relationOneToManyStructList)) { - return; - } - for (RelationStruct relationStruct : this.relationOneToManyStructList) { - if (ignoreFields != null && ignoreFields.contains(relationStruct.relationField.getName())) { - continue; - } - Object id = ReflectUtil.getFieldValue(dataObject, relationStruct.masterIdField); - if (id != null) { - BaseService relationService = relationStruct.service; - Set masterIdSet = new HashSet<>(1); - masterIdSet.add(id); - List relationObject = relationService.getInList( - relationStruct.relationOneToMany.slaveIdField(), masterIdSet); - ReflectUtil.setFieldValue(dataObject, relationStruct.relationField, relationObject); - } - } - } - - /** - * 根据实体对象参数列表和过滤条件,集成本地多对多关联聚合计算数据。 - * - * @param resultList 实体对象数据列表。 - * @param criteriaListMap 过滤参数。key为主表字段名称,value是过滤条件列表。 - * @param ignoreFields 该集合中的字段,即便包含注解也不会在当前调用中进行数据组装。 - */ - private void buildManyToManyAggregationForDataList( - List resultList, Map> criteriaListMap, Set ignoreFields) { - if (CollectionUtils.isEmpty(this.relationManyToManyAggrStructList) || CollectionUtils.isEmpty(resultList)) { - return; - } - if (criteriaListMap == null) { - criteriaListMap = new HashMap<>(this.relationManyToManyAggrStructList.size()); - } - for (RelationStruct relationStruct : this.relationManyToManyAggrStructList) { - if (ignoreFields != null && ignoreFields.contains(relationStruct.relationField.getName())) { - continue; - } - Set masterIdSet = resultList.stream() - .map(obj -> ReflectUtil.getFieldValue(obj, relationStruct.masterIdField)) - .filter(Objects::nonNull) - .collect(toSet()); - if (CollectionUtils.isEmpty(masterIdSet)) { - continue; - } - RelationManyToManyAggregation relation = relationStruct.relationManyToManyAggregation; - // 提取关联中用到的各种字段和表数据。 - BasicAggregationRelationInfo basicRelationInfo = - this.parseBasicAggregationRelationInfo(relationStruct, criteriaListMap); - // 构建多表关联的where语句 - StringBuilder whereClause = new StringBuilder(256); - // 如果需要从表聚合计算或参与过滤,则需要把中间表和从表之间的关联条件加上。 - if (!basicRelationInfo.onlySelectRelationTable) { - whereClause.append(basicRelationInfo.relationTable) - .append(".") - .append(basicRelationInfo.relationSlaveColumn) - .append(" = ") - .append(basicRelationInfo.slaveTable) - .append(".") - .append(basicRelationInfo.slaveColumn); - } else { - whereClause.append("1 = 1"); - } - List criteriaList = criteriaListMap.get(relationStruct.relationField.getName()); - if (criteriaList == null) { - criteriaList = new LinkedList<>(); - } - MyWhereCriteria inlistFilter = new MyWhereCriteria(); - inlistFilter.setCriteria(relation.relationModelClass(), - relation.relationMasterIdField(), MyWhereCriteria.OPERATOR_IN, masterIdSet); - criteriaList.add(inlistFilter); - if (StringUtils.isNotBlank(relationStruct.service.deletedFlagFieldName)) { - MyWhereCriteria deleteFilter = new MyWhereCriteria(); - deleteFilter.setCriteria( - relation.slaveModelClass(), - relationStruct.service.deletedFlagFieldName, - MyWhereCriteria.OPERATOR_EQUAL, - GlobalDeletedFlag.NORMAL); - criteriaList.add(deleteFilter); - } - String criteriaString = MyWhereCriteria.makeCriteriaString(criteriaList); - whereClause.append(AND_OP).append(criteriaString); - StringBuilder tableNames = new StringBuilder(64); - tableNames.append(basicRelationInfo.relationTable); - if (!basicRelationInfo.onlySelectRelationTable) { - tableNames.append(", ").append(basicRelationInfo.slaveTable); - } - List> aggregationMapList = - mapper().getGroupedListByCondition(tableNames.toString(), - basicRelationInfo.selectList, whereClause.toString(), basicRelationInfo.groupBy); - doMakeLocalAggregationData(aggregationMapList, resultList, relationStruct); - } - } - - /** - * 根据实体对象和过滤条件,集成本地多对多关联聚合计算数据。 - * - * @param dataObject 实体对象。 - * @param criteriaListMap 过滤参数。key为主表字段名称,value是过滤条件列表。 - * @param ignoreFields 该集合中的字段,即便包含注解也不会在当前调用中进行数据组装。 - */ - private void buildManyToManyAggregationForData( - T dataObject, Map> criteriaListMap, Set ignoreFields) { - if (dataObject == null || CollectionUtils.isEmpty(this.relationManyToManyAggrStructList)) { - return; - } - if (criteriaListMap == null) { - criteriaListMap = new HashMap<>(relationManyToManyAggrStructList.size()); - } - for (RelationStruct relationStruct : this.relationManyToManyAggrStructList) { - if (ignoreFields != null && ignoreFields.contains(relationStruct.relationField.getName())) { - continue; - } - Object masterIdValue = ReflectUtil.getFieldValue(dataObject, relationStruct.masterIdField); - if (masterIdValue != null) { - BasicAggregationRelationInfo basicRelationInfo = - this.parseBasicAggregationRelationInfo(relationStruct, criteriaListMap); - // 组装过滤条件 - String whereClause = this.makeManyToManyWhereClause( - relationStruct, masterIdValue, basicRelationInfo, criteriaListMap); - StringBuilder tableNames = new StringBuilder(64); - tableNames.append(basicRelationInfo.relationTable); - if (!basicRelationInfo.onlySelectRelationTable) { - tableNames.append(", ").append(basicRelationInfo.slaveTable); - } - List> aggregationMapList = - mapper().getGroupedListByCondition(tableNames.toString(), - basicRelationInfo.selectList, whereClause, basicRelationInfo.groupBy); - // 将查询后的结果回填到主表数据中。 - if (CollectionUtils.isNotEmpty(aggregationMapList)) { - Object value = aggregationMapList.get(0).get(AGGREGATED_VALUE); - if (value != null) { - ReflectUtil.setFieldValue(dataObject, relationStruct.relationField, value); - } - } - } - } - } - - /** - * 根据实体对象参数列表和过滤条件,集成本地一对多关联聚合计算数据。 - * - * @param resultList 实体对象数据列表。 - * @param criteriaListMap 过滤参数。key为主表字段名称,value是过滤条件列表。 - * @param ignoreFields 该集合中的字段,即便包含注解也不会在当前调用中进行数据组装。 - */ - private void buildOneToManyAggregationForDataList( - List resultList, Map> criteriaListMap, Set ignoreFields) { - // 处理多一多场景下,根据主表的结果,进行从表聚合数据的计算。 - if (CollectionUtils.isEmpty(this.relationOneToManyAggrStructList) || CollectionUtils.isEmpty(resultList)) { - return; - } - if (criteriaListMap == null) { - criteriaListMap = new HashMap<>(relationOneToManyAggrStructList.size()); - } - for (RelationStruct relationStruct : this.relationOneToManyAggrStructList) { - if (ignoreFields != null && ignoreFields.contains(relationStruct.relationField.getName())) { - continue; - } - Set masterIdSet = resultList.stream() - .map(obj -> ReflectUtil.getFieldValue(obj, relationStruct.masterIdField)) - .filter(Objects::nonNull) - .collect(toSet()); - if (CollectionUtils.isEmpty(masterIdSet)) { - continue; - } - RelationOneToManyAggregation relation = relationStruct.relationOneToManyAggregation; - // 开始获取后面所需的各种关联数据。此部分今后可以移植到缓存中,无需每次计算。 - String slaveTable = MyModelUtil.mapToTableName(relation.slaveModelClass()); - String slaveColumnName = MyModelUtil.mapToColumnName(relation.slaveIdField(), relation.slaveModelClass()); - Tuple2 selectAndGroupByTuple = makeSelectListAndGroupByClause( - slaveTable, slaveColumnName, relation.slaveModelClass(), - slaveTable, relation.aggregationField(), relation.aggregationType()); - String selectList = selectAndGroupByTuple.getFirst(); - String groupBy = selectAndGroupByTuple.getSecond(); - List criteriaList = criteriaListMap.get(relationStruct.relationField.getName()); - if (criteriaList == null) { - criteriaList = new LinkedList<>(); - } - MyWhereCriteria inlistFilter = new MyWhereCriteria(); - inlistFilter.setCriteria(relation.slaveModelClass(), - relation.slaveIdField(), MyWhereCriteria.OPERATOR_IN, masterIdSet); - criteriaList.add(inlistFilter); - if (StringUtils.isNotBlank(relationStruct.service.deletedFlagFieldName)) { - MyWhereCriteria deleteFilter = new MyWhereCriteria(); - deleteFilter.setCriteria( - relation.slaveModelClass(), - relationStruct.service.deletedFlagFieldName, - MyWhereCriteria.OPERATOR_EQUAL, - GlobalDeletedFlag.NORMAL); - criteriaList.add(deleteFilter); - } - String criteriaString = MyWhereCriteria.makeCriteriaString(criteriaList); - List> aggregationMapList = - mapper().getGroupedListByCondition(slaveTable, selectList, criteriaString, groupBy); - doMakeLocalAggregationData(aggregationMapList, resultList, relationStruct); - } - } - - /** - * 根据实体对象和过滤条件,集成本地一对多关联聚合计算数据。 - * - * @param dataObject 实体对象。 - * @param criteriaListMap 过滤参数。key为主表字段名称,value是过滤条件列表。 - * @param ignoreFields 该集合中的字段,即便包含注解也不会在当前调用中进行数据组装。 - */ - private void buildOneToManyAggregationForData( - T dataObject, Map> criteriaListMap, Set ignoreFields) { - if (dataObject == null || CollectionUtils.isEmpty(this.relationOneToManyAggrStructList)) { - return; - } - if (criteriaListMap == null) { - criteriaListMap = new HashMap<>(relationOneToManyAggrStructList.size()); - } - for (RelationStruct relationStruct : this.relationOneToManyAggrStructList) { - if (ignoreFields != null && ignoreFields.contains(relationStruct.relationField.getName())) { - continue; - } - Object masterIdValue = ReflectUtil.getFieldValue(dataObject, relationStruct.masterIdField); - if (masterIdValue != null) { - RelationOneToManyAggregation relation = relationStruct.relationOneToManyAggregation; - String slaveTable = MyModelUtil.mapToTableName(relation.slaveModelClass()); - String slaveColumnName = - MyModelUtil.mapToColumnName(relation.slaveIdField(), relation.slaveModelClass()); - Tuple2 selectAndGroupByTuple = makeSelectListAndGroupByClause( - slaveTable, slaveColumnName, relation.slaveModelClass(), - slaveTable, relation.aggregationField(), relation.aggregationType()); - String selectList = selectAndGroupByTuple.getFirst(); - String groupBy = selectAndGroupByTuple.getSecond(); - String whereClause = this.makeOneToManyWhereClause( - relationStruct, masterIdValue, slaveColumnName, criteriaListMap); - // 获取分组聚合计算结果 - List> aggregationMapList = - mapper().getGroupedListByCondition(slaveTable, selectList, whereClause, groupBy); - // 将计算结果回填到主表关联字段 - if (CollectionUtils.isNotEmpty(aggregationMapList)) { - Object value = aggregationMapList.get(0).get(AGGREGATED_VALUE); - if (value != null) { - ReflectUtil.setFieldValue(dataObject, relationStruct.relationField, value); - } - } - } - } - } - - /** - * 仅仅在spring boot 启动后的监听器事件中调用,缓存所有service的关联关系,加速后续的数据绑定效率。 - */ - @Override - public void loadRelationStruct() { - Field[] fields = ReflectUtil.getFields(modelClass); - for (Field f : fields) { - initializeRelationDictStruct(f); - initializeRelationStruct(f); - initializeRelationAggregationStruct(f); - } - } - - /** - * 缺省实现返回null,在进行一对多和多对多聚合计算时,没有额外的自定义过滤条件。如有需要,需子类自行实现。 - * - * @return 自定义过滤条件列表。 - */ - protected Map> buildAggregationAdditionalWhereCriteria() { - return null; - } - - /** - * 判断当前对象的关联字段数据是否需要被验证,如果原有对象为null,表示新对象第一次插入,则必须验证。 - * - * @param object 新对象。 - * @param originalObject 原有对象。 - * @param fieldGetter 获取需要验证字段的函数对象。 - * @param 需要验证字段的类型。 - * @return 需要关联验证返回true,否则false。 - */ - protected boolean needToVerify(M object, M originalObject, Function fieldGetter) { - if (object == null) { - return false; - } - T data = fieldGetter.apply(object); - if (data == null) { - return false; - } - if (data instanceof String) { - String stringData = (String) data; - if (stringData.length() == 0) { - return false; - } - } - if (originalObject == null) { - return true; - } - T originalData = fieldGetter.apply(originalObject); - return !data.equals(originalData); - } - - /** - * 因为Mybatis Plus中QueryWrapper的条件方法都要求传入数据表字段名,因此提供该函数将 - * Java实体对象的字段名转换为数据表字段名,如果不存在会抛出异常。 - * 另外在MyModelUtil.mapToColumnName有一级缓存,对于查询过的对象字段都会放到缓存中, - * 下次映射转换的时候,会直接从缓存获取。 - * - * @param fieldName Java实体对象的字段名。 - * @return 对应的数据表字段名。 - */ - protected String safeMapToColumnName(String fieldName) { - String columnName = MyModelUtil.mapToColumnName(fieldName, modelClass); - if (columnName == null) { - throw new InvalidDataFieldException(modelClass.getSimpleName(), fieldName); - } - return columnName; - } - - /** - * 因为Mybatis Plus在update的时候,不能将实体对象中值为null的字段,更新为null, - * 而且忽略更新,在全部更新场景下,这个是非常重要的,所以我们写了这个函数绕开这一问题。 - * 该函数会遍历实体对象中,所有不包含@Transient注解,没有transient修饰符的字段,如果 - * 当前对象的该字段值为null,则会调用UpdateWrapper的set方法,将该字段赋值为null。 - * 相比于其他重载方法,该方法会将参数中的主键id,设置到UpdateWrapper的过滤条件中。 - * - * @param o 实体对象。 - * @param id 实体对象的主键值。 - * @return 创建后的UpdateWrapper。 - */ - protected UpdateWrapper createUpdateQueryForNullValue(M o, K id) { - UpdateWrapper uw = createUpdateQueryForNullValue(o, modelClass); - try { - M filter = modelClass.newInstance(); - this.setIdFieldMethod.invoke(filter, id); - uw.setEntity(filter); - } catch (Exception e) { - log.error("Failed to call reflection code of BaseService.createUpdateQueryForNullValue.", e); - throw new MyRuntimeException(e); - } - return uw; - } - - /** - * 因为Mybatis Plus在update的时候,不能将实体对象中值为null的字段,更新为null, - * 而且忽略更新,在全部更新场景下,这个是非常重要的,所以我们写了这个函数绕开这一问题。 - * 该函数会遍历实体对象中,所有不包含@Transient注解,没有transient修饰符的字段,如果 - * 当前对象的该字段值为null,则会调用UpdateWrapper的set方法,将该字段赋值为null。 - * - * @param o 实体对象。 - * @return 创建后的UpdateWrapper。 - */ - protected UpdateWrapper createUpdateQueryForNullValue(M o) { - return createUpdateQueryForNullValue(o, modelClass); - } - - /** - * 因为Mybatis Plus在update的时候,不能将实体对象中值为null的字段,更新为null, - * 而且忽略更新,在全部更新场景下,这个是非常重要的,所以我们写了这个函数绕开这一问题。 - * 该函数会遍历实体对象中,所有不包含@Transient注解,没有transient修饰符的字段,如果 - * 当前对象的该字段值为null,则会调用UpdateWrapper的set方法,将该字段赋值为null。 - * - * @param o 实体对象。 - * @param clazz 实体对象的class。 - * @return 创建后的UpdateWrapper。 - */ - public static UpdateWrapper createUpdateQueryForNullValue(T o, Class clazz) { - UpdateWrapper uw = new UpdateWrapper<>(); - Field[] fields = ReflectUtil.getFields(clazz); - List nullColumnList = new LinkedList<>(); - for (Field field : fields) { - TableField tableField = field.getAnnotation(TableField.class); - if (tableField == null || tableField.exist()) { - int modifiers = field.getModifiers(); - // transient类型的字段不能作为查询条件,静态字段和逻辑删除都不考虑。 - int transientMask = 128; - if ((modifiers & transientMask) == 1 - || Modifier.isStatic(modifiers) - || field.getAnnotation(TableLogic.class) != null) { - continue; - } - // 仅当实体对象参数中,当前字段值为null的时候,才会赋值给UpdateWrapper。 - // 以便在后续的更新中,可以将这些null字段的值设置到数据库表对应的字段中。 - if (ReflectUtil.getFieldValue(o, field) == null) { - nullColumnList.add(MyModelUtil.safeMapToColumnName(field.getName(), clazz)); - } - } - } - if (CollectionUtils.isNotEmpty(nullColumnList)) { - for (String nullColumn : nullColumnList) { - uw.set(nullColumn, null); - } - } - return uw; - } - - @SuppressWarnings("unchecked") - private void initializeRelationStruct(Field f) { - RelationOneToOne relationOneToOne = f.getAnnotation(RelationOneToOne.class); - if (relationOneToOne != null) { - RelationStruct relationStruct = new RelationStruct(); - relationStruct.relationField = f; - relationStruct.masterIdField = ReflectUtil.getField(modelClass, relationOneToOne.masterIdField()); - relationStruct.relationOneToOne = relationOneToOne; - if (StringUtils.isNotBlank(relationOneToOne.slaveServiceName())) { - relationStruct.service = ApplicationContextHolder.getBean( - StringUtils.uncapitalize(relationOneToOne.slaveServiceName())); - } else { - relationStruct.service = (BaseService) - ApplicationContextHolder.getBean(relationOneToOne.slaveServiceClass()); - } - relationOneToOneStructList.add(relationStruct); - return; - } - RelationOneToMany relationOneToMany = f.getAnnotation(RelationOneToMany.class); - if (relationOneToMany != null) { - RelationStruct relationStruct = new RelationStruct(); - relationStruct.relationField = f; - relationStruct.masterIdField = ReflectUtil.getField(modelClass, relationOneToMany.masterIdField()); - relationStruct.relationOneToMany = relationOneToMany; - if (StringUtils.isNotBlank(relationOneToMany.slaveServiceName())) { - relationStruct.service = ApplicationContextHolder.getBean( - StringUtils.uncapitalize(relationOneToMany.slaveServiceName())); - } else { - relationStruct.service = (BaseService) - ApplicationContextHolder.getBean(relationOneToMany.slaveServiceClass()); - } - relationOneToManyStructList.add(relationStruct); - return; - } - RelationManyToMany relationManyToMany = f.getAnnotation(RelationManyToMany.class); - if (relationManyToMany != null) { - RelationStruct relationStruct = new RelationStruct(); - relationStruct.relationField = f; - relationStruct.masterIdField = ReflectUtil.getField(modelClass, relationManyToMany.relationMasterIdField()); - relationStruct.relationManyToMany = relationManyToMany; - relationStruct.manyToManyMapper = ApplicationContextHolder.getBean( - StringUtils.uncapitalize(relationManyToMany.relationMapperName())); - relationManyToManyStructList.add(relationStruct); - } - } - - @SuppressWarnings("unchecked") - private void initializeRelationAggregationStruct(Field f) { - RelationOneToManyAggregation relationOneToManyAggregation = f.getAnnotation(RelationOneToManyAggregation.class); - if (relationOneToManyAggregation != null) { - RelationStruct relationStruct = new RelationStruct(); - relationStruct.relationField = f; - relationStruct.masterIdField = ReflectUtil.getField(modelClass, relationOneToManyAggregation.masterIdField()); - relationStruct.relationOneToManyAggregation = relationOneToManyAggregation; - if (StringUtils.isNotBlank(relationOneToManyAggregation.slaveServiceName())) { - relationStruct.service = ApplicationContextHolder.getBean( - StringUtils.uncapitalize(relationOneToManyAggregation.slaveServiceName())); - } else { - relationStruct.service = (BaseService) - ApplicationContextHolder.getBean(relationOneToManyAggregation.slaveServiceClass()); - } - relationOneToManyAggrStructList.add(relationStruct); - return; - } - RelationManyToManyAggregation relationManyToManyAggregation = f.getAnnotation(RelationManyToManyAggregation.class); - if (relationManyToManyAggregation != null) { - RelationStruct relationStruct = new RelationStruct(); - relationStruct.relationField = f; - relationStruct.masterIdField = ReflectUtil.getField(modelClass, relationManyToManyAggregation.masterIdField()); - relationStruct.relationManyToManyAggregation = relationManyToManyAggregation; - if (StringUtils.isNotBlank(relationManyToManyAggregation.slaveServiceName())) { - relationStruct.service = ApplicationContextHolder.getBean( - StringUtils.uncapitalize(relationManyToManyAggregation.slaveServiceName())); - } else { - relationStruct.service = (BaseService) - ApplicationContextHolder.getBean(relationManyToManyAggregation.slaveServiceClass()); - } - relationManyToManyAggrStructList.add(relationStruct); - } - } - - @SuppressWarnings("unchecked") - private void initializeRelationDictStruct(Field f) { - RelationConstDict relationConstDict = f.getAnnotation(RelationConstDict.class); - if (relationConstDict != null) { - RelationStruct relationStruct = new RelationStruct(); - relationStruct.relationField = f; - relationStruct.masterIdField = ReflectUtil.getField(modelClass, relationConstDict.masterIdField()); - Field dictMapField = ReflectUtil.getField(relationConstDict.constantDictClass(), "DICT_MAP"); - relationStruct.dictMap = (Map) ReflectUtil.getFieldValue(modelClass, dictMapField); - relationConstDictStructList.add(relationStruct); - return; - } - RelationDict relationDict = f.getAnnotation(RelationDict.class); - if (relationDict != null) { - RelationStruct relationStruct = new RelationStruct(); - relationStruct.relationField = f; - relationStruct.masterIdField = ReflectUtil.getField(modelClass, relationDict.masterIdField()); - relationStruct.relationDict = relationDict; - if (StringUtils.isNotBlank(relationDict.equalOneToOneRelationField())) { - relationStruct.equalOneToOneRelationField = - ReflectUtil.getField(modelClass, relationDict.equalOneToOneRelationField()); - } - if (StringUtils.isNotBlank(relationDict.slaveServiceName())) { - relationStruct.service = ApplicationContextHolder.getBean( - StringUtils.uncapitalize(relationDict.slaveServiceName())); - } else { - relationStruct.service = (BaseService) - ApplicationContextHolder.getBean(relationDict.slaveServiceClass()); - } - relationDictStructList.add(relationStruct); - } - } - - private BasicAggregationRelationInfo parseBasicAggregationRelationInfo( - RelationStruct relationStruct, Map> criteriaListMap) { - RelationManyToManyAggregation relation = relationStruct.relationManyToManyAggregation; - BasicAggregationRelationInfo relationInfo = new BasicAggregationRelationInfo(); - // 提取关联中用到的各种字段和表数据。 - relationInfo.slaveTable = MyModelUtil.mapToTableName(relation.slaveModelClass()); - relationInfo.relationTable = MyModelUtil.mapToTableName(relation.relationModelClass()); - relationInfo.relationMasterColumn = - MyModelUtil.mapToColumnName(relation.relationMasterIdField(), relation.relationModelClass()); - relationInfo.relationSlaveColumn = - MyModelUtil.mapToColumnName(relation.relationSlaveIdField(), relation.relationModelClass()); - relationInfo.slaveColumn = MyModelUtil.mapToColumnName(relation.slaveIdField(), relation.slaveModelClass()); - // 判断是否只需要关联中间表即可,从而提升查询统计的效率。 - // 1. 统计字段为中间表字段。2. 自定义过滤条件中没有基于从表字段的过滤条件。 - relationInfo.onlySelectRelationTable = - relation.aggregationModelClass().equals(relation.relationModelClass()); - if (relationInfo.onlySelectRelationTable && MapUtils.isNotEmpty(criteriaListMap)) { - List criteriaList = - criteriaListMap.get(relationStruct.relationField.getName()); - if (CollectionUtils.isNotEmpty(criteriaList)) { - for (MyWhereCriteria whereCriteria : criteriaList) { - if (whereCriteria.getModelClazz().equals(relation.slaveModelClass())) { - relationInfo.onlySelectRelationTable = false; - break; - } - } - } - } - String aggregationTable = relation.aggregationModelClass().equals(relation.relationModelClass()) - ? relationInfo.relationTable : relationInfo.slaveTable; - Tuple2 selectAndGroupByTuple = makeSelectListAndGroupByClause( - relationInfo.relationTable, relationInfo.relationMasterColumn, relation.aggregationModelClass(), - aggregationTable, relation.aggregationField(), relation.aggregationType()); - relationInfo.selectList = selectAndGroupByTuple.getFirst(); - relationInfo.groupBy = selectAndGroupByTuple.getSecond(); - return relationInfo; - } - - private String makeManyToManyWhereClause( - RelationStruct relationStruct, - Object masterIdValue, - BasicAggregationRelationInfo basicRelationInfo, - Map> criteriaListMap) { - StringBuilder whereClause = new StringBuilder(256); - whereClause.append(basicRelationInfo.relationTable) - .append(".").append(basicRelationInfo.relationMasterColumn); - if (masterIdValue instanceof Number) { - whereClause.append(" = ").append(masterIdValue); - } else { - whereClause.append(" = '").append(masterIdValue).append("'"); - } - // 如果需要从表聚合计算或参与过滤,则需要把中间表和从表之间的关联条件加上。 - if (!basicRelationInfo.onlySelectRelationTable) { - whereClause.append(AND_OP) - .append(basicRelationInfo.relationTable) - .append(".") - .append(basicRelationInfo.relationSlaveColumn) - .append(" = ") - .append(basicRelationInfo.slaveTable) - .append(".") - .append(basicRelationInfo.slaveColumn); - } - List criteriaList = criteriaListMap.get(relationStruct.relationField.getName()); - if (criteriaList == null) { - criteriaList = new LinkedList<>(); - } - if (StringUtils.isNotBlank(relationStruct.service.deletedFlagFieldName)) { - MyWhereCriteria deleteFilter = new MyWhereCriteria(); - deleteFilter.setCriteria( - relationStruct.relationManyToManyAggregation.slaveModelClass(), - relationStruct.service.deletedFlagFieldName, - MyWhereCriteria.OPERATOR_EQUAL, - GlobalDeletedFlag.NORMAL); - criteriaList.add(deleteFilter); - } - if (CollectionUtils.isNotEmpty(criteriaList)) { - String criteriaString = MyWhereCriteria.makeCriteriaString(criteriaList); - whereClause.append(AND_OP).append(criteriaString); - } - return whereClause.toString(); - } - - private String makeOneToManyWhereClause( - RelationStruct relationStruct, - Object masterIdValue, - String slaveColumnName, - Map> criteriaListMap) { - StringBuilder whereClause = new StringBuilder(64); - if (masterIdValue instanceof Number) { - whereClause.append(slaveColumnName).append(" = ").append(masterIdValue); - } else { - whereClause.append(slaveColumnName).append(" = '").append(masterIdValue).append("'"); - } - List criteriaList = criteriaListMap.get(relationStruct.relationField.getName()); - if (criteriaList == null) { - criteriaList = new LinkedList<>(); - } - if (StringUtils.isNotBlank(relationStruct.service.deletedFlagFieldName)) { - MyWhereCriteria deleteFilter = new MyWhereCriteria(); - deleteFilter.setCriteria( - relationStruct.relationOneToManyAggregation.slaveModelClass(), - relationStruct.service.deletedFlagFieldName, - MyWhereCriteria.OPERATOR_EQUAL, - GlobalDeletedFlag.NORMAL); - criteriaList.add(deleteFilter); - } - if (CollectionUtils.isNotEmpty(criteriaList)) { - String criteriaString = MyWhereCriteria.makeCriteriaString(criteriaList); - whereClause.append(AND_OP).append(criteriaString); - } - return whereClause.toString(); - } - - private static class BasicAggregationRelationInfo { - private String slaveTable; - private String slaveColumn; - private String relationTable; - private String relationMasterColumn; - private String relationSlaveColumn; - private String selectList; - private String groupBy; - private boolean onlySelectRelationTable; - } - - private void doMakeLocalAggregationData( - List> aggregationMapList, List resultList, RelationStruct relationStruct) { - if (CollectionUtils.isEmpty(resultList)) { - return; - } - // 根据获取的分组聚合结果集,绑定到主表总的关联字段。 - if (CollectionUtils.isNotEmpty(aggregationMapList)) { - Map relatedMap = new HashMap<>(aggregationMapList.size()); - for (Map map : aggregationMapList) { - relatedMap.put(map.get(GROUPED_KEY), map.get(AGGREGATED_VALUE)); - } - for (M dataObject : resultList) { - Object masterIdValue = ReflectUtil.getFieldValue(dataObject, relationStruct.masterIdField); - if (masterIdValue != null) { - Object value = relatedMap.get(masterIdValue); - if (value != null) { - ReflectUtil.setFieldValue(dataObject, relationStruct.relationField, value); - } - } - } - } - } - - private Tuple2 makeSelectListAndGroupByClause( - String groupTableName, - String groupColumnName, - Class aggregationModel, - String aggregationTableName, - String aggregationField, - Integer aggregationType) { - if (!AggregationType.isValid(aggregationType)) { - throw new IllegalArgumentException("Invalid AggregationType Value [" - + aggregationType + "] in Model [" + aggregationModel.getName() + "]."); - } - String aggregationFunc = AggregationType.getAggregationFunction(aggregationType); - String aggregationColumn = MyModelUtil.mapToColumnName(aggregationField, aggregationModel); - if (StringUtils.isBlank(aggregationColumn)) { - throw new IllegalArgumentException("Invalid AggregationField [" - + aggregationField + "] in Model [" + aggregationModel.getName() + "]."); - } - // 构建Select List - // 如:r_table.master_id groupedKey, SUM(r_table.aggr_column) aggregated_value - StringBuilder groupedSelectList = new StringBuilder(128); - groupedSelectList.append(groupTableName) - .append(".") - .append(groupColumnName) - .append(" ") - .append(GROUPED_KEY) - .append(", ") - .append(aggregationFunc) - .append("(") - .append(aggregationTableName) - .append(".") - .append(aggregationColumn) - .append(") ") - .append(AGGREGATED_VALUE) - .append(" "); - StringBuilder groupBy = new StringBuilder(64); - groupBy.append(groupTableName).append(".").append(groupColumnName); - return new Tuple2<>(groupedSelectList.toString(), groupBy.toString()); - } - - static class RelationStruct { - private Field relationField; - private Field masterIdField; - private Field equalOneToOneRelationField; - private BaseService service; - private BaseDaoMapper manyToManyMapper; - private Map dictMap; - private RelationDict relationDict; - private RelationOneToOne relationOneToOne; - private RelationOneToMany relationOneToMany; - private RelationManyToMany relationManyToMany; - private RelationOneToManyAggregation relationOneToManyAggregation; - private RelationManyToManyAggregation relationManyToManyAggregation; - } -} diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/base/service/IBaseDictService.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/base/service/IBaseDictService.java deleted file mode 100644 index a3d55f71..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/base/service/IBaseDictService.java +++ /dev/null @@ -1,82 +0,0 @@ -package com.orangeforms.common.core.base.service; - -import java.io.Serializable; -import java.util.List; - -/** - * 带有缓存功能的字典Service接口。 - * - * @param Model实体对象的类型。 - * @param Model对象主键的类型。 - * @author Jerry - * @date 2021-06-06 - */ -public interface IBaseDictService extends IBaseService { - - /** - * 重新加载数据库中所有当前表数据到系统内存。 - * - * @param force true则强制刷新,如果false,当缓存中存在数据时不刷新。 - */ - void reloadCachedData(boolean force); - - /** - * 保存新增对象。 - * - * @param data 新增对象。 - * @return 返回新增对象。 - */ - M saveNew(M data); - - /** - * 更新数据对象。 - * - * @param data 更新的对象。 - * @param originalData 原有数据对象。 - * @return 成功返回true,否则false。 - */ - boolean update(M data, M originalData); - - /** - * 删除指定数据。 - * - * @param id 主键Id。 - * @return 成功返回true,否则false。 - */ - boolean remove(K id); - - /** - * 直接从缓存池中获取所有数据。 - * - * @return 返回所有数据。 - */ - List getAllListFromCache(); - - /** - * 存入缓存。 - * - * @param data 新增或更新数据。 - */ - void putDictionaryCache(M data); - - /** - * 根据字典主键将数据从缓存中删除。 - * - * @param id 字典主键。 - */ - void removeDictionaryCache(K id); - - /** - * 根据字典对象将数据从缓存中删除。 - * - * @param data 字典数据。 - */ - void removeDictionaryCacheByModel(M data); - - /** - * 获取缓存中的数据数量。 - * - * @return 缓存中的数据总量。 - */ - int getCachedCount(); -} diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/base/service/IBaseService.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/base/service/IBaseService.java deleted file mode 100644 index 2154a294..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/base/service/IBaseService.java +++ /dev/null @@ -1,374 +0,0 @@ -package com.orangeforms.common.core.base.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.orangeforms.common.core.object.CallResult; -import com.orangeforms.common.core.object.MyRelationParam; -import com.orangeforms.common.core.object.TableModelInfo; - -import java.io.Serializable; -import java.util.*; -import java.util.function.BiConsumer; -import java.util.function.Consumer; - -/** - * 所有Service的接口。 - * - * @param Model对象的类型。 - * @param Model对象主键的类型。 - * @author Jerry - * @date 2021-06-06 - */ -public interface IBaseService extends IService{ - - /** - * 如果主键存在则更新,否则新增保存实体对象。 - * - * @param data 实体对象数据。 - * @param saveNew 新增实体对象方法。 - * @param update 更新实体对象方法。 - */ - void saveNewOrUpdate(M data, Consumer saveNew, BiConsumer update); - - /** - * 如果主键存在的则更新,否则批量新增保存实体对象。 - * - * @param dataList 实体对象数据列表。 - * @param saveNewBatch 批量新增实体对象方法。 - * @param update 更新实体对象方法。 - */ - void saveNewOrUpdateBatch(List dataList, Consumer> saveNewBatch, BiConsumer update); - - /** - * 根据过滤条件删除数据。 - * - * @param filter 过滤对象。 - * @return 删除数量。 - */ - Integer removeBy(M filter); - - /** - * 基于主从表之间的关联字段,批量改更新一对多从表数据。 - * 该操作会覆盖增、删、改三个操作,具体如下: - * 1. 先删除。从表中relationFieldName字段的值为relationFieldValue, 同时主键Id不在dataList中的。 - * 2. 再批量插入。遍历dataList中没有主键Id的对象,视为新对象批量插入。 - * 3. 最后逐条更新,遍历dataList中有主键Id的对象,视为已存在对象并逐条更新。 - * 4. 如果更新时间和更新用户Id为空,我们将视当前记录为变化数据,因此使用当前时间和用户分别填充这两个字段。 - * - * @param relationFieldName 主从表关联中,从表的Java字段名。 - * @param relationFieldValue 主从表关联中,与从表关联的主表字段值。该值会被赋值给从表关联字段。 - * @param updateUserIdFieldName 一对多从表的更新用户Id字段名。 - * @param updateTimeFieldName 一对多从表的更新时间字段名 - * @param dataList 批量更新的从表数据列表。 - * @param batchInserter 从表批量插入方法。 - */ - void updateBatchOneToManyRelation( - String relationFieldName, - Object relationFieldValue, - String updateUserIdFieldName, - String updateTimeFieldName, - List dataList, - Consumer> batchInserter); - - /** - * 判断指定字段的数据是否存在,且仅仅存在一条记录。 - * 如果是基于主键的过滤,会直接调用existId过滤函数,提升性能。在有缓存的场景下,也可以利用缓存。 - * - * @param fieldName 待过滤的字段名(Java 字段)。 - * @param fieldValue 字段值。 - * @return 存在且仅存在一条返回true,否则false。 - */ - boolean existOne(String fieldName, Object fieldValue); - - /** - * 判断主键Id关联的数据是否存在。 - * - * @param id 主键Id。 - * @return 存在返回true,否则false。 - */ - boolean existId(K id); - - /** - * 返回符合 filterField = filterValue 条件的一条数据。 - * - * @param filterField 过滤的Java字段。 - * @param filterValue 过滤的Java字段值。 - * @return 查询后的数据对象。 - */ - M getOne(String filterField, Object filterValue); - - /** - * 获取主表的查询结果,以及主表关联的字典数据和一对一从表数据,以及一对一从表的字典数据。 - * - * @param id 主表主键Id。 - * @param relationParam 实体对象数据组装的参数构建器。 - * @return 查询结果对象。 - */ - M getByIdWithRelation(K id, MyRelationParam relationParam); - - /** - * 获取所有数据。 - * - * @return 返回所有数据。 - */ - List getAllList(); - - /** - * 获取排序后所有数据。 - * - * @param orderByProperties 需要排序的字段属性,这里使用Java对象中的属性名,而不是数据库字段名。 - * @return 返回排序后所有数据。 - */ - List getAllListByOrder(String... orderByProperties); - - /** - * 判断参数值主键集合中的所有数据,是否全部存在 - * - * @param idSet 待校验的主键集合。 - * @return 全部存在返回true,否则false。 - */ - boolean existAllPrimaryKeys(Set idSet); - - /** - * 判断参数值列表中的所有数据,是否全部存在。另外,keyName字段在数据表中必须是唯一键值,否则返回结果会出现误判。 - * - * @param inFilterField 待校验的数据字段,这里使用Java对象中的属性,如courseId,而不是数据字段名course_id - * @param inFilterValues 数据值列表。 - * @return 全部存在返回true,否则false。 - */ - boolean existUniqueKeyList(String inFilterField, Set inFilterValues); - - /** - * 返回符合主键 in (idValues) 条件的所有数据。 - * - * @param idValues 主键值集合。 - * @return 检索后的数据列表。 - */ - List getInList(Set idValues); - - /** - * 返回符合 inFilterField in (inFilterValues) 条件的所有数据。 - * - * @param inFilterField 参与(In-list)过滤的Java字段。 - * @param inFilterValues 参与(In-list)过滤的Java字段值集合。 - * @return 检索后的数据列表。 - */ - List getInList(String inFilterField, Set inFilterValues); - - /** - * 返回符合 inFilterField in (inFilterValues) 条件的所有数据,并根据orderBy字段排序。 - * - * @param inFilterField 参与(In-list)过滤的Java字段。 - * @param inFilterValues 参与(In-list)过滤的Java字段值集合。 - * @param orderBy 排序字段。 - * @return 检索后的数据列表。 - */ - List getInList(String inFilterField, Set inFilterValues, String orderBy); - - /** - * 返回符合主键 in (idValues) 条件的所有数据。同时返回关联数据。 - * - * @param idValues 主键值集合。 - * @param relationParam 实体对象数据组装的参数构建器。 - * @return 检索后的数据列表。 - */ - List getInListWithRelation(Set idValues, MyRelationParam relationParam); - - /** - * 返回符合 inFilterField in (inFilterValues) 条件的所有数据。同时返回关联数据。 - * - * @param inFilterField 参与(In-list)过滤的Java字段。 - * @param inFilterValues 参与(In-list)过滤的Java字段值集合。 - * @param relationParam 实体对象数据组装的参数构建器。 - * @return 检索后的数据列表。 - */ - List getInListWithRelation(String inFilterField, Set inFilterValues, MyRelationParam relationParam); - - /** - * 返回符合 inFilterField in (inFilterValues) 条件的所有数据,并根据orderBy字段排序。同时返回关联数据。 - * - * @param inFilterField 参与(In-list)过滤的Java字段。 - * @param inFilterValues 参与(In-list)过滤的Java字段值集合。 - * @param orderBy 排序字段。 - * @param relationParam 实体对象数据组装的参数构建器。 - * @return 检索后的数据列表。 - */ - List getInListWithRelation( - String inFilterField, Set inFilterValues, String orderBy, MyRelationParam relationParam); - - /** - * 用参数对象作为过滤条件,获取数据数量。 - * - * @param filter 该方法基于mybatis 通用mapper,过滤对象中,只有被赋值的字段,才会成为where中的条件。 - * @return 返回过滤后的数据数量。 - */ - int getCountByFilter(M filter); - - /** - * 用参数对象作为过滤条件,判断是否存在过滤数据。 - * - * @param filter 该方法基于mybatis 通用mapper,过滤对象中,只有被赋值的字段,才会成为where中的条件。 - * @return 存在返回true,否则false。 - */ - boolean existByFilter(M filter); - - /** - * 用参数对象作为过滤条件,获取查询结果。 - * - * @param filter 该方法基于mybatis的通用mapper。如果参数为null,则返回全部数据。 - * @return 返回过滤后的数据。 - */ - List getListByFilter(M filter); - - /** - * 获取父主键Id下的所有子数据列表。 - * - * @param parentIdFieldName 父主键字段名字,如"courseId"。 - * @param parentId 父主键的值。 - * @return 父主键Id下的所有子数据列表。 - */ - List getListByParentId(String parentIdFieldName, K parentId); - - /** - * 根据指定的显示字段列表、过滤条件字符串和分组字符串,返回聚合计算后的查询结果。(基本是内部框架使用,不建议外部接口直接使用)。 - * - * @param selectFields 选择的字段列表,多个字段逗号分隔。 - * NOTE: 如果数据表字段和Java对象字段名字不同,Java对象字段应该以别名的形式出现。 - * 如: table_column_name modelFieldName。否则无法被反射回Bean对象。 - * @param whereClause SQL常量形式的条件从句。 - * @param groupBy SQL常量形式分组字段列表,逗号分隔。 - * @return 聚合计算后的数据结果集。 - */ - List> getGroupedListByCondition(String selectFields, String whereClause, String groupBy); - - /** - * 根据指定的显示字段列表、过滤条件字符串和排序字符串,返回查询结果。(基本是内部框架使用,不建议外部接口直接使用)。 - * - * @param selectList 选择的Java字段列表。如果为空表示返回全部字段。 - * @param filter 过滤对象。 - * @param whereClause SQL常量形式的条件从句。 - * @param orderBy SQL常量形式排序字段列表,逗号分隔。 - * @return 查询结果。 - */ - List getListByCondition(List selectList, M filter, String whereClause, String orderBy); - - /** - * 用指定过滤条件,计算记录数量。(基本是内部框架使用,不建议外部接口直接使用)。 - * - * @param whereClause SQL常量形式的条件从句。 - * @return 返回过滤后的数据数量。 - */ - Integer getCountByCondition(String whereClause); - - /** - * 根据最新对象和原有对象的数据对比,判断关联的字典数据和多对一主表数据是否都是合法数据。 - * NOTE: BaseService中会给出返回CallResult.ok()的缺省实现。每个业务服务实现类在需要的时候可以重载该方法。 - * - * @param data 数据对象。 - * @param originalData 原有数据对象,null表示data为新增对象。 - * @return 应答结果对象。 - */ - CallResult verifyRelatedData(M data, M originalData); - - /** - * 根据最新对象列表和原有对象列表的数据对比,判断关联的字典数据和多对一主表数据是否都是合法数据。 - * NOTE: BaseService中会给出返回CallResult.ok()的缺省实现。每个业务服务实现类在需要的时候可以重载该方法。 - * - * @param dataList 数据对象列表。 - * @return 应答结果对象。 - */ - CallResult verifyRelatedData(List dataList); - - /** - * 集成所有与主表实体对象相关的关联数据列表。包括一对一、字典、一对多和多对多聚合运算等。 - * 也可以根据实际需求,单独调用该函数所包含的各个数据集成函数。 - * NOTE: 该方法内执行的SQL将禁用数据权限过滤。 - * - * @param resultList 主表实体对象列表。数据集成将直接作用于该对象列表。 - * @param relationParam 实体对象数据组装的参数构建器。 - */ - void buildRelationForDataList(List resultList, MyRelationParam relationParam); - - /** - * 集成所有与主表实体对象相关的关联数据列表。包括本地和远程服务的一对一、字典、一对多和多对多聚合运算等。 - * 也可以根据实际需求,单独调用该函数所包含的各个数据集成函数。 - * NOTE: 该方法内执行的SQL将禁用数据权限过滤。 - * - * @param resultList 主表实体对象列表。数据集成将直接作用于该对象列表。 - * @param relationParam 实体对象数据组装的参数构建器。 - * @param ignoreFields 该集合中的字段,即便包含注解也不会在当前调用中进行数据组装。 - */ - void buildRelationForDataList(List resultList, MyRelationParam relationParam, Set ignoreFields); - - /** - * 该函数主要用于对查询结果的批量导出。不同于支持分页的列表查询,批量导出没有分页机制, - * 因此在导出数据量较大的情况下,很容易给数据库的内存、CPU和IO带来较大的压力。而通过 - * 我们的分批处理,可以极大的规避该问题的出现几率。调整batchSize的大小,也可以有效的 - * 改善运行效率。 - * 我们目前的处理机制是,先从主表取出所有符合条件的主表数据,这样可以避免分批处理时, - * 后面几批数据,因为skip过多而带来的效率问题。因为是单表过滤,不会给数据库带来过大的压力。 - * 之后再在主表结果集数据上进行分批级联处理。 - * 集成所有与主表实体对象相关的关联数据列表。包括一对一、字典、一对多和多对多聚合运算等。 - * 也可以根据实际需求,单独调用该函数所包含的各个数据集成函数。 - * NOTE: 该方法内执行的SQL将禁用数据权限过滤。 - * - * @param resultList 主表实体对象列表。数据集成将直接作用于该对象列表。 - * @param relationParam 实体对象数据组装的参数构建器。 - * @param batchSize 每批集成的记录数量。小于等于0时将不做分批处理。 - */ - void buildRelationForDataList(List resultList, MyRelationParam relationParam, int batchSize); - - /** - * 该函数主要用于对查询结果的批量导出。不同于支持分页的列表查询,批量导出没有分页机制, - * 因此在导出数据量较大的情况下,很容易给数据库的内存、CPU和IO带来较大的压力。而通过 - * 我们的分批处理,可以极大的规避该问题的出现几率。调整batchSize的大小,也可以有效的 - * 改善运行效率。 - * 我们目前的处理机制是,先从主表取出所有符合条件的主表数据,这样可以避免分批处理时, - * 后面几批数据,因为skip过多而带来的效率问题。因为是单表过滤,不会给数据库带来过大的压力。 - * 之后再在主表结果集数据上进行分批级联处理。 - * 集成所有与主表实体对象相关的关联数据列表。包括一对一、字典、一对多和多对多聚合运算等。 - * 也可以根据实际需求,单独调用该函数所包含的各个数据集成函数。 - * NOTE: 该方法内执行的SQL将禁用数据权限过滤。 - * - * @param resultList 主表实体对象列表。数据集成将直接作用于该对象列表。 - * @param relationParam 实体对象数据组装的参数构建器。 - * @param batchSize 每批集成的记录数量。小于等于0时将不做分批处理。 - * @param ignoreFields 该集合中的字段,即便包含注解也不会在当前调用中进行数据组装。 - */ - void buildRelationForDataList( - List resultList, MyRelationParam relationParam, int batchSize, Set ignoreFields); - - /** - * 集成所有与主表实体对象相关的关联数据对象。包括一对一、字典、一对多和多对多聚合运算等。 - * 也可以根据实际需求,单独调用该函数所包含的各个数据集成函数。 - * NOTE: 该方法内执行的SQL将禁用数据权限过滤。 - * - * @param dataObject 主表实体对象。数据集成将直接作用于该对象。 - * @param relationParam 实体对象数据组装的参数构建器。 - * @param 实体对象类型。 - */ - void buildRelationForData(T dataObject, MyRelationParam relationParam); - - /** - * 集成所有与主表实体对象相关的关联数据对象。包括本地和远程服务的一对一、字典、一对多和多对多聚合运算等。 - * 也可以根据实际需求,单独调用该函数所包含的各个数据集成函数。 - * NOTE: 该方法内执行的SQL将禁用数据权限过滤。 - * - * @param dataObject 主表实体对象。数据集成将直接作用于该对象。 - * @param relationParam 实体对象数据组装的参数构建器。 - * @param ignoreFields 该集合中的字段,即便包含注解也不会在当前调用中进行数据组装。 - * @param 实体对象类型。 - */ - void buildRelationForData(T dataObject, MyRelationParam relationParam, Set ignoreFields); - - /** - * 仅仅在spring boot 启动后的监听器事件中调用,缓存所有service的关联关系,加速后续的数据绑定效率。 - */ - void loadRelationStruct(); - - /** - * 获取当前服务引用的实体对象及表信息。 - * - * @return 实体对象及表信息。 - */ - TableModelInfo getTableModelInfo(); -} diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/cache/DictionaryCache.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/cache/DictionaryCache.java deleted file mode 100644 index 361c59e1..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/cache/DictionaryCache.java +++ /dev/null @@ -1,88 +0,0 @@ -package com.orangeforms.common.core.cache; - -import java.util.List; -import java.util.Set; - -/** - * 主要用于完整缓存字典表数据的接口对象。 - * - * @param 字典表主键类型。 - * @param 字典表对象类型。 - * @author Jerry - * @date 2021-06-06 - */ -public interface DictionaryCache { - - /** - * 按照数据插入的顺序返回全部字典对象的列表。 - * - * @return 全部字段数据列表。 - */ - List getAll(); - - /** - * 获取缓存中与键列表对应的对象列表。 - * - * @param keys 主键集合。 - * @return 对象列表。 - */ - List getInList(Set keys); - - /** - * 将参数List中的数据保存到缓存中,同时保证getAll返回的数据列表,与参数列表中数据项的顺序保持一致。 - * - * @param dataList 待缓存的数据列表。 - */ - void putAll(List dataList); - - /** - * 重新加载,先清空原有数据,在执行putAll的操作。 - * - * @param dataList 待缓存的数据列表。 - * @param force true则强制刷新,如果false,当缓存中存在数据时不刷新。 - */ - void reload(List dataList, boolean force); - - /** - * 从缓存中获取指定的数据。 - * - * @param key 数据的key。 - * @return 获取到的数据,如果没有返回null。 - */ - V get(K key); - - /** - * 将数据存入缓存。 - * - * @param key 通常为字典数据的主键。 - * @param object 字典数据对象。 - */ - void put(K key, V object); - - /** - * 获取缓存中数据条目的数量。 - * - * @return 返回缓存的数据数量。 - */ - int getCount(); - - /** - * 删除缓存中指定的键。 - * - * @param key 待删除数据的主键。 - * @return 返回被删除的对象,如果主键不存在,返回null。 - */ - V invalidate(K key); - - /** - * 删除缓存中,参数列表中包含的键。 - * - * @param keys 待删除数据的主键集合。 - */ - void invalidateSet(Set keys); - - /** - * 清空缓存。 - */ - void invalidateAll(); -} diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/cache/MapDictionaryCache.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/cache/MapDictionaryCache.java deleted file mode 100644 index 0f0db0a9..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/cache/MapDictionaryCache.java +++ /dev/null @@ -1,358 +0,0 @@ -package com.orangeforms.common.core.cache; - -import com.orangeforms.common.core.exception.MapCacheAccessException; -import lombok.extern.slf4j.Slf4j; - -import java.util.*; -import java.util.concurrent.TimeUnit; -import java.util.concurrent.TimeoutException; -import java.util.concurrent.locks.ReadWriteLock; -import java.util.concurrent.locks.ReentrantReadWriteLock; -import java.util.function.Function; - -/** - * 字典数据内存缓存对象。 - * - * @param 字典表主键类型。 - * @param 字典表对象类型。 - * @author Jerry - * @date 2021-06-06 - */ -@Slf4j -public class MapDictionaryCache implements DictionaryCache { - - /** - * 存储字典数据的Map。 - */ - protected final LinkedHashMap dataMap = new LinkedHashMap<>(); - /** - * 获取字典主键数据的函数对象。 - */ - protected final Function idGetter; - /** - * 由于大部分场景是读取操作,所以使用读写锁提高并发的伸缩性。 - */ - protected final ReadWriteLock lock = new ReentrantReadWriteLock(); - /** - * 超时时长。单位毫秒。 - */ - protected static final long TIMEOUT = 2000L; - - /** - * 当前对象的构造器函数。 - * - * @param idGetter 获取当前类主键字段值的函数对象。 - * @param 字典主键类型。 - * @param 字典对象类型 - * @return 实例化后的字典内存缓存对象。 - */ - public static MapDictionaryCache create(Function idGetter) { - if (idGetter == null) { - throw new IllegalArgumentException("IdGetter can't be NULL."); - } - return new MapDictionaryCache<>(idGetter); - } - - /** - * 构造函数。 - * - * @param idGetter 主键Id的获取函数对象。 - */ - public MapDictionaryCache(Function idGetter) { - this.idGetter = idGetter; - } - - /** - * 按照数据插入的顺序返回全部字典对象的列表。 - * - * @return 全部字段数据列表。 - */ - @Override - public List getAll() { - List resultList = new LinkedList<>(); - String exceptionMessage; - try { - if (lock.readLock().tryLock(TIMEOUT, TimeUnit.MILLISECONDS)) { - try { - for (Map.Entry entry : dataMap.entrySet()) { - resultList.add(entry.getValue()); - } - } finally { - lock.readLock().unlock(); - } - } else { - throw new TimeoutException(); - } - } catch (Exception e) { - exceptionMessage = String.format( - "LOCK Operation of [MapDictionaryCache::getInList] encountered EXCEPTION [%s] for DICT.", - e.getClass().getSimpleName()); - log.warn(exceptionMessage); - throw new MapCacheAccessException(exceptionMessage, e); - } - return resultList; - } - - /** - * 获取缓存中与键列表对应的对象列表。 - * - * @param keys 主键集合。 - * @return 对象列表。 - */ - @Override - public List getInList(Set keys) { - List resultList = new LinkedList<>(); - String exceptionMessage; - try { - if (lock.readLock().tryLock(TIMEOUT, TimeUnit.MILLISECONDS)) { - try { - keys.forEach(key -> { - V object = dataMap.get(key); - if (object != null) { - resultList.add(object); - } - }); - } finally { - lock.readLock().unlock(); - } - } else { - throw new TimeoutException(); - } - } catch (Exception e) { - exceptionMessage = String.format( - "LOCK Operation of [MapDictionaryCache::getInList] encountered EXCEPTION [%s] for DICT.", - e.getClass().getSimpleName()); - log.warn(exceptionMessage); - throw new MapCacheAccessException(exceptionMessage, e); - } - return resultList; - } - - /** - * 将参数List中的数据保存到缓存中,同时保证getAll返回的数据列表,与参数列表中数据项的顺序保持一致。 - * - * @param dataList 待缓存的数据列表。 - */ - @Override - public void putAll(List dataList) { - if (dataList == null) { - return; - } - String exceptionMessage; - try { - if (lock.readLock().tryLock(TIMEOUT, TimeUnit.MILLISECONDS)) { - try { - dataList.forEach(dataObj -> { - K id = idGetter.apply(dataObj); - dataMap.put(id, dataObj); - }); - } finally { - lock.readLock().unlock(); - } - } else { - throw new TimeoutException(); - } - } catch (Exception e) { - exceptionMessage = String.format( - "LOCK Operation of [MapDictionaryCache::getInList] encountered EXCEPTION [%s] for DICT.", - e.getClass().getSimpleName()); - log.warn(exceptionMessage); - throw new MapCacheAccessException(exceptionMessage, e); - } - } - - /** - * 重新加载,先清空原有数据,在执行putAll的操作。 - * - * @param dataList 待缓存的数据列表。 - * @param force true则强制刷新,如果false,当缓存中存在数据时不刷新。 - */ - @Override - public void reload(List dataList, boolean force) { - if (!force && this.getCount() > 0) { - return; - } - String exceptionMessage; - try { - if (lock.readLock().tryLock(TIMEOUT, TimeUnit.MILLISECONDS)) { - try { - dataMap.clear(); - dataList.forEach(dataObj -> { - K id = idGetter.apply(dataObj); - dataMap.put(id, dataObj); - }); - } finally { - lock.readLock().unlock(); - } - } else { - throw new TimeoutException(); - } - } catch (Exception e) { - exceptionMessage = String.format( - "LOCK Operation of [MapDictionaryCache::getInList] encountered EXCEPTION [%s] for DICT.", - e.getClass().getSimpleName()); - log.warn(exceptionMessage); - throw new MapCacheAccessException(exceptionMessage, e); - } - } - - /** - * 从缓存中获取指定的数据。 - * - * @param id 数据的key。 - * @return 获取到的数据,如果没有返回null。 - */ - @Override - public V get(K id) { - if (id == null) { - return null; - } - V data; - String exceptionMessage; - try { - if (lock.readLock().tryLock(TIMEOUT, TimeUnit.MILLISECONDS)) { - try { - data = dataMap.get(id); - } finally { - lock.readLock().unlock(); - } - } else { - throw new TimeoutException(); - } - } catch (Exception e) { - exceptionMessage = String.format( - "LOCK Operation of [MapDictionaryCache::getInList] encountered EXCEPTION [%s] for DICT.", - e.getClass().getSimpleName()); - log.warn(exceptionMessage); - throw new MapCacheAccessException(exceptionMessage, e); - } - return data; - } - - /** - * 将数据存入缓存。 - * - * @param id 通常为字典数据的主键。 - * @param object 字典数据对象。 - */ - @Override - public void put(K id, V object) { - String exceptionMessage; - try { - if (lock.readLock().tryLock(TIMEOUT, TimeUnit.MILLISECONDS)) { - try { - dataMap.put(id, object); - } finally { - lock.readLock().unlock(); - } - } else { - throw new TimeoutException(); - } - } catch (Exception e) { - exceptionMessage = String.format( - "LOCK Operation of [MapDictionaryCache::getInList] encountered EXCEPTION [%s] for DICT.", - e.getClass().getSimpleName()); - log.warn(exceptionMessage); - throw new MapCacheAccessException(exceptionMessage, e); - } - } - - /** - * 获取缓存中数据条目的数量。 - * - * @return 返回缓存的数据数量。 - */ - @Override - public int getCount() { - return dataMap.size(); - } - - /** - * 删除缓存中指定的键。 - * - * @param id 待删除数据的主键。 - * @return 返回被删除的对象,如果主键不存在,返回null。 - */ - @Override - public V invalidate(K id) { - if (id == null) { - return null; - } - String exceptionMessage; - V data; - try { - if (lock.readLock().tryLock(TIMEOUT, TimeUnit.MILLISECONDS)) { - try { - data = dataMap.remove(id); - } finally { - lock.readLock().unlock(); - } - } else { - throw new TimeoutException(); - } - } catch (Exception e) { - exceptionMessage = String.format( - "LOCK Operation of [MapDictionaryCache::getInList] encountered EXCEPTION [%s] for DICT.", - e.getClass().getSimpleName()); - log.warn(exceptionMessage); - throw new MapCacheAccessException(exceptionMessage, e); - } - return data; - } - - /** - * 删除缓存中,参数列表中包含的键。 - * - * @param keys 待删除数据的主键集合。 - */ - @Override - public void invalidateSet(Set keys) { - String exceptionMessage; - try { - if (lock.readLock().tryLock(TIMEOUT, TimeUnit.MILLISECONDS)) { - try { - keys.forEach(id -> { - if (id != null) { - dataMap.remove(id); - } - }); - } finally { - lock.readLock().unlock(); - } - } else { - throw new TimeoutException(); - } - } catch (Exception e) { - exceptionMessage = String.format( - "LOCK Operation of [MapDictionaryCache::getInList] encountered EXCEPTION [%s] for DICT.", - e.getClass().getSimpleName()); - log.warn(exceptionMessage); - throw new MapCacheAccessException(exceptionMessage, e); - } - } - - /** - * 清空缓存。 - */ - @Override - public void invalidateAll() { - String exceptionMessage; - try { - if (lock.readLock().tryLock(TIMEOUT, TimeUnit.MILLISECONDS)) { - try { - dataMap.clear(); - } finally { - lock.readLock().unlock(); - } - } else { - throw new TimeoutException(); - } - } catch (Exception e) { - exceptionMessage = String.format( - "LOCK Operation of [MapDictionaryCache::getInList] encountered EXCEPTION [%s] for DICT.", - e.getClass().getSimpleName()); - log.warn(exceptionMessage); - throw new MapCacheAccessException(exceptionMessage, e); - } - } -} diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/cache/MapTreeDictionaryCache.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/cache/MapTreeDictionaryCache.java deleted file mode 100644 index 276c36d8..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/cache/MapTreeDictionaryCache.java +++ /dev/null @@ -1,292 +0,0 @@ -package com.orangeforms.common.core.cache; - -import com.orangeforms.common.core.exception.MapCacheAccessException; -import com.google.common.collect.LinkedHashMultimap; -import com.google.common.collect.Multimap; -import lombok.extern.slf4j.Slf4j; - -import java.util.*; -import java.util.concurrent.TimeUnit; -import java.util.concurrent.TimeoutException; -import java.util.function.Function; - -/** - * 树形字典数据内存缓存对象。 - * - * @param 字典表主键类型。 - * @param 字典表对象类型。 - * @author Jerry - * @date 2021-06-06 - */ -@Slf4j -public class MapTreeDictionaryCache extends MapDictionaryCache { - - /** - * 树形数据存储对象。 - */ - private final Multimap allTreeMap = LinkedHashMultimap.create(); - /** - * 获取字典父主键数据的函数对象。 - */ - protected final Function parentIdGetter; - - /** - * 当前对象的构造器函数。 - * - * @param idGetter 获取当前类主键字段值的函数对象。 - * @param parentIdGetter 获取当前类父主键字段值的函数对象。 - * @param 字典主键类型。 - * @param 字典对象类型 - * @return 实例化后的树形字典内存缓存对象。 - */ - public static MapTreeDictionaryCache create(Function idGetter, Function parentIdGetter) { - if (idGetter == null) { - throw new IllegalArgumentException("IdGetter can't be NULL."); - } - if (parentIdGetter == null) { - throw new IllegalArgumentException("ParentIdGetter can't be NULL."); - } - return new MapTreeDictionaryCache<>(idGetter, parentIdGetter); - } - - /** - * 构造函数。 - * - * @param idGetter 获取当前类主键字段值的函数对象。 - * @param parentIdGetter 获取当前类父主键字段值的函数对象。 - */ - public MapTreeDictionaryCache(Function idGetter, Function parentIdGetter) { - super(idGetter); - this.parentIdGetter = parentIdGetter; - } - - - /** - * 重新加载,先清空原有数据,在执行putAll的操作。 - * - * @param dataList 待缓存的数据列表。 - * @param force true则强制刷新,如果false,当缓存中存在数据时不刷新。 - */ - @Override - public void reload(List dataList, boolean force) { - if (!force && this.getCount() > 0) { - return; - } - String exceptionMessage; - try { - if (lock.readLock().tryLock(TIMEOUT, TimeUnit.MILLISECONDS)) { - try { - dataMap.clear(); - allTreeMap.clear(); - dataList.forEach(data -> { - K id = idGetter.apply(data); - dataMap.put(id, data); - K parentId = parentIdGetter.apply(data); - allTreeMap.put(parentId, data); - }); - } finally { - lock.readLock().unlock(); - } - } else { - throw new TimeoutException(); - } - } catch (Exception e) { - exceptionMessage = String.format( - "LOCK Operation of [MapDictionaryCache::getInList] encountered EXCEPTION [%s] for DICT.", - e.getClass().getSimpleName()); - log.warn(exceptionMessage); - throw new MapCacheAccessException(exceptionMessage, e); - } - } - - /** - * 获取该父主键的子数据列表。 - * - * @param parentId 父主键Id。 - * @return 子数据列表。 - */ - public List getListByParentId(K parentId) { - List resultList = new LinkedList<>(); - String exceptionMessage; - try { - if (lock.readLock().tryLock(TIMEOUT, TimeUnit.MILLISECONDS)) { - try { - resultList.addAll(allTreeMap.get(parentId)); - } finally { - lock.readLock().unlock(); - } - } else { - throw new TimeoutException(); - } - } catch (Exception e) { - exceptionMessage = String.format( - "LOCK Operation of [MapDictionaryCache::getInList] encountered EXCEPTION [%s] for DICT.", - e.getClass().getSimpleName()); - log.warn(exceptionMessage); - throw new MapCacheAccessException(exceptionMessage, e); - } - return resultList; - } - - /** - * 将参数List中的数据保存到缓存中,同时保证getAll返回的数据列表,与参数列表中数据项的顺序保持一致。 - * - * @param dataList 待缓存的数据列表。 - */ - @Override - public void putAll(List dataList) { - if (dataList == null) { - return; - } - String exceptionMessage; - try { - if (lock.readLock().tryLock(TIMEOUT, TimeUnit.MILLISECONDS)) { - try { - dataList.forEach(data -> { - K id = idGetter.apply(data); - dataMap.put(id, data); - K parentId = parentIdGetter.apply(data); - allTreeMap.remove(parentId, data); - allTreeMap.put(parentId, data); - }); - } finally { - lock.readLock().unlock(); - } - } else { - throw new TimeoutException(); - } - } catch (Exception e) { - exceptionMessage = String.format( - "LOCK Operation of [MapDictionaryCache::getInList] encountered EXCEPTION [%s] for DICT.", - e.getClass().getSimpleName()); - log.warn(exceptionMessage); - throw new MapCacheAccessException(exceptionMessage, e); - } - } - - /** - * 将数据存入缓存。 - * - * @param id 通常为字典数据的主键。 - * @param data 字典数据对象。 - */ - @Override - public void put(K id, V data) { - String exceptionMessage; - try { - if (lock.readLock().tryLock(TIMEOUT, TimeUnit.MILLISECONDS)) { - try { - dataMap.put(id, data); - K parentId = parentIdGetter.apply(data); - allTreeMap.remove(parentId, data); - allTreeMap.put(parentId, data); - } finally { - lock.readLock().unlock(); - } - } else { - throw new TimeoutException(); - } - } catch (Exception e) { - exceptionMessage = String.format( - "LOCK Operation of [MapDictionaryCache::getInList] encountered EXCEPTION [%s] for DICT.", - e.getClass().getSimpleName()); - log.warn(exceptionMessage); - throw new MapCacheAccessException(exceptionMessage, e); - } - } - - /** - * 删除缓存中指定的键。 - * - * @param id 待删除数据的主键。 - * @return 返回被删除的对象,如果主键不存在,返回null。 - */ - @Override - public V invalidate(K id) { - V v; - String exceptionMessage; - try { - if (lock.readLock().tryLock(TIMEOUT, TimeUnit.MILLISECONDS)) { - try { - v = dataMap.remove(id); - if (v != null) { - K parentId = parentIdGetter.apply(v); - allTreeMap.remove(parentId, v); - } - } finally { - lock.readLock().unlock(); - } - } else { - throw new TimeoutException(); - } - } catch (Exception e) { - exceptionMessage = String.format( - "LOCK Operation of [MapDictionaryCache::getInList] encountered EXCEPTION [%s] for DICT.", - e.getClass().getSimpleName()); - log.warn(exceptionMessage); - throw new MapCacheAccessException(exceptionMessage, e); - } - return v; - } - - /** - * 删除缓存中,参数列表中包含的键。 - * - * @param keys 待删除数据的主键集合。 - */ - @Override - public void invalidateSet(Set keys) { - String exceptionMessage; - try { - if (lock.readLock().tryLock(TIMEOUT, TimeUnit.MILLISECONDS)) { - try { - keys.forEach(id -> { - if (id != null) { - V data = dataMap.remove(id); - if (data != null) { - K parentId = parentIdGetter.apply(data); - allTreeMap.remove(parentId, data); - } - } - }); - } finally { - lock.readLock().unlock(); - } - } else { - throw new TimeoutException(); - } - } catch (Exception e) { - exceptionMessage = String.format( - "LOCK Operation of [MapDictionaryCache::getInList] encountered EXCEPTION [%s] for DICT.", - e.getClass().getSimpleName()); - log.warn(exceptionMessage); - throw new MapCacheAccessException(exceptionMessage, e); - } - } - - /** - * 清空缓存。 - */ - @Override - public void invalidateAll() { - String exceptionMessage; - try { - if (lock.readLock().tryLock(TIMEOUT, TimeUnit.MILLISECONDS)) { - try { - dataMap.clear(); - allTreeMap.clear(); - } finally { - lock.readLock().unlock(); - } - } else { - throw new TimeoutException(); - } - } catch (Exception e) { - exceptionMessage = String.format( - "LOCK Operation of [MapDictionaryCache::getInList] encountered EXCEPTION [%s] for DICT.", - e.getClass().getSimpleName()); - log.warn(exceptionMessage); - throw new MapCacheAccessException(exceptionMessage, e); - } - } -} diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/config/CommonWebMvcConfig.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/config/CommonWebMvcConfig.java deleted file mode 100644 index 1c7b3f9d..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/config/CommonWebMvcConfig.java +++ /dev/null @@ -1,67 +0,0 @@ -package com.orangeforms.common.core.config; - -import com.alibaba.fastjson.serializer.SerializerFeature; -import com.alibaba.fastjson.support.config.FastJsonConfig; -import com.alibaba.fastjson.support.spring.FastJsonHttpMessageConverter; -import com.orangeforms.common.core.interceptor.MyRequestArgumentResolver; -import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.Configuration; -import org.springframework.http.MediaType; -import org.springframework.http.converter.HttpMessageConverter; -import org.springframework.http.converter.StringHttpMessageConverter; -import org.springframework.validation.beanvalidation.MethodValidationPostProcessor; -import org.springframework.web.method.support.HandlerMethodArgumentResolver; -import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; - -import java.nio.charset.StandardCharsets; -import java.util.ArrayList; -import java.util.List; - -/** - * 所有的项目拦截器、参数解析器、消息对象转换器都在这里集中配置。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Configuration -public class CommonWebMvcConfig implements WebMvcConfigurer { - - @Bean - public MethodValidationPostProcessor methodValidationPostProcessor() { - return new MethodValidationPostProcessor(); - } - - @Override - public void addArgumentResolvers(List argumentResolvers) { - // 添加MyRequestBody参数解析器 - argumentResolvers.add(new MyRequestArgumentResolver()); - } - - @Bean - public HttpMessageConverter responseBodyConverter() { - return new StringHttpMessageConverter(StandardCharsets.UTF_8); - } - - @Bean - public FastJsonHttpMessageConverter fastJsonHttpMessageConverters() { - FastJsonHttpMessageConverter fastConverter = new FastJsonHttpMessageConverter(); - List supportedMediaTypes = new ArrayList<>(); - supportedMediaTypes.add(MediaType.APPLICATION_JSON); - supportedMediaTypes.add(MediaType.APPLICATION_FORM_URLENCODED); - fastConverter.setSupportedMediaTypes(supportedMediaTypes); - FastJsonConfig fastJsonConfig = new FastJsonConfig(); - fastJsonConfig.setSerializerFeatures( - SerializerFeature.PrettyFormat, - SerializerFeature.DisableCircularReferenceDetect, - SerializerFeature.IgnoreNonFieldGetter); - fastJsonConfig.setDateFormat("yyyy-MM-dd HH:mm:ss"); - fastConverter.setFastJsonConfig(fastJsonConfig); - return fastConverter; - } - - @Override - public void configureMessageConverters(List> converters) { - converters.add(responseBodyConverter()); - converters.add(fastJsonHttpMessageConverters()); - } -} diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/config/DataSourceContextHolder.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/config/DataSourceContextHolder.java deleted file mode 100644 index 83ee2ecf..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/config/DataSourceContextHolder.java +++ /dev/null @@ -1,52 +0,0 @@ -package com.orangeforms.common.core.config; - -/** - * 通过线程本地存储的方式,保存当前数据库操作所需的数据源类型,动态数据源会根据该值,进行动态切换。 - * - * @author Jerry - * @date 2021-06-06 - */ -public class DataSourceContextHolder { - - private static final ThreadLocal CONTEXT_HOLDER = new ThreadLocal<>(); - - /** - * 设置数据源类型。 - * - * @param type 数据源类型 - * @return 原有数据源类型,如果第一次设置则返回null。 - */ - public static Integer setDataSourceType(Integer type) { - Integer datasourceType = CONTEXT_HOLDER.get(); - CONTEXT_HOLDER.set(type); - return datasourceType; - } - - /** - * 获取当前数据库操作执行线程的数据源类型,同时由动态数据源的路由函数调用。 - * - * @return 数据源类型。 - */ - public static Integer getDataSourceType() { - return CONTEXT_HOLDER.get(); - } - - /** - * 清除线程本地变量,以免内存泄漏。 - - * @param originalType 原有的数据源类型,如果该值为null,则情况本地化变量。 - */ - public static void unset(Integer originalType) { - if (originalType == null) { - CONTEXT_HOLDER.remove(); - } else { - CONTEXT_HOLDER.set(originalType); - } - } - - /** - * 私有构造函数,明确标识该常量类的作用。 - */ - private DataSourceContextHolder() { - } -} diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/config/DynamicDataSource.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/config/DynamicDataSource.java deleted file mode 100644 index b63255ab..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/config/DynamicDataSource.java +++ /dev/null @@ -1,17 +0,0 @@ -package com.orangeforms.common.core.config; - -import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource; - -/** - * 动态数据源对象。当存在多个数据连接时使用。 - * - * @author Jerry - * @date 2021-06-06 - */ -public class DynamicDataSource extends AbstractRoutingDataSource { - - @Override - protected Object determineCurrentLookupKey() { - return DataSourceContextHolder.getDataSourceType(); - } -} diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/config/EncryptConfig.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/config/EncryptConfig.java deleted file mode 100644 index bd348717..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/config/EncryptConfig.java +++ /dev/null @@ -1,20 +0,0 @@ -package com.orangeforms.common.core.config; - -import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.Configuration; -import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder; - -/** - * 目前用于用户密码加密,UAA接入应用客户端的client_secret加密。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Configuration -public class EncryptConfig { - - @Bean - public BCryptPasswordEncoder passwordEncoder() { - return new BCryptPasswordEncoder(); - } -} diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/config/RestTemplateConfig.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/config/RestTemplateConfig.java deleted file mode 100644 index fc504203..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/config/RestTemplateConfig.java +++ /dev/null @@ -1,64 +0,0 @@ -package com.orangeforms.common.core.config; - -import com.alibaba.fastjson.support.spring.FastJsonHttpMessageConverter; -import org.apache.http.client.HttpClient; -import org.apache.http.impl.client.HttpClientBuilder; -import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; -import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.Configuration; -import org.springframework.http.client.ClientHttpRequestFactory; -import org.springframework.http.client.ClientHttpResponse; -import org.springframework.http.client.HttpComponentsClientHttpRequestFactory; -import org.springframework.http.converter.HttpMessageConverter; -import org.springframework.http.converter.StringHttpMessageConverter; -import org.springframework.http.converter.json.MappingJackson2HttpMessageConverter; -import org.springframework.web.client.DefaultResponseErrorHandler; -import org.springframework.web.client.RestOperations; -import org.springframework.web.client.RestTemplate; - -import java.io.IOException; -import java.nio.charset.StandardCharsets; -import java.util.List; - -/** - * RestTemplate连接池配置对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Configuration -public class RestTemplateConfig { - private static final int MAX_TOTAL_CONNECTION = 50; - private static final int MAX_CONNECTION_PER_ROUTE = 20; - private static final int CONNECTION_TIMEOUT = 20000; - private static final int READ_TIMEOUT = 30000; - - @Bean - @ConditionalOnMissingBean({RestOperations.class, RestTemplate.class}) - public RestTemplate restTemplate() { - RestTemplate restTemplate = new RestTemplate(createFactory()); - List> messageConverters = restTemplate.getMessageConverters(); - messageConverters.removeIf( - c -> c instanceof StringHttpMessageConverter || c instanceof MappingJackson2HttpMessageConverter); - messageConverters.add(1, new StringHttpMessageConverter(StandardCharsets.UTF_8)); - messageConverters.add(new FastJsonHttpMessageConverter()); - restTemplate.setErrorHandler(new DefaultResponseErrorHandler() { - @Override - public void handleError(ClientHttpResponse response) throws IOException { - // 防止400+和500等错误被直接抛出异常,这里避开了缺省处理方式,所有的错误均交给业务代码处理。 - } - }); - return restTemplate; - } - - private ClientHttpRequestFactory createFactory() { - HttpClient httpClient = HttpClientBuilder.create() - .setMaxConnTotal(MAX_TOTAL_CONNECTION) - .setMaxConnPerRoute(MAX_CONNECTION_PER_ROUTE) - .build(); - HttpComponentsClientHttpRequestFactory factory = new HttpComponentsClientHttpRequestFactory(httpClient); - factory.setReadTimeout(READ_TIMEOUT); - factory.setConnectTimeout(CONNECTION_TIMEOUT); - return factory; - } -} \ No newline at end of file diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/config/TomcatConfig.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/config/TomcatConfig.java deleted file mode 100644 index b83c7059..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/config/TomcatConfig.java +++ /dev/null @@ -1,39 +0,0 @@ -package com.orangeforms.common.core.config; - -import org.apache.tomcat.util.descriptor.web.SecurityCollection; -import org.apache.tomcat.util.descriptor.web.SecurityConstraint; -import org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory; -import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.Configuration; - -/** - * tomcat配置对象。当前配置禁用了PUT和DELETE方法,防止渗透攻击。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Configuration -public class TomcatConfig { - - @Bean - public TomcatServletWebServerFactory servletContainer() { - TomcatServletWebServerFactory factory = new TomcatServletWebServerFactory(); - factory.addContextCustomizers(context -> { - SecurityConstraint securityConstraint = new SecurityConstraint(); - securityConstraint.setUserConstraint("CONFIDENTIAL"); - SecurityCollection collection = new SecurityCollection(); - collection.addPattern("/*"); - collection.addMethod("HEAD"); - collection.addMethod("PUT"); - collection.addMethod("PATCH"); - collection.addMethod("DELETE"); - collection.addMethod("TRACE"); - collection.addMethod("COPY"); - collection.addMethod("SEARCH"); - collection.addMethod("PROPFIND"); - securityConstraint.addCollection(collection); - context.addConstraint(securityConstraint); - }); - return factory; - } -} diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/constant/AggregationType.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/constant/AggregationType.java deleted file mode 100644 index b1840c49..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/constant/AggregationType.java +++ /dev/null @@ -1,81 +0,0 @@ -package com.orangeforms.common.core.constant; - -import java.util.HashMap; -import java.util.Map; - -/** - * 聚合计算的常量类型对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -public final class AggregationType { - - /** - * sum 计数 - */ - public static final int SUM = 0; - /** - * count 汇总 - */ - public static final int COUNT = 1; - /** - * average 平均值 - */ - public static final int AVG = 2; - /** - * min 最小值 - */ - public static final int MIN = 3; - /** - * max 最大值 - */ - public static final int MAX = 4; - - private static final Map DICT_MAP = new HashMap<>(5); - static { - DICT_MAP.put(SUM, "累计总和"); - DICT_MAP.put(COUNT, "数量总和"); - DICT_MAP.put(AVG, "平均值"); - DICT_MAP.put(MIN, "最小值"); - DICT_MAP.put(MAX, "最大值"); - } - - /** - * 判断参数是否为当前常量字典的合法值。 - * - * @param value 待验证的参数值。 - * @return 合法返回true,否则false。 - */ - public static boolean isValid(Integer value) { - return value != null && DICT_MAP.containsKey(value); - } - - /** - * 获取与SQL对应的聚合函数字符串名称。 - * - * @return 聚合函数名称。 - */ - public static String getAggregationFunction(Integer aggregationType) { - switch (aggregationType) { - case COUNT: - return "COUNT"; - case AVG: - return "AVG"; - case SUM: - return "SUM"; - case MAX: - return "MAX"; - case MIN: - return "MIN"; - default: - throw new IllegalArgumentException("无效的聚合类型!"); - } - } - - /** - * 私有构造函数,明确标识该常量类的作用。 - */ - private AggregationType() { - } -} diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/constant/AppDeviceType.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/constant/AppDeviceType.java deleted file mode 100644 index 7faa9c74..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/constant/AppDeviceType.java +++ /dev/null @@ -1,59 +0,0 @@ -package com.orangeforms.common.core.constant; - -import java.util.HashMap; -import java.util.Map; - -/** - * App 登录的设备类型。 - * - * @author Jerry - * @date 2021-06-06 - */ -public final class AppDeviceType { - - /** - * 移动端 (如果不考虑区分android或ios的,可以使用该值) - */ - public static final int MOBILE = 0; - /** - * android - */ - public static final int ANDROID = 1; - /** - * iOS - */ - public static final int IOS = 2; - /** - * 微信公众号和小程序 - */ - public static final int WEIXIN = 3; - /** - * PC WEB - */ - public static final int WEB = 4; - - private static final Map DICT_MAP = new HashMap<>(5); - static { - DICT_MAP.put(MOBILE, "移动端"); - DICT_MAP.put(ANDROID, "Android"); - DICT_MAP.put(IOS, "iOS"); - DICT_MAP.put(WEIXIN, "微信"); - DICT_MAP.put(WEB, "PC WEB"); - } - - /** - * 判断参数是否为当前常量字典的合法值。 - * - * @param value 待验证的参数值。 - * @return 合法返回true,否则false。 - */ - public static boolean isValid(Integer value) { - return value != null && DICT_MAP.containsKey(value); - } - - /** - * 私有构造函数,明确标识该常量类的作用。 - */ - private AppDeviceType() { - } -} diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/constant/ApplicationConstant.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/constant/ApplicationConstant.java deleted file mode 100644 index 5b73f2b5..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/constant/ApplicationConstant.java +++ /dev/null @@ -1,85 +0,0 @@ -package com.orangeforms.common.core.constant; - -/** - * 应用程序的常量声明对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -public final class ApplicationConstant { - - /** - * 数据同步使用的缺省消息队列主题名称。 - */ - public static final String DEFAULT_DATA_SYNC_TOPIC = "DemoFlow"; - /** - * 全量数据同步中,新增数据对象的键名称。 - */ - public static final String DEFAULT_FULL_SYNC_DATA_KEY = "data"; - /** - * 全量数据同步中,原有数据对象的键名称。 - */ - public static final String DEFAULT_FULL_SYNC_OLD_DATA_KEY = "oldData"; - /** - * 全量数据同步中,数据对象主键的键名称。 - */ - public static final String DEFAULT_FULL_SYNC_ID_KEY = "id"; - /** - * 为字典表数据缓存时,缓存名称的固定后缀。 - */ - public static final String DICT_CACHE_NAME_SUFFIX = "-DICT"; - /** - * 为树形字典表数据缓存时,缓存名称的固定后缀。 - */ - public static final String TREE_DICT_CACHE_NAME_SUFFIX = "-TREE-DICT"; - /** - * 图片文件上传的父目录。 - */ - public static final String UPLOAD_IMAGE_PARENT_PATH = "image"; - /** - * 附件文件上传的父目录。 - */ - public static final String UPLOAD_ATTACHMENT_PARENT_PATH = "attachment"; - /** - * CSV文件扩展名。 - */ - public static final String CSV_EXT = "csv"; - /** - * XLSX文件扩展名。 - */ - public static final String XLSX_EXT = "xlsx"; - /** - * 统计分类计算时,按天聚合计算的常量值。(前端在MyOrderParam和MyGroupParam中传给后台) - */ - public static final String DAY_AGGREGATION = "day"; - /** - * 统计分类计算时,按月聚合计算的常量值。(前端在MyOrderParam和MyGroupParam中传给后台) - */ - public static final String MONTH_AGGREGATION = "month"; - /** - * 统计分类计算时,按年聚合计算的常量值。(前端在MyOrderParam和MyGroupParam中传给后台) - */ - public static final String YEAR_AGGREGATION = "year"; - /** - * 请求头跟踪id名。 - */ - public static final String HTTP_HEADER_TRACE_ID = "traceId"; - /** - * 操作日志的数据源类型。仅当前服务为多数据源时使用。 - * 在common-log模块中,SysOperationLogServiceImpl的MyDataSource注解一定要使用该参数。 - * 在多数据源的业务服务中,DataSourceType的常量一定要包含该值,多数据源的配置中,也一定要有与该值匹配的数据源Bean。 - */ - public static final int OPERATION_LOG_DATASOURCE_TYPE = 1000; - /** - * 重要说明:该值为项目生成后的缺省密钥,仅为使用户可以快速上手并跑通流程。 - * 在实际的应用中,一定要为不同的项目或服务,自行生成公钥和私钥,并将 PRIVATE_KEY 的引用改为服务的配置项。 - * 密钥的生成方式,可通过执行common.core.util.RsaUtil类的main函数动态生成。 - */ - public static final String PRIVATE_KEY = - "MIICdgIBADANBgkqhkiG9w0BAQEFAASCAmAwggJcAgEAAoGBAKkLhAydtOtA4WuIkkIIUVaGWu4ElOEAQF9GTulHHWOwCHI1UvcKolvS1G+mdsKcmGtEAQ92AUde/kDRGu8Wn7kLDtCgUfo72soHz7Qfv5pVB4ohMxQd/9cxeKjKbDoirhB9Z3xGF20zUozp4ZPLxpTtI7azr0xzUtd5+D/HfLDrAgMBAAECgYEApESZhDz4YyeAJiPnpJ06lS8oS2VOWzsIUs0av5uoloeoHXtt7Lx7u2kroHeNrl3Hy2yg7ypH4dgQkGHin3VHrVAgjG3TxhgBXIqqntzzk2AGJKBeIIkRX86uTvtKZyp3flUgcwcGmpepAHS1V1DPY3aVYvbcqAmoL6DX6VYN0NECQQDQUitMdC76lEtAr5/ywS0nrZJDo6U7eQ7ywx/eiJ+YmrSye8oorlAj1VBWG+Cl6jdHOHtTQyYv/tu71fjzQiJTAkEAz7wb47/vcSUpNWQxItFpXz0o6rbJh71xmShn1AKP7XptOVZGlW9QRYEzHabV9m/DHqI00cMGhHrWZAhCiTkUCQJAFsJjaJ7o4weAkTieyO7B+CvGZw1h5/V55Jvcx3s1tH5yb22G0Jr6tm9/r2isSnQkReutzZLwgR3e886UvD7lcQJAAUcD2OOuQkDbPwPNtYwaHMbQgJj9JkOI9kskUE5vuiMdltOr/XFAyhygRtdmy2wmhAK1VnDfkmL6/IR8fEGImQJABOB0KCalb0M8CPnqqHzozrD8gPObnIIr4aVvLIPATN2g7MM2N6F7JbI4RZFiKa92LV6bhQCY8OvHi5K2cgFpbw=="; - /** - * 私有构造函数,明确标识该常量类的作用。 - */ - private ApplicationConstant() { - } -} diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/constant/ErrorCodeEnum.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/constant/ErrorCodeEnum.java deleted file mode 100644 index fd3acc2f..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/constant/ErrorCodeEnum.java +++ /dev/null @@ -1,84 +0,0 @@ -package com.orangeforms.common.core.constant; - -/** - * 返回应答中的错误代码和错误信息。 - * - * @author Jerry - * @date 2021-06-06 - */ -public enum ErrorCodeEnum { - - /** - * 没有错误 - */ - NO_ERROR("没有错误"), - /** - * 未处理的异常! - */ - UNHANDLED_EXCEPTION("未处理的异常!"), - - ARGUMENT_NULL_EXIST("数据验证失败,接口调用参数存在空值,请核对!"), - ARGUMENT_PK_ID_NULL("数据验证失败,接口调用主键Id参数为空,请核对!"), - INVALID_ARGUMENT_FORMAT("数据验证失败,不合法的参数格式,请核对!"), - INVALID_STATUS_ARGUMENT("数据验证失败,无效的状态参数值,请核对!"), - UPLOAD_FAILED("数据验证失败,数据上传失败!"), - INVALID_UPLOAD_FIELD("数据验证失败,该字段不支持数据上传!"), - INVALID_UPLOAD_STORE_TYPE("数据验证失败,并不支持上传存储类型!"), - INVALID_UPLOAD_FILE_ARGUMENT("数据验证失败,上传文件参数错误,请核对!"), - INVALID_UPLOAD_FILE_IOERROR("上传文件写入失败,请联系管理员!"), - UNAUTHORIZED_LOGIN("当前用户尚未登录或登录已超时,请重新登录!"), - UNAUTHORIZED_USER_PERMISSION("权限验证失败,当前用户不能访问该接口,请核对!"), - NO_ACCESS_PERMISSION("当前用户没有访问权限,请核对!"), - NO_OPERATION_PERMISSION("当前用户没有操作权限,请核对!"), - - PASSWORD_ERR("密码错误,请重试!"), - INVALID_USERNAME_PASSWORD("用户名或密码错误,请重试!"), - INVALID_ACCESS_TOKEN("无效的用户访问令牌!"), - INVALID_USER_STATUS("用户状态错误,请刷新后重试!"), - INVALID_TENANT_CODE("指定的租户编码并不存在,请刷新后重试!"), - INVALID_TENANT_STATUS("当前租户为不可用状态,请刷新后重试!"), - INVALID_USER_TENANT("当前用户并不属于当前租户,请刷新后重试!"), - - HAS_CHILDREN_DATA("数据验证失败,子数据存在,请刷新后重试!"), - DATA_VALIDATED_FAILED("数据验证失败,请核对!"), - UPLOAD_FILE_FAILED("文件上传失败,请联系管理员!"), - DATA_SAVE_FAILED("数据保存失败,请联系管理员!"), - DATA_ACCESS_FAILED("数据访问失败,请联系管理员!"), - DATA_PERM_ACCESS_FAILED("数据访问失败,您没有该页面的数据访问权限!"), - DUPLICATED_UNIQUE_KEY("数据保存失败,存在重复数据,请核对!"), - DATA_NOT_EXIST("数据不存在,请刷新后重试!"), - DATA_PARENT_LEVEL_ID_NOT_EXIST("数据验证失败,父级别关联Id不存在,请刷新后重试!"), - DATA_PARENT_ID_NOT_EXIST("数据验证失败,ParentId不存在,请核对!"), - INVALID_RELATED_RECORD_ID("数据验证失败,关联数据并不存在,请刷新后重试!"), - INVALID_DATA_MODEL("数据验证失败,无效的数据实体对象!"), - INVALID_DATA_FIELD("数据验证失败,无效的数据实体对象字段!"), - INVALID_CLASS_FIELD("数据验证失败,无效的类对象字段!"), - SERVER_INTERNAL_ERROR("服务器内部错误,请联系管理员!"), - REDIS_CACHE_ACCESS_TIMEOUT("Redis缓存数据访问超时,请刷新后重试!"), - REDIS_CACHE_ACCESS_STATE_ERROR("Redis缓存数据访问状态错误,请刷新后重试!"); - - // 下面的枚举值为特定枚举值,即开发者可以根据自己的项目需求定义更多的非通用枚举值 - - /** - * 构造函数。 - * - * @param errorMessage 错误消息。 - */ - ErrorCodeEnum(String errorMessage) { - this.errorMessage = errorMessage; - } - - /** - * 错误信息。 - */ - private final String errorMessage; - - /** - * 获取错误信息。 - * - * @return 错误信息。 - */ - public String getErrorMessage() { - return errorMessage; - } -} diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/constant/GlobalDeletedFlag.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/constant/GlobalDeletedFlag.java deleted file mode 100644 index 8cebe74f..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/constant/GlobalDeletedFlag.java +++ /dev/null @@ -1,25 +0,0 @@ -package com.orangeforms.common.core.constant; - -/** - * 数据记录逻辑删除标记常量。 - * - * @author Jerry - * @date 2021-06-06 - */ -public final class GlobalDeletedFlag { - - /** - * 表示数据表记录已经删除 - */ - public static final int DELETED = -1; - /** - * 数据记录正常 - */ - public static final int NORMAL = 1; - - /** - * 私有构造函数,明确标识该常量类的作用。 - */ - private GlobalDeletedFlag() { - } -} diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/exception/DataValidationException.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/exception/DataValidationException.java deleted file mode 100644 index 0b38d2d8..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/exception/DataValidationException.java +++ /dev/null @@ -1,26 +0,0 @@ -package com.orangeforms.common.core.exception; - -/** - * 数据验证失败的自定义异常。 - * - * @author Jerry - * @date 2021-06-06 - */ -public class DataValidationException extends RuntimeException { - - /** - * 构造函数。 - */ - public DataValidationException() { - - } - - /** - * 构造函数。 - * - * @param msg 错误信息。 - */ - public DataValidationException(String msg) { - super(msg); - } -} diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/exception/InvalidClassFieldException.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/exception/InvalidClassFieldException.java deleted file mode 100644 index de2cc677..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/exception/InvalidClassFieldException.java +++ /dev/null @@ -1,30 +0,0 @@ -package com.orangeforms.common.core.exception; - -import lombok.Data; -import lombok.EqualsAndHashCode; - -/** - * 无效的类对象字段的自定义异常。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Data -@EqualsAndHashCode(callSuper = true) -public class InvalidClassFieldException extends RuntimeException { - - private final String className; - private final String fieldName; - - /** - * 构造函数。 - * - * @param className 对象名。 - * @param fieldName 字段名。 - */ - public InvalidClassFieldException(String className, String fieldName) { - super("Invalid FieldName [" + fieldName + "] in Class [" + className + "]."); - this.className = className; - this.fieldName = fieldName; - } -} diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/exception/InvalidDataFieldException.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/exception/InvalidDataFieldException.java deleted file mode 100644 index 5a67760e..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/exception/InvalidDataFieldException.java +++ /dev/null @@ -1,30 +0,0 @@ -package com.orangeforms.common.core.exception; - -import lombok.Data; -import lombok.EqualsAndHashCode; - -/** - * 无效的实体对象字段的自定义异常。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Data -@EqualsAndHashCode(callSuper = true) -public class InvalidDataFieldException extends RuntimeException { - - private final String modelName; - private final String fieldName; - - /** - * 构造函数。 - * - * @param modelName 实体对象名。 - * @param fieldName 字段名。 - */ - public InvalidDataFieldException(String modelName, String fieldName) { - super("Invalid FieldName [" + fieldName + "] in Model Class [" + modelName + "]."); - this.modelName = modelName; - this.fieldName = fieldName; - } -} diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/exception/InvalidDataModelException.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/exception/InvalidDataModelException.java deleted file mode 100644 index 4ebfedf6..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/exception/InvalidDataModelException.java +++ /dev/null @@ -1,27 +0,0 @@ -package com.orangeforms.common.core.exception; - -import lombok.Data; -import lombok.EqualsAndHashCode; - -/** - * 无效的实体对象的自定义异常。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Data -@EqualsAndHashCode(callSuper = true) -public class InvalidDataModelException extends RuntimeException { - - private final String modelName; - - /** - * 构造函数。 - * - * @param modelName 实体对象名。 - */ - public InvalidDataModelException(String modelName) { - super("Invalid Model Class [" + modelName + "]."); - this.modelName = modelName; - } -} diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/exception/InvalidRedisModeException.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/exception/InvalidRedisModeException.java deleted file mode 100644 index a8378424..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/exception/InvalidRedisModeException.java +++ /dev/null @@ -1,27 +0,0 @@ -package com.orangeforms.common.core.exception; - -import lombok.Data; -import lombok.EqualsAndHashCode; - -/** - * 无效的Redis模式的自定义异常。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Data -@EqualsAndHashCode(callSuper = true) -public class InvalidRedisModeException extends RuntimeException { - - private final String mode; - - /** - * 构造函数。 - * - * @param mode 错误的模式。 - */ - public InvalidRedisModeException(String mode) { - super("Invalid Redis Mode [" + mode + "], only supports [single/cluster/sentinel/master_slave]"); - this.mode = mode; - } -} diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/exception/MapCacheAccessException.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/exception/MapCacheAccessException.java deleted file mode 100644 index e7ce3a69..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/exception/MapCacheAccessException.java +++ /dev/null @@ -1,20 +0,0 @@ -package com.orangeforms.common.core.exception; - -/** - * 内存缓存访问失败。比如:获取分布式数据锁超时、等待线程中断等。 - * - * @author Jerry - * @date 2021-06-06 - */ -public class MapCacheAccessException extends RuntimeException { - - /** - * 构造函数。 - * - * @param msg 错误信息。 - * @param cause 原始异常。 - */ - public MapCacheAccessException(String msg, Throwable cause) { - super(msg, cause); - } -} diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/exception/MyRuntimeException.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/exception/MyRuntimeException.java deleted file mode 100644 index 128796b2..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/exception/MyRuntimeException.java +++ /dev/null @@ -1,36 +0,0 @@ -package com.orangeforms.common.core.exception; - -/** - * 自定义的运行时异常,在需要抛出运行时异常时,可使用该异常。 - * NOTE:主要是为了避免SonarQube进行代码质量扫描时,给出警告。 - * - * @author Jerry - * @date 2021-06-06 - */ -public class MyRuntimeException extends RuntimeException { - - /** - * 构造函数。 - */ - public MyRuntimeException() { - - } - - /** - * 构造函数。 - * - * @param throwable 引发异常对象。 - */ - public MyRuntimeException(Throwable throwable) { - super(throwable); - } - - /** - * 构造函数。 - * - * @param msg 错误信息。 - */ - public MyRuntimeException(String msg) { - super(msg); - } -} diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/exception/NoDataAffectException.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/exception/NoDataAffectException.java deleted file mode 100644 index 17aab5fd..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/exception/NoDataAffectException.java +++ /dev/null @@ -1,26 +0,0 @@ -package com.orangeforms.common.core.exception; - -/** - * 没有数据被修改的自定义异常。 - * - * @author Jerry - * @date 2021-06-06 - */ -public class NoDataAffectException extends RuntimeException { - - /** - * 构造函数。 - */ - public NoDataAffectException() { - - } - - /** - * 构造函数。 - * - * @param msg 错误信息。 - */ - public NoDataAffectException(String msg) { - super(msg); - } -} diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/exception/NoDataPermException.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/exception/NoDataPermException.java deleted file mode 100644 index 16dd4ed3..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/exception/NoDataPermException.java +++ /dev/null @@ -1,26 +0,0 @@ -package com.orangeforms.common.core.exception; - -/** - * 没有数据访问权限的自定义异常。 - * - * @author Jerry - * @date 2021-06-06 - */ -public class NoDataPermException extends RuntimeException { - - /** - * 构造函数。 - */ - public NoDataPermException() { - - } - - /** - * 构造函数。 - * - * @param msg 错误信息。 - */ - public NoDataPermException(String msg) { - super(msg); - } -} diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/exception/RedisCacheAccessException.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/exception/RedisCacheAccessException.java deleted file mode 100644 index 28f828b2..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/exception/RedisCacheAccessException.java +++ /dev/null @@ -1,20 +0,0 @@ -package com.orangeforms.common.core.exception; - -/** - * Redis缓存访问失败。比如:获取分布式数据锁超时、等待线程中断等。 - * - * @author Jerry - * @date 2021-06-06 - */ -public class RedisCacheAccessException extends RuntimeException { - - /** - * 构造函数。 - * - * @param msg 错误信息。 - * @param cause 原始异常。 - */ - public RedisCacheAccessException(String msg, Throwable cause) { - super(msg, cause); - } -} diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/interceptor/MyRequestArgumentResolver.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/interceptor/MyRequestArgumentResolver.java deleted file mode 100644 index 530e2480..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/interceptor/MyRequestArgumentResolver.java +++ /dev/null @@ -1,234 +0,0 @@ -package com.orangeforms.common.core.interceptor; - -import cn.hutool.core.convert.Convert; -import com.alibaba.fastjson.JSON; -import com.alibaba.fastjson.JSONArray; -import com.alibaba.fastjson.JSONObject; -import com.orangeforms.common.core.annotation.MyRequestBody; -import org.apache.commons.io.IOUtils; -import org.apache.commons.lang3.StringUtils; -import org.springframework.core.MethodParameter; -import org.springframework.http.HttpMethod; -import org.springframework.http.MediaType; -import org.springframework.lang.NonNull; -import org.springframework.web.bind.support.WebDataBinderFactory; -import org.springframework.web.context.request.NativeWebRequest; -import org.springframework.web.context.request.RequestAttributes; -import org.springframework.web.method.support.HandlerMethodArgumentResolver; -import org.springframework.web.method.support.ModelAndViewContainer; - -import javax.servlet.http.HttpServletRequest; -import java.io.IOException; -import java.lang.reflect.ParameterizedType; -import java.math.BigDecimal; -import java.util.*; - -/** - * MyRequestBody解析器 - * 解决的问题: - * 1、单个字符串等包装类型都要写一个对象才可以用@RequestBody接收; - * 2、多个对象需要封装到一个对象里才可以用@RequestBody接收。 - * - * @author Jerry - * @date 2021-06-06 - */ -public class MyRequestArgumentResolver implements HandlerMethodArgumentResolver { - - private static final String JSONBODY_ATTRIBUTE = "MY_REQUEST_BODY_ATTRIBUTE_XX"; - - private static final Set> CLASS_SET = new HashSet<>(); - - static { - CLASS_SET.add(Integer.class); - CLASS_SET.add(Long.class); - CLASS_SET.add(Short.class); - CLASS_SET.add(Float.class); - CLASS_SET.add(Double.class); - CLASS_SET.add(Boolean.class); - CLASS_SET.add(Byte.class); - CLASS_SET.add(BigDecimal.class); - CLASS_SET.add(Character.class); - } - - /** - * 设置支持的方法参数类型。 - * - * @param parameter 方法参数。 - * @return 支持的类型。 - */ - @Override - public boolean supportsParameter(@NonNull MethodParameter parameter) { - return parameter.hasParameterAnnotation(MyRequestBody.class); - } - - /** - * 参数解析,利用fastjson。 - * 注意:非基本类型返回null会报空指针异常,要通过反射或者JSON工具类创建一个空对象。 - */ - @Override - public Object resolveArgument( - @NonNull MethodParameter parameter, - ModelAndViewContainer mavContainer, - @NonNull NativeWebRequest webRequest, - WebDataBinderFactory binderFactory) throws Exception { - HttpServletRequest servletRequest = webRequest.getNativeRequest(HttpServletRequest.class); - String contentType = servletRequest.getContentType(); - if (!HttpMethod.POST.name().equals(servletRequest.getMethod())) { - throw new IllegalArgumentException("Only POST method can be applied @MyRequestBody annotation!"); - } - if (!StringUtils.containsIgnoreCase(contentType, MediaType.APPLICATION_JSON_VALUE)) { - throw new IllegalArgumentException( - "Only application/json Content-Type can be applied @MyRequestBody annotation!"); - } - // 根据@MyRequestBody注解value作为json解析的key - MyRequestBody parameterAnnotation = parameter.getParameterAnnotation(MyRequestBody.class); - JSONObject jsonObject = getRequestBody(webRequest); - if (jsonObject == null) { - if (parameterAnnotation.required()) { - throw new IllegalArgumentException("Request Body is EMPTY!"); - } - return null; - } - String key = parameterAnnotation.value(); - if (StringUtils.isBlank(key)) { - key = parameter.getParameterName(); - } - Object value = jsonObject.get(key); - if (value == null) { - if (parameterAnnotation.required()) { - throw new IllegalArgumentException(String.format("Required parameter %s is not present!", key)); - } - return null; - } - // 获取参数类型。 - Class parameterType = parameter.getParameterType(); - // 基本类型 - if (parameterType.isPrimitive()) { - return parsePrimitive(parameterType.getName(), value); - } - // 基本类型包装类 - if (isBasicDataTypes(parameterType)) { - return parseBasicTypeWrapper(parameterType, value); - } else if (parameterType == String.class) { - // 字符串类型 - return value.toString(); - } - // 数组类型 - if (value instanceof JSONArray) { - return parseArray(parameterType, parameterAnnotation.elementType(), key, value); - } - // 其他复杂对象 - return JSON.toJavaObject((JSONObject) value, parameterType); - } - - @SuppressWarnings("unchecked") - private Object parseArray(Class parameterType, Class elementType, String key, Object value) - throws IllegalAccessException, InstantiationException { - Object o; - if (!parameterType.equals(List.class)) { - o = parameterType.newInstance(); - parameterType = (Class) ((ParameterizedType) - parameterType.getGenericSuperclass()).getActualTypeArguments()[0]; - } else { - parameterType = elementType; - if (parameterType.equals(Class.class)) { - throw new IllegalArgumentException( - String.format("List Type parameter %s MUST have elementType!", key)); - } - o = new LinkedList<>(); - } - if (!(o instanceof List)) { - throw new IllegalArgumentException(String.format("Required parameter %s is List!", key)); - } - ((List) o).addAll(((JSONArray) value).toJavaList(parameterType)); - return o; - } - - private Object parsePrimitive(String parameterTypeName, Object value) { - final String booleanTypeName = "boolean"; - if (booleanTypeName.equals(parameterTypeName)) { - return Boolean.valueOf(value.toString()); - } - final String intTypeName = "int"; - if (intTypeName.equals(parameterTypeName)) { - return Integer.valueOf(value.toString()); - } - final String charTypeName = "char"; - if (charTypeName.equals(parameterTypeName)) { - return value.toString().charAt(0); - } - final String shortTypeName = "short"; - if (shortTypeName.equals(parameterTypeName)) { - return Short.valueOf(value.toString()); - } - final String longTypeName = "long"; - if (longTypeName.equals(parameterTypeName)) { - return Long.valueOf(value.toString()); - } - final String floatTypeName = "float"; - if (floatTypeName.equals(parameterTypeName)) { - return Float.valueOf(value.toString()); - } - final String doubleTypeName = "double"; - if (doubleTypeName.equals(parameterTypeName)) { - return Double.valueOf(value.toString()); - } - final String byteTypeName = "byte"; - if (byteTypeName.equals(parameterTypeName)) { - return Byte.valueOf(value.toString()); - } - return null; - } - - private Object parseBasicTypeWrapper(Class parameterType, Object value) { - if (Number.class.isAssignableFrom(parameterType)) { - if (value instanceof String) { - return Convert.convert(parameterType, value); - } - Number number = (Number) value; - if (parameterType == Integer.class) { - return number.intValue(); - } else if (parameterType == Short.class) { - return number.shortValue(); - } else if (parameterType == Long.class) { - return number.longValue(); - } else if (parameterType == Float.class) { - return number.floatValue(); - } else if (parameterType == Double.class) { - return number.doubleValue(); - } else if (parameterType == Byte.class) { - return number.byteValue(); - } else if (parameterType == BigDecimal.class) { - if (value instanceof Double || value instanceof Float) { - return BigDecimal.valueOf(number.doubleValue()); - } else { - return BigDecimal.valueOf(number.longValue()); - } - } - } else if (parameterType == Boolean.class) { - return value; - } else if (parameterType == Character.class) { - return value.toString().charAt(0); - } - return null; - } - - private boolean isBasicDataTypes(Class clazz) { - return CLASS_SET.contains(clazz); - } - - private JSONObject getRequestBody(NativeWebRequest webRequest) throws IOException { - HttpServletRequest servletRequest = webRequest.getNativeRequest(HttpServletRequest.class); - // 有就直接获取 - JSONObject jsonObject = (JSONObject) webRequest.getAttribute(JSONBODY_ATTRIBUTE, RequestAttributes.SCOPE_REQUEST); - // 没有就从请求中读取 - if (jsonObject == null) { - String jsonBody = IOUtils.toString(servletRequest.getReader()); - jsonObject = JSON.parseObject(jsonBody); - if (jsonObject != null) { - webRequest.setAttribute(JSONBODY_ATTRIBUTE, jsonObject, RequestAttributes.SCOPE_REQUEST); - } - } - return jsonObject; - } -} diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/listener/LoadServiceRelationListener.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/listener/LoadServiceRelationListener.java deleted file mode 100644 index e64c3b49..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/listener/LoadServiceRelationListener.java +++ /dev/null @@ -1,28 +0,0 @@ -package com.orangeforms.common.core.listener; - -import com.orangeforms.common.core.base.service.BaseService; -import org.springframework.boot.context.event.ApplicationReadyEvent; -import org.springframework.context.ApplicationListener; -import org.springframework.stereotype.Component; - -import java.util.Map; - -/** - * 应用程序启动后的事件监听对象。主要负责加载Model之间的字典关联和一对一关联所对应的Service结构关系。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Component -public class LoadServiceRelationListener implements ApplicationListener { - - @SuppressWarnings("all") - @Override - public void onApplicationEvent(ApplicationReadyEvent applicationReadyEvent) { - Map serviceMap = - applicationReadyEvent.getApplicationContext().getBeansOfType(BaseService.class); - for (Map.Entry e : serviceMap.entrySet()) { - e.getValue().loadRelationStruct(); - } - } -} diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/object/CallResult.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/object/CallResult.java deleted file mode 100644 index 9b748b0b..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/object/CallResult.java +++ /dev/null @@ -1,87 +0,0 @@ -package com.orangeforms.common.core.object; - -import com.alibaba.fastjson.JSONObject; -import lombok.Data; - -/** - * 接口数据验证结果对象。主要是Service类使用。 - * 同时为了提升效率,减少查询次数,可以根据具体的需求,将部分验证关联对象存入data字段,以供Controller使用。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Data -public class CallResult { - - /** - * 为了优化性能,所有没有携带数据的正确结果,均可用该对象表示。 - */ - private static final CallResult OK = new CallResult(); - /** - * 是否成功标记。 - */ - private boolean success = true; - /** - * 错误信息描述。 - */ - private String errorMessage = null; - /** - * 在验证同时,仍然需要附加的关联数据对象。 - */ - private JSONObject data; - - /** - * 创建验证结果对象。 - * - * @param errorMessage 错误描述信息。 - * @return 如果参数为空,表示成功,否则返回代码错误信息的错误对象实例。 - */ - public static CallResult create(String errorMessage) { - return errorMessage == null ? ok() : error(errorMessage); - } - - /** - * 创建验证结果对象。 - * - * @param errorMessage 错误描述信息。 - * @param data 附带的数据对象。 - * @return 如果参数为空,表示成功,否则返回代码错误信息的错误对象实例。 - */ - public static CallResult create(String errorMessage, JSONObject data) { - return errorMessage == null ? ok(data) : error(errorMessage); - } - - /** - * 创建表示验证成功的对象实例。 - * - * @return 验证成功对象实例。 - */ - public static CallResult ok() { - return OK; - } - - /** - * 创建表示验证成功的对象实例。 - * - * @param data 附带的数据对象。 - * @return 验证成功对象实例。 - */ - public static CallResult ok(JSONObject data) { - CallResult result = new CallResult(); - result.data = data; - return result; - } - - /** - * 创建表示验证失败的对象实例。 - * - * @param errorMessage 错误描述。 - * @return 验证失败对象实例。 - */ - public static CallResult error(String errorMessage) { - CallResult result = new CallResult(); - result.success = false; - result.errorMessage = errorMessage; - return result; - } -} diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/object/DummyClass.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/object/DummyClass.java deleted file mode 100644 index bc3046c2..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/object/DummyClass.java +++ /dev/null @@ -1,27 +0,0 @@ -package com.orangeforms.common.core.object; - -/** - * 哑元对象,主要用于注解中的缺省对象占位符。 - * - * @author Jerry - * @date 2021-06-06 - */ -public final class DummyClass { - - private static final Object EMPTY_OBJECT = new Object(); - - /** - * 可以忽略的空对象。避免sonarqube的各种警告。 - * - * @return 空对象。 - */ - public static Object emptyObject() { - return EMPTY_OBJECT; - } - - /** - * 私有构造函数,明确标识该常量类的作用。 - */ - private DummyClass() { - } -} diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/object/GlobalThreadLocal.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/object/GlobalThreadLocal.java deleted file mode 100644 index 2a725b12..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/object/GlobalThreadLocal.java +++ /dev/null @@ -1,52 +0,0 @@ -package com.orangeforms.common.core.object; - -import cn.hutool.core.util.BooleanUtil; - -/** - * 线程本地化数据管理的工具类。可根据需求自行添加更多的线程本地化变量及其操作方法。 - * - * @author Jerry - * @date 2021-06-06 - */ -public class GlobalThreadLocal { - - /** - * 存储数据权限过滤是否启用的线程本地化对象。 - * 目前的过滤条件,包括数据权限和租户过滤。 - */ - private static final ThreadLocal DATA_FILTER_ENABLE = ThreadLocal.withInitial(() -> Boolean.TRUE); - - /** - * 设置数据过滤是否打开。如果打开,当前Servlet线程所执行的SQL操作,均会进行数据过滤。 - * - * @param enable 打开为true,否则false。 - * @return 返回之前的状态,便于恢复。 - */ - public static boolean setDataFilter(boolean enable) { - boolean oldValue = DATA_FILTER_ENABLE.get(); - DATA_FILTER_ENABLE.set(enable); - return oldValue; - } - - /** - * 判断当前Servlet线程所执行的SQL操作,是否进行数据过滤。 - * - * @return true 进行数据权限过滤,否则false。 - */ - public static boolean enabledDataFilter() { - return BooleanUtil.isTrue(DATA_FILTER_ENABLE.get()); - } - - /** - * 清空该存储数据,主动释放线程本地化存储资源。 - */ - public static void clearDataFilter() { - DATA_FILTER_ENABLE.remove(); - } - - /** - * 私有构造函数,明确标识该常量类的作用。 - */ - private GlobalThreadLocal() { - } -} diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/object/LoginUserInfo.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/object/LoginUserInfo.java deleted file mode 100644 index f4d08338..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/object/LoginUserInfo.java +++ /dev/null @@ -1,62 +0,0 @@ -package com.orangeforms.common.core.object; - -import lombok.Data; -import lombok.ToString; -import lombok.extern.slf4j.Slf4j; - -import java.util.Date; - -/** - * 在线登录用户信息。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Data -@ToString -@Slf4j -public class LoginUserInfo { - - /** - * 用户Id。 - */ - private Long userId; - /** - * 用户所在部门Id。 - * 仅当系统支持uaa时可用,否则可以直接忽略该字段。保留该字段是为了保持单体和微服务通用代码部分的兼容性。 - */ - private Long deptId; - /** - * 租户Id。 - * 仅当系统支持uaa时可用,否则可以直接忽略该字段。保留该字段是为了保持单体和微服务通用代码部分的兼容性。 - */ - private Long tenantId; - /** - * 是否为超级管理员。 - */ - private Boolean isAdmin; - /** - * 用户登录名。 - */ - private String loginName; - /** - * 用户显示名称。 - */ - private String showName; - /** - * 标识不同登录的会话Id。 - */ - private String sessionId; - /** - * 登录IP。 - */ - private String loginIp; - /** - * 登录时间。 - */ - private Date loginTime; - /** - * 登录设备类型。 - */ - private Integer deviceType; -} diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/object/MyGroupCriteria.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/object/MyGroupCriteria.java deleted file mode 100644 index 5c559b9e..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/object/MyGroupCriteria.java +++ /dev/null @@ -1,24 +0,0 @@ -package com.orangeforms.common.core.object; - -import lombok.AllArgsConstructor; -import lombok.Data; - -/** - * Mybatis Mapper.xml中所需的分组条件对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Data -@AllArgsConstructor -public class MyGroupCriteria { - - /** - * GROUP BY 从句后面的参数。 - */ - private String groupBy; - /** - * SELECT 从句后面的分组显示字段。 - */ - private String groupSelect; -} diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/object/MyGroupParam.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/object/MyGroupParam.java deleted file mode 100644 index 9f36b740..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/object/MyGroupParam.java +++ /dev/null @@ -1,170 +0,0 @@ -package com.orangeforms.common.core.object; - -import cn.hutool.core.util.ReflectUtil; -import com.orangeforms.common.core.constant.ApplicationConstant; -import com.orangeforms.common.core.exception.InvalidClassFieldException; -import com.orangeforms.common.core.exception.InvalidDataFieldException; -import com.orangeforms.common.core.exception.InvalidDataModelException; -import com.orangeforms.common.core.util.MyModelUtil; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.extern.slf4j.Slf4j; -import org.apache.commons.lang3.StringUtils; - -import java.lang.reflect.Field; -import java.util.ArrayList; -import java.util.LinkedList; -import java.util.List; - -/** - * 查询分组参数请求对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@EqualsAndHashCode(callSuper = true) -@Slf4j -@Data -public class MyGroupParam extends ArrayList { - - /** - * SQL语句的SELECT LIST中,分组字段的返回字段名称列表。 - */ - private List selectGroupFieldList; - /** - * 分组参数解析后构建的SQL语句中所需的分组数据,如GROUP BY的字段列表和SELECT LIST中的分组字段显示列表。 - */ - private MyGroupCriteria groupCriteria; - /** - * 基于分组参数对象中的数据,构建SQL中select list和group by从句可以直接使用的分组对象。 - * - * @param groupParam 分组参数对象。 - * @param modelClazz 查询表对应的主对象的Class。 - * @return SQL中所需的GROUP对象。详见MyGroupCriteria类定义。 - */ - public static MyGroupParam buildGroupBy(MyGroupParam groupParam, Class modelClazz) { - if (groupParam == null) { - return null; - } - if (modelClazz == null) { - throw new IllegalArgumentException("modelClazz Argument can't be NULL"); - } - groupParam.selectGroupFieldList = new LinkedList<>(); - StringBuilder groupByBuilder = new StringBuilder(128); - StringBuilder groupSelectBuilder = new StringBuilder(128); - int i = 0; - for (GroupInfo groupInfo : groupParam) { - GroupBaseData groupBaseData = parseGroupBaseData(groupInfo, modelClazz); - if (StringUtils.isBlank(groupBaseData.tableName)) { - throw new InvalidDataModelException(groupBaseData.modelName); - } - if (StringUtils.isBlank(groupBaseData.columnName)) { - throw new InvalidDataFieldException(groupBaseData.modelName, groupBaseData.fieldName); - } - processGroupInfo(groupInfo, groupBaseData, groupByBuilder, groupSelectBuilder); - String aliasName = StringUtils.isBlank(groupInfo.aliasName) ? groupInfo.fieldName : groupInfo.aliasName; - // selectGroupFieldList中的元素,目前只是被export操作使用。会根据集合中的元素名称匹配导出表头。 - groupParam.selectGroupFieldList.add(aliasName); - if (++i < groupParam.size()) { - groupByBuilder.append(", "); - groupSelectBuilder.append(", "); - } - } - groupParam.groupCriteria = new MyGroupCriteria(groupByBuilder.toString(), groupSelectBuilder.toString()); - return groupParam; - } - - private static GroupBaseData parseGroupBaseData(GroupInfo groupInfo, Class modelClazz) { - GroupBaseData baseData = new GroupBaseData(); - if (StringUtils.isBlank(groupInfo.fieldName)) { - throw new IllegalArgumentException("GroupInfo.fieldName can't be EMPTY"); - } - String[] stringArray = StringUtils.split(groupInfo.fieldName,'.'); - if (stringArray.length == 1) { - baseData.modelName = modelClazz.getSimpleName(); - baseData.fieldName = groupInfo.fieldName; - baseData.tableName = MyModelUtil.mapToTableName(modelClazz); - baseData.columnName = MyModelUtil.mapToColumnName(groupInfo.fieldName, modelClazz); - } else { - Field field = ReflectUtil.getField(modelClazz, stringArray[0]); - if (field == null) { - throw new InvalidClassFieldException(modelClazz.getSimpleName(), stringArray[0]); - } - Class fieldClazz = field.getType(); - baseData.modelName = fieldClazz.getSimpleName(); - baseData.fieldName = stringArray[1]; - baseData.tableName = MyModelUtil.mapToTableName(fieldClazz); - baseData.columnName = MyModelUtil.mapToColumnName(baseData.fieldName, fieldClazz); - } - return baseData; - } - - private static void processGroupInfo( - GroupInfo groupInfo, - GroupBaseData baseData, - StringBuilder groupByBuilder, - StringBuilder groupSelectBuilder) { - String tableName = baseData.tableName; - String columnName = baseData.columnName; - if (StringUtils.isNotBlank(groupInfo.dateAggregateBy)) { - groupByBuilder.append("DATE_FORMAT(").append(tableName).append(".").append(columnName); - groupSelectBuilder.append("DATE_FORMAT(").append(tableName).append(".").append(columnName); - if (ApplicationConstant.DAY_AGGREGATION.equals(groupInfo.dateAggregateBy)) { - groupByBuilder.append(", '%Y-%m-%d')"); - groupSelectBuilder.append(", '%Y-%m-%d')"); - } else if (ApplicationConstant.MONTH_AGGREGATION.equals(groupInfo.dateAggregateBy)) { - groupByBuilder.append(", '%Y-%m-01')"); - groupSelectBuilder.append(", '%Y-%m-01')"); - } else if (ApplicationConstant.YEAR_AGGREGATION.equals(groupInfo.dateAggregateBy)) { - groupByBuilder.append(", '%Y-01-01')"); - groupSelectBuilder.append(", '%Y-01-01')"); - } else { - throw new IllegalArgumentException("Illegal DATE_FORMAT for GROUP ID list."); - } - if (StringUtils.isNotBlank(groupInfo.aliasName)) { - groupSelectBuilder.append(" ").append(groupInfo.aliasName); - } else { - groupSelectBuilder.append(" ").append(columnName); - } - } else { - groupByBuilder.append(tableName).append(".").append(columnName); - groupSelectBuilder.append(tableName).append(".").append(columnName); - if (StringUtils.isNotBlank(groupInfo.aliasName)) { - groupSelectBuilder.append(" ").append(groupInfo.aliasName); - } - } - } - - /** - * 分组信息对象。 - */ - @Data - public static class GroupInfo { - /** - * Java对象的字段名。目前主要包含三种格式: - * 1. 简单的属性名称,如userId,将会直接映射到与其关联的数据库字段。表名为当前ModelClazz所对应的表名。 - * 映射结果或为 my_main_table.user_id - * 2. 一对一关联表属性,如user.userId,这里将先获取user属性的对象类型并映射到对应的表名,后面的userId为 - * user所在实体的属性。映射结果或为:my_sys_user.user_id - */ - private String fieldName; - /** - * SQL语句的Select List中,分组字段的别名。如果别名为NULL,直接取fieldName。 - */ - private String aliasName; - /** - * 如果该值不为NULL,则会对分组字段进行DATE_FORMAT函数的计算,并根据具体的值,将日期数据截取到指定的位。 - * day: 表示按照天聚合,将会截取到天。DATE_FORMAT(columnName, '%Y-%m-%d') - * month: 表示按照月聚合,将会截取到月。DATE_FORMAT(columnName, '%Y-%m-01') - * year: 表示按照年聚合,将会截取到年。DATE_FORMAT(columnName, '%Y-01-01') - */ - private String dateAggregateBy; - } - - private static class GroupBaseData { - private String modelName; - private String fieldName; - private String tableName; - private String columnName; - } -} diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/object/MyOrderParam.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/object/MyOrderParam.java deleted file mode 100644 index f8b2c900..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/object/MyOrderParam.java +++ /dev/null @@ -1,265 +0,0 @@ -package com.orangeforms.common.core.object; - -import cn.hutool.core.util.ReflectUtil; -import com.orangeforms.common.core.constant.ApplicationConstant; -import com.orangeforms.common.core.exception.InvalidClassFieldException; -import com.orangeforms.common.core.exception.InvalidDataFieldException; -import com.orangeforms.common.core.exception.InvalidDataModelException; -import com.orangeforms.common.core.util.MyModelUtil; -import lombok.AllArgsConstructor; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.NoArgsConstructor; -import lombok.extern.slf4j.Slf4j; -import org.apache.commons.lang3.StringUtils; - -import java.lang.reflect.Field; -import java.util.*; - -/** - * Controller参数中的排序请求对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@EqualsAndHashCode(callSuper = true) -@Slf4j -@Data -public class MyOrderParam extends ArrayList { - - private static final String DICT_MAP = "DictMap."; - /** - * 基于排序对象中的JSON数据,构建SQL中order by从句可以直接使用的排序字符串。 - * - * @param orderParam 排序参数对象。 - * @param modelClazz 查询主表对应的主对象的Class。 - * @return SQL中order by从句可以直接使用的排序字符串。 - */ - public static String buildOrderBy(MyOrderParam orderParam, Class modelClazz) { - if (orderParam == null) { - return null; - } - if (modelClazz == null) { - throw new IllegalArgumentException( - "modelClazz Argument in MyOrderParam.buildOrderBy can't be NULL"); - } - int i = 0; - StringBuilder orderBy = new StringBuilder(128); - for (OrderInfo orderInfo : orderParam) { - if (StringUtils.isBlank(orderInfo.getFieldName())) { - continue; - } - OrderBaseData orderBaseData = parseOrderBaseData(orderInfo, modelClazz); - if (StringUtils.isBlank(orderBaseData.tableName)) { - throw new InvalidDataModelException(orderBaseData.modelName); - } - if (StringUtils.isBlank(orderBaseData.columnName)) { - throw new InvalidDataFieldException(orderBaseData.modelName, orderBaseData.fieldName); - } - processOrderInfo(orderInfo, orderBaseData, orderBy); - if (++i < orderParam.size()) { - orderBy.append(", "); - } - } - return orderBy.toString(); - } - - private static void processOrderInfo( - OrderInfo orderInfo, OrderBaseData orderBaseData, StringBuilder orderByBuilder) { - if (StringUtils.isNotBlank(orderInfo.dateAggregateBy)) { - orderByBuilder.append("DATE_FORMAT(") - .append(orderBaseData.tableName).append(".").append(orderBaseData.columnName); - if (ApplicationConstant.DAY_AGGREGATION.equals(orderInfo.dateAggregateBy)) { - orderByBuilder.append(", '%Y-%m-%d')"); - } else if (ApplicationConstant.MONTH_AGGREGATION.equals(orderInfo.dateAggregateBy)) { - orderByBuilder.append(", '%Y-%m-01')"); - } else if (ApplicationConstant.YEAR_AGGREGATION.equals(orderInfo.dateAggregateBy)) { - orderByBuilder.append(", '%Y-01-01')"); - } else { - throw new IllegalArgumentException("Illegal DATE_FORMAT for GROUP ID list."); - } - } else { - orderByBuilder.append(orderBaseData.tableName).append(".").append(orderBaseData.columnName); - } - if (orderInfo.asc != null && !orderInfo.asc) { - orderByBuilder.append(" DESC"); - } - } - - private static OrderBaseData parseOrderBaseData(OrderInfo orderInfo, Class modelClazz) { - OrderBaseData orderBaseData = new OrderBaseData(); - orderBaseData.fieldName = StringUtils.substringBefore(orderInfo.fieldName, DICT_MAP); - String[] stringArray = StringUtils.split(orderBaseData.fieldName, '.'); - if (stringArray.length == 1) { - orderBaseData.modelName = modelClazz.getSimpleName(); - orderBaseData.tableName = MyModelUtil.mapToTableName(modelClazz); - orderBaseData.columnName = MyModelUtil.mapToColumnName(orderBaseData.fieldName, modelClazz); - } else { - Field field = ReflectUtil.getField(modelClazz, stringArray[0]); - if (field == null) { - throw new InvalidClassFieldException(modelClazz.getSimpleName(), stringArray[0]); - } - Class fieldClazz = field.getType(); - orderBaseData.modelName = fieldClazz.getSimpleName(); - orderBaseData.fieldName = stringArray[1]; - orderBaseData.tableName = MyModelUtil.mapToTableName(fieldClazz); - orderBaseData.columnName = MyModelUtil.mapToColumnName(orderBaseData.fieldName, fieldClazz); - } - return orderBaseData; - } - - /** - * 在排序列表中,可能存在基于指定表字段的排序,该函数将获取指定表的所有排序字段。 - * 返回的字符串,可直接用于SQL中的ORDER BY从句。 - * - * @param orderParam 排序参数对象。 - * @param modelClazz 查询主表对应的主对象的Class。 - * @param relationModelName 与关联表对应的Model的名称,如my_course_paper表应对的Java对象CoursePaper。 - * 如果该值为null或空字符串,则获取所有主表的排序字段。 - * @return 返回的是表字段,而非Java对象的属性,多个字段之间逗号分隔。 - */ - public static String getOrderClauseByModelName( - MyOrderParam orderParam, Class modelClazz, String relationModelName) { - if (orderParam == null) { - return null; - } - if (modelClazz == null) { - throw new IllegalArgumentException( - "modelClazz Argument in MyOrderParam.getOrderClauseByModelName can't be NULL"); - } - List fieldNameList = new LinkedList<>(); - String prefix = null; - if (StringUtils.isNotBlank(relationModelName)) { - prefix = relationModelName + "."; - } - for (OrderInfo orderInfo : orderParam) { - OrderBaseData baseData = parseOrderBaseData(orderInfo, modelClazz, prefix, relationModelName); - if (baseData != null) { - fieldNameList.add(makeOrderBy(baseData, orderInfo.asc)); - } - } - return StringUtils.join(fieldNameList, ", "); - } - - private static OrderBaseData parseOrderBaseData( - OrderInfo orderInfo, Class modelClazz, String prefix, String relationModelName) { - OrderBaseData baseData = null; - String fieldName = StringUtils.substringBefore(orderInfo.fieldName, DICT_MAP); - if (prefix != null) { - if (fieldName.startsWith(prefix)) { - baseData = new OrderBaseData(); - Field field = ReflectUtil.getField(modelClazz, relationModelName); - if (field == null) { - throw new InvalidClassFieldException(modelClazz.getSimpleName(), relationModelName); - } - Class fieldClazz = field.getType(); - baseData.modelName = fieldClazz.getSimpleName(); - baseData.fieldName = StringUtils.removeStart(fieldName, prefix); - baseData.tableName = MyModelUtil.mapToTableName(fieldClazz); - baseData.columnName = MyModelUtil.mapToColumnName(fieldName, fieldClazz); - } - } else { - String dotLimitor = "."; - if (!fieldName.contains(dotLimitor)) { - baseData = new OrderBaseData(); - baseData.modelName = modelClazz.getSimpleName(); - baseData.tableName = MyModelUtil.mapToTableName(modelClazz); - baseData.columnName = MyModelUtil.mapToColumnName(fieldName, modelClazz); - } - } - return baseData; - } - - private static String makeOrderBy(OrderBaseData baseData, Boolean asc) { - if (StringUtils.isBlank(baseData.tableName)) { - throw new InvalidDataModelException(baseData.modelName); - } - if (StringUtils.isBlank(baseData.columnName)) { - throw new InvalidDataFieldException(baseData.modelName, baseData.fieldName); - } - StringBuilder orderBy = new StringBuilder(128); - orderBy.append(baseData.tableName).append(".").append(baseData.columnName); - if (asc != null && !asc) { - orderBy.append(" DESC"); - } - return orderBy.toString(); - } - - /** - * 在排序列表中,可能存在基于指定表字段的排序,该函数将删除指定表的所有排序字段。 - * - * @param orderParam 排序参数对象。 - * @param modelClazz 查询主表对应的主对象的Class。 - * @param relationModelName 与关联表对应的Model的名称,如my_course_paper表应对的Java对象CoursePaper。 - * 如果该值为null或空字符串,则获取所有主表的排序字段。 - */ - public static void removeOrderClauseByModelName( - MyOrderParam orderParam, Class modelClazz, String relationModelName) { - if (orderParam == null) { - return; - } - if (modelClazz == null) { - throw new IllegalArgumentException( - "modelClazz Argument in MyOrderParam.removeOrderClauseByModelName can't be NULL"); - } - List fieldIndexList = new LinkedList<>(); - String prefix = null; - if (StringUtils.isNotBlank(relationModelName)) { - prefix = relationModelName + "."; - } - int i = 0; - for (OrderInfo orderInfo : orderParam) { - String fieldName = StringUtils.substringBefore(orderInfo.fieldName, DICT_MAP); - if (prefix != null) { - if (fieldName.startsWith(prefix)) { - fieldIndexList.add(i); - } - } else { - if (!fieldName.contains(".")) { - fieldIndexList.add(i); - } - } - ++i; - } - for (int index : fieldIndexList) { - orderParam.remove(index); - } - } - - /** - * 排序信息对象。 - */ - @AllArgsConstructor - @NoArgsConstructor - @Data - public static class OrderInfo { - /** - * Java对象的字段名。如果fieldName为空,则忽略跳过。目前主要包含三种格式: - * 1. 简单的属性名称,如userId,将会直接映射到与其关联的数据库字段。表名为当前ModelClazz所对应的表名。 - * 映射结果或为 my_main_table.user_id - * 2. 字典属性名称,如userIdDictMap.id,由于仅仅支持字典中Id数据的排序,所以直接截取DictMap之前的字符串userId作为排序属性。 - * 表名为当前ModelClazz所对应的表名。映射结果或为 my_main_table.user_id - * 3. 一对一关联表属性,如user.userId,这里将先获取user属性的对象类型并映射到对应的表名,后面的userId为 - * user所在实体的属性。映射结果或为:my_sys_user.user_id - */ - private String fieldName; - /** - * 排序方向。true为升序,否则降序。 - */ - private Boolean asc = true; - /** - * 如果该值不为NULL,则会对日期型排序字段进行DATE_FORMAT函数的计算,并根据具体的值,将日期数据截取到指定的位。 - * day: 表示按照天聚合,将会截取到天。DATE_FORMAT(columnName, '%Y-%m-%d') - * month: 表示按照月聚合,将会截取到月。DATE_FORMAT(columnName, '%Y-%m-01') - * year: 表示按照年聚合,将会截取到年。DATE_FORMAT(columnName, '%Y-01-01') - */ - private String dateAggregateBy; - } - - private static class OrderBaseData { - private String modelName; - private String fieldName; - private String tableName; - private String columnName; - } -} diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/object/MyPageData.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/object/MyPageData.java deleted file mode 100644 index 71c9658c..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/object/MyPageData.java +++ /dev/null @@ -1,36 +0,0 @@ -package com.orangeforms.common.core.object; - -import lombok.AllArgsConstructor; -import lombok.Data; -import lombok.NoArgsConstructor; - -import java.util.LinkedList; -import java.util.List; - -/** - * 分页数据的应答返回对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Data -@NoArgsConstructor -@AllArgsConstructor -public class MyPageData { - /** - * 数据列表。 - */ - private List dataList; - /** - * 数据总数量。 - */ - private Long totalCount; - - /** - * 为了保持前端的数据格式兼容性,在没有数据的时候,需要返回空分页对象。 - * @return 空分页对象。 - */ - public static MyPageData emptyPageData() { - return new MyPageData<>(new LinkedList<>(), 0L); - } -} diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/object/MyPageParam.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/object/MyPageParam.java deleted file mode 100644 index 5161a2e4..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/object/MyPageParam.java +++ /dev/null @@ -1,58 +0,0 @@ -package com.orangeforms.common.core.object; - -import lombok.Getter; - -/** - * Controller参数中的分页请求对象 - * - * @author Jerry - * @date 2021-06-06 - */ -@Getter -public class MyPageParam { - - public static final int DEFAULT_PAGE_NUM = 1; - public static final int DEFAULT_PAGE_SIZE = 10; - public static final int DEFAULT_MAX_SIZE = 100; - - /** - * 分页号码,从1开始计数。 - */ - private Integer pageNum; - - /** - * 每页大小。 - */ - private Integer pageSize; - - /** - * 设置当前分页页号。 - * - * @param pageNum 页号,如果传入非法值,则使用缺省值。 - */ - public void setPageNum(Integer pageNum) { - if (pageNum == null) { - return; - } - if (pageNum <= 0) { - pageNum = DEFAULT_PAGE_NUM; - } - this.pageNum = pageNum; - } - - /** - * 设置分页的大小。 - * - * @param pageSize 分页大小,如果传入非法值,则使用缺省值。 - */ - public void setPageSize(Integer pageSize) { - if (pageSize == null) { - return; - } - if (pageSize <= 0 || pageSize > DEFAULT_MAX_SIZE) { - pageSize = DEFAULT_PAGE_SIZE; - } - this.pageSize = pageSize; - } - -} diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/object/MyRelationParam.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/object/MyRelationParam.java deleted file mode 100644 index 00d69fe7..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/object/MyRelationParam.java +++ /dev/null @@ -1,91 +0,0 @@ -package com.orangeforms.common.core.object; - -import lombok.Builder; -import lombok.Data; - -/** - * 实体对象数据组装参数构建器。 - * BaseService中的实体对象数据组装函数,会根据该参数对象进行数据组装。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Data -@Builder -public class MyRelationParam { - - /** - * 是否组装字典关联的标记。 - * 组装RelationDict和RelationConstDict注解标记的字段。 - */ - private boolean buildDict; - - /** - * 是否组装一对一关联的标记。 - * 组装RelationOneToOne注解标记的字段。 - */ - private boolean buildOneToOne; - - /** - * 是否组装一对多关联的标记。 - * 组装RelationOneToMany注解标记的字段。 - */ - private boolean buildOneToMany; - - /** - * 在组装一对一关联的同时,是否继续关联从表中的字典。 - * 从表中RelationDict和RelationConstDict注解标记的字段。 - * 该字段为true时,无需设置buildOneToOne了。 - */ - private boolean buildOneToOneWithDict; - - /** - * 是否组装主表对多对多中间表关联的标记。 - * 组装RelationManyToMany注解标记的字段。 - */ - private boolean buildRelationManyToMany; - - /** - * 是否组装聚合计算关联的标记。 - * 组装RelationOneToManyAggregation和RelationManyToManyAggregation注解标记的字段。 - */ - private boolean buildRelationAggregation; - - /** - * 便捷方法,返回仅做字典关联的参数对象。 - * - * @return 返回仅做字典关联的参数对象。 - */ - public static MyRelationParam dictOnly() { - return MyRelationParam.builder().buildDict(true).build(); - } - - /** - * 便捷方法,返回仅做字典关联、一对一从表及其字典和聚合计算的参数对象。 - * NOTE: 对于一对多和多对多,这种从表数据是列表结果的关联,均不返回。 - * - * @return 返回仅做字典关联、一对一从表及其字典和聚合计算的参数对象。 - */ - public static MyRelationParam normal() { - return MyRelationParam.builder() - .buildDict(true) - .buildOneToOneWithDict(true) - .buildRelationAggregation(true) - .build(); - } - - /** - * 便捷方法,返回全部关联的参数对象。 - * - * @return 返回全部关联的参数对象。 - */ - public static MyRelationParam full() { - return MyRelationParam.builder() - .buildDict(true) - .buildOneToOneWithDict(true) - .buildRelationAggregation(true) - .buildRelationManyToMany(true) - .buildOneToMany(true) - .build(); - } -} diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/object/MyWhereCriteria.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/object/MyWhereCriteria.java deleted file mode 100644 index 0373676d..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/object/MyWhereCriteria.java +++ /dev/null @@ -1,361 +0,0 @@ -package com.orangeforms.common.core.object; - -import cn.hutool.core.util.ReflectUtil; -import com.alibaba.fastjson.annotation.JSONField; -import com.orangeforms.common.core.exception.InvalidDataFieldException; -import com.orangeforms.common.core.exception.InvalidDataModelException; -import com.orangeforms.common.core.util.MyModelUtil; -import lombok.*; -import lombok.extern.slf4j.Slf4j; -import org.apache.commons.collections4.CollectionUtils; - -import java.util.Collection; -import java.util.Date; -import java.util.List; - -/** - * Where中的条件语句。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Slf4j -@Data -@NoArgsConstructor -public class MyWhereCriteria { - - /** - * 等于 - */ - public static final int OPERATOR_EQUAL = 0; - - /** - * 不等于 - */ - public static final int OPERATOR_NOT_EQUAL = 1; - - /** - * 大于等于 - */ - public static final int OPERATOR_GE = 2; - - /** - * 大于 - */ - public static final int OPERATOR_GT = 3; - - /** - * 小于等于 - */ - public static final int OPERATOR_LE = 4; - - /** - * 小于 - */ - public static final int OPERATOR_LT = 5; - - /** - * LIKE - */ - public static final int OPERATOR_LIKE = 6; - - /** - * NOT NULL - */ - public static final int OPERATOR_NOT_NULL = 7; - - /** - * IS NULL - */ - public static final int OPERATOR_IS_NULL = 8; - - /** - * IN - */ - public static final int OPERATOR_IN = 9; - - /** - * 参与过滤的实体对象的Class。 - */ - @JSONField(serialize = false) - private Class modelClazz; - - /** - * 数据库表名。 - */ - private String tableName; - - /** - * Java属性名称。 - */ - private String fieldName; - - /** - * 数据表字段名。 - */ - private String columnName; - - /** - * 数据表字段类型。 - */ - private Integer columnType; - - /** - * 操作符类型,取值范围见上面的常量值。 - */ - private Integer operatorType; - - /** - * 条件数据值。 - */ - private Object value; - - public MyWhereCriteria(Class modelClazz, String fieldName, Integer operatorType, Object value) { - this.modelClazz = modelClazz; - this.fieldName = fieldName; - this.operatorType = operatorType; - this.value = value; - } - - /** - * 设置条件值。 - * - * @param fieldName 条件所属的实体对象的字段名。 - * @param operatorType 条件操作符。具体值可参考当前对象的静态变量。 - * @param value 条件过滤值。 - * @return 验证结果对象,如果有错误将会返回具体的错误信息。 - */ - public CallResult setCriteria(String fieldName, Integer operatorType, Object value) { - this.operatorType = operatorType; - this.fieldName = fieldName; - this.value = value; - return doVerify(); - } - - /** - * 设置条件值。 - * - * @param modelClazz 数据表对应实体对象的Class. - * @param fieldName 条件所属的实体对象的字段名。 - * @param operatorType 条件操作符。具体值可参考当前对象的静态变量。 - * @param value 条件过滤值。 - * @return 验证结果对象,如果有错误将会返回具体的错误信息。 - */ - public CallResult setCriteria(Class modelClazz, String fieldName, Integer operatorType, Object value) { - this.modelClazz = modelClazz; - this.operatorType = operatorType; - this.fieldName = fieldName; - this.value = value; - return doVerify(); - } - - /** - * 设置条件值,通过该构造方法设置时,通常是直接将表名、字段名、字段类型等赋值,无需在通过modelClazz进行推演。 - * - * @param tableName 数据表名。 - * @param columnName 数据字段名。 - * @param columnType 数据字段类型。 - * @param operatorType 操作类型。具体值可参考当前对象的静态变量。 - * @param value 条件过滤值。 - */ - public void setCriteria( - String tableName, String columnName, String columnType, Integer operatorType, Object value) { - this.tableName = tableName; - this.columnName = columnName; - this.columnType = MyModelUtil.NUMERIC_FIELD_TYPE; - if (String.class.getSimpleName().equals(columnType)) { - this.columnType = MyModelUtil.STRING_FIELD_TYPE; - } else if (Date.class.getSimpleName().equals(columnType)) { - this.columnType = MyModelUtil.DATE_FIELD_TYPE; - } - this.operatorType = operatorType; - this.value = value; - } - - /** - * 在执行该函数之前,该对象的所有数据均已经赋值完毕。 - * 该函数主要验证操作符字段和条件值字段对应关系的合法性。 - * - * @return 验证结果对象,如果有错误将会返回具体的错误信息。 - */ - public CallResult doVerify() { - if (fieldName == null) { - return CallResult.error("过滤字段名称 [fieldName] 不能为空!"); - } - if (modelClazz != null && ReflectUtil.getField(modelClazz, fieldName) == null) { - return CallResult.error( - "过滤字段 [" + fieldName + "] 在实体对象 [" + modelClazz.getSimpleName() + "] 中并不存在!"); - } - if (!checkOperatorType()) { - return CallResult.error("无效的操作符类型 [" + operatorType + "]!"); - } - // 其他操作符必须包含value值 - if (operatorType != OPERATOR_IS_NULL && operatorType != OPERATOR_NOT_NULL && value == null) { - String operatorString = this.getOperatorString(); - return CallResult.error("操作符 [" + operatorString + "] 的条件值不能为空!"); - } - if (this.operatorType == OPERATOR_IN) { - if (!(value instanceof Collection)) { - return CallResult.error("操作符 [IN] 的条件值必须为集合对象!"); - } - if (CollectionUtils.isEmpty((Collection) value)) { - return CallResult.error("操作符 [IN] 的条件值不能为空!"); - } - } - return CallResult.ok(); - } - - /** - * 判断操作符类型是否合法。 - * - * @return 合法返回true,否则false。 - */ - public boolean checkOperatorType() { - return operatorType != null - && (operatorType >= OPERATOR_EQUAL && operatorType <= OPERATOR_IN); - } - - /** - * 获取操作符的字符串形式。 - * - * @return 操作符的字符串。 - */ - public String getOperatorString() { - switch (operatorType) { - case OPERATOR_EQUAL: - return " = "; - case OPERATOR_NOT_EQUAL: - return " != "; - case OPERATOR_GE: - return " >= "; - case OPERATOR_GT: - return " > "; - case OPERATOR_LE: - return " <= "; - case OPERATOR_LT: - return " < "; - case OPERATOR_LIKE: - return " LIKE "; - case OPERATOR_NOT_NULL: - return " IS NOT NULL "; - case OPERATOR_IS_NULL: - return " IS NULL "; - case OPERATOR_IN: - return " IN "; - default: - return null; - } - } - - /** - * 获取组装后的SQL Where从句,如 table_name.column_name = 'value'。 - * 与查询数据表对应的实体对象Class为当前对象的modelClazz字段。 - * - * @exception InvalidDataFieldException selectFieldList中存在非法实体字段时,抛出该异常。 - * @return 组装后的SQL条件从句。 - */ - public String makeCriteriaString() { - return makeCriteriaString(this.modelClazz); - } - - /** - * 获取组装后的SQL Where从句,如 table_name.column_name = 'value'。 - * - * @param modelClazz 与查询数据表对应的实体对象的Class。 - * @exception InvalidDataFieldException selectFieldList中存在非法实体字段时,抛出该异常。 - * @exception InvalidDataModelException 参数modelClazz没有对应的table,抛出该异常。 - * @return 组装后的SQL条件从句。 - */ - public String makeCriteriaString(Class modelClazz) { - String tableName; - String columnName; - Integer columnType; - if (modelClazz != null) { - Tuple2 fieldInfo = MyModelUtil.mapToColumnInfo(fieldName, modelClazz); - if (fieldInfo == null) { - throw new InvalidDataFieldException(modelClazz.getSimpleName(), fieldName); - } - columnName = fieldInfo.getFirst(); - columnType = fieldInfo.getSecond(); - tableName = MyModelUtil.mapToTableName(modelClazz); - if (tableName == null) { - throw new InvalidDataModelException(modelClazz.getSimpleName()); - } - } else { - tableName = this.tableName; - columnName = this.columnName; - columnType = this.columnType; - } - return this.buildClauseString(tableName, columnName, columnType); - } - - /** - * 获取组装后的SQL Where从句。如 table_name.column_name = 'value'。 - * - * @param criteriaList 条件列表,所有条件直接目前仅支持 AND 的关系。 - * @exception InvalidDataFieldException selectFieldList中存在非法实体字段时,抛出该异常。 - * @return 组装后的SQL条件从句。 - */ - public static String makeCriteriaString(List criteriaList) { - return makeCriteriaString(criteriaList, null); - } - - /** - * 获取组装后的SQL Where从句。如 table_name.column_name = 'value'。 - * - * @param criteriaList 条件列表,所有条件直接目前仅支持 AND 的关系。 - * @param modelClazz 与数据表对应的实体对象的Class。 - * 如果不为NULL实体对象Class使用该值,否则使用每个MyWhereCriteria自身的modelClazz。 - * @exception InvalidDataFieldException selectFieldList中存在非法实体字段时,抛出该异常。 - * @return 组装后的SQL条件从句。 - */ - public static String makeCriteriaString(List criteriaList, Class modelClazz) { - if (CollectionUtils.isEmpty(criteriaList)) { - return null; - } - StringBuilder sb = new StringBuilder(256); - int i = 0; - for (MyWhereCriteria whereCriteria : criteriaList) { - Class clazz = modelClazz; - if (clazz == null) { - clazz = whereCriteria.modelClazz; - } - if (i++ != 0) { - sb.append(" AND "); - } - String criteriaString = whereCriteria.makeCriteriaString(clazz); - sb.append(criteriaString); - } - return sb.length() == 0 ? null : sb.toString(); - } - - private String buildClauseString(String tableName, String columnName, Integer columnType) { - StringBuilder sb = new StringBuilder(64); - sb.append(tableName).append(".").append(columnName).append(getOperatorString()); - if (operatorType == OPERATOR_IN) { - Collection filterValues = (Collection) value; - sb.append("("); - int i = 0; - for (Object filterValue : filterValues) { - if (columnType.equals(MyModelUtil.NUMERIC_FIELD_TYPE)) { - sb.append(filterValue); - } else { - sb.append("'").append(filterValue).append("'"); - } - if (i++ != filterValues.size() - 1) { - sb.append(", "); - } - } - sb.append(")"); - return sb.toString(); - } - if (value != null) { - if (columnType.equals(MyModelUtil.NUMERIC_FIELD_TYPE)) { - sb.append(value); - } else { - sb.append("'").append(value).append("'"); - } - } - return sb.toString(); - } -} diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/object/ResponseResult.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/object/ResponseResult.java deleted file mode 100644 index d4b4c7b5..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/object/ResponseResult.java +++ /dev/null @@ -1,235 +0,0 @@ -package com.orangeforms.common.core.object; - -import com.alibaba.fastjson.JSON; -import com.orangeforms.common.core.constant.ErrorCodeEnum; -import com.orangeforms.common.core.util.ContextUtil; -import lombok.Data; -import lombok.extern.slf4j.Slf4j; - -import javax.servlet.http.HttpServletResponse; -import java.io.IOException; -import java.io.PrintWriter; - -/** - * 接口返回对象 - * - * @author Jerry - * @date 2021-06-06 - */ -@Slf4j -@Data -public class ResponseResult { - - /** - * 为了优化性能,所有没有携带数据的正确结果,均可用该对象表示。 - */ - private static final ResponseResult OK = new ResponseResult<>(); - /** - * 是否成功标记。 - */ - private boolean success = true; - /** - * 错误码。 - */ - private String errorCode = "NO-ERROR"; - /** - * 错误信息描述。 - */ - private String errorMessage = "NO-MESSAGE"; - /** - * 实际数据。 - */ - private T data = null; - - /** - * 根据参数errorCodeEnum的枚举值,判断创建成功对象还是错误对象。 - * 如果返回错误对象,errorCode 和 errorMessage 分别取自于参数 errorCodeEnum 的 name() 和 getErrorMessage()。 - * - * @param errorCodeEnum 错误码枚举 - * @return 返回创建的ResponseResult实例对象 - */ - public static ResponseResult create(ErrorCodeEnum errorCodeEnum) { - return create(errorCodeEnum, errorCodeEnum.getErrorMessage()); - } - - /** - * 根据参数errorCodeEnum的枚举值,判断创建成功对象还是错误对象。 - * 如果返回错误对象,errorCode 和 errorMessage 分别取自于参数 errorCodeEnum 的 name() 和参数 errorMessage。 - * - * @param errorCodeEnum 错误码枚举。 - * @param errorMessage 如果该参数为null,错误信息取自errorCodeEnum参数内置的errorMessage,否则使用当前参数。 - * @return 返回创建的ResponseResult实例对象 - */ - public static ResponseResult create(ErrorCodeEnum errorCodeEnum, String errorMessage) { - errorMessage = errorMessage != null ? errorMessage : errorCodeEnum.getErrorMessage(); - return errorCodeEnum == ErrorCodeEnum.NO_ERROR ? success() : error(errorCodeEnum.name(), errorMessage); - } - - /** - * 根据参数errorCode是否为空,判断创建成功对象还是错误对象。 - * 如果返回错误对象,errorCode 和 errorMessage 分别取自于参数 errorCode 和参数 errorMessage。 - * - * @param errorCode 自定义的错误码 - * @param errorMessage 自定义的错误信息 - * @return 返回创建的ResponseResult实例对象 - */ - public static ResponseResult create(String errorCode, String errorMessage) { - return errorCode == null ? success() : error(errorCode, errorMessage); - } - - /** - * 根据参数errorCodeEnum的枚举值,判断创建成功对象还是错误对象。 - * 如果返回错误对象,errorCode 和 errorMessage 分别取自于参数 errorCodeEnum 的 name() 和参数 errorMessage。 - * - * @param errorCodeEnum 错误码枚举。 - * @param errorMessage 如果该参数为null,错误信息取自errorCodeEnum参数内置的errorMessage,否则使用当前参数。 - * @param data 如果错误枚举值为NO_ERROR,则返回该数据。 - * @return 返回创建的ResponseResult实例对象 - */ - public static ResponseResult create(ErrorCodeEnum errorCodeEnum, String errorMessage, T data) { - errorMessage = errorMessage != null ? errorMessage : errorCodeEnum.getErrorMessage(); - return errorCodeEnum == ErrorCodeEnum.NO_ERROR ? success(data) : error(errorCodeEnum.name(), errorMessage); - } - - /** - * 创建成功对象。 - * 如果需要绑定返回数据,可以在实例化后调用setDataObject方法。 - * - * @return 返回创建的ResponseResult实例对象 - */ - public static ResponseResult success() { - return OK; - } - - /** - * 创建带有返回数据的成功对象。 - * - * @param data 返回的数据对象 - * @return 返回创建的ResponseResult实例对象 - */ - public static ResponseResult success(T data) { - ResponseResult resp = new ResponseResult<>(); - resp.data = data; - return resp; - } - - /** - * 创建错误对象。 - * 如果返回错误对象,errorCode 和 errorMessage 分别取自于参数 errorCodeEnum 的 name() 和 getErrorMessage()。 - * - * @param errorCodeEnum 错误码枚举 - * @return 返回创建的ResponseResult实例对象 - */ - public static ResponseResult error(ErrorCodeEnum errorCodeEnum) { - return error(errorCodeEnum.name(), errorCodeEnum.getErrorMessage()); - } - - /** - * 创建错误对象。 - * 如果返回错误对象,errorCode 和 errorMessage 分别取自于参数 errorCodeEnum 的 name() 和参数 errorMessage。 - * - * @param errorCodeEnum 错误码枚举 - * @param errorMessage 自定义的错误信息 - * @return 返回创建的ResponseResult实例对象 - */ - public static ResponseResult error(ErrorCodeEnum errorCodeEnum, String errorMessage) { - return error(errorCodeEnum.name(), errorMessage); - } - - /** - * 创建错误对象。 - * 如果返回错误对象,errorCode 和 errorMessage 分别取自于参数 errorCode 和参数 errorMessage。 - * - * @param errorCode 自定义的错误码 - * @param errorMessage 自定义的错误信息 - * @return 返回创建的ResponseResult实例对象 - */ - public static ResponseResult error(String errorCode, String errorMessage) { - return new ResponseResult<>(errorCode, errorMessage); - } - - /** - * 根据参数中出错的ResponseResult,创建新的错误应答对象。 - * - * @param errorCause 导致错误原因的应答对象。 - * @return 返回创建的ResponseResult实例对象。 - */ - public static ResponseResult errorFrom(ResponseResult errorCause) { - return error(errorCause.errorCode, errorCause.getErrorMessage()); - } - - /** - * 根据参数中出错的CallResult,创建新的错误应答对象。 - * - * @param errorCause 导致错误原因的应答对象。 - * @return 返回创建的ResponseResult实例对象。 - */ - public static ResponseResult errorFrom(CallResult errorCause) { - return error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorCause.getErrorMessage()); - } - - /** - * 是否成功。 - * - * @return true成功,否则false。 - */ - public boolean isSuccess() { - return success; - } - - /** - * 通过HttpServletResponse直接输出应该信息的工具方法。 - * - * @param httpStatus http状态码。 - * @param responseResult 应答内容。 - * @param 数据对象类型。 - * @throws IOException 异常错误。 - */ - public static void output(int httpStatus, ResponseResult responseResult) throws IOException { - if (httpStatus != HttpServletResponse.SC_OK) { - log.error(JSON.toJSONString(responseResult)); - } else { - log.info(JSON.toJSONString(responseResult)); - } - HttpServletResponse response = ContextUtil.getHttpResponse(); - PrintWriter out = response.getWriter(); - response.setContentType("application/json; charset=utf-8"); - response.setStatus(httpStatus); - if (responseResult != null) { - out.print(JSON.toJSONString(responseResult)); - } - out.flush(); - } - - /** - * 通过HttpServletResponse直接输出应该信息的工具方法。 - * - * @param httpStatus http状态码。 - * @param 数据对象类型。 - * @throws IOException 异常错误。 - */ - public static void output(int httpStatus) throws IOException { - output(httpStatus, null); - } - - /** - * 通过HttpServletResponse直接输出应该信息的工具方法。Http状态码为200。 - * - * @param responseResult 应答内容。 - * @param 数据对象类型。 - * @throws IOException 异常错误。 - */ - public static void output(ResponseResult responseResult) throws IOException { - output(HttpServletResponse.SC_OK, responseResult); - } - - private ResponseResult() { - - } - - private ResponseResult(String errorCode, String errorMessage) { - this.success = false; - this.errorCode = errorCode; - this.errorMessage = errorMessage; - } -} diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/object/TableModelInfo.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/object/TableModelInfo.java deleted file mode 100644 index b5e446f8..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/object/TableModelInfo.java +++ /dev/null @@ -1,33 +0,0 @@ -package com.orangeforms.common.core.object; - -import lombok.Data; - -/** - * 数据表模型基础信息。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Data -public class TableModelInfo { - - /** - * 数据表名。 - */ - private String tableName; - - /** - * 实体对象名。 - */ - private String modelName; - - /** - * 主键的表字段名。 - */ - private String keyColumnName; - - /** - * 主键在实体对象中的属性名。 - */ - private String keyFieldName; -} diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/object/TokenData.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/object/TokenData.java deleted file mode 100644 index cc83f1a1..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/object/TokenData.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.orangeforms.common.core.object; - -import com.orangeforms.common.core.util.ContextUtil; -import lombok.Data; -import lombok.ToString; - -import javax.servlet.http.HttpServletRequest; -import java.util.Date; - -/** - * 基于Jwt,用于前后端传递的令牌对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Data -@ToString -public class TokenData { - - /** - * 在HTTP Request对象中的属性键。 - */ - public static final String REQUEST_ATTRIBUTE_NAME = "tokenData"; - /** - * 用户Id。 - */ - private Long userId; - /** - * 用户所属角色。多个角色之间逗号分隔。 - */ - private String roleIds; - /** - * 用户所在部门Id。 - * 仅当系统支持uaa时可用,否则可以直接忽略该字段。保留该字段是为了保持单体和微服务通用代码部分的兼容性。 - */ - private Long deptId; - /** - * 用户所属岗位Id。多个岗位之间逗号分隔。仅当系统支持岗位时有值。 - */ - private String postIds; - /** - * 用户的部门岗位Id。多个岗位之间逗号分隔。仅当系统支持岗位时有值。 - */ - private String deptPostIds; - /** - * 租户Id。 - * 仅当系统支持uaa时可用,否则可以直接忽略该字段。保留该字段是为了保持单体和微服务通用代码部分的兼容性。 - */ - private Long tenantId; - /** - * 是否为超级管理员。 - */ - private Boolean isAdmin; - /** - * 用户登录名。 - */ - private String loginName; - /** - * 用户显示名称。 - */ - private String showName; - /** - * 设备类型。参考 AppDeviceType。 - */ - private Integer deviceType; - /** - * 标识不同登录的会话Id。 - */ - private String sessionId; - /** - * 访问uaa的授权token。 - * 仅当系统支持uaa时可用,否则可以直接忽略该字段。保留该字段是为了保持单体和微服务通用代码部分的兼容性。 - */ - private String uaaAccessToken; - /** - * 数据库路由键(仅当水平分库时使用)。 - */ - private Integer datasourceRouteKey; - /** - * 登录IP。 - */ - private String loginIp; - /** - * 登录时间。 - */ - private Date loginTime; - - /** - * 将令牌对象添加到Http请求对象。 - * - * @param tokenData 令牌对象。 - */ - public static void addToRequest(TokenData tokenData) { - HttpServletRequest request = ContextUtil.getHttpRequest(); - request.setAttribute(TokenData.REQUEST_ATTRIBUTE_NAME, tokenData); - } - - /** - * 从Http Request对象中获取令牌对象。 - * - * @return 令牌对象。 - */ - public static TokenData takeFromRequest() { - HttpServletRequest request = ContextUtil.getHttpRequest(); - return (TokenData) request.getAttribute(REQUEST_ATTRIBUTE_NAME); - } -} diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/object/Tuple2.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/object/Tuple2.java deleted file mode 100644 index 2761d177..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/object/Tuple2.java +++ /dev/null @@ -1,50 +0,0 @@ -package com.orangeforms.common.core.object; - -/** - * 二元组对象。主要用于可以一次返回多个结果的场景,同时还能避免强制转换。 - * - * @author Jerry - * @date 2021-06-06 - */ -public class Tuple2 { - - /** - * 第一个变量。 - */ - private final T1 first; - /** - * 第二个变量。 - */ - private final T2 second; - - /** - * 构造函数。 - * - * @param first 第一个变量。 - * @param second 第二个变量。 - */ - public Tuple2(T1 first, T2 second) { - this.first = first; - this.second = second; - } - - /** - * 获取第一个变量。 - * - * @return 返回第一个变量。 - */ - public T1 getFirst() { - return first; - } - - /** - * 获取第二个变量。 - * - * @return 返回第二个变量。 - */ - public T2 getSecond() { - return second; - } - -} - diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/upload/BaseUpDownloader.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/upload/BaseUpDownloader.java deleted file mode 100644 index 9a829e7b..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/upload/BaseUpDownloader.java +++ /dev/null @@ -1,137 +0,0 @@ -package com.orangeforms.common.core.upload; - -import com.alibaba.fastjson.JSON; -import com.orangeforms.common.core.constant.ApplicationConstant; -import com.orangeforms.common.core.util.ContextUtil; -import com.orangeforms.common.core.util.MyCommonUtil; -import lombok.extern.slf4j.Slf4j; -import org.apache.commons.collections4.CollectionUtils; -import org.apache.commons.io.FilenameUtils; -import org.apache.commons.lang3.StringUtils; -import org.springframework.web.multipart.MultipartFile; - -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import java.util.List; - -/** - * 上传或下载文件抽象父类。 - * 包含存储本地文件的功能,以及上传和下载所需的通用方法。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Slf4j -public abstract class BaseUpDownloader { - - /** - * 构建上传文件的完整目录。 - * - * @param rootBaseDir 文件下载的根目录。 - * @param modelName 所在数据表的实体对象名。 - * @param fieldName 关联字段的实体对象属性名。 - * @param asImage 是否为图片对象。图片是无需权限验证的,因此和附件存放在不同的子目录。 - * @return 上传文件的完整路径名。 - */ - public String makeFullPath( - String rootBaseDir, String modelName, String fieldName, Boolean asImage) { - StringBuilder uploadPathBuilder = new StringBuilder(128); - if (StringUtils.isNotBlank(rootBaseDir)) { - uploadPathBuilder.append(rootBaseDir).append("/"); - } - if (Boolean.TRUE.equals(asImage)) { - uploadPathBuilder.append(ApplicationConstant.UPLOAD_IMAGE_PARENT_PATH); - } else { - uploadPathBuilder.append(ApplicationConstant.UPLOAD_ATTACHMENT_PARENT_PATH); - } - uploadPathBuilder.append("/").append(modelName).append("/").append(fieldName).append("/"); - return uploadPathBuilder.toString(); - } - - /** - * 构建上传操作的返回对象。 - * - * @param serviceContextPath 微服务的上下文路径,如: /admin/upms。 - * @param originalFilename 上传文件的原始文件名(包含扩展名)。 - */ - public void fillUploadResponseInfo( - UploadResponseInfo responseInfo, String serviceContextPath, String originalFilename) { - // 根据请求上传的uri构建下载uri,只是将末尾的/upload改为/download即可。 - HttpServletRequest request = ContextUtil.getHttpRequest(); - String uri = request.getRequestURI(); - uri = StringUtils.removeEnd(uri, "/"); - uri = StringUtils.removeEnd(uri, "/upload"); - String downloadUri; - if (StringUtils.isBlank(serviceContextPath)) { - downloadUri = uri + "/download"; - } else { - downloadUri = serviceContextPath + uri + "/download"; - } - StringBuilder filenameBuilder = new StringBuilder(64); - filenameBuilder.append(MyCommonUtil.generateUuid()) - .append(".").append(FilenameUtils.getExtension(originalFilename)); - responseInfo.setDownloadUri(downloadUri); - responseInfo.setFilename(filenameBuilder.toString()); - } - - /** - * 执行下载操作,从本地文件系统读取数据,并将读取的数据直接写入到HttpServletResponse应答对象。 - * - * @param rootBaseDir 文件下载的根目录。 - * @param modelName 所在数据表的实体对象名。 - * @param fieldName 关联字段的实体对象属性名。 - * @param fileName 文件名。 - * @param asImage 是否为图片对象。图片是无需权限验证的,因此和附件存放在不同的子目录。 - * @param response Http 应答对象。 - * @throws Exception 操作错误。 - */ - public abstract void doDownload( - String rootBaseDir, - String modelName, - String fieldName, - String fileName, - Boolean asImage, - HttpServletResponse response) throws Exception; - - /** - * 执行文件上传操作,并存入本地文件系统,再将与该文件下载对应的Url直接写入到HttpServletResponse应答对象,返回给前端。 - * - * @param serviceContextPath 微服务的上下文路径,如: /admin/upms。 - * @param rootBaseDir 存放上传文件的根目录。 - * @param modelName 所在数据表的实体对象名。 - * @param fieldName 关联字段的实体对象属性名。 - * @param uploadFile Http请求中上传的文件对象。 - * @param asImage 是否为图片对象。图片是无需权限验证的,因此和附件存放在不同的子目录。 - * @return 存储在本地上传文件名。 - * @throws Exception 操作错误。 - */ - public abstract UploadResponseInfo doUpload( - String serviceContextPath, - String rootBaseDir, - String modelName, - String fieldName, - Boolean asImage, - MultipartFile uploadFile) throws Exception; - - /** - * 判断filename参数指定的文件名,是否被包含在fileInfoJson参数中。 - * - * @param fileInfoJson 内部类UploadFileInfo的JSONArray数组。 - * @param filename 被包含的文件名。 - * @return 存在返回true,否则false。 - */ - public static boolean containFile(String fileInfoJson, String filename) { - if (StringUtils.isAnyBlank(fileInfoJson, filename)) { - return false; - } - List fileInfoList = JSON.parseArray(fileInfoJson, UploadResponseInfo.class); - if (CollectionUtils.isNotEmpty(fileInfoList)) { - for (UploadResponseInfo fileInfo : fileInfoList) { - if (StringUtils.equals(filename, fileInfo.getFilename())) { - return true; - } - } - } - return false; - } -} diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/upload/LocalUpDownloader.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/upload/LocalUpDownloader.java deleted file mode 100644 index f301b002..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/upload/LocalUpDownloader.java +++ /dev/null @@ -1,149 +0,0 @@ -package com.orangeforms.common.core.upload; - -import com.alibaba.fastjson.JSON; -import com.orangeforms.common.core.constant.ErrorCodeEnum; -import lombok.extern.slf4j.Slf4j; -import org.apache.commons.collections4.CollectionUtils; -import org.apache.commons.lang3.StringUtils; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Component; -import org.springframework.web.multipart.MultipartFile; - -import javax.annotation.PostConstruct; -import javax.servlet.http.HttpServletResponse; -import java.io.*; -import java.nio.file.Files; -import java.nio.file.Path; -import java.nio.file.Paths; -import java.util.List; -import java.util.Objects; - -/** - * 存储本地文件的上传下载实现类。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Slf4j -@Component -public class LocalUpDownloader extends BaseUpDownloader { - - @Autowired - private UpDownloaderFactory factory; - - @PostConstruct - public void doRegister() { - factory.registerUpDownloader(UploadStoreTypeEnum.LOCAL_SYSTEM, this); - } - - /** - * 执行下载操作,从本地文件系统读取数据,并将读取的数据直接写入到HttpServletResponse应答对象。 - * - * @param rootBaseDir 文件下载的根目录。 - * @param modelName 所在数据表的实体对象名。 - * @param fieldName 关联字段的实体对象属性名。 - * @param fileName 文件名。 - * @param asImage 是否为图片对象。图片是无需权限验证的,因此和附件存放在不同的子目录。 - * @param response Http 应答对象。 - */ - @Override - public void doDownload( - String rootBaseDir, - String modelName, - String fieldName, - String fileName, - Boolean asImage, - HttpServletResponse response) { - String uploadPath = makeFullPath(rootBaseDir, modelName, fieldName, asImage); - String fullFileanme = uploadPath + "/" + fileName; - File file = new File(fullFileanme); - if (!file.exists()) { - log.warn("Download file [" + fullFileanme + "] failed, no file found!"); - response.setStatus(HttpServletResponse.SC_NOT_FOUND); - return; - } - response.setHeader("content-type", "application/octet-stream"); - response.setContentType("application/octet-stream"); - response.setHeader("Content-Disposition", "attachment;filename=" + fileName); - byte[] buff = new byte[2048]; - try (OutputStream os = response.getOutputStream(); - BufferedInputStream bis = new BufferedInputStream(new FileInputStream(file))) { - int i = bis.read(buff); - while (i != -1) { - os.write(buff, 0, i); - os.flush(); - i = bis.read(buff); - } - } catch (IOException e) { - log.error("Failed to call LocalUpDownloader.doDownload", e); - } - } - - /** - * 执行文件上传操作,并存入本地文件系统,再将与该文件下载对应的Url直接写入到HttpServletResponse应答对象,返回给前端。 - * - * @param serviceContextPath 微服务的上下文路径,如: /admin/upms。 - * @param rootBaseDir 存放上传文件的根目录。 - * @param modelName 所在数据表的实体对象名。 - * @param fieldName 关联字段的实体对象属性名。 - * @param uploadFile Http请求中上传的文件对象。 - * @param asImage 是否为图片对象。图片是无需权限验证的,因此和附件存放在不同的子目录。 - * @return 存储在本地上传文件名。 - * @throws IOException 文件操作错误。 - */ - @Override - public UploadResponseInfo doUpload( - String serviceContextPath, - String rootBaseDir, - String modelName, - String fieldName, - Boolean asImage, - MultipartFile uploadFile) throws IOException { - UploadResponseInfo responseInfo = new UploadResponseInfo(); - if (Objects.isNull(uploadFile) || uploadFile.isEmpty()) { - responseInfo.setUploadFailed(true); - responseInfo.setErrorMessage(ErrorCodeEnum.INVALID_UPLOAD_FILE_ARGUMENT.getErrorMessage()); - return responseInfo; - } - String uploadPath = makeFullPath(rootBaseDir, modelName, fieldName, asImage); - fillUploadResponseInfo(responseInfo, serviceContextPath, uploadFile.getOriginalFilename()); - try { - byte[] bytes = uploadFile.getBytes(); - Path path = Paths.get(uploadPath + responseInfo.getFilename()); - // 如果没有files文件夹,则创建 - if (!Files.isWritable(path)) { - Files.createDirectories(Paths.get(uploadPath)); - } - // 文件写入指定路径 - Files.write(path, bytes); - } catch (IOException e) { - log.error("Failed to write uploaded file [" + uploadFile.getOriginalFilename() + " ].", e); - responseInfo.setUploadFailed(true); - responseInfo.setErrorMessage(ErrorCodeEnum.INVALID_UPLOAD_FILE_IOERROR.getErrorMessage()); - return responseInfo; - } - return responseInfo; - } - - /** - * 判断filename参数指定的文件名,是否被包含在fileInfoJson参数中。 - * - * @param fileInfoJson 内部类UploadFileInfo的JSONArray数组。 - * @param filename 被包含的文件名。 - * @return 存在返回true,否则false。 - */ - public static boolean containFile(String fileInfoJson, String filename) { - if (StringUtils.isAnyBlank(fileInfoJson, filename)) { - return false; - } - List fileInfoList = JSON.parseArray(fileInfoJson, UploadResponseInfo.class); - if (CollectionUtils.isNotEmpty(fileInfoList)) { - for (UploadResponseInfo fileInfo : fileInfoList) { - if (StringUtils.equals(filename, fileInfo.getFilename())) { - return true; - } - } - } - return false; - } -} diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/upload/UpDownloaderFactory.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/upload/UpDownloaderFactory.java deleted file mode 100644 index 065f4f3c..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/upload/UpDownloaderFactory.java +++ /dev/null @@ -1,49 +0,0 @@ -package com.orangeforms.common.core.upload; - -import org.springframework.stereotype.Component; - -import java.util.HashMap; -import java.util.Map; - -/** - * 业务对象根据上传下载存储类型,获取上传下载对象的工厂类。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Component -public class UpDownloaderFactory { - - private final Map upDownloaderMap = new HashMap<>(); - - /** - * 根据存储类型获取上传下载对象。 - * @param storeType 存储类型。 - * @return 匹配的上传下载对象。 - */ - public BaseUpDownloader get(UploadStoreTypeEnum storeType) { - BaseUpDownloader upDownloader = upDownloaderMap.get(storeType); - if (upDownloader == null) { - throw new UnsupportedOperationException( - "The storeType [" + storeType.name() + "] isn't supported, please add dependency jar first."); - } - return upDownloader; - } - - /** - * 注册上传下载对象到工厂。 - * - * @param storeType 存储类型。 - * @param upDownloader 上传下载对象。 - */ - public void registerUpDownloader(UploadStoreTypeEnum storeType, BaseUpDownloader upDownloader) { - if (storeType == null || upDownloader == null) { - throw new IllegalArgumentException("The Argument can't be NULL."); - } - if (upDownloaderMap.containsKey(storeType)) { - throw new UnsupportedOperationException( - "The storeType [" + storeType.name() + "] has been registered already."); - } - upDownloaderMap.put(storeType, upDownloader); - } -} diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/upload/UploadResponseInfo.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/upload/UploadResponseInfo.java deleted file mode 100644 index b16dcfb8..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/upload/UploadResponseInfo.java +++ /dev/null @@ -1,29 +0,0 @@ -package com.orangeforms.common.core.upload; - -import lombok.Data; - -/** - * 数据上传操作的应答信息对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Data -public class UploadResponseInfo { - /** - * 上传是否出现错误。 - */ - private Boolean uploadFailed = false; - /** - * 具体错误信息。 - */ - private String errorMessage; - /** - * 返回前端的下载url。 - */ - private String downloadUri; - /** - * 返回给前端的文件名。 - */ - private String filename; -} diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/upload/UploadStoreInfo.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/upload/UploadStoreInfo.java deleted file mode 100644 index 62629c0d..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/upload/UploadStoreInfo.java +++ /dev/null @@ -1,22 +0,0 @@ -package com.orangeforms.common.core.upload; - -import lombok.Data; - -/** - * 上传数据存储信息对象。这里之所以使用对象,主要是便于今后扩展。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Data -public class UploadStoreInfo { - - /** - * 是否支持上传。 - */ - private boolean supportUpload; - /** - * 上传数据存储类型。 - */ - private UploadStoreTypeEnum storeType; -} diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/upload/UploadStoreTypeEnum.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/upload/UploadStoreTypeEnum.java deleted file mode 100644 index e4cec9a9..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/upload/UploadStoreTypeEnum.java +++ /dev/null @@ -1,19 +0,0 @@ -package com.orangeforms.common.core.upload; - -/** - * 上传数据存储介质类型枚举。 - * - * @author Jerry - * @date 2021-06-06 - */ -public enum UploadStoreTypeEnum { - - /** - * 本地系统。 - */ - LOCAL_SYSTEM, - /** - * minio分布式存储。 - */ - MINIO_SYSTEM -} diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/util/AopTargetUtil.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/util/AopTargetUtil.java deleted file mode 100644 index eb160dfe..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/util/AopTargetUtil.java +++ /dev/null @@ -1,64 +0,0 @@ -package com.orangeforms.common.core.util; - -import lombok.extern.slf4j.Slf4j; -import org.springframework.aop.framework.AdvisedSupport; -import org.springframework.aop.framework.AopProxy; -import org.springframework.aop.support.AopUtils; - -import java.lang.reflect.Field; - -/** - * 获取JDK动态代理/CGLIB代理对象代理的目标对象的工具类。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Slf4j -public class AopTargetUtil { - - /** - * 获取参数对象代理的目标对象。 - * - * @param proxy 代理对象 - * @return 代理的目标对象。 - */ - public static Object getTarget(Object proxy) { - if (!AopUtils.isAopProxy(proxy)) { - return proxy; - } - try { - if (AopUtils.isJdkDynamicProxy(proxy)) { - return getJdkDynamicProxyTargetObject(proxy); - } else { - return getCglibProxyTargetObject(proxy); - } - } catch (Exception e) { - log.error("Failed to call getJdkDynamicProxyTargetObject or getCglibProxyTargetObject", e); - return null; - } - } - - /** - * 私有构造函数,明确标识该常量类的作用。 - */ - private AopTargetUtil() { - } - - private static Object getCglibProxyTargetObject(Object proxy) throws Exception { - Field h = proxy.getClass().getDeclaredField("CGLIB$CALLBACK_0"); - h.setAccessible(true); - Object dynamicAdvisedInterceptor = h.get(proxy); - Field advised = dynamicAdvisedInterceptor.getClass().getDeclaredField("advised"); - advised.setAccessible(true); - return ((AdvisedSupport) advised.get(dynamicAdvisedInterceptor)).getTargetSource().getTarget(); - } - - private static Object getJdkDynamicProxyTargetObject(Object proxy) throws Exception { - Field h = proxy.getClass().getSuperclass().getDeclaredField("h"); - h.setAccessible(true); - AopProxy aopProxy = (AopProxy) h.get(proxy); - Field advised = aopProxy.getClass().getDeclaredField("advised"); - advised.setAccessible(true); - return ((AdvisedSupport) advised.get(aopProxy)).getTargetSource().getTarget(); - } -} \ No newline at end of file diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/util/ApplicationContextHolder.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/util/ApplicationContextHolder.java deleted file mode 100644 index d0290ceb..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/util/ApplicationContextHolder.java +++ /dev/null @@ -1,90 +0,0 @@ -package com.orangeforms.common.core.util; - -import com.orangeforms.common.core.exception.MyRuntimeException; -import org.springframework.context.ApplicationContext; -import org.springframework.context.ApplicationContextAware; -import org.springframework.lang.NonNull; -import org.springframework.stereotype.Component; - -import java.util.Collection; -import java.util.Map; - -/** - * Spring 系统启动应用感知对象,主要用于获取Spring Bean的上下文对象,后续的代码中可以直接查找系统中加载的Bean对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Component -public class ApplicationContextHolder implements ApplicationContextAware { - - private static ApplicationContext applicationContext; - - /** - * Spring 启动的过程中会自动调用,并将应用上下文对象赋值进来。 - * - * @param applicationContext 应用上下文对象,可通过该对象查找Spring中已经加载的Bean。 - */ - @Override - public void setApplicationContext(@NonNull ApplicationContext applicationContext) { - doSetApplicationContext(applicationContext); - } - - /** - * 获取应用上下文对象。 - * - * @return 应用上下文。 - */ - public static ApplicationContext getApplicationContext() { - assertApplicationContext(); - return applicationContext; - } - - /** - * 根据BeanName,获取Bean对象。 - * - * @param beanName Bean名称。 - * @param 返回的Bean类型。 - * @return Bean对象。 - */ - @SuppressWarnings("unchecked") - public static T getBean(String beanName) { - assertApplicationContext(); - return (T) applicationContext.getBean(beanName); - } - - /** - * 根据Bean的ClassType,获取Bean对象。 - * - * @param beanType Bean的Class类型。 - * @param 返回的Bean类型。 - * @return Bean对象。 - */ - public static T getBean(Class beanType) { - assertApplicationContext(); - return applicationContext.getBean(beanType); - } - - /** - * 根据Bean的ClassType,获取Bean对象列表。 - * - * @param beanType Bean的Class类型。 - * @param 返回的Bean类型。 - * @return Bean对象列表。 - */ - public static Collection getBeanListOfType(Class beanType) { - assertApplicationContext(); - Map beanMap = applicationContext.getBeansOfType(beanType); - return beanMap == null ? null : beanMap.values(); - } - - private static void assertApplicationContext() { - if (ApplicationContextHolder.applicationContext == null) { - throw new MyRuntimeException("applicaitonContext属性为null,请检查是否注入了ApplicationContextHolder!"); - } - } - - private static void doSetApplicationContext(ApplicationContext applicationContext) { - ApplicationContextHolder.applicationContext = applicationContext; - } -} \ No newline at end of file diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/util/ContextUtil.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/util/ContextUtil.java deleted file mode 100644 index 9d533b6e..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/util/ContextUtil.java +++ /dev/null @@ -1,49 +0,0 @@ -package com.orangeforms.common.core.util; - -import org.springframework.web.context.request.RequestContextHolder; -import org.springframework.web.context.request.ServletRequestAttributes; - -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; - -/** - * 获取Servlet HttpRequest和HttpResponse的工具类。 - * - * @author Jerry - * @date 2021-06-06 - */ -public class ContextUtil { - - /** - * 判断当前是否处于HttpServletRequest上下文环境。 - * - * @return 是返回true,否则false。 - */ - public static boolean hasRequestContext() { - return RequestContextHolder.getRequestAttributes() != null; - } - - /** - * 获取Servlet请求上下文的HttpRequest对象。 - * - * @return 请求上下文中的HttpRequest对象。 - */ - public static HttpServletRequest getHttpRequest() { - return ((ServletRequestAttributes) RequestContextHolder.getRequestAttributes()).getRequest(); - } - - /** - * 获取Servlet请求上下文的HttpResponse对象。 - * - * @return 请求上下文中的HttpResponse对象。 - */ - public static HttpServletResponse getHttpResponse() { - return ((ServletRequestAttributes) RequestContextHolder.getRequestAttributes()).getResponse(); - } - - /** - * 私有构造函数,明确标识该常量类的作用。 - */ - private ContextUtil() { - } -} diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/util/DataSourceResolver.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/util/DataSourceResolver.java deleted file mode 100644 index c5b5bf40..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/util/DataSourceResolver.java +++ /dev/null @@ -1,19 +0,0 @@ -package com.orangeforms.common.core.util; - -/** - * 基于自定义解析规则的多数据源解析接口。 - * - * @author Jerry - * @date 2021-06-06 - */ -public interface DataSourceResolver { - - /** - * 动态解析方法。实现类可以根据当前的请求,或者上下文环境进行动态解析。 - * - * @param arg 可选的入参。MyDataSourceResolver注解中的arg参数。 - * @param methodArgs 被织入方法的所有参数。 - * @return 返回用于多数据源切换的类型值。DataSourceResolveAspect 切面方法会根据该返回值和配置信息,进行多数据源切换。 - */ - int resolve(String arg, Object[] methodArgs); -} diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/util/ExportUtil.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/util/ExportUtil.java deleted file mode 100644 index 384382d7..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/util/ExportUtil.java +++ /dev/null @@ -1,95 +0,0 @@ -package com.orangeforms.common.core.util; - -import cn.hutool.core.io.IoUtil; -import cn.hutool.poi.excel.ExcelUtil; -import cn.hutool.poi.excel.ExcelWriter; -import cn.jimmyshi.beanquery.BeanQuery; -import com.orangeforms.common.core.constant.ApplicationConstant; -import com.orangeforms.common.core.exception.MyRuntimeException; -import lombok.extern.slf4j.Slf4j; -import org.apache.commons.collections4.CollectionUtils; -import org.apache.commons.csv.CSVFormat; -import org.apache.commons.csv.CSVPrinter; -import org.apache.commons.io.FilenameUtils; - -import javax.servlet.ServletOutputStream; -import javax.servlet.http.HttpServletResponse; -import java.io.IOException; -import java.io.Writer; -import java.nio.charset.StandardCharsets; -import java.util.*; - -/** - * 导出工具类,目前支持xlsx和csv两种类型。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Slf4j -public class ExportUtil { - - /** - * 数据导出。目前仅支持xlsx和csv。 - * - * @param dataList 导出数据列表。 - * @param selectFieldMap 导出的数据字段,key为对象字段名称,value为中文标题名称。 - * @param filename 导出文件名。 - * @param 数据对象类型。 - * @throws IOException 文件操作失败。 - */ - public static void doExport( - Collection dataList, Map selectFieldMap, String filename) throws IOException { - if (CollectionUtils.isEmpty(dataList)) { - return; - } - StringBuilder sb = new StringBuilder(128); - for (Map.Entry e : selectFieldMap.entrySet()) { - sb.append(e.getKey()).append(" as ").append(e.getValue()).append(", "); - } - // 去掉末尾的逗号 - String selectFieldString = sb.substring(0, sb.length() - 2); - // 写出数据到xcel格式的输出流 - List> resultList = BeanQuery.select(selectFieldString).executeFrom(dataList); - // 构建HTTP输出流参数 - HttpServletResponse response = ContextUtil.getHttpResponse(); - response.setHeader("content-type", "application/octet-stream"); - response.setContentType("application/octet-stream"); - response.setHeader("Content-Disposition", "attachment;filename=" + filename); - if (ApplicationConstant.XLSX_EXT.equals(FilenameUtils.getExtension(filename))) { - ServletOutputStream out = response.getOutputStream(); - ExcelWriter writer = ExcelUtil.getWriter(true); - writer.setRowHeight(-1, 30); - writer.setColumnWidth(-1, 30); - writer.setColumnWidth(1, 20); - writer.write(resultList); - writer.flush(out); - writer.close(); - IoUtil.close(out); - } else if (ApplicationConstant.CSV_EXT.equals(FilenameUtils.getExtension(filename))) { - Collection headerList = selectFieldMap.values(); - String[] headerArray = new String[headerList.size()]; - headerList.toArray(headerArray); - CSVFormat format = CSVFormat.DEFAULT.withHeader(headerArray); - response.setCharacterEncoding(StandardCharsets.UTF_8.name()); - try (Writer out = response.getWriter(); CSVPrinter printer = new CSVPrinter(out, format)) { - for (Map o : resultList) { - for (Map.Entry entry : o.entrySet()) { - printer.print(entry.getValue()); - } - printer.println(); - } - printer.flush(); - } catch (Exception e) { - log.error("Failed to call ExportUtil.doExport", e); - } - } else { - throw new MyRuntimeException("不支持的导出文件类型!"); - } - } - - /** - * 私有构造函数,明确标识该常量类的作用。 - */ - private ExportUtil() { - } -} diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/util/IpUtil.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/util/IpUtil.java deleted file mode 100644 index 5291abd2..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/util/IpUtil.java +++ /dev/null @@ -1,104 +0,0 @@ -package com.orangeforms.common.core.util; - -import lombok.extern.slf4j.Slf4j; -import org.apache.commons.lang3.StringUtils; - -import javax.servlet.http.HttpServletRequest; -import java.net.Inet6Address; -import java.net.InetAddress; -import java.net.NetworkInterface; -import java.net.SocketException; -import java.util.ArrayList; -import java.util.Enumeration; -import java.util.List; - -/** - * Ip工具类。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Slf4j -public class IpUtil { - - private static final String UNKNOWN = "unknown"; - - /** - * 通过Servlet的HttpRequest对象获取Ip地址。 - * - * @param request HttpRequest对象。 - * @return 本次请求的Ip地址。 - */ - public static String getRemoteIpAddress(HttpServletRequest request) { - String ip = null; - // X-Forwarded-For:Squid 服务代理 - String ipAddresses = request.getHeader("X-Forwarded-For"); - if (StringUtils.isBlank(ipAddresses) || UNKNOWN.equalsIgnoreCase(ipAddresses)) { - // Proxy-Client-IP:apache 服务代理 - ipAddresses = request.getHeader("Proxy-Client-IP"); - } - if (StringUtils.isBlank(ipAddresses) || UNKNOWN.equalsIgnoreCase(ipAddresses)) { - ipAddresses = request.getHeader("HTTP_X_FORWARDED_FOR"); - } - if (StringUtils.isBlank(ipAddresses) || UNKNOWN.equalsIgnoreCase(ipAddresses)) { - // WL-Proxy-Client-IP:weblogic 服务代理 - ipAddresses = request.getHeader("WL-Proxy-Client-IP"); - } - if (StringUtils.isBlank(ipAddresses) || UNKNOWN.equalsIgnoreCase(ipAddresses)) { - // HTTP_CLIENT_IP:有些代理服务器 - ipAddresses = request.getHeader("HTTP_CLIENT_IP"); - } - if (StringUtils.isBlank(ipAddresses) || UNKNOWN.equalsIgnoreCase(ipAddresses)) { - // X-Real-IP:nginx服务代理 - ipAddresses = request.getHeader("X-Real-IP"); - } - // 有些网络通过多层代理,那么获取到的ip就会有多个,一般都是通过逗号(,)分割开来,并且第一个ip为客户端的真实IP - if (StringUtils.isNotBlank(ipAddresses)) { - ip = ipAddresses.split(",")[0]; - } - // 还是不能获取到,最后再通过request.getRemoteAddr();获取 - if (StringUtils.isBlank(ipAddresses) || UNKNOWN.equalsIgnoreCase(ipAddresses)) { - ip = request.getRemoteAddr(); - } - return ip; - } - - public static String getFirstLocalIpAddress() { - String ip; - try { - List ipList = getHostAddress(); - // default the first - ip = (!ipList.isEmpty()) ? ipList.get(0) : ""; - } catch (Exception ex) { - ip = ""; - log.error("Failed to call ", ex); - } - return ip; - } - - private static List getHostAddress() throws SocketException { - List ipList = new ArrayList<>(5); - Enumeration interfaces = NetworkInterface.getNetworkInterfaces(); - while (interfaces.hasMoreElements()) { - NetworkInterface ni = interfaces.nextElement(); - Enumeration allAddress = ni.getInetAddresses(); - while (allAddress.hasMoreElements()) { - InetAddress address = allAddress.nextElement(); - // skip the IPv6 addr - // skip the IPv6 addr - if (address.isLoopbackAddress() || address instanceof Inet6Address) { - continue; - } - String hostAddress = address.getHostAddress(); - ipList.add(hostAddress); - } - } - return ipList; - } - - /** - * 私有构造函数,明确标识该常量类的作用。 - */ - private IpUtil() { - } -} diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/util/JwtUtil.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/util/JwtUtil.java deleted file mode 100644 index 6c17a8a3..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/util/JwtUtil.java +++ /dev/null @@ -1,110 +0,0 @@ -package com.orangeforms.common.core.util; - -import io.jsonwebtoken.Claims; -import io.jsonwebtoken.Jwts; -import io.jsonwebtoken.SignatureAlgorithm; -import lombok.extern.slf4j.Slf4j; - -import java.util.Date; -import java.util.Map; - -/** - * 基于JWT的Token生成工具类 - * - * @author Jerry - * @date 2021-06-06 - */ -@Slf4j -public class JwtUtil { - - private static final String TOKEN_PREFIX = "Bearer "; - private static final String CLAIM_KEY_CREATEDTIME = "CreatedTime"; - - /** - * Token缺省过期时间是30分钟 - */ - private static final Long TOKEN_EXPIRATION = 1800000L; - /** - * 缺省情况下,Token会每5分钟被刷新一次 - */ - private static final Long REFRESH_TOKEN_INTERVAL = 300000L; - - /** - * 生成加密后的JWT令牌,生成的结果中包含令牌前缀,如"Bearer " - * - * @param claims 令牌中携带的数据 - * @param expirationMillisecond 过期的毫秒数 - * @return 生成后的令牌信息 - */ - public static String generateToken(Map claims, long expirationMillisecond, String signingKey) { - // 自动添加token的创建时间 - long createTime = System.currentTimeMillis(); - claims.put(CLAIM_KEY_CREATEDTIME, createTime); - String token = Jwts.builder() - .setClaims(claims) - .setExpiration(new Date(createTime + expirationMillisecond)) - .signWith(SignatureAlgorithm.HS512, signingKey) - .compact(); - return TOKEN_PREFIX + token; - } - - /** - * 生成加密后的JWT令牌,生成的结果中包含令牌前缀,如"Bearer " - * - * @param claims 令牌中携带的数据 - * @return 生成后的令牌信息 - */ - public static String generateToken(Map claims, String signingKey) { - return generateToken(claims, TOKEN_EXPIRATION, signingKey); - } - - /** - * 获取token中的数据对象 - * - * @param token 令牌信息(需要包含令牌前缀,如"Bearer ") - * @return 令牌中的数据对象,解析视频返回null。 - */ - public static Claims parseToken(String token, String signingKey) { - if (token == null || !token.startsWith(TOKEN_PREFIX)) { - return null; - } - String tokenKey = token.substring(TOKEN_PREFIX.length()); - Claims claims = null; - try { - claims = Jwts.parser().setSigningKey(signingKey).parseClaimsJws(tokenKey).getBody(); - } catch (Exception e) { - log.error("Token Expired", e); - } - return claims; - } - - /** - * 判断令牌是否过期 - * - * @param claims 令牌解密后的Map对象。 - * @return true 过期,否则false。 - */ - public static boolean isNullOrExpired(Claims claims) { - return claims == null || claims.getExpiration().before(new Date()); - } - - /** - * 判断解密后的Token payload是否需要被强制刷新,如果需要,则调用generateToken方法重新生成Token。 - * - * @param claims Token解密后payload数据 - * @return true 需要刷新,否则false - */ - public static boolean needToRefresh(Claims claims) { - if (claims == null) { - return false; - } - Long createTime = (Long) claims.get(CLAIM_KEY_CREATEDTIME); - return createTime == null || System.currentTimeMillis() - createTime > REFRESH_TOKEN_INTERVAL; - } - - /** - * 私有构造函数,明确标识该常量类的作用。 - */ - private JwtUtil() { - } -} diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/util/LogMessageUtil.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/util/LogMessageUtil.java deleted file mode 100644 index 34ceac6a..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/util/LogMessageUtil.java +++ /dev/null @@ -1,33 +0,0 @@ -package com.orangeforms.common.core.util; - -/** - * 拼接日志消息的工具类。 - * 主要目标是,尽量保证日志输出的统一性,同时也可以有效减少与日志信息相关的常量字符串, - * 提高代码的规范度和可维护性。 - * - * @author Jerry - * @date 2021-06-06 - */ -public class LogMessageUtil { - - /** - * RPC调用错误格式。 - */ - private static final String RPC_ERROR_MSG_FORMAT = "RPC Failed with Error message [%s]"; - - /** - * 组装RPC调用的错误信息。 - * - * @param errorMsg 具体的错误信息。 - * @return 格式化后的错误信息。 - */ - public static String makeRpcError(String errorMsg) { - return String.format(RPC_ERROR_MSG_FORMAT, errorMsg); - } - - /** - * 私有构造函数,明确标识该常量类的作用。 - */ - private LogMessageUtil() { - } -} diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/util/MyCommonUtil.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/util/MyCommonUtil.java deleted file mode 100644 index 05a59cdc..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/util/MyCommonUtil.java +++ /dev/null @@ -1,262 +0,0 @@ -package com.orangeforms.common.core.util; - -import cn.hutool.core.collection.CollUtil; -import cn.hutool.core.util.ReflectUtil; -import cn.hutool.core.util.StrUtil; -import cn.hutool.crypto.digest.DigestUtil; -import com.orangeforms.common.core.constant.AppDeviceType; -import com.orangeforms.common.core.validator.AddGroup; -import com.orangeforms.common.core.validator.UpdateGroup; - -import javax.validation.ConstraintViolation; -import javax.validation.Validation; -import javax.validation.Validator; -import javax.validation.groups.Default; -import java.lang.reflect.Field; -import java.util.*; -import java.util.stream.Collectors; - -/** - * 脚手架中常用的基本工具方法集合,一般而言工程内部使用的方法。 - * - * @author Jerry - * @date 2021-06-06 - */ -public class MyCommonUtil { - - private static final Validator VALIDATOR; - - static { - VALIDATOR = Validation.buildDefaultValidatorFactory().getValidator(); - } - - /** - * 创建uuid。 - * - * @return 返回uuid。 - */ - public static String generateUuid() { - return UUID.randomUUID().toString().replace("-", ""); - } - - /** - * 对用户密码进行加盐后加密。 - * - * @param password 明文密码。 - * @param passwordSalt 盐值。 - * @return 加密后的密码。 - */ - public static String encrptedPassword(String password, String passwordSalt) { - return DigestUtil.md5Hex(password + passwordSalt); - } - - /** - * 这个方法一般用于Controller对于入口参数的基本验证。 - * 对于字符串,如果为空字符串,也将视为Blank,同时返回true。 - * - * @param objs 一组参数。 - * @return 返回是否存在null或空字符串的参数。 - */ - public static boolean existBlankArgument(Object...objs) { - for (Object obj : objs) { - if (MyCommonUtil.isBlankOrNull(obj)) { - return true; - } - } - return false; - } - - /** - * 结果和 existBlankArgument 相反。 - * - * @param objs 一组参数。 - * @return 返回是否存在null或空字符串的参数。 - */ - public static boolean existNotBlankArgument(Object...objs) { - for (Object obj : objs) { - if (!MyCommonUtil.isBlankOrNull(obj)) { - return true; - } - } - return false; - } - - /** - * 验证参数是否为空。 - * - * @param obj 待判断的参数。 - * @return 空或者null返回true,否则false。 - */ - public static boolean isBlankOrNull(Object obj) { - if (obj instanceof Collection) { - return CollUtil.isEmpty((Collection) obj); - } - return obj == null || (obj instanceof CharSequence && StrUtil.isBlank((CharSequence) obj)); - } - - /** - * 验证参数是否为非空。 - * - * @param obj 待判断的参数。 - * @return 空或者null返回false,否则true。 - */ - public static boolean isNotBlankOrNull(Object obj) { - return !isBlankOrNull(obj); - } - - /** - * 判断模型对象是否通过校验,没有通过返回具体的校验错误信息。 - * - * @param model 带校验的model。 - * @param groups Validate绑定的校验组。 - * @return 没有错误返回null,否则返回具体的错误信息。 - */ - public static String getModelValidationError(T model, Class...groups) { - if (model != null) { - Set> constraintViolations = VALIDATOR.validate(model, groups); - if (!constraintViolations.isEmpty()) { - Iterator> it = constraintViolations.iterator(); - ConstraintViolation constraint = it.next(); - return constraint.getMessage(); - } - } - return null; - } - - /** - * 判断模型对象是否通过校验,没有通过返回具体的校验错误信息。 - * - * @param model 带校验的model。 - * @param forUpdate 是否为更新。 - * @return 没有错误返回null,否则返回具体的错误信息。 - */ - public static String getModelValidationError(T model, boolean forUpdate) { - if (model != null) { - Set> constraintViolations; - if (forUpdate) { - constraintViolations = VALIDATOR.validate(model, Default.class, UpdateGroup.class); - } else { - constraintViolations = VALIDATOR.validate(model, Default.class, AddGroup.class); - } - if (!constraintViolations.isEmpty()) { - Iterator> it = constraintViolations.iterator(); - ConstraintViolation constraint = it.next(); - return constraint.getMessage(); - } - } - return null; - } - - /** - * 判断模型对象是否通过校验,没有通过返回具体的校验错误信息。 - * - * @param modelList 带校验的model列表。 - * @param groups Validate绑定的校验组。 - * @return 没有错误返回null,否则返回具体的错误信息。 - */ - public static String getModelValidationError(List modelList, Class... groups) { - if (CollUtil.isNotEmpty(modelList)) { - for (T model : modelList) { - String errorMessage = getModelValidationError(model, groups); - if (StrUtil.isNotBlank(errorMessage)) { - return errorMessage; - } - } - } - return null; - } - - /** - * 判断模型对象是否通过校验,没有通过返回具体的校验错误信息。 - * - * @param modelList 带校验的model列表。 - * @param forUpdate 是否为更新。 - * @return 没有错误返回null,否则返回具体的错误信息。 - */ - public static String getModelValidationError(List modelList, boolean forUpdate) { - if (CollUtil.isNotEmpty(modelList)) { - for (T model : modelList) { - String errorMessage = getModelValidationError(model, forUpdate); - if (StrUtil.isNotBlank(errorMessage)) { - return errorMessage; - } - } - } - return null; - } - - /** - * 拼接参数中的字符串列表,用指定分隔符进行分割,同时每个字符串对象用单引号括起来。 - * - * @param dataList 字符串集合。 - * @param separator 分隔符。 - * @return 拼接后的字符串。 - */ - public static String joinString(Collection dataList, final char separator) { - int index = 0; - StringBuilder sb = new StringBuilder(128); - for (String data : dataList) { - sb.append("'").append(data).append("'"); - if (index++ != dataList.size() - 1) { - sb.append(separator); - } - } - return sb.toString(); - } - - /** - * 将SQL Like中的通配符替换为字符本身的含义,以便于比较。 - * - * @param str 待替换的字符串。 - * @return 替换后的字符串。 - */ - public static String replaceSqlWildcard(String str) { - if (StrUtil.isBlank(str)) { - return str; - } - return StrUtil.replaceChars(StrUtil.replaceChars(str, "_", "\\_"), "%", "\\%"); - } - - /** - * 获取对象中,非空字段的名字列表。 - * - * @param object 数据对象。 - * @param clazz 数据对象的class类型。 - * @param 数据对象类型。 - * @return 数据对象中,值不为NULL的字段数组。 - */ - public static String[] getNotNullFieldNames(T object, Class clazz) { - Field[] fields = ReflectUtil.getFields(clazz); - List fieldNameList = Arrays.stream(fields) - .filter(f -> ReflectUtil.getFieldValue(object, f) != null) - .map(Field::getName).collect(Collectors.toList()); - if (CollUtil.isNotEmpty(fieldNameList)) { - return fieldNameList.toArray(new String[]{}); - } - return new String[]{}; - } - - /** - * 获取请求头中的设备信息。 - * - * @return 设备类型,具体值可参考AppDeviceType常量类。 - */ - public static int getDeviceType() { - // 缺省都按照Web登录方式设置,如果前端header中的值为不合法值,这里也不会报错,而是使用Web缺省方式。 - int deviceType = AppDeviceType.WEB; - String deviceTypeString = ContextUtil.getHttpRequest().getHeader("deviceType"); - if (StrUtil.isNotBlank(deviceTypeString)) { - Integer type = Integer.valueOf(deviceTypeString); - if (AppDeviceType.isValid(type)) { - deviceType = type; - } - } - return deviceType; - } - - /** - * 私有构造函数,明确标识该常量类的作用。 - */ - private MyCommonUtil() { - } -} diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/util/MyDateUtil.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/util/MyDateUtil.java deleted file mode 100644 index f969aebb..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/util/MyDateUtil.java +++ /dev/null @@ -1,181 +0,0 @@ -package com.orangeforms.common.core.util; - -import com.orangeforms.common.core.object.Tuple2; -import org.apache.commons.lang3.time.DateUtils; -import org.joda.time.DateTime; -import org.joda.time.Period; -import org.joda.time.format.DateTimeFormat; -import org.joda.time.format.DateTimeFormatter; - -import java.util.Calendar; -import java.util.Date; - -import static org.joda.time.PeriodType.days; - -/** - * 日期工具类,主要封装了部分joda-time中的方法,让很多代码一行完成,同时统一了日期到字符串的pattern格式。 - * - * @author Jerry - * @date 2021-06-06 - */ -public class MyDateUtil { - - /** - * 统一的日期pattern,今后可以根据自己的需求去修改。 - */ - public static final String COMMON_DATE_FORMAT = "yyyy-MM-dd"; - /** - * 统一的日期时间pattern,今后可以根据自己的需求去修改。 - */ - public static final String COMMON_DATETIME_FORMAT = "yyyy-MM-dd HH:mm:ss.SSS"; - /** - * 缺省日期格式化器,提前获取提升运行时效率。 - */ - private static final DateTimeFormatter DATE_PARSE_FORMATTER = - DateTimeFormat.forPattern(MyDateUtil.COMMON_DATE_FORMAT); - /** - * 缺省日期时间格式化器,提前获取提升运行时效率。 - */ - private static final DateTimeFormatter DATETIME_PARSE_FORMATTER = - DateTimeFormat.forPattern(MyDateUtil.COMMON_DATETIME_FORMAT); - - /** - * 获取一天的开始时间的字符串格式,如2019-08-03 00:00:00.000。 - * - * @param dateTime 待格式化的日期时间对象。 - * @return 格式化后的字符串。 - */ - public static String getBeginTimeOfDay(DateTime dateTime) { - return dateTime.withTimeAtStartOfDay().toString(COMMON_DATETIME_FORMAT); - } - - /** - * 获取一天的结束时间的字符串格式,如2019-08-03 23:59:59.999。 - * - * @param dateTime 待格式化的日期时间对象。 - * @return 格式化后的字符串。 - */ - public static String getEndTimeOfDay(DateTime dateTime) { - return dateTime.withTime(23, 59, 59, 999).toString(COMMON_DATETIME_FORMAT); - } - - /** - * 获取一天中的开始时间和结束时间的字符串格式,如2019-08-03 00:00:00.000 和 2019-08-03 23:59:59.999。 - * - * @param dateTime 待格式化的日期时间对象。 - * @return 包含格式后字符串的二元组对象。 - */ - public static Tuple2 getDateTimeRangeOfDay(DateTime dateTime) { - return new Tuple2<>(getBeginTimeOfDay(dateTime), getEndTimeOfDay(dateTime)); - } - - /** - * 获取本月第一天的日期格式。如2019-08-01。 - * - * @param dateTime 待格式化的日期对象。 - * @return 格式化后的字符串。 - */ - public static String getBeginDateOfMonth(DateTime dateTime) { - return dateTime.withDayOfMonth(1).toString(COMMON_DATE_FORMAT); - } - - /** - * 获取本月第一天的日期格式。如2019-08-01。 - * - * @param dateString 待格式化的日期字符串对象。 - * @return 格式化后的字符串。 - */ - public static String getBeginDateOfMonth(String dateString) { - DateTime dateTime = toDate(dateString); - return dateTime.withDayOfMonth(1).toString(COMMON_DATE_FORMAT); - } - - /** - * 计算指定日期距离今天相差的天数。 - * - * @param dateTime 待格式化的日期时间对象。 - * @return 相差天数。 - */ - public static int getDayDiffToNow(DateTime dateTime) { - return new Period(dateTime, new DateTime(), days()).getDays(); - } - - /** - * 将日期对象格式化为缺省的字符串格式。 - * - * @param dateTime 待格式化的日期对象。 - * @return 格式化后的字符串。 - */ - public static String toDateString(DateTime dateTime) { - return dateTime.toString(COMMON_DATE_FORMAT); - } - - /** - * 将日期时间对象格式化为缺省的字符串格式。 - * - * @param dateTime 待格式化的日期对象。 - * @return 格式化后的字符串。 - */ - public static String toDateTimeString(DateTime dateTime) { - return dateTime.toString(COMMON_DATETIME_FORMAT); - } - - /** - * 将缺省格式的日期字符串解析为日期对象。 - * - * @param dateString 待解析的字符串。 - * @return 解析后的日期对象。 - */ - public static DateTime toDate(String dateString) { - return DATE_PARSE_FORMATTER.parseDateTime(dateString); - } - - /** - * 将缺省格式的日期字符串解析为日期对象。 - * - * @param dateTimeString 待解析的字符串。 - * @return 解析后的日期对象。 - */ - public static DateTime toDateTime(String dateTimeString) { - return DATETIME_PARSE_FORMATTER.parseDateTime(dateTimeString); - } - - /** - * 截取时间到天。如2019-10-03 01:20:30 转换为 2019-10-03 00:00:00。 - * 由于没有字符串的中间转换,因此效率更高。 - * - * @param date 待截取日期对象。 - * @return 转换后日期对象。 - */ - public static Date truncateToDay(Date date) { - return DateUtils.truncate(date, Calendar.DAY_OF_MONTH); - } - - /** - * 截取时间到月。如2019-10-03 01:20:30 转换为 2019-10-01 00:00:00。 - * 由于没有字符串的中间转换,因此效率更高。 - * - * @param date 待截取日期对象。 - * @return 转换后日期对象。 - */ - public static Date truncateToMonth(Date date) { - return DateUtils.truncate(date, Calendar.MONTH); - } - - /** - * 截取时间到年。如2019-10-03 01:20:30 转换为 2019-01-01 00:00:00。 - * 由于没有字符串的中间转换,因此效率更高。 - * - * @param date 待截取日期对象。 - * @return 转换后日期对象。 - */ - public static Date truncateToYear(Date date) { - return DateUtils.truncate(date, Calendar.YEAR); - } - - /** - * 私有构造函数,明确标识该常量类的作用。 - */ - private MyDateUtil() { - } -} diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/util/MyModelUtil.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/util/MyModelUtil.java deleted file mode 100644 index d6c692ac..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/util/MyModelUtil.java +++ /dev/null @@ -1,758 +0,0 @@ -package com.orangeforms.common.core.util; - -import cn.hutool.core.bean.BeanUtil; -import cn.hutool.core.util.ReflectUtil; -import com.alibaba.fastjson.JSON; -import com.baomidou.mybatisplus.annotation.*; -import com.orangeforms.common.core.exception.InvalidDataFieldException; -import com.orangeforms.common.core.annotation.*; -import com.orangeforms.common.core.exception.MyRuntimeException; -import com.orangeforms.common.core.object.TokenData; -import com.orangeforms.common.core.object.Tuple2; -import com.orangeforms.common.core.upload.UploadResponseInfo; -import com.orangeforms.common.core.upload.UploadStoreInfo; -import com.google.common.base.CaseFormat; -import lombok.extern.slf4j.Slf4j; -import org.apache.commons.collections4.CollectionUtils; -import org.apache.commons.collections4.MapUtils; -import org.apache.commons.lang3.StringUtils; - -import java.lang.reflect.Field; -import java.util.*; -import java.util.concurrent.ConcurrentHashMap; -import java.util.function.Function; -import java.util.stream.Collectors; - -/** - * 负责Model数据操作、类型转换和关系关联等行为的工具类。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Slf4j -public class MyModelUtil { - - /** - * 数值型字段。 - */ - public static final Integer NUMERIC_FIELD_TYPE = 0; - /** - * 字符型字段。 - */ - public static final Integer STRING_FIELD_TYPE = 1; - /** - * 日期型字段。 - */ - public static final Integer DATE_FIELD_TYPE = 2; - /** - * 整个工程的实体对象中,创建者Id字段的Java对象名。 - */ - public static final String CREATE_USER_ID_FIELD_NAME = "createUserId"; - /** - * 整个工程的实体对象中,创建时间字段的Java对象名。 - */ - public static final String CREATE_TIME_FIELD_NAME = "createTime"; - /** - * 整个工程的实体对象中,更新者Id字段的Java对象名。 - */ - public static final String UPDATE_USER_ID_FIELD_NAME = "updateUserId"; - /** - * 整个工程的实体对象中,更新时间字段的Java对象名。 - */ - public static final String UPDATE_TIME_FIELD_NAME = "updateTime"; - /** - * mapToColumnName和mapToColumnInfo使用的缓存。 - */ - private static final Map> CACHED_COLUMNINFO_MAP = new ConcurrentHashMap<>(); - - /** - * 将bean的数据列表转换为Map列表。 - * - * @param dataList bean数据列表。 - * @param bean对象类型。 - * @return 转换后的Map列表。 - */ - public static List> beanToMapList(List dataList) { - if (CollectionUtils.isEmpty(dataList)) { - return null; - } - List> resultList = new LinkedList<>(); - for (T data : dataList) { - resultList.add(BeanUtil.beanToMap(data)); - } - return resultList; - } - - /** - * 拷贝源类型的集合数据到目标类型的集合中,其中源类型和目标类型中的对象字段类型完全相同。 - * NOTE: 该函数主要应用于框架中,Dto和Model之间的copy,特别针对一对一关联的深度copy。 - * 在Dto中,一对一对象可以使用Map来表示,而不需要使用从表对象的Dto。 - * - * @param sourceCollection 源类型集合。 - * @param targetClazz 目标类型的Class对象。 - * @param 源类型。 - * @param 目标类型。 - * @return copy后的目标类型对象集合。 - */ - public static List copyCollectionTo(Collection sourceCollection, Class targetClazz) { - if (sourceCollection == null) { - return null; - } - List targetList = new LinkedList<>(); - if (CollectionUtils.isNotEmpty(sourceCollection)) { - for (S source : sourceCollection) { - try { - T target = targetClazz.newInstance(); - BeanUtil.copyProperties(source, target); - targetList.add(target); - } catch (Exception e) { - log.error("Failed to call MyModelUtil.copyCollectionTo", e); - return Collections.emptyList(); - } - } - } - return targetList; - } - - /** - * 拷贝源类型的对象数据到目标类型的对象中,其中源类型和目标类型中的对象字段类型完全相同。 - * NOTE: 该函数主要应用于框架中,Dto和Model之间的copy,特别针对一对一关联的深度copy。 - * 在Dto中,一对一对象可以使用Map来表示,而不需要使用从表对象的Dto。 - * - * @param source 源类型对象。 - * @param targetClazz 目标类型的Class对象。 - * @param 源类型。 - * @param 目标类型。 - * @return copy后的目标类型对象。 - */ - public static T copyTo(S source, Class targetClazz) { - if (source == null) { - return null; - } - try { - T target = targetClazz.newInstance(); - BeanUtil.copyProperties(source, target); - return target; - } catch (Exception e) { - log.error("Failed to call MyModelUtil.copyTo", e); - return null; - } - } - - /** - * 映射Model对象的字段反射对象,获取与该字段对应的数据库列名称。 - * - * @param field 字段反射对象。 - * @param modelClazz Model对象的Class类。 - * @return 该字段所对应的数据表列名称。 - */ - public static String mapToColumnName(Field field, Class modelClazz) { - return mapToColumnName(field.getName(), modelClazz); - } - - /** - * 映射Model对象的字段名称,获取与该字段对应的数据库列名称。 - * - * @param fieldName 字段名称。 - * @param modelClazz Model对象的Class类。 - * @return 该字段所对应的数据表列名称。 - */ - public static String mapToColumnName(String fieldName, Class modelClazz) { - Tuple2 columnInfo = mapToColumnInfo(fieldName, modelClazz); - return columnInfo == null ? null : columnInfo.getFirst(); - } - - /** - * 映射Model对象的字段反射对象,获取与该字段对应的数据库列名称。 - * 如果没有匹配到ColumnName,则立刻抛出异常。 - * - * @param field 字段反射对象。 - * @param modelClazz Model对象的Class类。 - * @return 该字段所对应的数据表列名称。 - */ - public static String safeMapToColumnName(Field field, Class modelClazz) { - return safeMapToColumnName(field.getName(), modelClazz); - } - - /** - * 映射Model对象的字段名称,获取与该字段对应的数据库列名称。 - * 如果没有匹配到ColumnName,则立刻抛出异常。 - * - * @param fieldName 字段名称。 - * @param modelClazz Model对象的Class类。 - * @return 该字段所对应的数据表列名称。 - */ - public static String safeMapToColumnName(String fieldName, Class modelClazz) { - String columnName = mapToColumnName(fieldName, modelClazz); - if (columnName == null) { - throw new InvalidDataFieldException(modelClazz.getSimpleName(), fieldName); - } - return columnName; - } - - /** - * 映射Model对象的字段名称,获取与该字段对应的数据库列名称和字段类型。 - * - * @param fieldName 字段名称。 - * @param modelClazz Model对象的Class类。 - * @return 该字段所对应的数据表列名称和Java字段类型。 - */ - public static Tuple2 mapToColumnInfo(String fieldName, Class modelClazz) { - if (StringUtils.isBlank(fieldName)) { - return null; - } - StringBuilder sb = new StringBuilder(128); - sb.append(modelClazz.getName()).append("-#-").append(fieldName); - Tuple2 columnInfo = CACHED_COLUMNINFO_MAP.get(sb.toString()); - if (columnInfo == null) { - Field field = ReflectUtil.getField(modelClazz, fieldName); - if (field == null) { - return null; - } - TableField c = field.getAnnotation(TableField.class); - String columnName = null; - if (c == null) { - TableId id = field.getAnnotation(TableId.class); - if (id != null) { - columnName = id.value(); - } - } - if (columnName == null) { - columnName = c == null ? CaseFormat.LOWER_CAMEL.to(CaseFormat.LOWER_UNDERSCORE, fieldName) : c.value(); - if (StringUtils.isBlank(columnName)) { - columnName = CaseFormat.LOWER_CAMEL.to(CaseFormat.LOWER_UNDERSCORE, fieldName); - } - } - // 这里缺省情况下都是按照整型去处理,因为他覆盖太多的类型了。 - // 如Integer/Long/Double/BigDecimal,可根据实际情况完善和扩充。 - String typeName = field.getType().getSimpleName(); - Integer type = NUMERIC_FIELD_TYPE; - if (String.class.getSimpleName().equals(typeName)) { - type = STRING_FIELD_TYPE; - } else if (Date.class.getSimpleName().equals(typeName)) { - type = DATE_FIELD_TYPE; - } - columnInfo = new Tuple2<>(columnName, type); - CACHED_COLUMNINFO_MAP.put(sb.toString(), columnInfo); - } - return columnInfo; - } - - /** - * 映射Model主对象的Class名称,到Model所对应的表名称。 - * - * @param modelClazz Model主对象的Class。 - * @return Model对象对应的数据表名称。 - */ - public static String mapToTableName(Class modelClazz) { - TableName t = modelClazz.getAnnotation(TableName.class); - return t == null ? null : t.value(); - } - - /** - * 主Model类型中,遍历所有包含RelationConstDict注解的字段,并将关联的静态字典中的数据, - * 填充到thisModel对象的被注解字段中。 - * - * @param thisClazz 主对象的Class对象。 - * @param thisModel 主对象。 - * @param 主表对象类型。 - */ - @SuppressWarnings("unchecked") - public static void makeConstDictRelation(Class thisClazz, T thisModel) { - if (thisModel == null) { - return; - } - Field[] fields = ReflectUtil.getFields(thisClazz); - for (Field field : fields) { - // 这里不做任何空值判断,从而让配置错误在调试期间即可抛出 - Field thisTargetField = ReflectUtil.getField(thisClazz, field.getName()); - RelationConstDict r = thisTargetField.getAnnotation(RelationConstDict.class); - if (r == null) { - continue; - } - Field dictMapField = ReflectUtil.getField(r.constantDictClass(), "DICT_MAP"); - Map dictMap = - (Map) ReflectUtil.getFieldValue(r.constantDictClass(), dictMapField); - Object id = ReflectUtil.getFieldValue(thisModel, r.masterIdField()); - if (id != null) { - String name = dictMap.get(id); - if (name != null) { - Map m = new HashMap<>(2); - m.put("id", id); - m.put("name", name); - ReflectUtil.setFieldValue(thisModel, thisTargetField, m); - } - } - } - } - - /** - * 主Model类型中,遍历所有包含RelationConstDict注解的字段,并将关联的静态字典中的数据, - * 填充到thisModelList集合元素对象的被注解字段中。 - * - * @param thisClazz 主对象的Class对象。 - * @param thisModelList 主对象列表。 - * @param 主表对象类型。 - */ - @SuppressWarnings("unchecked") - public static void makeConstDictRelation(Class thisClazz, List thisModelList) { - if (CollectionUtils.isEmpty(thisModelList)) { - return; - } - Field[] fields = ReflectUtil.getFields(thisClazz); - for (Field field : fields) { - // 这里不做任何空值判断,从而让配置错误在调试期间即可抛出 - Field thisTargetField = ReflectUtil.getField(thisClazz, field.getName()); - RelationConstDict r = thisTargetField.getAnnotation(RelationConstDict.class); - if (r == null) { - continue; - } - Field dictMapField = ReflectUtil.getField(r.constantDictClass(), "DICT_MAP"); - Map dictMap = - (Map) ReflectUtil.getFieldValue(r.constantDictClass(), dictMapField); - for (T thisModel : thisModelList) { - if (thisModel == null) { - continue; - } - Object id = ReflectUtil.getFieldValue(thisModel, r.masterIdField()); - if (id != null) { - String name = dictMap.get(id); - if (name != null) { - Map m = new HashMap<>(2); - m.put("id", id); - m.put("name", name); - ReflectUtil.setFieldValue(thisModel, thisTargetField, m); - } - } - } - } - } - - /** - * 在主Model类型中,根据thisRelationField字段的RelationDict注解参数,将被关联对象thatModel中的数据, - * 关联到thisModel对象的thisRelationField字段中。 - * - * @param thisClazz 主对象的Class对象。 - * @param thisModel 主对象。 - * @param thatModel 字典关联对象。 - * @param thisRelationField 主表对象中保存被关联对象的字段名称。 - * @param 主表对象类型。 - * @param 从表对象类型。 - */ - public static void makeDictRelation( - Class thisClazz, T thisModel, R thatModel, String thisRelationField) { - if (thatModel == null || thisModel == null) { - return; - } - // 这里不做任何空值判断,从而让配置错误在调试期间即可抛出 - Field thisTargetField = ReflectUtil.getField(thisClazz, thisRelationField); - RelationDict r = thisTargetField.getAnnotation(RelationDict.class); - Class thatClass = r.slaveModelClass(); - Field slaveIdField = ReflectUtil.getField(thatClass, r.slaveIdField()); - Field slaveNameField = ReflectUtil.getField(thatClass, r.slaveNameField()); - Map m = new HashMap<>(2); - m.put("id", ReflectUtil.getFieldValue(thatModel, slaveIdField)); - m.put("name", ReflectUtil.getFieldValue(thatModel, slaveNameField)); - ReflectUtil.setFieldValue(thisModel, thisTargetField, m); - } - - /** - * 在主Model类型中,根据thisRelationField字段的RelationDict注解参数,将被关联对象集合thatModelList中的数据, - * 逐个关联到thisModelList每一个元素的thisRelationField字段中。 - * - * @param thisClazz 主对象的Class对象。 - * @param thisModelList 主对象列表。 - * @param thatModelList 字典关联对象列表集合。 - * @param thisRelationField 主表对象中保存被关联对象的字段名称。 - * @param 主表对象类型。 - * @param 从表对象类型。 - */ - public static void makeDictRelation( - Class thisClazz, List thisModelList, List thatModelList, String thisRelationField) { - if (CollectionUtils.isEmpty(thatModelList) - || CollectionUtils.isEmpty(thisModelList)) { - return; - } - // 这里不做任何空值判断,从而让配置错误在调试期间即可抛出 - Field thisTargetField = ReflectUtil.getField(thisClazz, thisRelationField); - RelationDict r = thisTargetField.getAnnotation(RelationDict.class); - Field masterIdField = ReflectUtil.getField(thisClazz, r.masterIdField()); - Class thatClass = r.slaveModelClass(); - Field slaveIdField = ReflectUtil.getField(thatClass, r.slaveIdField()); - Field slaveNameField = ReflectUtil.getField(thatClass, r.slaveNameField()); - Map thatMap = new HashMap<>(20); - thatModelList.forEach(thatModel -> { - Object id = ReflectUtil.getFieldValue(thatModel, slaveIdField); - thatMap.put(id, thatModel); - }); - thisModelList.forEach(thisModel -> { - if (thisModel != null) { - Object id = ReflectUtil.getFieldValue(thisModel, masterIdField); - R thatModel = thatMap.get(id); - if (thatModel != null) { - Map m = new HashMap<>(4); - m.put("id", id); - m.put("name", ReflectUtil.getFieldValue(thatModel, slaveNameField)); - ReflectUtil.setFieldValue(thisModel, thisTargetField, m); - } - } - }); - } - - /** - * 在主Model类型中,根据thisRelationField字段的RelationDict注解参数,将被关联对象集合thatModelMap中的数据, - * 逐个关联到thisModelList每一个元素的thisRelationField字段中。 - * 该函数之所以使用Map,主要出于性能优化考虑,在连续使用thatModelMap进行关联时,有效的避免了从多次从List转换到Map的过程。 - * - * @param thisClazz 主对象的Class对象。 - * @param thisModelList 主对象列表。 - * @param thatMadelMap 字典关联对象映射集合。 - * @param thisRelationField 主表对象中保存被关联对象的字段名称。 - * @param 主表对象类型。 - * @param 从表对象类型。 - */ - public static void makeDictRelation( - Class thisClazz, List thisModelList, Map thatMadelMap, String thisRelationField) { - if (MapUtils.isEmpty(thatMadelMap) - || CollectionUtils.isEmpty(thisModelList)) { - return; - } - // 这里不做任何空值判断,从而让配置错误在调试期间即可抛出 - Field thisTargetField = ReflectUtil.getField(thisClazz, thisRelationField); - RelationDict r = thisTargetField.getAnnotation(RelationDict.class); - Field masterIdField = ReflectUtil.getField(thisClazz, r.masterIdField()); - Class thatClass = r.slaveModelClass(); - Field slaveNameField = ReflectUtil.getField(thatClass, r.slaveNameField()); - thisModelList.forEach(thisModel -> { - if (thisModel != null) { - Object id = ReflectUtil.getFieldValue(thisModel, masterIdField); - R thatModel = thatMadelMap.get(id); - if (thatModel != null) { - Map m = new HashMap<>(4); - m.put("id", id); - m.put("name", ReflectUtil.getFieldValue(thatModel, slaveNameField)); - ReflectUtil.setFieldValue(thisModel, thisTargetField, m); - } - } - }); - } - - /** - * 在主Model类型中,根据thisRelationField字段的RelationOneToOne注解参数,将被关联对象列表thatModelList中的数据, - * 逐个关联到thisModelList每一个元素的thisRelationField字段中。 - * - * @param thisClazz 主对象的Class对象。 - * @param thisModelList 主对象列表。 - * @param thatModelList 一对一关联对象列表。 - * @param thisRelationField 主表对象中保存被关联对象的字段名称。 - * @param 主表对象类型。 - * @param 从表对象类型。 - */ - public static void makeOneToOneRelation( - Class thisClazz, List thisModelList, List thatModelList, String thisRelationField) { - if (CollectionUtils.isEmpty(thatModelList) - || CollectionUtils.isEmpty(thisModelList)) { - return; - } - // 这里不做任何空值判断,从而让配置错误在调试期间即可抛出 - Field thisTargetField = ReflectUtil.getField(thisClazz, thisRelationField); - RelationOneToOne r = thisTargetField.getAnnotation(RelationOneToOne.class); - Field masterIdField = ReflectUtil.getField(thisClazz, r.masterIdField()); - Class thatClass = r.slaveModelClass(); - Field slaveIdField = ReflectUtil.getField(thatClass, r.slaveIdField()); - Map thatMap = new HashMap<>(20); - thatModelList.forEach(thatModel -> { - Object id = ReflectUtil.getFieldValue(thatModel, slaveIdField); - thatMap.put(id, thatModel); - }); - // 判断放在循环的外部,提升一点儿效率。 - if (thisTargetField.getType().equals(Map.class)) { - thisModelList.forEach(thisModel -> { - Object id = ReflectUtil.getFieldValue(thisModel, masterIdField); - R thatModel = thatMap.get(id); - if (thatModel != null) { - ReflectUtil.setFieldValue(thisModel, thisTargetField, BeanUtil.beanToMap(thatModel)); - } - }); - } else { - thisModelList.forEach(thisModel -> { - Object id = ReflectUtil.getFieldValue(thisModel, masterIdField); - R thatModel = thatMap.get(id); - if (thatModel != null) { - ReflectUtil.setFieldValue(thisModel, thisTargetField, thatModel); - } - }); - } - } - - /** - * 根据主对象和关联对象各自的关联Id函数,将主对象列表和关联对象列表中的数据关联到一起,并将关联对象 - * 设置到主对象的指定关联字段中。 - * NOTE: 用于主对象关联字段中,没有包含RelationOneToOne注解的场景。 - * - * @param thisClazz 主对象的Class对象。 - * @param thisModelList 主对象列表。 - * @param thisIdGetterFunc 主对象Id的Getter函数。 - * @param thatModelList 关联对象列表。 - * @param thatIdGetterFunc 关联对象Id的Getter函数。 - * @param thisRelationField 主对象中保存被关联对象的字段名称。 - * @param 主表对象类型。 - * @param 从表对象类型。 - */ - public static void makeOneToOneRelation( - Class thisClazz, - List thisModelList, - Function thisIdGetterFunc, - List thatModelList, - Function thatIdGetterFunc, - String thisRelationField) { - makeOneToOneRelation(thisClazz, thisModelList, - thisIdGetterFunc, thatModelList, thatIdGetterFunc, thisRelationField, false); - } - - /** - * 根据主对象和关联对象各自的关联Id函数,将主对象列表和关联对象列表中的数据关联到一起,并将关联对象 - * 设置到主对象的指定关联字段中。 - * NOTE: 用于主对象关联字段中,没有包含RelationOneToOne注解的场景。 - * - * @param thisClazz 主对象的Class对象。 - * @param thisModelList 主对象列表。 - * @param thisIdGetterFunc 主对象Id的Getter函数。 - * @param thatModelList 关联对象列表。 - * @param thatIdGetterFunc 关联对象Id的Getter函数。 - * @param thisRelationField 主对象中保存被关联对象的字段名称。 - * @param orderByThatList 如果为true,则按照ThatModelList的顺序输出。同时thisModelList被排序后的新列表替换。 - * @param 主表对象类型。 - * @param 从表对象类型。 - */ - public static void makeOneToOneRelation( - Class thisClazz, - List thisModelList, - Function thisIdGetterFunc, - List thatModelList, - Function thatIdGetterFunc, - String thisRelationField, - boolean orderByThatList) { - if (CollectionUtils.isEmpty(thisModelList)) { - return; - } - Field thisTargetField = ReflectUtil.getField(thisClazz, thisRelationField); - boolean isMap = thisTargetField.getType().equals(Map.class); - if (orderByThatList) { - List newThisModelList = new LinkedList<>(); - Map thisModelMap = - thisModelList.stream().collect(Collectors.toMap(thisIdGetterFunc, c -> c)); - thatModelList.forEach(thatModel -> { - Object thatId = thatIdGetterFunc.apply(thatModel); - T thisModel = thisModelMap.get(thatId); - if (thisModel != null) { - ReflectUtil.setFieldValue(thisModel, thisTargetField, normalize(isMap, thatModel)); - newThisModelList.add(thisModel); - } - }); - thisModelList.clear(); - thisModelList.addAll(newThisModelList); - } else { - Map thatMadelMap = - thatModelList.stream().collect(Collectors.toMap(thatIdGetterFunc, c -> c)); - thisModelList.forEach(thisModel -> { - Object thisId = thisIdGetterFunc.apply(thisModel); - R thatModel = thatMadelMap.get(thisId); - if (thatModel != null) { - ReflectUtil.setFieldValue(thisModel, thisTargetField, normalize(isMap, thatModel)); - } - }); - } - } - - /** - * 在主Model类型中,根据thisRelationField字段的RelationOneToMany注解参数,将被关联对象列表thatModelList中的数据, - * 逐个关联到thisModelList每一个元素的thisRelationField字段中。 - * - * @param thisClazz 主对象的Class对象。 - * @param thisModelList 主对象列表。 - * @param thatModelList 一对多关联对象列表。 - * @param thisRelationField 主表对象中保存被关联对象的字段名称。 - * @param 主表对象类型。 - * @param 从表对象类型。 - */ - public static void makeOneToManyRelation( - Class thisClazz, List thisModelList, List thatModelList, String thisRelationField) { - if (CollectionUtils.isEmpty(thatModelList) || CollectionUtils.isEmpty(thisModelList)) { - return; - } - // 这里不做任何空值判断,从而让配置错误在调试期间即可抛出 - Field thisTargetField = ReflectUtil.getField(thisClazz, thisRelationField); - RelationOneToMany r = thisTargetField.getAnnotation(RelationOneToMany.class); - Field masterIdField = ReflectUtil.getField(thisClazz, r.masterIdField()); - Class thatClass = r.slaveModelClass(); - Field slaveIdField = ReflectUtil.getField(thatClass, r.slaveIdField()); - Map> thatMap = new HashMap<>(20); - thatModelList.forEach(thatModel -> { - Object id = ReflectUtil.getFieldValue(thatModel, slaveIdField); - List thatModelSubList = thatMap.computeIfAbsent(id, k -> new LinkedList<>()); - thatModelSubList.add(thatModel); - }); - thisModelList.forEach(thisModel -> { - Object id = ReflectUtil.getFieldValue(thisModel, masterIdField); - List thatModel = thatMap.get(id); - if (thatModel != null) { - ReflectUtil.setFieldValue(thisModel, thisTargetField, thatModel); - } - }); - } - - private static Object normalize(boolean isMap, M model) { - return isMap ? BeanUtil.beanToMap(model) : model; - } - - /** - * 获取上传字段的存储信息。 - * - * @param modelClass model的class对象。 - * @param uploadFieldName 上传字段名。 - * @param model的类型。 - * @return 字段的上传存储信息对象。该值始终不会返回null。 - */ - public static UploadStoreInfo getUploadStoreInfo(Class modelClass, String uploadFieldName) { - UploadStoreInfo uploadStoreInfo = new UploadStoreInfo(); - Field uploadField = ReflectUtil.getField(modelClass, uploadFieldName); - if (uploadField == null) { - throw new UnsupportedOperationException("The Field [" - + uploadFieldName + "] doesn't exist in Model [" + modelClass.getSimpleName() + "]."); - } - uploadStoreInfo.setSupportUpload(false); - UploadFlagColumn anno = uploadField.getAnnotation(UploadFlagColumn.class); - if (anno != null) { - uploadStoreInfo.setSupportUpload(true); - uploadStoreInfo.setStoreType(anno.storeType()); - } - return uploadStoreInfo; - } - - /** - * 在插入实体对象数据之前,可以调用该方法,初始化通用字段的数据。 - * - * @param data 实体对象。 - * @param 实体对象类型。 - */ - public static void fillCommonsForInsert(M data) { - try { - Field createdByField = ReflectUtil.getField(data.getClass(), CREATE_USER_ID_FIELD_NAME); - if (createdByField != null) { - ReflectUtil.setAccessible(createdByField); - createdByField.set(data, TokenData.takeFromRequest().getUserId()); - } - Field createTimeField = ReflectUtil.getField(data.getClass(), CREATE_TIME_FIELD_NAME); - if (createTimeField != null) { - ReflectUtil.setAccessible(createTimeField); - createTimeField.set(data, new Date()); - } - Field updatedByField = ReflectUtil.getField(data.getClass(), UPDATE_USER_ID_FIELD_NAME); - if (updatedByField != null) { - ReflectUtil.setAccessible(updatedByField); - updatedByField.set(data, TokenData.takeFromRequest().getUserId()); - } - Field updateTimeField = ReflectUtil.getField(data.getClass(), UPDATE_TIME_FIELD_NAME); - if (updateTimeField != null) { - ReflectUtil.setAccessible(updateTimeField); - updateTimeField.set(data, new Date()); - } - } catch (IllegalAccessException e) { - throw new MyRuntimeException(e); - } - } - - /** - * 在更新实体对象数据之前,可以调用该方法,更新通用字段的数据。 - * - * @param data 实体对象。 - * @param originalData 原有实体对象。 - * @param 实体对象类型。 - */ - public static void fillCommonsForUpdate(M data, M originalData) { - try { - Object createdByValue = ReflectUtil.getFieldValue(originalData, CREATE_USER_ID_FIELD_NAME); - if (createdByValue != null) { - ReflectUtil.setFieldValue(data, CREATE_USER_ID_FIELD_NAME, createdByValue); - } - Object createTimeValue = ReflectUtil.getFieldValue(originalData, CREATE_TIME_FIELD_NAME); - if (createTimeValue != null) { - ReflectUtil.setFieldValue(data, CREATE_TIME_FIELD_NAME, createTimeValue); - } - Field updatedByField = ReflectUtil.getField(data.getClass(), UPDATE_USER_ID_FIELD_NAME); - if (updatedByField != null) { - ReflectUtil.setAccessible(updatedByField); - updatedByField.set(data, TokenData.takeFromRequest().getUserId()); - } - Field updateTimeField = ReflectUtil.getField(data.getClass(), UPDATE_TIME_FIELD_NAME); - if (updateTimeField != null) { - ReflectUtil.setAccessible(updateTimeField); - updateTimeField.set(data, new Date()); - } - } catch (IllegalAccessException e) { - throw new MyRuntimeException(e); - } - } - - /** - * 为实体对象字段设置缺省值。如果data对象中指定字段的值为NULL,则设置缺省值,否则跳过。 - * @param data 实体对象。 - * @param fieldName 实体对象字段名。 - * @param defaultValue 缺省值。 - * @param 实体对象类型。 - * @param 缺省值类型。 - */ - public static void setDefaultValue(M data, String fieldName, V defaultValue) { - Object v = ReflectUtil.getFieldValue(data, fieldName); - if (v == null) { - ReflectUtil.setFieldValue(data, fieldName, defaultValue); - } - } - - /** - * 获取当前数据对象中,所有上传文件字段的数据,并将上传后的文件名存到集合中并返回。 - * - * @param data 数据对象。 - * @param clazz 数据对象的Class类型。 - * @param 数据对象类型。 - * @return 当前数据对象中,所有上传文件字段中,文件名属性的集合。 - */ - public static Set extractDownloadFileName(M data, Class clazz) { - Set resultSet = new HashSet<>(); - Field[] fields = ReflectUtil.getFields(clazz); - for (Field field : fields) { - if (field.isAnnotationPresent(UploadFlagColumn.class)) { - String v = (String) ReflectUtil.getFieldValue(data, field); - List fileInfoList = JSON.parseArray(v, UploadResponseInfo.class); - if (CollectionUtils.isNotEmpty(fileInfoList)) { - fileInfoList.forEach(fileInfo -> resultSet.add(fileInfo.getFilename())); - } - } - } - return resultSet; - } - - /** - * 获取当前数据对象列表中,所有上传文件字段的数据,并将上传后的文件名存到集合中并返回。 - * - * @param dataList 数据对象。 - * @param clazz 数据对象的Class类型。 - * @param 数据对象类型。 - * @return 当前数据对象中,所有上传文件字段中,文件名属性的集合。 - */ - public static Set extractDownloadFileName(List dataList, Class clazz) { - if (CollectionUtils.isEmpty(dataList)) { - return null; - } - Set resultSet = new HashSet<>(); - dataList.forEach(data -> resultSet.addAll(extractDownloadFileName(data, clazz))); - return resultSet; - } - - /** - * 私有构造函数,明确标识该常量类的作用。 - */ - private MyModelUtil() { - } -} diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/util/MyPageUtil.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/util/MyPageUtil.java deleted file mode 100644 index 38df808c..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/util/MyPageUtil.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.orangeforms.common.core.util; - -import cn.jimmyshi.beanquery.BeanQuery; -import com.alibaba.fastjson.JSONObject; -import com.github.pagehelper.Page; -import org.apache.commons.collections4.CollectionUtils; -import com.orangeforms.common.core.base.mapper.BaseModelMapper; -import com.orangeforms.common.core.object.MyPageData; -import com.orangeforms.common.core.object.Tuple2; - -import java.util.List; - -/** - * 生成带有分页信息的数据列表 - * - * @author Jerry - * @date 2021-06-06 - */ -public class MyPageUtil { - - private static final String DATA_LIST_LITERAL = "dataList"; - private static final String TOTAL_COUNT_LITERAL = "totalCount"; - - /** - * 用户构建带有分页信息的数据列表。 - * - * @param dataList 数据列表,该参数必须是调用PageMethod.startPage之后,立即执行mybatis查询操作的结果集。 - * @param includeFields 结果集中需要返回到前端的字段,多个字段之间逗号分隔。 - * @return 返回只是包含includeFields字段的数据列表,以及结果集TotalCount。 - */ - public static JSONObject makeResponseData(List dataList, String includeFields) { - JSONObject pageData = new JSONObject(); - pageData.put(DATA_LIST_LITERAL, BeanQuery.select(includeFields).from(dataList).execute()); - if (dataList instanceof Page) { - pageData.put(TOTAL_COUNT_LITERAL, ((Page)dataList).getTotal()); - } - return pageData; - } - - /** - * 用户构建带有分页信息的数据列表。 - * - * @param dataList 数据列表,该参数必须是调用PageMethod.startPage之后,立即执行mybatis查询操作的结果集。 - * @return 返回分页数据对象。 - */ - public static MyPageData makeResponseData(List dataList) { - MyPageData pageData = new MyPageData<>(); - pageData.setDataList(dataList); - if (dataList instanceof Page) { - pageData.setTotalCount(((Page)dataList).getTotal()); - } - return pageData; - } - - /** - * 用户构建带有分页信息的数据列表。 - * - * @param dataList 数据列表,该参数必须是调用PageMethod.startPage之后,立即执行mybatis查询操作的结果集。 - * @param totalCount 总数量。 - * @return 返回分页数据对象。 - */ - public static MyPageData makeResponseData(List dataList, Long totalCount) { - MyPageData pageData = new MyPageData<>(); - pageData.setDataList(dataList); - if (totalCount != null) { - pageData.setTotalCount(totalCount); - } - return pageData; - } - - /** - * 用户构建带有分页信息的数据列表。 - * - * @param dataList 实体对象数据列表。 - * @param modelMapper 实体对象到DomainVO对象的数据映射器。 - * @param DomainVO对象类型。 - * @param 实体对象类型。 - * @return 返回分页数据对象。 - */ - public static MyPageData makeResponseData(List dataList, BaseModelMapper modelMapper) { - long totalCount = 0L; - if (CollectionUtils.isEmpty(dataList)) { - // 这里需要构建分页数据对象,统一前端数据格式 - return MyPageData.emptyPageData(); - } - if (dataList instanceof Page) { - totalCount = ((Page) dataList).getTotal(); - } - return MyPageUtil.makeResponseData(modelMapper.fromModelList(dataList), totalCount); - } - - /** - * 用户构建带有分页信息的数据列表。 - * - * @param responseData 第一个数据时数据列表,第二个是列表数量。 - * @param 源数据类型。 - * @return 返回分页数据对象。 - */ - public static MyPageData makeResponseData(Tuple2, Long> responseData) { - return makeResponseData(responseData.getFirst(), responseData.getSecond()); - } - - /** - * 私有构造函数,明确标识该常量类的作用。 - */ - private MyPageUtil() { - } -} diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/util/RedisKeyUtil.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/util/RedisKeyUtil.java deleted file mode 100644 index 8a521474..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/util/RedisKeyUtil.java +++ /dev/null @@ -1,86 +0,0 @@ -package com.orangeforms.common.core.util; - -/** - * Redis 键生成工具类。 - * - * @author Jerry - * @date 2021-06-06 - */ -public class RedisKeyUtil { - - /** - * 获取通用的session缓存的键前缀。 - * - * @return session缓存的键前缀。 - */ - public static String getSessionIdPrefix() { - return "SESSIONID__"; - } - - /** - * 获取指定用户Id的session缓存的键前缀。 - * - * @param loginName 指定的用户登录名。 - * @return session缓存的键前缀。 - */ - public static String getSessionIdPrefix(String loginName) { - return "SESSIONID__" + loginName + "_"; - } - - /** - * 获取指定用户Id和登录设备类型的session缓存的键前缀。 - * - * @param loginName 指定的用户登录名。 - * @param deviceType 设备类型。 - * @return session缓存的键前缀。 - */ - public static String getSessionIdPrefix(String loginName, int deviceType) { - return "SESSIONID__" + loginName + "_" + deviceType + "_"; - } - - /** - * 计算SessionId返回存储于Redis中的键。 - * - * @param sessionId 会话Id。 - * @return 会话存储于Redis中的键值。 - */ - public static String makeSessionIdKey(String sessionId) { - return "SESSIONID__" + sessionId; - } - - /** - * 计算SessionId关联的权限数据存储于Redis中的键。 - * - * @param sessionId 会话Id。 - * @return 会话关联的权限数据存储于Redis中的键值。 - */ - public static String makeSessionPermIdKey(String sessionId) { - return "PERM__" + sessionId; - } - - /** - * 计算SessionId关联的数据权限数据存储于Redis中的键。 - * - * @param sessionId 会话Id。 - * @return 会话关联的数据权限数据存储于Redis中的键值。 - */ - public static String makeSessionDataPermIdKey(String sessionId) { - return "DATA_PERM__" + sessionId; - } - - /** - * 计算在线表对象缓存在Redis中的键值。 - * - * @param tableId 在线表主键Id。 - * @return 会话关联的数据权限数据存储于Redis中的键值。 - */ - public static String makeOnlineTableKey(Long tableId) { - return "ONLINE_TABLE_" + tableId; - } - - /** - * 私有构造函数,明确标识该常量类的作用。 - */ - private RedisKeyUtil() { - } -} diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/util/RsaUtil.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/util/RsaUtil.java deleted file mode 100644 index 44eb2540..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/util/RsaUtil.java +++ /dev/null @@ -1,115 +0,0 @@ -package com.orangeforms.common.core.util; - -import javax.crypto.Cipher; -import java.nio.charset.StandardCharsets; -import java.security.*; -import java.security.interfaces.RSAPrivateKey; -import java.security.interfaces.RSAPublicKey; -import java.security.spec.PKCS8EncodedKeySpec; -import java.security.spec.X509EncodedKeySpec; -import java.util.Base64; -import java.util.HashMap; -import java.util.Map; - -/** - * Java RSA 加密工具类。 - * - * @author Jerry - * @date 2021-06-06 - */ -public class RsaUtil { - - /** - * 密钥长度 于原文长度对应 以及越长速度越慢 - */ - private static final int KEY_SIZE = 1024; - /** - * 用于封装随机产生的公钥与私钥 - */ - private static final Map KEY_MAP = new HashMap<>(); - - /** - * 随机生成密钥对。 - */ - public static void genKeyPair() throws NoSuchAlgorithmException { - // KeyPairGenerator类用于生成公钥和私钥对,基于RSA算法生成对象 - KeyPairGenerator keyPairGen = KeyPairGenerator.getInstance("RSA"); - // 初始化密钥对生成器 - keyPairGen.initialize(KEY_SIZE, new SecureRandom()); - // 生成一个密钥对,保存在keyPair中 - KeyPair keyPair = keyPairGen.generateKeyPair(); - // 得到私钥 - RSAPrivateKey privateKey = (RSAPrivateKey) keyPair.getPrivate(); - // 得到公钥 - RSAPublicKey publicKey = (RSAPublicKey) keyPair.getPublic(); - String publicKeyString = Base64.getEncoder().encodeToString(publicKey.getEncoded()); - // 得到私钥字符串 - String privateKeyString = Base64.getEncoder().encodeToString(privateKey.getEncoded()); - // 将公钥和私钥保存到Map - // 0表示公钥 - KEY_MAP.put(0, publicKeyString); - // 1表示私钥 - KEY_MAP.put(1, privateKeyString); - } - - /** - * RSA公钥加密。 - * - * @param str 加密字符串 - * @param publicKey 公钥 - * @return 密文 - * @throws Exception 加密过程中的异常信息 - */ - public static String encrypt(String str, String publicKey) throws Exception { - // base64编码的公钥 - byte[] decoded = Base64.getDecoder().decode(publicKey); - RSAPublicKey pubKey = (RSAPublicKey) KeyFactory.getInstance("RSA").generatePublic(new X509EncodedKeySpec(decoded)); - // RSA加密。后面这个更安全,但是SonarQube始终report安全漏洞。"RSA/ECB/PKCS1Padding" - // 而浏览器自带的Javascript加密功能,目前safari不支持,而且用的人也不太多。所以暂时都不考虑了。 - Cipher cipher = Cipher.getInstance("RSA"); - cipher.init(Cipher.ENCRYPT_MODE, pubKey); - return Base64.getEncoder().encodeToString(cipher.doFinal(str.getBytes(StandardCharsets.UTF_8))); - } - - /** - * RSA私钥解密。 - * - * @param str 加密字符串 - * @param privateKey 私钥 - * @return 明文 - * @throws Exception 解密过程中的异常信息 - */ - public static String decrypt(String str, String privateKey) throws Exception { - // 64位解码加密后的字符串 - byte[] inputByte = Base64.getDecoder().decode(str); - // base64编码的私钥 - byte[] decoded = Base64.getDecoder().decode(privateKey); - RSAPrivateKey priKey = (RSAPrivateKey) KeyFactory.getInstance("RSA").generatePrivate(new PKCS8EncodedKeySpec(decoded)); - // RSA解密 - Cipher cipher = Cipher.getInstance("RSA"); - cipher.init(Cipher.DECRYPT_MODE, priKey); - return new String(cipher.doFinal(inputByte)); - } - - public static void main(String[] args) throws Exception { - long temp = System.currentTimeMillis(); - // 生成公钥和私钥 - genKeyPair(); - // 加密字符串 - System.out.println("公钥:" + KEY_MAP.get(0)); - System.out.println("私钥:" + KEY_MAP.get(1)); - System.out.println("生成密钥消耗时间:" + (System.currentTimeMillis() - temp) / 1000.0 + "秒"); - System.out.println("生成后的公钥前端使用!"); - System.out.println("生成后的私钥后台使用!"); - String message = "RSA测试ABCD~!@#$"; - System.out.println("原文:" + message); - temp = System.currentTimeMillis(); - String messageEn = encrypt(message, KEY_MAP.get(0)); - System.out.println("密文:" + messageEn); - System.out.println("加密消耗时间:" + (System.currentTimeMillis() - temp) / 1000.0 + "秒"); - temp = System.currentTimeMillis(); - String messageDe = decrypt(messageEn, KEY_MAP.get(1)); - System.out.println("解密:" + messageDe); - System.out.println("解密消耗时间:" + (System.currentTimeMillis() - temp) / 1000.0 + "秒"); - } -} \ No newline at end of file diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/util/TreeNode.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/util/TreeNode.java deleted file mode 100644 index b49eb458..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/util/TreeNode.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.orangeforms.common.core.util; - -import lombok.Data; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.function.Function; - -/** - * 将列表结构组建为树结构的工具类。 - * - * @param 对象类型。 - * @param 节点之间关联键的类型。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Data -public class TreeNode { - - private K id; - private K parentId; - private T data; - private List> childList = new ArrayList<>(); - - /** - * 将列表结构组建为树结构的工具方法。 - * - * @param dataList 数据列表结构。 - * @param idFunc 获取关联id的函数对象。 - * @param parentIdFunc 获取关联ParentId的函数对象。 - * @param root 根节点。 - * @param 数据对象类型。 - * @param 节点之间关联键的类型。 - * @return 源数据对象的树结构存储。 - */ - public static List> build( - List dataList, Function idFunc, Function parentIdFunc, K root) { - List> treeNodeList = new ArrayList<>(); - for (T data : dataList) { - if (parentIdFunc.apply(data).equals(idFunc.apply(data))) { - continue; - } - TreeNode dataNode = new TreeNode<>(); - dataNode.setId(idFunc.apply(data)); - dataNode.setParentId(parentIdFunc.apply(data)); - dataNode.setData(data); - treeNodeList.add(dataNode); - } - return root == null ? toBuildTreeWithoutRoot(treeNodeList) : toBuildTree(treeNodeList, root); - } - - private static List> toBuildTreeWithoutRoot(List> treeNodes) { - Map> treeNodeMap = new HashMap<>(treeNodes.size()); - for (TreeNode treeNode : treeNodes) { - treeNodeMap.put(treeNode.id, treeNode); - } - List> treeNodeList = new ArrayList<>(); - for (TreeNode treeNode : treeNodes) { - TreeNode parentNode = treeNodeMap.get(treeNode.getParentId()); - if (parentNode == null) { - treeNodeList.add(treeNode); - } else { - parentNode.add(treeNode); - } - } - return treeNodeList; - } - - private static List> toBuildTree(List> treeNodes, K root) { - List> treeNodeList = new ArrayList<>(); - for (TreeNode treeNode : treeNodes) { - if (root.equals(treeNode.getParentId())) { - treeNodeList.add(treeNode); - } - for (TreeNode it : treeNodes) { - if (it.getParentId() == treeNode.getId()) { - if (treeNode.getChildList() == null) { - treeNode.setChildList(new ArrayList<>()); - } - treeNode.add(it); - } - } - } - return treeNodeList; - } - - private void add(TreeNode node) { - childList.add(node); - } -} diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/validator/AddGroup.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/validator/AddGroup.java deleted file mode 100644 index 2fe3be5f..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/validator/AddGroup.java +++ /dev/null @@ -1,10 +0,0 @@ -package com.orangeforms.common.core.validator; - -/** - * 数据增加的验证分组。通常用于数据新增场景。 - * - * @author Jerry - * @date 2021-06-06 - */ -public interface AddGroup { -} diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/validator/ConstDictRef.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/validator/ConstDictRef.java deleted file mode 100644 index 19eb276f..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/validator/ConstDictRef.java +++ /dev/null @@ -1,48 +0,0 @@ -package com.orangeforms.common.core.validator; - -import javax.validation.Constraint; -import javax.validation.Payload; -import java.lang.annotation.ElementType; -import java.lang.annotation.Retention; -import java.lang.annotation.RetentionPolicy; -import java.lang.annotation.Target; - -/** - * 定义在Model对象中,标注字段值引用自指定的常量字典,和ConstDictRefValidator对象配合完成数据验证。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Target({ElementType.FIELD}) -@Retention(RetentionPolicy.RUNTIME) -@Constraint(validatedBy = ConstDictValidator.class) -public @interface ConstDictRef { - - /** - * 引用的常量字典对象,该对象必须包含isValid的静态方法。 - * - * @return 最大长度。 - */ - Class constDictClass(); - - /** - * 超过边界后的错误消息提示。 - * - * @return 错误提示。 - */ - String message() default "无效的字典引用值!"; - - /** - * 验证分组。 - * - * @return 验证分组。 - */ - Class[] groups() default {}; - - /** - * 载荷对象类型。 - * - * @return 载荷对象。 - */ - Class[] payload() default {}; -} diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/validator/ConstDictValidator.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/validator/ConstDictValidator.java deleted file mode 100644 index 59c73f1b..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/validator/ConstDictValidator.java +++ /dev/null @@ -1,33 +0,0 @@ -package com.orangeforms.common.core.validator; - -import cn.hutool.core.util.ReflectUtil; - -import javax.validation.ConstraintValidator; -import javax.validation.ConstraintValidatorContext; -import java.lang.reflect.Method; - -/** - * 数据字段自定义验证,用于验证Model中字符串字段的最大长度和最小长度。 - * - * @author Jerry - * @date 2021-06-06 - */ -public class ConstDictValidator implements ConstraintValidator { - - private ConstDictRef constDictRef; - - @Override - public void initialize(ConstDictRef constDictRef) { - this.constDictRef = constDictRef; - } - - @Override - public boolean isValid(Object s, ConstraintValidatorContext constraintValidatorContext) { - if (s == null) { - return true; - } - Method method = - ReflectUtil.getMethodByName(constDictRef.constDictClass(), "isValid"); - return ReflectUtil.invokeStatic(method, s); - } -} diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/validator/TextLength.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/validator/TextLength.java deleted file mode 100644 index a6a1a3db..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/validator/TextLength.java +++ /dev/null @@ -1,55 +0,0 @@ -package com.orangeforms.common.core.validator; - -import javax.validation.Constraint; -import javax.validation.Payload; -import java.lang.annotation.ElementType; -import java.lang.annotation.Retention; -import java.lang.annotation.RetentionPolicy; -import java.lang.annotation.Target; - -/** - * 定义在Model或Dto对象中,UTF-8编码的字符串字段长度的上限和下限,和TextLengthValidator对象配合完成数据验证。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Target({ElementType.FIELD}) -@Retention(RetentionPolicy.RUNTIME) -@Constraint(validatedBy = TextLengthValidator.class) -public @interface TextLength { - - /** - * 字符串字段的最小长度。 - * - * @return 最小长度。 - */ - int min() default 0; - - /** - * 字符串字段的最大长度。 - * - * @return 最大长度。 - */ - int max() default Integer.MAX_VALUE; - - /** - * 超过边界后的错误消息提示。 - * - * @return 错误提示。 - */ - String message() default "字段长度超过最大字节数!"; - - /** - * 验证分组。 - * - * @return 验证分组。 - */ - Class[] groups() default { }; - - /** - * 载荷对象类型。 - * - * @return 载荷对象。 - */ - Class[] payload() default { }; -} diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/validator/TextLengthValidator.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/validator/TextLengthValidator.java deleted file mode 100644 index ecaac4ed..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/validator/TextLengthValidator.java +++ /dev/null @@ -1,39 +0,0 @@ -package com.orangeforms.common.core.validator; - -import org.apache.commons.lang3.CharUtils; - -import javax.validation.ConstraintValidator; -import javax.validation.ConstraintValidatorContext; - -/** - * 数据字段自定义验证,用于验证Model中UTF-8编码的字符串字段的最大长度和最小长度。 - * - * @author Jerry - * @date 2021-06-06 - */ -public class TextLengthValidator implements ConstraintValidator { - - private TextLength textLength; - - @Override - public void initialize(TextLength textLength) { - this.textLength = textLength; - } - - @Override - public boolean isValid(String s, ConstraintValidatorContext constraintValidatorContext) { - if (s == null) { - return true; - } - int length = 0; - for (int i = 0; i < s.length(); i++) { - char c = s.charAt(i); - if (CharUtils.isAscii(c)) { - ++length; - } else { - length += 2; - } - } - return length >= textLength.min() && length <= textLength.max(); - } -} diff --git a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/validator/UpdateGroup.java b/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/validator/UpdateGroup.java deleted file mode 100644 index 39871d48..00000000 --- a/images/orange-demo-activiti-service/common/common-core/src/main/java/com/orangeforms/common/core/validator/UpdateGroup.java +++ /dev/null @@ -1,11 +0,0 @@ -package com.orangeforms.common.core.validator; - -/** - * 数据修改的验证分组。通常用于数据更新的场景。 - * - * @author Jerry - * @date 2021-06-06 - */ -public interface UpdateGroup { - -} diff --git a/images/orange-demo-activiti-service/common/common-datafilter/pom.xml b/images/orange-demo-activiti-service/common/common-datafilter/pom.xml deleted file mode 100644 index e791d2f7..00000000 --- a/images/orange-demo-activiti-service/common/common-datafilter/pom.xml +++ /dev/null @@ -1,29 +0,0 @@ - - - - common - com.orangeforms - 1.0.0 - - 4.0.0 - - common-datafilter - 1.0.0 - common-datafilter - jar - - - - com.orangeforms - common-core - 1.0.0 - - - com.orangeforms - common-redis - 1.0.0 - - - \ No newline at end of file diff --git a/images/orange-demo-activiti-service/common/common-datafilter/src/main/java/com/orangeforms/common/datafilter/aop/DisableDataFilterAspect.java b/images/orange-demo-activiti-service/common/common-datafilter/src/main/java/com/orangeforms/common/datafilter/aop/DisableDataFilterAspect.java deleted file mode 100644 index 2e08d057..00000000 --- a/images/orange-demo-activiti-service/common/common-datafilter/src/main/java/com/orangeforms/common/datafilter/aop/DisableDataFilterAspect.java +++ /dev/null @@ -1,41 +0,0 @@ -package com.orangeforms.common.datafilter.aop; - -import com.orangeforms.common.core.object.GlobalThreadLocal; -import lombok.extern.slf4j.Slf4j; -import org.aspectj.lang.ProceedingJoinPoint; -import org.aspectj.lang.annotation.Around; -import org.aspectj.lang.annotation.Aspect; -import org.aspectj.lang.annotation.Pointcut; -import org.springframework.core.annotation.Order; -import org.springframework.stereotype.Component; - -/** - * 禁用Mybatis拦截器数据过滤的AOP处理类。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Aspect -@Component -@Order(1) -@Slf4j -public class DisableDataFilterAspect { - - /** - * 所有标记了DisableDataFilter注解的方法。 - */ - @Pointcut("@annotation(com.orangeforms.common.core.annotation.DisableDataFilter)") - public void disableDataFilterPointCut() { - // 空注释,避免sonar警告 - } - - @Around("disableDataFilterPointCut()") - public Object around(ProceedingJoinPoint point) throws Throwable { - boolean dataFilterEnabled = GlobalThreadLocal.setDataFilter(false); - try { - return point.proceed(); - } finally { - GlobalThreadLocal.setDataFilter(dataFilterEnabled); - } - } -} diff --git a/images/orange-demo-activiti-service/common/common-datafilter/src/main/java/com/orangeforms/common/datafilter/config/DataFilterAutoConfig.java b/images/orange-demo-activiti-service/common/common-datafilter/src/main/java/com/orangeforms/common/datafilter/config/DataFilterAutoConfig.java deleted file mode 100644 index 7f56e033..00000000 --- a/images/orange-demo-activiti-service/common/common-datafilter/src/main/java/com/orangeforms/common/datafilter/config/DataFilterAutoConfig.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.orangeforms.common.datafilter.config; - -import org.springframework.boot.context.properties.EnableConfigurationProperties; - -/** - * common-datafilter模块的自动配置引导类。 - * - * @author Jerry - * @date 2021-06-06 - */ -@EnableConfigurationProperties({DataFilterProperties.class}) -public class DataFilterAutoConfig { -} diff --git a/images/orange-demo-activiti-service/common/common-datafilter/src/main/java/com/orangeforms/common/datafilter/config/DataFilterProperties.java b/images/orange-demo-activiti-service/common/common-datafilter/src/main/java/com/orangeforms/common/datafilter/config/DataFilterProperties.java deleted file mode 100644 index 68b4316a..00000000 --- a/images/orange-demo-activiti-service/common/common-datafilter/src/main/java/com/orangeforms/common/datafilter/config/DataFilterProperties.java +++ /dev/null @@ -1,44 +0,0 @@ -package com.orangeforms.common.datafilter.config; - -import lombok.Data; -import org.springframework.beans.factory.annotation.Value; -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * common-datafilter模块的配置类。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Data -@ConfigurationProperties(prefix = "datafilter") -public class DataFilterProperties { - - /** - * 是否启用租户过滤。 - */ - @Value("${datafilter.tenant.enabled:false}") - private Boolean enabledTenantFilter; - - /** - * 是否启动数据权限过滤。 - */ - @Value("${datafilter.dataperm.enabled:false}") - private Boolean enabledDataPermFilter; - - /** - * 部门关联表的表名前缀,如zz_。该值主要用在MybatisDataFilterInterceptor拦截器中, - * 用于拼接数据权限过滤的SQL语句。 - */ - @Value("${datafilter.dataperm.deptRelationTablePrefix:}") - private String deptRelationTablePrefix; - - /** - * 该值为true的时候,在进行数据权限过滤时,会加上表名,如:zz_sys_user.dept_id = xxx。 - * 为false时,过滤条件不加表名,只是使用字段名,如:dept_id = xxx。该值目前主要适用于 - * Oracle分页SQL使用了子查询的场景。此场景下,由于子查询使用了别名,再在数据权限过滤条件中 - * 加上原有表名时,SQL语法会报错。 - */ - @Value("${datafilter.dataperm.addTableNamePrefix:true}") - private Boolean addTableNamePrefix; -} diff --git a/images/orange-demo-activiti-service/common/common-datafilter/src/main/java/com/orangeforms/common/datafilter/config/DataFilterWebMvcConfigurer.java b/images/orange-demo-activiti-service/common/common-datafilter/src/main/java/com/orangeforms/common/datafilter/config/DataFilterWebMvcConfigurer.java deleted file mode 100644 index f682f946..00000000 --- a/images/orange-demo-activiti-service/common/common-datafilter/src/main/java/com/orangeforms/common/datafilter/config/DataFilterWebMvcConfigurer.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.orangeforms.common.datafilter.config; - -import com.orangeforms.common.datafilter.interceptor.DataFilterInterceptor; -import org.springframework.context.annotation.Configuration; -import org.springframework.web.servlet.config.annotation.InterceptorRegistry; -import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; - -/** - * 添加数据过滤相关的拦截器。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Configuration -public class DataFilterWebMvcConfigurer implements WebMvcConfigurer { - - @Override - public void addInterceptors(InterceptorRegistry registry) { - registry.addInterceptor(new DataFilterInterceptor()).addPathPatterns("/**"); - } -} diff --git a/images/orange-demo-activiti-service/common/common-datafilter/src/main/java/com/orangeforms/common/datafilter/constant/DataPermRuleType.java b/images/orange-demo-activiti-service/common/common-datafilter/src/main/java/com/orangeforms/common/datafilter/constant/DataPermRuleType.java deleted file mode 100644 index 1a6fedb7..00000000 --- a/images/orange-demo-activiti-service/common/common-datafilter/src/main/java/com/orangeforms/common/datafilter/constant/DataPermRuleType.java +++ /dev/null @@ -1,69 +0,0 @@ -package com.orangeforms.common.datafilter.constant; - -import java.util.HashMap; -import java.util.Map; - -/** - * 数据权限规则类型常量类。 - * - * @author Jerry - * @date 2021-06-06 - */ -public final class DataPermRuleType { - - /** - * 查看全部。 - */ - public static final int TYPE_ALL = 0; - - /** - * 仅查看当前用户 - */ - public static final int TYPE_USER_ONLY = 1; - - /** - * 仅查看当前部门 - */ - public static final int TYPE_DEPT_ONLY = 2; - - /** - * 所在部门及子部门 - */ - public static final int TYPE_DEPT_AND_CHILD_DEPT = 3; - - /** - * 多部门及子部门 - */ - public static final int TYPE_MULTI_DEPT_AND_CHILD_DEPT = 4; - - /** - * 自定义部门列表 - */ - public static final int TYPE_CUSTOM_DEPT_LIST = 5; - - private static final Map DICT_MAP = new HashMap<>(6); - static { - DICT_MAP.put(0, "查看全部"); - DICT_MAP.put(1, "仅查看当前用户"); - DICT_MAP.put(2, "仅查看所在部门"); - DICT_MAP.put(3, "所在部门及子部门"); - DICT_MAP.put(4, "多部门及子部门"); - DICT_MAP.put(5, "自定义部门列表"); - } - - /** - * 判断参数是否为当前常量字典的合法取值范围。 - * - * @param value 待验证的参数值。 - * @return 合法返回true,否则false。 - */ - public static boolean isValid(Integer value) { - return value != null && DICT_MAP.containsKey(value); - } - - /** - * 私有构造函数,明确标识该常量类的作用。 - */ - private DataPermRuleType() { - } -} diff --git a/images/orange-demo-activiti-service/common/common-datafilter/src/main/java/com/orangeforms/common/datafilter/interceptor/DataFilterInterceptor.java b/images/orange-demo-activiti-service/common/common-datafilter/src/main/java/com/orangeforms/common/datafilter/interceptor/DataFilterInterceptor.java deleted file mode 100644 index af3f68cd..00000000 --- a/images/orange-demo-activiti-service/common/common-datafilter/src/main/java/com/orangeforms/common/datafilter/interceptor/DataFilterInterceptor.java +++ /dev/null @@ -1,42 +0,0 @@ -package com.orangeforms.common.datafilter.interceptor; - -import com.orangeforms.common.core.object.GlobalThreadLocal; -import lombok.extern.slf4j.Slf4j; -import org.springframework.web.servlet.HandlerInterceptor; -import org.springframework.web.servlet.ModelAndView; - -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; - -/** - * 主要用于初始化,通过Mybatis拦截器插件进行数据过滤的标记。 - * 在调用controller接口处理方法之前,必须强制将数据过滤标记设置为缺省值。 - * 这样可以避免使用当前线程在处理上一个请求时,未能正常清理的数据过滤标记值。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Slf4j -public class DataFilterInterceptor implements HandlerInterceptor { - - @Override - public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) - throws Exception { - // 每次进入Controller接口之前,均主动打开数据权限验证。 - // 可以避免该Servlet线程在处理之前的请求时异常退出,从而导致该状态数据没有被正常清除。 - GlobalThreadLocal.setDataFilter(true); - return true; - } - - @Override - public void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler, - ModelAndView modelAndView) throws Exception { - // 这里需要加注释,否则sonar不happy。 - } - - @Override - public void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex) - throws Exception { - GlobalThreadLocal.clearDataFilter(); - } -} diff --git a/images/orange-demo-activiti-service/common/common-datafilter/src/main/java/com/orangeforms/common/datafilter/interceptor/MybatisDataFilterInterceptor.java b/images/orange-demo-activiti-service/common/common-datafilter/src/main/java/com/orangeforms/common/datafilter/interceptor/MybatisDataFilterInterceptor.java deleted file mode 100644 index 1c8c5415..00000000 --- a/images/orange-demo-activiti-service/common/common-datafilter/src/main/java/com/orangeforms/common/datafilter/interceptor/MybatisDataFilterInterceptor.java +++ /dev/null @@ -1,471 +0,0 @@ -package com.orangeforms.common.datafilter.interceptor; - -import cn.hutool.core.collection.CollUtil; -import cn.hutool.core.util.ReflectUtil; -import com.alibaba.fastjson.JSON; -import com.baomidou.mybatisplus.annotation.TableName; -import com.orangeforms.common.core.base.dao.BaseDaoMapper; -import com.orangeforms.common.core.annotation.*; -import com.orangeforms.common.core.exception.NoDataPermException; -import com.orangeforms.common.core.object.GlobalThreadLocal; -import com.orangeforms.common.core.object.TokenData; -import com.orangeforms.common.core.util.ApplicationContextHolder; -import com.orangeforms.common.core.util.ContextUtil; -import com.orangeforms.common.core.util.MyModelUtil; -import com.orangeforms.common.core.util.RedisKeyUtil; -import com.orangeforms.common.datafilter.config.DataFilterProperties; -import com.orangeforms.common.datafilter.constant.DataPermRuleType; -import lombok.Data; -import lombok.extern.slf4j.Slf4j; -import net.sf.jsqlparser.JSQLParserException; -import net.sf.jsqlparser.expression.operators.conditional.AndExpression; -import net.sf.jsqlparser.parser.CCJSqlParserUtil; -import net.sf.jsqlparser.statement.Statement; -import net.sf.jsqlparser.statement.delete.Delete; -import net.sf.jsqlparser.statement.select.FromItem; -import net.sf.jsqlparser.statement.select.PlainSelect; -import net.sf.jsqlparser.statement.select.Select; -import net.sf.jsqlparser.statement.select.SubSelect; -import net.sf.jsqlparser.statement.update.Update; -import org.apache.commons.collections4.CollectionUtils; -import org.apache.commons.collections4.MapUtils; -import org.apache.commons.lang3.StringUtils; -import org.apache.ibatis.executor.statement.RoutingStatementHandler; -import org.apache.ibatis.executor.statement.StatementHandler; -import org.apache.ibatis.mapping.BoundSql; -import org.apache.ibatis.mapping.MappedStatement; -import org.apache.ibatis.mapping.SqlCommandType; -import org.apache.ibatis.plugin.*; -import org.redisson.api.RedissonClient; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Component; - -import java.lang.reflect.Field; -import java.lang.reflect.ParameterizedType; -import java.sql.Connection; -import java.util.*; - -/** - * Mybatis拦截器。目前用于数据权限的统一拦截和注入处理。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Intercepts({@Signature(type = StatementHandler.class, method = "prepare", args = {Connection.class, Integer.class})}) -@Slf4j -@Component -public class MybatisDataFilterInterceptor implements Interceptor { - - @Autowired - private RedissonClient redissonClient; - @Autowired - private DataFilterProperties properties; - - /** - * 对象缓存。由于Set是排序后的,因此在查找排除方法名称时效率更高。 - * 在应用服务启动的监听器中(LoadDataPermMapperListener),会调用当前对象的(loadMappersWithDataPerm)方法,加载缓存。 - */ - private final Map cachedDataPermMap = new HashMap<>(); - /** - * 租户租户对象缓存。 - */ - private final Map cachedTenantMap = new HashMap<>(); - - /** - * 预先加载与数据过滤相关的数据到缓存,该函数会在(LoadDataFilterInfoListener)监听器中调用。 - */ - public void loadInfoWithDataFilter() { - Map mapperMap = - ApplicationContextHolder.getApplicationContext().getBeansOfType(BaseDaoMapper.class); - for (BaseDaoMapper mapperProxy : mapperMap.values()) { - // 优先处理jdk的代理 - Object proxy = ReflectUtil.getFieldValue(mapperProxy, "h"); - // 如果不是jdk的代理,再看看cjlib的代理。 - if (proxy == null) { - proxy = ReflectUtil.getFieldValue(mapperProxy, "CGLIB$CALLBACK_0"); - } - Class mapperClass = (Class) ReflectUtil.getFieldValue(proxy, "mapperInterface"); - if (properties.getEnabledTenantFilter()) { - loadTenantFilterData(mapperClass); - } - if (properties.getEnabledDataPermFilter()) { - EnableDataPerm rule = mapperClass.getAnnotation(EnableDataPerm.class); - if (rule != null) { - loadDataPermFilterRules(mapperClass, rule); - } - } - } - } - - private void loadTenantFilterData(Class mapperClass) { - Class modelClass = (Class) ((ParameterizedType) - mapperClass.getGenericInterfaces()[0]).getActualTypeArguments()[0]; - Field[] fields = ReflectUtil.getFields(modelClass); - for (Field field : fields) { - if (field.getAnnotation(TenantFilterColumn.class) != null) { - ModelTenantInfo tenantInfo = new ModelTenantInfo(); - tenantInfo.setModelName(modelClass.getSimpleName()); - tenantInfo.setTableName(modelClass.getAnnotation(TableName.class).value()); - tenantInfo.setFieldName(field.getName()); - tenantInfo.setColumnName(MyModelUtil.mapToColumnName(field, modelClass)); - // 判断当前dao中是否包括不需要自动注入租户Id过滤的方法。 - DisableTenantFilter disableTenantFilter = mapperClass.getAnnotation(DisableTenantFilter.class); - if (disableTenantFilter != null) { - // 这里开始获取当前Mapper已经声明的的SqlId中,有哪些是需要排除在外的。 - // 排除在外的将不进行数据过滤。 - Set excludeMethodNameSet = new HashSet<>(); - for (String excludeName : disableTenantFilter.includeMethodName()) { - excludeMethodNameSet.add(excludeName); - // 这里是给pagehelper中,分页查询先获取数据总量的查询。 - excludeMethodNameSet.add(excludeName + "_COUNT"); - } - tenantInfo.setExcludeMethodNameSet(excludeMethodNameSet); - } - cachedTenantMap.put(mapperClass.getName(), tenantInfo); - break; - } - } - } - - private void loadDataPermFilterRules(Class mapperClass, EnableDataPerm rule) { - String sysDataPermMapperName = "SysDataPermMapper"; - // 由于给数据权限Mapper添加@EnableDataPerm,将会导致无限递归,因此这里检测到之后, - // 会在系统启动加载监听器的时候,及时抛出异常。 - if (StringUtils.equals(sysDataPermMapperName, mapperClass.getSimpleName())) { - throw new IllegalStateException("Add @EnableDataPerm annotation to SysDataPermMapper is ILLEGAL!"); - } - // 这里开始获取当前Mapper已经声明的的SqlId中,有哪些是需要排除在外的。 - // 排除在外的将不进行数据过滤。 - Set excludeMethodNameSet = null; - String[] excludes = rule.excluseMethodName(); - if (excludes.length > 0) { - excludeMethodNameSet = new HashSet<>(); - for (String excludeName : excludes) { - excludeMethodNameSet.add(excludeName); - // 这里是给pagehelper中,分页查询先获取数据总量的查询。 - excludeMethodNameSet.add(excludeName + "_COUNT"); - } - } - // 获取Mapper关联的主表信息,包括表名,user过滤字段名和dept过滤字段名。 - Class modelClazz = (Class) - ((ParameterizedType) mapperClass.getGenericInterfaces()[0]).getActualTypeArguments()[0]; - Field[] fields = ReflectUtil.getFields(modelClazz); - Field userFilterField = null; - Field deptFilterField = null; - for (Field field : fields) { - if (null != field.getAnnotation(UserFilterColumn.class)) { - userFilterField = field; - } - if (null != field.getAnnotation(DeptFilterColumn.class)) { - deptFilterField = field; - } - if (userFilterField != null && deptFilterField != null) { - break; - } - } - // 通过注解解析与Mapper关联的Model,并获取与数据权限关联的信息,并将结果缓存。 - ModelDataPermInfo info = new ModelDataPermInfo(); - info.setMainTableName(MyModelUtil.mapToTableName(modelClazz)); - info.setExcludeMethodNameSet(excludeMethodNameSet); - if (userFilterField != null) { - info.setUserFilterColumn(MyModelUtil.mapToColumnName(userFilterField, modelClazz)); - } - if (deptFilterField != null) { - info.setDeptFilterColumn(MyModelUtil.mapToColumnName(deptFilterField, modelClazz)); - } - cachedDataPermMap.put(mapperClass.getName(), info); - } - - @Override - public Object intercept(Invocation invocation) throws Throwable { - // 判断当前线程本地存储中,业务操作是否禁用了数据权限过滤,如果禁用,则不进行后续的数据过滤处理了。 - if (!GlobalThreadLocal.enabledDataFilter()) { - return invocation.proceed(); - } - // 只有在HttpServletRequest场景下,该拦截器才起作用,对于系统级别的预加载数据不会应用数据权限。 - if (!ContextUtil.hasRequestContext()) { - return invocation.proceed(); - } - // 没有登录的用户,不会参与租户过滤,如果需要过滤的,自己在代码中手动实现 - // 通常对于无需登录的白名单url,也无需过滤了。 - // 另外就是登录接口中,获取菜单列表的接口,由于尚未登录,没有TokenData,所以这个接口我们手动加入了该条件。 - if (TokenData.takeFromRequest() == null) { - return invocation.proceed(); - } - RoutingStatementHandler handler = (RoutingStatementHandler) invocation.getTarget(); - StatementHandler delegate = - (StatementHandler) ReflectUtil.getFieldValue(handler, "delegate"); - // 通过反射获取delegate父类BaseStatementHandler的mappedStatement属性 - MappedStatement mappedStatement = - (MappedStatement) ReflectUtil.getFieldValue(delegate, "mappedStatement"); - SqlCommandType commandType = mappedStatement.getSqlCommandType(); - // 对于INSERT语句,我们不进行任何数据过滤。 - if (commandType == SqlCommandType.INSERT) { - return invocation.proceed(); - } - String sqlId = mappedStatement.getId(); - int pos = StringUtils.lastIndexOf(sqlId, "."); - String className = StringUtils.substring(sqlId, 0, pos); - String methodName = StringUtils.substring(sqlId, pos + 1); - // 先进行租户过滤条件的处理,再将解析并处理后的SQL Statement交给下一步的数据权限过滤去处理。 - // 这样做的目的主要是为了减少一次SQL解析的过程,因为这是高频操作,所以要尽量去优化。 - Statement statement = null; - if (properties.getEnabledTenantFilter()) { - statement = this.processTenantFilter(className, methodName, delegate.getBoundSql(), commandType); - } - // 处理数据权限过滤。 - if (properties.getEnabledDataPermFilter()) { - this.processDataPermFilter(className, methodName, delegate.getBoundSql(), commandType, statement, sqlId); - } - return invocation.proceed(); - } - - private Statement processTenantFilter( - String className, String methodName, BoundSql boundSql, SqlCommandType commandType) throws JSQLParserException { - ModelTenantInfo info = cachedTenantMap.get(className); - if (info == null || CollUtil.contains(info.getExcludeMethodNameSet(), methodName)) { - return null; - } - String sql = boundSql.getSql(); - Statement statement = CCJSqlParserUtil.parse(sql); - StringBuilder filterBuilder = new StringBuilder(64); - filterBuilder.append(info.tableName).append(".") - .append(info.columnName) - .append("=") - .append(TokenData.takeFromRequest().getTenantId()); - String dataFilter = filterBuilder.toString(); - if (commandType == SqlCommandType.UPDATE) { - Update update = (Update) statement; - this.buildWhereClause(update, dataFilter); - } else if (commandType == SqlCommandType.DELETE) { - Delete delete = (Delete) statement; - this.buildWhereClause(delete, dataFilter); - } else { - Select select = (Select) statement; - PlainSelect selectBody = (PlainSelect) select.getSelectBody(); - FromItem fromItem = selectBody.getFromItem(); - if (fromItem != null) { - PlainSelect subSelect = null; - if (fromItem instanceof SubSelect) { - subSelect = (PlainSelect) ((SubSelect) fromItem).getSelectBody(); - } - if (subSelect != null) { - buildWhereClause(subSelect, dataFilter); - } else { - buildWhereClause(selectBody, dataFilter); - } - } - } - log.info("Tenant Filter Where Clause [{}]", dataFilter); - ReflectUtil.setFieldValue(boundSql, "sql", statement.toString()); - return statement; - } - - private void processDataPermFilter( - String className, String methodName, BoundSql boundSql, SqlCommandType commandType, Statement statement, String sqlId) - throws JSQLParserException { - // 判断当前线程本地存储中,业务操作是否禁用了数据权限过滤,如果禁用,则不进行后续的数据过滤处理了。 - // 数据过滤权限中,INSERT不过滤。如果是管理员则不参与数据权限的数据过滤,显示全部数据。 - TokenData tokenData = TokenData.takeFromRequest(); - if (Boolean.TRUE.equals(tokenData.getIsAdmin())) { - return; - } - ModelDataPermInfo info = cachedDataPermMap.get(className); - // 再次查找当前方法是否为排除方法,如果不是,就参与数据权限注入过滤。 - if (info == null || CollUtil.contains(info.getExcludeMethodNameSet(), methodName)) { - return; - } - String dataPermSessionKey = RedisKeyUtil.makeSessionDataPermIdKey(tokenData.getSessionId()); - Object cachedData = redissonClient.getBucket(dataPermSessionKey).get(); - if (cachedData == null) { - throw new NoDataPermException("No Related DataPerm found for SQL_ID [ " + sqlId + " ]."); - } - String dataPermData = cachedData.toString(); - Map dataPermMap = new HashMap<>(8); - for (Map.Entry entry : JSON.parseObject(dataPermData).entrySet()) { - dataPermMap.put(Integer.valueOf(entry.getKey()), entry.getValue().toString()); - } - if (MapUtils.isEmpty(dataPermMap)) { - throw new NoDataPermException("No Related DataPerm found for SQL_ID [ " + sqlId + " ]."); - } - if (dataPermMap.containsKey(DataPermRuleType.TYPE_ALL)) { - return; - } - this.processDataPerm(info, dataPermMap, boundSql, commandType, statement); - } - - private void processDataPerm( - ModelDataPermInfo info, - Map dataPermMap, - BoundSql boundSql, - SqlCommandType commandType, - Statement statement) throws JSQLParserException { - List criteriaList = new LinkedList<>(); - for (Map.Entry entry : dataPermMap.entrySet()) { - String filterClause = processDataPermRule(info, entry.getKey(), entry.getValue()); - if (StringUtils.isNotBlank(filterClause)) { - criteriaList.add(filterClause); - } - } - if (CollectionUtils.isEmpty(criteriaList)) { - return; - } - StringBuilder filterBuilder = new StringBuilder(128); - filterBuilder.append("("); - filterBuilder.append(StringUtils.join(criteriaList, " OR ")); - filterBuilder.append(")"); - String dataFilter = filterBuilder.toString(); - if (statement == null) { - String sql = boundSql.getSql(); - statement = CCJSqlParserUtil.parse(sql); - } - if (commandType == SqlCommandType.UPDATE) { - Update update = (Update) statement; - this.buildWhereClause(update, dataFilter); - } else if (commandType == SqlCommandType.DELETE) { - Delete delete = (Delete) statement; - this.buildWhereClause(delete, dataFilter); - } else { - Select select = (Select) statement; - PlainSelect selectBody = (PlainSelect) select.getSelectBody(); - FromItem fromItem = selectBody.getFromItem(); - PlainSelect subSelect = null; - if (fromItem != null) { - if (fromItem instanceof SubSelect) { - subSelect = (PlainSelect) ((SubSelect) fromItem).getSelectBody(); - } - if (subSelect != null) { - buildWhereClause(subSelect, dataFilter); - } else { - buildWhereClause(selectBody, dataFilter); - } - } - } - log.info("DataPerm Filter Where Clause [{}]", dataFilter); - ReflectUtil.setFieldValue(boundSql, "sql", statement.toString()); - } - - private String processDataPermRule(ModelDataPermInfo info, Integer ruleType, String deptIds) { - TokenData tokenData = TokenData.takeFromRequest(); - StringBuilder filter = new StringBuilder(128); - if (ruleType == DataPermRuleType.TYPE_USER_ONLY) { - if (StringUtils.isNotBlank(info.getUserFilterColumn())) { - if (properties.getAddTableNamePrefix()) { - filter.append(info.getMainTableName()).append("."); - } - filter.append(info.getUserFilterColumn()) - .append(" = ") - .append(tokenData.getUserId()); - } - } else { - if (StringUtils.isNotBlank(info.getDeptFilterColumn())) { - if (ruleType == DataPermRuleType.TYPE_DEPT_ONLY) { - if (properties.getAddTableNamePrefix()) { - filter.append(info.getMainTableName()).append("."); - } - filter.append(info.getDeptFilterColumn()) - .append(" = ") - .append(tokenData.getDeptId()); - } else if (ruleType == DataPermRuleType.TYPE_DEPT_AND_CHILD_DEPT) { - filter.append(" EXISTS ") - .append("(SELECT 1 FROM ") - .append(properties.getDeptRelationTablePrefix()) - .append("sys_dept_relation WHERE ") - .append(properties.getDeptRelationTablePrefix()) - .append("sys_dept_relation.parent_dept_id = ") - .append(tokenData.getDeptId()) - .append(" AND "); - if (properties.getAddTableNamePrefix()) { - filter.append(info.getMainTableName()).append("."); - } - filter.append(info.getDeptFilterColumn()) - .append(" = ") - .append(properties.getDeptRelationTablePrefix()) - .append("sys_dept_relation.dept_id) "); - } else if (ruleType == DataPermRuleType.TYPE_MULTI_DEPT_AND_CHILD_DEPT) { - filter.append(" EXISTS ") - .append("(SELECT 1 FROM ") - .append(properties.getDeptRelationTablePrefix()) - .append("sys_dept_relation WHERE ") - .append(properties.getDeptRelationTablePrefix()) - .append("sys_dept_relation.parent_dept_id IN (") - .append(deptIds) - .append(") AND "); - if (properties.getAddTableNamePrefix()) { - filter.append(info.getMainTableName()).append("."); - } - filter.append(info.getDeptFilterColumn()) - .append(" = ") - .append(properties.getDeptRelationTablePrefix()) - .append("sys_dept_relation.dept_id) "); - } else if (ruleType == DataPermRuleType.TYPE_CUSTOM_DEPT_LIST) { - if (properties.getAddTableNamePrefix()) { - filter.append(info.getMainTableName()).append("."); - } - filter.append(info.getDeptFilterColumn()) - .append(" IN (") - .append(deptIds) - .append(") "); - } - } - } - return filter.toString(); - } - - private void buildWhereClause(Update update, String dataFilter) throws JSQLParserException { - if (update.getWhere() == null) { - update.setWhere(CCJSqlParserUtil.parseCondExpression(dataFilter)); - } else { - AndExpression and = new AndExpression( - CCJSqlParserUtil.parseCondExpression(dataFilter), update.getWhere()); - update.setWhere(and); - } - } - - private void buildWhereClause(Delete delete, String dataFilter) throws JSQLParserException { - if (delete.getWhere() == null) { - delete.setWhere(CCJSqlParserUtil.parseCondExpression(dataFilter)); - } else { - AndExpression and = new AndExpression( - CCJSqlParserUtil.parseCondExpression(dataFilter), delete.getWhere()); - delete.setWhere(and); - } - } - - private void buildWhereClause(PlainSelect select, String dataFilter) throws JSQLParserException { - if (select.getWhere() == null) { - select.setWhere(CCJSqlParserUtil.parseCondExpression(dataFilter)); - } else { - AndExpression and = new AndExpression( - CCJSqlParserUtil.parseCondExpression(dataFilter), select.getWhere()); - select.setWhere(and); - } - } - - @Override - public Object plugin(Object target) { - return Plugin.wrap(target, this); - } - - @Override - public void setProperties(Properties properties) { - // 这里需要空注解,否则sonar会不happy。 - } - - @Data - private static final class ModelDataPermInfo { - private Set excludeMethodNameSet; - private String userFilterColumn; - private String deptFilterColumn; - private String mainTableName; - } - - @Data - private static final class ModelTenantInfo { - private Set excludeMethodNameSet; - private String modelName; - private String tableName; - private String fieldName; - private String columnName; - } -} diff --git a/images/orange-demo-activiti-service/common/common-datafilter/src/main/java/com/orangeforms/common/datafilter/listener/LoadDataFilterInfoListener.java b/images/orange-demo-activiti-service/common/common-datafilter/src/main/java/com/orangeforms/common/datafilter/listener/LoadDataFilterInfoListener.java deleted file mode 100644 index 9cd6d7db..00000000 --- a/images/orange-demo-activiti-service/common/common-datafilter/src/main/java/com/orangeforms/common/datafilter/listener/LoadDataFilterInfoListener.java +++ /dev/null @@ -1,25 +0,0 @@ -package com.orangeforms.common.datafilter.listener; - -import com.orangeforms.common.datafilter.interceptor.MybatisDataFilterInterceptor; -import org.springframework.boot.context.event.ApplicationReadyEvent; -import org.springframework.context.ApplicationListener; -import org.springframework.stereotype.Component; - -/** - * 应用服务启动监听器。 - * 目前主要功能是调用MybatisDataFilterInterceptor中的loadInfoWithDataFilter方法, - * 将标记有过滤注解的数据加载到缓存,以提升系统运行时效率。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Component -public class LoadDataFilterInfoListener implements ApplicationListener { - - @Override - public void onApplicationEvent(ApplicationReadyEvent applicationReadyEvent) { - MybatisDataFilterInterceptor interceptor = - applicationReadyEvent.getApplicationContext().getBean(MybatisDataFilterInterceptor.class); - interceptor.loadInfoWithDataFilter(); - } -} diff --git a/images/orange-demo-activiti-service/common/common-datafilter/src/main/resources/META-INF/spring.factories b/images/orange-demo-activiti-service/common/common-datafilter/src/main/resources/META-INF/spring.factories deleted file mode 100644 index e9628e63..00000000 --- a/images/orange-demo-activiti-service/common/common-datafilter/src/main/resources/META-INF/spring.factories +++ /dev/null @@ -1,2 +0,0 @@ -org.springframework.boot.autoconfigure.EnableAutoConfiguration=\ -com.orangeforms.common.datafilter.config.DataFilterAutoConfig \ No newline at end of file diff --git a/images/orange-demo-activiti-service/common/common-flow-online/pom.xml b/images/orange-demo-activiti-service/common/common-flow-online/pom.xml deleted file mode 100644 index 558a1eea..00000000 --- a/images/orange-demo-activiti-service/common/common-flow-online/pom.xml +++ /dev/null @@ -1,53 +0,0 @@ - - - - common - com.orangeforms - 1.0.0 - - 4.0.0 - - common-flow-online - 1.0.0 - common-flow-online - jar - - - - com.orangeforms - common-flow - 1.0.0 - - - com.orangeforms - common-online - 1.0.0 - - - com.orangeforms - common-swagger - 1.0.0 - - - - - - - src/main/resources - - **/*.* - - false - - - src/main/java - - **/*.xml - - false - - - - \ No newline at end of file diff --git a/images/orange-demo-activiti-service/common/common-flow-online/src/main/java/com/orangeforms/common/flow/online/config/FlowOnlineAutoConfig.java b/images/orange-demo-activiti-service/common/common-flow-online/src/main/java/com/orangeforms/common/flow/online/config/FlowOnlineAutoConfig.java deleted file mode 100644 index f1dd86e8..00000000 --- a/images/orange-demo-activiti-service/common/common-flow-online/src/main/java/com/orangeforms/common/flow/online/config/FlowOnlineAutoConfig.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.orangeforms.common.flow.online.config; - -import org.springframework.boot.context.properties.EnableConfigurationProperties; - -/** - * common-flow-online模块的自动配置引导类。 - * - * @author Jerry - * @date 2021-06-06 - */ -@EnableConfigurationProperties({FlowOnlineProperties.class}) -public class FlowOnlineAutoConfig { -} diff --git a/images/orange-demo-activiti-service/common/common-flow-online/src/main/java/com/orangeforms/common/flow/online/config/FlowOnlineProperties.java b/images/orange-demo-activiti-service/common/common-flow-online/src/main/java/com/orangeforms/common/flow/online/config/FlowOnlineProperties.java deleted file mode 100644 index dbd6528a..00000000 --- a/images/orange-demo-activiti-service/common/common-flow-online/src/main/java/com/orangeforms/common/flow/online/config/FlowOnlineProperties.java +++ /dev/null @@ -1,20 +0,0 @@ -package com.orangeforms.common.flow.online.config; - -import lombok.Data; -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * 在线表单工作流模块的配置对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Data -@ConfigurationProperties(prefix = "common-flow-online") -public class FlowOnlineProperties { - - /** - * 在线表单的URL前缀。 - */ - private String urlPrefix; -} diff --git a/images/orange-demo-activiti-service/common/common-flow-online/src/main/java/com/orangeforms/common/flow/online/controller/FlowOnlineOperationController.java b/images/orange-demo-activiti-service/common/common-flow-online/src/main/java/com/orangeforms/common/flow/online/controller/FlowOnlineOperationController.java deleted file mode 100644 index 074173d3..00000000 --- a/images/orange-demo-activiti-service/common/common-flow-online/src/main/java/com/orangeforms/common/flow/online/controller/FlowOnlineOperationController.java +++ /dev/null @@ -1,726 +0,0 @@ -package com.orangeforms.common.flow.online.controller; - -import io.swagger.annotations.Api; -import cn.hutool.core.bean.BeanUtil; -import cn.hutool.core.collection.CollUtil; -import cn.hutool.core.map.MapUtil; -import cn.hutool.core.util.StrUtil; -import com.alibaba.fastjson.JSON; -import com.alibaba.fastjson.JSONArray; -import com.alibaba.fastjson.JSONObject; -import com.github.pagehelper.page.PageMethod; -import com.orangeforms.common.core.annotation.DisableDataFilter; -import com.orangeforms.common.core.annotation.MyRequestBody; -import com.orangeforms.common.core.constant.ErrorCodeEnum; -import com.orangeforms.common.core.object.*; -import com.orangeforms.common.core.util.MyModelUtil; -import com.orangeforms.common.core.util.MyPageUtil; -import com.orangeforms.common.flow.dto.FlowWorkOrderDto; -import com.orangeforms.common.flow.vo.FlowEntryVo; -import com.orangeforms.common.flow.vo.FlowWorkOrderVo; -import com.orangeforms.common.online.dto.OnlineFilterDto; -import com.orangeforms.common.online.model.*; -import com.orangeforms.common.online.model.constant.FieldFilterType; -import com.orangeforms.common.online.model.constant.RelationType; -import com.orangeforms.common.online.object.ColumnData; -import com.orangeforms.common.online.service.OnlineFormService; -import com.orangeforms.common.online.service.OnlinePageService; -import com.orangeforms.common.online.service.OnlineOperationService; -import com.orangeforms.common.online.service.OnlineTableService; -import com.orangeforms.common.online.util.OnlineOperationHelper; -import com.orangeforms.common.flow.online.service.FlowOnlineOperationService; -import com.orangeforms.common.flow.constant.FlowApprovalType; -import com.orangeforms.common.flow.util.FlowOperationHelper; -import com.orangeforms.common.flow.constant.FlowTaskStatus; -import com.orangeforms.common.flow.dto.FlowTaskCommentDto; -import com.orangeforms.common.flow.exception.FlowOperationException; -import com.orangeforms.common.flow.model.*; -import com.orangeforms.common.flow.service.*; -import com.orangeforms.common.flow.vo.TaskInfoVo; -import lombok.extern.slf4j.Slf4j; -import org.activiti.engine.history.HistoricProcessInstance; -import org.activiti.engine.history.HistoricTaskInstance; -import org.activiti.engine.task.Task; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.*; -import org.springframework.web.multipart.MultipartFile; - -import javax.servlet.http.HttpServletResponse; -import java.util.*; -import java.util.stream.Collectors; - -/** - * 流程操作接口类 - * - * @author Jerry - * @date 2021-06-06 - */ -@Api(tags = "在线标案流程操作接口") -@Slf4j -@RestController -@RequestMapping("${common-flow.urlPrefix}/flowOnlineOperation") -public class FlowOnlineOperationController { - - @Autowired - private FlowEntryService flowEntryService; - @Autowired - private FlowApiService flowApiService; - @Autowired - private FlowOperationHelper flowOperationHelper; - @Autowired - private FlowOnlineOperationService flowOnlineOperationService; - @Autowired - private FlowWorkOrderService flowWorkOrderService; - @Autowired - private OnlineFormService onlineFormService; - @Autowired - private OnlinePageService onlinePageService; - @Autowired - private OnlineOperationService onlineOperationService; - @Autowired - private OnlineTableService onlineTableService; - @Autowired - private OnlineOperationHelper onlineOperationHelper; - - /** - * 根据指定流程的主版本,发起一个流程实例,同时作为第一个任务节点的执行人,执行第一个用户任务。 - * 该接口无需数据权限过滤,因此用DisableDataFilter注解标注。如果当前系统没有支持数据权限过滤,该注解不会有任何影响。 - * - * @param processDefinitionKey 流程定义标识。 - * @param flowTaskCommentDto 审批意见。 - * @param taskVariableData 流程任务变量数据。 - * @param masterData 流程审批相关的主表数据。 - * @param slaveData 流程审批相关的多个从表数据。 - * @return 应答结果对象。 - */ - @DisableDataFilter - @PostMapping("/startAndTakeUserTask/{processDefinitionKey}") - public ResponseResult startAndTakeUserTask( - @PathVariable("processDefinitionKey") String processDefinitionKey, - @MyRequestBody(required = true) FlowTaskCommentDto flowTaskCommentDto, - @MyRequestBody JSONObject taskVariableData, - @MyRequestBody(required = true) JSONObject masterData, - @MyRequestBody JSONObject slaveData) { - String errorMessage; - // 1. 验证流程数据的合法性。 - ResponseResult flowEntryResult = flowOperationHelper.verifyAndGetFlowEntry(processDefinitionKey); - if (!flowEntryResult.isSuccess()) { - return ResponseResult.errorFrom(flowEntryResult); - } - // 2. 验证流程一个用户任务的合法性。 - FlowEntryPublish flowEntryPublish = flowEntryResult.getData().getMainFlowEntryPublish(); - if (!flowEntryPublish.getActiveStatus()) { - errorMessage = "数据验证失败,当前流程发布对象已被挂起,不能启动新流程!"; - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - ResponseResult taskInfoResult = - flowOperationHelper.verifyAndGetInitialTaskInfo(flowEntryPublish, true); - if (!taskInfoResult.isSuccess()) { - return ResponseResult.errorFrom(taskInfoResult); - } - TaskInfoVo taskInfo = taskInfoResult.getData(); - // 3. 验证在线表单及其关联数据源的合法性。 - ResponseResult datasourceResult = this.verifyAndGetOnlineDatasource(taskInfo.getFormId()); - if (!datasourceResult.isSuccess()) { - return ResponseResult.errorFrom(datasourceResult); - } - OnlineDatasource datasource = datasourceResult.getData(); - OnlineTable masterTable = datasource.getMasterTable(); - // 4. 为本次流程操作构建数据。 - ResponseResult> columnDataListResult = - onlineOperationHelper.buildTableData(masterTable, masterData, false, null); - if (!columnDataListResult.isSuccess()) { - return ResponseResult.errorFrom(columnDataListResult); - } - FlowTaskComment flowTaskComment = BeanUtil.copyProperties(flowTaskCommentDto, FlowTaskComment.class); - // 5. 保存在线表单提交的数据,同时启动流程和自动完成第一个用户任务。 - if (slaveData == null) { - flowOnlineOperationService.saveNewAndStartProcess( - flowEntryPublish.getProcessDefinitionId(), - flowTaskComment, - taskVariableData, - masterTable, - columnDataListResult.getData()); - } else { - // 如果本次请求中包含从表数据,则一同插入。 - ResponseResult>>> slaveDataListResult = - onlineOperationHelper.buildSlaveDataList(datasource.getDatasourceId(), slaveData); - if (!slaveDataListResult.isSuccess()) { - return ResponseResult.errorFrom(slaveDataListResult); - } - flowOnlineOperationService.saveNewAndStartProcess( - flowEntryPublish.getProcessDefinitionId(), - flowTaskComment, - taskVariableData, - masterTable, - columnDataListResult.getData(), - slaveDataListResult.getData()); - } - return ResponseResult.success(); - } - - /** - * 提交流程的用户任务。 - * 该接口无需数据权限过滤,因此用DisableDataFilter注解标注。如果当前系统没有支持数据权限过滤,该注解不会有任何影响。 - * - * @param processInstanceId 流程实例Id。 - * @param taskId 流程任务Id。 - * @param flowTaskCommentDto 流程审批数据。 - * @param taskVariableData 流程任务变量数据。 - * @param masterData 流程审批相关的主表数据。 - * @param slaveData 流程审批相关的多个从表数据。 - * @return 应答结果对象。 - */ - @DisableDataFilter - @PostMapping("/submitUserTask") - public ResponseResult submitUserTask( - @MyRequestBody(required = true) String processInstanceId, - @MyRequestBody(required = true) String taskId, - @MyRequestBody(required = true) FlowTaskCommentDto flowTaskCommentDto, - @MyRequestBody JSONObject taskVariableData, - @MyRequestBody JSONObject masterData, - @MyRequestBody JSONObject slaveData) { - String errorMessage; - // 验证流程任务的合法性。 - Task task = flowApiService.getProcessInstanceActiveTask(processInstanceId, taskId); - ResponseResult taskInfoResult = flowOperationHelper.verifyAndGetRuntimeTaskInfo(task); - if (!taskInfoResult.isSuccess()) { - return ResponseResult.errorFrom(taskInfoResult); - } - TaskInfoVo taskInfo = taskInfoResult.getData(); - // 验证在线表单及其关联数据源的合法性。 - ResponseResult datasourceResult = this.verifyAndGetOnlineDatasource(taskInfo.getFormId()); - if (!datasourceResult.isSuccess()) { - return ResponseResult.errorFrom(datasourceResult); - } - CallResult assigneeVerifyResult = flowApiService.verifyAssigneeOrCandidateAndClaim(task); - if (!assigneeVerifyResult.isSuccess()) { - return ResponseResult.errorFrom(assigneeVerifyResult); - } - OnlineDatasource datasource = datasourceResult.getData(); - OnlineTable masterTable = datasource.getMasterTable(); - Long datasourceId = datasource.getDatasourceId(); - String dataId = task.getBusinessKey(); - FlowTaskComment flowTaskComment = BeanUtil.copyProperties(flowTaskCommentDto, FlowTaskComment.class); - if (StrUtil.isBlank(dataId)) { - return this.submitNewTask(processInstanceId, taskId, - flowTaskComment, taskVariableData, masterTable, masterData, slaveData, datasourceId); - } - try { - if (StrUtil.equals(flowTaskComment.getApprovalType(), FlowApprovalType.TRANSFER)) { - if (StrUtil.isBlank(flowTaskComment.getDelegateAssginee())) { - errorMessage = "数据验证失败,加签或转办任务指派人不能为空!!"; - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - } - flowOnlineOperationService.updateAndTakeTask( - task, flowTaskComment, taskVariableData, masterTable, masterData, dataId, slaveData, datasourceId); - } catch (FlowOperationException e) { - log.error("Failed to call [FlowOnlineOperationService.updateAndTakeTask]", e); - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, e.getMessage()); - } - return ResponseResult.success(); - } - - /** - * 获取当前流程实例的详情数据。包括主表数据、一对一从表数据、一对多从表数据列表等。 - * 该接口无需数据权限过滤,因此用DisableDataFilter注解标注。如果当前系统没有支持数据权限过滤,该注解不会有任何影响。 - * - * @param processInstanceId 当前运行时的流程实例Id。 - * @param taskId 流程任务Id。 - * @return 当前流程实例的详情数据。 - */ - @DisableDataFilter - @GetMapping("/viewUserTask") - public ResponseResult viewUserTask(@RequestParam String processInstanceId, @RequestParam String taskId) { - String errorMessage; - // 验证流程任务的合法性。 - Task task = flowApiService.getProcessInstanceActiveTask(processInstanceId, taskId); - // 如果业务主数据为空,则直接返回。 - if (StrUtil.isBlank(task.getBusinessKey())) { - return ResponseResult.success(null); - } - ResponseResult taskInfoResult = flowOperationHelper.verifyAndGetRuntimeTaskInfo(task); - if (!taskInfoResult.isSuccess()) { - return ResponseResult.errorFrom(taskInfoResult); - } - TaskInfoVo taskInfo = taskInfoResult.getData(); - // 验证在线表单及其关联数据源的合法性。 - ResponseResult datasourceResult = this.verifyAndGetOnlineDatasource(taskInfo.getFormId()); - if (!datasourceResult.isSuccess()) { - return ResponseResult.errorFrom(datasourceResult); - } - OnlineDatasource datasource = datasourceResult.getData(); - ResponseResult> relationListResult = - onlineOperationHelper.verifyAndGetRelationList(datasource.getDatasourceId(), null); - if (!relationListResult.isSuccess()) { - return ResponseResult.errorFrom(relationListResult); - } - JSONObject jsonData = this.buildUserTaskData( - task.getBusinessKey(), datasource.getMasterTable(), relationListResult.getData()); - return ResponseResult.success(jsonData); - } - - /** - * 获取已经结束的流程实例的详情数据。包括主表数据、一对一从表数据、一对多从表数据列表等。 - * 该接口无需数据权限过滤,因此用DisableDataFilter注解标注。如果当前系统没有支持数据权限过滤,该注解不会有任何影响。 - * - * @param processInstanceId 历史流程实例Id。 - * @param taskId 历史任务Id。如果该值为null,仅有发起人可以查看当前流程数据,否则只有任务的指派人才能查看。 - * @return 历史流程实例的详情数据。 - */ - @DisableDataFilter - @GetMapping("/viewHistoricProcessInstance") - public ResponseResult viewHistoricProcessInstance( - @RequestParam String processInstanceId, @RequestParam(required = false) String taskId) { - String errorMessage; - // 验证流程实例的合法性。 - HistoricProcessInstance instance = flowApiService.getHistoricProcessInstance(processInstanceId); - if (instance == null) { - errorMessage = "数据验证失败,指定的流程实例Id并不存在,请刷新后重试!"; - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - String loginName = TokenData.takeFromRequest().getLoginName(); - if (StrUtil.isBlank(taskId)) { - if (!StrUtil.equals(loginName, instance.getStartUserId())) { - errorMessage = "数据验证失败,指定历史流程的发起人与当前用户不匹配!"; - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - } else { - HistoricTaskInstance taskInstance = flowApiService.getHistoricTaskInstance(processInstanceId, taskId); - if (taskInstance == null) { - errorMessage = "数据验证失败,指定的任务Id并不存在,请刷新后重试!"; - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - if (!StrUtil.equals(loginName, taskInstance.getAssignee())) { - errorMessage = "数据验证失败,历史任务的指派人与当前用户不匹配!"; - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - } - if (StrUtil.isBlank(instance.getBusinessKey())) { - // 对于没有提交过任何用户任务的场景,可直接返回空数据。 - return ResponseResult.success(new JSONObject()); - } - FlowEntryPublish flowEntryPublish = - flowEntryService.getFlowEntryPublishList(CollUtil.newHashSet(instance.getProcessDefinitionId())).get(0); - TaskInfoVo taskInfoVo = JSON.parseObject(flowEntryPublish.getInitTaskInfo(), TaskInfoVo.class); - // 验证在线表单及其关联数据源的合法性。 - ResponseResult datasourceResult = this.verifyAndGetOnlineDatasource(taskInfoVo.getFormId()); - if (!datasourceResult.isSuccess()) { - return ResponseResult.errorFrom(datasourceResult); - } - OnlineDatasource datasource = datasourceResult.getData(); - ResponseResult> relationListResult = - onlineOperationHelper.verifyAndGetRelationList(datasource.getDatasourceId(), null); - if (!relationListResult.isSuccess()) { - return ResponseResult.errorFrom(relationListResult); - } - JSONObject jsonData = this.buildUserTaskData( - instance.getBusinessKey(), datasource.getMasterTable(), relationListResult.getData()); - return ResponseResult.success(jsonData); - } - - /** - * 工作流工单列表。 - * - * @param processDefinitionKey 流程标识名。 - * @param flowWorkOrderDtoFilter 过滤对象。 - * @param pageParam 分页参数。 - * @return 查询结果。 - */ - @PostMapping("/listWorkOrder/{processDefinitionKey}") - public ResponseResult> listWorkOrder( - @PathVariable("processDefinitionKey") String processDefinitionKey, - @MyRequestBody FlowWorkOrderDto flowWorkOrderDtoFilter, - @MyRequestBody MyPageParam pageParam) { - if (pageParam != null) { - PageMethod.startPage(pageParam.getPageNum(), pageParam.getPageSize()); - } - FlowWorkOrder flowWorkOrderFilter = - flowOperationHelper.makeWorkOrderFilter(flowWorkOrderDtoFilter, processDefinitionKey); - MyOrderParam orderParam = new MyOrderParam(); - orderParam.add(new MyOrderParam.OrderInfo("workOrderId", false, null)); - String orderBy = MyOrderParam.buildOrderBy(orderParam, FlowWorkOrder.class); - List flowWorkOrderList = flowWorkOrderService.getFlowWorkOrderList(flowWorkOrderFilter, orderBy); - MyPageData resultData = - MyPageUtil.makeResponseData(flowWorkOrderList, FlowWorkOrder.INSTANCE); - // 工单自身的查询中可以受到数据权限的过滤,但是工单集成业务数据时,则无需再对业务数据进行数据权限过滤了。 - GlobalThreadLocal.setDataFilter(false); - ResponseResult responseResult = this.makeWorkOrderTaskInfo(resultData.getDataList()); - if (!responseResult.isSuccess()) { - return ResponseResult.errorFrom(responseResult); - } - return ResponseResult.success(resultData); - } - - /** - * 为数据源主表字段上传文件。 - * - * @param processDefinitionKey 流程引擎流程定义标识。 - * @param processInstanceId 流程实例Id。 - * @param taskId 流程任务Id。 - * @param datasourceId 数据源Id。 - * @param relationId 数据源关联Id。 - * @param fieldName 数据表字段名。 - * @param asImage 是否为图片文件。 - * @param uploadFile 上传文件对象。 - */ - @PostMapping("/upload") - public void upload( - @RequestParam String processDefinitionKey, - @RequestParam(required = false) String processInstanceId, - @RequestParam(required = false) String taskId, - @RequestParam Long datasourceId, - @RequestParam(required = false) Long relationId, - @RequestParam String fieldName, - @RequestParam Boolean asImage, - @RequestParam("uploadFile") MultipartFile uploadFile) throws Exception { - ResponseResult verifyResult = - this.verifyUploadOrDownload(processDefinitionKey, processInstanceId, taskId, datasourceId); - if (!verifyResult.isSuccess()) { - ResponseResult.output(HttpServletResponse.SC_FORBIDDEN, ResponseResult.errorFrom(verifyResult)); - return; - } - ResponseResult verifyTableResult = - this.verifyAndGetOnlineTable(datasourceId, relationId, null, null); - if (!verifyTableResult.isSuccess()) { - ResponseResult.output(HttpServletResponse.SC_FORBIDDEN, ResponseResult.errorFrom(verifyTableResult)); - return; - } - onlineOperationHelper.doUpload(verifyTableResult.getData(), fieldName, asImage, uploadFile); - } - - /** - * 下载文件接口。 - * 越权访问限制说明: - * taskId为空,当前用户必须为当前流程的发起人,否则必须为当前任务的指派人或候选人。 - * relationId为空,下载数据为主表字段,否则为关联的从表字段。 - * 该接口无需数据权限过滤,因此用DisableDataFilter注解标注。如果当前系统没有支持数据权限过滤,该注解不会有任何影响。 - * - * @param processDefinitionKey 流程引擎流程定义标识。 - * @param processInstanceId 流程实例Id。 - * @param taskId 流程任务Id。 - * @param datasourceId 数据源Id。 - * @param relationId 数据源关联Id。 - * @param dataId 附件所在记录的主键Id。 - * @param fieldName 数据表字段名。 - * @param asImage 是否为图片文件。 - * @param response Http 应答对象。 - */ - @DisableDataFilter - @GetMapping("/download") - public void download( - @RequestParam String processDefinitionKey, - @RequestParam(required = false) String processInstanceId, - @RequestParam(required = false) String taskId, - @RequestParam Long datasourceId, - @RequestParam(required = false) Long relationId, - @RequestParam(required = false) String dataId, - @RequestParam String fieldName, - @RequestParam String filename, - @RequestParam Boolean asImage, - HttpServletResponse response) throws Exception { - ResponseResult verifyResult = - this.verifyUploadOrDownload(processDefinitionKey, processInstanceId, taskId, datasourceId); - if (!verifyResult.isSuccess()) { - ResponseResult.output(HttpServletResponse.SC_FORBIDDEN, ResponseResult.errorFrom(verifyResult)); - return; - } - ResponseResult verifyTableResult = - this.verifyAndGetOnlineTable(datasourceId, relationId, verifyResult.getData(), dataId); - if (!verifyTableResult.isSuccess()) { - ResponseResult.output(HttpServletResponse.SC_FORBIDDEN, ResponseResult.errorFrom(verifyTableResult)); - return; - } - onlineOperationHelper.doDownload(verifyTableResult.getData(), dataId, fieldName, filename, asImage, response); - } - - /** - * 获取所有流程对象,同时获取关联的在线表单对象列表。 - * - * @return 查询结果。 - */ - @GetMapping("/listFlowEntryForm") - public ResponseResult> listFlowEntryForm() { - List flowEntryList = flowEntryService.getAllList(); - List flowEntryVoList = FlowEntry.INSTANCE.fromModelList(flowEntryList); - if (CollUtil.isNotEmpty(flowEntryVoList)) { - Set pageIdSet = flowEntryVoList.stream().map(FlowEntryVo::getPageId).collect(Collectors.toSet()); - List formList = onlineFormService.getOnlineFormListByPageIds(pageIdSet); - Map> formMap = - formList.stream().collect(Collectors.groupingBy(OnlineForm::getPageId)); - for (FlowEntryVo flowEntryVo : flowEntryVoList) { - List flowEntryFormList = formMap.get(flowEntryVo.getPageId()); - flowEntryVo.setFormList(MyModelUtil.beanToMapList(flowEntryFormList)); - } - } - return ResponseResult.success(flowEntryVoList); - } - - private ResponseResult verifyAndGetOnlineDatasource(Long formId) { - List formDatasourceList = onlineFormService.getFormDatasourceListByFormId(formId); - if (CollUtil.isEmpty(formDatasourceList)) { - String errorMessage = "数据验证失败,流程任务绑定的在线表单Id [" + formId + "] 不存在,请修改流程图!"; - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - return onlineOperationHelper.verifyAndGetDatasource(formDatasourceList.get(0).getDatasourceId()); - } - - private JSONObject buildUserTaskData( - String businessKey, OnlineTable masterTable, List relationList) { - JSONObject jsonData = new JSONObject(); - List oneToOneRelationList = relationList.stream() - .filter(r -> r.getRelationType().equals(RelationType.ONE_TO_ONE)).collect(Collectors.toList()); - Map result = - onlineOperationService.getMasterData(masterTable, oneToOneRelationList, relationList, businessKey); - if (MapUtil.isEmpty(result)) { - return jsonData; - } - jsonData.put("masterAndOneToOne", result); - List oneToManyRelationList = relationList.stream() - .filter(r -> r.getRelationType().equals(RelationType.ONE_TO_MANY)).collect(Collectors.toList()); - if (CollUtil.isEmpty(oneToManyRelationList)) { - return jsonData; - } - JSONObject oneToManyJsonData = new JSONObject(); - jsonData.put("oneToMany", oneToManyJsonData); - for (OnlineDatasourceRelation relation : oneToManyRelationList) { - OnlineFilterDto filterDto = new OnlineFilterDto(); - filterDto.setTableName(relation.getSlaveTable().getTableName()); - OnlineColumn slaveColumn = relation.getSlaveTable().getColumnMap().get(relation.getSlaveColumnId()); - filterDto.setColumnName(slaveColumn.getColumnName()); - filterDto.setFilterType(FieldFilterType.EQUAL_FILTER); - Object columnValue = result.get(masterTable.getPrimaryKeyColumn().getColumnName()); - filterDto.setColumnValue(columnValue); - List> slaveResultList = - onlineOperationService.getSlaveDataList(relation, CollUtil.newLinkedList(filterDto), null); - if (CollUtil.isNotEmpty(slaveResultList)) { - oneToManyJsonData.put(relation.getVariableName(), slaveResultList); - } - } - return jsonData; - } - - private ResponseResult submitNewTask( - String processInstanceId, - String taskId, - FlowTaskComment flowTaskComment, - JSONObject taskVariableData, - OnlineTable masterTable, - JSONObject masterData, - JSONObject slaveData, - Long datasourceId) { - ResponseResult> columnDataListResult = - onlineOperationHelper.buildTableData(masterTable, masterData, false, null); - if (!columnDataListResult.isSuccess()) { - return ResponseResult.errorFrom(columnDataListResult); - } - // 保存在线表单提交的数据,同时启动流程和自动完成第一个用户任务。 - if (slaveData == null) { - flowOnlineOperationService.saveNewAndTakeTask( - processInstanceId, - taskId, - flowTaskComment, - taskVariableData, - masterTable, - columnDataListResult.getData()); - } else { - // 如果本次请求中包含从表数据,则一同插入。 - ResponseResult>>> slaveDataListResult = - onlineOperationHelper.buildSlaveDataList(datasourceId, slaveData); - if (!slaveDataListResult.isSuccess()) { - return ResponseResult.errorFrom(slaveDataListResult); - } - flowOnlineOperationService.saveNewAndTakeTask( - processInstanceId, - taskId, - flowTaskComment, - taskVariableData, - masterTable, - columnDataListResult.getData(), - slaveDataListResult.getData()); - } - return ResponseResult.success(); - } - - private ResponseResult verifyAndGetOnlineTable( - Long datasourceId, Long relationId, String businessKey, String dataId) { - ResponseResult datasourceResult = - onlineOperationHelper.verifyAndGetDatasource(datasourceId); - if (!datasourceResult.isSuccess()) { - return ResponseResult.errorFrom(datasourceResult); - } - OnlineTable masterTable = datasourceResult.getData().getMasterTable(); - OnlineTable table = masterTable; - ResponseResult relationResult = null; - if (relationId != null) { - relationResult = onlineOperationHelper.verifyAndGetRelation(datasourceId, relationId); - if (!relationResult.isSuccess()) { - return ResponseResult.errorFrom(relationResult); - } - table = relationResult.getData().getSlaveTable(); - } - if (StrUtil.hasBlank(businessKey, dataId)) { - return ResponseResult.success(table); - } - String errorMessage; - // 如果relationId为null,这里就是主表数据。 - if (relationId == null) { - if (!StrUtil.equals(businessKey, dataId)) { - errorMessage = "数据验证失败,参数主键Id与流程主表主键Id不匹配!"; - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - return ResponseResult.success(table); - } - OnlineDatasourceRelation relation = relationResult.getData(); - OnlineTable slaveTable = relation.getSlaveTable(); - Map dataMap = - onlineOperationService.getMasterData(slaveTable, null, null, dataId); - if (dataMap == null) { - errorMessage = "数据验证失败,从表主键Id不存在!"; - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - OnlineColumn slaveColumn = relation.getSlaveColumn(); - Object relationSlaveDataId = dataMap.get(slaveColumn.getColumnName()); - if (relationSlaveDataId == null) { - errorMessage = "数据验证失败,当前关联的从表字段值为NULL!"; - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - OnlineColumn masterColumn = masterTable.getColumnMap().get(relation.getMasterColumnId()); - if (masterColumn.getPrimaryKey()) { - if (!StrUtil.equals(relationSlaveDataId.toString(), businessKey)) { - errorMessage = "数据验证失败,当前从表主键Id关联的主表Id当前流程的BusinessKey不一致!"; - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - } - Map masterDataMap = - onlineOperationService.getMasterData(masterTable, null, null, businessKey); - if (masterDataMap == null) { - errorMessage = "数据验证失败,主表主键Id不存在!"; - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - Object relationMasterDataId = masterDataMap.get(masterColumn.getColumnName()); - if (relationMasterDataId == null) { - errorMessage = "数据验证失败,当前关联的主表字段值为NULL!"; - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - if (!StrUtil.equals(relationMasterDataId.toString(), relationSlaveDataId.toString())) { - errorMessage = "数据验证失败,当前关联的主表字段值和从表字段值不一致!"; - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - return ResponseResult.success(table); - } - - private ResponseResult verifyUploadOrDownload( - String processDefinitionKey, String processInstanceId, String taskId, Long datasourceId) { - if (!StrUtil.isAllBlank(processInstanceId, taskId)) { - ResponseResult verifyResult = - flowOperationHelper.verifyUploadOrDownloadPermission(processInstanceId, taskId); - if (!verifyResult.isSuccess()) { - return ResponseResult.errorFrom(ResponseResult.errorFrom(verifyResult)); - } - } - String errorMessage; - FlowEntry flowEntry = flowEntryService.getFlowEntryByProcessDefinitionKey(processDefinitionKey); - if (flowEntry == null) { - errorMessage = "数据验证失败,指定流程Id不存在!"; - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - String businessKey = null; - if (processInstanceId != null) { - HistoricProcessInstance instance = flowApiService.getHistoricProcessInstance(processInstanceId); - if (!StrUtil.equals(flowEntry.getProcessDefinitionKey(), instance.getProcessDefinitionKey())) { - errorMessage = "数据验证失败,指定流程实例并不属于当前流程!"; - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - businessKey = instance.getBusinessKey(); - } - List datasourceList = - onlinePageService.getOnlinePageDatasourceListByPageId(flowEntry.getPageId()); - Optional r = datasourceList.stream() - .map(OnlinePageDatasource::getDatasourceId).filter(c -> c.equals(datasourceId)).findFirst(); - if (!r.isPresent()) { - errorMessage = "数据验证失败,当前数据源Id并不属于当前流程!"; - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - return ResponseResult.success(businessKey); - } - - private ResponseResult makeWorkOrderTaskInfo(List flowWorkOrderVoList) { - if (CollUtil.isEmpty(flowWorkOrderVoList)) { - return ResponseResult.success(); - } - Set definitionIdSet = - flowWorkOrderVoList.stream().map(FlowWorkOrderVo::getProcessDefinitionId).collect(Collectors.toSet()); - List flowEntryPublishList = flowEntryService.getFlowEntryPublishList(definitionIdSet); - Map flowEntryPublishMap = - flowEntryPublishList.stream().collect(Collectors.toMap(FlowEntryPublish::getProcessDefinitionId, c -> c)); - for (FlowWorkOrderVo flowWorkOrderVo : flowWorkOrderVoList) { - FlowEntryPublish flowEntryPublish = flowEntryPublishMap.get(flowWorkOrderVo.getProcessDefinitionId()); - flowWorkOrderVo.setInitTaskInfo(flowEntryPublish.getInitTaskInfo()); - } - Set businessKeySet = - flowWorkOrderVoList.stream().map(FlowWorkOrderVo::getBusinessKey).collect(Collectors.toSet()); - Long tableId = flowWorkOrderVoList.get(0).getOnlineTableId(); - OnlineTable masterTable = onlineTableService.getOnlineTableFromCache(tableId); - Set convertedBusinessKeySet = - onlineOperationHelper.convertToTypeValue(masterTable.getPrimaryKeyColumn(), businessKeySet); - List filterList = new LinkedList<>(); - OnlineFilterDto filterDto = new OnlineFilterDto(); - filterDto.setTableName(masterTable.getTableName()); - filterDto.setColumnName(masterTable.getPrimaryKeyColumn().getColumnName()); - filterDto.setFilterType(FieldFilterType.IN_LIST_FILTER); - filterDto.setColumnValue(convertedBusinessKeySet); - TaskInfoVo taskInfoVo = JSON.parseObject(flowWorkOrderVoList.get(0).getInitTaskInfo(), TaskInfoVo.class); - // 验证在线表单及其关联数据源的合法性。 - ResponseResult datasourceResult = this.verifyAndGetOnlineDatasource(taskInfoVo.getFormId()); - if (!datasourceResult.isSuccess()) { - return ResponseResult.errorFrom(datasourceResult); - } - OnlineDatasource datasource = datasourceResult.getData(); - ResponseResult> relationListResult = - onlineOperationHelper.verifyAndGetRelationList(datasource.getDatasourceId(), RelationType.ONE_TO_ONE); - if (!relationListResult.isSuccess()) { - return ResponseResult.errorFrom(relationListResult); - } - List> dataList = onlineOperationService.getMasterDataList( - masterTable, relationListResult.getData(), null, filterList, null); - Map> dataMap = dataList.stream() - .collect(Collectors.toMap(c -> c.get(masterTable.getPrimaryKeyColumn().getColumnName()), c -> c)); - for (FlowWorkOrderVo flowWorkOrderVo : flowWorkOrderVoList) { - Object dataId = onlineOperationHelper.convertToTypeValue( - masterTable.getPrimaryKeyColumn(), flowWorkOrderVo.getBusinessKey()); - Map data = dataMap.get(dataId); - if (data != null) { - flowWorkOrderVo.setMasterData(data); - } - } - List unfinishedProcessInstanceIds = flowWorkOrderVoList.stream() - .filter(c -> !c.getFlowStatus().equals(FlowTaskStatus.FINISHED)) - .map(FlowWorkOrderVo::getProcessInstanceId) - .collect(Collectors.toList()); - if (CollUtil.isEmpty(unfinishedProcessInstanceIds)) { - return ResponseResult.success(); - } - List taskList = flowApiService.getTaskListByProcessInstanceIds(unfinishedProcessInstanceIds); - Map> taskMap = - taskList.stream().collect(Collectors.groupingBy(Task::getProcessInstanceId)); - for (FlowWorkOrderVo flowWorkOrderVo : flowWorkOrderVoList) { - List instanceTaskList = taskMap.get(flowWorkOrderVo.getProcessInstanceId()); - if (instanceTaskList == null) { - continue; - } - JSONArray taskArray = new JSONArray(); - for (Task task : instanceTaskList) { - JSONObject jsonObject = new JSONObject(); - jsonObject.put("taskId", task.getId()); - jsonObject.put("taskName", task.getName()); - jsonObject.put("taskKey", task.getTaskDefinitionKey()); - jsonObject.put("assignee", task.getAssignee()); - taskArray.add(jsonObject); - } - flowWorkOrderVo.setRuntimeTaskInfoList(taskArray); - } - return ResponseResult.success(); - } -} diff --git a/images/orange-demo-activiti-service/common/common-flow-online/src/main/java/com/orangeforms/common/flow/online/service/FlowOnlineOperationService.java b/images/orange-demo-activiti-service/common/common-flow-online/src/main/java/com/orangeforms/common/flow/online/service/FlowOnlineOperationService.java deleted file mode 100644 index 87225eba..00000000 --- a/images/orange-demo-activiti-service/common/common-flow-online/src/main/java/com/orangeforms/common/flow/online/service/FlowOnlineOperationService.java +++ /dev/null @@ -1,116 +0,0 @@ -package com.orangeforms.common.flow.online.service; - -import com.alibaba.fastjson.JSONObject; -import com.orangeforms.common.online.model.OnlineDatasourceRelation; -import com.orangeforms.common.online.model.OnlineTable; -import com.orangeforms.common.online.object.ColumnData; -import com.orangeforms.common.flow.model.FlowTaskComment; -import org.activiti.engine.task.Task; - -import java.util.List; -import java.util.Map; - -/** - * 流程操作服务接口。 - * - * @author Jerry - * @date 2021-06-06 - */ -public interface FlowOnlineOperationService { - - /** - * 保存在线表单的数据,同时启动流程。如果当前用户是第一个用户任务的Assignee, - * 或者第一个用户任务的Assignee是流程发起人变量,该方法还会自动Take第一个任务。 - * - * @param processDefinitionId 流程定义Id。 - * @param flowTaskComment 流程审批批注对象。 - * @param taskVariableData 流程任务的变量数据。 - * @param table 表对象。 - * @param columnDataList 表数据。 - */ - void saveNewAndStartProcess( - String processDefinitionId, - FlowTaskComment flowTaskComment, - JSONObject taskVariableData, - OnlineTable table, - List columnDataList); - - /** - * 保存在线表单的数据,同时启动流程。如果当前用户是第一个用户任务的Assignee, - * 或者第一个用户任务的Assignee是流程发起人变量,该方法还会自动Take第一个任务。 - * - * @param processDefinitionId 流程定义Id。 - * @param flowTaskComment 流程审批批注对象。 - * @param taskVariableData 流程任务的变量数据。 - * @param masterTable 主表对象。 - * @param masterColumnDataList 主表数据。 - * @param slaveColumnDataListMap 关联从表数据Map。 - */ - void saveNewAndStartProcess( - String processDefinitionId, - FlowTaskComment flowTaskComment, - JSONObject taskVariableData, - OnlineTable masterTable, - List masterColumnDataList, - Map>> slaveColumnDataListMap); - - /** - * 保存在线表单的数据,同时Take用户任务。 - * - * @param processInstanceId 流程实例Id。 - * @param taskId 流程任务Id。 - * @param flowTaskComment 流程审批批注对象。 - * @param taskVariableData 流程任务的变量数据。 - * @param table 表对象。 - * @param columnDataList 表数据。 - */ - void saveNewAndTakeTask( - String processInstanceId, - String taskId, - FlowTaskComment flowTaskComment, - JSONObject taskVariableData, - OnlineTable table, - List columnDataList); - - /** - * 保存在线表单的数据,同时Take用户任务。 - * - * @param processInstanceId 流程实例Id。 - * @param taskId 流程任务Id。 - * @param flowTaskComment 流程审批批注对象。 - * @param taskVariableData 流程任务的变量数据。 - * @param masterTable 主表对象。 - * @param masterColumnDataList 主表数据。 - * @param slaveColumnDataListMap 关联从表数据Map。 - */ - void saveNewAndTakeTask( - String processInstanceId, - String taskId, - FlowTaskComment flowTaskComment, - JSONObject taskVariableData, - OnlineTable masterTable, - List masterColumnDataList, - Map>> slaveColumnDataListMap); - - /** - * 保存业务表数据,同时接收流程任务。 - * - * @param task 流程任务。 - * @param flowTaskComment 流程审批批注对象。 - * @param taskVariableData 流程任务的变量数据。 - * @param masterTable 主表对象。 - * @param masterData 主表数据。 - * @param masterDataId 主表数据主键。 - * @param slaveData 从表数据。 - * @param datasourceId 在线表所属数据源Id。 - */ - void updateAndTakeTask( - Task task, - FlowTaskComment flowTaskComment, - JSONObject taskVariableData, - OnlineTable masterTable, - JSONObject masterData, - String masterDataId, - JSONObject slaveData, - Long datasourceId); -} diff --git a/images/orange-demo-activiti-service/common/common-flow-online/src/main/java/com/orangeforms/common/flow/online/service/impl/FlowOnlineOperationServiceImpl.java b/images/orange-demo-activiti-service/common/common-flow-online/src/main/java/com/orangeforms/common/flow/online/service/impl/FlowOnlineOperationServiceImpl.java deleted file mode 100644 index 07835f5a..00000000 --- a/images/orange-demo-activiti-service/common/common-flow-online/src/main/java/com/orangeforms/common/flow/online/service/impl/FlowOnlineOperationServiceImpl.java +++ /dev/null @@ -1,247 +0,0 @@ -package com.orangeforms.common.flow.online.service.impl; - -import cn.hutool.core.collection.CollUtil; -import cn.hutool.core.map.MapUtil; -import com.alibaba.fastjson.JSONArray; -import com.alibaba.fastjson.JSONObject; -import com.orangeforms.common.core.object.ResponseResult; -import com.orangeforms.common.online.model.OnlineColumn; -import com.orangeforms.common.online.model.OnlineDatasourceRelation; -import com.orangeforms.common.online.model.OnlineTable; -import com.orangeforms.common.online.model.constant.RelationType; -import com.orangeforms.common.online.object.ColumnData; -import com.orangeforms.common.online.service.OnlineOperationService; -import com.orangeforms.common.online.util.OnlineOperationHelper; -import com.orangeforms.common.flow.constant.FlowApprovalType; -import com.orangeforms.common.flow.constant.FlowTaskStatus; -import com.orangeforms.common.flow.exception.FlowOperationException; -import com.orangeforms.common.flow.model.FlowTaskComment; -import com.orangeforms.common.flow.service.FlowApiService; -import com.orangeforms.common.flow.service.FlowWorkOrderService; -import com.orangeforms.common.flow.online.service.FlowOnlineOperationService; -import lombok.extern.slf4j.Slf4j; -import org.activiti.engine.runtime.ProcessInstance; -import org.activiti.engine.task.Task; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; -import org.springframework.transaction.annotation.Transactional; - -import java.util.List; -import java.util.Map; - -@Slf4j -@Service("flowOnlineOperationService") -public class FlowOnlineOperationServiceImpl implements FlowOnlineOperationService { - - @Autowired - private FlowApiService flowApiService; - @Autowired - private FlowWorkOrderService flowWorkOrderService; - @Autowired - private OnlineOperationService onlineOperationService; - @Autowired - private OnlineOperationHelper onlineOperationHelper; - - @Transactional(rollbackFor = Exception.class) - @Override - public void saveNewAndStartProcess( - String processDefinitionId, - FlowTaskComment flowTaskComment, - JSONObject taskVariableData, - OnlineTable table, - List columnDataList) { - Object dataId = onlineOperationService.saveNew(table, columnDataList); - ProcessInstance instance = - flowApiService.startAndTakeFirst(processDefinitionId, dataId, flowTaskComment, taskVariableData); - flowWorkOrderService.saveNew(instance, dataId, table.getTableId(), null); - } - - @Transactional(rollbackFor = Exception.class) - @Override - public void saveNewAndStartProcess( - String processDefinitionId, - FlowTaskComment flowTaskComment, - JSONObject taskVariableData, - OnlineTable masterTable, - List masterColumnDataList, - Map>> slaveColumnDataListMap) { - Object dataId = onlineOperationService.saveNewAndSlaveRelation( - masterTable, masterColumnDataList, slaveColumnDataListMap); - ProcessInstance instance = - flowApiService.startAndTakeFirst(processDefinitionId, dataId, flowTaskComment, taskVariableData); - flowWorkOrderService.saveNew(instance, dataId, masterTable.getTableId(), null); - } - - @Transactional(rollbackFor = Exception.class) - @Override - public void saveNewAndTakeTask( - String processInstanceId, - String taskId, - FlowTaskComment flowTaskComment, - JSONObject taskVariableData, - OnlineTable table, - List columnDataList) { - Object dataId = onlineOperationService.saveNew(table, columnDataList); - Task task = flowApiService.getProcessInstanceActiveTask(processInstanceId, taskId); - flowApiService.setBusinessKeyForProcessInstance(processInstanceId, dataId); - Map variables = - flowApiService.initAndGetProcessInstanceVariables(task.getProcessDefinitionId()); - if (taskVariableData == null) { - taskVariableData = new JSONObject(); - } - taskVariableData.putAll(variables); - flowApiService.completeTask(task, flowTaskComment, taskVariableData); - ProcessInstance instance = flowApiService.getProcessInstance(processInstanceId); - flowWorkOrderService.saveNew(instance, dataId, table.getTableId(), null); - } - - @Transactional(rollbackFor = Exception.class) - @Override - public void saveNewAndTakeTask( - String processInstanceId, - String taskId, - FlowTaskComment flowTaskComment, - JSONObject taskVariableData, - OnlineTable masterTable, - List masterColumnDataList, - Map>> slaveColumnDataListMap) { - Object dataId = onlineOperationService.saveNewAndSlaveRelation( - masterTable, masterColumnDataList, slaveColumnDataListMap); - Task task = flowApiService.getProcessInstanceActiveTask(processInstanceId, taskId); - flowApiService.setBusinessKeyForProcessInstance(processInstanceId, dataId); - Map variables = - flowApiService.initAndGetProcessInstanceVariables(task.getProcessDefinitionId()); - if (taskVariableData == null) { - taskVariableData = new JSONObject(); - } - taskVariableData.putAll(variables); - flowApiService.completeTask(task, flowTaskComment, taskVariableData); - ProcessInstance instance = flowApiService.getProcessInstance(processInstanceId); - flowWorkOrderService.saveNew(instance, dataId, masterTable.getTableId(), null); - } - - @Transactional(rollbackFor = Exception.class) - @Override - public void updateAndTakeTask( - Task task, - FlowTaskComment flowTaskComment, - JSONObject taskVariableData, - OnlineTable masterTable, - JSONObject masterData, - String masterDataId, - JSONObject slaveData, - Long datasourceId) { - int flowStatus = FlowTaskStatus.APPROVING; - if (flowTaskComment.getApprovalType().equals(FlowApprovalType.REFUSE)) { - flowStatus = FlowTaskStatus.REFUSED; - } - flowWorkOrderService.updateFlowStatusByProcessInstanceId(task.getProcessInstanceId(), flowStatus); - this.handleMasterTableData(masterTable, masterData, masterDataId); - if (slaveData != null) { - for (Map.Entry relationEntry : slaveData.entrySet()) { - Long relationId = Long.parseLong(relationEntry.getKey()); - this.handleSlaveTableData( - relationId, relationEntry.getValue(), datasourceId, masterTable, masterData, masterDataId); - } - } - flowApiService.completeTask(task, flowTaskComment, taskVariableData); - } - - private void handleMasterTableData(OnlineTable masterTable, JSONObject masterData, String dataId) { - // 如果存在主表数据,就执行主表数据的更新。 - if (masterData != null) { - Map originalMasterData = - onlineOperationService.getMasterData(masterTable, null, null, dataId); - for (Map.Entry entry : originalMasterData.entrySet()) { - masterData.putIfAbsent(entry.getKey(), entry.getValue()); - } - ResponseResult> columnDataListResult = - onlineOperationHelper.buildTableData(masterTable, masterData, true, null); - if (!columnDataListResult.isSuccess()) { - throw new FlowOperationException(columnDataListResult.getErrorMessage()); - } - if (!onlineOperationService.update(masterTable, columnDataListResult.getData())) { - throw new FlowOperationException("主表数据不存在!"); - } - } - } - - private void handleSlaveTableData( - Long relationId, - Object slaveData, - Long datasourceId, - OnlineTable masterTable, - Map masterData, - String masterDataId) { - ResponseResult relationResult = - onlineOperationHelper.verifyAndGetOneToManyRelation(datasourceId, relationId); - if (!relationResult.isSuccess()) { - throw new FlowOperationException(relationResult.getErrorMessage()); - } - OnlineDatasourceRelation relation = relationResult.getData(); - OnlineTable slaveTable = relation.getSlaveTable(); - if (relation.getRelationType().equals(RelationType.ONE_TO_ONE)) { - String keyColumnName = slaveTable.getPrimaryKeyColumn().getColumnName(); - JSONObject relationData = (JSONObject) slaveData; - if (MapUtil.isEmpty(relationData)) { - return; - } - String slaveDataId = relationData.getString(keyColumnName); - if (slaveDataId == null) { - ResponseResult> columnDataListResult = - onlineOperationHelper.buildTableData(slaveTable, relationData, false, null); - if (!columnDataListResult.isSuccess()) { - throw new FlowOperationException(columnDataListResult.getErrorMessage()); - } - onlineOperationService.saveNew(slaveTable, columnDataListResult.getData()); - } else { - Map originalSlaveData = - onlineOperationService.getMasterData(slaveTable, null, null, slaveDataId); - for (Map.Entry entry : originalSlaveData.entrySet()) { - relationData.putIfAbsent(entry.getKey(), entry.getValue()); - } - ResponseResult> columnDataListResult = - onlineOperationHelper.buildTableData(slaveTable, relationData, true, null); - if (!columnDataListResult.isSuccess()) { - throw new FlowOperationException(columnDataListResult.getErrorMessage()); - } - if (!onlineOperationService.update(slaveTable, columnDataListResult.getData())) { - throw new FlowOperationException("关联从表 [" + slaveTable.getTableName() + "] 中的更新数据不存在"); - } - } - } else if (relation.getRelationType().equals(RelationType.ONE_TO_MANY)) { - JSONArray relationDataArray = (JSONArray) slaveData; - if (CollUtil.isEmpty(relationDataArray)) { - return; - } - JSONObject firstData = relationDataArray.getJSONObject(0); - Object key = firstData.get(slaveTable.getPrimaryKeyColumn().getColumnName()); - // 如果一对多关联数据中存在主键数据,则需要先批量删除。 - if (key != null) { - OnlineColumn slaveColumn = relation.getSlaveTable().getColumnMap().get(relation.getSlaveColumnId()); - Object relationSlaveColumnValue = firstData.get(slaveColumn.getColumnName()); - onlineOperationService.forceDelete( - relation.getSlaveTable(), slaveColumn, relationSlaveColumnValue.toString()); - } - if (masterData == null) { - masterData = onlineOperationService.getMasterData( - masterTable, null, null, masterDataId); - } - for (int i = 0; i < relationDataArray.size(); i++) { - JSONObject relationSlaveData = relationDataArray.getJSONObject(i); - // 自动补齐主表关联数据。 - OnlineColumn masterColumn = masterTable.getColumnMap().get(relation.getMasterColumnId()); - Object masterColumnValue = masterData.get(masterColumn.getColumnName()); - OnlineColumn slaveColumn = slaveTable.getColumnMap().get(relation.getSlaveColumnId()); - relationSlaveData.put(slaveColumn.getColumnName(), masterColumnValue); - // 拆解主表和一对多关联从表的输入参数,并构建出数据表的待插入数据列表。 - ResponseResult> columnDataListResult = - onlineOperationHelper.buildTableData(slaveTable, relationSlaveData, false, null); - if (!columnDataListResult.isSuccess()) { - throw new FlowOperationException(columnDataListResult.getErrorMessage()); - } - onlineOperationService.saveNew(slaveTable, columnDataListResult.getData()); - } - } - } -} diff --git a/images/orange-demo-activiti-service/common/common-flow-online/src/main/resources/META-INF/spring.factories b/images/orange-demo-activiti-service/common/common-flow-online/src/main/resources/META-INF/spring.factories deleted file mode 100644 index c5875ba5..00000000 --- a/images/orange-demo-activiti-service/common/common-flow-online/src/main/resources/META-INF/spring.factories +++ /dev/null @@ -1,2 +0,0 @@ -org.springframework.boot.autoconfigure.EnableAutoConfiguration=\ -com.orangeforms.common.flow.online.config.FlowOnlineAutoConfig \ No newline at end of file diff --git a/images/orange-demo-activiti-service/common/common-flow/pom.xml b/images/orange-demo-activiti-service/common/common-flow/pom.xml deleted file mode 100644 index 7cabf1fc..00000000 --- a/images/orange-demo-activiti-service/common/common-flow/pom.xml +++ /dev/null @@ -1,92 +0,0 @@ - - - - common - com.orangeforms - 1.0.0 - - 4.0.0 - - common-flow - 1.0.0 - common-flow - jar - - - - com.orangeforms - common-datafilter - 1.0.0 - - - com.orangeforms - common-sequence - 1.0.0 - - - com.orangeforms - common-log - 1.0.0 - - - com.orangeforms - common-swagger - 1.0.0 - - - org.activiti - activiti-spring-boot-starter - ${activiti.version} - - - org.mybatis - mybatis - - - spring-boot-starter-logging - org.springframework.boot - - - el-api - javax.el - - - - - org.activiti - activiti-json-converter - ${activiti.version} - - - org.activiti.dependencies - activiti-dependencies - ${activiti.version} - pom - - - org.springframework.boot - spring-boot-starter-security - - - - - - - src/main/resources - - **/*.* - - false - - - src/main/java - - **/*.xml - - false - - - - \ No newline at end of file diff --git a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/base/service/BaseFlowService.java b/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/base/service/BaseFlowService.java deleted file mode 100644 index 302a8c60..00000000 --- a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/base/service/BaseFlowService.java +++ /dev/null @@ -1,62 +0,0 @@ -package com.orangeforms.common.flow.base.service; - -import com.alibaba.fastjson.JSONObject; -import com.orangeforms.common.core.base.service.BaseService; -import com.orangeforms.common.flow.constant.FlowApprovalType; -import com.orangeforms.common.flow.constant.FlowTaskStatus; -import com.orangeforms.common.flow.model.FlowTaskComment; -import com.orangeforms.common.flow.service.FlowApiService; -import com.orangeforms.common.flow.service.FlowWorkOrderService; -import org.activiti.engine.runtime.ProcessInstance; -import org.activiti.engine.task.Task; -import org.springframework.beans.factory.annotation.Autowired; - -import java.io.Serializable; - -public abstract class BaseFlowService extends BaseService { - - @Autowired - private FlowApiService flowApiService; - @Autowired - private FlowWorkOrderService flowWorkOrderService; - - public void startWithBusinessKey(String processDefinitionId, K dataId) { - ProcessInstance instance = flowApiService.start(processDefinitionId, dataId); - flowWorkOrderService.saveNew(instance, dataId, null, super.tableName); - } - - public void startAndTakeFirst( - String processDefinitionId, K dataId, FlowTaskComment comment, JSONObject variables) { - ProcessInstance instance = flowApiService.startAndTakeFirst( - processDefinitionId, dataId, comment, variables); - flowWorkOrderService.saveNew(instance, dataId, null, super.tableName); - } - - public void takeFirstTask( - String processInstanceId, String taskId, K dataId, FlowTaskComment comment, JSONObject variables) { - Task task = flowApiService.getProcessInstanceActiveTask(processInstanceId, taskId); - flowApiService.setBusinessKeyForProcessInstance(processInstanceId, dataId); - flowApiService.completeTask(task, comment, variables); - ProcessInstance instance = flowApiService.getProcessInstance(processInstanceId); - flowWorkOrderService.saveNew(instance, dataId, null, super.tableName); - } - - public void takeTask(Task task, K dataId, FlowTaskComment comment, JSONObject variables) { - int flowStatus = FlowTaskStatus.APPROVING; - if (comment.getApprovalType().equals(FlowApprovalType.REFUSE)) { - flowStatus = FlowTaskStatus.REFUSED; - } - flowWorkOrderService.updateFlowStatusByProcessInstanceId(task.getProcessInstanceId(), flowStatus); - flowApiService.completeTask(task, comment, variables); - } - - /** - * 在流程实例审批结束后,需要进行审批表到发布表数据同步的服务实现子类,需要实现该方法。 - * - * @param processInstanceId 流程实例Id。 - * @param businessKey 业务主键Id。如果与实际主键值类型不同,需要在子类中自行完成类型转换。 - */ - public void doSyncBusinessData(String processInstanceId, String businessKey) { - throw new UnsupportedOperationException(); - } -} diff --git a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/command/AddMultiInstanceExecutionCmd.java b/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/command/AddMultiInstanceExecutionCmd.java deleted file mode 100644 index ba81ad3b..00000000 --- a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/command/AddMultiInstanceExecutionCmd.java +++ /dev/null @@ -1,89 +0,0 @@ -package com.orangeforms.common.flow.command; - -import com.orangeforms.common.core.exception.MyRuntimeException; -import com.orangeforms.common.flow.constant.FlowConstant; -import org.activiti.bpmn.model.Activity; -import org.activiti.bpmn.model.BpmnModel; -import org.activiti.bpmn.model.MultiInstanceLoopCharacteristics; -import org.activiti.bpmn.model.UserTask; -import org.activiti.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior; -import org.activiti.engine.impl.bpmn.behavior.ParallelMultiInstanceBehavior; -import org.activiti.engine.impl.history.HistoryManager; -import org.activiti.engine.impl.interceptor.Command; -import org.activiti.engine.impl.interceptor.CommandContext; -import org.activiti.engine.impl.persistence.entity.ExecutionEntity; -import org.activiti.engine.impl.persistence.entity.ExecutionEntityManager; -import org.activiti.engine.impl.persistence.entity.TaskEntity; -import org.activiti.engine.impl.persistence.entity.TaskEntityManager; -import org.activiti.engine.impl.util.ProcessDefinitionUtil; - -import java.io.Serializable; - -/** - * 多实例加签命令对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -public class AddMultiInstanceExecutionCmd implements Command, Serializable { - - protected final String NUMBER_OF_ACTIVE_INSTANCES = "nrOfActiveInstances"; - protected final String NUMBER_OF_COMPLETED_INSTANCES = "nrOfCompletedInstances"; - protected String collectionElementIndexVariable = "loopCounter"; - private String startTaskId; - private String taskId; - private String assignee; - - public AddMultiInstanceExecutionCmd(String startTaskId, String taskId, String assignee) { - this.startTaskId = startTaskId; - this.taskId = taskId; - this.assignee = assignee; - } - - @Override - public Void execute(CommandContext commandContext) { - TaskEntityManager taskEntityManager = commandContext.getTaskEntityManager(); - ExecutionEntityManager executionEntityManager = commandContext.getExecutionEntityManager(); - //根据任务id获取任务实例 - TaskEntity taskEntity = taskEntityManager.findById(taskId); - //根据执行实例ID获取当前执行实例 - ExecutionEntity multiExecutionEntity = executionEntityManager.findById(taskEntity.getExecutionId()); - // 获取流程执行实例(即当前执行实例的父实例) - ExecutionEntity parentExecutionEntity = multiExecutionEntity.getParent(); - //判断当前执行实例的节点是否是多实例节点 - BpmnModel bpmnModel = ProcessDefinitionUtil.getBpmnModel(multiExecutionEntity.getProcessDefinitionId()); - Activity miActivityElement = (Activity) bpmnModel.getFlowElement(multiExecutionEntity.getCurrentActivityId()); - MultiInstanceLoopCharacteristics loopCharacteristics = miActivityElement.getLoopCharacteristics(); - if (loopCharacteristics == null) { - throw new MyRuntimeException("此节点不是多实例节点!"); - } - //判断是否是并行多实例 - if (loopCharacteristics.isSequential()) { - throw new MyRuntimeException("此节点为串行多实例节点!"); - } - //创建新的子实例 - ExecutionEntity childExecution = executionEntityManager.createChildExecution(parentExecutionEntity); - //获取并为新的执行实例设置当前活动节点 - UserTask currentFlowElement = (UserTask) multiExecutionEntity.getCurrentFlowElement(); - //设置处理人 - childExecution.setCurrentFlowElement(currentFlowElement); - childExecution.setVariableLocal("assignee", assignee); - childExecution.setVariableLocal(FlowConstant.MULTI_SIGN_START_TASK_VAR, startTaskId); - //获取设置变量 - Integer nrOfInstances = (Integer) parentExecutionEntity.getVariableLocal(FlowConstant.NUMBER_OF_INSTANCES_VAR); - Integer nrOfActiveInstances = (Integer) parentExecutionEntity.getVariableLocal(NUMBER_OF_ACTIVE_INSTANCES); - parentExecutionEntity.setVariableLocal(FlowConstant.NUMBER_OF_INSTANCES_VAR, nrOfInstances + 1); - parentExecutionEntity.setVariableLocal(NUMBER_OF_ACTIVE_INSTANCES, nrOfActiveInstances + 1); - //通知活动开始 - HistoryManager historyManager = commandContext.getHistoryManager(); - historyManager.recordActivityStart(childExecution); - //获取处理行为类 - ParallelMultiInstanceBehavior prallelMultiInstanceBehavior = - (ParallelMultiInstanceBehavior) miActivityElement.getBehavior(); - AbstractBpmnActivityBehavior innerActivityBehavior = prallelMultiInstanceBehavior.getInnerActivityBehavior(); - //执行 - innerActivityBehavior.execute(childExecution); - return null; - } -} - diff --git a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/config/FlowAutoConfig.java b/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/config/FlowAutoConfig.java deleted file mode 100644 index 1a982ea2..00000000 --- a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/config/FlowAutoConfig.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.orangeforms.common.flow.config; - -import org.springframework.boot.context.properties.EnableConfigurationProperties; - -/** - * common-flow模块的自动配置引导类。 - * - * @author Jerry - * @date 2021-06-06 - */ -@EnableConfigurationProperties({FlowProperties.class}) -public class FlowAutoConfig { -} diff --git a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/config/FlowProperties.java b/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/config/FlowProperties.java deleted file mode 100644 index 5f2dbd64..00000000 --- a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/config/FlowProperties.java +++ /dev/null @@ -1,20 +0,0 @@ -package com.orangeforms.common.flow.config; - -import lombok.Data; -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * 工作流的配置对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Data -@ConfigurationProperties(prefix = "common-flow") -public class FlowProperties { - - /** - * 工作落工单操作接口的URL前缀。 - */ - private String urlPrefix; -} diff --git a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/constant/FlowApprovalType.java b/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/constant/FlowApprovalType.java deleted file mode 100644 index b519de6c..00000000 --- a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/constant/FlowApprovalType.java +++ /dev/null @@ -1,92 +0,0 @@ -package com.orangeforms.common.flow.constant; - -import java.util.HashMap; -import java.util.Map; - -/** - * 工作流任务触发BUTTON。 - * - * @author Jerry - * @date 2021-06-06 - */ -public final class FlowApprovalType { - - /** - * 保存。 - */ - public static final String SAVE = "save"; - /** - * 同意。 - */ - public static final String AGREE = "agree"; - /** - * 拒绝。 - */ - public static final String REFUSE = "refuse"; - /** - * 驳回。 - */ - public static final String REJECT = "reject"; - /** - * 撤销。 - */ - public static final String REVOKE = "revoke"; - /** - * 指派。 - */ - public static final String TRANSFER = "transfer"; - /** - * 多实例会签。 - */ - public static final String MULTI_SIGN = "multi_sign"; - /** - * 会签同意。 - */ - public static final String MULTI_AGREE = "multi_agree"; - /** - * 会签拒绝。 - */ - public static final String MULTI_REFUSE = "multi_refuse"; - /** - * 会签弃权。 - */ - public static final String MULTI_ABSTAIN = "multi_abstain"; - /** - * 多实例加签。 - */ - public static final String MULTI_CONSIGN = "multi_consign"; - /** - * 中止。 - */ - public static final String STOP = "stop"; - - private static final Map DICT_MAP = new HashMap<>(2); - static { - DICT_MAP.put(SAVE, "保存"); - DICT_MAP.put(AGREE, "同意"); - DICT_MAP.put(REFUSE, "拒绝"); - DICT_MAP.put(TRANSFER, "指派"); - DICT_MAP.put(MULTI_SIGN, "多实例会签"); - DICT_MAP.put(MULTI_AGREE, "会签同意"); - DICT_MAP.put(MULTI_REFUSE, "会签拒绝"); - DICT_MAP.put(MULTI_ABSTAIN, "会签弃权"); - DICT_MAP.put(MULTI_CONSIGN, "多实例加签"); - DICT_MAP.put(STOP, "中止"); - } - - /** - * 判断参数是否为当前常量字典的合法值。 - * - * @param value 待验证的参数值。 - * @return 合法返回true,否则false。 - */ - public static boolean isValid(Integer value) { - return value != null && DICT_MAP.containsKey(value); - } - - /** - * 私有构造函数,明确标识该常量类的作用。 - */ - private FlowApprovalType() { - } -} diff --git a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/constant/FlowConstant.java b/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/constant/FlowConstant.java deleted file mode 100644 index b7a458da..00000000 --- a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/constant/FlowConstant.java +++ /dev/null @@ -1,120 +0,0 @@ -package com.orangeforms.common.flow.constant; - -/** - * 工作流中的常量数据。 - * - * @author Jerry - * @date 2021-06-06 - */ -public class FlowConstant { - - /** - * 标识流程实例启动用户的变量名。 - */ - public final static String START_USER_NAME_VAR = "${startUserName}"; - - /** - * 流程实例发起人变量名。 - */ - public final static String PROC_INSTANCE_INITIATOR_VAR = "initiator"; - - /** - * 流程实例中发起人用户的变量名。 - */ - public final static String PROC_INSTANCE_START_USER_NAME_VAR = "startUserName"; - - /** - * 操作类型变量。 - */ - public final static String OPERATION_TYPE_VAR = "operationType"; - - /** - * 多任务拒绝数量变量。 - */ - public final static String MULTI_REFUSE_COUNT_VAR = "multiRefuseCount"; - - /** - * 多任务同意数量变量。 - */ - public final static String MULTI_AGREE_COUNT_VAR = "multiAgreeCount"; - - /** - * 多任务弃权数量变量。 - */ - public final static String MULTI_ABSTAIN_COUNT_VAR = "multiAbstainCount"; - - /** - * 会签发起任务。 - */ - public final static String MULTI_SIGN_START_TASK_VAR = "multiSignStartTask"; - - /** - * 会签任务总数量。 - */ - public final static String MULTI_SIGN_NUM_OF_INSTANCES_VAR = "multiNumOfInstances"; - - /** - * 多实例实例数量变量。 - */ - public final static String NUMBER_OF_INSTANCES_VAR = "nrOfInstances"; - - /** - * 多任务指派人列表变量。 - */ - public final static String MULTI_ASSIGNEE_LIST_VAR = "assigneeList"; - - /** - * 上级部门领导审批变量 - */ - public final static String GROUP_TYPE_UP_DEPT_POST_LEADER_VAR = "upDeptPostLeader"; - - /** - * 上级部门领导审批变量 - */ - public final static String GROUP_TYPE_DEPT_POST_LEADER_VAR = "deptPostLeader"; - - /** - * 所有部门岗位审批变量 - */ - public final static String GROUP_TYPE_ALL_DEPT_POST_VAR = "allDeptPost"; - - /** - * 本部门岗位审批变量 - */ - public final static String GROUP_TYPE_SELF_DEPT_POST_VAR = "selfDeptPost"; - - /** - * 上级部门岗位审批变量 - */ - public final static String GROUP_TYPE_UP_DEPT_POST_VAR = "upDeptPost"; - - /** - * 任意部门关联的岗位审批变量 - */ - public final static String GROUP_TYPE_DEPT_POST_VAR = "deptPost"; - - /** - * 岗位 - */ - public final static String GROUP_TYPE_POST = "POST"; - - /** - * 上级部门领导审批 - */ - public final static String GROUP_TYPE_UP_DEPT_POST_LEADER = "UP_DEPT_POST_LEADER"; - - /** - * 本部门岗位领导审批 - */ - public final static String GROUP_TYPE_DEPT_POST_LEADER = "DEPT_POST_LEADER"; - - /** - * 本部门岗位前缀。 - */ - public final static String SELF_DEPT_POST_PREFIX = "SELF_DEPT_"; - - /** - * 本部门岗位前缀。 - */ - public final static String UP_DEPT_POST_PREFIX = "UP_DEPT_"; -} diff --git a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/constant/FlowTaskStatus.java b/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/constant/FlowTaskStatus.java deleted file mode 100644 index c788f70c..00000000 --- a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/constant/FlowTaskStatus.java +++ /dev/null @@ -1,64 +0,0 @@ -package com.orangeforms.common.flow.constant; - -import java.util.HashMap; -import java.util.Map; - -/** - * 工作流任务类型。 - * - * @author Jerry - * @date 2021-06-06 - */ -public final class FlowTaskStatus { - - /** - * 已提交。 - */ - public static final int SUBMITTED = 0; - /** - * 审批中。 - */ - public static final int APPROVING = 1; - /** - * 被拒绝。 - */ - public static final int REFUSED = 2; - /** - * 已结束。 - */ - public static final int FINISHED = 3; - /** - * 提前停止。 - */ - public static final Integer STOPPED = 4; - /** - * 已取消。 - */ - public static final Integer CANCELLED = 5; - - private static final Map DICT_MAP = new HashMap<>(2); - static { - DICT_MAP.put(SUBMITTED, "已提交"); - DICT_MAP.put(APPROVING, "审批中"); - DICT_MAP.put(REFUSED, "被拒绝"); - DICT_MAP.put(FINISHED, "已结束"); - DICT_MAP.put(STOPPED, "提前停止"); - DICT_MAP.put(CANCELLED, "已取消"); - } - - /** - * 判断参数是否为当前常量字典的合法值。 - * - * @param value 待验证的参数值。 - * @return 合法返回true,否则false。 - */ - public static boolean isValid(Integer value) { - return value != null && DICT_MAP.containsKey(value); - } - - /** - * 私有构造函数,明确标识该常量类的作用。 - */ - private FlowTaskStatus() { - } -} diff --git a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/constant/FlowTaskType.java b/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/constant/FlowTaskType.java deleted file mode 100644 index 215d2ae0..00000000 --- a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/constant/FlowTaskType.java +++ /dev/null @@ -1,44 +0,0 @@ -package com.orangeforms.common.flow.constant; - -import java.util.HashMap; -import java.util.Map; - -/** - * 工作流任务类型。 - * - * @author Jerry - * @date 2021-06-06 - */ -public final class FlowTaskType { - - /** - * 其他类型任务。 - */ - public static final int OTHER_TYPE = 0; - /** - * 用户任务。 - */ - public static final int USER_TYPE = 1; - - private static final Map DICT_MAP = new HashMap<>(2); - static { - DICT_MAP.put(OTHER_TYPE, "其他任务类型"); - DICT_MAP.put(USER_TYPE, "用户任务类型"); - } - - /** - * 判断参数是否为当前常量字典的合法值。 - * - * @param value 待验证的参数值。 - * @return 合法返回true,否则false。 - */ - public static boolean isValid(Integer value) { - return value != null && DICT_MAP.containsKey(value); - } - - /** - * 私有构造函数,明确标识该常量类的作用。 - */ - private FlowTaskType() { - } -} diff --git a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/controller/FlowCategoryController.java b/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/controller/FlowCategoryController.java deleted file mode 100644 index 642a1de5..00000000 --- a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/controller/FlowCategoryController.java +++ /dev/null @@ -1,199 +0,0 @@ -package com.orangeforms.common.flow.controller; - -import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; -import io.swagger.annotations.Api; -import cn.hutool.core.collection.CollUtil; -import cn.hutool.core.util.StrUtil; -import cn.jimmyshi.beanquery.BeanQuery; -import com.github.pagehelper.page.PageMethod; -import com.orangeforms.common.core.annotation.MyRequestBody; -import com.orangeforms.common.core.constant.ErrorCodeEnum; -import com.orangeforms.common.core.object.*; -import com.orangeforms.common.core.util.MyCommonUtil; -import com.orangeforms.common.core.util.MyModelUtil; -import com.orangeforms.common.core.util.MyPageUtil; -import com.orangeforms.common.core.validator.UpdateGroup; -import com.orangeforms.common.flow.dto.*; -import com.orangeforms.common.flow.model.*; -import com.orangeforms.common.flow.model.constant.FlowEntryStatus; -import com.orangeforms.common.flow.service.*; -import com.orangeforms.common.flow.vo.*; -import lombok.extern.slf4j.Slf4j; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.*; - -import javax.validation.groups.Default; -import java.util.HashSet; -import java.util.List; -import java.util.Map; - -/** - * 工作流分类操作控制器类。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Api(tags = "工作流分类操作接口") -@Slf4j -@RestController -@RequestMapping("${common-flow.urlPrefix}/flowCategory") -public class FlowCategoryController { - - @Autowired - private FlowCategoryService flowCategoryService; - @Autowired - private FlowEntryService flowEntryService; - - /** - * 新增FlowCategory数据。 - * - * @param flowCategoryDto 新增对象。 - * @return 应答结果对象,包含新增对象主键Id。 - */ - @ApiOperationSupport(ignoreParameters = {"flowCategoryDto.categoryId"}) - @PostMapping("/add") - public ResponseResult add(@MyRequestBody FlowCategoryDto flowCategoryDto) { - String errorMessage = MyCommonUtil.getModelValidationError(flowCategoryDto); - if (errorMessage != null) { - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - FlowCategory flowCategory = MyModelUtil.copyTo(flowCategoryDto, FlowCategory.class); - flowCategory = flowCategoryService.saveNew(flowCategory); - return ResponseResult.success(flowCategory.getCategoryId()); - } - - /** - * 更新FlowCategory数据。 - * - * @param flowCategoryDto 更新对象。 - * @return 应答结果对象。 - */ - @PostMapping("/update") - public ResponseResult update(@MyRequestBody FlowCategoryDto flowCategoryDto) { - String errorMessage = MyCommonUtil.getModelValidationError(flowCategoryDto, Default.class, UpdateGroup.class); - if (errorMessage != null) { - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - FlowCategory flowCategory = MyModelUtil.copyTo(flowCategoryDto, FlowCategory.class); - FlowCategory originalFlowCategory = flowCategoryService.getById(flowCategory.getCategoryId()); - if (originalFlowCategory == null) { - errorMessage = "数据验证失败,当前流程分类并不存在,请刷新后重试!"; - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST, errorMessage); - } - if (!StrUtil.equals(flowCategory.getCode(), originalFlowCategory.getCode())) { - FlowEntry filter = new FlowEntry(); - filter.setCategoryId(flowCategory.getCategoryId()); - filter.setStatus(FlowEntryStatus.PUBLISHED); - List flowEntryList = flowEntryService.getListByFilter(filter); - if (CollUtil.isNotEmpty(flowEntryList)) { - errorMessage = "数据验证失败,当前流程分类存在已经发布的流程数据,因此分类标识不能修改!"; - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - } - if (!flowCategoryService.update(flowCategory, originalFlowCategory)) { - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST); - } - return ResponseResult.success(); - } - - /** - * 删除FlowCategory数据。 - * - * @param categoryId 删除对象主键Id。 - * @return 应答结果对象。 - */ - @PostMapping("/delete") - public ResponseResult delete(@MyRequestBody Long categoryId) { - String errorMessage; - if (MyCommonUtil.existBlankArgument(categoryId)) { - return ResponseResult.error(ErrorCodeEnum.ARGUMENT_NULL_EXIST); - } - // 验证关联Id的数据合法性 - FlowCategory originalFlowCategory = flowCategoryService.getById(categoryId); - if (originalFlowCategory == null) { - errorMessage = "数据验证失败,当前流程分类并不存在,请刷新后重试!"; - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST, errorMessage); - } - FlowEntry filter = new FlowEntry(); - filter.setCategoryId(categoryId); - List flowEntryList = flowEntryService.getListByFilter(filter); - if (CollUtil.isNotEmpty(flowEntryList)) { - errorMessage = "数据验证失败,请先删除当前流程分类关联的流程数据!"; - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - if (!flowCategoryService.remove(categoryId)) { - errorMessage = "数据操作失败,删除的对象不存在,请刷新后重试!"; - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST, errorMessage); - } - return ResponseResult.success(); - } - - /** - * 列出符合过滤条件的FlowCategory列表。 - * - * @param flowCategoryDtoFilter 过滤对象。 - * @param orderParam 排序参数。 - * @param pageParam 分页参数。 - * @return 应答结果对象,包含查询结果集。 - */ - @PostMapping("/list") - public ResponseResult> list( - @MyRequestBody FlowCategoryDto flowCategoryDtoFilter, - @MyRequestBody MyOrderParam orderParam, - @MyRequestBody MyPageParam pageParam) { - if (pageParam != null) { - PageMethod.startPage(pageParam.getPageNum(), pageParam.getPageSize()); - } - FlowCategory flowCategoryFilter = MyModelUtil.copyTo(flowCategoryDtoFilter, FlowCategory.class); - String orderBy = MyOrderParam.buildOrderBy(orderParam, FlowCategory.class); - List flowCategoryList = flowCategoryService.getFlowCategoryListWithRelation(flowCategoryFilter, orderBy); - return ResponseResult.success(MyPageUtil.makeResponseData(flowCategoryList, FlowCategory.INSTANCE)); - } - - /** - * 查看指定FlowCategory对象详情。 - * - * @param categoryId 指定对象主键Id。 - * @return 应答结果对象,包含对象详情。 - */ - @GetMapping("/view") - public ResponseResult view(@RequestParam Long categoryId) { - if (MyCommonUtil.existBlankArgument(categoryId)) { - return ResponseResult.error(ErrorCodeEnum.ARGUMENT_NULL_EXIST); - } - FlowCategory flowCategory = flowCategoryService.getByIdWithRelation(categoryId, MyRelationParam.full()); - if (flowCategory == null) { - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST); - } - FlowCategoryVo flowCategoryVo = FlowCategory.INSTANCE.fromModel(flowCategory); - return ResponseResult.success(flowCategoryVo); - } - - /** - * 以字典形式返回全部FlowCategory数据集合。字典的键值为[categoryId, name]。 - * 白名单接口,登录用户均可访问。 - * - * @param filter 过滤对象。 - * @return 应答结果对象,包含的数据为 List>,map中包含两条记录,key的值分别是id和name,value对应具体数据。 - */ - @GetMapping("/listDict") - public ResponseResult>> listDict(FlowCategory filter) { - List resultList = flowCategoryService.getListByFilter(filter); - return ResponseResult.success(BeanQuery.select( - "categoryId as id", "name as name").executeFrom(resultList)); - } - - /** - * 根据字典Id集合,获取查询后的字典数据。 - * - * @param dictIds 字典Id集合。 - * @return 应答结果对象,包含字典形式的数据集合。 - */ - @PostMapping("/listDictByIds") - public ResponseResult>> listDictByIds( - @MyRequestBody(elementType = Long.class) List dictIds) { - List resultList = flowCategoryService.getInList(new HashSet<>(dictIds)); - return ResponseResult.success(BeanQuery.select( - "categoryId as id", "name as name").executeFrom(resultList)); - } -} diff --git a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/controller/FlowEntryController.java b/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/controller/FlowEntryController.java deleted file mode 100644 index 69b93236..00000000 --- a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/controller/FlowEntryController.java +++ /dev/null @@ -1,592 +0,0 @@ -package com.orangeforms.common.flow.controller; - -import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; -import io.swagger.annotations.Api; -import cn.hutool.core.collection.CollUtil; -import cn.hutool.core.map.MapUtil; -import cn.hutool.core.util.ObjectUtil; -import cn.hutool.core.util.StrUtil; -import cn.jimmyshi.beanquery.BeanQuery; -import com.alibaba.fastjson.JSON; -import com.alibaba.fastjson.JSONArray; -import com.alibaba.fastjson.JSONObject; -import com.github.pagehelper.page.PageMethod; -import com.orangeforms.common.core.annotation.MyRequestBody; -import com.orangeforms.common.core.constant.ErrorCodeEnum; -import com.orangeforms.common.core.object.*; -import com.orangeforms.common.core.util.MyCommonUtil; -import com.orangeforms.common.core.util.MyModelUtil; -import com.orangeforms.common.core.util.MyPageUtil; -import com.orangeforms.common.core.validator.UpdateGroup; -import com.orangeforms.common.flow.object.FlowTaskMultiSignAssign; -import com.orangeforms.common.flow.constant.FlowTaskType; -import com.orangeforms.common.flow.dto.*; -import com.orangeforms.common.flow.model.*; -import com.orangeforms.common.flow.model.constant.FlowEntryStatus; -import com.orangeforms.common.flow.service.*; -import com.orangeforms.common.flow.vo.*; -import lombok.extern.slf4j.Slf4j; -import org.activiti.bpmn.model.*; -import org.activiti.bpmn.model.Process; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.*; - -import javax.validation.groups.Default; -import javax.xml.stream.XMLStreamException; -import java.util.*; - -/** - * 工作流操作控制器类。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Api(tags = "工作流操作接口") -@Slf4j -@RestController -@RequestMapping("${common-flow.urlPrefix}/flowEntry") -public class FlowEntryController { - - @Autowired - private FlowEntryService flowEntryService; - @Autowired - private FlowCategoryService flowCategoryService; - @Autowired - private FlowEntryVariableService flowEntryVariableService; - @Autowired - private FlowApiService flowApiService; - - /** - * 新增工作流对象数据。 - * - * @param flowEntryDto 新增对象。 - * @return 应答结果对象,包含新增对象主键Id。 - */ - @ApiOperationSupport(ignoreParameters = {"flowEntryDto.entryId"}) - @PostMapping("/add") - public ResponseResult add(@MyRequestBody FlowEntryDto flowEntryDto) { - String errorMessage = MyCommonUtil.getModelValidationError(flowEntryDto); - if (errorMessage != null) { - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - FlowEntry flowEntry = MyModelUtil.copyTo(flowEntryDto, FlowEntry.class); - if (flowEntryService.existOne("processDefinitionKey", flowEntry.getProcessDefinitionKey())) { - errorMessage = "数据验证失败,该流程定义标识已存在!"; - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - // 验证关联Id的数据合法性 - CallResult callResult = flowEntryService.verifyRelatedData(flowEntry, null); - if (!callResult.isSuccess()) { - errorMessage = callResult.getErrorMessage(); - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - flowEntry = flowEntryService.saveNew(flowEntry); - return ResponseResult.success(flowEntry.getEntryId()); - } - - /** - * 更新工作流对象数据。 - * - * @param flowEntryDto 更新对象。 - * @return 应答结果对象。 - */ - @PostMapping("/update") - public ResponseResult update(@MyRequestBody FlowEntryDto flowEntryDto) { - String errorMessage = MyCommonUtil.getModelValidationError(flowEntryDto, Default.class, UpdateGroup.class); - if (errorMessage != null) { - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - FlowEntry flowEntry = MyModelUtil.copyTo(flowEntryDto, FlowEntry.class); - FlowEntry originalFlowEntry = flowEntryService.getById(flowEntry.getEntryId()); - if (originalFlowEntry == null) { - errorMessage = "数据验证失败,当前流程并不存在,请刷新后重试!"; - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST, errorMessage); - } - if (ObjectUtil.notEqual(flowEntry.getProcessDefinitionKey(), originalFlowEntry.getProcessDefinitionKey())) { - if (originalFlowEntry.getStatus().equals(FlowEntryStatus.PUBLISHED)) { - errorMessage = "数据验证失败,当前流程为发布状态,流程标识不能修改!"; - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - if (flowEntryService.existOne("processDefinitionKey", flowEntry.getProcessDefinitionKey())) { - errorMessage = "数据验证失败,该流程定义标识已存在!"; - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - } - if (ObjectUtil.notEqual(flowEntry.getCategoryId(), originalFlowEntry.getCategoryId())) { - if (originalFlowEntry.getStatus().equals(FlowEntryStatus.PUBLISHED)) { - errorMessage = "数据验证失败,当前流程为发布状态,流程分类不能修改!"; - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST, errorMessage); - } - } - // 验证关联Id的数据合法性 - CallResult callResult = flowEntryService.verifyRelatedData(flowEntry, originalFlowEntry); - if (!callResult.isSuccess()) { - errorMessage = callResult.getErrorMessage(); - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - if (!flowEntryService.update(flowEntry, originalFlowEntry)) { - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST); - } - return ResponseResult.success(); - } - - /** - * 删除工作流对象数据。 - * - * @param entryId 删除对象主键Id。 - * @return 应答结果对象。 - */ - @PostMapping("/delete") - public ResponseResult delete(@MyRequestBody Long entryId) { - String errorMessage; - if (MyCommonUtil.existBlankArgument(entryId)) { - return ResponseResult.error(ErrorCodeEnum.ARGUMENT_NULL_EXIST); - } - // 验证关联Id的数据合法性 - FlowEntry originalFlowEntry = flowEntryService.getById(entryId); - if (originalFlowEntry == null) { - errorMessage = "数据验证失败,当前流程并不存在,请刷新后重试!"; - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST, errorMessage); - } - if (originalFlowEntry.getStatus().equals(FlowEntryStatus.PUBLISHED)) { - errorMessage = "数据验证失败,当前流程为发布状态,不能删除!"; - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - if (!flowEntryService.remove(entryId)) { - errorMessage = "数据操作失败,删除的对象不存在,请刷新后重试!"; - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST, errorMessage); - } - return ResponseResult.success(); - } - - /** - * 发布工作流。 - * - * @param entryId 流程主键Id。 - * @return 应答结果对象。 - */ - @PostMapping("/publish") - public ResponseResult publish(@MyRequestBody(required = true) Long entryId) throws XMLStreamException { - String errorMessage; - FlowEntry flowEntry = flowEntryService.getById(entryId); - if (flowEntry == null) { - errorMessage = "数据验证失败,该流程并不存在,请刷新后重试!"; - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST, errorMessage); - } - if (StrUtil.isBlank(flowEntry.getBpmnXml())) { - errorMessage = "数据验证失败,该流程没有流程图不能被发布!"; - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST, errorMessage); - } - ResponseResult taskInfoResult = this.verifyAndGetInitialTaskInfo(flowEntry); - if (!taskInfoResult.isSuccess()) { - return ResponseResult.errorFrom(taskInfoResult); - } - List flowTaskExtList = this.buildTaskExtList(flowEntry); - String taskInfo = taskInfoResult.getData() == null ? null : JSON.toJSONString(taskInfoResult.getData()); - flowEntryService.publish(flowEntry, taskInfo, flowTaskExtList); - return ResponseResult.success(); - } - - /** - * 列出符合过滤条件的工作流列表。 - * - * @param flowEntryDtoFilter 过滤对象。 - * @param orderParam 排序参数。 - * @param pageParam 分页参数。 - * @return 应答结果对象,包含查询结果集。 - */ - @PostMapping("/list") - public ResponseResult> list( - @MyRequestBody FlowEntryDto flowEntryDtoFilter, - @MyRequestBody MyOrderParam orderParam, - @MyRequestBody MyPageParam pageParam) { - if (pageParam != null) { - PageMethod.startPage(pageParam.getPageNum(), pageParam.getPageSize()); - } - FlowEntry flowEntryFilter = MyModelUtil.copyTo(flowEntryDtoFilter, FlowEntry.class); - String orderBy = MyOrderParam.buildOrderBy(orderParam, FlowEntry.class); - List flowEntryList = flowEntryService.getFlowEntryListWithRelation(flowEntryFilter, orderBy); - return ResponseResult.success(MyPageUtil.makeResponseData(flowEntryList, FlowEntry.INSTANCE)); - } - - /** - * 查看指定工作流对象详情。 - * - * @param entryId 指定对象主键Id。 - * @return 应答结果对象,包含对象详情。 - */ - @GetMapping("/view") - public ResponseResult view(@RequestParam Long entryId) { - if (MyCommonUtil.existBlankArgument(entryId)) { - return ResponseResult.error(ErrorCodeEnum.ARGUMENT_NULL_EXIST); - } - FlowEntry flowEntry = flowEntryService.getByIdWithRelation(entryId, MyRelationParam.full()); - if (flowEntry == null) { - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST); - } - FlowEntryVo flowEntryVo = FlowEntry.INSTANCE.fromModel(flowEntry); - return ResponseResult.success(flowEntryVo); - } - - /** - * 列出指定流程的发布版本列表。 - * - * @param entryId 流程主键Id。 - * @return 应答结果对象,包含流程发布列表数据。 - */ - @GetMapping("/listFlowEntryPublish") - public ResponseResult> listFlowEntryPublish(@RequestParam Long entryId) { - List flowEntryPublishList = flowEntryService.getFlowEntryPublishList(entryId); - return ResponseResult.success(MyModelUtil.copyCollectionTo(flowEntryPublishList, FlowEntryPublishVo.class)); - } - - /** - * 以字典形式返回全部FlowEntry数据集合。字典的键值为[entryId, procDefinitionName]。 - * 白名单接口,登录用户均可访问。 - * - * @param filter 过滤对象。 - * @return 应答结果对象,包含的数据为 List>,map中包含两条记录,key的值分别是id和name,value对应具体数据。 - */ - @GetMapping("/listDict") - public ResponseResult>> listDict(FlowEntry filter) { - List resultList = flowEntryService.getListByFilter(filter); - return ResponseResult.success(BeanQuery.select( - "entryId as id", "processDefinitionName as name").executeFrom(resultList)); - } - - /** - * 白名单接口,根据流程Id,获取流程引擎需要的流程标识和流程名称。 - * - * @param entryId 流程Id。 - * @return 流程的部分数据。 - */ - @GetMapping("/viewDict") - public ResponseResult> viewDict(@RequestParam Long entryId) { - FlowEntry flowEntry = flowEntryService.getById(entryId); - if (flowEntry == null) { - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST); - } - Map resultMap = new HashMap<>(2); - resultMap.put("processDefinitionKey", flowEntry.getProcessDefinitionKey()); - resultMap.put("processDefinitionName", flowEntry.getProcessDefinitionName()); - return ResponseResult.success(resultMap); - } - - /** - * 切换指定工作的发布主版本。 - * - * @param entryId 工作流主键Id。 - * @param newEntryPublishId 新的工作流发布主版本对象的主键Id。 - * @return 应答结果对象。 - */ - @PostMapping("/updateMainVersion") - public ResponseResult updateMainVersion( - @MyRequestBody(required = true) Long entryId, - @MyRequestBody(required = true) Long newEntryPublishId) { - String errorMessage; - FlowEntryPublish flowEntryPublish = flowEntryService.getFlowEntryPublishById(newEntryPublishId); - if (flowEntryPublish == null) { - errorMessage = "数据验证失败,当前流程发布版本并不存在,请刷新后重试!"; - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST, errorMessage); - } - if (ObjectUtil.notEqual(entryId, flowEntryPublish.getEntryId())) { - errorMessage = "数据验证失败,当前工作流并不包含该工作流发布版本数据,请刷新后重试!"; - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - if (flowEntryPublish.getMainVersion()) { - errorMessage = "数据验证失败,该版本已经为当前工作流的发布主版本,不能重复设置!"; - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - flowEntryService.updateFlowEntryMainVersion(flowEntryService.getById(entryId), flowEntryPublish); - return ResponseResult.success(); - } - - /** - * 挂起工作流的指定发布版本。 - * - * @param entryPublishId 工作发布Id。 - * @return 应答结果对象。 - */ - @PostMapping("/suspendFlowEntryPublish") - public ResponseResult suspendFlowEntryPublish(@MyRequestBody(required = true) Long entryPublishId) { - String errorMessage; - FlowEntryPublish flowEntryPublish = flowEntryService.getFlowEntryPublishById(entryPublishId); - if (flowEntryPublish == null) { - errorMessage = "数据验证失败,当前流程发布版本并不存在,请刷新后重试!"; - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST, errorMessage); - } - if (!flowEntryPublish.getActiveStatus()) { - errorMessage = "数据验证失败,当前流程发布版本已处于挂起状态!"; - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - flowEntryService.suspendFlowEntryPublish(flowEntryPublish); - return ResponseResult.success(); - } - - /** - * 激活工作流的指定发布版本。 - * - * @param entryPublishId 工作发布Id。 - * @return 应答结果对象。 - */ - @PostMapping("/activateFlowEntryPublish") - public ResponseResult activateFlowEntryPublish(@MyRequestBody(required = true) Long entryPublishId) { - String errorMessage; - FlowEntryPublish flowEntryPublish = flowEntryService.getFlowEntryPublishById(entryPublishId); - if (flowEntryPublish == null) { - errorMessage = "数据验证失败,当前流程发布版本并不存在,请刷新后重试!"; - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST, errorMessage); - } - if (flowEntryPublish.getActiveStatus()) { - errorMessage = "数据验证失败,当前流程发布版本已处于激活状态!"; - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - flowEntryService.activateFlowEntryPublish(flowEntryPublish); - return ResponseResult.success(); - } - - private FlowTaskExt buildTaskExt(UserTask userTask) { - FlowTaskExt flowTaskExt = new FlowTaskExt(); - flowTaskExt.setTaskId(userTask.getId()); - String formKey = userTask.getFormKey(); - if (StrUtil.isNotBlank(formKey)) { - TaskInfoVo taskInfoVo = JSON.parseObject(formKey, TaskInfoVo.class); - flowTaskExt.setGroupType(taskInfoVo.getGroupType()); - } - Map> extensionMap = userTask.getExtensionElements(); - if (MapUtil.isNotEmpty(extensionMap)) { - List operationList = this.buildOperationListExtensionElement(extensionMap); - if (CollUtil.isNotEmpty(operationList)) { - flowTaskExt.setOperationListJson(JSON.toJSONString(operationList)); - } - List variableList = this.buildVariableListExtensionElement(extensionMap); - if (CollUtil.isNotEmpty(variableList)) { - flowTaskExt.setVariableListJson(JSON.toJSONString(variableList)); - } - JSONObject assigneeListObject = this.buildAssigneeListExtensionElement(extensionMap); - if (assigneeListObject != null) { - flowTaskExt.setAssigneeListJson(JSON.toJSONString(assigneeListObject)); - } - List deptPostList = this.buildDeptPostListExtensionElement(extensionMap); - if (deptPostList != null) { - flowTaskExt.setDeptPostListJson(JSON.toJSONString(deptPostList)); - } - JSONObject candidateGroupObject = this.buildUserCandidateGroupsExtensionElement(extensionMap); - if (candidateGroupObject != null) { - String type = candidateGroupObject.getString("type"); - String value = candidateGroupObject.getString("value"); - switch (type) { - case "DEPT": - flowTaskExt.setDeptIds(value); - break; - case "ROLE": - flowTaskExt.setRoleIds(value); - break; - case "USERS": - flowTaskExt.setCandidateUsernames(value); - break; - default: - break; - } - } - } - return flowTaskExt; - } - - private List buildTaskExtList(FlowEntry flowEntry) throws XMLStreamException { - List flowTaskExtList = new LinkedList<>(); - BpmnModel bpmnModel = flowApiService.convertToBpmnModel(flowEntry.getBpmnXml()); - List processList = bpmnModel.getProcesses(); - for (Process process : processList) { - for (FlowElement element : process.getFlowElements()) { - if (element instanceof UserTask) { - FlowTaskExt flowTaskExt = this.buildTaskExt((UserTask) element); - flowTaskExtList.add(flowTaskExt); - } - } - } - return flowTaskExtList; - } - - private ResponseResult verifyAndGetInitialTaskInfo(FlowEntry flowEntry) throws XMLStreamException { - String errorMessage; - BpmnModel bpmnModel = flowApiService.convertToBpmnModel(flowEntry.getBpmnXml()); - Process process = bpmnModel.getMainProcess(); - if (process == null) { - errorMessage = "数据验证失败,当前流程标识 [" + flowEntry.getProcessDefinitionKey() + "] 关联的流程模型并不存在!"; - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - Collection elementList = process.getFlowElements(); - FlowElement startEvent = null; - FlowElement firstTask = null; - // 这里我们只定位流程模型中的第二个节点。 - for (FlowElement flowElement : elementList) { - if (flowElement instanceof StartEvent) { - startEvent = flowElement; - break; - } - } - if (startEvent == null) { - errorMessage = "数据验证失败,当前流程图没有包含 [开始事件] 节点,请修改流程图!"; - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - for (FlowElement flowElement : elementList) { - if (flowElement instanceof SequenceFlow) { - SequenceFlow sequenceFlow = (SequenceFlow) flowElement; - if (sequenceFlow.getSourceFlowElement().equals(startEvent)) { - firstTask = sequenceFlow.getTargetFlowElement(); - break; - } - } - } - if (firstTask == null) { - errorMessage = "数据验证失败,当前流程图没有包含 [开始事件] 节点没有任何连线,请修改流程图!"; - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - TaskInfoVo taskInfoVo; - if (firstTask instanceof UserTask) { - UserTask userTask = (UserTask) firstTask; - String formKey = userTask.getFormKey(); - if (StrUtil.isNotBlank(formKey)) { - taskInfoVo = JSON.parseObject(formKey, TaskInfoVo.class); - } else { - taskInfoVo = new TaskInfoVo(); - } - taskInfoVo.setAssignee(userTask.getAssignee()); - taskInfoVo.setTaskKey(userTask.getId()); - taskInfoVo.setTaskType(FlowTaskType.USER_TYPE); - Map> extensionMap = userTask.getExtensionElements(); - if (MapUtil.isNotEmpty(extensionMap)) { - taskInfoVo.setOperationList(this.buildOperationListExtensionElement(extensionMap)); - taskInfoVo.setVariableList(this.buildVariableListExtensionElement(extensionMap)); - } - } else { - taskInfoVo = new TaskInfoVo(); - taskInfoVo.setTaskType(FlowTaskType.OTHER_TYPE); - } - return ResponseResult.success(taskInfoVo); - } - - private JSONObject buildUserCandidateGroupsExtensionElement(Map> extensionMap) { - JSONObject jsonData = null; - List elementCandidateGroupsList = extensionMap.get("userCandidateGroups"); - if (CollUtil.isEmpty(elementCandidateGroupsList)) { - return jsonData; - } - jsonData = new JSONObject(); - ExtensionElement ee = elementCandidateGroupsList.get(0); - jsonData.put("type", ee.getAttributeValue(null, "type")); - jsonData.put("value", ee.getAttributeValue(null, "value")); - return jsonData; - } - - private JSONObject buildAssigneeListExtensionElement(Map> extensionMap) { - JSONObject jsonData = null; - List elementAssigneeList = extensionMap.get("assigneeList"); - if (CollUtil.isEmpty(elementAssigneeList)) { - return jsonData; - } - ExtensionElement ee = elementAssigneeList.get(0); - Map> childExtensionMap = ee.getChildElements(); - if (MapUtil.isEmpty(childExtensionMap)) { - return jsonData; - } - List assigneeElements = childExtensionMap.get("assignee"); - if (CollUtil.isEmpty(assigneeElements)) { - return jsonData; - } - JSONArray assigneeIdArray = new JSONArray(); - for (ExtensionElement e : assigneeElements) { - assigneeIdArray.add(e.getAttributeValue(null, "id")); - } - jsonData = new JSONObject(); - String assigneeType = ee.getAttributeValue(null, "type"); - jsonData.put("assigneeType", assigneeType); - jsonData.put("assigneeList", assigneeIdArray); - return jsonData; - } - - private List buildOperationListExtensionElement(Map> extensionMap) { - List formOperationElements = - this.getMyExtensionElementList(extensionMap, "operationList", "formOperation"); - if (CollUtil.isEmpty(formOperationElements)) { - return null; - } - List resultList = new LinkedList<>(); - for (ExtensionElement e : formOperationElements) { - JSONObject operationJsonData = new JSONObject(); - operationJsonData.put("id", e.getAttributeValue(null, "id")); - operationJsonData.put("label", e.getAttributeValue(null, "label")); - operationJsonData.put("type", e.getAttributeValue(null, "type")); - operationJsonData.put("showOrder", e.getAttributeValue(null, "showOrder")); - String multiSignAssignee = e.getAttributeValue(null, "multiSignAssignee"); - if (StrUtil.isNotBlank(multiSignAssignee)) { - operationJsonData.put("multiSignAssignee", - JSON.parseObject(multiSignAssignee, FlowTaskMultiSignAssign.class)); - } - resultList.add(operationJsonData); - } - return resultList; - } - - private List buildVariableListExtensionElement(Map> extensionMap) { - List formVariableElements = - this.getMyExtensionElementList(extensionMap, "variableList", "formVariable"); - if (CollUtil.isEmpty(formVariableElements)) { - return null; - } - Set variableIdSet = new HashSet<>(); - for (ExtensionElement e : formVariableElements) { - String id = e.getAttributeValue(null, "id"); - variableIdSet.add(Long.parseLong(id)); - } - List variableList = flowEntryVariableService.getInList(variableIdSet); - List resultList = new LinkedList<>(); - for (FlowEntryVariable variable : variableList) { - resultList.add((JSONObject) JSON.toJSON(variable)); - } - return resultList; - } - - private List buildDeptPostListExtensionElement(Map> extensionMap) { - List deptPostElements = - this.getMyExtensionElementList(extensionMap, "deptPostList", "deptPost"); - if (CollUtil.isEmpty(deptPostElements)) { - return null; - } - List resultList = new LinkedList<>(); - for (ExtensionElement e : deptPostElements) { - JSONObject deptPostJsonData = new JSONObject(); - deptPostJsonData.put("id", e.getAttributeValue(null, "id")); - deptPostJsonData.put("type", e.getAttributeValue(null, "type")); - String postId = e.getAttributeValue(null, "postId"); - if (postId != null) { - deptPostJsonData.put("postId", postId); - } - String deptPostId = e.getAttributeValue(null, "deptPostId"); - if (deptPostId != null) { - deptPostJsonData.put("deptPostId", deptPostId); - } - resultList.add(deptPostJsonData); - } - return resultList; - } - - private List getMyExtensionElementList( - Map> extensionMap, String rootName, String childName) { - List elementList = extensionMap.get(rootName); - if (CollUtil.isEmpty(elementList)) { - return null; - } - ExtensionElement ee = elementList.get(0); - Map> childExtensionMap = ee.getChildElements(); - if (MapUtil.isEmpty(childExtensionMap)) { - return null; - } - List childrenElements = childExtensionMap.get(childName); - if (CollUtil.isEmpty(childrenElements)) { - return null; - } - return childrenElements; - } -} diff --git a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/controller/FlowEntryVariableController.java b/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/controller/FlowEntryVariableController.java deleted file mode 100644 index b515aa35..00000000 --- a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/controller/FlowEntryVariableController.java +++ /dev/null @@ -1,147 +0,0 @@ -package com.orangeforms.common.flow.controller; - -import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; -import io.swagger.annotations.Api; -import com.github.pagehelper.page.PageMethod; -import com.orangeforms.common.flow.vo.*; -import com.orangeforms.common.flow.dto.*; -import com.orangeforms.common.flow.model.*; -import com.orangeforms.common.flow.service.*; -import com.orangeforms.common.core.object.*; -import com.orangeforms.common.core.util.*; -import com.orangeforms.common.core.constant.*; -import com.orangeforms.common.core.annotation.MyRequestBody; -import com.orangeforms.common.core.validator.UpdateGroup; -import lombok.extern.slf4j.Slf4j; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.*; - -import java.util.*; -import javax.validation.groups.Default; - -/** - * 流程变量操作控制器类。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Api(tags = "工作流变量操作接口") -@Slf4j -@RestController -@RequestMapping("${common-flow.urlPrefix}/flowEntryVariable") -public class FlowEntryVariableController { - - @Autowired - private FlowEntryVariableService flowEntryVariableService; - - /** - * 新增流程变量数据。 - * - * @param flowEntryVariableDto 新增对象。 - * @return 应答结果对象,包含新增对象主键Id。 - */ - @ApiOperationSupport(ignoreParameters = {"flowEntryVariableDto.variableId"}) - @PostMapping("/add") - public ResponseResult add(@MyRequestBody FlowEntryVariableDto flowEntryVariableDto) { - String errorMessage = MyCommonUtil.getModelValidationError(flowEntryVariableDto); - if (errorMessage != null) { - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - FlowEntryVariable flowEntryVariable = MyModelUtil.copyTo(flowEntryVariableDto, FlowEntryVariable.class); - flowEntryVariable = flowEntryVariableService.saveNew(flowEntryVariable); - return ResponseResult.success(flowEntryVariable.getVariableId()); - } - - /** - * 更新流程变量数据。 - * - * @param flowEntryVariableDto 更新对象。 - * @return 应答结果对象。 - */ - @PostMapping("/update") - public ResponseResult update(@MyRequestBody FlowEntryVariableDto flowEntryVariableDto) { - String errorMessage = MyCommonUtil.getModelValidationError(flowEntryVariableDto, Default.class, UpdateGroup.class); - if (errorMessage != null) { - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - FlowEntryVariable flowEntryVariable = MyModelUtil.copyTo(flowEntryVariableDto, FlowEntryVariable.class); - FlowEntryVariable originalFlowEntryVariable = flowEntryVariableService.getById(flowEntryVariable.getVariableId()); - if (originalFlowEntryVariable == null) { - // NOTE: 修改下面方括号中的话述 - errorMessage = "数据验证失败,当前 [数据] 并不存在,请刷新后重试!"; - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST, errorMessage); - } - if (!flowEntryVariableService.update(flowEntryVariable, originalFlowEntryVariable)) { - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST); - } - return ResponseResult.success(); - } - - /** - * 删除流程变量数据。 - * - * @param variableId 删除对象主键Id。 - * @return 应答结果对象。 - */ - @PostMapping("/delete") - public ResponseResult delete(@MyRequestBody Long variableId) { - String errorMessage; - if (MyCommonUtil.existBlankArgument(variableId)) { - return ResponseResult.error(ErrorCodeEnum.ARGUMENT_NULL_EXIST); - } - // 验证关联Id的数据合法性 - FlowEntryVariable originalFlowEntryVariable = flowEntryVariableService.getById(variableId); - if (originalFlowEntryVariable == null) { - // NOTE: 修改下面方括号中的话述 - errorMessage = "数据验证失败,当前 [对象] 并不存在,请刷新后重试!"; - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST, errorMessage); - } - if (!flowEntryVariableService.remove(variableId)) { - errorMessage = "数据操作失败,删除的对象不存在,请刷新后重试!"; - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST, errorMessage); - } - return ResponseResult.success(); - } - - /** - * 列出符合过滤条件的流程变量列表。 - * - * @param flowEntryVariableDtoFilter 过滤对象。 - * @param orderParam 排序参数。 - * @param pageParam 分页参数。 - * @return 应答结果对象,包含查询结果集。 - */ - @PostMapping("/list") - public ResponseResult> list( - @MyRequestBody FlowEntryVariableDto flowEntryVariableDtoFilter, - @MyRequestBody MyOrderParam orderParam, - @MyRequestBody MyPageParam pageParam) { - if (pageParam != null) { - PageMethod.startPage(pageParam.getPageNum(), pageParam.getPageSize()); - } - FlowEntryVariable flowEntryVariableFilter = MyModelUtil.copyTo(flowEntryVariableDtoFilter, FlowEntryVariable.class); - String orderBy = MyOrderParam.buildOrderBy(orderParam, FlowEntryVariable.class); - List flowEntryVariableList = - flowEntryVariableService.getFlowEntryVariableListWithRelation(flowEntryVariableFilter, orderBy); - return ResponseResult.success(MyPageUtil.makeResponseData(flowEntryVariableList, FlowEntryVariable.INSTANCE)); - } - - /** - * 查看指定流程变量对象详情。 - * - * @param variableId 指定对象主键Id。 - * @return 应答结果对象,包含对象详情。 - */ - @GetMapping("/view") - public ResponseResult view(@RequestParam Long variableId) { - if (MyCommonUtil.existBlankArgument(variableId)) { - return ResponseResult.error(ErrorCodeEnum.ARGUMENT_NULL_EXIST); - } - FlowEntryVariable flowEntryVariable = flowEntryVariableService.getByIdWithRelation(variableId, MyRelationParam.full()); - if (flowEntryVariable == null) { - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST); - } - FlowEntryVariableVo flowEntryVariableVo = FlowEntryVariable.INSTANCE.fromModel(flowEntryVariable); - return ResponseResult.success(flowEntryVariableVo); - } -} diff --git a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/controller/FlowMessageController.java b/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/controller/FlowMessageController.java deleted file mode 100644 index fa4b8191..00000000 --- a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/controller/FlowMessageController.java +++ /dev/null @@ -1,46 +0,0 @@ -package com.orangeforms.common.flow.controller; - -import io.swagger.annotations.Api; -import com.orangeforms.common.core.annotation.MyRequestBody; -import com.orangeforms.common.core.object.*; -import com.orangeforms.common.core.util.MyPageUtil; -import com.orangeforms.common.flow.model.FlowMessage; -import com.orangeforms.common.flow.service.FlowMessageService; -import com.orangeforms.common.flow.vo.FlowMessageVo; -import com.github.pagehelper.page.PageMethod; -import lombok.extern.slf4j.Slf4j; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.*; - -import java.util.List; - -/** - * 工作流消息操作控制器类。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Api(tags = "工作流消息操作接口") -@Slf4j -@RestController -@RequestMapping("${common-flow.urlPrefix}/flowMessage") -public class FlowMessageController { - - @Autowired - private FlowMessageService flowMessageService; - - /** - * 获取当前用户的催办消息列表。 - * 不仅仅包含,其中包括当前用户所属角色、部门和岗位的候选组催办消息。 - * - * @return 应答结果对象,包含查询结果集。 - */ - @PostMapping("/listRemindingTask") - public ResponseResult> listRemindingTask(@MyRequestBody MyPageParam pageParam) { - if (pageParam != null) { - PageMethod.startPage(pageParam.getPageNum(), pageParam.getPageSize()); - } - List flowMessageList = flowMessageService.getRemindingMessageListByUser(); - return ResponseResult.success(MyPageUtil.makeResponseData(flowMessageList, FlowMessage.INSTANCE)); - } -} diff --git a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/controller/FlowOperationController.java b/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/controller/FlowOperationController.java deleted file mode 100644 index d9fd93dd..00000000 --- a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/controller/FlowOperationController.java +++ /dev/null @@ -1,562 +0,0 @@ -package com.orangeforms.common.flow.controller; - -import io.swagger.annotations.Api; -import cn.hutool.core.bean.BeanUtil; -import cn.hutool.core.collection.CollUtil; -import cn.hutool.core.util.ObjectUtil; -import cn.hutool.core.util.StrUtil; -import com.alibaba.fastjson.JSON; -import com.alibaba.fastjson.JSONObject; -import com.orangeforms.common.core.annotation.DisableDataFilter; -import com.orangeforms.common.core.annotation.MyRequestBody; -import com.orangeforms.common.core.constant.ErrorCodeEnum; -import com.orangeforms.common.core.object.*; -import com.orangeforms.common.core.util.MyPageUtil; -import com.orangeforms.common.flow.constant.FlowConstant; -import com.orangeforms.common.flow.constant.FlowTaskStatus; -import com.orangeforms.common.flow.model.*; -import com.orangeforms.common.flow.service.*; -import com.orangeforms.common.flow.util.FlowOperationHelper; -import com.orangeforms.common.flow.vo.FlowTaskCommentVo; -import com.orangeforms.common.flow.vo.FlowTaskVo; -import com.orangeforms.common.flow.vo.TaskInfoVo; -import lombok.extern.slf4j.Slf4j; -import org.activiti.bpmn.converter.BpmnXMLConverter; -import org.activiti.bpmn.model.BpmnModel; -import org.activiti.bpmn.model.FlowElement; -import org.activiti.bpmn.model.Process; -import org.activiti.bpmn.model.SequenceFlow; -import org.activiti.engine.history.HistoricActivityInstance; -import org.activiti.engine.history.HistoricProcessInstance; -import org.activiti.engine.history.HistoricTaskInstance; -import org.activiti.engine.task.Task; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.util.StreamUtils; -import org.springframework.web.bind.annotation.*; - -import java.io.ByteArrayInputStream; -import java.io.IOException; -import java.io.InputStream; -import java.nio.charset.StandardCharsets; -import java.text.ParseException; -import java.util.*; -import java.util.stream.Collectors; - -/** - * 流程操作接口类 - * - * @author Jerry - * @date 2021-06-06 - */ -@Api(tags = "通用流程操作接口") -@Slf4j -@RestController -@RequestMapping("${common-flow.urlPrefix}/flowOperation") -public class FlowOperationController { - - @Autowired - private FlowEntryService flowEntryService; - @Autowired - private FlowTaskCommentService flowTaskCommentService; - @Autowired - private FlowTaskExtService flowTaskExtService; - @Autowired - private FlowApiService flowApiService; - @Autowired - private FlowWorkOrderService flowWorkOrderService; - @Autowired - private FlowMessageService flowMessageService; - @Autowired - private FlowOperationHelper flowOperationHelper; - - /** - * 根据指定流程的主版本,发起一个流程实例。 - * - * @param processDefinitionKey 流程标识。 - * @return 应答结果对象。 - */ - @PostMapping("/startOnly") - public ResponseResult startOnly(@MyRequestBody(required = true) String processDefinitionKey) { - // 1. 验证流程数据的合法性。 - ResponseResult flowEntryResult = flowOperationHelper.verifyAndGetFlowEntry(processDefinitionKey); - if (!flowEntryResult.isSuccess()) { - return ResponseResult.errorFrom(flowEntryResult); - } - // 2. 验证流程一个用户任务的合法性。 - FlowEntryPublish flowEntryPublish = flowEntryResult.getData().getMainFlowEntryPublish(); - ResponseResult taskInfoResult = - flowOperationHelper.verifyAndGetInitialTaskInfo(flowEntryPublish, false); - if (!taskInfoResult.isSuccess()) { - return ResponseResult.errorFrom(taskInfoResult); - } - flowApiService.start(flowEntryPublish.getProcessDefinitionId(), null); - return ResponseResult.success(); - } - - /** - * 获取开始节点之后的第一个任务节点的数据。 - * - * @param processDefinitionKey 流程标识。 - * @return 任务节点的自定义对象数据。 - */ - @GetMapping("/viewInitialTaskInfo") - public ResponseResult viewInitialTaskInfo(@RequestParam String processDefinitionKey) { - ResponseResult flowEntryResult = flowOperationHelper.verifyAndGetFlowEntry(processDefinitionKey); - if (!flowEntryResult.isSuccess()) { - return ResponseResult.errorFrom(flowEntryResult); - } - FlowEntryPublish flowEntryPublish = flowEntryResult.getData().getMainFlowEntryPublish(); - String initTaskInfo = flowEntryPublish.getInitTaskInfo(); - TaskInfoVo taskInfo = StrUtil.isBlank(initTaskInfo) - ? null : JSON.parseObject(initTaskInfo, TaskInfoVo.class); - if (taskInfo != null) { - String loginName = TokenData.takeFromRequest().getLoginName(); - taskInfo.setAssignedMe(StrUtil.equalsAny( - taskInfo.getAssignee(), loginName, FlowConstant.START_USER_NAME_VAR)); - } - return ResponseResult.success(taskInfo); - } - - /** - * 获取流程运行时指定任务的信息。 - * - * @param processDefinitionId 流程引擎的定义Id。 - * @param processInstanceId 流程引擎的实例Id。 - * @param taskId 流程引擎的任务Id。 - * @return 任务节点的自定义对象数据。 - */ - @GetMapping("/viewRuntimeTaskInfo") - public ResponseResult viewRuntimeTaskInfo( - @RequestParam String processDefinitionId, - @RequestParam String processInstanceId, - @RequestParam String taskId) { - Task task = flowApiService.getProcessInstanceActiveTask(processInstanceId, taskId); - ResponseResult taskInfoResult = flowOperationHelper.verifyAndGetRuntimeTaskInfo(task); - if (!taskInfoResult.isSuccess()) { - return ResponseResult.errorFrom(taskInfoResult); - } - TaskInfoVo taskInfoVo = taskInfoResult.getData(); - FlowTaskExt flowTaskExt = - flowTaskExtService.getByProcessDefinitionIdAndTaskId(processDefinitionId, taskInfoVo.getTaskKey()); - if (flowTaskExt != null) { - if (StrUtil.isNotBlank(flowTaskExt.getOperationListJson())) { - taskInfoVo.setOperationList(JSON.parseArray(flowTaskExt.getOperationListJson(), JSONObject.class)); - } - if (StrUtil.isNotBlank(flowTaskExt.getVariableListJson())) { - taskInfoVo.setVariableList(JSON.parseArray(flowTaskExt.getVariableListJson(), JSONObject.class)); - } - } - return ResponseResult.success(taskInfoVo); - } - - /** - * 获取流程运行时指定任务的信息。 - * - * @param processDefinitionId 流程引擎的定义Id。 - * @param processInstanceId 流程引擎的实例Id。 - * @param taskId 流程引擎的任务Id。 - * @return 任务节点的自定义对象数据。 - */ - @GetMapping("/viewHistoricTaskInfo") - public ResponseResult viewHistoricTaskInfo( - @RequestParam String processDefinitionId, - @RequestParam String processInstanceId, - @RequestParam String taskId) { - String errorMessage; - HistoricTaskInstance taskInstance = flowApiService.getHistoricTaskInstance(processInstanceId, taskId); - String loginName = TokenData.takeFromRequest().getLoginName(); - if (!StrUtil.equals(taskInstance.getAssignee(), loginName)) { - errorMessage = "数据验证失败,当前用户不是指派人!"; - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - TaskInfoVo taskInfoVo = JSON.parseObject(taskInstance.getFormKey(), TaskInfoVo.class); - FlowTaskExt flowTaskExt = - flowTaskExtService.getByProcessDefinitionIdAndTaskId(processDefinitionId, taskInstance.getTaskDefinitionKey()); - if (flowTaskExt != null) { - if (StrUtil.isNotBlank(flowTaskExt.getOperationListJson())) { - taskInfoVo.setOperationList(JSON.parseArray(flowTaskExt.getOperationListJson(), JSONObject.class)); - } - if (StrUtil.isNotBlank(flowTaskExt.getVariableListJson())) { - taskInfoVo.setVariableList(JSON.parseArray(flowTaskExt.getVariableListJson(), JSONObject.class)); - } - } - return ResponseResult.success(taskInfoVo); - } - - /** - * 获取第一个提交表单数据的任务信息。 - * - * @param processInstanceId 流程实例Id。 - * @return 任务节点的自定义对象数据。 - */ - @GetMapping("/viewInitialHistoricTaskInfo") - public ResponseResult viewInitialHistoricTaskInfo(@RequestParam String processInstanceId) { - String errorMessage; - List taskCommentList = - flowTaskCommentService.getFlowTaskCommentList(processInstanceId); - if (CollUtil.isEmpty(taskCommentList)) { - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST); - } - FlowTaskComment taskComment = taskCommentList.get(0); - if (ObjectUtil.notEqual(taskComment.getCreateUserId(), TokenData.takeFromRequest().getUserId())) { - errorMessage = "数据验证失败,当前流程发起人与当前用户不匹配!"; - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - HistoricTaskInstance task = flowApiService.getHistoricTaskInstance(processInstanceId, taskComment.getTaskId()); - if (StrUtil.isBlank(task.getFormKey())) { - errorMessage = "数据验证失败,指定任务的formKey属性不存在,请重新修改流程图!"; - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - TaskInfoVo taskInfo = JSON.parseObject(task.getFormKey(), TaskInfoVo.class); - taskInfo.setTaskKey(task.getTaskDefinitionKey()); - return ResponseResult.success(taskInfo); - } - - /** - * 提交多实例加签。 - * - * @param processInstanceId 流程实例Id。 - * @param taskId 多实例任务的上一级任务Id。 - * @param newAssignees 新的加签人列表,多个指派人之间逗号分隔。 - * @return 应答结果。 - */ - @PostMapping("/submitConsign") - public ResponseResult submitConsign( - @MyRequestBody(required = true) String processInstanceId, - @MyRequestBody(required = true) String taskId, - @MyRequestBody(required = true) String newAssignees) { - String errorMessage; - if (!flowApiService.existActiveProcessInstance(processInstanceId)) { - errorMessage = "数据验证失败,当前流程实例已经结束,不能执行加签!"; - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - HistoricTaskInstance taskInstance = flowApiService.getHistoricTaskInstance(processInstanceId, taskId); - if (taskInstance == null) { - errorMessage = "数据验证失败,当前任务不存在!"; - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - if (!StrUtil.equals(taskInstance.getAssignee(), TokenData.takeFromRequest().getLoginName())) { - errorMessage = "数据验证失败,任务指派人与当前用户不匹配!"; - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - List activeTaskList = flowApiService.getProcessInstanceActiveTaskList(processInstanceId); - Task activeMultiInstanceTask = null; - for (Task activeTask : activeTaskList) { - Object startTaskId = flowApiService.getTaskVariable( - activeTask.getId(), FlowConstant.MULTI_SIGN_START_TASK_VAR); - if (startTaskId != null && startTaskId.toString().equals(taskId)) { - activeMultiInstanceTask = activeTask; - break; - } - } - if (activeMultiInstanceTask == null) { - errorMessage = "数据验证失败,指定加签任务不存在或已审批完毕!"; - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - flowApiService.submitConsign(taskInstance, activeMultiInstanceTask, newAssignees); - return ResponseResult.success(); - } - - /** - * 返回当前用户待办的任务列表。 - * - * @param processDefinitionKey 流程标识。 - * @param processDefinitionName 流程定义名 (模糊查询)。 - * @param taskName 任务名称 (魔术查询。 - * @param pageParam 分页对象。 - * @return 返回当前用户待办的任务列表。如果指定流程标识,则仅返回该流程的待办任务列表。 - */ - @PostMapping("/listRuntimeTask") - public ResponseResult> listRuntimeTask( - @MyRequestBody String processDefinitionKey, - @MyRequestBody String processDefinitionName, - @MyRequestBody String taskName, - @MyRequestBody(required = true) MyPageParam pageParam) { - String username = TokenData.takeFromRequest().getLoginName(); - MyPageData pageData = flowApiService.getTaskListByUserName( - username, processDefinitionKey, processDefinitionName, taskName, pageParam); - List flowTaskVoList = flowApiService.convertToFlowTaskList(pageData.getDataList()); - return ResponseResult.success(MyPageUtil.makeResponseData(flowTaskVoList, pageData.getTotalCount())); - } - - /** - * 返回当前用户待办的任务数量。 - * - * @return 返回当前用户待办的任务数量。 - */ - @PostMapping("/countRuntimeTask") - public ResponseResult countRuntimeTask() { - String username = TokenData.takeFromRequest().getLoginName(); - long totalCount = flowApiService.getTaskCountByUserName(username); - return ResponseResult.success(totalCount); - } - - /** - * 获取当前流程任务的审批列表。 - * - * @param processInstanceId 当前运行时的流程实例Id。 - * @return 当前流程实例的详情数据。 - */ - @GetMapping("/listFlowTaskComment") - public ResponseResult> listFlowTaskComment(@RequestParam String processInstanceId) { - List flowTaskCommentList = - flowTaskCommentService.getFlowTaskCommentList(processInstanceId); - List resultList = FlowTaskComment.INSTANCE.fromModelList(flowTaskCommentList); - return ResponseResult.success(resultList); - } - - /** - * 获取指定流程定义的流程图。 - * - * @param processDefinitionId 流程定义Id。 - * @return 流程图。 - */ - @GetMapping("/viewProcessBpmn") - public ResponseResult viewProcessBpmn(@RequestParam String processDefinitionId) throws IOException { - BpmnXMLConverter converter = new BpmnXMLConverter(); - BpmnModel bpmnModel = flowApiService.getBpmnModelByDefinitionId(processDefinitionId); - byte[] xmlBytes = converter.convertToXML(bpmnModel); - InputStream in = new ByteArrayInputStream(xmlBytes); - return ResponseResult.success(StreamUtils.copyToString(in, StandardCharsets.UTF_8)); - } - - /** - * 获取流程图高亮数据。 - * - * @param processInstanceId 流程实例Id。 - * @return 流程图高亮数据。 - */ - @GetMapping("/viewHighlightFlowData") - public ResponseResult viewHighlightFlowData(@RequestParam String processInstanceId) { - HistoricProcessInstance hpi = flowApiService.getHistoricProcessInstance(processInstanceId); - BpmnModel bpmnModel = flowApiService.getBpmnModelByDefinitionId(hpi.getProcessDefinitionId()); - List processList = bpmnModel.getProcesses(); - List flowElementList = new LinkedList<>(); - processList.forEach(p -> flowElementList.addAll(p.getFlowElements())); - Map allSequenceFlowMap = new HashMap<>(16); - for (FlowElement flowElement : flowElementList) { - if (flowElement instanceof SequenceFlow) { - SequenceFlow sequenceFlow = (SequenceFlow) flowElement; - String ref = sequenceFlow.getSourceRef(); - String targetRef = sequenceFlow.getTargetRef(); - allSequenceFlowMap.put(ref + targetRef, sequenceFlow.getId()); - } - } - Set finishedTaskSet = new LinkedHashSet<>(); - //获取流程实例的历史节点(全部执行过的节点,被拒绝的任务节点将会出现多次) - List activityInstanceList = - flowApiService.getHistoricActivityInstanceList(processInstanceId); - Set finishedTaskSequenceSet = new LinkedHashSet<>(); - for (int i = 0; i < activityInstanceList.size(); i++) { - HistoricActivityInstance current = activityInstanceList.get(i); - if (i != activityInstanceList.size() - 1) { - HistoricActivityInstance next = activityInstanceList.get(i + 1); - finishedTaskSequenceSet.add(current.getActivityId() + next.getActivityId()); - } - finishedTaskSet.add(current.getActivityId()); - } - Set finishedSequenceFlowSet = new HashSet<>(); - finishedTaskSequenceSet.forEach(s -> finishedSequenceFlowSet.add(allSequenceFlowMap.get(s))); - //获取流程实例当前正在待办的节点 - List unfinishedInstanceList = - flowApiService.getHistoricUnfinishedInstanceList(processInstanceId); - Set unfinishedTaskSet = new LinkedHashSet<>(); - for (HistoricActivityInstance unfinishedActivity : unfinishedInstanceList) { - unfinishedTaskSet.add(unfinishedActivity.getActivityId()); - } - JSONObject jsonData = new JSONObject(); - jsonData.put("finishedTaskSet", finishedTaskSet); - jsonData.put("finishedSequenceFlowSet", finishedSequenceFlowSet); - jsonData.put("unfinishedTaskSet", unfinishedTaskSet); - return ResponseResult.success(jsonData); - } - - /** - * 获取当前用户的已办理的审批任务列表。 - * - * @param processDefinitionName 流程名。 - * @param beginDate 流程发起开始时间。 - * @param endDate 流程发起结束时间。 - * @param pageParam 分页对象。 - * @return 查询结果应答。 - */ - @PostMapping("/listHistoricTask") - public ResponseResult>> listHistoricTask( - @MyRequestBody String processDefinitionName, - @MyRequestBody String beginDate, - @MyRequestBody String endDate, - @MyRequestBody(required = true) MyPageParam pageParam) throws ParseException { - MyPageData pageData = - flowApiService.getHistoricTaskInstanceFinishedList(processDefinitionName, beginDate, endDate, pageParam); - List> resultList = new LinkedList<>(); - pageData.getDataList().forEach(instance -> resultList.add(BeanUtil.beanToMap(instance))); - List taskInstanceList = pageData.getDataList(); - if (CollUtil.isNotEmpty(taskInstanceList)) { - Set instanceIdSet = taskInstanceList.stream() - .map(HistoricTaskInstance::getProcessInstanceId).collect(Collectors.toSet()); - List instanceList = flowApiService.getHistoricProcessInstanceList(instanceIdSet); - Map instanceMap = - instanceList.stream().collect(Collectors.toMap(HistoricProcessInstance::getId, c -> c)); - resultList.forEach(result -> { - HistoricProcessInstance instance = instanceMap.get(result.get("processInstanceId").toString()); - result.put("processDefinitionKey", instance.getProcessDefinitionKey()); - result.put("processDefinitionName", instance.getProcessDefinitionName()); - result.put("startUser", instance.getStartUserId()); - result.put("businessKey", instance.getBusinessKey()); - }); - Set taskIdSet = - taskInstanceList.stream().map(HistoricTaskInstance::getId).collect(Collectors.toSet()); - List commentList = flowTaskCommentService.getFlowTaskCommentListByTaskIds(taskIdSet); - Map> commentMap = - commentList.stream().collect(Collectors.groupingBy(FlowTaskComment::getTaskId)); - resultList.forEach(result -> { - List comments = commentMap.get(result.get("id").toString()); - if (CollUtil.isNotEmpty(comments)) { - result.put("approvalType", comments.get(0).getApprovalType()); - comments.remove(0); - } - }); - } - return ResponseResult.success(MyPageUtil.makeResponseData(resultList, pageData.getTotalCount())); - } - - /** - * 根据输入参数查询,当前用户的历史流程数据。 - * - * @param processDefinitionName 流程名。 - * @param beginDate 流程发起开始时间。 - * @param endDate 流程发起结束时间。 - * @param pageParam 分页对象。 - * @return 查询结果应答。 - */ - @PostMapping("/listHistoricProcessInstance") - public ResponseResult>> listHistoricProcessInstance( - @MyRequestBody String processDefinitionName, - @MyRequestBody String beginDate, - @MyRequestBody String endDate, - @MyRequestBody(required = true) MyPageParam pageParam) throws ParseException { - String loginName = TokenData.takeFromRequest().getLoginName(); - MyPageData pageData = flowApiService.getHistoricProcessInstanceList( - null, processDefinitionName, loginName, beginDate, endDate, pageParam, true); - List> resultList = new LinkedList<>(); - pageData.getDataList().forEach(instance -> resultList.add(BeanUtil.beanToMap(instance))); - return ResponseResult.success(MyPageUtil.makeResponseData(resultList, pageData.getTotalCount())); - } - - /** - * 根据输入参数查询,所有历史流程数据。 - * - * @param processDefinitionName 流程名。 - * @param startUser 流程发起用户。 - * @param beginDate 流程发起开始时间。 - * @param endDate 流程发起结束时间。 - * @param pageParam 分页对象。 - * @return 查询结果。 - */ - @PostMapping("/listAllHistoricProcessInstance") - public ResponseResult>> listAllHistoricProcessInstance( - @MyRequestBody String processDefinitionName, - @MyRequestBody String startUser, - @MyRequestBody String beginDate, - @MyRequestBody String endDate, - @MyRequestBody(required = true) MyPageParam pageParam) throws ParseException { - MyPageData pageData = flowApiService.getHistoricProcessInstanceList( - null, processDefinitionName, startUser, beginDate, endDate, pageParam, false); - List> resultList = new LinkedList<>(); - pageData.getDataList().forEach(instance -> resultList.add(BeanUtil.beanToMap(instance))); - return ResponseResult.success(MyPageUtil.makeResponseData(resultList, pageData.getTotalCount())); - } - - /** - * 催办工单,只有流程发起人才可以催办工单。 - * 催办场景必须要取消数据权限过滤,因为流程的指派很可能是跨越部门的。 - * 既然被指派和催办了,这里就应该禁用工单表的数据权限过滤约束。 - * 如果您的系统没有支持数据权限过滤,DisableDataFilter不会有任何影响,建议保留。 - * - * @param workOrderId 工单Id。 - * @return 应答结果。 - */ - @DisableDataFilter - @PostMapping("/remindRuntimeTask") - public ResponseResult remindRuntimeTask(@MyRequestBody(required = true) Long workOrderId) { - FlowWorkOrder flowWorkOrder = flowWorkOrderService.getById(workOrderId); - if (flowWorkOrder == null) { - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST); - } - String errorMessage; - if (!flowWorkOrder.getCreateUserId().equals(TokenData.takeFromRequest().getUserId())) { - errorMessage = "数据验证失败,只有流程发起人才能催办工单!"; - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - if (flowWorkOrder.getFlowStatus().equals(FlowTaskStatus.FINISHED)) { - errorMessage = "数据验证失败,已经结束的流程,不能催办工单!"; - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - flowMessageService.saveNewRemindMessage(flowWorkOrder); - return ResponseResult.success(); - } - - /** - * 取消工作流工单,仅当没有进入任何审批流程之前,才可以取消工单。 - * - * @param workOrderId 工单Id。 - * @param cancelReason 取消原因。 - * @return 应答结果。 - */ - @DisableDataFilter - @PostMapping("/cancelWorkOrder") - public ResponseResult cancelWorkOrder( - @MyRequestBody(required = true) Long workOrderId, - @MyRequestBody(required = true) String cancelReason) { - FlowWorkOrder flowWorkOrder = flowWorkOrderService.getById(workOrderId); - if (flowWorkOrder == null) { - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST); - } - String errorMessage; - if (!flowWorkOrder.getFlowStatus().equals(FlowTaskStatus.SUBMITTED)) { - errorMessage = "数据验证失败,当前流程已经进入审批状态,不能撤销工单!"; - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - if (!flowWorkOrder.getCreateUserId().equals(TokenData.takeFromRequest().getUserId())) { - errorMessage = "数据验证失败,当前用户不是工单所有者,不能撤销工单!"; - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - CallResult result = flowApiService.stopProcessInstance( - flowWorkOrder.getProcessInstanceId(), cancelReason, true); - if (!result.isSuccess()) { - return ResponseResult.errorFrom(result); - } - return ResponseResult.success(); - } - - /** - * 终止流程实例,将任务从当前节点直接流转到主流程的结束事件。 - * - * @param processInstanceId 流程实例Id。 - * @param stopReason 停止原因。 - * @return 执行结果应答。 - */ - @DisableDataFilter - @PostMapping("/stopProcessInstance") - public ResponseResult stopProcessInstance( - @MyRequestBody(required = true) String processInstanceId, - @MyRequestBody(required = true) String stopReason) { - CallResult result = flowApiService.stopProcessInstance(processInstanceId, stopReason, false); - if (!result.isSuccess()) { - return ResponseResult.errorFrom(result); - } - return ResponseResult.success(); - } - - /** - * 删除流程实例。 - * - * @param processInstanceId 流程实例Id。 - * @return 执行结果应答。 - */ - @PostMapping("/deleteProcessInstance") - public ResponseResult deleteProcessInstance(@MyRequestBody(required = true) String processInstanceId) { - flowApiService.deleteProcessInstance(processInstanceId); - return ResponseResult.success(); - } -} diff --git a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/custom/CustomUserGroupManager.java b/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/custom/CustomUserGroupManager.java deleted file mode 100644 index 272ce0cf..00000000 --- a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/custom/CustomUserGroupManager.java +++ /dev/null @@ -1,30 +0,0 @@ -package com.orangeforms.common.flow.custom; - -import org.activiti.api.runtime.shared.identity.UserGroupManager; -import org.springframework.stereotype.Service; - -import java.util.List; - -@Service -public class CustomUserGroupManager implements UserGroupManager { - - @Override - public List getUserGroups(String username) { - return null; - } - - @Override - public List getUserRoles(String username) { - return null; - } - - @Override - public List getGroups() { - return null; - } - - @Override - public List getUsers() { - return null; - } -} diff --git a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dao/FlowCategoryMapper.java b/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dao/FlowCategoryMapper.java deleted file mode 100644 index 8c900c14..00000000 --- a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dao/FlowCategoryMapper.java +++ /dev/null @@ -1,26 +0,0 @@ -package com.orangeforms.common.flow.dao; - -import com.orangeforms.common.core.base.dao.BaseDaoMapper; -import com.orangeforms.common.flow.model.FlowCategory; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * FlowCategory数据操作访问接口。 - * - * @author Jerry - * @date 2021-06-06 - */ -public interface FlowCategoryMapper extends BaseDaoMapper { - - /** - * 获取过滤后的对象列表。 - * - * @param flowCategoryFilter 主表过滤对象。 - * @param orderBy 排序字符串,order by从句的参数。 - * @return 对象列表。 - */ - List getFlowCategoryList( - @Param("flowCategoryFilter") FlowCategory flowCategoryFilter, @Param("orderBy") String orderBy); -} diff --git a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dao/FlowEntryMapper.java b/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dao/FlowEntryMapper.java deleted file mode 100644 index de550e91..00000000 --- a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dao/FlowEntryMapper.java +++ /dev/null @@ -1,26 +0,0 @@ -package com.orangeforms.common.flow.dao; - -import com.orangeforms.common.core.base.dao.BaseDaoMapper; -import com.orangeforms.common.flow.model.FlowEntry; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * FlowEntry数据操作访问接口。 - * - * @author Jerry - * @date 2021-06-06 - */ -public interface FlowEntryMapper extends BaseDaoMapper { - - /** - * 获取过滤后的对象列表。 - * - * @param flowEntryFilter 主表过滤对象。 - * @param orderBy 排序字符串,order by从句的参数。 - * @return 对象列表。 - */ - List getFlowEntryList( - @Param("flowEntryFilter") FlowEntry flowEntryFilter, @Param("orderBy") String orderBy); -} diff --git a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dao/FlowEntryPublishMapper.java b/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dao/FlowEntryPublishMapper.java deleted file mode 100644 index b9bc4471..00000000 --- a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dao/FlowEntryPublishMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.orangeforms.common.flow.dao; - -import com.orangeforms.common.core.base.dao.BaseDaoMapper; -import com.orangeforms.common.flow.model.FlowEntryPublish; - -/** - * 数据操作访问接口。 - * - * @author Jerry - * @date 2021-06-06 - */ -public interface FlowEntryPublishMapper extends BaseDaoMapper { -} diff --git a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dao/FlowEntryPublishVariableMapper.java b/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dao/FlowEntryPublishVariableMapper.java deleted file mode 100644 index f8a396bd..00000000 --- a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dao/FlowEntryPublishVariableMapper.java +++ /dev/null @@ -1,22 +0,0 @@ -package com.orangeforms.common.flow.dao; - -import com.orangeforms.common.core.base.dao.BaseDaoMapper; -import com.orangeforms.common.flow.model.FlowEntryPublishVariable; - -import java.util.List; - -/** - * 数据操作访问接口。 - * - * @author Jerry - * @date 2021-06-06 - */ -public interface FlowEntryPublishVariableMapper extends BaseDaoMapper { - - /** - * 批量插入流程发布的变量列表。 - * - * @param entryPublishVariableList 流程发布的变量列表。 - */ - void insertList(List entryPublishVariableList); -} diff --git a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dao/FlowEntryVariableMapper.java b/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dao/FlowEntryVariableMapper.java deleted file mode 100644 index 623794cd..00000000 --- a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dao/FlowEntryVariableMapper.java +++ /dev/null @@ -1,27 +0,0 @@ -package com.orangeforms.common.flow.dao; - -import com.orangeforms.common.core.base.dao.BaseDaoMapper; -import com.orangeforms.common.flow.model.FlowEntryVariable; -import org.apache.ibatis.annotations.Param; - -import java.util.*; - -/** - * 流程变量数据操作访问接口。 - * - * @author Jerry - * @date 2021-06-06 - */ -public interface FlowEntryVariableMapper extends BaseDaoMapper { - - /** - * 获取过滤后的对象列表。 - * - * @param flowEntryVariableFilter 主表过滤对象。 - * @param orderBy 排序字符串,order by从句的参数。 - * @return 对象列表。 - */ - List getFlowEntryVariableList( - @Param("flowEntryVariableFilter") FlowEntryVariable flowEntryVariableFilter, - @Param("orderBy") String orderBy); -} diff --git a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dao/FlowMessageCandidateIdentityMapper.java b/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dao/FlowMessageCandidateIdentityMapper.java deleted file mode 100644 index 4c5a9402..00000000 --- a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dao/FlowMessageCandidateIdentityMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.orangeforms.common.flow.dao; - -import com.orangeforms.common.core.base.dao.BaseDaoMapper; -import com.orangeforms.common.flow.model.FlowMessageCandidateIdentity; - -/** - * 流程任务消息的候选身份数据操作访问接口。 - * - * @author Jerry - * @date 2021-06-06 - */ -public interface FlowMessageCandidateIdentityMapper extends BaseDaoMapper { -} diff --git a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dao/FlowMessageMapper.java b/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dao/FlowMessageMapper.java deleted file mode 100644 index 5f81b8e8..00000000 --- a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dao/FlowMessageMapper.java +++ /dev/null @@ -1,27 +0,0 @@ -package com.orangeforms.common.flow.dao; - -import com.orangeforms.common.core.base.dao.BaseDaoMapper; -import com.orangeforms.common.flow.model.FlowMessage; -import org.apache.ibatis.annotations.Param; - -import java.util.List; -import java.util.Set; - -/** - * 工作流消息数据操作访问接口。 - * - * @author Jerry - * @date 2021-06-06 - */ -public interface FlowMessageMapper extends BaseDaoMapper { - - /** - * 获取指定用户和身份分组Id集合的催办消息列表。 - * - * @param loginName 用户的登录名。与流程任务的assignee精确匹配。 - * @param groupIdSet 用户身份分组Id集合。 - * @return 查询后的催办消息列表。 - */ - List getRemindingMessageListByUser( - @Param("loginName") String loginName, @Param("groupIdSet") Set groupIdSet); -} diff --git a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dao/FlowTaskCommentMapper.java b/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dao/FlowTaskCommentMapper.java deleted file mode 100644 index 820110de..00000000 --- a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dao/FlowTaskCommentMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.orangeforms.common.flow.dao; - -import com.orangeforms.common.core.base.dao.BaseDaoMapper; -import com.orangeforms.common.flow.model.FlowTaskComment; - -/** - * 流程任务批注数据操作访问接口。 - * - * @author Jerry - * @date 2021-06-06 - */ -public interface FlowTaskCommentMapper extends BaseDaoMapper { -} diff --git a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dao/FlowTaskExtMapper.java b/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dao/FlowTaskExtMapper.java deleted file mode 100644 index 66897856..00000000 --- a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dao/FlowTaskExtMapper.java +++ /dev/null @@ -1,22 +0,0 @@ -package com.orangeforms.common.flow.dao; - -import com.orangeforms.common.core.base.dao.BaseDaoMapper; -import com.orangeforms.common.flow.model.FlowTaskExt; - -import java.util.List; - -/** - * 流程任务扩展数据操作访问接口。 - * - * @author Jerry - * @date 2021-06-06 - */ -public interface FlowTaskExtMapper extends BaseDaoMapper { - - /** - * 批量插入流程任务扩展信息列表。 - * - * @param flowTaskExtList 流程任务扩展信息列表。 - */ - void insertList(List flowTaskExtList); -} diff --git a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dao/FlowWorkOrderMapper.java b/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dao/FlowWorkOrderMapper.java deleted file mode 100644 index 50b0bea3..00000000 --- a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dao/FlowWorkOrderMapper.java +++ /dev/null @@ -1,28 +0,0 @@ -package com.orangeforms.common.flow.dao; - -import com.orangeforms.common.core.annotation.EnableDataPerm; -import com.orangeforms.common.core.base.dao.BaseDaoMapper; -import com.orangeforms.common.flow.model.FlowWorkOrder; -import org.apache.ibatis.annotations.Param; - -import java.util.*; - -/** - * 工作流工单表数据操作访问接口。 - * - * @author Jerry - * @date 2021-06-06 - */ -@EnableDataPerm -public interface FlowWorkOrderMapper extends BaseDaoMapper { - - /** - * 获取过滤后的对象列表。 - * - * @param flowWorkOrderFilter 主表过滤对象。 - * @param orderBy 排序字符串,order by从句的参数。 - * @return 对象列表。 - */ - List getFlowWorkOrderList( - @Param("flowWorkOrderFilter") FlowWorkOrder flowWorkOrderFilter, @Param("orderBy") String orderBy); -} diff --git a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dao/mapper/FlowCategoryMapper.xml b/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dao/mapper/FlowCategoryMapper.xml deleted file mode 100644 index 514541f9..00000000 --- a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dao/mapper/FlowCategoryMapper.xml +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dao/mapper/FlowEntryMapper.xml b/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dao/mapper/FlowEntryMapper.xml deleted file mode 100644 index 12f6c02e..00000000 --- a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dao/mapper/FlowEntryMapper.xml +++ /dev/null @@ -1,73 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - AND zz_flow_entry.process_definition_name = #{flowEntryFilter.processDefinitionName} - - - AND zz_flow_entry.process_definition_key = #{flowEntryFilter.processDefinitionKey} - - - AND zz_flow_entry.category_id = #{flowEntryFilter.categoryId} - - - AND zz_flow_entry.status = #{flowEntryFilter.status} - - - - - - diff --git a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dao/mapper/FlowEntryPublishMapper.xml b/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dao/mapper/FlowEntryPublishMapper.xml deleted file mode 100644 index f222b357..00000000 --- a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dao/mapper/FlowEntryPublishMapper.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dao/mapper/FlowEntryPublishVariableMapper.xml b/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dao/mapper/FlowEntryPublishVariableMapper.xml deleted file mode 100644 index c3be0cf1..00000000 --- a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dao/mapper/FlowEntryPublishVariableMapper.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - - - - - - - - - - INSERT INTO zz_flow_entry_publish_variable VALUES - - (#{item.variableId}, - #{item.entryPublishId}, - #{item.variableName}, - #{item.showName}, - #{item.variableType}, - #{item.bindDatasourceId}, - #{item.bindRelationId}, - #{item.bindColumnId}, - #{item.builtin}) - - - diff --git a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dao/mapper/FlowEntryVariableMapper.xml b/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dao/mapper/FlowEntryVariableMapper.xml deleted file mode 100644 index c72fea71..00000000 --- a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dao/mapper/FlowEntryVariableMapper.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - AND zz_flow_entry_variable.entry_id = #{flowEntryVariableFilter.entryId} - - - - - - diff --git a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dao/mapper/FlowMessageCandidateIdentityMapper.xml b/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dao/mapper/FlowMessageCandidateIdentityMapper.xml deleted file mode 100644 index b252f743..00000000 --- a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dao/mapper/FlowMessageCandidateIdentityMapper.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - diff --git a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dao/mapper/FlowMessageMapper.xml b/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dao/mapper/FlowMessageMapper.xml deleted file mode 100644 index b4a0e48a..00000000 --- a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dao/mapper/FlowMessageMapper.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dao/mapper/FlowTaskCommentMapper.xml b/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dao/mapper/FlowTaskCommentMapper.xml deleted file mode 100644 index ceb7449d..00000000 --- a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dao/mapper/FlowTaskCommentMapper.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - - - - - - - - diff --git a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dao/mapper/FlowTaskExtMapper.xml b/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dao/mapper/FlowTaskExtMapper.xml deleted file mode 100644 index 79b03cd3..00000000 --- a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dao/mapper/FlowTaskExtMapper.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - - - - - - - - - - - - - INSERT INTO zz_flow_task_ext VALUES - - (#{item.processDefinitionId}, - #{item.taskId}, - #{item.operationListJson}, - #{item.variableListJson}, - #{item.assigneeListJson}, - #{item.groupType}, - #{item.deptPostListJson}, - #{item.roleIds}, - #{item.deptIds}, - #{item.candidateUsernames}) - - - diff --git a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dao/mapper/FlowWorkOrderMapper.xml b/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dao/mapper/FlowWorkOrderMapper.xml deleted file mode 100644 index fe1a1ba2..00000000 --- a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dao/mapper/FlowWorkOrderMapper.xml +++ /dev/null @@ -1,60 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - AND zz_flow_work_order.deleted_flag = ${@com.orangeforms.common.core.constant.GlobalDeletedFlag@NORMAL} - - - - - - - AND zz_flow_work_order.process_definition_key = #{flowWorkOrderFilter.processDefinitionKey} - - - AND zz_flow_work_order.flow_status = #{flowWorkOrderFilter.flowStatus} - - - AND zz_flow_work_order.create_time >= #{flowWorkOrderFilter.createTimeStart} - - - AND zz_flow_work_order.create_time <= #{flowWorkOrderFilter.createTimeEnd} - - - AND zz_flow_work_order.create_user_id = #{flowWorkOrderFilter.createUserId} - - - - - - diff --git a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dto/FlowCategoryDto.java b/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dto/FlowCategoryDto.java deleted file mode 100644 index c0588dd5..00000000 --- a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dto/FlowCategoryDto.java +++ /dev/null @@ -1,48 +0,0 @@ -package com.orangeforms.common.flow.dto; - -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import com.orangeforms.common.core.validator.UpdateGroup; -import lombok.Data; - -import javax.validation.constraints.NotBlank; -import javax.validation.constraints.NotNull; - -/** - * 流程分类的Dto对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@ApiModel("流程分类的Dto对象") -@Data -public class FlowCategoryDto { - - /** - * 主键Id。 - */ - @ApiModelProperty(value = "主键Id") - @NotNull(message = "数据验证失败,主键Id不能为空!", groups = {UpdateGroup.class}) - private Long categoryId; - - /** - * 显示名称。 - */ - @ApiModelProperty(value = "显示名称") - @NotBlank(message = "数据验证失败,显示名称不能为空!") - private String name; - - /** - * 分类编码。 - */ - @ApiModelProperty(value = "分类编码") - @NotBlank(message = "数据验证失败,分类编码不能为空!") - private String code; - - /** - * 实现顺序。 - */ - @ApiModelProperty(value = "实现顺序") - @NotNull(message = "数据验证失败,实现顺序不能为空!") - private Integer showOrder; -} diff --git a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dto/FlowEntryDto.java b/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dto/FlowEntryDto.java deleted file mode 100644 index 292358ce..00000000 --- a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dto/FlowEntryDto.java +++ /dev/null @@ -1,90 +0,0 @@ -package com.orangeforms.common.flow.dto; - -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import com.orangeforms.common.core.validator.ConstDictRef; -import com.orangeforms.common.core.validator.UpdateGroup; -import com.orangeforms.common.flow.model.constant.FlowBindFormType; -import com.orangeforms.common.flow.model.constant.FlowEntryStatus; -import lombok.Data; - -import javax.validation.constraints.NotBlank; -import javax.validation.constraints.NotNull; - -/** - * 流程的Dto对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@ApiModel("流程的Dto对象") -@Data -public class FlowEntryDto { - - /** - * 主键Id。 - */ - @ApiModelProperty(value = "主键Id") - @NotNull(message = "数据验证失败,主键不能为空!", groups = {UpdateGroup.class}) - private Long entryId; - - /** - * 流程名称。 - */ - @ApiModelProperty(value = "流程名称") - @NotBlank(message = "数据验证失败,流程名称不能为空!") - private String processDefinitionName; - - /** - * 流程标识Key。 - */ - @ApiModelProperty(value = "流程标识Key") - @NotBlank(message = "数据验证失败,流程标识Key不能为空!") - private String processDefinitionKey; - - /** - * 流程分类。 - */ - @ApiModelProperty(value = "流程分类") - @NotNull(message = "数据验证失败,流程分类不能为空!") - private Long categoryId; - - /** - * 流程状态。 - */ - @ApiModelProperty(value = "流程状态") - @ConstDictRef(constDictClass = FlowEntryStatus.class, message = "数据验证失败,工作流状态为无效值!") - private Integer status; - - /** - * 流程定义的xml。 - */ - @ApiModelProperty(value = "流程定义的xml") - private String bpmnXml; - - /** - * 绑定表单类型。 - */ - @ApiModelProperty(value = "绑定表单类型") - @ConstDictRef(constDictClass = FlowBindFormType.class, message = "数据验证失败,工作流绑定表单类型为无效值!") - @NotNull(message = "数据验证失败,工作流绑定表单类型不能为空!") - private Integer bindFormType; - - /** - * 在线表单的页面Id。 - */ - @ApiModelProperty(value = "在线表单的页面Id") - private Long pageId; - - /** - * 在线表单Id。 - */ - @ApiModelProperty(value = "在线表单Id") - private Long defaultFormId; - - /** - * 在线表单的缺省路由名称。 - */ - @ApiModelProperty(value = "在线表单的缺省路由名称") - private String defaultRouterName; -} diff --git a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dto/FlowEntryVariableDto.java b/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dto/FlowEntryVariableDto.java deleted file mode 100644 index b211d9bb..00000000 --- a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dto/FlowEntryVariableDto.java +++ /dev/null @@ -1,82 +0,0 @@ -package com.orangeforms.common.flow.dto; - -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import com.orangeforms.common.core.validator.ConstDictRef; -import com.orangeforms.common.core.validator.UpdateGroup; -import com.orangeforms.common.flow.model.constant.FlowVariableType; -import lombok.Data; - -import javax.validation.constraints.*; - -/** - * 流程变量Dto对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@ApiModel("流程变量Dto对象") -@Data -public class FlowEntryVariableDto { - - /** - * 主键Id。 - */ - @ApiModelProperty(value = "主键Id") - @NotNull(message = "数据验证失败,主键Id不能为空!", groups = {UpdateGroup.class}) - private Long variableId; - - /** - * 流程Id。 - */ - @ApiModelProperty(value = "流程Id") - @NotNull(message = "数据验证失败,流程Id不能为空!") - private Long entryId; - - /** - * 变量名。 - */ - @ApiModelProperty(value = "变量名") - @NotBlank(message = "数据验证失败,变量名不能为空!") - private String variableName; - - /** - * 显示名。 - */ - @ApiModelProperty(value = "显示名") - @NotBlank(message = "数据验证失败,显示名不能为空!") - private String showName; - - /** - * 流程变量类型。 - */ - @ApiModelProperty(value = "流程变量类型") - @ConstDictRef(constDictClass = FlowVariableType.class, message = "数据验证失败,流程变量类型为无效值!") - @NotNull(message = "数据验证失败,流程变量类型不能为空!") - private Integer variableType; - - /** - * 绑定数据源Id。 - */ - @ApiModelProperty(value = "绑定数据源Id") - private Long bindDatasourceId; - - /** - * 绑定数据源关联Id。 - */ - @ApiModelProperty(value = "绑定数据源关联Id") - private Long bindRelationId; - - /** - * 绑定字段Id。 - */ - @ApiModelProperty(value = "绑定字段Id") - private Long bindColumnId; - - /** - * 是否内置。 - */ - @ApiModelProperty(value = "是否内置") - @NotNull(message = "数据验证失败,是否内置不能为空!") - private Boolean builtin; -} diff --git a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dto/FlowMessageDto.java b/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dto/FlowMessageDto.java deleted file mode 100644 index 7d1cc68c..00000000 --- a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dto/FlowMessageDto.java +++ /dev/null @@ -1,52 +0,0 @@ -package com.orangeforms.common.flow.dto; - -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.Data; - -/** - * 工作流通知消息Dto对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@ApiModel("工作流通知消息Dto对象") -@Data -public class FlowMessageDto { - - /** - * 消息类型。 - */ - @ApiModelProperty(value = "消息类型") - private Integer messageType; - - /** - * 工单Id。 - */ - @ApiModelProperty(value = "工单Id") - private Long workOrderId; - - /** - * 流程名称。 - */ - @ApiModelProperty(value = "流程名称") - private String processDefinitionName; - - /** - * 流程任务名称。 - */ - @ApiModelProperty(value = "流程任务名称") - private String taskName; - - /** - * 更新时间范围过滤起始值(>=)。 - */ - @ApiModelProperty(value = "updateTime 范围过滤起始值") - private String updateTimeStart; - - /** - * 更新时间范围过滤结束值(<=)。 - */ - @ApiModelProperty(value = "updateTime 范围过滤结束值") - private String updateTimeEnd; -} diff --git a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dto/FlowTaskCommentDto.java b/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dto/FlowTaskCommentDto.java deleted file mode 100644 index 9ab9a644..00000000 --- a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dto/FlowTaskCommentDto.java +++ /dev/null @@ -1,39 +0,0 @@ -package com.orangeforms.common.flow.dto; - -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.Data; - -import javax.validation.constraints.NotBlank; -import javax.validation.constraints.NotNull; - -/** - * 流程任务的批注。 - * - * @author Jerry - * @date 2021-06-06 - */ -@ApiModel("流程任务的批注") -@Data -public class FlowTaskCommentDto { - - /** - * 流程任务触发按钮类型,内置值可参考FlowTaskButton。 - */ - @ApiModelProperty(value = "流程任务触发按钮类型") - @NotNull(message = "数据验证失败,任务的审批类型不能为空!") - private String approvalType; - - /** - * 流程任务的批注内容。 - */ - @ApiModelProperty(value = "流程任务的批注内容") - @NotBlank(message = "数据验证失败,任务审批内容不能为空!") - private String comment; - - /** - * 委托指定人,比如加签、转办等。 - */ - @ApiModelProperty(value = "委托指定人,比如加签、转办等") - private String delegateAssginee; -} diff --git a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dto/FlowWorkOrderDto.java b/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dto/FlowWorkOrderDto.java deleted file mode 100644 index 228f5588..00000000 --- a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/dto/FlowWorkOrderDto.java +++ /dev/null @@ -1,34 +0,0 @@ -package com.orangeforms.common.flow.dto; - -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.Data; - -/** - * 工作流工单Dto对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@ApiModel("工作流工单Dto对象") -@Data -public class FlowWorkOrderDto { - - /** - * 流程状态。参考FlowTaskStatus常量值对象。 - */ - @ApiModelProperty(value = "流程状态") - private Integer flowStatus; - - /** - * createTime 范围过滤起始值(>=)。 - */ - @ApiModelProperty(value = "createTime 范围过滤起始值") - private String createTimeStart; - - /** - * createTime 范围过滤结束值(<=)。 - */ - @ApiModelProperty(value = "createTime 范围过滤结束值") - private String createTimeEnd; -} diff --git a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/exception/FlowOperationException.java b/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/exception/FlowOperationException.java deleted file mode 100644 index 5ba2929b..00000000 --- a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/exception/FlowOperationException.java +++ /dev/null @@ -1,35 +0,0 @@ -package com.orangeforms.common.flow.exception; - -/** - * 流程操作异常。 - * - * @author Jerry - * @date 2021-06-06 - */ -public class FlowOperationException extends RuntimeException { - - /** - * 构造函数。 - */ - public FlowOperationException() { - - } - - /** - * 构造函数。 - * - * @param throwable 引发异常对象。 - */ - public FlowOperationException(Throwable throwable) { - super(throwable); - } - - /** - * 构造函数。 - * - * @param msg 错误信息。 - */ - public FlowOperationException(String msg) { - super(msg); - } -} diff --git a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/listener/DeptPostLeaderListener.java b/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/listener/DeptPostLeaderListener.java deleted file mode 100644 index 8c6de163..00000000 --- a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/listener/DeptPostLeaderListener.java +++ /dev/null @@ -1,27 +0,0 @@ -package com.orangeforms.common.flow.listener; - -import com.orangeforms.common.flow.constant.FlowConstant; -import lombok.extern.slf4j.Slf4j; -import org.activiti.engine.delegate.DelegateTask; -import org.activiti.engine.delegate.TaskListener; - -import java.util.Map; - -/** - * 当用户任务的候选组为本部门领导岗位时,该监听器会在任务创建时,获取当前流程实例发起人的部门领导。 - * 并将其指派为当前任务的候选组。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Slf4j -public class DeptPostLeaderListener implements TaskListener { - - @Override - public void notify(DelegateTask delegateTask) { - Map variables = delegateTask.getVariables(); - if (variables.get(FlowConstant.GROUP_TYPE_DEPT_POST_LEADER_VAR) == null) { - delegateTask.setAssignee(variables.get(FlowConstant.PROC_INSTANCE_START_USER_NAME_VAR).toString()); - } - } -} diff --git a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/listener/FlowFinishedListener.java b/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/listener/FlowFinishedListener.java deleted file mode 100644 index 6faee6e3..00000000 --- a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/listener/FlowFinishedListener.java +++ /dev/null @@ -1,41 +0,0 @@ -package com.orangeforms.common.flow.listener; - -import cn.hutool.core.util.StrUtil; -import com.orangeforms.common.core.util.ApplicationContextHolder; -import com.orangeforms.common.flow.model.FlowWorkOrder; -import com.orangeforms.common.flow.service.FlowWorkOrderService; -import com.orangeforms.common.flow.constant.FlowTaskStatus; -import com.orangeforms.common.flow.util.FlowCustomExtFactory; -import lombok.extern.slf4j.Slf4j; -import org.activiti.engine.delegate.DelegateExecution; -import org.activiti.engine.delegate.ExecutionListener; - -/** - * 流程实例监听器,在流程实例结束的时候,需要完成一些自定义的业务行为。如: - * 1. 更新流程工单表的审批状态字段。 - * 2. 业务数据同步。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Slf4j -public class FlowFinishedListener implements ExecutionListener { - - private final FlowWorkOrderService flowWorkOrderService = - ApplicationContextHolder.getBean(FlowWorkOrderService.class); - private final FlowCustomExtFactory flowCustomExtFactory = - ApplicationContextHolder.getBean(FlowCustomExtFactory.class); - - @Override - public void notify(DelegateExecution execution) { - if (!StrUtil.equals("end", execution.getEventName())) { - return; - } - String processInstanceId = execution.getProcessInstanceId(); - flowWorkOrderService.updateFlowStatusByProcessInstanceId(processInstanceId, FlowTaskStatus.FINISHED); - String businessKey = execution.getProcessInstanceBusinessKey(); - FlowWorkOrder workOrder = flowWorkOrderService.getFlowWorkOrderByProcessInstanceId(processInstanceId); - flowCustomExtFactory.getDataSyncExtHelper() - .triggerSync(workOrder.getProcessDefinitionKey(), processInstanceId, businessKey); - } -} diff --git a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/listener/UpDeptPostLeaderListener.java b/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/listener/UpDeptPostLeaderListener.java deleted file mode 100644 index 09d9c963..00000000 --- a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/listener/UpDeptPostLeaderListener.java +++ /dev/null @@ -1,27 +0,0 @@ -package com.orangeforms.common.flow.listener; - -import com.orangeforms.common.flow.constant.FlowConstant; -import lombok.extern.slf4j.Slf4j; -import org.activiti.engine.delegate.DelegateTask; -import org.activiti.engine.delegate.TaskListener; - -import java.util.Map; - -/** - * 当用户任务的候选组为上级部门领导岗位时,该监听器会在任务创建时,获取当前流程实例发起人的部门领导。 - * 并将其指派为当前任务的候选组。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Slf4j -public class UpDeptPostLeaderListener implements TaskListener { - - @Override - public void notify(DelegateTask delegateTask) { - Map variables = delegateTask.getVariables(); - if (variables.get(FlowConstant.GROUP_TYPE_UP_DEPT_POST_LEADER_VAR) == null) { - delegateTask.setAssignee(variables.get(FlowConstant.PROC_INSTANCE_START_USER_NAME_VAR).toString()); - } - } -} diff --git a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/model/FlowCategory.java b/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/model/FlowCategory.java deleted file mode 100644 index afdaeb2a..00000000 --- a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/model/FlowCategory.java +++ /dev/null @@ -1,74 +0,0 @@ -package com.orangeforms.common.flow.model; - -import com.baomidou.mybatisplus.annotation.*; -import com.orangeforms.common.core.base.mapper.BaseModelMapper; -import com.orangeforms.common.flow.vo.FlowCategoryVo; -import lombok.Data; -import org.mapstruct.Mapper; -import org.mapstruct.factory.Mappers; - -import java.util.Date; - -/** - * 流程分类的实体对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Data -@TableName(value = "zz_flow_category") -public class FlowCategory { - - /** - * 主键Id。 - */ - @TableId(value = "category_id") - private Long categoryId; - - /** - * 显示名称。 - */ - @TableField(value = "name") - private String name; - - /** - * 分类编码。 - */ - @TableField(value = "code") - private String code; - - /** - * 实现顺序。 - */ - @TableField(value = "show_order") - private Integer showOrder; - - /** - * 更新时间。 - */ - @TableField(value = "update_time") - private Date updateTime; - - /** - * 更新者Id。 - */ - @TableField(value = "update_user_id") - private Long updateUserId; - - /** - * 创建时间。 - */ - @TableField(value = "create_time") - private Date createTime; - - /** - * 创建者Id。 - */ - @TableField(value = "create_user_id") - private Long createUserId; - - @Mapper - public interface FlowCategoryModelMapper extends BaseModelMapper { - } - public static final FlowCategoryModelMapper INSTANCE = Mappers.getMapper(FlowCategoryModelMapper.class); -} diff --git a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/model/FlowEntry.java b/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/model/FlowEntry.java deleted file mode 100644 index 01011dbc..00000000 --- a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/model/FlowEntry.java +++ /dev/null @@ -1,155 +0,0 @@ -package com.orangeforms.common.flow.model; - -import com.baomidou.mybatisplus.annotation.*; -import com.orangeforms.common.core.annotation.RelationOneToOne; -import com.orangeforms.common.core.base.mapper.BaseModelMapper; -import com.orangeforms.common.flow.vo.FlowEntryVo; -import lombok.Data; -import org.mapstruct.Mapper; -import org.mapstruct.Mapping; -import org.mapstruct.factory.Mappers; - -import java.util.Date; - -/** - * 流程的实体对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Data -@TableName(value = "zz_flow_entry") -public class FlowEntry { - - /** - * 主键。 - */ - @TableId(value = "entry_id") - private Long entryId; - - /** - * 流程名称。 - */ - @TableField(value = "process_definition_name") - private String processDefinitionName; - - /** - * 流程标识Key。 - */ - @TableField(value = "process_definition_key") - private String processDefinitionKey; - - /** - * 流程分类。 - */ - @TableField(value = "category_id") - private Long categoryId; - - /** - * 工作流部署的发布主版本Id。 - */ - @TableField(value = "main_entry_publish_id") - private Long mainEntryPublishId; - - /** - * 最新发布时间。 - */ - @TableField(value = "lastest_publish_time") - private Date lastestPublishTime; - - /** - * 流程状态。 - */ - @TableField(value = "status") - private Integer status; - - /** - * 流程定义的xml。 - */ - @TableField(value = "bpmn_xml") - private String bpmnXml; - - /** - * 绑定表单类型。 - */ - @TableField(value = "bind_form_type") - private Integer bindFormType; - - /** - * 在线表单的页面Id。 - */ - @TableField(value = "page_id") - private Long pageId; - - /** - * 在线表单Id。 - */ - @TableField(value = "default_form_id") - private Long defaultFormId; - - /** - * 静态表单的缺省路由名称。 - */ - @TableField(value = "default_router_name") - private String defaultRouterName; - - /** - * 更新时间。 - */ - @TableField(value = "update_time") - private Date updateTime; - - /** - * 更新者Id。 - */ - @TableField(value = "update_user_id") - private Long updateUserId; - - /** - * 创建时间。 - */ - @TableField(value = "create_time") - private Date createTime; - - /** - * 创建者Id。 - */ - @TableField(value = "create_user_id") - private Long createUserId; - - @TableField(exist = false) - private FlowEntryPublish mainFlowEntryPublish; - - @RelationOneToOne( - masterIdField = "categoryId", - slaveServiceName = "flowCategoryService", - slaveModelClass = FlowCategory.class, - slaveIdField = "categoryId") - @TableField(exist = false) - private FlowCategory flowCategory; - - @Mapper - public interface FlowEntryModelMapper extends BaseModelMapper { - /** - * 转换Vo对象到实体对象。 - * - * @param flowEntryVo 域对象。 - * @return 实体对象。 - */ - @Mapping(target = "mainFlowEntryPublish", expression = "java(mapToBean(flowEntryVo.getMainFlowEntryPublish(), com.orangeforms.common.flow.model.FlowEntryPublish.class))") - @Mapping(target = "flowCategory", expression = "java(mapToBean(flowEntryVo.getFlowCategory(), com.orangeforms.common.flow.model.FlowCategory.class))") - @Override - FlowEntry toModel(FlowEntryVo flowEntryVo); - /** - * 转换实体对象到VO对象。 - * - * @param flowEntry 实体对象。 - * @return 域对象。 - */ - @Mapping(target = "mainFlowEntryPublish", expression = "java(beanToMap(flowEntry.getMainFlowEntryPublish(), false))") - @Mapping(target = "flowCategory", expression = "java(beanToMap(flowEntry.getFlowCategory(), false))") - @Override - FlowEntryVo fromModel(FlowEntry flowEntry); - } - public static final FlowEntryModelMapper INSTANCE = Mappers.getMapper(FlowEntryModelMapper.class); -} diff --git a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/model/FlowEntryPublish.java b/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/model/FlowEntryPublish.java deleted file mode 100644 index 06ea593a..00000000 --- a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/model/FlowEntryPublish.java +++ /dev/null @@ -1,77 +0,0 @@ -package com.orangeforms.common.flow.model; - -import com.baomidou.mybatisplus.annotation.*; -import lombok.Data; - -import java.util.Date; - -/** - * 流程发布数据的实体对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Data -@TableName(value = "zz_flow_entry_publish") -public class FlowEntryPublish { - - /** - * 主键Id。 - */ - @TableId(value = "entry_publish_id") - private Long entryPublishId; - - /** - * 流程Id。 - */ - @TableField(value = "entry_id") - private Long entryId; - - /** - * 流程引擎的部署Id。 - */ - @TableField(value = "deploy_id") - private String deployId; - - /** - * 流程引擎中的流程定义Id。 - */ - @TableField(value = "process_definition_id") - private String processDefinitionId; - - /** - * 发布版本。 - */ - @TableField(value = "publish_version") - private Integer publishVersion; - - /** - * 激活状态。 - */ - @TableField(value = "active_status") - private Boolean activeStatus; - - /** - * 是否为主版本。 - */ - @TableField(value = "main_version") - private Boolean mainVersion; - - /** - * 创建者Id。 - */ - @TableField(value = "create_user_id") - private Long createUserId; - - /** - * 发布时间。 - */ - @TableField(value = "publish_time") - private Date publishTime; - - /** - * 第一个非开始节点任务的附加信息。 - */ - @TableField(value = "init_task_info") - private String initTaskInfo; -} diff --git a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/model/FlowEntryPublishVariable.java b/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/model/FlowEntryPublishVariable.java deleted file mode 100644 index 53b45554..00000000 --- a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/model/FlowEntryPublishVariable.java +++ /dev/null @@ -1,69 +0,0 @@ -package com.orangeforms.common.flow.model; - -import com.baomidou.mybatisplus.annotation.*; -import lombok.Data; - -/** - * FlowEntryPublishVariable实体对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Data -@TableName(value = "zz_flow_entry_publish_variable") -public class FlowEntryPublishVariable { - - /** - * 主键Id。 - */ - @TableId(value = "variable_id") - private Long variableId; - - /** - * 流程Id。 - */ - @TableField(value = "entry_publish_id") - private Long entryPublishId; - - /** - * 变量名。 - */ - @TableField(value = "variable_name") - private String variableName; - - /** - * 显示名。 - */ - @TableField(value = "show_name") - private String showName; - - /** - * 变量类型。 - */ - @TableField(value = "variable_type") - private Integer variableType; - - /** - * 绑定数据源Id。 - */ - @TableField(value = "bind_datasource_id") - private Long bindDatasourceId; - - /** - * 绑定数据源关联Id。 - */ - @TableField(value = "bind_relation_id") - private Long bindRelationId; - - /** - * 绑定字段Id。 - */ - @TableField(value = "bind_column_id") - private Long bindColumnId; - - /** - * 是否内置。 - */ - @TableField(value = "builtin") - private Boolean builtin; -} diff --git a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/model/FlowEntryVariable.java b/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/model/FlowEntryVariable.java deleted file mode 100644 index e56aeb1f..00000000 --- a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/model/FlowEntryVariable.java +++ /dev/null @@ -1,86 +0,0 @@ -package com.orangeforms.common.flow.model; - -import com.baomidou.mybatisplus.annotation.*; -import com.orangeforms.common.core.base.mapper.BaseModelMapper; -import com.orangeforms.common.flow.vo.FlowEntryVariableVo; -import lombok.Data; -import org.mapstruct.*; -import org.mapstruct.factory.Mappers; - -import java.util.Date; - -/** - * 流程变量实体对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Data -@TableName(value = "zz_flow_entry_variable") -public class FlowEntryVariable { - - /** - * 主键Id。 - */ - @TableId(value = "variable_id") - private Long variableId; - - /** - * 流程Id。 - */ - @TableField(value = "entry_id") - private Long entryId; - - /** - * 变量名。 - */ - @TableField(value = "variable_name") - private String variableName; - - /** - * 显示名。 - */ - @TableField(value = "show_name") - private String showName; - - /** - * 流程变量类型。 - */ - @TableField(value = "variable_type") - private Integer variableType; - - /** - * 绑定数据源Id。 - */ - @TableField(value = "bind_datasource_id") - private Long bindDatasourceId; - - /** - * 绑定数据源关联Id。 - */ - @TableField(value = "bind_relation_id") - private Long bindRelationId; - - /** - * 绑定字段Id。 - */ - @TableField(value = "bind_column_id") - private Long bindColumnId; - - /** - * 是否内置。 - */ - @TableField(value = "builtin") - private Boolean builtin; - - /** - * 创建时间。 - */ - @TableField(value = "create_time") - private Date createTime; - - @Mapper - public interface FlowEntryVariableModelMapper extends BaseModelMapper { - } - public static final FlowEntryVariableModelMapper INSTANCE = Mappers.getMapper(FlowEntryVariableModelMapper.class); -} diff --git a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/model/FlowMessage.java b/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/model/FlowMessage.java deleted file mode 100644 index c2ebe281..00000000 --- a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/model/FlowMessage.java +++ /dev/null @@ -1,160 +0,0 @@ -package com.orangeforms.common.flow.model; - -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.orangeforms.common.core.base.mapper.BaseModelMapper; -import com.orangeforms.common.flow.vo.FlowMessageVo; -import lombok.Data; -import org.mapstruct.Mapper; -import org.mapstruct.factory.Mappers; - -import java.util.Date; - -/** - * 工作流通知消息实体对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Data -@TableName(value = "zz_flow_message") -public class FlowMessage { - - /** - * 主键Id。 - */ - @TableId(value = "message_id") - private Long messageId; - - /** - * 消息类型。 - */ - @TableField(value = "message_type") - private Integer messageType; - - /** - * 消息内容。 - */ - @TableField(value = "message_content") - private String messageContent; - - /** - * 催办次数。 - */ - @TableField(value = "remind_count") - private Integer remindCount; - - /** - * 工单Id。 - */ - @TableField(value = "work_order_id") - private Long workOrderId; - - /** - * 流程定义Id。 - */ - @TableField(value = "process_definition_id") - private String processDefinitionId; - - /** - * 流程定义标识。 - */ - @TableField(value = "process_definition_key") - private String processDefinitionKey; - - /** - * 流程名称。 - */ - @TableField(value = "process_definition_name") - private String processDefinitionName; - - /** - * 流程实例Id。 - */ - @TableField(value = "process_instance_id") - private String processInstanceId; - - /** - * 流程实例发起者。 - */ - @TableField(value = "process_instance_initiator") - private String processInstanceInitiator; - - /** - * 流程任务Id。 - */ - @TableField(value = "task_id") - private String taskId; - - /** - * 流程任务定义标识。 - */ - @TableField(value = "task_definition_key") - private String taskDefinitionKey; - - /** - * 流程任务名称。 - */ - @TableField(value = "task_name") - private String taskName; - - /** - * 创建时间。 - */ - @TableField(value = "task_start_time") - private Date taskStartTime; - - /** - * 任务指派人登录名。 - */ - @TableField(value = "task_assignee") - private String taskAssignee; - - /** - * 任务是否已完成。 - */ - @TableField(value = "task_finished") - private Boolean taskFinished; - - /** - * 业务数据快照。 - */ - @TableField(value = "business_data_shot") - private String businessDataShot; - - /** - * 更新时间。 - */ - @TableField(value = "update_time") - private Date updateTime; - - /** - * 更新者Id。 - */ - @TableField(value = "update_user_id") - private Long updateUserId; - - /** - * 创建时间。 - */ - @TableField(value = "create_time") - private Date createTime; - - /** - * 创建者Id。 - */ - @TableField(value = "create_user_id") - private Long createUserId; - - /** - * 创建者显示名。 - */ - @TableField(value = "create_username") - private String createUsername; - - @Mapper - public interface FlowMessageModelMapper extends BaseModelMapper { - } - public static final FlowMessage.FlowMessageModelMapper INSTANCE = Mappers.getMapper(FlowMessage.FlowMessageModelMapper.class); -} diff --git a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/model/FlowMessageCandidateIdentity.java b/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/model/FlowMessageCandidateIdentity.java deleted file mode 100644 index b35c13af..00000000 --- a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/model/FlowMessageCandidateIdentity.java +++ /dev/null @@ -1,41 +0,0 @@ -package com.orangeforms.common.flow.model; - -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import lombok.Data; - -/** - * 流程任务消息的候选身份实体对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Data -@TableName(value = "zz_flow_message_candicate_identity") -public class FlowMessageCandidateIdentity { - - /** - * 主键Id。 - */ - @TableId(value = "id") - private Long id; - - /** - * 任务消息Id。 - */ - @TableField(value = "message_id") - private Long messageId; - - /** - * 候选身份类型。 - */ - @TableField(value = "candidate_type") - private String candidateType; - - /** - * 候选身份Id。 - */ - @TableField(value = "candidate_id") - private String candidateId; -} diff --git a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/model/FlowTaskComment.java b/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/model/FlowTaskComment.java deleted file mode 100644 index c432a115..00000000 --- a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/model/FlowTaskComment.java +++ /dev/null @@ -1,106 +0,0 @@ -package com.orangeforms.common.flow.model; - -import com.baomidou.mybatisplus.annotation.*; -import com.orangeforms.common.core.base.mapper.BaseModelMapper; -import com.orangeforms.common.flow.vo.FlowTaskCommentVo; -import lombok.Data; -import lombok.NoArgsConstructor; -import org.activiti.engine.task.TaskInfo; -import org.mapstruct.*; -import org.mapstruct.factory.Mappers; - -import java.util.Date; - -/** - * FlowTaskComment实体对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Data -@NoArgsConstructor -@TableName(value = "zz_flow_task_comment") -public class FlowTaskComment { - - /** - * 主键Id。 - */ - @TableId(value = "id") - private Long id; - - /** - * 流程实例Id。 - */ - @TableField(value = "process_instance_id") - private String processInstanceId; - - /** - * 任务Id。 - */ - @TableField(value = "task_id") - private String taskId; - - /** - * 任务标识。 - */ - @TableField(value = "task_key") - private String taskKey; - - /** - * 任务名称。 - */ - @TableField(value = "task_name") - private String taskName; - - /** - * 审批类型。 - */ - @TableField(value = "approval_type") - private String approvalType; - - /** - * 批注内容。 - */ - @TableField(value = "comment") - private String comment; - - /** - * 委托指定人,比如加签、转办等。 - */ - @TableField(value = "delegate_assignee") - private String delegateAssginee; - - /** - * 创建者Id。 - */ - @TableField(value = "create_user_id") - private Long createUserId; - - /** - * 创建者显示名。 - */ - @TableField(value = "create_username") - private String createUsername; - - /** - * 创建时间。 - */ - @TableField(value = "create_time") - private Date createTime; - - public FlowTaskComment(TaskInfo task) { - this.fillWith(task); - } - - public void fillWith(TaskInfo task) { - this.taskId = task.getId(); - this.taskKey = task.getTaskDefinitionKey(); - this.taskName = task.getName(); - this.processInstanceId = task.getProcessInstanceId(); - } - - @Mapper - public interface FlowTaskCommentModelMapper extends BaseModelMapper { - } - public static final FlowTaskCommentModelMapper INSTANCE = Mappers.getMapper(FlowTaskCommentModelMapper.class); -} diff --git a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/model/FlowTaskExt.java b/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/model/FlowTaskExt.java deleted file mode 100644 index 57588843..00000000 --- a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/model/FlowTaskExt.java +++ /dev/null @@ -1,75 +0,0 @@ -package com.orangeforms.common.flow.model; - -import com.baomidou.mybatisplus.annotation.*; -import lombok.Data; - -/** - * 流程任务扩展实体对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Data -@TableName(value = "zz_flow_task_ext") -public class FlowTaskExt { - - /** - * 流程引擎的定义Id。 - */ - @TableField(value = "process_definition_id") - private String processDefinitionId; - - /** - * 流程引擎任务Id。 - */ - @TableField(value = "task_id") - private String taskId; - - /** - * 操作列表JSON。 - */ - @TableField(value = "operation_list_json") - private String operationListJson; - - /** - * 变量列表JSON。 - */ - @TableField(value = "variable_list_json") - private String variableListJson; - - /** - * 存储多实例的assigneeList的JSON。 - */ - @TableField(value = "assignee_list_json") - private String assigneeListJson; - - /** - * 分组类型。 - */ - @TableField(value = "group_type") - private String groupType; - - /** - * 保存岗位相关的数据。 - */ - @TableField(value = "dept_post_list_json") - private String deptPostListJson; - - /** - * 逗号分隔的角色Id。 - */ - @TableField(value = "role_ids") - private String roleIds; - - /** - * 逗号分隔的部门Id。 - */ - @TableField(value = "dept_ids") - private String deptIds; - - /** - * 逗号分隔候选用户名。 - */ - @TableField(value = "candidate_usernames") - private String candidateUsernames; -} diff --git a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/model/FlowWorkOrder.java b/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/model/FlowWorkOrder.java deleted file mode 100644 index a1de1f81..00000000 --- a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/model/FlowWorkOrder.java +++ /dev/null @@ -1,148 +0,0 @@ -package com.orangeforms.common.flow.model; - -import com.baomidou.mybatisplus.annotation.*; -import com.orangeforms.common.core.annotation.DeptFilterColumn; -import com.orangeforms.common.core.annotation.UserFilterColumn; -import com.orangeforms.common.core.annotation.RelationConstDict; -import com.orangeforms.common.core.base.mapper.BaseModelMapper; -import com.orangeforms.common.flow.constant.FlowTaskStatus; -import com.orangeforms.common.flow.vo.FlowWorkOrderVo; -import lombok.Data; -import org.mapstruct.*; -import org.mapstruct.factory.Mappers; - -import java.util.Date; -import java.util.Map; - -/** - * 工作流工单实体对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Data -@TableName(value = "zz_flow_work_order") -public class FlowWorkOrder { - - /** - * 主键Id。 - */ - @TableId(value = "work_order_id") - private Long workOrderId; - - /** - * 流程定义标识。 - */ - @TableField(value = "process_definition_key") - private String processDefinitionKey; - - /** - * 流程名称。 - */ - @TableField(value = "process_definition_name") - private String processDefinitionName; - - /** - * 流程引擎的定义Id。 - */ - @TableField(value = "process_definition_id") - private String processDefinitionId; - - /** - * 流程实例Id。 - */ - @TableField(value = "process_instance_id") - private String processInstanceId; - - /** - * 在线表单的主表Id。 - */ - @TableField(value = "online_table_id") - private Long onlineTableId; - - /** - * 静态表单所使用的数据表名。 - */ - @TableField(value = "table_name") - private String tableName; - - /** - * 业务主键值。 - */ - @TableField(value = "business_key") - private String businessKey; - - /** - * 流程状态。参考FlowTaskStatus常量值对象。 - */ - @TableField(value = "flow_status") - private Integer flowStatus; - - /** - * 提交用户登录名称。 - */ - @TableField(value = "submit_username") - private String submitUsername; - - /** - * 提交用户所在部门Id。 - */ - @DeptFilterColumn - @TableField(value = "dept_id") - private Long deptId; - - /** - * 更新时间。 - */ - @TableField(value = "update_time") - private Date updateTime; - - /** - * 更新者Id。 - */ - @TableField(value = "update_user_id") - private Long updateUserId; - - /** - * 创建时间。 - */ - @TableField(value = "create_time") - private Date createTime; - - /** - * 创建者Id。 - */ - @UserFilterColumn - @TableField(value = "create_user_id") - private Long createUserId; - - /** - * 逻辑删除标记字段(1: 正常 -1: 已删除)。 - */ - @TableLogic - @TableField(value = "deleted_flag") - private Integer deletedFlag; - - /** - * createTime 范围过滤起始值(>=)。 - */ - @TableField(exist = false) - private String createTimeStart; - - /** - * createTime 范围过滤结束值(<=)。 - */ - @TableField(exist = false) - private String createTimeEnd; - - @RelationConstDict( - masterIdField = "flowStatus", - constantDictClass = FlowTaskStatus.class) - @TableField(exist = false) - private Map flowStatusDictMap; - - @Mapper - public interface FlowWorkOrderModelMapper extends BaseModelMapper { - } - public static final FlowWorkOrderModelMapper INSTANCE = Mappers.getMapper(FlowWorkOrderModelMapper.class); -} diff --git a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/model/constant/FlowBindFormType.java b/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/model/constant/FlowBindFormType.java deleted file mode 100644 index e0a1f12f..00000000 --- a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/model/constant/FlowBindFormType.java +++ /dev/null @@ -1,44 +0,0 @@ -package com.orangeforms.common.flow.model.constant; - -import java.util.HashMap; -import java.util.Map; - -/** - * 工作流绑定表单类型。 - * - * @author Jerry - * @date 2021-06-06 - */ -public final class FlowBindFormType { - - /** - * 在线表单。 - */ - public static final int ONLINE_FORM = 0; - /** - * 路由表单。 - */ - public static final int ROUTER_FORM = 1; - - private static final Map DICT_MAP = new HashMap<>(2); - static { - DICT_MAP.put(ONLINE_FORM, "在线表单"); - DICT_MAP.put(ROUTER_FORM, "路由表单"); - } - - /** - * 判断参数是否为当前常量字典的合法值。 - * - * @param value 待验证的参数值。 - * @return 合法返回true,否则false。 - */ - public static boolean isValid(Integer value) { - return value != null && DICT_MAP.containsKey(value); - } - - /** - * 私有构造函数,明确标识该常量类的作用。 - */ - private FlowBindFormType() { - } -} diff --git a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/model/constant/FlowEntryStatus.java b/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/model/constant/FlowEntryStatus.java deleted file mode 100644 index 8e272f9f..00000000 --- a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/model/constant/FlowEntryStatus.java +++ /dev/null @@ -1,44 +0,0 @@ -package com.orangeforms.common.flow.model.constant; - -import java.util.HashMap; -import java.util.Map; - -/** - * 工作流状态。 - * - * @author Jerry - * @date 2021-06-06 - */ -public final class FlowEntryStatus { - - /** - * 未发布。 - */ - public static final int UNPUBLISHED = 0; - /** - * 已发布。 - */ - public static final int PUBLISHED = 1; - - private static final Map DICT_MAP = new HashMap<>(2); - static { - DICT_MAP.put(UNPUBLISHED, "未发布"); - DICT_MAP.put(PUBLISHED, "已发布"); - } - - /** - * 判断参数是否为当前常量字典的合法值。 - * - * @param value 待验证的参数值。 - * @return 合法返回true,否则false。 - */ - public static boolean isValid(Integer value) { - return value != null && DICT_MAP.containsKey(value); - } - - /** - * 私有构造函数,明确标识该常量类的作用。 - */ - private FlowEntryStatus() { - } -} diff --git a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/model/constant/FlowMessageType.java b/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/model/constant/FlowMessageType.java deleted file mode 100644 index 3a9a66f8..00000000 --- a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/model/constant/FlowMessageType.java +++ /dev/null @@ -1,39 +0,0 @@ -package com.orangeforms.common.flow.model.constant; - -import java.util.HashMap; -import java.util.Map; - -/** - * 工作流消息类型。 - * - * @author Jerry - * @date 2021-06-06 - */ -public final class FlowMessageType { - - /** - * 催办消息。 - */ - public static final int REMIND_TYPE = 0; - - private static final Map DICT_MAP = new HashMap<>(2); - static { - DICT_MAP.put(REMIND_TYPE, "催办消息"); - } - - /** - * 判断参数是否为当前常量字典的合法值。 - * - * @param value 待验证的参数值。 - * @return 合法返回true,否则false。 - */ - public static boolean isValid(Integer value) { - return value != null && DICT_MAP.containsKey(value); - } - - /** - * 私有构造函数,明确标识该常量类的作用。 - */ - private FlowMessageType() { - } -} diff --git a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/model/constant/FlowVariableType.java b/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/model/constant/FlowVariableType.java deleted file mode 100644 index 0334e3b8..00000000 --- a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/model/constant/FlowVariableType.java +++ /dev/null @@ -1,44 +0,0 @@ -package com.orangeforms.common.flow.model.constant; - -import java.util.HashMap; -import java.util.Map; - -/** - * 流程变量类型。 - * - * @author Jerry - * @date 2021-06-06 - */ -public final class FlowVariableType { - - /** - * 流程实例变量。 - */ - public static final int INSTANCE = 0; - /** - * 任务变量。 - */ - public static final int TASK = 1; - - private static final Map DICT_MAP = new HashMap<>(2); - static { - DICT_MAP.put(INSTANCE, "流程实例变量"); - DICT_MAP.put(TASK, "任务变量"); - } - - /** - * 判断参数是否为当前常量字典的合法值。 - * - * @param value 待验证的参数值。 - * @return 合法返回true,否则false。 - */ - public static boolean isValid(Integer value) { - return value != null && DICT_MAP.containsKey(value); - } - - /** - * 私有构造函数,明确标识该常量类的作用。 - */ - private FlowVariableType() { - } -} diff --git a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/object/FlowTaskMultiSignAssign.java b/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/object/FlowTaskMultiSignAssign.java deleted file mode 100644 index a69195b2..00000000 --- a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/object/FlowTaskMultiSignAssign.java +++ /dev/null @@ -1,28 +0,0 @@ -package com.orangeforms.common.flow.object; - -import lombok.Data; - -/** - * 表示多实例任务的指派人信息。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Data -public class FlowTaskMultiSignAssign { - - public static final String ASSIGN_TYPE_USER = "USER_GROUP"; - public static final String ASSIGN_TYPE_ROLE = "ROLE_GROUP"; - public static final String ASSIGN_TYPE_DEPT = "DEPT_GROUP"; - public static final String ASSIGN_TYPE_POST = "POST_GROUP"; - public static final String ASSIGN_TYPE_DEPT_POST = "DEPT_POST_GROUP"; - - /** - * 指派人类型。 - */ - private String assigneeType; - /** - * 逗号分隔的指派人列表。 - */ - private String assigneeList; -} diff --git a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/object/FlowTaskOperation.java b/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/object/FlowTaskOperation.java deleted file mode 100644 index 2004a5b4..00000000 --- a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/object/FlowTaskOperation.java +++ /dev/null @@ -1,34 +0,0 @@ -package com.orangeforms.common.flow.object; - -import lombok.Data; - -/** - * 流程图中的用户任务操作数据。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Data -public class FlowTaskOperation { - - /** - * 操作Id。 - */ - private String id; - /** - * 操作的标签名。 - */ - private String label; - /** - * 操作类型。 - */ - private String type; - /** - * 显示顺序。 - */ - private Integer showOrder; - /** - * 在流程图中定义的多实例会签的指定人员信息。 - */ - private FlowTaskMultiSignAssign multiSignAssignee; -} diff --git a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/object/FlowTaskPostCandidateGroup.java b/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/object/FlowTaskPostCandidateGroup.java deleted file mode 100644 index ecd9a27b..00000000 --- a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/object/FlowTaskPostCandidateGroup.java +++ /dev/null @@ -1,61 +0,0 @@ -package com.orangeforms.common.flow.object; - -import com.orangeforms.common.flow.constant.FlowConstant; -import lombok.Data; - -import java.util.LinkedList; -import java.util.List; - -/** - * 流程任务岗位候选组数据。仅用于流程任务的候选组类型为岗位时。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Data -public class FlowTaskPostCandidateGroup { - - /** - * 唯一值,目前仅前端使用。 - */ - private String id; - /** - * 岗位类型。 - * 1. 所有部门岗位审批变量,值为 (allDeptPost)。 - * 2. 本部门岗位审批变量,值为 (selfDeptPost)。 - * 3. 上级部门岗位审批变量,值为 (upDeptPost)。 - * 4. 任意部门关联的岗位审批变量,值为 (deptPost)。 - */ - private String type; - /** - * 岗位Id。type为(1,2,3)时使用该值。 - */ - private String postId; - /** - * 部门岗位Id。type为(4)时使用该值。 - */ - private String deptPostId; - - public static List buildCandidateGroupList(List groupDataList) { - List candidateGroupList = new LinkedList<>(); - for (FlowTaskPostCandidateGroup groupData : groupDataList) { - switch (groupData.getType()) { - case FlowConstant.GROUP_TYPE_ALL_DEPT_POST_VAR: - candidateGroupList.add(groupData.getPostId()); - break; - case FlowConstant.GROUP_TYPE_DEPT_POST_VAR: - candidateGroupList.add(groupData.getDeptPostId()); - break; - case FlowConstant.GROUP_TYPE_SELF_DEPT_POST_VAR: - candidateGroupList.add("${" + FlowConstant.SELF_DEPT_POST_PREFIX + groupData.getPostId() + "}"); - break; - case FlowConstant.GROUP_TYPE_UP_DEPT_POST_VAR: - candidateGroupList.add("${" + FlowConstant.UP_DEPT_POST_PREFIX + groupData.getPostId() + "}"); - break; - default: - break; - } - } - return candidateGroupList; - } -} diff --git a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/service/FlowApiService.java b/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/service/FlowApiService.java deleted file mode 100644 index 0e100447..00000000 --- a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/service/FlowApiService.java +++ /dev/null @@ -1,403 +0,0 @@ -package com.orangeforms.common.flow.service; - -import com.alibaba.fastjson.JSONObject; -import com.orangeforms.common.core.object.CallResult; -import com.orangeforms.common.core.object.MyPageData; -import com.orangeforms.common.core.object.MyPageParam; -import com.orangeforms.common.flow.model.FlowTaskComment; -import com.orangeforms.common.flow.vo.FlowTaskVo; -import org.activiti.bpmn.model.BpmnModel; -import org.activiti.bpmn.model.FlowElement; -import org.activiti.bpmn.model.UserTask; -import org.activiti.engine.delegate.ExecutionListener; -import org.activiti.engine.delegate.TaskListener; -import org.activiti.engine.history.HistoricActivityInstance; -import org.activiti.engine.history.HistoricProcessInstance; -import org.activiti.engine.history.HistoricTaskInstance; -import org.activiti.engine.repository.ProcessDefinition; -import org.activiti.engine.runtime.ProcessInstance; -import org.activiti.engine.task.Task; -import org.activiti.engine.task.TaskInfo; - -import javax.xml.stream.XMLStreamException; -import java.text.ParseException; -import java.util.Collection; -import java.util.List; -import java.util.Map; -import java.util.Set; - -/** - * 流程引擎API的接口封装服务。 - * - * @author Jerry - * @date 2021-06-06 - */ -public interface FlowApiService { - - /** - * 启动流程实例。 - * - * @param processDefinitionId 流程定义Id。 - * @param dataId 业务主键Id。 - * @return 新启动的流程实例。 - */ - ProcessInstance start(String processDefinitionId, Object dataId); - - /** - * 启动流程实例,如果当前登录用户为第一个用户任务的指派者,或者Assginee为流程启动人变量时, - * 则自动完成第一个用户任务。 - * - * @param processDefinitionId 流程定义Id。 - * @param dataId 当前流程主表的主键数据。 - * @param flowTaskComment 审批对象。 - * @param taskVariableData 流程任务的变量数据。 - * @return 新启动的流程实例。 - */ - ProcessInstance startAndTakeFirst( - String processDefinitionId, Object dataId, FlowTaskComment flowTaskComment, JSONObject taskVariableData); - - /** - * 多实例加签。 - * - * @param startTaskInstance 会签对象的发起任务实例。 - * @param multiInstanceActiveTask 正在执行的多实例任务对象。 - * @param newAssignees 新指派人,多个指派人之间逗号分隔。 - */ - void submitConsign(HistoricTaskInstance startTaskInstance, Task multiInstanceActiveTask, String newAssignees); - - /** - * 完成任务,同时提交审批数据。 - * - * @param task 工作流任务对象。 - * @param flowTaskComment 审批对象。 - * @param taskVariableData 流程任务的变量数据。 - */ - void completeTask(Task task, FlowTaskComment flowTaskComment, JSONObject taskVariableData); - - /** - * 判断当前登录用户是否为流程实例中的用户任务的指派人。或是候选人之一,如果是候选人则拾取该任务并成为指派人。 - * 如果都不是,就会返回具体的错误信息。 - * - * @param task 流程实例中的用户任务。 - * @return 调用结果。 - */ - CallResult verifyAssigneeOrCandidateAndClaim(Task task); - - /** - * 初始化并返回流程实例的变量Map。 - * @param processDefinitionId 流程定义Id。 - * @return 初始化后的流程实例变量Map。 - */ - Map initAndGetProcessInstanceVariables(String processDefinitionId); - - /** - * 判断当前登录用户是否为流程实例中的用户任务的指派人。或是候选人之一。 - * - * @param task 流程实例中的用户任务。 - * @return 是返回true,否则false。 - */ - boolean isAssigneeOrCandidate(TaskInfo task); - - /** - * 获取指定流程定义的全部流程节点。 - * - * @param processDefinitionId 流程定义Id。 - * @return 当前流程定义的全部节点集合。 - */ - Collection getProcessAllElements(String processDefinitionId); - - /** - * 判断当前登录用户是否为流程实例的发起人。 - * - * @param processInstanceId 流程实例Id。 - * @return 是返回true,否则false。 - */ - boolean isProcessInstanceStarter(String processInstanceId); - - /** - * 为流程实例设置BusinessKey。 - * - * @param processInstanceId 流程实例Id。 - * @param dataId 通常为主表的主键Id。 - */ - void setBusinessKeyForProcessInstance(String processInstanceId, Object dataId); - - /** - * 判断指定的流程实例Id是否存在。 - * - * @param processInstanceId 流程实例Id。 - * @return 存在返回true,否则false。 - */ - boolean existActiveProcessInstance(String processInstanceId); - - /** - * 获取指定的流程实例对象。 - * - * @param processInstanceId 流程实例Id。 - * @return 流程实例对象。 - */ - ProcessInstance getProcessInstance(String processInstanceId); - - /** - * 获取流程实例的列表。 - * - * @param processInstanceIdSet 流程实例Id集合。 - * @return 流程实例列表。 - */ - List getProcessInstanceList(Set processInstanceIdSet); - - /** - * 根据流程定义Id查询流程定义对象。 - * - * @param processDefinitionId 流程定义Id。 - * @return 流程定义对象。 - */ - ProcessDefinition getProcessDefinitionById(String processDefinitionId); - - /** - * 根据流程部署Id查询流程定义对象。 - * - * @param deployId 流程部署Id。 - * @return 流程定义对象。 - */ - ProcessDefinition getProcessDefinitionByDeployId(String deployId); - - /** - * 获取流程定义的列表。 - * - * @param processDefinitionIdSet 流程定义Id集合。 - * @return 流程定义列表。 - */ - List getProcessDefinitionList(Set processDefinitionIdSet); - - /** - * 挂起流程定义对象。 - * - * @param processDefinitionId 流程定义Id。 - */ - void suspendProcessDefinition(String processDefinitionId); - - /** - * 激活流程定义对象。 - * - * @param processDefinitionId 流程定义Id。 - */ - void activateProcessDefinition(String processDefinitionId); - - /** - * 获取指定流程定义的BpmnModel。 - * - * @param processDefinitionId 流程定义Id。 - * @return 关联的BpmnModel。 - */ - BpmnModel getBpmnModelByDefinitionId(String processDefinitionId); - - /** - * 获取流程实例的变量。 - * - * @param processInstanceId 流程实例Id。 - * @param variableName 变量名。 - * @return 变量值。 - */ - Object getProcessInstanceVariable(String processInstanceId, String variableName); - - /** - * 获取指定流程实例和任务Id的当前活动任务。 - * - * @param processInstanceId 流程实例Id。 - * @param taskId 流程任务Id。 - * @return 当前流程实例的活动任务。 - */ - Task getProcessInstanceActiveTask(String processInstanceId, String taskId); - - /** - * 获取指定流程实例的当前活动任务列表。 - * - * @param processInstanceId 流程实例Id。 - * @return 当前流程实例的活动任务。 - */ - List getProcessInstanceActiveTaskList(String processInstanceId); - - /** - * 根据任务Id,获取当前运行时任务。 - * - * @param taskId 任务Id。 - * @return 运行时任务对象。 - */ - Task getTaskById(String taskId); - - /** - * 获取用户的任务列表。这其中包括当前用户作为指派人和候选人。 - * - * @param username 指派人。 - * @param definitionKey 流程定义的标识。 - * @param definitionName 流程定义名。 - * @param taskName 任务名称。 - * @param pageParam 分页对象。 - * @return 用户的任务列表。 - */ - MyPageData getTaskListByUserName( - String username, String definitionKey, String definitionName, String taskName, MyPageParam pageParam); - - /** - * 获取用户的任务数量。这其中包括当前用户作为指派人和候选人。 - * - * @param username 指派人。 - * @return 用户的任务数量。 - */ - long getTaskCountByUserName(String username); - - /** - * 获取流程实例Id集合的运行时任务列表。 - * - * @param processInstanceIdSet 流程实例Id集合。 - * @return 运行时任务列表。 - */ - List getTaskListByProcessInstanceIds(List processInstanceIdSet); - - /** - * 将流程任务列表数据,转换为前端可以显示的流程对象。 - * - * @param taskList 流程引擎中的任务列表。 - * @return 前端可以显示的流程任务列表。 - */ - List convertToFlowTaskList(List taskList); - - /** - * 添加流程实例结束的监听器。 - * - * @param bpmnModel 流程模型。 - * @param listenerClazz 流程监听器的Class对象。 - */ - void addProcessInstanceEndListener(BpmnModel bpmnModel, Class listenerClazz); - - /** - * 添加流程任务创建的任务监听器。 - * - * @param userTask 用户任务。 - * @param listenerClazz 任务监听器。 - */ - void addTaskCreateListener(UserTask userTask, Class listenerClazz); - - /** - * 获取流程实例的历史流程实例。 - * - * @param processInstanceId 流程实例Id。 - * @return 历史流程实例。 - */ - HistoricProcessInstance getHistoricProcessInstance(String processInstanceId); - - /** - * 获取流程实例的历史流程实例列表。 - * - * @param processInstanceIdSet 流程实例Id集合。 - * @return 历史流程实例列表。 - */ - List getHistoricProcessInstanceList(Set processInstanceIdSet); - - /** - * 查询历史流程实例的列表。 - * - * @param processDefinitionKey 流程标识名。 - * @param processDefinitionName 流程名。 - * @param startUser 流程发起用户。 - * @param beginDate 流程发起开始时间。 - * @param endDate 流程发起结束时间。 - * @param pageParam 分页对象。 - * @param finishedOnly 仅仅返回已经结束的流程。 - * @return 分页后的查询列表对象。 - * @throws ParseException 日期参数解析失败。 - */ - MyPageData getHistoricProcessInstanceList( - String processDefinitionKey, - String processDefinitionName, - String startUser, - String beginDate, - String endDate, - MyPageParam pageParam, - boolean finishedOnly) throws ParseException; - - /** - * 获取流程实例的已完成历史任务列表。 - * - * @param processInstanceId 流程实例Id。 - * @return 流程实例已完成的历史任务列表。 - */ - List getHistoricActivityInstanceList(String processInstanceId); - - /** - * 获取流程实例的已完成历史任务列表,同时按照每个活动实例的开始时间升序排序。 - * - * @param processInstanceId 流程实例Id。 - * @return 流程实例已完成的历史任务列表。 - */ - List getHistoricActivityInstanceListOrderByStartTime(String processInstanceId); - - /** - * 获取当前用户的历史已办理任务列表。 - * - * @param processDefinitionName 流程名。 - * @param beginDate 流程发起开始时间。 - * @param endDate 流程发起结束时间。 - * @param pageParam 分页对象。 - * @return 分页后的查询列表对象。 - * @throws ParseException 日期参数解析失败。 - */ - MyPageData getHistoricTaskInstanceFinishedList( - String processDefinitionName, - String beginDate, - String endDate, - MyPageParam pageParam) throws ParseException; - - /** - * 获取指定的历史任务实例。 - * - * @param processInstanceId 流程实例Id。 - * @param taskId 任务Id。 - * @return 历史任务实例。 - */ - HistoricTaskInstance getHistoricTaskInstance(String processInstanceId, String taskId); - - /** - * 获取流程实例的待完成任务列表。 - * - * @param processInstanceId 流程实例Id。 - * @return 流程实例待完成的任务列表。 - */ - List getHistoricUnfinishedInstanceList(String processInstanceId); - - /** - * 终止流程实例,将任务从当前节点直接流转到主流程的结束事件。 - * - * @param processInstanceId 流程实例Id。 - * @param stopReason 停止原因。 - * @param forCancel 是否由取消工单触发。 - * @return 执行结果。 - */ - CallResult stopProcessInstance(String processInstanceId, String stopReason, boolean forCancel); - - /** - * 删除流程实例。 - * - * @param processInstanceId 流程实例Id。 - */ - void deleteProcessInstance(String processInstanceId); - - /** - * 获取任务的指定本地变量。 - * - * @param taskId 任务Id。 - * @param variableName 变量名。 - * @return 变量值。 - */ - Object getTaskVariable(String taskId, String variableName); - - /** - * 将xml格式的流程模型字符串,转换为标准的流程模型。 - * - * @param bpmnXml xml格式的流程模型字符串。 - * @return 转换后的标准的流程模型。 - * @throws XMLStreamException XML流处理异常 - */ - BpmnModel convertToBpmnModel(String bpmnXml) throws XMLStreamException; -} diff --git a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/service/FlowCategoryService.java b/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/service/FlowCategoryService.java deleted file mode 100644 index 9b0bcad2..00000000 --- a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/service/FlowCategoryService.java +++ /dev/null @@ -1,61 +0,0 @@ -package com.orangeforms.common.flow.service; - -import com.orangeforms.common.core.base.service.IBaseService; -import com.orangeforms.common.flow.model.*; - -import java.util.List; - -/** - * FlowCategory数据操作服务接口。 - * - * @author Jerry - * @date 2021-06-06 - */ -public interface FlowCategoryService extends IBaseService { - - /** - * 保存新增对象。 - * - * @param flowCategory 新增对象。 - * @return 返回新增对象。 - */ - FlowCategory saveNew(FlowCategory flowCategory); - - /** - * 更新数据对象。 - * - * @param flowCategory 更新的对象。 - * @param originalFlowCategory 原有数据对象。 - * @return 成功返回true,否则false。 - */ - boolean update(FlowCategory flowCategory, FlowCategory originalFlowCategory); - - /** - * 删除指定数据。 - * - * @param categoryId 主键Id。 - * @return 成功返回true,否则false。 - */ - boolean remove(Long categoryId); - - /** - * 获取单表查询结果。由于没有关联数据查询,因此在仅仅获取单表数据的场景下,效率更高。 - * 如果需要同时获取关联数据,请移步(getFlowCategoryListWithRelation)方法。 - * - * @param filter 过滤对象。 - * @param orderBy 排序参数。 - * @return 查询结果集。 - */ - List getFlowCategoryList(FlowCategory filter, String orderBy); - - /** - * 获取主表的查询结果,以及主表关联的字典数据和一对一从表数据,以及一对一从表的字典数据。 - * 该查询会涉及到一对一从表的关联过滤,或一对多从表的嵌套关联过滤,因此性能不如单表过滤。 - * 如果仅仅需要获取主表数据,请移步(getFlowCategoryList),以便获取更好的查询性能。 - * - * @param filter 主表过滤对象。 - * @param orderBy 排序参数。 - * @return 查询结果集。 - */ - List getFlowCategoryListWithRelation(FlowCategory filter, String orderBy); -} diff --git a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/service/FlowEntryService.java b/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/service/FlowEntryService.java deleted file mode 100644 index 9206652e..00000000 --- a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/service/FlowEntryService.java +++ /dev/null @@ -1,136 +0,0 @@ -package com.orangeforms.common.flow.service; - -import com.orangeforms.common.core.base.service.IBaseService; -import com.orangeforms.common.core.object.CallResult; -import com.orangeforms.common.flow.model.*; - -import javax.xml.stream.XMLStreamException; -import java.util.List; -import java.util.Set; - -/** - * FlowEntry数据操作服务接口。 - * - * @author Jerry - * @date 2021-06-06 - */ -public interface FlowEntryService extends IBaseService { - - /** - * 保存新增对象。 - * - * @param flowEntry 新增工作流对象。 - * @return 返回新增对象。 - */ - FlowEntry saveNew(FlowEntry flowEntry); - - /** - * 发布指定流程。 - * - * @param flowEntry 待发布的流程对象。 - * @param initTaskInfo 第一个非开始节点任务的附加信息。 - * @param flowTaskExtList 所有用户任务的自定义扩展数据列表。 - * @throws XMLStreamException 解析bpmn.xml的异常。 - */ - void publish(FlowEntry flowEntry, String initTaskInfo, List flowTaskExtList) throws XMLStreamException; - - /** - * 更新数据对象。 - * - * @param flowEntry 更新的对象。 - * @param originalFlowEntry 原有数据对象。 - * @return 成功返回true,否则false。 - */ - boolean update(FlowEntry flowEntry, FlowEntry originalFlowEntry); - - /** - * 删除指定数据。 - * - * @param entryId 主键Id。 - * @return 成功返回true,否则false。 - */ - boolean remove(Long entryId); - - /** - * 获取单表查询结果。由于没有关联数据查询,因此在仅仅获取单表数据的场景下,效率更高。 - * 如果需要同时获取关联数据,请移步(getFlowEntryListWithRelation)方法。 - * - * @param filter 过滤对象。 - * @param orderBy 排序参数。 - * @return 查询结果集。 - */ - List getFlowEntryList(FlowEntry filter, String orderBy); - - /** - * 获取主表的查询结果,以及主表关联的字典数据和一对一从表数据,以及一对一从表的字典数据。 - * 该查询会涉及到一对一从表的关联过滤,或一对多从表的嵌套关联过滤,因此性能不如单表过滤。 - * 如果仅仅需要获取主表数据,请移步(getFlowEntryList),以便获取更好的查询性能。 - * - * @param filter 主表过滤对象。 - * @param orderBy 排序参数。 - * @return 查询结果集。 - */ - List getFlowEntryListWithRelation(FlowEntry filter, String orderBy); - - /** - * 根据流程定义标识获取流程对象。 - * - * @param processDefinitionKey 流程定义标识。 - * @return 流程对象。 - */ - FlowEntry getFlowEntryByProcessDefinitionKey(String processDefinitionKey); - - /** - * 根据流程Id获取流程发布列表数据。 - * - * @param entryId 流程Id。 - * @return 流程关联的发布列表数据。 - */ - List getFlowEntryPublishList(Long entryId); - - /** - * 根据流程引擎中的流程定义Id集合,查询流程发布对象。 - * - * @param processDefinitionIdSet 流程引擎中的流程定义Id集合。 - * @return 查询结果。 - */ - List getFlowEntryPublishList(Set processDefinitionIdSet); - - /** - * 获取指定工作流发布版本对象。 - * - * @param entryPublishId 工作流发布对象Id。 - * @return 查询后的对象。 - */ - FlowEntryPublish getFlowEntryPublishById(Long entryPublishId); - - /** - * 获取指定流程定义Id对应的流程发布对象。 - * - * @param processDefinitionId 流程定义Id。 - * @return 流程发布对象。 - */ - FlowEntryPublish getFlowEntryPublishByDefinitionId(String processDefinitionId); - - /** - * 为指定工作流更新发布的主版本。 - * - * @param flowEntry 工作流对象。 - * @param newMainFlowEntryPublish 工作流新的发布主版本对象。 - */ - void updateFlowEntryMainVersion(FlowEntry flowEntry, FlowEntryPublish newMainFlowEntryPublish); - - /** - * 挂起指定的工作流发布对象。 - * - * @param flowEntryPublish 待挂起的工作流发布对象。 - */ - void suspendFlowEntryPublish(FlowEntryPublish flowEntryPublish); - - /** - * 激活指定的工作流发布对象。 - * - * @param flowEntryPublish 待恢复的工作流发布对象。 - */ - void activateFlowEntryPublish(FlowEntryPublish flowEntryPublish); -} diff --git a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/service/FlowEntryVariableService.java b/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/service/FlowEntryVariableService.java deleted file mode 100644 index c504cf96..00000000 --- a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/service/FlowEntryVariableService.java +++ /dev/null @@ -1,68 +0,0 @@ -package com.orangeforms.common.flow.service; - -import com.orangeforms.common.flow.model.*; -import com.orangeforms.common.core.base.service.IBaseService; - -import java.util.*; - -/** - * 流程变量数据操作服务接口。 - * - * @author Jerry - * @date 2021-06-06 - */ -public interface FlowEntryVariableService extends IBaseService { - - /** - * 保存新增对象。 - * - * @param flowEntryVariable 新增对象。 - * @return 返回新增对象。 - */ - FlowEntryVariable saveNew(FlowEntryVariable flowEntryVariable); - - /** - * 更新数据对象。 - * - * @param flowEntryVariable 更新的对象。 - * @param originalFlowEntryVariable 原有数据对象。 - * @return 成功返回true,否则false。 - */ - boolean update(FlowEntryVariable flowEntryVariable, FlowEntryVariable originalFlowEntryVariable); - - /** - * 删除指定数据。 - * - * @param variableId 主键Id。 - * @return 成功返回true,否则false。 - */ - boolean remove(Long variableId); - - /** - * 删除指定流程Id的所有变量。 - * - * @param entryId 流程Id。 - */ - void removeByEntryId(Long entryId); - - /** - * 获取单表查询结果。由于没有关联数据查询,因此在仅仅获取单表数据的场景下,效率更高。 - * 如果需要同时获取关联数据,请移步(getFlowEntryVariableListWithRelation)方法。 - * - * @param filter 过滤对象。 - * @param orderBy 排序参数。 - * @return 查询结果集。 - */ - List getFlowEntryVariableList(FlowEntryVariable filter, String orderBy); - - /** - * 获取主表的查询结果,以及主表关联的字典数据和一对一从表数据,以及一对一从表的字典数据。 - * 该查询会涉及到一对一从表的关联过滤,或一对多从表的嵌套关联过滤,因此性能不如单表过滤。 - * 如果仅仅需要获取主表数据,请移步(getFlowEntryVariableList),以便获取更好的查询性能。 - * - * @param filter 主表过滤对象。 - * @param orderBy 排序参数。 - * @return 查询结果集。 - */ - List getFlowEntryVariableListWithRelation(FlowEntryVariable filter, String orderBy); -} diff --git a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/service/FlowMessageService.java b/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/service/FlowMessageService.java deleted file mode 100644 index 36de1575..00000000 --- a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/service/FlowMessageService.java +++ /dev/null @@ -1,52 +0,0 @@ -package com.orangeforms.common.flow.service; - -import com.orangeforms.common.core.base.service.IBaseService; -import com.orangeforms.common.flow.model.FlowMessage; -import com.orangeforms.common.flow.model.FlowWorkOrder; - -import java.util.List; - -/** - * 工作流消息数据操作服务接口。 - * - * @author Jerry - * @date 2021-06-06 - */ -public interface FlowMessageService extends IBaseService { - - /** - * 保存新增对象。 - * - * @param flowMessage 新增对象。 - * @return 保存后的消息对象。 - */ - FlowMessage saveNew(FlowMessage flowMessage); - - /** - * 根据工单参数,保存催单消息对象。如果当前工单存在多个待办任务,则插入多条催办消息数据。 - * - * @param flowWorkOrder 待催办的工单。 - */ - void saveNewRemindMessage(FlowWorkOrder flowWorkOrder); - - /** - * 更新指定运行时任务Id的消费为已完成状态。 - * - * @param taskId 运行时任务Id。 - */ - void updateFinishedStatusByTaskId(String taskId); - - /** - * 更新指定流程实例Id的消费为已完成状态。 - * - * @param processInstanceId 流程实例IdId。 - */ - void updateFinishedStatusByProcessInstanceId(String processInstanceId); - - /** - * 获取当前用户的催办消息列表。 - * - * @return 查询后的催办消息列表。 - */ - List getRemindingMessageListByUser(); -} diff --git a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/service/FlowTaskCommentService.java b/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/service/FlowTaskCommentService.java deleted file mode 100644 index a247dd85..00000000 --- a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/service/FlowTaskCommentService.java +++ /dev/null @@ -1,47 +0,0 @@ -package com.orangeforms.common.flow.service; - -import com.orangeforms.common.flow.model.*; -import com.orangeforms.common.core.base.service.IBaseService; - -import java.util.*; - -/** - * 流程任务批注数据操作服务接口。 - * - * @author Jerry - * @date 2021-06-06 - */ -public interface FlowTaskCommentService extends IBaseService { - - /** - * 保存新增对象。 - * - * @param flowTaskComment 新增对象。 - * @return 返回新增对象。 - */ - FlowTaskComment saveNew(FlowTaskComment flowTaskComment); - - /** - * 查询指定流程实例Id下的所有审批任务的批注。 - * - * @param processInstanceId 流程实例Id。 - * @return 查询结果集。 - */ - List getFlowTaskCommentList(String processInstanceId); - - /** - * 查询与指定流程任务Id集合关联的所有审批任务的批注。 - * - * @param taskIdSet 流程任务Id集合。 - * @return 查询结果集。 - */ - List getFlowTaskCommentListByTaskIds(Set taskIdSet); - - /** - * 获取指定流程实例的最后一条审批任务。 - * - * @param processInstanceId 流程实例Id。 - * @return 查询结果。 - */ - FlowTaskComment getLatestFlowTaskComment(String processInstanceId); -} diff --git a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/service/FlowTaskExtService.java b/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/service/FlowTaskExtService.java deleted file mode 100644 index 9c12fbee..00000000 --- a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/service/FlowTaskExtService.java +++ /dev/null @@ -1,38 +0,0 @@ -package com.orangeforms.common.flow.service; - -import com.orangeforms.common.flow.model.*; -import com.orangeforms.common.core.base.service.IBaseService; - -import java.util.List; - -/** - * 流程任务扩展数据操作服务接口。 - * - * @author Jerry - * @date 2021-06-06 - */ -public interface FlowTaskExtService extends IBaseService { - - /** - * 批量插入流程任务扩展信息列表。 - * - * @param flowTaskExtList 流程任务扩展信息列表。 - */ - void saveBatch(List flowTaskExtList); - - /** - * 查询指定的流程任务扩展对象。 - * @param processDefinitionId 流程引擎的定义Id。 - * @param taskId 流程引擎的任务Id。 - * @return 查询结果。 - */ - FlowTaskExt getByProcessDefinitionIdAndTaskId(String processDefinitionId, String taskId); - - /** - * 查询指定的流程定义的任务扩展对象。 - * - * @param processDefinitionId 流程引擎的定义Id。 - * @return 查询结果。 - */ - List getByProcessDefinitionId(String processDefinitionId); -} diff --git a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/service/FlowWorkOrderService.java b/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/service/FlowWorkOrderService.java deleted file mode 100644 index 0115a9d8..00000000 --- a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/service/FlowWorkOrderService.java +++ /dev/null @@ -1,86 +0,0 @@ -package com.orangeforms.common.flow.service; - -import com.orangeforms.common.core.base.service.IBaseService; -import com.orangeforms.common.flow.model.FlowWorkOrder; -import org.activiti.engine.runtime.ProcessInstance; - -import java.util.*; - -/** - * 工作流工单表数据操作服务接口。 - * - * @author Jerry - * @date 2021-06-06 - */ -public interface FlowWorkOrderService extends IBaseService { - - /** - * 保存新增对象。 - * - * @param instance 流程实例对象。 - * @param dataId 流程实例的BusinessKey。 - * @param onlineTableId 在线数据表的主键Id。 - * @param tableName 面向静态表单所使用的表名。 - * @return 新增的工作流工单对象。 - */ - FlowWorkOrder saveNew(ProcessInstance instance, Object dataId, Long onlineTableId, String tableName); - - /** - * 删除指定数据。 - * - * @param workOrderId 主键Id。 - * @return 成功返回true,否则false。 - */ - boolean remove(Long workOrderId); - - /** - * 删除指定流程实例Id的关联工单。 - * - * @param processInstanceId 流程实例Id。 - */ - void removeByProcessInstanceId(String processInstanceId); - - /** - * 获取工作流工单单表查询结果。 - * - * @param filter 过滤对象。 - * @param orderBy 排序参数。 - * @return 查询结果集。 - */ - List getFlowWorkOrderList(FlowWorkOrder filter, String orderBy); - - /** - * 获取工作流工单列表及其关联字典数据。 - * - * @param filter 过滤对象。 - * @param orderBy 排序参数。 - * @return 查询结果集。 - */ - List getFlowWorkOrderListWithRelation(FlowWorkOrder filter, String orderBy); - - /** - * 根据流程实例Id,查询关联的工单对象。 - * - * @param processInstanceId 流程实例Id。 - * @return 工作流工单对象。 - */ - FlowWorkOrder getFlowWorkOrderByProcessInstanceId(String processInstanceId); - - /** - * 根据业务主键,查询是否存在指定的工单。 - * - * @param tableName 静态表单工作流使用的数据表。 - * @param businessKey 业务数据主键Id。 - * @param unfinished 是否为没有结束工单。 - * @return 存在返回true,否则false。 - */ - boolean existByBusinessKey(String tableName, Object businessKey, boolean unfinished); - - /** - * 根据流程实例Id,更新流程状态。 - * - * @param processInstanceId 流程实例Id。 - * @param flowStatus 新的流程状态值。 - */ - void updateFlowStatusByProcessInstanceId(String processInstanceId, int flowStatus); -} diff --git a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/service/impl/FlowApiServiceImpl.java b/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/service/impl/FlowApiServiceImpl.java deleted file mode 100644 index 66083b5c..00000000 --- a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/service/impl/FlowApiServiceImpl.java +++ /dev/null @@ -1,791 +0,0 @@ -package com.orangeforms.common.flow.service.impl; - -import cn.hutool.core.collection.CollUtil; -import cn.hutool.core.lang.Assert; -import cn.hutool.core.map.MapUtil; -import cn.hutool.core.util.StrUtil; -import com.alibaba.fastjson.JSON; -import com.alibaba.fastjson.JSONArray; -import com.alibaba.fastjson.JSONObject; -import com.google.common.collect.Lists; -import com.orangeforms.common.flow.object.FlowTaskMultiSignAssign; -import com.orangeforms.common.flow.object.FlowTaskOperation; -import com.orangeforms.common.flow.object.FlowTaskPostCandidateGroup; -import com.orangeforms.common.core.object.CallResult; -import com.orangeforms.common.core.object.MyPageData; -import com.orangeforms.common.core.object.MyPageParam; -import com.orangeforms.common.core.object.TokenData; -import com.orangeforms.common.flow.command.AddMultiInstanceExecutionCmd; -import com.orangeforms.common.flow.constant.FlowConstant; -import com.orangeforms.common.flow.constant.FlowApprovalType; -import com.orangeforms.common.flow.constant.FlowTaskStatus; -import com.orangeforms.common.flow.model.FlowEntryPublish; -import com.orangeforms.common.flow.model.FlowTaskComment; -import com.orangeforms.common.flow.model.FlowTaskExt; -import com.orangeforms.common.flow.service.*; -import com.orangeforms.common.flow.util.BaseFlowIdentityExtHelper; -import com.orangeforms.common.flow.util.FlowCustomExtFactory; -import com.orangeforms.common.flow.vo.FlowTaskVo; -import lombok.Cleanup; -import lombok.extern.slf4j.Slf4j; -import org.activiti.bpmn.converter.BpmnXMLConverter; -import org.activiti.bpmn.model.*; -import org.activiti.bpmn.model.Process; -import org.activiti.engine.*; -import org.activiti.engine.delegate.ExecutionListener; -import org.activiti.engine.delegate.TaskListener; -import org.activiti.engine.history.*; -import org.activiti.engine.impl.identity.Authentication; -import org.activiti.engine.repository.ProcessDefinition; -import org.activiti.engine.runtime.ProcessInstance; -import org.activiti.engine.task.Task; -import org.activiti.engine.task.TaskInfo; -import org.activiti.engine.task.TaskQuery; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; -import org.springframework.transaction.annotation.Transactional; - -import javax.xml.stream.XMLInputFactory; -import javax.xml.stream.XMLStreamException; -import javax.xml.stream.XMLStreamReader; -import java.io.ByteArrayInputStream; -import java.io.InputStream; -import java.nio.charset.StandardCharsets; -import java.text.ParseException; -import java.text.SimpleDateFormat; -import java.util.*; -import java.util.stream.Collectors; - -@Slf4j -@Service("flowApiService") -public class FlowApiServiceImpl implements FlowApiService { - - @Autowired - private RepositoryService repositoryService; - @Autowired - private RuntimeService runtimeService; - @Autowired - private TaskService taskService; - @Autowired - private HistoryService historyService; - @Autowired - private ManagementService managementService; - @Autowired - private FlowEntryService flowEntryService; - @Autowired - private FlowTaskCommentService flowTaskCommentService; - @Autowired - private FlowTaskExtService flowTaskExtService; - @Autowired - private FlowWorkOrderService flowWorkOrderService; - @Autowired - private FlowMessageService flowMessageService; - @Autowired - private FlowCustomExtFactory flowCustomExtFactory; - - @Transactional(rollbackFor = Exception.class) - @Override - public ProcessInstance start(String processDefinitionId, Object dataId) { - String loginName = TokenData.takeFromRequest().getLoginName(); - Map variableMap = new HashMap<>(4); - variableMap.put(FlowConstant.PROC_INSTANCE_INITIATOR_VAR, loginName); - variableMap.put(FlowConstant.PROC_INSTANCE_START_USER_NAME_VAR, loginName); - Authentication.setAuthenticatedUserId(loginName); - String businessKey = dataId == null ? null : dataId.toString(); - return runtimeService.startProcessInstanceById(processDefinitionId, businessKey, variableMap); - } - - @Transactional(rollbackFor = Exception.class) - @Override - public ProcessInstance startAndTakeFirst( - String processDefinitionId, Object dataId, FlowTaskComment flowTaskComment, JSONObject taskVariableData) { - String loginName = TokenData.takeFromRequest().getLoginName(); - Authentication.setAuthenticatedUserId(loginName); - // 设置流程变量。 - Map variableMap = this.initAndGetProcessInstanceVariables(processDefinitionId); - // 根据当前流程的主版本,启动一个流程实例,同时将businessKey参数设置为主表主键值。 - ProcessInstance instance = runtimeService.startProcessInstanceById( - processDefinitionId, dataId.toString(), variableMap); - // 获取流程启动后的第一个任务。 - Task task = taskService.createTaskQuery().processInstanceId(instance.getId()).active().singleResult(); - if (StrUtil.equalsAny(task.getAssignee(), loginName, FlowConstant.START_USER_NAME_VAR)) { - // 按照规则,调用该方法的用户,就是第一个任务的assignee,因此默认会自动执行complete。 - flowTaskComment.fillWith(task); - this.completeTask(task, flowTaskComment, taskVariableData); - } - return instance; - } - - @Transactional(rollbackFor = Exception.class) - @Override - public void submitConsign(HistoricTaskInstance startTaskInstance, Task multiInstanceActiveTask, String newAssignees) { - JSONArray assigneeArray = JSON.parseArray(newAssignees); - for (int i = 0; i < assigneeArray.size(); i++) { - managementService.executeCommand(new AddMultiInstanceExecutionCmd( - startTaskInstance.getId(), multiInstanceActiveTask.getId(), assigneeArray.getString(i))); - } - FlowTaskComment flowTaskComment = new FlowTaskComment(); - flowTaskComment.fillWith(startTaskInstance); - flowTaskComment.setApprovalType(FlowApprovalType.MULTI_CONSIGN); - String loginName = TokenData.takeFromRequest().getLoginName(); - String comment = String.format("用户 [%s] 加签 [%s]。", loginName, newAssignees); - flowTaskComment.setComment(comment); - flowTaskCommentService.saveNew(flowTaskComment); - return; - } - - @Transactional(rollbackFor = Exception.class) - @Override - public void completeTask(Task task, FlowTaskComment flowTaskComment, JSONObject taskVariableData) { - if (flowTaskComment != null) { - // 这里处理多实例会签逻辑。 - if (flowTaskComment.getApprovalType().equals(FlowApprovalType.MULTI_SIGN)) { - String loginName = TokenData.takeFromRequest().getLoginName(); - if (taskVariableData == null) { - taskVariableData = new JSONObject(); - } - String assigneeList = taskVariableData.getString(FlowConstant.MULTI_ASSIGNEE_LIST_VAR); - if (StrUtil.isBlank(assigneeList)) { - FlowTaskExt flowTaskExt = flowTaskExtService.getByProcessDefinitionIdAndTaskId( - task.getProcessDefinitionId(), task.getTaskDefinitionKey()); - assigneeList = this.buildMutiSignAssigneeList(flowTaskExt.getOperationListJson()); - if (assigneeList != null) { - taskVariableData.put(FlowConstant.MULTI_ASSIGNEE_LIST_VAR, StrUtil.split(assigneeList,',')); - } - } - Assert.isTrue(StrUtil.isNotBlank(assigneeList)); - taskVariableData.put(FlowConstant.MULTI_AGREE_COUNT_VAR, 0); - taskVariableData.put(FlowConstant.MULTI_REFUSE_COUNT_VAR, 0); - taskVariableData.put(FlowConstant.MULTI_ABSTAIN_COUNT_VAR, 0); - taskVariableData.put(FlowConstant.MULTI_SIGN_NUM_OF_INSTANCES_VAR, 0); - taskVariableData.put(FlowConstant.MULTI_SIGN_START_TASK_VAR, task.getId()); - String comment = String.format("用户 [%s] 会签 [%s]。", loginName, assigneeList); - flowTaskComment.setComment(comment); - } - // 处理转办。 - if (FlowApprovalType.TRANSFER.equals(flowTaskComment.getApprovalType())) { - taskService.setAssignee(task.getId(), flowTaskComment.getDelegateAssginee()); - flowTaskComment.fillWith(task); - flowTaskCommentService.saveNew(flowTaskComment); - return; - } - if (taskVariableData == null) { - taskVariableData = new JSONObject(); - } - this.handleMultiInstanceApprovalType( - task.getExecutionId(), flowTaskComment.getApprovalType(), taskVariableData); - taskVariableData.put(FlowConstant.OPERATION_TYPE_VAR, flowTaskComment.getApprovalType()); - flowTaskComment.fillWith(task); - flowTaskCommentService.saveNew(flowTaskComment); - taskService.complete(task.getId(), taskVariableData, true); - } else { - taskService.complete(task.getId(), taskVariableData, true); - } - flowMessageService.updateFinishedStatusByTaskId(task.getId()); - } - - @Transactional(rollbackFor = Exception.class) - @Override - public CallResult verifyAssigneeOrCandidateAndClaim(Task task) { - String errorMessage; - String loginName = TokenData.takeFromRequest().getLoginName(); - // 这里必须先执行拾取操作,如果当前用户是候选人,特别是对于分布式场景,更是要先完成候选人的拾取。 - if (task.getAssignee() == null) { - // 没有指派人 - if (!this.isAssigneeOrCandidate(task)) { - errorMessage = "数据验证失败,当前用户不是该待办任务的候选人,请刷新后重试!"; - return CallResult.error(errorMessage); - } - // 作为候选人主动拾取任务。 - taskService.claim(task.getId(), loginName); - } else { - if (!task.getAssignee().equals(loginName)) { - errorMessage = "数据验证失败,当前用户不是该待办任务的指派人,请刷新后重试!"; - return CallResult.error(errorMessage); - } - } - return CallResult.ok(); - } - - @Override - public Map initAndGetProcessInstanceVariables(String processDefinitionId) { - TokenData tokenData = TokenData.takeFromRequest(); - String loginName = tokenData.getLoginName(); - // 设置流程变量。 - Map variableMap = new HashMap<>(4); - variableMap.put(FlowConstant.PROC_INSTANCE_INITIATOR_VAR, loginName); - variableMap.put(FlowConstant.PROC_INSTANCE_START_USER_NAME_VAR, loginName); - List flowTaskExtList = flowTaskExtService.getByProcessDefinitionId(processDefinitionId); - boolean hasDeptPostLeader = false; - boolean hasUpDeptPostLeader = false; - boolean hasPostCandidateGroup = false; - for (FlowTaskExt flowTaskExt : flowTaskExtList) { - if (StrUtil.equals(flowTaskExt.getGroupType(), FlowConstant.GROUP_TYPE_UP_DEPT_POST_LEADER)) { - hasUpDeptPostLeader = true; - } else if (StrUtil.equals(flowTaskExt.getGroupType(), FlowConstant.GROUP_TYPE_DEPT_POST_LEADER)) { - hasDeptPostLeader = true; - } else if (StrUtil.equals(flowTaskExt.getGroupType(), FlowConstant.GROUP_TYPE_POST)) { - hasPostCandidateGroup = true; - } - } - // 如果流程图的配置中包含用户身份相关的变量(如:部门领导和上级领导审批),flowIdentityExtHelper就不能为null。 - // 这个需要子类去实现 BaseFlowIdentityExtHelper 接口,并注册到FlowCustomExtFactory的工厂中。 - BaseFlowIdentityExtHelper flowIdentityExtHelper = flowCustomExtFactory.getFlowIdentityExtHelper(); - if (hasUpDeptPostLeader) { - Assert.notNull(flowIdentityExtHelper); - Object upLeaderDeptPostId = flowIdentityExtHelper.getUpLeaderDeptPostId(tokenData.getDeptId()); - if (upLeaderDeptPostId != null) { - variableMap.put(FlowConstant.GROUP_TYPE_UP_DEPT_POST_LEADER_VAR, upLeaderDeptPostId.toString()); - } - } - if (hasDeptPostLeader) { - Assert.notNull(flowIdentityExtHelper); - Object leaderDeptPostId = flowIdentityExtHelper.getLeaderDeptPostId(tokenData.getDeptId()); - if (leaderDeptPostId != null) { - variableMap.put(FlowConstant.GROUP_TYPE_DEPT_POST_LEADER_VAR, leaderDeptPostId.toString()); - } - } - if (hasPostCandidateGroup) { - Assert.notNull(flowIdentityExtHelper); - Map postGroupDataMap = - this.buildPostCandidateGroupData(flowIdentityExtHelper, flowTaskExtList); - variableMap.putAll(postGroupDataMap); - } - return variableMap; - } - - private Map buildPostCandidateGroupData( - BaseFlowIdentityExtHelper flowIdentityExtHelper, List flowTaskExtList) { - Map postVariableMap = new HashMap<>(); - Set selfPostIdSet = new HashSet<>(); - Set upPostIdSet = new HashSet<>(); - for (FlowTaskExt flowTaskExt : flowTaskExtList) { - if (flowTaskExt.getGroupType().equals(FlowConstant.GROUP_TYPE_POST)) { - Assert.notNull(flowTaskExt.getDeptPostListJson()); - List groupDataList = - JSONArray.parseArray(flowTaskExt.getDeptPostListJson(), FlowTaskPostCandidateGroup.class); - for (FlowTaskPostCandidateGroup groupData : groupDataList) { - if (groupData.getType().equals(FlowConstant.GROUP_TYPE_SELF_DEPT_POST_VAR)) { - selfPostIdSet.add(groupData.getPostId()); - } else if (groupData.getType().equals(FlowConstant.GROUP_TYPE_UP_DEPT_POST_VAR)) { - upPostIdSet.add(groupData.getPostId()); - } - } - } - } - if (CollUtil.isNotEmpty(selfPostIdSet)) { - Map deptPostIdMap = - flowIdentityExtHelper.getDeptPostIdMap(TokenData.takeFromRequest().getDeptId(), selfPostIdSet); - for (String postId : selfPostIdSet) { - if (MapUtil.isNotEmpty(deptPostIdMap) && deptPostIdMap.containsKey(postId)) { - String deptPostId = deptPostIdMap.get(postId); - postVariableMap.put(FlowConstant.SELF_DEPT_POST_PREFIX + postId, deptPostId); - } else { - postVariableMap.put(FlowConstant.SELF_DEPT_POST_PREFIX + postId, ""); - } - } - } - if (CollUtil.isNotEmpty(upPostIdSet)) { - Map upDeptPostIdMap = - flowIdentityExtHelper.getUpDeptPostIdMap(TokenData.takeFromRequest().getDeptId(), upPostIdSet); - for (String postId : upPostIdSet) { - if (MapUtil.isNotEmpty(upDeptPostIdMap) && upDeptPostIdMap.containsKey(postId)) { - String upDeptPostId = upDeptPostIdMap.get(postId); - postVariableMap.put(FlowConstant.UP_DEPT_POST_PREFIX + postId, upDeptPostId); - } else { - postVariableMap.put(FlowConstant.UP_DEPT_POST_PREFIX + postId, ""); - } - } - } - return postVariableMap; - } - - @Override - public boolean isAssigneeOrCandidate(TaskInfo task) { - String loginName = TokenData.takeFromRequest().getLoginName(); - if (StrUtil.isNotBlank(task.getAssignee())) { - return StrUtil.equals(loginName, task.getAssignee()); - } - TaskQuery query = taskService.createTaskQuery(); - this.buildCandidateCondition(query, loginName); - return query.active().count() != 0; - } - - @Override - public Collection getProcessAllElements(String processDefinitionId) { - Process process = repositoryService.getBpmnModel(processDefinitionId).getProcesses().get(0); - return this.getAllElements(process.getFlowElements(), null); - } - - @Override - public boolean isProcessInstanceStarter(String processInstanceId) { - String loginName = TokenData.takeFromRequest().getLoginName(); - return historyService.createHistoricProcessInstanceQuery() - .processInstanceId(processInstanceId).startedBy(loginName).count() != 0; - } - - @Transactional(rollbackFor = Exception.class) - @Override - public void setBusinessKeyForProcessInstance(String processInstanceId, Object dataId) { - runtimeService.updateBusinessKey(processInstanceId, dataId.toString()); - } - - @Override - public boolean existActiveProcessInstance(String processInstanceId) { - return runtimeService.createProcessInstanceQuery() - .processInstanceId(processInstanceId).active().count() != 0; - } - - @Override - public ProcessInstance getProcessInstance(String processInstanceId) { - return runtimeService.createProcessInstanceQuery().processInstanceId(processInstanceId).singleResult(); - } - - @Override - public Task getProcessInstanceActiveTask(String processInstanceId, String taskId) { - TaskQuery query = taskService.createTaskQuery().processInstanceId(processInstanceId); - if (StrUtil.isNotBlank(taskId)) { - query.taskId(taskId); - } - return query.active().singleResult(); - } - - @Override - public List getProcessInstanceActiveTaskList(String processInstanceId) { - return taskService.createTaskQuery().processInstanceId(processInstanceId).list(); - } - - @Override - public Task getTaskById(String taskId) { - return taskService.createTaskQuery().taskId(taskId).singleResult(); - } - - @Override - public MyPageData getTaskListByUserName( - String username, String definitionKey, String definitionName, String taskName, MyPageParam pageParam) { - TaskQuery query = taskService.createTaskQuery().active(); - if (StrUtil.isNotBlank(definitionKey)) { - query.processDefinitionKey(definitionKey); - } - if (StrUtil.isNotBlank(definitionName)) { - query.processDefinitionNameLike("%" + definitionName + "%"); - } - if (StrUtil.isNotBlank(taskName)) { - query.taskNameLike("%" + taskName + "%"); - } - this.buildCandidateCondition(query, username); - long totalCount = query.count(); - query.orderByTaskCreateTime().desc(); - int firstResult = (pageParam.getPageNum() - 1) * pageParam.getPageSize(); - List taskList = query.listPage(firstResult, pageParam.getPageSize()); - return new MyPageData<>(taskList, totalCount); - } - - @Override - public long getTaskCountByUserName(String username) { - return taskService.createTaskQuery().taskCandidateOrAssigned(username).active().count(); - } - - @Override - public List getTaskListByProcessInstanceIds(List processInstanceIdSet) { - return taskService.createTaskQuery().processInstanceIdIn(processInstanceIdSet).active().list(); - } - - @Override - public List getProcessInstanceList(Set processInstanceIdSet) { - return runtimeService.createProcessInstanceQuery().processInstanceIds(processInstanceIdSet).list(); - } - - @Override - public ProcessDefinition getProcessDefinitionById(String processDefinitionId) { - return repositoryService.createProcessDefinitionQuery().processDefinitionId(processDefinitionId).singleResult(); - } - - @Override - public List getProcessDefinitionList(Set processDefinitionIdSet) { - return repositoryService.createProcessDefinitionQuery().processDefinitionIds(processDefinitionIdSet).list(); - } - - @Transactional(rollbackFor = Exception.class) - @Override - public void suspendProcessDefinition(String processDefinitionId) { - repositoryService.suspendProcessDefinitionById(processDefinitionId); - } - - @Transactional(rollbackFor = Exception.class) - @Override - public void activateProcessDefinition(String processDefinitionId) { - repositoryService.activateProcessDefinitionById(processDefinitionId); - } - - @Override - public BpmnModel getBpmnModelByDefinitionId(String processDefinitionId) { - return repositoryService.getBpmnModel(processDefinitionId); - } - - @Override - public ProcessDefinition getProcessDefinitionByDeployId(String deployId) { - return repositoryService.createProcessDefinitionQuery().deploymentId(deployId).singleResult(); - } - - @Override - public Object getProcessInstanceVariable(String processInstanceId, String variableName) { - return runtimeService.getVariable(processInstanceId, variableName); - } - - @Override - public List convertToFlowTaskList(List taskList) { - List flowTaskVoList = new LinkedList<>(); - if (CollUtil.isEmpty(taskList)) { - return flowTaskVoList; - } - Set processDefinitionIdSet = taskList.stream() - .map(Task::getProcessDefinitionId).collect(Collectors.toSet()); - Set procInstanceIdSet = taskList.stream() - .map(Task::getProcessInstanceId).collect(Collectors.toSet()); - List flowEntryPublishList = - flowEntryService.getFlowEntryPublishList(processDefinitionIdSet); - Map flowEntryPublishMap = - flowEntryPublishList.stream().collect(Collectors.toMap(FlowEntryPublish::getProcessDefinitionId, c -> c)); - List instanceList = this.getProcessInstanceList(procInstanceIdSet); - Map instanceMap = - instanceList.stream().collect(Collectors.toMap(ProcessInstance::getId, c -> c)); - List definitionList = this.getProcessDefinitionList(processDefinitionIdSet); - Map definitionMap = - definitionList.stream().collect(Collectors.toMap(ProcessDefinition::getId, c -> c)); - for (Task task : taskList) { - FlowTaskVo flowTaskVo = new FlowTaskVo(); - flowTaskVo.setTaskId(task.getId()); - flowTaskVo.setTaskName(task.getName()); - flowTaskVo.setTaskKey(task.getTaskDefinitionKey()); - flowTaskVo.setTaskFormKey(task.getFormKey()); - flowTaskVo.setEntryId(flowEntryPublishMap.get(task.getProcessDefinitionId()).getEntryId()); - ProcessDefinition processDefinition = definitionMap.get(task.getProcessDefinitionId()); - flowTaskVo.setProcessDefinitionId(processDefinition.getId()); - flowTaskVo.setProcessDefinitionName(processDefinition.getName()); - flowTaskVo.setProcessDefinitionKey(processDefinition.getKey()); - flowTaskVo.setProcessDefinitionVersion(processDefinition.getVersion()); - ProcessInstance processInstance = instanceMap.get(task.getProcessInstanceId()); - flowTaskVo.setProcessInstanceId(processInstance.getId()); - Object initiator = this.getProcessInstanceVariable( - processInstance.getId(), FlowConstant.PROC_INSTANCE_INITIATOR_VAR); - flowTaskVo.setProcessInstanceInitiator(initiator.toString()); - flowTaskVo.setProcessInstanceStartTime(processInstance.getStartTime()); - flowTaskVo.setBusinessKey(processInstance.getBusinessKey()); - flowTaskVoList.add(flowTaskVo); - } - return flowTaskVoList; - } - - @Override - public void addProcessInstanceEndListener(BpmnModel bpmnModel, Class listenerClazz) { - Assert.notNull(listenerClazz); - Process process = bpmnModel.getMainProcess(); - ActivitiListener activitiListener = new ActivitiListener(); - activitiListener.setEvent("end"); - activitiListener.setImplementationType("class"); - activitiListener.setImplementation(listenerClazz.getName()); - process.getExecutionListeners().add(activitiListener); - } - - @Override - public void addTaskCreateListener(UserTask userTask, Class listenerClazz) { - Assert.notNull(listenerClazz); - ActivitiListener activitiListener = new ActivitiListener(); - activitiListener.setEvent("create"); - activitiListener.setImplementationType("class"); - activitiListener.setImplementation(listenerClazz.getName()); - userTask.getTaskListeners().add(activitiListener); - } - - @Override - public HistoricProcessInstance getHistoricProcessInstance(String processInstanceId) { - return historyService.createHistoricProcessInstanceQuery().processInstanceId(processInstanceId).singleResult(); - } - - @Override - public List getHistoricProcessInstanceList(Set processInstanceIdSet) { - return historyService.createHistoricProcessInstanceQuery().processInstanceIds(processInstanceIdSet).list(); - } - - @Override - public MyPageData getHistoricProcessInstanceList( - String processDefinitionKey, - String processDefinitionName, - String startUser, - String beginDate, - String endDate, - MyPageParam pageParam, - boolean finishedOnly) throws ParseException { - HistoricProcessInstanceQuery query = historyService.createHistoricProcessInstanceQuery(); - if (StrUtil.isNotBlank(processDefinitionKey)) { - query.processDefinitionKey(processDefinitionKey); - } - if (StrUtil.isNotBlank(processDefinitionName)) { - query.processDefinitionName(processDefinitionName); - } - if (StrUtil.isNotBlank(startUser)) { - query.startedBy(startUser); - } - if (StrUtil.isNotBlank(beginDate)) { - SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); - query.startedAfter(sdf.parse(beginDate)); - } - if (StrUtil.isNotBlank(endDate)) { - SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); - query.startedBefore(sdf.parse(endDate)); - } - if (finishedOnly) { - query.finished(); - } - query.orderByProcessInstanceStartTime().desc(); - long totalCount = query.count(); - int firstResult = (pageParam.getPageNum() - 1) * pageParam.getPageSize(); - List instanceList = query.listPage(firstResult, pageParam.getPageSize()); - return new MyPageData<>(instanceList, totalCount); - } - - @Override - public MyPageData getHistoricTaskInstanceFinishedList( - String processDefinitionName, - String beginDate, - String endDate, - MyPageParam pageParam) throws ParseException { - String loginName = TokenData.takeFromRequest().getLoginName(); - HistoricTaskInstanceQuery query = historyService.createHistoricTaskInstanceQuery() - .taskAssignee(loginName) - .finished(); - if (StrUtil.isNotBlank(processDefinitionName)) { - query.processDefinitionName(processDefinitionName); - } - if (StrUtil.isNotBlank(beginDate)) { - SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); - query.taskCompletedAfter(sdf.parse(beginDate)); - } - if (StrUtil.isNotBlank(endDate)) { - SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); - query.taskCompletedBefore(sdf.parse(endDate)); - } - query.orderByHistoricTaskInstanceEndTime().desc(); - long totalCount = query.count(); - int firstResult = (pageParam.getPageNum() - 1) * pageParam.getPageSize(); - List instanceList = query.listPage(firstResult, pageParam.getPageSize()); - return new MyPageData<>(instanceList, totalCount); - } - - @Override - public List getHistoricActivityInstanceList(String processInstanceId) { - return historyService.createHistoricActivityInstanceQuery().processInstanceId(processInstanceId).list(); - } - - @Override - public List getHistoricActivityInstanceListOrderByStartTime(String processInstanceId) { - return historyService.createHistoricActivityInstanceQuery() - .processInstanceId(processInstanceId).orderByHistoricActivityInstanceStartTime().asc().list(); - } - - @Override - public HistoricTaskInstance getHistoricTaskInstance(String processInstanceId, String taskId) { - return historyService.createHistoricTaskInstanceQuery() - .processInstanceId(processInstanceId).taskId(taskId).singleResult(); - } - - @Override - public List getHistoricUnfinishedInstanceList(String processInstanceId) { - return historyService.createHistoricActivityInstanceQuery() - .processInstanceId(processInstanceId).unfinished().list(); - } - - @Transactional(rollbackFor = Exception.class) - @Override - public CallResult stopProcessInstance(String processInstanceId, String stopReason, boolean forCancel) { - List taskList = taskService.createTaskQuery().processInstanceId(processInstanceId).active().list(); - if (CollUtil.isEmpty(taskList)) { - return CallResult.error("数据验证失败,当前流程尚未开始或已经结束!"); - } - for (Task task : taskList) { - String currActivityId = task.getTaskDefinitionKey(); - BpmnModel bpmnModel = repositoryService.getBpmnModel(task.getProcessDefinitionId()); - FlowNode currFlow = (FlowNode) bpmnModel.getMainProcess().getFlowElement(currActivityId); - if (currFlow == null) { - List subProcessList = - bpmnModel.getMainProcess().findFlowElementsOfType(SubProcess.class); - for (SubProcess subProcess : subProcessList) { - FlowElement flowElement = subProcess.getFlowElement(currActivityId); - if (flowElement != null) { - currFlow = (FlowNode) flowElement; - break; - } - } - } - EndEvent endEvent = bpmnModel.getMainProcess() - .findFlowElementsOfType(EndEvent.class, false).get(0); - if (!(currFlow.getParentContainer().equals(endEvent.getParentContainer()))) { - return CallResult.error("数据验证失败,不能从子流程直接中止!"); - } - // 保存原有的输出方向。 - List oriSequenceFlows = Lists.newArrayList(); - oriSequenceFlows.addAll(currFlow.getOutgoingFlows()); - // 清空原有方向。 - currFlow.getOutgoingFlows().clear(); - // 建立新方向。 - SequenceFlow newSequenceFlow = new SequenceFlow(); - String uuid = UUID.randomUUID().toString().replace("-", ""); - newSequenceFlow.setId(uuid); - newSequenceFlow.setSourceFlowElement(currFlow); - newSequenceFlow.setTargetFlowElement(endEvent); - currFlow.setOutgoingFlows(CollUtil.newArrayList(newSequenceFlow)); - // 完成任务并跳转到新方向。 - taskService.complete(task.getId()); - FlowTaskComment taskComment = new FlowTaskComment(task); - taskComment.setApprovalType(FlowApprovalType.STOP); - taskComment.setComment(stopReason); - flowTaskCommentService.saveNew(taskComment); - // 回复原有输出方向。 - currFlow.setOutgoingFlows(oriSequenceFlows); - } - int status = FlowTaskStatus.STOPPED; - if (forCancel) { - status = FlowTaskStatus.CANCELLED; - } - flowWorkOrderService.updateFlowStatusByProcessInstanceId(processInstanceId, status); - flowMessageService.updateFinishedStatusByProcessInstanceId(processInstanceId); - return CallResult.ok(); - } - - @Transactional(rollbackFor = Exception.class) - @Override - public void deleteProcessInstance(String processInstanceId) { - historyService.deleteHistoricProcessInstance(processInstanceId); - flowWorkOrderService.removeByProcessInstanceId(processInstanceId); - } - - @Override - public Object getTaskVariable(String taskId, String variableName) { - return taskService.getVariable(taskId, variableName); - } - - @Override - public BpmnModel convertToBpmnModel(String bpmnXml) throws XMLStreamException { - BpmnXMLConverter converter = new BpmnXMLConverter(); - InputStream in = new ByteArrayInputStream(bpmnXml.getBytes(StandardCharsets.UTF_8)); - @Cleanup XMLStreamReader reader = XMLInputFactory.newInstance().createXMLStreamReader(in); - return converter.convertToBpmnModel(reader); - } - - private void handleMultiInstanceApprovalType(String executionId, String approvalType, JSONObject taskVariableData) { - if (StrUtil.isBlank(approvalType)) { - return; - } - if (StrUtil.equalsAny(approvalType, - FlowApprovalType.MULTI_AGREE, - FlowApprovalType.MULTI_REFUSE, - FlowApprovalType.MULTI_ABSTAIN)) { - Map variables = runtimeService.getVariables(executionId); - Integer agreeCount = (Integer) variables.get(FlowConstant.MULTI_AGREE_COUNT_VAR); - Integer refuseCount = (Integer) variables.get(FlowConstant.MULTI_REFUSE_COUNT_VAR); - Integer abstainCount = (Integer) variables.get(FlowConstant.MULTI_ABSTAIN_COUNT_VAR); - Integer nrOfInstances = (Integer) variables.get(FlowConstant.NUMBER_OF_INSTANCES_VAR); - taskVariableData.put(FlowConstant.MULTI_AGREE_COUNT_VAR, agreeCount); - taskVariableData.put(FlowConstant.MULTI_REFUSE_COUNT_VAR, refuseCount); - taskVariableData.put(FlowConstant.MULTI_ABSTAIN_COUNT_VAR, abstainCount); - taskVariableData.put(FlowConstant.MULTI_SIGN_NUM_OF_INSTANCES_VAR, nrOfInstances); - switch (approvalType) { - case FlowApprovalType.MULTI_AGREE: - if (agreeCount == null) { - agreeCount = 0; - } - taskVariableData.put(FlowConstant.MULTI_AGREE_COUNT_VAR, agreeCount + 1); - break; - case FlowApprovalType.MULTI_REFUSE: - if (refuseCount == null) { - refuseCount = 0; - } - taskVariableData.put(FlowConstant.MULTI_REFUSE_COUNT_VAR, refuseCount + 1); - break; - case FlowApprovalType.MULTI_ABSTAIN: - if (abstainCount == null) { - abstainCount = 0; - } - taskVariableData.put(FlowConstant.MULTI_ABSTAIN_COUNT_VAR, abstainCount + 1); - break; - default: - break; - } - } - } - - private void buildCandidateCondition(TaskQuery query, String loginName) { - Set groupIdSet = new HashSet<>(); - // NOTE: 需要注意的是,部门Id、部门岗位Id,或者其他类型的分组Id,他们之间一定不能重复。 - TokenData tokenData = TokenData.takeFromRequest(); - Object deptId = tokenData.getDeptId(); - if (deptId != null) { - groupIdSet.add(deptId.toString()); - } - String roleIds = tokenData.getRoleIds(); - if (StrUtil.isNotBlank(tokenData.getRoleIds())) { - groupIdSet.addAll(Arrays.asList(StrUtil.split(roleIds, ","))); - } - String postIds = tokenData.getPostIds(); - if (StrUtil.isNotBlank(tokenData.getPostIds())) { - groupIdSet.addAll(Arrays.asList(StrUtil.split(postIds, ","))); - } - String deptPostIds = tokenData.getDeptPostIds(); - if (StrUtil.isNotBlank(deptPostIds)) { - groupIdSet.addAll(Arrays.asList(StrUtil.split(deptPostIds, ","))); - } - if (CollUtil.isNotEmpty(groupIdSet)) { - List groupIdList = new LinkedList<>(groupIdSet); - query.or().taskCandidateGroupIn(groupIdList).taskCandidateOrAssigned(loginName).endOr(); - } else { - query.taskCandidateOrAssigned(loginName); - } - } - - private String buildMutiSignAssigneeList(String operationListJson) { - FlowTaskMultiSignAssign multiSignAssignee = null; - List taskOperationList = JSONArray.parseArray(operationListJson, FlowTaskOperation.class); - for (FlowTaskOperation taskOperation : taskOperationList) { - if ("multi_sign".equals(taskOperation.getType())) { - multiSignAssignee = taskOperation.getMultiSignAssignee(); - break; - } - } - Assert.notNull(multiSignAssignee); - if (FlowTaskMultiSignAssign.ASSIGN_TYPE_USER.equals(multiSignAssignee.getAssigneeType())) { - return multiSignAssignee.getAssigneeList(); - } - Set usernameSet = null; - BaseFlowIdentityExtHelper extHelper = flowCustomExtFactory.getFlowIdentityExtHelper(); - Set idSet = CollUtil.newHashSet(StrUtil.split(multiSignAssignee.getAssigneeList(), ",")); - switch (multiSignAssignee.getAssigneeType()) { - case FlowTaskMultiSignAssign.ASSIGN_TYPE_ROLE: - usernameSet = extHelper.getUsernameListByRoleIds(idSet); - break; - case FlowTaskMultiSignAssign.ASSIGN_TYPE_DEPT: - usernameSet = extHelper.getUsernameListByDeptIds(idSet); - break; - case FlowTaskMultiSignAssign.ASSIGN_TYPE_POST: - usernameSet = extHelper.getUsernameListByPostIds(idSet); - break; - case FlowTaskMultiSignAssign.ASSIGN_TYPE_DEPT_POST: - usernameSet = extHelper.getUsernameListByDeptPostIds(idSet); - break; - default: - break; - } - return CollUtil.isEmpty(usernameSet) ? null : CollUtil.join(usernameSet, ","); - } - - private Collection getAllElements(Collection flowElements, Collection allElements) { - allElements = allElements == null ? new ArrayList<>() : allElements; - for (FlowElement flowElement : flowElements) { - allElements.add(flowElement); - if (flowElement instanceof SubProcess) { - allElements = getAllElements(((SubProcess) flowElement).getFlowElements(), allElements); - } - } - return allElements; - } -} diff --git a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/service/impl/FlowCategoryServiceImpl.java b/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/service/impl/FlowCategoryServiceImpl.java deleted file mode 100644 index f7cb7448..00000000 --- a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/service/impl/FlowCategoryServiceImpl.java +++ /dev/null @@ -1,129 +0,0 @@ -package com.orangeforms.common.flow.service.impl; - -import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; -import com.github.pagehelper.Page; -import com.orangeforms.common.core.base.dao.BaseDaoMapper; -import com.orangeforms.common.core.base.service.BaseService; -import com.orangeforms.common.core.object.MyRelationParam; -import com.orangeforms.common.core.object.TokenData; -import com.orangeforms.common.sequence.wrapper.IdGeneratorWrapper; -import com.orangeforms.common.flow.dao.*; -import com.orangeforms.common.flow.model.*; -import com.orangeforms.common.flow.service.*; -import lombok.extern.slf4j.Slf4j; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; -import org.springframework.transaction.annotation.Transactional; - -import java.util.Date; -import java.util.List; - -/** - * FlowCategory数据操作服务类。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Slf4j -@Service("flowCategoryService") -public class FlowCategoryServiceImpl extends BaseService implements FlowCategoryService { - - @Autowired - private FlowCategoryMapper flowCategoryMapper; - @Autowired - private IdGeneratorWrapper idGenerator; - - /** - * 返回当前Service的主表Mapper对象。 - * - * @return 主表Mapper对象。 - */ - @Override - protected BaseDaoMapper mapper() { - return flowCategoryMapper; - } - - /** - * 保存新增对象。 - * - * @param flowCategory 新增对象。 - * @return 返回新增对象。 - */ - @Transactional(rollbackFor = Exception.class) - @Override - public FlowCategory saveNew(FlowCategory flowCategory) { - flowCategory.setCategoryId(idGenerator.nextLongId()); - TokenData tokenData = TokenData.takeFromRequest(); - flowCategory.setUpdateUserId(tokenData.getUserId()); - flowCategory.setCreateUserId(tokenData.getUserId()); - Date now = new Date(); - flowCategory.setUpdateTime(now); - flowCategory.setCreateTime(now); - flowCategoryMapper.insert(flowCategory); - return flowCategory; - } - - /** - * 更新数据对象。 - * - * @param flowCategory 更新的对象。 - * @param originalFlowCategory 原有数据对象。 - * @return 成功返回true,否则false。 - */ - @Transactional(rollbackFor = Exception.class) - @Override - public boolean update(FlowCategory flowCategory, FlowCategory originalFlowCategory) { - flowCategory.setUpdateUserId(TokenData.takeFromRequest().getUserId()); - flowCategory.setCreateUserId(originalFlowCategory.getCreateUserId()); - flowCategory.setUpdateTime(new Date()); - flowCategory.setCreateTime(originalFlowCategory.getCreateTime()); - // 这里重点提示,在执行主表数据更新之前,如果有哪些字段不支持修改操作,请用原有数据对象字段替换当前数据字段。 - UpdateWrapper uw = - this.createUpdateQueryForNullValue(flowCategory, flowCategory.getCategoryId()); - return flowCategoryMapper.update(flowCategory, uw) == 1; - } - - /** - * 删除指定数据。 - * - * @param categoryId 主键Id。 - * @return 成功返回true,否则false。 - */ - @Transactional(rollbackFor = Exception.class) - @Override - public boolean remove(Long categoryId) { - return flowCategoryMapper.deleteById(categoryId) == 1; - } - - /** - * 获取单表查询结果。由于没有关联数据查询,因此在仅仅获取单表数据的场景下,效率更高。 - * 如果需要同时获取关联数据,请移步(getFlowCategoryListWithRelation)方法。 - * - * @param filter 过滤对象。 - * @param orderBy 排序参数。 - * @return 查询结果集。 - */ - @Override - public List getFlowCategoryList(FlowCategory filter, String orderBy) { - return flowCategoryMapper.getFlowCategoryList(filter, orderBy); - } - - /** - * 获取主表的查询结果,以及主表关联的字典数据和一对一从表数据,以及一对一从表的字典数据。 - * 该查询会涉及到一对一从表的关联过滤,或一对多从表的嵌套关联过滤,因此性能不如单表过滤。 - * 如果仅仅需要获取主表数据,请移步(getFlowCategoryList),以便获取更好的查询性能。 - * - * @param filter 主表过滤对象。 - * @param orderBy 排序参数。 - * @return 查询结果集。 - */ - @Override - public List getFlowCategoryListWithRelation(FlowCategory filter, String orderBy) { - List resultList = flowCategoryMapper.getFlowCategoryList(filter, orderBy); - // 在缺省生成的代码中,如果查询结果resultList不是Page对象,说明没有分页,那么就很可能是数据导出接口调用了当前方法。 - // 为了避免一次性的大量数据关联,规避因此而造成的系统运行性能冲击,这里手动进行了分批次读取,开发者可按需修改该值。 - int batchSize = resultList instanceof Page ? 0 : 1000; - this.buildRelationForDataList(resultList, MyRelationParam.normal(), batchSize); - return resultList; - } -} diff --git a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/service/impl/FlowEntryServiceImpl.java b/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/service/impl/FlowEntryServiceImpl.java deleted file mode 100644 index c79c63f6..00000000 --- a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/service/impl/FlowEntryServiceImpl.java +++ /dev/null @@ -1,431 +0,0 @@ -package com.orangeforms.common.flow.service.impl; - -import cn.hutool.core.collection.CollUtil; -import cn.hutool.core.lang.Assert; -import cn.hutool.core.util.StrUtil; -import com.alibaba.fastjson.JSONArray; -import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; -import com.github.pagehelper.Page; -import com.orangeforms.common.flow.object.FlowTaskPostCandidateGroup; -import com.orangeforms.common.core.base.dao.BaseDaoMapper; -import com.orangeforms.common.core.base.service.BaseService; -import com.orangeforms.common.core.object.CallResult; -import com.orangeforms.common.core.object.MyRelationParam; -import com.orangeforms.common.core.object.TokenData; -import com.orangeforms.common.core.util.MyModelUtil; -import com.orangeforms.common.sequence.wrapper.IdGeneratorWrapper; -import com.orangeforms.common.flow.util.BaseFlowIdentityExtHelper; -import com.orangeforms.common.flow.util.FlowCustomExtFactory; -import com.orangeforms.common.flow.constant.FlowConstant; -import com.orangeforms.common.flow.dao.*; -import com.orangeforms.common.flow.model.*; -import com.orangeforms.common.flow.service.*; -import com.orangeforms.common.flow.model.constant.FlowEntryStatus; -import com.orangeforms.common.flow.model.constant.FlowVariableType; -import com.orangeforms.common.flow.listener.FlowFinishedListener; -import lombok.Cleanup; -import lombok.extern.slf4j.Slf4j; -import org.activiti.bpmn.converter.BpmnXMLConverter; -import org.activiti.bpmn.model.BpmnModel; -import org.activiti.bpmn.model.FlowElement; -import org.activiti.bpmn.model.UserTask; -import org.activiti.engine.RepositoryService; -import org.activiti.engine.repository.Deployment; -import org.activiti.engine.repository.ProcessDefinition; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; -import org.springframework.transaction.annotation.Transactional; - -import javax.xml.stream.XMLInputFactory; -import javax.xml.stream.XMLStreamException; -import javax.xml.stream.XMLStreamReader; -import java.io.ByteArrayInputStream; -import java.io.InputStream; -import java.nio.charset.StandardCharsets; -import java.util.*; -import java.util.stream.Collectors; - -/** - * FlowEntry数据操作服务类。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Slf4j -@Service("flowEntryService") -public class FlowEntryServiceImpl extends BaseService implements FlowEntryService { - - @Autowired - private FlowEntryMapper flowEntryMapper; - @Autowired - private FlowEntryPublishMapper flowEntryPublishMapper; - @Autowired - private FlowEntryPublishVariableMapper flowEntryPublishVariableMapper; - @Autowired - private FlowEntryVariableService flowEntryVariableService; - @Autowired - private FlowCategoryService flowCategoryService; - @Autowired - private FlowTaskExtService flowTaskExtService; - @Autowired - private FlowApiService flowApiService; - @Autowired - private FlowCustomExtFactory flowCustomExtFactory; - @Autowired - private RepositoryService repositoryService; - @Autowired - private IdGeneratorWrapper idGenerator; - - /** - * 返回当前Service的主表Mapper对象。 - * - * @return 主表Mapper对象。 - */ - @Override - protected BaseDaoMapper mapper() { - return flowEntryMapper; - } - - /** - * 保存新增对象。 - * - * @param flowEntry 新增工作流对象。 - * @return 返回新增对象。 - */ - @Transactional(rollbackFor = Exception.class) - @Override - public FlowEntry saveNew(FlowEntry flowEntry) { - flowEntry.setEntryId(idGenerator.nextLongId()); - flowEntry.setStatus(FlowEntryStatus.UNPUBLISHED); - TokenData tokenData = TokenData.takeFromRequest(); - flowEntry.setUpdateUserId(tokenData.getUserId()); - flowEntry.setCreateUserId(tokenData.getUserId()); - Date now = new Date(); - flowEntry.setUpdateTime(now); - flowEntry.setCreateTime(now); - flowEntryMapper.insert(flowEntry); - this.insertBuiltinEntryVariables(flowEntry.getEntryId()); - return flowEntry; - } - - /** - * 发布指定流程。 - * - * @param flowEntry 待发布的流程对象。 - * @param initTaskInfo 第一个非开始节点任务的附加信息。 - * @param flowTaskExtList 所有用户任务的自定义扩展数据列表。 - */ - @Transactional(rollbackFor = Exception.class) - @Override - public void publish(FlowEntry flowEntry, String initTaskInfo, List flowTaskExtList) throws XMLStreamException { - FlowCategory flowCategory = flowCategoryService.getById(flowEntry.getCategoryId()); - InputStream xmlStream = new ByteArrayInputStream( - flowEntry.getBpmnXml().getBytes(StandardCharsets.UTF_8)); - @Cleanup XMLStreamReader reader = XMLInputFactory.newInstance().createXMLStreamReader(xmlStream); - BpmnXMLConverter converter = new BpmnXMLConverter(); - BpmnModel bpmnModel = converter.convertToBpmnModel(reader); - flowApiService.addProcessInstanceEndListener(bpmnModel, FlowFinishedListener.class); - Collection elementList = bpmnModel.getMainProcess().getFlowElements(); - Map elementMap = - elementList.stream().filter(e -> e instanceof UserTask).collect(Collectors.toMap(FlowElement::getId, c -> c)); - if (CollUtil.isNotEmpty(flowTaskExtList)) { - BaseFlowIdentityExtHelper flowIdentityExtHelper = flowCustomExtFactory.getFlowIdentityExtHelper(); - for (FlowTaskExt t : flowTaskExtList) { - UserTask userTask = (UserTask) elementMap.get(t.getTaskId()); - // 如果流程图中包含部门领导审批和上级部门领导审批的选项,就需要注册 FlowCustomExtFactory 工厂中的 - // BaseFlowIdentityExtHelper 对象,该注册操作需要业务模块中实现。 - if (StrUtil.equals(t.getGroupType(), FlowConstant.GROUP_TYPE_UP_DEPT_POST_LEADER)) { - userTask.setCandidateGroups( - CollUtil.newArrayList("${" + FlowConstant.GROUP_TYPE_UP_DEPT_POST_LEADER_VAR + "}")); - Assert.notNull(flowIdentityExtHelper); - flowApiService.addTaskCreateListener(userTask, flowIdentityExtHelper.getUpDeptPostLeaderListener()); - } else if (StrUtil.equals(t.getGroupType(), FlowConstant.GROUP_TYPE_DEPT_POST_LEADER)) { - userTask.setCandidateGroups( - CollUtil.newArrayList("${" + FlowConstant.GROUP_TYPE_DEPT_POST_LEADER_VAR + "}")); - Assert.notNull(flowIdentityExtHelper); - flowApiService.addTaskCreateListener(userTask, flowIdentityExtHelper.getDeptPostLeaderListener()); - } else if (StrUtil.equals(t.getGroupType(), FlowConstant.GROUP_TYPE_POST)) { - Assert.notNull(t.getDeptPostListJson()); - List groupDataList = - JSONArray.parseArray(t.getDeptPostListJson(), FlowTaskPostCandidateGroup.class); - List candidateGroupList = - FlowTaskPostCandidateGroup.buildCandidateGroupList(groupDataList); - userTask.setCandidateGroups(candidateGroupList); - } - } - } - Deployment deploy = repositoryService.createDeployment() - .addBpmnModel(flowEntry.getProcessDefinitionKey() + ".bpmn", bpmnModel) - .name(flowEntry.getProcessDefinitionName()) - .key(flowEntry.getProcessDefinitionKey()) - .category(flowCategory.getCode()) - .deploy(); - ProcessDefinition processDefinition = flowApiService.getProcessDefinitionByDeployId(deploy.getId()); - FlowEntryPublish flowEntryPublish = new FlowEntryPublish(); - flowEntryPublish.setEntryPublishId(idGenerator.nextLongId()); - flowEntryPublish.setEntryId(flowEntry.getEntryId()); - flowEntryPublish.setProcessDefinitionId(processDefinition.getId()); - flowEntryPublish.setDeployId(processDefinition.getDeploymentId()); - flowEntryPublish.setPublishVersion(processDefinition.getVersion()); - flowEntryPublish.setActiveStatus(true); - flowEntryPublish.setMainVersion(flowEntry.getStatus().equals(FlowEntryStatus.UNPUBLISHED)); - flowEntryPublish.setCreateUserId(TokenData.takeFromRequest().getUserId()); - flowEntryPublish.setPublishTime(new Date()); - flowEntryPublish.setInitTaskInfo(initTaskInfo); - flowEntryPublishMapper.insert(flowEntryPublish); - FlowEntry updatedFlowEntry = new FlowEntry(); - updatedFlowEntry.setEntryId(flowEntry.getEntryId()); - updatedFlowEntry.setStatus(FlowEntryStatus.PUBLISHED); - updatedFlowEntry.setLastestPublishTime(new Date()); - // 对于从未发布过的工作,第一次发布的时候会将本地发布置位主版本。 - if (flowEntry.getStatus().equals(FlowEntryStatus.UNPUBLISHED)) { - updatedFlowEntry.setMainEntryPublishId(flowEntryPublish.getEntryPublishId()); - } - flowEntryMapper.updateById(updatedFlowEntry); - FlowEntryVariable flowEntryVariableFilter = new FlowEntryVariable(); - flowEntryVariableFilter.setEntryId(flowEntry.getEntryId()); - List flowEntryVariableList = - flowEntryVariableService.getFlowEntryVariableList(flowEntryVariableFilter, null); - if (CollUtil.isNotEmpty(flowTaskExtList)) { - flowTaskExtList.forEach(t -> t.setProcessDefinitionId(processDefinition.getId())); - flowTaskExtService.saveBatch(flowTaskExtList); - } - this.insertEntryPublishVariables(flowEntryVariableList, flowEntryPublish.getEntryPublishId()); - } - - /** - * 更新数据对象。 - * - * @param flowEntry 更新的对象。 - * @param originalFlowEntry 原有数据对象。 - * @return 成功返回true,否则false。 - */ - @Transactional(rollbackFor = Exception.class) - @Override - public boolean update(FlowEntry flowEntry, FlowEntry originalFlowEntry) { - flowEntry.setUpdateUserId(TokenData.takeFromRequest().getUserId()); - flowEntry.setCreateUserId(originalFlowEntry.getCreateUserId()); - flowEntry.setUpdateTime(new Date()); - flowEntry.setCreateTime(originalFlowEntry.getCreateTime()); - flowEntry.setPageId(originalFlowEntry.getPageId()); - return flowEntryMapper.updateById(flowEntry) == 1; - } - - /** - * 删除指定数据。 - * - * @param entryId 主键Id。 - * @return 成功返回true,否则false。 - */ - @Transactional(rollbackFor = Exception.class) - @Override - public boolean remove(Long entryId) { - if (flowEntryMapper.deleteById(entryId) != 1) { - return false; - } - flowEntryVariableService.removeByEntryId(entryId); - return true; - } - - /** - * 获取单表查询结果。由于没有关联数据查询,因此在仅仅获取单表数据的场景下,效率更高。 - * 如果需要同时获取关联数据,请移步(getFlowEntryListWithRelation)方法。 - * - * @param filter 过滤对象。 - * @param orderBy 排序参数。 - * @return 查询结果集。 - */ - @Override - public List getFlowEntryList(FlowEntry filter, String orderBy) { - return flowEntryMapper.getFlowEntryList(filter, orderBy); - } - - /** - * 获取主表的查询结果,以及主表关联的字典数据和一对一从表数据,以及一对一从表的字典数据。 - * 该查询会涉及到一对一从表的关联过滤,或一对多从表的嵌套关联过滤,因此性能不如单表过滤。 - * 如果仅仅需要获取主表数据,请移步(getFlowEntryList),以便获取更好的查询性能。 - * - * @param filter 主表过滤对象。 - * @param orderBy 排序参数。 - * @return 查询结果集。 - */ - @Override - public List getFlowEntryListWithRelation(FlowEntry filter, String orderBy) { - List resultList = flowEntryMapper.getFlowEntryList(filter, orderBy); - // 在缺省生成的代码中,如果查询结果resultList不是Page对象,说明没有分页,那么就很可能是数据导出接口调用了当前方法。 - // 为了避免一次性的大量数据关联,规避因此而造成的系统运行性能冲击,这里手动进行了分批次读取,开发者可按需修改该值。 - int batchSize = resultList instanceof Page ? 0 : 1000; - this.buildRelationForDataList(resultList, MyRelationParam.normal(), batchSize); - Set mainEntryPublishIdSet = resultList.stream().filter(e -> e.getMainEntryPublishId() != null) - .map(FlowEntry::getMainEntryPublishId).collect(Collectors.toSet()); - if (CollUtil.isNotEmpty(mainEntryPublishIdSet)) { - List mainEntryPublishList = - flowEntryPublishMapper.selectBatchIds(mainEntryPublishIdSet); - MyModelUtil.makeOneToOneRelation(FlowEntry.class, resultList, FlowEntry::getMainEntryPublishId, - mainEntryPublishList, FlowEntryPublish::getEntryPublishId, "mainFlowEntryPublish"); - } - return resultList; - } - - @Override - public FlowEntry getFlowEntryByProcessDefinitionKey(String processDefinitionKey) { - FlowEntry filter = new FlowEntry(); - filter.setProcessDefinitionKey(processDefinitionKey); - return flowEntryMapper.selectOne(new LambdaQueryWrapper<>(filter)); - } - - /** - * 根据流程Id获取流程发布列表数据。 - * - * @param entryId 流程Id。 - * @return 流程关联的发布列表数据。 - */ - @Override - public List getFlowEntryPublishList(Long entryId) { - FlowEntryPublish filter = new FlowEntryPublish(); - filter.setEntryId(entryId); - LambdaQueryWrapper queryWrapper = new LambdaQueryWrapper<>(filter); - queryWrapper.orderByDesc(FlowEntryPublish::getEntryPublishId); - return flowEntryPublishMapper.selectList(queryWrapper); - } - - /** - * 根据流程引擎中的流程定义Id集合,查询流程发布对象。 - * - * @param processDefinitionIdSet 流程引擎中的流程定义Id集合。 - * @return 查询结果。 - */ - @Override - public List getFlowEntryPublishList(Set processDefinitionIdSet) { - LambdaQueryWrapper queryWrapper = new LambdaQueryWrapper<>(); - queryWrapper.in(FlowEntryPublish::getProcessDefinitionId, processDefinitionIdSet); - return flowEntryPublishMapper.selectList(queryWrapper); - } - - /** - * 获取指定工作流发布版本对象。同时同步修改工作流对象中冗余状态字段。 - * - * @param entryPublishId 工作流发布对象Id。 - * @return 查询后的对象。 - */ - @Override - public FlowEntryPublish getFlowEntryPublishById(Long entryPublishId) { - return flowEntryPublishMapper.selectById(entryPublishId); - } - - /** - * 获取指定流程定义Id对应的流程发布对象。 - * - * @param processDefinitionId 流程定义Id。 - * @return 流程发布对象。 - */ - @Override - public FlowEntryPublish getFlowEntryPublishByDefinitionId(String processDefinitionId) { - LambdaQueryWrapper queryWrapper = new LambdaQueryWrapper<>(); - queryWrapper.eq(FlowEntryPublish::getProcessDefinitionId, processDefinitionId); - return flowEntryPublishMapper.selectOne(queryWrapper); - } - - /** - * 为指定工作流切换发布的主版本。 - * - * @param flowEntry 工作流对象。 - * @param newMainFlowEntryPublish 工作流新的发布主版本对象。 - */ - @Transactional(rollbackFor = Exception.class) - @Override - public void updateFlowEntryMainVersion(FlowEntry flowEntry, FlowEntryPublish newMainFlowEntryPublish) { - FlowEntryPublish oldMainFlowEntryPublish = - flowEntryPublishMapper.selectById(flowEntry.getMainEntryPublishId()); - oldMainFlowEntryPublish.setMainVersion(false); - flowEntryPublishMapper.updateById(oldMainFlowEntryPublish); - newMainFlowEntryPublish.setMainVersion(true); - flowEntryPublishMapper.updateById(newMainFlowEntryPublish); - FlowEntry updatedEntry = new FlowEntry(); - updatedEntry.setEntryId(flowEntry.getEntryId()); - updatedEntry.setMainEntryPublishId(newMainFlowEntryPublish.getEntryPublishId()); - flowEntryMapper.updateById(updatedEntry); - } - - /** - * 挂起指定的工作流发布对象。同时同步修改工作流对象中冗余状态字段。 - * - * @param flowEntryPublish 待挂起的工作流发布对象。 - */ - @Transactional(rollbackFor = Exception.class) - @Override - public void suspendFlowEntryPublish(FlowEntryPublish flowEntryPublish) { - FlowEntryPublish updatedEntryPublish = new FlowEntryPublish(); - updatedEntryPublish.setEntryPublishId(flowEntryPublish.getEntryPublishId()); - updatedEntryPublish.setActiveStatus(false); - flowEntryPublishMapper.updateById(updatedEntryPublish); - flowApiService.suspendProcessDefinition(flowEntryPublish.getProcessDefinitionId()); - } - - /** - * 激活指定的工作流发布对象。 - * - * @param flowEntryPublish 待恢复的工作流发布对象。 - */ - @Transactional(rollbackFor = Exception.class) - @Override - public void activateFlowEntryPublish(FlowEntryPublish flowEntryPublish) { - FlowEntryPublish updatedEntryPublish = new FlowEntryPublish(); - updatedEntryPublish.setEntryPublishId(flowEntryPublish.getEntryPublishId()); - updatedEntryPublish.setActiveStatus(true); - flowEntryPublishMapper.updateById(updatedEntryPublish); - flowApiService.activateProcessDefinition(flowEntryPublish.getProcessDefinitionId()); - } - - /** - * 主表的关联数据验证。 - * - * @param flowEntry 最新数据对象。 - * @param originalFlowEntry 原有数据对象。 - * @return 数据全部正确返回true,否则false。 - */ - @Override - public CallResult verifyRelatedData(FlowEntry flowEntry, FlowEntry originalFlowEntry) { - String errorMessageFormat = "数据验证失败,关联的%s并不存在,请刷新后重试!"; - if (this.needToVerify(flowEntry, originalFlowEntry, FlowEntry::getCategoryId) - && !flowCategoryService.existId(flowEntry.getCategoryId())) { - return CallResult.error(String.format(errorMessageFormat, "流程类别Id")); - } - return CallResult.ok(); - } - - private void insertBuiltinEntryVariables(Long entryId) { - Date now = new Date(); - FlowEntryVariable operationTypeVariable = new FlowEntryVariable(); - operationTypeVariable.setVariableId(idGenerator.nextLongId()); - operationTypeVariable.setEntryId(entryId); - operationTypeVariable.setVariableName(FlowConstant.OPERATION_TYPE_VAR); - operationTypeVariable.setShowName("审批类型"); - operationTypeVariable.setVariableType(FlowVariableType.TASK); - operationTypeVariable.setBuiltin(true); - operationTypeVariable.setCreateTime(now); - flowEntryVariableService.saveNew(operationTypeVariable); - FlowEntryVariable startUserNameVariable = new FlowEntryVariable(); - startUserNameVariable.setVariableId(idGenerator.nextLongId()); - startUserNameVariable.setEntryId(entryId); - startUserNameVariable.setVariableName("startUserName"); - startUserNameVariable.setShowName("流程启动用户"); - startUserNameVariable.setVariableType(FlowVariableType.INSTANCE); - startUserNameVariable.setBuiltin(true); - startUserNameVariable.setCreateTime(now); - flowEntryVariableService.saveNew(startUserNameVariable); - } - - private void insertEntryPublishVariables(List entryVariableList, Long entryPublishId) { - if (CollUtil.isEmpty(entryVariableList)) { - return; - } - List entryPublishVariableList = - MyModelUtil.copyCollectionTo(entryVariableList, FlowEntryPublishVariable.class); - for (FlowEntryPublishVariable variable : entryPublishVariableList) { - variable.setVariableId(idGenerator.nextLongId()); - variable.setEntryPublishId(entryPublishId); - } - flowEntryPublishVariableMapper.insertList(entryPublishVariableList); - } -} diff --git a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/service/impl/FlowEntryVariableServiceImpl.java b/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/service/impl/FlowEntryVariableServiceImpl.java deleted file mode 100644 index 4f07cd68..00000000 --- a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/service/impl/FlowEntryVariableServiceImpl.java +++ /dev/null @@ -1,131 +0,0 @@ -package com.orangeforms.common.flow.service.impl; - -import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; -import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; -import com.orangeforms.common.flow.service.*; -import com.orangeforms.common.flow.dao.*; -import com.orangeforms.common.flow.model.*; -import com.orangeforms.common.core.base.dao.BaseDaoMapper; -import com.orangeforms.common.core.object.MyRelationParam; -import com.orangeforms.common.core.base.service.BaseService; -import com.orangeforms.common.sequence.wrapper.IdGeneratorWrapper; -import com.github.pagehelper.Page; -import lombok.extern.slf4j.Slf4j; -import org.springframework.transaction.annotation.Transactional; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; - -import java.util.*; - -/** - * 流程变量数据操作服务类。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Slf4j -@Service("flowEntryVariableService") -public class FlowEntryVariableServiceImpl extends BaseService implements FlowEntryVariableService { - - @Autowired - private FlowEntryVariableMapper flowEntryVariableMapper; - @Autowired - private IdGeneratorWrapper idGenerator; - - /** - * 返回当前Service的主表Mapper对象。 - * - * @return 主表Mapper对象。 - */ - @Override - protected BaseDaoMapper mapper() { - return flowEntryVariableMapper; - } - - /** - * 保存新增对象。 - * - * @param flowEntryVariable 新增对象。 - * @return 返回新增对象。 - */ - @Transactional(rollbackFor = Exception.class) - @Override - public FlowEntryVariable saveNew(FlowEntryVariable flowEntryVariable) { - flowEntryVariable.setVariableId(idGenerator.nextLongId()); - flowEntryVariable.setCreateTime(new Date()); - flowEntryVariableMapper.insert(flowEntryVariable); - return flowEntryVariable; - } - - /** - * 更新数据对象。 - * - * @param flowEntryVariable 更新的对象。 - * @param originalFlowEntryVariable 原有数据对象。 - * @return 成功返回true,否则false。 - */ - @Transactional(rollbackFor = Exception.class) - @Override - public boolean update(FlowEntryVariable flowEntryVariable, FlowEntryVariable originalFlowEntryVariable) { - flowEntryVariable.setCreateTime(originalFlowEntryVariable.getCreateTime()); - // 这里重点提示,在执行主表数据更新之前,如果有哪些字段不支持修改操作,请用原有数据对象字段替换当前数据字段。 - UpdateWrapper uw = this.createUpdateQueryForNullValue(flowEntryVariable, flowEntryVariable.getVariableId()); - return flowEntryVariableMapper.update(flowEntryVariable, uw) == 1; - } - - /** - * 删除指定数据。 - * - * @param variableId 主键Id。 - * @return 成功返回true,否则false。 - */ - @Transactional(rollbackFor = Exception.class) - @Override - public boolean remove(Long variableId) { - return flowEntryVariableMapper.deleteById(variableId) == 1; - } - - /** - * 删除指定流程Id的所有变量。 - * - * @param entryId 流程Id。 - */ - @Transactional(rollbackFor = Exception.class) - @Override - public void removeByEntryId(Long entryId) { - flowEntryVariableMapper.delete( - new LambdaQueryWrapper().eq(FlowEntryVariable::getEntryId, entryId)); - } - - /** - * 获取单表查询结果。由于没有关联数据查询,因此在仅仅获取单表数据的场景下,效率更高。 - * 如果需要同时获取关联数据,请移步(getFlowEntryVariableListWithRelation)方法。 - * - * @param filter 过滤对象。 - * @param orderBy 排序参数。 - * @return 查询结果集。 - */ - @Override - public List getFlowEntryVariableList(FlowEntryVariable filter, String orderBy) { - return flowEntryVariableMapper.getFlowEntryVariableList(filter, orderBy); - } - - /** - * 获取主表的查询结果,以及主表关联的字典数据和一对一从表数据,以及一对一从表的字典数据。 - * 该查询会涉及到一对一从表的关联过滤,或一对多从表的嵌套关联过滤,因此性能不如单表过滤。 - * 如果仅仅需要获取主表数据,请移步(getFlowEntryVariableList),以便获取更好的查询性能。 - * - * @param filter 主表过滤对象。 - * @param orderBy 排序参数。 - * @return 查询结果集。 - */ - @Override - public List getFlowEntryVariableListWithRelation(FlowEntryVariable filter, String orderBy) { - List resultList = flowEntryVariableMapper.getFlowEntryVariableList(filter, orderBy); - // 在缺省生成的代码中,如果查询结果resultList不是Page对象,说明没有分页,那么就很可能是数据导出接口调用了当前方法。 - // 为了避免一次性的大量数据关联,规避因此而造成的系统运行性能冲击,这里手动进行了分批次读取,开发者可按需修改该值。 - int batchSize = resultList instanceof Page ? 0 : 1000; - this.buildRelationForDataList(resultList, MyRelationParam.normal(), batchSize); - return resultList; - } -} diff --git a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/service/impl/FlowMessageServiceImpl.java b/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/service/impl/FlowMessageServiceImpl.java deleted file mode 100644 index 54b88359..00000000 --- a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/service/impl/FlowMessageServiceImpl.java +++ /dev/null @@ -1,247 +0,0 @@ -package com.orangeforms.common.flow.service.impl; - -import cn.hutool.core.collection.CollUtil; -import cn.hutool.core.lang.Assert; -import cn.hutool.core.util.StrUtil; -import com.alibaba.fastjson.JSONArray; -import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; -import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; -import com.orangeforms.common.core.base.dao.BaseDaoMapper; -import com.orangeforms.common.core.base.service.BaseService; -import com.orangeforms.common.core.object.TokenData; -import com.orangeforms.common.flow.constant.FlowConstant; -import com.orangeforms.common.flow.model.constant.FlowMessageType; -import com.orangeforms.common.flow.dao.FlowMessageCandidateIdentityMapper; -import com.orangeforms.common.flow.dao.FlowMessageMapper; -import com.orangeforms.common.flow.model.FlowMessage; -import com.orangeforms.common.flow.model.FlowMessageCandidateIdentity; -import com.orangeforms.common.flow.model.FlowTaskExt; -import com.orangeforms.common.flow.model.FlowWorkOrder; -import com.orangeforms.common.flow.object.FlowTaskPostCandidateGroup; -import com.orangeforms.common.flow.service.FlowApiService; -import com.orangeforms.common.flow.service.FlowMessageService; -import com.orangeforms.common.flow.service.FlowTaskExtService; -import com.orangeforms.common.sequence.wrapper.IdGeneratorWrapper; -import lombok.extern.slf4j.Slf4j; -import org.activiti.engine.task.Task; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; -import org.springframework.transaction.annotation.Transactional; - -import java.util.*; - -/** - * 工作流消息数据操作服务接口。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Slf4j -@Service("flowMessageService") -public class FlowMessageServiceImpl extends BaseService implements FlowMessageService { - - @Autowired - private FlowMessageMapper flowMessageMapper; - @Autowired - private FlowMessageCandidateIdentityMapper flowMessageCandidateIdentityMapper; - @Autowired - private FlowTaskExtService flowTaskExtService; - @Autowired - private FlowApiService flowApiService; - @Autowired - private IdGeneratorWrapper idGenerator; - - /** - * 返回当前Service的主表Mapper对象。 - * - * @return 主表Mapper对象。 - */ - @Override - protected BaseDaoMapper mapper() { - return flowMessageMapper; - } - - @Transactional(rollbackFor = Exception.class) - @Override - public FlowMessage saveNew(FlowMessage flowMessage) { - flowMessage.setMessageId(idGenerator.nextLongId()); - TokenData tokenData = TokenData.takeFromRequest(); - flowMessage.setCreateUserId(tokenData.getUserId()); - flowMessage.setCreateUsername(tokenData.getShowName()); - flowMessage.setCreateTime(new Date()); - flowMessage.setUpdateUserId(tokenData.getUserId()); - flowMessage.setUpdateTime(flowMessage.getCreateTime()); - flowMessageMapper.insert(flowMessage); - return flowMessage; - } - - @Transactional(rollbackFor = Exception.class) - @Override - public void saveNewRemindMessage(FlowWorkOrder flowWorkOrder) { - List taskList = - flowApiService.getProcessInstanceActiveTaskList(flowWorkOrder.getProcessInstanceId()); - for (Task task : taskList) { - FlowMessage filter = new FlowMessage(); - filter.setTaskId(task.getId()); - List messageList = flowMessageMapper.selectList(new QueryWrapper<>(filter)); - // 同一个任务只能催办一次,多次催办则累加催办次数。 - if (CollUtil.isNotEmpty(messageList)) { - for (FlowMessage flowMessage : messageList) { - flowMessage.setRemindCount(flowMessage.getRemindCount() + 1); - flowMessageMapper.updateById(flowMessage); - } - continue; - } - FlowMessage flowMessage = new FlowMessage(); - flowMessage.setMessageType(FlowMessageType.REMIND_TYPE); - flowMessage.setRemindCount(1); - flowMessage.setWorkOrderId(flowWorkOrder.getWorkOrderId()); - flowMessage.setProcessDefinitionId(flowWorkOrder.getProcessDefinitionId()); - flowMessage.setProcessDefinitionKey(flowWorkOrder.getProcessDefinitionKey()); - flowMessage.setProcessDefinitionName(flowWorkOrder.getProcessDefinitionName()); - flowMessage.setProcessInstanceId(flowWorkOrder.getProcessInstanceId()); - flowMessage.setProcessInstanceInitiator(flowWorkOrder.getSubmitUsername()); - flowMessage.setTaskId(task.getId()); - flowMessage.setTaskDefinitionKey(task.getTaskDefinitionKey()); - flowMessage.setTaskName(task.getName()); - flowMessage.setTaskStartTime(task.getCreateTime()); - flowMessage.setTaskAssignee(task.getAssignee()); - flowMessage.setTaskFinished(false); - this.saveNew(flowMessage); - FlowTaskExt flowTaskExt = flowTaskExtService.getByProcessDefinitionIdAndTaskId( - flowWorkOrder.getProcessDefinitionId(), task.getTaskDefinitionKey()); - if (flowTaskExt != null) { - this.saveMessageCandidateIdentityWithMessage( - flowWorkOrder.getProcessInstanceId(), flowTaskExt, flowMessage.getMessageId()); - } - } - } - - @Transactional(rollbackFor = Exception.class) - @Override - public void updateFinishedStatusByTaskId(String taskId) { - FlowMessage flowMessage = new FlowMessage(); - flowMessage.setTaskFinished(true); - LambdaQueryWrapper queryWrapper = new LambdaQueryWrapper<>(); - queryWrapper.eq(FlowMessage::getTaskId, taskId); - flowMessageMapper.update(flowMessage, queryWrapper); - } - - @Transactional(rollbackFor = Exception.class) - @Override - public void updateFinishedStatusByProcessInstanceId(String processInstanceId) { - FlowMessage flowMessage = new FlowMessage(); - flowMessage.setTaskFinished(true); - LambdaQueryWrapper queryWrapper = new LambdaQueryWrapper<>(); - queryWrapper.eq(FlowMessage::getProcessInstanceId, processInstanceId); - flowMessageMapper.update(flowMessage, queryWrapper); - } - - @Override - public List getRemindingMessageListByUser() { - TokenData tokenData = TokenData.takeFromRequest(); - Set groupIdSet = new HashSet<>(1); - groupIdSet.add(tokenData.getLoginName()); - this.parseAndAddIdArray(groupIdSet, tokenData.getRoleIds()); - this.parseAndAddIdArray(groupIdSet, tokenData.getDeptPostIds()); - this.parseAndAddIdArray(groupIdSet, tokenData.getPostIds()); - if (tokenData.getDeptId() != null) { - groupIdSet.add(tokenData.getDeptId().toString()); - } - return flowMessageMapper.getRemindingMessageListByUser(tokenData.getLoginName(), groupIdSet); - } - - private void parseAndAddIdArray(Set groupIdSet, String idArray) { - if (StrUtil.isNotBlank(idArray)) { - if (groupIdSet == null) { - groupIdSet = new HashSet<>(); - } - groupIdSet.addAll(StrUtil.split(idArray, ',')); - } - } - - private void saveMessageCandidateIdentityWithMessage( - String processInstanceId, FlowTaskExt flowTaskExt, Long messageId) { - this.saveMessageCandidateIdentityList( - messageId, "username", flowTaskExt.getCandidateUsernames()); - this.saveMessageCandidateIdentityList( - messageId, "role", flowTaskExt.getRoleIds()); - this.saveMessageCandidateIdentityList( - messageId, "dept", flowTaskExt.getDeptIds()); - if (StrUtil.equals(flowTaskExt.getGroupType(), FlowConstant.GROUP_TYPE_UP_DEPT_POST_LEADER)) { - Object v = flowApiService.getProcessInstanceVariable( - processInstanceId, FlowConstant.GROUP_TYPE_UP_DEPT_POST_LEADER_VAR); - if (v != null) { - this.saveMessageCandidateIdentity( - messageId, FlowConstant.GROUP_TYPE_UP_DEPT_POST_LEADER_VAR, v.toString()); - } - } else if (StrUtil.equals(flowTaskExt.getGroupType(), FlowConstant.GROUP_TYPE_DEPT_POST_LEADER)) { - Object v = flowApiService.getProcessInstanceVariable( - processInstanceId, FlowConstant.GROUP_TYPE_DEPT_POST_LEADER_VAR); - if (v != null) { - this.saveMessageCandidateIdentity( - messageId, FlowConstant.GROUP_TYPE_DEPT_POST_LEADER_VAR, v.toString()); - } - } else if (StrUtil.equals(flowTaskExt.getGroupType(), FlowConstant.GROUP_TYPE_POST)) { - Assert.notBlank(flowTaskExt.getDeptPostListJson()); - List groupDataList = - JSONArray.parseArray(flowTaskExt.getDeptPostListJson(), FlowTaskPostCandidateGroup.class); - for (FlowTaskPostCandidateGroup groupData : groupDataList) { - FlowMessageCandidateIdentity candidateIdentity = new FlowMessageCandidateIdentity(); - candidateIdentity.setId(idGenerator.nextLongId()); - candidateIdentity.setMessageId(messageId); - candidateIdentity.setCandidateType(groupData.getType()); - switch (groupData.getType()) { - case FlowConstant.GROUP_TYPE_ALL_DEPT_POST_VAR: - candidateIdentity.setCandidateId(groupData.getPostId()); - flowMessageCandidateIdentityMapper.insert(candidateIdentity); - break; - case FlowConstant.GROUP_TYPE_DEPT_POST_VAR: - candidateIdentity.setCandidateId(groupData.getDeptPostId()); - flowMessageCandidateIdentityMapper.insert(candidateIdentity); - break; - case FlowConstant.GROUP_TYPE_SELF_DEPT_POST_VAR: - Object v = flowApiService.getProcessInstanceVariable( - processInstanceId, FlowConstant.SELF_DEPT_POST_PREFIX + groupData.getPostId()); - if (v != null) { - candidateIdentity.setCandidateId(v.toString()); - flowMessageCandidateIdentityMapper.insert(candidateIdentity); - } - break; - case FlowConstant.GROUP_TYPE_UP_DEPT_POST_VAR: - Object v2 = flowApiService.getProcessInstanceVariable( - processInstanceId, FlowConstant.UP_DEPT_POST_PREFIX + groupData.getPostId()); - if (v2 != null) { - candidateIdentity.setCandidateId(v2.toString()); - flowMessageCandidateIdentityMapper.insert(candidateIdentity); - } - break; - default: - break; - } - } - } - } - - private void saveMessageCandidateIdentity(Long messageId, String candidateType, String candidateId) { - FlowMessageCandidateIdentity candidateIdentity = new FlowMessageCandidateIdentity(); - candidateIdentity.setId(idGenerator.nextLongId()); - candidateIdentity.setMessageId(messageId); - candidateIdentity.setCandidateType(FlowConstant.GROUP_TYPE_UP_DEPT_POST_LEADER_VAR); - candidateIdentity.setCandidateId(candidateId); - flowMessageCandidateIdentityMapper.insert(candidateIdentity); - } - - private void saveMessageCandidateIdentityList(Long messageId, String candidateType, String identityIds) { - if (StrUtil.isNotBlank(identityIds)) { - for (String identityId : StrUtil.split(identityIds, ',')) { - FlowMessageCandidateIdentity candidateIdentity = new FlowMessageCandidateIdentity(); - candidateIdentity.setId(idGenerator.nextLongId()); - candidateIdentity.setMessageId(messageId); - candidateIdentity.setCandidateType(candidateType); - candidateIdentity.setCandidateId(identityId); - flowMessageCandidateIdentityMapper.insert(candidateIdentity); - } - } - } -} diff --git a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/service/impl/FlowTaskCommentServiceImpl.java b/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/service/impl/FlowTaskCommentServiceImpl.java deleted file mode 100644 index 22b92eef..00000000 --- a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/service/impl/FlowTaskCommentServiceImpl.java +++ /dev/null @@ -1,94 +0,0 @@ -package com.orangeforms.common.flow.service.impl; - -import cn.hutool.core.collection.CollUtil; -import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.baomidou.mybatisplus.extension.plugins.pagination.Page; -import com.orangeforms.common.flow.service.*; -import com.orangeforms.common.flow.dao.*; -import com.orangeforms.common.flow.model.*; -import com.orangeforms.common.core.base.dao.BaseDaoMapper; -import com.orangeforms.common.core.object.TokenData; -import com.orangeforms.common.core.base.service.BaseService; -import com.orangeforms.common.sequence.wrapper.IdGeneratorWrapper; -import lombok.extern.slf4j.Slf4j; -import org.springframework.transaction.annotation.Transactional; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; - -import java.util.*; - -/** - * 流程任务批注数据操作服务类。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Slf4j -@Service("flowTaskCommentService") -public class FlowTaskCommentServiceImpl extends BaseService implements FlowTaskCommentService { - - @Autowired - private FlowTaskCommentMapper flowTaskCommentMapper; - @Autowired - private IdGeneratorWrapper idGenerator; - - /** - * 返回当前Service的主表Mapper对象。 - * - * @return 主表Mapper对象。 - */ - @Override - protected BaseDaoMapper mapper() { - return flowTaskCommentMapper; - } - - /** - * 保存新增对象。 - * - * @param flowTaskComment 新增对象。 - * @return 返回新增对象。 - */ - @Transactional(rollbackFor = Exception.class) - @Override - public FlowTaskComment saveNew(FlowTaskComment flowTaskComment) { - flowTaskComment.setId(idGenerator.nextLongId()); - TokenData tokenData = TokenData.takeFromRequest(); - flowTaskComment.setCreateUserId(tokenData.getUserId()); - flowTaskComment.setCreateUsername(tokenData.getShowName()); - flowTaskComment.setCreateTime(new Date()); - flowTaskCommentMapper.insert(flowTaskComment); - return flowTaskComment; - } - - /** - * 查询指定流程实例Id下的所有审批任务的批注。 - * - * @param processInstanceId 流程实例Id。 - * @return 查询结果集。 - */ - @Override - public List getFlowTaskCommentList(String processInstanceId) { - LambdaQueryWrapper queryWrapper = - new LambdaQueryWrapper().eq(FlowTaskComment::getProcessInstanceId, processInstanceId); - queryWrapper.orderByAsc(FlowTaskComment::getId); - return flowTaskCommentMapper.selectList(queryWrapper); - } - - @Override - public List getFlowTaskCommentListByTaskIds(Set taskIdSet) { - LambdaQueryWrapper queryWrapper = - new LambdaQueryWrapper().in(FlowTaskComment::getTaskId, taskIdSet); - queryWrapper.orderByDesc(FlowTaskComment::getId); - return flowTaskCommentMapper.selectList(queryWrapper); - } - - @Override - public FlowTaskComment getLatestFlowTaskComment(String processInstanceId) { - LambdaQueryWrapper queryWrapper = - new LambdaQueryWrapper().eq(FlowTaskComment::getProcessInstanceId, processInstanceId); - queryWrapper.orderByDesc(FlowTaskComment::getId); - IPage pageData = flowTaskCommentMapper.selectPage(new Page<>(1, 1), queryWrapper); - return CollUtil.isEmpty(pageData.getRecords()) ? null : pageData.getRecords().get(0); - } -} diff --git a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/service/impl/FlowTaskExtServiceImpl.java b/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/service/impl/FlowTaskExtServiceImpl.java deleted file mode 100644 index 8352c23a..00000000 --- a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/service/impl/FlowTaskExtServiceImpl.java +++ /dev/null @@ -1,62 +0,0 @@ -package com.orangeforms.common.flow.service.impl; - -import cn.hutool.core.collection.CollUtil; -import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; -import com.orangeforms.common.flow.service.*; -import com.orangeforms.common.flow.dao.*; -import com.orangeforms.common.flow.model.*; -import com.orangeforms.common.core.base.dao.BaseDaoMapper; -import com.orangeforms.common.core.base.service.BaseService; -import lombok.extern.slf4j.Slf4j; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; -import org.springframework.transaction.annotation.Transactional; - -import java.util.List; - -/** - * 流程任务扩展数据操作服务类。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Slf4j -@Service("flowTaskExtService") -public class FlowTaskExtServiceImpl extends BaseService implements FlowTaskExtService { - - @Autowired - private FlowTaskExtMapper flowTaskExtMapper; - - /** - * 返回当前Service的主表Mapper对象。 - * - * @return 主表Mapper对象。 - */ - @Override - protected BaseDaoMapper mapper() { - return flowTaskExtMapper; - } - - @Transactional(rollbackFor = Exception.class) - @Override - public void saveBatch(List flowTaskExtList) { - if (CollUtil.isNotEmpty(flowTaskExtList)) { - flowTaskExtMapper.insertList(flowTaskExtList); - } - } - - @Override - public FlowTaskExt getByProcessDefinitionIdAndTaskId(String processDefinitionId, String taskId) { - FlowTaskExt filter = new FlowTaskExt(); - filter.setProcessDefinitionId(processDefinitionId); - filter.setTaskId(taskId); - return flowTaskExtMapper.selectOne(new QueryWrapper<>(filter)); - } - - @Override - public List getByProcessDefinitionId(String processDefinitionId) { - FlowTaskExt filter = new FlowTaskExt(); - filter.setProcessDefinitionId(processDefinitionId); - return flowTaskExtMapper.selectList(new QueryWrapper<>(filter)); - } -} diff --git a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/service/impl/FlowWorkOrderServiceImpl.java b/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/service/impl/FlowWorkOrderServiceImpl.java deleted file mode 100644 index a4a76631..00000000 --- a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/service/impl/FlowWorkOrderServiceImpl.java +++ /dev/null @@ -1,147 +0,0 @@ -package com.orangeforms.common.flow.service.impl; - -import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; -import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; -import com.orangeforms.common.core.base.dao.BaseDaoMapper; -import com.orangeforms.common.core.constant.GlobalDeletedFlag; -import com.orangeforms.common.core.object.MyRelationParam; -import com.orangeforms.common.core.object.TokenData; -import com.orangeforms.common.core.base.service.BaseService; -import com.orangeforms.common.flow.constant.FlowTaskStatus; -import com.orangeforms.common.flow.dao.FlowWorkOrderMapper; -import com.orangeforms.common.flow.model.FlowWorkOrder; -import com.orangeforms.common.flow.service.FlowWorkOrderService; -import com.orangeforms.common.sequence.wrapper.IdGeneratorWrapper; -import lombok.extern.slf4j.Slf4j; -import org.activiti.engine.runtime.ProcessInstance; -import org.springframework.transaction.annotation.Transactional; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; - -import java.util.*; - -/** - * 工作流工单表数据操作服务类。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Slf4j -@Service("flowWorkOrderService") -public class FlowWorkOrderServiceImpl extends BaseService implements FlowWorkOrderService { - - @Autowired - private FlowWorkOrderMapper flowWorkOrderMapper; - @Autowired - private IdGeneratorWrapper idGenerator; - - /** - * 返回当前Service的主表Mapper对象。 - * - * @return 主表Mapper对象。 - */ - @Override - protected BaseDaoMapper mapper() { - return flowWorkOrderMapper; - } - - /** - * 保存新增对象。 - * - * @param instance 流程实例对象。 - * @param dataId 流程实例的BusinessKey。 - * @param onlineTableId 在线数据表的主键Id。 - * @param tableName 面向静态表单所使用的表名。 - * @return 新增的工作流工单对象。 - */ - @Transactional(rollbackFor = Exception.class) - @Override - public FlowWorkOrder saveNew(ProcessInstance instance, Object dataId, Long onlineTableId, String tableName) { - TokenData tokenData = TokenData.takeFromRequest(); - Date now = new Date(); - FlowWorkOrder flowWorkOrder = new FlowWorkOrder(); - flowWorkOrder.setWorkOrderId(idGenerator.nextLongId()); - flowWorkOrder.setProcessDefinitionKey(instance.getProcessDefinitionKey()); - flowWorkOrder.setProcessDefinitionName(instance.getProcessDefinitionName()); - flowWorkOrder.setProcessDefinitionId(instance.getProcessDefinitionId()); - flowWorkOrder.setProcessInstanceId(instance.getId()); - flowWorkOrder.setBusinessKey(dataId.toString()); - flowWorkOrder.setOnlineTableId(onlineTableId); - flowWorkOrder.setTableName(tableName); - flowWorkOrder.setFlowStatus(FlowTaskStatus.SUBMITTED); - flowWorkOrder.setSubmitUsername(tokenData.getLoginName()); - flowWorkOrder.setDeptId(tokenData.getDeptId()); - flowWorkOrder.setCreateUserId(tokenData.getUserId()); - flowWorkOrder.setUpdateUserId(tokenData.getUserId()); - flowWorkOrder.setCreateTime(now); - flowWorkOrder.setUpdateTime(now); - flowWorkOrder.setDeletedFlag(GlobalDeletedFlag.NORMAL); - flowWorkOrderMapper.insert(flowWorkOrder); - return flowWorkOrder; - } - - /** - * 删除指定数据。 - * - * @param workOrderId 主键Id。 - * @return 成功返回true,否则false。 - */ - @Transactional(rollbackFor = Exception.class) - @Override - public boolean remove(Long workOrderId) { - return flowWorkOrderMapper.deleteById(workOrderId) == 1; - } - - @Transactional(rollbackFor = Exception.class) - @Override - public void removeByProcessInstanceId(String processInstanceId) { - FlowWorkOrder filter = new FlowWorkOrder(); - filter.setProcessInstanceId(processInstanceId); - super.removeBy(filter); - } - - @Override - public List getFlowWorkOrderList(FlowWorkOrder filter, String orderBy) { - return flowWorkOrderMapper.getFlowWorkOrderList(filter, orderBy); - } - - @Override - public List getFlowWorkOrderListWithRelation(FlowWorkOrder filter, String orderBy) { - List resultList = flowWorkOrderMapper.getFlowWorkOrderList(filter, orderBy); - this.buildRelationForDataList(resultList, MyRelationParam.dictOnly()); - return resultList; - } - - @Override - public FlowWorkOrder getFlowWorkOrderByProcessInstanceId(String processInstanceId) { - FlowWorkOrder filter = new FlowWorkOrder(); - filter.setProcessInstanceId(processInstanceId); - return flowWorkOrderMapper.selectOne(new QueryWrapper<>(filter)); - } - - @Override - public boolean existByBusinessKey(String tableName, Object businessKey, boolean unfinished) { - LambdaQueryWrapper queryWrapper = new LambdaQueryWrapper<>(); - queryWrapper.eq(FlowWorkOrder::getBusinessKey, businessKey.toString()); - queryWrapper.eq(FlowWorkOrder::getTableName, tableName); - if (unfinished) { - queryWrapper.notIn(FlowWorkOrder::getFlowStatus, - FlowTaskStatus.FINISHED, FlowTaskStatus.CANCELLED, FlowTaskStatus.STOPPED); - } - return flowWorkOrderMapper.selectCount(queryWrapper) > 0; - } - - @Transactional(rollbackFor = Exception.class) - @Override - public void updateFlowStatusByProcessInstanceId(String processInstanceId, int flowStatus) { - FlowWorkOrder flowWorkOrder = new FlowWorkOrder(); - flowWorkOrder.setFlowStatus(flowStatus); - if (FlowTaskStatus.FINISHED != flowStatus) { - flowWorkOrder.setUpdateTime(new Date()); - flowWorkOrder.setUpdateUserId(TokenData.takeFromRequest().getUserId()); - } - LambdaQueryWrapper queryWrapper = new LambdaQueryWrapper<>(); - queryWrapper.eq(FlowWorkOrder::getProcessInstanceId, processInstanceId); - flowWorkOrderMapper.update(flowWorkOrder, queryWrapper); - } -} diff --git a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/util/BaseDataSyncExtHelper.java b/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/util/BaseDataSyncExtHelper.java deleted file mode 100644 index 5a2f3a4b..00000000 --- a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/util/BaseDataSyncExtHelper.java +++ /dev/null @@ -1,59 +0,0 @@ -package com.orangeforms.common.flow.util; - -import cn.hutool.core.lang.Assert; -import cn.hutool.core.util.StrUtil; -import com.orangeforms.common.flow.base.service.BaseFlowService; -import lombok.extern.slf4j.Slf4j; - -import java.util.HashMap; -import java.util.Map; - -/** - * 工作流实例执行结束之后,需要需要做业务表的数据同步,可实现该接口。 - * 该插件通常用于一张表单多次提交的场景。为了避免修改后的审批中数据,由于尚未通过审批,而此时依赖该业务作为关联表时, - * 关联到的数据往往是尚未通过审批的脏数据,因此需要做审批表和发布表的数据隔离。仅当审批流程完全结束且通过审批后,在 - * 将审批表及其一对一、一对多、多对多关联表中的数据,同步到发布表及其关联表中。至于具体需要同步那些表数据,需按需求而定。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Slf4j -public class BaseDataSyncExtHelper { - - private Map serviceMap = new HashMap<>(); - - /** - * 子类要基于自身所处理的流程定义标识,把子类的this对象,注册到父类的map中。 - * - * @param processDefinitionKey 流程定义标识。 - * @param service 流程服务实现基类。 - */ - public synchronized void doRegister(String processDefinitionKey, BaseFlowService service) { - Assert.isTrue(StrUtil.isNotBlank(processDefinitionKey)); - Assert.notNull(service); - serviceMap.put(processDefinitionKey, service); - } - - /** - * - * 流程结束监听器(FlowFinishedListener) 会在流程结束时调用该方法。 - * - * @param processDefinitionKey 流程定义标识。 - * @param processInstanceId 流程实例Id。 - * @param businessKey 业务主表的主键Id。 - */ - public void triggerSync(String processDefinitionKey, String processInstanceId, String businessKey) { - BaseFlowService service = serviceMap.get(processDefinitionKey); - if (service != null) { - try { - service.doSyncBusinessData(processInstanceId, businessKey); - } catch (Exception e) { - String errorMessage = String.format( - "Failed to call doSyncBusinessData with processDefinitionKey {%s}, businessKey {%s}", - processDefinitionKey, businessKey); - log.error(errorMessage, e); - throw e; - } - } - } -} diff --git a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/util/BaseFlowIdentityExtHelper.java b/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/util/BaseFlowIdentityExtHelper.java deleted file mode 100644 index 5f3e830e..00000000 --- a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/util/BaseFlowIdentityExtHelper.java +++ /dev/null @@ -1,162 +0,0 @@ -package com.orangeforms.common.flow.util; - -import com.orangeforms.common.flow.listener.DeptPostLeaderListener; -import com.orangeforms.common.flow.listener.UpDeptPostLeaderListener; -import org.activiti.engine.delegate.TaskListener; - -import java.util.Map; -import java.util.Set; - -/** - * 工作流与用户身份相关的自定义扩展接口,需要业务模块自行实现该接口。也可以根据实际需求扩展该接口的方法。 - * 目前支持的主键类型为字符型和长整型,所以这里提供了两套实现接口。可根据实际情况实现其中一套即可。 - * - * @author Jerry - * @date 2021-06-06 - */ -public interface BaseFlowIdentityExtHelper { - - /** - * 根据(字符型)部门Id,获取当前用户部门领导所有的部门岗位Id。 - * - * @param deptId 用户所在部门Id。 - * @return 当前用户部门领导所有的部门岗位Id。 - */ - default String getLeaderDeptPostId(String deptId) { - return null; - } - - /** - * 根据(字符型)部门Id,获取当前用户上级部门领导所有的部门岗位Id。 - * - * @param deptId 用户所在部门Id。 - * @return 当前用户上级部门领导所有的部门岗位Id。 - */ - default String getUpLeaderDeptPostId(String deptId) { - return null; - } - - /** - * 获取(字符型)指定部门上级部门的指定岗位集合的DeptPostId集合。 - * - * @param deptId 指定的部门Id。 - * @param postIdSet 指定的岗位Id集合。 - * @return 与该部门Id上级部门关联的岗位Id集合,key对应参数中的postId,value是与key对应的deptPostId。 - */ - default Map getUpDeptPostIdMap(String deptId, Set postIdSet) { - return null; - } - - /** - * 获取(字符型)指定部门的指定岗位集合的DeptPostId集合。 - * - * @param deptId 指定的部门Id。 - * @param postIdSet 指定的岗位Id集合。 - * @return 与部门关联的岗位Id集合,key对应参数中的postId,value是与key对应的deptPostId。 - */ - default Map getDeptPostIdMap(String deptId, Set postIdSet) { - return null; - } - - /** - * 根据(长整型)部门Id,获取当前用户部门领导所有的部门岗位Id。 - * - * @param deptId 用户所在部门Id。 - * @return 当前用户部门领导所有的部门岗位Id。 - */ - default Long getLeaderDeptPostId(Long deptId) { - return null; - } - - /** - * 根据(长整型)部门Id,获取当前用户上级部门领导所有的部门岗位Id。 - * - * @param deptId 用户所在部门Id。 - * @return 当前用户上级部门领导所有的部门岗位Id。 - */ - default Long getUpLeaderDeptPostId(Long deptId) { - return null; - } - - /** - * 获取(长整型)指定部门的指定岗位集合的DeptPostId集合。 - * - * @param deptId 指定的部门Id。 - * @param postIdSet 指定的岗位Id集合。 - * @return 与部门关联的岗位Id集合,key对应参数中的postId,value是与key对应的deptPostId。 - */ - default Map getDeptPostIdMap(Long deptId, Set postIdSet) { - return null; - } - - /** - * 获取(长整型)指定部门上级部门的指定岗位集合的DeptPostId集合。 - * - * @param deptId 指定的部门Id。 - * @param postIdSet 指定的岗位Id集合。 - * @return 与该部门Id上级部门关联的岗位Id集合,key对应参数中的postId,value是与key对应的deptPostId。 - */ - default Map getUpDeptPostIdMap(Long deptId, Set postIdSet) { - return null; - } - - /** - * 根据角色Id集合,查询所属的用户名列表。 - * - * @param roleIdSet 角色Id集合。 - * @return 所属的用户列表。 - */ - default Set getUsernameListByRoleIds(Set roleIdSet) { - return null; - } - - /** - * 根据部门Id集合,查询所属的用户名列表。 - * - * @param deptIdSet 部门Id集合。 - * @return 所属的用户列表。 - */ - default Set getUsernameListByDeptIds(Set deptIdSet) { - return null; - } - - /** - * 根据岗位Id集合,查询所属的用户名列表。 - * - * @param postIdSet 岗位Id集合。 - * @return 所属的用户列表。 - */ - default Set getUsernameListByPostIds(Set postIdSet) { - return null; - } - - /** - * 根据部门岗位Id集合,查询所属的用户名列表。 - * - * @param deptPostIdSet 部门岗位Id集合。 - * @return 所属的用户列表。 - */ - default Set getUsernameListByDeptPostIds(Set deptPostIdSet) { - return null; - } - - /** - * 获取任务执行人是当前部门领导岗位的任务监听器。 - * 通常会在没有找到领导部门岗位Id的时候,为当前任务指定其他的指派人、候选人或候选组。 - * - * @return 任务监听器。 - */ - default Class getDeptPostLeaderListener() { - return DeptPostLeaderListener.class; - } - - /** - * 获取任务执行人是上级部门领导岗位的任务监听器。 - * 通常会在没有找到领导部门岗位Id的时候,为当前任务指定其他的指派人、候选人或候选组。 - * - * @return 任务监听器。 - */ - default Class getUpDeptPostLeaderListener() { - return UpDeptPostLeaderListener.class; - } -} diff --git a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/util/FlowCustomExtFactory.java b/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/util/FlowCustomExtFactory.java deleted file mode 100644 index 60c7e5ce..00000000 --- a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/util/FlowCustomExtFactory.java +++ /dev/null @@ -1,44 +0,0 @@ -package com.orangeforms.common.flow.util; - -import org.springframework.stereotype.Component; - -/** - * 工作流自定义扩展工厂类。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Component -public class FlowCustomExtFactory { - - private BaseFlowIdentityExtHelper flowIdentityExtHelper; - - private BaseDataSyncExtHelper dataSyncExtHelper = new BaseDataSyncExtHelper(); - - /** - * 获取业务模块自行实现的用户身份相关的扩展帮助实现类。 - * - * @return 业务模块自行实现的用户身份相关的扩展帮助实现类。 - */ - public BaseFlowIdentityExtHelper getFlowIdentityExtHelper() { - return flowIdentityExtHelper; - } - - /** - * 注册业务模块自行实现的用户身份扩展帮助实现类。 - * - * @param helper 业务模块自行实现的用户身份扩展帮助实现类。 - */ - public void registerFlowIdentityExtHelper(BaseFlowIdentityExtHelper helper) { - this.flowIdentityExtHelper = helper; - } - - /** - * 获取流程结束后数据同步的帮助实现类。 - * - * @return 流程结束后数据同步的帮助实现类。 - */ - public BaseDataSyncExtHelper getDataSyncExtHelper() { - return dataSyncExtHelper; - } -} diff --git a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/util/FlowOperationHelper.java b/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/util/FlowOperationHelper.java deleted file mode 100644 index a7633c29..00000000 --- a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/util/FlowOperationHelper.java +++ /dev/null @@ -1,349 +0,0 @@ -package com.orangeforms.common.flow.util; - -import cn.hutool.core.bean.BeanUtil; -import cn.hutool.core.collection.CollUtil; -import cn.hutool.core.util.StrUtil; -import com.alibaba.fastjson.JSON; -import com.alibaba.fastjson.JSONArray; -import com.alibaba.fastjson.JSONObject; -import com.orangeforms.common.core.constant.ErrorCodeEnum; -import com.orangeforms.common.core.object.CallResult; -import com.orangeforms.common.core.object.ResponseResult; -import com.orangeforms.common.core.object.TokenData; -import com.orangeforms.common.core.util.MyModelUtil; -import com.orangeforms.common.flow.constant.FlowApprovalType; -import com.orangeforms.common.flow.constant.FlowConstant; -import com.orangeforms.common.flow.constant.FlowTaskStatus; -import com.orangeforms.common.flow.dto.FlowTaskCommentDto; -import com.orangeforms.common.flow.dto.FlowWorkOrderDto; -import com.orangeforms.common.flow.model.FlowEntry; -import com.orangeforms.common.flow.model.FlowEntryPublish; -import com.orangeforms.common.flow.model.FlowWorkOrder; -import com.orangeforms.common.flow.model.constant.FlowEntryStatus; -import com.orangeforms.common.flow.service.FlowApiService; -import com.orangeforms.common.flow.service.FlowEntryService; -import com.orangeforms.common.flow.vo.FlowWorkOrderVo; -import com.orangeforms.common.flow.vo.TaskInfoVo; -import lombok.extern.slf4j.Slf4j; -import org.activiti.engine.history.HistoricProcessInstance; -import org.activiti.engine.history.HistoricTaskInstance; -import org.activiti.engine.task.Task; -import org.activiti.engine.task.TaskInfo; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Component; - -import java.util.List; -import java.util.Map; -import java.util.Set; -import java.util.function.Function; -import java.util.stream.Collectors; - -/** - * 工作流操作的通用帮助对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Slf4j -@Component -public class FlowOperationHelper { - - @Autowired - private FlowEntryService flowEntryService; - @Autowired - private FlowApiService flowApiService; - - /** - * 验证并获取流程对象。 - * - * @param processDefinitionKey 流程引擎的流程定义标识。 - * @return 流程对象。 - */ - public ResponseResult verifyAndGetFlowEntry(String processDefinitionKey) { - String errorMessage; - FlowEntry flowEntry = flowEntryService.getFlowEntryByProcessDefinitionKey(processDefinitionKey); - if (flowEntry == null) { - errorMessage = "数据验证失败,该流程并不存在,请刷新后重试!"; - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST, errorMessage); - } - if (!flowEntry.getStatus().equals(FlowEntryStatus.PUBLISHED)) { - errorMessage = "数据验证失败,该流程尚未发布,请刷新后重试!"; - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - FlowEntryPublish flowEntryPublish = - flowEntryService.getFlowEntryPublishById(flowEntry.getMainEntryPublishId()); - flowEntry.setMainFlowEntryPublish(flowEntryPublish); - return ResponseResult.success(flowEntry); - } - - /** - * 工作流静态表单的参数验证工具方法。根据流程定义标识,获取关联的流程并对其进行合法性验证。 - * - * @param processDefinitionKey 流程定义标识。 - * @return 返回流程对象。 - */ - public ResponseResult verifyFullAndGetFlowEntry(String processDefinitionKey) { - String errorMessage; - // 验证流程管理数据状态的合法性。 - ResponseResult flowEntryResult = this.verifyAndGetFlowEntry(processDefinitionKey); - if (!flowEntryResult.isSuccess()) { - return ResponseResult.errorFrom(flowEntryResult); - } - // 验证流程一个用户任务的合法性。 - FlowEntryPublish flowEntryPublish = flowEntryResult.getData().getMainFlowEntryPublish(); - if (!flowEntryPublish.getActiveStatus()) { - errorMessage = "数据验证失败,当前流程发布对象已被挂起,不能启动新流程!"; - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - ResponseResult taskInfoResult = - this.verifyAndGetInitialTaskInfo(flowEntryPublish, true); - if (!taskInfoResult.isSuccess()) { - return ResponseResult.errorFrom(taskInfoResult); - } - return flowEntryResult; - } - - /** - * 工作流静态表单的参数验证工具方法。根据参数验证并获取指定的流程任务对象。 - * - * @param processInstanceId 流程实例Id。 - * @param taskId 流程任务Id。 - * @param flowTaskComment 流程审批对象。 - * @return 验证后的流程任务对象。 - */ - public ResponseResult verifySubmitAndGetTask( - String processInstanceId, String taskId, FlowTaskCommentDto flowTaskComment) { - // 验证流程任务的合法性。 - Task task = flowApiService.getProcessInstanceActiveTask(processInstanceId, taskId); - ResponseResult taskInfoResult = this.verifyAndGetRuntimeTaskInfo(task); - if (!taskInfoResult.isSuccess()) { - return ResponseResult.errorFrom(taskInfoResult); - } - CallResult assigneeVerifyResult = flowApiService.verifyAssigneeOrCandidateAndClaim(task); - if (!assigneeVerifyResult.isSuccess()) { - return ResponseResult.errorFrom(assigneeVerifyResult); - } - if (StrUtil.isBlank(task.getBusinessKey())) { - return ResponseResult.success(task); - } - String errorMessage; - if (flowTaskComment != null && StrUtil.equals(flowTaskComment.getApprovalType(), FlowApprovalType.TRANSFER)) { - if (StrUtil.isBlank(flowTaskComment.getDelegateAssginee())) { - errorMessage = "数据验证失败,加签或转办任务指派人不能为空!!"; - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - } - return ResponseResult.success(task); - } - - /** - * 工作流静态表单的参数验证工具方法。根据参数验证并获取指定的历史流程实例对象。 - * 仅当登录用户为任务的分配人时,才能通过验证。 - * - * @param processInstanceId 历史流程实例Id。 - * @param taskId 历史流程任务Id。 - * @return 验证后并返回的历史流程实例对象。 - */ - public ResponseResult verifyAndHistoricProcessInstance(String processInstanceId, String taskId) { - String errorMessage; - // 验证流程实例的合法性。 - HistoricProcessInstance instance = flowApiService.getHistoricProcessInstance(processInstanceId); - if (instance == null) { - errorMessage = "数据验证失败,指定的流程实例Id并不存在,请刷新后重试!"; - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - String loginName = TokenData.takeFromRequest().getLoginName(); - if (StrUtil.isBlank(taskId)) { - if (!StrUtil.equals(loginName, instance.getStartUserId())) { - errorMessage = "数据验证失败,指定历史流程的发起人与当前用户不匹配!"; - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - } else { - HistoricTaskInstance taskInstance = flowApiService.getHistoricTaskInstance(processInstanceId, taskId); - if (taskInstance == null) { - errorMessage = "数据验证失败,指定的任务Id并不存在,请刷新后重试!"; - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - if (!StrUtil.equals(loginName, taskInstance.getAssignee())) { - errorMessage = "数据验证失败,历史任务的指派人与当前用户不匹配!"; - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - } - return ResponseResult.success(instance); - } - - /** - * 验证并获取流程的实时任务信息。 - * - * @param task 流程引擎的任务对象。 - * @return 任务信息对象。 - */ - public ResponseResult verifyAndGetRuntimeTaskInfo(Task task) { - String errorMessage; - if (task == null) { - errorMessage = "数据验证失败,指定的任务Id,请刷新后重试!"; - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - if (!flowApiService.isAssigneeOrCandidate(task)) { - errorMessage = "数据验证失败,当前用户不是指派人也不是候选人之一!"; - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - if (StrUtil.isBlank(task.getFormKey())) { - errorMessage = "数据验证失败,指定任务的formKey属性不存在,请重新修改流程图!"; - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - TaskInfoVo taskInfo = JSON.parseObject(task.getFormKey(), TaskInfoVo.class); - taskInfo.setTaskKey(task.getTaskDefinitionKey()); - return ResponseResult.success(taskInfo); - } - - /** - * 验证并获取启动任务的对象信息。 - * - * @param flowEntryPublish 流程发布对象。 - * @param checkStarter 是否检查发起用户。 - * @return 第一个可执行的任务信息。 - */ - public ResponseResult verifyAndGetInitialTaskInfo( - FlowEntryPublish flowEntryPublish, boolean checkStarter) { - String errorMessage; - if (StrUtil.isBlank(flowEntryPublish.getInitTaskInfo())) { - errorMessage = "数据验证失败,当前流程发布的数据中,没有包含初始任务信息!"; - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - TaskInfoVo taskInfo = JSON.parseObject(flowEntryPublish.getInitTaskInfo(), TaskInfoVo.class); - if (checkStarter) { - String loginName = TokenData.takeFromRequest().getLoginName(); - if (!StrUtil.equalsAny(taskInfo.getAssignee(), loginName, FlowConstant.START_USER_NAME_VAR)) { - errorMessage = "数据验证失败,该工作流第一个用户任务的指派人并非当前用户,不能执行该操作!"; - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - } - return ResponseResult.success(taskInfo); - } - - /** - * 判断当前用户是否有当前流程实例的数据上传或下载权限。 - * 如果taskId为空,则验证当前用户是否为当前流程实例的发起人,否则判断是否为当前任务的指派人或候选人。 - * - * @param processInstanceId 流程实例Id。 - * @param taskId 流程任务Id。 - * @return 验证结果。 - */ - public ResponseResult verifyUploadOrDownloadPermission(String processInstanceId, String taskId) { - String errorMessage; - if (StrUtil.isBlank(taskId)) { - if (!flowApiService.isProcessInstanceStarter(processInstanceId)) { - errorMessage = "数据验证失败,当前用户并非指派人或候选人,因此没有权限下载!"; - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST, errorMessage); - } - } else { - TaskInfo task = flowApiService.getProcessInstanceActiveTask(processInstanceId, taskId); - if (task == null) { - task = flowApiService.getHistoricTaskInstance(processInstanceId, taskId); - if (task == null) { - errorMessage = "数据验证失败,指定任务Id不存在!"; - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST, errorMessage); - } - } - if (!flowApiService.isAssigneeOrCandidate(task)) { - errorMessage = "数据验证失败,当前用户并非指派人或候选人,因此没有权限下载!"; - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST, errorMessage); - } - } - return ResponseResult.success(); - } - - /** - * 根据已有的过滤对象,补充添加缺省过滤条件。如流程标识、创建用户等。 - * - * @param filterDto 工单过滤对象。 - * @param processDefinitionKey 流程标识。 - * @return 创建并转换后的流程工单过滤对象。 - */ - public FlowWorkOrder makeWorkOrderFilter(FlowWorkOrderDto filterDto, String processDefinitionKey) { - FlowWorkOrder filter = MyModelUtil.copyTo(filterDto, FlowWorkOrder.class); - if (filter == null) { - filter = new FlowWorkOrder(); - } - filter.setProcessDefinitionKey(processDefinitionKey); - filter.setCreateUserId(TokenData.takeFromRequest().getUserId()); - return filter; - } - - /** - * 组装工作流工单列表中的流程任务数据。 - * - * @param flowWorkOrderVoList 工作流工单列表。 - */ - public void buildWorkOrderTaskInfo(List flowWorkOrderVoList) { - if (CollUtil.isEmpty(flowWorkOrderVoList)) { - return; - } - Set definitionIdSet = - flowWorkOrderVoList.stream().map(FlowWorkOrderVo::getProcessDefinitionId).collect(Collectors.toSet()); - List flowEntryPublishList = flowEntryService.getFlowEntryPublishList(definitionIdSet); - Map flowEntryPublishMap = - flowEntryPublishList.stream().collect(Collectors.toMap(FlowEntryPublish::getProcessDefinitionId, c -> c)); - for (FlowWorkOrderVo flowWorkOrderVo : flowWorkOrderVoList) { - FlowEntryPublish flowEntryPublish = flowEntryPublishMap.get(flowWorkOrderVo.getProcessDefinitionId()); - flowWorkOrderVo.setInitTaskInfo(flowEntryPublish.getInitTaskInfo()); - } - List unfinishedProcessInstanceIds = flowWorkOrderVoList.stream() - .filter(c -> !c.getFlowStatus().equals(FlowTaskStatus.FINISHED)) - .map(FlowWorkOrderVo::getProcessInstanceId) - .collect(Collectors.toList()); - if (CollUtil.isEmpty(unfinishedProcessInstanceIds)) { - return; - } - List taskList = flowApiService.getTaskListByProcessInstanceIds(unfinishedProcessInstanceIds); - Map> taskMap = - taskList.stream().collect(Collectors.groupingBy(Task::getProcessInstanceId)); - for (FlowWorkOrderVo flowWorkOrderVo : flowWorkOrderVoList) { - List instanceTaskList = taskMap.get(flowWorkOrderVo.getProcessInstanceId()); - if (instanceTaskList == null) { - continue; - } - JSONArray taskArray = new JSONArray(); - for (Task task : instanceTaskList) { - JSONObject jsonObject = new JSONObject(); - jsonObject.put("taskId", task.getId()); - jsonObject.put("taskName", task.getName()); - jsonObject.put("taskKey", task.getTaskDefinitionKey()); - jsonObject.put("assignee", task.getAssignee()); - taskArray.add(jsonObject); - } - flowWorkOrderVo.setRuntimeTaskInfoList(taskArray); - } - } - - /** - * 组装工作流工单中的业务数据。 - * - * @param workOrderVoList 工单列表。 - * @param dataList 业务数据列表。 - * @param idGetter 获取业务对象主键字段的返回方法。 - * @param 业务主对象类型。 - * @param 业务主对象的主键字段类型。 - */ - public void buildWorkOrderBusinessData( - List workOrderVoList, List dataList, Function idGetter) { - if (CollUtil.isEmpty(dataList)) { - return; - } - Map dataMap = dataList.stream().collect(Collectors.toMap(idGetter, c -> c)); - K id = idGetter.apply(dataList.get(0)); - for (FlowWorkOrderVo flowWorkOrderVo : workOrderVoList) { - Object dataId = flowWorkOrderVo.getBusinessKey(); - if (id instanceof Long) { - dataId = Long.valueOf(flowWorkOrderVo.getBusinessKey()); - } else if (id instanceof Integer) { - dataId = Integer.valueOf(flowWorkOrderVo.getBusinessKey()); - } - T data = dataMap.get(dataId); - if (data != null) { - flowWorkOrderVo.setMasterData(BeanUtil.beanToMap(data)); - } - } - } -} diff --git a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/vo/FlowCategoryVo.java b/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/vo/FlowCategoryVo.java deleted file mode 100644 index 80e18d00..00000000 --- a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/vo/FlowCategoryVo.java +++ /dev/null @@ -1,66 +0,0 @@ -package com.orangeforms.common.flow.vo; - -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.Data; - -import java.util.Date; - -/** - * 流程分类的Vo对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@ApiModel("流程分类的Vo对象") -@Data -public class FlowCategoryVo { - - /** - * 主键Id。 - */ - @ApiModelProperty(value = "主键Id") - private Long categoryId; - - /** - * 显示名称。 - */ - @ApiModelProperty(value = "显示名称") - private String name; - - /** - * 分类编码。 - */ - @ApiModelProperty(value = "分类编码") - private String code; - - /** - * 实现顺序。 - */ - @ApiModelProperty(value = "实现顺序") - private Integer showOrder; - - /** - * 更新时间。 - */ - @ApiModelProperty(value = "更新时间") - private Date updateTime; - - /** - * 更新者Id。 - */ - @ApiModelProperty(value = "更新者Id") - private Long updateUserId; - - /** - * 创建时间。 - */ - @ApiModelProperty(value = "创建时间") - private Date createTime; - - /** - * 创建者Id。 - */ - @ApiModelProperty(value = "创建者Id") - private Long createUserId; -} diff --git a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/vo/FlowEntryPublishVo.java b/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/vo/FlowEntryPublishVo.java deleted file mode 100644 index 09500797..00000000 --- a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/vo/FlowEntryPublishVo.java +++ /dev/null @@ -1,60 +0,0 @@ -package com.orangeforms.common.flow.vo; - -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.Data; - -import java.util.Date; - -/** - * 流程发布信息的Vo对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@ApiModel("流程发布信息的Vo对象") -@Data -public class FlowEntryPublishVo { - - /** - * 主键Id。 - */ - @ApiModelProperty(value = "主键Id") - private Long entryPublishId; - - /** - * 发布版本。 - */ - @ApiModelProperty(value = "发布版本") - private Integer publishVersion; - - /** - * 流程引擎中的流程定义Id。 - */ - @ApiModelProperty(value = "流程引擎中的流程定义Id") - private String processDefinitionId; - - /** - * 激活状态。 - */ - @ApiModelProperty(value = "激活状态") - private Boolean activeStatus; - - /** - * 是否为主版本。 - */ - @ApiModelProperty(value = "是否为主版本") - private Boolean mainVersion; - - /** - * 创建者Id。 - */ - @ApiModelProperty(value = "创建者Id") - private Long createUserId; - - /** - * 发布时间。 - */ - @ApiModelProperty(value = "发布时间") - private Date publishTime; -} diff --git a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/vo/FlowEntryVariableVo.java b/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/vo/FlowEntryVariableVo.java deleted file mode 100644 index 8d262e19..00000000 --- a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/vo/FlowEntryVariableVo.java +++ /dev/null @@ -1,78 +0,0 @@ -package com.orangeforms.common.flow.vo; - -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.Data; - -import java.util.Date; - -/** - * 流程变量Vo对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@ApiModel("流程变量Vo对象") -@Data -public class FlowEntryVariableVo { - - /** - * 主键Id。 - */ - @ApiModelProperty(value = "主键Id") - private Long variableId; - - /** - * 流程Id。 - */ - @ApiModelProperty(value = "流程Id") - private Long entryId; - - /** - * 变量名。 - */ - @ApiModelProperty(value = "变量名") - private String variableName; - - /** - * 显示名。 - */ - @ApiModelProperty(value = "显示名") - private String showName; - - /** - * 变量类型。 - */ - @ApiModelProperty(value = "变量类型") - private Integer variableType; - - /** - * 绑定数据源Id。 - */ - @ApiModelProperty(value = "绑定数据源Id") - private Long bindDatasourceId; - - /** - * 绑定数据源关联Id。 - */ - @ApiModelProperty(value = "绑定数据源关联Id") - private Long bindRelationId; - - /** - * 绑定字段Id。 - */ - @ApiModelProperty(value = "绑定字段Id") - private Long bindColumnId; - - /** - * 是否内置。 - */ - @ApiModelProperty(value = "是否内置") - private Boolean builtin; - - /** - * 创建时间。 - */ - @ApiModelProperty(value = "创建时间") - private Date createTime; -} diff --git a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/vo/FlowEntryVo.java b/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/vo/FlowEntryVo.java deleted file mode 100644 index 9077796c..00000000 --- a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/vo/FlowEntryVo.java +++ /dev/null @@ -1,134 +0,0 @@ -package com.orangeforms.common.flow.vo; - -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.Data; - -import java.util.Date; -import java.util.List; -import java.util.Map; - -/** - * 流程的Vo对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@ApiModel("流程的Vo对象") -@Data -public class FlowEntryVo { - - /** - * 主键Id。 - */ - @ApiModelProperty(value = "主键Id") - private Long entryId; - - /** - * 流程名称。 - */ - @ApiModelProperty(value = "流程名称") - private String processDefinitionName; - - /** - * 流程标识Key。 - */ - @ApiModelProperty(value = "流程标识Key") - private String processDefinitionKey; - - /** - * 流程分类。 - */ - @ApiModelProperty(value = "流程分类") - private Long categoryId; - - /** - * 工作流部署的发布主版本Id。 - */ - @ApiModelProperty(value = "工作流部署的发布主版本Id") - private Long mainEntryPublishId; - - /** - * 最新发布时间。 - */ - @ApiModelProperty(value = "最新发布时间") - private Date lastestPublishTime; - - /** - * 流程状态。 - */ - @ApiModelProperty(value = "流程状态") - private Integer status; - - /** - * 流程定义的xml。 - */ - @ApiModelProperty(value = "流程定义的xml") - private String bpmnXml; - - /** - * 绑定表单类型。 - */ - @ApiModelProperty(value = "绑定表单类型") - private Integer bindFormType; - - /** - * 在线表单的页面Id。 - */ - @ApiModelProperty(value = "在线表单的页面Id") - private Long pageId; - - /** - * 在线表单Id。 - */ - @ApiModelProperty(value = "在线表单Id") - private Long defaultFormId; - - /** - * 在线表单的缺省路由名称。 - */ - @ApiModelProperty(value = "在线表单的缺省路由名称") - private String defaultRouterName; - - /** - * 更新时间。 - */ - @ApiModelProperty(value = "更新时间") - private Date updateTime; - - /** - * 更新者Id。 - */ - @ApiModelProperty(value = "更新者Id") - private Long updateUserId; - - /** - * 创建时间。 - */ - @ApiModelProperty(value = "创建时间") - private Date createTime; - - /** - * 创建者Id。 - */ - @ApiModelProperty(value = "创建者Id") - private Long createUserId; - - /** - * categoryId 的一对一关联数据对象,数据对应类型为FlowCategoryVo。 - */ - @ApiModelProperty(value = "categoryId 的一对一关联数据对象") - private Map flowCategory; - - /** - * mainEntryPublishId 的一对一关联数据对象,数据对应类型为FlowEntryPublishVo。 - */ - @ApiModelProperty(value = "mainEntryPublishId 的一对一关联数据对象") - private Map mainFlowEntryPublish; - - /** - * 关联的在线表单列表。 - */ - @ApiModelProperty(value = "关联的在线表单列表") - private List> formList; -} diff --git a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/vo/FlowMessageVo.java b/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/vo/FlowMessageVo.java deleted file mode 100644 index efc3ac47..00000000 --- a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/vo/FlowMessageVo.java +++ /dev/null @@ -1,138 +0,0 @@ -package com.orangeforms.common.flow.vo; - -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.Data; - -import java.util.Date; - -/** - * 工作流通知消息Vo对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@ApiModel("工作流通知消息Vo对象") -@Data -public class FlowMessageVo { - - /** - * 主键Id。 - */ - @ApiModelProperty(value = "主键Id") - private Long messageId; - - /** - * 消息类型。 - */ - @ApiModelProperty(value = "消息类型") - private Integer messageType; - - /** - * 消息内容。 - */ - @ApiModelProperty(value = "消息内容") - private String messageContent; - - /** - * 催办次数。 - */ - @ApiModelProperty(value = "催办次数") - private Integer remindCount; - - /** - * 工单Id。 - */ - @ApiModelProperty(value = "工单Id") - private Long workOrderId; - - /** - * 流程定义Id。 - */ - @ApiModelProperty(value = "流程定义Id") - private String processDefinitionId; - - /** - * 流程定义标识。 - */ - @ApiModelProperty(value = "流程定义标识") - private String processDefinitionKey; - - /** - * 流程名称。 - */ - @ApiModelProperty(value = "流程名称") - private String processDefinitionName; - - /** - * 流程实例Id。 - */ - @ApiModelProperty(value = "流程实例Id") - private String processInstanceId; - - /** - * 流程实例发起者。 - */ - @ApiModelProperty(value = "流程实例发起者") - private String processInstanceInitiator; - - /** - * 流程任务Id。 - */ - @ApiModelProperty(value = "流程任务Id") - private String taskId; - - /** - * 流程任务定义标识。 - */ - @ApiModelProperty(value = "流程任务定义标识") - private String taskDefinitionKey; - - /** - * 流程任务名称。 - */ - @ApiModelProperty(value = "流程任务名称") - private String taskName; - - /** - * 创建时间。 - */ - @ApiModelProperty(value = "创建时间") - private Date taskStartTime; - - /** - * 业务数据快照。 - */ - @ApiModelProperty(value = "业务数据快照") - private String businessDataShot; - - /** - * 更新时间。 - */ - @ApiModelProperty(value = "更新时间") - private Date updateTime; - - /** - * 更新者Id。 - */ - @ApiModelProperty(value = "更新者Id") - private Long updateUserId; - - /** - * 创建时间。 - */ - @ApiModelProperty(value = "创建时间") - private Date createTime; - - /** - * 创建者Id。 - */ - @ApiModelProperty(value = "创建者Id") - private Long createUserId; - - /** - * 创建者显示名。 - */ - @ApiModelProperty(value = "创建者显示名") - private String createUsername; -} diff --git a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/vo/FlowTaskCommentVo.java b/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/vo/FlowTaskCommentVo.java deleted file mode 100644 index 0969e2a5..00000000 --- a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/vo/FlowTaskCommentVo.java +++ /dev/null @@ -1,84 +0,0 @@ -package com.orangeforms.common.flow.vo; - -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.Data; - -import java.util.Date; - -/** - * FlowTaskCommentVO对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@ApiModel("FlowTaskCommentVO对象") -@Data -public class FlowTaskCommentVo { - - /** - * 主键Id。 - */ - @ApiModelProperty(value = "主键Id") - private Long id; - - /** - * 流程实例Id。 - */ - @ApiModelProperty(value = "流程实例Id") - private String processInstanceId; - - /** - * 任务Id。 - */ - @ApiModelProperty(value = "任务Id") - private String taskId; - - /** - * 任务标识。 - */ - @ApiModelProperty(value = "任务标识") - private String taskKey; - - /** - * 任务名称。 - */ - @ApiModelProperty(value = "任务名称") - private String taskName; - - /** - * 审批类型。 - */ - @ApiModelProperty(value = "审批类型") - private String approvalType; - - /** - * 批注内容。 - */ - @ApiModelProperty(value = "批注内容") - private String comment; - - /** - * 委托指定人,比如加签、转办等。 - */ - @ApiModelProperty(value = "委托指定人,比如加签、转办等") - private String delegateAssginee; - - /** - * 创建者Id。 - */ - @ApiModelProperty(value = "创建者Id") - private Long createUserId; - - /** - * 创建者显示名。 - */ - @ApiModelProperty(value = "创建者显示名") - private String createUsername; - - /** - * 创建时间。 - */ - @ApiModelProperty(value = "创建时间") - private Date createTime; -} diff --git a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/vo/FlowTaskVo.java b/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/vo/FlowTaskVo.java deleted file mode 100644 index 8a7f1c6b..00000000 --- a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/vo/FlowTaskVo.java +++ /dev/null @@ -1,96 +0,0 @@ -package com.orangeforms.common.flow.vo; - -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.Data; - -import java.util.Date; - -/** - * 流程任务Vo对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@ApiModel("流程任务Vo对象") -@Data -public class FlowTaskVo { - - /** - * 流程任务Id。 - */ - @ApiModelProperty(value = "流程任务Id") - private String taskId; - - /** - * 流程任务名称。 - */ - @ApiModelProperty(value = "流程任务名称") - private String taskName; - - /** - * 流程任务标识。 - */ - @ApiModelProperty(value = "流程任务标识") - private String taskKey; - - /** - * 任务的表单信息。 - */ - @ApiModelProperty(value = "任务的表单信息") - private String taskFormKey; - - /** - * 流程Id。 - */ - @ApiModelProperty(value = "流程Id") - private Long entryId; - - /** - * 流程定义Id。 - */ - @ApiModelProperty(value = "流程定义Id") - private String processDefinitionId; - - /** - * 流程定义名称。 - */ - @ApiModelProperty(value = "流程定义名称") - private String processDefinitionName; - - /** - * 流程定义标识。 - */ - @ApiModelProperty(value = "流程定义标识") - private String processDefinitionKey; - - /** - * 流程定义版本。 - */ - @ApiModelProperty(value = "流程定义版本") - private Integer processDefinitionVersion; - - /** - * 流程实例Id。 - */ - @ApiModelProperty(value = "流程实例Id") - private String processInstanceId; - - /** - * 流程实例发起人。 - */ - @ApiModelProperty(value = "流程实例发起人") - private String processInstanceInitiator; - - /** - * 流程实例创建时间。 - */ - @ApiModelProperty(value = "流程实例创建时间") - private Date processInstanceStartTime; - - /** - * 流程实例主表业务数据主键。 - */ - @ApiModelProperty(value = "流程实例主表业务数据主键") - private String businessKey; -} diff --git a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/vo/FlowWorkOrderVo.java b/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/vo/FlowWorkOrderVo.java deleted file mode 100644 index 41ca9b5c..00000000 --- a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/vo/FlowWorkOrderVo.java +++ /dev/null @@ -1,129 +0,0 @@ -package com.orangeforms.common.flow.vo; - -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import com.alibaba.fastjson.JSONArray; -import lombok.Data; - -import java.util.Date; -import java.util.Map; - -/** - * 工作流工单VO对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@ApiModel("工作流工单Vo对象") -@Data -public class FlowWorkOrderVo { - - /** - * 主键Id。 - */ - @ApiModelProperty(value = "主键Id") - private Long workOrderId; - - /** - * 流程定义标识。 - */ - @ApiModelProperty(value = "流程定义标识") - private String processDefinitionKey; - - /** - * 流程名称。 - */ - @ApiModelProperty(value = "流程名称") - private String processDefinitionName; - - /** - * 流程引擎的定义Id。 - */ - @ApiModelProperty(value = "流程引擎的定义Id") - private String processDefinitionId; - - /** - * 流程实例Id。 - */ - @ApiModelProperty(value = "流程实例Id") - private String processInstanceId; - - /** - * 在线表单的主表Id。 - */ - @ApiModelProperty(value = "在线表单的主表Id") - private Long onlineTableId; - - /** - * 业务主键值。 - */ - @ApiModelProperty(value = "业务主键值") - private String businessKey; - - /** - * 流程状态。参考FlowTaskStatus常量值对象。 - */ - @ApiModelProperty(value = "流程状态") - private Integer flowStatus; - - /** - * 提交用户登录名称。 - */ - @ApiModelProperty(value = "提交用户登录名称") - private String submitUsername; - - /** - * 提交用户所在部门Id。 - */ - @ApiModelProperty(value = "提交用户所在部门Id") - private Long deptId; - - /** - * 更新时间。 - */ - @ApiModelProperty(value = "更新时间") - private Date updateTime; - - /** - * 更新者Id。 - */ - @ApiModelProperty(value = "更新者Id") - private Long updateUserId; - - /** - * 创建时间。 - */ - @ApiModelProperty(value = "创建时间") - private Date createTime; - - /** - * 创建者Id。 - */ - @ApiModelProperty(value = "创建者Id") - private Long createUserId; - - /** - * flowStatus 常量字典关联数据。 - */ - @ApiModelProperty(value = "flowStatus 常量字典关联数据") - private Map flowStatusDictMap; - - /** - * FlowEntryPublish对象中的同名字段。 - */ - @ApiModelProperty(value = "FlowEntryPublish对象中的同名字段") - private String initTaskInfo; - - /** - * 当前实例的运行时任务列表。 - * 正常情况下只有一个,在并行网关下可能存在多个。 - */ - @ApiModelProperty(value = "实例的运行时任务列表") - private JSONArray runtimeTaskInfoList; - - /** - * 业务主表数据。 - */ - @ApiModelProperty(value = "业务主表数据") - private Map masterData; -} diff --git a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/vo/TaskInfoVo.java b/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/vo/TaskInfoVo.java deleted file mode 100644 index 02eac4ab..00000000 --- a/images/orange-demo-activiti-service/common/common-flow/src/main/java/com/orangeforms/common/flow/vo/TaskInfoVo.java +++ /dev/null @@ -1,80 +0,0 @@ -package com.orangeforms.common.flow.vo; - -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import com.alibaba.fastjson.JSONObject; -import lombok.Data; - -import java.util.List; - -/** - * 流程任务信息Vo对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@ApiModel("流程任务信息Vo对象") -@Data -public class TaskInfoVo { - - /** - * 流程节点任务类型。具体值可参考FlowTaskType常量值。 - */ - @ApiModelProperty(value = "流程节点任务类型") - private Integer taskType; - - /** - * 指定人。 - */ - @ApiModelProperty(value = "指定人") - private String assignee; - - /** - * 任务标识。 - */ - @ApiModelProperty(value = "任务标识") - private String taskKey; - - /** - * 是否分配给当前登录用户的标记。 - * 当该值为true时,登录用户启动流程时,就自动完成了第一个用户任务。 - */ - @ApiModelProperty(value = "是否分配给当前登录用户的标记") - private Boolean assignedMe; - - /** - * 动态表单Id。 - */ - @ApiModelProperty(value = "动态表单Id") - private Long formId; - - /** - * 静态表单路由。 - */ - @ApiModelProperty(value = "静态表单路由") - private String routerName; - - /** - * 候选组类型。 - */ - @ApiModelProperty(value = "候选组类型") - private String groupType; - - /** - * 只读标记。 - */ - @ApiModelProperty(value = "只读标记") - private Boolean readOnly; - - /** - * 前端所需的操作列表。 - */ - @ApiModelProperty(value = "前端所需的操作列表") - List operationList; - - /** - * 任务节点的自定义变量列表。 - */ - @ApiModelProperty(value = "任务节点的自定义变量列表") - List variableList; -} diff --git a/images/orange-demo-activiti-service/common/common-flow/src/main/resources/META-INF/spring.factories b/images/orange-demo-activiti-service/common/common-flow/src/main/resources/META-INF/spring.factories deleted file mode 100644 index 6d14614a..00000000 --- a/images/orange-demo-activiti-service/common/common-flow/src/main/resources/META-INF/spring.factories +++ /dev/null @@ -1,2 +0,0 @@ -org.springframework.boot.autoconfigure.EnableAutoConfiguration=\ -com.orangeforms.common.flow.config.FlowAutoConfig \ No newline at end of file diff --git a/images/orange-demo-activiti-service/common/common-log/pom.xml b/images/orange-demo-activiti-service/common/common-log/pom.xml deleted file mode 100644 index d5b6e39b..00000000 --- a/images/orange-demo-activiti-service/common/common-log/pom.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - common - com.orangeforms - 1.0.0 - - 4.0.0 - - common-log - 1.0.0 - common-log - jar - - - - com.orangeforms - common-sequence - 1.0.0 - - - - - - - src/main/resources - - **/*.* - - false - - - src/main/java - - **/*.xml - - false - - - - \ No newline at end of file diff --git a/images/orange-demo-activiti-service/common/common-log/src/main/java/com/orangeforms/common/log/annotation/OperationLog.java b/images/orange-demo-activiti-service/common/common-log/src/main/java/com/orangeforms/common/log/annotation/OperationLog.java deleted file mode 100644 index b576e528..00000000 --- a/images/orange-demo-activiti-service/common/common-log/src/main/java/com/orangeforms/common/log/annotation/OperationLog.java +++ /dev/null @@ -1,33 +0,0 @@ -package com.orangeforms.common.log.annotation; - -import com.orangeforms.common.log.model.constant.SysOperationLogType; - -import java.lang.annotation.*; - -/** - * 操作日志记录注解。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Target({ElementType.METHOD}) -@Retention(RetentionPolicy.RUNTIME) -@Documented -public @interface OperationLog { - - /** - * 描述。 - */ - String description() default ""; - - /** - * 操作类型。 - */ - int type() default SysOperationLogType.OTHER; - - /** - * 是否保存应答结果。 - * 对于类似导出和文件下载之类的接口,该参与应该设置为false。 - */ - boolean saveResponse() default true; -} diff --git a/images/orange-demo-activiti-service/common/common-log/src/main/java/com/orangeforms/common/log/aop/OperationLogAspect.java b/images/orange-demo-activiti-service/common/common-log/src/main/java/com/orangeforms/common/log/aop/OperationLogAspect.java deleted file mode 100644 index 9e7a5bfb..00000000 --- a/images/orange-demo-activiti-service/common/common-log/src/main/java/com/orangeforms/common/log/aop/OperationLogAspect.java +++ /dev/null @@ -1,260 +0,0 @@ -package com.orangeforms.common.log.aop; - -import cn.hutool.core.collection.CollUtil; -import com.alibaba.fastjson.JSON; -import com.alibaba.fastjson.JSONObject; -import com.orangeforms.common.core.constant.ApplicationConstant; -import com.orangeforms.common.core.object.ResponseResult; -import com.orangeforms.common.core.object.TokenData; -import com.orangeforms.common.core.util.ContextUtil; -import com.orangeforms.common.core.util.IpUtil; -import com.orangeforms.common.core.util.MyCommonUtil; -import com.orangeforms.common.log.annotation.OperationLog; -import com.orangeforms.common.log.config.OperationLogProperties; -import com.orangeforms.common.log.model.SysOperationLog; -import com.orangeforms.common.log.model.constant.SysOperationLogType; -import com.orangeforms.common.log.service.SysOperationLogService; -import com.orangeforms.common.sequence.wrapper.IdGeneratorWrapper; -import lombok.extern.slf4j.Slf4j; -import org.apache.commons.lang3.StringUtils; -import org.aspectj.lang.JoinPoint; -import org.aspectj.lang.ProceedingJoinPoint; -import org.aspectj.lang.Signature; -import org.aspectj.lang.annotation.*; -import org.aspectj.lang.reflect.MethodSignature; -import org.slf4j.MDC; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.beans.factory.annotation.Value; -import org.springframework.core.annotation.Order; -import org.springframework.stereotype.Component; -import org.springframework.web.multipart.MultipartFile; - -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import java.lang.reflect.Method; -import java.util.*; - -/** - * 操作日志记录处理AOP对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Aspect -@Component -@Order(1) -@Slf4j -public class OperationLogAspect { - - @Value("${spring.application.name}") - private String serviceName; - @Autowired - private SysOperationLogService operationLogService; - @Autowired - private OperationLogProperties properties; - @Autowired - private IdGeneratorWrapper idGenerator; - - /** - * 错误信息、请求参数和应答结果字符串的最大长度。 - */ - private final static int MAX_LENGTH = 2000; - - /** - * 所有controller方法。 - */ - @Pointcut("execution(public * com.orangeforms..controller..*(..))") - public void operationLogPointCut() { - // 空注释,避免sonar警告 - } - - @Around("operationLogPointCut()") - public Object around(ProceedingJoinPoint joinPoint) throws Throwable { - // 计时。 - long start = System.currentTimeMillis(); - HttpServletRequest request = ContextUtil.getHttpRequest(); - HttpServletResponse response = ContextUtil.getHttpResponse(); - String traceId = this.getTraceId(request); - request.setAttribute(ApplicationConstant.HTTP_HEADER_TRACE_ID, traceId); - // 将流水号通过应答头返回给前端,便于问题精确定位。 - response.setHeader(ApplicationConstant.HTTP_HEADER_TRACE_ID, traceId); - MDC.put(ApplicationConstant.HTTP_HEADER_TRACE_ID, traceId); - TokenData tokenData = TokenData.takeFromRequest(); - // 为日志框架设定变量,使日志可以输出更多有价值的信息。 - if (tokenData != null) { - MDC.put("sessionId", tokenData.getSessionId()); - MDC.put("userId", tokenData.getUserId().toString()); - } - String[] parameterNames = this.getParameterNames(joinPoint); - Object[] args = joinPoint.getArgs(); - JSONObject jsonArgs = new JSONObject(); - for (int i = 0; i < args.length; i++) { - Object arg = args[i]; - if (this.isNormalArgs(arg)) { - String parameterName = parameterNames[i]; - jsonArgs.put(parameterName, arg); - } - } - String params = jsonArgs.toJSONString(); - SysOperationLog operationLog = null; - OperationLog operationLogAnnotation = null; - boolean saveOperationLog = properties.isEnabled(); - if (saveOperationLog) { - operationLogAnnotation = getOperationLogAnnotation(joinPoint); - saveOperationLog = (operationLogAnnotation != null); - } - if (saveOperationLog) { - operationLog = this.buildSysOperationLog(operationLogAnnotation, joinPoint, params, traceId, tokenData); - } - Object result; - log.info("开始请求,url={}, reqData={}", request.getRequestURI(), params); - try { - // 调用原来的方法 - result = joinPoint.proceed(); - String respData = result == null ? "null" : JSON.toJSONString(result); - Long elapse = System.currentTimeMillis() - start; - if (saveOperationLog) { - this.operationLogPostProcess(operationLogAnnotation, respData, operationLog, result); - } - if (elapse > properties.getSlowLogMs()) { - log.warn("耗时较长的请求完成警告, url={},elapse={}ms reqData={} respData={}", - request.getRequestURI(), elapse, params, respData); - } - log.info("请求完成, url={},elapse={}ms, respData={}", request.getRequestURI(), elapse, respData); - } catch (Exception e) { - if (saveOperationLog) { - operationLog.setSuccess(false); - operationLog.setErrorMsg(StringUtils.substring(e.getMessage(), 0, MAX_LENGTH)); - } - log.error("请求报错,url={}, reqData={}, error={}", request.getRequestURI(), params, e.getMessage()); - throw e; - } finally { - if (saveOperationLog) { - operationLog.setElapse(System.currentTimeMillis() - start); - operationLogService.saveNewAsync(operationLog); - } - MDC.remove(ApplicationConstant.HTTP_HEADER_TRACE_ID); - if (tokenData != null) { - MDC.remove("sessionId"); - MDC.remove("userId"); - } - } - return result; - } - - private SysOperationLog buildSysOperationLog( - OperationLog operationLogAnnotation, - ProceedingJoinPoint joinPoint, - String params, - String traceId, - TokenData tokenData) { - HttpServletRequest request = ContextUtil.getHttpRequest(); - SysOperationLog operationLog = new SysOperationLog(); - operationLog.setLogId(idGenerator.nextLongId()); - operationLog.setTraceId(traceId); - operationLog.setDescription(operationLogAnnotation.description()); - operationLog.setOperationType(operationLogAnnotation.type()); - operationLog.setServiceName(this.serviceName); - operationLog.setApiClass(joinPoint.getTarget().getClass().getName()); - operationLog.setApiMethod(operationLog.getApiClass() + "." + joinPoint.getSignature().getName()); - operationLog.setRequestMethod(request.getMethod()); - operationLog.setRequestUrl(request.getRequestURI()); - if (tokenData != null) { - operationLog.setRequestIp(tokenData.getLoginIp()); - } else { - operationLog.setRequestIp(IpUtil.getRemoteIpAddress(request)); - } - operationLog.setOperationTime(new Date()); - if (params != null) { - if (params.length() <= MAX_LENGTH) { - operationLog.setRequestArguments(params); - } else { - operationLog.setRequestArguments(StringUtils.substring(params, 0, MAX_LENGTH)); - } - } - if (tokenData != null) { - // 对于非多租户系统,该值为空可以忽略。 - operationLog.setTenantId(tokenData.getTenantId()); - operationLog.setSessionId(tokenData.getSessionId()); - operationLog.setOperatorId(tokenData.getUserId()); - operationLog.setOperatorName(tokenData.getLoginName()); - } - return operationLog; - } - - private void operationLogPostProcess( - OperationLog operationLogAnnotation, String respData, SysOperationLog operationLog, Object result) { - if (operationLogAnnotation.saveResponse()) { - if (respData.length() <= MAX_LENGTH) { - operationLog.setResponseResult(respData); - } else { - operationLog.setResponseResult(StringUtils.substring(respData, 0, MAX_LENGTH)); - } - } - // 处理大部分返回ResponseResult的接口。 - if (!(result instanceof ResponseResult)) { - if (ContextUtil.hasRequestContext()) { - operationLog.setSuccess(ContextUtil.getHttpResponse().getStatus() == HttpServletResponse.SC_OK); - } - return; - } - ResponseResult responseResult = (ResponseResult) result; - operationLog.setSuccess(responseResult.isSuccess()); - if (!responseResult.isSuccess()) { - operationLog.setErrorMsg(responseResult.getErrorMessage()); - } - if (operationLog.getOperationType().equals(SysOperationLogType.LOGIN)) { - // 对于登录操作,由于在调用登录方法之前,没有可用的TokenData。 - // 因此如果登录成功,可再次通过TokenData.takeFromRequest()获取TokenData。 - if (operationLog.getSuccess()) { - // 这里为了保证LoginController.doLogin方法,一定将TokenData存入Request.Attribute之中, - // 我们将不做空值判断,一旦出错,开发者可在调试时立刻发现异常,并根据这里的注释进行修复。 - TokenData tokenData = TokenData.takeFromRequest(); - // 对于非多租户系统,为了保证代码一致性,仍可保留对tenantId的赋值代码。 - operationLog.setTenantId(tokenData.getTenantId()); - operationLog.setSessionId(tokenData.getSessionId()); - operationLog.setOperatorId(tokenData.getUserId()); - operationLog.setOperatorName(tokenData.getLoginName()); - } else { - HttpServletRequest request = ContextUtil.getHttpRequest(); - // 登录操作需要特殊处理,无论是登录成功还是失败,都要记录operator_name字段。 - operationLog.setOperatorName(request.getParameter("loginName")); - } - } - } - - private String[] getParameterNames(ProceedingJoinPoint joinPoint) { - Signature signature = joinPoint.getSignature(); - MethodSignature methodSignature = (MethodSignature) signature; - return methodSignature.getParameterNames(); - } - - private OperationLog getOperationLogAnnotation(JoinPoint joinPoint) throws Exception { - Signature signature = joinPoint.getSignature(); - MethodSignature methodSignature = (MethodSignature) signature; - Method method = methodSignature.getMethod(); - return method.getAnnotation(OperationLog.class); - } - - private String getTraceId(HttpServletRequest request) { - // 获取请求流水号。 - // 对于微服务系统,为了保证traceId在全调用链的唯一性,因此在网关的过滤器中创建了该值。 - String traceId = request.getHeader(ApplicationConstant.HTTP_HEADER_TRACE_ID); - if (StringUtils.isBlank(traceId)) { - traceId = MyCommonUtil.generateUuid(); - } - return traceId; - } - - private boolean isNormalArgs(Object o) { - if (o instanceof List) { - List list = (List) o; - if (CollUtil.isNotEmpty(list)) { - return !(list.get(0) instanceof MultipartFile); - } - } - return !(o instanceof HttpServletRequest) - && !(o instanceof HttpServletResponse) - && !(o instanceof MultipartFile); - } -} diff --git a/images/orange-demo-activiti-service/common/common-log/src/main/java/com/orangeforms/common/log/config/CommonLogAutoConfig.java b/images/orange-demo-activiti-service/common/common-log/src/main/java/com/orangeforms/common/log/config/CommonLogAutoConfig.java deleted file mode 100644 index a1455d7b..00000000 --- a/images/orange-demo-activiti-service/common/common-log/src/main/java/com/orangeforms/common/log/config/CommonLogAutoConfig.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.orangeforms.common.log.config; - -import org.springframework.boot.context.properties.EnableConfigurationProperties; - -/** - * common-log模块的自动配置引导类。 - * - * @author Jerry - * @date 2021-06-06 - */ -@EnableConfigurationProperties({OperationLogProperties.class}) -public class CommonLogAutoConfig { -} diff --git a/images/orange-demo-activiti-service/common/common-log/src/main/java/com/orangeforms/common/log/config/OperationLogProperties.java b/images/orange-demo-activiti-service/common/common-log/src/main/java/com/orangeforms/common/log/config/OperationLogProperties.java deleted file mode 100644 index 9c76e20a..00000000 --- a/images/orange-demo-activiti-service/common/common-log/src/main/java/com/orangeforms/common/log/config/OperationLogProperties.java +++ /dev/null @@ -1,24 +0,0 @@ -package com.orangeforms.common.log.config; - -import lombok.Data; -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * 操作日志的配置类。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Data -@ConfigurationProperties(prefix = "common-log.operation-log") -public class OperationLogProperties { - - /** - * 是否采集操作日志。 - */ - private boolean enabled = true; - /** - * 接口调用的毫秒数大于该值后,将输出慢日志警告。 - */ - private long slowLogMs = 50000; -} diff --git a/images/orange-demo-activiti-service/common/common-log/src/main/java/com/orangeforms/common/log/dao/SysOperationLogMapper.java b/images/orange-demo-activiti-service/common/common-log/src/main/java/com/orangeforms/common/log/dao/SysOperationLogMapper.java deleted file mode 100644 index 468e0950..00000000 --- a/images/orange-demo-activiti-service/common/common-log/src/main/java/com/orangeforms/common/log/dao/SysOperationLogMapper.java +++ /dev/null @@ -1,34 +0,0 @@ -package com.orangeforms.common.log.dao; - -import com.orangeforms.common.core.base.dao.BaseDaoMapper; -import com.orangeforms.common.log.model.SysOperationLog; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * 系统操作日志对应的数据访问对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -public interface SysOperationLogMapper extends BaseDaoMapper { - - /** - * 批量插入。 - * - * @param operationLogList 操作日志列表。 - */ - void insertList(List operationLogList); - - /** - * 根据过滤条件和排序规则,查询操作日志。 - * - * @param sysOperationLogFilter 操作日志的过滤对象。 - * @param orderBy 排序规则。 - * @return 查询列表。 - */ - List getSysOperationLogList( - @Param("sysOperationLogFilter") SysOperationLog sysOperationLogFilter, - @Param("orderBy") String orderBy); -} \ No newline at end of file diff --git a/images/orange-demo-activiti-service/common/common-log/src/main/java/com/orangeforms/common/log/dao/mapper/SysOperationLogMapper.xml b/images/orange-demo-activiti-service/common/common-log/src/main/java/com/orangeforms/common/log/dao/mapper/SysOperationLogMapper.xml deleted file mode 100644 index 891a882d..00000000 --- a/images/orange-demo-activiti-service/common/common-log/src/main/java/com/orangeforms/common/log/dao/mapper/SysOperationLogMapper.xml +++ /dev/null @@ -1,99 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - AND zz_sys_operation_log.operation_type = #{sysOperationLogFilter.operationType} - - - - AND zz_sys_operation_log.request_url LIKE #{safeRequestUrl} - - - AND zz_sys_operation_log.trace_id = #{sysOperationLogFilter.traceId} - - - AND zz_sys_operation_log.success = #{sysOperationLogFilter.success} - - - - AND zz_sys_operation_log.operator_name LIKE #{safeOperatorName} - - - AND zz_sys_operation_log.elapse >= #{sysOperationLogFilter.elapseMin} - - - AND zz_sys_operation_log.elapse <= #{sysOperationLogFilter.elapseMax} - - - AND zz_sys_operation_log.operation_time >= #{sysOperationLogFilter.operationTimeStart} - - - AND zz_sys_operation_log.operation_time <= #{sysOperationLogFilter.operationTimeEnd} - - - - - - INSERT INTO zz_sys_operation_log VALUES - - ( - #{item.logId}, - #{item.description}, - #{item.operationType}, - #{item.serviceName}, - #{item.apiClass}, - #{item.apiMethod}, - #{item.sessionId}, - #{item.traceId}, - #{item.elapse}, - #{item.requestMethod}, - #{item.requestUrl}, - #{item.requestArguments}, - #{item.responseResult}, - #{item.requestIp}, - #{item.success}, - #{item.errorMsg}, - #{item.tenantId}, - #{item.operatorId}, - #{item.operatorName}, - #{item.operationTime} - ) - - - - - \ No newline at end of file diff --git a/images/orange-demo-activiti-service/common/common-log/src/main/java/com/orangeforms/common/log/model/SysOperationLog.java b/images/orange-demo-activiti-service/common/common-log/src/main/java/com/orangeforms/common/log/model/SysOperationLog.java deleted file mode 100644 index 4070453d..00000000 --- a/images/orange-demo-activiti-service/common/common-log/src/main/java/com/orangeforms/common/log/model/SysOperationLog.java +++ /dev/null @@ -1,170 +0,0 @@ -package com.orangeforms.common.log.model; - -import com.baomidou.mybatisplus.annotation.*; -import com.orangeforms.common.core.annotation.TenantFilterColumn; -import lombok.Data; - -import java.util.Date; - -/** - * 操作日志记录表 - * - * @author Jerry - * @date 2021-06-06 - */ -@Data -@TableName("zz_sys_operation_log") -public class SysOperationLog { - - /** - * 主键Id。 - */ - @TableId(value = "log_id") - private Long logId; - - /** - * 日志描述。 - */ - @TableField(value = "description") - private String description; - - /** - * 操作类型。 - * 常量值定义可参考SysOperationLogType对象。 - */ - @TableField(value = "operation_type") - private Integer operationType; - - /** - * 接口所在服务名称。 - * 通常为spring.application.name配置项的值。 - */ - @TableField(value = "service_name") - private String serviceName; - - /** - * 调用的controller全类名。 - * 之所以为独立字段,是为了便于查询和统计接口的调用频度。 - */ - @TableField(value = "api_class") - private String apiClass; - - /** - * 调用的controller中的方法。 - * 格式为:接口类名 + "." + 方法名。 - */ - @TableField(value = "api_method") - private String apiMethod; - - /** - * 用户会话sessionId。 - * 主要是为了便于统计,以及跟踪查询定位问题。 - */ - @TableField(value = "session_id") - private String sessionId; - - /** - * 每次请求的Id。 - * 对于微服务之间的调用,在同一个请求的调用链中,该值是相同的。 - */ - @TableField(value = "trace_id") - private String traceId; - - /** - * 调用时长。 - */ - @TableField(value = "elapse") - private Long elapse; - - /** - * HTTP 请求方法,如GET。 - */ - @TableField(value = "request_method") - private String requestMethod; - - /** - * HTTP 请求地址。 - */ - @TableField(value = "request_url") - private String requestUrl; - - /** - * controller接口参数。 - */ - @TableField(value = "request_arguments") - private String requestArguments; - - /** - * controller应答结果。 - */ - @TableField(value = "response_result") - private String responseResult; - - /** - * 请求IP。 - */ - @TableField(value = "request_ip") - private String requestIp; - - /** - * 应答状态。 - */ - @TableField(value = "success") - private Boolean success; - - /** - * 错误信息。 - */ - @TableField(value = "error_msg") - private String errorMsg; - - /** - * 租户Id。 - * 仅用于多租户系统,是便于进行对租户的操作查询和统计分析。 - */ - @TenantFilterColumn - @TableField(value = "tenant_id") - private Long tenantId; - - /** - * 操作员Id。 - */ - @TableField(value = "operator_id") - private Long operatorId; - - /** - * 操作员名称。 - */ - @TableField(value = "operator_name") - private String operatorName; - - /** - * 操作时间。 - */ - @TableField(value = "operation_time") - private Date operationTime; - - /** - * 调用时长最小值。 - */ - @TableField(exist = false) - private Long elapseMin; - - /** - * 调用时长最大值。 - */ - @TableField(exist = false) - private Long elapseMax; - - /** - * 操作开始时间。 - */ - @TableField(exist = false) - private String operationTimeStart; - - /** - * 操作结束时间。 - */ - @TableField(exist = false) - private String operationTimeEnd; -} diff --git a/images/orange-demo-activiti-service/common/common-log/src/main/java/com/orangeforms/common/log/model/constant/SysOperationLogType.java b/images/orange-demo-activiti-service/common/common-log/src/main/java/com/orangeforms/common/log/model/constant/SysOperationLogType.java deleted file mode 100644 index bd6838da..00000000 --- a/images/orange-demo-activiti-service/common/common-log/src/main/java/com/orangeforms/common/log/model/constant/SysOperationLogType.java +++ /dev/null @@ -1,154 +0,0 @@ -package com.orangeforms.common.log.model.constant; - -import java.util.HashMap; -import java.util.Map; - -/** - * 操作日志类型常量字典对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -public final class SysOperationLogType { - - /** - * 其他。 - */ - public static final int OTHER = -1; - /** - * 登录。 - */ - public static final int LOGIN = 0; - /** - * 登出。 - */ - public static final int LOGOUT = 5; - /** - * 新增。 - */ - public static final int ADD = 10; - /** - * 修改。 - */ - public static final int UPDATE = 15; - /** - * 删除。 - */ - public static final int DELETE = 20; - /** - * 新增多对多关联。 - */ - public static final int ADD_M2M = 25; - /** - * 移除多对多关联。 - */ - public static final int DELETE_M2M = 30; - /** - * 查询。 - */ - public static final int LIST = 35; - /** - * 分组查询。 - */ - public static final int LIST_WITH_GROUP = 40; - /** - * 导出。 - */ - public static final int EXPORT = 45; - /** - * 上传。 - */ - public static final int UPLOAD = 50; - /** - * 下载。 - */ - public static final int DOWNLOAD = 55; - /** - * 重置缓存。 - */ - public static final int RELOAD_CACHE = 60; - /** - * 发布。 - */ - public static final int PUBLISH = 65; - /** - * 取消发布。 - */ - public static final int UNPUBLISH = 70; - /** - * 暂停。 - */ - public static final int SUSPEND = 75; - /** - * 恢复。 - */ - public static final int RESUME = 80; - /** - * 启动流程。 - */ - public static final int START_FLOW = 100; - /** - * 停止流程。 - */ - public static final int STOP_FLOW = 105; - /** - * 删除流程。 - */ - public static final int DELETE_FLOW = 110; - /** - * 取消流程。 - */ - public static final int CANCEL_FLOW = 115; - /** - * 提交任务。 - */ - public static final int SUBMIT_TASK = 120; - /** - * 催办任务。 - */ - public static final int REMIND_TASK = 125; - - private static final Map DICT_MAP = new HashMap<>(15); - static { - DICT_MAP.put(OTHER, "其他"); - DICT_MAP.put(LOGIN, "登录"); - DICT_MAP.put(LOGOUT, "登出"); - DICT_MAP.put(ADD, "新增"); - DICT_MAP.put(UPDATE, "修改"); - DICT_MAP.put(DELETE, "删除"); - DICT_MAP.put(ADD_M2M, "新增多对多关联"); - DICT_MAP.put(DELETE_M2M, "移除多对多关联"); - DICT_MAP.put(LIST, "查询"); - DICT_MAP.put(LIST_WITH_GROUP, "分组查询"); - DICT_MAP.put(EXPORT, "导出"); - DICT_MAP.put(UPLOAD, "上传"); - DICT_MAP.put(DOWNLOAD, "下载"); - DICT_MAP.put(RELOAD_CACHE, "重置缓存"); - DICT_MAP.put(PUBLISH, "发布"); - DICT_MAP.put(UNPUBLISH, "取消发布"); - DICT_MAP.put(SUSPEND, "暂停"); - DICT_MAP.put(RESUME, "恢复"); - DICT_MAP.put(START_FLOW, "启动流程"); - DICT_MAP.put(STOP_FLOW, "停止流程"); - DICT_MAP.put(DELETE_FLOW, "删除流程"); - DICT_MAP.put(CANCEL_FLOW, "取消流程"); - DICT_MAP.put(SUBMIT_TASK, "提交任务"); - DICT_MAP.put(REMIND_TASK, "催办任务"); - } - - /** - * 判断参数是否为当前常量字典的合法值。 - * - * @param value 待验证的参数值。 - * @return 合法返回true,否则false。 - */ - public static boolean isValid(Integer value) { - return value != null && DICT_MAP.containsKey(value); - } - - /** - * 私有构造函数,明确标识该常量类的作用。 - */ - private SysOperationLogType() { - } -} diff --git a/images/orange-demo-activiti-service/common/common-log/src/main/java/com/orangeforms/common/log/service/SysOperationLogService.java b/images/orange-demo-activiti-service/common/common-log/src/main/java/com/orangeforms/common/log/service/SysOperationLogService.java deleted file mode 100644 index 7798ee26..00000000 --- a/images/orange-demo-activiti-service/common/common-log/src/main/java/com/orangeforms/common/log/service/SysOperationLogService.java +++ /dev/null @@ -1,45 +0,0 @@ -package com.orangeforms.common.log.service; - -import com.orangeforms.common.core.base.service.IBaseService; -import com.orangeforms.common.log.model.SysOperationLog; - -import java.util.List; - -/** - * 操作日志服务接口。 - * - * @author Jerry - * @date 2021-06-06 - */ -public interface SysOperationLogService extends IBaseService { - - /** - * 异步的插入一条新操作日志。 - * - * @param operationLog 操作日志对象。 - */ - void saveNewAsync(SysOperationLog operationLog); - - /** - * 插入一条新操作日志。 - * - * @param operationLog 操作日志对象。 - */ - void saveNew(SysOperationLog operationLog); - - /** - * 批量插入。 - * - * @param sysOperationLogList 操作日志列表。 - */ - void batchSave(List sysOperationLogList); - - /** - * 根据过滤条件和排序规则,查询操作日志。 - * - * @param filter 操作日志的过滤对象。 - * @param orderBy 排序规则。 - * @return 查询列表。 - */ - List getSysOperationLogList(SysOperationLog filter, String orderBy); -} diff --git a/images/orange-demo-activiti-service/common/common-log/src/main/java/com/orangeforms/common/log/service/impl/SysOperationLogServiceImpl.java b/images/orange-demo-activiti-service/common/common-log/src/main/java/com/orangeforms/common/log/service/impl/SysOperationLogServiceImpl.java deleted file mode 100644 index 8a6772f5..00000000 --- a/images/orange-demo-activiti-service/common/common-log/src/main/java/com/orangeforms/common/log/service/impl/SysOperationLogServiceImpl.java +++ /dev/null @@ -1,84 +0,0 @@ -package com.orangeforms.common.log.service.impl; - -import com.orangeforms.common.core.annotation.MyDataSource; -import com.orangeforms.common.core.base.dao.BaseDaoMapper; -import com.orangeforms.common.core.base.service.BaseService; -import com.orangeforms.common.core.constant.ApplicationConstant; -import com.orangeforms.common.log.dao.SysOperationLogMapper; -import com.orangeforms.common.log.model.SysOperationLog; -import com.orangeforms.common.log.service.SysOperationLogService; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.scheduling.annotation.Async; -import org.springframework.stereotype.Service; -import org.springframework.transaction.annotation.Transactional; - -import java.util.List; - -/** - * 操作日志服务实现类。 - * 这里需要重点解释下MyDataSource注解。在单数据源服务中,由于没有DataSourceAspect的切面类,所以该注解不会 - * 有任何作用和影响。然而在多数据源情况下,由于每个服务都有自己的DataSourceType常量对象,表示不同的数据源。 - * 而common-log在公用模块中,不能去依赖业务服务,因此这里给出了一个固定值。我们在业务的DataSourceType中,也要 - * 使用该值ApplicationConstant.OPERATION_LOG_DATASOURCE_TYPE,去关联操作日志所需的数据源配置。 - * - * @author Jerry - * @date 2021-06-06 - */ -@MyDataSource(ApplicationConstant.OPERATION_LOG_DATASOURCE_TYPE) -@Service -public class SysOperationLogServiceImpl extends BaseService implements SysOperationLogService { - - @Autowired - private SysOperationLogMapper sysOperationLogMapper; - - @Override - protected BaseDaoMapper mapper() { - return sysOperationLogMapper; - } - - /** - * 异步插入一条新操作日志。通常用于在橙单中创建的单体工程服务。 - * - * @param operationLog 操作日志对象。 - */ - @Async - @Transactional(rollbackFor = Exception.class) - @Override - public void saveNewAsync(SysOperationLog operationLog) { - sysOperationLogMapper.insert(operationLog); - } - - /** - * 插入一条新操作日志。 - * - * @param operationLog 操作日志对象。 - */ - @Transactional(rollbackFor = Exception.class) - @Override - public void saveNew(SysOperationLog operationLog) { - sysOperationLogMapper.insert(operationLog); - } - - /** - * 批量插入。通常用于在橙单中创建的微服务工程服务。 - * - * @param sysOperationLogList 操作日志列表。 - */ - @Transactional(rollbackFor = Exception.class) - @Override - public void batchSave(List sysOperationLogList) { - sysOperationLogMapper.insertList(sysOperationLogList); - } - - /** - * 根据过滤条件和排序规则,查询操作日志。 - * - * @param filter 操作日志的过滤对象。 - * @param orderBy 排序规则。 - * @return 查询列表。 - */ - @Override - public List getSysOperationLogList(SysOperationLog filter, String orderBy) { - return sysOperationLogMapper.getSysOperationLogList(filter, orderBy); - } -} diff --git a/images/orange-demo-activiti-service/common/common-log/src/main/resources/META-INF/spring.factories b/images/orange-demo-activiti-service/common/common-log/src/main/resources/META-INF/spring.factories deleted file mode 100644 index c1551ebc..00000000 --- a/images/orange-demo-activiti-service/common/common-log/src/main/resources/META-INF/spring.factories +++ /dev/null @@ -1,2 +0,0 @@ -org.springframework.boot.autoconfigure.EnableAutoConfiguration=\ -com.orangeforms.common.log.config.CommonLogAutoConfig \ No newline at end of file diff --git a/images/orange-demo-activiti-service/common/common-online-api/pom.xml b/images/orange-demo-activiti-service/common/common-online-api/pom.xml deleted file mode 100644 index 519dabcf..00000000 --- a/images/orange-demo-activiti-service/common/common-online-api/pom.xml +++ /dev/null @@ -1,48 +0,0 @@ - - - - common - com.orangeforms - 1.0.0 - - 4.0.0 - - common-online-api - 1.0.0 - common-online-api - jar - - - - com.orangeforms - common-online - 1.0.0 - - - com.orangeforms - common-swagger - 1.0.0 - - - - - - - src/main/resources - - **/*.* - - false - - - src/main/java - - **/*.xml - - false - - - - \ No newline at end of file diff --git a/images/orange-demo-activiti-service/common/common-online-api/src/main/java/com/orangeforms/common/online/api/config/OnlineApiAutoConfig.java b/images/orange-demo-activiti-service/common/common-online-api/src/main/java/com/orangeforms/common/online/api/config/OnlineApiAutoConfig.java deleted file mode 100644 index cfe07d7d..00000000 --- a/images/orange-demo-activiti-service/common/common-online-api/src/main/java/com/orangeforms/common/online/api/config/OnlineApiAutoConfig.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.orangeforms.common.online.api.config; - -import org.springframework.boot.context.properties.EnableConfigurationProperties; - -/** - * common-online-api模块的自动配置引导类。 - * - * @author Jerry - * @date 2021-06-06 - */ -@EnableConfigurationProperties({OnlineApiProperties.class}) -public class OnlineApiAutoConfig { -} diff --git a/images/orange-demo-activiti-service/common/common-online-api/src/main/java/com/orangeforms/common/online/api/config/OnlineApiProperties.java b/images/orange-demo-activiti-service/common/common-online-api/src/main/java/com/orangeforms/common/online/api/config/OnlineApiProperties.java deleted file mode 100644 index 76c3501b..00000000 --- a/images/orange-demo-activiti-service/common/common-online-api/src/main/java/com/orangeforms/common/online/api/config/OnlineApiProperties.java +++ /dev/null @@ -1,32 +0,0 @@ -package com.orangeforms.common.online.api.config; - -import lombok.Data; -import org.springframework.boot.context.properties.ConfigurationProperties; - -import java.util.List; - -/** - * 在线表单API的配置对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Data -@ConfigurationProperties(prefix = "common-online-api") -public class OnlineApiProperties { - - /** - * 在线表单的URL前缀。 - */ - private String urlPrefix; - - /** - * 在线表单查看权限的URL列表。 - */ - private List viewUrlList; - - /** - * 在线表单编辑权限的URL列表。 - */ - private List editUrlList; -} diff --git a/images/orange-demo-activiti-service/common/common-online-api/src/main/java/com/orangeforms/common/online/api/controller/OnlineColumnController.java b/images/orange-demo-activiti-service/common/common-online-api/src/main/java/com/orangeforms/common/online/api/controller/OnlineColumnController.java deleted file mode 100644 index 18a2252a..00000000 --- a/images/orange-demo-activiti-service/common/common-online-api/src/main/java/com/orangeforms/common/online/api/controller/OnlineColumnController.java +++ /dev/null @@ -1,402 +0,0 @@ -package com.orangeforms.common.online.api.controller; - -import io.swagger.annotations.Api; -import cn.hutool.core.collection.CollUtil; -import cn.jimmyshi.beanquery.BeanQuery; -import com.orangeforms.common.core.annotation.MyRequestBody; -import com.orangeforms.common.core.constant.ErrorCodeEnum; -import com.orangeforms.common.core.object.*; -import com.orangeforms.common.core.util.MyCommonUtil; -import com.orangeforms.common.core.util.MyModelUtil; -import com.orangeforms.common.core.util.MyPageUtil; -import com.orangeforms.common.core.validator.UpdateGroup; -import com.orangeforms.common.online.dto.OnlineColumnDto; -import com.orangeforms.common.online.dto.OnlineColumnRuleDto; -import com.orangeforms.common.online.dto.OnlineRuleDto; -import com.orangeforms.common.online.model.*; -import com.orangeforms.common.online.object.SqlTableColumn; -import com.orangeforms.common.online.service.*; -import com.orangeforms.common.online.vo.OnlineColumnRuleVo; -import com.orangeforms.common.online.vo.OnlineColumnVo; -import com.orangeforms.common.online.vo.OnlineRuleVo; -import com.github.pagehelper.page.PageMethod; -import lombok.extern.slf4j.Slf4j; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.*; - -import javax.validation.groups.Default; -import java.util.List; -import java.util.Map; -import java.util.Set; -import java.util.stream.Collectors; - -/** - * 字段数据操作控制器类。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Api(tags = "字段数据操作接口") -@Slf4j -@RestController -@RequestMapping("${common-online-api.urlPrefix}/onlineColumn") -public class OnlineColumnController { - - @Autowired - private OnlineColumnService onlineColumnService; - @Autowired - private OnlineTableService onlineTableService; - @Autowired - private OnlineVirtualColumnService onlineVirtualColumnService; - @Autowired - private OnlineDblinkService onlineDblinkService; - @Autowired - private OnlineRuleService onlineRuleService; - - /** - * 根据数据库表字段信息,在指定在线表中添加在线表字段对象。 - * - * @param dblinkId 数据库链接Id。 - * @param tableName 数据库表名称。 - * @param columnName 数据库表字段名。 - * @param tableId 目的表Id。 - * @return 应答结果对象。 - */ - @PostMapping("/add") - public ResponseResult add( - @MyRequestBody Long dblinkId, - @MyRequestBody String tableName, - @MyRequestBody String columnName, - @MyRequestBody Long tableId) { - OnlineDblink dblink = onlineDblinkService.getById(dblinkId); - if (dblink == null) { - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST); - } - String errorMsg; - SqlTableColumn sqlTableColumn = onlineDblinkService.getDblinkTableColumn(dblink, tableName, columnName); - if (sqlTableColumn == null) { - errorMsg = "数据验证失败,指定的数据表字段不存在!"; - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMsg); - } - if (!onlineTableService.existId(tableId)) { - errorMsg = "数据验证失败,指定的数据表Id不存在!"; - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMsg); - } - onlineColumnService.saveNewList(CollUtil.newLinkedList(sqlTableColumn), tableId); - return ResponseResult.success(); - } - - /** - * 更新字段数据数据。 - * - * @param onlineColumnDto 更新对象。 - * @return 应答结果对象。 - */ - @PostMapping("/update") - public ResponseResult update(@MyRequestBody OnlineColumnDto onlineColumnDto) { - String errorMessage = MyCommonUtil.getModelValidationError(onlineColumnDto, Default.class, UpdateGroup.class); - if (errorMessage != null) { - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - OnlineColumn onlineColumn = MyModelUtil.copyTo(onlineColumnDto, OnlineColumn.class); - OnlineColumn originalOnlineColumn = onlineColumnService.getById(onlineColumn.getColumnId()); - if (originalOnlineColumn == null) { - errorMessage = "数据验证失败,当前在线表字段并不存在,请刷新后重试!"; - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST, errorMessage); - } - // 验证关联Id的数据合法性 - CallResult callResult = onlineColumnService.verifyRelatedData(onlineColumn, originalOnlineColumn); - if (!callResult.isSuccess()) { - errorMessage = callResult.getErrorMessage(); - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - if (!onlineColumnService.update(onlineColumn, originalOnlineColumn)) { - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST); - } - return ResponseResult.success(); - } - - /** - * 删除字段数据数据。 - * - * @param columnId 删除对象主键Id。 - * @return 应答结果对象。 - */ - @PostMapping("/delete") - public ResponseResult delete(@MyRequestBody Long columnId) { - String errorMessage; - if (MyCommonUtil.existBlankArgument(columnId)) { - return ResponseResult.error(ErrorCodeEnum.ARGUMENT_NULL_EXIST); - } - // 验证关联Id的数据合法性 - OnlineColumn originalOnlineColumn = onlineColumnService.getById(columnId); - if (originalOnlineColumn == null) { - errorMessage = "数据验证失败,当前在线表字段并不存在,请刷新后重试!"; - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST, errorMessage); - } - OnlineVirtualColumn virtualColumnFilter = new OnlineVirtualColumn(); - virtualColumnFilter.setAggregationColumnId(columnId); - List virtualColumnList = - onlineVirtualColumnService.getOnlineVirtualColumnList(virtualColumnFilter, null); - if (CollUtil.isNotEmpty(virtualColumnList)) { - OnlineVirtualColumn virtualColumn = virtualColumnList.get(0); - errorMessage = "数据验证失败,数据源关联正在被虚拟字段 [" + virtualColumn.getColumnPrompt() + "] 使用,不能被删除!"; - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST, errorMessage); - } - if (!onlineColumnService.remove(originalOnlineColumn.getTableId(), columnId)) { - errorMessage = "数据操作失败,删除的对象不存在,请刷新后重试!"; - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST, errorMessage); - } - return ResponseResult.success(); - } - - /** - * 列出符合过滤条件的字段数据列表。 - * - * @param onlineColumnDtoFilter 过滤对象。 - * @param orderParam 排序参数。 - * @param pageParam 分页参数。 - * @return 应答结果对象,包含查询结果集。 - */ - @PostMapping("/list") - public ResponseResult> list( - @MyRequestBody OnlineColumnDto onlineColumnDtoFilter, - @MyRequestBody MyOrderParam orderParam, - @MyRequestBody MyPageParam pageParam) { - if (pageParam != null) { - PageMethod.startPage(pageParam.getPageNum(), pageParam.getPageSize()); - } - OnlineColumn onlineColumnFilter = MyModelUtil.copyTo(onlineColumnDtoFilter, OnlineColumn.class); - String orderBy = MyOrderParam.buildOrderBy(orderParam, OnlineColumn.class); - List onlineColumnList = - onlineColumnService.getOnlineColumnListWithRelation(onlineColumnFilter, orderBy); - return ResponseResult.success(MyPageUtil.makeResponseData(onlineColumnList, OnlineColumn.INSTANCE)); - } - - /** - * 查看指定字段数据对象详情。 - * - * @param columnId 指定对象主键Id。 - * @return 应答结果对象,包含对象详情。 - */ - @GetMapping("/view") - public ResponseResult view(@RequestParam Long columnId) { - if (MyCommonUtil.existBlankArgument(columnId)) { - return ResponseResult.error(ErrorCodeEnum.ARGUMENT_NULL_EXIST); - } - OnlineColumn onlineColumn = onlineColumnService.getByIdWithRelation(columnId, MyRelationParam.full()); - if (onlineColumn == null) { - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST); - } - OnlineColumnVo onlineColumnVo = OnlineColumn.INSTANCE.fromModel(onlineColumn); - return ResponseResult.success(onlineColumnVo); - } - - /** - * 将数据库中的表字段信息刷新到已经导入的在线表字段信息。 - * - * @param dblinkId 数据库链接Id。 - * @param tableName 数据库表名称。 - * @param columnName 数据库表字段名。 - * @param columnId 被刷新的在线字段Id。 - * @return 应答结果对象。 - */ - @PostMapping("/refresh") - public ResponseResult refresh( - @MyRequestBody Long dblinkId, - @MyRequestBody String tableName, - @MyRequestBody String columnName, - @MyRequestBody Long columnId) { - OnlineDblink dblink = onlineDblinkService.getById(dblinkId); - if (dblink == null) { - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST); - } - String errorMsg; - SqlTableColumn sqlTableColumn = onlineDblinkService.getDblinkTableColumn(dblink, tableName, columnName); - if (sqlTableColumn == null) { - errorMsg = "数据验证失败,指定的数据表字段不存在!"; - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMsg); - } - OnlineColumn onlineColumn = onlineColumnService.getById(columnId); - if (onlineColumn == null) { - errorMsg = "数据验证失败,指定的在线表字段Id不存在!"; - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMsg); - } - onlineColumnService.refresh(sqlTableColumn, onlineColumn); - return ResponseResult.success(); - } - - /** - * 列出不与指定字段数据存在多对多关系的 [验证规则] 列表数据。通常用于查看添加新 [验证规则] 对象的候选列表。 - * - * @param columnId 主表关联字段。 - * @param onlineRuleDtoFilter [验证规则] 过滤对象。 - * @param orderParam 排序参数。 - * @param pageParam 分页参数。 - * @return 应答结果对象,返回符合条件的数据列表。 - */ - @PostMapping("/listNotInOnlineColumnRule") - public ResponseResult> listNotInOnlineColumnRule( - @MyRequestBody Long columnId, - @MyRequestBody OnlineRuleDto onlineRuleDtoFilter, - @MyRequestBody MyOrderParam orderParam, - @MyRequestBody MyPageParam pageParam) { - ResponseResult verifyResult = this.doOnlineColumnRuleVerify(columnId); - if (!verifyResult.isSuccess()) { - return ResponseResult.errorFrom(verifyResult); - } - if (pageParam != null) { - PageMethod.startPage(pageParam.getPageNum(), pageParam.getPageSize()); - } - OnlineRule filter = MyModelUtil.copyTo(onlineRuleDtoFilter, OnlineRule.class); - String orderBy = MyOrderParam.buildOrderBy(orderParam, OnlineRule.class); - List onlineRuleList = - onlineRuleService.getNotInOnlineRuleListByColumnId(columnId, filter, orderBy); - return ResponseResult.success(MyPageUtil.makeResponseData(onlineRuleList, OnlineRule.INSTANCE)); - } - - /** - * 列出与指定字段数据存在多对多关系的 [验证规则] 列表数据。 - * - * @param columnId 主表关联字段。 - * @param onlineRuleDtoFilter [验证规则] 过滤对象。 - * @param orderParam 排序参数。 - * @param pageParam 分页参数。 - * @return 应答结果对象,返回符合条件的数据列表。 - */ - @PostMapping("/listOnlineColumnRule") - public ResponseResult> listOnlineColumnRule( - @MyRequestBody Long columnId, - @MyRequestBody OnlineRuleDto onlineRuleDtoFilter, - @MyRequestBody MyOrderParam orderParam, - @MyRequestBody MyPageParam pageParam) { - ResponseResult verifyResult = this.doOnlineColumnRuleVerify(columnId); - if (!verifyResult.isSuccess()) { - return ResponseResult.errorFrom(verifyResult); - } - if (pageParam != null) { - PageMethod.startPage(pageParam.getPageNum(), pageParam.getPageSize()); - } - OnlineRule filter = MyModelUtil.copyTo(onlineRuleDtoFilter, OnlineRule.class); - String orderBy = MyOrderParam.buildOrderBy(orderParam, OnlineRule.class); - List onlineRuleList = - onlineRuleService.getOnlineRuleListByColumnId(columnId, filter, orderBy); - return ResponseResult.success(MyPageUtil.makeResponseData(onlineRuleList, OnlineRule.INSTANCE)); - } - - private ResponseResult doOnlineColumnRuleVerify(Long columnId) { - if (MyCommonUtil.existBlankArgument(columnId)) { - return ResponseResult.error(ErrorCodeEnum.ARGUMENT_NULL_EXIST); - } - if (!onlineColumnService.existId(columnId)) { - return ResponseResult.error(ErrorCodeEnum.INVALID_RELATED_RECORD_ID); - } - return ResponseResult.success(); - } - - /** - * 批量添加字段数据和 [验证规则] 对象的多对多关联关系数据。 - * - * @param columnId 主表主键Id。 - * @param onlineColumnRuleDtoList 关联对象列表。 - * @return 应答结果对象。 - */ - @PostMapping("/addOnlineColumnRule") - public ResponseResult addOnlineColumnRule( - @MyRequestBody Long columnId, - @MyRequestBody(elementType = OnlineColumnRuleDto.class) List onlineColumnRuleDtoList) { - if (MyCommonUtil.existBlankArgument(columnId, onlineColumnRuleDtoList)) { - return ResponseResult.error(ErrorCodeEnum.ARGUMENT_NULL_EXIST); - } - for (OnlineColumnRuleDto onlineColumnRule : onlineColumnRuleDtoList) { - String errorMessage = MyCommonUtil.getModelValidationError(onlineColumnRule); - if (errorMessage != null) { - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - } - Set ruleIdSet = - onlineColumnRuleDtoList.stream().map(OnlineColumnRuleDto::getRuleId).collect(Collectors.toSet()); - if (!onlineColumnService.existId(columnId) - || !onlineRuleService.existUniqueKeyList("ruleId", ruleIdSet)) { - return ResponseResult.error(ErrorCodeEnum.INVALID_RELATED_RECORD_ID); - } - List onlineColumnRuleList = - MyModelUtil.copyCollectionTo(onlineColumnRuleDtoList, OnlineColumnRule.class); - onlineColumnService.addOnlineColumnRuleList(onlineColumnRuleList, columnId); - return ResponseResult.success(); - } - - /** - * 更新指定字段数据和指定 [验证规则] 的多对多关联数据。 - * - * @param onlineColumnRuleDto 对多对中间表对象。 - * @return 应答结果对象。 - */ - @PostMapping("/updateOnlineColumnRule") - public ResponseResult updateOnlineColumnRule( - @MyRequestBody OnlineColumnRuleDto onlineColumnRuleDto) { - String errorMessage = MyCommonUtil.getModelValidationError(onlineColumnRuleDto); - if (errorMessage != null) { - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - OnlineColumnRule onlineColumnRule = MyModelUtil.copyTo(onlineColumnRuleDto, OnlineColumnRule.class); - if (!onlineColumnService.updateOnlineColumnRule(onlineColumnRule)) { - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST); - } - return ResponseResult.success(); - } - - /** - * 显示字段数据和指定 [验证规则] 的多对多关联详情数据。 - * - * @param columnId 主表主键Id。 - * @param ruleId 从表主键Id。 - * @return 应答结果对象,包括中间表详情。 - */ - @GetMapping("/viewOnlineColumnRule") - public ResponseResult viewOnlineColumnRule( - @RequestParam Long columnId, @RequestParam Long ruleId) { - if (MyCommonUtil.existBlankArgument(columnId, ruleId)) { - return ResponseResult.error(ErrorCodeEnum.ARGUMENT_NULL_EXIST); - } - OnlineColumnRule onlineColumnRule = onlineColumnService.getOnlineColumnRule(columnId, ruleId); - if (onlineColumnRule == null) { - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST); - } - OnlineColumnRuleVo onlineColumnRuleVo = MyModelUtil.copyTo(onlineColumnRule, OnlineColumnRuleVo.class); - return ResponseResult.success(onlineColumnRuleVo); - } - - /** - * 移除指定字段数据和指定 [验证规则] 的多对多关联关系。 - * - * @param columnId 主表主键Id。 - * @param ruleId 从表主键Id。 - * @return 应答结果对象。 - */ - @PostMapping("/deleteOnlineColumnRule") - public ResponseResult deleteOnlineColumnRule( - @MyRequestBody Long columnId, @MyRequestBody Long ruleId) { - if (MyCommonUtil.existBlankArgument(columnId, ruleId)) { - return ResponseResult.error(ErrorCodeEnum.ARGUMENT_NULL_EXIST); - } - if (!onlineColumnService.removeOnlineColumnRule(columnId, ruleId)) { - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST); - } - return ResponseResult.success(); - } - - /** - * 以字典形式返回全部字段数据数据集合。字典的键值为[columnId, columnName]。 - * 白名单接口,登录用户均可访问。 - * - * @param filter 过滤对象。 - * @return 应答结果对象,包含的数据为 List>,map中包含两条记录,key的值分别是id和name,value对应具体数据。 - */ - @GetMapping("/listDict") - public ResponseResult>> listDict(OnlineColumn filter) { - List resultList = onlineColumnService.getListByFilter(filter); - return ResponseResult.success(BeanQuery.select( - "columnId as id", "columnName as name").executeFrom(resultList)); - } -} diff --git a/images/orange-demo-activiti-service/common/common-online-api/src/main/java/com/orangeforms/common/online/api/controller/OnlineDatasourceController.java b/images/orange-demo-activiti-service/common/common-online-api/src/main/java/com/orangeforms/common/online/api/controller/OnlineDatasourceController.java deleted file mode 100644 index 35b1eea7..00000000 --- a/images/orange-demo-activiti-service/common/common-online-api/src/main/java/com/orangeforms/common/online/api/controller/OnlineDatasourceController.java +++ /dev/null @@ -1,209 +0,0 @@ -package com.orangeforms.common.online.api.controller; - -import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; -import io.swagger.annotations.Api; -import cn.hutool.core.collection.CollUtil; -import com.orangeforms.common.core.annotation.MyRequestBody; -import com.orangeforms.common.core.constant.ErrorCodeEnum; -import com.orangeforms.common.core.object.*; -import com.orangeforms.common.core.util.MyCommonUtil; -import com.orangeforms.common.core.util.MyModelUtil; -import com.orangeforms.common.core.util.MyPageUtil; -import com.orangeforms.common.core.validator.AddGroup; -import com.orangeforms.common.core.validator.UpdateGroup; -import com.orangeforms.common.online.dto.OnlineDatasourceDto; -import com.orangeforms.common.online.model.*; -import com.orangeforms.common.online.model.constant.PageType; -import com.orangeforms.common.online.object.SqlTable; -import com.orangeforms.common.online.object.SqlTableColumn; -import com.orangeforms.common.online.service.*; -import com.orangeforms.common.online.vo.OnlineDatasourceVo; -import com.github.pagehelper.page.PageMethod; -import lombok.extern.slf4j.Slf4j; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.*; - -import javax.validation.groups.Default; -import java.util.List; - -/** - * 数据模型操作控制器类。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Api(tags = "数据模型操作接口") -@Slf4j -@RestController -@RequestMapping("${common-online-api.urlPrefix}/onlineDatasource") -public class OnlineDatasourceController { - - @Autowired - private OnlineDatasourceService onlineDatasourceService; - @Autowired - private OnlineFormService onlineFormService; - @Autowired - private OnlinePageService onlinePageService; - @Autowired - private OnlineTableService onlineTableService; - @Autowired - private OnlineDblinkService onlineDblinkService; - - /** - * 新增数据模型数据。 - * - * @param onlineDatasourceDto 新增对象。 - * @param pageId 关联的页面Id。 - * @return 应答结果对象,包含新增对象主键Id。 - */ - @ApiOperationSupport(ignoreParameters = {"onlineDatasourceDto.datasourceId"}) - @PostMapping("/add") - public ResponseResult add( - @MyRequestBody OnlineDatasourceDto onlineDatasourceDto, - @MyRequestBody(required = true) Long pageId) { - String errorMessage = MyCommonUtil.getModelValidationError(onlineDatasourceDto, Default.class, AddGroup.class); - if (errorMessage != null) { - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - OnlinePage onlinePage = onlinePageService.getById(pageId); - if (onlinePage == null) { - errorMessage = "数据验证失败,页面Id不存在!"; - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - OnlineDatasource onlineDatasource = MyModelUtil.copyTo(onlineDatasourceDto, OnlineDatasource.class); - OnlineDblink onlineDblink = onlineDblinkService.getById(onlineDatasourceDto.getDblinkId()); - if (onlineDblink == null) { - errorMessage = "数据验证失败,关联的数据库链接Id不存在!"; - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - SqlTable sqlTable = onlineDblinkService.getDblinkTable(onlineDblink, onlineDatasourceDto.getMasterTableName()); - if (sqlTable == null) { - errorMessage = "数据验证失败,指定的数据表名不存在!"; - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - // 流程表单的主表主键,不能是自增主键。 - if (onlinePage.getPageType().equals(PageType.FLOW)) { - for (SqlTableColumn tableColumn : sqlTable.getColumnList()) { - if (tableColumn.getPrimaryKey()) { - if (tableColumn.getAutoIncrement()) { - errorMessage = "数据验证失败,流程页面所关联的主表主键,不能是自增主键!"; - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - break; - } - } - } - onlineDatasource = onlineDatasourceService.saveNew(onlineDatasource, sqlTable, pageId); - return ResponseResult.success(onlineDatasource.getDatasourceId()); - } - - /** - * 更新数据模型数据。 - * - * @param onlineDatasourceDto 更新对象。 - * @return 应答结果对象。 - */ - @PostMapping("/update") - public ResponseResult update(@MyRequestBody OnlineDatasourceDto onlineDatasourceDto) { - String errorMessage = MyCommonUtil.getModelValidationError(onlineDatasourceDto, Default.class, UpdateGroup.class); - if (errorMessage != null) { - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - OnlineDatasource onlineDatasource = MyModelUtil.copyTo(onlineDatasourceDto, OnlineDatasource.class); - OnlineDatasource originalOnlineDatasource = onlineDatasourceService.getById(onlineDatasource.getDatasourceId()); - if (originalOnlineDatasource == null) { - // NOTE: 修改下面方括号中的话述 - errorMessage = "数据验证失败,当前在线数据源并不存在,请刷新后重试!"; - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST, errorMessage); - } - if (!onlineDatasource.getDblinkId().equals(originalOnlineDatasource.getDatasourceId())) { - errorMessage = "数据验证失败,不能修改数据库链接Id!"; - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST, errorMessage); - } - if (!onlineDatasource.getMasterTableId().equals(originalOnlineDatasource.getDatasourceId())) { - errorMessage = "数据验证失败,不能修改主表Id!"; - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST, errorMessage); - } - if (!onlineDatasourceService.update(onlineDatasource, originalOnlineDatasource)) { - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST); - } - return ResponseResult.success(); - } - - /** - * 删除数据模型数据。 - * - * @param datasourceId 删除对象主键Id。 - * @return 应答结果对象。 - */ - @PostMapping("/delete") - public ResponseResult delete(@MyRequestBody Long datasourceId) { - String errorMessage; - if (MyCommonUtil.existBlankArgument(datasourceId)) { - return ResponseResult.error(ErrorCodeEnum.ARGUMENT_NULL_EXIST); - } - // 验证关联Id的数据合法性 - OnlineDatasource originalOnlineDatasource = onlineDatasourceService.getById(datasourceId); - if (originalOnlineDatasource == null) { - errorMessage = "数据验证失败,当前数据源并不存在,请刷新后重试!"; - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST, errorMessage); - } - List formList = onlineFormService.getOnlineFormListByDatasourceId(datasourceId); - if (CollUtil.isNotEmpty(formList)) { - errorMessage = "数据验证失败,当前数据源正在被 [" + formList.get(0).getFormName() + "] 表单占用,请先删除关联数据!"; - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST, errorMessage); - } - if (!onlineDatasourceService.remove(datasourceId)) { - errorMessage = "数据操作失败,删除的对象不存在,请刷新后重试!"; - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST, errorMessage); - } - return ResponseResult.success(); - } - - /** - * 列出符合过滤条件的数据模型列表。 - * - * @param onlineDatasourceDtoFilter 过滤对象。 - * @param orderParam 排序参数。 - * @param pageParam 分页参数。 - * @return 应答结果对象,包含查询结果集。 - */ - @PostMapping("/list") - public ResponseResult> list( - @MyRequestBody OnlineDatasourceDto onlineDatasourceDtoFilter, - @MyRequestBody MyOrderParam orderParam, - @MyRequestBody MyPageParam pageParam) { - if (pageParam != null) { - PageMethod.startPage(pageParam.getPageNum(), pageParam.getPageSize()); - } - OnlineDatasource onlineDatasourceFilter = MyModelUtil.copyTo(onlineDatasourceDtoFilter, OnlineDatasource.class); - String orderBy = MyOrderParam.buildOrderBy(orderParam, OnlineDatasource.class); - List onlineDatasourceList = - onlineDatasourceService.getOnlineDatasourceListWithRelation(onlineDatasourceFilter, orderBy); - return ResponseResult.success(MyPageUtil.makeResponseData(onlineDatasourceList, OnlineDatasource.INSTANCE)); - } - - /** - * 查看指定数据模型对象详情。 - * - * @param datasourceId 指定对象主键Id。 - * @return 应答结果对象,包含对象详情。 - */ - @GetMapping("/view") - public ResponseResult view(@RequestParam Long datasourceId) { - if (MyCommonUtil.existBlankArgument(datasourceId)) { - return ResponseResult.error(ErrorCodeEnum.ARGUMENT_NULL_EXIST); - } - OnlineDatasource onlineDatasource = - onlineDatasourceService.getByIdWithRelation(datasourceId, MyRelationParam.full()); - if (onlineDatasource == null) { - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST); - } - OnlineDatasourceVo onlineDatasourceVo = OnlineDatasource.INSTANCE.fromModel(onlineDatasource); - List tableList = onlineTableService.getOnlineTableListByDatasourceId(datasourceId); - if (CollUtil.isNotEmpty(tableList)) { - onlineDatasourceVo.setTableList(OnlineTable.INSTANCE.fromModelList(tableList)); - } - return ResponseResult.success(onlineDatasourceVo); - } -} diff --git a/images/orange-demo-activiti-service/common/common-online-api/src/main/java/com/orangeforms/common/online/api/controller/OnlineDatasourceRelationController.java b/images/orange-demo-activiti-service/common/common-online-api/src/main/java/com/orangeforms/common/online/api/controller/OnlineDatasourceRelationController.java deleted file mode 100644 index f53594e3..00000000 --- a/images/orange-demo-activiti-service/common/common-online-api/src/main/java/com/orangeforms/common/online/api/controller/OnlineDatasourceRelationController.java +++ /dev/null @@ -1,232 +0,0 @@ -package com.orangeforms.common.online.api.controller; - -import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; -import io.swagger.annotations.Api; -import cn.hutool.core.collection.CollUtil; -import com.orangeforms.common.core.annotation.MyRequestBody; -import com.orangeforms.common.core.constant.ErrorCodeEnum; -import com.orangeforms.common.core.object.*; -import com.orangeforms.common.core.util.MyCommonUtil; -import com.orangeforms.common.core.util.MyModelUtil; -import com.orangeforms.common.core.util.MyPageUtil; -import com.orangeforms.common.core.validator.AddGroup; -import com.orangeforms.common.core.validator.UpdateGroup; -import com.orangeforms.common.online.dto.OnlineDatasourceRelationDto; -import com.orangeforms.common.online.model.*; -import com.orangeforms.common.online.object.SqlTable; -import com.orangeforms.common.online.object.SqlTableColumn; -import com.orangeforms.common.online.service.*; -import com.orangeforms.common.online.vo.OnlineDatasourceRelationVo; -import com.github.pagehelper.page.PageMethod; -import lombok.extern.slf4j.Slf4j; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.*; - -import javax.validation.groups.Default; -import java.util.List; - -/** - * 数据源关联操作控制器类。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Api(tags = "数据源关联操作接口") -@Slf4j -@RestController -@RequestMapping("${common-online-api.urlPrefix}/onlineDatasourceRelation") -public class OnlineDatasourceRelationController { - - @Autowired - private OnlineDatasourceRelationService onlineDatasourceRelationService; - @Autowired - private OnlineDatasourceService onlineDatasourceService; - @Autowired - private OnlineVirtualColumnService onlineVirtualColumnService; - @Autowired - private OnlineDblinkService onlineDblinkService; - @Autowired - private OnlineFormService onlineFormService; - - /** - * 新增数据关联数据。 - * - * @param onlineDatasourceRelationDto 新增对象。 - * @return 应答结果对象,包含新增对象主键Id。 - */ - @ApiOperationSupport(ignoreParameters = {"onlineDatasourceRelationDto.relationId"}) - @PostMapping("/add") - public ResponseResult add(@MyRequestBody OnlineDatasourceRelationDto onlineDatasourceRelationDto) { - String errorMessage = MyCommonUtil.getModelValidationError( - onlineDatasourceRelationDto, Default.class, AddGroup.class); - if (errorMessage != null) { - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - OnlineDatasourceRelation onlineDatasourceRelation = - MyModelUtil.copyTo(onlineDatasourceRelationDto, OnlineDatasourceRelation.class); - OnlineDatasource onlineDatasource = - onlineDatasourceService.getById(onlineDatasourceRelationDto.getDatasourceId()); - if (onlineDatasource == null) { - errorMessage = "数据验证失败,关联的数据源Id不存在!"; - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - OnlineDblink onlineDblink = onlineDblinkService.getById(onlineDatasource.getDblinkId()); - SqlTable slaveTable = onlineDblinkService.getDblinkTable( - onlineDblink, onlineDatasourceRelationDto.getSlaveTableName()); - if (slaveTable == null) { - errorMessage = "数据验证失败,指定的数据表不存在!"; - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - SqlTableColumn slaveColumn = null; - for (SqlTableColumn column : slaveTable.getColumnList()) { - if (column.getColumnName().equals(onlineDatasourceRelationDto.getSlaveColumnName())) { - slaveColumn = column; - break; - } - } - if (slaveColumn == null) { - errorMessage = "数据验证失败,指定的数据表字段 [" + onlineDatasourceRelationDto.getSlaveColumnName() + "] 不存在!"; - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - // 验证关联Id的数据合法性 - CallResult callResult = - onlineDatasourceRelationService.verifyRelatedData(onlineDatasourceRelation, null); - if (!callResult.isSuccess()) { - errorMessage = callResult.getErrorMessage(); - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - onlineDatasourceRelation = onlineDatasourceRelationService.saveNew(onlineDatasourceRelation, slaveTable, slaveColumn); - return ResponseResult.success(onlineDatasourceRelation.getRelationId()); - } - - /** - * 更新数据关联数据。 - * - * @param onlineDatasourceRelationDto 更新对象。 - * @return 应答结果对象。 - */ - @PostMapping("/update") - public ResponseResult update(@MyRequestBody OnlineDatasourceRelationDto onlineDatasourceRelationDto) { - String errorMessage = MyCommonUtil.getModelValidationError( - onlineDatasourceRelationDto, Default.class, UpdateGroup.class); - if (errorMessage != null) { - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - OnlineDatasourceRelation onlineDatasourceRelation = - MyModelUtil.copyTo(onlineDatasourceRelationDto, OnlineDatasourceRelation.class); - OnlineDatasourceRelation originalOnlineDatasourceRelation = - onlineDatasourceRelationService.getById(onlineDatasourceRelation.getRelationId()); - if (originalOnlineDatasourceRelation == null) { - errorMessage = "数据验证失败,当前数据源关联并不存在,请刷新后重试!"; - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST, errorMessage); - } - if (!onlineDatasourceRelationDto.getRelationType().equals(originalOnlineDatasourceRelation.getRelationType())) { - errorMessage = "数据验证失败,不能修改关联类型!"; - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST, errorMessage); - } - if (!onlineDatasourceRelationDto.getSlaveTableId().equals(originalOnlineDatasourceRelation.getSlaveTableId())) { - errorMessage = "数据验证失败,不能修改从表Id!"; - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST, errorMessage); - } - if (!onlineDatasourceRelationDto.getDatasourceId().equals(originalOnlineDatasourceRelation.getDatasourceId())) { - errorMessage = "数据验证失败,不能修改数据源Id!"; - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST, errorMessage); - } - // 验证关联Id的数据合法性 - CallResult callResult = onlineDatasourceRelationService - .verifyRelatedData(onlineDatasourceRelation, originalOnlineDatasourceRelation); - if (!callResult.isSuccess()) { - errorMessage = callResult.getErrorMessage(); - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - if (!onlineDatasourceRelationService.update(onlineDatasourceRelation, originalOnlineDatasourceRelation)) { - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST); - } - return ResponseResult.success(); - } - - /** - * 删除数据关联数据。 - * - * @param relationId 删除对象主键Id。 - * @return 应答结果对象。 - */ - @PostMapping("/delete") - public ResponseResult delete(@MyRequestBody Long relationId) { - String errorMessage; - if (MyCommonUtil.existBlankArgument(relationId)) { - return ResponseResult.error(ErrorCodeEnum.ARGUMENT_NULL_EXIST); - } - // 验证关联Id的数据合法性 - OnlineDatasourceRelation originalOnlineDatasourceRelation = onlineDatasourceRelationService.getById(relationId); - if (originalOnlineDatasourceRelation == null) { - errorMessage = "数据验证失败,当前数据源关联并不存在,请刷新后重试!"; - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST, errorMessage); - } - OnlineVirtualColumn virtualColumnFilter = new OnlineVirtualColumn(); - virtualColumnFilter.setRelationId(relationId); - List virtualColumnList = - onlineVirtualColumnService.getOnlineVirtualColumnList(virtualColumnFilter, null); - if (CollUtil.isNotEmpty(virtualColumnList)) { - OnlineVirtualColumn virtualColumn = virtualColumnList.get(0); - errorMessage = "数据验证失败,数据源关联正在被虚拟字段 [" + virtualColumn.getColumnPrompt() + "] 使用,不能被删除!"; - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST, errorMessage); - } - List formList = - onlineFormService.getOnlineFormListByTableId(originalOnlineDatasourceRelation.getSlaveTableId()); - if (CollUtil.isNotEmpty(formList)) { - errorMessage = "数据验证失败,当前数据源关联正在被 [" + formList.get(0).getFormName() + "] 表单占用,请先删除关联数据!"; - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST, errorMessage); - } - if (!onlineDatasourceRelationService.remove(relationId)) { - errorMessage = "数据操作失败,删除的对象不存在,请刷新后重试!"; - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST, errorMessage); - } - return ResponseResult.success(); - } - - /** - * 列出符合过滤条件的数据关联列表。 - * - * @param onlineDatasourceRelationDtoFilter 过滤对象。 - * @param orderParam 排序参数。 - * @param pageParam 分 页参数。 - * @return 应答结果对象,包含查询结果集。 - */ - @PostMapping("/list") - public ResponseResult> list( - @MyRequestBody OnlineDatasourceRelationDto onlineDatasourceRelationDtoFilter, - @MyRequestBody MyOrderParam orderParam, - @MyRequestBody MyPageParam pageParam) { - if (pageParam != null) { - PageMethod.startPage(pageParam.getPageNum(), pageParam.getPageSize()); - } - OnlineDatasourceRelation onlineDatasourceRelationFilter = - MyModelUtil.copyTo(onlineDatasourceRelationDtoFilter, OnlineDatasourceRelation.class); - String orderBy = MyOrderParam.buildOrderBy(orderParam, OnlineDatasourceRelation.class); - List onlineDatasourceRelationList = - onlineDatasourceRelationService.getOnlineDatasourceRelationListWithRelation(onlineDatasourceRelationFilter, orderBy); - return ResponseResult.success(MyPageUtil.makeResponseData(onlineDatasourceRelationList, OnlineDatasourceRelation.INSTANCE)); - } - - /** - * 查看指定数据关联对象详情。 - * - * @param relationId 指定对象主键Id。 - * @return 应答结果对象,包含对象详情。 - */ - @GetMapping("/view") - public ResponseResult view(@RequestParam Long relationId) { - if (MyCommonUtil.existBlankArgument(relationId)) { - return ResponseResult.error(ErrorCodeEnum.ARGUMENT_NULL_EXIST); - } - OnlineDatasourceRelation onlineDatasourceRelation = - onlineDatasourceRelationService.getByIdWithRelation(relationId, MyRelationParam.full()); - if (onlineDatasourceRelation == null) { - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST); - } - OnlineDatasourceRelationVo onlineDatasourceRelationVo = - OnlineDatasourceRelation.INSTANCE.fromModel(onlineDatasourceRelation); - return ResponseResult.success(onlineDatasourceRelationVo); - } -} diff --git a/images/orange-demo-activiti-service/common/common-online-api/src/main/java/com/orangeforms/common/online/api/controller/OnlineDblinkController.java b/images/orange-demo-activiti-service/common/common-online-api/src/main/java/com/orangeforms/common/online/api/controller/OnlineDblinkController.java deleted file mode 100644 index 30212289..00000000 --- a/images/orange-demo-activiti-service/common/common-online-api/src/main/java/com/orangeforms/common/online/api/controller/OnlineDblinkController.java +++ /dev/null @@ -1,94 +0,0 @@ -package com.orangeforms.common.online.api.controller; - -import io.swagger.annotations.Api; -import com.orangeforms.common.core.annotation.MyRequestBody; -import com.orangeforms.common.core.constant.ErrorCodeEnum; -import com.orangeforms.common.core.object.MyOrderParam; -import com.orangeforms.common.core.object.MyPageData; -import com.orangeforms.common.core.object.MyPageParam; -import com.orangeforms.common.core.object.ResponseResult; -import com.orangeforms.common.core.util.MyModelUtil; -import com.orangeforms.common.core.util.MyPageUtil; -import com.orangeforms.common.online.dto.OnlineDblinkDto; -import com.orangeforms.common.online.model.OnlineDblink; -import com.orangeforms.common.online.object.SqlTable; -import com.orangeforms.common.online.object.SqlTableColumn; -import com.orangeforms.common.online.service.OnlineDblinkService; -import com.orangeforms.common.online.vo.OnlineDblinkVo; -import com.github.pagehelper.page.PageMethod; -import lombok.extern.slf4j.Slf4j; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.*; - -import java.util.List; - -/** - * 数据库链接操作控制器类。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Api(tags = "数据库链接操作接口") -@Slf4j -@RestController -@RequestMapping("${common-online-api.urlPrefix}/onlineDblink") -public class OnlineDblinkController { - - @Autowired - private OnlineDblinkService onlineDblinkService; - - /** - * 列出符合过滤条件的数据库链接列表。 - * - * @param onlineDblinkDtoFilter 过滤对象。 - * @param orderParam 排序参数。 - * @param pageParam 分页参数。 - * @return 应答结果对象,包含查询结果集。 - */ - @PostMapping("/list") - public ResponseResult> list( - @MyRequestBody OnlineDblinkDto onlineDblinkDtoFilter, - @MyRequestBody MyOrderParam orderParam, - @MyRequestBody MyPageParam pageParam) { - if (pageParam != null) { - PageMethod.startPage(pageParam.getPageNum(), pageParam.getPageSize()); - } - OnlineDblink onlineDblinkFilter = MyModelUtil.copyTo(onlineDblinkDtoFilter, OnlineDblink.class); - String orderBy = MyOrderParam.buildOrderBy(orderParam, OnlineDblink.class); - List onlineDblinkList = - onlineDblinkService.getOnlineDblinkListWithRelation(onlineDblinkFilter, orderBy); - return ResponseResult.success(MyPageUtil.makeResponseData(onlineDblinkList, OnlineDblink.INSTANCE)); - } - - /** - * 获取指定数据库链接下的所有动态表单依赖的数据表列表。 - * - * @param dblinkId 数据库链接Id。 - * @return 所有动态表单依赖的数据表列表 - */ - @GetMapping("/listDblinkTables") - public ResponseResult> listDblinkTables(@RequestParam Long dblinkId) { - OnlineDblink dblink = onlineDblinkService.getById(dblinkId); - if (dblink == null) { - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST); - } - return ResponseResult.success(onlineDblinkService.getDblinkTableList(dblink)); - } - - /** - * 获取指定数据库链接下,指定数据表的所有字段信息。 - * - * @param dblinkId 数据库链接Id。 - * @param tableName 表名。 - * @return 该表的所有字段列表。 - */ - @GetMapping("/listDblinkTableColumns") - public ResponseResult> listDblinkTableColumns( - @RequestParam Long dblinkId, @RequestParam String tableName) { - OnlineDblink dblink = onlineDblinkService.getById(dblinkId); - if (dblink == null) { - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST); - } - return ResponseResult.success(onlineDblinkService.getDblinkTableColumnList(dblink, tableName)); - } -} diff --git a/images/orange-demo-activiti-service/common/common-online-api/src/main/java/com/orangeforms/common/online/api/controller/OnlineDictController.java b/images/orange-demo-activiti-service/common/common-online-api/src/main/java/com/orangeforms/common/online/api/controller/OnlineDictController.java deleted file mode 100644 index 5adf0aca..00000000 --- a/images/orange-demo-activiti-service/common/common-online-api/src/main/java/com/orangeforms/common/online/api/controller/OnlineDictController.java +++ /dev/null @@ -1,160 +0,0 @@ -package com.orangeforms.common.online.api.controller; - -import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; -import io.swagger.annotations.Api; -import com.orangeforms.common.core.annotation.MyRequestBody; -import com.orangeforms.common.core.constant.ErrorCodeEnum; -import com.orangeforms.common.core.object.*; -import com.orangeforms.common.core.util.MyCommonUtil; -import com.orangeforms.common.core.util.MyModelUtil; -import com.orangeforms.common.core.util.MyPageUtil; -import com.orangeforms.common.core.validator.UpdateGroup; -import com.orangeforms.common.online.dto.OnlineDictDto; -import com.orangeforms.common.online.model.OnlineDict; -import com.orangeforms.common.online.service.OnlineDictService; -import com.orangeforms.common.online.vo.OnlineDictVo; -import com.github.pagehelper.page.PageMethod; -import lombok.extern.slf4j.Slf4j; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.*; - -import javax.validation.groups.Default; -import java.util.List; - -/** - * 在线表单字典操作控制器类。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Api(tags = "在线表单字典操作接口") -@Slf4j -@RestController -@RequestMapping("${common-online-api.urlPrefix}/onlineDict") -public class OnlineDictController { - - @Autowired - private OnlineDictService onlineDictService; - - /** - * 新增在线表单字典数据。 - * - * @param onlineDictDto 新增对象。 - * @return 应答结果对象,包含新增对象主键Id。 - */ - @ApiOperationSupport(ignoreParameters = {"onlineDictDto.dictId"}) - @PostMapping("/add") - public ResponseResult add(@MyRequestBody OnlineDictDto onlineDictDto) { - String errorMessage = MyCommonUtil.getModelValidationError(onlineDictDto); - if (errorMessage != null) { - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - OnlineDict onlineDict = MyModelUtil.copyTo(onlineDictDto, OnlineDict.class); - // 验证关联Id的数据合法性 - CallResult callResult = onlineDictService.verifyRelatedData(onlineDict, null); - if (!callResult.isSuccess()) { - errorMessage = callResult.getErrorMessage(); - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - onlineDict = onlineDictService.saveNew(onlineDict); - return ResponseResult.success(onlineDict.getDictId()); - } - - /** - * 更新在线表单字典数据。 - * - * @param onlineDictDto 更新对象。 - * @return 应答结果对象。 - */ - @PostMapping("/update") - public ResponseResult update(@MyRequestBody OnlineDictDto onlineDictDto) { - String errorMessage = MyCommonUtil.getModelValidationError(onlineDictDto, Default.class, UpdateGroup.class); - if (errorMessage != null) { - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - OnlineDict onlineDict = MyModelUtil.copyTo(onlineDictDto, OnlineDict.class); - OnlineDict originalOnlineDict = onlineDictService.getById(onlineDict.getDictId()); - if (originalOnlineDict == null) { - // NOTE: 修改下面方括号中的话述 - errorMessage = "数据验证失败,当前在线字典并不存在,请刷新后重试!"; - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST, errorMessage); - } - // 验证关联Id的数据合法性 - CallResult callResult = onlineDictService.verifyRelatedData(onlineDict, originalOnlineDict); - if (!callResult.isSuccess()) { - errorMessage = callResult.getErrorMessage(); - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - if (!onlineDictService.update(onlineDict, originalOnlineDict)) { - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST); - } - return ResponseResult.success(); - } - - /** - * 删除在线表单字典数据。 - * - * @param dictId 删除对象主键Id。 - * @return 应答结果对象。 - */ - @PostMapping("/delete") - public ResponseResult delete(@MyRequestBody Long dictId) { - String errorMessage; - if (MyCommonUtil.existBlankArgument(dictId)) { - return ResponseResult.error(ErrorCodeEnum.ARGUMENT_NULL_EXIST); - } - // 验证关联Id的数据合法性 - OnlineDict originalOnlineDict = onlineDictService.getById(dictId); - if (originalOnlineDict == null) { - // NOTE: 修改下面方括号中的话述 - errorMessage = "数据验证失败,当前在线字典并不存在,请刷新后重试!"; - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST, errorMessage); - } - if (!onlineDictService.remove(dictId)) { - errorMessage = "数据操作失败,删除的对象不存在,请刷新后重试!"; - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST, errorMessage); - } - return ResponseResult.success(); - } - - /** - * 列出符合过滤条件的在线表单字典列表。 - * - * @param onlineDictDtoFilter 过滤对象。 - * @param orderParam 排序参数。 - * @param pageParam 分页参数。 - * @return 应答结果对象,包含查询结果集。 - */ - @PostMapping("/list") - public ResponseResult> list( - @MyRequestBody OnlineDictDto onlineDictDtoFilter, - @MyRequestBody MyOrderParam orderParam, - @MyRequestBody MyPageParam pageParam) { - if (pageParam != null) { - PageMethod.startPage(pageParam.getPageNum(), pageParam.getPageSize()); - } - OnlineDict onlineDictFilter = MyModelUtil.copyTo(onlineDictDtoFilter, OnlineDict.class); - String orderBy = MyOrderParam.buildOrderBy(orderParam, OnlineDict.class); - List onlineDictList = onlineDictService.getOnlineDictListWithRelation(onlineDictFilter, orderBy); - return ResponseResult.success(MyPageUtil.makeResponseData(onlineDictList, OnlineDict.INSTANCE)); - } - - /** - * 查看指定在线表单字典对象详情。 - * - * @param dictId 指定对象主键Id。 - * @return 应答结果对象,包含对象详情。 - */ - @GetMapping("/view") - public ResponseResult view(@RequestParam Long dictId) { - if (MyCommonUtil.existBlankArgument(dictId)) { - return ResponseResult.error(ErrorCodeEnum.ARGUMENT_NULL_EXIST); - } - OnlineDict onlineDict = onlineDictService.getByIdWithRelation(dictId, MyRelationParam.full()); - if (onlineDict == null) { - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST); - } - OnlineDictVo onlineDictVo = OnlineDict.INSTANCE.fromModel(onlineDict); - return ResponseResult.success(onlineDictVo); - } -} diff --git a/images/orange-demo-activiti-service/common/common-online-api/src/main/java/com/orangeforms/common/online/api/controller/OnlineFormController.java b/images/orange-demo-activiti-service/common/common-online-api/src/main/java/com/orangeforms/common/online/api/controller/OnlineFormController.java deleted file mode 100644 index d5245be1..00000000 --- a/images/orange-demo-activiti-service/common/common-online-api/src/main/java/com/orangeforms/common/online/api/controller/OnlineFormController.java +++ /dev/null @@ -1,261 +0,0 @@ -package com.orangeforms.common.online.api.controller; - -import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; -import io.swagger.annotations.Api; -import cn.hutool.core.collection.CollUtil; -import cn.hutool.json.JSONObject; -import com.orangeforms.common.core.annotation.MyRequestBody; -import com.orangeforms.common.core.constant.ErrorCodeEnum; -import com.orangeforms.common.core.object.*; -import com.orangeforms.common.core.util.MyCommonUtil; -import com.orangeforms.common.core.util.MyModelUtil; -import com.orangeforms.common.core.util.MyPageUtil; -import com.orangeforms.common.core.validator.UpdateGroup; -import com.orangeforms.common.online.dto.OnlineFormDto; -import com.orangeforms.common.online.model.*; -import com.orangeforms.common.online.service.*; -import com.orangeforms.common.online.vo.OnlineFormVo; -import com.github.pagehelper.page.PageMethod; -import lombok.extern.slf4j.Slf4j; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.*; - -import javax.validation.groups.Default; -import java.util.HashSet; -import java.util.List; -import java.util.Set; -import java.util.stream.Collectors; - -/** - * 在线表单操作控制器类。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Api(tags = "在线表单操作接口") -@Slf4j -@RestController -@RequestMapping("${common-online-api.urlPrefix}/onlineForm") -public class OnlineFormController { - - @Autowired - private OnlineFormService onlineFormService; - @Autowired - private OnlineDatasourceService onlineDatasourceService; - @Autowired - private OnlineDatasourceRelationService onlineDatasourceRelationService; - @Autowired - private OnlineTableService onlineTableService; - @Autowired - private OnlineColumnService onlineColumnService; - @Autowired - private OnlineVirtualColumnService onlineVirtualColumnService; - @Autowired - private OnlineDictService onlineDictService; - @Autowired - private OnlineRuleService onlineRuleService; - - /** - * 新增在线表单数据。 - * - * @param onlineFormDto 新增对象。 - * @return 应答结果对象,包含新增对象主键Id。 - */ - @ApiOperationSupport(ignoreParameters = {"onlineFormDto.formId"}) - @PostMapping("/add") - public ResponseResult add(@MyRequestBody OnlineFormDto onlineFormDto) { - String errorMessage = MyCommonUtil.getModelValidationError(onlineFormDto); - if (errorMessage != null) { - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - OnlineForm onlineForm = MyModelUtil.copyTo(onlineFormDto, OnlineForm.class); - // 验证关联Id的数据合法性 - CallResult callResult = onlineFormService.verifyRelatedData(onlineForm, null); - if (!callResult.isSuccess()) { - errorMessage = callResult.getErrorMessage(); - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - Set datasourceIdSet = null; - if (CollUtil.isNotEmpty(onlineFormDto.getDatasourceIdList())) { - datasourceIdSet = new HashSet<>(onlineFormDto.getDatasourceIdList()); - if (!onlineDatasourceService.existAllPrimaryKeys(datasourceIdSet)) { - errorMessage = "数据验证失败,当前在线表单包含不存在的数据源Id!"; - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - } - onlineForm = onlineFormService.saveNew(onlineForm, datasourceIdSet); - return ResponseResult.success(onlineForm.getFormId()); - } - - /** - * 更新在线表单数据。 - * - * @param onlineFormDto 更新对象。 - * @return 应答结果对象。 - */ - @PostMapping("/update") - public ResponseResult update(@MyRequestBody OnlineFormDto onlineFormDto) { - String errorMessage = MyCommonUtil.getModelValidationError(onlineFormDto, Default.class, UpdateGroup.class); - if (errorMessage != null) { - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - OnlineForm onlineForm = MyModelUtil.copyTo(onlineFormDto, OnlineForm.class); - OnlineForm originalOnlineForm = onlineFormService.getById(onlineForm.getFormId()); - if (originalOnlineForm == null) { - errorMessage = "数据验证失败,当前在线表单并不存在,请刷新后重试!"; - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST, errorMessage); - } - // 验证关联Id的数据合法性 - CallResult callResult = onlineFormService.verifyRelatedData(onlineForm, originalOnlineForm); - if (!callResult.isSuccess()) { - errorMessage = callResult.getErrorMessage(); - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - Set datasourceIdSet = null; - if (CollUtil.isNotEmpty(onlineFormDto.getDatasourceIdList())) { - datasourceIdSet = new HashSet<>(onlineFormDto.getDatasourceIdList()); - if (!onlineDatasourceService.existAllPrimaryKeys(datasourceIdSet)) { - errorMessage = "数据验证失败,当前在线表单包含不存在的数据源Id!"; - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - } - if (!onlineFormService.update(onlineForm, originalOnlineForm, datasourceIdSet)) { - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST); - } - return ResponseResult.success(); - } - - /** - * 删除在线表单数据。 - * - * @param formId 删除对象主键Id。 - * @return 应答结果对象。 - */ - @PostMapping("/delete") - public ResponseResult delete(@MyRequestBody Long formId) { - String errorMessage; - if (MyCommonUtil.existBlankArgument(formId)) { - return ResponseResult.error(ErrorCodeEnum.ARGUMENT_NULL_EXIST); - } - // 验证关联Id的数据合法性 - OnlineForm originalOnlineForm = onlineFormService.getById(formId); - if (originalOnlineForm == null) { - // NOTE: 修改下面方括号中的话述 - errorMessage = "数据验证失败,当前在线表单并不存在,请刷新后重试!"; - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST, errorMessage); - } - if (!onlineFormService.remove(formId)) { - errorMessage = "数据操作失败,删除的对象不存在,请刷新后重试!"; - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST, errorMessage); - } - return ResponseResult.success(); - } - - /** - * 列出符合过滤条件的在线表单列表。 - * - * @param onlineFormDtoFilter 过滤对象。 - * @param orderParam 排序参数。 - * @param pageParam 分页参数。 - * @return 应答结果对象,包含查询结果集。 - */ - @PostMapping("/list") - public ResponseResult> list( - @MyRequestBody OnlineFormDto onlineFormDtoFilter, - @MyRequestBody MyOrderParam orderParam, - @MyRequestBody MyPageParam pageParam) { - if (pageParam != null) { - PageMethod.startPage(pageParam.getPageNum(), pageParam.getPageSize()); - } - OnlineForm onlineFormFilter = MyModelUtil.copyTo(onlineFormDtoFilter, OnlineForm.class); - String orderBy = MyOrderParam.buildOrderBy(orderParam, OnlineForm.class); - List onlineFormList = - onlineFormService.getOnlineFormListWithRelation(onlineFormFilter, orderBy); - return ResponseResult.success(MyPageUtil.makeResponseData(onlineFormList, OnlineForm.INSTANCE)); - } - - /** - * 查看指定在线表单对象详情。 - * - * @param formId 指定对象主键Id。 - * @return 应答结果对象,包含对象详情。 - */ - @GetMapping("/view") - public ResponseResult view(@RequestParam Long formId) { - if (MyCommonUtil.existBlankArgument(formId)) { - return ResponseResult.error(ErrorCodeEnum.ARGUMENT_NULL_EXIST); - } - OnlineForm onlineForm = onlineFormService.getByIdWithRelation(formId, MyRelationParam.full()); - if (onlineForm == null) { - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST); - } - OnlineFormVo onlineFormVo = OnlineForm.INSTANCE.fromModel(onlineForm); - List formDatasourceList = onlineFormService.getFormDatasourceListByFormId(formId); - if (CollUtil.isNotEmpty(formDatasourceList)) { - onlineFormVo.setDatasourceIdList(formDatasourceList.stream() - .map(OnlineFormDatasource::getDatasourceId).collect(Collectors.toList())); - } - return ResponseResult.success(onlineFormVo); - } - - /** - * 获取指定在线表单对象在前端渲染时所需的所有数据对象。 - * - * @param formId 指定对象主键Id。 - * @return 应答结果对象,包含对象详情。 - */ - @GetMapping("/render") - public ResponseResult render(@RequestParam Long formId) { - if (MyCommonUtil.existBlankArgument(formId)) { - return ResponseResult.error(ErrorCodeEnum.ARGUMENT_NULL_EXIST); - } - OnlineForm onlineForm = onlineFormService.getByIdWithRelation(formId, MyRelationParam.full()); - if (onlineForm == null) { - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST); - } - OnlineFormVo onlineFormVo = OnlineForm.INSTANCE.fromModel(onlineForm); - JSONObject jsonObject = new JSONObject(); - jsonObject.putOpt("onlineForm", onlineFormVo); - List formDatasourceList = onlineFormService.getFormDatasourceListByFormId(formId); - if (CollUtil.isEmpty(formDatasourceList)) { - return ResponseResult.success(jsonObject); - } - Set datasourceIdSet = formDatasourceList.stream() - .map(OnlineFormDatasource::getDatasourceId).collect(Collectors.toSet()); - List onlineDatasourceList = onlineDatasourceService.getOnlineDatasourceList(datasourceIdSet); - jsonObject.putOpt("onlineDatasourceList", onlineDatasourceList); - List onlineDatasourceRelationList = - onlineDatasourceRelationService.getOnlineDatasourceRelationListByDatasourceIds(datasourceIdSet, null); - if (CollUtil.isNotEmpty(onlineDatasourceRelationList)) { - jsonObject.putOpt("onlineDatasourceRelationList", onlineDatasourceRelationList); - } - List onlineDatasourceTableList = - onlineDatasourceService.getOnlineDatasourceTableList(datasourceIdSet); - if (CollUtil.isNotEmpty(onlineDatasourceTableList)) { - Set tableIdSet = onlineDatasourceTableList.stream() - .map(OnlineDatasourceTable::getTableId).collect(Collectors.toSet()); - List onlineTableList = onlineTableService.getOnlineTableList(tableIdSet); - jsonObject.putOpt("onlineTableList", onlineTableList); - List onlineColumnList = onlineColumnService.getOnlineColumnListByTableIds(tableIdSet); - jsonObject.putOpt("onlineColumnList", onlineColumnList); - List virtualColumnList = - onlineVirtualColumnService.getOnlineVirtualColumnListByTableIds(tableIdSet); - jsonObject.putOpt("onlineVirtualColumnList", virtualColumnList); - Set dictIdSet = onlineColumnList.stream() - .filter(c -> c.getDictId() != null).map(OnlineColumn::getDictId).collect(Collectors.toSet()); - if (CollUtil.isNotEmpty(dictIdSet)) { - List onlineDictList = onlineDictService.getOnlineDictList(dictIdSet); - if (CollUtil.isNotEmpty(onlineDictList)) { - jsonObject.putOpt("onlineDictList", onlineDictList); - } - } - Set columnIdSet = onlineColumnList.stream().map(OnlineColumn::getColumnId).collect(Collectors.toSet()); - List colunmRuleList = onlineRuleService.getOnlineColumnRuleListByColumnIds(columnIdSet); - if (CollUtil.isNotEmpty(colunmRuleList)) { - jsonObject.putOpt("onlineColumnRuleList", colunmRuleList); - } - } - return ResponseResult.success(jsonObject); - } - -} diff --git a/images/orange-demo-activiti-service/common/common-online-api/src/main/java/com/orangeforms/common/online/api/controller/OnlinePageController.java b/images/orange-demo-activiti-service/common/common-online-api/src/main/java/com/orangeforms/common/online/api/controller/OnlinePageController.java deleted file mode 100644 index 8fabcade..00000000 --- a/images/orange-demo-activiti-service/common/common-online-api/src/main/java/com/orangeforms/common/online/api/controller/OnlinePageController.java +++ /dev/null @@ -1,347 +0,0 @@ -package com.orangeforms.common.online.api.controller; - -import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; -import io.swagger.annotations.Api; -import com.alibaba.fastjson.JSONObject; -import com.orangeforms.common.core.annotation.MyRequestBody; -import com.orangeforms.common.core.constant.ErrorCodeEnum; -import com.orangeforms.common.core.object.*; -import com.orangeforms.common.core.util.MyCommonUtil; -import com.orangeforms.common.core.util.MyModelUtil; -import com.orangeforms.common.core.util.MyPageUtil; -import com.orangeforms.common.core.validator.UpdateGroup; -import com.orangeforms.common.online.dto.OnlineDatasourceDto; -import com.orangeforms.common.online.dto.OnlinePageDatasourceDto; -import com.orangeforms.common.online.dto.OnlinePageDto; -import com.orangeforms.common.online.model.OnlineDatasource; -import com.orangeforms.common.online.model.OnlinePage; -import com.orangeforms.common.online.model.OnlinePageDatasource; -import com.orangeforms.common.online.model.constant.PageStatus; -import com.orangeforms.common.online.service.OnlineDatasourceService; -import com.orangeforms.common.online.service.OnlineFormService; -import com.orangeforms.common.online.service.OnlinePageService; -import com.orangeforms.common.online.vo.OnlineDatasourceVo; -import com.orangeforms.common.online.vo.OnlinePageDatasourceVo; -import com.orangeforms.common.online.vo.OnlinePageVo; -import com.github.pagehelper.page.PageMethod; -import lombok.extern.slf4j.Slf4j; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.*; - -import javax.validation.groups.Default; -import java.util.List; -import java.util.Set; -import java.util.stream.Collectors; - -/** - * 在线表单页面操作控制器类。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Api(tags = "在线表单页面操作接口") -@Slf4j -@RestController -@RequestMapping("${common-online-api.urlPrefix}/onlinePage") -public class OnlinePageController { - - @Autowired - private OnlinePageService onlinePageService; - @Autowired - private OnlineFormService onlineFormService; - @Autowired - private OnlineDatasourceService onlineDatasourceService; - - /** - * 新增在线表单页面数据。 - * - * @param onlinePageDto 新增对象。 - * @return 应答结果对象,包含新增对象主键Id。 - */ - @ApiOperationSupport(ignoreParameters = {"onlinePageDto.pageId"}) - @PostMapping("/add") - public ResponseResult add(@MyRequestBody OnlinePageDto onlinePageDto) { - String errorMessage = MyCommonUtil.getModelValidationError(onlinePageDto); - if (errorMessage != null) { - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - OnlinePage onlinePage = MyModelUtil.copyTo(onlinePageDto, OnlinePage.class); - onlinePage = onlinePageService.saveNew(onlinePage); - return ResponseResult.success(onlinePage.getPageId()); - } - - /** - * 更新在线表单页面数据。 - * - * @param onlinePageDto 更新对象。 - * @return 应答结果对象。 - */ - @PostMapping("/update") - public ResponseResult update(@MyRequestBody OnlinePageDto onlinePageDto) { - String errorMessage = MyCommonUtil.getModelValidationError(onlinePageDto, Default.class, UpdateGroup.class); - if (errorMessage != null) { - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - OnlinePage onlinePage = MyModelUtil.copyTo(onlinePageDto, OnlinePage.class); - OnlinePage originalOnlinePage = onlinePageService.getById(onlinePage.getPageId()); - if (originalOnlinePage == null) { - errorMessage = "数据验证失败,当前页面对象并不存在,请刷新后重试!"; - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST, errorMessage); - } - if (!onlinePage.getPageType().equals(originalOnlinePage.getPageType())) { - errorMessage = "数据验证失败,页面类型不能修改!"; - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST, errorMessage); - } - if (!onlinePageService.update(onlinePage, originalOnlinePage)) { - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST); - } - return ResponseResult.success(); - } - - /** - * 更新在线表单页面对象的发布状态字段。 - * - * @param pageId 待更新的页面对象主键Id。 - * @param published 发布状态。 - * @return 应答结果对象。 - */ - @PostMapping("/updatePublished") - public ResponseResult updateStatus( - @MyRequestBody(required = true) Long pageId, - @MyRequestBody(required = true) Boolean published) { - String errorMessage; - // 验证关联Id的数据合法性 - OnlinePage originalOnlinePage = onlinePageService.getById(pageId); - if (originalOnlinePage == null) { - errorMessage = "数据验证失败,当前页面对象并不存在,请刷新后重试!"; - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST, errorMessage); - } - if (!published.equals(originalOnlinePage.getPublished())) { - if (published && !originalOnlinePage.getStatus().equals(PageStatus.FORM_DESIGN)) { - errorMessage = "数据验证失败,当前页面状态不为 [设计] 状态,因此不能发布!"; - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - onlinePageService.updatePublished(pageId, published); - } - return ResponseResult.success(); - } - - /** - * 删除在线表单页面数据。 - * - * @param pageId 删除对象主键Id。 - * @return 应答结果对象。 - */ - @PostMapping("/delete") - public ResponseResult delete(@MyRequestBody Long pageId) { - String errorMessage; - if (MyCommonUtil.existBlankArgument(pageId)) { - return ResponseResult.error(ErrorCodeEnum.ARGUMENT_NULL_EXIST); - } - // 验证关联Id的数据合法性 - OnlinePage originalOnlinePage = onlinePageService.getById(pageId); - if (originalOnlinePage == null) { - errorMessage = "数据验证失败,当前页面对象并不存在,请刷新后重试!"; - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST, errorMessage); - } - if (!onlinePageService.remove(pageId)) { - errorMessage = "数据操作失败,删除的对象不存在,请刷新后重试!"; - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST, errorMessage); - } - return ResponseResult.success(); - } - - /** - * 列出符合过滤条件的在线表单页面列表。 - * - * @param onlinePageDtoFilter 过滤对象。 - * @param orderParam 排序参数。 - * @param pageParam 分页参数。 - * @return 应答结果对象,包含查询结果集。 - */ - @PostMapping("/list") - public ResponseResult> list( - @MyRequestBody OnlinePageDto onlinePageDtoFilter, - @MyRequestBody MyOrderParam orderParam, - @MyRequestBody MyPageParam pageParam) { - if (pageParam != null) { - PageMethod.startPage(pageParam.getPageNum(), pageParam.getPageSize()); - } - OnlinePage onlinePageFilter = MyModelUtil.copyTo(onlinePageDtoFilter, OnlinePage.class); - String orderBy = MyOrderParam.buildOrderBy(orderParam, OnlinePage.class); - List onlinePageList = onlinePageService.getOnlinePageListWithRelation(onlinePageFilter, orderBy); - return ResponseResult.success(MyPageUtil.makeResponseData(onlinePageList, OnlinePage.INSTANCE)); - } - - /** - * 获取系统中配置的所有Page和表单的列表。 - * - * @return 系统中配置的所有Page和表单的列表。 - */ - @PostMapping("/listAllPageAndForm") - public ResponseResult listAllPageAndForm() { - JSONObject jsonObject = new JSONObject(); - jsonObject.put("pageList", onlinePageService.getAllList()); - jsonObject.put("formList", onlineFormService.getAllList()); - return ResponseResult.success(jsonObject); - } - - /** - * 查看指定在线表单页面对象详情。 - * - * @param pageId 指定对象主键Id。 - * @return 应答结果对象,包含对象详情。 - */ - @GetMapping("/view") - public ResponseResult view(@RequestParam Long pageId) { - if (MyCommonUtil.existBlankArgument(pageId)) { - return ResponseResult.error(ErrorCodeEnum.ARGUMENT_NULL_EXIST); - } - OnlinePage onlinePage = onlinePageService.getByIdWithRelation(pageId, MyRelationParam.full()); - if (onlinePage == null) { - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST); - } - OnlinePageVo onlinePageVo = OnlinePage.INSTANCE.fromModel(onlinePage); - return ResponseResult.success(onlinePageVo); - } - - /** - * 列出不与指定在线表单页面存在多对多关系的在线数据源列表数据。通常用于查看添加新在线数据源对象的候选列表。 - * - * @param pageId 主表关联字段。 - * @param onlineDatasourceDtoFilter 在线数据源过滤对象。 - * @param orderParam 排序参数。 - * @param pageParam 分页参数。 - * @return 应答结果对象,返回符合条件的数据列表。 - */ - @PostMapping("/listNotInOnlinePageDatasource") - public ResponseResult> listNotInOnlinePageDatasource( - @MyRequestBody Long pageId, - @MyRequestBody OnlineDatasourceDto onlineDatasourceDtoFilter, - @MyRequestBody MyOrderParam orderParam, - @MyRequestBody MyPageParam pageParam) { - ResponseResult verifyResult = this.doOnlinePageDatasourceVerify(pageId); - if (!verifyResult.isSuccess()) { - return ResponseResult.errorFrom(verifyResult); - } - if (pageParam != null) { - PageMethod.startPage(pageParam.getPageNum(), pageParam.getPageSize()); - } - OnlineDatasource filter = MyModelUtil.copyTo(onlineDatasourceDtoFilter, OnlineDatasource.class); - String orderBy = MyOrderParam.buildOrderBy(orderParam, OnlineDatasource.class); - List onlineDatasourceList = - onlineDatasourceService.getNotInOnlineDatasourceListByPageId(pageId, filter, orderBy); - return ResponseResult.success(MyPageUtil.makeResponseData(onlineDatasourceList, OnlineDatasource.INSTANCE)); - } - - /** - * 列出与指定在线表单页面存在多对多关系的在线数据源列表数据。 - * - * @param pageId 主表关联字段。 - * @param onlineDatasourceDtoFilter 在线数据源过滤对象。 - * @param orderParam 排序参数。 - * @param pageParam 分页参数。 - * @return 应答结果对象,返回符合条件的数据列表。 - */ - @PostMapping("/listOnlinePageDatasource") - public ResponseResult> listOnlinePageDatasource( - @MyRequestBody Long pageId, - @MyRequestBody OnlineDatasourceDto onlineDatasourceDtoFilter, - @MyRequestBody MyOrderParam orderParam, - @MyRequestBody MyPageParam pageParam) { - ResponseResult verifyResult = this.doOnlinePageDatasourceVerify(pageId); - if (!verifyResult.isSuccess()) { - return ResponseResult.errorFrom(verifyResult); - } - if (pageParam != null) { - PageMethod.startPage(pageParam.getPageNum(), pageParam.getPageSize()); - } - OnlineDatasource filter = MyModelUtil.copyTo(onlineDatasourceDtoFilter, OnlineDatasource.class); - String orderBy = MyOrderParam.buildOrderBy(orderParam, OnlineDatasource.class); - List onlineDatasourceList = - onlineDatasourceService.getOnlineDatasourceListByPageId(pageId, filter, orderBy); - return ResponseResult.success(MyPageUtil.makeResponseData(onlineDatasourceList, OnlineDatasource.INSTANCE)); - } - - /** - * 批量添加在线表单页面和在线数据源对象的多对多关联关系数据。 - * - * @param pageId 主表主键Id。 - * @param onlinePageDatasourceDtoList 关联对象列表。 - * @return 应答结果对象。 - */ - @PostMapping("/addOnlinePageDatasource") - public ResponseResult addOnlinePageDatasource( - @MyRequestBody Long pageId, - @MyRequestBody(value = "onlinePageDatasourceList", elementType = OnlinePageDatasourceDto.class) List onlinePageDatasourceDtoList) { - if (MyCommonUtil.existBlankArgument(pageId, onlinePageDatasourceDtoList)) { - return ResponseResult.error(ErrorCodeEnum.ARGUMENT_NULL_EXIST); - } - for (OnlinePageDatasourceDto onlinePageDatasource : onlinePageDatasourceDtoList) { - String errorMessage = MyCommonUtil.getModelValidationError(onlinePageDatasource); - if (errorMessage != null) { - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - } - Set datasourceIdSet = - onlinePageDatasourceDtoList.stream().map(OnlinePageDatasourceDto::getDatasourceId).collect(Collectors.toSet()); - if (!onlinePageService.existId(pageId) - || !onlineDatasourceService.existUniqueKeyList("datasourceId", datasourceIdSet)) { - return ResponseResult.error(ErrorCodeEnum.INVALID_RELATED_RECORD_ID); - } - List onlinePageDatasourceList = - MyModelUtil.copyCollectionTo(onlinePageDatasourceDtoList, OnlinePageDatasource.class); - onlinePageService.addOnlinePageDatasourceList(onlinePageDatasourceList, pageId); - return ResponseResult.success(); - } - - /** - * 显示在线表单页面和指定数据源的多对多关联详情数据。 - * - * @param pageId 主表主键Id。 - * @param datasourceId 从表主键Id。 - * @return 应答结果对象,包括中间表详情。 - */ - @GetMapping("/viewOnlinePageDatasource") - public ResponseResult viewOnlinePageDatasource( - @RequestParam Long pageId, @RequestParam Long datasourceId) { - if (MyCommonUtil.existBlankArgument(pageId, datasourceId)) { - return ResponseResult.error(ErrorCodeEnum.ARGUMENT_NULL_EXIST); - } - OnlinePageDatasource onlinePageDatasource = onlinePageService.getOnlinePageDatasource(pageId, datasourceId); - if (onlinePageDatasource == null) { - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST); - } - OnlinePageDatasourceVo onlinePageDatasourceVo = MyModelUtil.copyTo(onlinePageDatasource, OnlinePageDatasourceVo.class); - return ResponseResult.success(onlinePageDatasourceVo); - } - - /** - * 移除指定在线表单页面和指定数据源的多对多关联关系。 - * - * @param pageId 主表主键Id。 - * @param datasourceId 从表主键Id。 - * @return 应答结果对象。 - */ - @PostMapping("/deleteOnlinePageDatasource") - public ResponseResult deleteOnlinePageDatasource( - @MyRequestBody Long pageId, @MyRequestBody Long datasourceId) { - if (MyCommonUtil.existBlankArgument(pageId, datasourceId)) { - return ResponseResult.error(ErrorCodeEnum.ARGUMENT_NULL_EXIST); - } - if (!onlinePageService.removeOnlinePageDatasource(pageId, datasourceId)) { - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST); - } - return ResponseResult.success(); - } - - private ResponseResult doOnlinePageDatasourceVerify(Long pageId) { - if (MyCommonUtil.existBlankArgument(pageId)) { - return ResponseResult.error(ErrorCodeEnum.ARGUMENT_NULL_EXIST); - } - if (!onlinePageService.existId(pageId)) { - return ResponseResult.error(ErrorCodeEnum.INVALID_RELATED_RECORD_ID); - } - return ResponseResult.success(); - } -} diff --git a/images/orange-demo-activiti-service/common/common-online-api/src/main/java/com/orangeforms/common/online/api/controller/OnlineRuleController.java b/images/orange-demo-activiti-service/common/common-online-api/src/main/java/com/orangeforms/common/online/api/controller/OnlineRuleController.java deleted file mode 100644 index 0e977f56..00000000 --- a/images/orange-demo-activiti-service/common/common-online-api/src/main/java/com/orangeforms/common/online/api/controller/OnlineRuleController.java +++ /dev/null @@ -1,148 +0,0 @@ -package com.orangeforms.common.online.api.controller; - -import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; -import io.swagger.annotations.Api; -import com.orangeforms.common.core.annotation.MyRequestBody; -import com.orangeforms.common.core.constant.ErrorCodeEnum; -import com.orangeforms.common.core.object.*; -import com.orangeforms.common.core.util.MyCommonUtil; -import com.orangeforms.common.core.util.MyModelUtil; -import com.orangeforms.common.core.util.MyPageUtil; -import com.orangeforms.common.core.validator.UpdateGroup; -import com.orangeforms.common.online.dto.OnlineRuleDto; -import com.orangeforms.common.online.model.OnlineRule; -import com.orangeforms.common.online.service.OnlineRuleService; -import com.orangeforms.common.online.vo.OnlineRuleVo; -import com.github.pagehelper.page.PageMethod; -import lombok.extern.slf4j.Slf4j; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.*; - -import javax.validation.groups.Default; -import java.util.List; - -/** - * 验证规则操作控制器类。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Api(tags = "验证规则操作接口") -@Slf4j -@RestController -@RequestMapping("${common-online-api.urlPrefix}/onlineRule") -public class OnlineRuleController { - - @Autowired - private OnlineRuleService onlineRuleService; - - /** - * 新增验证规则数据。 - * - * @param onlineRuleDto 新增对象。 - * @return 应答结果对象,包含新增对象主键Id。 - */ - @ApiOperationSupport(ignoreParameters = {"onlineRuleDto.ruleId"}) - @PostMapping("/add") - public ResponseResult add(@MyRequestBody OnlineRuleDto onlineRuleDto) { - String errorMessage = MyCommonUtil.getModelValidationError(onlineRuleDto); - if (errorMessage != null) { - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - OnlineRule onlineRule = MyModelUtil.copyTo(onlineRuleDto, OnlineRule.class); - onlineRule = onlineRuleService.saveNew(onlineRule); - return ResponseResult.success(onlineRule.getRuleId()); - } - - /** - * 更新验证规则数据。 - * - * @param onlineRuleDto 更新对象。 - * @return 应答结果对象。 - */ - @PostMapping("/update") - public ResponseResult update(@MyRequestBody OnlineRuleDto onlineRuleDto) { - String errorMessage = MyCommonUtil.getModelValidationError(onlineRuleDto, Default.class, UpdateGroup.class); - if (errorMessage != null) { - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - OnlineRule onlineRule = MyModelUtil.copyTo(onlineRuleDto, OnlineRule.class); - OnlineRule originalOnlineRule = onlineRuleService.getById(onlineRule.getRuleId()); - if (originalOnlineRule == null) { - // NOTE: 修改下面方括号中的话述 - errorMessage = "数据验证失败,当前在线字段规则并不存在,请刷新后重试!"; - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST, errorMessage); - } - if (!onlineRuleService.update(onlineRule, originalOnlineRule)) { - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST); - } - return ResponseResult.success(); - } - - /** - * 删除验证规则数据。 - * - * @param ruleId 删除对象主键Id。 - * @return 应答结果对象。 - */ - @PostMapping("/delete") - public ResponseResult delete(@MyRequestBody Long ruleId) { - String errorMessage; - if (MyCommonUtil.existBlankArgument(ruleId)) { - return ResponseResult.error(ErrorCodeEnum.ARGUMENT_NULL_EXIST); - } - // 验证关联Id的数据合法性 - OnlineRule originalOnlineRule = onlineRuleService.getById(ruleId); - if (originalOnlineRule == null) { - // NOTE: 修改下面方括号中的话述 - errorMessage = "数据验证失败,当前在线字段规则并不存在,请刷新后重试!"; - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST, errorMessage); - } - if (!onlineRuleService.remove(ruleId)) { - errorMessage = "数据操作失败,删除的对象不存在,请刷新后重试!"; - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST, errorMessage); - } - return ResponseResult.success(); - } - - /** - * 列出符合过滤条件的验证规则列表。 - * - * @param onlineRuleDtoFilter 过滤对象。 - * @param orderParam 排序参数。 - * @param pageParam 分页参数。 - * @return 应答结果对象,包含查询结果集。 - */ - @PostMapping("/list") - public ResponseResult> list( - @MyRequestBody OnlineRuleDto onlineRuleDtoFilter, - @MyRequestBody MyOrderParam orderParam, - @MyRequestBody MyPageParam pageParam) { - if (pageParam != null) { - PageMethod.startPage(pageParam.getPageNum(), pageParam.getPageSize()); - } - OnlineRule onlineRuleFilter = MyModelUtil.copyTo(onlineRuleDtoFilter, OnlineRule.class); - String orderBy = MyOrderParam.buildOrderBy(orderParam, OnlineRule.class); - List onlineRuleList = onlineRuleService.getOnlineRuleListWithRelation(onlineRuleFilter, orderBy); - return ResponseResult.success(MyPageUtil.makeResponseData(onlineRuleList, OnlineRule.INSTANCE)); - } - - /** - * 查看指定验证规则对象详情。 - * - * @param ruleId 指定对象主键Id。 - * @return 应答结果对象,包含对象详情。 - */ - @GetMapping("/view") - public ResponseResult view(@RequestParam Long ruleId) { - if (MyCommonUtil.existBlankArgument(ruleId)) { - return ResponseResult.error(ErrorCodeEnum.ARGUMENT_NULL_EXIST); - } - OnlineRule onlineRule = onlineRuleService.getByIdWithRelation(ruleId, MyRelationParam.full()); - if (onlineRule == null) { - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST); - } - OnlineRuleVo onlineRuleVo = OnlineRule.INSTANCE.fromModel(onlineRule); - return ResponseResult.success(onlineRuleVo); - } -} diff --git a/images/orange-demo-activiti-service/common/common-online-api/src/main/java/com/orangeforms/common/online/api/controller/OnlineTableController.java b/images/orange-demo-activiti-service/common/common-online-api/src/main/java/com/orangeforms/common/online/api/controller/OnlineTableController.java deleted file mode 100644 index 4cebc6a0..00000000 --- a/images/orange-demo-activiti-service/common/common-online-api/src/main/java/com/orangeforms/common/online/api/controller/OnlineTableController.java +++ /dev/null @@ -1,120 +0,0 @@ -package com.orangeforms.common.online.api.controller; - -import io.swagger.annotations.Api; -import cn.jimmyshi.beanquery.BeanQuery; -import com.orangeforms.common.core.annotation.MyRequestBody; -import com.orangeforms.common.core.constant.ErrorCodeEnum; -import com.orangeforms.common.core.object.*; -import com.orangeforms.common.core.util.MyCommonUtil; -import com.orangeforms.common.core.util.MyModelUtil; -import com.orangeforms.common.core.util.MyPageUtil; -import com.orangeforms.common.core.validator.UpdateGroup; -import com.orangeforms.common.online.dto.OnlineTableDto; -import com.orangeforms.common.online.model.OnlineTable; -import com.orangeforms.common.online.service.OnlineTableService; -import com.orangeforms.common.online.vo.OnlineTableVo; -import com.github.pagehelper.page.PageMethod; -import lombok.extern.slf4j.Slf4j; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.*; - -import javax.validation.groups.Default; -import java.util.List; -import java.util.Map; - -/** - * 数据表操作控制器类。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Api(tags = "数据表操作接口") -@Slf4j -@RestController -@RequestMapping("${common-online-api.urlPrefix}/onlineTable") -public class OnlineTableController { - - @Autowired - private OnlineTableService onlineTableService; - - /** - * 更新数据表数据。 - * - * @param onlineTableDto 更新对象。 - * @return 应答结果对象。 - */ - @PostMapping("/update") - public ResponseResult update(@MyRequestBody OnlineTableDto onlineTableDto) { - String errorMessage = MyCommonUtil.getModelValidationError(onlineTableDto, Default.class, UpdateGroup.class); - if (errorMessage != null) { - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - OnlineTable onlineTable = MyModelUtil.copyTo(onlineTableDto, OnlineTable.class); - OnlineTable originalOnlineTable = onlineTableService.getById(onlineTable.getTableId()); - if (originalOnlineTable == null) { - // NOTE: 修改下面方括号中的话述 - errorMessage = "数据验证失败,当前在线数据表并不存在,请刷新后重试!"; - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST, errorMessage); - } - if (!onlineTableService.update(onlineTable, originalOnlineTable)) { - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST); - } - return ResponseResult.success(); - } - - /** - * 列出符合过滤条件的数据表列表。 - * - * @param onlineTableDtoFilter 过滤对象。 - * @param orderParam 排序参数。 - * @param pageParam 分页参数。 - * @return 应答结果对象,包含查询结果集。 - */ - @PostMapping("/list") - public ResponseResult> list( - @MyRequestBody OnlineTableDto onlineTableDtoFilter, - @MyRequestBody MyOrderParam orderParam, - @MyRequestBody MyPageParam pageParam) { - if (pageParam != null) { - PageMethod.startPage(pageParam.getPageNum(), pageParam.getPageSize()); - } - OnlineTable onlineTableFilter = MyModelUtil.copyTo(onlineTableDtoFilter, OnlineTable.class); - String orderBy = MyOrderParam.buildOrderBy(orderParam, OnlineTable.class); - List onlineTableList = - onlineTableService.getOnlineTableListWithRelation(onlineTableFilter, orderBy); - return ResponseResult.success(MyPageUtil.makeResponseData(onlineTableList, OnlineTable.INSTANCE)); - } - - /** - * 查看指定数据表对象详情。 - * - * @param tableId 指定对象主键Id。 - * @return 应答结果对象,包含对象详情。 - */ - @GetMapping("/view") - public ResponseResult view(@RequestParam Long tableId) { - if (MyCommonUtil.existBlankArgument(tableId)) { - return ResponseResult.error(ErrorCodeEnum.ARGUMENT_NULL_EXIST); - } - OnlineTable onlineTable = onlineTableService.getByIdWithRelation(tableId, MyRelationParam.full()); - if (onlineTable == null) { - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST); - } - OnlineTableVo onlineTableVo = OnlineTable.INSTANCE.fromModel(onlineTable); - return ResponseResult.success(onlineTableVo); - } - - /** - * 以字典形式返回全部数据表数据集合。字典的键值为[tableId, modelName]。 - * 白名单接口,登录用户均可访问。 - * - * @param filter 过滤对象。 - * @return 应答结果对象,包含的数据为 List>,map中包含两条记录,key的值分别是id和name,value对应具体数据。 - */ - @GetMapping("/listDict") - public ResponseResult>> listDict(OnlineTable filter) { - List resultList = onlineTableService.getListByFilter(filter); - return ResponseResult.success(BeanQuery.select( - "tableId as id", "modelName as name").executeFrom(resultList)); - } -} diff --git a/images/orange-demo-activiti-service/common/common-online-api/src/main/java/com/orangeforms/common/online/api/controller/OnlineVirtualColumnController.java b/images/orange-demo-activiti-service/common/common-online-api/src/main/java/com/orangeforms/common/online/api/controller/OnlineVirtualColumnController.java deleted file mode 100644 index db7609f6..00000000 --- a/images/orange-demo-activiti-service/common/common-online-api/src/main/java/com/orangeforms/common/online/api/controller/OnlineVirtualColumnController.java +++ /dev/null @@ -1,184 +0,0 @@ -package com.orangeforms.common.online.api.controller; - -import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; -import io.swagger.annotations.Api; -import com.github.pagehelper.page.PageMethod; -import com.orangeforms.common.core.object.*; -import com.orangeforms.common.core.util.*; -import com.orangeforms.common.core.constant.*; -import com.orangeforms.common.core.annotation.MyRequestBody; -import com.orangeforms.common.core.validator.UpdateGroup; -import com.orangeforms.common.online.dto.OnlineVirtualColumnDto; -import com.orangeforms.common.online.model.OnlineVirtualColumn; -import com.orangeforms.common.online.model.constant.VirtualType; -import com.orangeforms.common.online.service.OnlineVirtualColumnService; -import com.orangeforms.common.online.vo.OnlineVirtualColumnVo; -import lombok.extern.slf4j.Slf4j; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.*; - -import java.util.*; -import javax.validation.groups.Default; - -/** - * 虚拟字段操作控制器类。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Api(tags = "虚拟字段操作接口") -@Slf4j -@RestController -@RequestMapping("${common-online-api.urlPrefix}/onlineVirtualColumn") -public class OnlineVirtualColumnController { - - @Autowired - private OnlineVirtualColumnService onlineVirtualColumnService; - - /** - * 新增虚拟字段数据。 - * - * @param onlineVirtualColumnDto 新增对象。 - * @return 应答结果对象,包含新增对象主键Id。 - */ - @ApiOperationSupport(ignoreParameters = {"onlineVirtualColumnDto.virtualColumnId"}) - @PostMapping("/add") - public ResponseResult add(@MyRequestBody OnlineVirtualColumnDto onlineVirtualColumnDto) { - String errorMessage = MyCommonUtil.getModelValidationError(onlineVirtualColumnDto); - if (errorMessage != null) { - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - OnlineVirtualColumn onlineVirtualColumn = - MyModelUtil.copyTo(onlineVirtualColumnDto, OnlineVirtualColumn.class); - ResponseResult verifyResult = this.doVerify(onlineVirtualColumn, null); - if (!verifyResult.isSuccess()) { - return ResponseResult.errorFrom(verifyResult); - } - onlineVirtualColumn = onlineVirtualColumnService.saveNew(onlineVirtualColumn); - return ResponseResult.success(onlineVirtualColumn.getVirtualColumnId()); - } - - /** - * 更新虚拟字段数据。 - * - * @param onlineVirtualColumnDto 更新对象。 - * @return 应答结果对象。 - */ - @PostMapping("/update") - public ResponseResult update(@MyRequestBody OnlineVirtualColumnDto onlineVirtualColumnDto) { - String errorMessage = MyCommonUtil.getModelValidationError( - onlineVirtualColumnDto, Default.class, UpdateGroup.class); - if (errorMessage != null) { - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - OnlineVirtualColumn onlineVirtualColumn = - MyModelUtil.copyTo(onlineVirtualColumnDto, OnlineVirtualColumn.class); - OnlineVirtualColumn originalOnlineVirtualColumn = - onlineVirtualColumnService.getById(onlineVirtualColumn.getVirtualColumnId()); - if (originalOnlineVirtualColumn == null) { - errorMessage = "数据验证失败,当前虚拟字段并不存在,请刷新后重试!"; - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST, errorMessage); - } - ResponseResult verifyResult = this.doVerify(onlineVirtualColumn, originalOnlineVirtualColumn); - if (!verifyResult.isSuccess()) { - return ResponseResult.errorFrom(verifyResult); - } - if (!onlineVirtualColumnService.update(onlineVirtualColumn, originalOnlineVirtualColumn)) { - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST); - } - return ResponseResult.success(); - } - - /** - * 删除虚拟字段数据。 - * - * @param virtualColumnId 删除对象主键Id。 - * @return 应答结果对象。 - */ - @PostMapping("/delete") - public ResponseResult delete(@MyRequestBody Long virtualColumnId) { - String errorMessage; - if (MyCommonUtil.existBlankArgument(virtualColumnId)) { - return ResponseResult.error(ErrorCodeEnum.ARGUMENT_NULL_EXIST); - } - // 验证关联Id的数据合法性 - OnlineVirtualColumn originalOnlineVirtualColumn = onlineVirtualColumnService.getById(virtualColumnId); - if (originalOnlineVirtualColumn == null) { - errorMessage = "数据验证失败,当前虚拟字段并不存在,请刷新后重试!"; - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST, errorMessage); - } - if (!onlineVirtualColumnService.remove(virtualColumnId)) { - errorMessage = "数据操作失败,删除的对象不存在,请刷新后重试!"; - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST, errorMessage); - } - return ResponseResult.success(); - } - - /** - * 列出符合过滤条件的虚拟字段列表。 - * - * @param onlineVirtualColumnDtoFilter 过滤对象。 - * @param orderParam 排序参数。 - * @param pageParam 分页参数。 - * @return 应答结果对象,包含查询结果集。 - */ - @PostMapping("/list") - public ResponseResult> list( - @MyRequestBody OnlineVirtualColumnDto onlineVirtualColumnDtoFilter, - @MyRequestBody MyOrderParam orderParam, - @MyRequestBody MyPageParam pageParam) { - if (pageParam != null) { - PageMethod.startPage(pageParam.getPageNum(), pageParam.getPageSize()); - } - OnlineVirtualColumn onlineVirtualColumnFilter = - MyModelUtil.copyTo(onlineVirtualColumnDtoFilter, OnlineVirtualColumn.class); - String orderBy = MyOrderParam.buildOrderBy(orderParam, OnlineVirtualColumn.class); - List onlineVirtualColumnList = - onlineVirtualColumnService.getOnlineVirtualColumnListWithRelation(onlineVirtualColumnFilter, orderBy); - MyPageData pageData = - MyPageUtil.makeResponseData(onlineVirtualColumnList, OnlineVirtualColumn.INSTANCE); - return ResponseResult.success(pageData); - } - - /** - * 查看指定虚拟字段对象详情。 - * - * @param virtualColumnId 指定对象主键Id。 - * @return 应答结果对象,包含对象详情。 - */ - @GetMapping("/view") - public ResponseResult view(@RequestParam Long virtualColumnId) { - if (MyCommonUtil.existBlankArgument(virtualColumnId)) { - return ResponseResult.error(ErrorCodeEnum.ARGUMENT_NULL_EXIST); - } - OnlineVirtualColumn onlineVirtualColumn = - onlineVirtualColumnService.getByIdWithRelation(virtualColumnId, MyRelationParam.full()); - if (onlineVirtualColumn == null) { - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST); - } - OnlineVirtualColumnVo onlineVirtualColumnVo = - OnlineVirtualColumn.INSTANCE.fromModel(onlineVirtualColumn); - return ResponseResult.success(onlineVirtualColumnVo); - } - - private ResponseResult doVerify( - OnlineVirtualColumn virtualColumn, OnlineVirtualColumn originalVirtualColumn) { - if (!virtualColumn.getVirtualType().equals(VirtualType.AGGREGATION)) { - return ResponseResult.success(); - } - if (MyCommonUtil.existBlankArgument( - virtualColumn.getAggregationColumnId(), - virtualColumn.getAggregationTableId(), - virtualColumn.getDatasourceId(), - virtualColumn.getRelationId(), - virtualColumn.getAggregationType())) { - String errorMessage = "数据验证失败,数据源、关联关系、聚合表、聚合字段和聚合类型,均不能为空!"; - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - CallResult verifyResult = onlineVirtualColumnService.verifyRelatedData(virtualColumn, null); - if (!verifyResult.isSuccess()) { - return ResponseResult.errorFrom(verifyResult); - } - return ResponseResult.success(); - } -} diff --git a/images/orange-demo-activiti-service/common/common-online-api/src/main/resources/META-INF/spring.factories b/images/orange-demo-activiti-service/common/common-online-api/src/main/resources/META-INF/spring.factories deleted file mode 100644 index a894d135..00000000 --- a/images/orange-demo-activiti-service/common/common-online-api/src/main/resources/META-INF/spring.factories +++ /dev/null @@ -1,2 +0,0 @@ -org.springframework.boot.autoconfigure.EnableAutoConfiguration=\ -com.orangeforms.common.online.api.config.OnlineApiAutoConfig \ No newline at end of file diff --git a/images/orange-demo-activiti-service/common/common-online/pom.xml b/images/orange-demo-activiti-service/common/common-online/pom.xml deleted file mode 100644 index 0896a3ee..00000000 --- a/images/orange-demo-activiti-service/common/common-online/pom.xml +++ /dev/null @@ -1,68 +0,0 @@ - - - - common - com.orangeforms - 1.0.0 - - 4.0.0 - - common-online - 1.0.0 - common-online - jar - - - - com.orangeforms - common-core - 1.0.0 - - - com.orangeforms - common-datafilter - 1.0.0 - - - com.orangeforms - common-redis - 1.0.0 - - - com.orangeforms - common-sequence - 1.0.0 - - - com.orangeforms - common-log - 1.0.0 - - - com.orangeforms - common-swagger - 1.0.0 - - - - - - - src/main/resources - - **/*.* - - false - - - src/main/java - - **/*.xml - - false - - - - \ No newline at end of file diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/config/OnlineAutoConfig.java b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/config/OnlineAutoConfig.java deleted file mode 100644 index 14478448..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/config/OnlineAutoConfig.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.orangeforms.common.online.config; - -import org.springframework.boot.context.properties.EnableConfigurationProperties; - -/** - * common-online模块的自动配置引导类。 - * - * @author Jerry - * @date 2021-06-06 - */ -@EnableConfigurationProperties({OnlineProperties.class}) -public class OnlineAutoConfig { -} diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/config/OnlineProperties.java b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/config/OnlineProperties.java deleted file mode 100644 index e8b61571..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/config/OnlineProperties.java +++ /dev/null @@ -1,30 +0,0 @@ -package com.orangeforms.common.online.config; - -import lombok.Data; -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * 在线表单的配置对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Data -@ConfigurationProperties(prefix = "common-online") -public class OnlineProperties { - - /** - * 仅以该前缀开头的数据表才会成为动态表单的候选数据表,如: zz_。如果为空,则所有表均可被选。 - */ - private String tablePrefix; - - /** - * 在线表单业务操作的URL前缀。 - */ - private String operationUrlPrefix; - - /** - * 上传文件的根路径。 - */ - private String uploadFileBaseDir; -} diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/controller/OnlineOperationController.java b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/controller/OnlineOperationController.java deleted file mode 100644 index e14548ac..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/controller/OnlineOperationController.java +++ /dev/null @@ -1,788 +0,0 @@ -package com.orangeforms.common.online.controller; - -import io.swagger.annotations.Api; -import cn.hutool.core.collection.CollUtil; -import cn.hutool.core.util.CharUtil; -import cn.hutool.core.util.StrUtil; -import com.alibaba.fastjson.JSONObject; -import com.orangeforms.common.core.annotation.MyRequestBody; -import com.orangeforms.common.core.constant.ErrorCodeEnum; -import com.orangeforms.common.core.object.*; -import com.orangeforms.common.core.util.ContextUtil; -import com.orangeforms.common.core.util.MyCommonUtil; -import com.orangeforms.common.core.util.MyPageUtil; -import com.orangeforms.common.online.util.OnlineOperationHelper; -import com.orangeforms.common.online.dto.OnlineFilterDto; -import com.orangeforms.common.online.model.*; -import com.orangeforms.common.online.model.constant.DictType; -import com.orangeforms.common.online.model.constant.RelationType; -import com.orangeforms.common.online.object.ColumnData; -import com.orangeforms.common.online.service.*; -import com.orangeforms.common.online.util.OnlineConstant; -import com.github.pagehelper.page.PageMethod; -import lombok.extern.slf4j.Slf4j; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; -import org.springframework.web.bind.annotation.*; -import org.springframework.web.multipart.MultipartFile; - -import javax.servlet.http.HttpServletResponse; -import java.io.IOException; -import java.util.*; -import java.util.stream.Collectors; - -/** - * 在线操作接口的控制器类。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Api(tags = "在线操作接口接口") -@Slf4j -@RestController -@ConditionalOnProperty(name = "common-online.operationEnabled", havingValue = "true") -@RequestMapping("${common-online.operationUrlPrefix}/onlineOperation") -public class OnlineOperationController { - - @Autowired - private OnlineOperationService onlineOperationService; - @Autowired - private OnlineDictService onlineDictService; - @Autowired - private OnlineDatasourceService onlineDatasourceService; - @Autowired - private OnlineDatasourceRelationService onlineDatasourceRelationService; - @Autowired - private OnlineTableService onlineTableService; - @Autowired - private OnlineOperationHelper onlineOperationHelper; - - /** - * 新增数据接口。 - * - * @param datasourceVariableName 数据源名称。 - * @param datasourceId 主表的数据源Id。 - * @param masterData 主表新增数据。 - * @param slaveData 一对多从表新增数据列表。 - * @return 应答结果。 - */ - @PostMapping("/addDatasource/{datasourceVariableName}") - public ResponseResult addDatasource( - @PathVariable("datasourceVariableName") String datasourceVariableName, - @MyRequestBody(required = true) Long datasourceId, - @MyRequestBody(required = true) JSONObject masterData, - @MyRequestBody JSONObject slaveData) throws IOException { - String errorMessage; - // 验证数据源的合法性,同时获取主表对象。 - ResponseResult datasourceResult = - onlineOperationHelper.verifyAndGetDatasource(datasourceId); - if (!datasourceResult.isSuccess()) { - return ResponseResult.errorFrom(datasourceResult); - } - OnlineDatasource datasource = datasourceResult.getData(); - if (!datasource.getVariableName().equals(datasourceVariableName)) { - ContextUtil.getHttpResponse().setStatus(HttpServletResponse.SC_FORBIDDEN); - return ResponseResult.error(ErrorCodeEnum.NO_OPERATION_PERMISSION); - } - OnlineTable masterTable = datasource.getMasterTable(); - ResponseResult> columnDataListResult = - onlineOperationHelper.buildTableData(masterTable, masterData, false, null); - if (!columnDataListResult.isSuccess()) { - return ResponseResult.errorFrom(columnDataListResult); - } - if (slaveData == null) { - onlineOperationService.saveNew(masterTable, columnDataListResult.getData()); - } else { - ResponseResult>>> slaveDataListResult = - onlineOperationHelper.buildSlaveDataList(datasourceId, slaveData); - if (!slaveDataListResult.isSuccess()) { - return ResponseResult.errorFrom(slaveDataListResult); - } - onlineOperationService.saveNewAndSlaveRelation( - masterTable, columnDataListResult.getData(), slaveDataListResult.getData()); - } - return ResponseResult.success(); - } - - /** - * 新增一对多从表数据接口。 - * - * @param datasourceVariableName 数据源名称。 - * @param datasourceId 主表的数据源Id。 - * @param relationId 一对多的关联Id。 - * @param slaveData 一对多从表的新增数据列表。 - * @return 应答结果。 - */ - @PostMapping("/addOneToManyRelation/{datasourceVariableName}") - public ResponseResult addOneToManyRelation( - @PathVariable("datasourceVariableName") String datasourceVariableName, - @MyRequestBody(required = true) Long datasourceId, - @MyRequestBody(required = true) Long relationId, - @MyRequestBody(required = true) JSONObject slaveData) { - String errorMessage; - OnlineDatasource datasource = onlineDatasourceService.getById(datasourceId); - if (datasource == null) { - errorMessage = "数据验证失败,数据源Id并不存在!"; - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - if (!datasource.getVariableName().equals(datasourceVariableName)) { - ContextUtil.getHttpResponse().setStatus(HttpServletResponse.SC_FORBIDDEN); - return ResponseResult.error(ErrorCodeEnum.NO_OPERATION_PERMISSION); - } - ResponseResult relationResult = - onlineOperationHelper.verifyAndGetOneToManyRelation(datasourceId, relationId); - if (!relationResult.isSuccess()) { - return ResponseResult.errorFrom(relationResult); - } - OnlineDatasourceRelation relation = relationResult.getData(); - OnlineTable slaveTable = relation.getSlaveTable(); - // 拆解主表和一对多关联从表的输入参数,并构建出数据表的待插入数据列表。 - ResponseResult> columnDataListResult = - onlineOperationHelper.buildTableData(slaveTable, slaveData, false, null); - if (!columnDataListResult.isSuccess()) { - return ResponseResult.errorFrom(columnDataListResult); - } - onlineOperationService.saveNew(slaveTable, columnDataListResult.getData()); - return ResponseResult.success(); - } - - /** - * 更新主数据接口。 - * - * @param datasourceVariableName 数据源名称。 - * @param datasourceId 主表数据源Id。 - * @param masterData 表数据。这里没有包含的字段将视为NULL。 - * @return 应该结果。 - */ - @PostMapping("/updateDatasource/{datasourceVariableName}") - public ResponseResult updateDatasource( - @PathVariable("datasourceVariableName") String datasourceVariableName, - @MyRequestBody(required = true) Long datasourceId, - @MyRequestBody(required = true) JSONObject masterData) { - String errorMessage; - ResponseResult datasourceResult = - onlineOperationHelper.verifyAndGetDatasource(datasourceId); - if (!datasourceResult.isSuccess()) { - return ResponseResult.errorFrom(datasourceResult); - } - OnlineDatasource datasource = datasourceResult.getData(); - if (!datasource.getVariableName().equals(datasourceVariableName)) { - ContextUtil.getHttpResponse().setStatus(HttpServletResponse.SC_FORBIDDEN); - return ResponseResult.error(ErrorCodeEnum.NO_OPERATION_PERMISSION); - } - OnlineTable masterTable = datasource.getMasterTable(); - ResponseResult> columnDataListResult = - onlineOperationHelper.buildTableData(masterTable, masterData, true, null); - if (!columnDataListResult.isSuccess()) { - return ResponseResult.errorFrom(columnDataListResult); - } - if (!onlineOperationService.update(masterTable, columnDataListResult.getData())) { - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST); - } - return ResponseResult.success(); - } - - /** - * 更新一对多关联数据接口。 - * - * @param datasourceVariableName 数据源名称。 - * @param datasourceId 主表数据源Id。 - * @param relationId 一对多关联Id。 - * @param slaveData 一对多关联从表数据。这里没有包含的字段将视为NULL。 - * @return 应该结果。 - */ - @PostMapping("/updateOneToManyRelation/{datasourceVariableName}") - public ResponseResult updateOneToManyRelation( - @PathVariable("datasourceVariableName") String datasourceVariableName, - @MyRequestBody(required = true) Long datasourceId, - @MyRequestBody(required = true) Long relationId, - @MyRequestBody(required = true) JSONObject slaveData) { - String errorMessage; - OnlineDatasource datasource = onlineDatasourceService.getById(datasourceId); - if (datasource == null) { - errorMessage = "数据验证失败,数据源Id并不存在!"; - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - if (!datasource.getVariableName().equals(datasourceVariableName)) { - ContextUtil.getHttpResponse().setStatus(HttpServletResponse.SC_FORBIDDEN); - return ResponseResult.error(ErrorCodeEnum.NO_OPERATION_PERMISSION); - } - ResponseResult relationResult = - onlineOperationHelper.verifyAndGetOneToManyRelation(datasourceId, relationId); - if (!relationResult.isSuccess()) { - return ResponseResult.errorFrom(relationResult); - } - OnlineTable slaveTable = relationResult.getData().getSlaveTable(); - ResponseResult> columnDataListResult = - onlineOperationHelper.buildTableData(slaveTable, slaveData, true, null); - if (!columnDataListResult.isSuccess()) { - return ResponseResult.errorFrom(columnDataListResult); - } - if (!onlineOperationService.update(slaveTable, columnDataListResult.getData())) { - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST); - } - return ResponseResult.success(); - } - - /** - * 删除主数据接口。 - * - * @param datasourceVariableName 数据源名称。 - * @param datasourceId 主表数据源Id。 - * @param dataId 待删除的数据表主键Id。 - * @return 应该结果。 - */ - @PostMapping("/deleteDatasource/{datasourceVariableName}") - public ResponseResult deleteDatasource( - @PathVariable("datasourceVariableName") String datasourceVariableName, - @MyRequestBody(required = true) Long datasourceId, - @MyRequestBody(required = true) String dataId) { - String errorMessage; - ResponseResult datasourceResult = - onlineOperationHelper.verifyAndGetDatasource(datasourceId); - if (!datasourceResult.isSuccess()) { - return ResponseResult.errorFrom(datasourceResult); - } - OnlineDatasource datasource = datasourceResult.getData(); - if (!datasource.getVariableName().equals(datasourceVariableName)) { - ContextUtil.getHttpResponse().setStatus(HttpServletResponse.SC_FORBIDDEN); - return ResponseResult.error(ErrorCodeEnum.NO_OPERATION_PERMISSION); - } - OnlineTable masterTable = datasource.getMasterTable(); - ResponseResult> relationListResult = - onlineOperationHelper.verifyAndGetRelationList(datasourceId, RelationType.ONE_TO_MANY); - if (!relationListResult.isSuccess()) { - return ResponseResult.errorFrom(relationListResult); - } - List relationList = relationListResult.getData(); - if (!onlineOperationService.delete(masterTable, relationList, dataId)) { - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST); - } - return ResponseResult.success(); - } - - /** - * 删除一对多关联表单条数据接口。 - * - * @param datasourceVariableName 数据源名称。 - * @param datasourceId 主表数据源Id。 - * @param relationId 一对多关联Id。 - * @param dataId 一对多关联表主键Id。 - * @return 应该结果。 - */ - @PostMapping("/deleteOneToManyRelation/{datasourceVariableName}") - public ResponseResult deleteOneToManyRelation( - @PathVariable("datasourceVariableName") String datasourceVariableName, - @MyRequestBody(required = true) Long datasourceId, - @MyRequestBody(required = true) Long relationId, - @MyRequestBody(required = true) String dataId) { - String errorMessage; - OnlineDatasource datasource = onlineDatasourceService.getById(datasourceId); - if (datasource == null) { - errorMessage = "数据验证失败,数据源Id并不存在!"; - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - if (!datasource.getVariableName().equals(datasourceVariableName)) { - ContextUtil.getHttpResponse().setStatus(HttpServletResponse.SC_FORBIDDEN); - return ResponseResult.error(ErrorCodeEnum.NO_OPERATION_PERMISSION); - } - ResponseResult relationResult = - onlineOperationHelper.verifyAndGetOneToManyRelation(datasourceId, relationId); - if (!relationResult.isSuccess()) { - return ResponseResult.errorFrom(relationResult); - } - OnlineDatasourceRelation relation = relationResult.getData(); - if (!onlineOperationService.delete(relation.getSlaveTable(), null, dataId)) { - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST); - } - return ResponseResult.success(); - } - - /** - * 根据数据源Id为动态表单查询数据详情。 - * - * @param datasourceVariableName 数据源名称。 - * @param datasourceId 数据源Id。 - * @param dataId 数据主键Id。 - * @return 详情结果。 - */ - @GetMapping("/viewByDatasourceId/{datasourceVariableName}") - public ResponseResult> viewByDatasourceId( - @PathVariable("datasourceVariableName") String datasourceVariableName, - @RequestParam Long datasourceId, - @RequestParam String dataId) { - String errorMessage; - // 验证数据源及其关联 - ResponseResult datasourceResult = - onlineOperationHelper.verifyAndGetDatasource(datasourceId); - if (!datasourceResult.isSuccess()) { - return ResponseResult.errorFrom(datasourceResult); - } - OnlineDatasource datasource = datasourceResult.getData(); - if (!datasource.getVariableName().equals(datasourceVariableName)) { - ContextUtil.getHttpResponse().setStatus(HttpServletResponse.SC_FORBIDDEN); - return ResponseResult.error(ErrorCodeEnum.NO_OPERATION_PERMISSION); - } - OnlineTable masterTable = datasource.getMasterTable(); - ResponseResult> relationListResult = - onlineOperationHelper.verifyAndGetRelationList(datasourceId, null); - if (!relationListResult.isSuccess()) { - return ResponseResult.errorFrom(relationListResult); - } - List allRelationList = relationListResult.getData(); - List oneToOneRelationList = allRelationList.stream() - .filter(r -> r.getRelationType().equals(RelationType.ONE_TO_ONE)).collect(Collectors.toList()); - Map result = - onlineOperationService.getMasterData(masterTable, oneToOneRelationList, allRelationList, dataId); - return ResponseResult.success(result); - } - - /** - * 根据数据源关联Id为动态表单查询数据详情。 - * - * @param datasourceVariableName 数据源名称。 - * @param datasourceId 数据源Id。 - * @param relationId 一对多关联Id。 - * @param dataId 一对多关联数据主键Id。 - * @return 详情结果。 - */ - @GetMapping("/viewByOneToManyRelationId/{datasourceVariableName}") - public ResponseResult> viewByOneToManyRelationId( - @PathVariable("datasourceVariableName") String datasourceVariableName, - @RequestParam Long datasourceId, - @RequestParam Long relationId, - @RequestParam String dataId) { - String errorMessage; - OnlineDatasource datasource = onlineDatasourceService.getById(datasourceId); - if (datasource == null) { - errorMessage = "数据验证失败,数据源Id并不存在!"; - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - if (!datasource.getVariableName().equals(datasourceVariableName)) { - ContextUtil.getHttpResponse().setStatus(HttpServletResponse.SC_FORBIDDEN); - return ResponseResult.error(ErrorCodeEnum.NO_OPERATION_PERMISSION); - } - ResponseResult relationResult = - onlineOperationHelper.verifyAndGetOneToManyRelation(datasourceId, relationId); - if (!relationResult.isSuccess()) { - return ResponseResult.errorFrom(relationResult); - } - OnlineDatasourceRelation relation = relationResult.getData(); - Map result = onlineOperationService.getSlaveData(relation, dataId); - return ResponseResult.success(result); - } - - /** - * 为数据源主表字段下载文件。 - * - * @param datasourceVariableName 数据源名称。 - * @param datasourceId 数据源Id。 - * @param dataId 附件所在记录的主键Id。 - * @param fieldName 数据表字段名。 - * @param asImage 是否为图片文件。 - * @param response Http 应答对象。 - */ - @GetMapping("/downloadDatasource/{datasourceVariableName}") - public void downloadDatasource( - @PathVariable("datasourceVariableName") String datasourceVariableName, - @RequestParam Long datasourceId, - @RequestParam(required = false) String dataId, - @RequestParam String fieldName, - @RequestParam String filename, - @RequestParam Boolean asImage, - HttpServletResponse response) throws Exception { - if (MyCommonUtil.existBlankArgument(fieldName, filename, asImage)) { - response.setStatus(HttpServletResponse.SC_BAD_REQUEST); - return; - } - ResponseResult datasourceResult = - onlineOperationHelper.verifyAndGetDatasource(datasourceId); - if (!datasourceResult.isSuccess()) { - ResponseResult.output(HttpServletResponse.SC_FORBIDDEN, ResponseResult.errorFrom(datasourceResult)); - return; - } - OnlineDatasource datasource = datasourceResult.getData(); - if (!datasource.getVariableName().equals(datasourceVariableName)) { - ResponseResult.output(HttpServletResponse.SC_FORBIDDEN, - ResponseResult.error(ErrorCodeEnum.NO_OPERATION_PERMISSION)); - return; - } - OnlineTable masterTable = datasource.getMasterTable(); - onlineOperationHelper.doDownload(masterTable, dataId, fieldName, filename, asImage, response); - } - - /** - * 为数据源一对多关联的从表字段下载文件。 - * - * @param datasourceVariableName 数据源名称。 - * @param datasourceId 数据源Id。 - * @param relationId 数据源的一对多关联Id。 - * @param dataId 附件所在记录的主键Id。 - * @param fieldName 数据表字段名。 - * @param asImage 是否为图片文件。 - * @param response Http 应答对象。 - */ - @GetMapping("/downloadOneToManyRelation/{datasourceVariableName}") - public void downloadOneToManyRelation( - @PathVariable("datasourceVariableName") String datasourceVariableName, - @RequestParam Long datasourceId, - @RequestParam Long relationId, - @RequestParam(required = false) String dataId, - @RequestParam String fieldName, - @RequestParam String filename, - @RequestParam Boolean asImage, - HttpServletResponse response) throws Exception { - String errorMessage; - OnlineDatasource datasource = onlineDatasourceService.getById(datasourceId); - if (datasource == null) { - errorMessage = "数据验证失败,数据源Id并不存在!"; - ResponseResult.output(HttpServletResponse.SC_FORBIDDEN, - ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage)); - return; - } - if (!datasource.getVariableName().equals(datasourceVariableName)) { - ResponseResult.output(HttpServletResponse.SC_FORBIDDEN, - ResponseResult.error(ErrorCodeEnum.NO_OPERATION_PERMISSION)); - return; - } - ResponseResult relationResult = - onlineOperationHelper.verifyAndGetOneToManyRelation(datasourceId, relationId); - if (!relationResult.isSuccess()) { - ResponseResult.output(HttpServletResponse.SC_FORBIDDEN, ResponseResult.errorFrom(relationResult)); - return; - } - OnlineTable slaveTable = relationResult.getData().getSlaveTable(); - onlineOperationHelper.doDownload(slaveTable, dataId, fieldName, filename, asImage, response); - } - - /** - * 为数据源主表字段上传文件。 - * - * @param datasourceVariableName 数据源名称。 - * @param datasourceId 数据源Id。 - * @param fieldName 数据表字段名。 - * @param asImage 是否为图片文件。 - * @param uploadFile 上传文件对象。 - */ - @PostMapping("/uploadDatasource/{datasourceVariableName}") - public void uploadDatasource( - @PathVariable("datasourceVariableName") String datasourceVariableName, - @RequestParam Long datasourceId, - @RequestParam String fieldName, - @RequestParam Boolean asImage, - @RequestParam("uploadFile") MultipartFile uploadFile) throws Exception { - String errorMessage; - ResponseResult datasourceResult = - onlineOperationHelper.verifyAndGetDatasource(datasourceId); - if (!datasourceResult.isSuccess()) { - ResponseResult.output(HttpServletResponse.SC_FORBIDDEN, ResponseResult.errorFrom(datasourceResult)); - return; - } - OnlineDatasource datasource = datasourceResult.getData(); - if (!datasource.getVariableName().equals(datasourceVariableName)) { - ResponseResult.output(HttpServletResponse.SC_FORBIDDEN, - ResponseResult.error(ErrorCodeEnum.NO_OPERATION_PERMISSION)); - return; - } - OnlineTable masterTable = datasource.getMasterTable(); - onlineOperationHelper.doUpload(masterTable, fieldName, asImage, uploadFile); - } - - /** - * 为数据源一对多关联的从表字段上传文件。 - * - * @param datasourceVariableName 数据源名称。 - * @param datasourceId 数据源Id。 - * @param relationId 数据源的一对多关联Id。 - * @param fieldName 数据表字段名。 - * @param asImage 是否为图片文件。 - * @param uploadFile 上传文件对象。 - */ - @PostMapping("/uploadOneToManyRelation/{datasourceVariableName}") - public void uploadOneToManyRelation( - @PathVariable("datasourceVariableName") String datasourceVariableName, - @RequestParam Long datasourceId, - @RequestParam Long relationId, - @RequestParam String fieldName, - @RequestParam Boolean asImage, - @RequestParam("uploadFile") MultipartFile uploadFile) throws Exception { - String errorMessage; - OnlineDatasource datasource = onlineDatasourceService.getById(datasourceId); - if (datasource == null) { - errorMessage = "数据验证失败,数据源Id并不存在!"; - ResponseResult.output(HttpServletResponse.SC_FORBIDDEN, - ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage)); - return; - } - if (!datasource.getVariableName().equals(datasourceVariableName)) { - ResponseResult.output(HttpServletResponse.SC_FORBIDDEN, - ResponseResult.error(ErrorCodeEnum.NO_OPERATION_PERMISSION)); - return; - } - ResponseResult relationResult = - onlineOperationHelper.verifyAndGetOneToManyRelation(datasourceId, relationId); - if (!relationResult.isSuccess()) { - ResponseResult.output(HttpServletResponse.SC_FORBIDDEN, ResponseResult.errorFrom(relationResult)); - return; - } - OnlineTable slaveTable = relationResult.getData().getSlaveTable(); - onlineOperationHelper.doUpload(slaveTable, fieldName, asImage, uploadFile); - } - - /** - * 根据数据源Id,以及接口参数,为动态表单查询数据列表。 - * - * @param datasourceVariableName 数据源名称。 - * @param datasourceId 数据源Id。 - * @param filterDtoList 多虑数据对象列表。 - * @param orderParam 排序对象。 - * @param pageParam 分页对象。 - * @return 查询结果。 - */ - @PostMapping("/listByDatasourceId/{datasourceVariableName}") - public ResponseResult>> listByDatasourceId( - @PathVariable("datasourceVariableName") String datasourceVariableName, - @MyRequestBody(required = true) Long datasourceId, - @MyRequestBody(elementType = OnlineFilterDto.class) List filterDtoList, - @MyRequestBody MyOrderParam orderParam, - @MyRequestBody MyPageParam pageParam) { - String errorMessage; - // 1. 验证数据源及其关联 - ResponseResult datasourceResult = - onlineOperationHelper.verifyAndGetDatasource(datasourceId); - if (!datasourceResult.isSuccess()) { - return ResponseResult.errorFrom(datasourceResult); - } - OnlineDatasource datasource = datasourceResult.getData(); - if (!datasource.getVariableName().equals(datasourceVariableName)) { - ContextUtil.getHttpResponse().setStatus(HttpServletResponse.SC_FORBIDDEN); - return ResponseResult.error(ErrorCodeEnum.NO_OPERATION_PERMISSION); - } - OnlineTable masterTable = datasource.getMasterTable(); - ResponseResult> relationListResult = - onlineOperationHelper.verifyAndGetRelationList(datasourceId, null); - if (!relationListResult.isSuccess()) { - return ResponseResult.errorFrom(relationListResult); - } - List allRelationList = relationListResult.getData(); - // 2. 验证数据过滤对象中的表名和字段,确保没有sql注入。 - ResponseResult filterDtoListResult = this.verifyFilterDtoList(filterDtoList); - if (!filterDtoListResult.isSuccess()) { - return ResponseResult.errorFrom(filterDtoListResult); - } - // 3. 解析排序参数,同时确保没有sql注入。 - Map tableMap = new HashMap<>(4); - tableMap.put(masterTable.getTableName(), masterTable); - List oneToOneRelationList = relationListResult.getData().stream() - .filter(r -> r.getRelationType().equals(RelationType.ONE_TO_ONE)).collect(Collectors.toList()); - if (CollUtil.isNotEmpty(oneToOneRelationList)) { - Map relationTableMap = oneToOneRelationList.stream() - .map(OnlineDatasourceRelation::getSlaveTable).collect(Collectors.toMap(OnlineTable::getTableName, c -> c)); - tableMap.putAll(relationTableMap); - } - ResponseResult orderByResult = this.makeOrderBy(orderParam, masterTable, tableMap); - if (!orderByResult.isSuccess()) { - return ResponseResult.errorFrom(orderByResult); - } - String orderBy = orderByResult.getData(); - if (pageParam != null) { - PageMethod.startPage(pageParam.getPageNum(), pageParam.getPageSize()); - } - List> resultList = onlineOperationService.getMasterDataList( - masterTable, oneToOneRelationList, allRelationList, filterDtoList, orderBy); - return ResponseResult.success(MyPageUtil.makeResponseData(resultList)); - } - - /** - * 根据数据源Id和数据源关联Id,以及接口参数,为动态表单查询该一对多关联的数据列表。 - * - * @param datasourceVariableName 数据源名称。 - * @param datasourceId 数据源Id。 - * @param relationId 数据源的一对多关联Id。 - * @param filterDtoList 多虑数据对象列表。 - * @param orderParam 排序对象。 - * @param pageParam 分页对象。 - * @return 查询结果。 - */ - @PostMapping("/listByOneToManyRelationId/{datasourceVariableName}") - public ResponseResult>> listByOneToManyRelationId( - @PathVariable("datasourceVariableName") String datasourceVariableName, - @MyRequestBody(required = true) Long datasourceId, - @MyRequestBody(required = true) Long relationId, - @MyRequestBody(elementType = OnlineFilterDto.class) List filterDtoList, - @MyRequestBody MyOrderParam orderParam, - @MyRequestBody MyPageParam pageParam) { - String errorMessage; - OnlineDatasource datasource = onlineDatasourceService.getById(datasourceId); - if (datasource == null) { - errorMessage = "数据验证失败,数据源Id并不存在!"; - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - if (!datasource.getVariableName().equals(datasourceVariableName)) { - ContextUtil.getHttpResponse().setStatus(HttpServletResponse.SC_FORBIDDEN); - return ResponseResult.error(ErrorCodeEnum.NO_OPERATION_PERMISSION); - } - ResponseResult relationResult = - onlineOperationHelper.verifyAndGetOneToManyRelation(datasourceId, relationId); - if (!relationResult.isSuccess()) { - return ResponseResult.errorFrom(relationResult); - } - OnlineDatasourceRelation relation = relationResult.getData(); - OnlineTable slaveTable = relation.getSlaveTable(); - // 验证数据过滤对象中的表名和字段,确保没有sql注入。 - ResponseResult filterDtoListResult = this.verifyFilterDtoList(filterDtoList); - if (!filterDtoListResult.isSuccess()) { - return ResponseResult.errorFrom(filterDtoListResult); - } - Map tableMap = new HashMap<>(1); - tableMap.put(slaveTable.getTableName(), slaveTable); - if (CollUtil.isNotEmpty(orderParam)) { - for (MyOrderParam.OrderInfo orderInfo : orderParam) { - orderInfo.setFieldName(StrUtil.removePrefix(orderInfo.getFieldName(), - relation.getVariableName() + OnlineConstant.RELATION_TABLE_COLUMN_SEPARATOR)); - } - } - ResponseResult orderByResult = this.makeOrderBy(orderParam, slaveTable, tableMap); - if (!orderByResult.isSuccess()) { - return ResponseResult.errorFrom(orderByResult); - } - String orderBy = orderByResult.getData(); - // 分页。 - if (pageParam != null) { - PageMethod.startPage(pageParam.getPageNum(), pageParam.getPageSize()); - } - List> resultList = - onlineOperationService.getSlaveDataList(relation, filterDtoList, orderBy); - return ResponseResult.success(MyPageUtil.makeResponseData(resultList)); - } - - /** - * 查询字典数据,并以字典的约定方式,返回数据结果集。 - * - * @param dictId 字典Id。 - * @param filterDtoList 字典的过滤对象列表。 - * @return 字典数据列表。 - */ - @PostMapping("/listDict") - public ResponseResult>> listDict( - @MyRequestBody(required = true) Long dictId, - @MyRequestBody(elementType = OnlineFilterDto.class) List filterDtoList) { - String errorMessage; - OnlineDict dict = onlineDictService.getById(dictId); - if (dict == null) { - errorMessage = "数据验证失败,字典Id并不存在!"; - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - if (!dict.getDictType().equals(DictType.TABLE)) { - errorMessage = "数据验证失败,该接口仅支持数据表字典!"; - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - if (CollUtil.isNotEmpty(filterDtoList)) { - for (OnlineFilterDto filter : filterDtoList) { - if (!this.checkTableAndColumnName(filter.getColumnName())) { - errorMessage = "数据验证失败,过滤字段名 [" - + filter.getColumnName() + " ] 包含 (数字、字母和下划线) 之外的非法字符!"; - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - } - } - List> resultList = onlineOperationService.getDictDataList(dict, filterDtoList); - return ResponseResult.success(resultList); - } - - private ResponseResult verifyFilterDtoList(List filterDtoList) { - if (CollUtil.isEmpty(filterDtoList)) { - return ResponseResult.success(); - } - String errorMessage; - for (OnlineFilterDto filter : filterDtoList) { - if (!this.checkTableAndColumnName(filter.getTableName())) { - errorMessage = "数据验证失败,过滤表名 [" - + filter.getColumnName() + " ] 包含 (数字、字母和下划线) 之外的非法字符!"; - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - if (!this.checkTableAndColumnName(filter.getColumnName())) { - errorMessage = "数据验证失败,过滤字段名 [" - + filter.getColumnName() + " ] 包含 (数字、字母和下划线) 之外的非法字符!"; - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - } - return ResponseResult.success(); - } - - private boolean checkTableAndColumnName(String name) { - if (StrUtil.isBlank(name)) { - return true; - } - for (int i = 0; i < name.length(); i++) { - char c = name.charAt(i); - if (!CharUtil.isLetterOrNumber(c) && !CharUtil.equals('_', c, false)) { - return false; - } - } - return true; - } - - private ResponseResult makeOrderBy( - MyOrderParam orderParam, OnlineTable masterTable, Map tableMap) { - if (CollUtil.isEmpty(orderParam)) { - return ResponseResult.success(null); - } - String errorMessage; - StringBuilder sb = new StringBuilder(128); - for (int i = 0; i < orderParam.size(); i++) { - MyOrderParam.OrderInfo orderInfo = orderParam.get(i); - boolean found = false; - String[] orderArray = StrUtil.splitToArray(orderInfo.getFieldName(), '.'); - // 如果没有前缀,我们就可以默认为主表的字段。 - if (orderArray.length == 1) { - for (OnlineColumn column : masterTable.getColumnMap().values()) { - if (column.getColumnName().equals(orderArray[0])) { - sb.append(masterTable.getTableName()).append(".").append(column.getColumnName()); - if (!orderInfo.getAsc()) { - sb.append(" DESC"); - } - if (i != orderParam.size() - 1) { - sb.append(", "); - } - found = true; - break; - } - } - if (!found) { - errorMessage = "数据验证失败,排序字段 [" - + orderInfo.getFieldName() + "] 在主表 [" + masterTable.getTableName() + "] 中并不存在!"; - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - } else { - String tableName = orderArray[0]; - String columnName = orderArray[1]; - OnlineTable table = tableMap.get(tableName); - if (table == null) { - errorMessage = "数据验证失败,排序字段 [" - + orderInfo.getFieldName() + "] 的数据表 [" + tableName + "] 并不属于当前数据源!"; - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - for (OnlineColumn column : table.getColumnMap().values()) { - if (column.getColumnName().equals(columnName)) { - sb.append(tableName).append(".").append(columnName); - if (!orderInfo.getAsc()) { - sb.append(" DESC"); - } - if (i != orderParam.size() - 1) { - sb.append(", "); - } - found = true; - break; - } - } - if (!found) { - errorMessage = "数据验证失败,排序字段 [" - + orderInfo.getFieldName() + "] 在数据表 [" + tableName + "] 中并不存在!"; - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - } - } - return ResponseResult.success(sb.toString()); - } -} diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/OnlineColumnMapper.java b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/OnlineColumnMapper.java deleted file mode 100644 index abbd3b22..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/OnlineColumnMapper.java +++ /dev/null @@ -1,26 +0,0 @@ -package com.orangeforms.common.online.dao; - -import com.orangeforms.common.core.base.dao.BaseDaoMapper; -import com.orangeforms.common.online.model.OnlineColumn; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * 字段数据数据操作访问接口。 - * - * @author Jerry - * @date 2021-06-06 - */ -public interface OnlineColumnMapper extends BaseDaoMapper { - - /** - * 获取过滤后的对象列表。 - * - * @param onlineColumnFilter 主表过滤对象。 - * @param orderBy 排序字符串,order by从句的参数。 - * @return 对象列表。 - */ - List getOnlineColumnList( - @Param("onlineColumnFilter") OnlineColumn onlineColumnFilter, @Param("orderBy") String orderBy); -} diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/OnlineColumnRuleMapper.java b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/OnlineColumnRuleMapper.java deleted file mode 100644 index 86e52a09..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/OnlineColumnRuleMapper.java +++ /dev/null @@ -1,25 +0,0 @@ -package com.orangeforms.common.online.dao; - -import com.orangeforms.common.core.base.dao.BaseDaoMapper; -import com.orangeforms.common.online.model.OnlineColumnRule; -import org.apache.ibatis.annotations.Param; - -import java.util.List; -import java.util.Set; - -/** - * 数据操作访问接口。 - * - * @author Jerry - * @date 2021-06-06 - */ -public interface OnlineColumnRuleMapper extends BaseDaoMapper { - - /** - * 获取指定字段Id关联的字段规则对象列表,同时还关联了每个OnlineRule对象。 - * - * @param columnIdSet 字段Id集合。 - * @return 关联的字段规则对象列表。 - */ - List getOnlineColumnRuleListByColumnIds(@Param("columnIdSet") Set columnIdSet); -} diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/OnlineDatasourceMapper.java b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/OnlineDatasourceMapper.java deleted file mode 100644 index 04d2a01d..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/OnlineDatasourceMapper.java +++ /dev/null @@ -1,61 +0,0 @@ -package com.orangeforms.common.online.dao; - -import com.orangeforms.common.core.base.dao.BaseDaoMapper; -import com.orangeforms.common.online.model.OnlineDatasource; -import org.apache.ibatis.annotations.Param; - -import java.util.List; -import java.util.Set; - -/** - * 数据模型数据操作访问接口。 - * - * @author Jerry - * @date 2021-06-06 - */ -public interface OnlineDatasourceMapper extends BaseDaoMapper { - - /** - * 获取过滤后的对象列表。 - * - * @param onlineDatasourceFilter 主表过滤对象。 - * @param orderBy 排序字符串,order by从句的参数。 - * @return 对象列表。 - */ - List getOnlineDatasourceList( - @Param("onlineDatasourceFilter") OnlineDatasource onlineDatasourceFilter, @Param("orderBy") String orderBy); - - /** - * 根据关联主表Id,获取关联从表数据列表。 - * - * @param pageId 关联主表Id。 - * @param onlineDatasourceFilter 从表过滤对象。 - * @param orderBy 排序字符串,order by从句的参数。 - * @return 从表数据列表。 - */ - List getOnlineDatasourceListByPageId( - @Param("pageId") Long pageId, - @Param("onlineDatasourceFilter") OnlineDatasource onlineDatasourceFilter, - @Param("orderBy") String orderBy); - - /** - * 根据关联主表Id,获取关联从表中没有和主表建立关联关系的数据列表。 - * - * @param pageId 关联主表Id。 - * @param onlineDatasourceFilter 过滤对象。 - * @param orderBy 排序字符串,order by从句的参数。 - * @return 与主表没有建立关联的从表数据列表。 - */ - List getNotInOnlineDatasourceListByPageId( - @Param("pageId") Long pageId, - @Param("onlineDatasourceFilter") OnlineDatasource onlineDatasourceFilter, - @Param("orderBy") String orderBy); - - /** - * 根据在线表单Id集合,获取关联的在线数据源对象列表。 - * - * @param formIdSet 在线表单Id集合。 - * @return 与参数表单Id关联的数据源列表。 - */ - List getOnlineDatasourceListByFormIds(@Param("formIdSet") Set formIdSet); -} diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/OnlineDatasourceRelationMapper.java b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/OnlineDatasourceRelationMapper.java deleted file mode 100644 index a2cf1021..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/OnlineDatasourceRelationMapper.java +++ /dev/null @@ -1,26 +0,0 @@ -package com.orangeforms.common.online.dao; - -import com.orangeforms.common.core.base.dao.BaseDaoMapper; -import com.orangeforms.common.online.model.OnlineDatasourceRelation; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * 数据关联数据操作访问接口。 - * - * @author Jerry - * @date 2021-06-06 - */ -public interface OnlineDatasourceRelationMapper extends BaseDaoMapper { - - /** - * 获取过滤后的对象列表。 - * - * @param filter 主表过滤对象。 - * @param orderBy 排序字符串,order by从句的参数。 - * @return 对象列表。 - */ - List getOnlineDatasourceRelationList( - @Param("filter") OnlineDatasourceRelation filter, @Param("orderBy") String orderBy); -} diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/OnlineDatasourceTableMapper.java b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/OnlineDatasourceTableMapper.java deleted file mode 100644 index 8c219f9b..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/OnlineDatasourceTableMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.orangeforms.common.online.dao; - -import com.orangeforms.common.core.base.dao.BaseDaoMapper; -import com.orangeforms.common.online.model.OnlineDatasourceTable; - -/** - * 数据操作访问接口。 - * - * @author Jerry - * @date 2021-06-06 - */ -public interface OnlineDatasourceTableMapper extends BaseDaoMapper { -} diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/OnlineDblinkMapper.java b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/OnlineDblinkMapper.java deleted file mode 100644 index 3fb2e409..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/OnlineDblinkMapper.java +++ /dev/null @@ -1,113 +0,0 @@ -package com.orangeforms.common.online.dao; - -import com.orangeforms.common.core.base.dao.BaseDaoMapper; -import com.orangeforms.common.online.model.OnlineDblink; -import org.apache.ibatis.annotations.Param; -import org.apache.ibatis.annotations.Select; - -import java.util.List; -import java.util.Map; - -/** - * 数据库链接数据操作访问接口。 - * - * @author Jerry - * @date 2021-06-06 - */ -public interface OnlineDblinkMapper extends BaseDaoMapper { - - /** - * 获取过滤后的对象列表。 - * - * @param onlineDblinkFilter 主表过滤对象。 - * @param orderBy 排序字符串,order by从句的参数。 - * @return 对象列表。 - */ - List getOnlineDblinkList( - @Param("onlineDblinkFilter") OnlineDblink onlineDblinkFilter, @Param("orderBy") String orderBy); - - /** - * 获取当前数据库链接下的所有用于动态表单的表。 - * - * @param prefix 动态表单所使用的表的前缀。如果为空,则返回所有数据表。 - * @return 所有用于动态表单的表。 - */ - @Select("") - List> getTableListWithPrefix(@Param("prefix") String prefix); - - /** - * 获取当前数据库链接下指定数据库表的数据。 - * - * @param tableName 数据库表名。 - * @return 表数据。 - */ - @Select("SELECT \n" + - " table_name tableName, \n" + - " table_comment tableComment, \n" + - " create_time createTime \n" + - "FROM \n" + - " information_schema.tables \n" + - "WHERE table_schema = (SELECT database()) AND table_name = #{tableName}") - Map getTableByName(@Param("tableName") String tableName); - - /** - * 获取指定表的字段列表。 - * - * @param tableName 指定的表名。 - * @return 指定表的字段列表。 - */ - @Select("SELECT \n" + - " column_name columnName, \n" + - " data_type columnType, \n" + - " column_type fullColumnType, \n" + - " column_comment columnComment, \n" + - " CASE WHEN column_key = 'PRI' THEN 1 ELSE 0 END AS primaryKey, \n" + - " is_nullable nullable, \n" + - " ordinal_position columnShowOrder, \n" + - " extra, \n" + - " CHARACTER_MAXIMUM_LENGTH stringPrecision, \n" + - " numeric_precision numericPrecision, \n" + - " COLUMN_DEFAULT columnDefault \n" + - "FROM information_schema.columns \n" + - "WHERE table_name = #{tableName} \n" + - " AND table_schema = (SELECT database()) ORDER BY ordinal_position") - List> getTableColumnList(@Param("tableName") String tableName); - - /** - * 获取指定表的字段对象。 - * - * @param tableName 指定的表名。 - * @param columnName 指定的字段名。 - * @return 指定表的字段。 - */ - @Select("SELECT \n" + - " column_name columnName, \n" + - " data_type columnType, \n" + - " column_type fullColumnType, \n" + - " column_comment columnComment, \n" + - " CASE WHEN column_key = 'PRI' THEN 1 ELSE 0 END AS primaryKey, \n" + - " is_nullable nullable, \n" + - " ordinal_position columnShowOrder, \n" + - " extra, \n" + - " CHARACTER_MAXIMUM_LENGTH stringPrecision, \n" + - " numeric_precision numericPrecision, \n" + - " COLUMN_DEFAULT columnDefault \n" + - "FROM information_schema.columns \n" + - "WHERE table_name = #{tableName} \n" + - " AND column_name = #{columnName} \n" + - " AND table_schema = (SELECT database()) ORDER BY ordinal_position") - Map getTableColumnByName( - @Param("tableName") String tableName, @Param("columnName") String columnName); -} diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/OnlineDictMapper.java b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/OnlineDictMapper.java deleted file mode 100644 index 40b0937a..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/OnlineDictMapper.java +++ /dev/null @@ -1,26 +0,0 @@ -package com.orangeforms.common.online.dao; - -import com.orangeforms.common.core.base.dao.BaseDaoMapper; -import com.orangeforms.common.online.model.OnlineDict; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * 在线表单字典数据操作访问接口。 - * - * @author Jerry - * @date 2021-06-06 - */ -public interface OnlineDictMapper extends BaseDaoMapper { - - /** - * 获取过滤后的对象列表。 - * - * @param onlineDictFilter 主表过滤对象。 - * @param orderBy 排序字符串,order by从句的参数。 - * @return 对象列表。 - */ - List getOnlineDictList( - @Param("onlineDictFilter") OnlineDict onlineDictFilter, @Param("orderBy") String orderBy); -} diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/OnlineFormDatasourceMapper.java b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/OnlineFormDatasourceMapper.java deleted file mode 100644 index 1f4a70c5..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/OnlineFormDatasourceMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.orangeforms.common.online.dao; - -import com.orangeforms.common.core.base.dao.BaseDaoMapper; -import com.orangeforms.common.online.model.OnlineFormDatasource; - -/** - * 在线表单与数据源多对多关联的数据操作访问接口。 - * - * @author Jerry - * @date 2021-06-06 - */ -public interface OnlineFormDatasourceMapper extends BaseDaoMapper { -} diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/OnlineFormMapper.java b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/OnlineFormMapper.java deleted file mode 100644 index 2140d67b..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/OnlineFormMapper.java +++ /dev/null @@ -1,26 +0,0 @@ -package com.orangeforms.common.online.dao; - -import com.orangeforms.common.core.base.dao.BaseDaoMapper; -import com.orangeforms.common.online.model.OnlineForm; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * 在线表单数据操作访问接口。 - * - * @author Jerry - * @date 2021-06-06 - */ -public interface OnlineFormMapper extends BaseDaoMapper { - - /** - * 获取过滤后的对象列表。 - * - * @param onlineFormFilter 主表过滤对象。 - * @param orderBy 排序字符串,order by从句的参数。 - * @return 对象列表。 - */ - List getOnlineFormList( - @Param("onlineFormFilter") OnlineForm onlineFormFilter, @Param("orderBy") String orderBy); -} diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/OnlineOperationMapper.java b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/OnlineOperationMapper.java deleted file mode 100644 index c162d4ed..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/OnlineOperationMapper.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.orangeforms.common.online.dao; - -import com.orangeforms.common.online.dto.OnlineFilterDto; -import com.orangeforms.common.online.object.ColumnData; -import com.orangeforms.common.online.object.JoinTableInfo; -import org.apache.ibatis.annotations.*; - -import java.util.List; -import java.util.Map; - -/** - * 在线表单运行时数据操作访问接口。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Mapper -public interface OnlineOperationMapper { - - /** - * 插入新数据。 - * - * @param tableName 数据表名。 - * @param columnNames 字段名列表。 - * @param columnValueList 字段值列表。 - */ - @Insert("") - void insert( - @Param("tableName") String tableName, - @Param("columnNames") String columnNames, - @Param("columnValueList") List columnValueList); - - /** - * 更新表数据。 - * - * @param tableName 数据表名。 - * @param updateColumnList 更新字段列表。 - * @param whereColumnList 过滤字段列表。 - * @param dataPermFilter 数据权限过滤字符串。 - * @return 更新行数。 - */ - @Update("") - int update( - @Param("tableName") String tableName, - @Param("updateColumnList") List updateColumnList, - @Param("whereColumnList") List whereColumnList, - @Param("dataPermFilter") String dataPermFilter); - - /** - * 删除指定数据。 - * - * @param tableName 表名。 - * @param filterList SQL过滤条件列表。 - * @param dataPermFilter 数据权限过滤字符串。 - * @return 删除行数。 - */ - @Delete("") - int delete( - @Param("tableName") String tableName, - @Param("filterList") List filterList, - @Param("dataPermFilter") String dataPermFilter); - - /** - * 执行动态查询,并返回查询结果集。 - * - * @param masterTableName 主表名称。 - * @param joinInfoList 关联表信息列表。 - * @param selectFields 返回字段列表,逗号分隔。 - * @param filterList SQL过滤条件列表。 - * @param dataPermFilter 数据权限过滤字符串。 - * @param orderBy 排序字符串。 - * @return 查询结果集。 - */ - @Select("") - List> getList( - @Param("masterTableName") String masterTableName, - @Param("joinInfoList") List joinInfoList, - @Param("selectFields") String selectFields, - @Param("filterList") List filterList, - @Param("dataPermFilter") String dataPermFilter, - @Param("orderBy") String orderBy); - - /** - * 以字典键值对的方式返回数据。 - * - * @param tableName 表名称。 - * @param selectFields 返回字段列表,逗号分隔。 - * @param filterList SQL过滤条件列表。 - * @param dataPermFilter 数据权限过滤字符串。 - * @return 查询结果集。 - */ - @Select("") - List> getDictList( - @Param("tableName") String tableName, - @Param("selectFields") String selectFields, - @Param("filterList") List filterList, - @Param("dataPermFilter") String dataPermFilter); - - /** - * 根据指定的表名、显示字段列表、过滤条件字符串和分组字段,返回聚合计算后的查询结果。 - * - * @param selectTable 表名称。 - * @param selectFields 返回字段列表,逗号分隔。 - * @param whereClause SQL常量形式的条件从句。 - * @param groupBy 分组字段列表,逗号分隔。 - * @return 对象可选字段Map列表。 - */ - @Select("") - List> getGroupedListByCondition( - @Param("selectTable") String selectTable, - @Param("selectFields") String selectFields, - @Param("whereClause") String whereClause, - @Param("groupBy") String groupBy); -} diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/OnlinePageDatasourceMapper.java b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/OnlinePageDatasourceMapper.java deleted file mode 100644 index 15b1204e..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/OnlinePageDatasourceMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.orangeforms.common.online.dao; - -import com.orangeforms.common.core.base.dao.BaseDaoMapper; -import com.orangeforms.common.online.model.OnlinePageDatasource; - -/** - * 在线表单页面和数据源关联对象的数据操作访问接口。 - * - * @author Jerry - * @date 2021-06-06 - */ -public interface OnlinePageDatasourceMapper extends BaseDaoMapper { -} diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/OnlinePageMapper.java b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/OnlinePageMapper.java deleted file mode 100644 index ddcd34b6..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/OnlinePageMapper.java +++ /dev/null @@ -1,35 +0,0 @@ -package com.orangeforms.common.online.dao; - -import com.orangeforms.common.core.base.dao.BaseDaoMapper; -import com.orangeforms.common.online.model.OnlinePage; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * 在线表单页面数据操作访问接口。 - * - * @author Jerry - * @date 2021-06-06 - */ -public interface OnlinePageMapper extends BaseDaoMapper { - - /** - * 获取过滤后的对象列表。 - * - * @param onlinePageFilter 主表过滤对象。 - * @param orderBy 排序字符串,order by从句的参数。 - * @return 对象列表。 - */ - List getOnlinePageList( - @Param("onlinePageFilter") OnlinePage onlinePageFilter, @Param("orderBy") String orderBy); - - /** - /** - * 根据数据源Id,返回使用该数据源的OnlinePage对象。 - * - * @param datasourceId 数据源Id。 - * @return 使用该数据源的页面列表。 - */ - List getOnlinePageListByDatasourceId(@Param("datasourceId") Long datasourceId); -} diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/OnlineRuleMapper.java b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/OnlineRuleMapper.java deleted file mode 100644 index eb365b58..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/OnlineRuleMapper.java +++ /dev/null @@ -1,52 +0,0 @@ -package com.orangeforms.common.online.dao; - -import com.orangeforms.common.core.base.dao.BaseDaoMapper; -import com.orangeforms.common.online.model.OnlineRule; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * 验证规则数据操作访问接口。 - * - * @author Jerry - * @date 2021-06-06 - */ -public interface OnlineRuleMapper extends BaseDaoMapper { - - /** - * 获取过滤后的对象列表。 - * - * @param onlineRuleFilter 主表过滤对象。 - * @param orderBy 排序字符串,order by从句的参数。 - * @return 对象列表。 - */ - List getOnlineRuleList( - @Param("onlineRuleFilter") OnlineRule onlineRuleFilter, @Param("orderBy") String orderBy); - - /** - * 根据关联主表Id,获取关联从表数据列表。 - * - * @param columnId 关联主表Id。 - * @param onlineRuleFilter 从表过滤对象。 - * @param orderBy 排序字符串,order by从句的参数。 - * @return 从表数据列表。 - */ - List getOnlineRuleListByColumnId( - @Param("columnId") Long columnId, - @Param("onlineRuleFilter") OnlineRule onlineRuleFilter, - @Param("orderBy") String orderBy); - - /** - * 根据关联主表Id,获取关联从表中没有和主表建立关联关系的数据列表。 - * - * @param columnId 关联主表Id。 - * @param onlineRuleFilter 过滤对象。 - * @param orderBy 排序字符串,order by从句的参数。 - * @return 与主表没有建立关联的从表数据列表。 - */ - List getNotInOnlineRuleListByColumnId( - @Param("columnId") Long columnId, - @Param("onlineRuleFilter") OnlineRule onlineRuleFilter, - @Param("orderBy") String orderBy); -} diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/OnlineTableMapper.java b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/OnlineTableMapper.java deleted file mode 100644 index a897e7d0..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/OnlineTableMapper.java +++ /dev/null @@ -1,34 +0,0 @@ -package com.orangeforms.common.online.dao; - -import com.orangeforms.common.core.base.dao.BaseDaoMapper; -import com.orangeforms.common.online.model.OnlineTable; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * 数据表数据操作访问接口。 - * - * @author Jerry - * @date 2021-06-06 - */ -public interface OnlineTableMapper extends BaseDaoMapper { - - /** - * 获取过滤后的对象列表。 - * - * @param onlineTableFilter 主表过滤对象。 - * @param orderBy 排序字符串,order by从句的参数。 - * @return 对象列表。 - */ - List getOnlineTableList( - @Param("onlineTableFilter") OnlineTable onlineTableFilter, @Param("orderBy") String orderBy); - - /** - * 根据数据源Id,获取该数据源及其关联所引用的数据表列表。 - * - * @param datasourceId 指定的数据源Id。 - * @return 该数据源及其关联所引用的数据表列表。 - */ - List getOnlineTableListByDatasourceId(@Param("datasourceId") Long datasourceId); -} diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/OnlineVirtualColumnMapper.java b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/OnlineVirtualColumnMapper.java deleted file mode 100644 index c2b5a4c9..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/OnlineVirtualColumnMapper.java +++ /dev/null @@ -1,26 +0,0 @@ -package com.orangeforms.common.online.dao; - -import com.orangeforms.common.core.base.dao.BaseDaoMapper; -import com.orangeforms.common.online.model.OnlineVirtualColumn; -import org.apache.ibatis.annotations.Param; - -import java.util.*; - -/** - * 虚拟字段数据操作访问接口。 - * - * @author Jerry - * @date 2021-06-06 - */ -public interface OnlineVirtualColumnMapper extends BaseDaoMapper { - - /** - * 获取过滤后的对象列表。 - * - * @param onlineVirtualColumnFilter 主表过滤对象。 - * @param orderBy 排序字符串,order by从句的参数。 - * @return 对象列表。 - */ - List getOnlineVirtualColumnList( - @Param("onlineVirtualColumnFilter") OnlineVirtualColumn onlineVirtualColumnFilter, @Param("orderBy") String orderBy); -} diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/mapper/OnlineColumnMapper.xml b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/mapper/OnlineColumnMapper.xml deleted file mode 100644 index c6bc89ac..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/mapper/OnlineColumnMapper.xml +++ /dev/null @@ -1,56 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - AND zz_online_column.table_id = #{onlineColumnFilter.tableId} - - - AND zz_online_column.column_name = #{onlineColumnFilter.columnName} - - - - - - diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/mapper/OnlineColumnRuleMapper.xml b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/mapper/OnlineColumnRuleMapper.xml deleted file mode 100644 index 51911c7d..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/mapper/OnlineColumnRuleMapper.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/mapper/OnlineDatasourceMapper.xml b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/mapper/OnlineDatasourceMapper.xml deleted file mode 100644 index 62a28c08..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/mapper/OnlineDatasourceMapper.xml +++ /dev/null @@ -1,89 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - AND zz_online_datasource.datasource_name = #{onlineDatasourceFilter.datasourceName} - - - - - - - - - - - - diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/mapper/OnlineDatasourceRelationMapper.xml b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/mapper/OnlineDatasourceRelationMapper.xml deleted file mode 100644 index a9200b1d..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/mapper/OnlineDatasourceRelationMapper.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - AND zz_online_datasource_relation.relation_name = #{filter.relationName} - - - AND zz_online_datasource_relation.datasource_id = #{filter.datasourceId} - - - - - - diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/mapper/OnlineDatasourceTableMapper.xml b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/mapper/OnlineDatasourceTableMapper.xml deleted file mode 100644 index d3ba6aaa..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/mapper/OnlineDatasourceTableMapper.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/mapper/OnlineDblinkMapper.xml b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/mapper/OnlineDblinkMapper.xml deleted file mode 100644 index 99ffaf81..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/mapper/OnlineDblinkMapper.xml +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/mapper/OnlineDictMapper.xml b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/mapper/OnlineDictMapper.xml deleted file mode 100644 index a0cd621b..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/mapper/OnlineDictMapper.xml +++ /dev/null @@ -1,52 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - AND zz_online_dict.dict_name = #{onlineDictFilter.dictName} - - - AND zz_online_dict.dict_type = #{onlineDictFilter.dictType} - - - - - - diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/mapper/OnlineFormDatasourceMapper.xml b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/mapper/OnlineFormDatasourceMapper.xml deleted file mode 100644 index 5d0924ff..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/mapper/OnlineFormDatasourceMapper.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/mapper/OnlineFormMapper.xml b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/mapper/OnlineFormMapper.xml deleted file mode 100644 index 2cae7f70..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/mapper/OnlineFormMapper.xml +++ /dev/null @@ -1,51 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - AND zz_online_form.page_id = #{onlineFormFilter.pageId} - - - AND zz_online_form.form_code = #{onlineFormFilter.formCode} - - - AND zz_online_form.form_name = #{onlineFormFilter.formName} - - - AND zz_online_form.form_type = #{onlineFormFilter.formType} - - - - - - diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/mapper/OnlinePageDatasourceMapper.xml b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/mapper/OnlinePageDatasourceMapper.xml deleted file mode 100644 index 47d8b88d..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/mapper/OnlinePageDatasourceMapper.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/mapper/OnlinePageMapper.xml b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/mapper/OnlinePageMapper.xml deleted file mode 100644 index 9f72c41a..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/mapper/OnlinePageMapper.xml +++ /dev/null @@ -1,50 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - AND zz_online_page.page_code = #{onlinePageFilter.pageCode} - - - AND zz_online_page.page_name = #{onlinePageFilter.pageName} - - - AND zz_online_page.page_type = #{onlinePageFilter.pageType} - - - - - - - - diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/mapper/OnlineRuleMapper.xml b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/mapper/OnlineRuleMapper.xml deleted file mode 100644 index f9d1c8ba..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/mapper/OnlineRuleMapper.xml +++ /dev/null @@ -1,66 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - AND zz_online_rule.deleted_flag = ${@com.orangeforms.common.core.constant.GlobalDeletedFlag@NORMAL} - - - - - - - - diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/mapper/OnlineTableMapper.xml b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/mapper/OnlineTableMapper.xml deleted file mode 100644 index 4bc9b6be..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/mapper/OnlineTableMapper.xml +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - AND zz_online_table.table_name = #{onlineTableFilter.tableName} - - - AND zz_online_table.model_name = #{onlineTableFilter.modelName} - - - AND zz_online_table.dblink_id = #{onlineTableFilter.dblinkId} - - - - - - - - diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/mapper/OnlineVirtualColumnMapper.xml b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/mapper/OnlineVirtualColumnMapper.xml deleted file mode 100644 index 1dbc69e8..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dao/mapper/OnlineVirtualColumnMapper.xml +++ /dev/null @@ -1,56 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - AND zz_online_virtual_column.datasource_id = #{onlineVirtualColumnFilter.datasourceId} - - - AND zz_online_virtual_column.relation_id = #{onlineVirtualColumnFilter.relationId} - - - AND zz_online_virtual_column.table_id = #{onlineVirtualColumnFilter.tableId} - - - AND zz_online_virtual_column.aggregation_column_id = #{onlineVirtualColumnFilter.aggregationColumnId} - - - AND zz_online_virtual_column.virtual_type = #{onlineVirtualColumnFilter.virtualType} - - - - - - diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dto/OnlineColumnDto.java b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dto/OnlineColumnDto.java deleted file mode 100644 index 1af47717..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dto/OnlineColumnDto.java +++ /dev/null @@ -1,160 +0,0 @@ -package com.orangeforms.common.online.dto; - -import com.orangeforms.common.core.validator.ConstDictRef; -import com.orangeforms.common.core.validator.UpdateGroup; -import com.orangeforms.common.online.model.constant.FieldFilterType; -import com.orangeforms.common.online.model.constant.FieldKind; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.Data; - -import javax.validation.constraints.NotBlank; -import javax.validation.constraints.NotNull; - -/** - * 在线表单数据表字段Dto对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@ApiModel("在线表单数据表字段Dto对象") -@Data -public class OnlineColumnDto { - - /** - * 主键Id。 - */ - @ApiModelProperty(value = "主键Id") - @NotNull(message = "数据验证失败,主键Id不能为空!", groups = {UpdateGroup.class}) - private Long columnId; - - /** - * 字段名。 - */ - @ApiModelProperty(value = "字段名") - @NotBlank(message = "数据验证失败,字段名不能为空!") - private String columnName; - - /** - * 数据表Id。 - */ - @ApiModelProperty(value = "数据表Id") - @NotNull(message = "数据验证失败,数据表Id不能为空!") - private Long tableId; - - /** - * 数据表中的字段类型。 - */ - @ApiModelProperty(value = "数据表中的字段类型") - @NotBlank(message = "数据验证失败,数据表中的字段类型不能为空!") - private String columnType; - - /** - * 数据表中的完整字段类型(包括了精度和刻度)。 - */ - @ApiModelProperty(value = "数据表中的完整字段类型") - @NotBlank(message = "数据验证失败,数据表中的完整字段类型(包括了精度和刻度)不能为空!") - private String fullColumnType; - - /** - * 是否为主键。 - */ - @ApiModelProperty(value = "是否为主键") - @NotNull(message = "数据验证失败,是否为主键不能为空!") - private Boolean primaryKey; - - /** - * 是否是自增主键(0: 不是 1: 是)。 - */ - @ApiModelProperty(value = "是否是自增主键") - @NotNull(message = "数据验证失败,是否是自增主键(0: 不是 1: 是)不能为空!") - private Boolean autoIncrement; - - /** - * 是否可以为空 (0: 不可以为空 1: 可以为空)。 - */ - @ApiModelProperty(value = "是否可以为空") - @NotNull(message = "数据验证失败,是否可以为空 (0: 不可以为空 1: 可以为空)不能为空!") - private Boolean nullable; - - /** - * 缺省值。 - */ - @ApiModelProperty(value = "缺省值") - private String columnDefault; - - /** - * 字段在数据表中的显示位置。 - */ - @ApiModelProperty(value = "字段在数据表中的显示位置") - @NotNull(message = "数据验证失败,字段在数据表中的显示位置不能为空!") - private Integer columnShowOrder; - - /** - * 数据表中的字段注释。 - */ - @ApiModelProperty(value = "数据表中的字段注释") - private String columnComment; - - /** - * 对象映射字段名称。 - */ - @ApiModelProperty(value = "对象映射字段名称") - @NotBlank(message = "数据验证失败,对象映射字段名称不能为空!") - private String objectFieldName; - - /** - * 对象映射字段类型。 - */ - @ApiModelProperty(value = "对象映射字段类型") - @NotBlank(message = "数据验证失败,对象映射字段类型不能为空!") - private String objectFieldType; - - /** - * 过滤类型字段。 - */ - @ApiModelProperty(value = "过滤类型字段") - @NotNull(message = "数据验证失败,过滤类型字段不能为空!", groups = {UpdateGroup.class}) - @ConstDictRef(constDictClass = FieldFilterType.class, message = "数据验证失败,过滤类型字段为无效值!") - private Integer filterType; - - /** - * 是否是主键的父Id。 - */ - @ApiModelProperty(value = "是否是主键的父Id") - @NotNull(message = "数据验证失败,是否是主键的父Id不能为空!") - private Boolean parentKey; - - /** - * 是否部门过滤字段。 - */ - @ApiModelProperty(value = "是否部门过滤字段") - @NotNull(message = "数据验证失败,是否部门过滤字段标记不能为空!") - private Boolean deptFilter; - - /** - * 是否用户过滤字段。 - */ - @ApiModelProperty(value = "是否用户过滤字段") - @NotNull(message = "数据验证失败,是否用户过滤字段标记不能为空!") - private Boolean userFilter; - - /** - * 字段类别。 - */ - @ApiModelProperty(value = "字段类别") - @ConstDictRef(constDictClass = FieldKind.class, message = "数据验证失败,字段类别为无效值!") - private Integer fieldKind; - - /** - * 包含的文件文件数量,0表示无限制。 - */ - @ApiModelProperty(value = "包含的文件文件数量,0表示无限制") - private Integer maxFileCount; - - /** - * 字典Id。 - */ - @ApiModelProperty(value = "字典Id") - private Long dictId; -} diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dto/OnlineColumnRuleDto.java b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dto/OnlineColumnRuleDto.java deleted file mode 100644 index 6f7395bf..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dto/OnlineColumnRuleDto.java +++ /dev/null @@ -1,39 +0,0 @@ -package com.orangeforms.common.online.dto; - -import com.orangeforms.common.core.validator.UpdateGroup; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.Data; - -import javax.validation.constraints.NotNull; - -/** - * 在线表单数据表字段规则和字段多对多关联Dto对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@ApiModel("在线表单数据表字段规则和字段多对多关联Dto对象") -@Data -public class OnlineColumnRuleDto { - - /** - * 字段Id。 - */ - @ApiModelProperty(value = "字段Id") - @NotNull(message = "数据验证失败,字段Id不能为空!", groups = {UpdateGroup.class}) - private Long columnId; - - /** - * 规则Id。 - */ - @ApiModelProperty(value = "规则Id") - @NotNull(message = "数据验证失败,规则Id不能为空!", groups = {UpdateGroup.class}) - private Long ruleId; - - /** - * 规则属性数据。 - */ - @ApiModelProperty(value = "规则属性数据") - private String propDataJson; -} diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dto/OnlineDatasourceDto.java b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dto/OnlineDatasourceDto.java deleted file mode 100644 index 6b753f9e..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dto/OnlineDatasourceDto.java +++ /dev/null @@ -1,63 +0,0 @@ -package com.orangeforms.common.online.dto; - -import com.orangeforms.common.core.validator.AddGroup; -import com.orangeforms.common.core.validator.UpdateGroup; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.Data; - -import javax.validation.constraints.NotBlank; -import javax.validation.constraints.NotNull; - -/** - * 在线表单的数据源Dto对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@ApiModel("在线表单的数据源Dto对象") -@Data -public class OnlineDatasourceDto { - - /** - * 主键Id。 - */ - @ApiModelProperty(value = "主键Id") - @NotNull(message = "数据验证失败,主键Id不能为空!", groups = {UpdateGroup.class}) - private Long datasourceId; - - /** - * 数据源名称。 - */ - @ApiModelProperty(value = "数据源名称") - @NotBlank(message = "数据验证失败,数据源名称不能为空!") - private String datasourceName; - - /** - * 数据源变量名,会成为数据访问url的一部分。 - */ - @ApiModelProperty(value = "数据源变量名,会成为数据访问url的一部分") - @NotBlank(message = "数据验证失败,数据源变量名不能为空!") - private String variableName; - - /** - * 主表所在的数据库链接Id。 - */ - @ApiModelProperty(value = "主表所在的数据库链接Id") - @NotNull(message = "数据验证失败,数据库链接Id不能为空!") - private Long dblinkId; - - /** - * 主表Id。 - */ - @ApiModelProperty(value = "主表Id") - @NotNull(message = "数据验证失败,主表Id不能为空!", groups = {UpdateGroup.class}) - private Long masterTableId; - - /** - * 主表表名。 - */ - @ApiModelProperty(value = "主表表名") - @NotBlank(message = "数据验证失败,主表名不能为空!", groups = {AddGroup.class}) - private String masterTableName; -} diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dto/OnlineDatasourceRelationDto.java b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dto/OnlineDatasourceRelationDto.java deleted file mode 100644 index 5907a1e7..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dto/OnlineDatasourceRelationDto.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.orangeforms.common.online.dto; - -import com.orangeforms.common.core.validator.AddGroup; -import com.orangeforms.common.core.validator.ConstDictRef; -import com.orangeforms.common.core.validator.UpdateGroup; -import com.orangeforms.common.online.model.constant.RelationType; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.Data; - -import javax.validation.constraints.NotBlank; -import javax.validation.constraints.NotNull; - -/** - * 在线表单的数据源关联Dto对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@ApiModel("在线表单的数据源关联Dto对象") -@Data -public class OnlineDatasourceRelationDto { - - /** - * 主键Id。 - */ - @ApiModelProperty(value = "主键Id") - @NotNull(message = "数据验证失败,主键Id不能为空!", groups = {UpdateGroup.class}) - private Long relationId; - - /** - * 关联名称。 - */ - @ApiModelProperty(value = "关联名称") - @NotBlank(message = "数据验证失败,关联名称不能为空!") - private String relationName; - - /** - * 变量名。 - */ - @ApiModelProperty(value = "变量名") - @NotBlank(message = "数据验证失败,变量名不能为空!") - private String variableName; - - /** - * 主数据源Id。 - */ - @ApiModelProperty(value = "主数据源Id") - @NotNull(message = "数据验证失败,主数据源Id不能为空!") - private Long datasourceId; - - /** - * 关联类型。 - */ - @ApiModelProperty(value = "关联类型") - @NotNull(message = "数据验证失败,关联类型不能为空!") - @ConstDictRef(constDictClass = RelationType.class, message = "数据验证失败,关联类型为无效值!") - private Integer relationType; - - /** - * 主表关联字段Id。 - */ - @ApiModelProperty(value = "主表关联字段Id") - @NotNull(message = "数据验证失败,主表关联字段Id不能为空!") - private Long masterColumnId; - - /** - * 从表Id。 - */ - @ApiModelProperty(value = "从表Id") - @NotNull(message = "数据验证失败,从表Id不能为空!", groups = {UpdateGroup.class}) - private Long slaveTableId; - - /** - * 从表名。 - */ - @ApiModelProperty(value = "从表名") - @NotBlank(message = "数据验证失败,从表名不能为空!", groups = {AddGroup.class}) - private String slaveTableName; - - /** - * 从表关联字段Id。 - */ - @ApiModelProperty(value = "从表关联字段Id") - @NotNull(message = "数据验证失败,从表关联字段Id不能为空!", groups = {UpdateGroup.class}) - private Long slaveColumnId; - - /** - * 从表字段名。 - */ - @ApiModelProperty(value = "从表字段名") - @NotBlank(message = "数据验证失败,从表字段名不能为空!", groups = {AddGroup.class}) - private String slaveColumnName; - - /** - * 是否级联删除标记。 - */ - @ApiModelProperty(value = "是否级联删除标记") - @NotNull(message = "数据验证失败,是否级联删除标记不能为空!") - private Boolean cascadeDelete; - - /** - * 是否左连接标记。 - */ - @ApiModelProperty(value = "是否左连接标记") - @NotNull(message = "数据验证失败,是否左连接标记不能为空!") - private Boolean leftJoin; -} diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dto/OnlineDblinkDto.java b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dto/OnlineDblinkDto.java deleted file mode 100644 index 636c3a1c..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dto/OnlineDblinkDto.java +++ /dev/null @@ -1,54 +0,0 @@ -package com.orangeforms.common.online.dto; - -import com.orangeforms.common.core.validator.UpdateGroup; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.Data; - -import javax.validation.constraints.NotBlank; -import javax.validation.constraints.NotNull; - -/** - * 在线表单数据表所在数据库链接Dto对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@ApiModel("在线表单数据表所在数据库链接Dto对象") -@Data -public class OnlineDblinkDto { - - /** - * 主键Id。 - */ - @ApiModelProperty(value = "主键Id") - @NotNull(message = "数据验证失败,主键Id不能为空!", groups = {UpdateGroup.class}) - private Long dblinkId; - - /** - * 链接中文名称。 - */ - @ApiModelProperty(value = "链接中文名称") - @NotBlank(message = "数据验证失败,链接中文名称不能为空!") - private String dblinkName; - - /** - * 链接英文名称。 - */ - @ApiModelProperty(value = "链接英文名称") - @NotBlank(message = "数据验证失败,链接英文名称不能为空!") - private String variableName; - - /** - * 链接描述。 - */ - @ApiModelProperty(value = "链接描述") - private String dblinkDesc; - - /** - * 数据源配置常量。 - */ - @ApiModelProperty(value = "数据源配置常量") - @NotNull(message = "数据验证失败,数据源配置常量不能为空!") - private Integer dblinkConfigConstant; -} diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dto/OnlineDictDto.java b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dto/OnlineDictDto.java deleted file mode 100644 index 977c538d..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dto/OnlineDictDto.java +++ /dev/null @@ -1,123 +0,0 @@ -package com.orangeforms.common.online.dto; - -import com.orangeforms.common.core.validator.ConstDictRef; -import com.orangeforms.common.core.validator.UpdateGroup; -import com.orangeforms.common.online.model.constant.DictType; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.Data; - -import javax.validation.constraints.NotBlank; -import javax.validation.constraints.NotNull; - -/** - * 在线表单关联的字典Dto对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@ApiModel("在线表单关联的字典Dto对象") -@Data -public class OnlineDictDto { - - /** - * 主键Id。 - */ - @ApiModelProperty(value = "主键Id") - @NotNull(message = "数据验证失败,主键Id不能为空!", groups = {UpdateGroup.class}) - private Long dictId; - - /** - * 字典名称。 - */ - @ApiModelProperty(value = "字典名称") - @NotBlank(message = "数据验证失败,字典名称不能为空!") - private String dictName; - - /** - * 字典类型。 - */ - @ApiModelProperty(value = "字典类型") - @NotNull(message = "数据验证失败,字典类型不能为空!") - @ConstDictRef(constDictClass = DictType.class, message = "数据验证失败,字典类型为无效值!") - private Integer dictType; - - /** - * 数据库链接Id。 - */ - @ApiModelProperty(value = "数据库链接Id") - private Long dblinkId; - - /** - * 字典表名称。 - */ - @ApiModelProperty(value = "字典表名称") - private String tableName; - - /** - * 字典表键字段名称。 - */ - @ApiModelProperty(value = "字典表键字段名称") - private String keyColumnName; - - /** - * 字典表父键字段名称。 - */ - @ApiModelProperty(value = "字典表父键字段名称") - private String parentKeyColumnName; - - /** - * 字典值字段名称。 - */ - @ApiModelProperty(value = "字典值字段名称") - private String valueColumnName; - - /** - * 逻辑删除字段。 - */ - @ApiModelProperty(value = "逻辑删除字段") - private String deletedColumnName; - - /** - * 用户过滤滤字段名称。 - */ - @ApiModelProperty(value = "用户过滤滤字段名称") - private String userFilterColumnName; - - /** - * 部门过滤字段名称。 - */ - @ApiModelProperty(value = "部门过滤字段名称") - private String deptFilterColumnName; - - /** - * 租户过滤字段名称。 - */ - @ApiModelProperty(value = "租户过滤字段名称") - private String tenantFilterColumnName; - - /** - * 是否树形标记。 - */ - @ApiModelProperty(value = "是否树形标记") - @NotNull(message = "数据验证失败,是否树形标记不能为空!") - private Boolean treeFlag; - - /** - * 获取字典数据的url。 - */ - @ApiModelProperty(value = "获取字典数据的url") - private String dictListUrl; - - /** - * 根据主键id批量获取字典数据的url。 - */ - @ApiModelProperty(value = "根据主键id批量获取字典数据的url") - private String dictIdsUrl; - - /** - * 字典的JSON数据。 - */ - @ApiModelProperty(value = "字典的JSON数据") - private String dictDataJson; -} diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dto/OnlineFilterDto.java b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dto/OnlineFilterDto.java deleted file mode 100644 index 01f16026..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dto/OnlineFilterDto.java +++ /dev/null @@ -1,61 +0,0 @@ -package com.orangeforms.common.online.dto; - -import com.orangeforms.common.online.model.constant.FieldFilterType; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.Data; - -import java.util.Set; - -/** - * 在线表单数据过滤参数对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@ApiModel("在线表单数据过滤参数对象") -@Data -public class OnlineFilterDto { - - /** - * 表名。 - */ - @ApiModelProperty(value = "表名") - private String tableName; - - /** - * 过滤字段名。 - */ - @ApiModelProperty(value = "过滤字段名") - private String columnName; - - /** - * 过滤值。 - */ - @ApiModelProperty(value = "过滤值") - private Object columnValue; - - /** - * 范围比较的最小值。 - */ - @ApiModelProperty(value = "范围比较的最小值") - private Object columnValueStart; - - /** - * 范围比较的最大值。 - */ - @ApiModelProperty(value = "范围比较的最大值") - private Object columnValueEnd; - - /** - * 仅当操作符为IN的时候使用。 - */ - @ApiModelProperty(value = "仅当操作符为IN的时候使用") - private Set columnValueList; - - /** - * 过滤类型,参考FieldFilterType常量对象。缺省值就是等于过滤了。 - */ - @ApiModelProperty(value = "过滤类型") - private Integer filterType = FieldFilterType.EQUAL_FILTER; -} diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dto/OnlineFormDto.java b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dto/OnlineFormDto.java deleted file mode 100644 index 2a938b2a..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dto/OnlineFormDto.java +++ /dev/null @@ -1,92 +0,0 @@ -package com.orangeforms.common.online.dto; - -import com.orangeforms.common.core.validator.ConstDictRef; -import com.orangeforms.common.core.validator.UpdateGroup; -import com.orangeforms.common.online.model.constant.FormKind; -import com.orangeforms.common.online.model.constant.FormType; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.Data; - -import javax.validation.constraints.NotBlank; -import javax.validation.constraints.NotNull; -import java.util.List; - -/** - * 在线表单Dto对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@ApiModel("在线表单Dto对象") -@Data -public class OnlineFormDto { - - /** - * 主键Id。 - */ - @ApiModelProperty(value = "主键Id") - @NotNull(message = "数据验证失败,主键Id不能为空!", groups = {UpdateGroup.class}) - private Long formId; - - /** - * 页面id。 - */ - @ApiModelProperty(value = "页面id") - @NotNull(message = "数据验证失败,页面id不能为空!") - private Long pageId; - - /** - * 表单编码。 - */ - @ApiModelProperty(value = "表单编码") - private String formCode; - - /** - * 表单名称。 - */ - @ApiModelProperty(value = "表单名称") - @NotBlank(message = "数据验证失败,表单名称不能为空!") - private String formName; - - /** - * 表单类别。 - */ - @ApiModelProperty(value = "表单类别") - @NotNull(message = "数据验证失败,表单类别不能为空!") - @ConstDictRef(constDictClass = FormKind.class, message = "数据验证失败,表单类别为无效值!") - private Integer formKind; - - /** - * 表单类型。 - */ - @ApiModelProperty(value = "表单类型") - @NotNull(message = "数据验证失败,表单类型不能为空!") - @ConstDictRef(constDictClass = FormType.class, message = "数据验证失败,表单类型为无效值!") - private Integer formType; - - /** - * 表单主表id。 - */ - @ApiModelProperty(value = "表单主表id") - @NotNull(message = "数据验证失败,表单主表id不能为空!") - private Long masterTableId; - - /** - * 当前表单关联的数据源Id集合。 - */ - @ApiModelProperty(value = "当前表单关联的数据源Id集合") - private List datasourceIdList; - - /** - * 表单组件JSON。 - */ - @ApiModelProperty(value = "表单组件JSON") - private String widgetJson; - - /** - * 表单参数JSON。 - */ - @ApiModelProperty(value = "表单参数JSON") - private String paramsJson; -} diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dto/OnlinePageDatasourceDto.java b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dto/OnlinePageDatasourceDto.java deleted file mode 100644 index 19427ff0..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dto/OnlinePageDatasourceDto.java +++ /dev/null @@ -1,40 +0,0 @@ -package com.orangeforms.common.online.dto; - -import com.orangeforms.common.core.validator.UpdateGroup; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.Data; - -import javax.validation.constraints.NotNull; - -/** - * 在线表单页面和数据源多对多关联Dto对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@ApiModel("在线表单页面和数据源多对多关联Dto对象") -@Data -public class OnlinePageDatasourceDto { - - /** - * 主键Id。 - */ - @ApiModelProperty(value = "主键Id") - @NotNull(message = "数据验证失败,主键Id不能为空!", groups = {UpdateGroup.class}) - private Long id; - - /** - * 页面主键Id。 - */ - @ApiModelProperty(value = "页面主键Id") - @NotNull(message = "数据验证失败,页面主键Id不能为空!") - private Long pageId; - - /** - * 数据源主键Id。 - */ - @ApiModelProperty(value = "数据源主键Id") - @NotNull(message = "数据验证失败,数据源主键Id不能为空!") - private Long datasourceId; -} diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dto/OnlinePageDto.java b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dto/OnlinePageDto.java deleted file mode 100644 index c9b5096c..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dto/OnlinePageDto.java +++ /dev/null @@ -1,59 +0,0 @@ -package com.orangeforms.common.online.dto; - -import com.orangeforms.common.core.validator.ConstDictRef; -import com.orangeforms.common.core.validator.UpdateGroup; -import com.orangeforms.common.online.model.constant.PageStatus; -import com.orangeforms.common.online.model.constant.PageType; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.Data; - -import javax.validation.constraints.NotBlank; -import javax.validation.constraints.NotNull; - -/** - * 在线表单所在页面Dto对象。这里我们可以把页面理解为表单的容器。 - * - * @author Jerry - * @date 2021-06-06 - */ -@ApiModel("在线表单所在页面Dto对象") -@Data -public class OnlinePageDto { - - /** - * 主键Id。 - */ - @ApiModelProperty(value = "主键Id") - @NotNull(message = "数据验证失败,主键Id不能为空!", groups = {UpdateGroup.class}) - private Long pageId; - - /** - * 页面编码。 - */ - @ApiModelProperty(value = "页面编码") - private String pageCode; - - /** - * 页面名称。 - */ - @ApiModelProperty(value = "页面名称") - @NotBlank(message = "数据验证失败,页面名称不能为空!") - private String pageName; - - /** - * 页面类型。 - */ - @ApiModelProperty(value = "页面类型") - @NotNull(message = "数据验证失败,页面类型不能为空!") - @ConstDictRef(constDictClass = PageType.class, message = "数据验证失败,页面类型为无效值!") - private Integer pageType; - - /** - * 页面编辑状态。 - */ - @ApiModelProperty(value = "页面编辑状态") - @NotNull(message = "数据验证失败,状态不能为空!") - @ConstDictRef(constDictClass = PageStatus.class, message = "数据验证失败,状态为无效值!") - private Integer status; -} diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dto/OnlineRuleDto.java b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dto/OnlineRuleDto.java deleted file mode 100644 index 5c93c774..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dto/OnlineRuleDto.java +++ /dev/null @@ -1,57 +0,0 @@ -package com.orangeforms.common.online.dto; - -import com.orangeforms.common.core.validator.ConstDictRef; -import com.orangeforms.common.core.validator.UpdateGroup; -import com.orangeforms.common.online.model.constant.RuleType; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.Data; - -import javax.validation.constraints.NotBlank; -import javax.validation.constraints.NotNull; - -/** - * 在线表单数据表字段验证规则Dto对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@ApiModel("在线表单数据表字段验证规则Dto对象") -@Data -public class OnlineRuleDto { - - /** - * 主键Id。 - */ - @ApiModelProperty(value = "主键Id") - @NotNull(message = "数据验证失败,主键Id不能为空!", groups = {UpdateGroup.class}) - private Long ruleId; - - /** - * 规则名称。 - */ - @ApiModelProperty(value = "规则名称") - @NotBlank(message = "数据验证失败,规则名称不能为空!") - private String ruleName; - - /** - * 规则类型。 - */ - @ApiModelProperty(value = "规则类型") - @NotNull(message = "数据验证失败,规则类型不能为空!") - @ConstDictRef(constDictClass = RuleType.class, message = "数据验证失败,规则类型为无效值!") - private Integer ruleType; - - /** - * 内置规则标记。 - */ - @ApiModelProperty(value = "内置规则标记") - @NotNull(message = "数据验证失败,内置规则标记不能为空!") - private Boolean builtin; - - /** - * 自定义规则的正则表达式。 - */ - @ApiModelProperty(value = "自定义规则的正则表达式") - private String pattern; -} diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dto/OnlineTableDto.java b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dto/OnlineTableDto.java deleted file mode 100644 index 277a62c0..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dto/OnlineTableDto.java +++ /dev/null @@ -1,48 +0,0 @@ -package com.orangeforms.common.online.dto; - -import com.orangeforms.common.core.validator.UpdateGroup; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.Data; - -import javax.validation.constraints.NotBlank; -import javax.validation.constraints.NotNull; - -/** - * 在线表单的数据表Dto对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@ApiModel("在线表单的数据表Dto对象") -@Data -public class OnlineTableDto { - - /** - * 主键Id。 - */ - @ApiModelProperty(value = "主键Id") - @NotNull(message = "数据验证失败,主键Id不能为空!", groups = {UpdateGroup.class}) - private Long tableId; - - /** - * 表名称。 - */ - @ApiModelProperty(value = "表名称") - @NotBlank(message = "数据验证失败,表名称不能为空!") - private String tableName; - - /** - * 实体名称。 - */ - @ApiModelProperty(value = "实体名称") - @NotBlank(message = "数据验证失败,实体名称不能为空!") - private String modelName; - - /** - * 数据库链接Id。 - */ - @ApiModelProperty(value = "数据库链接Id") - @NotNull(message = "数据验证失败,数据库链接Id不能为空!") - private Long dblinkId; -} diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dto/OnlineVirtualColumnDto.java b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dto/OnlineVirtualColumnDto.java deleted file mode 100644 index 98023759..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/dto/OnlineVirtualColumnDto.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.orangeforms.common.online.dto; - -import com.orangeforms.common.core.constant.AggregationType; -import com.orangeforms.common.core.validator.ConstDictRef; -import com.orangeforms.common.core.validator.UpdateGroup; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; - -import com.orangeforms.common.online.model.constant.VirtualType; -import lombok.Data; - -import javax.validation.constraints.*; - -/** - * 在线数据表虚拟字段Dto对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@ApiModel("在线数据表虚拟字段Dto对象") -@Data -public class OnlineVirtualColumnDto { - - /** - * 主键Id。 - */ - @ApiModelProperty(value = "主键Id") - @NotNull(message = "数据验证失败,主键Id不能为空!", groups = {UpdateGroup.class}) - private Long virtualColumnId; - - /** - * 所在表Id。 - */ - @ApiModelProperty(value = "所在表Id") - private Long tableId; - - /** - * 字段名称。 - */ - @ApiModelProperty(value = "字段名称") - @NotBlank(message = "数据验证失败,字段名称不能为空!") - private String objectFieldName; - - /** - * 属性类型。 - */ - @ApiModelProperty(value = "属性类型") - @NotBlank(message = "数据验证失败,属性类型不能为空!") - private String objectFieldType; - - /** - * 字段提示名。 - */ - @ApiModelProperty(value = "字段提示名") - @NotBlank(message = "数据验证失败,字段提示名不能为空!") - private String columnPrompt; - - /** - * 虚拟字段类型(0: 聚合)。 - */ - @ApiModelProperty(value = "虚拟字段类型(0: 聚合)") - @ConstDictRef(constDictClass = VirtualType.class, message = "数据验证失败,虚拟字段类型为无效值!") - @NotNull(message = "数据验证失败,虚拟字段类型(0: 聚合)不能为空!") - private Integer virtualType; - - /** - * 关联数据源Id。 - */ - @ApiModelProperty(value = "关联数据源Id") - @NotNull(message = "数据验证失败,关联数据源Id不能为空!") - private Long datasourceId; - - /** - * 关联Id。 - */ - @ApiModelProperty(value = "关联Id") - private Long relationId; - - /** - * 聚合字段所在关联表Id。 - */ - @ApiModelProperty(value = "聚合字段所在关联表Id") - private Long aggregationTableId; - - /** - * 关联表聚合字段Id。 - */ - @ApiModelProperty(value = "关联表聚合字段Id") - private Long aggregationColumnId; - - /** - * 聚合类型(0: sum 1: count 2: avg 3: min 4: max)。 - */ - @ApiModelProperty(value = "聚合类型(0: sum 1: count 2: avg 3: min 4: max)") - @ConstDictRef(constDictClass = AggregationType.class, message = "数据验证失败,虚拟字段聚合计算类型为无效值!") - private Integer aggregationType; - - /** - * 存储过滤条件的json。 - */ - @ApiModelProperty(value = "存储过滤条件的json") - private String whereClauseJson; -} diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/model/OnlineColumn.java b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/model/OnlineColumn.java deleted file mode 100644 index 961a36d3..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/model/OnlineColumn.java +++ /dev/null @@ -1,196 +0,0 @@ -package com.orangeforms.common.online.model; - -import com.baomidou.mybatisplus.annotation.*; -import com.orangeforms.common.core.annotation.RelationConstDict; -import com.orangeforms.common.core.annotation.RelationOneToOne; -import com.orangeforms.common.core.base.mapper.BaseModelMapper; -import com.orangeforms.common.online.model.constant.FieldKind; -import com.orangeforms.common.online.vo.OnlineColumnVo; -import lombok.Data; -import org.mapstruct.Mapper; -import org.mapstruct.Mapping; -import org.mapstruct.factory.Mappers; - -import java.util.Date; -import java.util.Map; - -/** - * 在线表单数据表字段实体对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Data -@TableName(value = "zz_online_column") -public class OnlineColumn { - - /** - * 主键Id。 - */ - @TableId(value = "column_id") - private Long columnId; - - /** - * 字段名。 - */ - @TableField(value = "column_name") - private String columnName; - - /** - * 数据表Id。 - */ - @TableField(value = "table_id") - private Long tableId; - - /** - * 数据表中的字段类型。 - */ - @TableField(value = "column_type") - private String columnType; - - /** - * 数据表中的完整字段类型(包括了精度和刻度)。 - */ - @TableField(value = "full_column_type") - private String fullColumnType; - - /** - * 是否为主键。 - */ - @TableField(value = "primary_key") - private Boolean primaryKey; - - /** - * 是否是自增主键(0: 不是 1: 是)。 - */ - @TableField(value = "auto_increment") - private Boolean autoIncrement; - - /** - * 是否可以为空 (0: 不可以为空 1: 可以为空)。 - */ - @TableField(value = "nullable") - private Boolean nullable; - - /** - * 缺省值。 - */ - @TableField(value = "column_default") - private String columnDefault; - - /** - * 字段在数据表中的显示位置。 - */ - @TableField(value = "column_show_order") - private Integer columnShowOrder; - - /** - * 数据表中的字段注释。 - */ - @TableField(value = "column_comment") - private String columnComment; - - /** - * 对象映射字段名称。 - */ - @TableField(value = "object_field_name") - private String objectFieldName; - - /** - * 对象映射字段类型。 - */ - @TableField(value = "object_field_type") - private String objectFieldType; - - /** - * 过滤字段类型。 - */ - @TableField(value = "filter_type") - private Integer filterType; - - /** - * 是否是主键的父Id。 - */ - @TableField(value = "parent_key") - private Boolean parentKey; - - /** - * 是否部门过滤字段。 - */ - @TableField(value = "dept_filter") - private Boolean deptFilter; - - /** - * 是否用户过滤字段。 - */ - @TableField(value = "user_filter") - private Boolean userFilter; - - /** - * 字段类别。 - */ - @TableField(value = "field_kind") - private Integer fieldKind; - - /** - * 包含的文件文件数量,0表示无限制。 - */ - @TableField(value = "max_file_count") - private Integer maxFileCount; - - /** - * 字典Id。 - */ - @TableField(value = "dict_id") - private Long dictId; - - /** - * 更新时间。 - */ - @TableField(value = "update_time") - private Date updateTime; - - /** - * 创建时间。 - */ - @TableField(value = "create_time") - private Date createTime; - - @RelationConstDict( - masterIdField = "fieldKind", - constantDictClass = FieldKind.class) - @TableField(exist = false) - private Map fieldKindDictMap; - - @RelationOneToOne( - masterIdField = "dictId", - slaveServiceName = "OnlineDictService", - slaveIdField = "dictId", - slaveModelClass = OnlineDict.class, - loadSlaveDict = false) - @TableField(exist = false) - private OnlineDict dictInfo; - - @Mapper - public interface OnlineColumnModelMapper extends BaseModelMapper { - /** - * 转换Vo对象到实体对象。 - * - * @param onlineColumnVo 域对象。 - * @return 实体对象。 - */ - @Mapping(target = "dictInfo", expression = "java(mapToBean(onlineColumnVo.getDictInfo(), com.orangeforms.common.online.model.OnlineDict.class))") - @Override - OnlineColumn toModel(OnlineColumnVo onlineColumnVo); - /** - * 转换实体对象到VO对象。 - * - * @param onlineColumn 实体对象。 - * @return 域对象。 - */ - @Mapping(target = "dictInfo", expression = "java(beanToMap(onlineColumn.getDictInfo(), false))") - @Override - OnlineColumnVo fromModel(OnlineColumn onlineColumn); - } - public static final OnlineColumnModelMapper INSTANCE = Mappers.getMapper(OnlineColumnModelMapper.class); -} diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/model/OnlineColumnRule.java b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/model/OnlineColumnRule.java deleted file mode 100644 index db582ed4..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/model/OnlineColumnRule.java +++ /dev/null @@ -1,36 +0,0 @@ -package com.orangeforms.common.online.model; - -import com.baomidou.mybatisplus.annotation.*; -import lombok.Data; - -/** - * 在线表单数据表字段规则和字段多对多关联实体对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Data -@TableName(value = "zz_online_column_rule") -public class OnlineColumnRule { - - /** - * 字段Id。 - */ - @TableField(value = "column_id") - private Long columnId; - - /** - * 规则Id。 - */ - @TableField(value = "rule_id") - private Long ruleId; - - /** - * 规则属性数据。 - */ - @TableField(value = "prop_data_json") - private String propDataJson; - - @TableField(exist = false) - private OnlineRule onlineRule; -} diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/model/OnlineDatasource.java b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/model/OnlineDatasource.java deleted file mode 100644 index 9f74f37b..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/model/OnlineDatasource.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.orangeforms.common.online.model; - -import com.baomidou.mybatisplus.annotation.*; -import com.orangeforms.common.core.annotation.RelationDict; -import com.orangeforms.common.core.base.mapper.BaseModelMapper; -import com.orangeforms.common.online.vo.OnlineDatasourceVo; -import lombok.Data; -import org.mapstruct.Mapper; -import org.mapstruct.Mapping; -import org.mapstruct.factory.Mappers; - -import java.util.Date; -import java.util.Map; - -/** - * 在线表单的数据源实体对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Data -@TableName(value = "zz_online_datasource") -public class OnlineDatasource { - - /** - * 主键Id。 - */ - @TableId(value = "datasource_id") - private Long datasourceId; - - /** - * 数据源名称。 - */ - @TableField(value = "datasource_name") - private String datasourceName; - - /** - * 数据源变量名,会成为数据访问url的一部分。 - */ - @TableField(value = "variable_name") - private String variableName; - - /** - * 数据库链接Id。 - */ - @TableField(value = "dblink_id") - private Long dblinkId; - - /** - * 主表Id。 - */ - @TableField(value = "master_table_id") - private Long masterTableId; - - /** - * 更新时间。 - */ - @TableField(value = "update_time") - private Date updateTime; - - /** - * 创建时间。 - */ - @TableField(value = "create_time") - private Date createTime; - - /** - * datasourceId 的多对多关联表数据对象。 - */ - @TableField(exist = false) - private OnlinePageDatasource onlinePageDatasource; - - @RelationDict( - masterIdField = "masterTableId", - slaveServiceName = "onlineTableService", - slaveModelClass = OnlineTable.class, - slaveIdField = "tableId", - slaveNameField = "tableName") - @TableField(exist = false) - private Map masterTableIdDictMap; - - @TableField(exist = false) - private OnlineTable masterTable; - - @Mapper - public interface OnlineDatasourceModelMapper extends BaseModelMapper { - /** - * 转换Vo对象到实体对象。 - * - * @param onlineDatasourceVo 域对象。 - * @return 实体对象。 - */ - @Mapping(target = "onlinePageDatasource", expression = "java(mapToBean(onlineDatasourceVo.getOnlinePageDatasource(), com.orangeforms.common.online.model.OnlinePageDatasource.class))") - @Override - OnlineDatasource toModel(OnlineDatasourceVo onlineDatasourceVo); - /** - * 转换实体对象到VO对象。 - * - * @param onlineDatasource 实体对象。 - * @return 域对象。 - */ - @Mapping(target = "onlinePageDatasource", expression = "java(beanToMap(onlineDatasource.getOnlinePageDatasource(), false))") - @Override - OnlineDatasourceVo fromModel(OnlineDatasource onlineDatasource); - } - public static final OnlineDatasourceModelMapper INSTANCE = Mappers.getMapper(OnlineDatasourceModelMapper.class); -} diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/model/OnlineDatasourceRelation.java b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/model/OnlineDatasourceRelation.java deleted file mode 100644 index ca13711d..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/model/OnlineDatasourceRelation.java +++ /dev/null @@ -1,187 +0,0 @@ -package com.orangeforms.common.online.model; - -import com.baomidou.mybatisplus.annotation.*; -import com.orangeforms.common.core.annotation.RelationConstDict; -import com.orangeforms.common.core.annotation.RelationDict; -import com.orangeforms.common.core.annotation.RelationOneToOne; -import com.orangeforms.common.core.base.mapper.BaseModelMapper; -import com.orangeforms.common.online.model.constant.RelationType; -import com.orangeforms.common.online.vo.OnlineDatasourceRelationVo; -import lombok.Data; -import org.mapstruct.Mapper; -import org.mapstruct.Mapping; -import org.mapstruct.factory.Mappers; - -import java.util.Date; -import java.util.Map; - -/** - * 在线表单的数据源关联实体对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Data -@TableName(value = "zz_online_datasource_relation") -public class OnlineDatasourceRelation { - - /** - * 主键Id。 - */ - @TableId(value = "relation_id") - private Long relationId; - - /** - * 关联名称。 - */ - @TableField(value = "relation_name") - private String relationName; - - /** - * 变量名。 - */ - @TableField(value = "variable_name") - private String variableName; - - /** - * 主数据源Id。 - */ - @TableField(value = "datasource_id") - private Long datasourceId; - - /** - * 关联类型。 - */ - @TableField(value = "relation_type") - private Integer relationType; - - /** - * 主表关联字段Id。 - */ - @TableField(value = "master_column_id") - private Long masterColumnId; - - /** - * 从表Id。 - */ - @TableField(value = "slave_table_id") - private Long slaveTableId; - - /** - * 从表关联字段Id。 - */ - @TableField(value = "slave_column_id") - private Long slaveColumnId; - - /** - * 删除主表的时候是否级联删除一对一和一对多的从表数据,多对多只是删除关联,不受到这个标记的影响。。 - */ - @TableField(value = "cascade_delete") - private Boolean cascadeDelete; - - /** - * 是否左连接。 - */ - @TableField(value = "left_join") - private Boolean leftJoin; - - /** - * 更新时间。 - */ - @TableField(value = "update_time") - private Date updateTime; - - /** - * 创建时间。 - */ - @TableField(value = "create_time") - private Date createTime; - - @RelationOneToOne( - masterIdField = "masterColumnId", - slaveServiceName = "onlineColumnService", - slaveModelClass = OnlineColumn.class, - slaveIdField = "columnId") - @TableField(exist = false) - private OnlineColumn masterColumn; - - @RelationOneToOne( - masterIdField = "slaveTableId", - slaveServiceName = "onlineTableService", - slaveModelClass = OnlineTable.class, - slaveIdField = "tableId") - @TableField(exist = false) - private OnlineTable slaveTable; - - @RelationOneToOne( - masterIdField = "slaveColumnId", - slaveServiceName = "onlineColumnService", - slaveModelClass = OnlineColumn.class, - slaveIdField = "columnId") - @TableField(exist = false) - private OnlineColumn slaveColumn; - - @RelationDict( - masterIdField = "masterColumnId", - slaveServiceName = "onlineColumnService", - equalOneToOneRelationField = "onlineColumn", - slaveModelClass = OnlineColumn.class, - slaveIdField = "columnId", - slaveNameField = "columnName") - @TableField(exist = false) - private Map masterColumnIdDictMap; - - @RelationDict( - masterIdField = "slaveTableId", - slaveServiceName = "onlineTableService", - equalOneToOneRelationField = "onlineTable", - slaveModelClass = OnlineTable.class, - slaveIdField = "tableId", - slaveNameField = "modelName") - @TableField(exist = false) - private Map slaveTableIdDictMap; - - @RelationDict( - masterIdField = "slaveColumnId", - slaveServiceName = "onlineColumnService", - equalOneToOneRelationField = "onlineColumn", - slaveModelClass = OnlineColumn.class, - slaveIdField = "columnId", - slaveNameField = "columnName") - @TableField(exist = false) - private Map slaveColumnIdDictMap; - - @RelationConstDict( - masterIdField = "relationType", - constantDictClass = RelationType.class) - @TableField(exist = false) - private Map relationTypeDictMap; - - @Mapper - public interface OnlineDatasourceRelationModelMapper - extends BaseModelMapper { - /** - * 转换Vo对象到实体对象。 - * - * @param onlineDatasourceRelationVo 域对象。 - * @return 实体对象。 - */ - @Mapping(target = "masterColumn", expression = "java(mapToBean(onlineDatasourceRelationVo.getMasterColumn(), com.orangeforms.common.online.model.OnlineColumn.class))") - @Mapping(target = "slaveTable", expression = "java(mapToBean(onlineDatasourceRelationVo.getSlaveTable(), com.orangeforms.common.online.model.OnlineTable.class))") - @Mapping(target = "slaveColumn", expression = "java(mapToBean(onlineDatasourceRelationVo.getSlaveColumn(), com.orangeforms.common.online.model.OnlineColumn.class))") - @Override - OnlineDatasourceRelation toModel(OnlineDatasourceRelationVo onlineDatasourceRelationVo); - /** - * 转换实体对象到VO对象。 - * - * @param onlineDatasourceRelation 实体对象。 - * @return 域对象。 - */ - @Mapping(target = "masterColumn", expression = "java(beanToMap(onlineDatasourceRelation.getMasterColumn(), false))") - @Mapping(target = "slaveTable", expression = "java(beanToMap(onlineDatasourceRelation.getSlaveTable(), false))") - @Mapping(target = "slaveColumn", expression = "java(beanToMap(onlineDatasourceRelation.getSlaveColumn(), false))") - @Override - OnlineDatasourceRelationVo fromModel(OnlineDatasourceRelation onlineDatasourceRelation); - } - public static final OnlineDatasourceRelationModelMapper INSTANCE = Mappers.getMapper(OnlineDatasourceRelationModelMapper.class); -} diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/model/OnlineDatasourceTable.java b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/model/OnlineDatasourceTable.java deleted file mode 100644 index 5f2ef934..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/model/OnlineDatasourceTable.java +++ /dev/null @@ -1,39 +0,0 @@ -package com.orangeforms.common.online.model; - -import com.baomidou.mybatisplus.annotation.*; -import lombok.Data; - -/** - * 数据源及其关联所引用的数据表实体对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Data -@TableName(value = "zz_online_datasource_table") -public class OnlineDatasourceTable { - - /** - * 主键Id。 - */ - @TableId(value = "id") - private Long id; - - /** - * 数据源Id。 - */ - @TableField(value = "datasource_id") - private Long datasourceId; - - /** - * 数据源关联Id。 - */ - @TableField(value = "relation_id") - private Long relationId; - - /** - * 数据表Id。 - */ - @TableField(value = "table_id") - private Long tableId; -} diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/model/OnlineDblink.java b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/model/OnlineDblink.java deleted file mode 100644 index d3fdc4dd..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/model/OnlineDblink.java +++ /dev/null @@ -1,62 +0,0 @@ -package com.orangeforms.common.online.model; - -import com.baomidou.mybatisplus.annotation.*; -import com.orangeforms.common.core.base.mapper.BaseModelMapper; -import com.orangeforms.common.online.vo.OnlineDblinkVo; -import lombok.Data; -import org.mapstruct.Mapper; -import org.mapstruct.factory.Mappers; - -import java.util.Date; - -/** - * 在线表单数据表所在数据库链接实体对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Data -@TableName(value = "zz_online_dblink") -public class OnlineDblink { - - /** - * 主键Id。 - */ - @TableId(value = "dblink_id") - private Long dblinkId; - - /** - * 链接中文名称。 - */ - @TableField(value = "dblink_name") - private String dblinkName; - - /** - * 链接英文名称。 - */ - @TableField(value = "variable_name") - private String variableName; - - /** - * 链接描述。 - */ - @TableField(value = "dblink_desc") - private String dblinkDesc; - - /** - * 数据源配置常量。 - */ - @TableField(value = "dblink_config_constant") - private Integer dblinkConfigConstant; - - /** - * 创建时间。 - */ - @TableField(value = "create_time") - private Date createTime; - - @Mapper - public interface OnlineDblinkModelMapper extends BaseModelMapper { - } - public static final OnlineDblinkModelMapper INSTANCE = Mappers.getMapper(OnlineDblinkModelMapper.class); -} diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/model/OnlineDict.java b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/model/OnlineDict.java deleted file mode 100644 index a0e12ba2..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/model/OnlineDict.java +++ /dev/null @@ -1,169 +0,0 @@ -package com.orangeforms.common.online.model; - -import com.baomidou.mybatisplus.annotation.*; -import com.orangeforms.common.core.annotation.RelationConstDict; -import com.orangeforms.common.core.annotation.RelationDict; -import com.orangeforms.common.core.base.mapper.BaseModelMapper; -import com.orangeforms.common.online.model.constant.DictType; -import com.orangeforms.common.online.vo.OnlineDictVo; -import lombok.Data; -import org.mapstruct.Mapper; -import org.mapstruct.factory.Mappers; - -import java.util.Date; -import java.util.Map; - -/** - * 在线表单关联的字典实体对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Data -@TableName(value = "zz_online_dict") -public class OnlineDict { - - /** - * 主键Id。 - */ - @TableId(value = "dict_id") - private Long dictId; - - /** - * 字典名称。 - */ - @TableField(value = "dict_name") - private String dictName; - - /** - * 字典类型。 - */ - @TableField(value = "dict_type") - private Integer dictType; - - /** - * 数据库链接Id。 - */ - @TableField(value = "dblink_id") - private Long dblinkId; - - /** - * 字典表名称。 - */ - @TableField(value = "table_name") - private String tableName; - - /** - * 字典表键字段名称。 - */ - @TableField(value = "key_column_name") - private String keyColumnName; - - /** - * 字典表父键字段名称。 - */ - @TableField(value = "parent_key_column_name") - private String parentKeyColumnName; - - /** - * 字典值字段名称。 - */ - @TableField(value = "value_column_name") - private String valueColumnName; - - /** - * 逻辑删除字段。 - */ - @TableField(value = "deleted_column_name") - private String deletedColumnName; - - /** - * 用户过滤滤字段名称。 - */ - @TableField(value = "user_filter_column_name") - private String userFilterColumnName; - - /** - * 部门过滤字段名称。 - */ - @TableField(value = "dept_filter_column_name") - private String deptFilterColumnName; - - /** - * 租户过滤字段名称。 - */ - @TableField(value = "tenant_filter_column_name") - private String tenantFilterColumnName; - - /** - * 是否树形标记。 - */ - @TableField(value = "tree_flag") - private Boolean treeFlag; - - /** - * 获取字典数据的url。 - */ - @TableField(value = "dict_list_url") - private String dictListUrl; - - /** - * 根据主键id批量获取字典数据的url。 - */ - @TableField(value = "dict_ids_url") - private String dictIdsUrl; - - /** - * 字典的JSON数据。 - */ - @TableField(value = "dict_data_json") - private String dictDataJson; - - /** - * 更新时间。 - */ - @TableField(value = "update_time") - private Date updateTime; - - /** - * 创建时间。 - */ - @TableField(value = "create_time") - private Date createTime; - - @RelationConstDict( - masterIdField = "dictType", - constantDictClass = DictType.class) - @TableField(exist = false) - private Map dictTypeDictMap; - - @RelationDict( - masterIdField = "dblinkId", - slaveServiceName = "onlineDblinkService", - slaveModelClass = OnlineDblink.class, - slaveIdField = "dblinkId", - slaveNameField = "dblinkName") - @TableField(exist = false) - private Map dblinkIdDictMap; - - @Mapper - public interface OnlineDictModelMapper extends BaseModelMapper { - /** - * 转换Vo对象到实体对象。 - * - * @param onlineDictVo 域对象。 - * @return 实体对象。 - */ - @Override - OnlineDict toModel(OnlineDictVo onlineDictVo); - /** - * 转换实体对象到VO对象。 - * - * @param onlineDict 实体对象。 - * @return 域对象。 - */ - @Override - OnlineDictVo fromModel(OnlineDict onlineDict); - } - public static final OnlineDictModelMapper INSTANCE = Mappers.getMapper(OnlineDictModelMapper.class); -} diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/model/OnlineForm.java b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/model/OnlineForm.java deleted file mode 100644 index 7530ddab..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/model/OnlineForm.java +++ /dev/null @@ -1,138 +0,0 @@ -package com.orangeforms.common.online.model; - -import com.baomidou.mybatisplus.annotation.*; -import com.orangeforms.common.core.annotation.*; -import com.orangeforms.common.core.base.mapper.BaseModelMapper; -import com.orangeforms.common.online.model.constant.FormType; -import com.orangeforms.common.online.vo.OnlineFormVo; -import lombok.Data; -import org.mapstruct.Mapper; -import org.mapstruct.Mapping; -import org.mapstruct.factory.Mappers; - -import java.util.Date; -import java.util.Map; - -/** - * 在线表单实体对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Data -@TableName(value = "zz_online_form") -public class OnlineForm { - - /** - * 主键Id。 - */ - @TableId(value = "form_id") - private Long formId; - - /** - * 页面id。 - */ - @TableField(value = "page_id") - private Long pageId; - - /** - * 表单编码。 - */ - @TableField(value = "form_code") - private String formCode; - - /** - * 表单名称。 - */ - @TableField(value = "form_name") - private String formName; - - /** - * 表单类别。 - */ - @TableField(value = "form_kind") - private Integer formKind; - - /** - * 表单类型。 - */ - @TableField(value = "form_type") - private Integer formType; - - /** - * 表单主表id。 - */ - @TableField(value = "master_table_id") - private Long masterTableId; - - /** - * 表单组件JSON。 - */ - @TableField(value = "widget_json") - private String widgetJson; - - /** - * 表单参数JSON。 - */ - @TableField(value = "params_json") - private String paramsJson; - - /** - * 更新时间。 - */ - @TableField(value = "update_time") - private Date updateTime; - - /** - * 创建时间。 - */ - @TableField(value = "create_time") - private Date createTime; - - @RelationOneToOne( - masterIdField = "masterTableId", - slaveServiceName = "onlineTableService", - slaveModelClass = OnlineTable.class, - slaveIdField = "tableId") - @TableField(exist = false) - private OnlineTable onlineTable; - - @RelationDict( - masterIdField = "masterTableId", - slaveServiceName = "onlineTableService", - equalOneToOneRelationField = "onlineTable", - slaveModelClass = OnlineTable.class, - slaveIdField = "tableId", - slaveNameField = "modelName") - @TableField(exist = false) - private Map masterTableIdDictMap; - - @RelationConstDict( - masterIdField = "formType", - constantDictClass = FormType.class) - @TableField(exist = false) - private Map formTypeDictMap; - - @Mapper - public interface OnlineFormModelMapper extends BaseModelMapper { - /** - * 转换Vo对象到实体对象。 - * - * @param onlineFormVo 域对象。 - * @return 实体对象。 - */ - @Mapping(target = "onlineTable", expression = "java(mapToBean(onlineFormVo.getOnlineTable(), com.orangeforms.common.online.model.OnlineTable.class))") - @Override - OnlineForm toModel(OnlineFormVo onlineFormVo); - /** - * 转换实体对象到VO对象。 - * - * @param onlineForm 实体对象。 - * @return 域对象。 - */ - @Mapping(target = "onlineTable", expression = "java(beanToMap(onlineForm.getOnlineTable(), false))") - @Override - OnlineFormVo fromModel(OnlineForm onlineForm); - } - public static final OnlineFormModelMapper INSTANCE = Mappers.getMapper(OnlineFormModelMapper.class); -} diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/model/OnlineFormDatasource.java b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/model/OnlineFormDatasource.java deleted file mode 100644 index 6943fd3d..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/model/OnlineFormDatasource.java +++ /dev/null @@ -1,33 +0,0 @@ -package com.orangeforms.common.online.model; - -import com.baomidou.mybatisplus.annotation.*; -import lombok.Data; - -/** - * 在线表单和数据源多对多关联实体对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Data -@TableName(value = "zz_online_form_datasource") -public class OnlineFormDatasource { - - /** - * 主键Id。 - */ - @TableId(value = "id") - private Long id; - - /** - * 表单Id。 - */ - @TableField(value = "form_id") - private Long formId; - - /** - * 数据源Id。 - */ - @TableField(value = "datasource_id") - private Long datasourceId; -} diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/model/OnlinePage.java b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/model/OnlinePage.java deleted file mode 100644 index ff7c3c34..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/model/OnlinePage.java +++ /dev/null @@ -1,106 +0,0 @@ -package com.orangeforms.common.online.model; - -import com.baomidou.mybatisplus.annotation.*; -import com.orangeforms.common.core.annotation.RelationConstDict; -import com.orangeforms.common.core.base.mapper.BaseModelMapper; -import com.orangeforms.common.online.model.constant.PageStatus; -import com.orangeforms.common.online.model.constant.PageType; -import com.orangeforms.common.online.vo.OnlinePageVo; -import lombok.Data; -import org.mapstruct.Mapper; -import org.mapstruct.factory.Mappers; - -import java.util.Date; -import java.util.Map; - -/** - * 在线表单所在页面实体对象。这里我们可以把页面理解为表单的容器。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Data -@TableName(value = "zz_online_page") -public class OnlinePage { - - /** - * 主键Id。 - */ - @TableId(value = "page_id") - private Long pageId; - - /** - * 页面编码。 - */ - @TableField(value = "page_code") - private String pageCode; - - /** - * 页面名称。 - */ - @TableField(value = "page_name") - private String pageName; - - /** - * 页面类型。 - */ - @TableField(value = "page_type") - private Integer pageType; - - /** - * 页面编辑状态。 - */ - @TableField(value = "status") - private Integer status; - - /** - * 是否发布。 - */ - @TableField(value = "published") - private Boolean published; - - /** - * 更新时间。 - */ - @TableField(value = "update_time") - private Date updateTime; - - /** - * 创建时间。 - */ - @TableField(value = "create_time") - private Date createTime; - - @RelationConstDict( - masterIdField = "pageType", - constantDictClass = PageType.class) - @TableField(exist = false) - private Map pageTypeDictMap; - - @RelationConstDict( - masterIdField = "status", - constantDictClass = PageStatus.class) - @TableField(exist = false) - private Map statusDictMap; - - @Mapper - public interface OnlinePageModelMapper extends BaseModelMapper { - /** - * 转换Vo对象到实体对象。 - * - * @param onlinePageVo 域对象。 - * @return 实体对象。 - */ - @Override - OnlinePage toModel(OnlinePageVo onlinePageVo); - /** - * 转换实体对象到VO对象。 - * - * @param onlinePage 实体对象。 - * @return 域对象。 - */ - @Override - OnlinePageVo fromModel(OnlinePage onlinePage); - } - public static final OnlinePageModelMapper INSTANCE = Mappers.getMapper(OnlinePageModelMapper.class); -} diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/model/OnlinePageDatasource.java b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/model/OnlinePageDatasource.java deleted file mode 100644 index 95967a8b..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/model/OnlinePageDatasource.java +++ /dev/null @@ -1,33 +0,0 @@ -package com.orangeforms.common.online.model; - -import com.baomidou.mybatisplus.annotation.*; -import lombok.Data; - -/** - * 在线表单页面和数据源多对多关联实体对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Data -@TableName(value = "zz_online_page_datasource") -public class OnlinePageDatasource { - - /** - * 主键Id。 - */ - @TableId(value = "id") - private Long id; - - /** - * 页面主键Id。 - */ - @TableField(value = "page_id") - private Long pageId; - - /** - * 数据源主键Id。 - */ - @TableField(value = "datasource_id") - private Long datasourceId; -} diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/model/OnlineRule.java b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/model/OnlineRule.java deleted file mode 100644 index 3a91c3ea..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/model/OnlineRule.java +++ /dev/null @@ -1,109 +0,0 @@ -package com.orangeforms.common.online.model; - -import com.baomidou.mybatisplus.annotation.*; -import com.orangeforms.common.core.annotation.RelationConstDict; -import com.orangeforms.common.core.base.mapper.BaseModelMapper; -import com.orangeforms.common.online.model.constant.RuleType; -import com.orangeforms.common.online.vo.OnlineRuleVo; -import lombok.Data; -import org.mapstruct.Mapper; -import org.mapstruct.Mapping; -import org.mapstruct.factory.Mappers; - -import java.util.Date; -import java.util.Map; - -/** - * 在线表单数据表字段验证规则实体对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Data -@TableName(value = "zz_online_rule") -public class OnlineRule { - - /** - * 主键Id。 - */ - @TableId(value = "rule_id") - private Long ruleId; - - /** - * 规则名称。 - */ - @TableField(value = "rule_name") - private String ruleName; - - /** - * 规则类型。 - */ - @TableField(value = "rule_type") - private Integer ruleType; - - /** - * 内置规则标记。 - */ - @TableField(value = "builtin") - private Boolean builtin; - - /** - * 自定义规则的正则表达式。 - */ - @TableField(value = "pattern") - private String pattern; - - /** - * 更新时间。 - */ - @TableField(value = "update_time") - private Date updateTime; - - /** - * 创建时间。 - */ - @TableField(value = "create_time") - private Date createTime; - - /** - * 逻辑删除标记字段(1: 正常 -1: 已删除)。 - */ - @TableLogic - @TableField(value = "deleted_flag") - private Integer deletedFlag; - - /** - * ruleId 的多对多关联表数据对象。 - */ - @TableField(exist = false) - private OnlineColumnRule onlineColumnRule; - - @RelationConstDict( - masterIdField = "ruleType", - constantDictClass = RuleType.class) - @TableField(exist = false) - private Map ruleTypeDictMap; - - @Mapper - public interface OnlineRuleModelMapper extends BaseModelMapper { - /** - * 转换Vo对象到实体对象。 - * - * @param onlineRuleVo 域对象。 - * @return 实体对象。 - */ - @Mapping(target = "onlineColumnRule", expression = "java(mapToBean(onlineRuleVo.getOnlineColumnRule(), com.orangeforms.common.online.model.OnlineColumnRule.class))") - @Override - OnlineRule toModel(OnlineRuleVo onlineRuleVo); - /** - * 转换实体对象到VO对象。 - * - * @param onlineRule 实体对象。 - * @return 域对象。 - */ - @Mapping(target = "onlineColumnRule", expression = "java(beanToMap(onlineRule.getOnlineColumnRule(), false))") - @Override - OnlineRuleVo fromModel(OnlineRule onlineRule); - } - public static final OnlineRuleModelMapper INSTANCE = Mappers.getMapper(OnlineRuleModelMapper.class); -} diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/model/OnlineTable.java b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/model/OnlineTable.java deleted file mode 100644 index cbbe3320..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/model/OnlineTable.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.orangeforms.common.online.model; - -import com.baomidou.mybatisplus.annotation.*; -import com.orangeforms.common.core.annotation.RelationOneToMany; -import com.orangeforms.common.core.base.mapper.BaseModelMapper; -import com.orangeforms.common.online.vo.OnlineTableVo; -import lombok.Data; -import org.mapstruct.Mapper; -import org.mapstruct.factory.Mappers; - -import java.util.Date; -import java.util.List; -import java.util.Map; - -/** - * 在线表单的数据表实体对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Data -@TableName(value = "zz_online_table") -public class OnlineTable { - - /** - * 主键Id。 - */ - @TableId(value = "table_id") - private Long tableId; - - /** - * 表名称。 - */ - @TableField(value = "table_name") - private String tableName; - - /** - * 实体名称。 - */ - @TableField(value = "model_name") - private String modelName; - - /** - * 数据库链接Id。 - */ - @TableField(value = "dblink_id") - private Long dblinkId; - - /** - * 更新时间。 - */ - @TableField(value = "update_time") - private Date updateTime; - - /** - * 创建时间。 - */ - @TableField(value = "create_time") - private Date createTime; - - @RelationOneToMany( - masterIdField = "tableId", - slaveServiceName = "onlineColumnService", - slaveModelClass = OnlineColumn.class, - slaveIdField = "tableId") - @TableField(exist = false) - private List columnList; - - /** - * 该字段会被缓存,因此在线表单执行操作时可以从缓存中读取该数据,并可基于columnId进行快速检索。 - */ - @TableField(exist = false) - private Map columnMap; - - /** - * 当前表的主键字段,该字段仅仅用于动态表单运行时的SQL拼装。 - */ - @TableField(exist = false) - private OnlineColumn primaryKeyColumn; - - /** - * 当前表的逻辑删除字段,该字段仅仅用于动态表单运行时的SQL拼装。 - */ - @TableField(exist = false) - private OnlineColumn logicDeleteColumn; - - @Mapper - public interface OnlineTableModelMapper extends BaseModelMapper { - /** - * 转换Vo对象到实体对象。 - * - * @param onlineTableVo 域对象。 - * @return 实体对象。 - */ - @Override - OnlineTable toModel(OnlineTableVo onlineTableVo); - /** - * 转换实体对象到VO对象。 - * - * @param onlineTable 实体对象。 - * @return 域对象。 - */ - @Override - OnlineTableVo fromModel(OnlineTable onlineTable); - } - public static final OnlineTableModelMapper INSTANCE = Mappers.getMapper(OnlineTableModelMapper.class); -} diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/model/OnlineVirtualColumn.java b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/model/OnlineVirtualColumn.java deleted file mode 100644 index 60845a83..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/model/OnlineVirtualColumn.java +++ /dev/null @@ -1,96 +0,0 @@ -package com.orangeforms.common.online.model; - -import com.baomidou.mybatisplus.annotation.*; -import com.orangeforms.common.core.base.mapper.BaseModelMapper; -import com.orangeforms.common.online.vo.OnlineVirtualColumnVo; -import lombok.Data; -import org.mapstruct.*; -import org.mapstruct.factory.Mappers; - -/** - * 在线数据表虚拟字段实体对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Data -@TableName(value = "zz_online_virtual_column") -public class OnlineVirtualColumn { - - /** - * 主键Id。 - */ - @TableId(value = "virtual_column_id") - private Long virtualColumnId; - - /** - * 所在表Id。 - */ - @TableField(value = "table_id") - private Long tableId; - - /** - * 字段名称。 - */ - @TableField(value = "object_field_name") - private String objectFieldName; - - /** - * 属性类型。 - */ - @TableField(value = "object_field_type") - private String objectFieldType; - - /** - * 字段提示名。 - */ - @TableField(value = "column_prompt") - private String columnPrompt; - - /** - * 虚拟字段类型(0: 聚合)。 - */ - @TableField(value = "virtual_type") - private Integer virtualType; - - /** - * 关联数据源Id。 - */ - @TableField(value = "datasource_id") - private Long datasourceId; - - /** - * 关联Id。 - */ - @TableField(value = "relation_id") - private Long relationId; - - /** - * 聚合字段所在关联表Id。 - */ - @TableField(value = "aggregation_table_id") - private Long aggregationTableId; - - /** - * 关联表聚合字段Id。 - */ - @TableField(value = "aggregation_column_id") - private Long aggregationColumnId; - - /** - * 聚合类型(0: count 1: sum 2: avg 3: max 4:min)。 - */ - @TableField(value = "aggregation_type") - private Integer aggregationType; - - /** - * 存储过滤条件的json。 - */ - @TableField(value = "where_clause_json") - private String whereClauseJson; - - @Mapper - public interface OnlineVirtualColumnModelMapper extends BaseModelMapper { - } - public static final OnlineVirtualColumnModelMapper INSTANCE = Mappers.getMapper(OnlineVirtualColumnModelMapper.class); -} diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/model/constant/DictType.java b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/model/constant/DictType.java deleted file mode 100644 index ac061dfa..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/model/constant/DictType.java +++ /dev/null @@ -1,54 +0,0 @@ -package com.orangeforms.common.online.model.constant; - -import java.util.HashMap; -import java.util.Map; - -/** - * 在线表单字典类型常量字典对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -public final class DictType { - - /** - * 数据表字典。 - */ - public static final int TABLE = 1; - /** - * URL字典。 - */ - public static final int URL = 5; - /** - * 常量字典。 - */ - public static final int CONST = 10; - /** - * 自定义字典。 - */ - public static final int CUSTOM = 15; - - private static final Map DICT_MAP = new HashMap<>(2); - static { - DICT_MAP.put(TABLE, "数据表字典"); - DICT_MAP.put(URL, "URL字典"); - DICT_MAP.put(CONST, "静态字典"); - DICT_MAP.put(CUSTOM, "自定义字典"); - } - - /** - * 判断参数是否为当前常量字典的合法值。 - * - * @param value 待验证的参数值。 - * @return 合法返回true,否则false。 - */ - public static boolean isValid(Integer value) { - return value != null && DICT_MAP.containsKey(value); - } - - /** - * 私有构造函数,明确标识该常量类的作用。 - */ - private DictType() { - } -} diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/model/constant/FieldFilterType.java b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/model/constant/FieldFilterType.java deleted file mode 100644 index acb2abc7..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/model/constant/FieldFilterType.java +++ /dev/null @@ -1,59 +0,0 @@ -package com.orangeforms.common.online.model.constant; - -import java.util.HashMap; -import java.util.Map; - -/** - * 字段过滤类型常量字典对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -public final class FieldFilterType { - - /** - * 无过滤。 - */ - public static final int NO_FILTER = 0; - /** - * 等于过滤。 - */ - public static final int EQUAL_FILTER = 1; - /** - * 范围过滤。 - */ - public static final int RANGE_FILTER = 2; - /** - * 模糊过滤。 - */ - public static final int LIKE_FILTER = 3; - /** - * IN LIST列表过滤。 - */ - public static final int IN_LIST_FILTER = 4; - - private static final Map DICT_MAP = new HashMap<>(9); - static { - DICT_MAP.put(NO_FILTER, "无过滤"); - DICT_MAP.put(EQUAL_FILTER, "等于过滤"); - DICT_MAP.put(RANGE_FILTER, "范围过滤"); - DICT_MAP.put(LIKE_FILTER, "模糊过滤"); - DICT_MAP.put(IN_LIST_FILTER, "IN LIST列表过滤"); - } - - /** - * 判断参数是否为当前常量字典的合法值。 - * - * @param value 待验证的参数值。 - * @return 合法返回true,否则false。 - */ - public static boolean isValid(Integer value) { - return value != null && DICT_MAP.containsKey(value); - } - - /** - * 私有构造函数,明确标识该常量类的作用。 - */ - private FieldFilterType() { - } -} diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/model/constant/FieldKind.java b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/model/constant/FieldKind.java deleted file mode 100644 index 0bc84db9..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/model/constant/FieldKind.java +++ /dev/null @@ -1,74 +0,0 @@ -package com.orangeforms.common.online.model.constant; - -import java.util.HashMap; -import java.util.Map; - -/** - * 字段类别常量字典对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -public final class FieldKind { - - /** - * 文件上传字段。 - */ - public static final int UPLOAD = 1; - /** - * 图片上传字段。 - */ - public static final int UPLOAD_IMAGE = 2; - /** - * 富文本字段。 - */ - public static final int RICH_TEXT = 3; - /** - * 创建时间字段。 - */ - public static final int CREATE_TIME = 20; - /** - * 创建人字段。 - */ - public static final int CREATE_USER_ID = 21; - /** - * 更新时间字段。 - */ - public static final int UPDATE_TIME = 22; - /** - * 更新人字段。 - */ - public static final int UPDATE_USER_ID = 23; - /** - * 逻辑删除字段。 - */ - public static final int LOGIC_DELETE = 31; - - private static final Map DICT_MAP = new HashMap<>(9); - static { - DICT_MAP.put(UPLOAD, "文件上传字段"); - DICT_MAP.put(UPLOAD_IMAGE, "图片上传字段"); - DICT_MAP.put(RICH_TEXT, "富文本字段"); - DICT_MAP.put(CREATE_TIME, "创建时间字段"); - DICT_MAP.put(CREATE_USER_ID, "创建人字段"); - DICT_MAP.put(UPDATE_TIME, "更新时间字段"); - DICT_MAP.put(UPDATE_USER_ID, "更新人字段"); - DICT_MAP.put(LOGIC_DELETE, "逻辑删除字段"); - } - - /** - * 判断参数是否为当前常量字典的合法值。 - * - * @param value 待验证的参数值。 - * @return 合法返回true,否则false。 - */ - public static boolean isValid(Integer value) { - return value != null && DICT_MAP.containsKey(value); - } - - /** - * 私有构造函数,明确标识该常量类的作用。 - */ - private FieldKind() { - } -} diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/model/constant/FormKind.java b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/model/constant/FormKind.java deleted file mode 100644 index 51e30566..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/model/constant/FormKind.java +++ /dev/null @@ -1,44 +0,0 @@ -package com.orangeforms.common.online.model.constant; - -import java.util.HashMap; -import java.util.Map; - -/** - * 表单类别常量字典对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -public final class FormKind { - - /** - * 弹框。 - */ - public static final int DIALOG = 1; - /** - * 跳页。 - */ - public static final int NEW_PAGE = 5; - - private static final Map DICT_MAP = new HashMap<>(2); - static { - DICT_MAP.put(DIALOG, "弹框列表"); - DICT_MAP.put(NEW_PAGE, "跳页类别"); - } - - /** - * 判断参数是否为当前常量字典的合法值。 - * - * @param value 待验证的参数值。 - * @return 合法返回true,否则false。 - */ - public static boolean isValid(Integer value) { - return value != null && DICT_MAP.containsKey(value); - } - - /** - * 私有构造函数,明确标识该常量类的作用。 - */ - private FormKind() { - } -} diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/model/constant/FormType.java b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/model/constant/FormType.java deleted file mode 100644 index 1c3f2fd2..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/model/constant/FormType.java +++ /dev/null @@ -1,54 +0,0 @@ -package com.orangeforms.common.online.model.constant; - -import java.util.HashMap; -import java.util.Map; - -/** - * 表单类型常量字典对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -public final class FormType { - - /** - * 查询表单。 - */ - public static final int QUERY = 1; - /** - * 编辑表单。 - */ - public static final int FORM = 5; - /** - * 流程表单。 - */ - public static final int FLOW = 10; - /** - * 流程工单表单。 - */ - public static final int FLOW_WORK_ORDER = 11; - - private static final Map DICT_MAP = new HashMap<>(2); - static { - DICT_MAP.put(QUERY, "查询表单"); - DICT_MAP.put(FORM, "编辑表单"); - DICT_MAP.put(FLOW, "流程表单"); - DICT_MAP.put(FLOW_WORK_ORDER, "流程工单表单"); - } - - /** - * 判断参数是否为当前常量字典的合法值。 - * - * @param value 待验证的参数值。 - * @return 合法返回true,否则false。 - */ - public static boolean isValid(Integer value) { - return value != null && DICT_MAP.containsKey(value); - } - - /** - * 私有构造函数,明确标识该常量类的作用。 - */ - private FormType() { - } -} diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/model/constant/PageStatus.java b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/model/constant/PageStatus.java deleted file mode 100644 index dc19d274..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/model/constant/PageStatus.java +++ /dev/null @@ -1,49 +0,0 @@ -package com.orangeforms.common.online.model.constant; - -import java.util.HashMap; -import java.util.Map; - -/** - * 页面状态常量字典对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -public final class PageStatus { - - /** - * 编辑基础信息。 - */ - public static final int BASIC = 0; - /** - * 编辑数据模型。 - */ - public static final int DATASOURCE = 1; - /** - * 设计表单。 - */ - public static final int FORM_DESIGN = 2; - - private static final Map DICT_MAP = new HashMap<>(4); - static { - DICT_MAP.put(BASIC, "编辑基础信息"); - DICT_MAP.put(DATASOURCE, "编辑数据模型"); - DICT_MAP.put(FORM_DESIGN, "设计表单"); - } - - /** - * 判断参数是否为当前常量字典的合法值。 - * - * @param value 待验证的参数值。 - * @return 合法返回true,否则false。 - */ - public static boolean isValid(Integer value) { - return value != null && DICT_MAP.containsKey(value); - } - - /** - * 私有构造函数,明确标识该常量类的作用。 - */ - private PageStatus() { - } -} diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/model/constant/PageType.java b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/model/constant/PageType.java deleted file mode 100644 index 07c9221c..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/model/constant/PageType.java +++ /dev/null @@ -1,49 +0,0 @@ -package com.orangeforms.common.online.model.constant; - -import java.util.HashMap; -import java.util.Map; - -/** - * 页面类型常量字典对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -public final class PageType { - - /** - * 业务页面。 - */ - public static final int BIZ = 1; - /** - * 统计页面。 - */ - public static final int STATS = 5; - /** - * 流程页面。 - */ - public static final int FLOW = 10; - - private static final Map DICT_MAP = new HashMap<>(2); - static { - DICT_MAP.put(BIZ, "业务页面"); - DICT_MAP.put(STATS, "统计页面"); - DICT_MAP.put(FLOW, "流程页面"); - } - - /** - * 判断参数是否为当前常量字典的合法值。 - * - * @param value 待验证的参数值。 - * @return 合法返回true,否则false。 - */ - public static boolean isValid(Integer value) { - return value != null && DICT_MAP.containsKey(value); - } - - /** - * 私有构造函数,明确标识该常量类的作用。 - */ - private PageType() { - } -} diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/model/constant/RelationType.java b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/model/constant/RelationType.java deleted file mode 100644 index ab559360..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/model/constant/RelationType.java +++ /dev/null @@ -1,44 +0,0 @@ -package com.orangeforms.common.online.model.constant; - -import java.util.HashMap; -import java.util.Map; - -/** - * 关联类型常量字典对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -public final class RelationType { - - /** - * 一对一关联。 - */ - public static final int ONE_TO_ONE = 0; - /** - * 一对多关联。 - */ - public static final int ONE_TO_MANY = 1; - - private static final Map DICT_MAP = new HashMap<>(2); - static { - DICT_MAP.put(ONE_TO_ONE, "一对一关联"); - DICT_MAP.put(ONE_TO_MANY, "一对多关联"); - } - - /** - * 判断参数是否为当前常量字典的合法值。 - * - * @param value 待验证的参数值。 - * @return 合法返回true,否则false。 - */ - public static boolean isValid(Integer value) { - return value != null && DICT_MAP.containsKey(value); - } - - /** - * 私有构造函数,明确标识该常量类的作用。 - */ - private RelationType() { - } -} diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/model/constant/RuleType.java b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/model/constant/RuleType.java deleted file mode 100644 index 6d1c5244..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/model/constant/RuleType.java +++ /dev/null @@ -1,69 +0,0 @@ -package com.orangeforms.common.online.model.constant; - -import java.util.HashMap; -import java.util.Map; - -/** - * 验证规则类型常量字典对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -public final class RuleType { - - /** - * 只允许整数。 - */ - public static final int INTEGER_ONLY = 1; - /** - * 只允许数字。 - */ - public static final int DIGITAL_ONLY = 2; - /** - * 只允许英文字符。 - */ - public static final int LETTER_ONLY = 3; - /** - * 范围验证。 - */ - public static final int RANGE = 4; - /** - * 邮箱格式验证。 - */ - public static final int EMAIL = 5; - /** - * 手机格式验证。 - */ - public static final int MOBILE = 6; - /** - * 自定义验证。 - */ - public static final int CUSTOM = 100; - - private static final Map DICT_MAP = new HashMap<>(7); - static { - DICT_MAP.put(INTEGER_ONLY, "只允许整数"); - DICT_MAP.put(DIGITAL_ONLY, "只允许数字"); - DICT_MAP.put(LETTER_ONLY, "只允许英文字符"); - DICT_MAP.put(RANGE, "范围验证"); - DICT_MAP.put(EMAIL, "邮箱格式验证"); - DICT_MAP.put(MOBILE, "手机格式验证"); - DICT_MAP.put(CUSTOM, "自定义验证"); - } - - /** - * 判断参数是否为当前常量字典的合法值。 - * - * @param value 待验证的参数值。 - * @return 合法返回true,否则false。 - */ - public static boolean isValid(Integer value) { - return value != null && DICT_MAP.containsKey(value); - } - - /** - * 私有构造函数,明确标识该常量类的作用。 - */ - private RuleType() { - } -} diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/model/constant/VirtualType.java b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/model/constant/VirtualType.java deleted file mode 100644 index 18cc8473..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/model/constant/VirtualType.java +++ /dev/null @@ -1,39 +0,0 @@ -package com.orangeforms.common.online.model.constant; - -import java.util.HashMap; -import java.util.Map; - -/** - * 在线表单虚拟字段类型常量字典对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -public final class VirtualType { - - /** - * 聚合。 - */ - public static final int AGGREGATION = 0; - - private static final Map DICT_MAP = new HashMap<>(2); - static { - DICT_MAP.put(AGGREGATION, "聚合"); - } - - /** - * 判断参数是否为当前常量字典的合法值。 - * - * @param value 待验证的参数值。 - * @return 合法返回true,否则false。 - */ - public static boolean isValid(Integer value) { - return value != null && DICT_MAP.containsKey(value); - } - - /** - * 私有构造函数,明确标识该常量类的作用。 - */ - private VirtualType() { - } -} diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/object/ColumnData.java b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/object/ColumnData.java deleted file mode 100644 index f893a021..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/object/ColumnData.java +++ /dev/null @@ -1,28 +0,0 @@ -package com.orangeforms.common.online.object; - -import com.orangeforms.common.online.model.OnlineColumn; -import lombok.AllArgsConstructor; -import lombok.Data; -import lombok.NoArgsConstructor; - -/** - * 表字段数据对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Data -@AllArgsConstructor -@NoArgsConstructor -public class ColumnData { - - /** - * 在线表字段对象。 - */ - private OnlineColumn column; - - /** - * 字段值。 - */ - private Object columnValue; -} diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/object/JoinTableInfo.java b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/object/JoinTableInfo.java deleted file mode 100644 index c6e27451..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/object/JoinTableInfo.java +++ /dev/null @@ -1,28 +0,0 @@ -package com.orangeforms.common.online.object; - -import lombok.Data; - -/** - * 连接表信息对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Data -public class JoinTableInfo { - - /** - * 是否左连接。 - */ - private Boolean leftJoin; - - /** - * 连接表表名。 - */ - private String joinTableName; - - /** - * 连接条件。 - */ - private String joinCondition; -} diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/object/SqlTable.java b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/object/SqlTable.java deleted file mode 100644 index 85b4f0f5..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/object/SqlTable.java +++ /dev/null @@ -1,41 +0,0 @@ -package com.orangeforms.common.online.object; - -import lombok.Data; - -import java.util.Date; -import java.util.List; - -/** - * 数据库中的表对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Data -public class SqlTable { - - /** - * 表名称。 - */ - private String tableName; - - /** - * 表注释。 - */ - private String tableComment; - - /** - * 创建时间。 - */ - private Date createTime; - - /** - * 关联的字段列表。 - */ - private List columnList; - - /** - * 数据库链接Id。 - */ - private Long dblinkId; -} diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/object/SqlTableColumn.java b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/object/SqlTableColumn.java deleted file mode 100644 index 22442da4..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/object/SqlTableColumn.java +++ /dev/null @@ -1,73 +0,0 @@ -package com.orangeforms.common.online.object; - -import lombok.Data; - -/** - * 数据库中的表字段对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Data -public class SqlTableColumn { - - /** - * 表字段名。 - */ - private String columnName; - - /** - * 表字段类型。 - */ - private String columnType; - - /** - * 表字段全类型。 - */ - private String fullColumnType; - - /** - * 字段注释。 - */ - private String columnComment; - - /** - * 是否为主键。 - */ - private Boolean primaryKey; - - /** - * 是否自动增长。 - */ - private Boolean autoIncrement; - - /** - * 是否可以为空值。 - */ - private Boolean nullable; - - /** - * 字段顺序。 - */ - private Integer columnShowOrder; - - /** - * 附件信息。 - */ - private String extra; - - /** - * 字符型字段精度。 - */ - private Long stringPrecision; - - /** - * 数值型字段精度。 - */ - private Integer numericPrecision; - - /** - * 缺省值。 - */ - private Object columnDefault; -} diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/service/OnlineColumnService.java b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/service/OnlineColumnService.java deleted file mode 100644 index 7b278284..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/service/OnlineColumnService.java +++ /dev/null @@ -1,141 +0,0 @@ -package com.orangeforms.common.online.service; - -import com.orangeforms.common.core.base.service.IBaseService; -import com.orangeforms.common.core.object.CallResult; -import com.orangeforms.common.online.model.OnlineColumn; -import com.orangeforms.common.online.model.OnlineColumnRule; -import com.orangeforms.common.online.object.SqlTableColumn; - -import java.util.List; -import java.util.Set; - -/** - * 字段数据数据操作服务接口。 - * - * @author Jerry - * @date 2021-06-06 - */ -public interface OnlineColumnService extends IBaseService { - - /** - * 保存新增数据表字段列表。 - * - * @param columnList 新增数据表字段对象列表。 - * @param onlineTableId 在线表对象的主键Id。 - * @return 插入的在线表字段数据。 - */ - List saveNewList(List columnList, Long onlineTableId); - - /** - * 更新数据对象。 - * - * @param onlineColumn 更新的对象。 - * @param originalOnlineColumn 原有数据对象。 - * @return 成功返回true,否则false。 - */ - boolean update(OnlineColumn onlineColumn, OnlineColumn originalOnlineColumn); - - /** - * 刷新数据库表字段的数据到在线表字段。 - * - * @param sqlTableColumn 源数据库表字段对象。 - * @param onlineColumn 被刷新的在线表字段对象。 - */ - void refresh(SqlTableColumn sqlTableColumn, OnlineColumn onlineColumn); - - /** - * 删除指定数据。 - * - * @param tableId 表Id。 - * @param columnId 字段Id。 - * @return 成功返回true,否则false。 - */ - boolean remove(Long tableId, Long columnId); - - /** - * 批量添加多对多关联关系。 - * - * @param onlineColumnRuleList 多对多关联表对象集合。 - * @param columnId 主表Id。 - */ - void addOnlineColumnRuleList(List onlineColumnRuleList, Long columnId); - - /** - * 更新中间表数据。 - * - * @param onlineColumnRule 中间表对象。 - * @return 更新成功与否。 - */ - boolean updateOnlineColumnRule(OnlineColumnRule onlineColumnRule); - - /** - * 获取中间表数据。 - * - * @param columnId 主表Id。 - * @param ruleId 从表Id。 - * @return 中间表对象。 - */ - OnlineColumnRule getOnlineColumnRule(Long columnId, Long ruleId); - - /** - * 移除单条多对多关系。 - * - * @param columnId 主表Id。 - * @param ruleId 从表Id。 - * @return 成功返回true,否则false。 - */ - boolean removeOnlineColumnRule(Long columnId, Long ruleId); - - /** - * 当前服务的支持表为从表,根据主表的主键Id,删除一对多的从表数据。 - * - * @param tableId 主表主键Id。 - * @return 删除数量。 - */ - int removeByTableId(Long tableId); - - /** - * 删除指定数据表Id集合中的表字段。 - * - * @param tableIdSet 待删除的数据表Id集合。 - */ - void removeByTableIdSet(Set tableIdSet); - - /** - * 获取单表查询结果。由于没有关联数据查询,因此在仅仅获取单表数据的场景下,效率更高。 - * 如果需要同时获取关联数据,请移步(getOnlineColumnListWithRelation)方法。 - * - * @param filter 过滤对象。 - * @param orderBy 排序参数。 - * @return 查询结果集。 - */ - List getOnlineColumnList(OnlineColumn filter, String orderBy); - - /** - * 获取主表的查询结果,以及主表关联的字典数据和一对一从表数据,以及一对一从表的字典数据。 - * 该查询会涉及到一对一从表的关联过滤,或一对多从表的嵌套关联过滤,因此性能不如单表过滤。 - * 如果仅仅需要获取主表数据,请移步(getOnlineColumnList),以便获取更好的查询性能。 - * - * @param filter 主表过滤对象。 - * @param orderBy 排序参数。 - * @return 查询结果集。 - */ - List getOnlineColumnListWithRelation(OnlineColumn filter, String orderBy); - - /** - * 获取指定数据表Id集合的字段对象列表。 - * - * @param tableIdSet 指定的数据表Id集合。 - * @return 数据表Id集合所包含的字段对象列表。 - */ - List getOnlineColumnListByTableIds(Set tableIdSet); - - /** - * 根据表Id和字段列名获取指定字段。 - * - * @param tableId 字段所在表Id。 - * @param columnName 字段名。 - * @return 查询出的字段对象。 - */ - OnlineColumn getOnlineColumnByTableIdAndColumnName(Long tableId, String columnName); -} diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/service/OnlineDatasourceRelationService.java b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/service/OnlineDatasourceRelationService.java deleted file mode 100644 index cf5cb277..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/service/OnlineDatasourceRelationService.java +++ /dev/null @@ -1,88 +0,0 @@ -package com.orangeforms.common.online.service; - -import com.orangeforms.common.core.base.service.IBaseService; -import com.orangeforms.common.core.object.CallResult; -import com.orangeforms.common.online.model.OnlineDatasourceRelation; -import com.orangeforms.common.online.object.SqlTable; -import com.orangeforms.common.online.object.SqlTableColumn; - -import java.util.List; -import java.util.Set; - -/** - * 数据关联数据操作服务接口。 - * - * @author Jerry - * @date 2021-06-06 - */ -public interface OnlineDatasourceRelationService extends IBaseService { - - /** - * 保存新增对象。 - * - * @param relation 新增对象。 - * @param slaveSqlTable 新增的关联从数据表对象。 - * @param slaveSqlColumn 新增的关联从数据表对象。 - * @return 返回新增对象。 - */ - OnlineDatasourceRelation saveNew( - OnlineDatasourceRelation relation, SqlTable slaveSqlTable, SqlTableColumn slaveSqlColumn); - - /** - * 更新数据对象。 - * - * @param relation 更新的对象。 - * @param originalRelation 原有数据对象。 - * @return 成功返回true,否则false。 - */ - boolean update(OnlineDatasourceRelation relation, OnlineDatasourceRelation originalRelation); - - /** - * 删除指定数据。 - * - * @param relationId 主键Id。 - * @return 成功返回true,否则false。 - */ - boolean remove(Long relationId); - - /** - * 当前服务的支持表为从表,根据主表的主键Id,删除一对多的从表数据。 - * - * @param datasourceId 主表主键Id。 - * @return 删除数量。 - */ - int removeByDatasourceId(Long datasourceId); - - /** - * 获取单表查询结果。由于没有关联数据查询,因此在仅仅获取单表数据的场景下,效率更高。 - * 如果需要同时获取关联数据,请移步(getOnlineDatasourceRelationListWithRelation)方法。 - * - * @param filter 过滤对象。 - * @param orderBy 排序参数。 - * @return 查询结果集。 - */ - List getOnlineDatasourceRelationListByDatasourceIds( - OnlineDatasourceRelation filter, String orderBy); - - /** - * 获取指定数据源Id集合下的所有数据源关联列表。 - * - * @param datasourceIdSet 数据源Id集合。 - * @param relationType 关联类型,如果为空,则查询全部类型。 - * @return 指定数据源下的所有关联列表。 - */ - List getOnlineDatasourceRelationListByDatasourceIds( - Set datasourceIdSet, Integer relationType); - - /** - * 获取主表的查询结果,以及主表关联的字典数据和一对一从表数据,以及一对一从表的字典数据。 - * 该查询会涉及到一对一从表的关联过滤,或一对多从表的嵌套关联过滤,因此性能不如单表过滤。 - * 如果仅仅需要获取主表数据,请移步(getOnlineDatasourceRelationList),以便获取更好的查询性能。 - * - * @param filter 主表过滤对象。 - * @param orderBy 排序参数。 - * @return 查询结果集。 - */ - List getOnlineDatasourceRelationListWithRelation( - OnlineDatasourceRelation filter, String orderBy); -} diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/service/OnlineDatasourceService.java b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/service/OnlineDatasourceService.java deleted file mode 100644 index 199b7293..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/service/OnlineDatasourceService.java +++ /dev/null @@ -1,110 +0,0 @@ -package com.orangeforms.common.online.service; - -import com.orangeforms.common.core.base.service.IBaseService; -import com.orangeforms.common.online.model.OnlineDatasource; -import com.orangeforms.common.online.model.OnlineDatasourceTable; -import com.orangeforms.common.online.object.SqlTable; - -import java.util.List; -import java.util.Set; - -/** - * 数据模型数据操作服务接口。 - * - * @author Jerry - * @date 2021-06-06 - */ -public interface OnlineDatasourceService extends IBaseService { - - /** - * 保存新增对象。 - * - * @param onlineDatasource 新增对象。 - * @param sqlTable 新增的数据表对象。 - * @param pageId 关联的页面Id。 - * @return 返回新增对象。 - */ - OnlineDatasource saveNew(OnlineDatasource onlineDatasource, SqlTable sqlTable, Long pageId); - - /** - * 更新数据对象。 - * - * @param onlineDatasource 更新的对象。 - * @param originalOnlineDatasource 原有数据对象。 - * @return 成功返回true,否则false。 - */ - boolean update(OnlineDatasource onlineDatasource, OnlineDatasource originalOnlineDatasource); - - /** - * 删除指定数据。 - * - * @param datasourceId 主键Id。 - * @return 成功返回true,否则false。 - */ - boolean remove(Long datasourceId); - - /** - * 获取单表查询结果。由于没有关联数据查询,因此在仅仅获取单表数据的场景下,效率更高。 - * 如果需要同时获取关联数据,请移步(getOnlineDatasourceListWithRelation)方法。 - * - * @param filter 过滤对象。 - * @param orderBy 排序参数。 - * @return 查询结果集。 - */ - List getOnlineDatasourceList(OnlineDatasource filter, String orderBy); - - /** - * 查询指定数据源Id集合的数据源列表。 - * - * @param datasourceIdSet 数据源Id集合。 - * @return 查询结果集。 - */ - List getOnlineDatasourceList(Set datasourceIdSet); - - /** - * 获取主表的查询结果,以及主表关联的字典数据和一对一从表数据,以及一对一从表的字典数据。 - * 该查询会涉及到一对一从表的关联过滤,或一对多从表的嵌套关联过滤,因此性能不如单表过滤。 - * 如果仅仅需要获取主表数据,请移步(getOnlineDatasourceList),以便获取更好的查询性能。 - * - * @param filter 主表过滤对象。 - * @param orderBy 排序参数。 - * @return 查询结果集。 - */ - List getOnlineDatasourceListWithRelation(OnlineDatasource filter, String orderBy); - - /** - * 在多对多关系中,当前Service的数据表为从表,返回不与指定主表主键Id存在对多对关系的列表。 - * - * @param pageId 主表主键Id。 - * @param filter 从表的过滤对象。 - * @param orderBy 排序参数。 - * @return 查询结果集。 - */ - List getNotInOnlineDatasourceListByPageId(Long pageId, OnlineDatasource filter, String orderBy); - - /** - * 在多对多关系中,当前Service的数据表为从表,返回与指定主表主键Id存在对多对关系的列表。 - * - * @param pageId 主表主键Id。 - * @param filter 从表的过滤对象。 - * @param orderBy 排序参数。 - * @return 查询结果集。 - */ - List getOnlineDatasourceListByPageId(Long pageId, OnlineDatasource filter, String orderBy); - - /** - * 获取指定数据源Id集合所关联的在线表关联数据。 - * - * @param datasourceIdSet 数据源Id集合。 - * @return 数据源和数据表的多对多关联列表。 - */ - List getOnlineDatasourceTableList(Set datasourceIdSet); - - /** - * 根据在线表单Id集合,获取关联的在线数据源对象列表。 - * - * @param readFormIdSet 在线表单Id集合。 - * @return 与参数表单Id关联的数据源列表。 - */ - List getOnlineDatasourceListByFormIds(Set readFormIdSet); -} diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/service/OnlineDblinkService.java b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/service/OnlineDblinkService.java deleted file mode 100644 index 26e5e531..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/service/OnlineDblinkService.java +++ /dev/null @@ -1,74 +0,0 @@ -package com.orangeforms.common.online.service; - -import com.orangeforms.common.core.base.service.IBaseService; -import com.orangeforms.common.online.model.OnlineDblink; -import com.orangeforms.common.online.object.SqlTable; -import com.orangeforms.common.online.object.SqlTableColumn; - -import java.util.List; - -/** - * 数据库链接数据操作服务接口。 - * - * @author Jerry - * @date 2021-06-06 - */ -public interface OnlineDblinkService extends IBaseService { - - /** - * 获取单表查询结果。由于没有关联数据查询,因此在仅仅获取单表数据的场景下,效率更高。 - * 如果需要同时获取关联数据,请移步(getOnlineDblinkListWithRelation)方法。 - * - * @param filter 过滤对象。 - * @param orderBy 排序参数。 - * @return 查询结果集。 - */ - List getOnlineDblinkList(OnlineDblink filter, String orderBy); - - /** - * 获取主表的查询结果,以及主表关联的字典数据和一对一从表数据,以及一对一从表的字典数据。 - * 该查询会涉及到一对一从表的关联过滤,或一对多从表的嵌套关联过滤,因此性能不如单表过滤。 - * 如果仅仅需要获取主表数据,请移步(getOnlineDblinkList),以便获取更好的查询性能。 - * - * @param filter 主表过滤对象。 - * @param orderBy 排序参数。 - * @return 查询结果集。 - */ - List getOnlineDblinkListWithRelation(OnlineDblink filter, String orderBy); - - /** - * 获取指定DBLink下面的全部数据表。 - * - * @param dblink 数据库链接对象。 - * @return 全部数据表列表。 - */ - List getDblinkTableList(OnlineDblink dblink); - - /** - * 获取指定DBLink下,指定表名的数据表对象,及其关联字段列表。 - * - * @param dblink 数据库链接对象。 - * @param tableName 数据库中的数据表名。 - * @return 数据表对象。 - */ - SqlTable getDblinkTable(OnlineDblink dblink, String tableName); - - /** - * 获取指定DBLink下,指定表名的字段列表。 - * - * @param dblink 数据库链接对象。 - * @param tableName 数据库中的数据表名。 - * @return 表的字段列表。 - */ - List getDblinkTableColumnList(OnlineDblink dblink, String tableName); - - /** - * 获取指定DBLink下,指定表的字段对象。 - * - * @param dblink 数据库链接对象。 - * @param tableName 数据库中的数据表名。 - * @param columnName 数据库中的数据表的字段名。 - * @return 表的字段对象。 - */ - SqlTableColumn getDblinkTableColumn(OnlineDblink dblink, String tableName, String columnName); -} diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/service/OnlineDictService.java b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/service/OnlineDictService.java deleted file mode 100644 index dca60453..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/service/OnlineDictService.java +++ /dev/null @@ -1,71 +0,0 @@ -package com.orangeforms.common.online.service; - -import com.orangeforms.common.core.base.service.IBaseService; -import com.orangeforms.common.core.object.CallResult; -import com.orangeforms.common.online.model.OnlineDict; - -import java.util.List; -import java.util.Set; - -/** - * 在线表单字典数据操作服务接口。 - * - * @author Jerry - * @date 2021-06-06 - */ -public interface OnlineDictService extends IBaseService { - - /** - * 保存新增对象。 - * - * @param onlineDict 新增对象。 - * @return 返回新增对象。 - */ - OnlineDict saveNew(OnlineDict onlineDict); - - /** - * 更新数据对象。 - * - * @param onlineDict 更新的对象。 - * @param originalOnlineDict 原有数据对象。 - * @return 成功返回true,否则false。 - */ - boolean update(OnlineDict onlineDict, OnlineDict originalOnlineDict); - - /** - * 删除指定数据。 - * - * @param dictId 主键Id。 - * @return 成功返回true,否则false。 - */ - boolean remove(Long dictId); - - /** - * 获取单表查询结果。由于没有关联数据查询,因此在仅仅获取单表数据的场景下,效率更高。 - * 如果需要同时获取关联数据,请移步(getOnlineDictListWithRelation)方法。 - * - * @param filter 过滤对象。 - * @param orderBy 排序参数。 - * @return 查询结果集。 - */ - List getOnlineDictList(OnlineDict filter, String orderBy); - - /** - * 根据指定字典Id集合返回字段对象数据列表。 - * - * @param dictIdSet 字典Id集合。 - * @return 查询后的字典对象列表。 - */ - List getOnlineDictList(Set dictIdSet); - - /** - * 获取主表的查询结果,以及主表关联的字典数据和一对一从表数据,以及一对一从表的字典数据。 - * 该查询会涉及到一对一从表的关联过滤,或一对多从表的嵌套关联过滤,因此性能不如单表过滤。 - * 如果仅仅需要获取主表数据,请移步(getOnlineDictList),以便获取更好的查询性能。 - * - * @param filter 主表过滤对象。 - * @param orderBy 排序参数。 - * @return 查询结果集。 - */ - List getOnlineDictListWithRelation(OnlineDict filter, String orderBy); -} diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/service/OnlineFormService.java b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/service/OnlineFormService.java deleted file mode 100644 index 6d85d654..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/service/OnlineFormService.java +++ /dev/null @@ -1,106 +0,0 @@ -package com.orangeforms.common.online.service; - -import com.orangeforms.common.core.base.service.IBaseService; -import com.orangeforms.common.core.object.CallResult; -import com.orangeforms.common.online.model.OnlineForm; -import com.orangeforms.common.online.model.OnlineFormDatasource; - -import java.util.List; -import java.util.Set; - -/** - * 在线表单数据操作服务接口。 - * - * @author Jerry - * @date 2021-06-06 - */ -public interface OnlineFormService extends IBaseService { - - /** - * 保存新增对象。 - * - * @param onlineForm 新增对象。 - * @param datasourceIdSet 在线表单关联的数据源Id集合。 - * @return 返回新增对象。 - */ - OnlineForm saveNew(OnlineForm onlineForm, Set datasourceIdSet); - - /** - * 更新数据对象。 - * - * @param onlineForm 更新的对象。 - * @param originalOnlineForm 原有数据对象。 - * @param datasourceIdSet 在线表单关联的数据源Id集合。 - * @return 成功返回true,否则false。 - */ - boolean update(OnlineForm onlineForm, OnlineForm originalOnlineForm, Set datasourceIdSet); - - /** - * 删除指定数据。 - * - * @param formId 主键Id。 - * @return 成功返回true,否则false。 - */ - boolean remove(Long formId); - - /** - * 根据PageId,删除其所属的所有表单,以及表单关联的数据源数据。 - * - * @param pageId 指定的pageId。 - * @return 删除数量。 - */ - int removeByPageId(Long pageId); - - /** - * 获取单表查询结果。由于没有关联数据查询,因此在仅仅获取单表数据的场景下,效率更高。 - * 如果需要同时获取关联数据,请移步(getOnlineFormListWithRelation)方法。 - * - * @param filter 过滤对象。 - * @param orderBy 排序参数。 - * @return 查询结果集。 - */ - List getOnlineFormList(OnlineForm filter, String orderBy); - - /** - * 获取主表的查询结果,以及主表关联的字典数据和一对一从表数据,以及一对一从表的字典数据。 - * 该查询会涉及到一对一从表的关联过滤,或一对多从表的嵌套关联过滤,因此性能不如单表过滤。 - * 如果仅仅需要获取主表数据,请移步(getOnlineFormList),以便获取更好的查询性能。 - * - * @param filter 主表过滤对象。 - * @param orderBy 排序参数。 - * @return 查询结果集。 - */ - List getOnlineFormListWithRelation(OnlineForm filter, String orderBy); - - /** - * 获取使用指定数据表的表单列表。 - * - * @param tableId 数据表Id。 - * @return 使用该数据表的表单列表。 - */ - List getOnlineFormListByTableId(Long tableId); - - /** - * 获取指定表单的数据源列表。 - * - * @param formId 指定的表单。 - * @return 表单和数据源的多对多关联对象列表。 - */ - List getFormDatasourceListByFormId(Long formId); - - /** - * 查询正在使用当前数据源的表单。 - * - * @param datasourceId 数据源Id。 - * @return 正在使用当前数据源的表单列表。 - */ - List getOnlineFormListByDatasourceId(Long datasourceId); - - /** - * 查询指定PageId集合的在线表单列表。 - * - * @param pageIdSet 页面Id集合。 - * @return 在线表单集合。 - */ - List getOnlineFormListByPageIds(Set pageIdSet); -} diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/service/OnlineOperationService.java b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/service/OnlineOperationService.java deleted file mode 100644 index 495be790..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/service/OnlineOperationService.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.orangeforms.common.online.service; - -import com.orangeforms.common.online.dto.OnlineFilterDto; -import com.orangeforms.common.online.model.OnlineColumn; -import com.orangeforms.common.online.model.OnlineDatasourceRelation; -import com.orangeforms.common.online.model.OnlineDict; -import com.orangeforms.common.online.model.OnlineTable; -import com.orangeforms.common.online.object.ColumnData; - -import java.util.List; -import java.util.Map; - -/** - * 在线表单运行时操作的数据服务接口。 - * - * @author Jerry - * @date 2021-06-06 - */ -public interface OnlineOperationService { - - /** - * 待插入的所有表数据。 - * - * @param table 在线表对象。 - * @param columnDataList 数据字段列表。 - * @return 主键值。由于自增主键不能获取插入后的主键值,因此返回NULL。 - */ - Object saveNew(OnlineTable table, List columnDataList); - - /** - * 待插入的主表数据和多个从表数据。 - * - * @param masterTable 主表在线表对象。 - * @param columnDataList 主表数据字段数据。 - * @param slaveDataListMap 多个从表的数据字段数据。 - * @return 主表的主键值。由于自增主键不能获取插入后的主键值,因此返回NULL。 - */ - Object saveNewAndSlaveRelation( - OnlineTable masterTable, - List columnDataList, - Map>> slaveDataListMap); - - /** - * 更新表数据。 - * - * @param table 在线表对象。 - * @param columnDataList 单条表数据的字段数据列表。 - * @return true 更新成功,否则false。 - */ - boolean update(OnlineTable table, List columnDataList); - - /** - * 更新流程字段的状态。 - * - * @param table 数据表。 - * @param dataId 主键Id。 - * @param column 更新字段。 - * @param dataValue 新的数据值。 - * @return true 更新成功,否则false。 - */ - boolean updateColumn(OnlineTable table, String dataId, OnlineColumn column, T dataValue); - - /** - * 删除主表数据,及其需要级联删除的一对多关联从表数据。 - * - * @param table 表对象。 - * @param relationList 一对多关联对象列表。 - * @param dataId 主表主键Id值。 - * @return true 删除成功,否则false。 - */ - boolean delete(OnlineTable table, List relationList, String dataId); - - /** - * 强制删除数据,不会指定逻辑删除,只会物理删除。 - * - * @param table 在线表对象。 - * @param column 指定的字段。 - * @param columnValue 指定字段的值。 - */ - void forceDelete(OnlineTable table, OnlineColumn column, String columnValue); - - /** - * 从数据源和一对一数据源关联中,动态获取数据。 - * - * @param table 主表对象。 - * @param oneToOneRelationList 数据源一对一关联列表。 - * @param allRelationList 数据源全部关联列表。 - * @param dataId 主表主键Id值。 - * @return 查询结果。 - */ - Map getMasterData( - OnlineTable table, - List oneToOneRelationList, - List allRelationList, - String dataId); - - /** - * 从一对多数据源关联中,动态获取数据。 - * - * @param relation 一对多数据源关联对象。 - * @param dataId 一对多关联数据主键Id值。 - * @return 查询结果。 - */ - Map getSlaveData(OnlineDatasourceRelation relation, String dataId); - - /** - * 从数据源和一对一数据源关联中,动态获取数据列表。 - * - * @param table 主表对象。 - * @param oneToOneRelationList 数据源一对一关联列表。 - * @param allRelationList 数据源全部关联列表。 - * @param filterList 过滤参数列表。 - * @param orderBy 排序字符串。 - * @return 查询结果集。 - */ - List> getMasterDataList( - OnlineTable table, - List oneToOneRelationList, - List allRelationList, - List filterList, - String orderBy); - - /** - * 从一对多数据源关联中,动态获取数据列表。 - * - * @param relation 一对多数据源关联对象。 - * @param filterList 过滤参数列表。 - * @param orderBy 排序字符串。 - * @return 查询结果集。 - */ - List> getSlaveDataList( - OnlineDatasourceRelation relation, List filterList, String orderBy); - - /** - * 从字典对象指向的数据表中查询数据,并根据参数进行数据过滤。 - * - * @param dict 字典对象。 - * @param filterList 过滤参数列表。 - * @return 查询结果集。 - */ - List> getDictDataList(OnlineDict dict, List filterList); -} diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/service/OnlinePageService.java b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/service/OnlinePageService.java deleted file mode 100644 index 0c94b382..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/service/OnlinePageService.java +++ /dev/null @@ -1,112 +0,0 @@ -package com.orangeforms.common.online.service; - -import com.orangeforms.common.core.base.service.IBaseService; -import com.orangeforms.common.online.model.OnlinePage; -import com.orangeforms.common.online.model.OnlinePageDatasource; - -import java.util.List; - -/** - * 在线表单页面数据操作服务接口。 - * - * @author Jerry - * @date 2021-06-06 - */ -public interface OnlinePageService extends IBaseService { - - /** - * 保存新增对象。 - * - * @param onlinePage 新增对象。 - * @return 返回新增对象。 - */ - OnlinePage saveNew(OnlinePage onlinePage); - - /** - * 更新数据对象。 - * - * @param onlinePage 更新的对象。 - * @param originalOnlinePage 原有数据对象。 - * @return 成功返回true,否则false。 - */ - boolean update(OnlinePage onlinePage, OnlinePage originalOnlinePage); - - /** - * 更新页面对象的发布状态。 - * - * @param pageId 页面对象Id。 - * @param published 新的状态。 - */ - void updatePublished(Long pageId, Boolean published); - - /** - * 删除指定数据,及其包含的表单和数据源等。 - * - * @param pageId 主键Id。 - * @return 成功返回true,否则false。 - */ - boolean remove(Long pageId); - - /** - * 获取单表查询结果。由于没有关联数据查询,因此在仅仅获取单表数据的场景下,效率更高。 - * 如果需要同时获取关联数据,请移步(getOnlinePageListWithRelation)方法。 - * - * @param filter 过滤对象。 - * @param orderBy 排序参数。 - * @return 查询结果集。 - */ - List getOnlinePageList(OnlinePage filter, String orderBy); - - /** - * 获取主表的查询结果,以及主表关联的字典数据和一对一从表数据,以及一对一从表的字典数据。 - * 该查询会涉及到一对一从表的关联过滤,或一对多从表的嵌套关联过滤,因此性能不如单表过滤。 - * 如果仅仅需要获取主表数据,请移步(getOnlinePageList),以便获取更好的查询性能。 - * - * @param filter 主表过滤对象。 - * @param orderBy 排序参数。 - * @return 查询结果集。 - */ - List getOnlinePageListWithRelation(OnlinePage filter, String orderBy); - - /** - * 批量添加多对多关联关系。 - * - * @param onlinePageDatasourceList 多对多关联表对象集合。 - * @param pageId 主表Id。 - */ - void addOnlinePageDatasourceList(List onlinePageDatasourceList, Long pageId); - - /** - * 获取中间表数据。 - * - * @param pageId 主表Id。 - * @param datasourceId 从表Id。 - * @return 中间表对象。 - */ - OnlinePageDatasource getOnlinePageDatasource(Long pageId, Long datasourceId); - - /** - * 获取在线页面和数据源中间表数据列表。 - * - * @param pageId 主表Id。 - * @return 在线页面和数据源中间表对象列表。 - */ - List getOnlinePageDatasourceListByPageId(Long pageId); - - /** - * 根据数据源Id,返回使用该数据源的OnlinePage对象。 - * - * @param datasourceId 数据源Id。 - * @return 使用该数据源的页面列表。 - */ - List getOnlinePageListByDatasourceId(Long datasourceId); - - /** - * 移除单条多对多关系。 - * - * @param pageId 主表Id。 - * @param datasourceId 从表Id。 - * @return 成功返回true,否则false。 - */ - boolean removeOnlinePageDatasource(Long pageId, Long datasourceId); -} diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/service/OnlineRuleService.java b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/service/OnlineRuleService.java deleted file mode 100644 index 94921592..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/service/OnlineRuleService.java +++ /dev/null @@ -1,91 +0,0 @@ -package com.orangeforms.common.online.service; - -import com.orangeforms.common.core.base.service.IBaseService; -import com.orangeforms.common.online.model.OnlineColumnRule; -import com.orangeforms.common.online.model.OnlineRule; - -import java.util.List; -import java.util.Set; - -/** - * 验证规则数据操作服务接口。 - * - * @author Jerry - * @date 2021-06-06 - */ -public interface OnlineRuleService extends IBaseService { - - /** - * 保存新增对象。 - * - * @param onlineRule 新增对象。 - * @return 返回新增对象。 - */ - OnlineRule saveNew(OnlineRule onlineRule); - - /** - * 更新数据对象。 - * - * @param onlineRule 更新的对象。 - * @param originalOnlineRule 原有数据对象。 - * @return 成功返回true,否则false。 - */ - boolean update(OnlineRule onlineRule, OnlineRule originalOnlineRule); - - /** - * 删除指定数据。 - * - * @param ruleId 主键Id。 - * @return 成功返回true,否则false。 - */ - boolean remove(Long ruleId); - - /** - * 获取单表查询结果。由于没有关联数据查询,因此在仅仅获取单表数据的场景下,效率更高。 - * 如果需要同时获取关联数据,请移步(getOnlineRuleListWithRelation)方法。 - * - * @param filter 过滤对象。 - * @param orderBy 排序参数。 - * @return 查询结果集。 - */ - List getOnlineRuleList(OnlineRule filter, String orderBy); - - /** - * 获取主表的查询结果,以及主表关联的字典数据和一对一从表数据,以及一对一从表的字典数据。 - * 该查询会涉及到一对一从表的关联过滤,或一对多从表的嵌套关联过滤,因此性能不如单表过滤。 - * 如果仅仅需要获取主表数据,请移步(getOnlineRuleList),以便获取更好的查询性能。 - * - * @param filter 主表过滤对象。 - * @param orderBy 排序参数。 - * @return 查询结果集。 - */ - List getOnlineRuleListWithRelation(OnlineRule filter, String orderBy); - - /** - * 在多对多关系中,当前Service的数据表为从表,返回不与指定主表主键Id存在对多对关系的列表。 - * - * @param columnId 主表主键Id。 - * @param filter 从表的过滤对象。 - * @param orderBy 排序参数。 - * @return 查询结果集。 - */ - List getNotInOnlineRuleListByColumnId(Long columnId, OnlineRule filter, String orderBy); - - /** - * 在多对多关系中,当前Service的数据表为从表,返回与指定主表主键Id存在对多对关系的列表。 - * - * @param columnId 主表主键Id。 - * @param filter 从表的过滤对象。 - * @param orderBy 排序参数。 - * @return 查询结果集。 - */ - List getOnlineRuleListByColumnId(Long columnId, OnlineRule filter, String orderBy); - - /** - * 返回指定字段Id列表关联的字段规则对象列表。 - * - * @param columnIdSet 指定的字段Id列表。 - * @return 关联的字段规则对象列表。 - */ - List getOnlineColumnRuleListByColumnIds(Set columnIdSet); -} diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/service/OnlineTableService.java b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/service/OnlineTableService.java deleted file mode 100644 index d0e0306b..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/service/OnlineTableService.java +++ /dev/null @@ -1,95 +0,0 @@ -package com.orangeforms.common.online.service; - -import com.orangeforms.common.core.base.service.IBaseService; -import com.orangeforms.common.online.model.OnlineTable; -import com.orangeforms.common.online.object.SqlTable; - -import java.util.List; -import java.util.Set; - -/** - * 数据表数据操作服务接口。 - * - * @author Jerry - * @date 2021-06-06 - */ -public interface OnlineTableService extends IBaseService { - - /** - * 基于数据库表保存新增对象。 - * - * @param sqlTable 数据库表对象。 - * @return 返回新增对象。 - */ - OnlineTable saveNewFromSqlTable(SqlTable sqlTable); - - /** - * 更新数据对象。 - * - * @param onlineTable 更新的对象。 - * @param originalOnlineTable 原有数据对象。 - * @return 成功返回true,否则false。 - */ - boolean update(OnlineTable onlineTable, OnlineTable originalOnlineTable); - - /** - * 删除指定表及其关联的字段数据。 - * - * @param tableId 主键Id。 - * @return 成功返回true,否则false。 - */ - boolean remove(Long tableId); - - /** - * 删除指定数据表Id集合中的表,及其关联字段。 - * - * @param tableIdSet 待删除的数据表Id集合。 - */ - void removeByTableIdSet(Set tableIdSet); - - /** - * 获取单表查询结果。由于没有关联数据查询,因此在仅仅获取单表数据的场景下,效率更高。 - * 如果需要同时获取关联数据,请移步(getOnlineTableListWithRelation)方法。 - * - * @param filter 过滤对象。 - * @param orderBy 排序参数。 - * @return 查询结果集。 - */ - List getOnlineTableList(OnlineTable filter, String orderBy); - - /** - * 获取指定在线表Id集合的对象列表。 - * - * @param tableIdSet 主键Id集合。 - * @return 指定的数据表对象列表。 - */ - List getOnlineTableList(Set tableIdSet); - - /** - * 获取主表的查询结果,以及主表关联的字典数据和一对一从表数据,以及一对一从表的字典数据。 - * 该查询会涉及到一对一从表的关联过滤,或一对多从表的嵌套关联过滤,因此性能不如单表过滤。 - * 如果仅仅需要获取主表数据,请移步(getOnlineTableList),以便获取更好的查询性能。 - * - * @param filter 主表过滤对象。 - * @param orderBy 排序参数。 - * @return 查询结果集。 - */ - List getOnlineTableListWithRelation(OnlineTable filter, String orderBy); - - /** - * 根据数据源Id,获取该数据源及其关联所引用的数据表列表。 - * - * @param datasourceId 指定的数据源Id。 - * @return 该数据源及其关联所引用的数据表列表。 - */ - List getOnlineTableListByDatasourceId(Long datasourceId); - - /** - * 从缓存中获取指定的表数据及其关联字段列表。优先从缓存中读取,如果不存在则从数据库中读取,并同步到缓存。 - * 该接口方法仅仅用户在线表单的动态数据操作接口,而非在线表单的配置接口。 - * - * @param tableId 表主键Id。 - * @return 查询后的在线表对象。 - */ - OnlineTable getOnlineTableFromCache(Long tableId); -} diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/service/OnlineVirtualColumnService.java b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/service/OnlineVirtualColumnService.java deleted file mode 100644 index 999e7ae0..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/service/OnlineVirtualColumnService.java +++ /dev/null @@ -1,69 +0,0 @@ -package com.orangeforms.common.online.service; - -import com.orangeforms.common.core.base.service.IBaseService; -import com.orangeforms.common.core.object.CallResult; -import com.orangeforms.common.online.model.OnlineVirtualColumn; - -import java.util.*; - -/** - * 虚拟字段数据操作服务接口。 - * - * @author Jerry - * @date 2021-06-06 - */ -public interface OnlineVirtualColumnService extends IBaseService { - - /** - * 保存新增对象。 - * - * @param onlineVirtualColumn 新增对象。 - * @return 返回新增对象。 - */ - OnlineVirtualColumn saveNew(OnlineVirtualColumn onlineVirtualColumn); - - /** - * 更新数据对象。 - * - * @param onlineVirtualColumn 更新的对象。 - * @param originalOnlineVirtualColumn 原有数据对象。 - * @return 成功返回true,否则false。 - */ - boolean update(OnlineVirtualColumn onlineVirtualColumn, OnlineVirtualColumn originalOnlineVirtualColumn); - - /** - * 删除指定数据。 - * - * @param virtualColumnId 主键Id。 - * @return 成功返回true,否则false。 - */ - boolean remove(Long virtualColumnId); - - /** - * 获取单表查询结果。由于没有关联数据查询,因此在仅仅获取单表数据的场景下,效率更高。 - * 如果需要同时获取关联数据,请移步(getOnlineVirtualColumnListWithRelation)方法。 - * - * @param filter 过滤对象。 - * @param orderBy 排序参数。 - * @return 查询结果集。 - */ - List getOnlineVirtualColumnList(OnlineVirtualColumn filter, String orderBy); - - /** - * 获取主表的查询结果,以及主表关联的字典数据和一对一从表数据,以及一对一从表的字典数据。 - * 该查询会涉及到一对一从表的关联过滤,或一对多从表的嵌套关联过滤,因此性能不如单表过滤。 - * 如果仅仅需要获取主表数据,请移步(getOnlineVirtualColumnList),以便获取更好的查询性能。 - * - * @param filter 主表过滤对象。 - * @param orderBy 排序参数。 - * @return 查询结果集。 - */ - List getOnlineVirtualColumnListWithRelation(OnlineVirtualColumn filter, String orderBy); - - /** - * 根据数据表的集合,查询关联的虚拟字段数据列表。 - * @param tableIdSet 在线数据表Id集合。 - * @return 关联的虚拟字段数据列表。 - */ - List getOnlineVirtualColumnListByTableIds(Set tableIdSet); -} diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/service/impl/OnlineColumnServiceImpl.java b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/service/impl/OnlineColumnServiceImpl.java deleted file mode 100644 index 4736b222..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/service/impl/OnlineColumnServiceImpl.java +++ /dev/null @@ -1,366 +0,0 @@ -package com.orangeforms.common.online.service.impl; - -import cn.hutool.core.bean.BeanUtil; -import cn.hutool.core.collection.CollUtil; -import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; -import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; -import com.orangeforms.common.core.base.dao.BaseDaoMapper; -import com.orangeforms.common.core.base.service.BaseService; -import com.orangeforms.common.core.object.CallResult; -import com.orangeforms.common.core.object.MyRelationParam; -import com.orangeforms.common.core.util.RedisKeyUtil; -import com.orangeforms.common.sequence.wrapper.IdGeneratorWrapper; -import com.orangeforms.common.online.dao.OnlineColumnMapper; -import com.orangeforms.common.online.dao.OnlineColumnRuleMapper; -import com.orangeforms.common.online.model.OnlineColumn; -import com.orangeforms.common.online.model.OnlineColumnRule; -import com.orangeforms.common.online.model.constant.FieldFilterType; -import com.orangeforms.common.online.object.SqlTableColumn; -import com.orangeforms.common.online.service.OnlineColumnService; -import com.orangeforms.common.online.service.OnlineTableService; -import com.github.pagehelper.Page; -import com.google.common.base.CaseFormat; -import lombok.extern.slf4j.Slf4j; -import org.redisson.api.RedissonClient; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; -import org.springframework.transaction.annotation.Transactional; - -import java.util.Date; -import java.util.LinkedList; -import java.util.List; -import java.util.Set; - -/** - * 字段数据数据操作服务类。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Slf4j -@Service("onlineColumnService") -public class OnlineColumnServiceImpl extends BaseService implements OnlineColumnService { - - @Autowired - private OnlineColumnMapper onlineColumnMapper; - @Autowired - private OnlineColumnRuleMapper onlineColumnRuleMapper; - @Autowired - private OnlineTableService onlineTableService; - @Autowired - private IdGeneratorWrapper idGenerator; - @Autowired - private RedissonClient redissonClient; - - /** - * 返回当前Service的主表Mapper对象。 - * - * @return 主表Mapper对象。 - */ - @Override - protected BaseDaoMapper mapper() { - return onlineColumnMapper; - } - - /** - * 保存新增数据表字段列表。 - * - * @param columnList 新增数据表字段对象列表。 - * @param onlineTableId 在线表对象的主键Id。 - * @return 插入的在线表字段数据。 - */ - @Transactional(rollbackFor = Exception.class) - @Override - public List saveNewList(List columnList, Long onlineTableId) { - List onlineColumnList = new LinkedList<>(); - if (CollUtil.isEmpty(columnList)) { - return onlineColumnList; - } - this.evictTableCache(onlineTableId); - for (SqlTableColumn column : columnList) { - OnlineColumn onlineColumn = new OnlineColumn(); - BeanUtil.copyProperties(column, onlineColumn, false); - onlineColumn.setColumnId(idGenerator.nextLongId()); - onlineColumn.setTableId(onlineTableId); - this.setDefault(onlineColumn); - onlineColumnMapper.insert(onlineColumn); - onlineColumnList.add(onlineColumn); - } - return onlineColumnList; - } - - /** - * 更新数据对象。 - * - * @param onlineColumn 更新的对象。 - * @param originalOnlineColumn 原有数据对象。 - * @return 成功返回true,否则false。 - */ - @Transactional(rollbackFor = Exception.class) - @Override - public boolean update(OnlineColumn onlineColumn, OnlineColumn originalOnlineColumn) { - this.evictTableCache(onlineColumn.getTableId()); - onlineColumn.setUpdateTime(new Date()); - onlineColumn.setCreateTime(originalOnlineColumn.getCreateTime()); - // 这里重点提示,在执行主表数据更新之前,如果有哪些字段不支持修改操作,请用原有数据对象字段替换当前数据字段。 - UpdateWrapper uw = this.createUpdateQueryForNullValue(onlineColumn, onlineColumn.getColumnId()); - return onlineColumnMapper.update(onlineColumn, uw) == 1; - } - - /** - * 刷新数据库表字段的数据到在线表字段。 - * - * @param sqlTableColumn 源数据库表字段对象。 - * @param onlineColumn 被刷新的在线表字段对象。 - */ - @Transactional(rollbackFor = Exception.class) - @Override - public void refresh(SqlTableColumn sqlTableColumn, OnlineColumn onlineColumn) { - this.evictTableCache(onlineColumn.getTableId()); - BeanUtil.copyProperties(sqlTableColumn, onlineColumn, false); - String objectFieldName = CaseFormat.LOWER_UNDERSCORE.to(CaseFormat.LOWER_CAMEL, onlineColumn.getColumnName()); - onlineColumn.setObjectFieldName(objectFieldName); - String objectFieldType = convertToJavaType(onlineColumn.getColumnType()); - onlineColumn.setObjectFieldType(objectFieldType); - onlineColumnMapper.updateById(onlineColumn); - } - - /** - * 删除指定数据。 - * - * @param tableId 表Id。 - * @param columnId 字段Id。 - * @return 成功返回true,否则false。 - */ - @Transactional(rollbackFor = Exception.class) - @Override - public boolean remove(Long tableId, Long columnId) { - this.evictTableCache(tableId); - return onlineColumnMapper.deleteById(columnId) == 1; - } - - /** - * 当前服务的支持表为从表,根据主表的主键Id,删除一对多的从表数据。 - * - * @param tableId 主表主键Id。 - * @return 删除数量。 - */ - @Transactional(rollbackFor = Exception.class) - @Override - public int removeByTableId(Long tableId) { - OnlineColumn deletedObject = new OnlineColumn(); - deletedObject.setTableId(tableId); - return onlineColumnMapper.delete(new QueryWrapper<>(deletedObject)); - } - - /** - * 删除指定数据表Id集合中的表字段。 - * - * @param tableIdSet 待删除的数据表Id集合。 - */ - @Transactional(rollbackFor = Exception.class) - @Override - public void removeByTableIdSet(Set tableIdSet) { - onlineColumnMapper.delete(new QueryWrapper().lambda().in(OnlineColumn::getTableId, tableIdSet)); - } - - /** - * 获取单表查询结果。由于没有关联数据查询,因此在仅仅获取单表数据的场景下,效率更高。 - * 如果需要同时获取关联数据,请移步(getOnlineColumnListWithRelation)方法。 - * - * @param filter 过滤对象。 - * @param orderBy 排序参数。 - * @return 查询结果集。 - */ - @Override - public List getOnlineColumnList(OnlineColumn filter, String orderBy) { - return onlineColumnMapper.getOnlineColumnList(filter, orderBy); - } - - /** - * 获取主表的查询结果,以及主表关联的字典数据和一对一从表数据,以及一对一从表的字典数据。 - * 该查询会涉及到一对一从表的关联过滤,或一对多从表的嵌套关联过滤,因此性能不如单表过滤。 - * 如果仅仅需要获取主表数据,请移步(getOnlineColumnList),以便获取更好的查询性能。 - * - * @param filter 主表过滤对象。 - * @param orderBy 排序参数。 - * @return 查询结果集。 - */ - @Override - public List getOnlineColumnListWithRelation(OnlineColumn filter, String orderBy) { - List resultList = onlineColumnMapper.getOnlineColumnList(filter, orderBy); - // 在缺省生成的代码中,如果查询结果resultList不是Page对象,说明没有分页,那么就很可能是数据导出接口调用了当前方法。 - // 为了避免一次性的大量数据关联,规避因此而造成的系统运行性能冲击,这里手动进行了分批次读取,开发者可按需修改该值。 - int batchSize = resultList instanceof Page ? 0 : 1000; - this.buildRelationForDataList(resultList, MyRelationParam.normal(), batchSize); - return resultList; - } - - /** - * 获取指定数据表Id集合的字段对象列表。 - * - * @param tableIdSet 指定的数据表Id集合。 - * @return 数据表Id集合所包含的字段对象列表。 - */ - @Override - public List getOnlineColumnListByTableIds(Set tableIdSet) { - return onlineColumnMapper.selectList( - new QueryWrapper().lambda().in(OnlineColumn::getTableId, tableIdSet)); - } - - /** - * 根据表Id和字段列名获取指定字段。 - * - * @param tableId 字段所在表Id。 - * @param columnName 字段名。 - * @return 查询出的字段对象。 - */ - @Override - public OnlineColumn getOnlineColumnByTableIdAndColumnName(Long tableId, String columnName) { - OnlineColumn filter = new OnlineColumn(); - filter.setTableId(tableId); - filter.setColumnName(columnName); - return onlineColumnMapper.selectOne(new QueryWrapper<>(filter)); - } - - /** - * 批量添加多对多关联关系。 - * - * @param onlineColumnRuleList 多对多关联表对象集合。 - * @param columnId 主表Id。 - */ - @Transactional(rollbackFor = Exception.class) - @Override - public void addOnlineColumnRuleList(List onlineColumnRuleList, Long columnId) { - for (OnlineColumnRule onlineColumnRule : onlineColumnRuleList) { - onlineColumnRule.setColumnId(columnId); - onlineColumnRuleMapper.insert(onlineColumnRule); - } - } - - /** - * 更新中间表数据。 - * - * @param onlineColumnRule 中间表对象。 - * @return 更新成功与否。 - */ - @Transactional(rollbackFor = Exception.class) - @Override - public boolean updateOnlineColumnRule(OnlineColumnRule onlineColumnRule) { - OnlineColumnRule filter = new OnlineColumnRule(); - filter.setColumnId(onlineColumnRule.getColumnId()); - filter.setRuleId(onlineColumnRule.getRuleId()); - UpdateWrapper uw = - BaseService.createUpdateQueryForNullValue(onlineColumnRule, OnlineColumnRule.class); - uw.setEntity(filter); - return onlineColumnRuleMapper.update(onlineColumnRule, uw) > 0; - } - - /** - * 获取中间表数据。 - * - * @param columnId 主表Id。 - * @param ruleId 从表Id。 - * @return 中间表对象。 - */ - @Override - public OnlineColumnRule getOnlineColumnRule(Long columnId, Long ruleId) { - OnlineColumnRule filter = new OnlineColumnRule(); - filter.setColumnId(columnId); - filter.setRuleId(ruleId); - return onlineColumnRuleMapper.selectOne(new QueryWrapper<>(filter)); - } - - /** - * 移除单条多对多关系。 - * - * @param columnId 主表Id。 - * @param ruleId 从表Id。 - * @return 成功返回true,否则false。 - */ - @Transactional(rollbackFor = Exception.class) - @Override - public boolean removeOnlineColumnRule(Long columnId, Long ruleId) { - OnlineColumnRule filter = new OnlineColumnRule(); - filter.setColumnId(columnId); - filter.setRuleId(ruleId); - return onlineColumnRuleMapper.delete(new QueryWrapper<>(filter)) > 0; - } - - /** - * 根据最新对象和原有对象的数据对比,判断关联的字典数据和多对一主表数据是否都是合法数据。 - * - * @param onlineColumn 最新数据对象。 - * @param originalOnlineColumn 原有数据对象。 - * @return 数据全部正确返回true,否则false。 - */ - @Override - public CallResult verifyRelatedData(OnlineColumn onlineColumn, OnlineColumn originalOnlineColumn) { - String errorMessageFormat = "数据验证失败,关联的%s并不存在,请刷新后重试!"; - //这里是一对多的验证 - if (this.needToVerify(onlineColumn, originalOnlineColumn, OnlineColumn::getTableId) - && !onlineTableService.existId(onlineColumn.getTableId())) { - return CallResult.error(String.format(errorMessageFormat, "数据表Id")); - } - return CallResult.ok(); - } - - private void setDefault(OnlineColumn onlineColumn) { - String objectFieldName = CaseFormat.LOWER_UNDERSCORE.to(CaseFormat.LOWER_CAMEL, onlineColumn.getColumnName()); - onlineColumn.setObjectFieldName(objectFieldName); - String objectFieldType = convertToJavaType(onlineColumn.getColumnType()); - onlineColumn.setObjectFieldType(objectFieldType); - onlineColumn.setFilterType(FieldFilterType.NO_FILTER); - onlineColumn.setParentKey(false); - onlineColumn.setDeptFilter(false); - onlineColumn.setUserFilter(false); - Date now = new Date(); - onlineColumn.setUpdateTime(now); - onlineColumn.setCreateTime(now); - } - - private void evictTableCache(Long tableId) { - String tableIdKey = RedisKeyUtil.makeOnlineTableKey(tableId); - redissonClient.getBucket(tableIdKey).delete(); - } - - private String convertToJavaType(String columnType) { - if ("varchar".equals(columnType) - || "char".equals(columnType) - || "text".equals(columnType) - || "longtext".equals(columnType) - || "mediumtext".equals(columnType) - || "tinytext".equals(columnType)) { - return "String"; - } - if ("int".equals(columnType) - || "mediumint".equals(columnType) - || "smallint".equals(columnType) - || "tinyint".equals(columnType)) { - return "Integer"; - } - if ("bit".equals(columnType)) { - return "Boolean"; - } - if ("bigint".equals(columnType)) { - return "Long"; - } - if ("decimal".equals(columnType)) { - return "BigDecimal"; - } - if ("float".equals(columnType) - || "double".equals(columnType)) { - return "Double"; - } - if ("date".equals(columnType) - || "datetime".equals(columnType) - || "timestamp".equals(columnType) - || "time".equals(columnType)) { - return "Date"; - } - if ("blob".equals(columnType)) { - return "byte[]"; - } - throw new RuntimeException("Unsupported Data Type"); - } -} diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/service/impl/OnlineDatasourceRelationServiceImpl.java b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/service/impl/OnlineDatasourceRelationServiceImpl.java deleted file mode 100644 index 20278cba..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/service/impl/OnlineDatasourceRelationServiceImpl.java +++ /dev/null @@ -1,255 +0,0 @@ -package com.orangeforms.common.online.service.impl; - -import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; -import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; -import com.orangeforms.common.core.base.dao.BaseDaoMapper; -import com.orangeforms.common.core.base.service.BaseService; -import com.orangeforms.common.core.object.CallResult; -import com.orangeforms.common.core.object.MyRelationParam; -import com.orangeforms.common.sequence.wrapper.IdGeneratorWrapper; -import com.orangeforms.common.online.dao.OnlineDatasourceRelationMapper; -import com.orangeforms.common.online.dao.OnlineDatasourceTableMapper; -import com.orangeforms.common.online.model.OnlineColumn; -import com.orangeforms.common.online.model.OnlineDatasourceRelation; -import com.orangeforms.common.online.model.OnlineDatasourceTable; -import com.orangeforms.common.online.model.OnlineTable; -import com.orangeforms.common.online.object.SqlTable; -import com.orangeforms.common.online.object.SqlTableColumn; -import com.orangeforms.common.online.service.OnlineColumnService; -import com.orangeforms.common.online.service.OnlineDatasourceRelationService; -import com.orangeforms.common.online.service.OnlineDatasourceService; -import com.orangeforms.common.online.service.OnlineTableService; -import com.github.pagehelper.Page; -import lombok.extern.slf4j.Slf4j; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; -import org.springframework.transaction.annotation.Transactional; - -import java.util.Date; -import java.util.List; -import java.util.Set; - -/** - * 数据源关联数据操作服务类。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Slf4j -@Service("onlineDatasourceRelationService") -public class OnlineDatasourceRelationServiceImpl - extends BaseService implements OnlineDatasourceRelationService { - - @Autowired - private OnlineDatasourceRelationMapper onlineDatasourceRelationMapper; - @Autowired - private OnlineDatasourceTableMapper onlineDatasourceTableMapper; - @Autowired - private OnlineDatasourceService onlineDatasourceService; - @Autowired - private OnlineColumnService onlineColumnService; - @Autowired - private OnlineTableService onlineTableService; - @Autowired - private IdGeneratorWrapper idGenerator; - - /** - * 返回当前Service的主表Mapper对象。 - * - * @return 主表Mapper对象。 - */ - @Override - protected BaseDaoMapper mapper() { - return onlineDatasourceRelationMapper; - } - - /** - * 保存新增对象。 - * - * @param relation 新增对象。 - * @param slaveSqlTable 新增的关联从数据表对象。 - * @param slaveSqlColumn 新增的关联从数据表对象。 - * @return 返回新增对象。 - */ - @Transactional(rollbackFor = Exception.class) - @Override - public OnlineDatasourceRelation saveNew( - OnlineDatasourceRelation relation, SqlTable slaveSqlTable, SqlTableColumn slaveSqlColumn) { - // 查找数据源关联的数据表,判断当前关联的从表,是否已经存在于zz_online_datasource_table中了。 - // 对于同一个数据源及其关联,同一个数据表只会被创建一次,如果已经和当前数据源的其他Relation, - // 作为从表绑定了,怎么就可以直接使用这个OnlineTable了,否则就会为这个SqlTable,创建对应的OnlineTable。 - List datasourceTableList = - onlineTableService.getOnlineTableListByDatasourceId(relation.getDatasourceId()); - OnlineTable relationSlaveTable = null; - OnlineColumn relationSlaveColumn = null; - for (OnlineTable onlineTable : datasourceTableList) { - if (onlineTable.getTableName().equals(slaveSqlTable.getTableName())) { - relationSlaveTable = onlineTable; - relationSlaveColumn = onlineColumnService.getOnlineColumnByTableIdAndColumnName( - onlineTable.getTableId(), slaveSqlColumn.getColumnName()); - break; - } - } - if (relationSlaveTable == null) { - relationSlaveTable = onlineTableService.saveNewFromSqlTable(slaveSqlTable); - for (OnlineColumn onlineColumn : relationSlaveTable.getColumnList()) { - if (onlineColumn.getColumnName().equals(slaveSqlColumn.getColumnName())) { - relationSlaveColumn = onlineColumn; - break; - } - } - } - relation.setRelationId(idGenerator.nextLongId()); - relation.setSlaveTableId(relationSlaveTable.getTableId()); - relation.setSlaveColumnId(relationSlaveColumn.getColumnId()); - Date now = new Date(); - relation.setUpdateTime(now); - relation.setCreateTime(now); - onlineDatasourceRelationMapper.insert(relation); - OnlineDatasourceTable datasourceTable = new OnlineDatasourceTable(); - datasourceTable.setId(idGenerator.nextLongId()); - datasourceTable.setDatasourceId(relation.getDatasourceId()); - datasourceTable.setRelationId(relation.getRelationId()); - datasourceTable.setTableId(relation.getSlaveTableId()); - onlineDatasourceTableMapper.insert(datasourceTable); - return relation; - } - - /** - * 更新数据对象。 - * - * @param relation 更新的对象。 - * @param originalRelation 原有数据对象。 - * @return 成功返回true,否则false。 - */ - @Transactional(rollbackFor = Exception.class) - @Override - public boolean update(OnlineDatasourceRelation relation, OnlineDatasourceRelation originalRelation) { - relation.setUpdateTime(new Date()); - relation.setCreateTime(originalRelation.getCreateTime()); - // 这里重点提示,在执行主表数据更新之前,如果有哪些字段不支持修改操作,请用原有数据对象字段替换当前数据字段。 - UpdateWrapper uw = - this.createUpdateQueryForNullValue(relation, relation.getRelationId()); - return onlineDatasourceRelationMapper.update(relation, uw) == 1; - } - - /** - * 删除指定数据。 - * - * @param relationId 主键Id。 - * @return 成功返回true,否则false。 - */ - @Transactional(rollbackFor = Exception.class) - @Override - public boolean remove(Long relationId) { - if (onlineDatasourceRelationMapper.deleteById(relationId) != 1) { - return false; - } - OnlineDatasourceTable filter = new OnlineDatasourceTable(); - filter.setRelationId(relationId); - QueryWrapper queryWrapper = new QueryWrapper<>(filter); - OnlineDatasourceTable datasourceTable = onlineDatasourceTableMapper.selectOne(queryWrapper); - onlineDatasourceTableMapper.delete(queryWrapper); - filter = new OnlineDatasourceTable(); - filter.setDatasourceId(datasourceTable.getDatasourceId()); - filter.setTableId(datasourceTable.getTableId()); - // 不在有引用该表的时候,可以删除该数据源关联引用的从表了。 - if (onlineDatasourceTableMapper.selectCount(new QueryWrapper<>(filter)) == 0) { - onlineTableService.remove(datasourceTable.getTableId()); - } - return true; - } - - /** - * 当前服务的支持表为从表,根据主表的主键Id,删除一对多的从表数据。 - * - * @param datasourceId 主表主键Id。 - * @return 删除数量。 - */ - @Transactional(rollbackFor = Exception.class) - @Override - public int removeByDatasourceId(Long datasourceId) { - OnlineDatasourceRelation deletedObject = new OnlineDatasourceRelation(); - deletedObject.setDatasourceId(datasourceId); - return onlineDatasourceRelationMapper.delete(new QueryWrapper<>(deletedObject)); - } - - /** - * 获取单表查询结果。由于没有关联数据查询,因此在仅仅获取单表数据的场景下,效率更高。 - * 如果需要同时获取关联数据,请移步(getOnlineDatasourceRelationListWithRelation)方法。 - * - * @param filter 过滤对象。 - * @param orderBy 排序参数。 - * @return 查询结果集。 - */ - @Override - public List getOnlineDatasourceRelationListByDatasourceIds( - OnlineDatasourceRelation filter, String orderBy) { - return onlineDatasourceRelationMapper.getOnlineDatasourceRelationList(filter, orderBy); - } - - /** - * 获取指定数据源Id集合下的所有数据源关联列表。 - * - * @param datasourceIdSet 数据源Id集合。 - * @param relationType 关联类型,如果为空,则查询全部类型。 - * @return 指定数据源下的所有关联列表。 - */ - @Override - public List getOnlineDatasourceRelationListByDatasourceIds( - Set datasourceIdSet, Integer relationType) { - QueryWrapper queryWrapper = new QueryWrapper<>(); - queryWrapper.lambda().in(OnlineDatasourceRelation::getDatasourceId, datasourceIdSet); - if (relationType != null) { - queryWrapper.lambda().eq(OnlineDatasourceRelation::getRelationType, relationType); - } - return onlineDatasourceRelationMapper.selectList(queryWrapper); - } - - /** - * 获取主表的查询结果,以及主表关联的字典数据和一对一从表数据,以及一对一从表的字典数据。 - * 该查询会涉及到一对一从表的关联过滤,或一对多从表的嵌套关联过滤,因此性能不如单表过滤。 - * 如果仅仅需要获取主表数据,请移步(getOnlineDatasourceRelationList),以便获取更好的查询性能。 - * - * @param filter 主表过滤对象。 - * @param orderBy 排序参数。 - * @return 查询结果集。 - */ - @Override - public List getOnlineDatasourceRelationListWithRelation( - OnlineDatasourceRelation filter, String orderBy) { - List resultList = - onlineDatasourceRelationMapper.getOnlineDatasourceRelationList(filter, orderBy); - // 在缺省生成的代码中,如果查询结果resultList不是Page对象,说明没有分页,那么就很可能是数据导出接口调用了当前方法。 - // 为了避免一次性的大量数据关联,规避因此而造成的系统运行性能冲击,这里手动进行了分批次读取,开发者可按需修改该值。 - int batchSize = resultList instanceof Page ? 0 : 1000; - this.buildRelationForDataList(resultList, MyRelationParam.normal(), batchSize); - return resultList; - } - - /** - * 根据最新对象和原有对象的数据对比,判断关联的字典数据和多对一主表数据是否都是合法数据。 - * - * @param relation 最新数据对象。 - * @param originalRelation 原有数据对象。 - * @return 数据全部正确返回true,否则false。 - */ - @Override - public CallResult verifyRelatedData( - OnlineDatasourceRelation relation, OnlineDatasourceRelation originalRelation) { - String errorMessageFormat = "数据验证失败,关联的%s并不存在,请刷新后重试!"; - if (this.needToVerify(relation, originalRelation, OnlineDatasourceRelation::getMasterColumnId) - && !onlineColumnService.existId(relation.getMasterColumnId())) { - return CallResult.error(String.format(errorMessageFormat, "主表关联字段Id")); - } - if (this.needToVerify(relation, originalRelation, OnlineDatasourceRelation::getSlaveTableId) - && !onlineTableService.existId(relation.getSlaveTableId())) { - return CallResult.error(String.format(errorMessageFormat, "从表Id")); - } - if (this.needToVerify(relation, originalRelation, OnlineDatasourceRelation::getSlaveColumnId) - && !onlineColumnService.existId(relation.getSlaveColumnId())) { - return CallResult.error(String.format(errorMessageFormat, "从表关联字段Id")); - } - return CallResult.ok(); - } -} diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/service/impl/OnlineDatasourceServiceImpl.java b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/service/impl/OnlineDatasourceServiceImpl.java deleted file mode 100644 index 3c8c06cb..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/service/impl/OnlineDatasourceServiceImpl.java +++ /dev/null @@ -1,238 +0,0 @@ -package com.orangeforms.common.online.service.impl; - -import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; -import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; -import com.orangeforms.common.core.base.dao.BaseDaoMapper; -import com.orangeforms.common.core.base.service.BaseService; -import com.orangeforms.common.core.object.MyRelationParam; -import com.orangeforms.common.sequence.wrapper.IdGeneratorWrapper; -import com.orangeforms.common.online.dao.OnlineDatasourceMapper; -import com.orangeforms.common.online.dao.OnlineDatasourceTableMapper; -import com.orangeforms.common.online.dao.OnlinePageDatasourceMapper; -import com.orangeforms.common.online.model.OnlineDatasource; -import com.orangeforms.common.online.model.OnlineDatasourceTable; -import com.orangeforms.common.online.model.OnlinePageDatasource; -import com.orangeforms.common.online.model.OnlineTable; -import com.orangeforms.common.online.object.SqlTable; -import com.orangeforms.common.online.service.OnlineDatasourceRelationService; -import com.orangeforms.common.online.service.OnlineDatasourceService; -import com.orangeforms.common.online.service.OnlineTableService; -import com.github.pagehelper.Page; -import lombok.extern.slf4j.Slf4j; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; -import org.springframework.transaction.annotation.Transactional; - -import java.util.Date; -import java.util.List; -import java.util.Set; -import java.util.stream.Collectors; - -/** - * 数据模型数据操作服务类。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Slf4j -@Service("onlineDatasourceService") -public class OnlineDatasourceServiceImpl extends BaseService implements OnlineDatasourceService { - - @Autowired - private OnlineDatasourceMapper onlineDatasourceMapper; - @Autowired - private OnlinePageDatasourceMapper onlinePageDatasourceMapper; - @Autowired - private OnlineDatasourceTableMapper onlineDatasourceTableMapper; - @Autowired - private OnlineTableService onlineTableService; - @Autowired - private OnlineDatasourceRelationService onlineDatasourceRelationService; - @Autowired - private IdGeneratorWrapper idGenerator; - - /** - * 返回当前Service的主表Mapper对象。 - * - * @return 主表Mapper对象。 - */ - @Override - protected BaseDaoMapper mapper() { - return onlineDatasourceMapper; - } - - /** - * 保存新增对象。 - * - * @param onlineDatasource 新增对象。 - * @param sqlTable 新增的数据表对象。 - * @param pageId 关联的页面Id。 - * @return 返回新增对象。 - */ - @Transactional(rollbackFor = Exception.class) - @Override - public OnlineDatasource saveNew(OnlineDatasource onlineDatasource, SqlTable sqlTable, Long pageId) { - OnlineTable onlineTable = onlineTableService.saveNewFromSqlTable(sqlTable); - onlineDatasource.setDatasourceId(idGenerator.nextLongId()); - onlineDatasource.setMasterTableId(onlineTable.getTableId()); - Date now = new Date(); - onlineDatasource.setUpdateTime(now); - onlineDatasource.setCreateTime(now); - onlineDatasourceMapper.insert(onlineDatasource); - OnlineDatasourceTable datasourceTable = new OnlineDatasourceTable(); - datasourceTable.setId(idGenerator.nextLongId()); - datasourceTable.setDatasourceId(onlineDatasource.getDatasourceId()); - datasourceTable.setTableId(onlineDatasource.getMasterTableId()); - onlineDatasourceTableMapper.insert(datasourceTable); - OnlinePageDatasource onlinePageDatasource = new OnlinePageDatasource(); - onlinePageDatasource.setId(idGenerator.nextLongId()); - onlinePageDatasource.setPageId(pageId); - onlinePageDatasource.setDatasourceId(onlineDatasource.getDatasourceId()); - onlinePageDatasourceMapper.insert(onlinePageDatasource); - return onlineDatasource; - } - - /** - * 更新数据对象。 - * - * @param onlineDatasource 更新的对象。 - * @param originalOnlineDatasource 原有数据对象。 - * @return 成功返回true,否则false。 - */ - @Transactional(rollbackFor = Exception.class) - @Override - public boolean update(OnlineDatasource onlineDatasource, OnlineDatasource originalOnlineDatasource) { - onlineDatasource.setUpdateTime(new Date()); - onlineDatasource.setCreateTime(originalOnlineDatasource.getCreateTime()); - // 这里重点提示,在执行主表数据更新之前,如果有哪些字段不支持修改操作,请用原有数据对象字段替换当前数据字段。 - UpdateWrapper uw = - this.createUpdateQueryForNullValue(onlineDatasource, onlineDatasource.getDatasourceId()); - return onlineDatasourceMapper.update(onlineDatasource, uw) == 1; - } - - /** - * 删除指定数据。 - * - * @param datasourceId 主键Id。 - * @return 成功返回true,否则false。 - */ - @Transactional(rollbackFor = Exception.class) - @Override - public boolean remove(Long datasourceId) { - if (onlineDatasourceMapper.deleteById(datasourceId) == 0) { - return false; - } - onlineDatasourceRelationService.removeByDatasourceId(datasourceId); - // 开始删除多对多父表的关联 - OnlinePageDatasource onlinePageDatasource = new OnlinePageDatasource(); - onlinePageDatasource.setDatasourceId(datasourceId); - onlinePageDatasourceMapper.delete(new QueryWrapper<>(onlinePageDatasource)); - OnlineDatasourceTable filter = new OnlineDatasourceTable(); - filter.setDatasourceId(datasourceId); - QueryWrapper queryWrapper = new QueryWrapper<>(filter); - List datasourceTableList = onlineDatasourceTableMapper.selectList(queryWrapper); - onlineDatasourceTableMapper.delete(queryWrapper); - Set tableIdSet = datasourceTableList.stream() - .map(OnlineDatasourceTable::getTableId).collect(Collectors.toSet()); - onlineTableService.removeByTableIdSet(tableIdSet); - return true; - } - - /** - * 获取单表查询结果。由于没有关联数据查询,因此在仅仅获取单表数据的场景下,效率更高。 - * 如果需要同时获取关联数据,请移步(getOnlineDatasourceListWithRelation)方法。 - * - * @param filter 过滤对象。 - * @param orderBy 排序参数。 - * @return 查询结果集。 - */ - @Override - public List getOnlineDatasourceList(OnlineDatasource filter, String orderBy) { - return onlineDatasourceMapper.getOnlineDatasourceList(filter, orderBy); - } - - /** - * 查询指定数据源Id集合的数据源列表。 - * - * @param datasourceIdSet 数据源Id集合。 - * @return 查询结果集。 - */ - @Override - public List getOnlineDatasourceList(Set datasourceIdSet) { - return onlineDatasourceMapper.selectBatchIds(datasourceIdSet); - } - - /** - * 获取主表的查询结果,以及主表关联的字典数据和一对一从表数据,以及一对一从表的字典数据。 - * 该查询会涉及到一对一从表的关联过滤,或一对多从表的嵌套关联过滤,因此性能不如单表过滤。 - * 如果仅仅需要获取主表数据,请移步(getOnlineDatasourceList),以便获取更好的查询性能。 - * - * @param filter 主表过滤对象。 - * @param orderBy 排序参数。 - * @return 查询结果集。 - */ - @Override - public List getOnlineDatasourceListWithRelation(OnlineDatasource filter, String orderBy) { - List resultList = onlineDatasourceMapper.getOnlineDatasourceList(filter, orderBy); - // 在缺省生成的代码中,如果查询结果resultList不是Page对象,说明没有分页,那么就很可能是数据导出接口调用了当前方法。 - // 为了避免一次性的大量数据关联,规避因此而造成的系统运行性能冲击,这里手动进行了分批次读取,开发者可按需修改该值。 - int batchSize = resultList instanceof Page ? 0 : 1000; - this.buildRelationForDataList(resultList, MyRelationParam.normal(), batchSize); - return resultList; - } - - /** - * 在多对多关系中,当前Service的数据表为从表,返回不与指定主表主键Id存在对多对关系的列表。 - * - * @param pageId 主表主键Id。 - * @param filter 从表的过滤对象。 - * @param orderBy 排序参数。 - * @return 查询结果集。 - */ - @Override - public List getNotInOnlineDatasourceListByPageId(Long pageId, OnlineDatasource filter, String orderBy) { - List resultList = - onlineDatasourceMapper.getNotInOnlineDatasourceListByPageId(pageId, filter, orderBy); - this.buildRelationForDataList(resultList, MyRelationParam.dictOnly()); - return resultList; - } - - /** - * 在多对多关系中,当前Service的数据表为从表,返回与指定主表主键Id存在对多对关系的列表。 - * - * @param pageId 主表主键Id。 - * @param filter 从表的过滤对象。 - * @param orderBy 排序参数。 - * @return 查询结果集。 - */ - @Override - public List getOnlineDatasourceListByPageId(Long pageId, OnlineDatasource filter, String orderBy) { - List resultList = - onlineDatasourceMapper.getOnlineDatasourceListByPageId(pageId, filter, orderBy); - this.buildRelationForDataList(resultList, MyRelationParam.dictOnly()); - return resultList; - } - - /** - * 获取指定数据源Id集合所关联的在线表关联数据。 - * - * @param datasourceIdSet 数据源Id集合。 - * @return 数据源和数据表的多对多关联列表。 - */ - @Override - public List getOnlineDatasourceTableList(Set datasourceIdSet) { - return onlineDatasourceTableMapper.selectList(new QueryWrapper() - .lambda().in(OnlineDatasourceTable::getDatasourceId, datasourceIdSet)); - } - - /** - * 根据在线表单Id集合,获取关联的在线数据源对象列表。 - * - * @param formIdSet 在线表单Id集合。 - * @return 与参数表单Id关联的数据源列表。 - */ - @Override - public List getOnlineDatasourceListByFormIds(Set formIdSet) { - return onlineDatasourceMapper.getOnlineDatasourceListByFormIds(formIdSet); - } -} diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/service/impl/OnlineDblinkServiceImpl.java b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/service/impl/OnlineDblinkServiceImpl.java deleted file mode 100644 index 67e05384..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/service/impl/OnlineDblinkServiceImpl.java +++ /dev/null @@ -1,205 +0,0 @@ -package com.orangeforms.common.online.service.impl; - -import cn.hutool.core.bean.BeanUtil; -import com.orangeforms.common.core.base.dao.BaseDaoMapper; -import com.orangeforms.common.core.base.service.BaseService; -import com.orangeforms.common.core.config.DataSourceContextHolder; -import com.orangeforms.common.core.object.MyRelationParam; -import com.orangeforms.common.sequence.wrapper.IdGeneratorWrapper; -import com.orangeforms.common.online.config.OnlineProperties; -import com.orangeforms.common.online.dao.OnlineDblinkMapper; -import com.orangeforms.common.online.model.OnlineDblink; -import com.orangeforms.common.online.object.SqlTable; -import com.orangeforms.common.online.object.SqlTableColumn; -import com.orangeforms.common.online.service.OnlineDblinkService; -import com.github.pagehelper.Page; -import lombok.extern.slf4j.Slf4j; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; - -import javax.annotation.PostConstruct; -import java.io.Serializable; -import java.util.LinkedList; -import java.util.List; -import java.util.Map; -import java.util.stream.Collectors; - -/** - * 数据库链接数据操作服务类。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Slf4j -@Service("onlineDblinkService") -public class OnlineDblinkServiceImpl extends BaseService implements OnlineDblinkService { - - @Autowired - private OnlineDblinkMapper onlineDblinkMapper; - @Autowired - private IdGeneratorWrapper idGenerator; - @Autowired - private OnlineProperties onlineProperties; - - private Map dblinkMap; - - @PostConstruct - public void loadAllDblink() { - List dblinkList = super.getAllList(); - this.dblinkMap = dblinkList.stream().collect(Collectors.toMap(OnlineDblink::getDblinkId, c -> c)); - } - - /** - * 返回当前Service的主表Mapper对象。 - * - * @return 主表Mapper对象。 - */ - @Override - protected BaseDaoMapper mapper() { - return onlineDblinkMapper; - } - - /** - * 根据主键Id,从本地缓存中读取数据库链接信息。 - * 这里之所以不考虑缓存补偿,是因为如果出现新的用于在线表单的数据库链接,我们也需要修改当前服务的多数据源配置才能正常工作, - * 否则新OnlineDblink的ConstantType,没法保证正常的数据源切换。 - * - * @param dblinkId 数据库链接Id。 - * @return 查询到的OnlineDblink对象。 - */ - @Override - public OnlineDblink getById(Serializable dblinkId) { - return dblinkMap.get(dblinkId); - } - - /** - * 获取单表查询结果。由于没有关联数据查询,因此在仅仅获取单表数据的场景下,效率更高。 - * 如果需要同时获取关联数据,请移步(getOnlineDblinkListWithRelation)方法。 - * - * @param filter 过滤对象。 - * @param orderBy 排序参数。 - * @return 查询结果集。 - */ - @Override - public List getOnlineDblinkList(OnlineDblink filter, String orderBy) { - return onlineDblinkMapper.getOnlineDblinkList(filter, orderBy); - } - - /** - * 获取主表的查询结果,以及主表关联的字典数据和一对一从表数据,以及一对一从表的字典数据。 - * 该查询会涉及到一对一从表的关联过滤,或一对多从表的嵌套关联过滤,因此性能不如单表过滤。 - * 如果仅仅需要获取主表数据,请移步(getOnlineDblinkList),以便获取更好的查询性能。 - * - * @param filter 主表过滤对象。 - * @param orderBy 排序参数。 - * @return 查询结果集。 - */ - @Override - public List getOnlineDblinkListWithRelation(OnlineDblink filter, String orderBy) { - List resultList = onlineDblinkMapper.getOnlineDblinkList(filter, orderBy); - // 在缺省生成的代码中,如果查询结果resultList不是Page对象,说明没有分页,那么就很可能是数据导出接口调用了当前方法。 - // 为了避免一次性的大量数据关联,规避因此而造成的系统运行性能冲击,这里手动进行了分批次读取,开发者可按需修改该值。 - int batchSize = resultList instanceof Page ? 0 : 1000; - this.buildRelationForDataList(resultList, MyRelationParam.normal(), batchSize); - return resultList; - } - - /** - * 获取指定DBLink下面的全部数据表。 - * - * @param dblink 数据库链接对象。 - * @return 全部数据表列表。 - */ - @Override - public List getDblinkTableList(OnlineDblink dblink) { - Integer originalType = DataSourceContextHolder.setDataSourceType(dblink.getDblinkConfigConstant()); - try { - List> resultList = - onlineDblinkMapper.getTableListWithPrefix(onlineProperties.getTablePrefix()); - List tableList = new LinkedList<>(); - resultList.forEach(r -> { - SqlTable sqlTable = BeanUtil.mapToBean(r, SqlTable.class, false, null); - sqlTable.setDblinkId(dblink.getDblinkId()); - tableList.add(sqlTable); - }); - return tableList; - } finally { - DataSourceContextHolder.unset(originalType); - } - } - - /** - * X - * 获取指定DBLink下,指定表名的数据表对象,及其关联字段列表。 - * - * @param dblink 数据库链接对象。 - * @param tableName 数据库中的数据表名。 - * @return 数据表对象。 - */ - @Override - public SqlTable getDblinkTable(OnlineDblink dblink, String tableName) { - Integer originalType = DataSourceContextHolder.setDataSourceType(dblink.getDblinkConfigConstant()); - try { - Map result = onlineDblinkMapper.getTableByName(tableName); - if (result == null) { - return null; - } - SqlTable sqlTable = BeanUtil.mapToBean(result, SqlTable.class, false, null); - sqlTable.setDblinkId(dblink.getDblinkId()); - sqlTable.setColumnList(getDblinkTableColumnList(dblink, tableName)); - return sqlTable; - } finally { - DataSourceContextHolder.unset(originalType); - } - } - - /** - * 获取指定DBLink下,指定表名的字段列表。 - * - * @param dblink 数据库链接对象。 - * @param tableName 表名。 - * @return 表的字段列表。 - */ - @Override - public List getDblinkTableColumnList(OnlineDblink dblink, String tableName) { - Integer originalType = DataSourceContextHolder.setDataSourceType(dblink.getDblinkConfigConstant()); - try { - List> resultList = onlineDblinkMapper.getTableColumnList(tableName); - List columnList = new LinkedList<>(); - resultList.forEach(r -> { - SqlTableColumn sqlTableColumn = - BeanUtil.mapToBean(r, SqlTableColumn.class, false, null); - sqlTableColumn.setAutoIncrement("auto_increment".equals(sqlTableColumn.getExtra())); - columnList.add(sqlTableColumn); - }); - return columnList; - } finally { - DataSourceContextHolder.unset(originalType); - } - } - - /** - * 获取指定DBLink下,指定表的字段对象。 - * - * @param dblink 数据库链接对象。 - * @param tableName 数据库中的数据表名。 - * @param columnName 数据库中的数据表的字段名。 - * @return 表的字段对象。 - */ - @Override - public SqlTableColumn getDblinkTableColumn(OnlineDblink dblink, String tableName, String columnName) { - Integer originalType = DataSourceContextHolder.setDataSourceType(dblink.getDblinkConfigConstant()); - try { - Map result = onlineDblinkMapper.getTableColumnByName(tableName, columnName); - if (result == null) { - return null; - } - SqlTableColumn sqlTableColumn = - BeanUtil.mapToBean(result, SqlTableColumn.class, false, null); - sqlTableColumn.setAutoIncrement("auto_increment".equals(sqlTableColumn.getExtra())); - return sqlTableColumn; - } finally { - DataSourceContextHolder.unset(originalType); - } - } -} diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/service/impl/OnlineDictServiceImpl.java b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/service/impl/OnlineDictServiceImpl.java deleted file mode 100644 index da0cabac..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/service/impl/OnlineDictServiceImpl.java +++ /dev/null @@ -1,157 +0,0 @@ -package com.orangeforms.common.online.service.impl; - -import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; -import com.orangeforms.common.core.base.dao.BaseDaoMapper; -import com.orangeforms.common.core.base.service.BaseService; -import com.orangeforms.common.core.object.CallResult; -import com.orangeforms.common.core.object.MyRelationParam; -import com.orangeforms.common.sequence.wrapper.IdGeneratorWrapper; -import com.orangeforms.common.online.dao.OnlineDictMapper; -import com.orangeforms.common.online.model.OnlineDict; -import com.orangeforms.common.online.service.OnlineDblinkService; -import com.orangeforms.common.online.service.OnlineDictService; -import com.github.pagehelper.Page; -import lombok.extern.slf4j.Slf4j; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; -import org.springframework.transaction.annotation.Transactional; - -import java.util.Date; -import java.util.List; -import java.util.Set; - -/** - * 在线表单字典数据操作服务类。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Slf4j -@Service("onlineDictService") -public class OnlineDictServiceImpl extends BaseService implements OnlineDictService { - - @Autowired - private OnlineDictMapper onlineDictMapper; - @Autowired - private OnlineDblinkService dblinkService; - @Autowired - private IdGeneratorWrapper idGenerator; - - /** - * 返回当前Service的主表Mapper对象。 - * - * @return 主表Mapper对象。 - */ - @Override - protected BaseDaoMapper mapper() { - return onlineDictMapper; - } - - /** - * 保存新增对象。 - * - * @param onlineDict 新增对象。 - * @return 返回新增对象。 - */ - @Transactional(rollbackFor = Exception.class) - @Override - public OnlineDict saveNew(OnlineDict onlineDict) { - onlineDict.setDictId(idGenerator.nextLongId()); - Date now = new Date(); - onlineDict.setUpdateTime(now); - onlineDict.setCreateTime(now); - onlineDictMapper.insert(onlineDict); - return onlineDict; - } - - /** - * 更新数据对象。 - * - * @param onlineDict 更新的对象。 - * @param originalOnlineDict 原有数据对象。 - * @return 成功返回true,否则false。 - */ - @Transactional(rollbackFor = Exception.class) - @Override - public boolean update(OnlineDict onlineDict, OnlineDict originalOnlineDict) { - onlineDict.setUpdateTime(new Date()); - onlineDict.setCreateTime(originalOnlineDict.getCreateTime()); - // 这里重点提示,在执行主表数据更新之前,如果有哪些字段不支持修改操作,请用原有数据对象字段替换当前数据字段。 - UpdateWrapper uw = this.createUpdateQueryForNullValue(onlineDict, onlineDict.getDictId()); - return onlineDictMapper.update(onlineDict, uw) == 1; - } - - /** - * 删除指定数据。 - * - * @param dictId 主键Id。 - * @return 成功返回true,否则false。 - */ - @Transactional(rollbackFor = Exception.class) - @Override - public boolean remove(Long dictId) { - return onlineDictMapper.deleteById(dictId) == 1; - } - - /** - * 获取单表查询结果。由于没有关联数据查询,因此在仅仅获取单表数据的场景下,效率更高。 - * 如果需要同时获取关联数据,请移步(getOnlineDictListWithRelation)方法。 - * - * @param filter 过滤对象。 - * @param orderBy 排序参数。 - * @return 查询结果集。 - */ - @Override - public List getOnlineDictList(OnlineDict filter, String orderBy) { - return onlineDictMapper.getOnlineDictList(filter, orderBy); - } - - /** - * 根据指定字典Id集合返回字段对象数据列表。 - * - * @param dictIdSet 字典Id集合。 - * @return 查询后的字典对象列表。 - */ - @Override - public List getOnlineDictList(Set dictIdSet) { - return onlineDictMapper.selectBatchIds(dictIdSet); - } - - - /** - * 获取主表的查询结果,以及主表关联的字典数据和一对一从表数据,以及一对一从表的字典数据。 - * 该查询会涉及到一对一从表的关联过滤,或一对多从表的嵌套关联过滤,因此性能不如单表过滤。 - * 如果仅仅需要获取主表数据,请移步(getOnlineDictList),以便获取更好的查询性能。 - * - * @param filter 主表过滤对象。 - * @param orderBy 排序参数。 - * @return 查询结果集。 - */ - @Override - public List getOnlineDictListWithRelation(OnlineDict filter, String orderBy) { - List resultList = onlineDictMapper.getOnlineDictList(filter, orderBy); - // 在缺省生成的代码中,如果查询结果resultList不是Page对象,说明没有分页,那么就很可能是数据导出接口调用了当前方法。 - // 为了避免一次性的大量数据关联,规避因此而造成的系统运行性能冲击,这里手动进行了分批次读取,开发者可按需修改该值。 - int batchSize = resultList instanceof Page ? 0 : 1000; - this.buildRelationForDataList(resultList, MyRelationParam.normal(), batchSize); - return resultList; - } - - /** - * 根据最新对象和原有对象的数据对比,判断关联的字典数据和多对一主表数据是否都是合法数据。 - * - * @param onlineDict 最新数据对象。 - * @param originalOnlineDict 原有数据对象。 - * @return 数据全部正确返回true,否则false。 - */ - @Override - public CallResult verifyRelatedData(OnlineDict onlineDict, OnlineDict originalOnlineDict) { - String errorMessageFormat = "数据验证失败,关联的%s并不存在,请刷新后重试!"; - //这里是基于字典的验证。 - if (this.needToVerify(onlineDict, originalOnlineDict, OnlineDict::getDblinkId) - && !dblinkService.existId(onlineDict.getDblinkId())) { - return CallResult.error(String.format(errorMessageFormat, "数据库链接主键id")); - } - return CallResult.ok(); - } -} diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/service/impl/OnlineFormServiceImpl.java b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/service/impl/OnlineFormServiceImpl.java deleted file mode 100644 index f8541e7a..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/service/impl/OnlineFormServiceImpl.java +++ /dev/null @@ -1,262 +0,0 @@ -package com.orangeforms.common.online.service.impl; - -import cn.hutool.core.collection.CollUtil; -import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; -import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; -import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; -import com.orangeforms.common.core.base.dao.BaseDaoMapper; -import com.orangeforms.common.core.base.service.BaseService; -import com.orangeforms.common.core.object.CallResult; -import com.orangeforms.common.core.object.MyRelationParam; -import com.orangeforms.common.sequence.wrapper.IdGeneratorWrapper; -import com.orangeforms.common.online.dao.OnlineFormDatasourceMapper; -import com.orangeforms.common.online.dao.OnlineFormMapper; -import com.orangeforms.common.online.model.OnlineForm; -import com.orangeforms.common.online.model.OnlineFormDatasource; -import com.orangeforms.common.online.service.OnlineFormService; -import com.orangeforms.common.online.service.OnlinePageService; -import com.orangeforms.common.online.service.OnlineTableService; -import com.github.pagehelper.Page; -import lombok.extern.slf4j.Slf4j; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; -import org.springframework.transaction.annotation.Transactional; - -import java.util.*; -import java.util.stream.Collectors; - -/** - * 在线表单数据操作服务类。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Slf4j -@Service("onlineFormService") -public class OnlineFormServiceImpl extends BaseService implements OnlineFormService { - - @Autowired - private OnlineFormMapper onlineFormMapper; - @Autowired - private OnlineFormDatasourceMapper onlineFormDatasourceMapper; - @Autowired - private OnlineTableService onlineTableService; - @Autowired - private OnlinePageService onlinePageService; - @Autowired - private IdGeneratorWrapper idGenerator; - - /** - * 返回当前Service的主表Mapper对象。 - * - * @return 主表Mapper对象。 - */ - @Override - protected BaseDaoMapper mapper() { - return onlineFormMapper; - } - - /** - * 保存新增对象。 - * - * @param onlineForm 新增对象。 - * @param datasourceIdSet 在线表单关联的数据源Id集合。 - * @return 返回新增对象。 - */ - @Transactional(rollbackFor = Exception.class) - @Override - public OnlineForm saveNew(OnlineForm onlineForm, Set datasourceIdSet) { - onlineForm.setFormId(idGenerator.nextLongId()); - Date now = new Date(); - onlineForm.setUpdateTime(now); - onlineForm.setCreateTime(now); - onlineFormMapper.insert(onlineForm); - if (CollUtil.isNotEmpty(datasourceIdSet)) { - for (Long datasourceId : datasourceIdSet) { - OnlineFormDatasource onlineFormDatasource = new OnlineFormDatasource(); - onlineFormDatasource.setId(idGenerator.nextLongId()); - onlineFormDatasource.setFormId(onlineForm.getFormId()); - onlineFormDatasource.setDatasourceId(datasourceId); - onlineFormDatasourceMapper.insert(onlineFormDatasource); - } - } - return onlineForm; - } - - /** - * 更新数据对象。 - * - * @param onlineForm 更新的对象。 - * @param originalOnlineForm 原有数据对象。 - * @param datasourceIdSet 在线表单关联的数据源Id集合。 - * @return 成功返回true,否则false。 - */ - @Transactional(rollbackFor = Exception.class) - @Override - public boolean update(OnlineForm onlineForm, OnlineForm originalOnlineForm, Set datasourceIdSet) { - onlineForm.setUpdateTime(new Date()); - onlineForm.setCreateTime(originalOnlineForm.getCreateTime()); - // 这里重点提示,在执行主表数据更新之前,如果有哪些字段不支持修改操作,请用原有数据对象字段替换当前数据字段。 - UpdateWrapper uw = this.createUpdateQueryForNullValue(onlineForm, onlineForm.getFormId()); - if (onlineFormMapper.update(onlineForm, uw) != 1) { - return false; - } - OnlineFormDatasource formDatasourceFilter = new OnlineFormDatasource(); - formDatasourceFilter.setFormId(onlineForm.getFormId()); - onlineFormDatasourceMapper.delete(new QueryWrapper<>(formDatasourceFilter)); - if (CollUtil.isNotEmpty(datasourceIdSet)) { - for (Long datasourceId : datasourceIdSet) { - OnlineFormDatasource onlineFormDatasource = new OnlineFormDatasource(); - onlineFormDatasource.setId(idGenerator.nextLongId()); - onlineFormDatasource.setFormId(onlineForm.getFormId()); - onlineFormDatasource.setDatasourceId(datasourceId); - onlineFormDatasourceMapper.insert(onlineFormDatasource); - } - } - return true; - } - - /** - * 删除指定数据。 - * - * @param formId 主键Id。 - * @return 成功返回true,否则false。 - */ - @Transactional(rollbackFor = Exception.class) - @Override - public boolean remove(Long formId) { - if (onlineFormMapper.deleteById(formId) != 1) { - return false; - } - OnlineFormDatasource formDatasourceFilter = new OnlineFormDatasource(); - formDatasourceFilter.setFormId(formId); - onlineFormDatasourceMapper.delete(new QueryWrapper<>(formDatasourceFilter)); - return true; - } - - /** - * 根据PageId,删除其所属的所有表单,以及表单关联的数据源数据。 - * - * @param pageId 指定的pageId。 - * @return 删除数量。 - */ - @Transactional(rollbackFor = Exception.class) - @Override - public int removeByPageId(Long pageId) { - OnlineForm filter = new OnlineForm(); - filter.setPageId(pageId); - List formList = onlineFormMapper.selectList(new QueryWrapper<>(filter)); - Set formIdSet = formList.stream().map(OnlineForm::getFormId).collect(Collectors.toSet()); - if (CollUtil.isNotEmpty(formIdSet)) { - onlineFormDatasourceMapper.delete( - new QueryWrapper().lambda().in(OnlineFormDatasource::getFormId, formIdSet)); - } - return onlineFormMapper.delete(new QueryWrapper<>(filter)); - } - - /** - * 获取单表查询结果。由于没有关联数据查询,因此在仅仅获取单表数据的场景下,效率更高。 - * 如果需要同时获取关联数据,请移步(getOnlineFormListWithRelation)方法。 - * - * @param filter 过滤对象。 - * @param orderBy 排序参数。 - * @return 查询结果集。 - */ - @Override - public List getOnlineFormList(OnlineForm filter, String orderBy) { - return onlineFormMapper.getOnlineFormList(filter, orderBy); - } - - /** - * 获取主表的查询结果,以及主表关联的字典数据和一对一从表数据,以及一对一从表的字典数据。 - * 该查询会涉及到一对一从表的关联过滤,或一对多从表的嵌套关联过滤,因此性能不如单表过滤。 - * 如果仅仅需要获取主表数据,请移步(getOnlineFormList),以便获取更好的查询性能。 - * - * @param filter 主表过滤对象。 - * @param orderBy 排序参数。 - * @return 查询结果集。 - */ - @Override - public List getOnlineFormListWithRelation(OnlineForm filter, String orderBy) { - List resultList = onlineFormMapper.getOnlineFormList(filter, orderBy); - // 在缺省生成的代码中,如果查询结果resultList不是Page对象,说明没有分页,那么就很可能是数据导出接口调用了当前方法。 - // 为了避免一次性的大量数据关联,规避因此而造成的系统运行性能冲击,这里手动进行了分批次读取,开发者可按需修改该值。 - int batchSize = resultList instanceof Page ? 0 : 1000; - this.buildRelationForDataList(resultList, MyRelationParam.normal(), batchSize); - return resultList; - } - - /** - * 获取使用指定数据表的表单列表。 - * - * @param tableId 数据表Id。 - * @return 使用该数据表的表单列表。 - */ - @Override - public List getOnlineFormListByTableId(Long tableId) { - OnlineForm filter = new OnlineForm(); - filter.setMasterTableId(tableId); - return onlineFormMapper.selectList(new QueryWrapper<>(filter)); - } - - /** - * 获取指定表单的数据源列表。 - * - * @param formId 指定的表单。 - * @return 表单和数据源的多对多关联对象列表。 - */ - @Override - public List getFormDatasourceListByFormId(Long formId) { - return onlineFormDatasourceMapper.selectList( - new QueryWrapper().lambda().eq(OnlineFormDatasource::getFormId, formId)); - } - - /** - * 查询正在使用当前数据源的表单。 - * - * @param datasourceId 数据源Id。 - * @return 正在使用当前数据源的表单列表。 - */ - @Override - public List getOnlineFormListByDatasourceId(Long datasourceId) { - List formDatasourceList = onlineFormDatasourceMapper.selectList( - new QueryWrapper().lambda().eq(OnlineFormDatasource::getDatasourceId, datasourceId)); - if (CollUtil.isEmpty(formDatasourceList)) { - return new LinkedList<>(); - } - Collection formIdSet = formDatasourceList.stream() - .map(OnlineFormDatasource::getFormId).collect(Collectors.toSet()); - return onlineFormMapper.selectList( - new QueryWrapper().lambda().in(OnlineForm::getFormId, formIdSet)); - } - - @Override - public List getOnlineFormListByPageIds(Set pageIdSet) { - LambdaQueryWrapper queryWrapper = new LambdaQueryWrapper<>(); - queryWrapper.in(OnlineForm::getPageId, pageIdSet); - return onlineFormMapper.selectList(queryWrapper); - } - - /** - * 根据最新对象和原有对象的数据对比,判断关联的字典数据和多对一主表数据是否都是合法数据。 - * - * @param onlineForm 最新数据对象。 - * @param originalOnlineForm 原有数据对象。 - * @return 数据全部正确返回true,否则false。 - */ - @Override - public CallResult verifyRelatedData(OnlineForm onlineForm, OnlineForm originalOnlineForm) { - String errorMessageFormat = "数据验证失败,关联的%s并不存在,请刷新后重试!"; - //这里是基于字典的验证。 - if (this.needToVerify(onlineForm, originalOnlineForm, OnlineForm::getMasterTableId) - && !onlineTableService.existId(onlineForm.getMasterTableId())) { - return CallResult.error(String.format(errorMessageFormat, "表单主表id")); - } - //这里是一对多的验证 - if (this.needToVerify(onlineForm, originalOnlineForm, OnlineForm::getPageId) - && !onlinePageService.existId(onlineForm.getPageId())) { - return CallResult.error(String.format(errorMessageFormat, "页面id")); - } - return CallResult.ok(); - } -} diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/service/impl/OnlineOperationServiceImpl.java b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/service/impl/OnlineOperationServiceImpl.java deleted file mode 100644 index 78e7752e..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/service/impl/OnlineOperationServiceImpl.java +++ /dev/null @@ -1,973 +0,0 @@ -package com.orangeforms.common.online.service.impl; - -import cn.hutool.core.collection.CollUtil; -import cn.hutool.core.util.ObjectUtil; -import cn.hutool.core.util.StrUtil; -import cn.hutool.core.map.MapUtil; -import com.alibaba.fastjson.JSON; -import com.alibaba.fastjson.JSONArray; -import com.orangeforms.common.core.annotation.MyDataSourceResolver; -import com.orangeforms.common.core.constant.AggregationType; -import com.orangeforms.common.core.exception.NoDataPermException; -import com.orangeforms.common.core.constant.GlobalDeletedFlag; -import com.orangeforms.common.core.object.MyWhereCriteria; -import com.orangeforms.common.core.object.TokenData; -import com.orangeforms.common.core.object.Tuple2; -import com.orangeforms.common.core.util.RedisKeyUtil; -import com.orangeforms.common.datafilter.constant.DataPermRuleType; -import com.orangeforms.common.datafilter.config.DataFilterProperties; -import com.orangeforms.common.online.model.constant.*; -import com.orangeforms.common.online.service.OnlineVirtualColumnService; -import com.orangeforms.common.online.util.OnlineOperationHelper; -import com.orangeforms.common.sequence.wrapper.IdGeneratorWrapper; -import com.orangeforms.common.online.util.OnlineDataSourceResolver; -import com.orangeforms.common.online.util.OnlineConstant; -import com.orangeforms.common.online.dao.OnlineOperationMapper; -import com.orangeforms.common.online.dto.OnlineFilterDto; -import com.orangeforms.common.online.model.*; -import com.orangeforms.common.online.object.ColumnData; -import com.orangeforms.common.online.object.JoinTableInfo; -import com.orangeforms.common.online.service.OnlineDictService; -import com.orangeforms.common.online.service.OnlineOperationService; -import com.google.common.collect.LinkedHashMultimap; -import com.google.common.collect.Multimap; -import lombok.Data; -import lombok.extern.slf4j.Slf4j; -import org.apache.commons.collections4.CollectionUtils; -import org.redisson.api.RBucket; -import org.redisson.api.RedissonClient; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; -import org.springframework.transaction.annotation.Transactional; - -import java.util.*; -import java.util.stream.Collectors; - -/** - * 在线表单运行时数据操作服务类。 - * - * @author Jerry - * @date 2021-06-06 - */ -@MyDataSourceResolver(resolver = OnlineDataSourceResolver.class) -@Slf4j -@Service("onlineOperationService") -public class OnlineOperationServiceImpl implements OnlineOperationService { - - @Autowired - private OnlineOperationMapper onlineOperationMapper; - @Autowired - private OnlineDictService onlineDictService; - @Autowired - private OnlineVirtualColumnService onlineVirtualColumnService; - @Autowired - private OnlineOperationHelper onlineOperationHelper; - @Autowired - private IdGeneratorWrapper idGenerator; - @Autowired - private RedissonClient redissonClient; - @Autowired - private DataFilterProperties dataFilterProperties; - - /** - * 聚合返回数据中,聚合键的常量字段名。 - * 如select groupColumn groupedKey, max(aggregationColumn) aggregatedValue。 - */ - private static final String KEY_NAME = "groupedKey"; - /** - * 聚合返回数据中,聚合值的常量字段名。 - * 如select groupColumn groupedKey, max(aggregationColumn) aggregatedValue。 - */ - private static final String VALUE_NAME = "aggregatedValue"; - - @Transactional(rollbackFor = Exception.class) - @Override - public Object saveNew(OnlineTable table, List columnDataList) { - String tableName = table.getTableName(); - String columnNames = this.makeColumnNames(columnDataList); - List columnValueList = new LinkedList<>(); - Object id = null; - // 这里逐个处理每一行数据,特别是非自增主键、createUserId、createTime、逻辑删除等特殊属性的字段。 - for (ColumnData columnData : columnDataList) { - if (!columnData.getColumn().getAutoIncrement()) { - this.makeupColumnValue(columnData); - columnValueList.add(columnData.getColumnValue()); - if (columnData.getColumn().getPrimaryKey()) { - id = columnData.getColumnValue(); - } - } - } - onlineOperationMapper.insert(tableName, columnNames, columnValueList); - return id; - } - - @Transactional(rollbackFor = Exception.class) - @Override - public Object saveNewAndSlaveRelation( - OnlineTable masterTable, - List columnDataList, - Map>> slaveDataListMap) { - Object id = this.saveNew(masterTable, columnDataList); - // 迭代多个一对多关联。 - for (Map.Entry>> entry : slaveDataListMap.entrySet()) { - Long masterColumnId = entry.getKey().getMasterColumnId(); - ColumnData masterColumnData = null; - for (ColumnData columnData : columnDataList) { - if (columnData.getColumn().getColumnId().equals(masterColumnId)) { - masterColumnData = columnData; - break; - } - } - Long slaveColumnId = entry.getKey().getSlaveColumnId(); - // 迭代一对多关联中的数据集合 - for (List slaveColumnDataList : entry.getValue()) { - // 迭代一对多关联记录的字段列表。 - for (ColumnData slaveColumnData : slaveColumnDataList) { - if (slaveColumnData.getColumn().getColumnId().equals(slaveColumnId)) { - slaveColumnData.setColumnValue(masterColumnData.getColumnValue()); - break; - } - } - this.saveNew(entry.getKey().getSlaveTable(), slaveColumnDataList); - } - } - return id; - } - - @Transactional(rollbackFor = Exception.class) - @Override - public boolean update(OnlineTable table, List columnDataList) { - String tableName = table.getTableName(); - List updateColumnList = new LinkedList<>(); - List whereColumnList = new LinkedList<>(); - for (ColumnData columnData : columnDataList) { - this.makeupColumnValue(columnData); - // 对于以下几种类型的字段,忽略更新。 - if (columnData.getColumn().getPrimaryKey() - || ObjectUtil.equal(columnData.getColumn().getFieldKind(), FieldKind.LOGIC_DELETE)) { - whereColumnList.add(columnData); - continue; - } - if (ObjectUtil.notEqual(columnData.getColumn().getFieldKind(), FieldKind.CREATE_TIME) - && ObjectUtil.notEqual(columnData.getColumn().getFieldKind(), FieldKind.CREATE_USER_ID)) { - updateColumnList.add(columnData); - } - } - if (CollUtil.isEmpty(updateColumnList)) { - return true; - } - String dataPermFilter = this.buildDataPermFilter(table); - return onlineOperationMapper.update(tableName, updateColumnList, whereColumnList, dataPermFilter) == 1; - } - - @Transactional(rollbackFor = Exception.class) - @Override - public boolean updateColumn(OnlineTable table, String dataId, OnlineColumn column, T dataValue) { - List whereColumnList = new LinkedList<>(); - if (table.getLogicDeleteColumn() != null) { - ColumnData logicDeleteColumnData = new ColumnData(); - logicDeleteColumnData.setColumn(table.getLogicDeleteColumn()); - logicDeleteColumnData.setColumnValue(GlobalDeletedFlag.NORMAL); - whereColumnList.add(logicDeleteColumnData); - } - ColumnData primaryKeyColumnData = new ColumnData(); - primaryKeyColumnData.setColumn(table.getPrimaryKeyColumn()); - primaryKeyColumnData.setColumnValue( - onlineOperationHelper.convertToTypeValue(table.getPrimaryKeyColumn(), dataId)); - whereColumnList.add(primaryKeyColumnData); - List updateColumnList = new LinkedList<>(); - ColumnData updateColumnData = new ColumnData(); - updateColumnData.setColumn(column); - updateColumnData.setColumnValue(dataValue); - updateColumnList.add(updateColumnData); - List filterList = - this.makeDefaultFilter(table, table.getPrimaryKeyColumn(), dataId); - String dataPermFilter = this.buildDataPermFilter(table); - return onlineOperationMapper.update( - table.getTableName(), updateColumnList, whereColumnList, dataPermFilter) == 1; - } - - @Transactional(rollbackFor = Exception.class) - @Override - public boolean delete(OnlineTable table, List relationList, String dataId) { - Map masterData = null; - if (CollUtil.isNotEmpty(relationList)) { - for (OnlineDatasourceRelation relation : relationList) { - if (relation.getCascadeDelete() - && !relation.getMasterColumnId().equals(table.getPrimaryKeyColumn().getColumnId())) { - masterData = getMasterData(table, null, null, dataId); - break; - } - } - } - List filterList = - this.makeDefaultFilter(table, table.getPrimaryKeyColumn(), dataId); - String dataPermFilter = this.buildDataPermFilter(table); - if (table.getLogicDeleteColumn() == null) { - if (onlineOperationMapper.delete(table.getTableName(), filterList, dataPermFilter) != 1) { - return false; - } - } else { - if (!this.doLogicDelete(table, table.getPrimaryKeyColumn(), dataId, dataPermFilter)) { - return false; - } - } - if (CollUtil.isEmpty(relationList)) { - return true; - } - for (OnlineDatasourceRelation relation : relationList) { - if (!relation.getCascadeDelete()) { - continue; - } - OnlineTable slaveTable = relation.getSlaveTable(); - OnlineColumn slaveColumn = - relation.getSlaveTable().getColumnMap().get(relation.getSlaveColumnId()); - String columnValue = dataId; - if (!relation.getMasterColumnId().equals(table.getPrimaryKeyColumn().getColumnId())) { - OnlineColumn relationMasterColumn = table.getColumnMap().get(relation.getMasterColumnId()); - columnValue = masterData.get(relationMasterColumn.getColumnName()).toString(); - } - if (slaveTable.getLogicDeleteColumn() == null) { - List slaveFilterList = - this.makeDefaultFilter(relation.getSlaveTable(), slaveColumn, columnValue); - onlineOperationMapper.delete(slaveTable.getTableName(), slaveFilterList, null); - } else { - this.doLogicDelete(slaveTable, slaveColumn, columnValue, null); - } - } - return true; - } - - @Transactional(rollbackFor = Exception.class) - @Override - public void forceDelete(OnlineTable table, OnlineColumn column, String columnValue) { - List filterList = this.makeDefaultFilter(table, column, columnValue); - onlineOperationMapper.delete(table.getTableName(), filterList, null); - } - - @Override - public Map getMasterData( - OnlineTable table, - List oneToOneRelationList, - List allRelationList, - String dataId) { - List filterList = - this.makeDefaultFilter(table, table.getPrimaryKeyColumn(), dataId); - // 组件表关联数据。 - List joinInfoList = this.makeJoinInfoList(table, oneToOneRelationList); - // 拼接关联表的select fields字段。 - String selectFields = this.makeSelectFields(table, oneToOneRelationList); - String dataPermFilter = this.buildDataPermFilter(table); - List> resultList = onlineOperationMapper.getList( - table.getTableName(), joinInfoList, selectFields, filterList, dataPermFilter, null); - this.buildDataListWithDict(resultList, table, oneToOneRelationList); - if (CollUtil.isEmpty(resultList)) { - return null; - } - if (CollUtil.isNotEmpty(allRelationList)) { - // 针对一对多和多对多关联,计算虚拟聚合字段。 - List toManyRelationList = allRelationList.stream() - .filter(r -> !r.getRelationType().equals(RelationType.ONE_TO_ONE)).collect(Collectors.toList()); - this.buildVirtualColumn(resultList, table, toManyRelationList); - } - return resultList.get(0); - } - - @Override - public Map getSlaveData(OnlineDatasourceRelation relation, String dataId) { - OnlineTable slaveTable = relation.getSlaveTable(); - List filterList = - this.makeDefaultFilter(slaveTable, slaveTable.getPrimaryKeyColumn(), dataId); - // 拼接关联表的select fields字段。 - String selectFields = this.makeSelectFields(slaveTable, relation.getVariableName()); - String dataPermFilter = this.buildDataPermFilter(slaveTable); - List> resultList = onlineOperationMapper.getList( - slaveTable.getTableName(), null, selectFields, filterList, dataPermFilter, null); - this.buildDataListWithDict(resultList, slaveTable, relation.getVariableName()); - return CollUtil.isEmpty(resultList) ? null : resultList.get(0); - } - - @Override - public List> getMasterDataList( - OnlineTable table, - List oneToOneRelationList, - List allRelationList, - List filterList, - String orderBy) { - // 如果主表中包含逻辑删除,需要在这里补充到过滤字段中。 - if (table.getLogicDeleteColumn() != null) { - if (filterList == null) { - filterList = new LinkedList<>(); - } - OnlineFilterDto filter = new OnlineFilterDto(); - filter.setTableName(table.getTableName()); - filter.setColumnName(table.getLogicDeleteColumn().getColumnName()); - filter.setColumnValue(GlobalDeletedFlag.NORMAL); - filterList.add(filter); - } - // 组件表关联数据。 - List joinInfoList = this.makeJoinInfoList(table, oneToOneRelationList); - // 拼接关联表的select fields字段。 - String selectFields = this.makeSelectFields(table, oneToOneRelationList); - String dataPermFilter = this.buildDataPermFilter(table); - List> resultList = onlineOperationMapper.getList( - table.getTableName(), joinInfoList, selectFields, filterList, dataPermFilter, orderBy); - this.buildDataListWithDict(resultList, table, oneToOneRelationList); - // 针对一对多和多对多关联,计算虚拟聚合字段。 - if (CollUtil.isNotEmpty(allRelationList)) { - List toManyRelationList = allRelationList.stream() - .filter(r -> !r.getRelationType().equals(RelationType.ONE_TO_ONE)).collect(Collectors.toList()); - this.buildVirtualColumn(resultList, table, toManyRelationList); - } - return resultList; - } - - @Override - public List> getSlaveDataList( - OnlineDatasourceRelation relation, List filterList, String orderBy) { - OnlineTable slaveTable = relation.getSlaveTable(); - // 如果主表中包含逻辑删除,需要在这里补充到过滤字段中。 - if (slaveTable.getLogicDeleteColumn() != null) { - if (filterList == null) { - filterList = new LinkedList<>(); - } - OnlineFilterDto filter = new OnlineFilterDto(); - filter.setTableName(slaveTable.getTableName()); - filter.setColumnName(slaveTable.getLogicDeleteColumn().getColumnName()); - filter.setColumnValue(GlobalDeletedFlag.NORMAL); - filterList.add(filter); - } - // 拼接关联表的select fields字段。 - String selectFields = this.makeSelectFields(slaveTable, relation.getVariableName()); - String dataPermFilter = this.buildDataPermFilter(slaveTable); - List> resultList = onlineOperationMapper.getList( - slaveTable.getTableName(), null, selectFields, filterList, dataPermFilter, orderBy); - this.buildDataListWithDict(resultList, slaveTable, relation.getVariableName()); - return resultList; - } - - @Override - public List> getDictDataList(OnlineDict dict, List filterList) { - if (StrUtil.isNotEmpty(dict.getDeletedColumnName())) { - if (filterList == null) { - filterList = new LinkedList<>(); - } - OnlineFilterDto filter = new OnlineFilterDto(); - filter.setColumnName(dict.getDeletedColumnName()); - filter.setColumnValue(GlobalDeletedFlag.NORMAL); - filterList.add(filter); - } - String selectFields = this.makeDictSelectFields(dict, false); - String dataPermFilter = this.buildDataPermFilter( - dict.getTableName(), dict.getDeptFilterColumnName(), dict.getUserFilterColumnName()); - return onlineOperationMapper.getDictList(dict.getTableName(), selectFields, filterList, dataPermFilter); - } - - private void buildVirtualColumn( - List> resultList, OnlineTable table, List relationList) { - if (CollUtil.isEmpty(resultList) || CollUtil.isEmpty(relationList)) { - return; - } - OnlineVirtualColumn virtualColumnFilter = new OnlineVirtualColumn(); - virtualColumnFilter.setTableId(table.getTableId()); - virtualColumnFilter.setVirtualType(VirtualType.AGGREGATION); - List virtualColumnList = - onlineVirtualColumnService.getOnlineVirtualColumnList(virtualColumnFilter, null); - if (CollUtil.isEmpty(virtualColumnList)) { - return; - } - Map relationMap = - relationList.stream().collect(Collectors.toMap(OnlineDatasourceRelation::getRelationId, r -> r)); - for (OnlineVirtualColumn virtualColumn : virtualColumnList) { - OnlineDatasourceRelation relation = relationMap.get(virtualColumn.getRelationId()); - if (relation.getRelationType().equals(RelationType.ONE_TO_MANY)) { - this.doBuildVirtualColumnForOneToMany(table, resultList, virtualColumn, relation); - } - } - } - - private void doBuildVirtualColumnForOneToMany( - OnlineTable masterTable, - List> resultList, - OnlineVirtualColumn virtualColumn, - OnlineDatasourceRelation relation) { - String slaveTableName = relation.getSlaveTable().getTableName(); - OnlineColumn slaveColumn = - relation.getSlaveTable().getColumnMap().get(relation.getSlaveColumnId()); - String slaveColumnName = slaveColumn.getColumnName(); - OnlineColumn aggregationColumn = - relation.getSlaveTable().getColumnMap().get(virtualColumn.getAggregationColumnId()); - String aggregationColumnName = aggregationColumn.getColumnName(); - Tuple2 selectAndGroupByTuple = makeSelectListAndGroupByClause( - slaveTableName, slaveColumnName, slaveTableName, aggregationColumnName, virtualColumn.getAggregationType()); - String selectList = selectAndGroupByTuple.getFirst(); - String groupBy = selectAndGroupByTuple.getSecond(); - // 开始组装过滤从句。 - List criteriaList = new LinkedList<>(); - // 1. 组装主表数据对从表的过滤条件。 - MyWhereCriteria inlistFilter = new MyWhereCriteria(); - OnlineColumn masterColumn = masterTable.getColumnMap().get(relation.getMasterColumnId()); - String masterColumnName = masterColumn.getColumnName(); - Set masterIdSet = resultList.stream() - .map(r -> r.get(masterColumnName)).filter(Objects::nonNull).collect(Collectors.toSet()); - inlistFilter.setCriteria( - slaveTableName, slaveColumnName, slaveColumn.getObjectFieldType(), MyWhereCriteria.OPERATOR_IN, masterIdSet); - criteriaList.add(inlistFilter); - // 2. 从表逻辑删除字段过滤。 - if (relation.getSlaveTable().getLogicDeleteColumn() != null) { - MyWhereCriteria deleteFilter = new MyWhereCriteria(); - deleteFilter.setCriteria( - slaveTableName, - relation.getSlaveTable().getLogicDeleteColumn().getColumnName(), - relation.getSlaveTable().getLogicDeleteColumn().getObjectFieldType(), - MyWhereCriteria.OPERATOR_EQUAL, - GlobalDeletedFlag.NORMAL); - criteriaList.add(deleteFilter); - } - if (StrUtil.isNotBlank(virtualColumn.getWhereClauseJson())) { - List whereClauseList = - JSONArray.parseArray(virtualColumn.getWhereClauseJson(), VirtualColumnWhereClause.class); - if (CollUtil.isNotEmpty(whereClauseList)) { - for (VirtualColumnWhereClause whereClause : whereClauseList) { - MyWhereCriteria whereClauseFilter = new MyWhereCriteria(); - OnlineColumn c = relation.getSlaveTable().getColumnMap().get(whereClause.getColumnId()); - whereClauseFilter.setCriteria( - slaveTableName, - c.getColumnName(), - c.getObjectFieldType(), - whereClause.getOperatorType(), - whereClause.getValue()); - criteriaList.add(whereClauseFilter); - } - } - } - String criteriaString = MyWhereCriteria.makeCriteriaString(criteriaList); - List> aggregationMapList = - onlineOperationMapper.getGroupedListByCondition(slaveTableName, selectList, criteriaString, groupBy); - this.doMakeAggregationData(resultList, aggregationMapList, masterColumnName, virtualColumn.getObjectFieldName()); - } - - private void doMakeAggregationData( - List> resultList, - List> aggregationMapList, - String masterColumnName, - String virtualColumnName) { - // 根据获取的分组聚合结果集,绑定到主表总的关联字段。 - if (CollectionUtils.isEmpty(aggregationMapList)) { - return; - } - Map relatedMap = new HashMap<>(aggregationMapList.size()); - for (Map map : aggregationMapList) { - relatedMap.put(map.get(KEY_NAME), map.get(VALUE_NAME)); - } - for (Map dataObject : resultList) { - Object masterIdValue = dataObject.get(masterColumnName); - if (masterIdValue != null) { - Object value = relatedMap.get(masterIdValue); - if (value != null) { - dataObject.put(virtualColumnName, value); - } - } - } - } - - private Tuple2 makeSelectListAndGroupByClause( - String groupTableName, - String groupColumnName, - String aggregationTableName, - String aggregationColumnName, - Integer aggregationType) { - String aggregationFunc = AggregationType.getAggregationFunction(aggregationType); - // 构建Select List - // 如:r_table.master_id groupedKey, SUM(r_table.aggr_column) aggregated_value - StringBuilder groupedSelectList = new StringBuilder(128); - groupedSelectList.append(groupTableName) - .append(".") - .append(groupColumnName) - .append(" ") - .append(KEY_NAME) - .append(", ") - .append(aggregationFunc) - .append("(") - .append(aggregationTableName) - .append(".") - .append(aggregationColumnName) - .append(") ") - .append(VALUE_NAME) - .append(" "); - StringBuilder groupBy = new StringBuilder(64); - groupBy.append(groupTableName).append(".").append(groupColumnName); - return new Tuple2<>(groupedSelectList.toString(), groupBy.toString()); - } - - private void buildDataListWithDict( - List> resultList, OnlineTable slaveTable, String relationVariableName) { - if (CollUtil.isEmpty(resultList)) { - return; - } - Set dictIdSet = new HashSet<>(); - // 先找主表字段对字典的依赖。 - Multimap dictColumnMap = LinkedHashMultimap.create(); - for (OnlineColumn column : slaveTable.getColumnMap().values()) { - if (column.getDictId() != null) { - dictIdSet.add(column.getDictId()); - dictColumnMap.put(column.getDictId(), - relationVariableName + OnlineConstant.RELATION_TABLE_COLUMN_SEPARATOR + column.getColumnName()); - } - } - this.doBuildDataListWithDict(resultList, dictIdSet, dictColumnMap); - } - - private void buildDataListWithDict( - List> resultList, OnlineTable masterTable, List relationList) { - if (CollUtil.isEmpty(resultList)) { - return; - } - Set dictIdSet = new HashSet<>(); - // 先找主表字段对字典的依赖。 - Multimap dictColumnMap = LinkedHashMultimap.create(); - for (OnlineColumn column : masterTable.getColumnMap().values()) { - if (column.getDictId() != null) { - dictIdSet.add(column.getDictId()); - dictColumnMap.put(column.getDictId(), column.getColumnName()); - } - } - // 再找关联表字段对字典的依赖。 - if (CollUtil.isNotEmpty(relationList)) { - for (OnlineDatasourceRelation relation : relationList) { - for (OnlineColumn column : relation.getSlaveTable().getColumnMap().values()) { - if (column.getDictId() != null) { - dictIdSet.add(column.getDictId()); - dictColumnMap.put(column.getDictId(), - relation.getVariableName() + OnlineConstant.RELATION_TABLE_COLUMN_SEPARATOR + column.getColumnName()); - } - } - } - } - this.doBuildDataListWithDict(resultList, dictIdSet, dictColumnMap); - } - - private void doBuildDataListWithDict( - List> resultList, Set dictIdSet, Multimap dictColumnMap) { - if (CollUtil.isEmpty(dictIdSet)) { - return; - } - List dictList = onlineDictService.getOnlineDictList(dictIdSet) - .stream().filter(d -> d.getDictType() == DictType.TABLE).collect(Collectors.toList()); - for (OnlineDict dict : dictList) { - Collection columnNameList = dictColumnMap.get(dict.getDictId()); - for (String columnName : columnNameList) { - Set dictIdDataSet = new HashSet<>(); - for (Map result : resultList) { - Object dictIdData = result.get(columnName); - if (ObjectUtil.isNotEmpty(dictIdData)) { - dictIdDataSet.add(dictIdData); - } - } - if (CollUtil.isEmpty(dictIdDataSet)) { - continue; - } - String selectFields = this.makeDictSelectFields(dict, true); - List filterList = new LinkedList<>(); - if (StrUtil.isNotBlank(dict.getDeletedColumnName())) { - OnlineFilterDto filter = new OnlineFilterDto(); - filter.setColumnName(dict.getDeletedColumnName()); - filter.setColumnValue(GlobalDeletedFlag.NORMAL); - filterList.add(filter); - } - OnlineFilterDto inlistFilter = new OnlineFilterDto(); - inlistFilter.setColumnName(dict.getKeyColumnName()); - inlistFilter.setColumnValueList(dictIdDataSet); - inlistFilter.setFilterType(FieldFilterType.IN_LIST_FILTER); - filterList.add(inlistFilter); - List> dictResultList = - onlineOperationMapper.getDictList(dict.getTableName(), selectFields, filterList, null); - if (CollUtil.isEmpty(dictResultList)) { - continue; - } - Map dictResultMap = new HashMap<>(dictResultList.size()); - for (Map dictResult : dictResultList) { - dictResultMap.put(dictResult.get("id"), dictResult.get("name")); - } - String dictKeyName = columnName + "__DictMap"; - for (Map result : resultList) { - Object dictIdData = result.get(columnName); - Object dictNameData = dictResultMap.get(dictIdData); - Map dictMap = new HashMap<>(2); - dictMap.put("id", dictIdData); - dictMap.put("name", dictNameData); - result.put(dictKeyName, dictMap); - } - } - } - } - - private List makeJoinInfoList( - OnlineTable masterTable, List relationList) { - if (CollUtil.isEmpty(relationList)) { - return null; - } - Map masterTableColumnMap = masterTable.getColumnMap(); - List joinInfoList = new LinkedList<>(); - for (OnlineDatasourceRelation relation : relationList) { - JoinTableInfo joinInfo = new JoinTableInfo(); - joinInfo.setLeftJoin(relation.getLeftJoin()); - joinInfo.setJoinTableName(relation.getSlaveTable().getTableName()); - // 根据配置动态拼接JOIN的关联条件,同时要考虑从表的逻辑删除过滤。 - OnlineColumn masterColumn = masterTableColumnMap.get(relation.getMasterColumnId()); - OnlineColumn slaveColumn = relation.getSlaveTable().getColumnMap().get(relation.getSlaveColumnId()); - StringBuilder conditionBuilder = new StringBuilder(64); - conditionBuilder - .append(masterTable.getTableName()) - .append(".") - .append(masterColumn.getColumnName()) - .append(" = ") - .append(relation.getSlaveTable().getTableName()) - .append(".") - .append(slaveColumn.getColumnName()); - if (relation.getSlaveTable().getLogicDeleteColumn() != null) { - conditionBuilder - .append(" AND ") - .append(relation.getSlaveTable().getTableName()) - .append(".") - .append(relation.getSlaveTable().getLogicDeleteColumn().getColumnName()) - .append(" = ") - .append(GlobalDeletedFlag.NORMAL); - } - joinInfo.setJoinCondition(conditionBuilder.toString()); - joinInfoList.add(joinInfo); - } - return joinInfoList; - } - - private String makeSelectFields(OnlineTable slaveTable, String relationVariableName) { - StringBuilder selectFieldBuider = new StringBuilder(512); - // 拼装主表的select fields字段。 - for (OnlineColumn column : slaveTable.getColumnMap().values()) { - OnlineColumn deletedColumn = slaveTable.getLogicDeleteColumn(); - if (deletedColumn != null && StrUtil.equals(column.getColumnName(), deletedColumn.getColumnName())) { - continue; - } - if (this.castToInteger(column)) { - selectFieldBuider - .append("CAST(") - .append(slaveTable.getTableName()) - .append(".") - .append(column.getColumnName()) - .append(" AS SIGNED) ") - .append(relationVariableName) - .append(OnlineConstant.RELATION_TABLE_COLUMN_SEPARATOR) - .append(column.getColumnName()) - .append(","); - } else { - selectFieldBuider - .append(slaveTable.getTableName()) - .append(".") - .append(column.getColumnName()) - .append(" ") - .append(relationVariableName) - .append(OnlineConstant.RELATION_TABLE_COLUMN_SEPARATOR) - .append(column.getColumnName()) - .append(","); - } - } - return selectFieldBuider.substring(0, selectFieldBuider.length() - 1); - } - - private String makeSelectFields(OnlineTable masterTable, List relationList) { - StringBuilder selectFieldBuider = new StringBuilder(512); - if (CollUtil.isNotEmpty(relationList)) { - for (OnlineDatasourceRelation relation : relationList) { - OnlineTable slaveTable = relation.getSlaveTable(); - Collection columnList = slaveTable.getColumnMap().values(); - for (OnlineColumn column : columnList) { - OnlineColumn deletedColumn = slaveTable.getLogicDeleteColumn(); - if (deletedColumn != null && StrUtil.equals(column.getColumnName(), deletedColumn.getColumnName())) { - continue; - } - if (this.castToInteger(column)) { - selectFieldBuider - .append("CAST(") - .append(slaveTable.getTableName()) - .append(".") - .append(column.getColumnName()) - .append(" AS SIGNED) ") - .append(relation.getVariableName()) - .append(OnlineConstant.RELATION_TABLE_COLUMN_SEPARATOR) - .append(column.getColumnName()) - .append(","); - } else { - selectFieldBuider - .append(slaveTable.getTableName()) - .append(".") - .append(column.getColumnName()) - .append(" ") - .append(relation.getVariableName()) - .append(OnlineConstant.RELATION_TABLE_COLUMN_SEPARATOR) - .append(column.getColumnName()) - .append(","); - } - } - } - } - // 拼装主表的select fields字段。 - for (OnlineColumn column : masterTable.getColumnMap().values()) { - OnlineColumn deletedColumn = masterTable.getLogicDeleteColumn(); - if (deletedColumn != null && StrUtil.equals(column.getColumnName(), deletedColumn.getColumnName())) { - continue; - } - if (this.castToInteger(column)) { - selectFieldBuider - .append("CAST(") - .append(masterTable.getTableName()) - .append(".") - .append(column.getColumnName()) - .append(" AS SIGNED) ") - .append(column.getColumnName()) - .append(","); - } else { - selectFieldBuider - .append(masterTable.getTableName()) - .append(".") - .append(column.getColumnName()) - .append(","); - } - } - return selectFieldBuider.substring(0, selectFieldBuider.length() - 1); - } - - private String makeDictSelectFields(OnlineDict onlineDict, boolean ignoreParentId) { - StringBuilder sb = new StringBuilder(128); - sb.append(onlineDict.getKeyColumnName()).append(" id, "); - sb.append(onlineDict.getValueColumnName()).append(" name"); - if (!ignoreParentId && onlineDict.getTreeFlag()) { - sb.append(", ").append(onlineDict.getParentKeyColumnName()).append(" parentId"); - } - return sb.toString(); - } - - private boolean castToInteger(OnlineColumn column) { - return "tinyint(1)".equals(column.getFullColumnType()); - } - - private String makeColumnNames(List columnDataList) { - StringBuilder sb = new StringBuilder(512); - for (ColumnData columnData : columnDataList) { - if (columnData.getColumn().getAutoIncrement()) { - continue; - } - sb.append(columnData.getColumn().getColumnName()).append(","); - } - return sb.substring(0, sb.length() - 1); - } - - private void makeupColumnValue(ColumnData columnData) { - if (columnData.getColumn().getAutoIncrement()) { - return; - } - if (columnData.getColumn().getPrimaryKey()) { - if (columnData.getColumnValue() == null) { - if ("Long".equals(columnData.getColumn().getObjectFieldType())) { - columnData.setColumnValue(idGenerator.nextLongId()); - } else { - columnData.setColumnValue(idGenerator.nextStringId()); - } - } - } else if (columnData.getColumn().getFieldKind() != null) { - switch (columnData.getColumn().getFieldKind()) { - case FieldKind.CREATE_TIME: - case FieldKind.UPDATE_TIME: - columnData.setColumnValue(new Date()); - break; - case FieldKind.CREATE_USER_ID: - case FieldKind.UPDATE_USER_ID: - columnData.setColumnValue(TokenData.takeFromRequest().getUserId()); - break; - case FieldKind.LOGIC_DELETE: - columnData.setColumnValue(GlobalDeletedFlag.NORMAL); - break; - default: - break; - } - } - } - - private List makeDefaultFilter(OnlineTable table, OnlineColumn column, String columnValue) { - List filterList = new LinkedList<>(); - OnlineFilterDto dataIdFilter = new OnlineFilterDto(); - dataIdFilter.setTableName(table.getTableName()); - dataIdFilter.setColumnName(column.getColumnName()); - dataIdFilter.setColumnValue(onlineOperationHelper.convertToTypeValue(column, columnValue)); - filterList.add(dataIdFilter); - if (table.getLogicDeleteColumn() != null) { - OnlineFilterDto filter = new OnlineFilterDto(); - filter.setTableName(table.getTableName()); - filter.setColumnName(table.getLogicDeleteColumn().getColumnName()); - filter.setColumnValue(GlobalDeletedFlag.NORMAL); - filterList.add(filter); - } - return filterList; - } - - private boolean doLogicDelete( - OnlineTable table, OnlineColumn filterColumn, String filterColumnValue, String dataPermFilter) { - List updateColumnList = new LinkedList<>(); - ColumnData logicDeleteColumnData = new ColumnData(); - logicDeleteColumnData.setColumn(table.getLogicDeleteColumn()); - logicDeleteColumnData.setColumnValue(GlobalDeletedFlag.DELETED); - updateColumnList.add(logicDeleteColumnData); - List whereColumnList = new LinkedList<>(); - ColumnData relationSlaveColumnData = new ColumnData(); - relationSlaveColumnData.setColumn(filterColumn); - relationSlaveColumnData.setColumnValue( - onlineOperationHelper.convertToTypeValue(filterColumn, filterColumnValue)); - whereColumnList.add(relationSlaveColumnData); - return onlineOperationMapper.update( - table.getTableName(), updateColumnList, whereColumnList, dataPermFilter) != 0; - } - - private String buildDataPermFilter(String tableName, String deptFilterColumnName, String userFilterColumnName) { - if (!dataFilterProperties.getEnabledDataPermFilter()) { - return null; - } - return processDataPerm(tableName, deptFilterColumnName, userFilterColumnName); - } - - private String buildDataPermFilter(OnlineTable table) { - if (!dataFilterProperties.getEnabledDataPermFilter()) { - return null; - } - String deptFilterColumnName = null; - String userFilterColumnName = null; - for (OnlineColumn column : table.getColumnMap().values()) { - if (column.getDeptFilter()) { - deptFilterColumnName = column.getColumnName(); - } - if (column.getUserFilter()) { - userFilterColumnName = column.getColumnName(); - } - } - return processDataPerm(table.getTableName(), deptFilterColumnName, userFilterColumnName); - } - - private String processDataPerm(String tableName, String deptFilterColumnName, String userFilterColumnName) { - TokenData tokenData = TokenData.takeFromRequest(); - if (Boolean.TRUE.equals(tokenData.getIsAdmin())) { - return null; - } - String dataPermSessionKey = - RedisKeyUtil.makeSessionDataPermIdKey(tokenData.getSessionId()); - RBucket bucket = redissonClient.getBucket(dataPermSessionKey); - String dataPermData = bucket.get(); - if (StrUtil.isBlank(dataPermData)) { - throw new NoDataPermException("No Related DataPerm found."); - } - Map dataPermMap = new HashMap<>(8); - for (Map.Entry entry : JSON.parseObject(dataPermData).entrySet()) { - dataPermMap.put(Integer.valueOf(entry.getKey()), entry.getValue().toString()); - } - if (MapUtil.isEmpty(dataPermMap)) { - throw new NoDataPermException("No Related DataPerm found."); - } - if (dataPermMap.containsKey(DataPermRuleType.TYPE_ALL)) { - return null; - } - return doProcessDataPerm(tableName, deptFilterColumnName, userFilterColumnName, dataPermMap); - } - - private String doProcessDataPerm( - String tableName, String deptFilterColumnName, String userFilterColumnName, Map dataPermMap) { - List criteriaList = new LinkedList<>(); - for (Map.Entry entry : dataPermMap.entrySet()) { - String filterClause = processDataPermRule( - tableName, deptFilterColumnName, userFilterColumnName, entry.getKey(), entry.getValue()); - if (StrUtil.isNotBlank(filterClause)) { - criteriaList.add(filterClause); - } - } - if (CollUtil.isEmpty(criteriaList)) { - return null; - } - StringBuilder filterBuilder = new StringBuilder(128); - filterBuilder.append("("); - filterBuilder.append(CollUtil.join(criteriaList, " OR ")); - filterBuilder.append(")"); - return filterBuilder.toString(); - } - - private String processDataPermRule( - String tableName, String deptFilterColumnName, String userFilterColumnName, Integer ruleType, String deptIds) { - TokenData tokenData = TokenData.takeFromRequest(); - StringBuilder filter = new StringBuilder(128); - if (ruleType == DataPermRuleType.TYPE_USER_ONLY) { - if (StrUtil.isNotBlank(userFilterColumnName)) { - if (dataFilterProperties.getAddTableNamePrefix()) { - filter.append(tableName).append("."); - } - filter.append(userFilterColumnName) - .append(" = ") - .append(tokenData.getUserId()); - } - } else { - if (StrUtil.isNotBlank(deptFilterColumnName)) { - if (ruleType == DataPermRuleType.TYPE_DEPT_ONLY) { - if (dataFilterProperties.getAddTableNamePrefix()) { - filter.append(tableName).append("."); - } - filter.append(deptFilterColumnName) - .append(" = ") - .append(tokenData.getDeptId()); - } else if (ruleType == DataPermRuleType.TYPE_DEPT_AND_CHILD_DEPT) { - filter.append(" EXISTS ") - .append("(SELECT 1 FROM ") - .append(dataFilterProperties.getDeptRelationTablePrefix()) - .append("sys_dept_relation WHERE ") - .append(dataFilterProperties.getDeptRelationTablePrefix()) - .append("sys_dept_relation.parent_dept_id = ") - .append(tokenData.getDeptId()) - .append(" AND "); - if (dataFilterProperties.getAddTableNamePrefix()) { - filter.append(tableName).append("."); - } - filter.append(deptFilterColumnName) - .append(" = ") - .append(dataFilterProperties.getDeptRelationTablePrefix()) - .append("sys_dept_relation.dept_id) "); - } else if (ruleType == DataPermRuleType.TYPE_MULTI_DEPT_AND_CHILD_DEPT) { - filter.append(" EXISTS ") - .append("(SELECT 1 FROM ") - .append(dataFilterProperties.getDeptRelationTablePrefix()) - .append("sys_dept_relation WHERE ") - .append(dataFilterProperties.getDeptRelationTablePrefix()) - .append("sys_dept_relation.parent_dept_id IN (") - .append(deptIds) - .append(") AND "); - if (dataFilterProperties.getAddTableNamePrefix()) { - filter.append(tableName).append("."); - } - filter.append(deptFilterColumnName) - .append(" = ") - .append(dataFilterProperties.getDeptRelationTablePrefix()) - .append("sys_dept_relation.dept_id) "); - } else if (ruleType == DataPermRuleType.TYPE_CUSTOM_DEPT_LIST) { - if (dataFilterProperties.getAddTableNamePrefix()) { - filter.append(tableName).append("."); - } - filter.append(deptFilterColumnName) - .append(" IN (") - .append(deptIds) - .append(") "); - } - } - } - return filter.toString(); - } - - @Data - private static class VirtualColumnWhereClause { - private Long tableId; - private Long columnId; - private Integer operatorType; - private Object value; - } -} diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/service/impl/OnlinePageServiceImpl.java b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/service/impl/OnlinePageServiceImpl.java deleted file mode 100644 index 857abc0f..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/service/impl/OnlinePageServiceImpl.java +++ /dev/null @@ -1,233 +0,0 @@ -package com.orangeforms.common.online.service.impl; - -import cn.hutool.core.collection.CollUtil; -import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; -import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; -import com.orangeforms.common.core.base.dao.BaseDaoMapper; -import com.orangeforms.common.core.base.service.BaseService; -import com.orangeforms.common.core.object.MyRelationParam; -import com.orangeforms.common.core.util.MyModelUtil; -import com.orangeforms.common.online.service.OnlineDatasourceService; -import com.orangeforms.common.sequence.wrapper.IdGeneratorWrapper; -import com.orangeforms.common.online.dao.OnlinePageDatasourceMapper; -import com.orangeforms.common.online.dao.OnlinePageMapper; -import com.orangeforms.common.online.model.OnlinePage; -import com.orangeforms.common.online.model.OnlinePageDatasource; -import com.orangeforms.common.online.model.constant.PageStatus; -import com.orangeforms.common.online.service.OnlineFormService; -import com.orangeforms.common.online.service.OnlinePageService; -import com.github.pagehelper.Page; -import lombok.extern.slf4j.Slf4j; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; -import org.springframework.transaction.annotation.Transactional; - -import java.util.Date; -import java.util.List; - -/** - * 在线表单页面数据操作服务类。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Slf4j -@Service("onlinePageService") -public class OnlinePageServiceImpl extends BaseService implements OnlinePageService { - - @Autowired - private OnlinePageMapper onlinePageMapper; - @Autowired - private OnlinePageDatasourceMapper onlinePageDatasourceMapper; - @Autowired - private OnlineFormService onlineFormService; - @Autowired - private OnlineDatasourceService onlineDatasourceService; - @Autowired - private IdGeneratorWrapper idGenerator; - - /** - * 返回当前Service的主表Mapper对象。 - * - * @return 主表Mapper对象。 - */ - @Override - protected BaseDaoMapper mapper() { - return onlinePageMapper; - } - - /** - * 保存新增对象。 - * - * @param onlinePage 新增对象。 - * @return 返回新增对象。 - */ - @Transactional(rollbackFor = Exception.class) - @Override - public OnlinePage saveNew(OnlinePage onlinePage) { - onlinePage.setPageId(idGenerator.nextLongId()); - Date now = new Date(); - onlinePage.setUpdateTime(now); - onlinePage.setCreateTime(now); - onlinePage.setPublished(false); - MyModelUtil.setDefaultValue(onlinePage, "status", PageStatus.BASIC); - onlinePageMapper.insert(onlinePage); - return onlinePage; - } - - /** - * 更新数据对象。 - * - * @param onlinePage 更新的对象。 - * @param originalOnlinePage 原有数据对象。 - * @return 成功返回true,否则false。 - */ - @Transactional(rollbackFor = Exception.class) - @Override - public boolean update(OnlinePage onlinePage, OnlinePage originalOnlinePage) { - onlinePage.setUpdateTime(new Date()); - onlinePage.setCreateTime(originalOnlinePage.getCreateTime()); - onlinePage.setPublished(originalOnlinePage.getPublished()); - // 这里重点提示,在执行主表数据更新之前,如果有哪些字段不支持修改操作,请用原有数据对象字段替换当前数据字段。 - UpdateWrapper uw = this.createUpdateQueryForNullValue(onlinePage, onlinePage.getPageId()); - return onlinePageMapper.update(onlinePage, uw) == 1; - } - - /** - * 更新页面对象的发布状态。 - * - * @param pageId 页面对象Id。 - * @param published 新的状态。 - */ - @Transactional(rollbackFor = Exception.class) - @Override - public void updatePublished(Long pageId, Boolean published) { - OnlinePage onlinePage = new OnlinePage(); - onlinePage.setPageId(pageId); - onlinePage.setPublished(published); - onlinePageMapper.updateById(onlinePage); - } - - /** - * 删除指定数据,及其包含的表单和数据源等。 - * - * @param pageId 主键Id。 - * @return 成功返回true,否则false。 - */ - @Transactional(rollbackFor = Exception.class) - @Override - public boolean remove(Long pageId) { - if (onlinePageMapper.deleteById(pageId) == 0) { - return false; - } - // 开始删除关联表单。 - onlineFormService.removeByPageId(pageId); - // 先获取出关联的表单和数据源。 - OnlinePageDatasource pageDatasourceFilter = new OnlinePageDatasource(); - pageDatasourceFilter.setPageId(pageId); - List pageDatasourceList = - onlinePageDatasourceMapper.selectList(new QueryWrapper<>(pageDatasourceFilter)); - if (CollUtil.isNotEmpty(pageDatasourceList)) { - for (OnlinePageDatasource pageDatasource : pageDatasourceList) { - onlineDatasourceService.remove(pageDatasource.getDatasourceId()); - } - } - return true; - } - - /** - * 获取单表查询结果。由于没有关联数据查询,因此在仅仅获取单表数据的场景下,效率更高。 - * 如果需要同时获取关联数据,请移步(getOnlinePageListWithRelation)方法。 - * - * @param filter 过滤对象。 - * @param orderBy 排序参数。 - * @return 查询结果集。 - */ - @Override - public List getOnlinePageList(OnlinePage filter, String orderBy) { - return onlinePageMapper.getOnlinePageList(filter, orderBy); - } - - /** - * 获取主表的查询结果,以及主表关联的字典数据和一对一从表数据,以及一对一从表的字典数据。 - * 该查询会涉及到一对一从表的关联过滤,或一对多从表的嵌套关联过滤,因此性能不如单表过滤。 - * 如果仅仅需要获取主表数据,请移步(getOnlinePageList),以便获取更好的查询性能。 - * - * @param filter 主表过滤对象。 - * @param orderBy 排序参数。 - * @return 查询结果集。 - */ - @Override - public List getOnlinePageListWithRelation(OnlinePage filter, String orderBy) { - List resultList = onlinePageMapper.getOnlinePageList(filter, orderBy); - // 在缺省生成的代码中,如果查询结果resultList不是Page对象,说明没有分页,那么就很可能是数据导出接口调用了当前方法。 - // 为了避免一次性的大量数据关联,规避因此而造成的系统运行性能冲击,这里手动进行了分批次读取,开发者可按需修改该值。 - int batchSize = resultList instanceof Page ? 0 : 1000; - this.buildRelationForDataList(resultList, MyRelationParam.normal(), batchSize); - return resultList; - } - - /** - * 批量添加多对多关联关系。 - * - * @param onlinePageDatasourceList 多对多关联表对象集合。 - * @param pageId 主表Id。 - */ - @Transactional(rollbackFor = Exception.class) - @Override - public void addOnlinePageDatasourceList(List onlinePageDatasourceList, Long pageId) { - for (OnlinePageDatasource onlinePageDatasource : onlinePageDatasourceList) { - onlinePageDatasource.setPageId(pageId); - onlinePageDatasourceMapper.insert(onlinePageDatasource); - } - } - - /** - * 获取中间表数据。 - * - * @param pageId 主表Id。 - * @param datasourceId 从表Id。 - * @return 中间表对象。 - */ - @Override - public OnlinePageDatasource getOnlinePageDatasource(Long pageId, Long datasourceId) { - OnlinePageDatasource filter = new OnlinePageDatasource(); - filter.setPageId(pageId); - filter.setDatasourceId(datasourceId); - return onlinePageDatasourceMapper.selectOne(new QueryWrapper<>(filter)); - } - - @Override - public List getOnlinePageDatasourceListByPageId(Long pageId) { - OnlinePageDatasource filter = new OnlinePageDatasource(); - filter.setPageId(pageId); - return onlinePageDatasourceMapper.selectList(new QueryWrapper<>(filter)); - } - - /** - * 根据数据源Id,返回使用该数据源的OnlinePage对象。 - * - * @param datasourceId 数据源Id。 - * @return 使用该数据源的页面列表。 - */ - @Override - public List getOnlinePageListByDatasourceId(Long datasourceId) { - return onlinePageMapper.getOnlinePageListByDatasourceId(datasourceId); - } - - /** - * 移除单条多对多关系。 - * - * @param pageId 主表Id。 - * @param datasourceId 从表Id。 - * @return 成功返回true,否则false。 - */ - @Transactional(rollbackFor = Exception.class) - @Override - public boolean removeOnlinePageDatasource(Long pageId, Long datasourceId) { - OnlinePageDatasource filter = new OnlinePageDatasource(); - filter.setPageId(pageId); - filter.setDatasourceId(datasourceId); - return onlinePageDatasourceMapper.delete(new QueryWrapper<>(filter)) > 0; - } -} diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/service/impl/OnlineRuleServiceImpl.java b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/service/impl/OnlineRuleServiceImpl.java deleted file mode 100644 index a4e52355..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/service/impl/OnlineRuleServiceImpl.java +++ /dev/null @@ -1,181 +0,0 @@ -package com.orangeforms.common.online.service.impl; - -import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; -import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; -import com.orangeforms.common.core.base.dao.BaseDaoMapper; -import com.orangeforms.common.core.base.service.BaseService; -import com.orangeforms.common.core.constant.GlobalDeletedFlag; -import com.orangeforms.common.core.object.MyRelationParam; -import com.orangeforms.common.core.util.MyModelUtil; -import com.orangeforms.common.sequence.wrapper.IdGeneratorWrapper; -import com.orangeforms.common.online.dao.OnlineColumnRuleMapper; -import com.orangeforms.common.online.dao.OnlineRuleMapper; -import com.orangeforms.common.online.model.OnlineColumnRule; -import com.orangeforms.common.online.model.OnlineRule; -import com.orangeforms.common.online.service.OnlineRuleService; -import com.github.pagehelper.Page; -import lombok.extern.slf4j.Slf4j; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; -import org.springframework.transaction.annotation.Transactional; - -import java.util.Date; -import java.util.List; -import java.util.Set; - -/** - * 验证规则数据操作服务类。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Slf4j -@Service("onlineRuleService") -public class OnlineRuleServiceImpl extends BaseService implements OnlineRuleService { - - @Autowired - private OnlineRuleMapper onlineRuleMapper; - @Autowired - private OnlineColumnRuleMapper onlineColumnRuleMapper; - @Autowired - private IdGeneratorWrapper idGenerator; - - /** - * 返回当前Service的主表Mapper对象。 - * - * @return 主表Mapper对象。 - */ - @Override - protected BaseDaoMapper mapper() { - return onlineRuleMapper; - } - - /** - * 保存新增对象。 - * - * @param onlineRule 新增对象。 - * @return 返回新增对象。 - */ - @Transactional(rollbackFor = Exception.class) - @Override - public OnlineRule saveNew(OnlineRule onlineRule) { - onlineRule.setRuleId(idGenerator.nextLongId()); - Date now = new Date(); - onlineRule.setUpdateTime(now); - onlineRule.setCreateTime(now); - onlineRule.setDeletedFlag(GlobalDeletedFlag.NORMAL); - MyModelUtil.setDefaultValue(onlineRule, "pattern", ""); - onlineRuleMapper.insert(onlineRule); - return onlineRule; - } - - /** - * 更新数据对象。 - * - * @param onlineRule 更新的对象。 - * @param originalOnlineRule 原有数据对象。 - * @return 成功返回true,否则false。 - */ - @Transactional(rollbackFor = Exception.class) - @Override - public boolean update(OnlineRule onlineRule, OnlineRule originalOnlineRule) { - onlineRule.setUpdateTime(new Date()); - onlineRule.setCreateTime(originalOnlineRule.getCreateTime()); - UpdateWrapper uw = this.createUpdateQueryForNullValue(onlineRule, onlineRule.getRuleId()); - return onlineRuleMapper.update(onlineRule, uw) == 1; - } - - /** - * 删除指定数据。 - * - * @param ruleId 主键Id。 - * @return 成功返回true,否则false。 - */ - @Transactional(rollbackFor = Exception.class) - @Override - public boolean remove(Long ruleId) { - if (onlineRuleMapper.deleteById(ruleId) == 0) { - return false; - } - // 开始删除多对多父表的关联 - OnlineColumnRule onlineColumnRule = new OnlineColumnRule(); - onlineColumnRule.setRuleId(ruleId); - onlineColumnRuleMapper.delete(new QueryWrapper<>(onlineColumnRule)); - return true; - } - - /** - * 获取单表查询结果。由于没有关联数据查询,因此在仅仅获取单表数据的场景下,效率更高。 - * 如果需要同时获取关联数据,请移步(getOnlineRuleListWithRelation)方法。 - * - * @param filter 过滤对象。 - * @param orderBy 排序参数。 - * @return 查询结果集。 - */ - @Override - public List getOnlineRuleList(OnlineRule filter, String orderBy) { - return onlineRuleMapper.getOnlineRuleList(filter, orderBy); - } - - /** - * 获取主表的查询结果,以及主表关联的字典数据和一对一从表数据,以及一对一从表的字典数据。 - * 该查询会涉及到一对一从表的关联过滤,或一对多从表的嵌套关联过滤,因此性能不如单表过滤。 - * 如果仅仅需要获取主表数据,请移步(getOnlineRuleList),以便获取更好的查询性能。 - * - * @param filter 主表过滤对象。 - * @param orderBy 排序参数。 - * @return 查询结果集。 - */ - @Override - public List getOnlineRuleListWithRelation(OnlineRule filter, String orderBy) { - List resultList = onlineRuleMapper.getOnlineRuleList(filter, orderBy); - // 在缺省生成的代码中,如果查询结果resultList不是Page对象,说明没有分页,那么就很可能是数据导出接口调用了当前方法。 - // 为了避免一次性的大量数据关联,规避因此而造成的系统运行性能冲击,这里手动进行了分批次读取,开发者可按需修改该值。 - int batchSize = resultList instanceof Page ? 0 : 1000; - this.buildRelationForDataList(resultList, MyRelationParam.normal(), batchSize); - return resultList; - } - - /** - * 在多对多关系中,当前Service的数据表为从表,返回不与指定主表主键Id存在对多对关系的列表。 - * - * @param columnId 主表主键Id。 - * @param filter 从表的过滤对象。 - * @param orderBy 排序参数。 - * @return 查询结果集。 - */ - @Override - public List getNotInOnlineRuleListByColumnId(Long columnId, OnlineRule filter, String orderBy) { - List resultList = - onlineRuleMapper.getNotInOnlineRuleListByColumnId(columnId, filter, orderBy); - this.buildRelationForDataList(resultList, MyRelationParam.dictOnly()); - return resultList; - } - - /** - * 在多对多关系中,当前Service的数据表为从表,返回与指定主表主键Id存在对多对关系的列表。 - * - * @param columnId 主表主键Id。 - * @param filter 从表的过滤对象。 - * @param orderBy 排序参数。 - * @return 查询结果集。 - */ - @Override - public List getOnlineRuleListByColumnId(Long columnId, OnlineRule filter, String orderBy) { - List resultList = - onlineRuleMapper.getOnlineRuleListByColumnId(columnId, filter, orderBy); - this.buildRelationForDataList(resultList, MyRelationParam.dictOnly()); - return resultList; - } - - /** - * 返回指定字段Id列表关联的字段规则对象列表。 - * - * @param columnIdSet 指定的字段Id列表。 - * @return 关联的字段规则对象列表。 - */ - @Override - public List getOnlineColumnRuleListByColumnIds(Set columnIdSet) { - return onlineColumnRuleMapper.getOnlineColumnRuleListByColumnIds(columnIdSet); - } -} diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/service/impl/OnlineTableServiceImpl.java b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/service/impl/OnlineTableServiceImpl.java deleted file mode 100644 index 9b4c34ea..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/service/impl/OnlineTableServiceImpl.java +++ /dev/null @@ -1,236 +0,0 @@ -package com.orangeforms.common.online.service.impl; - -import cn.hutool.core.util.ObjectUtil; -import com.alibaba.fastjson.JSON; -import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; -import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; -import com.orangeforms.common.core.base.dao.BaseDaoMapper; -import com.orangeforms.common.core.base.service.BaseService; -import com.orangeforms.common.core.object.MyRelationParam; -import com.orangeforms.common.core.util.RedisKeyUtil; -import com.orangeforms.common.sequence.wrapper.IdGeneratorWrapper; -import com.orangeforms.common.online.dao.OnlineTableMapper; -import com.orangeforms.common.online.model.OnlineColumn; -import com.orangeforms.common.online.model.OnlineTable; -import com.orangeforms.common.online.model.constant.FieldKind; -import com.orangeforms.common.online.object.SqlTable; -import com.orangeforms.common.online.service.OnlineColumnService; -import com.orangeforms.common.online.service.OnlineTableService; -import com.github.pagehelper.Page; -import com.google.common.base.CaseFormat; -import lombok.extern.slf4j.Slf4j; -import org.redisson.api.RBucket; -import org.redisson.api.RedissonClient; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; -import org.springframework.transaction.annotation.Transactional; - -import java.util.Date; -import java.util.List; -import java.util.Map; -import java.util.Set; -import java.util.concurrent.TimeUnit; -import java.util.stream.Collectors; - -/** - * 数据表数据操作服务类。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Slf4j -@Service("onlineTableService") -public class OnlineTableServiceImpl extends BaseService implements OnlineTableService { - - @Autowired - private OnlineTableMapper onlineTableMapper; - @Autowired - private OnlineColumnService onlineColumnService; - @Autowired - private IdGeneratorWrapper idGenerator; - @Autowired - private RedissonClient redissonClient; - - /** - * 在线对象表的缺省缓存时间(小时)。 - */ - private static final int DEFAULT_CACHED_TABLE_HOURS = 168; - - /** - * 返回当前Service的主表Mapper对象。 - * - * @return 主表Mapper对象。 - */ - @Override - protected BaseDaoMapper mapper() { - return onlineTableMapper; - } - - /** - * 基于数据库表保存新增对象。 - * - * @param sqlTable 数据库表对象。 - * @return 返回新增对象。 - */ - @Transactional(rollbackFor = Exception.class) - @Override - public OnlineTable saveNewFromSqlTable(SqlTable sqlTable) { - OnlineTable onlineTable = new OnlineTable(); - onlineTable.setDblinkId(sqlTable.getDblinkId()); - onlineTable.setTableId(idGenerator.nextLongId()); - onlineTable.setTableName(sqlTable.getTableName()); - String modelName = CaseFormat.LOWER_UNDERSCORE.to(CaseFormat.UPPER_CAMEL, sqlTable.getTableName()); - onlineTable.setModelName(modelName); - Date now = new Date(); - onlineTable.setUpdateTime(now); - onlineTable.setCreateTime(now); - onlineTableMapper.insert(onlineTable); - List columnList = onlineColumnService.saveNewList(sqlTable.getColumnList(), onlineTable.getTableId()); - onlineTable.setColumnList(columnList); - return onlineTable; - } - - /** - * 更新数据对象。 - * - * @param onlineTable 更新的对象。 - * @param originalOnlineTable 原有数据对象。 - * @return 成功返回true,否则false。 - */ - @Transactional(rollbackFor = Exception.class) - @Override - public boolean update(OnlineTable onlineTable, OnlineTable originalOnlineTable) { - this.evictTableCache(onlineTable.getTableId()); - onlineTable.setUpdateTime(new Date()); - onlineTable.setCreateTime(originalOnlineTable.getCreateTime()); - UpdateWrapper uw = this.createUpdateQueryForNullValue(onlineTable, onlineTable.getTableId()); - return onlineTableMapper.update(onlineTable, uw) == 1; - } - - /** - * 删除指定表及其关联的字段数据。 - * - * @param tableId 主键Id。 - * @return 成功返回true,否则false。 - */ - @Transactional(rollbackFor = Exception.class) - @Override - public boolean remove(Long tableId) { - if (onlineTableMapper.deleteById(tableId) == 0) { - return false; - } - this.evictTableCache(tableId); - onlineColumnService.removeByTableId(tableId); - return true; - } - - /** - * 删除指定数据表Id集合中的表,及其关联字段。 - * - * @param tableIdSet 待删除的数据表Id集合。 - */ - @Transactional(rollbackFor = Exception.class) - @Override - public void removeByTableIdSet(Set tableIdSet) { - tableIdSet.forEach(this::evictTableCache); - onlineTableMapper.delete( - new QueryWrapper().lambda().in(OnlineTable::getTableId, tableIdSet)); - onlineColumnService.removeByTableIdSet(tableIdSet); - } - - /** - * 获取单表查询结果。由于没有关联数据查询,因此在仅仅获取单表数据的场景下,效率更高。 - * 如果需要同时获取关联数据,请移步(getOnlineTableListWithRelation)方法。 - * - * @param filter 过滤对象。 - * @param orderBy 排序参数。 - * @return 查询结果集。 - */ - @Override - public List getOnlineTableList(OnlineTable filter, String orderBy) { - return onlineTableMapper.getOnlineTableList(filter, orderBy); - } - - /** - * 获取指定在线表Id集合的对象列表。 - * - * @param tableIdSet 主键Id集合。 - * @return 指定的数据表对象列表。 - */ - @Override - public List getOnlineTableList(Set tableIdSet) { - return onlineTableMapper.selectBatchIds(tableIdSet); - } - - /** - * 获取主表的查询结果,以及主表关联的字典数据和一对一从表数据,以及一对一从表的字典数据。 - * 该查询会涉及到一对一从表的关联过滤,或一对多从表的嵌套关联过滤,因此性能不如单表过滤。 - * 如果仅仅需要获取主表数据,请移步(getOnlineTableList),以便获取更好的查询性能。 - * - * @param filter 主表过滤对象。 - * @param orderBy 排序参数。 - * @return 查询结果集。 - */ - @Override - public List getOnlineTableListWithRelation(OnlineTable filter, String orderBy) { - List resultList = onlineTableMapper.getOnlineTableList(filter, orderBy); - // 在缺省生成的代码中,如果查询结果resultList不是Page对象,说明没有分页,那么就很可能是数据导出接口调用了当前方法。 - // 为了避免一次性的大量数据关联,规避因此而造成的系统运行性能冲击,这里手动进行了分批次读取,开发者可按需修改该值。 - int batchSize = resultList instanceof Page ? 0 : 1000; - this.buildRelationForDataList(resultList, MyRelationParam.normal(), batchSize); - return resultList; - } - - /** - * 根据数据源Id,获取该数据源及其关联所引用的数据表列表。 - * - * @param datasourceId 指定的数据源Id。 - * @return 该数据源及其关联所引用的数据表列表。 - */ - @Override - public List getOnlineTableListByDatasourceId(Long datasourceId) { - return onlineTableMapper.getOnlineTableListByDatasourceId(datasourceId); - } - - /** - * 从缓存中获取指定的表数据及其关联字段列表。优先从缓存中读取,如果不存在则从数据库中读取,并同步到缓存。 - * 该接口方法仅仅用户在线表单的动态数据操作接口,而非在线表单的配置接口。 - * - * @param tableId 表主键Id。 - * @return 查询后的在线表对象。 - */ - @Override - public OnlineTable getOnlineTableFromCache(Long tableId) { - String redisKey = RedisKeyUtil.makeOnlineTableKey(tableId); - RBucket tableBucket = redissonClient.getBucket(redisKey); - if (tableBucket.isExists()) { - String tableInfo = tableBucket.get(); - return JSON.parseObject(tableInfo, OnlineTable.class); - } - OnlineTable table = this.getByIdWithRelation(tableId, MyRelationParam.full()); - if (table == null) { - return null; - } - for (OnlineColumn column : table.getColumnList()) { - if (column.getPrimaryKey()) { - table.setPrimaryKeyColumn(column); - continue; - } - if (ObjectUtil.equal(column.getFieldKind(), FieldKind.LOGIC_DELETE)) { - table.setLogicDeleteColumn(column); - } - } - Map columnMap = - table.getColumnList().stream().collect(Collectors.toMap(OnlineColumn::getColumnId, c -> c)); - table.setColumnMap(columnMap); - table.setColumnList(null); - tableBucket.set(JSON.toJSONString(table)); - tableBucket.expire(DEFAULT_CACHED_TABLE_HOURS, TimeUnit.HOURS); - return table; - } - - private void evictTableCache(Long tableId) { - String tableIdKey = RedisKeyUtil.makeOnlineTableKey(tableId); - redissonClient.getBucket(tableIdKey).delete(); - } -} diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/service/impl/OnlineVirtualColumnServiceImpl.java b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/service/impl/OnlineVirtualColumnServiceImpl.java deleted file mode 100644 index 6970b0e6..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/service/impl/OnlineVirtualColumnServiceImpl.java +++ /dev/null @@ -1,175 +0,0 @@ -package com.orangeforms.common.online.service.impl; - -import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; -import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; -import com.orangeforms.common.core.base.dao.BaseDaoMapper; -import com.orangeforms.common.core.object.CallResult; -import com.orangeforms.common.core.object.MyRelationParam; -import com.orangeforms.common.core.base.service.BaseService; -import com.orangeforms.common.online.dao.OnlineVirtualColumnMapper; -import com.orangeforms.common.online.model.OnlineDatasource; -import com.orangeforms.common.online.model.OnlineVirtualColumn; -import com.orangeforms.common.online.model.constant.VirtualType; -import com.orangeforms.common.online.service.OnlineColumnService; -import com.orangeforms.common.online.service.OnlineDatasourceRelationService; -import com.orangeforms.common.online.service.OnlineDatasourceService; -import com.orangeforms.common.online.service.OnlineVirtualColumnService; -import com.orangeforms.common.sequence.wrapper.IdGeneratorWrapper; -import com.github.pagehelper.Page; -import lombok.extern.slf4j.Slf4j; -import org.springframework.transaction.annotation.Transactional; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; - -import java.util.*; - -/** - * 虚拟字段数据操作服务类。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Slf4j -@Service("onlineVirtualColumnService") -public class OnlineVirtualColumnServiceImpl - extends BaseService implements OnlineVirtualColumnService { - - @Autowired - private OnlineVirtualColumnMapper onlineVirtualColumnMapper; - @Autowired - private OnlineDatasourceService onlineDatasourceService; - @Autowired - private OnlineDatasourceRelationService onlineDatasourceRelationService; - @Autowired - private OnlineColumnService onlineColumnService; - @Autowired - private IdGeneratorWrapper idGenerator; - - /** - * 返回当前Service的主表Mapper对象。 - * - * @return 主表Mapper对象。 - */ - @Override - protected BaseDaoMapper mapper() { - return onlineVirtualColumnMapper; - } - - /** - * 保存新增对象。 - * - * @param virtualColumn 新增对象。 - * @return 返回新增对象。 - */ - @Transactional(rollbackFor = Exception.class) - @Override - public OnlineVirtualColumn saveNew(OnlineVirtualColumn virtualColumn) { - virtualColumn.setVirtualColumnId(idGenerator.nextLongId()); - if (virtualColumn.getVirtualType().equals(VirtualType.AGGREGATION)) { - OnlineDatasource datasource = onlineDatasourceService.getById(virtualColumn.getDatasourceId()); - virtualColumn.setTableId(datasource.getMasterTableId()); - } - onlineVirtualColumnMapper.insert(virtualColumn); - return virtualColumn; - } - - /** - * 更新数据对象。 - * - * @param virtualColumn 更新的对象。 - * @param originalVirtualColumn 原有数据对象。 - * @return 成功返回true,否则false。 - */ - @Transactional(rollbackFor = Exception.class) - @Override - public boolean update(OnlineVirtualColumn virtualColumn, OnlineVirtualColumn originalVirtualColumn) { - if (virtualColumn.getVirtualType().equals(VirtualType.AGGREGATION)) { - if (!virtualColumn.getDatasourceId().equals(originalVirtualColumn.getDatasourceId())) { - OnlineDatasource datasource = onlineDatasourceService.getById(virtualColumn.getDatasourceId()); - virtualColumn.setTableId(datasource.getMasterTableId()); - } - } - UpdateWrapper uw = - this.createUpdateQueryForNullValue(virtualColumn, virtualColumn.getVirtualColumnId()); - return onlineVirtualColumnMapper.update(virtualColumn, uw) == 1; - } - - /** - * 删除指定数据。 - * - * @param virtualColumnId 主键Id。 - * @return 成功返回true,否则false。 - */ - @Transactional(rollbackFor = Exception.class) - @Override - public boolean remove(Long virtualColumnId) { - return onlineVirtualColumnMapper.deleteById(virtualColumnId) == 1; - } - - /** - * 获取单表查询结果。由于没有关联数据查询,因此在仅仅获取单表数据的场景下,效率更高。 - * 如果需要同时获取关联数据,请移步(getOnlineVirtualColumnListWithRelation)方法。 - * - * @param filter 过滤对象。 - * @param orderBy 排序参数。 - * @return 查询结果集。 - */ - @Override - public List getOnlineVirtualColumnList(OnlineVirtualColumn filter, String orderBy) { - return onlineVirtualColumnMapper.getOnlineVirtualColumnList(filter, orderBy); - } - - /** - * 获取主表的查询结果,以及主表关联的字典数据和一对一从表数据,以及一对一从表的字典数据。 - * 该查询会涉及到一对一从表的关联过滤,或一对多从表的嵌套关联过滤,因此性能不如单表过滤。 - * 如果仅仅需要获取主表数据,请移步(getOnlineVirtualColumnList),以便获取更好的查询性能。 - * - * @param filter 主表过滤对象。 - * @param orderBy 排序参数。 - * @return 查询结果集。 - */ - @Override - public List getOnlineVirtualColumnListWithRelation(OnlineVirtualColumn filter, String orderBy) { - List resultList = onlineVirtualColumnMapper.getOnlineVirtualColumnList(filter, orderBy); - int batchSize = resultList instanceof Page ? 0 : 1000; - this.buildRelationForDataList(resultList, MyRelationParam.normal(), batchSize); - return resultList; - } - - /** - * 根据数据表的集合,查询关联的虚拟字段数据列表。 - * @param tableIdSet 在线数据表Id集合。 - * @return 关联的虚拟字段数据列表。 - */ - @Override - public List getOnlineVirtualColumnListByTableIds(Set tableIdSet) { - LambdaQueryWrapper queryWrapper = new LambdaQueryWrapper<>(); - queryWrapper.in(OnlineVirtualColumn::getTableId, tableIdSet); - return onlineVirtualColumnMapper.selectList(queryWrapper); - } - - /** - * 根据最新对象和原有对象的数据对比,判断关联的字典数据和多对一主表数据是否都是合法数据。 - * - * @param virtualColumn 最新数据对象。 - * @param originalVirtualColumn 原有数据对象。 - * @return 数据全部正确返回true,否则false。 - */ - @Override - public CallResult verifyRelatedData(OnlineVirtualColumn virtualColumn, OnlineVirtualColumn originalVirtualColumn) { - String errorMessageFormat = "数据验证失败,关联的%s并不存在,请刷新后重试!"; - if (this.needToVerify(virtualColumn, originalVirtualColumn, OnlineVirtualColumn::getDatasourceId) - && !onlineDatasourceService.existId(virtualColumn.getDatasourceId())) { - return CallResult.error(String.format(errorMessageFormat, "数据源Id")); - } - if (this.needToVerify(virtualColumn, originalVirtualColumn, OnlineVirtualColumn::getRelationId) - && !onlineDatasourceRelationService.existId(virtualColumn.getRelationId())) { - return CallResult.error(String.format(errorMessageFormat, "数据源关联Id")); - } - if (this.needToVerify(virtualColumn, originalVirtualColumn, OnlineVirtualColumn::getAggregationColumnId) - && !onlineColumnService.existId(virtualColumn.getAggregationColumnId())) { - return CallResult.error(String.format(errorMessageFormat, "聚合字段Id")); - } - return CallResult.ok(); - } -} diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/util/OnlineConstant.java b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/util/OnlineConstant.java deleted file mode 100644 index edea6fe5..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/util/OnlineConstant.java +++ /dev/null @@ -1,15 +0,0 @@ -package com.orangeforms.common.online.util; - -/** - * 在线表单使用的常量数据。。 - * - * @author Jerry - * @date 2021-06-06 - */ -public class OnlineConstant { - - /** - * 数据源关联变量名和从表字段名之间的连接字符串。 - */ - public static final String RELATION_TABLE_COLUMN_SEPARATOR = "__"; -} diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/util/OnlineDataSourceResolver.java b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/util/OnlineDataSourceResolver.java deleted file mode 100644 index a942d246..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/util/OnlineDataSourceResolver.java +++ /dev/null @@ -1,50 +0,0 @@ -package com.orangeforms.common.online.util; - -import com.orangeforms.common.core.util.DataSourceResolver; -import com.orangeforms.common.online.model.OnlineDatasourceRelation; -import com.orangeforms.common.online.model.OnlineDblink; -import com.orangeforms.common.online.model.OnlineDict; -import com.orangeforms.common.online.model.OnlineTable; -import com.orangeforms.common.online.service.OnlineDblinkService; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Component; - -import java.io.Serializable; - -/** - * 目前仅仅应用于在线表单服务对象的多数据源切换的动态解析。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Component -public class OnlineDataSourceResolver implements DataSourceResolver { - - @Autowired - private OnlineDblinkService onlineDblinkService; - - /** - * 动态解析方法。 - * 先判断第一个参数的类型,在根据具体的类型去获取dblinkId,并根据该值进行多数据源的切换。 - * - * @param arg 可选的入参。MyDataSourceResolver注解中的arg参数。 - * @param methodArgs 被织入方法的所有参数。 - * @return 返回用于多数据源切换的类型值。DataSourceResolveAspect 切面方法会根据该返回值和配置信息,进行多数据源切换。 - */ - @Override - public int resolve(String arg, Object[] methodArgs) { - Serializable id; - if (methodArgs[0] instanceof OnlineTable) { - id = ((OnlineTable) methodArgs[0]).getDblinkId(); - } else if (methodArgs[0] instanceof OnlineDict) { - id = ((OnlineDict) methodArgs[0]).getDblinkId(); - } else if (methodArgs[0] instanceof OnlineDatasourceRelation) { - id = ((OnlineDatasourceRelation) methodArgs[0]).getSlaveTable().getDblinkId(); - } else { - throw new IllegalArgumentException("动态表单操作服务方法,不支持类型 [" - + methodArgs[0].getClass().getSimpleName() + "] 作为第一个参数!"); - } - OnlineDblink dblink = onlineDblinkService.getById(id); - return dblink.getDblinkConfigConstant(); - } -} diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/util/OnlineOperationHelper.java b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/util/OnlineOperationHelper.java deleted file mode 100644 index 0e115527..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/util/OnlineOperationHelper.java +++ /dev/null @@ -1,389 +0,0 @@ -package com.orangeforms.common.online.util; - -import cn.hutool.core.collection.CollUtil; -import cn.hutool.core.util.ObjectUtil; -import com.alibaba.fastjson.JSONArray; -import com.alibaba.fastjson.JSONObject; -import com.orangeforms.common.core.constant.ErrorCodeEnum; -import com.orangeforms.common.core.object.ResponseResult; -import com.orangeforms.common.core.upload.BaseUpDownloader; -import com.orangeforms.common.core.upload.UpDownloaderFactory; -import com.orangeforms.common.core.upload.UploadResponseInfo; -import com.orangeforms.common.core.upload.UploadStoreTypeEnum; -import com.orangeforms.common.online.config.OnlineProperties; -import com.orangeforms.common.online.model.OnlineColumn; -import com.orangeforms.common.online.model.OnlineDatasource; -import com.orangeforms.common.online.model.OnlineDatasourceRelation; -import com.orangeforms.common.online.model.OnlineTable; -import com.orangeforms.common.online.model.constant.FieldKind; -import com.orangeforms.common.online.model.constant.RelationType; -import com.orangeforms.common.online.object.ColumnData; -import com.orangeforms.common.online.service.OnlineDatasourceRelationService; -import com.orangeforms.common.online.service.OnlineDatasourceService; -import com.orangeforms.common.online.service.OnlineOperationService; -import com.orangeforms.common.online.service.OnlineTableService; -import com.orangeforms.common.redis.cache.SessionCacheHelper; -import lombok.extern.slf4j.Slf4j; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Component; -import org.springframework.web.multipart.MultipartFile; - -import javax.servlet.http.HttpServletResponse; -import java.util.*; -import java.util.stream.Collectors; - -/** - * 在线表单操作的通用帮助对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Slf4j -@Component -public class OnlineOperationHelper { - - @Autowired - private OnlineDatasourceService onlineDatasourceService; - @Autowired - private OnlineDatasourceRelationService onlineDatasourceRelationService; - @Autowired - private OnlineTableService onlineTableService; - @Autowired - private OnlineOperationService onlineOperationService; - @Autowired - private OnlineProperties onlineProperties; - @Autowired - private UpDownloaderFactory upDownloaderFactory; - @Autowired - private SessionCacheHelper cacheHelper; - - /** - * 验证并获取数据源数据。 - * - * @param datasourceId 数据源Id。 - * @return 数据源详情数据。 - */ - public ResponseResult verifyAndGetDatasource(Long datasourceId) { - String errorMessage; - OnlineDatasource datasource = onlineDatasourceService.getById(datasourceId); - if (datasource == null) { - return ResponseResult.error(ErrorCodeEnum.ARGUMENT_NULL_EXIST); - } - OnlineTable masterTable = onlineTableService.getOnlineTableFromCache(datasource.getMasterTableId()); - if (masterTable == null) { - errorMessage = "数据验证失败,数据源主表Id不存在!"; - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - datasource.setMasterTable(masterTable); - return ResponseResult.success(datasource); - } - - /** - * 验证并获取数据源的关联数据。 - * - * @param datasourceId 数据源Id。 - * @param relationId 数据源关联Id。 - * @return 数据源的关联详情数据。 - */ - public ResponseResult verifyAndGetRelation(Long datasourceId, Long relationId) { - String errorMessage; - OnlineDatasourceRelation relation = onlineDatasourceRelationService.getById(relationId); - if (relation == null || !relation.getDatasourceId().equals(datasourceId)) { - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST); - } - OnlineTable slaveTable = onlineTableService.getOnlineTableFromCache(relation.getSlaveTableId()); - if (slaveTable == null) { - errorMessage = "数据验证失败,数据源关联 [" + relation.getRelationName() + " ] 引用的从表不存在!"; - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - relation.setSlaveTable(slaveTable); - relation.setSlaveColumn(slaveTable.getColumnMap().get(relation.getSlaveColumnId())); - return ResponseResult.success(relation); - } - - /** - * 验证并获取数据源的一对多关联数据。 - * - * @param datasourceId 数据源Id。 - * @param relationId 数据源一对多关联Id。 - * @return 数据源的一对多关联详情数据。 - */ - public ResponseResult verifyAndGetOneToManyRelation(Long datasourceId, Long relationId) { - String errorMessage; - OnlineDatasourceRelation relation = onlineDatasourceRelationService.getById(relationId); - if (relation == null || !relation.getDatasourceId().equals(datasourceId)) { - return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST); - } - if (!relation.getRelationType().equals(RelationType.ONE_TO_MANY)) { - errorMessage = "数据验证失败,数据源关联 [" + relation.getRelationName() + " ] 不是一对多关联,不能调用该接口!"; - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - OnlineTable slaveTable = onlineTableService.getOnlineTableFromCache(relation.getSlaveTableId()); - if (slaveTable == null) { - errorMessage = "数据验证失败,数据源关联 [" + relation.getRelationName() + " ] 引用的从表不存在!"; - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - relation.setSlaveTable(slaveTable); - relation.setSlaveColumn(slaveTable.getColumnMap().get(relation.getSlaveColumnId())); - return ResponseResult.success(relation); - } - - /** - * 验证并获取数据源的指定类型关联数据。 - * - * @param datasourceId 数据源Id。 - * @param relationType 数据源关联类型。 - * @return 数据源指定关联类型的关联数据详情列表。 - */ - public ResponseResult> verifyAndGetRelationList( - Long datasourceId, Integer relationType) { - String errorMessage; - Set datasourceIdSet = CollUtil.newHashSet(datasourceId); - List relationList = onlineDatasourceRelationService - .getOnlineDatasourceRelationListByDatasourceIds(datasourceIdSet, relationType); - for (OnlineDatasourceRelation relation : relationList) { - OnlineTable slaveTable = onlineTableService.getOnlineTableFromCache(relation.getSlaveTableId()); - if (slaveTable == null) { - errorMessage = "数据验证失败,数据源关联 [" + relation.getRelationName() + "] 的从表Id不存在!"; - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - relation.setSlaveTable(slaveTable); - } - return ResponseResult.success(relationList); - } - - /** - * 构建在线表的数据记录。 - * - * @param table 在线数据表对象。 - * @param tableData 在线数据表数据。 - * @param forUpdate 是否为更新。 - * @param ignoreSetColumnId 忽略设置的字段Id。 - * @return 在线表的数据记录。 - */ - public ResponseResult> buildTableData( - OnlineTable table, JSONObject tableData, boolean forUpdate, Long ignoreSetColumnId) { - List columnDataList = new LinkedList<>(); - String errorMessage; - for (OnlineColumn column : table.getColumnMap().values()) { - // 判断一下是否为需要自动填入的字段,如果是,这里就都暂时给空值了,后续操作会自动填补。 - // 这里还能避免一次基于tableData的查询,能快几纳秒也是好的。 - if (this.isAutoSettingField(column) || ObjectUtil.equal(column.getColumnId(), ignoreSetColumnId)) { - columnDataList.add(new ColumnData(column, null)); - continue; - } - Object value = tableData.get(column.getColumnName()); - // 对于主键数据的处理。 - if (column.getPrimaryKey()) { - // 如果是更新则必须包含主键参数。 - if (forUpdate && value == null) { - errorMessage = "数据验证失败,数据表 [" - + table.getTableName() + "] 主键字段 [" + column.getColumnName() + "] 不能为空值!"; - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - } else { - if (value == null && !column.getNullable()) { - errorMessage = "数据验证失败,数据表 [" - + table.getTableName() + "] 字段 [" + column.getColumnName() + "] 不能为空值!"; - return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); - } - } - columnDataList.add(new ColumnData(column, value)); - } - return ResponseResult.success(columnDataList); - } - - /** - * 构建多个一对多从表的数据列表。 - * - * @param datasourceId 数据源Id。 - * @param slaveData 多个一对多从表数据的JSON对象。 - * @return 构建后的多个一对多从表数据列表。 - */ - public ResponseResult>>> buildSlaveDataList( - Long datasourceId, JSONObject slaveData) { - Map>> relationDataMap = new HashMap<>(slaveData.size()); - for (String key : slaveData.keySet()) { - Long relationId = Long.parseLong(key); - ResponseResult relationResult = this.verifyAndGetRelation(datasourceId, relationId); - if (!relationResult.isSuccess()) { - return ResponseResult.errorFrom(relationResult); - } - OnlineDatasourceRelation relation = relationResult.getData(); - List> relationDataList = new LinkedList<>(); - relationDataMap.put(relation, relationDataList); - OnlineTable slaveTable = relation.getSlaveTable(); - JSONArray slaveObjectArray = slaveData.getJSONArray(key); - for (int i = 0; i < slaveObjectArray.size(); i++) { - JSONObject slaveObject = slaveObjectArray.getJSONObject(i); - ResponseResult> slaveColumnDataListResult = - this.buildTableData(slaveTable, slaveObject, false, relation.getSlaveColumnId()); - if (!slaveColumnDataListResult.isSuccess()) { - return ResponseResult.errorFrom(slaveColumnDataListResult); - } - relationDataList.add(slaveColumnDataListResult.getData()); - } - } - return ResponseResult.success(relationDataMap); - } - - /** - * 将字符型字段值转换为与参数字段类型匹配的字段值。 - * - * @param column 在线表单字段。 - * @param dataId 字符型字段值。 - * @return 转换后与参数字段类型匹配的字段值。 - */ - public Object convertToTypeValue(OnlineColumn column, String dataId) { - if ("Long".equals(column.getObjectFieldType())) { - return Long.valueOf(dataId); - } else if ("Integer".equals(column.getObjectFieldType())) { - return Integer.valueOf(dataId); - } - return dataId; - } - - /** - * 将字符型字段值集合转换为与参数字段类型匹配的字段值集合。 - * - * @param column 在线表单字段。 - * @param dataIdSet 字符型字段值集合。 - * @return 转换后与参数字段类型匹配的字段值集合。 - */ - public Set convertToTypeValue(OnlineColumn column, Set dataIdSet) { - if ("Long".equals(column.getObjectFieldType())) { - return dataIdSet.stream().map(Long::valueOf).collect(Collectors.toSet()); - } else if ("Integer".equals(column.getObjectFieldType())) { - return dataIdSet.stream().map(Integer::valueOf).collect(Collectors.toSet()); - } - return dataIdSet; - } - - /** - * 下载数据。 - * - * @param table 在线表对象。 - * @param dataId 在线表数据主键Id。 - * @param fieldName 数据表字段名。 - * @param filename 下载文件名。 - * @param asImage 是否为图片。 - * @param response HTTP 应对对象。 - */ - public void doDownload( - OnlineTable table, String dataId, String fieldName, String filename, Boolean asImage, HttpServletResponse response) { - // 使用try来捕获异常,是为了保证一旦出现异常可以返回500的错误状态,便于调试。 - // 否则有可能给前端返回的是200的错误码。 - try { - // 如果请求参数中没有包含主键Id,就判断该文件是否为当前session上传的。 - if (ObjectUtil.isEmpty(dataId)) { - if (!cacheHelper.existSessionUploadFile(filename)) { - ResponseResult.output(HttpServletResponse.SC_FORBIDDEN); - return; - } - } else { - Map dataMap = - onlineOperationService.getMasterData(table, null, null, dataId); - if (dataMap == null) { - ResponseResult.output(HttpServletResponse.SC_NOT_FOUND); - return; - } - String fieldJsonData = (String) dataMap.get(fieldName); - if (fieldJsonData == null) { - ResponseResult.output(HttpServletResponse.SC_BAD_REQUEST); - return; - } - if (!BaseUpDownloader.containFile(fieldJsonData, filename)) { - ResponseResult.output(HttpServletResponse.SC_FORBIDDEN); - return; - } - } - OnlineColumn downloadColumn = null; - for (OnlineColumn column : table.getColumnMap().values()) { - if (column.getColumnName().equals(fieldName)) { - if (asImage) { - if (ObjectUtil.notEqual(column.getFieldKind(), FieldKind.UPLOAD_IMAGE)) { - ResponseResult.output(HttpServletResponse.SC_FORBIDDEN, - ResponseResult.error(ErrorCodeEnum.INVALID_UPLOAD_FIELD)); - return; - } - } else { - if (ObjectUtil.notEqual(column.getFieldKind(), FieldKind.UPLOAD)) { - ResponseResult.output(HttpServletResponse.SC_FORBIDDEN, - ResponseResult.error(ErrorCodeEnum.INVALID_UPLOAD_FIELD)); - return; - } - } - downloadColumn = column; - break; - } - } - if (downloadColumn == null) { - ResponseResult.output(HttpServletResponse.SC_FORBIDDEN, - ResponseResult.error(ErrorCodeEnum.INVALID_DATA_FIELD)); - return; - } - BaseUpDownloader upDownloader = upDownloaderFactory.get(UploadStoreTypeEnum.LOCAL_SYSTEM); - upDownloader.doDownload(onlineProperties.getUploadFileBaseDir(), - table.getModelName(), fieldName, filename, asImage, response); - } catch (Exception e) { - response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR); - log.error(e.getMessage(), e); - } - } - - /** - * 上传数据。 - * - * @param table 在线表对象。 - * @param fieldName 数据表字段名。 - * @param asImage 是否为图片。 - * @param uploadFile 上传的文件。 - */ - public void doUpload(OnlineTable table, String fieldName, Boolean asImage, MultipartFile uploadFile) throws Exception { - OnlineColumn uploadColumn = null; - for (OnlineColumn column : table.getColumnMap().values()) { - if (column.getColumnName().equals(fieldName)) { - if (asImage) { - if (ObjectUtil.notEqual(column.getFieldKind(), FieldKind.UPLOAD_IMAGE)) { - ResponseResult.output(HttpServletResponse.SC_FORBIDDEN, - ResponseResult.error(ErrorCodeEnum.INVALID_UPLOAD_FIELD)); - return; - } - } else { - if (ObjectUtil.notEqual(column.getFieldKind(), FieldKind.UPLOAD)) { - ResponseResult.output(HttpServletResponse.SC_FORBIDDEN, - ResponseResult.error(ErrorCodeEnum.INVALID_UPLOAD_FIELD)); - return; - } - } - uploadColumn = column; - break; - } - } - if (uploadColumn == null) { - ResponseResult.output(HttpServletResponse.SC_FORBIDDEN, - ResponseResult.error(ErrorCodeEnum.INVALID_DATA_FIELD)); - return; - } - BaseUpDownloader upDownloader = upDownloaderFactory.get(UploadStoreTypeEnum.LOCAL_SYSTEM); - UploadResponseInfo responseInfo = upDownloader.doUpload(null, - onlineProperties.getUploadFileBaseDir(), table.getModelName(), fieldName, asImage, uploadFile); - if (responseInfo.getUploadFailed()) { - ResponseResult.output(HttpServletResponse.SC_FORBIDDEN, - ResponseResult.error(ErrorCodeEnum.UPLOAD_FAILED, responseInfo.getErrorMessage())); - return; - } - // 动态表单的下载url和普通表单有所不同,由前端负责动态拼接。 - responseInfo.setDownloadUri(null); - cacheHelper.putSessionUploadFile(responseInfo.getFilename()); - ResponseResult.output(ResponseResult.success(responseInfo)); - } - - private boolean isAutoSettingField(OnlineColumn column) { - return (ObjectUtil.equal(column.getFieldKind(), FieldKind.CREATE_TIME) - || ObjectUtil.equal(column.getFieldKind(), FieldKind.CREATE_USER_ID) - || ObjectUtil.equal(column.getFieldKind(), FieldKind.UPDATE_TIME) - || ObjectUtil.equal(column.getFieldKind(), FieldKind.UPDATE_USER_ID) - || ObjectUtil.equal(column.getFieldKind(), FieldKind.LOGIC_DELETE)); - } -} diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/util/OnlineUtil.java b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/util/OnlineUtil.java deleted file mode 100644 index e80ce472..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/util/OnlineUtil.java +++ /dev/null @@ -1,30 +0,0 @@ -package com.orangeforms.common.online.util; - -/** - * 在线表单的工具类。 - * - * @author Jerry - * @date 2021-06-06 - */ -public class OnlineUtil { - - /** - * 根据输入参数,拼接在线表单操作的查看权限字。 - * - * @param datasourceVariableName 数据源变量名。 - * @return 拼接后的在线表单操作的查看权限字。 - */ - public static String makeViewPermCode(String datasourceVariableName) { - return "online:" + datasourceVariableName + ":view"; - } - - /** - * 根据输入参数,拼接在线表单操作的编辑权限字。 - * - * @param datasourceVariableName 数据源变量名。 - * @return 拼接后的在线表单操作的编辑权限字。 - */ - public static String makeEditPermCode(String datasourceVariableName) { - return "online:" + datasourceVariableName + ":edit"; - } -} diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/vo/OnlineColumnRuleVo.java b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/vo/OnlineColumnRuleVo.java deleted file mode 100644 index 6912fde4..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/vo/OnlineColumnRuleVo.java +++ /dev/null @@ -1,34 +0,0 @@ -package com.orangeforms.common.online.vo; - -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.Data; - -/** - * 在线表单数据表字段规则和字段多对多关联VO对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@ApiModel("在线表单数据表字段规则和字段多对多关联VO对象") -@Data -public class OnlineColumnRuleVo { - - /** - * 字段Id。 - */ - @ApiModelProperty(value = "字段Id") - private Long columnId; - - /** - * 规则Id。 - */ - @ApiModelProperty(value = "规则Id") - private Long ruleId; - - /** - * 规则属性数据。 - */ - @ApiModelProperty(value = "规则属性数据") - private String propDataJson; -} diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/vo/OnlineColumnVo.java b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/vo/OnlineColumnVo.java deleted file mode 100644 index 00bcb3b3..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/vo/OnlineColumnVo.java +++ /dev/null @@ -1,163 +0,0 @@ -package com.orangeforms.common.online.vo; - -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.Data; - -import java.util.Date; -import java.util.Map; - -/** - * 在线表单数据表字段规则和字段多对多关联VO对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@ApiModel("在线表单数据表字段规则和字段多对多关联VO对象") -@Data -public class OnlineColumnVo { - - /** - * 主键Id。 - */ - @ApiModelProperty(value = "主键Id") - private Long columnId; - - /** - * 字段名。 - */ - @ApiModelProperty(value = "字段名") - private String columnName; - - /** - * 数据表Id。 - */ - @ApiModelProperty(value = "数据表Id") - private Long tableId; - - /** - * 数据表中的字段类型。 - */ - @ApiModelProperty(value = "数据表中的字段类型") - private String columnType; - - /** - * 数据表中的完整字段类型(包括了精度和刻度)。 - */ - @ApiModelProperty(value = "数据表中的完整字段类型") - private String fullColumnType; - - /** - * 是否为主键。 - */ - @ApiModelProperty(value = "是否为主键") - private Boolean primaryKey; - - /** - * 是否是自增主键(0: 不是 1: 是)。 - */ - @ApiModelProperty(value = "是否是自增主键") - private Boolean autoIncrement; - - /** - * 是否可以为空 (0: 不可以为空 1: 可以为空)。 - */ - @ApiModelProperty(value = "是否可以为空") - private Boolean nullable; - - /** - * 缺省值。 - */ - @ApiModelProperty(value = "缺省值") - private String columnDefault; - - /** - * 字段在数据表中的显示位置。 - */ - @ApiModelProperty(value = "字段在数据表中的显示位置") - private Integer columnShowOrder; - - /** - * 数据表中的字段注释。 - */ - @ApiModelProperty(value = "数据表中的字段注释") - private String columnComment; - - /** - * 对象映射字段名称。 - */ - @ApiModelProperty(value = "对象映射字段名称") - private String objectFieldName; - - /** - * 对象映射字段类型。 - */ - @ApiModelProperty(value = "对象映射字段类型") - private String objectFieldType; - - /** - * 过滤类型。 - */ - @ApiModelProperty(value = "过滤类型") - private Integer filterType; - - /** - * 是否是主键的父Id。 - */ - @ApiModelProperty(value = "是否是主键的父Id") - private Boolean parentKey; - - /** - * 是否部门过滤字段。 - */ - @ApiModelProperty(value = "是否部门过滤字段") - private Boolean deptFilter; - - /** - * 是否用户过滤字段。 - */ - @ApiModelProperty(value = "是否用户过滤字段") - private Boolean userFilter; - - /** - * 字段类别。 - */ - @ApiModelProperty(value = "字段类别") - private Integer fieldKind; - - /** - * 包含的文件文件数量,0表示无限制。 - */ - @ApiModelProperty(value = "包含的文件文件数量,0表示无限制") - private Integer maxFileCount; - - /** - * 字典Id。 - */ - @ApiModelProperty(value = "字典Id") - private Long dictId; - - /** - * 更新时间。 - */ - @ApiModelProperty(value = "更新时间") - private Date updateTime; - - /** - * 创建时间。 - */ - @ApiModelProperty(value = "创建时间") - private Date createTime; - - /** - * fieldKind 常量字典关联数据。 - */ - @ApiModelProperty(value = "常量字典关联数据") - private Map fieldKindDictMap; - - /** - * dictId 的一对一关联。 - */ - @ApiModelProperty(value = "dictId 的一对一关联") - private Map dictInfo; -} diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/vo/OnlineDatasourceRelationVo.java b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/vo/OnlineDatasourceRelationVo.java deleted file mode 100644 index ed6ab481..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/vo/OnlineDatasourceRelationVo.java +++ /dev/null @@ -1,133 +0,0 @@ -package com.orangeforms.common.online.vo; - -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.Data; - -import java.util.Date; -import java.util.Map; - -/** - * 在线表单的数据源关联VO对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@ApiModel("在线表单的数据源关联VO对象") -@Data -public class OnlineDatasourceRelationVo { - - /** - * 主键Id。 - */ - @ApiModelProperty(value = "主键Id") - private Long relationId; - - /** - * 关联名称。 - */ - @ApiModelProperty(value = "关联名称") - private String relationName; - - /** - * 变量名。 - */ - @ApiModelProperty(value = "变量名") - private String variableName; - - /** - * 主数据源Id。 - */ - @ApiModelProperty(value = "主数据源Id") - private Long datasourceId; - - /** - * 关联类型。 - */ - @ApiModelProperty(value = "关联类型") - private Integer relationType; - - /** - * 主表关联字段Id。 - */ - @ApiModelProperty(value = "主表关联字段Id") - private Long masterColumnId; - - /** - * 从表Id。 - */ - @ApiModelProperty(value = "从表Id") - private Long slaveTableId; - - /** - * 从表关联字段Id。 - */ - @ApiModelProperty(value = "从表关联字段Id") - private Long slaveColumnId; - - /** - * 删除主表的时候是否级联删除一对一和一对多的从表数据,多对多只是删除关联,不受到这个标记的影响。。 - */ - @ApiModelProperty(value = "一对多从表级联删除标记") - private Boolean cascadeDelete; - - /** - * 是否左连接。 - */ - @ApiModelProperty(value = "是否左连接") - private Boolean leftJoin; - - /** - * 更新时间。 - */ - @ApiModelProperty(value = "更新时间") - private Date updateTime; - - /** - * 创建时间。 - */ - @ApiModelProperty(value = "创建时间") - private Date createTime; - - /** - * masterColumnId 的一对一关联数据对象,数据对应类型为OnlineColumnVo。 - */ - @ApiModelProperty(value = "masterColumnId字段的一对一关联数据对象") - private Map masterColumn; - - /** - * slaveTableId 的一对一关联数据对象,数据对应类型为OnlineTableVo。 - */ - @ApiModelProperty(value = "slaveTableId字段的一对一关联数据对象") - private Map slaveTable; - - /** - * slaveColumnId 的一对一关联数据对象,数据对应类型为OnlineColumnVo。 - */ - @ApiModelProperty(value = "slaveColumnId字段的一对一关联数据对象") - private Map slaveColumn; - - /** - * masterColumnId 字典关联数据。 - */ - @ApiModelProperty(value = "masterColumnId的字典关联数据") - private Map masterColumnIdDictMap; - - /** - * slaveTableId 字典关联数据。 - */ - @ApiModelProperty(value = "slaveTableId的字典关联数据") - private Map slaveTableIdDictMap; - - /** - * slaveColumnId 字典关联数据。 - */ - @ApiModelProperty(value = "slaveColumnId的字典关联数据") - private Map slaveColumnIdDictMap; - - /** - * relationType 常量字典关联数据。 - */ - @ApiModelProperty(value = "常量字典关联数据") - private Map relationTypeDictMap; -} diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/vo/OnlineDatasourceVo.java b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/vo/OnlineDatasourceVo.java deleted file mode 100644 index 9792ab80..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/vo/OnlineDatasourceVo.java +++ /dev/null @@ -1,80 +0,0 @@ -package com.orangeforms.common.online.vo; - -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.Data; - -import java.util.Date; -import java.util.List; -import java.util.Map; - -/** - * 在线表单的数据源VO对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@ApiModel("在线表单的数据源VO对象") -@Data -public class OnlineDatasourceVo { - - /** - * 主键Id。 - */ - @ApiModelProperty(value = "主键Id") - private Long datasourceId; - - /** - * 数据源名称。 - */ - @ApiModelProperty(value = "数据源名称") - private String datasourceName; - - /** - * 数据源变量名,会成为数据访问url的一部分。 - */ - @ApiModelProperty(value = "数据源变量名") - private String variableName; - - /** - * 数据库链接Id。 - */ - @ApiModelProperty(value = "数据库链接Id") - private Long dblinkId; - - /** - * 主表Id。 - */ - @ApiModelProperty(value = "主表Id") - private Long masterTableId; - - /** - * 更新时间。 - */ - @ApiModelProperty(value = "更新时间") - private Date updateTime; - - /** - * 创建时间。 - */ - @ApiModelProperty(value = "创建时间") - private Date createTime; - - /** - * datasourceId 的多对多关联表数据对象,数据对应类型为OnlinePageDatasourceVo。 - */ - @ApiModelProperty(value = "datasourceId 的多对多关联表数据对象") - private Map onlinePageDatasource; - - /** - * masterTableId 字典关联数据。 - */ - @ApiModelProperty(value = "masterTableId 字典关联数据") - private Map masterTableIdDictMap; - - /** - * 当前数据源及其关联,引用的数据表对象列表。 - */ - @ApiModelProperty(value = "当前数据源及其关联,引用的数据表对象列表") - private List tableList; -} diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/vo/OnlineDblinkVo.java b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/vo/OnlineDblinkVo.java deleted file mode 100644 index c965d981..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/vo/OnlineDblinkVo.java +++ /dev/null @@ -1,54 +0,0 @@ -package com.orangeforms.common.online.vo; - -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.Data; - -import java.util.Date; - -/** - * 在线表单数据表所在数据库链接VO对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@ApiModel("在线表单数据表所在数据库链接VO对象") -@Data -public class OnlineDblinkVo { - - /** - * 主键Id。 - */ - @ApiModelProperty(value = "主键Id") - private Long dblinkId; - - /** - * 链接中文名称。 - */ - @ApiModelProperty(value = "链接中文名称") - private String dblinkName; - - /** - * 链接英文名称。 - */ - @ApiModelProperty(value = "链接英文名称") - private String variableName; - - /** - * 链接描述。 - */ - @ApiModelProperty(value = "链接描述") - private String dblinkDesc; - - /** - * 数据源配置常量。 - */ - @ApiModelProperty(value = "数据源配置常量") - private Integer dblinkConfigConstant; - - /** - * 创建时间。 - */ - @ApiModelProperty(value = "创建时间") - private Date createTime; -} diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/vo/OnlineDictVo.java b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/vo/OnlineDictVo.java deleted file mode 100644 index 3e5bf338..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/vo/OnlineDictVo.java +++ /dev/null @@ -1,139 +0,0 @@ -package com.orangeforms.common.online.vo; - -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.Data; - -import java.util.Date; -import java.util.Map; - -/** - * 在线表单关联的字典VO对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@ApiModel("在线表单关联的字典VO对象") -@Data -public class OnlineDictVo { - - /** - * 主键Id。 - */ - @ApiModelProperty(value = "主键Id") - private Long dictId; - - /** - * 字典名称。 - */ - @ApiModelProperty(value = "字典名称") - private String dictName; - - /** - * 字典类型。 - */ - @ApiModelProperty(value = "字典类型") - private Integer dictType; - - /** - * 数据库链接Id。 - */ - @ApiModelProperty(value = "数据库链接Id") - private Long dblinkId; - - /** - * 字典表名称。 - */ - @ApiModelProperty(value = "字典表名称") - private String tableName; - - /** - * 字典表键字段名称。 - */ - @ApiModelProperty(value = "字典表键字段名称") - private String keyColumnName; - - /** - * 字典表父键字段名称。 - */ - @ApiModelProperty(value = "字典表父键字段名称") - private String parentKeyColumnName; - - /** - * 字典值字段名称。 - */ - @ApiModelProperty(value = "字典值字段名称") - private String valueColumnName; - - /** - * 逻辑删除字段。 - */ - @ApiModelProperty(value = "逻辑删除字段") - private String deletedColumnName; - - /** - * 用户过滤滤字段名称。 - */ - @ApiModelProperty(value = "用户过滤滤字段名称") - private String userFilterColumnName; - - /** - * 部门过滤字段名称。 - */ - @ApiModelProperty(value = "部门过滤字段名称") - private String deptFilterColumnName; - - /** - * 租户过滤字段名称。 - */ - @ApiModelProperty(value = "租户过滤字段名称") - private String tenantFilterColumnName; - - /** - * 是否树形标记。 - */ - @ApiModelProperty(value = "是否树形标记") - private Boolean treeFlag; - - /** - * 获取字典数据的url。 - */ - @ApiModelProperty(value = "获取字典数据的url") - private String dictListUrl; - - /** - * 根据主键id批量获取字典数据的url。 - */ - @ApiModelProperty(value = "根据主键id批量获取字典数据的url") - private String dictIdsUrl; - - /** - * 字典的JSON数据。 - */ - @ApiModelProperty(value = "字典的JSON数据") - private String dictDataJson; - - /** - * 更新时间。 - */ - @ApiModelProperty(value = "更新时间") - private Date updateTime; - - /** - * 创建时间。 - */ - @ApiModelProperty(value = "创建时间") - private Date createTime; - - /** - * dictType 常量字典关联数据。 - */ - @ApiModelProperty(value = "dictType 常量字典关联数据") - private Map dictTypeDictMap; - - /** - * 数据库链接Id字典关联数据。 - */ - @ApiModelProperty(value = "数据库链接Id字典关联数据") - private Map dblinkIdDictMap; -} diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/vo/OnlineFormVo.java b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/vo/OnlineFormVo.java deleted file mode 100644 index 6607eab9..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/vo/OnlineFormVo.java +++ /dev/null @@ -1,110 +0,0 @@ -package com.orangeforms.common.online.vo; - -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.Data; - -import java.util.Date; -import java.util.List; -import java.util.Map; - -/** - * 在线表单VO对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@ApiModel("在线表单VO对象") -@Data -public class OnlineFormVo { - - /** - * 主键Id。 - */ - @ApiModelProperty(value = "主键Id") - private Long formId; - - /** - * 页面Id。 - */ - @ApiModelProperty(value = "页面Id") - private Long pageId; - - /** - * 表单编码。 - */ - @ApiModelProperty(value = "表单编码") - private String formCode; - - /** - * 表单名称。 - */ - @ApiModelProperty(value = "表单名称") - private String formName; - - /** - * 表单类型。 - */ - @ApiModelProperty(value = "表单类型") - private Integer formType; - - /** - * 表单类别。 - */ - @ApiModelProperty(value = "表单类别") - private Integer formKind; - - /** - * 表单主表Id。 - */ - @ApiModelProperty(value = "表单主表Id") - private Long masterTableId; - - /** - * 表单组件JSON。 - */ - @ApiModelProperty(value = "表单组件JSON") - private String widgetJson; - - /** - * 表单参数JSON。 - */ - @ApiModelProperty(value = "表单参数JSON") - private String paramsJson; - - /** - * 更新时间。 - */ - @ApiModelProperty(value = "更新时间") - private Date updateTime; - - /** - * 创建时间。 - */ - @ApiModelProperty(value = "创建时间") - private Date createTime; - - /** - * masterTableId 的一对一关联数据对象,数据对应类型为OnlineTableVo。 - */ - @ApiModelProperty(value = "asterTableId 的一对一关联数据对象") - private Map onlineTable; - - /** - * masterTableId 字典关联数据。 - */ - @ApiModelProperty(value = "masterTableId 字典关联数据") - private Map masterTableIdDictMap; - - /** - * formType 常量字典关联数据。 - */ - @ApiModelProperty(value = "formType 常量字典关联数据") - private Map formTypeDictMap; - - /** - * 当前表单关联的数据源Id集合。 - */ - @ApiModelProperty(value = "当前表单关联的数据源Id集合") - private List datasourceIdList; -} diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/vo/OnlinePageDatasourceVo.java b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/vo/OnlinePageDatasourceVo.java deleted file mode 100644 index 3a6e4ca1..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/vo/OnlinePageDatasourceVo.java +++ /dev/null @@ -1,34 +0,0 @@ -package com.orangeforms.common.online.vo; - -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.Data; - -/** - * 在线表单页面和数据源多对多关联VO对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@ApiModel("在线表单页面和数据源多对多关联VO对象") -@Data -public class OnlinePageDatasourceVo { - - /** - * 主键Id。 - */ - @ApiModelProperty(value = "主键Id") - private Long id; - - /** - * 页面主键Id。 - */ - @ApiModelProperty(value = "页面主键Id") - private Long pageId; - - /** - * 数据源主键Id。 - */ - @ApiModelProperty(value = "数据源主键Id") - private Long datasourceId; -} diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/vo/OnlinePageVo.java b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/vo/OnlinePageVo.java deleted file mode 100644 index cc7e1c52..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/vo/OnlinePageVo.java +++ /dev/null @@ -1,79 +0,0 @@ -package com.orangeforms.common.online.vo; - -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.Data; - -import java.util.Date; -import java.util.Map; - -/** - * 在线表单所在页面VO对象。这里我们可以把页面理解为表单的容器。 - * - * @author Jerry - * @date 2021-06-06 - */ -@ApiModel("在线表单所在页面VO对象") -@Data -public class OnlinePageVo { - - /** - * 主键Id。 - */ - @ApiModelProperty(value = "主键Id") - private Long pageId; - - /** - * 页面编码。 - */ - @ApiModelProperty(value = "页面编码") - private String pageCode; - - /** - * 页面名称。 - */ - @ApiModelProperty(value = "页面名称") - private String pageName; - - /** - * 页面类型。 - */ - @ApiModelProperty(value = "页面类型") - private Integer pageType; - - /** - * 页面编辑状态。 - */ - @ApiModelProperty(value = "页面编辑状态") - private Integer status; - - /** - * 是否发布。 - */ - @ApiModelProperty(value = "是否发布") - private Boolean published; - - /** - * 更新时间。 - */ - @ApiModelProperty(value = "更新时间") - private Date updateTime; - - /** - * 创建时间。 - */ - @ApiModelProperty(value = "创建时间") - private Date createTime; - - /** - * pageType 常量字典关联数据。 - */ - @ApiModelProperty(value = "pageType 常量字典关联数据") - private Map pageTypeDictMap; - - /** - * status 常量字典关联数据。 - */ - @ApiModelProperty(value = "status 常量字典关联数据") - private Map statusDictMap; -} diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/vo/OnlineRuleVo.java b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/vo/OnlineRuleVo.java deleted file mode 100644 index b7182fba..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/vo/OnlineRuleVo.java +++ /dev/null @@ -1,73 +0,0 @@ -package com.orangeforms.common.online.vo; - -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.Data; - -import java.util.Date; -import java.util.Map; - -/** - * 在线表单数据表字段验证规则VO对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@ApiModel("在线表单数据表字段验证规则VO对象") -@Data -public class OnlineRuleVo { - - /** - * 主键Id。 - */ - @ApiModelProperty(value = "主键Id") - private Long ruleId; - - /** - * 规则名称。 - */ - @ApiModelProperty(value = "规则名称") - private String ruleName; - - /** - * 规则类型。 - */ - @ApiModelProperty(value = "规则类型") - private Integer ruleType; - - /** - * 内置规则标记。 - */ - @ApiModelProperty(value = "内置规则标记") - private Boolean builtin; - - /** - * 自定义规则的正则表达式。 - */ - @ApiModelProperty(value = "自定义规则的正则表达式") - private String pattern; - - /** - * 更新时间。 - */ - @ApiModelProperty(value = "更新时间") - private Date updateTime; - - /** - * 创建时间。 - */ - @ApiModelProperty(value = "创建时间") - private Date createTime; - - /** - * ruleId 的多对多关联表数据对象,数据对应类型为OnlineColumnRuleVo。 - */ - @ApiModelProperty(value = "ruleId 的多对多关联表数据对象") - private Map onlineColumnRule; - - /** - * ruleType 常量字典关联数据。 - */ - @ApiModelProperty(value = "ruleType 常量字典关联数据") - private Map ruleTypeDictMap; -} diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/vo/OnlineTableVo.java b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/vo/OnlineTableVo.java deleted file mode 100644 index 17565672..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/vo/OnlineTableVo.java +++ /dev/null @@ -1,54 +0,0 @@ -package com.orangeforms.common.online.vo; - -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.Data; - -import java.util.Date; - -/** - * 在线表单的数据表VO对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@ApiModel("在线表单的数据表VO对象") -@Data -public class OnlineTableVo { - - /** - * 主键Id。 - */ - @ApiModelProperty(value = "主键Id") - private Long tableId; - - /** - * 表名称。 - */ - @ApiModelProperty(value = "表名称") - private String tableName; - - /** - * 实体名称。 - */ - @ApiModelProperty(value = "实体名称") - private String modelName; - - /** - * 数据库链接Id。 - */ - @ApiModelProperty(value = "数据库链接Id") - private Long dblinkId; - - /** - * 更新时间。 - */ - @ApiModelProperty(value = "更新时间") - private Date updateTime; - - /** - * 创建时间。 - */ - @ApiModelProperty(value = "创建时间") - private Date createTime; -} diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/vo/OnlineVirtualColumnVo.java b/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/vo/OnlineVirtualColumnVo.java deleted file mode 100644 index 437df5a6..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/java/com/orangeforms/common/online/vo/OnlineVirtualColumnVo.java +++ /dev/null @@ -1,88 +0,0 @@ -package com.orangeforms.common.online.vo; - -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.Data; - -/** - * 在线数据表虚拟字段VO对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@ApiModel("在线数据表虚拟字段VO对象") -@Data -public class OnlineVirtualColumnVo { - - /** - * 主键Id。 - */ - @ApiModelProperty(value = "主键Id") - private Long virtualColumnId; - - /** - * 所在表Id。 - */ - @ApiModelProperty(value = "所在表Id") - private Long tableId; - - /** - * 字段名称。 - */ - @ApiModelProperty(value = "字段名称") - private String objectFieldName; - - /** - * 属性类型。 - */ - @ApiModelProperty(value = "属性类型") - private String objectFieldType; - - /** - * 字段提示名。 - */ - @ApiModelProperty(value = "字段提示名") - private String columnPrompt; - - /** - * 虚拟字段类型(0: 聚合)。 - */ - @ApiModelProperty(value = "虚拟字段类型(0: 聚合)") - private Integer virtualType; - - /** - * 关联数据源Id。 - */ - @ApiModelProperty(value = "关联数据源Id") - private Long datasourceId; - - /** - * 关联Id。 - */ - @ApiModelProperty(value = "关联Id") - private Long relationId; - - /** - * 聚合字段所在关联表Id。 - */ - @ApiModelProperty(value = "聚合字段所在关联表Id") - private Long aggregationTableId; - - /** - * 关联表聚合字段Id。 - */ - @ApiModelProperty(value = "关联表聚合字段Id") - private Long aggregationColumnId; - - /** - * 聚合类型(0: count 1: sum 2: avg 3: max 4:min)。 - */ - @ApiModelProperty(value = "聚合类型(0: count 1: sum 2: avg 3: max 4:min)") - private Integer aggregationType; - - /** - * 存储过滤条件的json。 - */ - @ApiModelProperty(value = "存储过滤条件的json") - private String whereClauseJson; -} diff --git a/images/orange-demo-activiti-service/common/common-online/src/main/resources/META-INF/spring.factories b/images/orange-demo-activiti-service/common/common-online/src/main/resources/META-INF/spring.factories deleted file mode 100644 index 543c0db1..00000000 --- a/images/orange-demo-activiti-service/common/common-online/src/main/resources/META-INF/spring.factories +++ /dev/null @@ -1,2 +0,0 @@ -org.springframework.boot.autoconfigure.EnableAutoConfiguration=\ -com.orangeforms.common.online.config.OnlineAutoConfig \ No newline at end of file diff --git a/images/orange-demo-activiti-service/common/common-redis/pom.xml b/images/orange-demo-activiti-service/common/common-redis/pom.xml deleted file mode 100644 index c0fe169d..00000000 --- a/images/orange-demo-activiti-service/common/common-redis/pom.xml +++ /dev/null @@ -1,29 +0,0 @@ - - - - common - com.orangeforms - 1.0.0 - - 4.0.0 - - common-redis - 1.0.0 - common-redis - jar - - - - com.orangeforms - common-core - 1.0.0 - - - org.redisson - redisson - ${redisson.version} - - - \ No newline at end of file diff --git a/images/orange-demo-activiti-service/common/common-redis/src/main/java/com/orangeforms/common/redis/cache/RedisDictionaryCache.java b/images/orange-demo-activiti-service/common/common-redis/src/main/java/com/orangeforms/common/redis/cache/RedisDictionaryCache.java deleted file mode 100644 index 26449f8d..00000000 --- a/images/orange-demo-activiti-service/common/common-redis/src/main/java/com/orangeforms/common/redis/cache/RedisDictionaryCache.java +++ /dev/null @@ -1,412 +0,0 @@ -package com.orangeforms.common.redis.cache; - -import com.alibaba.fastjson.JSON; -import com.orangeforms.common.core.cache.DictionaryCache; -import com.orangeforms.common.core.constant.ApplicationConstant; -import com.orangeforms.common.core.exception.RedisCacheAccessException; -import lombok.extern.slf4j.Slf4j; -import org.apache.commons.collections4.CollectionUtils; -import org.redisson.api.RMap; -import org.redisson.api.RedissonClient; - -import java.util.*; -import java.util.concurrent.TimeUnit; -import java.util.concurrent.TimeoutException; -import java.util.concurrent.locks.ReadWriteLock; -import java.util.concurrent.locks.ReentrantReadWriteLock; -import java.util.function.Function; -import java.util.stream.Collectors; - -/** - * 字典数据Redis缓存对象。 - * - * @param 字典表主键类型。 - * @param 字典表对象类型。 - * @author Jerry - * @date 2021-06-06 - */ -@Slf4j -public class RedisDictionaryCache implements DictionaryCache { - - /** - * redisson客户端。 - */ - protected final RedissonClient redissonClient; - /** - * 数据存储对象。 - */ - protected final RMap dataMap; - /** - * 字典值对象类型。 - */ - protected final Class valueClazz; - /** - * 由于大部分场景是读取操作,所以使用读写锁提高并发的伸缩性。 - */ - protected final ReadWriteLock lock; - /** - * 获取字典主键数据的函数对象。 - */ - protected final Function idGetter; - /** - * 超时时长。单位毫秒。 - */ - protected static final long TIMEOUT = 2000L; - - /** - * 当前对象的构造器函数。 - * - * @param redissonClient Redisson的客户端对象。 - * @param dictionaryName 字典表的名称。等同于redis hash对象的key。 - * @param valueClazz 值对象的Class对象。 - * @param idGetter 获取当前类主键字段值的函数对象。 - * @param 字典主键类型。 - * @param 字典对象类型 - * @return 实例化后的字典内存缓存对象。 - */ - public static RedisDictionaryCache create( - RedissonClient redissonClient, - String dictionaryName, - Class valueClazz, - Function idGetter) { - if (idGetter == null) { - throw new IllegalArgumentException("IdGetter can't be NULL."); - } - return new RedisDictionaryCache<>(redissonClient, dictionaryName, valueClazz, idGetter); - } - - /** - * 构造函数。 - * - * @param redissonClient Redisson的客户端对象。 - * @param dictionaryName 字典表的名称。等同于redis hash对象的key。确保全局唯一。 - * @param valueClazz 值对象的Class对象。 - * @param idGetter 获取当前类主键字段值的函数对象。 - */ - public RedisDictionaryCache( - RedissonClient redissonClient, - String dictionaryName, - Class valueClazz, - Function idGetter) { - this.redissonClient = redissonClient; - this.dataMap = redissonClient.getMap(dictionaryName + ApplicationConstant.DICT_CACHE_NAME_SUFFIX); - this.lock = new ReentrantReadWriteLock(); - this.valueClazz = valueClazz; - this.idGetter = idGetter; - } - - /** - * 按照数据插入的顺序返回全部字典对象的列表。 - * - * @return 全部字段数据列表。 - */ - @Override - public List getAll() { - Collection dataList; - String exceptionMessage; - try { - if (lock.readLock().tryLock(TIMEOUT, TimeUnit.MILLISECONDS)) { - try { - dataList = dataMap.readAllValues(); - } finally { - // 如果上面的操作时间超过redisson.lockWatchdogTimeout的时长, - // redis会将与该锁关联的键删除,此后调用unlock的时候,就会抛出运行时异常。 - lock.readLock().unlock(); - } - } else { - throw new TimeoutException(); - } - } catch (Exception e) { - exceptionMessage = String.format( - "LOCK Operation of [RedisDictionaryCache::getAll] encountered EXCEPTION [%s] for DICT [%s].", - e.getClass().getSimpleName(), valueClazz.getSimpleName()); - log.warn(exceptionMessage); - throw new RedisCacheAccessException(exceptionMessage, e); - } - if (CollectionUtils.isEmpty(dataList)) { - return new LinkedList<>(); - } - return dataList.stream() - .map(data -> JSON.parseObject(data, valueClazz)) - .collect(Collectors.toCollection(LinkedList::new)); - } - - /** - * 获取缓存中与键列表对应的对象列表。 - * - * @param keys 主键集合。 - * @return 对象列表。 - */ - @Override - public List getInList(Set keys) { - if (CollectionUtils.isEmpty(keys)) { - return new LinkedList<>(); - } - Collection dataList; - String exceptionMessage; - try { - if (lock.readLock().tryLock(TIMEOUT, TimeUnit.MILLISECONDS)) { - try { - dataList = dataMap.getAll(keys).values(); - } finally { - lock.readLock().unlock(); - } - } else { - throw new TimeoutException(); - } - } catch (Exception e) { - exceptionMessage = String.format( - "LOCK Operation of [RedisDictionaryCache::getInList] encountered EXCEPTION [%s] for DICT [%s].", - e.getClass().getSimpleName(), valueClazz.getSimpleName()); - log.warn(exceptionMessage); - throw new RedisCacheAccessException(exceptionMessage, e); - } - if (dataList == null) { - return new LinkedList<>(); - } - return dataList.stream() - .map(data -> JSON.parseObject(data, valueClazz)) - .collect(Collectors.toCollection(LinkedList::new)); - } - - /** - * 从缓存中获取指定的数据。 - * - * @param id 数据的key。 - * @return 获取到的数据,如果没有返回null。 - */ - @Override - public V get(K id) { - if (id == null) { - return null; - } - String data; - String exceptionMessage; - try { - if (lock.readLock().tryLock(TIMEOUT, TimeUnit.MILLISECONDS)) { - try { - data = dataMap.get(id); - } finally { - lock.readLock().unlock(); - } - } else { - throw new TimeoutException(); - } - } catch (Exception e) { - exceptionMessage = String.format( - "LOCK Operation of [RedisDictionaryCache::get] encountered EXCEPTION [%s] for DICT [%s].", - e.getClass().getSimpleName(), valueClazz.getSimpleName()); - log.warn(exceptionMessage); - throw new RedisCacheAccessException(exceptionMessage, e); - } - if (data == null) { - return null; - } - return JSON.parseObject(data, valueClazz); - } - - /** - * 获取缓存中数据条目的数量。 - * - * @return 返回缓存的数据数量。 - */ - @Override - public int getCount() { - return dataMap.size(); - } - - /** - * 将参数List中的数据保存到缓存中,同时保证getAll返回的数据列表,与参数列表中数据项的顺序保持一致。 - * - * @param dataList 待缓存的数据列表。 - */ - @Override - public void putAll(List dataList) { - if (CollectionUtils.isEmpty(dataList)) { - return; - } - Map map = dataList.stream() - .collect(Collectors.toMap(idGetter, JSON::toJSONString)); - String exceptionMessage; - try { - if (lock.writeLock().tryLock(TIMEOUT, TimeUnit.MILLISECONDS)) { - try { - dataMap.putAll(map, 1000); - } finally { - lock.writeLock().unlock(); - } - } else { - throw new TimeoutException(); - } - } catch (Exception e) { - exceptionMessage = String.format( - "LOCK Operation of [RedisDictionaryCache::putAll] encountered EXCEPTION [%s] for DICT [%s].", - e.getClass().getSimpleName(), valueClazz.getSimpleName()); - log.warn(exceptionMessage); - throw new RedisCacheAccessException(exceptionMessage, e); - } - } - - /** - * 将数据存入缓存。 - * - * @param id 通常为字典数据的主键。 - * @param data 字典数据对象。 - */ - @Override - public void put(K id, V data) { - if (id == null || data == null) { - return; - } - String exceptionMessage; - try { - if (lock.writeLock().tryLock(TIMEOUT, TimeUnit.MILLISECONDS)) { - try { - dataMap.fastPut(id, JSON.toJSONString(data)); - } finally { - lock.writeLock().unlock(); - } - } else { - throw new TimeoutException(); - } - } catch (Exception e) { - exceptionMessage = String.format( - "LOCK Operation of [RedisDictionaryCache::put] encountered EXCEPTION [%s] for DICT [%s].", - e.getClass().getSimpleName(), valueClazz.getSimpleName()); - log.warn(exceptionMessage); - throw new RedisCacheAccessException(exceptionMessage, e); - } - } - - /** - * 重新加载,先清空原有数据,在执行putAll的操作。 - * - * @param dataList 待缓存的数据列表。 - * @param force true则强制刷新,如果false,当缓存中存在数据时不刷新。 - */ - @Override - public void reload(List dataList, boolean force) { - Map map = null; - if (CollectionUtils.isNotEmpty(dataList)) { - map = dataList.stream().collect(Collectors.toMap(idGetter, JSON::toJSONString)); - } - String exceptionMessage; - try { - if (lock.writeLock().tryLock(TIMEOUT, TimeUnit.MILLISECONDS)) { - try { - // 如果不强制刷新,需要先判断缓存中是否存在数据。 - if (!force && this.getCount() > 0) { - return; - } - dataMap.clear(); - if (map != null) { - dataMap.putAll(map, 1000); - } - } finally { - lock.writeLock().unlock(); - } - } else { - throw new TimeoutException(); - } - } catch (Exception e) { - exceptionMessage = String.format( - "LOCK Operation of [RedisDictionaryCache::reload] encountered EXCEPTION [%s] for DICT [%s].", - e.getClass().getSimpleName(), valueClazz.getSimpleName()); - log.warn(exceptionMessage); - throw new RedisCacheAccessException(exceptionMessage, e); - } - } - - /** - * 删除缓存中指定的键。 - * - * @param id 待删除数据的主键。 - * @return 返回被删除的对象,如果主键不存在,返回null。 - */ - @Override - public V invalidate(K id) { - if (id == null) { - return null; - } - String data; - String exceptionMessage; - try { - if (lock.writeLock().tryLock(TIMEOUT, TimeUnit.MILLISECONDS)) { - try { - data = dataMap.remove(id); - } finally { - lock.writeLock().unlock(); - } - } else { - throw new TimeoutException(); - } - } catch (Exception e) { - exceptionMessage = String.format( - "LOCK Operation of [RedisDictionaryCache::invalidate] encountered EXCEPTION [%s] for DICT [%s].", - e.getClass().getSimpleName(), valueClazz.getSimpleName()); - log.warn(exceptionMessage); - throw new RedisCacheAccessException(exceptionMessage, e); - } - if (data == null) { - return null; - } - return JSON.parseObject(data, valueClazz); - } - - /** - * 删除缓存中,参数列表中包含的键。 - * - * @param keys 待删除数据的主键集合。 - */ - @SuppressWarnings("unchecked") - @Override - public void invalidateSet(Set keys) { - if (CollectionUtils.isEmpty(keys)) { - return; - } - Object[] keyArray = keys.toArray(new Object[]{}); - String exceptionMessage; - try { - if (lock.writeLock().tryLock(TIMEOUT, TimeUnit.MILLISECONDS)) { - try { - dataMap.fastRemove((K[]) keyArray); - } finally { - lock.writeLock().unlock(); - } - } else { - throw new TimeoutException(); - } - } catch (Exception e) { - exceptionMessage = String.format( - "LOCK Operation of [RedisDictionaryCache::invalidateSet] encountered EXCEPTION [%s] for DICT [%s].", - e.getClass().getSimpleName(), valueClazz.getSimpleName()); - log.warn(exceptionMessage); - throw new RedisCacheAccessException(exceptionMessage, e); - } - } - - /** - * 清空缓存。 - */ - @Override - public void invalidateAll() { - String exceptionMessage; - try { - if (lock.writeLock().tryLock(TIMEOUT, TimeUnit.MILLISECONDS)) { - try { - dataMap.clear(); - } finally { - lock.writeLock().unlock(); - } - } else { - throw new TimeoutException(); - } - } catch (Exception e) { - exceptionMessage = String.format( - "LOCK Operation of [RedisDictionaryCache::invalidateAll] encountered EXCEPTION [%s] for DICT [%s].", - e.getClass().getSimpleName(), valueClazz.getSimpleName()); - log.warn(exceptionMessage); - throw new RedisCacheAccessException(exceptionMessage, e); - } - } -} diff --git a/images/orange-demo-activiti-service/common/common-redis/src/main/java/com/orangeforms/common/redis/cache/RedisTreeDictionaryCache.java b/images/orange-demo-activiti-service/common/common-redis/src/main/java/com/orangeforms/common/redis/cache/RedisTreeDictionaryCache.java deleted file mode 100644 index 2232b7c3..00000000 --- a/images/orange-demo-activiti-service/common/common-redis/src/main/java/com/orangeforms/common/redis/cache/RedisTreeDictionaryCache.java +++ /dev/null @@ -1,354 +0,0 @@ -package com.orangeforms.common.redis.cache; - -import com.alibaba.fastjson.JSON; -import lombok.extern.slf4j.Slf4j; -import com.orangeforms.common.core.constant.ApplicationConstant; -import com.orangeforms.common.core.exception.RedisCacheAccessException; -import com.google.common.collect.LinkedListMultimap; -import com.google.common.collect.Multimap; -import org.apache.commons.collections4.CollectionUtils; -import org.redisson.api.RListMultimap; -import org.redisson.api.RedissonClient; - -import java.util.*; -import java.util.concurrent.TimeUnit; -import java.util.concurrent.TimeoutException; -import java.util.function.Function; -import java.util.stream.Collectors; - -/** - * 树形字典数据Redis缓存对象。 - * - * @param 字典表主键类型。 - * @param 字典表对象类型。 - * @author Jerry - * @date 2021-06-06 - */ -@Slf4j -public class RedisTreeDictionaryCache extends RedisDictionaryCache { - - /** - * 树形数据存储对象。 - */ - private final RListMultimap allTreeMap; - /** - * 获取字典父主键数据的函数对象。 - */ - protected final Function parentIdGetter; - - /** - * 当前对象的构造器函数。 - * - * @param redissonClient Redisson的客户端对象。 - * @param dictionaryName 字典表的名称。等同于redis hash对象的key。 - * @param valueClazz 值对象的Class对象。 - * @param idGetter 获取当前类主键字段值的函数对象。 - * @param parentIdGetter 获取当前类父主键字段值的函数对象。 - * @param 字典主键类型。 - * @param 字典对象类型 - * @return 实例化后的树形字典内存缓存对象。 - */ - public static RedisTreeDictionaryCache create( - RedissonClient redissonClient, - String dictionaryName, - Class valueClazz, - Function idGetter, - Function parentIdGetter) { - if (idGetter == null) { - throw new IllegalArgumentException("IdGetter can't be NULL."); - } - if (parentIdGetter == null) { - throw new IllegalArgumentException("ParentIdGetter can't be NULL."); - } - return new RedisTreeDictionaryCache<>( - redissonClient, dictionaryName, valueClazz, idGetter, parentIdGetter); - } - - /** - * 构造函数。 - * - * @param redissonClient Redisson的客户端对象。 - * @param dictionaryName 字典表的名称。等同于redis hash对象的key。 - * @param valueClazz 值对象的Class对象。 - * @param idGetter 获取当前类主键字段值的函数对象。 - * @param parentIdGetter 获取当前类父主键字段值的函数对象。 - */ - public RedisTreeDictionaryCache( - RedissonClient redissonClient, - String dictionaryName, - Class valueClazz, - Function idGetter, - Function parentIdGetter) { - super(redissonClient, dictionaryName, valueClazz, idGetter); - this.allTreeMap = redissonClient.getListMultimap( - dictionaryName + ApplicationConstant.TREE_DICT_CACHE_NAME_SUFFIX); - this.parentIdGetter = parentIdGetter; - } - - /** - * 获取该父主键的子数据列表。 - * - * @param parentId 父主键Id。如果parentId为null,则返回所有一级节点数据。 - * @return 子数据列表。 - */ - public List getListByParentId(K parentId) { - List dataList; - String exceptionMessage; - try { - if (lock.readLock().tryLock(TIMEOUT, TimeUnit.MILLISECONDS)) { - try { - dataList = allTreeMap.get(parentId); - } finally { - lock.readLock().unlock(); - } - } else { - throw new TimeoutException(); - } - } catch (Exception e) { - exceptionMessage = String.format( - "LOCK Operation of [RedisTreeDictionaryCache::getListByParentId] encountered EXCEPTION [%s] for DICT [%s].", - e.getClass().getSimpleName(), valueClazz.getSimpleName()); - log.warn(exceptionMessage); - throw new RedisCacheAccessException(exceptionMessage, e); - } - if (CollectionUtils.isEmpty(dataList)) { - return new LinkedList<>(); - } - List resultList = new LinkedList<>(); - dataList.forEach(data -> resultList.add(JSON.parseObject(data, valueClazz))); - return resultList; - } - - /** - * 将参数List中的数据保存到缓存中,同时保证getAll返回的数据列表,与参数列表中数据项的顺序保持一致。 - * - * @param dataList 待缓存的数据列表。 - */ - @Override - public void putAll(List dataList) { - if (CollectionUtils.isEmpty(dataList)) { - return; - } - // 锁外执行数据结构组装,降低锁的粒度,提高并发性。 - Map map = dataList.stream() - .collect(Collectors.toMap(idGetter, JSON::toJSONString)); - Multimap treeMap = LinkedListMultimap.create(); - for (V data : dataList) { - treeMap.put(parentIdGetter.apply(data), JSON.toJSONString(data)); - } - Set>> entries = treeMap.asMap().entrySet(); - String exceptionMessage; - try { - if (this.lock.writeLock().tryLock(TIMEOUT, TimeUnit.MILLISECONDS)) { - try { - dataMap.putAll(map, 1000); - for (Map.Entry> entry : entries) { - allTreeMap.removeAll(entry.getKey()); - allTreeMap.putAll(entry.getKey(), entry.getValue()); - } - } finally { - lock.writeLock().unlock(); - } - } else { - throw new TimeoutException(); - } - } catch (Exception e) { - exceptionMessage = String.format( - "LOCK Operation of [RedisTreeDictionaryCache::putAll] encountered EXCEPTION [%s] for DICT [%s].", - e.getClass().getSimpleName(), valueClazz.getSimpleName()); - log.warn(exceptionMessage); - throw new RedisCacheAccessException(exceptionMessage, e); - } - } - - /** - * 将数据存入缓存。 - * - * @param id 通常为字典数据的主键。 - * @param data 字典数据对象。 - */ - @Override - public void put(K id, V data) { - if (id == null || data == null) { - return; - } - String stringData = JSON.toJSONString(data); - K parentId = parentIdGetter.apply(data); - String exceptionMessage; - try { - if (this.lock.writeLock().tryLock(TIMEOUT, TimeUnit.MILLISECONDS)) { - try { - String oldData = dataMap.put(id, stringData); - if (oldData != null) { - allTreeMap.remove(parentId, oldData); - } - allTreeMap.put(parentId, stringData); - } finally { - lock.writeLock().unlock(); - } - } else { - throw new TimeoutException(); - } - } catch (Exception e) { - exceptionMessage = String.format( - "LOCK Operation of [RedisTreeDictionaryCache::put] encountered EXCEPTION [%s] for DICT [%s].", - e.getClass().getSimpleName(), valueClazz.getSimpleName()); - log.warn(exceptionMessage); - throw new RedisCacheAccessException(exceptionMessage, e); - } - } - - /** - * 行为等同于接口中的描述。这里之所以重写,是因为不确定redisson的读写锁, - * 是否为可重入锁。 - * - * @param dataList 待缓存的数据列表。 - * @param force true则强制刷新,如果false,当缓存中存在数据时不刷新。 - */ - @Override - public void reload(List dataList, boolean force) { - // 锁外执行数据结构组装,降低锁的粒度,提高并发性。 - Map map = null; - Set>> entries = null; - if (CollectionUtils.isNotEmpty(dataList)) { - map = dataList.stream().collect(Collectors.toMap(idGetter, JSON::toJSONString)); - Multimap treeMap = LinkedListMultimap.create(); - for (V data : dataList) { - treeMap.put(parentIdGetter.apply(data), JSON.toJSONString(data)); - } - entries = treeMap.asMap().entrySet(); - } - String exceptionMessage; - try { - if (lock.writeLock().tryLock(TIMEOUT, TimeUnit.MILLISECONDS)) { - try { - // 如果不强制刷新,需要先判断缓存中是否存在数据。 - if (!force && this.getCount() > 0) { - return; - } - dataMap.clear(); - allTreeMap.clear(); - if (map != null) { - dataMap.putAll(map, 1000); - for (Map.Entry> entry : entries) { - allTreeMap.removeAll(entry.getKey()); - allTreeMap.putAll(entry.getKey(), entry.getValue()); - } - } - } finally { - lock.writeLock().unlock(); - } - } else { - throw new TimeoutException(); - } - } catch (Exception e) { - exceptionMessage = String.format( - "LOCK Operation of [RedisDictionaryCache::reload] encountered EXCEPTION [%s] for DICT [%s].", - e.getClass().getSimpleName(), valueClazz.getSimpleName()); - log.warn(exceptionMessage); - throw new RedisCacheAccessException(exceptionMessage, e); - } - } - - /** - * 删除缓存中指定的键。 - * - * @param id 待删除数据的主键。 - * @return 返回被删除的对象,如果主键不存在,返回null。 - */ - @Override - public V invalidate(K id) { - if (id == null) { - return null; - } - V data = null; - String exceptionMessage; - try { - if (this.lock.writeLock().tryLock(TIMEOUT, TimeUnit.MILLISECONDS)) { - try { - String stringData = dataMap.remove(id); - if (stringData != null) { - data = JSON.parseObject(stringData, valueClazz); - K parentId = parentIdGetter.apply(data); - allTreeMap.remove(parentId, stringData); - } - } finally { - lock.writeLock().unlock(); - } - } else { - throw new TimeoutException(); - } - } catch (Exception e) { - exceptionMessage = String.format( - "LOCK Operation of [RedisTreeDictionaryCache::invalidate] encountered EXCEPTION [%s] for DICT [%s].", - e.getClass().getSimpleName(), valueClazz.getSimpleName()); - log.warn(exceptionMessage); - throw new RedisCacheAccessException(exceptionMessage, e); - } - return data; - } - - /** - * 删除缓存中,参数列表中包含的键。 - * - * @param keys 待删除数据的主键集合。 - */ - @Override - public void invalidateSet(Set keys) { - if (CollectionUtils.isEmpty(keys)) { - return; - } - String exceptionMessage; - try { - if (lock.writeLock().tryLock(TIMEOUT, TimeUnit.MILLISECONDS)) { - try { - keys.forEach(id -> { - if (id != null) { - String stringData = dataMap.remove(id); - if (stringData != null) { - K parentId = parentIdGetter.apply(JSON.parseObject(stringData, valueClazz)); - allTreeMap.remove(parentId, stringData); - } - } - }); - } finally { - lock.writeLock().unlock(); - } - } else { - throw new TimeoutException(); - } - } catch (Exception e) { - exceptionMessage = String.format( - "LOCK Operation of [RedisTreeDictionaryCache::invalidateSet] encountered EXCEPTION [%s] for DICT [%s].", - e.getClass().getSimpleName(), valueClazz.getSimpleName()); - log.warn(exceptionMessage); - throw new RedisCacheAccessException(exceptionMessage, e); - } - } - - /** - * 清空缓存。 - */ - @Override - public void invalidateAll() { - String exceptionMessage; - try { - if (lock.writeLock().tryLock(TIMEOUT, TimeUnit.MILLISECONDS)) { - try { - dataMap.clear(); - allTreeMap.clear(); - } finally { - lock.writeLock().unlock(); - } - } else { - throw new TimeoutException(); - } - } catch (Exception e) { - exceptionMessage = String.format( - "LOCK Operation of [RedisTreeDictionaryCache::invalidateAll] encountered EXCEPTION [%s] for DICT [%s].", - e.getClass().getSimpleName(), valueClazz.getSimpleName()); - log.warn(exceptionMessage); - throw new RedisCacheAccessException(exceptionMessage, e); - } - } -} diff --git a/images/orange-demo-activiti-service/common/common-redis/src/main/java/com/orangeforms/common/redis/cache/RedissonCacheConfig.java b/images/orange-demo-activiti-service/common/common-redis/src/main/java/com/orangeforms/common/redis/cache/RedissonCacheConfig.java deleted file mode 100644 index 46f18f42..00000000 --- a/images/orange-demo-activiti-service/common/common-redis/src/main/java/com/orangeforms/common/redis/cache/RedissonCacheConfig.java +++ /dev/null @@ -1,67 +0,0 @@ -package com.orangeforms.common.redis.cache; - -import com.google.common.collect.Maps; -import org.redisson.api.RedissonClient; -import org.redisson.spring.cache.CacheConfig; -import org.redisson.spring.cache.RedissonSpringCacheManager; -import org.springframework.cache.CacheManager; -import org.springframework.cache.annotation.EnableCaching; -import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.Configuration; - -import java.util.Map; - -/** - * 使用Redisson作为Redis的分布式缓存库。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Configuration -@EnableCaching -public class RedissonCacheConfig { - - private static final int DEFAULT_TTL = 3600000; - - /** - * 定义cache名称、超时时长(毫秒)。 - */ - public enum CacheEnum { - /** - * session下上传文件名的缓存(时间是24小时)。 - */ - UPLOAD_FILENAME_CACHE(86400000), - /** - * 缺省全局缓存(时间是24小时)。 - */ - GLOBAL_CACHE(86400000); - - /** - * 缓存的时长(单位:毫秒) - */ - private int ttl = DEFAULT_TTL; - - CacheEnum() { - } - - CacheEnum(int ttl) { - this.ttl = ttl; - } - - public int getTtl() { - return ttl; - } - } - - /** - * 初始化缓存配置。 - */ - @Bean - CacheManager cacheManager(RedissonClient redissonClient) { - Map config = Maps.newHashMap(); - for (CacheEnum c : CacheEnum.values()) { - config.put(c.name(), new CacheConfig(c.getTtl(), 0)); - } - return new RedissonSpringCacheManager(redissonClient, config); - } -} diff --git a/images/orange-demo-activiti-service/common/common-redis/src/main/java/com/orangeforms/common/redis/cache/SessionCacheHelper.java b/images/orange-demo-activiti-service/common/common-redis/src/main/java/com/orangeforms/common/redis/cache/SessionCacheHelper.java deleted file mode 100644 index 9636aa54..00000000 --- a/images/orange-demo-activiti-service/common/common-redis/src/main/java/com/orangeforms/common/redis/cache/SessionCacheHelper.java +++ /dev/null @@ -1,97 +0,0 @@ -package com.orangeforms.common.redis.cache; - -import cn.hutool.core.collection.CollUtil; -import com.orangeforms.common.core.object.TokenData; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.cache.Cache; -import org.springframework.cache.CacheManager; -import org.springframework.stereotype.Component; - -import java.util.HashSet; -import java.util.Set; - -/** - * Session数据缓存辅助类。 - * - * @author Jerry - * @date 2021-06-06 - */ -@SuppressWarnings("unchecked") -@Component -public class SessionCacheHelper { - - @Autowired - private CacheManager cacheManager; - - /** - * 缓存当前session内,上传过的文件名。 - * - * @param filename 通常是本地存储的文件名,而不是上传时的原始文件名。 - */ - public void putSessionUploadFile(String filename) { - if (filename != null) { - Set sessionUploadFileSet = null; - Cache cache = cacheManager.getCache(RedissonCacheConfig.CacheEnum.UPLOAD_FILENAME_CACHE.name()); - Cache.ValueWrapper valueWrapper = cache.get(TokenData.takeFromRequest().getSessionId()); - if (valueWrapper != null) { - sessionUploadFileSet = (Set) valueWrapper.get(); - } - if (sessionUploadFileSet == null) { - sessionUploadFileSet = new HashSet<>(); - } - sessionUploadFileSet.add(filename); - cache.put(TokenData.takeFromRequest().getSessionId(), sessionUploadFileSet); - } - } - - /** - * 缓存当前Session可以下载的文件集合。 - * - * @param filenameSet 后台服务本地存储的文件名,而不是上传时的原始文件名。 - */ - public void putSessionDownloadableFileNameSet(Set filenameSet) { - if (CollUtil.isEmpty(filenameSet)) { - return; - } - Set sessionUploadFileSet = null; - Cache cache = cacheManager.getCache(RedissonCacheConfig.CacheEnum.UPLOAD_FILENAME_CACHE.name()); - Cache.ValueWrapper valueWrapper = cache.get(TokenData.takeFromRequest().getSessionId()); - if (valueWrapper != null) { - sessionUploadFileSet = (Set) valueWrapper.get(); - } - if (sessionUploadFileSet == null) { - sessionUploadFileSet = new HashSet<>(); - } - sessionUploadFileSet.addAll(filenameSet); - cache.put(TokenData.takeFromRequest().getSessionId(), sessionUploadFileSet); - } - - /** - * 判断参数中的文件名,是否有当前session上传。 - * - * @param filename 通常是本地存储的文件名,而不是上传时的原始文件名。 - * @return true表示该文件是由当前session上传并存储在本地的,否则false。 - */ - public boolean existSessionUploadFile(String filename) { - if (filename == null) { - return false; - } - Cache cache = cacheManager.getCache(RedissonCacheConfig.CacheEnum.UPLOAD_FILENAME_CACHE.name()); - Cache.ValueWrapper valueWrapper = cache.get(TokenData.takeFromRequest().getSessionId()); - if (valueWrapper == null) { - return false; - } - return ((Set) valueWrapper.get()).contains(filename); - } - - /** - * 清除当前session的所有缓存数据。 - * - * @param sessionId 当前会话的SessionId。 - */ - public void removeAllSessionCache(String sessionId) { - for (RedissonCacheConfig.CacheEnum c : RedissonCacheConfig.CacheEnum.values()) { - cacheManager.getCache(c.name()).evict(sessionId); - } - } -} diff --git a/images/orange-demo-activiti-service/common/common-redis/src/main/java/com/orangeforms/common/redis/config/RedissonConfig.java b/images/orange-demo-activiti-service/common/common-redis/src/main/java/com/orangeforms/common/redis/config/RedissonConfig.java deleted file mode 100644 index 1c1fbcf2..00000000 --- a/images/orange-demo-activiti-service/common/common-redis/src/main/java/com/orangeforms/common/redis/config/RedissonConfig.java +++ /dev/null @@ -1,105 +0,0 @@ -package com.orangeforms.common.redis.config; - -import cn.hutool.core.util.ArrayUtil; -import cn.hutool.core.util.StrUtil; -import com.orangeforms.common.core.exception.InvalidRedisModeException; -import org.redisson.Redisson; -import org.redisson.api.RedissonClient; -import org.redisson.config.Config; -import org.springframework.beans.factory.annotation.Value; -import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; -import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.Configuration; - -/** - * Redisson配置类。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Configuration -@ConditionalOnProperty(name = "redis.redisson.enabled", havingValue = "true") -public class RedissonConfig { - - @Value("${redis.redisson.lockWatchdogTimeout}") - private Integer lockWatchdogTimeout; - - @Value("${redis.redisson.mode}") - private String mode; - - /** - * 仅仅用于sentinel模式。 - */ - @Value("${redis.redisson.masterName:}") - private String masterName; - - @Value("${redis.redisson.address}") - private String address; - - @Value("${redis.redisson.timeout}") - private Integer timeout; - - @Value("${redis.redisson.password:}") - private String password; - - @Value("${redis.redisson.pool.poolSize}") - private Integer poolSize; - - @Value("${redis.redisson.pool.minIdle}") - private Integer minIdle; - - @Bean - public RedissonClient redissonClient() { - if (StrUtil.isBlank(password)) { - password = null; - } - Config config = new Config(); - if ("single".equals(mode)) { - config.setLockWatchdogTimeout(lockWatchdogTimeout) - .useSingleServer() - .setPassword(password) - .setAddress(address) - .setConnectionPoolSize(poolSize) - .setConnectionMinimumIdleSize(minIdle) - .setConnectTimeout(timeout); - } else if ("cluster".equals(mode)) { - String[] clusterAddresses = StrUtil.splitToArray(address, ','); - config.setLockWatchdogTimeout(lockWatchdogTimeout) - .useClusterServers() - .setPassword(password) - .addNodeAddress(clusterAddresses) - .setConnectTimeout(timeout) - .setMasterConnectionPoolSize(poolSize) - .setMasterConnectionMinimumIdleSize(minIdle); - } else if ("sentinel".equals(mode)) { - String[] sentinelAddresses = StrUtil.splitToArray(address, ','); - config.setLockWatchdogTimeout(lockWatchdogTimeout) - .useSentinelServers() - .setPassword(password) - .setMasterName(masterName) - .addSentinelAddress(sentinelAddresses) - .setConnectTimeout(timeout) - .setMasterConnectionPoolSize(poolSize) - .setMasterConnectionMinimumIdleSize(minIdle); - } else if ("master-slave".equals(mode)) { - String[] masterSlaveAddresses = StrUtil.splitToArray(address, ','); - if (masterSlaveAddresses.length == 1) { - throw new IllegalArgumentException( - "redis.redisson.address MUST have multiple redis addresses for master-slave mode."); - } - String[] slaveAddresses = new String[masterSlaveAddresses.length - 1]; - ArrayUtil.copy(masterSlaveAddresses, 1, slaveAddresses, 0, slaveAddresses.length); - config.setLockWatchdogTimeout(lockWatchdogTimeout) - .useMasterSlaveServers() - .setPassword(password) - .setMasterAddress(masterSlaveAddresses[0]) - .addSlaveAddress(slaveAddresses) - .setConnectTimeout(timeout) - .setMasterConnectionPoolSize(poolSize) - .setMasterConnectionMinimumIdleSize(minIdle); - } else { - throw new InvalidRedisModeException(mode); - } - return Redisson.create(config); - } -} diff --git a/images/orange-demo-activiti-service/common/common-redis/src/main/resources/META-INF/spring.factories b/images/orange-demo-activiti-service/common/common-redis/src/main/resources/META-INF/spring.factories deleted file mode 100644 index f24e3d92..00000000 --- a/images/orange-demo-activiti-service/common/common-redis/src/main/resources/META-INF/spring.factories +++ /dev/null @@ -1,2 +0,0 @@ -org.springframework.boot.autoconfigure.EnableAutoConfiguration=\ -com.orangeforms.common.redis.config.RedissonConfig \ No newline at end of file diff --git a/images/orange-demo-activiti-service/common/common-sequence/pom.xml b/images/orange-demo-activiti-service/common/common-sequence/pom.xml deleted file mode 100644 index 36502af3..00000000 --- a/images/orange-demo-activiti-service/common/common-sequence/pom.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - common - com.orangeforms - 1.0.0 - - 4.0.0 - - common-sequence - 1.0.0 - common-sequence - jar - - - - com.orangeforms - common-core - 1.0.0 - - - \ No newline at end of file diff --git a/images/orange-demo-activiti-service/common/common-sequence/src/main/java/com/orangeforms/common/sequence/config/IdGeneratorAutoConfig.java b/images/orange-demo-activiti-service/common/common-sequence/src/main/java/com/orangeforms/common/sequence/config/IdGeneratorAutoConfig.java deleted file mode 100644 index efee26bf..00000000 --- a/images/orange-demo-activiti-service/common/common-sequence/src/main/java/com/orangeforms/common/sequence/config/IdGeneratorAutoConfig.java +++ /dev/null @@ -1,14 +0,0 @@ -package com.orangeforms.common.sequence.config; - -import org.springframework.boot.context.properties.EnableConfigurationProperties; - -/** - * common-sequence模块的自动配置引导类。 - * - * @author Jerry - * @date 2021-06-06 - */ -@EnableConfigurationProperties({IdGeneratorProperties.class}) -public class IdGeneratorAutoConfig { - -} diff --git a/images/orange-demo-activiti-service/common/common-sequence/src/main/java/com/orangeforms/common/sequence/config/IdGeneratorProperties.java b/images/orange-demo-activiti-service/common/common-sequence/src/main/java/com/orangeforms/common/sequence/config/IdGeneratorProperties.java deleted file mode 100644 index bd89bd80..00000000 --- a/images/orange-demo-activiti-service/common/common-sequence/src/main/java/com/orangeforms/common/sequence/config/IdGeneratorProperties.java +++ /dev/null @@ -1,20 +0,0 @@ -package com.orangeforms.common.sequence.config; - -import lombok.Data; -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * common-sequence模块的配置类。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Data -@ConfigurationProperties(prefix = "sequence") -public class IdGeneratorProperties { - - /** - * 基础版生成器所需的WorkNode参数值。仅当advanceIdGenerator为false时生效。 - */ - private Integer snowflakeWorkNode = 1; -} diff --git a/images/orange-demo-activiti-service/common/common-sequence/src/main/java/com/orangeforms/common/sequence/generator/BasicIdGenerator.java b/images/orange-demo-activiti-service/common/common-sequence/src/main/java/com/orangeforms/common/sequence/generator/BasicIdGenerator.java deleted file mode 100644 index fad8e0e2..00000000 --- a/images/orange-demo-activiti-service/common/common-sequence/src/main/java/com/orangeforms/common/sequence/generator/BasicIdGenerator.java +++ /dev/null @@ -1,48 +0,0 @@ -package com.orangeforms.common.sequence.generator; - -import cn.hutool.core.lang.Snowflake; -import cn.hutool.core.util.IdUtil; - -/** - * 基础版snowflake计算工具类。 - * 和SnowflakeIdGenerator相比,相同点是均为基于Snowflake算法的生成器。不同点在于当前类的 - * WorkNodeId是通过配置文件静态指定的。而SnowflakeIdGenerator的WorkNodeId是由zk生成的。 - * - * @author Jerry - * @date 2021-06-06 - */ -public class BasicIdGenerator implements MyIdGenerator { - - private final Snowflake snowflake; - - /** - * 构造函数。 - * - * @param workNode 工作节点。 - */ - public BasicIdGenerator(Integer workNode) { - snowflake = IdUtil.createSnowflake(workNode, 0); - } - - /** - * 获取基于Snowflake算法的数值型Id。 - * 由于底层实现为synchronized方法,因此计算过程串行化,且线程安全。 - * - * @return 计算后的全局唯一Id。 - */ - @Override - public long nextLongId() { - return this.snowflake.nextId(); - } - - /** - * 获取基于Snowflake算法的字符串Id。 - * 由于底层实现为synchronized方法,因此计算过程串行化,且线程安全。 - * - * @return 计算后的全局唯一Id。 - */ - @Override - public String nextStringId() { - return this.snowflake.nextIdStr(); - } -} diff --git a/images/orange-demo-activiti-service/common/common-sequence/src/main/java/com/orangeforms/common/sequence/generator/MyIdGenerator.java b/images/orange-demo-activiti-service/common/common-sequence/src/main/java/com/orangeforms/common/sequence/generator/MyIdGenerator.java deleted file mode 100644 index 29c4e3d7..00000000 --- a/images/orange-demo-activiti-service/common/common-sequence/src/main/java/com/orangeforms/common/sequence/generator/MyIdGenerator.java +++ /dev/null @@ -1,24 +0,0 @@ -package com.orangeforms.common.sequence.generator; - -/** - * 分布式Id生成器的统一接口。 - * - * @author Jerry - * @date 2021-06-06 - */ -public interface MyIdGenerator { - - /** - * 获取数值型分布式Id。 - * - * @return 生成后的Id。 - */ - long nextLongId(); - - /** - * 获取字符型分布式Id。 - * - * @return 生成后的Id。 - */ - String nextStringId(); -} diff --git a/images/orange-demo-activiti-service/common/common-sequence/src/main/java/com/orangeforms/common/sequence/wrapper/IdGeneratorWrapper.java b/images/orange-demo-activiti-service/common/common-sequence/src/main/java/com/orangeforms/common/sequence/wrapper/IdGeneratorWrapper.java deleted file mode 100644 index 41110d18..00000000 --- a/images/orange-demo-activiti-service/common/common-sequence/src/main/java/com/orangeforms/common/sequence/wrapper/IdGeneratorWrapper.java +++ /dev/null @@ -1,52 +0,0 @@ -package com.orangeforms.common.sequence.wrapper; - -import com.orangeforms.common.sequence.config.IdGeneratorProperties; -import com.orangeforms.common.sequence.generator.BasicIdGenerator; -import com.orangeforms.common.sequence.generator.MyIdGenerator; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Component; - -import javax.annotation.PostConstruct; - -/** - * 分布式Id生成器的封装类。该对象可根据配置选择不同的生成器实现类。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Component -public class IdGeneratorWrapper { - - @Autowired - private IdGeneratorProperties properties; - /** - * Id生成器接口对象。 - */ - private MyIdGenerator idGenerator; - - /** - * 今后如果支持更多Id生成器时,可以在该函数内实现不同生成器的动态选择。 - */ - @PostConstruct - public void init() { - idGenerator = new BasicIdGenerator(properties.getSnowflakeWorkNode()); - } - - /** - * 由于底层实现为synchronized方法,因此计算过程串行化,且线程安全。 - * - * @return 计算后的全局唯一Id。 - */ - public long nextLongId() { - return idGenerator.nextLongId(); - } - - /** - * 由于底层实现为synchronized方法,因此计算过程串行化,且线程安全。 - * - * @return 计算后的全局唯一Id。 - */ - public String nextStringId() { - return idGenerator.nextStringId(); - } -} diff --git a/images/orange-demo-activiti-service/common/common-sequence/src/main/resources/META-INF/spring.factories b/images/orange-demo-activiti-service/common/common-sequence/src/main/resources/META-INF/spring.factories deleted file mode 100644 index dd267e85..00000000 --- a/images/orange-demo-activiti-service/common/common-sequence/src/main/resources/META-INF/spring.factories +++ /dev/null @@ -1,2 +0,0 @@ -org.springframework.boot.autoconfigure.EnableAutoConfiguration=\ -com.orangeforms.common.sequence.config.IdGeneratorAutoConfig \ No newline at end of file diff --git a/images/orange-demo-activiti-service/common/common-swagger/pom.xml b/images/orange-demo-activiti-service/common/common-swagger/pom.xml deleted file mode 100644 index c1e9bcde..00000000 --- a/images/orange-demo-activiti-service/common/common-swagger/pom.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - common - com.orangeforms - 1.0.0 - - 4.0.0 - - common-swagger - 1.0.0 - common-swagger - jar - - - - com.github.xiaoymin - knife4j-spring-boot-starter - ${knife4j.version} - - - org.springframework.plugin - spring-plugin-core - - - org.springframework.plugin - spring-plugin-metadata - - - - - com.orangeforms - common-core - 1.0.0 - - - \ No newline at end of file diff --git a/images/orange-demo-activiti-service/common/common-swagger/src/main/java/com/orangeforms/common/swagger/config/SwaggerAutoConfiguration.java b/images/orange-demo-activiti-service/common/common-swagger/src/main/java/com/orangeforms/common/swagger/config/SwaggerAutoConfiguration.java deleted file mode 100644 index 39680503..00000000 --- a/images/orange-demo-activiti-service/common/common-swagger/src/main/java/com/orangeforms/common/swagger/config/SwaggerAutoConfiguration.java +++ /dev/null @@ -1,67 +0,0 @@ -package com.orangeforms.common.swagger.config; - -import com.orangeforms.common.core.annotation.MyRequestBody; -import com.github.xiaoymin.knife4j.spring.annotations.EnableKnife4j; -import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; -import org.springframework.boot.context.properties.EnableConfigurationProperties; -import org.springframework.context.annotation.Bean; -import springfox.documentation.builders.ApiInfoBuilder; -import springfox.documentation.builders.PathSelectors; -import springfox.documentation.builders.RequestHandlerSelectors; -import springfox.documentation.service.ApiInfo; -import springfox.documentation.spi.DocumentationType; -import springfox.documentation.spring.web.plugins.Docket; -import springfox.documentation.swagger2.annotations.EnableSwagger2WebMvc; - -/** - * 自动加载bean的配置对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@EnableSwagger2WebMvc -@EnableKnife4j -@EnableConfigurationProperties(SwaggerProperties.class) -@ConditionalOnProperty(prefix = "swagger", name = "enabled") -public class SwaggerAutoConfiguration { - - @Bean - public Docket upmsDocket(SwaggerProperties properties) { - return new Docket(DocumentationType.SWAGGER_2) - .groupName("1. 用户权限分组接口") - .ignoredParameterTypes(MyRequestBody.class) - .apiInfo(apiInfo(properties)) - .select() - .apis(RequestHandlerSelectors.basePackage(properties.getServiceBasePackage() + ".upms.controller")) - .paths(PathSelectors.any()).build(); - } - - @Bean - public Docket bizDocket(SwaggerProperties properties) { - return new Docket(DocumentationType.SWAGGER_2) - .groupName("2. 业务应用分组接口") - .ignoredParameterTypes(MyRequestBody.class) - .apiInfo(apiInfo(properties)) - .select() - .apis(RequestHandlerSelectors.basePackage(properties.getServiceBasePackage() + ".app.controller")) - .paths(PathSelectors.any()).build(); - } - - @Bean - public Docket workflowDocket(SwaggerProperties properties) { - return new Docket(DocumentationType.SWAGGER_2) - .groupName("3. 工作流通用操作接口") - .ignoredParameterTypes(MyRequestBody.class) - .apiInfo(apiInfo(properties)) - .select() - .apis(RequestHandlerSelectors.basePackage(properties.getBasePackage() + ".common.flow.controller")) - .paths(PathSelectors.any()).build(); - } - - private ApiInfo apiInfo(SwaggerProperties properties) { - return new ApiInfoBuilder() - .title(properties.getTitle()) - .description(properties.getDescription()) - .version(properties.getVersion()).build(); - } -} diff --git a/images/orange-demo-activiti-service/common/common-swagger/src/main/java/com/orangeforms/common/swagger/config/SwaggerProperties.java b/images/orange-demo-activiti-service/common/common-swagger/src/main/java/com/orangeforms/common/swagger/config/SwaggerProperties.java deleted file mode 100644 index e5e43aeb..00000000 --- a/images/orange-demo-activiti-service/common/common-swagger/src/main/java/com/orangeforms/common/swagger/config/SwaggerProperties.java +++ /dev/null @@ -1,45 +0,0 @@ -package com.orangeforms.common.swagger.config; - -import lombok.Data; -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * 配置参数对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Data -@ConfigurationProperties("swagger") -public class SwaggerProperties { - - /** - * 是否开启Swagger。 - */ - private Boolean enabled; - - /** - * Swagger解析的基础包路径。 - **/ - private String basePackage = ""; - - /** - * Swagger解析的服务包路径。 - **/ - private String serviceBasePackage = ""; - - /** - * ApiInfo中的标题。 - **/ - private String title = ""; - - /** - * ApiInfo中的描述信息。 - **/ - private String description = ""; - - /** - * ApiInfo中的版本信息。 - **/ - private String version = ""; -} diff --git a/images/orange-demo-activiti-service/common/common-swagger/src/main/java/com/orangeforms/common/swagger/plugin/ByteBuddyUtil.java b/images/orange-demo-activiti-service/common/common-swagger/src/main/java/com/orangeforms/common/swagger/plugin/ByteBuddyUtil.java deleted file mode 100644 index adc5d790..00000000 --- a/images/orange-demo-activiti-service/common/common-swagger/src/main/java/com/orangeforms/common/swagger/plugin/ByteBuddyUtil.java +++ /dev/null @@ -1,85 +0,0 @@ -package com.orangeforms.common.swagger.plugin; - -import cn.hutool.core.lang.Assert; -import com.orangeforms.common.core.annotation.MyRequestBody; -import com.github.xiaoymin.knife4j.core.conf.Consts; -import javassist.*; -import lombok.extern.slf4j.Slf4j; -import org.apache.commons.lang3.StringUtils; -import springfox.documentation.service.ResolvedMethodParameter; - -import java.util.List; - -/** - * 通过字节码方式动态创建接口参数封装对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Slf4j -class ByteBuddyUtil { - private static final ClassPool CLASS_POOL = ClassPool.getDefault(); - - static Class createDynamicModelClass(String name, List parameters) { - String clazzName = Consts.BASE_PACKAGE_PREFIX + name; - try { - CtClass tmp = CLASS_POOL.getCtClass(clazzName); - if (tmp != null) { - tmp.detach(); - } - } catch (NotFoundException e) { - // 需要吃掉这个异常。 - } - CtClass ctClass = CLASS_POOL.makeClass(clazzName); - try { - int fieldCount = 0; - for (ResolvedMethodParameter dynamicParameter : parameters) { - // 因为在调用这个方法之前,这些参数都包含MyRequestBody注解。 - MyRequestBody myRequestBody = - dynamicParameter.findAnnotation(MyRequestBody.class).orElse(null); - Assert.notNull(myRequestBody); - String fieldName = dynamicParameter.defaultName().isPresent() - ? dynamicParameter.defaultName().get() : "parameter"; - if (StringUtils.isNotBlank(myRequestBody.value())) { - fieldName = myRequestBody.value(); - } - ctClass.addField(createField(dynamicParameter, fieldName, ctClass)); - fieldCount++; - } - if (fieldCount > 0) { - return ctClass.toClass(); - } - } catch (Throwable e) { - log.error(e.getMessage()); - } - return null; - } - - private static CtField createField(ResolvedMethodParameter parameter, String parameterName, CtClass ctClass) - throws NotFoundException, CannotCompileException { - CtField field = new CtField(getFieldType(parameter.getParameterType().getErasedType()), parameterName, ctClass); - field.setModifiers(Modifier.PUBLIC); - return field; - } - - private static CtClass getFieldType(Class propetyType) { - CtClass fieldType = null; - try { - if (!propetyType.isAssignableFrom(Void.class)) { - fieldType = CLASS_POOL.get(propetyType.getName()); - } else { - fieldType = CLASS_POOL.get(String.class.getName()); - } - } catch (NotFoundException e) { - // 抛异常 - ClassClassPath path = new ClassClassPath(propetyType); - CLASS_POOL.insertClassPath(path); - try { - fieldType = CLASS_POOL.get(propetyType.getName()); - } catch (NotFoundException e1) { - log.error(e1.getMessage(), e1); - } - } - return fieldType; - } -} diff --git a/images/orange-demo-activiti-service/common/common-swagger/src/main/java/com/orangeforms/common/swagger/plugin/DynamicBodyModelPlugin.java b/images/orange-demo-activiti-service/common/common-swagger/src/main/java/com/orangeforms/common/swagger/plugin/DynamicBodyModelPlugin.java deleted file mode 100644 index 98f68e86..00000000 --- a/images/orange-demo-activiti-service/common/common-swagger/src/main/java/com/orangeforms/common/swagger/plugin/DynamicBodyModelPlugin.java +++ /dev/null @@ -1,61 +0,0 @@ -package com.orangeforms.common.swagger.plugin; - -import com.orangeforms.common.core.annotation.MyRequestBody; -import com.fasterxml.classmate.TypeResolver; -import com.google.common.base.CaseFormat; -import org.apache.commons.collections4.CollectionUtils; -import org.apache.commons.lang3.StringUtils; -import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; -import org.springframework.core.Ordered; -import org.springframework.core.annotation.Order; -import org.springframework.stereotype.Component; -import springfox.documentation.service.ResolvedMethodParameter; -import springfox.documentation.spi.DocumentationType; -import springfox.documentation.spi.service.OperationModelsProviderPlugin; -import springfox.documentation.spi.service.contexts.RequestMappingContext; - -import java.util.List; -import java.util.stream.Collectors; - -/** - * 生成参数包装类的插件。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Component -@Order(Ordered.HIGHEST_PRECEDENCE + 200) -@ConditionalOnProperty(prefix = "swagger", name = "enabled") -public class DynamicBodyModelPlugin implements OperationModelsProviderPlugin { - - private final TypeResolver typeResolver; - - public DynamicBodyModelPlugin(TypeResolver typeResolver) { - this.typeResolver = typeResolver; - } - - @Override - public void apply(RequestMappingContext context) { - List parameterTypes = context.getParameters(); - if (CollectionUtils.isEmpty(parameterTypes)) { - return; - } - List bodyParameter = parameterTypes.stream() - .filter(p -> p.hasParameterAnnotation(MyRequestBody.class)).collect(Collectors.toList()); - if (CollectionUtils.isEmpty(bodyParameter)) { - return; - } - String groupName = CaseFormat.LOWER_HYPHEN.to(CaseFormat.UPPER_CAMEL, context.getGroupName()); - String clazzName = groupName + StringUtils.capitalize(context.getName()); - Class clazz = ByteBuddyUtil.createDynamicModelClass(clazzName, bodyParameter); - if (clazz != null) { - context.operationModelsBuilder().addInputParam(typeResolver.resolve(clazz)); - } - } - - @Override - public boolean supports(DocumentationType delimiter) { - // 支持2.0版本 - return delimiter == DocumentationType.SWAGGER_2; - } -} diff --git a/images/orange-demo-activiti-service/common/common-swagger/src/main/java/com/orangeforms/common/swagger/plugin/DynamicBodyParameterBuilder.java b/images/orange-demo-activiti-service/common/common-swagger/src/main/java/com/orangeforms/common/swagger/plugin/DynamicBodyParameterBuilder.java deleted file mode 100644 index 5c60299a..00000000 --- a/images/orange-demo-activiti-service/common/common-swagger/src/main/java/com/orangeforms/common/swagger/plugin/DynamicBodyParameterBuilder.java +++ /dev/null @@ -1,64 +0,0 @@ -package com.orangeforms.common.swagger.plugin; - -import com.orangeforms.common.core.annotation.MyRequestBody; -import com.google.common.base.CaseFormat; -import org.apache.commons.collections4.CollectionUtils; -import org.apache.commons.lang3.StringUtils; -import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; -import org.springframework.core.Ordered; -import org.springframework.core.annotation.Order; -import org.springframework.stereotype.Component; -import springfox.documentation.builders.ParameterBuilder; -import springfox.documentation.schema.ModelRef; -import springfox.documentation.service.Parameter; -import springfox.documentation.service.ResolvedMethodParameter; -import springfox.documentation.spi.DocumentationType; -import springfox.documentation.spi.service.OperationBuilderPlugin; -import springfox.documentation.spi.service.contexts.OperationContext; -import springfox.documentation.spi.service.contexts.ParameterContext; - -import java.util.ArrayList; -import java.util.List; -import java.util.stream.Collectors; - -/** - * 构建操作接口参数对象的插件。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Component -@Order(Ordered.HIGHEST_PRECEDENCE + 102) -@ConditionalOnProperty(prefix = "swagger", name = "enabled") -public class DynamicBodyParameterBuilder implements OperationBuilderPlugin { - - @Override - public void apply(OperationContext context) { - List methodParameters = context.getParameters(); - List parameters = new ArrayList<>(); - if (CollectionUtils.isNotEmpty(methodParameters)) { - List bodyParameter = methodParameters.stream() - .filter(p -> p.hasParameterAnnotation(MyRequestBody.class)).collect(Collectors.toList()); - if (CollectionUtils.isNotEmpty(bodyParameter)) { - // 构造model - String groupName = CaseFormat.LOWER_HYPHEN.to(CaseFormat.UPPER_CAMEL, context.getGroupName()); - String clazzName = groupName + StringUtils.capitalize(context.getName()); - ResolvedMethodParameter methodParameter = bodyParameter.get(0); - ParameterContext parameterContext = new ParameterContext(methodParameter, - new ParameterBuilder(), - context.getDocumentationContext(), - context.getGenericsNamingStrategy(), - context); - Parameter parameter = parameterContext.parameterBuilder() - .parameterType("body").modelRef(new ModelRef(clazzName)).name(clazzName).build(); - parameters.add(parameter); - } - } - context.operationBuilder().parameters(parameters); - } - - @Override - public boolean supports(DocumentationType delimiter) { - return delimiter == DocumentationType.SWAGGER_2; - } -} diff --git a/images/orange-demo-activiti-service/common/common-swagger/src/main/resources/META-INF/spring.factories b/images/orange-demo-activiti-service/common/common-swagger/src/main/resources/META-INF/spring.factories deleted file mode 100644 index cc7814c5..00000000 --- a/images/orange-demo-activiti-service/common/common-swagger/src/main/resources/META-INF/spring.factories +++ /dev/null @@ -1,2 +0,0 @@ -org.springframework.boot.autoconfigure.EnableAutoConfiguration=\ -com.orangeforms.common.swagger.config.SwaggerAutoConfiguration \ No newline at end of file diff --git a/images/orange-demo-activiti-service/common/pom.xml b/images/orange-demo-activiti-service/common/pom.xml deleted file mode 100644 index 2f63ca4f..00000000 --- a/images/orange-demo-activiti-service/common/pom.xml +++ /dev/null @@ -1,26 +0,0 @@ - - - - com.orangeforms - DemoFlow - 1.0.0 - - 4.0.0 - - common - pom - - - common-core - common-log - common-datafilter - common-online - common-online-api - common-flow-online - common-flow - common-redis - common-sequence - common-swagger - - diff --git a/images/orange-demo-activiti-service/framework/apidoc-tools/pom.xml b/images/orange-demo-activiti-service/framework/apidoc-tools/pom.xml deleted file mode 100644 index 384b3743..00000000 --- a/images/orange-demo-activiti-service/framework/apidoc-tools/pom.xml +++ /dev/null @@ -1,29 +0,0 @@ - - - - framework - com.orangeforms - 1.0.0 - - 4.0.0 - - apidoc-tools - 1.0.0 - apidoc-tools - jar - - - - com.orangeforms - common-core - 1.0.0 - - - com.thoughtworks.qdox - qdox - ${qdox.version} - - - \ No newline at end of file diff --git a/images/orange-demo-activiti-service/framework/apidoc-tools/src/main/java/com/orangeforms/apidoc/tools/ExportApiApp.java b/images/orange-demo-activiti-service/framework/apidoc-tools/src/main/java/com/orangeforms/apidoc/tools/ExportApiApp.java deleted file mode 100644 index 16236cd5..00000000 --- a/images/orange-demo-activiti-service/framework/apidoc-tools/src/main/java/com/orangeforms/apidoc/tools/ExportApiApp.java +++ /dev/null @@ -1,28 +0,0 @@ -package com.orangeforms.apidoc.tools; - -import com.alibaba.fastjson.JSON; -import com.orangeforms.apidoc.tools.codeparser.ApiCodeConfig; -import com.orangeforms.apidoc.tools.codeparser.ApiCodeParser; -import com.orangeforms.apidoc.tools.export.ApiPostmanExporter; -import freemarker.template.TemplateException; -import org.springframework.util.StreamUtils; - -import java.io.IOException; -import java.io.InputStream; -import java.nio.charset.StandardCharsets; - -public class ExportApiApp { - - public static void main(String[] args) throws IOException, TemplateException { - // 在第一次导出时,需要打开export-api-config.json配置文件, - // 修改其中的工程根目录配置项(projectRootPath),其他配置保持不变即可。 - InputStream in = ExportApiApp.class.getResourceAsStream("/export-api-config.json"); - String jsonData = StreamUtils.copyToString(in, StandardCharsets.UTF_8); - ApiCodeConfig apiCodeConfig = JSON.parseObject(jsonData, ApiCodeConfig.class); - ApiCodeParser apiCodeParser = new ApiCodeParser(apiCodeConfig); - ApiCodeParser.ApiProject project = apiCodeParser.doParse(); - ApiPostmanExporter exporter = new ApiPostmanExporter(); - // 将下面的目录改为实际输出目录。 - exporter.doGenerate(project, "/xxx/Desktop/1.json"); - } -} diff --git a/images/orange-demo-activiti-service/framework/apidoc-tools/src/main/java/com/orangeforms/apidoc/tools/ExportDocApp.java b/images/orange-demo-activiti-service/framework/apidoc-tools/src/main/java/com/orangeforms/apidoc/tools/ExportDocApp.java deleted file mode 100644 index 06c9613a..00000000 --- a/images/orange-demo-activiti-service/framework/apidoc-tools/src/main/java/com/orangeforms/apidoc/tools/ExportDocApp.java +++ /dev/null @@ -1,28 +0,0 @@ -package com.orangeforms.apidoc.tools; - -import com.alibaba.fastjson.JSON; -import com.orangeforms.apidoc.tools.codeparser.ApiCodeConfig; -import com.orangeforms.apidoc.tools.codeparser.ApiCodeParser; -import com.orangeforms.apidoc.tools.export.ApiDocExporter; -import freemarker.template.TemplateException; -import org.springframework.util.StreamUtils; - -import java.io.IOException; -import java.io.InputStream; -import java.nio.charset.StandardCharsets; - -public class ExportDocApp { - - public static void main(String[] args) throws IOException, TemplateException { - // 在第一次导出时,需要打开export-api-config.json配置文件, - // 修改其中的工程根目录配置项(projectRootPath),其他配置保持不变即可。 - InputStream in = ExportDocApp.class.getResourceAsStream("/export-api-config.json"); - String jsonData = StreamUtils.copyToString(in, StandardCharsets.UTF_8); - ApiCodeConfig apiCodeConfig = JSON.parseObject(jsonData, ApiCodeConfig.class); - ApiCodeParser apiCodeParser = new ApiCodeParser(apiCodeConfig); - ApiCodeParser.ApiProject project = apiCodeParser.doParse(); - ApiDocExporter exporter = new ApiDocExporter(); - // 将下面的目录改为实际输出目录。 - exporter.doGenerate(project, "/xxx/Desktop/2.md"); - } -} diff --git a/images/orange-demo-activiti-service/framework/apidoc-tools/src/main/java/com/orangeforms/apidoc/tools/codeparser/ApiCodeConfig.java b/images/orange-demo-activiti-service/framework/apidoc-tools/src/main/java/com/orangeforms/apidoc/tools/codeparser/ApiCodeConfig.java deleted file mode 100644 index cb5c2346..00000000 --- a/images/orange-demo-activiti-service/framework/apidoc-tools/src/main/java/com/orangeforms/apidoc/tools/codeparser/ApiCodeConfig.java +++ /dev/null @@ -1,83 +0,0 @@ -package com.orangeforms.apidoc.tools.codeparser; - -import lombok.Data; - -import java.util.List; -import java.util.Set; - -/** - * 解析项目中接口信息的配置对象。 - * - * @author Jerry - * @date 2021-06-06 - */ -@Data -public class ApiCodeConfig { - - /** - * 项目名称。 - */ - private String projectName; - /** - * 项目的基础包名,如(com.demo.multi)。 - */ - private String basePackage; - /** - * 项目在本地文件系统中的根目录。这里需要注意的是,Windows用户请务必使用反斜杠作为目录分隔符。 - * 如:"e:/mypath/OrangeSingleDemo","/Users/xxx/OrangeSingleDemo"。 - */ - private String projectRootPath; - /** - * 是否为微服务项目。 - */ - private Boolean microService; - /** - * 服务配置列表。对于单体服务,至少也会有一个ServiceConfig对象。 - */ - private List serviceList; - - @Data - public static class ServiceConfig { - /** - * 服务名称。 - */ - private String serviceName; - /** - * 服务中文显示名称。 - */ - private String showName; - /** - * 服务所在目录,相对于工程目录的子目录。 - */ - private String servicePath; - /** - * 仅用于微服务工程。通常为服务路由路径,如:/admin/coursepaper。服务内的接口,都会加上该路径前缀。 - */ - private String serviceRequestPath; - /** - * 服务的端口号。 - */ - private String port; - /** - * Api Controller信息列表。 - */ - private List controllerInfoList; - } - - @Data - public static class ControllerInfo { - /** - * Controller.java等接口文件的所在目录。该目录仅为相对于服务代码目录的子目录。 - * 目录分隔符请务必使用反斜杠。如:"/com/orange/demo/app/controller"。 - */ - private String path; - /** - * 如果一个服务内,存在多个Controller目录,将再次生成二级子目录,目录名为groupName。(可使用中文) - */ - private String groupName; - /** - * 在当前Controller目录下,需要忽略的Controller列表 (只写类名即可)。如:LoginController。 - */ - private Set skipControllers; - } -} diff --git a/images/orange-demo-activiti-service/framework/apidoc-tools/src/main/java/com/orangeforms/apidoc/tools/codeparser/ApiCodeParser.java b/images/orange-demo-activiti-service/framework/apidoc-tools/src/main/java/com/orangeforms/apidoc/tools/codeparser/ApiCodeParser.java deleted file mode 100644 index af2cd281..00000000 --- a/images/orange-demo-activiti-service/framework/apidoc-tools/src/main/java/com/orangeforms/apidoc/tools/codeparser/ApiCodeParser.java +++ /dev/null @@ -1,672 +0,0 @@ -package com.orangeforms.apidoc.tools.codeparser; - -import cn.hutool.core.collection.CollUtil; -import cn.hutool.core.io.FileUtil; -import cn.hutool.core.util.StrUtil; -import com.orangeforms.common.core.object.Tuple2; -import com.orangeforms.apidoc.tools.exception.ApiCodeConfigParseException; -import com.thoughtworks.qdox.JavaProjectBuilder; -import com.thoughtworks.qdox.model.*; -import com.thoughtworks.qdox.model.impl.DefaultJavaParameterizedType; -import lombok.Data; - -import java.io.File; -import java.io.IOException; -import java.nio.charset.StandardCharsets; -import java.util.*; - -/** - * 解析项目中的接口信息,以及关联的Model、Dto和Mapper,主要用于生成接口文档。 - * - * @author Jerry - * @date 2021-06-06 - */ -public class ApiCodeParser { - - private static final String PATH_SEPERATOR = "/"; - private static final String REQUEST_MAPPING = "RequestMapping"; - private static final String FULL_REQUEST_MAPPING = "org.springframework.web.bind.annotation.RequestMapping"; - private static final String GET_MAPPING = "GetMapping"; - private static final String FULL_GET_MAPPING = "org.springframework.web.bind.annotation.GetMapping"; - private static final String POST_MAPPING = "PostMapping"; - private static final String FULL_POST_MAPPING = "org.springframework.web.bind.annotation.PostMapping"; - private static final String VALUE_PROP = "value"; - private static final String REQUIRED_PROP = "required"; - private static final String DELETED_COLUMN = "DeletedFlagColumn"; - - /** - * 忽略微服务间标准调用接口的导出。 - */ - private static final Set IGNORED_API_METHOD_SET = new HashSet<>(8); - - static { - IGNORED_API_METHOD_SET.add("listByIds"); - IGNORED_API_METHOD_SET.add("getById"); - IGNORED_API_METHOD_SET.add("existIds"); - IGNORED_API_METHOD_SET.add("existId"); - IGNORED_API_METHOD_SET.add("deleteById"); - IGNORED_API_METHOD_SET.add("deleteBy"); - IGNORED_API_METHOD_SET.add("listBy"); - IGNORED_API_METHOD_SET.add("listMapBy"); - IGNORED_API_METHOD_SET.add("listByNotInList"); - IGNORED_API_METHOD_SET.add("getBy"); - IGNORED_API_METHOD_SET.add("countBy"); - IGNORED_API_METHOD_SET.add("aggregateBy"); - } - - /** - * 基础配置。 - */ - private ApiCodeConfig config; - /** - * 工程对象。 - */ - private ApiProject apiProject; - /** - * 项目中所有的解析后Java文件,key是Java对象的全名,如:com.orangeforms.xxxx.Student。 - */ - private final Map projectJavaClassMap = new HashMap<>(128); - /** - * 存储服务数据。key为配置的serviceName。 - */ - private final Map serviceDataMap = new HashMap<>(8); - - /** - * 构造函数。 - * - * @param config 配置对象。 - */ - public ApiCodeParser(ApiCodeConfig config) { - this.config = config; - // 验证配置中的数据是否正确,出现错误直接抛出运行时异常。 - this.verifyConfigData(); - // 将配置文件中所有目录相关的参数,全部规格化处理,后续的使用中不用再做处理了。 - this.normalizeConfigPath(); - for (ApiCodeConfig.ServiceConfig serviceConfig : config.getServiceList()) { - InternalServiceData serviceData = new InternalServiceData(); - // 仅有微服务项目,需要添加服务路由路径。 - if (StrUtil.isNotBlank(serviceConfig.getServiceRequestPath())) { - String serviceRequestPath = ""; - if (!serviceRequestPath.equals(PATH_SEPERATOR)) { - serviceRequestPath = normalizePath(serviceConfig.getServiceRequestPath()); - } - serviceData.setServiceRequestPath(serviceRequestPath); - } - serviceDataMap.put(serviceConfig.getServiceName(), serviceData); - } - } - - /** - * 执行解析操作。 - * - * @return 解析后的工程对象。 - */ - public ApiProject doParse() throws IOException { - // 先把工程完整编译一遍,以便工程内的Java对象的引用信息更加完整。 - this.parseProject(); - // 开始逐级推演。 - apiProject = new ApiProject(); - apiProject.setProjectName(config.getProjectName()); - apiProject.setMicroService(config.getMicroService()); - apiProject.setServiceList(new LinkedList<>()); - for (ApiCodeConfig.ServiceConfig serviceConfig : config.getServiceList()) { - ApiService apiService = this.parseService(serviceConfig); - apiProject.getServiceList().add(apiService); - } - return apiProject; - } - - private void parseProject() throws IOException { - JavaProjectBuilder javaProjectBuilder = new JavaProjectBuilder(); - javaProjectBuilder.setEncoding(StandardCharsets.UTF_8.name()); - javaProjectBuilder.addSourceTree(new File(config.getProjectRootPath())); - // 全部导入,便于后续解析中使用和检索。 - for (JavaClass javaClass : javaProjectBuilder.getClasses()) { - projectJavaClassMap.put(javaClass.getFullyQualifiedName(), javaClass); - } - } - - private ApiService parseService(ApiCodeConfig.ServiceConfig serviceConfig) { - InternalServiceData serviceData = serviceDataMap.get(serviceConfig.getServiceName()); - ApiService apiService = new ApiService(); - apiService.setServiceName(serviceConfig.getServiceName()); - apiService.setShowName(serviceConfig.getShowName()); - apiService.setPort(serviceConfig.getPort()); - List controllerInfoList = serviceConfig.getControllerInfoList(); - // 准备解析接口文件 - for (ApiCodeConfig.ControllerInfo controllerInfo : controllerInfoList) { - JavaProjectBuilder javaControllerBuilder = new JavaProjectBuilder(); - javaControllerBuilder.addSourceTree(new File(controllerInfo.getPath())); - for (JavaClass javaClass : javaControllerBuilder.getClasses()) { - if (controllerInfo.getSkipControllers() != null - && controllerInfo.getSkipControllers().contains(javaClass.getName())) { - continue; - } - ApiClass apiClass = this.parseApiClass(controllerInfo, javaClass.getFullyQualifiedName(), serviceData); - if (apiClass != null) { - // 如果配置中,为当前ControllerInfo添加了groupName属性, - // 所有的生成后接口都会位于serviceName/groupName子目录,否则,都直接位于当前服务的子目录。 - if (StrUtil.isBlank(apiClass.getGroupName())) { - apiService.getDefaultGroupClassSet().add(apiClass); - } else { - Set groupedClassList = apiService.getGroupedClassMap() - .computeIfAbsent(apiClass.getGroupName(), k -> new TreeSet<>()); - groupedClassList.add(apiClass); - } - } - } - } - return apiService; - } - - private ApiClass parseApiClass( - ApiCodeConfig.ControllerInfo controllerInfo, - String classFullname, - InternalServiceData serviceData) { - // 去包含工程全部Class的Map中,找到当前ControllerClass。 - // 之所以这样做,主要是因为全工程分析controller文件,会包含更多更精确的对象关联信息。 - JavaClass controllerClass = this.projectJavaClassMap.get(classFullname); - List classAnnotations = controllerClass.getAnnotations(); - boolean hasControllerAnnotation = false; - String requestPath = ""; - for (JavaAnnotation annotation : classAnnotations) { - String annotationName = annotation.getType().getValue(); - if (this.isRequestMapping(annotationName) && annotation.getNamedParameter(VALUE_PROP) != null) { - requestPath = StrUtil.removeAll( - annotation.getNamedParameter(VALUE_PROP).toString(), "\""); - if (requestPath.equals(PATH_SEPERATOR) || StrUtil.isBlank(requestPath)) { - requestPath = ""; - } else { - requestPath = normalizePath(requestPath); - } - } - if (isController(annotationName)) { - hasControllerAnnotation = true; - } - } - if (!hasControllerAnnotation) { - return null; - } - requestPath = serviceData.getServiceRequestPath() + requestPath; - ApiClass apiClass = new ApiClass(); - apiClass.setName(controllerClass.getName()); - apiClass.setFullName(controllerClass.getFullyQualifiedName()); - apiClass.setComment(controllerClass.getComment()); - apiClass.setGroupName(controllerInfo.getGroupName()); - apiClass.setRequestPath(requestPath); - List methodList = this.parseApiMethodList(apiClass, controllerClass); - apiClass.setMethodList(methodList); - return apiClass; - } - - private boolean needToIgnore(JavaMethod method) { - return !method.isPublic() || method.isStatic() || IGNORED_API_METHOD_SET.contains(method.getName()); - } - - private List parseApiMethodList(ApiClass apiClass, JavaClass javaClass) { - List apiMethodList = new LinkedList<>(); - List methodList = javaClass.getMethods(); - for (JavaMethod method : methodList) { - if (this.needToIgnore(method)) { - continue; - } - List methodAnnotations = method.getAnnotations(); - Tuple2 result = this.parseRequestPathAndHttpMethod(methodAnnotations); - String methodRequestPath = result.getFirst(); - String httpMethod = result.getSecond(); - if (StrUtil.isNotBlank(methodRequestPath)) { - ApiMethod apiMethod = new ApiMethod(); - apiMethod.setName(method.getName()); - apiMethod.setComment(method.getComment()); - apiMethod.setHttpMethod(httpMethod); - methodRequestPath = StrUtil.removeAll(methodRequestPath, "\""); - methodRequestPath = apiClass.getRequestPath() + normalizePath(methodRequestPath); - apiMethod.setRequestPath(methodRequestPath); - apiMethod.setPathList(StrUtil.splitTrim(apiMethod.getRequestPath(), PATH_SEPERATOR)); - if (apiMethod.getRequestPath().contains("/listDict")) { - apiMethod.setListDictUrl(true); - } else if (apiMethod.getRequestPath().endsWith("/list") - || apiMethod.getRequestPath().endsWith("/listWithGroup") - || apiMethod.getRequestPath().contains("/listNotIn") - || apiMethod.getRequestPath().contains("/list")) { - apiMethod.setListUrl(true); - } else if (apiMethod.getRequestPath().contains("/doLogin")) { - apiMethod.setLoginUrl(true); - } - JavaClass returnClass = method.getReturns(); - if (returnClass.isVoid()) { - apiMethod.setReturnString("void"); - } else { - apiMethod.setReturnString(returnClass.getGenericValue()); - } - apiMethodList.add(apiMethod); - List apiArgumentList = this.parseApiMethodArgumentList(method); - apiMethod.setArgumentList(apiArgumentList); - this.classifyArgumentList(apiMethod, apiArgumentList); - } - } - return apiMethodList; - } - - private void classifyArgumentList(ApiMethod apiMethod, List apiArgumentList) { - for (ApiArgument arg : apiArgumentList) { - if (arg.getAnnotationType() == ApiArgumentAnnotationType.REQUEST_PARAM) { - if (arg.uploadFileParam) { - apiMethod.getUploadParamArgumentList().add(arg); - } else { - apiMethod.getQueryParamArgumentList().add(arg); - } - } - if (arg.getAnnotationType() != ApiArgumentAnnotationType.REQUEST_PARAM) { - apiMethod.getJsonParamArgumentList().add(arg); - } - } - } - - private Tuple2 parseRequestPathAndHttpMethod(List methodAnnotations) { - for (JavaAnnotation annotation : methodAnnotations) { - String annotationName = annotation.getType().getValue(); - if (GET_MAPPING.equals(annotationName) || FULL_GET_MAPPING.equals(annotationName)) { - String methodRequestPath = annotation.getNamedParameter(VALUE_PROP).toString(); - String httpMethod = "GET"; - return new Tuple2<>(methodRequestPath, httpMethod); - } - if (POST_MAPPING.equals(annotationName) || FULL_POST_MAPPING.equals(annotationName)) { - String methodRequestPath = annotation.getNamedParameter(VALUE_PROP).toString(); - String httpMethod = "POST"; - return new Tuple2<>(methodRequestPath, httpMethod); - } - } - return new Tuple2<>(null, null); - } - - private List parseApiMethodArgumentList(JavaMethod javaMethod) { - List apiArgumentList = new LinkedList<>(); - List parameterList = javaMethod.getParameters(); - if (CollUtil.isEmpty(parameterList)) { - return apiArgumentList; - } - for (JavaParameter parameter : parameterList) { - String typeName = parameter.getType().getValue(); - // 该类型的参数为Validator的验证结果对象,因此忽略。 - if ("BindingResult".equals(typeName) || this.isServletArgument(typeName)) { - continue; - } - ApiArgument apiArgument = this.parseApiMethodArgument(parameter); - apiArgumentList.add(apiArgument); - } - return apiArgumentList; - } - - private String parseMethodArgmentComment(JavaParameter parameter) { - String comment = null; - JavaExecutable executable = parameter.getExecutable(); - List tags = executable.getTagsByName("param"); - if (CollUtil.isNotEmpty(tags)) { - for (DocletTag tag : tags) { - if (tag.getValue().startsWith(parameter.getName())) { - comment = StrUtil.removePrefix(tag.getValue(), parameter.getName()).trim(); - break; - } - } - } - return comment; - } - - private ApiArgument parseApiMethodArgument(JavaParameter parameter) { - String typeName = parameter.getType().getValue(); - ApiArgument apiArgument = new ApiArgument(); - ApiArgumentAnnotation argumentAnnotation = - this.parseArgumentAnnotationTypeAndName(parameter.getAnnotations(), parameter.getName()); - apiArgument.setAnnotationType(argumentAnnotation.getType()); - apiArgument.setName(argumentAnnotation.getName()); - apiArgument.setTypeName(typeName); - apiArgument.setFullTypeName(parameter.getFullyQualifiedName()); - if (argumentAnnotation.getType() == ApiArgumentAnnotationType.REQUEST_PARAM) { - apiArgument.setRequired(argumentAnnotation.isRequired()); - } - String comment = parseMethodArgmentComment(parameter); - apiArgument.setComment(comment); - // 文件上传字段,是必填参数。 - if ("MultipartFile".equals(typeName)) { - apiArgument.setUploadFileParam(true); - apiArgument.setRequired(true); - return apiArgument; - } - // 对于内置类型,则无需继续处理了。所有和内置类型参数相关的处理,应该在之前完成。 - if (this.verifyAndSetBuiltinParam(apiArgument, typeName)) { - return apiArgument; - } - // 判断是否为集合类型的参数。 - if (this.isCollectionType(typeName)) { - apiArgument.setCollectionParam(true); - if (parameter.getType() instanceof DefaultJavaParameterizedType) { - DefaultJavaParameterizedType javaType = (DefaultJavaParameterizedType) parameter.getType(); - JavaType genericType = javaType.getActualTypeArguments().get(0); - ApiModel apiModel = this.buildApiModelForArgument(genericType.getFullyQualifiedName()); - apiArgument.setModelData(apiModel); - apiArgument.setFullTypeName(parameter.getGenericFullyQualifiedName()); - apiArgument.setTypeName(parameter.getGenericValue()); - } - } else { - ApiModel apiModel = this.buildApiModelForArgument(parameter.getFullyQualifiedName()); - apiArgument.setModelData(apiModel); - } - return apiArgument; - } - - private boolean verifyAndSetBuiltinParam(ApiArgument apiArgument, String typeName) { - if ("MyOrderParam".equals(typeName)) { - apiArgument.setOrderParam(true); - } else if ("MyPageParam".equals(typeName)) { - apiArgument.setPageParam(true); - } else if ("MyGroupParam".equals(typeName)) { - apiArgument.setGroupParam(true); - } else if ("MyQueryParam".equals(typeName)) { - apiArgument.setQueryParam(true); - } else if ("MyAggregationParam".equals(typeName)) { - apiArgument.setAggregationParam(true); - } - return apiArgument.isOrderParam() - || apiArgument.isPageParam() - || apiArgument.isGroupParam() - || apiArgument.isQueryParam() - || apiArgument.isAggregationParam(); - } - - private ApiArgumentAnnotation parseArgumentAnnotationTypeAndName( - List annotationList, String defaultName) { - ApiArgumentAnnotation argumentAnnotation = new ApiArgumentAnnotation(); - argumentAnnotation.setType(ApiArgumentAnnotationType.REQUEST_PARAM); - argumentAnnotation.setName(defaultName); - for (JavaAnnotation annotation : annotationList) { - String annotationName = annotation.getType().getValue(); - if ("RequestBody".equals(annotationName)) { - argumentAnnotation.setType(ApiArgumentAnnotationType.REQUEST_BODY); - return argumentAnnotation; - } else if ("MyRequestBody".equals(annotationName)) { - String annotationValue = this.getArgumentNameFromAnnotationValue(annotation, VALUE_PROP); - argumentAnnotation.setType(ApiArgumentAnnotationType.MY_REQUEST_BODY); - argumentAnnotation.setName(annotationValue != null ? annotationValue : defaultName); - return argumentAnnotation; - } else if ("RequestParam".equals(annotationName)) { - String annotationValue = this.getArgumentNameFromAnnotationValue(annotation, VALUE_PROP); - argumentAnnotation.setType(ApiArgumentAnnotationType.REQUEST_PARAM); - argumentAnnotation.setName(annotationValue != null ? annotationValue : defaultName); - String requiredValue = this.getArgumentNameFromAnnotationValue(annotation, REQUIRED_PROP); - if (StrUtil.isNotBlank(requiredValue)) { - argumentAnnotation.setRequired(Boolean.parseBoolean(requiredValue)); - } - return argumentAnnotation; - } - } - // 缺省为@RequestParam - return argumentAnnotation; - } - - private String getArgumentNameFromAnnotationValue(JavaAnnotation annotation, String attribute) { - Object value = annotation.getNamedParameter(attribute); - if (value == null) { - return null; - } - String paramAlias = value.toString(); - if (StrUtil.isNotBlank(paramAlias)) { - paramAlias = StrUtil.removeAll(paramAlias, "\""); - } - return paramAlias; - } - - private ApiModel buildApiModelForArgument(String fullJavaClassName) { - // 先从当前服务内的Model中找,如果参数是Model类型的对象,微服务和单体行为一致。 - ApiModel apiModel = apiProject.getFullNameModelMap().get(fullJavaClassName); - if (apiModel != null) { - return apiModel; - } - // 判断工程全局对象映射中是否包括该对象类型,如果不包含,就直接返回了。 - JavaClass modelClass = projectJavaClassMap.get(fullJavaClassName); - if (modelClass == null) { - return apiModel; - } - // 先行解析对象中的字段。 - apiModel = parseModel(modelClass); - apiProject.getFullNameModelMap().put(fullJavaClassName, apiModel); - return apiModel; - } - - private ApiModel parseModel(JavaClass javaClass) { - ApiModel apiModel = new ApiModel(); - apiModel.setName(javaClass.getName()); - apiModel.setFullName(javaClass.getFullyQualifiedName()); - apiModel.setComment(javaClass.getComment()); - apiModel.setFieldList(new LinkedList<>()); - List fieldList = javaClass.getFields(); - for (JavaField field : fieldList) { - if (field.isStatic()) { - continue; - } - ApiField apiField = new ApiField(); - apiField.setName(field.getName()); - apiField.setComment(field.getComment()); - apiField.setTypeName(field.getType().getSimpleName()); - apiModel.getFieldList().add(apiField); - } - return apiModel; - } - - private void verifyConfigData() { - if (StrUtil.isBlank(config.getProjectName())) { - throw new ApiCodeConfigParseException("ProjectName field can't be EMPTY."); - } - if (StrUtil.isBlank(config.getBasePackage())) { - throw new ApiCodeConfigParseException("BasePackage field can't be EMPTY."); - } - if (StrUtil.isBlank(config.getProjectRootPath())) { - throw new ApiCodeConfigParseException("ProjectRootPath field can't be EMPTY."); - } - if (!FileUtil.exist(config.getProjectRootPath())) { - throw new ApiCodeConfigParseException( - "ProjectRootPath doesn't exist, please check ./resources/export-api-config.json as DEFAULT."); - } - if (config.getMicroService() == null) { - throw new ApiCodeConfigParseException("MicroService field can't be NULL."); - } - if (CollUtil.isEmpty(config.getServiceList())) { - throw new ApiCodeConfigParseException("ServiceList field can't be EMPTY."); - } - this.verifyServiceConfig(config.getServiceList()); - } - - private void verifyServiceConfig(List serviceConfigList) { - Set serviceNameSet = new HashSet<>(8); - Set servicePathSet = new HashSet<>(8); - for (ApiCodeConfig.ServiceConfig serviceConfig : serviceConfigList) { - if (StrUtil.isBlank(serviceConfig.getServiceName())) { - throw new ApiCodeConfigParseException("One of the ServiceName Field in Services List is NULL."); - } - String serviceName = serviceConfig.getServiceName(); - if (StrUtil.isBlank(serviceConfig.getServicePath())) { - throw new ApiCodeConfigParseException( - "The ServicePath Field in Service [" + serviceName + "] is NULL."); - } - if (serviceNameSet.contains(serviceName)) { - throw new ApiCodeConfigParseException("The ServiceName [" + serviceName + "] is duplicated."); - } - serviceNameSet.add(serviceName); - if (servicePathSet.contains(serviceConfig.getServicePath())) { - throw new ApiCodeConfigParseException( - "The ServicePath [" + serviceConfig.getServicePath() + "] is duplicated."); - } - servicePathSet.add(serviceConfig.getServicePath()); - if (StrUtil.isBlank(serviceConfig.getPort())) { - throw new ApiCodeConfigParseException( - "The Port Field in Service [" + serviceName + "] is NULL."); - } - this.verifyServiceControllerConfig(serviceConfig.getControllerInfoList(), serviceName); - } - } - - private void verifyServiceControllerConfig( - List controllerInfoList, String serviceName) { - if (CollUtil.isEmpty(controllerInfoList)) { - throw new ApiCodeConfigParseException( - "The ControllerInfoList Field of Service [" + serviceName + "] is EMPTY"); - } - for (ApiCodeConfig.ControllerInfo controllerInfo : controllerInfoList) { - if (StrUtil.isBlank(controllerInfo.getPath())) { - throw new ApiCodeConfigParseException( - "One of the ControllerInfo.Path Field of Service [" + serviceName + "] is EMPTY"); - } - } - } - - private void normalizeConfigPath() { - config.setProjectRootPath(normalizePath(config.getProjectRootPath())); - for (ApiCodeConfig.ServiceConfig serviceConfig : config.getServiceList()) { - serviceConfig.setServicePath(config.getProjectRootPath() + normalizePath(serviceConfig.getServicePath())); - for (ApiCodeConfig.ControllerInfo controllerInfo : serviceConfig.getControllerInfoList()) { - controllerInfo.setPath(serviceConfig.getServicePath() + normalizePath(controllerInfo.getPath())); - } - } - } - - private String normalizePath(String path) { - if (!path.startsWith(PATH_SEPERATOR)) { - path = PATH_SEPERATOR + path; - } - return StrUtil.removeSuffix(path, PATH_SEPERATOR); - } - - private boolean isCollectionType(String typeName) { - return "List".equals(typeName) || "Set".equals(typeName) || "Collection".equals(typeName); - } - - private boolean isServletArgument(String typeName) { - return "HttpServletResponse".equals(typeName) || "HttpServletRequest".equals(typeName); - } - - private boolean isController(String annotationName) { - return "Controller".equals(annotationName) - || "org.springframework.stereotype.Controller".equals(annotationName) - || "RestController".equals(annotationName) - || "org.springframework.web.bind.annotation.RestController".equals(annotationName); - } - - private boolean isRequiredColumn(String annotationName) { - return "NotNull".equals(annotationName) - || "javax.validation.constraints.NotNull".equals(annotationName) - || "NotBlank".equals(annotationName) - || "javax.validation.constraints.NotBlank".equals(annotationName) - || "NotEmpty".equals(annotationName) - || "javax.validation.constraints.NotEmpty".equals(annotationName); - } - - private boolean isRequestMapping(String name) { - return REQUEST_MAPPING.equals(name) || FULL_REQUEST_MAPPING.equals(name); - } - - @Data - public static class ApiProject { - private String projectName; - private Boolean microService; - private List serviceList; - private Map fullNameModelMap = new HashMap<>(32); - private Map simpleNameModelMap = new HashMap<>(32); - } - - @Data - public static class ApiService { - private String serviceName; - private String showName; - private String port; - private Set defaultGroupClassSet = new TreeSet<>(); - private Map> groupedClassMap = new LinkedHashMap<>(); - } - - @Data - public static class ApiClass implements Comparable { - private String name; - private String fullName; - private String groupName; - private String comment; - private String requestPath; - private List methodList; - - @Override - public int compareTo(ApiClass o) { - return this.name.compareTo(o.name); - } - } - - @Data - public static class ApiMethod { - private String name; - private String comment; - private String returnString; - private String requestPath; - private String httpMethod; - private boolean listDictUrl = false; - private boolean listUrl = false; - private boolean loginUrl = false; - private List pathList = new LinkedList<>(); - private List argumentList; - private List queryParamArgumentList = new LinkedList<>(); - private List jsonParamArgumentList = new LinkedList<>(); - private List uploadParamArgumentList = new LinkedList<>(); - } - - @Data - public static class ApiArgument { - private String name; - private String typeName; - private String fullTypeName; - private String comment; - private Integer annotationType; - private boolean required = true; - private boolean uploadFileParam = false; - private boolean collectionParam = false; - private boolean orderParam = false; - private boolean pageParam = false; - private boolean groupParam = false; - private boolean queryParam = false; - private boolean aggregationParam = false; - private boolean jsonData = false; - private ApiModel modelData; - } - - @Data - public static class ApiArgumentAnnotation { - private String name; - private Integer type; - private boolean required = true; - } - - @Data - public static class ApiModel { - private String name; - private String fullName; - private String comment; - private List fieldList; - } - - @Data - public static class ApiField { - private String name; - private String comment; - private String typeName; - private boolean requiredColumn = false; - } - - public static final class ApiArgumentAnnotationType { - public static final int REQUEST_PARAM = 0; - public static final int REQUEST_BODY = 1; - public static final int MY_REQUEST_BODY = 2; - - private ApiArgumentAnnotationType() { - } - } - - @Data - private static class InternalServiceData { - private String serviceRequestPath = ""; - } -} diff --git a/images/orange-demo-activiti-service/framework/apidoc-tools/src/main/java/com/orangeforms/apidoc/tools/exception/ApiCodeConfigParseException.java b/images/orange-demo-activiti-service/framework/apidoc-tools/src/main/java/com/orangeforms/apidoc/tools/exception/ApiCodeConfigParseException.java deleted file mode 100644 index 24543e4a..00000000 --- a/images/orange-demo-activiti-service/framework/apidoc-tools/src/main/java/com/orangeforms/apidoc/tools/exception/ApiCodeConfigParseException.java +++ /dev/null @@ -1,27 +0,0 @@ -package com.orangeforms.apidoc.tools.exception; - -/** - * 解析接口信息配置对象中的异常。 - * - * @author Jerry - * @date 2021-06-06 - */ -public class ApiCodeConfigParseException extends RuntimeException { - - /** - * 构造函数。 - */ - public ApiCodeConfigParseException() { - - } - - /** - * 构造函数。 - * - * @param msg 错误信息。 - */ - public ApiCodeConfigParseException(String msg) { - super(msg); - } - -} diff --git a/images/orange-demo-activiti-service/framework/apidoc-tools/src/main/java/com/orangeforms/apidoc/tools/exception/MapperParseException.java b/images/orange-demo-activiti-service/framework/apidoc-tools/src/main/java/com/orangeforms/apidoc/tools/exception/MapperParseException.java deleted file mode 100644 index 9fd11870..00000000 --- a/images/orange-demo-activiti-service/framework/apidoc-tools/src/main/java/com/orangeforms/apidoc/tools/exception/MapperParseException.java +++ /dev/null @@ -1,27 +0,0 @@ -package com.orangeforms.apidoc.tools.exception; - -/** - * 解析Mybatis XML Mapper中的异常。 - * - * @author Jerry - * @date 2021-06-06 - */ -public class MapperParseException extends RuntimeException { - - /** - * 构造函数。 - */ - public MapperParseException() { - - } - - /** - * 构造函数。 - * - * @param msg 错误信息。 - */ - public MapperParseException(String msg) { - super(msg); - } - -} diff --git a/images/orange-demo-activiti-service/framework/apidoc-tools/src/main/java/com/orangeforms/apidoc/tools/export/ApiDocExporter.java b/images/orange-demo-activiti-service/framework/apidoc-tools/src/main/java/com/orangeforms/apidoc/tools/export/ApiDocExporter.java deleted file mode 100644 index 58695c14..00000000 --- a/images/orange-demo-activiti-service/framework/apidoc-tools/src/main/java/com/orangeforms/apidoc/tools/export/ApiDocExporter.java +++ /dev/null @@ -1,84 +0,0 @@ -package com.orangeforms.apidoc.tools.export; - -import com.orangeforms.apidoc.tools.codeparser.ApiCodeParser; -import com.orangeforms.apidoc.tools.util.FreeMarkerUtils; -import freemarker.template.Configuration; -import freemarker.template.TemplateException; -import freemarker.template.TemplateExceptionHandler; -import freemarker.template.TemplateModelException; -import org.apache.commons.io.FileUtils; - -import java.io.File; -import java.io.FileWriter; -import java.io.IOException; -import java.util.HashMap; -import java.util.LinkedList; -import java.util.List; -import java.util.Map; - -/** - * 根据代码解析后的工程对象数据,导出到Markdown格式的接口文档文件。 - * - * @author Jerry - * @date 2021-06-06 - */ -public class ApiDocExporter { - - private final Configuration config; - - public ApiDocExporter() throws TemplateModelException { - config = new Configuration(Configuration.VERSION_2_3_28); - config.setNumberFormat("0.####"); - config.setClassicCompatible(true); - config.setAPIBuiltinEnabled(true); - config.setClassForTemplateLoading(ApiPostmanExporter.class, "/templates/"); - config.setDefaultEncoding("UTF-8"); - config.setTemplateExceptionHandler(TemplateExceptionHandler.RETHROW_HANDLER); - config.setSharedVariable("freemarkerUtils", new FreeMarkerUtils()); - config.unsetCacheStorage(); - config.clearTemplateCache(); - } - - /** - * 生成Markdown格式的API接口文档。 - * - * @param apiProject 解析后的工程对象。 - * @param outputFile 生成后的、包含全路径的输出文件名。 - * @throws IOException 文件操作异常。 - * @throws TemplateException 模板实例化异常。 - */ - public void doGenerate(ApiCodeParser.ApiProject apiProject, String outputFile) throws IOException, TemplateException { - Map paramMap = new HashMap<>(1); - paramMap.put("project", apiProject); - List newServiceList = new LinkedList<>(); - if (apiProject.getMicroService()) { - // 在微服务场景中,我们需要把upms服务放到最前面显示。 - for (ApiCodeParser.ApiService apiService : apiProject.getServiceList()) { - if ("upms".equals(apiService.getServiceName())) { - newServiceList.add(apiService); - break; - } - } - for (ApiCodeParser.ApiService apiService : apiProject.getServiceList()) { - if (!"upms".equals(apiService.getServiceName())) { - newServiceList.add(apiService); - } - } - } else { - ApiCodeParser.ApiService appService = apiProject.getServiceList().get(0); - ApiCodeParser.ApiService newUpmsService = new ApiCodeParser.ApiService(); - newUpmsService.setDefaultGroupClassSet(appService.getGroupedClassMap().get("upms")); - newUpmsService.setServiceName("upms"); - newUpmsService.setShowName("用户权限模块"); - newServiceList.add(newUpmsService); - ApiCodeParser.ApiService newAppService = new ApiCodeParser.ApiService(); - newAppService.setDefaultGroupClassSet(appService.getGroupedClassMap().get("app")); - newAppService.setServiceName("app"); - newAppService.setShowName("业务应用模块"); - newServiceList.add(newAppService); - } - apiProject.setServiceList(newServiceList); - FileUtils.forceMkdirParent(new File(outputFile)); - config.getTemplate("./api-doc.md.ftl").process(paramMap, new FileWriter(outputFile)); - } -} diff --git a/images/orange-demo-activiti-service/framework/apidoc-tools/src/main/java/com/orangeforms/apidoc/tools/export/ApiPostmanExporter.java b/images/orange-demo-activiti-service/framework/apidoc-tools/src/main/java/com/orangeforms/apidoc/tools/export/ApiPostmanExporter.java deleted file mode 100644 index c630c2c4..00000000 --- a/images/orange-demo-activiti-service/framework/apidoc-tools/src/main/java/com/orangeforms/apidoc/tools/export/ApiPostmanExporter.java +++ /dev/null @@ -1,53 +0,0 @@ -package com.orangeforms.apidoc.tools.export; - -import com.orangeforms.apidoc.tools.codeparser.ApiCodeParser; -import com.orangeforms.apidoc.tools.util.FreeMarkerUtils; -import freemarker.template.Configuration; -import freemarker.template.TemplateException; -import freemarker.template.TemplateExceptionHandler; -import freemarker.template.TemplateModelException; -import org.apache.commons.io.FileUtils; - -import java.io.File; -import java.io.FileWriter; -import java.io.IOException; -import java.util.HashMap; -import java.util.Map; - -/** - * 根据代码解析后的工程对象数据,导出到Postman支持的JSON格式的文件。 - * - * @author Jerry - * @date 2021-06-06 - */ -public class ApiPostmanExporter { - - private final Configuration config; - - public ApiPostmanExporter() throws TemplateModelException { - config = new Configuration(Configuration.VERSION_2_3_28); - config.setNumberFormat("0.####"); - config.setClassicCompatible(true); - config.setAPIBuiltinEnabled(true); - config.setClassForTemplateLoading(ApiPostmanExporter.class, "/templates/"); - config.setDefaultEncoding("UTF-8"); - config.setTemplateExceptionHandler(TemplateExceptionHandler.RETHROW_HANDLER); - config.setSharedVariable("freemarkerUtils", new FreeMarkerUtils()); - config.unsetCacheStorage(); - config.clearTemplateCache(); - } - - /** - * 生成Postman支持的JSON文档。 - * @param apiProject 解析后的工程对象。 - * @param outputFile 生成后的、包含全路径的输出文件名。 - * @throws IOException 文件操作异常。 - * @throws TemplateException 模板实例化异常。 - */ - public void doGenerate(ApiCodeParser.ApiProject apiProject, String outputFile) throws IOException, TemplateException { - Map paramMap = new HashMap<>(1); - paramMap.put("project", apiProject); - FileUtils.forceMkdirParent(new File(outputFile)); - config.getTemplate("./postman_collection.json.ftl").process(paramMap, new FileWriter(outputFile)); - } -} diff --git a/images/orange-demo-activiti-service/framework/apidoc-tools/src/main/java/com/orangeforms/apidoc/tools/util/FreeMarkerUtils.java b/images/orange-demo-activiti-service/framework/apidoc-tools/src/main/java/com/orangeforms/apidoc/tools/util/FreeMarkerUtils.java deleted file mode 100644 index 73e8c030..00000000 --- a/images/orange-demo-activiti-service/framework/apidoc-tools/src/main/java/com/orangeforms/apidoc/tools/util/FreeMarkerUtils.java +++ /dev/null @@ -1,28 +0,0 @@ -package com.orangeforms.apidoc.tools.util; - -import java.util.UUID; - -/** - * 仅供Freemarker模板内部使用的Java工具函数。 - * - * @author Jerry - * @date 2021-06-06 - */ -public class FreeMarkerUtils { - - /** - * 生成GUID。 - * - * @return 生成后的GUID。 - */ - public static String generateGuid() { - return UUID.randomUUID().toString(); - } - - /** - * 私有构造函数,明确标识该常量类的作用。 - */ - public FreeMarkerUtils() { - // FreeMarker的工具对象,Sonarqube建议给出空构造的注释。 - } -} diff --git a/images/orange-demo-activiti-service/framework/apidoc-tools/src/main/resources/export-api-config.json b/images/orange-demo-activiti-service/framework/apidoc-tools/src/main/resources/export-api-config.json deleted file mode 100644 index 3898d9e6..00000000 --- a/images/orange-demo-activiti-service/framework/apidoc-tools/src/main/resources/export-api-config.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "projectName": "橙单工作流开源版", - "basePackage": "com.orangeforms", - "projectRootPath": "这里请使用当前工程的根目录,如:e:/xxx/OrangeDemo 或者 /Users/xxx/OrangeDemo", - "microService": "false", - "serviceList": [ - { - "serviceName": "application-webadmin", - "showName": "后台管理服务", - "servicePath": "/application-webadmin", - "port": "8082", - "controllerInfoList": [ - { - "path": "/src/main/java/com/orangeforms/webadmin/app/controller", - "groupName": "app" - }, - { - "path": "/src/main/java/com/orangeforms/webadmin/upms/controller", - "groupName": "upms" - } - ] - } - ] -} diff --git a/images/orange-demo-activiti-service/framework/apidoc-tools/src/main/resources/templates/api-doc.md.ftl b/images/orange-demo-activiti-service/framework/apidoc-tools/src/main/resources/templates/api-doc.md.ftl deleted file mode 100644 index dcf7d8dc..00000000 --- a/images/orange-demo-activiti-service/framework/apidoc-tools/src/main/resources/templates/api-doc.md.ftl +++ /dev/null @@ -1,144 +0,0 @@ -## 用户登录 -### 登录接口 -#### 登录 -- **URI:** /admin/upms/login/doLogin -- **Type:** GET -- **Content-Type:** multipart/form-data -- **Request-Headers:** -Name|Type|Description ---|--|-- -Authorization|String|身份验证的Token -- **Request-Parameters:** -Parameter|Type|Required|Description ---|--|--|-- -loginName|string|true|用户名 -password|string|true|加密后的用户密码 - -#### 退出 -- **URI:** /admin/upms/login/logout -- **Type:** POST -- **Content-Type:** application/json; chartset=utf-8 -- **Request-Headers:** -Name|Type|Description ---|--|-- -Authorization|String|身份验证的Token - -#### 修改密码 -- **URI:** /admin/upms/login/changePassword -- **Type:** POST -- **Content-Type:** application/json; chartset=utf-8 -- **Request-Headers:** -Name|Type|Description ---|--|-- -Authorization|String|身份验证的Token -- **Request-Parameters:** -Parameter|Type|Required|Description ---|--|--|-- -oldPass|string|true|加密后的原用户密码 -newPass|string|true|加密后的新用户密码 -<#list project.serviceList as service> - -## ${service.showName} -<#list service.defaultGroupClassSet as apiClass> -### ${apiClass.name} -<#list apiClass.methodList as apiMethod> -#### ${apiMethod.name} -- **URI:** ${apiMethod.requestPath} -- **Type:** ${apiMethod.httpMethod} -- **Content-Type:** <#if apiMethod.httpMethod == "GET" || apiMethod.queryParamArgumentList?size gt 0 || apiMethod.uploadParamArgumentList?size gt 0>multipart/form-data<#else>application/json; chartset=utf-8 -- **Request-Headers:** -Name|Type|Description ---|--|-- -Authorization|String|身份验证的Token -<#if apiMethod.queryParamArgumentList?size gt 0 || apiMethod.uploadParamArgumentList?size gt 0> -- **Request-Parameters:** -Parameter|Type|Required|Description ---|--|--|-- -<#list apiMethod.queryParamArgumentList as apiArgument> -<#if apiArgument.modelData??> -<#list apiArgument.modelData.tableFieldList as apiField> -${apiField.name}|${apiField.typeName}|<#if apiMethod.listDictUrl>false<#else><#if apiField.requiredColumn>true<#else>false|${apiField.comment} - -<#else> -${apiArgument.name}|${apiArgument.typeName}|<#if apiMethod.listDictUrl>false<#else><#if apiArgument.required>true<#else>false|${apiArgument.comment} -<#-- apiArgument.modelData?? --> - - -<#list apiMethod.uploadParamArgumentList as apiArgument> -${apiArgument.name}|File|true|${apiArgument.comment} - -<#if apiMethod.jsonParamArgumentList?size gt 0> -- **Request-Body:** -``` json -{ -<#list apiMethod.jsonParamArgumentList as apiArgument> -<#if apiArgument.modelData??> - <#if apiArgument.collectionParam> - "${apiArgument.name}" : [ - { - <#if apiMethod.listUrl> - <#list apiArgument.modelData.filteredFieldList as apiField> - "${apiField.name}" : "${apiField.typeName} | false | <#if apiField.name == "searchString">模糊搜索字符串。<#else>${apiField.comment}"<#if apiField_has_next>, - - <#else><#-- apiMethod.listUrl --> - <#list apiArgument.modelData.tableFieldList as apiField> - <#if !apiMethod.addUrl || !apiField.primaryKey> - "${apiField.name}" : "${apiField.typeName} | <#if apiField.requiredColumn>true<#else>false | ${apiField.comment}"<#if apiField_has_next>, - - - <#-- apiMethod.listUrl --> - } - ]<#if apiArgument_has_next>, - <#else><#-- apiArgument.collectionParam --> - "${apiArgument.name}" : { - <#if apiMethod.listUrl> - <#list apiArgument.modelData.filteredFieldList as apiField> - "${apiField.name}" : "${apiField.typeName} | false | <#if apiField.name == "searchString">模糊搜索字符串。<#else>${apiField.comment}"<#if apiField_has_next>, - - <#else><#-- apiMethod.listUrl --> - <#list apiArgument.modelData.tableFieldList as apiField> - <#if !apiMethod.addUrl || !apiField.primaryKey> - "${apiField.name}" : "${apiField.typeName} | <#if apiField.requiredColumn>true<#else>false | ${apiField.comment}"<#if apiField_has_next>, - - - <#-- apiMethod.listUrl --> - }<#if apiArgument_has_next>, - <#-- apiArgument.collectionParam --> -<#elseif apiArgument.orderParam> - "${apiArgument.name}" : [ - { - "fieldName" : "String | false | 排序字段名", - "asc" : "Boolean | false | 是否升序" - } - ]<#if apiArgument_has_next>, -<#elseif apiArgument.groupParam> - "${apiArgument.name}" : [ - { - "fieldName" : "String | false | 分组字段名", - "aliasName" : "String | false | 分组字段别名", - "dateAggregateBy" : "String | false | 是否按照日期聚合,可选项(day|month|year)" - } - ]<#if apiArgument_has_next>, -<#elseif apiArgument.pageParam> - "${apiArgument.name}" : { - "pageNum": "Integer | false | 分页页号", - "pageSize": "Integer | false | 每页数据量" - }<#if apiArgument_has_next>, -<#elseif apiArgument.queryParam || apiArgument.aggregationParam> - ${apiArgument.name}" : { - - }<#if apiArgument_has_next>, -<#else><#-- apiArgument.modelData?? --> - <#if apiArgument.collectionParam> - "${apiArgument.name}" : [ "${apiArgument.typeName} | ${apiArgument.required}<#if apiArgument.comment??> | ${apiArgument.comment}" ]<#if apiArgument_has_next>, - <#else> - "${apiArgument.name}" : "${apiArgument.typeName} | ${apiArgument.required}<#if apiArgument.comment??> | ${apiArgument.comment}"<#if apiArgument_has_next>, - -<#-- apiArgument.modelData?? --> - -} -``` - -<#-- apiClass.methodList as apiMethod --> -<#-- upmsClassList as apiClass --> - diff --git a/images/orange-demo-activiti-service/framework/apidoc-tools/src/main/resources/templates/postman_collection.json.ftl b/images/orange-demo-activiti-service/framework/apidoc-tools/src/main/resources/templates/postman_collection.json.ftl deleted file mode 100644 index 2db6c184..00000000 --- a/images/orange-demo-activiti-service/framework/apidoc-tools/src/main/resources/templates/postman_collection.json.ftl +++ /dev/null @@ -1,42 +0,0 @@ -<#import "postman_common.ftl" as Common> -{ - "info": { - "_postman_id": "92b51dc5-3611-49ac-8d94-a0718dba5bf1", - "name": "${project.projectName}", - "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" - }, - "item": [ - <#list project.serviceList as service> - { - "name": "${service.serviceName}", - "item": [ - <#if service.groupedClassMap?size gt 0> - <#list service.groupedClassMap?keys as groupName> - <#assign groupedClassList=service.groupedClassMap[groupName] /> - { - "name": "${groupName}", - "item": [ - <#list groupedClassList as apiClass> - { - <@Common.generateControllerRequest service apiClass 7/> - }<#if apiClass_has_next>, - - ], - "protocolProfileBehavior": {}, - "_postman_isSubFolder": true - }<#if groupName_has_next>, - - - <#list service.defaultGroupClassSet as apiClass> - { - <@Common.generateControllerRequest service apiClass 5/> - }<#if apiClass_has_next>, - - ], - "protocolProfileBehavior": {}, - "_postman_isSubFolder": true - }<#if service_has_next>, - <#-- project.serviceList as service --> - ], - "protocolProfileBehavior": {} -} diff --git a/images/orange-demo-activiti-service/framework/apidoc-tools/src/main/resources/templates/postman_common.ftl b/images/orange-demo-activiti-service/framework/apidoc-tools/src/main/resources/templates/postman_common.ftl deleted file mode 100644 index 9bf2a47e..00000000 --- a/images/orange-demo-activiti-service/framework/apidoc-tools/src/main/resources/templates/postman_common.ftl +++ /dev/null @@ -1,120 +0,0 @@ -<#macro doIndent level><#if level != 0><#list 0..(level-1) as i> - -<#macro generateControllerRequest service apiClass indentLevel> -<@doIndent indentLevel/>"name": "${apiClass.name}", -<@doIndent indentLevel/>"item": [ - <#list apiClass.methodList as apiMethod> -<@doIndent indentLevel/> { -<@doIndent indentLevel/> "name": "${apiMethod.name}", - <#if apiMethod.loginUrl> -<@doIndent indentLevel/> "event": [ -<@doIndent indentLevel/> { -<@doIndent indentLevel/> "listen": "test", -<@doIndent indentLevel/> "script": { -<@doIndent indentLevel/> "id": "${freemarkerUtils.generateGuid()}", -<@doIndent indentLevel/> "type": "text/javascript", -<@doIndent indentLevel/> "exec": [ -<@doIndent indentLevel/> "pm.test(\"登录操作\", function () {", -<@doIndent indentLevel/> " var jsonData = pm.response.json();", -<@doIndent indentLevel/> " var token = jsonData.data.tokenData;", -<@doIndent indentLevel/> " pm.environment.set(\"token\", token);", -<@doIndent indentLevel/> " console.log(\"login token \" + token);", -<@doIndent indentLevel/> "});", -<@doIndent indentLevel/> "" -<@doIndent indentLevel/> ] -<@doIndent indentLevel/> } -<@doIndent indentLevel/> }, -<@doIndent indentLevel/> { -<@doIndent indentLevel/> "listen": "prerequest", -<@doIndent indentLevel/> "script": { -<@doIndent indentLevel/> "id": "${freemarkerUtils.generateGuid()}", -<@doIndent indentLevel/> "type": "text/javascript", -<@doIndent indentLevel/> "exec": [ -<@doIndent indentLevel/> "" -<@doIndent indentLevel/> ] -<@doIndent indentLevel/> } -<@doIndent indentLevel/> } -<@doIndent indentLevel/> ], - -<@doIndent indentLevel/> "request": { -<@doIndent indentLevel/> "method": "${apiMethod.httpMethod}", - <#if apiMethod.loginUrl> -<@doIndent indentLevel/> "header": [], - <#else> -<@doIndent indentLevel/> "header": [ -<@doIndent indentLevel/> { -<@doIndent indentLevel/> "key": "Authorization", -<@doIndent indentLevel/> "value": "{{token}}", -<@doIndent indentLevel/> "type": "text" -<@doIndent indentLevel/> } -<@doIndent indentLevel/> ], - -<@doIndent indentLevel/> "url": { -<@doIndent indentLevel/> "raw": "http://{{host}}:${service.port}/${apiMethod.requestPath}", -<@doIndent indentLevel/> "protocol": "http", -<@doIndent indentLevel/> "host": [ -<@doIndent indentLevel/> "{{host}}" -<@doIndent indentLevel/> ], -<@doIndent indentLevel/> "port": "${service.port}", -<@doIndent indentLevel/> "path": [ - <#list apiMethod.pathList as path> -<@doIndent indentLevel/> "${path}"<#if path_has_next>, - -<@doIndent indentLevel/> ]<#if apiMethod.queryParamArgumentList?size gt 0>, - <#if apiMethod.queryParamArgumentList?size gt 0> -<@doIndent indentLevel/> "query": [ - <#list apiMethod.queryParamArgumentList as apiArgument> - <#if apiArgument.modelData??> - <#list apiArgument.modelData.tableFieldList as apiField> -<@doIndent indentLevel/> { -<@doIndent indentLevel/> "key": "${apiField.name}", -<@doIndent indentLevel/> "value": "" -<@doIndent indentLevel/> }<#if apiArgument_has_next || apiField_has_next>, - - <#else> -<@doIndent indentLevel/> { -<@doIndent indentLevel/> "key": "${apiArgument.name}", -<@doIndent indentLevel/> "value": "" -<@doIndent indentLevel/> }<#if apiArgument_has_next>, - - -<@doIndent indentLevel/> ] - -<@doIndent indentLevel/> }<#if (apiMethod.httpMethod == "POST" && apiMethod.jsonParamArgumentList?size gt 0) || apiMethod.uploadParamArgumentList?size gt 0>, - <#if apiMethod.uploadParamArgumentList?size gt 0> -<@doIndent indentLevel/> "body": { -<@doIndent indentLevel/> "mode": "formdata", -<@doIndent indentLevel/> "formdata": [ - <#list apiMethod.uploadParamArgumentList as apiArgument> -<@doIndent indentLevel/> { -<@doIndent indentLevel/> "key": "${apiArgument.name}", -<@doIndent indentLevel/> "type": "file", -<@doIndent indentLevel/> "src": [] -<@doIndent indentLevel/> }<#if apiArgument_has_next>, - -<@doIndent indentLevel/> ] -<@doIndent indentLevel/> }<#if apiMethod.httpMethod == "POST" && apiMethod.jsonParamArgumentList?size gt 0>, - <#-- apiMethod.uploadParamArgumentList?size gt 0 --> - <#if apiMethod.httpMethod == "POST" && apiMethod.jsonParamArgumentList?size gt 0> -<@doIndent indentLevel/> "body": { -<@doIndent indentLevel/> "mode": "raw", - <#if !apiMethod.loginUrl> -<@doIndent indentLevel/> "raw": "{\n<#list apiMethod.jsonParamArgumentList as apiArgument><#if apiArgument.modelData??><#if apiArgument.collectionParam>\t\"${apiArgument.name}\" : [\n\t\t{\n<#list apiArgument.modelData.fieldList as apiField><#if apiMethod.listUrl>\t\t\t\"${apiField.name}\" : \"\"<#if apiField_has_next>,\n<#else>\t\t\t\"${apiField.name}\" : \"<#if apiField.typeName == "Integer" || apiField.typeName == "Long">0\"<#if apiField_has_next>,\n<#-- apiMethod.listUrl -->\t\t}\n\t]<#if apiArgument_has_next>,\n<#else><#-- apiArgument.collectionParam -->\t\"${apiArgument.name}\" : {\n<#list apiArgument.modelData.fieldList as apiField><#if apiMethod.listUrl>\t\t\"${apiField.name}\" : \"\"<#if apiField_has_next>,\n<#else>\t\t\"${apiField.name}\" : \"<#if apiField.typeName == "Integer" || apiField.typeName == "Long">0\"<#if apiField_has_next>,\n<#-- apiMethod.listUrl -->\t}<#if apiArgument_has_next>,\n<#-- apiArgument.collectionParam --><#elseif apiArgument.orderParam>\t\"${apiArgument.name}\" : [\n\t\t{\n\t\t\t\"fieldName\" : \"\",\n\t\t\t\"asc\" : \"true\"\n\t\t}\n\t]<#if apiArgument_has_next>,\n<#elseif apiArgument.groupParam>\t\"${apiArgument.name}\" : [\n\t\t{\n\t\t\t\"fieldName\" : \"\",\n\t\t\t\"aliasName\" : \"\",\n\t\t\t\"dateAggregateBy\" : \"\"\n\t\t}\n\t]<#if apiArgument_has_next>,\n<#elseif apiArgument.pageParam>\t\"${apiArgument.name}\" : {\n\t\t\"pageNum\": \"1\",\n\t\t\"pageSize\": \"10\"\n\t}<#if apiArgument_has_next>,\n<#elseif apiArgument.queryParam || apiArgument.aggregationParam>\t\"${apiArgument.name}\" : {\n\t}<#if apiArgument_has_next>,\n<#else><#if apiArgument.collectionParam>\t\"${apiArgument.name}\" : [ ]<#if apiArgument_has_next>,\n<#else>\t\"${apiArgument.name}\" : \"\"<#if apiArgument_has_next>,\n<#-- apiArgument.modelData?? --><#-- apiMethod.jsonParamArgumentList?size gt 0 -->}\n", - <#else> -<@doIndent indentLevel/> "raw": "{\n \"loginName\":\"admin\",\n \"password\":\"IP3ccke3GhH45iGHB5qP9p7iZw6xUyj28Ju10rnBiPKOI35sc%2BjI7%2FdsjOkHWMfUwGYGfz8ik31HC2Ruk%2Fhkd9f6RPULTHj7VpFdNdde2P9M4mQQnFBAiPM7VT9iW3RyCtPlJexQ3nAiA09OqG%2F0sIf1kcyveSrulxembARDbDo%3D\"\n}", - -<@doIndent indentLevel/> "options": { -<@doIndent indentLevel/> "raw": { -<@doIndent indentLevel/> "language": "json" -<@doIndent indentLevel/> } -<@doIndent indentLevel/> } -<@doIndent indentLevel/> } - -<@doIndent indentLevel/> }, -<@doIndent indentLevel/> "response": [] -<@doIndent indentLevel/> }<#if apiMethod_has_next>, - <#-- apiClass.methodList as apiMethod --> -<@doIndent indentLevel/>], -<@doIndent indentLevel/>"protocolProfileBehavior": {}, -<@doIndent indentLevel/>"_postman_isSubFolder": true - diff --git a/images/orange-demo-activiti-service/framework/pom.xml b/images/orange-demo-activiti-service/framework/pom.xml deleted file mode 100644 index 91fe3c0b..00000000 --- a/images/orange-demo-activiti-service/framework/pom.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - com.orangeforms - DemoFlow - 1.0.0 - - 4.0.0 - - framework - pom - - - apidoc-tools - - diff --git a/images/orange-demo-activiti-service/pom.xml b/images/orange-demo-activiti-service/pom.xml deleted file mode 100644 index fcb5ba2d..00000000 --- a/images/orange-demo-activiti-service/pom.xml +++ /dev/null @@ -1,265 +0,0 @@ - - - 4.0.0 - - com.orangeforms - DemoFlow - 1.0.0 - DemoFlow - pom - - - 2.3.10.RELEASE - Cairo-SR8 - 2.3.1 - UTF-8 - 1.8 - 1.8 - 1.8 - DemoFlow - - 4.4 - 1.8 - 4.1.2 - 5.6.4 - 0.9.1 - 1.2.76 - 1.1.5 - 3.0.2 - 1.4.2.Final - 1.18.20 - 2.17.0 - 3.4.3 - 6.2.0.Final - 7.1.0.M6 - - 1.2.6 - 3.4.2 - 1.3.0 - 3.15.4 - 2.0.0 - 2.0.8 - - - - application-webadmin - common - framework - - - - - - org.springframework.boot - spring-boot-starter-web - - - spring-boot-starter-logging - org.springframework.boot - - - - - - org.springframework.boot - spring-boot-starter-freemarker - - - - javax.servlet - javax.servlet-api - - - - org.springframework.boot - spring-boot-starter-log4j2 - 2.6.1 - - - log4j-core - org.apache.logging.log4j - - - log4j-jul - org.apache.logging.log4j - - - log4j-slf4j-impl - org.apache.logging.log4j - - - - - org.apache.logging.log4j - log4j-core - ${log4j2.version} - - - log4j-api - org.apache.logging.log4j - - - - - org.apache.logging.log4j - log4j-jul - ${log4j2.version} - - - log4j-api - org.apache.logging.log4j - - - - - org.apache.logging.log4j - log4j-slf4j-impl - ${log4j2.version} - - - log4j-core - org.apache.logging.log4j - - - log4j-api - org.apache.logging.log4j - - - - - org.apache.logging.log4j - log4j-api - ${log4j2.version} - - - - org.springframework.boot - spring-boot-starter-aop - - - - org.springframework.boot - spring-boot-starter-cache - - - - org.springframework.boot - spring-boot-configuration-processor - true - - - - org.springframework.security - spring-security-crypto - - - - org.springframework.boot - spring-boot-starter-actuator - - - - de.codecentric - spring-boot-admin-starter-client - ${spring-boot-admin.version} - - - - org.hibernate - hibernate-validator - ${hibernate-validator.version} - - - - org.mapstruct - mapstruct - ${mapstruct.version} - - - org.mapstruct - mapstruct-processor - ${mapstruct.version} - provided - - - - org.projectlombok - lombok - provided - - - - com.lmax - disruptor - ${disruptor.version} - - - - org.springframework.plugin - spring-plugin-core - 2.0.0.RELEASE - - - org.springframework.plugin - spring-plugin-metadata - 2.0.0.RELEASE - - - - org.springframework.boot - spring-boot-starter-test - test - - - - - - - org.springframework.boot - spring-boot-dependencies - ${spring-boot.version} - pom - import - - - io.spring.platform - platform-bom - ${spring-platform.version} - pom - import - - - - - - - org.apache.maven.plugins - maven-compiler-plugin - 3.8.0 - - ${maven.compiler.target} - ${maven.compiler.source} - UTF-8 - - - org.projectlombok - lombok - ${lombok.version} - - - org.projectlombok - lombok-mapstruct-binding - 0.2.0 - - - org.mapstruct - mapstruct-processor - ${mapstruct.version} - - - - - - - diff --git a/images/orange-demo-activiti-service/zz-resource/db-scripts/zzdemo-online.sql b/images/orange-demo-activiti-service/zz-resource/db-scripts/zzdemo-online.sql deleted file mode 100644 index 4546a7c6..00000000 --- a/images/orange-demo-activiti-service/zz-resource/db-scripts/zzdemo-online.sql +++ /dev/null @@ -1,8155 +0,0 @@ -/* - Navicat Premium Data Transfer - - Source Server : localhost - Source Server Type : MySQL - Source Server Version : 80027 - Source Host : localhost:3306 - Source Schema : zzdemo-online - - Target Server Type : MySQL - Target Server Version : 80027 - File Encoding : 65001 - - Date: 31/12/2021 11:13:55 -*/ - -SET NAMES utf8mb4; -SET FOREIGN_KEY_CHECKS = 0; - --- ---------------------------- --- Table structure for ACT_EVT_LOG --- ---------------------------- -DROP TABLE IF EXISTS `ACT_EVT_LOG`; -CREATE TABLE `ACT_EVT_LOG` ( - `LOG_NR_` bigint NOT NULL AUTO_INCREMENT, - `TYPE_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `PROC_DEF_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `PROC_INST_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `EXECUTION_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `TASK_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `TIME_STAMP_` timestamp(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3) ON UPDATE CURRENT_TIMESTAMP(3), - `USER_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `DATA_` longblob, - `LOCK_OWNER_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `LOCK_TIME_` timestamp(3) NULL DEFAULT NULL, - `IS_PROCESSED_` tinyint DEFAULT '0', - PRIMARY KEY (`LOG_NR_`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_bin; - --- ---------------------------- --- Table structure for ACT_GE_BYTEARRAY --- ---------------------------- -DROP TABLE IF EXISTS `ACT_GE_BYTEARRAY`; -CREATE TABLE `ACT_GE_BYTEARRAY` ( - `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL, - `REV_` int DEFAULT NULL, - `NAME_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `DEPLOYMENT_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `BYTES_` longblob, - `GENERATED_` tinyint DEFAULT NULL, - PRIMARY KEY (`ID_`), - KEY `ACT_FK_BYTEARR_DEPL` (`DEPLOYMENT_ID_`), - CONSTRAINT `ACT_FK_BYTEARR_DEPL` FOREIGN KEY (`DEPLOYMENT_ID_`) REFERENCES `ACT_RE_DEPLOYMENT` (`ID_`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_bin; - --- ---------------------------- --- Records of ACT_GE_BYTEARRAY --- ---------------------------- -BEGIN; -INSERT INTO `ACT_GE_BYTEARRAY` VALUES ('0aab3954-3179-11ec-9438-f20b812c0662', 1, 'flowLeave.bpmn', '0aab3953-3179-11ec-9438-f20b812c0662', 0x3C3F786D6C2076657273696F6E3D22312E302220656E636F64696E673D225554462D38223F3E0A3C62706D6E323A646566696E6974696F6E7320786D6C6E733D22687474703A2F2F7777772E6F6D672E6F72672F737065632F42504D4E2F32303130303532342F4D4F44454C2220786D6C6E733A62706D6E323D22687474703A2F2F7777772E6F6D672E6F72672F737065632F42504D4E2F32303130303532342F4D4F44454C2220786D6C6E733A7873693D22687474703A2F2F7777772E77332E6F72672F323030312F584D4C536368656D612D696E7374616E63652220786D6C6E733A7873643D22687474703A2F2F7777772E77332E6F72672F323030312F584D4C536368656D612220786D6C6E733A61637469766974693D22687474703A2F2F61637469766974692E6F72672F62706D6E2220786D6C6E733A62706D6E64693D22687474703A2F2F7777772E6F6D672E6F72672F737065632F42504D4E2F32303130303532342F44492220786D6C6E733A6F6D6764633D22687474703A2F2F7777772E6F6D672E6F72672F737065632F44442F32303130303532342F44432220786D6C6E733A6F6D6764693D22687474703A2F2F7777772E6F6D672E6F72672F737065632F44442F32303130303532342F44492220786D6C6E733A64633D22687474703A2F2F7777772E6F6D672E6F72672F737065632F44442F32303130303532342F44432220786D6C6E733A64693D22687474703A2F2F7777772E6F6D672E6F72672F737065632F44442F32303130303532342F44492220747970654C616E67756167653D22687474703A2F2F7777772E77332E6F72672F323030312F584D4C536368656D61222065787072657373696F6E4C616E67756167653D22687474703A2F2F7777772E77332E6F72672F313939392F585061746822207461726765744E616D6573706163653D22687474703A2F2F61637469766974692E6F72672F62706D6E222069643D226469616772616D5F666C6F774C6561766522207873693A736368656D614C6F636174696F6E3D22687474703A2F2F7777772E6F6D672E6F72672F737065632F42504D4E2F32303130303532342F4D4F44454C2042504D4E32302E787364223E0A20203C62706D6E323A70726F636573732069643D22666C6F774C6561766522206E616D653D22E8AFB7E58187E794B3E8AFB72220697345786563757461626C653D2274727565223E0A202020203C657874656E73696F6E456C656D656E74733E0A2020202020203C61637469766974693A657865637574696F6E4C697374656E6572206576656E743D22656E642220636C6173733D22636F6D2E666C6F772E64656D6F2E636F6D6D6F6E2E666C6F772E6C697374656E65722E557064617465466C6F775374617475734C697374656E6572223E3C2F61637469766974693A657865637574696F6E4C697374656E65723E0A202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C62706D6E323A73746172744576656E742069643D224576656E745F316D6D72747477223E0A2020202020203C62706D6E323A6F7574676F696E673E466C6F775F3079346D336B763C2F62706D6E323A6F7574676F696E673E0A202020203C2F62706D6E323A73746172744576656E743E0A202020203C62706D6E323A757365725461736B2069643D2241637469766974795F317462386A6B6122206E616D653D22E8AFB7E58187E794B3E8AFB7222061637469766974693A61737369676E65653D22247B7374617274557365724E616D657D222061637469766974693A666F726D4B65793D227B2671756F743B666F726D49642671756F743B3A2671756F743B313434303934353431313335343236373634382671756F743B2C2671756F743B726561644F6E6C792671756F743B3A66616C73652C2671756F743B67726F7570547970652671756F743B3A2671756F743B444550542671756F743B7D223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A6F7065726174696F6E4C6973743E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313131323239323522206C6162656C3D22E68F90E4BAA42220747970653D226167726565222073686F774F726465723D2230223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A20202020202020203C2F61637469766974693A6F7065726174696F6E4C6973743E0A20202020202020203C61637469766974693A7661726961626C654C6973743E3C2F61637469766974693A7661726961626C654C6973743E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C2F62706D6E323A757365725461736B3E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F3079346D336B762220736F757263655265663D224576656E745F316D6D7274747722207461726765745265663D2241637469766974795F317462386A6B61223E3C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A757365725461736B2069643D2241637469766974795F31316A7230707822206E616D653D22E983A8E997A8E9A286E5AFBCE5AEA1E689B9222061637469766974693A63616E64696461746547726F7570733D22247B64657074506F73744C65616465727D222061637469766974693A666F726D4B65793D227B2671756F743B666F726D49642671756F743B3A2671756F743B313434303934353431313335343236373634382671756F743B2C2671756F743B726561644F6E6C792671756F743B3A747275652C2671756F743B67726F7570547970652671756F743B3A2671756F743B444550545F504F53545F4C45414445522671756F743B7D223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A7461736B4C697374656E6572206576656E743D226372656174652220636C6173733D22636F6D2E666C6F772E64656D6F2E636F6D6D6F6E2E666C6F772E6C697374656E65722E44657074506F73744C65616465724C697374656E6572223E3C2F61637469766974693A7461736B4C697374656E65723E0A20202020202020203C61637469766974693A6F7065726174696F6E4C6973743E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313131343739343122206C6162656C3D22E5908CE6848F2220747970653D226167726565222073686F774F726465723D2230223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313131353133343922206C6162656C3D22E68B92E7BB9D2220747970653D22726566757365222073686F774F726465723D2231223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A20202020202020203C2F61637469766974693A6F7065726174696F6E4C6973743E0A20202020202020203C61637469766974693A7661726961626C654C6973743E3C2F61637469766974693A7661726961626C654C6973743E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C2F62706D6E323A757365725461736B3E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F30376F703230392220736F757263655265663D2241637469766974795F317462386A6B6122207461726765745265663D2241637469766974795F31316A72307078223E3C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A757365725461736B2069643D2241637469766974795F3030696270307522206E616D653D224852E5AEA1E689B9222061637469766974693A63616E64696461746547726F7570733D2231343430393634323231383535363030363430222061637469766974693A666F726D4B65793D227B2671756F743B666F726D49642671756F743B3A2671756F743B313434303934353431313335343236373634382671756F743B2C2671756F743B726561644F6E6C792671756F743B3A747275652C2671756F743B67726F7570547970652671756F743B3A2671756F743B504F53542671756F743B7D223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A6F7065726174696F6E4C6973743E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313133303636303122206C6162656C3D22E5908CE6848F2220747970653D226167726565222073686F774F726465723D2230223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313133313033393122206C6162656C3D22E68B92E7BB9D2220747970653D22726566757365222073686F774F726465723D2231223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A20202020202020203C2F61637469766974693A6F7065726174696F6E4C6973743E0A20202020202020203C61637469766974693A7661726961626C654C6973743E3C2F61637469766974693A7661726961626C654C6973743E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C2F62706D6E323A757365725461736B3E0A202020203C62706D6E323A656E644576656E742069643D224576656E745F3163303839756F223E0A2020202020203C62706D6E323A696E636F6D696E673E466C6F775F306D32376664653C2F62706D6E323A696E636F6D696E673E0A202020203C2F62706D6E323A656E644576656E743E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F306D323766646522206E616D653D22E5908CE6848F2220736F757263655265663D2241637469766974795F3030696270307522207461726765745265663D224576656E745F3163303839756F223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A637573746F6D436F6E646974696F6E20747970653D226F7065726174696F6E22206F7065726174696F6E547970653D226167726565223E3C2F61637469766974693A637573746F6D436F6E646974696F6E3E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A2020202020203C636F6E646974696F6E45787072657373696F6E207873693A747970653D2274466F726D616C45787072657373696F6E223E3C215B43444154415B247B6F7065726174696F6E54797065203D3D20276167726565277D5D5D3E3C2F636F6E646974696F6E45787072657373696F6E3E0A202020203C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F31367A796F613522206E616D653D22E68B92E7BB9D2220736F757263655265663D2241637469766974795F31316A7230707822207461726765745265663D2241637469766974795F317462386A6B61223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A637573746F6D436F6E646974696F6E20747970653D226F7065726174696F6E22206F7065726174696F6E547970653D22726566757365223E3C2F61637469766974693A637573746F6D436F6E646974696F6E3E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A2020202020203C636F6E646974696F6E45787072657373696F6E207873693A747970653D2274466F726D616C45787072657373696F6E223E3C215B43444154415B247B6F7065726174696F6E54797065203D3D2027726566757365277D5D5D3E3C2F636F6E646974696F6E45787072657373696F6E3E0A202020203C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F306C6C3734616E22206E616D653D22E5908CE6848F2220736F757263655265663D2241637469766974795F31316A7230707822207461726765745265663D2241637469766974795F30306962703075223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A637573746F6D436F6E646974696F6E20747970653D226F7065726174696F6E22206F7065726174696F6E547970653D226167726565223E3C2F61637469766974693A637573746F6D436F6E646974696F6E3E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A2020202020203C636F6E646974696F6E45787072657373696F6E207873693A747970653D2274466F726D616C45787072657373696F6E223E3C215B43444154415B247B6F7065726174696F6E54797065203D3D20276167726565277D5D5D3E3C2F636F6E646974696F6E45787072657373696F6E3E0A202020203C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F3161656B6D733822206E616D653D22E68B92E7BB9D2220736F757263655265663D2241637469766974795F3030696270307522207461726765745265663D2241637469766974795F317462386A6B61223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A637573746F6D436F6E646974696F6E20747970653D226F7065726174696F6E22206F7065726174696F6E547970653D22726566757365223E3C2F61637469766974693A637573746F6D436F6E646974696F6E3E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A2020202020203C636F6E646974696F6E45787072657373696F6E207873693A747970653D2274466F726D616C45787072657373696F6E223E3C215B43444154415B247B6F7065726174696F6E54797065203D3D2027726566757365277D5D5D3E3C2F636F6E646974696F6E45787072657373696F6E3E0A202020203C2F62706D6E323A73657175656E6365466C6F773E0A20203C2F62706D6E323A70726F636573733E0A20203C62706D6E64693A42504D4E4469616772616D2069643D2242504D4E4469616772616D5F666C6F774C65617665223E0A202020203C62706D6E64693A42504D4E506C616E652062706D6E456C656D656E743D22666C6F774C65617665222069643D2242504D4E506C616E655F666C6F774C65617665223E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D224576656E745F316D6D72747477222069643D2242504D4E53686170655F4576656E745F316D6D72747477223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2233362E30222077696474683D2233362E302220783D223133322E302220793D223237322E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D2241637469766974795F317462386A6B61222069643D2242504D4E53686170655F41637469766974795F317462386A6B61223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2238302E30222077696474683D223130302E302220783D223232302E302220793D223235302E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D2241637469766974795F31316A72307078222069643D2242504D4E53686170655F41637469766974795F31316A72307078223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2238302E30222077696474683D223130302E302220783D223338302E302220793D223235302E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D2241637469766974795F30306962703075222069643D2242504D4E53686170655F41637469766974795F30306962703075223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2238302E30222077696474683D223130302E302220783D223534302E302220793D223235302E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D224576656E745F3163303839756F222069643D2242504D4E53686170655F4576656E745F3163303839756F223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2233362E30222077696474683D2233362E302220783D223730322E302220793D223237322E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F3079346D336B76222069643D2242504D4E456467655F466C6F775F3079346D336B76223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223136382E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223232302E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F30376F70323039222069643D2242504D4E456467655F466C6F775F30376F70323039223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223332302E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223338302E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F306C6C3734616E222069643D2242504D4E456467655F466C6F775F306C6C3734616E223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223438302E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223534302E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C62706D6E64693A42504D4E4C6162656C3E0A202020202020202020203C6F6D6764633A426F756E6473206865696768743D2231342E30222077696474683D2232332E302220783D223439392E302220793D223237322E30223E3C2F6F6D6764633A426F756E64733E0A20202020202020203C2F62706D6E64693A42504D4E4C6162656C3E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F306D3237666465222069643D2242504D4E456467655F466C6F775F306D3237666465223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223634302E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223730322E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C62706D6E64693A42504D4E4C6162656C3E0A202020202020202020203C6F6D6764633A426F756E6473206865696768743D2231342E30222077696474683D2232332E302220783D223636302E302220793D223237322E30223E3C2F6F6D6764633A426F756E64733E0A20202020202020203C2F62706D6E64693A42504D4E4C6162656C3E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F31367A796F6135222069643D2242504D4E456467655F466C6F775F31367A796F6135223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223433302E302220793D223235302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223433302E302220793D223231302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223237302E302220793D223231302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223237302E302220793D223235302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C62706D6E64693A42504D4E4C6162656C3E0A202020202020202020203C6F6D6764633A426F756E6473206865696768743D2231342E30222077696474683D2232322E302220783D223333392E302220793D223139322E30223E3C2F6F6D6764633A426F756E64733E0A20202020202020203C2F62706D6E64693A42504D4E4C6162656C3E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F3161656B6D7338222069643D2242504D4E456467655F466C6F775F3161656B6D7338223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223539302E302220793D223333302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223539302E302220793D223337302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223237302E302220793D223337302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223237302E302220793D223333302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C62706D6E64693A42504D4E4C6162656C3E0A202020202020202020203C6F6D6764633A426F756E6473206865696768743D2231342E30222077696474683D2232322E302220783D223431392E302220793D223335322E30223E3C2F6F6D6764633A426F756E64733E0A20202020202020203C2F62706D6E64693A42504D4E4C6162656C3E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A202020203C2F62706D6E64693A42504D4E506C616E653E0A20203C2F62706D6E64693A42504D4E4469616772616D3E0A3C2F62706D6E323A646566696E6974696F6E733E, 0); -INSERT INTO `ACT_GE_BYTEARRAY` VALUES ('1a96e44a-5e6f-11ec-9355-5e4c369e54c1', 1, 'flowLeave.bpmn', '1a96e449-5e6f-11ec-9355-5e4c369e54c1', 0x3C3F786D6C2076657273696F6E3D22312E302220656E636F64696E673D225554462D38223F3E0A3C62706D6E323A646566696E6974696F6E7320786D6C6E733D22687474703A2F2F7777772E6F6D672E6F72672F737065632F42504D4E2F32303130303532342F4D4F44454C2220786D6C6E733A62706D6E323D22687474703A2F2F7777772E6F6D672E6F72672F737065632F42504D4E2F32303130303532342F4D4F44454C2220786D6C6E733A7873693D22687474703A2F2F7777772E77332E6F72672F323030312F584D4C536368656D612D696E7374616E63652220786D6C6E733A7873643D22687474703A2F2F7777772E77332E6F72672F323030312F584D4C536368656D612220786D6C6E733A61637469766974693D22687474703A2F2F61637469766974692E6F72672F62706D6E2220786D6C6E733A62706D6E64693D22687474703A2F2F7777772E6F6D672E6F72672F737065632F42504D4E2F32303130303532342F44492220786D6C6E733A6F6D6764633D22687474703A2F2F7777772E6F6D672E6F72672F737065632F44442F32303130303532342F44432220786D6C6E733A6F6D6764693D22687474703A2F2F7777772E6F6D672E6F72672F737065632F44442F32303130303532342F44492220786D6C6E733A64633D22687474703A2F2F7777772E6F6D672E6F72672F737065632F44442F32303130303532342F44432220786D6C6E733A64693D22687474703A2F2F7777772E6F6D672E6F72672F737065632F44442F32303130303532342F44492220747970654C616E67756167653D22687474703A2F2F7777772E77332E6F72672F323030312F584D4C536368656D61222065787072657373696F6E4C616E67756167653D22687474703A2F2F7777772E77332E6F72672F313939392F585061746822207461726765744E616D6573706163653D22687474703A2F2F61637469766974692E6F72672F62706D6E222069643D226469616772616D5F666C6F774C6561766522207873693A736368656D614C6F636174696F6E3D22687474703A2F2F7777772E6F6D672E6F72672F737065632F42504D4E2F32303130303532342F4D4F44454C2042504D4E32302E787364223E0A20203C62706D6E323A70726F636573732069643D22666C6F774C6561766522206E616D653D22E8AFB7E58187E794B3E8AFB72220697345786563757461626C653D2274727565223E0A202020203C657874656E73696F6E456C656D656E74733E0A2020202020203C61637469766974693A657865637574696F6E4C697374656E6572206576656E743D22656E642220636C6173733D22636F6D2E6F72616E6765666F726D732E636F6D6D6F6E2E666C6F772E6C697374656E65722E466C6F7746696E69736865644C697374656E6572223E3C2F61637469766974693A657865637574696F6E4C697374656E65723E0A202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C62706D6E323A73746172744576656E742069643D224576656E745F316D6D72747477223E0A2020202020203C62706D6E323A6F7574676F696E673E466C6F775F3079346D336B763C2F62706D6E323A6F7574676F696E673E0A202020203C2F62706D6E323A73746172744576656E743E0A202020203C62706D6E323A757365725461736B2069643D2241637469766974795F317462386A6B6122206E616D653D22E8AFB7E58187E794B3E8AFB7222061637469766974693A61737369676E65653D22247B7374617274557365724E616D657D222061637469766974693A666F726D4B65793D227B2671756F743B666F726D49642671756F743B3A2671756F743B313434303934353431313335343236373634382671756F743B2C2671756F743B726561644F6E6C792671756F743B3A66616C73652C2671756F743B67726F7570547970652671756F743B3A2671756F743B41535349474E45452671756F743B7D223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A6F7065726174696F6E4C6973743E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313131323239323522206C6162656C3D22E68F90E4BAA42220747970653D226167726565222073686F774F726465723D2230223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A20202020202020203C2F61637469766974693A6F7065726174696F6E4C6973743E0A20202020202020203C61637469766974693A7661726961626C654C6973743E3C2F61637469766974693A7661726961626C654C6973743E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C2F62706D6E323A757365725461736B3E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F3079346D336B762220736F757263655265663D224576656E745F316D6D7274747722207461726765745265663D2241637469766974795F317462386A6B61223E3C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A757365725461736B2069643D2241637469766974795F31316A7230707822206E616D653D22E983A8E997A8E9A286E5AFBCE5AEA1E689B9222061637469766974693A63616E64696461746547726F7570733D22247B64657074506F73744C65616465727D222061637469766974693A666F726D4B65793D227B2671756F743B666F726D49642671756F743B3A2671756F743B313434303934353431313335343236373634382671756F743B2C2671756F743B726561644F6E6C792671756F743B3A747275652C2671756F743B67726F7570547970652671756F743B3A2671756F743B444550545F504F53545F4C45414445522671756F743B7D223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A7461736B4C697374656E6572206576656E743D226372656174652220636C6173733D22636F6D2E6F72616E6765666F726D732E636F6D6D6F6E2E666C6F772E6C697374656E65722E44657074506F73744C65616465724C697374656E6572223E3C2F61637469766974693A7461736B4C697374656E65723E0A20202020202020203C61637469766974693A6F7065726174696F6E4C6973743E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313131343739343122206C6162656C3D22E5908CE6848F2220747970653D226167726565222073686F774F726465723D2230223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313131353133343922206C6162656C3D22E68B92E7BB9D2220747970653D22726566757365222073686F774F726465723D2231223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A20202020202020203C2F61637469766974693A6F7065726174696F6E4C6973743E0A20202020202020203C61637469766974693A7661726961626C654C6973743E3C2F61637469766974693A7661726961626C654C6973743E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C2F62706D6E323A757365725461736B3E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F30376F703230392220736F757263655265663D2241637469766974795F317462386A6B6122207461726765745265663D2241637469766974795F31316A72307078223E3C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A757365725461736B2069643D2241637469766974795F3030696270307522206E616D653D224852E5AEA1E689B9222061637469766974693A63616E64696461746547726F7570733D2231343430393634323231373830313033313638222061637469766974693A666F726D4B65793D227B2671756F743B666F726D49642671756F743B3A2671756F743B313434303934353431313335343236373634382671756F743B2C2671756F743B726561644F6E6C792671756F743B3A747275652C2671756F743B67726F7570547970652671756F743B3A2671756F743B504F53542671756F743B7D223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A6F7065726174696F6E4C6973743E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313133303636303122206C6162656C3D22E5908CE6848F2220747970653D226167726565222073686F774F726465723D2230223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313133313033393122206C6162656C3D22E68B92E7BB9D2220747970653D22726566757365222073686F774F726465723D2231223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A20202020202020203C2F61637469766974693A6F7065726174696F6E4C6973743E0A20202020202020203C61637469766974693A7661726961626C654C6973743E3C2F61637469766974693A7661726961626C654C6973743E0A20202020202020203C61637469766974693A64657074506F73744C6973743E0A202020202020202020203C61637469766974693A64657074506F73742069643D2264657074506F73745F5F313434303936343232313738303130333136382220747970653D2264657074506F7374222064657074506F737449643D2231343430393634323231373830313033313638223E3C2F61637469766974693A64657074506F73743E0A20202020202020203C2F61637469766974693A64657074506F73744C6973743E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C2F62706D6E323A757365725461736B3E0A202020203C62706D6E323A656E644576656E742069643D224576656E745F3163303839756F223E0A2020202020203C62706D6E323A696E636F6D696E673E466C6F775F306D32376664653C2F62706D6E323A696E636F6D696E673E0A202020203C2F62706D6E323A656E644576656E743E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F306D323766646522206E616D653D22E5908CE6848F2220736F757263655265663D2241637469766974795F3030696270307522207461726765745265663D224576656E745F3163303839756F223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A637573746F6D436F6E646974696F6E20747970653D226F7065726174696F6E22206F7065726174696F6E547970653D226167726565223E3C2F61637469766974693A637573746F6D436F6E646974696F6E3E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A2020202020203C636F6E646974696F6E45787072657373696F6E207873693A747970653D2274466F726D616C45787072657373696F6E223E3C215B43444154415B247B6F7065726174696F6E54797065203D3D20276167726565277D5D5D3E3C2F636F6E646974696F6E45787072657373696F6E3E0A202020203C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F31367A796F613522206E616D653D22E68B92E7BB9D2220736F757263655265663D2241637469766974795F31316A7230707822207461726765745265663D2241637469766974795F317462386A6B61223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A637573746F6D436F6E646974696F6E20747970653D226F7065726174696F6E22206F7065726174696F6E547970653D22726566757365223E3C2F61637469766974693A637573746F6D436F6E646974696F6E3E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A2020202020203C636F6E646974696F6E45787072657373696F6E207873693A747970653D2274466F726D616C45787072657373696F6E223E3C215B43444154415B247B6F7065726174696F6E54797065203D3D2027726566757365277D5D5D3E3C2F636F6E646974696F6E45787072657373696F6E3E0A202020203C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F306C6C3734616E22206E616D653D22E5908CE6848F2220736F757263655265663D2241637469766974795F31316A7230707822207461726765745265663D2241637469766974795F30306962703075223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A637573746F6D436F6E646974696F6E20747970653D226F7065726174696F6E22206F7065726174696F6E547970653D226167726565223E3C2F61637469766974693A637573746F6D436F6E646974696F6E3E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A2020202020203C636F6E646974696F6E45787072657373696F6E207873693A747970653D2274466F726D616C45787072657373696F6E223E3C215B43444154415B247B6F7065726174696F6E54797065203D3D20276167726565277D5D5D3E3C2F636F6E646974696F6E45787072657373696F6E3E0A202020203C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F3161656B6D733822206E616D653D22E68B92E7BB9D2220736F757263655265663D2241637469766974795F3030696270307522207461726765745265663D2241637469766974795F317462386A6B61223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A637573746F6D436F6E646974696F6E20747970653D226F7065726174696F6E22206F7065726174696F6E547970653D22726566757365223E3C2F61637469766974693A637573746F6D436F6E646974696F6E3E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A2020202020203C636F6E646974696F6E45787072657373696F6E207873693A747970653D2274466F726D616C45787072657373696F6E223E3C215B43444154415B247B6F7065726174696F6E54797065203D3D2027726566757365277D5D5D3E3C2F636F6E646974696F6E45787072657373696F6E3E0A202020203C2F62706D6E323A73657175656E6365466C6F773E0A20203C2F62706D6E323A70726F636573733E0A20203C62706D6E64693A42504D4E4469616772616D2069643D2242504D4E4469616772616D5F666C6F774C65617665223E0A202020203C62706D6E64693A42504D4E506C616E652062706D6E456C656D656E743D22666C6F774C65617665222069643D2242504D4E506C616E655F666C6F774C65617665223E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D224576656E745F316D6D72747477222069643D2242504D4E53686170655F4576656E745F316D6D72747477223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2233362E30222077696474683D2233362E302220783D223133322E302220793D223237322E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D2241637469766974795F317462386A6B61222069643D2242504D4E53686170655F41637469766974795F317462386A6B61223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2238302E30222077696474683D223130302E302220783D223232302E302220793D223235302E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D2241637469766974795F31316A72307078222069643D2242504D4E53686170655F41637469766974795F31316A72307078223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2238302E30222077696474683D223130302E302220783D223338302E302220793D223235302E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D2241637469766974795F30306962703075222069643D2242504D4E53686170655F41637469766974795F30306962703075223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2238302E30222077696474683D223130302E302220783D223534302E302220793D223235302E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D224576656E745F3163303839756F222069643D2242504D4E53686170655F4576656E745F3163303839756F223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2233362E30222077696474683D2233362E302220783D223730322E302220793D223237322E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F3161656B6D7338222069643D2242504D4E456467655F466C6F775F3161656B6D7338223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223539302E302220793D223333302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223539302E302220793D223337302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223237302E302220793D223337302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223237302E302220793D223333302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C62706D6E64693A42504D4E4C6162656C3E0A202020202020202020203C6F6D6764633A426F756E6473206865696768743D2231342E30222077696474683D2232322E302220783D223431392E302220793D223335322E30223E3C2F6F6D6764633A426F756E64733E0A20202020202020203C2F62706D6E64693A42504D4E4C6162656C3E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F306C6C3734616E222069643D2242504D4E456467655F466C6F775F306C6C3734616E223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223438302E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223534302E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C62706D6E64693A42504D4E4C6162656C3E0A202020202020202020203C6F6D6764633A426F756E6473206865696768743D2231342E30222077696474683D2232332E302220783D223439392E302220793D223237322E30223E3C2F6F6D6764633A426F756E64733E0A20202020202020203C2F62706D6E64693A42504D4E4C6162656C3E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F31367A796F6135222069643D2242504D4E456467655F466C6F775F31367A796F6135223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223433302E302220793D223235302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223433302E302220793D223231302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223237302E302220793D223231302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223237302E302220793D223235302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C62706D6E64693A42504D4E4C6162656C3E0A202020202020202020203C6F6D6764633A426F756E6473206865696768743D2231342E30222077696474683D2232322E302220783D223333392E302220793D223139322E30223E3C2F6F6D6764633A426F756E64733E0A20202020202020203C2F62706D6E64693A42504D4E4C6162656C3E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F306D3237666465222069643D2242504D4E456467655F466C6F775F306D3237666465223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223634302E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223730322E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C62706D6E64693A42504D4E4C6162656C3E0A202020202020202020203C6F6D6764633A426F756E6473206865696768743D2231342E30222077696474683D2232332E302220783D223636302E302220793D223237322E30223E3C2F6F6D6764633A426F756E64733E0A20202020202020203C2F62706D6E64693A42504D4E4C6162656C3E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F30376F70323039222069643D2242504D4E456467655F466C6F775F30376F70323039223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223332302E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223338302E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F3079346D336B76222069643D2242504D4E456467655F466C6F775F3079346D336B76223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223136382E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223232302E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A202020203C2F62706D6E64693A42504D4E506C616E653E0A20203C2F62706D6E64693A42504D4E4469616772616D3E0A3C2F62706D6E323A646566696E6974696F6E733E, 0); -INSERT INTO `ACT_GE_BYTEARRAY` VALUES ('39a52dbd-5e6f-11ec-9355-5e4c369e54c1', 1, 'flowSubmit.bpmn', '39a52dbc-5e6f-11ec-9355-5e4c369e54c1', 0x3C3F786D6C2076657273696F6E3D22312E302220656E636F64696E673D225554462D38223F3E0A3C62706D6E323A646566696E6974696F6E7320786D6C6E733D22687474703A2F2F7777772E6F6D672E6F72672F737065632F42504D4E2F32303130303532342F4D4F44454C2220786D6C6E733A62706D6E323D22687474703A2F2F7777772E6F6D672E6F72672F737065632F42504D4E2F32303130303532342F4D4F44454C2220786D6C6E733A7873693D22687474703A2F2F7777772E77332E6F72672F323030312F584D4C536368656D612D696E7374616E63652220786D6C6E733A7873643D22687474703A2F2F7777772E77332E6F72672F323030312F584D4C536368656D612220786D6C6E733A61637469766974693D22687474703A2F2F61637469766974692E6F72672F62706D6E2220786D6C6E733A62706D6E64693D22687474703A2F2F7777772E6F6D672E6F72672F737065632F42504D4E2F32303130303532342F44492220786D6C6E733A6F6D6764633D22687474703A2F2F7777772E6F6D672E6F72672F737065632F44442F32303130303532342F44432220786D6C6E733A6F6D6764693D22687474703A2F2F7777772E6F6D672E6F72672F737065632F44442F32303130303532342F44492220786D6C6E733A64633D22687474703A2F2F7777772E6F6D672E6F72672F737065632F44442F32303130303532342F44432220786D6C6E733A64693D22687474703A2F2F7777772E6F6D672E6F72672F737065632F44442F32303130303532342F44492220747970654C616E67756167653D22687474703A2F2F7777772E77332E6F72672F323030312F584D4C536368656D61222065787072657373696F6E4C616E67756167653D22687474703A2F2F7777772E77332E6F72672F313939392F585061746822207461726765744E616D6573706163653D22687474703A2F2F61637469766974692E6F72672F62706D6E222069643D226469616772616D5F666C6F775375626D697422207873693A736368656D614C6F636174696F6E3D22687474703A2F2F7777772E6F6D672E6F72672F737065632F42504D4E2F32303130303532342F4D4F44454C2042504D4E32302E787364223E0A20203C62706D6E323A70726F636573732069643D22666C6F775375626D697422206E616D653D22E68AA5E99480E794B3E8AFB72220697345786563757461626C653D2274727565223E0A202020203C657874656E73696F6E456C656D656E74733E0A2020202020203C61637469766974693A657865637574696F6E4C697374656E6572206576656E743D22656E642220636C6173733D22636F6D2E6F72616E6765666F726D732E636F6D6D6F6E2E666C6F772E6C697374656E65722E466C6F7746696E69736865644C697374656E6572223E3C2F61637469766974693A657865637574696F6E4C697374656E65723E0A202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C62706D6E323A73746172744576656E742069643D224576656E745F31753464783362223E0A2020202020203C62706D6E323A6F7574676F696E673E466C6F775F306D726D71626B3C2F62706D6E323A6F7574676F696E673E0A202020203C2F62706D6E323A73746172744576656E743E0A202020203C62706D6E323A757365725461736B2069643D2241637469766974795F3163733462693522206E616D653D22E68AA5E99480E794B3E8AFB7222061637469766974693A61737369676E65653D22247B7374617274557365724E616D657D222061637469766974693A666F726D4B65793D227B2671756F743B666F726D49642671756F743B3A2671756F743B313434303934373637353034313130373936382671756F743B2C2671756F743B726561644F6E6C792671756F743B3A66616C73652C2671756F743B67726F7570547970652671756F743B3A2671756F743B41535349474E45452671756F743B7D223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A6F7065726174696F6E4C6973743E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313138303337393622206C6162656C3D22E68F90E4BAA42220747970653D226167726565222073686F774F726465723D2230223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A20202020202020203C2F61637469766974693A6F7065726174696F6E4C6973743E0A20202020202020203C61637469766974693A7661726961626C654C6973743E3C2F61637469766974693A7661726961626C654C6973743E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C2F62706D6E323A757365725461736B3E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F306D726D71626B2220736F757263655265663D224576656E745F3175346478336222207461726765745265663D2241637469766974795F31637334626935223E3C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A757365725461736B2069643D2241637469766974795F303473636E326F22206E616D653D22E983A8E997A8E9A286E5AFBCE5AEA1E689B9222061637469766974693A63616E64696461746547726F7570733D22247B64657074506F73744C65616465727D222061637469766974693A666F726D4B65793D227B2671756F743B666F726D49642671756F743B3A2671756F743B313434303934373637353034313130373936382671756F743B2C2671756F743B726561644F6E6C792671756F743B3A747275652C2671756F743B67726F7570547970652671756F743B3A2671756F743B444550545F504F53545F4C45414445522671756F743B7D223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A7461736B4C697374656E6572206576656E743D226372656174652220636C6173733D22636F6D2E6F72616E6765666F726D732E636F6D6D6F6E2E666C6F772E6C697374656E65722E44657074506F73744C65616465724C697374656E6572223E3C2F61637469766974693A7461736B4C697374656E65723E0A20202020202020203C61637469766974693A6F7065726174696F6E4C6973743E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313138313236343622206C6162656C3D22E5908CE6848F2220747970653D226167726565222073686F774F726465723D2230223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313138313539383422206C6162656C3D22E68B92E7BB9D2220747970653D22726566757365222073686F774F726465723D2231223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A20202020202020203C2F61637469766974693A6F7065726174696F6E4C6973743E0A20202020202020203C61637469766974693A7661726961626C654C6973743E0A202020202020202020203C61637469766974693A666F726D5661726961626C652069643D2231343530373130383030383534343231353034223E3C2F61637469766974693A666F726D5661726961626C653E0A20202020202020203C2F61637469766974693A7661726961626C654C6973743E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C2F62706D6E323A757365725461736B3E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F307039673732692220736F757263655265663D2241637469766974795F3163733462693522207461726765745265663D2241637469766974795F303473636E326F223E3C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A6578636C7573697665476174657761792069643D22476174657761795F30707572396365223E0A2020202020203C62706D6E323A696E636F6D696E673E466C6F775F306979756B77723C2F62706D6E323A696E636F6D696E673E0A2020202020203C62706D6E323A6F7574676F696E673E466C6F775F306A667265316B3C2F62706D6E323A6F7574676F696E673E0A2020202020203C62706D6E323A6F7574676F696E673E466C6F775F313365646537623C2F62706D6E323A6F7574676F696E673E0A202020203C2F62706D6E323A6578636C7573697665476174657761793E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F306979756B777222206E616D653D22E5908CE6848F2220736F757263655265663D2241637469766974795F303473636E326F22207461726765745265663D22476174657761795F30707572396365223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A637573746F6D436F6E646974696F6E20747970653D226F7065726174696F6E22206F7065726174696F6E547970653D226167726565223E3C2F61637469766974693A637573746F6D436F6E646974696F6E3E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A2020202020203C636F6E646974696F6E45787072657373696F6E207873693A747970653D2274466F726D616C45787072657373696F6E223E3C215B43444154415B247B6F7065726174696F6E54797065203D3D20276167726565277D5D5D3E3C2F636F6E646974696F6E45787072657373696F6E3E0A202020203C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A656E644576656E742069643D224576656E745F30346E71666E79223E0A2020202020203C62706D6E323A696E636F6D696E673E466C6F775F306A667265316B3C2F62706D6E323A696E636F6D696E673E0A2020202020203C62706D6E323A696E636F6D696E673E466C6F775F313576336A6B6A3C2F62706D6E323A696E636F6D696E673E0A202020203C2F62706D6E323A656E644576656E743E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F306A667265316B22206E616D653D22E68AA5E99480E98791E9A29DE5B08FE4BA8E313030302220736F757263655265663D22476174657761795F3070757239636522207461726765745265663D224576656E745F30346E71666E79223E0A2020202020203C636F6E646974696F6E45787072657373696F6E207873693A747970653D2274466F726D616C45787072657373696F6E223E3C215B43444154415B247B746F74616C416D6F756E74203C3D20313030307D5D5D3E3C2F636F6E646974696F6E45787072657373696F6E3E0A202020203C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A757365725461736B2069643D2241637469766974795F3177323378666522206E616D653D22E680BBE7BB8FE79086E5AEA1E689B9222061637469766974693A63616E64696461746547726F7570733D2231343430393131343130353831323133343136222061637469766974693A666F726D4B65793D227B2671756F743B666F726D49642671756F743B3A2671756F743B313434303934373637353034313130373936382671756F743B2C2671756F743B726561644F6E6C792671756F743B3A747275652C2671756F743B67726F7570547970652671756F743B3A2671756F743B444550542671756F743B7D223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A6F7065726174696F6E4C6973743E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313138383339303122206C6162656C3D22E5908CE6848F2220747970653D226167726565222073686F774F726465723D2230223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313138383733323222206C6162656C3D22E68B92E7BB9D2220747970653D22726566757365222073686F774F726465723D2231223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A20202020202020203C2F61637469766974693A6F7065726174696F6E4C6973743E0A20202020202020203C61637469766974693A7661726961626C654C6973743E3C2F61637469766974693A7661726961626C654C6973743E0A20202020202020203C61637469766974693A7573657243616E64696461746547726F75707320747970653D2244455054222076616C75653D2231343430393131343130353831323133343136223E3C2F61637469766974693A7573657243616E64696461746547726F7570733E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C2F62706D6E323A757365725461736B3E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F3133656465376222206E616D653D22E68AA5E99480E98791E9A29DE5A4A7E4BA8E313030302220736F757263655265663D22476174657761795F3070757239636522207461726765745265663D2241637469766974795F31773233786665223E0A2020202020203C636F6E646974696F6E45787072657373696F6E207873693A747970653D2274466F726D616C45787072657373696F6E223E3C215B43444154415B247B746F74616C416D6F756E74203E20313030307D5D5D3E3C2F636F6E646974696F6E45787072657373696F6E3E0A202020203C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F313576336A6B6A22206E616D653D22E5908CE6848F2220736F757263655265663D2241637469766974795F3177323378666522207461726765745265663D224576656E745F30346E71666E79223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A637573746F6D436F6E646974696F6E20747970653D226F7065726174696F6E22206F7065726174696F6E547970653D226167726565223E3C2F61637469766974693A637573746F6D436F6E646974696F6E3E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A2020202020203C636F6E646974696F6E45787072657373696F6E207873693A747970653D2274466F726D616C45787072657373696F6E223E3C215B43444154415B247B6F7065726174696F6E54797065203D3D20276167726565277D5D5D3E3C2F636F6E646974696F6E45787072657373696F6E3E0A202020203C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F316F697135387222206E616D653D22E68B92E7BB9D2220736F757263655265663D2241637469766974795F3177323378666522207461726765745265663D2241637469766974795F31637334626935223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A637573746F6D436F6E646974696F6E20747970653D226F7065726174696F6E22206F7065726174696F6E547970653D22726566757365223E3C2F61637469766974693A637573746F6D436F6E646974696F6E3E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A2020202020203C636F6E646974696F6E45787072657373696F6E207873693A747970653D2274466F726D616C45787072657373696F6E223E3C215B43444154415B247B6F7065726174696F6E54797065203D3D2027726566757365277D5D5D3E3C2F636F6E646974696F6E45787072657373696F6E3E0A202020203C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F3039387338693022206E616D653D22E68B92E7BB9D2220736F757263655265663D2241637469766974795F303473636E326F22207461726765745265663D2241637469766974795F31637334626935223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A637573746F6D436F6E646974696F6E20747970653D226F7065726174696F6E22206F7065726174696F6E547970653D22726566757365223E3C2F61637469766974693A637573746F6D436F6E646974696F6E3E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A2020202020203C636F6E646974696F6E45787072657373696F6E207873693A747970653D2274466F726D616C45787072657373696F6E223E3C215B43444154415B247B6F7065726174696F6E54797065203D3D2027726566757365277D5D5D3E3C2F636F6E646974696F6E45787072657373696F6E3E0A202020203C2F62706D6E323A73657175656E6365466C6F773E0A20203C2F62706D6E323A70726F636573733E0A20203C62706D6E64693A42504D4E4469616772616D2069643D2242504D4E4469616772616D5F666C6F775375626D6974223E0A202020203C62706D6E64693A42504D4E506C616E652062706D6E456C656D656E743D22666C6F775375626D6974222069643D2242504D4E506C616E655F666C6F775375626D6974223E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D224576656E745F31753464783362222069643D2242504D4E53686170655F4576656E745F31753464783362223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2233362E30222077696474683D2233362E302220783D223132322E302220793D223330322E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D2241637469766974795F31637334626935222069643D2242504D4E53686170655F41637469766974795F31637334626935223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2238302E30222077696474683D223130302E302220783D223231302E302220793D223238302E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D2241637469766974795F303473636E326F222069643D2242504D4E53686170655F41637469766974795F303473636E326F223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2238302E30222077696474683D223130302E302220783D223337302E302220793D223238302E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D22476174657761795F30707572396365222069643D2242504D4E53686170655F476174657761795F30707572396365223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2235302E30222077696474683D2235302E302220783D223538352E302220793D223239352E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D224576656E745F30346E71666E79222069643D2242504D4E53686170655F4576656E745F30346E71666E79223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2233362E30222077696474683D2233362E302220783D223834322E302220793D223330322E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D2241637469766974795F31773233786665222069643D2242504D4E53686170655F41637469766974795F31773233786665223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2238302E30222077696474683D223130302E302220783D223536302E302220793D223339302E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F30393873386930222069643D2242504D4E456467655F466C6F775F30393873386930223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223432302E302220793D223238302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223432302E302220793D223234302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223236302E302220793D223234302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223236302E302220793D223238302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C62706D6E64693A42504D4E4C6162656C3E0A202020202020202020203C6F6D6764633A426F756E6473206865696768743D2231342E30222077696474683D2232322E302220783D223332392E302220793D223232322E30223E3C2F6F6D6764633A426F756E64733E0A20202020202020203C2F62706D6E64693A42504D4E4C6162656C3E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F316F6971353872222069643D2242504D4E456467655F466C6F775F316F6971353872223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223536302E302220793D223433302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223236302E302220793D223433302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223236302E302220793D223336302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C62706D6E64693A42504D4E4C6162656C3E0A202020202020202020203C6F6D6764633A426F756E6473206865696768743D2231342E30222077696474683D2232322E302220783D223339392E302220793D223431322E30223E3C2F6F6D6764633A426F756E64733E0A20202020202020203C2F62706D6E64693A42504D4E4C6162656C3E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F313576336A6B6A222069643D2242504D4E456467655F466C6F775F313576336A6B6A223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223636302E302220793D223433302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223836302E302220793D223433302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223836302E302220793D223333382E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C62706D6E64693A42504D4E4C6162656C3E0A202020202020202020203C6F6D6764633A426F756E6473206865696768743D2231342E30222077696474683D2232332E302220783D223734392E302220793D223431322E30223E3C2F6F6D6764633A426F756E64733E0A20202020202020203C2F62706D6E64693A42504D4E4C6162656C3E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F31336564653762222069643D2242504D4E456467655F466C6F775F31336564653762223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223631302E302220793D223334352E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223631302E302220793D223339302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C62706D6E64693A42504D4E4C6162656C3E0A202020202020202020203C6F6D6764633A426F756E6473206865696768743D2231342E30222077696474683D2239302E302220783D223631352E302220793D223335332E30223E3C2F6F6D6764633A426F756E64733E0A20202020202020203C2F62706D6E64693A42504D4E4C6162656C3E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F306A667265316B222069643D2242504D4E456467655F466C6F775F306A667265316B223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223633352E302220793D223332302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223834322E302220793D223332302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C62706D6E64693A42504D4E4C6162656C3E0A202020202020202020203C6F6D6764633A426F756E6473206865696768743D2231342E30222077696474683D2239302E302220783D223639342E302220793D223330322E30223E3C2F6F6D6764633A426F756E64733E0A20202020202020203C2F62706D6E64693A42504D4E4C6162656C3E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F306979756B7772222069643D2242504D4E456467655F466C6F775F306979756B7772223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223437302E302220793D223332302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223538352E302220793D223332302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C62706D6E64693A42504D4E4C6162656C3E0A202020202020202020203C6F6D6764633A426F756E6473206865696768743D2231342E30222077696474683D2232332E302220783D223531362E302220793D223330322E30223E3C2F6F6D6764633A426F756E64733E0A20202020202020203C2F62706D6E64693A42504D4E4C6162656C3E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F30703967373269222069643D2242504D4E456467655F466C6F775F30703967373269223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223331302E302220793D223332302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223337302E302220793D223332302E30223E3C2F6F6D6764693A776179706F696E743E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F306D726D71626B222069643D2242504D4E456467655F466C6F775F306D726D71626B223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223135382E302220793D223332302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223231302E302220793D223332302E30223E3C2F6F6D6764693A776179706F696E743E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A202020203C2F62706D6E64693A42504D4E506C616E653E0A20203C2F62706D6E64693A42504D4E4469616772616D3E0A3C2F62706D6E323A646566696E6974696F6E733E, 0); -INSERT INTO `ACT_GE_BYTEARRAY` VALUES ('3a623097-3179-11ec-9438-f20b812c0662', 1, 'flowLeave.bpmn', '3a623096-3179-11ec-9438-f20b812c0662', 0x3C3F786D6C2076657273696F6E3D22312E302220656E636F64696E673D225554462D38223F3E0A3C62706D6E323A646566696E6974696F6E7320786D6C6E733D22687474703A2F2F7777772E6F6D672E6F72672F737065632F42504D4E2F32303130303532342F4D4F44454C2220786D6C6E733A62706D6E323D22687474703A2F2F7777772E6F6D672E6F72672F737065632F42504D4E2F32303130303532342F4D4F44454C2220786D6C6E733A7873693D22687474703A2F2F7777772E77332E6F72672F323030312F584D4C536368656D612D696E7374616E63652220786D6C6E733A7873643D22687474703A2F2F7777772E77332E6F72672F323030312F584D4C536368656D612220786D6C6E733A61637469766974693D22687474703A2F2F61637469766974692E6F72672F62706D6E2220786D6C6E733A62706D6E64693D22687474703A2F2F7777772E6F6D672E6F72672F737065632F42504D4E2F32303130303532342F44492220786D6C6E733A6F6D6764633D22687474703A2F2F7777772E6F6D672E6F72672F737065632F44442F32303130303532342F44432220786D6C6E733A6F6D6764693D22687474703A2F2F7777772E6F6D672E6F72672F737065632F44442F32303130303532342F44492220786D6C6E733A64633D22687474703A2F2F7777772E6F6D672E6F72672F737065632F44442F32303130303532342F44432220786D6C6E733A64693D22687474703A2F2F7777772E6F6D672E6F72672F737065632F44442F32303130303532342F44492220747970654C616E67756167653D22687474703A2F2F7777772E77332E6F72672F323030312F584D4C536368656D61222065787072657373696F6E4C616E67756167653D22687474703A2F2F7777772E77332E6F72672F313939392F585061746822207461726765744E616D6573706163653D22687474703A2F2F61637469766974692E6F72672F62706D6E222069643D226469616772616D5F666C6F774C6561766522207873693A736368656D614C6F636174696F6E3D22687474703A2F2F7777772E6F6D672E6F72672F737065632F42504D4E2F32303130303532342F4D4F44454C2042504D4E32302E787364223E0A20203C62706D6E323A70726F636573732069643D22666C6F774C6561766522206E616D653D22E8AFB7E58187E794B3E8AFB72220697345786563757461626C653D2274727565223E0A202020203C657874656E73696F6E456C656D656E74733E0A2020202020203C61637469766974693A657865637574696F6E4C697374656E6572206576656E743D22656E642220636C6173733D22636F6D2E666C6F772E64656D6F2E636F6D6D6F6E2E666C6F772E6C697374656E65722E557064617465466C6F775374617475734C697374656E6572223E3C2F61637469766974693A657865637574696F6E4C697374656E65723E0A202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C62706D6E323A73746172744576656E742069643D224576656E745F316D6D72747477223E0A2020202020203C62706D6E323A6F7574676F696E673E466C6F775F3079346D336B763C2F62706D6E323A6F7574676F696E673E0A202020203C2F62706D6E323A73746172744576656E743E0A202020203C62706D6E323A757365725461736B2069643D2241637469766974795F317462386A6B6122206E616D653D22E8AFB7E58187E794B3E8AFB7222061637469766974693A61737369676E65653D22247B7374617274557365724E616D657D222061637469766974693A666F726D4B65793D227B2671756F743B666F726D49642671756F743B3A2671756F743B313434303934353431313335343236373634382671756F743B2C2671756F743B726561644F6E6C792671756F743B3A66616C73652C2671756F743B67726F7570547970652671756F743B3A2671756F743B444550542671756F743B7D223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A6F7065726174696F6E4C6973743E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313131323239323522206C6162656C3D22E68F90E4BAA42220747970653D226167726565222073686F774F726465723D2230223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A20202020202020203C2F61637469766974693A6F7065726174696F6E4C6973743E0A20202020202020203C61637469766974693A7661726961626C654C6973743E3C2F61637469766974693A7661726961626C654C6973743E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C2F62706D6E323A757365725461736B3E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F3079346D336B762220736F757263655265663D224576656E745F316D6D7274747722207461726765745265663D2241637469766974795F317462386A6B61223E3C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A757365725461736B2069643D2241637469766974795F31316A7230707822206E616D653D22E983A8E997A8E9A286E5AFBCE5AEA1E689B9222061637469766974693A63616E64696461746547726F7570733D22247B64657074506F73744C65616465727D222061637469766974693A666F726D4B65793D227B2671756F743B666F726D49642671756F743B3A2671756F743B313434303934353431313335343236373634382671756F743B2C2671756F743B726561644F6E6C792671756F743B3A747275652C2671756F743B67726F7570547970652671756F743B3A2671756F743B444550545F504F53545F4C45414445522671756F743B7D223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A7461736B4C697374656E6572206576656E743D226372656174652220636C6173733D22636F6D2E666C6F772E64656D6F2E636F6D6D6F6E2E666C6F772E6C697374656E65722E44657074506F73744C65616465724C697374656E6572223E3C2F61637469766974693A7461736B4C697374656E65723E0A20202020202020203C61637469766974693A6F7065726174696F6E4C6973743E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313131343739343122206C6162656C3D22E5908CE6848F2220747970653D226167726565222073686F774F726465723D2230223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313131353133343922206C6162656C3D22E68B92E7BB9D2220747970653D22726566757365222073686F774F726465723D2231223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A20202020202020203C2F61637469766974693A6F7065726174696F6E4C6973743E0A20202020202020203C61637469766974693A7661726961626C654C6973743E3C2F61637469766974693A7661726961626C654C6973743E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C2F62706D6E323A757365725461736B3E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F30376F703230392220736F757263655265663D2241637469766974795F317462386A6B6122207461726765745265663D2241637469766974795F31316A72307078223E3C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A757365725461736B2069643D2241637469766974795F3030696270307522206E616D653D224852E5AEA1E689B9222061637469766974693A63616E64696461746547726F7570733D2231343430393634323231383535363030363430222061637469766974693A666F726D4B65793D227B2671756F743B666F726D49642671756F743B3A2671756F743B313434303934353431313335343236373634382671756F743B2C2671756F743B726561644F6E6C792671756F743B3A747275652C2671756F743B67726F7570547970652671756F743B3A2671756F743B504F53542671756F743B7D223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A6F7065726174696F6E4C6973743E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313133303636303122206C6162656C3D22E5908CE6848F2220747970653D226167726565222073686F774F726465723D2230223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313133313033393122206C6162656C3D22E68B92E7BB9D2220747970653D22726566757365222073686F774F726465723D2231223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A20202020202020203C2F61637469766974693A6F7065726174696F6E4C6973743E0A20202020202020203C61637469766974693A7661726961626C654C6973743E3C2F61637469766974693A7661726961626C654C6973743E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C2F62706D6E323A757365725461736B3E0A202020203C62706D6E323A656E644576656E742069643D224576656E745F3163303839756F223E0A2020202020203C62706D6E323A696E636F6D696E673E466C6F775F306D32376664653C2F62706D6E323A696E636F6D696E673E0A202020203C2F62706D6E323A656E644576656E743E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F306D323766646522206E616D653D22E5908CE6848F2220736F757263655265663D2241637469766974795F3030696270307522207461726765745265663D224576656E745F3163303839756F223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A637573746F6D436F6E646974696F6E20747970653D226F7065726174696F6E22206F7065726174696F6E547970653D226167726565223E3C2F61637469766974693A637573746F6D436F6E646974696F6E3E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A2020202020203C636F6E646974696F6E45787072657373696F6E207873693A747970653D2274466F726D616C45787072657373696F6E223E3C215B43444154415B247B6F7065726174696F6E54797065203D3D20276167726565277D5D5D3E3C2F636F6E646974696F6E45787072657373696F6E3E0A202020203C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F31367A796F613522206E616D653D22E68B92E7BB9D2220736F757263655265663D2241637469766974795F31316A7230707822207461726765745265663D2241637469766974795F317462386A6B61223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A637573746F6D436F6E646974696F6E20747970653D226F7065726174696F6E22206F7065726174696F6E547970653D22726566757365223E3C2F61637469766974693A637573746F6D436F6E646974696F6E3E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A2020202020203C636F6E646974696F6E45787072657373696F6E207873693A747970653D2274466F726D616C45787072657373696F6E223E3C215B43444154415B247B6F7065726174696F6E54797065203D3D2027726566757365277D5D5D3E3C2F636F6E646974696F6E45787072657373696F6E3E0A202020203C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F306C6C3734616E22206E616D653D22E5908CE6848F2220736F757263655265663D2241637469766974795F31316A7230707822207461726765745265663D2241637469766974795F30306962703075223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A637573746F6D436F6E646974696F6E20747970653D226F7065726174696F6E22206F7065726174696F6E547970653D226167726565223E3C2F61637469766974693A637573746F6D436F6E646974696F6E3E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A2020202020203C636F6E646974696F6E45787072657373696F6E207873693A747970653D2274466F726D616C45787072657373696F6E223E3C215B43444154415B247B6F7065726174696F6E54797065203D3D20276167726565277D5D5D3E3C2F636F6E646974696F6E45787072657373696F6E3E0A202020203C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F3161656B6D733822206E616D653D22E68B92E7BB9D2220736F757263655265663D2241637469766974795F3030696270307522207461726765745265663D2241637469766974795F317462386A6B61223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A637573746F6D436F6E646974696F6E20747970653D226F7065726174696F6E22206F7065726174696F6E547970653D22726566757365223E3C2F61637469766974693A637573746F6D436F6E646974696F6E3E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A2020202020203C636F6E646974696F6E45787072657373696F6E207873693A747970653D2274466F726D616C45787072657373696F6E223E3C215B43444154415B247B6F7065726174696F6E54797065203D3D2027726566757365277D5D5D3E3C2F636F6E646974696F6E45787072657373696F6E3E0A202020203C2F62706D6E323A73657175656E6365466C6F773E0A20203C2F62706D6E323A70726F636573733E0A20203C62706D6E64693A42504D4E4469616772616D2069643D2242504D4E4469616772616D5F666C6F774C65617665223E0A202020203C62706D6E64693A42504D4E506C616E652062706D6E456C656D656E743D22666C6F774C65617665222069643D2242504D4E506C616E655F666C6F774C65617665223E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D224576656E745F316D6D72747477222069643D2242504D4E53686170655F4576656E745F316D6D72747477223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2233362E30222077696474683D2233362E302220783D223133322E302220793D223237322E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D2241637469766974795F317462386A6B61222069643D2242504D4E53686170655F41637469766974795F317462386A6B61223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2238302E30222077696474683D223130302E302220783D223232302E302220793D223235302E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D2241637469766974795F31316A72307078222069643D2242504D4E53686170655F41637469766974795F31316A72307078223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2238302E30222077696474683D223130302E302220783D223338302E302220793D223235302E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D2241637469766974795F30306962703075222069643D2242504D4E53686170655F41637469766974795F30306962703075223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2238302E30222077696474683D223130302E302220783D223534302E302220793D223235302E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D224576656E745F3163303839756F222069643D2242504D4E53686170655F4576656E745F3163303839756F223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2233362E30222077696474683D2233362E302220783D223730322E302220793D223237322E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F3079346D336B76222069643D2242504D4E456467655F466C6F775F3079346D336B76223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223136382E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223232302E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F30376F70323039222069643D2242504D4E456467655F466C6F775F30376F70323039223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223332302E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223338302E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F306C6C3734616E222069643D2242504D4E456467655F466C6F775F306C6C3734616E223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223438302E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223534302E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C62706D6E64693A42504D4E4C6162656C3E0A202020202020202020203C6F6D6764633A426F756E6473206865696768743D2231342E30222077696474683D2232332E302220783D223439392E302220793D223237322E30223E3C2F6F6D6764633A426F756E64733E0A20202020202020203C2F62706D6E64693A42504D4E4C6162656C3E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F306D3237666465222069643D2242504D4E456467655F466C6F775F306D3237666465223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223634302E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223730322E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C62706D6E64693A42504D4E4C6162656C3E0A202020202020202020203C6F6D6764633A426F756E6473206865696768743D2231342E30222077696474683D2232332E302220783D223636302E302220793D223237322E30223E3C2F6F6D6764633A426F756E64733E0A20202020202020203C2F62706D6E64693A42504D4E4C6162656C3E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F31367A796F6135222069643D2242504D4E456467655F466C6F775F31367A796F6135223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223433302E302220793D223235302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223433302E302220793D223231302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223237302E302220793D223231302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223237302E302220793D223235302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C62706D6E64693A42504D4E4C6162656C3E0A202020202020202020203C6F6D6764633A426F756E6473206865696768743D2231342E30222077696474683D2232322E302220783D223333392E302220793D223139322E30223E3C2F6F6D6764633A426F756E64733E0A20202020202020203C2F62706D6E64693A42504D4E4C6162656C3E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F3161656B6D7338222069643D2242504D4E456467655F466C6F775F3161656B6D7338223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223539302E302220793D223333302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223539302E302220793D223337302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223237302E302220793D223337302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223237302E302220793D223333302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C62706D6E64693A42504D4E4C6162656C3E0A202020202020202020203C6F6D6764633A426F756E6473206865696768743D2231342E30222077696474683D2232322E302220783D223431392E302220793D223335322E30223E3C2F6F6D6764633A426F756E64733E0A20202020202020203C2F62706D6E64693A42504D4E4C6162656C3E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A202020203C2F62706D6E64693A42504D4E506C616E653E0A20203C2F62706D6E64693A42504D4E4469616772616D3E0A3C2F62706D6E323A646566696E6974696F6E733E, 0); -INSERT INTO `ACT_GE_BYTEARRAY` VALUES ('3ee76d9f-317d-11ec-9438-f20b812c0662', 1, 'flowLeave.bpmn', '3ee7468e-317d-11ec-9438-f20b812c0662', 0x3C3F786D6C2076657273696F6E3D22312E302220656E636F64696E673D225554462D38223F3E0A3C62706D6E323A646566696E6974696F6E7320786D6C6E733D22687474703A2F2F7777772E6F6D672E6F72672F737065632F42504D4E2F32303130303532342F4D4F44454C2220786D6C6E733A62706D6E323D22687474703A2F2F7777772E6F6D672E6F72672F737065632F42504D4E2F32303130303532342F4D4F44454C2220786D6C6E733A7873693D22687474703A2F2F7777772E77332E6F72672F323030312F584D4C536368656D612D696E7374616E63652220786D6C6E733A7873643D22687474703A2F2F7777772E77332E6F72672F323030312F584D4C536368656D612220786D6C6E733A61637469766974693D22687474703A2F2F61637469766974692E6F72672F62706D6E2220786D6C6E733A62706D6E64693D22687474703A2F2F7777772E6F6D672E6F72672F737065632F42504D4E2F32303130303532342F44492220786D6C6E733A6F6D6764633D22687474703A2F2F7777772E6F6D672E6F72672F737065632F44442F32303130303532342F44432220786D6C6E733A6F6D6764693D22687474703A2F2F7777772E6F6D672E6F72672F737065632F44442F32303130303532342F44492220786D6C6E733A64633D22687474703A2F2F7777772E6F6D672E6F72672F737065632F44442F32303130303532342F44432220786D6C6E733A64693D22687474703A2F2F7777772E6F6D672E6F72672F737065632F44442F32303130303532342F44492220747970654C616E67756167653D22687474703A2F2F7777772E77332E6F72672F323030312F584D4C536368656D61222065787072657373696F6E4C616E67756167653D22687474703A2F2F7777772E77332E6F72672F313939392F585061746822207461726765744E616D6573706163653D22687474703A2F2F61637469766974692E6F72672F62706D6E222069643D226469616772616D5F666C6F774C6561766522207873693A736368656D614C6F636174696F6E3D22687474703A2F2F7777772E6F6D672E6F72672F737065632F42504D4E2F32303130303532342F4D4F44454C2042504D4E32302E787364223E0A20203C62706D6E323A70726F636573732069643D22666C6F774C6561766522206E616D653D22E8AFB7E58187E794B3E8AFB72220697345786563757461626C653D2274727565223E0A202020203C657874656E73696F6E456C656D656E74733E0A2020202020203C61637469766974693A657865637574696F6E4C697374656E6572206576656E743D22656E642220636C6173733D22636F6D2E666C6F772E64656D6F2E636F6D6D6F6E2E666C6F772E6C697374656E65722E557064617465466C6F775374617475734C697374656E6572223E3C2F61637469766974693A657865637574696F6E4C697374656E65723E0A202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C62706D6E323A73746172744576656E742069643D224576656E745F316D6D72747477223E0A2020202020203C62706D6E323A6F7574676F696E673E466C6F775F3079346D336B763C2F62706D6E323A6F7574676F696E673E0A202020203C2F62706D6E323A73746172744576656E743E0A202020203C62706D6E323A757365725461736B2069643D2241637469766974795F317462386A6B6122206E616D653D22E8AFB7E58187E794B3E8AFB7222061637469766974693A61737369676E65653D22247B7374617274557365724E616D657D222061637469766974693A666F726D4B65793D227B2671756F743B666F726D49642671756F743B3A2671756F743B313434303934353431313335343236373634382671756F743B2C2671756F743B726561644F6E6C792671756F743B3A66616C73652C2671756F743B67726F7570547970652671756F743B3A2671756F743B444550542671756F743B7D223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A6F7065726174696F6E4C6973743E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313131323239323522206C6162656C3D22E68F90E4BAA42220747970653D226167726565222073686F774F726465723D2230223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A20202020202020203C2F61637469766974693A6F7065726174696F6E4C6973743E0A20202020202020203C61637469766974693A7661726961626C654C6973743E3C2F61637469766974693A7661726961626C654C6973743E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C2F62706D6E323A757365725461736B3E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F3079346D336B762220736F757263655265663D224576656E745F316D6D7274747722207461726765745265663D2241637469766974795F317462386A6B61223E3C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A757365725461736B2069643D2241637469766974795F31316A7230707822206E616D653D22E983A8E997A8E9A286E5AFBCE5AEA1E689B9222061637469766974693A63616E64696461746547726F7570733D22247B64657074506F73744C65616465727D222061637469766974693A666F726D4B65793D227B2671756F743B666F726D49642671756F743B3A2671756F743B313434303934353431313335343236373634382671756F743B2C2671756F743B726561644F6E6C792671756F743B3A747275652C2671756F743B67726F7570547970652671756F743B3A2671756F743B444550545F504F53545F4C45414445522671756F743B7D223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A7461736B4C697374656E6572206576656E743D226372656174652220636C6173733D22636F6D2E666C6F772E64656D6F2E636F6D6D6F6E2E666C6F772E6C697374656E65722E44657074506F73744C65616465724C697374656E6572223E3C2F61637469766974693A7461736B4C697374656E65723E0A20202020202020203C61637469766974693A6F7065726174696F6E4C6973743E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313131343739343122206C6162656C3D22E5908CE6848F2220747970653D226167726565222073686F774F726465723D2230223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313131353133343922206C6162656C3D22E68B92E7BB9D2220747970653D22726566757365222073686F774F726465723D2231223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A20202020202020203C2F61637469766974693A6F7065726174696F6E4C6973743E0A20202020202020203C61637469766974693A7661726961626C654C6973743E3C2F61637469766974693A7661726961626C654C6973743E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C2F62706D6E323A757365725461736B3E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F30376F703230392220736F757263655265663D2241637469766974795F317462386A6B6122207461726765745265663D2241637469766974795F31316A72307078223E3C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A757365725461736B2069643D2241637469766974795F3030696270307522206E616D653D224852E5AEA1E689B9222061637469766974693A63616E64696461746547726F7570733D2231343430393634323231383535363030363430222061637469766974693A666F726D4B65793D227B2671756F743B666F726D49642671756F743B3A2671756F743B313434303934353431313335343236373634382671756F743B2C2671756F743B726561644F6E6C792671756F743B3A747275652C2671756F743B67726F7570547970652671756F743B3A2671756F743B504F53542671756F743B7D223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A6F7065726174696F6E4C6973743E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313133303636303122206C6162656C3D22E5908CE6848F2220747970653D226167726565222073686F774F726465723D2230223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313133313033393122206C6162656C3D22E68B92E7BB9D2220747970653D22726566757365222073686F774F726465723D2231223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A20202020202020203C2F61637469766974693A6F7065726174696F6E4C6973743E0A20202020202020203C61637469766974693A7661726961626C654C6973743E3C2F61637469766974693A7661726961626C654C6973743E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C2F62706D6E323A757365725461736B3E0A202020203C62706D6E323A656E644576656E742069643D224576656E745F3163303839756F223E0A2020202020203C62706D6E323A696E636F6D696E673E466C6F775F306D32376664653C2F62706D6E323A696E636F6D696E673E0A202020203C2F62706D6E323A656E644576656E743E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F306D323766646522206E616D653D22E5908CE6848F2220736F757263655265663D2241637469766974795F3030696270307522207461726765745265663D224576656E745F3163303839756F223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A637573746F6D436F6E646974696F6E20747970653D226F7065726174696F6E22206F7065726174696F6E547970653D226167726565223E3C2F61637469766974693A637573746F6D436F6E646974696F6E3E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A2020202020203C636F6E646974696F6E45787072657373696F6E207873693A747970653D2274466F726D616C45787072657373696F6E223E3C215B43444154415B247B6F7065726174696F6E54797065203D3D20276167726565277D5D5D3E3C2F636F6E646974696F6E45787072657373696F6E3E0A202020203C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F31367A796F613522206E616D653D22E68B92E7BB9D2220736F757263655265663D2241637469766974795F31316A7230707822207461726765745265663D2241637469766974795F317462386A6B61223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A637573746F6D436F6E646974696F6E20747970653D226F7065726174696F6E22206F7065726174696F6E547970653D22726566757365223E3C2F61637469766974693A637573746F6D436F6E646974696F6E3E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A2020202020203C636F6E646974696F6E45787072657373696F6E207873693A747970653D2274466F726D616C45787072657373696F6E223E3C215B43444154415B247B6F7065726174696F6E54797065203D3D2027726566757365277D5D5D3E3C2F636F6E646974696F6E45787072657373696F6E3E0A202020203C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F306C6C3734616E22206E616D653D22E5908CE6848F2220736F757263655265663D2241637469766974795F31316A7230707822207461726765745265663D2241637469766974795F30306962703075223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A637573746F6D436F6E646974696F6E20747970653D226F7065726174696F6E22206F7065726174696F6E547970653D226167726565223E3C2F61637469766974693A637573746F6D436F6E646974696F6E3E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A2020202020203C636F6E646974696F6E45787072657373696F6E207873693A747970653D2274466F726D616C45787072657373696F6E223E3C215B43444154415B247B6F7065726174696F6E54797065203D3D20276167726565277D5D5D3E3C2F636F6E646974696F6E45787072657373696F6E3E0A202020203C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F3161656B6D733822206E616D653D22E68B92E7BB9D2220736F757263655265663D2241637469766974795F3030696270307522207461726765745265663D2241637469766974795F317462386A6B61223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A637573746F6D436F6E646974696F6E20747970653D226F7065726174696F6E22206F7065726174696F6E547970653D22726566757365223E3C2F61637469766974693A637573746F6D436F6E646974696F6E3E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A2020202020203C636F6E646974696F6E45787072657373696F6E207873693A747970653D2274466F726D616C45787072657373696F6E223E3C215B43444154415B247B6F7065726174696F6E54797065203D3D2027726566757365277D5D5D3E3C2F636F6E646974696F6E45787072657373696F6E3E0A202020203C2F62706D6E323A73657175656E6365466C6F773E0A20203C2F62706D6E323A70726F636573733E0A20203C62706D6E64693A42504D4E4469616772616D2069643D2242504D4E4469616772616D5F666C6F774C65617665223E0A202020203C62706D6E64693A42504D4E506C616E652062706D6E456C656D656E743D22666C6F774C65617665222069643D2242504D4E506C616E655F666C6F774C65617665223E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D224576656E745F316D6D72747477222069643D2242504D4E53686170655F4576656E745F316D6D72747477223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2233362E30222077696474683D2233362E302220783D223133322E302220793D223237322E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D2241637469766974795F317462386A6B61222069643D2242504D4E53686170655F41637469766974795F317462386A6B61223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2238302E30222077696474683D223130302E302220783D223232302E302220793D223235302E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D2241637469766974795F31316A72307078222069643D2242504D4E53686170655F41637469766974795F31316A72307078223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2238302E30222077696474683D223130302E302220783D223338302E302220793D223235302E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D2241637469766974795F30306962703075222069643D2242504D4E53686170655F41637469766974795F30306962703075223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2238302E30222077696474683D223130302E302220783D223534302E302220793D223235302E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D224576656E745F3163303839756F222069643D2242504D4E53686170655F4576656E745F3163303839756F223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2233362E30222077696474683D2233362E302220783D223730322E302220793D223237322E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F3079346D336B76222069643D2242504D4E456467655F466C6F775F3079346D336B76223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223136382E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223232302E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F30376F70323039222069643D2242504D4E456467655F466C6F775F30376F70323039223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223332302E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223338302E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F306C6C3734616E222069643D2242504D4E456467655F466C6F775F306C6C3734616E223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223438302E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223534302E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C62706D6E64693A42504D4E4C6162656C3E0A202020202020202020203C6F6D6764633A426F756E6473206865696768743D2231342E30222077696474683D2232332E302220783D223439392E302220793D223237322E30223E3C2F6F6D6764633A426F756E64733E0A20202020202020203C2F62706D6E64693A42504D4E4C6162656C3E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F306D3237666465222069643D2242504D4E456467655F466C6F775F306D3237666465223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223634302E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223730322E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C62706D6E64693A42504D4E4C6162656C3E0A202020202020202020203C6F6D6764633A426F756E6473206865696768743D2231342E30222077696474683D2232332E302220783D223636302E302220793D223237322E30223E3C2F6F6D6764633A426F756E64733E0A20202020202020203C2F62706D6E64693A42504D4E4C6162656C3E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F31367A796F6135222069643D2242504D4E456467655F466C6F775F31367A796F6135223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223433302E302220793D223235302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223433302E302220793D223231302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223237302E302220793D223231302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223237302E302220793D223235302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C62706D6E64693A42504D4E4C6162656C3E0A202020202020202020203C6F6D6764633A426F756E6473206865696768743D2231342E30222077696474683D2232322E302220783D223333392E302220793D223139322E30223E3C2F6F6D6764633A426F756E64733E0A20202020202020203C2F62706D6E64693A42504D4E4C6162656C3E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F3161656B6D7338222069643D2242504D4E456467655F466C6F775F3161656B6D7338223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223539302E302220793D223333302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223539302E302220793D223337302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223237302E302220793D223337302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223237302E302220793D223333302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C62706D6E64693A42504D4E4C6162656C3E0A202020202020202020203C6F6D6764633A426F756E6473206865696768743D2231342E30222077696474683D2232322E302220783D223431392E302220793D223335322E30223E3C2F6F6D6764633A426F756E64733E0A20202020202020203C2F62706D6E64693A42504D4E4C6162656C3E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A202020203C2F62706D6E64693A42504D4E506C616E653E0A20203C2F62706D6E64693A42504D4E4469616772616D3E0A3C2F62706D6E323A646566696E6974696F6E733E, 0); -INSERT INTO `ACT_GE_BYTEARRAY` VALUES ('4127d3d0-5e70-11ec-9355-5e4c369e54c1', 1, 'flowContract.bpmn', '4127d3cf-5e70-11ec-9355-5e4c369e54c1', 0x3C3F786D6C2076657273696F6E3D22312E302220656E636F64696E673D225554462D38223F3E0A3C62706D6E323A646566696E6974696F6E7320786D6C6E733D22687474703A2F2F7777772E6F6D672E6F72672F737065632F42504D4E2F32303130303532342F4D4F44454C2220786D6C6E733A62706D6E323D22687474703A2F2F7777772E6F6D672E6F72672F737065632F42504D4E2F32303130303532342F4D4F44454C2220786D6C6E733A7873693D22687474703A2F2F7777772E77332E6F72672F323030312F584D4C536368656D612D696E7374616E63652220786D6C6E733A7873643D22687474703A2F2F7777772E77332E6F72672F323030312F584D4C536368656D612220786D6C6E733A61637469766974693D22687474703A2F2F61637469766974692E6F72672F62706D6E2220786D6C6E733A62706D6E64693D22687474703A2F2F7777772E6F6D672E6F72672F737065632F42504D4E2F32303130303532342F44492220786D6C6E733A6F6D6764633D22687474703A2F2F7777772E6F6D672E6F72672F737065632F44442F32303130303532342F44432220786D6C6E733A6F6D6764693D22687474703A2F2F7777772E6F6D672E6F72672F737065632F44442F32303130303532342F44492220786D6C6E733A64633D22687474703A2F2F7777772E6F6D672E6F72672F737065632F44442F32303130303532342F44432220786D6C6E733A64693D22687474703A2F2F7777772E6F6D672E6F72672F737065632F44442F32303130303532342F44492220747970654C616E67756167653D22687474703A2F2F7777772E77332E6F72672F323030312F584D4C536368656D61222065787072657373696F6E4C616E67756167653D22687474703A2F2F7777772E77332E6F72672F313939392F585061746822207461726765744E616D6573706163653D22687474703A2F2F61637469766974692E6F72672F62706D6E222069643D226469616772616D5F666C6F77436F6E747261637422207873693A736368656D614C6F636174696F6E3D22687474703A2F2F7777772E6F6D672E6F72672F737065632F42504D4E2F32303130303532342F4D4F44454C2042504D4E32302E787364223E0A20203C62706D6E323A70726F636573732069643D22666C6F77436F6E747261637422206E616D653D22E59088E5908CE5AEA1E689B92220697345786563757461626C653D2274727565223E0A202020203C657874656E73696F6E456C656D656E74733E0A2020202020203C61637469766974693A657865637574696F6E4C697374656E6572206576656E743D22656E642220636C6173733D22636F6D2E6F72616E6765666F726D732E636F6D6D6F6E2E666C6F772E6C697374656E65722E466C6F7746696E69736865644C697374656E6572223E3C2F61637469766974693A657865637574696F6E4C697374656E65723E0A202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C62706D6E323A73746172744576656E742069643D224576656E745F306B6A70396369223E0A2020202020203C62706D6E323A6F7574676F696E673E466C6F775F30656D7834307A3C2F62706D6E323A6F7574676F696E673E0A202020203C2F62706D6E323A73746172744576656E743E0A202020203C62706D6E323A757365725461736B2069643D2241637469766974795F306263696F686622206E616D653D22E59088E5908CE5BD95E585A5222061637469766974693A61737369676E65653D22247B7374617274557365724E616D657D222061637469766974693A666F726D4B65793D227B2671756F743B666F726D49642671756F743B3A2671756F743B313434303935343932303334383934363433322671756F743B2C2671756F743B726561644F6E6C792671756F743B3A66616C73652C2671756F743B67726F7570547970652671756F743B3A2671756F743B41535349474E45452671756F743B7D223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A6F7065726174696F6E4C6973743E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313235353334393822206C6162656C3D22E68F90E4BAA42220747970653D226167726565222073686F774F726465723D2230223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A20202020202020203C2F61637469766974693A6F7065726174696F6E4C6973743E0A20202020202020203C61637469766974693A7661726961626C654C6973743E3C2F61637469766974693A7661726961626C654C6973743E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C2F62706D6E323A757365725461736B3E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F30656D7834307A2220736F757263655265663D224576656E745F306B6A7039636922207461726765745265663D2241637469766974795F306263696F6866223E3C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A757365725461736B2069643D2241637469766974795F3035336F6D393922206E616D653D22E4B89AE58AA1E983A8E9A286E5AFBCE5AEA1E689B9222061637469766974693A63616E64696461746547726F7570733D22247B64657074506F73744C65616465727D222061637469766974693A666F726D4B65793D227B2671756F743B666F726D49642671756F743B3A2671756F743B313434303935343932303334383934363433322671756F743B2C2671756F743B726561644F6E6C792671756F743B3A747275652C2671756F743B67726F7570547970652671756F743B3A2671756F743B444550545F504F53545F4C45414445522671756F743B7D223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A7461736B4C697374656E6572206576656E743D226372656174652220636C6173733D22636F6D2E6F72616E6765666F726D732E636F6D6D6F6E2E666C6F772E6C697374656E65722E44657074506F73744C65616465724C697374656E6572223E3C2F61637469766974693A7461736B4C697374656E65723E0A20202020202020203C61637469766974693A6F7065726174696F6E4C6973743E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313235363433353322206C6162656C3D22E5908CE6848F2220747970653D226167726565222073686F774F726465723D2230223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A20202020202020203C2F61637469766974693A6F7065726174696F6E4C6973743E0A20202020202020203C61637469766974693A7661726961626C654C6973743E3C2F61637469766974693A7661726961626C654C6973743E0A20202020202020203C61637469766974693A64657074506F73744C6973743E3C2F61637469766974693A64657074506F73744C6973743E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C2F62706D6E323A757365725461736B3E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F306477663979742220736F757263655265663D2241637469766974795F306263696F686622207461726765745265663D2241637469766974795F3035336F6D3939223E3C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F3076357A6A336B2220736F757263655265663D2241637469766974795F3035336F6D393922207461726765745265663D22476174657761795F3038353538696A223E3C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A706172616C6C656C476174657761792069643D22476174657761795F3038353538696A223E0A2020202020203C62706D6E323A696E636F6D696E673E466C6F775F3076357A6A336B3C2F62706D6E323A696E636F6D696E673E0A2020202020203C62706D6E323A6F7574676F696E673E466C6F775F3164357568636F3C2F62706D6E323A6F7574676F696E673E0A2020202020203C62706D6E323A6F7574676F696E673E466C6F775F317168396370303C2F62706D6E323A6F7574676F696E673E0A202020203C2F62706D6E323A706172616C6C656C476174657761793E0A202020203C62706D6E323A757365725461736B2069643D2241637469766974795F307A3930616C6922206E616D653D22E5B7A5E7A88BE983A8E5AEA1E689B9222061637469766974693A61737369676E65653D2261646D696E222061637469766974693A666F726D4B65793D227B2671756F743B666F726D49642671756F743B3A2671756F743B313434303935353139343939313937323335322671756F743B2C2671756F743B726561644F6E6C792671756F743B3A747275652C2671756F743B67726F7570547970652671756F743B3A2671756F743B41535349474E45452671756F743B7D223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A6F7065726174696F6E4C6973743E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313236303635323922206C6162656C3D22E5908CE6848F2220747970653D226167726565222073686F774F726465723D2230223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A20202020202020203C2F61637469766974693A6F7065726174696F6E4C6973743E0A20202020202020203C61637469766974693A7661726961626C654C6973743E3C2F61637469766974693A7661726961626C654C6973743E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C2F62706D6E323A757365725461736B3E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F3164357568636F2220736F757263655265663D22476174657761795F3038353538696A22207461726765745265663D2241637469766974795F307A3930616C69223E3C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A757365725461736B2069643D2241637469766974795F3137393330616A22206E616D653D22E980A0E4BBB7E983A8E5AEA1E689B9222061637469766974693A63616E64696461746555736572733D2261646D696E222061637469766974693A666F726D4B65793D227B2671756F743B666F726D49642671756F743B3A2671756F743B313434303935353139343939313937323335322671756F743B2C2671756F743B726561644F6E6C792671756F743B3A747275652C2671756F743B67726F7570547970652671756F743B3A2671756F743B55534552532671756F743B7D223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A6F7065726174696F6E4C6973743E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313236333131313322206C6162656C3D22E5908CE6848F2220747970653D226167726565222073686F774F726465723D2230223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A20202020202020203C2F61637469766974693A6F7065726174696F6E4C6973743E0A20202020202020203C61637469766974693A7661726961626C654C6973743E3C2F61637469766974693A7661726961626C654C6973743E0A20202020202020203C61637469766974693A7573657243616E64696461746547726F75707320747970653D225553455253222076616C75653D2261646D696E223E3C2F61637469766974693A7573657243616E64696461746547726F7570733E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C2F62706D6E323A757365725461736B3E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F317168396370302220736F757263655265663D22476174657761795F3038353538696A22207461726765745265663D2241637469766974795F3137393330616A223E3C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F316E35637866672220736F757263655265663D2241637469766974795F3137393330616A22207461726765745265663D22476174657761795F30796A79713068223E3C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A706172616C6C656C476174657761792069643D22476174657761795F30796A79713068223E0A2020202020203C62706D6E323A696E636F6D696E673E466C6F775F316E35637866673C2F62706D6E323A696E636F6D696E673E0A2020202020203C62706D6E323A696E636F6D696E673E466C6F775F313068663979353C2F62706D6E323A696E636F6D696E673E0A2020202020203C62706D6E323A6F7574676F696E673E466C6F775F30767435676F723C2F62706D6E323A6F7574676F696E673E0A202020203C2F62706D6E323A706172616C6C656C476174657761793E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F313068663979352220736F757263655265663D2241637469766974795F307A3930616C6922207461726765745265663D22476174657761795F30796A79713068223E3C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A757365725461736B2069643D2241637469766974795F3078657463387522206E616D653D22E8B4A2E58AA1E983A8E5AEA1E689B9222061637469766974693A63616E64696461746547726F7570733D22313434303936343531393339313133373739322C31343430393634353139333935333332303936222061637469766974693A666F726D4B65793D227B2671756F743B666F726D49642671756F743B3A2671756F743B313434303935353132373739303833333636342671756F743B2C2671756F743B726561644F6E6C792671756F743B3A747275652C2671756F743B67726F7570547970652671756F743B3A2671756F743B504F53542671756F743B7D223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A6F7065726174696F6E4C6973743E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313236363839383222206C6162656C3D22E5908CE6848F2220747970653D226167726565222073686F774F726465723D2230223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313236373231393522206C6162656C3D22E68B92E7BB9D2220747970653D22726566757365222073686F774F726465723D2231223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A20202020202020203C2F61637469766974693A6F7065726174696F6E4C6973743E0A20202020202020203C61637469766974693A7661726961626C654C6973743E3C2F61637469766974693A7661726961626C654C6973743E0A20202020202020203C61637469766974693A64657074506F73744C6973743E0A202020202020202020203C61637469766974693A64657074506F73742069643D2264657074506F73745F5F313434303936343531393339313133373739322220747970653D2264657074506F7374222064657074506F737449643D2231343430393634353139333931313337373932223E3C2F61637469766974693A64657074506F73743E0A202020202020202020203C61637469766974693A64657074506F73742069643D2264657074506F73745F5F313434303936343531393339353333323039362220747970653D2264657074506F7374222064657074506F737449643D2231343430393634353139333935333332303936223E3C2F61637469766974693A64657074506F73743E0A20202020202020203C2F61637469766974693A64657074506F73744C6973743E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C2F62706D6E323A757365725461736B3E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F30767435676F722220736F757263655265663D22476174657761795F30796A7971306822207461726765745265663D2241637469766974795F30786574633875223E3C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A757365725461736B2069643D2241637469766974795F3064766734686922206E616D653D22E6B395E58AA1E983A8E5AEA1E689B9222061637469766974693A63616E64696461746547726F7570733D2231343430393634333837393739333939313638222061637469766974693A666F726D4B65793D227B2671756F743B666F726D49642671756F743B3A2671756F743B313434303935353030313039333439323733362671756F743B2C2671756F743B726561644F6E6C792671756F743B3A747275652C2671756F743B67726F7570547970652671756F743B3A2671756F743B504F53542671756F743B7D223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A6F7065726174696F6E4C6973743E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313238323034313422206C6162656C3D22E4BC9AE7ADBE2220747970653D226D756C74695F7369676E222073686F774F726465723D2230223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313238323839303922206C6162656C3D22E58AA0E7ADBE2220747970653D226D756C74695F636F6E7369676E222073686F774F726465723D2231223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A20202020202020203C2F61637469766974693A6F7065726174696F6E4C6973743E0A20202020202020203C61637469766974693A7661726961626C654C6973743E3C2F61637469766974693A7661726961626C654C6973743E0A20202020202020203C61637469766974693A64657074506F73744C6973743E0A202020202020202020203C61637469766974693A64657074506F73742069643D2264657074506F73745F5F313434303936343338373937393339393136382220747970653D2264657074506F7374222064657074506F737449643D2231343430393634333837393739333939313638223E3C2F61637469766974693A64657074506F73743E0A20202020202020203C2F61637469766974693A64657074506F73744C6973743E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C2F62706D6E323A757365725461736B3E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F3069746664623522206E616D653D22E5908CE6848F2220736F757263655265663D2241637469766974795F3078657463387522207461726765745265663D2241637469766974795F30647667346869223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A637573746F6D436F6E646974696F6E20747970653D226F7065726174696F6E22206F7065726174696F6E547970653D226167726565223E3C2F61637469766974693A637573746F6D436F6E646974696F6E3E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A2020202020203C636F6E646974696F6E45787072657373696F6E207873693A747970653D2274466F726D616C45787072657373696F6E223E3C215B43444154415B247B6F7065726174696F6E54797065203D3D20276167726565277D5D5D3E3C2F636F6E646974696F6E45787072657373696F6E3E0A202020203C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A757365725461736B2069643D2241637469766974795F30786F31346E7322206E616D653D22E6B395E58AA1E983A8E4BC9AE7ADBE222061637469766974693A61737369676E65653D22247B61737369676E65657D222061637469766974693A666F726D4B65793D227B2671756F743B666F726D49642671756F743B3A2671756F743B313434303935353030313039333439323733362671756F743B2C2671756F743B726561644F6E6C792671756F743B3A747275652C2671756F743B67726F7570547970652671756F743B3A2671756F743B41535349474E45452671756F743B7D223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A6F7065726174696F6E4C6973743E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313239343530353322206C6162656C3D22E5908CE6848F2220747970653D226D756C74695F6167726565222073686F774F726465723D2230223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313239353131363022206C6162656C3D22E68B92E7BB9D2220747970653D226D756C74695F726566757365222073686F774F726465723D2231223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A20202020202020203C2F61637469766974693A6F7065726174696F6E4C6973743E0A20202020202020203C61637469766974693A7661726961626C654C6973743E3C2F61637469766974693A7661726961626C654C6973743E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A2020202020203C6D756C7469496E7374616E63654C6F6F7043686172616374657269737469637320697353657175656E7469616C3D2266616C7365222061637469766974693A636F6C6C656374696F6E3D2261737369676E65654C697374222061637469766974693A656C656D656E745661726961626C653D2261737369676E6565223E0A20202020202020203C636F6D706C6574696F6E436F6E646974696F6E3E247B6E724F66496E7374616E636573203D3D206E724F66436F6D706C65746564496E7374616E6365737D3C2F636F6D706C6574696F6E436F6E646974696F6E3E0A2020202020203C2F6D756C7469496E7374616E63654C6F6F704368617261637465726973746963733E0A202020203C2F62706D6E323A757365725461736B3E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F307976347562702220736F757263655265663D2241637469766974795F3064766734686922207461726765745265663D2241637469766974795F30786F31346E73223E3C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A6578636C7573697665476174657761792069643D22476174657761795F31633066687A66223E0A2020202020203C62706D6E323A696E636F6D696E673E466C6F775F306969796469703C2F62706D6E323A696E636F6D696E673E0A2020202020203C62706D6E323A6F7574676F696E673E466C6F775F3038653538356A3C2F62706D6E323A6F7574676F696E673E0A2020202020203C62706D6E323A6F7574676F696E673E466C6F775F3165696C647A703C2F62706D6E323A6F7574676F696E673E0A202020203C2F62706D6E323A6578636C7573697665476174657761793E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F306969796469702220736F757263655265663D2241637469766974795F30786F31346E7322207461726765745265663D22476174657761795F31633066687A66223E3C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A757365725461736B2069643D2241637469766974795F31656E68356B6522206E616D653D22E680BBE7BB8FE79086E5AEA1E689B9222061637469766974693A63616E64696461746547726F7570733D2231343430393131343130353831323133343136222061637469766974693A666F726D4B65793D227B2671756F743B666F726D49642671756F743B3A2671756F743B313434303935343932303334383934363433322671756F743B2C2671756F743B726561644F6E6C792671756F743B3A747275652C2671756F743B67726F7570547970652671756F743B3A2671756F743B444550542671756F743B7D223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A6F7065726174696F6E4C6973743E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313331353630393122206C6162656C3D22E5908CE6848F2220747970653D226167726565222073686F774F726465723D2230223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313331353939353622206C6162656C3D22E68B92E7BB9D2220747970653D22726566757365222073686F774F726465723D2231223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A20202020202020203C2F61637469766974693A6F7065726174696F6E4C6973743E0A20202020202020203C61637469766974693A7661726961626C654C6973743E3C2F61637469766974693A7661726961626C654C6973743E0A20202020202020203C61637469766974693A7573657243616E64696461746547726F75707320747970653D2244455054222076616C75653D2231343430393131343130353831323133343136223E3C2F61637469766974693A7573657243616E64696461746547726F7570733E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C2F62706D6E323A757365725461736B3E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F3038653538356A22206E616D653D22E5908CE6848FE4BABAE695B0E5A4A7E4BA8E3430252220736F757263655265663D22476174657761795F31633066687A6622207461726765745265663D2241637469766974795F31656E68356B65223E0A2020202020203C636F6E646974696F6E45787072657373696F6E207873693A747970653D2274466F726D616C45787072657373696F6E223E3C215B43444154415B247B6D756C74694167726565436F756E74202F206D756C74694E756D4F66496E7374616E636573203E20302E347D5D5D3E3C2F636F6E646974696F6E45787072657373696F6E3E0A202020203C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A656E644576656E742069643D224576656E745F30383570366479223E0A2020202020203C62706D6E323A696E636F6D696E673E466C6F775F31696E776864653C2F62706D6E323A696E636F6D696E673E0A202020203C2F62706D6E323A656E644576656E743E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F31696E7768646522206E616D653D22E5908CE6848F2220736F757263655265663D2241637469766974795F31656E68356B6522207461726765745265663D224576656E745F30383570366479223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A637573746F6D436F6E646974696F6E20747970653D226F7065726174696F6E22206F7065726174696F6E547970653D226167726565223E3C2F61637469766974693A637573746F6D436F6E646974696F6E3E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A2020202020203C636F6E646974696F6E45787072657373696F6E207873693A747970653D2274466F726D616C45787072657373696F6E223E3C215B43444154415B247B6F7065726174696F6E54797065203D3D20276167726565277D5D5D3E3C2F636F6E646974696F6E45787072657373696F6E3E0A202020203C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F306A306779327422206E616D653D22E68B92E7BB9D2220736F757263655265663D2241637469766974795F3078657463387522207461726765745265663D2241637469766974795F306263696F6866223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A637573746F6D436F6E646974696F6E20747970653D226F7065726174696F6E22206F7065726174696F6E547970653D22726566757365223E3C2F61637469766974693A637573746F6D436F6E646974696F6E3E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A2020202020203C636F6E646974696F6E45787072657373696F6E207873693A747970653D2274466F726D616C45787072657373696F6E223E3C215B43444154415B247B6F7065726174696F6E54797065203D3D2027726566757365277D5D5D3E3C2F636F6E646974696F6E45787072657373696F6E3E0A202020203C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F3165696C647A7022206E616D653D22E5908CE6848FE4BABAE695B0E5B08FE4BA8E3430252220736F757263655265663D22476174657761795F31633066687A6622207461726765745265663D2241637469766974795F306263696F6866223E0A2020202020203C636F6E646974696F6E45787072657373696F6E207873693A747970653D2274466F726D616C45787072657373696F6E223E3C215B43444154415B247B6D756C74694167726565436F756E74202F206D756C74694E756D4F66496E7374616E636573203C3D20302E347D5D5D3E3C2F636F6E646974696F6E45787072657373696F6E3E0A202020203C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F3063326475367022206E616D653D22E68B92E7BB9D2220736F757263655265663D2241637469766974795F31656E68356B6522207461726765745265663D2241637469766974795F306263696F6866223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A637573746F6D436F6E646974696F6E20747970653D226F7065726174696F6E22206F7065726174696F6E547970653D22726566757365223E3C2F61637469766974693A637573746F6D436F6E646974696F6E3E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A2020202020203C636F6E646974696F6E45787072657373696F6E207873693A747970653D2274466F726D616C45787072657373696F6E223E3C215B43444154415B247B6F7065726174696F6E54797065203D3D2027726566757365277D5D5D3E3C2F636F6E646974696F6E45787072657373696F6E3E0A202020203C2F62706D6E323A73657175656E6365466C6F773E0A20203C2F62706D6E323A70726F636573733E0A20203C62706D6E64693A42504D4E4469616772616D2069643D2242504D4E4469616772616D5F666C6F77436F6E7472616374223E0A202020203C62706D6E64693A42504D4E506C616E652062706D6E456C656D656E743D22666C6F77436F6E7472616374222069643D2242504D4E506C616E655F666C6F77436F6E7472616374223E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D224576656E745F306B6A70396369222069643D2242504D4E53686170655F4576656E745F306B6A70396369223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2233362E30222077696474683D2233362E302220783D2234322E302220793D223330322E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D2241637469766974795F306263696F6866222069643D2242504D4E53686170655F41637469766974795F306263696F6866223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2238302E30222077696474683D223130302E302220783D223133302E302220793D223238302E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D2241637469766974795F3035336F6D3939222069643D2242504D4E53686170655F41637469766974795F3035336F6D3939223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2238302E30222077696474683D223130302E302220783D223239302E302220793D223238302E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D22476174657761795F3038353538696A222069643D2242504D4E53686170655F476174657761795F3038353538696A223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2235302E30222077696474683D2235302E302220783D223435352E302220793D223239352E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D2241637469766974795F307A3930616C69222069643D2242504D4E53686170655F41637469766974795F307A3930616C69223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2238302E30222077696474683D223130302E302220783D223537302E302220793D223137302E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D2241637469766974795F3137393330616A222069643D2242504D4E53686170655F41637469766974795F3137393330616A223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2238302E30222077696474683D223130302E302220783D223537302E302220793D223238302E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D22476174657761795F30796A79713068222069643D2242504D4E53686170655F476174657761795F30796A79713068223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2235302E30222077696474683D2235302E302220783D223733352E302220793D223239352E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D2241637469766974795F30786574633875222069643D2242504D4E53686170655F41637469766974795F30786574633875223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2238302E30222077696474683D223130302E302220783D223837302E302220793D223238302E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D2241637469766974795F30647667346869222069643D2242504D4E53686170655F41637469766974795F30647667346869223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2238302E30222077696474683D223130302E302220783D223837302E302220793D223436302E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D2241637469766974795F30786F31346E73222069643D2242504D4E53686170655F41637469766974795F30786F31346E73223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2238302E30222077696474683D223130302E302220783D223731302E302220793D223436302E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D22476174657761795F31633066687A66222069643D2242504D4E53686170655F476174657761795F31633066687A66223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2235302E30222077696474683D2235302E302220783D223535352E302220793D223437352E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D2241637469766974795F31656E68356B65222069643D2242504D4E53686170655F41637469766974795F31656E68356B65223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2238302E30222077696474683D223130302E302220783D223133302E302220793D223436302E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D224576656E745F30383570366479222069643D2242504D4E53686170655F4576656E745F30383570366479223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2233362E30222077696474683D2233362E302220783D2234322E302220793D223438322E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F30633264753670222069643D2242504D4E456467655F466C6F775F30633264753670223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223135302E302220793D223436302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223135302E302220793D223336302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C62706D6E64693A42504D4E4C6162656C3E0A202020202020202020203C6F6D6764633A426F756E6473206865696768743D2231342E30222077696474683D2232322E302220783D223135342E302220793D223430372E30223E3C2F6F6D6764633A426F756E64733E0A20202020202020203C2F62706D6E64693A42504D4E4C6162656C3E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F3165696C647A70222069643D2242504D4E456467655F466C6F775F3165696C647A70223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223538302E302220793D223437352E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223538302E302220793D223433302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223138302E302220793D223433302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223138302E302220793D223336302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C62706D6E64693A42504D4E4C6162656C3E0A202020202020202020203C6F6D6764633A426F756E6473206865696768743D2231342E30222077696474683D2238392E302220783D223333362E302220793D223431322E30223E3C2F6F6D6764633A426F756E64733E0A20202020202020203C2F62706D6E64693A42504D4E4C6162656C3E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F306A3067793274222069643D2242504D4E456467655F466C6F775F306A3067793274223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223839302E302220793D223336302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223839302E302220793D223339302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223231302E302220793D223339302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223231302E302220793D223336302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C62706D6E64693A42504D4E4C6162656C3E0A202020202020202020203C6F6D6764633A426F756E6473206865696768743D2231342E30222077696474683D2232322E302220783D223533392E302220793D223337322E30223E3C2F6F6D6764633A426F756E64733E0A20202020202020203C2F62706D6E64693A42504D4E4C6162656C3E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F31696E77686465222069643D2242504D4E456467655F466C6F775F31696E77686465223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223133302E302220793D223530302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D2237382E302220793D223530302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C62706D6E64693A42504D4E4C6162656C3E0A202020202020202020203C6F6D6764633A426F756E6473206865696768743D2231342E30222077696474683D2232332E302220783D2239332E302220793D223438322E30223E3C2F6F6D6764633A426F756E64733E0A20202020202020203C2F62706D6E64693A42504D4E4C6162656C3E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F3038653538356A222069643D2242504D4E456467655F466C6F775F3038653538356A223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223535352E302220793D223530302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223233302E302220793D223530302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C62706D6E64693A42504D4E4C6162656C3E0A202020202020202020203C6F6D6764633A426F756E6473206865696768743D2231342E30222077696474683D2238392E302220783D223334382E302220793D223438322E30223E3C2F6F6D6764633A426F756E64733E0A20202020202020203C2F62706D6E64693A42504D4E4C6162656C3E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F30696979646970222069643D2242504D4E456467655F466C6F775F30696979646970223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223731302E302220793D223530302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223630352E302220793D223530302E30223E3C2F6F6D6764693A776179706F696E743E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F30797634756270222069643D2242504D4E456467655F466C6F775F30797634756270223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223837302E302220793D223530302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223831302E302220793D223530302E30223E3C2F6F6D6764693A776179706F696E743E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F30697466646235222069643D2242504D4E456467655F466C6F775F30697466646235223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223934302E302220793D223336302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223934302E302220793D223436302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C62706D6E64693A42504D4E4C6162656C3E0A202020202020202020203C6F6D6764633A426F756E6473206865696768743D2231342E30222077696474683D2232332E302220783D223934342E302220793D223430372E30223E3C2F6F6D6764633A426F756E64733E0A20202020202020203C2F62706D6E64693A42504D4E4C6162656C3E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F30767435676F72222069643D2242504D4E456467655F466C6F775F30767435676F72223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223738352E302220793D223332302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223837302E302220793D223332302E30223E3C2F6F6D6764693A776179706F696E743E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F31306866397935222069643D2242504D4E456467655F466C6F775F31306866397935223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223637302E302220793D223231302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223736302E302220793D223231302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223736302E302220793D223239352E30223E3C2F6F6D6764693A776179706F696E743E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F316E3563786667222069643D2242504D4E456467655F466C6F775F316E3563786667223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223637302E302220793D223332302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223733352E302220793D223332302E30223E3C2F6F6D6764693A776179706F696E743E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F31716839637030222069643D2242504D4E456467655F466C6F775F31716839637030223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223530352E302220793D223332302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223537302E302220793D223332302E30223E3C2F6F6D6764693A776179706F696E743E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F3164357568636F222069643D2242504D4E456467655F466C6F775F3164357568636F223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223438302E302220793D223239352E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223438302E302220793D223231302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223537302E302220793D223231302E30223E3C2F6F6D6764693A776179706F696E743E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F3076357A6A336B222069643D2242504D4E456467655F466C6F775F3076357A6A336B223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223339302E302220793D223332302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223435352E302220793D223332302E30223E3C2F6F6D6764693A776179706F696E743E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F30647766397974222069643D2242504D4E456467655F466C6F775F30647766397974223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223233302E302220793D223332302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223239302E302220793D223332302E30223E3C2F6F6D6764693A776179706F696E743E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F30656D7834307A222069643D2242504D4E456467655F466C6F775F30656D7834307A223E0A20202020202020203C6F6D6764693A776179706F696E7420783D2237382E302220793D223332302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223133302E302220793D223332302E30223E3C2F6F6D6764693A776179706F696E743E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A202020203C2F62706D6E64693A42504D4E506C616E653E0A20203C2F62706D6E64693A42504D4E4469616772616D3E0A3C2F62706D6E323A646566696E6974696F6E733E, 0); -INSERT INTO `ACT_GE_BYTEARRAY` VALUES ('778892c3-5e70-11ec-9355-5e4c369e54c1', 1, 'flowConsign.bpmn', '778892c2-5e70-11ec-9355-5e4c369e54c1', 0x3C3F786D6C2076657273696F6E3D22312E302220656E636F64696E673D225554462D38223F3E0A3C62706D6E323A646566696E6974696F6E7320786D6C6E733D22687474703A2F2F7777772E6F6D672E6F72672F737065632F42504D4E2F32303130303532342F4D4F44454C2220786D6C6E733A62706D6E323D22687474703A2F2F7777772E6F6D672E6F72672F737065632F42504D4E2F32303130303532342F4D4F44454C2220786D6C6E733A7873693D22687474703A2F2F7777772E77332E6F72672F323030312F584D4C536368656D612D696E7374616E63652220786D6C6E733A7873643D22687474703A2F2F7777772E77332E6F72672F323030312F584D4C536368656D612220786D6C6E733A61637469766974693D22687474703A2F2F61637469766974692E6F72672F62706D6E2220786D6C6E733A62706D6E64693D22687474703A2F2F7777772E6F6D672E6F72672F737065632F42504D4E2F32303130303532342F44492220786D6C6E733A6F6D6764633D22687474703A2F2F7777772E6F6D672E6F72672F737065632F44442F32303130303532342F44432220786D6C6E733A6F6D6764693D22687474703A2F2F7777772E6F6D672E6F72672F737065632F44442F32303130303532342F44492220786D6C6E733A64633D22687474703A2F2F7777772E6F6D672E6F72672F737065632F44442F32303130303532342F44432220786D6C6E733A64693D22687474703A2F2F7777772E6F6D672E6F72672F737065632F44442F32303130303532342F44492220747970654C616E67756167653D22687474703A2F2F7777772E77332E6F72672F323030312F584D4C536368656D61222065787072657373696F6E4C616E67756167653D22687474703A2F2F7777772E77332E6F72672F313939392F585061746822207461726765744E616D6573706163653D22687474703A2F2F61637469766974692E6F72672F62706D6E222069643D226469616772616D5F666C6F77436F6E7369676E22207873693A736368656D614C6F636174696F6E3D22687474703A2F2F7777772E6F6D672E6F72672F737065632F42504D4E2F32303130303532342F4D4F44454C2042504D4E32302E787364223E0A20203C62706D6E323A70726F636573732069643D22666C6F77436F6E7369676E22206E616D653D22E5A49AE5AE9EE4BE8BE58AA0E7ADBE2220697345786563757461626C653D2274727565223E0A202020203C657874656E73696F6E456C656D656E74733E0A2020202020203C61637469766974693A657865637574696F6E4C697374656E6572206576656E743D22656E642220636C6173733D22636F6D2E6F72616E6765666F726D732E636F6D6D6F6E2E666C6F772E6C697374656E65722E466C6F7746696E69736865644C697374656E6572223E3C2F61637469766974693A657865637574696F6E4C697374656E65723E0A202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C62706D6E323A73746172744576656E742069643D224576656E745F30696A78367971223E0A2020202020203C62706D6E323A6F7574676F696E673E466C6F775F303569676E6E613C2F62706D6E323A6F7574676F696E673E0A202020203C2F62706D6E323A73746172744576656E743E0A202020203C62706D6E323A757365725461736B2069643D2241637469766974795F313032326E747922206E616D653D22E5BD95E585A5222061637469766974693A61737369676E65653D22247B7374617274557365724E616D657D222061637469766974693A666F726D4B65793D227B2671756F743B666F726D49642671756F743B3A2671756F743B313434303934353431313335343236373634382671756F743B2C2671756F743B726561644F6E6C792671756F743B3A66616C73652C2671756F743B67726F7570547970652671756F743B3A2671756F743B41535349474E45452671756F743B7D223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A6F7065726174696F6E4C6973743E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313334383132303222206C6162656C3D22E4BC9AE7ADBE2220747970653D226D756C74695F7369676E222073686F774F726465723D223022206D756C74695369676E41737369676E65653D227B2671756F743B61737369676E6565547970652671756F743B3A2671756F743B555345525F47524F55502671756F743B2C2671756F743B61737369676E65654C6973742671756F743B3A2671756F743B61646D696E2C75736572412C75736572422671756F743B7D223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313335353833333422206C6162656C3D22E58AA0E7ADBE2220747970653D226D756C74695F636F6E7369676E222073686F774F726465723D2231223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A20202020202020203C2F61637469766974693A6F7065726174696F6E4C6973743E0A20202020202020203C61637469766974693A7661726961626C654C6973743E3C2F61637469766974693A7661726961626C654C6973743E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C2F62706D6E323A757365725461736B3E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F303569676E6E612220736F757263655265663D224576656E745F30696A7836797122207461726765745265663D2241637469766974795F313032326E7479223E3C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A757365725461736B2069643D2241637469766974795F30756D79706F6722206E616D653D22E4BC9AE7ADBE222061637469766974693A61737369676E65653D22247B61737369676E65657D222061637469766974693A666F726D4B65793D227B2671756F743B666F726D49642671756F743B3A2671756F743B313434303934353431313335343236373634382671756F743B2C2671756F743B726561644F6E6C792671756F743B3A747275652C2671756F743B67726F7570547970652671756F743B3A2671756F743B41535349474E45452671756F743B7D223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A6F7065726174696F6E4C6973743E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333936353937313830383122206C6162656C3D22E5908CE6848FEFBC88E4BC9AE7ADBEEFBC892220747970653D226D756C74695F6167726565222073686F774F726465723D2230223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333936353937323431313922206C6162656C3D22E68B92E7BB9DEFBC88E4BC9AE7ADBEEFBC892220747970653D226D756C74695F726566757365222073686F774F726465723D2231223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A20202020202020203C2F61637469766974693A6F7065726174696F6E4C6973743E0A20202020202020203C61637469766974693A7661726961626C654C6973743E3C2F61637469766974693A7661726961626C654C6973743E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A2020202020203C6D756C7469496E7374616E63654C6F6F7043686172616374657269737469637320697353657175656E7469616C3D2266616C7365222061637469766974693A636F6C6C656374696F6E3D2261737369676E65654C697374222061637469766974693A656C656D656E745661726961626C653D2261737369676E6565223E0A20202020202020203C636F6D706C6574696F6E436F6E646974696F6E3E247B6E724F66496E7374616E636573203D3D206E724F66436F6D706C65746564496E7374616E6365737D3C2F636F6D706C6574696F6E436F6E646974696F6E3E0A2020202020203C2F6D756C7469496E7374616E63654C6F6F704368617261637465726973746963733E0A202020203C2F62706D6E323A757365725461736B3E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F31387A6C3769392220736F757263655265663D2241637469766974795F313032326E747922207461726765745265663D2241637469766974795F30756D79706F67223E3C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A757365725461736B2069643D2241637469766974795F3168396464387422206E616D653D22E5AEA1E689B9222061637469766974693A61737369676E65653D2261646D696E222061637469766974693A666F726D4B65793D227B2671756F743B666F726D49642671756F743B3A2671756F743B313434303934353431313335343236373634382671756F743B2C2671756F743B726561644F6E6C792671756F743B3A747275652C2671756F743B67726F7570547970652671756F743B3A2671756F743B41535349474E45452671756F743B7D223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A6F7065726174696F6E4C6973743E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313339363938343222206C6162656C3D22E5908CE6848F2220747970653D226167726565222073686F774F726465723D2230223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313339373531323022206C6162656C3D22E68B92E7BB9D2220747970653D22726566757365222073686F774F726465723D2231223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A20202020202020203C2F61637469766974693A6F7065726174696F6E4C6973743E0A20202020202020203C61637469766974693A7661726961626C654C6973743E3C2F61637469766974693A7661726961626C654C6973743E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C2F62706D6E323A757365725461736B3E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F313332613177652220736F757263655265663D2241637469766974795F30756D79706F6722207461726765745265663D2241637469766974795F31683964643874223E3C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A656E644576656E742069643D224576656E745F30626E356E6C31223E0A2020202020203C62706D6E323A696E636F6D696E673E466C6F775F317734386D65313C2F62706D6E323A696E636F6D696E673E0A202020203C2F62706D6E323A656E644576656E743E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F317734386D653122206E616D653D22E5908CE6848F2220736F757263655265663D2241637469766974795F3168396464387422207461726765745265663D224576656E745F30626E356E6C31223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A637573746F6D436F6E646974696F6E20747970653D226F7065726174696F6E22206F7065726174696F6E547970653D226167726565223E3C2F61637469766974693A637573746F6D436F6E646974696F6E3E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A2020202020203C636F6E646974696F6E45787072657373696F6E207873693A747970653D2274466F726D616C45787072657373696F6E223E3C215B43444154415B247B6F7065726174696F6E54797065203D3D20276167726565277D5D5D3E3C2F636F6E646974696F6E45787072657373696F6E3E0A202020203C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F31707632617A7422206E616D653D22E68B92E7BB9D2220736F757263655265663D2241637469766974795F3168396464387422207461726765745265663D2241637469766974795F313032326E7479223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A637573746F6D436F6E646974696F6E20747970653D226F7065726174696F6E22206F7065726174696F6E547970653D22726566757365223E3C2F61637469766974693A637573746F6D436F6E646974696F6E3E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A2020202020203C636F6E646974696F6E45787072657373696F6E207873693A747970653D2274466F726D616C45787072657373696F6E223E3C215B43444154415B247B6F7065726174696F6E54797065203D3D2027726566757365277D5D5D3E3C2F636F6E646974696F6E45787072657373696F6E3E0A202020203C2F62706D6E323A73657175656E6365466C6F773E0A20203C2F62706D6E323A70726F636573733E0A20203C62706D6E64693A42504D4E4469616772616D2069643D2242504D4E4469616772616D5F666C6F77436F6E7369676E223E0A202020203C62706D6E64693A42504D4E506C616E652062706D6E456C656D656E743D22666C6F77436F6E7369676E222069643D2242504D4E506C616E655F666C6F77436F6E7369676E223E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D224576656E745F30696A78367971222069643D2242504D4E53686170655F4576656E745F30696A78367971223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2233362E30222077696474683D2233362E302220783D223135322E302220793D223237322E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D2241637469766974795F313032326E7479222069643D2242504D4E53686170655F41637469766974795F313032326E7479223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2238302E30222077696474683D223130302E302220783D223234302E302220793D223235302E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D2241637469766974795F30756D79706F67222069643D2242504D4E53686170655F41637469766974795F30756D79706F67223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2238302E30222077696474683D223130302E302220783D223430302E302220793D223235302E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D2241637469766974795F31683964643874222069643D2242504D4E53686170655F41637469766974795F31683964643874223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2238302E30222077696474683D223130302E302220783D223536302E302220793D223235302E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D224576656E745F30626E356E6C31222069643D2242504D4E53686170655F4576656E745F30626E356E6C31223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2233362E30222077696474683D2233362E302220783D223732322E302220793D223237322E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F31707632617A74222069643D2242504D4E456467655F466C6F775F31707632617A74223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223631302E302220793D223235302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223631302E302220793D223232302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223239302E302220793D223232302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223239302E302220793D223235302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C62706D6E64693A42504D4E4C6162656C3E0A202020202020202020203C6F6D6764633A426F756E6473206865696768743D2231342E30222077696474683D2232322E302220783D223433392E302220793D223230322E30223E3C2F6F6D6764633A426F756E64733E0A20202020202020203C2F62706D6E64693A42504D4E4C6162656C3E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F317734386D6531222069643D2242504D4E456467655F466C6F775F317734386D6531223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223636302E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223732322E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C62706D6E64693A42504D4E4C6162656C3E0A202020202020202020203C6F6D6764633A426F756E6473206865696768743D2231342E30222077696474683D2232332E302220783D223638302E302220793D223237322E30223E3C2F6F6D6764633A426F756E64733E0A20202020202020203C2F62706D6E64693A42504D4E4C6162656C3E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F31333261317765222069643D2242504D4E456467655F466C6F775F31333261317765223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223530302E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223536302E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F31387A6C376939222069643D2242504D4E456467655F466C6F775F31387A6C376939223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223334302E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223430302E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F303569676E6E61222069643D2242504D4E456467655F466C6F775F303569676E6E61223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223138382E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223234302E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A202020203C2F62706D6E64693A42504D4E506C616E653E0A20203C2F62706D6E64693A42504D4E4469616772616D3E0A3C2F62706D6E323A646566696E6974696F6E733E, 0); -INSERT INTO `ACT_GE_BYTEARRAY` VALUES ('79a037d0-3184-11ec-9f40-f20b812c0662', 1, 'flowLeave.bpmn', '79a037cf-3184-11ec-9f40-f20b812c0662', 0x3C3F786D6C2076657273696F6E3D22312E302220656E636F64696E673D225554462D38223F3E0A3C62706D6E323A646566696E6974696F6E7320786D6C6E733D22687474703A2F2F7777772E6F6D672E6F72672F737065632F42504D4E2F32303130303532342F4D4F44454C2220786D6C6E733A62706D6E323D22687474703A2F2F7777772E6F6D672E6F72672F737065632F42504D4E2F32303130303532342F4D4F44454C2220786D6C6E733A7873693D22687474703A2F2F7777772E77332E6F72672F323030312F584D4C536368656D612D696E7374616E63652220786D6C6E733A7873643D22687474703A2F2F7777772E77332E6F72672F323030312F584D4C536368656D612220786D6C6E733A61637469766974693D22687474703A2F2F61637469766974692E6F72672F62706D6E2220786D6C6E733A62706D6E64693D22687474703A2F2F7777772E6F6D672E6F72672F737065632F42504D4E2F32303130303532342F44492220786D6C6E733A6F6D6764633D22687474703A2F2F7777772E6F6D672E6F72672F737065632F44442F32303130303532342F44432220786D6C6E733A6F6D6764693D22687474703A2F2F7777772E6F6D672E6F72672F737065632F44442F32303130303532342F44492220786D6C6E733A64633D22687474703A2F2F7777772E6F6D672E6F72672F737065632F44442F32303130303532342F44432220786D6C6E733A64693D22687474703A2F2F7777772E6F6D672E6F72672F737065632F44442F32303130303532342F44492220747970654C616E67756167653D22687474703A2F2F7777772E77332E6F72672F323030312F584D4C536368656D61222065787072657373696F6E4C616E67756167653D22687474703A2F2F7777772E77332E6F72672F313939392F585061746822207461726765744E616D6573706163653D22687474703A2F2F61637469766974692E6F72672F62706D6E222069643D226469616772616D5F666C6F774C6561766522207873693A736368656D614C6F636174696F6E3D22687474703A2F2F7777772E6F6D672E6F72672F737065632F42504D4E2F32303130303532342F4D4F44454C2042504D4E32302E787364223E0A20203C62706D6E323A70726F636573732069643D22666C6F774C6561766522206E616D653D22E8AFB7E58187E794B3E8AFB72220697345786563757461626C653D2274727565223E0A202020203C657874656E73696F6E456C656D656E74733E0A2020202020203C61637469766974693A657865637574696F6E4C697374656E6572206576656E743D22656E642220636C6173733D22636F6D2E666C6F772E64656D6F2E636F6D6D6F6E2E666C6F772E6C697374656E65722E557064617465466C6F775374617475734C697374656E6572223E3C2F61637469766974693A657865637574696F6E4C697374656E65723E0A202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C62706D6E323A73746172744576656E742069643D224576656E745F316D6D72747477223E0A2020202020203C62706D6E323A6F7574676F696E673E466C6F775F3079346D336B763C2F62706D6E323A6F7574676F696E673E0A202020203C2F62706D6E323A73746172744576656E743E0A202020203C62706D6E323A757365725461736B2069643D2241637469766974795F317462386A6B6122206E616D653D22E8AFB7E58187E794B3E8AFB7222061637469766974693A61737369676E65653D22247B7374617274557365724E616D657D222061637469766974693A666F726D4B65793D227B2671756F743B666F726D49642671756F743B3A2671756F743B313434303934353431313335343236373634382671756F743B2C2671756F743B726561644F6E6C792671756F743B3A66616C73652C2671756F743B67726F7570547970652671756F743B3A2671756F743B444550542671756F743B7D223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A6F7065726174696F6E4C6973743E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313131323239323522206C6162656C3D22E68F90E4BAA42220747970653D226167726565222073686F774F726465723D2230223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A20202020202020203C2F61637469766974693A6F7065726174696F6E4C6973743E0A20202020202020203C61637469766974693A7661726961626C654C6973743E3C2F61637469766974693A7661726961626C654C6973743E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C2F62706D6E323A757365725461736B3E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F3079346D336B762220736F757263655265663D224576656E745F316D6D7274747722207461726765745265663D2241637469766974795F317462386A6B61223E3C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A757365725461736B2069643D2241637469766974795F31316A7230707822206E616D653D22E983A8E997A8E9A286E5AFBCE5AEA1E689B9222061637469766974693A63616E64696461746547726F7570733D22247B64657074506F73744C65616465727D222061637469766974693A666F726D4B65793D227B2671756F743B666F726D49642671756F743B3A2671756F743B313434303934353431313335343236373634382671756F743B2C2671756F743B726561644F6E6C792671756F743B3A747275652C2671756F743B67726F7570547970652671756F743B3A2671756F743B444550545F504F53545F4C45414445522671756F743B7D223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A7461736B4C697374656E6572206576656E743D226372656174652220636C6173733D22636F6D2E666C6F772E64656D6F2E636F6D6D6F6E2E666C6F772E6C697374656E65722E44657074506F73744C65616465724C697374656E6572223E3C2F61637469766974693A7461736B4C697374656E65723E0A20202020202020203C61637469766974693A6F7065726174696F6E4C6973743E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313131343739343122206C6162656C3D22E5908CE6848F2220747970653D226167726565222073686F774F726465723D2230223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313131353133343922206C6162656C3D22E68B92E7BB9D2220747970653D22726566757365222073686F774F726465723D2231223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A20202020202020203C2F61637469766974693A6F7065726174696F6E4C6973743E0A20202020202020203C61637469766974693A7661726961626C654C6973743E3C2F61637469766974693A7661726961626C654C6973743E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C2F62706D6E323A757365725461736B3E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F30376F703230392220736F757263655265663D2241637469766974795F317462386A6B6122207461726765745265663D2241637469766974795F31316A72307078223E3C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A757365725461736B2069643D2241637469766974795F3030696270307522206E616D653D224852E5AEA1E689B9222061637469766974693A63616E64696461746547726F7570733D2231343430393634323231383535363030363430222061637469766974693A666F726D4B65793D227B2671756F743B666F726D49642671756F743B3A2671756F743B313434303934353431313335343236373634382671756F743B2C2671756F743B726561644F6E6C792671756F743B3A747275652C2671756F743B67726F7570547970652671756F743B3A2671756F743B504F53542671756F743B7D223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A6F7065726174696F6E4C6973743E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313133303636303122206C6162656C3D22E5908CE6848F2220747970653D226167726565222073686F774F726465723D2230223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313133313033393122206C6162656C3D22E68B92E7BB9D2220747970653D22726566757365222073686F774F726465723D2231223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A20202020202020203C2F61637469766974693A6F7065726174696F6E4C6973743E0A20202020202020203C61637469766974693A7661726961626C654C6973743E3C2F61637469766974693A7661726961626C654C6973743E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C2F62706D6E323A757365725461736B3E0A202020203C62706D6E323A656E644576656E742069643D224576656E745F3163303839756F223E0A2020202020203C62706D6E323A696E636F6D696E673E466C6F775F306D32376664653C2F62706D6E323A696E636F6D696E673E0A202020203C2F62706D6E323A656E644576656E743E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F306D323766646522206E616D653D22E5908CE6848F2220736F757263655265663D2241637469766974795F3030696270307522207461726765745265663D224576656E745F3163303839756F223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A637573746F6D436F6E646974696F6E20747970653D226F7065726174696F6E22206F7065726174696F6E547970653D226167726565223E3C2F61637469766974693A637573746F6D436F6E646974696F6E3E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A2020202020203C636F6E646974696F6E45787072657373696F6E207873693A747970653D2274466F726D616C45787072657373696F6E223E3C215B43444154415B247B6F7065726174696F6E54797065203D3D20276167726565277D5D5D3E3C2F636F6E646974696F6E45787072657373696F6E3E0A202020203C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F31367A796F613522206E616D653D22E68B92E7BB9D2220736F757263655265663D2241637469766974795F31316A7230707822207461726765745265663D2241637469766974795F317462386A6B61223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A637573746F6D436F6E646974696F6E20747970653D226F7065726174696F6E22206F7065726174696F6E547970653D22726566757365223E3C2F61637469766974693A637573746F6D436F6E646974696F6E3E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A2020202020203C636F6E646974696F6E45787072657373696F6E207873693A747970653D2274466F726D616C45787072657373696F6E223E3C215B43444154415B247B6F7065726174696F6E54797065203D3D2027726566757365277D5D5D3E3C2F636F6E646974696F6E45787072657373696F6E3E0A202020203C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F306C6C3734616E22206E616D653D22E5908CE6848F2220736F757263655265663D2241637469766974795F31316A7230707822207461726765745265663D2241637469766974795F30306962703075223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A637573746F6D436F6E646974696F6E20747970653D226F7065726174696F6E22206F7065726174696F6E547970653D226167726565223E3C2F61637469766974693A637573746F6D436F6E646974696F6E3E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A2020202020203C636F6E646974696F6E45787072657373696F6E207873693A747970653D2274466F726D616C45787072657373696F6E223E3C215B43444154415B247B6F7065726174696F6E54797065203D3D20276167726565277D5D5D3E3C2F636F6E646974696F6E45787072657373696F6E3E0A202020203C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F3161656B6D733822206E616D653D22E68B92E7BB9D2220736F757263655265663D2241637469766974795F3030696270307522207461726765745265663D2241637469766974795F317462386A6B61223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A637573746F6D436F6E646974696F6E20747970653D226F7065726174696F6E22206F7065726174696F6E547970653D22726566757365223E3C2F61637469766974693A637573746F6D436F6E646974696F6E3E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A2020202020203C636F6E646974696F6E45787072657373696F6E207873693A747970653D2274466F726D616C45787072657373696F6E223E3C215B43444154415B247B6F7065726174696F6E54797065203D3D2027726566757365277D5D5D3E3C2F636F6E646974696F6E45787072657373696F6E3E0A202020203C2F62706D6E323A73657175656E6365466C6F773E0A20203C2F62706D6E323A70726F636573733E0A20203C62706D6E64693A42504D4E4469616772616D2069643D2242504D4E4469616772616D5F666C6F774C65617665223E0A202020203C62706D6E64693A42504D4E506C616E652062706D6E456C656D656E743D22666C6F774C65617665222069643D2242504D4E506C616E655F666C6F774C65617665223E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D224576656E745F316D6D72747477222069643D2242504D4E53686170655F4576656E745F316D6D72747477223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2233362E30222077696474683D2233362E302220783D223133322E302220793D223237322E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D2241637469766974795F317462386A6B61222069643D2242504D4E53686170655F41637469766974795F317462386A6B61223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2238302E30222077696474683D223130302E302220783D223232302E302220793D223235302E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D2241637469766974795F31316A72307078222069643D2242504D4E53686170655F41637469766974795F31316A72307078223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2238302E30222077696474683D223130302E302220783D223338302E302220793D223235302E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D2241637469766974795F30306962703075222069643D2242504D4E53686170655F41637469766974795F30306962703075223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2238302E30222077696474683D223130302E302220783D223534302E302220793D223235302E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D224576656E745F3163303839756F222069643D2242504D4E53686170655F4576656E745F3163303839756F223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2233362E30222077696474683D2233362E302220783D223730322E302220793D223237322E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F3079346D336B76222069643D2242504D4E456467655F466C6F775F3079346D336B76223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223136382E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223232302E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F30376F70323039222069643D2242504D4E456467655F466C6F775F30376F70323039223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223332302E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223338302E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F306C6C3734616E222069643D2242504D4E456467655F466C6F775F306C6C3734616E223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223438302E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223534302E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C62706D6E64693A42504D4E4C6162656C3E0A202020202020202020203C6F6D6764633A426F756E6473206865696768743D2231342E30222077696474683D2232332E302220783D223439392E302220793D223237322E30223E3C2F6F6D6764633A426F756E64733E0A20202020202020203C2F62706D6E64693A42504D4E4C6162656C3E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F306D3237666465222069643D2242504D4E456467655F466C6F775F306D3237666465223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223634302E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223730322E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C62706D6E64693A42504D4E4C6162656C3E0A202020202020202020203C6F6D6764633A426F756E6473206865696768743D2231342E30222077696474683D2232332E302220783D223636302E302220793D223237322E30223E3C2F6F6D6764633A426F756E64733E0A20202020202020203C2F62706D6E64693A42504D4E4C6162656C3E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F31367A796F6135222069643D2242504D4E456467655F466C6F775F31367A796F6135223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223433302E302220793D223235302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223433302E302220793D223231302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223237302E302220793D223231302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223237302E302220793D223235302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C62706D6E64693A42504D4E4C6162656C3E0A202020202020202020203C6F6D6764633A426F756E6473206865696768743D2231342E30222077696474683D2232322E302220783D223333392E302220793D223139322E30223E3C2F6F6D6764633A426F756E64733E0A20202020202020203C2F62706D6E64693A42504D4E4C6162656C3E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F3161656B6D7338222069643D2242504D4E456467655F466C6F775F3161656B6D7338223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223539302E302220793D223333302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223539302E302220793D223337302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223237302E302220793D223337302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223237302E302220793D223333302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C62706D6E64693A42504D4E4C6162656C3E0A202020202020202020203C6F6D6764633A426F756E6473206865696768743D2231342E30222077696474683D2232322E302220783D223431392E302220793D223335322E30223E3C2F6F6D6764633A426F756E64733E0A20202020202020203C2F62706D6E64693A42504D4E4C6162656C3E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A202020203C2F62706D6E64693A42504D4E506C616E653E0A20203C2F62706D6E64693A42504D4E4469616772616D3E0A3C2F62706D6E323A646566696E6974696F6E733E, 0); -INSERT INTO `ACT_GE_BYTEARRAY` VALUES ('7b628143-3184-11ec-9f40-f20b812c0662', 1, 'flowSubmit.bpmn', '7b628142-3184-11ec-9f40-f20b812c0662', 0x3C3F786D6C2076657273696F6E3D22312E302220656E636F64696E673D225554462D38223F3E0A3C62706D6E323A646566696E6974696F6E7320786D6C6E733D22687474703A2F2F7777772E6F6D672E6F72672F737065632F42504D4E2F32303130303532342F4D4F44454C2220786D6C6E733A62706D6E323D22687474703A2F2F7777772E6F6D672E6F72672F737065632F42504D4E2F32303130303532342F4D4F44454C2220786D6C6E733A7873693D22687474703A2F2F7777772E77332E6F72672F323030312F584D4C536368656D612D696E7374616E63652220786D6C6E733A7873643D22687474703A2F2F7777772E77332E6F72672F323030312F584D4C536368656D612220786D6C6E733A61637469766974693D22687474703A2F2F61637469766974692E6F72672F62706D6E2220786D6C6E733A62706D6E64693D22687474703A2F2F7777772E6F6D672E6F72672F737065632F42504D4E2F32303130303532342F44492220786D6C6E733A6F6D6764633D22687474703A2F2F7777772E6F6D672E6F72672F737065632F44442F32303130303532342F44432220786D6C6E733A6F6D6764693D22687474703A2F2F7777772E6F6D672E6F72672F737065632F44442F32303130303532342F44492220786D6C6E733A64633D22687474703A2F2F7777772E6F6D672E6F72672F737065632F44442F32303130303532342F44432220786D6C6E733A64693D22687474703A2F2F7777772E6F6D672E6F72672F737065632F44442F32303130303532342F44492220747970654C616E67756167653D22687474703A2F2F7777772E77332E6F72672F323030312F584D4C536368656D61222065787072657373696F6E4C616E67756167653D22687474703A2F2F7777772E77332E6F72672F313939392F585061746822207461726765744E616D6573706163653D22687474703A2F2F61637469766974692E6F72672F62706D6E222069643D226469616772616D5F666C6F775375626D697422207873693A736368656D614C6F636174696F6E3D22687474703A2F2F7777772E6F6D672E6F72672F737065632F42504D4E2F32303130303532342F4D4F44454C2042504D4E32302E787364223E0A20203C62706D6E323A70726F636573732069643D22666C6F775375626D697422206E616D653D22E68AA5E99480E794B3E8AFB72220697345786563757461626C653D2274727565223E0A202020203C657874656E73696F6E456C656D656E74733E0A2020202020203C61637469766974693A657865637574696F6E4C697374656E6572206576656E743D22656E642220636C6173733D22636F6D2E666C6F772E64656D6F2E636F6D6D6F6E2E666C6F772E6C697374656E65722E557064617465466C6F775374617475734C697374656E6572223E3C2F61637469766974693A657865637574696F6E4C697374656E65723E0A202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C62706D6E323A73746172744576656E742069643D224576656E745F31753464783362223E0A2020202020203C62706D6E323A6F7574676F696E673E466C6F775F306D726D71626B3C2F62706D6E323A6F7574676F696E673E0A202020203C2F62706D6E323A73746172744576656E743E0A202020203C62706D6E323A757365725461736B2069643D2241637469766974795F3163733462693522206E616D653D22E68AA5E99480E794B3E8AFB7222061637469766974693A61737369676E65653D22247B7374617274557365724E616D657D222061637469766974693A666F726D4B65793D227B2671756F743B666F726D49642671756F743B3A2671756F743B313434303934373637353034313130373936382671756F743B2C2671756F743B726561644F6E6C792671756F743B3A66616C73652C2671756F743B67726F7570547970652671756F743B3A2671756F743B444550542671756F743B7D223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A6F7065726174696F6E4C6973743E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313138303337393622206C6162656C3D22E68F90E4BAA42220747970653D226167726565222073686F774F726465723D2230223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A20202020202020203C2F61637469766974693A6F7065726174696F6E4C6973743E0A20202020202020203C61637469766974693A7661726961626C654C6973743E3C2F61637469766974693A7661726961626C654C6973743E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C2F62706D6E323A757365725461736B3E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F306D726D71626B2220736F757263655265663D224576656E745F3175346478336222207461726765745265663D2241637469766974795F31637334626935223E3C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A757365725461736B2069643D2241637469766974795F303473636E326F22206E616D653D22E983A8E997A8E9A286E5AFBCE5AEA1E689B9222061637469766974693A63616E64696461746547726F7570733D22247B64657074506F73744C65616465727D222061637469766974693A666F726D4B65793D227B2671756F743B666F726D49642671756F743B3A2671756F743B313434303934373637353034313130373936382671756F743B2C2671756F743B726561644F6E6C792671756F743B3A747275652C2671756F743B67726F7570547970652671756F743B3A2671756F743B444550545F504F53545F4C45414445522671756F743B7D223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A7461736B4C697374656E6572206576656E743D226372656174652220636C6173733D22636F6D2E666C6F772E64656D6F2E636F6D6D6F6E2E666C6F772E6C697374656E65722E44657074506F73744C65616465724C697374656E6572223E3C2F61637469766974693A7461736B4C697374656E65723E0A20202020202020203C61637469766974693A6F7065726174696F6E4C6973743E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313138313236343622206C6162656C3D22E5908CE6848F2220747970653D226167726565222073686F774F726465723D2230223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313138313539383422206C6162656C3D22E68B92E7BB9D2220747970653D22726566757365222073686F774F726465723D2231223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A20202020202020203C2F61637469766974693A6F7065726174696F6E4C6973743E0A20202020202020203C61637469766974693A7661726961626C654C6973743E0A202020202020202020203C61637469766974693A666F726D5661726961626C652069643D2231343530373130383030383534343231353034223E3C2F61637469766974693A666F726D5661726961626C653E0A20202020202020203C2F61637469766974693A7661726961626C654C6973743E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C2F62706D6E323A757365725461736B3E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F307039673732692220736F757263655265663D2241637469766974795F3163733462693522207461726765745265663D2241637469766974795F303473636E326F223E3C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A6578636C7573697665476174657761792069643D22476174657761795F30707572396365223E0A2020202020203C62706D6E323A696E636F6D696E673E466C6F775F306979756B77723C2F62706D6E323A696E636F6D696E673E0A2020202020203C62706D6E323A6F7574676F696E673E466C6F775F306A667265316B3C2F62706D6E323A6F7574676F696E673E0A2020202020203C62706D6E323A6F7574676F696E673E466C6F775F313365646537623C2F62706D6E323A6F7574676F696E673E0A202020203C2F62706D6E323A6578636C7573697665476174657761793E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F306979756B777222206E616D653D22E5908CE6848F2220736F757263655265663D2241637469766974795F303473636E326F22207461726765745265663D22476174657761795F30707572396365223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A637573746F6D436F6E646974696F6E20747970653D226F7065726174696F6E22206F7065726174696F6E547970653D226167726565223E3C2F61637469766974693A637573746F6D436F6E646974696F6E3E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A2020202020203C636F6E646974696F6E45787072657373696F6E207873693A747970653D2274466F726D616C45787072657373696F6E223E3C215B43444154415B247B6F7065726174696F6E54797065203D3D20276167726565277D5D5D3E3C2F636F6E646974696F6E45787072657373696F6E3E0A202020203C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A656E644576656E742069643D224576656E745F30346E71666E79223E0A2020202020203C62706D6E323A696E636F6D696E673E466C6F775F306A667265316B3C2F62706D6E323A696E636F6D696E673E0A2020202020203C62706D6E323A696E636F6D696E673E466C6F775F313576336A6B6A3C2F62706D6E323A696E636F6D696E673E0A202020203C2F62706D6E323A656E644576656E743E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F306A667265316B22206E616D653D22E68AA5E99480E98791E9A29DE5B08FE4BA8E313030302220736F757263655265663D22476174657761795F3070757239636522207461726765745265663D224576656E745F30346E71666E79223E0A2020202020203C636F6E646974696F6E45787072657373696F6E207873693A747970653D2274466F726D616C45787072657373696F6E223E3C215B43444154415B247B746F74616C416D6F756E74203C3D20313030307D5D5D3E3C2F636F6E646974696F6E45787072657373696F6E3E0A202020203C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A757365725461736B2069643D2241637469766974795F3177323378666522206E616D653D22E680BBE7BB8FE79086E5AEA1E689B9222061637469766974693A63616E64696461746547726F7570733D2231343430393131343130353831323133343136222061637469766974693A666F726D4B65793D227B2671756F743B666F726D49642671756F743B3A2671756F743B313434303934373637353034313130373936382671756F743B2C2671756F743B726561644F6E6C792671756F743B3A747275652C2671756F743B67726F7570547970652671756F743B3A2671756F743B444550542671756F743B7D223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A6F7065726174696F6E4C6973743E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313138383339303122206C6162656C3D22E5908CE6848F2220747970653D226167726565222073686F774F726465723D2230223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313138383733323222206C6162656C3D22E68B92E7BB9D2220747970653D22726566757365222073686F774F726465723D2231223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A20202020202020203C2F61637469766974693A6F7065726174696F6E4C6973743E0A20202020202020203C61637469766974693A7661726961626C654C6973743E3C2F61637469766974693A7661726961626C654C6973743E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C2F62706D6E323A757365725461736B3E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F3133656465376222206E616D653D22E68AA5E99480E98791E9A29DE5A4A7E4BA8E313030302220736F757263655265663D22476174657761795F3070757239636522207461726765745265663D2241637469766974795F31773233786665223E0A2020202020203C636F6E646974696F6E45787072657373696F6E207873693A747970653D2274466F726D616C45787072657373696F6E223E3C215B43444154415B247B746F74616C416D6F756E74203E20313030307D5D5D3E3C2F636F6E646974696F6E45787072657373696F6E3E0A202020203C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F313576336A6B6A22206E616D653D22E5908CE6848F2220736F757263655265663D2241637469766974795F3177323378666522207461726765745265663D224576656E745F30346E71666E79223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A637573746F6D436F6E646974696F6E20747970653D226F7065726174696F6E22206F7065726174696F6E547970653D226167726565223E3C2F61637469766974693A637573746F6D436F6E646974696F6E3E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A2020202020203C636F6E646974696F6E45787072657373696F6E207873693A747970653D2274466F726D616C45787072657373696F6E223E3C215B43444154415B247B6F7065726174696F6E54797065203D3D20276167726565277D5D5D3E3C2F636F6E646974696F6E45787072657373696F6E3E0A202020203C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F316F697135387222206E616D653D22E68B92E7BB9D2220736F757263655265663D2241637469766974795F3177323378666522207461726765745265663D2241637469766974795F31637334626935223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A637573746F6D436F6E646974696F6E20747970653D226F7065726174696F6E22206F7065726174696F6E547970653D22726566757365223E3C2F61637469766974693A637573746F6D436F6E646974696F6E3E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A2020202020203C636F6E646974696F6E45787072657373696F6E207873693A747970653D2274466F726D616C45787072657373696F6E223E3C215B43444154415B247B6F7065726174696F6E54797065203D3D2027726566757365277D5D5D3E3C2F636F6E646974696F6E45787072657373696F6E3E0A202020203C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F3039387338693022206E616D653D22E68B92E7BB9D2220736F757263655265663D2241637469766974795F303473636E326F22207461726765745265663D2241637469766974795F31637334626935223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A637573746F6D436F6E646974696F6E20747970653D226F7065726174696F6E22206F7065726174696F6E547970653D22726566757365223E3C2F61637469766974693A637573746F6D436F6E646974696F6E3E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A2020202020203C636F6E646974696F6E45787072657373696F6E207873693A747970653D2274466F726D616C45787072657373696F6E223E3C215B43444154415B247B6F7065726174696F6E54797065203D3D2027726566757365277D5D5D3E3C2F636F6E646974696F6E45787072657373696F6E3E0A202020203C2F62706D6E323A73657175656E6365466C6F773E0A20203C2F62706D6E323A70726F636573733E0A20203C62706D6E64693A42504D4E4469616772616D2069643D2242504D4E4469616772616D5F666C6F775375626D6974223E0A202020203C62706D6E64693A42504D4E506C616E652062706D6E456C656D656E743D22666C6F775375626D6974222069643D2242504D4E506C616E655F666C6F775375626D6974223E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D224576656E745F31753464783362222069643D2242504D4E53686170655F4576656E745F31753464783362223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2233362E30222077696474683D2233362E302220783D223132322E302220793D223330322E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D2241637469766974795F31637334626935222069643D2242504D4E53686170655F41637469766974795F31637334626935223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2238302E30222077696474683D223130302E302220783D223231302E302220793D223238302E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D2241637469766974795F303473636E326F222069643D2242504D4E53686170655F41637469766974795F303473636E326F223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2238302E30222077696474683D223130302E302220783D223337302E302220793D223238302E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D224576656E745F30346E71666E79222069643D2242504D4E53686170655F4576656E745F30346E71666E79223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2233362E30222077696474683D2233362E302220783D223834322E302220793D223330322E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D22476174657761795F30707572396365222069643D2242504D4E53686170655F476174657761795F30707572396365223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2235302E30222077696474683D2235302E302220783D223538352E302220793D223239352E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D2241637469766974795F31773233786665222069643D2242504D4E53686170655F41637469766974795F31773233786665223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2238302E30222077696474683D223130302E302220783D223536302E302220793D223339302E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F306D726D71626B222069643D2242504D4E456467655F466C6F775F306D726D71626B223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223135382E302220793D223332302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223231302E302220793D223332302E30223E3C2F6F6D6764693A776179706F696E743E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F30703967373269222069643D2242504D4E456467655F466C6F775F30703967373269223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223331302E302220793D223332302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223337302E302220793D223332302E30223E3C2F6F6D6764693A776179706F696E743E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F306979756B7772222069643D2242504D4E456467655F466C6F775F306979756B7772223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223437302E302220793D223332302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223538352E302220793D223332302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C62706D6E64693A42504D4E4C6162656C3E0A202020202020202020203C6F6D6764633A426F756E6473206865696768743D2231342E30222077696474683D2232332E302220783D223531362E302220793D223330322E30223E3C2F6F6D6764633A426F756E64733E0A20202020202020203C2F62706D6E64693A42504D4E4C6162656C3E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F306A667265316B222069643D2242504D4E456467655F466C6F775F306A667265316B223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223633352E302220793D223332302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223834322E302220793D223332302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C62706D6E64693A42504D4E4C6162656C3E0A202020202020202020203C6F6D6764633A426F756E6473206865696768743D2231342E30222077696474683D2239302E302220783D223639342E302220793D223330322E30223E3C2F6F6D6764633A426F756E64733E0A20202020202020203C2F62706D6E64693A42504D4E4C6162656C3E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F31336564653762222069643D2242504D4E456467655F466C6F775F31336564653762223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223631302E302220793D223334352E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223631302E302220793D223339302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C62706D6E64693A42504D4E4C6162656C3E0A202020202020202020203C6F6D6764633A426F756E6473206865696768743D2231342E30222077696474683D2239302E302220783D223631352E302220793D223335332E30223E3C2F6F6D6764633A426F756E64733E0A20202020202020203C2F62706D6E64693A42504D4E4C6162656C3E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F313576336A6B6A222069643D2242504D4E456467655F466C6F775F313576336A6B6A223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223636302E302220793D223433302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223836302E302220793D223433302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223836302E302220793D223333382E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C62706D6E64693A42504D4E4C6162656C3E0A202020202020202020203C6F6D6764633A426F756E6473206865696768743D2231342E30222077696474683D2232332E302220783D223734392E302220793D223431322E30223E3C2F6F6D6764633A426F756E64733E0A20202020202020203C2F62706D6E64693A42504D4E4C6162656C3E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F316F6971353872222069643D2242504D4E456467655F466C6F775F316F6971353872223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223536302E302220793D223433302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223236302E302220793D223433302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223236302E302220793D223336302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C62706D6E64693A42504D4E4C6162656C3E0A202020202020202020203C6F6D6764633A426F756E6473206865696768743D2231342E30222077696474683D2232322E302220783D223339392E302220793D223431322E30223E3C2F6F6D6764633A426F756E64733E0A20202020202020203C2F62706D6E64693A42504D4E4C6162656C3E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F30393873386930222069643D2242504D4E456467655F466C6F775F30393873386930223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223432302E302220793D223238302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223432302E302220793D223234302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223236302E302220793D223234302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223236302E302220793D223238302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C62706D6E64693A42504D4E4C6162656C3E0A202020202020202020203C6F6D6764633A426F756E6473206865696768743D2231342E30222077696474683D2232322E302220783D223332392E302220793D223232322E30223E3C2F6F6D6764633A426F756E64733E0A20202020202020203C2F62706D6E64693A42504D4E4C6162656C3E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A202020203C2F62706D6E64693A42504D4E506C616E653E0A20203C2F62706D6E64693A42504D4E4469616772616D3E0A3C2F62706D6E323A646566696E6974696F6E733E, 0); -INSERT INTO `ACT_GE_BYTEARRAY` VALUES ('7cdc7716-3184-11ec-9f40-f20b812c0662', 1, 'flowContract.bpmn', '7cdc7715-3184-11ec-9f40-f20b812c0662', 0x3C3F786D6C2076657273696F6E3D22312E302220656E636F64696E673D225554462D38223F3E0A3C62706D6E323A646566696E6974696F6E7320786D6C6E733D22687474703A2F2F7777772E6F6D672E6F72672F737065632F42504D4E2F32303130303532342F4D4F44454C2220786D6C6E733A62706D6E323D22687474703A2F2F7777772E6F6D672E6F72672F737065632F42504D4E2F32303130303532342F4D4F44454C2220786D6C6E733A7873693D22687474703A2F2F7777772E77332E6F72672F323030312F584D4C536368656D612D696E7374616E63652220786D6C6E733A7873643D22687474703A2F2F7777772E77332E6F72672F323030312F584D4C536368656D612220786D6C6E733A61637469766974693D22687474703A2F2F61637469766974692E6F72672F62706D6E2220786D6C6E733A62706D6E64693D22687474703A2F2F7777772E6F6D672E6F72672F737065632F42504D4E2F32303130303532342F44492220786D6C6E733A6F6D6764633D22687474703A2F2F7777772E6F6D672E6F72672F737065632F44442F32303130303532342F44432220786D6C6E733A6F6D6764693D22687474703A2F2F7777772E6F6D672E6F72672F737065632F44442F32303130303532342F44492220786D6C6E733A64633D22687474703A2F2F7777772E6F6D672E6F72672F737065632F44442F32303130303532342F44432220786D6C6E733A64693D22687474703A2F2F7777772E6F6D672E6F72672F737065632F44442F32303130303532342F44492220747970654C616E67756167653D22687474703A2F2F7777772E77332E6F72672F323030312F584D4C536368656D61222065787072657373696F6E4C616E67756167653D22687474703A2F2F7777772E77332E6F72672F313939392F585061746822207461726765744E616D6573706163653D22687474703A2F2F61637469766974692E6F72672F62706D6E222069643D226469616772616D5F666C6F77436F6E747261637422207873693A736368656D614C6F636174696F6E3D22687474703A2F2F7777772E6F6D672E6F72672F737065632F42504D4E2F32303130303532342F4D4F44454C2042504D4E32302E787364223E0A20203C62706D6E323A70726F636573732069643D22666C6F77436F6E747261637422206E616D653D22E59088E5908CE5AEA1E689B92220697345786563757461626C653D2274727565223E0A202020203C657874656E73696F6E456C656D656E74733E0A2020202020203C61637469766974693A657865637574696F6E4C697374656E6572206576656E743D22656E642220636C6173733D22636F6D2E666C6F772E64656D6F2E636F6D6D6F6E2E666C6F772E6C697374656E65722E557064617465466C6F775374617475734C697374656E6572223E3C2F61637469766974693A657865637574696F6E4C697374656E65723E0A202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C62706D6E323A73746172744576656E742069643D224576656E745F306B6A70396369223E0A2020202020203C62706D6E323A6F7574676F696E673E466C6F775F30656D7834307A3C2F62706D6E323A6F7574676F696E673E0A202020203C2F62706D6E323A73746172744576656E743E0A202020203C62706D6E323A757365725461736B2069643D2241637469766974795F306263696F686622206E616D653D22E59088E5908CE5BD95E585A5222061637469766974693A61737369676E65653D22247B7374617274557365724E616D657D222061637469766974693A666F726D4B65793D227B2671756F743B666F726D49642671756F743B3A2671756F743B313434303935343932303334383934363433322671756F743B2C2671756F743B726561644F6E6C792671756F743B3A66616C73652C2671756F743B67726F7570547970652671756F743B3A2671756F743B444550542671756F743B7D223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A6F7065726174696F6E4C6973743E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313235353334393822206C6162656C3D22E68F90E4BAA42220747970653D226167726565222073686F774F726465723D2230223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A20202020202020203C2F61637469766974693A6F7065726174696F6E4C6973743E0A20202020202020203C61637469766974693A7661726961626C654C6973743E3C2F61637469766974693A7661726961626C654C6973743E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C2F62706D6E323A757365725461736B3E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F30656D7834307A2220736F757263655265663D224576656E745F306B6A7039636922207461726765745265663D2241637469766974795F306263696F6866223E3C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A757365725461736B2069643D2241637469766974795F3035336F6D393922206E616D653D22E4B89AE58AA1E983A8E9A286E5AFBCE5AEA1E689B9222061637469766974693A63616E64696461746547726F7570733D22247B64657074506F73744C65616465727D222061637469766974693A666F726D4B65793D227B2671756F743B666F726D49642671756F743B3A2671756F743B313434303935343932303334383934363433322671756F743B2C2671756F743B726561644F6E6C792671756F743B3A747275652C2671756F743B67726F7570547970652671756F743B3A2671756F743B444550545F504F53545F4C45414445522671756F743B7D223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A7461736B4C697374656E6572206576656E743D226372656174652220636C6173733D22636F6D2E666C6F772E64656D6F2E636F6D6D6F6E2E666C6F772E6C697374656E65722E44657074506F73744C65616465724C697374656E6572223E3C2F61637469766974693A7461736B4C697374656E65723E0A20202020202020203C61637469766974693A6F7065726174696F6E4C6973743E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313235363433353322206C6162656C3D22E5908CE6848F2220747970653D226167726565222073686F774F726465723D2230223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A20202020202020203C2F61637469766974693A6F7065726174696F6E4C6973743E0A20202020202020203C61637469766974693A7661726961626C654C6973743E3C2F61637469766974693A7661726961626C654C6973743E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C2F62706D6E323A757365725461736B3E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F306477663979742220736F757263655265663D2241637469766974795F306263696F686622207461726765745265663D2241637469766974795F3035336F6D3939223E3C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F3076357A6A336B2220736F757263655265663D2241637469766974795F3035336F6D393922207461726765745265663D22476174657761795F3038353538696A223E3C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A706172616C6C656C476174657761792069643D22476174657761795F3038353538696A223E0A2020202020203C62706D6E323A696E636F6D696E673E466C6F775F3076357A6A336B3C2F62706D6E323A696E636F6D696E673E0A2020202020203C62706D6E323A6F7574676F696E673E466C6F775F3164357568636F3C2F62706D6E323A6F7574676F696E673E0A2020202020203C62706D6E323A6F7574676F696E673E466C6F775F317168396370303C2F62706D6E323A6F7574676F696E673E0A202020203C2F62706D6E323A706172616C6C656C476174657761793E0A202020203C62706D6E323A757365725461736B2069643D2241637469766974795F307A3930616C6922206E616D653D22E5B7A5E7A88BE983A8E5AEA1E689B9222061637469766974693A61737369676E65653D2261646D696E222061637469766974693A666F726D4B65793D227B2671756F743B666F726D49642671756F743B3A2671756F743B313434303935353139343939313937323335322671756F743B2C2671756F743B726561644F6E6C792671756F743B3A747275652C2671756F743B67726F7570547970652671756F743B3A2671756F743B444550542671756F743B7D223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A6F7065726174696F6E4C6973743E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313236303635323922206C6162656C3D22E5908CE6848F2220747970653D226167726565222073686F774F726465723D2230223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A20202020202020203C2F61637469766974693A6F7065726174696F6E4C6973743E0A20202020202020203C61637469766974693A7661726961626C654C6973743E3C2F61637469766974693A7661726961626C654C6973743E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C2F62706D6E323A757365725461736B3E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F3164357568636F2220736F757263655265663D22476174657761795F3038353538696A22207461726765745265663D2241637469766974795F307A3930616C69223E3C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A757365725461736B2069643D2241637469766974795F3137393330616A22206E616D653D22E980A0E4BBB7E983A8E5AEA1E689B9222061637469766974693A63616E64696461746555736572733D2261646D696E222061637469766974693A666F726D4B65793D227B2671756F743B666F726D49642671756F743B3A2671756F743B313434303935353139343939313937323335322671756F743B2C2671756F743B726561644F6E6C792671756F743B3A747275652C2671756F743B67726F7570547970652671756F743B3A2671756F743B444550542671756F743B7D223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A6F7065726174696F6E4C6973743E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313236333131313322206C6162656C3D22E5908CE6848F2220747970653D226167726565222073686F774F726465723D2230223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A20202020202020203C2F61637469766974693A6F7065726174696F6E4C6973743E0A20202020202020203C61637469766974693A7661726961626C654C6973743E3C2F61637469766974693A7661726961626C654C6973743E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C2F62706D6E323A757365725461736B3E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F317168396370302220736F757263655265663D22476174657761795F3038353538696A22207461726765745265663D2241637469766974795F3137393330616A223E3C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F316E35637866672220736F757263655265663D2241637469766974795F3137393330616A22207461726765745265663D22476174657761795F30796A79713068223E3C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A706172616C6C656C476174657761792069643D22476174657761795F30796A79713068223E0A2020202020203C62706D6E323A696E636F6D696E673E466C6F775F316E35637866673C2F62706D6E323A696E636F6D696E673E0A2020202020203C62706D6E323A696E636F6D696E673E466C6F775F313068663979353C2F62706D6E323A696E636F6D696E673E0A2020202020203C62706D6E323A6F7574676F696E673E466C6F775F30767435676F723C2F62706D6E323A6F7574676F696E673E0A202020203C2F62706D6E323A706172616C6C656C476174657761793E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F313068663979352220736F757263655265663D2241637469766974795F307A3930616C6922207461726765745265663D22476174657761795F30796A79713068223E3C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A757365725461736B2069643D2241637469766974795F3078657463387522206E616D653D22E8B4A2E58AA1E983A8E5AEA1E689B9222061637469766974693A63616E64696461746547726F7570733D22313434303936343531393339313133373739322C31343430393634353139333935333332303936222061637469766974693A666F726D4B65793D227B2671756F743B666F726D49642671756F743B3A2671756F743B313434303935353132373739303833333636342671756F743B2C2671756F743B726561644F6E6C792671756F743B3A747275652C2671756F743B67726F7570547970652671756F743B3A2671756F743B504F53542671756F743B7D223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A6F7065726174696F6E4C6973743E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313236363839383222206C6162656C3D22E5908CE6848F2220747970653D226167726565222073686F774F726465723D2230223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313236373231393522206C6162656C3D22E68B92E7BB9D2220747970653D22726566757365222073686F774F726465723D2231223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A20202020202020203C2F61637469766974693A6F7065726174696F6E4C6973743E0A20202020202020203C61637469766974693A7661726961626C654C6973743E3C2F61637469766974693A7661726961626C654C6973743E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C2F62706D6E323A757365725461736B3E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F30767435676F722220736F757263655265663D22476174657761795F30796A7971306822207461726765745265663D2241637469766974795F30786574633875223E3C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A757365725461736B2069643D2241637469766974795F3064766734686922206E616D653D22E6B395E58AA1E983A8E5AEA1E689B9222061637469766974693A63616E64696461746547726F7570733D2231343430393634333837393739333939313638222061637469766974693A666F726D4B65793D227B2671756F743B666F726D49642671756F743B3A2671756F743B313434303935353030313039333439323733362671756F743B2C2671756F743B726561644F6E6C792671756F743B3A747275652C2671756F743B67726F7570547970652671756F743B3A2671756F743B504F53542671756F743B7D223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A6F7065726174696F6E4C6973743E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313238323034313422206C6162656C3D22E4BC9AE7ADBE2220747970653D226D756C74695F7369676E222073686F774F726465723D2230223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313238323839303922206C6162656C3D22E58AA0E7ADBE2220747970653D226D756C74695F636F6E7369676E222073686F774F726465723D2231223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A20202020202020203C2F61637469766974693A6F7065726174696F6E4C6973743E0A20202020202020203C61637469766974693A7661726961626C654C6973743E3C2F61637469766974693A7661726961626C654C6973743E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C2F62706D6E323A757365725461736B3E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F3069746664623522206E616D653D22E5908CE6848F2220736F757263655265663D2241637469766974795F3078657463387522207461726765745265663D2241637469766974795F30647667346869223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A637573746F6D436F6E646974696F6E20747970653D226F7065726174696F6E22206F7065726174696F6E547970653D226167726565223E3C2F61637469766974693A637573746F6D436F6E646974696F6E3E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A2020202020203C636F6E646974696F6E45787072657373696F6E207873693A747970653D2274466F726D616C45787072657373696F6E223E3C215B43444154415B247B6F7065726174696F6E54797065203D3D20276167726565277D5D5D3E3C2F636F6E646974696F6E45787072657373696F6E3E0A202020203C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A757365725461736B2069643D2241637469766974795F30786F31346E7322206E616D653D22E6B395E58AA1E983A8E4BC9AE7ADBE222061637469766974693A61737369676E65653D22247B61737369676E65657D222061637469766974693A666F726D4B65793D227B2671756F743B666F726D49642671756F743B3A2671756F743B313434303935353030313039333439323733362671756F743B2C2671756F743B726561644F6E6C792671756F743B3A747275652C2671756F743B67726F7570547970652671756F743B3A2671756F743B444550542671756F743B7D223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A6F7065726174696F6E4C6973743E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313239343530353322206C6162656C3D22E5908CE6848F2220747970653D226D756C74695F6167726565222073686F774F726465723D2230223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313239353131363022206C6162656C3D22E68B92E7BB9D2220747970653D226D756C74695F726566757365222073686F774F726465723D2231223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A20202020202020203C2F61637469766974693A6F7065726174696F6E4C6973743E0A20202020202020203C61637469766974693A7661726961626C654C6973743E3C2F61637469766974693A7661726961626C654C6973743E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A2020202020203C6D756C7469496E7374616E63654C6F6F7043686172616374657269737469637320697353657175656E7469616C3D2266616C7365222061637469766974693A636F6C6C656374696F6E3D2261737369676E65654C697374222061637469766974693A656C656D656E745661726961626C653D2261737369676E6565223E0A20202020202020203C636F6D706C6574696F6E436F6E646974696F6E3E247B6E724F66496E7374616E636573203D3D206E724F66436F6D706C65746564496E7374616E6365737D3C2F636F6D706C6574696F6E436F6E646974696F6E3E0A2020202020203C2F6D756C7469496E7374616E63654C6F6F704368617261637465726973746963733E0A202020203C2F62706D6E323A757365725461736B3E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F307976347562702220736F757263655265663D2241637469766974795F3064766734686922207461726765745265663D2241637469766974795F30786F31346E73223E3C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A6578636C7573697665476174657761792069643D22476174657761795F31633066687A66223E0A2020202020203C62706D6E323A696E636F6D696E673E466C6F775F306969796469703C2F62706D6E323A696E636F6D696E673E0A2020202020203C62706D6E323A6F7574676F696E673E466C6F775F3038653538356A3C2F62706D6E323A6F7574676F696E673E0A2020202020203C62706D6E323A6F7574676F696E673E466C6F775F3165696C647A703C2F62706D6E323A6F7574676F696E673E0A202020203C2F62706D6E323A6578636C7573697665476174657761793E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F306969796469702220736F757263655265663D2241637469766974795F30786F31346E7322207461726765745265663D22476174657761795F31633066687A66223E3C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A757365725461736B2069643D2241637469766974795F31656E68356B6522206E616D653D22E680BBE7BB8FE79086E5AEA1E689B9222061637469766974693A63616E64696461746547726F7570733D2231343430393131343130353831323133343136222061637469766974693A666F726D4B65793D227B2671756F743B666F726D49642671756F743B3A2671756F743B313434303935343932303334383934363433322671756F743B2C2671756F743B726561644F6E6C792671756F743B3A747275652C2671756F743B67726F7570547970652671756F743B3A2671756F743B444550542671756F743B7D223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A6F7065726174696F6E4C6973743E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313331353630393122206C6162656C3D22E5908CE6848F2220747970653D226167726565222073686F774F726465723D2230223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313331353939353622206C6162656C3D22E68B92E7BB9D2220747970653D22726566757365222073686F774F726465723D2231223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A20202020202020203C2F61637469766974693A6F7065726174696F6E4C6973743E0A20202020202020203C61637469766974693A7661726961626C654C6973743E3C2F61637469766974693A7661726961626C654C6973743E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C2F62706D6E323A757365725461736B3E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F3038653538356A22206E616D653D22E5908CE6848FE4BABAE695B0E5A4A7E4BA8E3430252220736F757263655265663D22476174657761795F31633066687A6622207461726765745265663D2241637469766974795F31656E68356B65223E0A2020202020203C636F6E646974696F6E45787072657373696F6E207873693A747970653D2274466F726D616C45787072657373696F6E223E3C215B43444154415B247B6D756C74694167726565436F756E74202F206D756C74694E756D4F66496E7374616E636573203E20302E347D5D5D3E3C2F636F6E646974696F6E45787072657373696F6E3E0A202020203C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A656E644576656E742069643D224576656E745F30383570366479223E0A2020202020203C62706D6E323A696E636F6D696E673E466C6F775F31696E776864653C2F62706D6E323A696E636F6D696E673E0A202020203C2F62706D6E323A656E644576656E743E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F31696E7768646522206E616D653D22E5908CE6848F2220736F757263655265663D2241637469766974795F31656E68356B6522207461726765745265663D224576656E745F30383570366479223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A637573746F6D436F6E646974696F6E20747970653D226F7065726174696F6E22206F7065726174696F6E547970653D226167726565223E3C2F61637469766974693A637573746F6D436F6E646974696F6E3E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A2020202020203C636F6E646974696F6E45787072657373696F6E207873693A747970653D2274466F726D616C45787072657373696F6E223E3C215B43444154415B247B6F7065726174696F6E54797065203D3D20276167726565277D5D5D3E3C2F636F6E646974696F6E45787072657373696F6E3E0A202020203C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F306A306779327422206E616D653D22E68B92E7BB9D2220736F757263655265663D2241637469766974795F3078657463387522207461726765745265663D2241637469766974795F306263696F6866223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A637573746F6D436F6E646974696F6E20747970653D226F7065726174696F6E22206F7065726174696F6E547970653D22726566757365223E3C2F61637469766974693A637573746F6D436F6E646974696F6E3E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A2020202020203C636F6E646974696F6E45787072657373696F6E207873693A747970653D2274466F726D616C45787072657373696F6E223E3C215B43444154415B247B6F7065726174696F6E54797065203D3D2027726566757365277D5D5D3E3C2F636F6E646974696F6E45787072657373696F6E3E0A202020203C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F3165696C647A7022206E616D653D22E5908CE6848FE4BABAE695B0E5B08FE4BA8E3430252220736F757263655265663D22476174657761795F31633066687A6622207461726765745265663D2241637469766974795F306263696F6866223E0A2020202020203C636F6E646974696F6E45787072657373696F6E207873693A747970653D2274466F726D616C45787072657373696F6E223E3C215B43444154415B247B6D756C74694167726565436F756E74202F206D756C74694E756D4F66496E7374616E636573203C3D20302E347D5D5D3E3C2F636F6E646974696F6E45787072657373696F6E3E0A202020203C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F3063326475367022206E616D653D22E68B92E7BB9D2220736F757263655265663D2241637469766974795F31656E68356B6522207461726765745265663D2241637469766974795F306263696F6866223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A637573746F6D436F6E646974696F6E20747970653D226F7065726174696F6E22206F7065726174696F6E547970653D22726566757365223E3C2F61637469766974693A637573746F6D436F6E646974696F6E3E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A2020202020203C636F6E646974696F6E45787072657373696F6E207873693A747970653D2274466F726D616C45787072657373696F6E223E3C215B43444154415B247B6F7065726174696F6E54797065203D3D2027726566757365277D5D5D3E3C2F636F6E646974696F6E45787072657373696F6E3E0A202020203C2F62706D6E323A73657175656E6365466C6F773E0A20203C2F62706D6E323A70726F636573733E0A20203C62706D6E64693A42504D4E4469616772616D2069643D2242504D4E4469616772616D5F666C6F77436F6E7472616374223E0A202020203C62706D6E64693A42504D4E506C616E652062706D6E456C656D656E743D22666C6F77436F6E7472616374222069643D2242504D4E506C616E655F666C6F77436F6E7472616374223E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D224576656E745F306B6A70396369222069643D2242504D4E53686170655F4576656E745F306B6A70396369223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2233362E30222077696474683D2233362E302220783D2234322E302220793D223330322E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D2241637469766974795F306263696F6866222069643D2242504D4E53686170655F41637469766974795F306263696F6866223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2238302E30222077696474683D223130302E302220783D223133302E302220793D223238302E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D2241637469766974795F3035336F6D3939222069643D2242504D4E53686170655F41637469766974795F3035336F6D3939223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2238302E30222077696474683D223130302E302220783D223239302E302220793D223238302E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D22476174657761795F3038353538696A222069643D2242504D4E53686170655F476174657761795F3038353538696A223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2235302E30222077696474683D2235302E302220783D223435352E302220793D223239352E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D2241637469766974795F307A3930616C69222069643D2242504D4E53686170655F41637469766974795F307A3930616C69223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2238302E30222077696474683D223130302E302220783D223537302E302220793D223137302E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D2241637469766974795F3137393330616A222069643D2242504D4E53686170655F41637469766974795F3137393330616A223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2238302E30222077696474683D223130302E302220783D223537302E302220793D223238302E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D22476174657761795F30796A79713068222069643D2242504D4E53686170655F476174657761795F30796A79713068223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2235302E30222077696474683D2235302E302220783D223733352E302220793D223239352E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D2241637469766974795F30786574633875222069643D2242504D4E53686170655F41637469766974795F30786574633875223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2238302E30222077696474683D223130302E302220783D223837302E302220793D223238302E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D2241637469766974795F30647667346869222069643D2242504D4E53686170655F41637469766974795F30647667346869223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2238302E30222077696474683D223130302E302220783D223837302E302220793D223436302E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D2241637469766974795F30786F31346E73222069643D2242504D4E53686170655F41637469766974795F30786F31346E73223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2238302E30222077696474683D223130302E302220783D223731302E302220793D223436302E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D22476174657761795F31633066687A66222069643D2242504D4E53686170655F476174657761795F31633066687A66223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2235302E30222077696474683D2235302E302220783D223535352E302220793D223437352E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D2241637469766974795F31656E68356B65222069643D2242504D4E53686170655F41637469766974795F31656E68356B65223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2238302E30222077696474683D223130302E302220783D223133302E302220793D223436302E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D224576656E745F30383570366479222069643D2242504D4E53686170655F4576656E745F30383570366479223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2233362E30222077696474683D2233362E302220783D2234322E302220793D223438322E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F30656D7834307A222069643D2242504D4E456467655F466C6F775F30656D7834307A223E0A20202020202020203C6F6D6764693A776179706F696E7420783D2237382E302220793D223332302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223133302E302220793D223332302E30223E3C2F6F6D6764693A776179706F696E743E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F30647766397974222069643D2242504D4E456467655F466C6F775F30647766397974223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223233302E302220793D223332302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223239302E302220793D223332302E30223E3C2F6F6D6764693A776179706F696E743E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F3076357A6A336B222069643D2242504D4E456467655F466C6F775F3076357A6A336B223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223339302E302220793D223332302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223435352E302220793D223332302E30223E3C2F6F6D6764693A776179706F696E743E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F3164357568636F222069643D2242504D4E456467655F466C6F775F3164357568636F223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223438302E302220793D223239352E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223438302E302220793D223231302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223537302E302220793D223231302E30223E3C2F6F6D6764693A776179706F696E743E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F31716839637030222069643D2242504D4E456467655F466C6F775F31716839637030223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223530352E302220793D223332302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223537302E302220793D223332302E30223E3C2F6F6D6764693A776179706F696E743E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F316E3563786667222069643D2242504D4E456467655F466C6F775F316E3563786667223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223637302E302220793D223332302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223733352E302220793D223332302E30223E3C2F6F6D6764693A776179706F696E743E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F31306866397935222069643D2242504D4E456467655F466C6F775F31306866397935223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223637302E302220793D223231302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223736302E302220793D223231302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223736302E302220793D223239352E30223E3C2F6F6D6764693A776179706F696E743E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F30767435676F72222069643D2242504D4E456467655F466C6F775F30767435676F72223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223738352E302220793D223332302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223837302E302220793D223332302E30223E3C2F6F6D6764693A776179706F696E743E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F30697466646235222069643D2242504D4E456467655F466C6F775F30697466646235223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223934302E302220793D223336302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223934302E302220793D223436302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C62706D6E64693A42504D4E4C6162656C3E0A202020202020202020203C6F6D6764633A426F756E6473206865696768743D2231342E30222077696474683D2232332E302220783D223934342E302220793D223430372E30223E3C2F6F6D6764633A426F756E64733E0A20202020202020203C2F62706D6E64693A42504D4E4C6162656C3E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F30797634756270222069643D2242504D4E456467655F466C6F775F30797634756270223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223837302E302220793D223530302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223831302E302220793D223530302E30223E3C2F6F6D6764693A776179706F696E743E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F30696979646970222069643D2242504D4E456467655F466C6F775F30696979646970223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223731302E302220793D223530302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223630352E302220793D223530302E30223E3C2F6F6D6764693A776179706F696E743E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F3038653538356A222069643D2242504D4E456467655F466C6F775F3038653538356A223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223535352E302220793D223530302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223233302E302220793D223530302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C62706D6E64693A42504D4E4C6162656C3E0A202020202020202020203C6F6D6764633A426F756E6473206865696768743D2231342E30222077696474683D2238392E302220783D223334382E302220793D223438322E30223E3C2F6F6D6764633A426F756E64733E0A20202020202020203C2F62706D6E64693A42504D4E4C6162656C3E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F31696E77686465222069643D2242504D4E456467655F466C6F775F31696E77686465223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223133302E302220793D223530302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D2237382E302220793D223530302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C62706D6E64693A42504D4E4C6162656C3E0A202020202020202020203C6F6D6764633A426F756E6473206865696768743D2231342E30222077696474683D2232332E302220783D2239332E302220793D223438322E30223E3C2F6F6D6764633A426F756E64733E0A20202020202020203C2F62706D6E64693A42504D4E4C6162656C3E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F306A3067793274222069643D2242504D4E456467655F466C6F775F306A3067793274223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223839302E302220793D223336302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223839302E302220793D223339302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223231302E302220793D223339302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223231302E302220793D223336302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C62706D6E64693A42504D4E4C6162656C3E0A202020202020202020203C6F6D6764633A426F756E6473206865696768743D2231342E30222077696474683D2232322E302220783D223533392E302220793D223337322E30223E3C2F6F6D6764633A426F756E64733E0A20202020202020203C2F62706D6E64693A42504D4E4C6162656C3E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F3165696C647A70222069643D2242504D4E456467655F466C6F775F3165696C647A70223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223538302E302220793D223437352E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223538302E302220793D223433302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223138302E302220793D223433302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223138302E302220793D223336302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C62706D6E64693A42504D4E4C6162656C3E0A202020202020202020203C6F6D6764633A426F756E6473206865696768743D2231342E30222077696474683D2238392E302220783D223333362E302220793D223431322E30223E3C2F6F6D6764633A426F756E64733E0A20202020202020203C2F62706D6E64693A42504D4E4C6162656C3E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F30633264753670222069643D2242504D4E456467655F466C6F775F30633264753670223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223135302E302220793D223436302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223135302E302220793D223336302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C62706D6E64693A42504D4E4C6162656C3E0A202020202020202020203C6F6D6764633A426F756E6473206865696768743D2231342E30222077696474683D2232322E302220783D223135342E302220793D223430372E30223E3C2F6F6D6764633A426F756E64733E0A20202020202020203C2F62706D6E64693A42504D4E4C6162656C3E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A202020203C2F62706D6E64693A42504D4E506C616E653E0A20203C2F62706D6E64693A42504D4E4469616772616D3E0A3C2F62706D6E323A646566696E6974696F6E733E, 0); -INSERT INTO `ACT_GE_BYTEARRAY` VALUES ('7ce6126b-69e6-11ec-bb85-0235bf949cb9', 1, 'flowLeave.bpmn', '7ce6126a-69e6-11ec-bb85-0235bf949cb9', 0x3C3F786D6C2076657273696F6E3D22312E302220656E636F64696E673D225554462D38223F3E0A3C62706D6E323A646566696E6974696F6E7320786D6C6E733D22687474703A2F2F7777772E6F6D672E6F72672F737065632F42504D4E2F32303130303532342F4D4F44454C2220786D6C6E733A62706D6E323D22687474703A2F2F7777772E6F6D672E6F72672F737065632F42504D4E2F32303130303532342F4D4F44454C2220786D6C6E733A7873693D22687474703A2F2F7777772E77332E6F72672F323030312F584D4C536368656D612D696E7374616E63652220786D6C6E733A7873643D22687474703A2F2F7777772E77332E6F72672F323030312F584D4C536368656D612220786D6C6E733A61637469766974693D22687474703A2F2F61637469766974692E6F72672F62706D6E2220786D6C6E733A62706D6E64693D22687474703A2F2F7777772E6F6D672E6F72672F737065632F42504D4E2F32303130303532342F44492220786D6C6E733A6F6D6764633D22687474703A2F2F7777772E6F6D672E6F72672F737065632F44442F32303130303532342F44432220786D6C6E733A6F6D6764693D22687474703A2F2F7777772E6F6D672E6F72672F737065632F44442F32303130303532342F44492220786D6C6E733A64633D22687474703A2F2F7777772E6F6D672E6F72672F737065632F44442F32303130303532342F44432220786D6C6E733A64693D22687474703A2F2F7777772E6F6D672E6F72672F737065632F44442F32303130303532342F44492220747970654C616E67756167653D22687474703A2F2F7777772E77332E6F72672F323030312F584D4C536368656D61222065787072657373696F6E4C616E67756167653D22687474703A2F2F7777772E77332E6F72672F313939392F585061746822207461726765744E616D6573706163653D22687474703A2F2F61637469766974692E6F72672F62706D6E222069643D226469616772616D5F666C6F774C6561766522207873693A736368656D614C6F636174696F6E3D22687474703A2F2F7777772E6F6D672E6F72672F737065632F42504D4E2F32303130303532342F4D4F44454C2042504D4E32302E787364223E0A20203C62706D6E323A70726F636573732069643D22666C6F774C6561766522206E616D653D22E8AFB7E58187E794B3E8AFB72220697345786563757461626C653D2274727565223E0A202020203C657874656E73696F6E456C656D656E74733E0A2020202020203C61637469766974693A657865637574696F6E4C697374656E6572206576656E743D22656E642220636C6173733D22636F6D2E6F72616E6765666F726D732E636F6D6D6F6E2E666C6F772E6C697374656E65722E466C6F7746696E69736865644C697374656E6572223E3C2F61637469766974693A657865637574696F6E4C697374656E65723E0A202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C62706D6E323A73746172744576656E742069643D224576656E745F316D6D72747477223E0A2020202020203C62706D6E323A6F7574676F696E673E466C6F775F3079346D336B763C2F62706D6E323A6F7574676F696E673E0A202020203C2F62706D6E323A73746172744576656E743E0A202020203C62706D6E323A757365725461736B2069643D2241637469766974795F317462386A6B6122206E616D653D22E8AFB7E58187E794B3E8AFB7222061637469766974693A61737369676E65653D22247B7374617274557365724E616D657D222061637469766974693A666F726D4B65793D227B2671756F743B666F726D49642671756F743B3A2671756F743B313434303934353431313335343236373634382671756F743B2C2671756F743B726561644F6E6C792671756F743B3A66616C73652C2671756F743B67726F7570547970652671756F743B3A2671756F743B41535349474E45452671756F743B7D223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A6F7065726174696F6E4C6973743E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313131323239323522206C6162656C3D22E68F90E4BAA42220747970653D226167726565222073686F774F726465723D2230223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A20202020202020203C2F61637469766974693A6F7065726174696F6E4C6973743E0A20202020202020203C61637469766974693A7661726961626C654C6973743E3C2F61637469766974693A7661726961626C654C6973743E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C2F62706D6E323A757365725461736B3E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F3079346D336B762220736F757263655265663D224576656E745F316D6D7274747722207461726765745265663D2241637469766974795F317462386A6B61223E3C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A757365725461736B2069643D2241637469766974795F31316A7230707822206E616D653D22E983A8E997A8E9A286E5AFBCE5AEA1E689B9222061637469766974693A63616E64696461746547726F7570733D22247B64657074506F73744C65616465727D222061637469766974693A666F726D4B65793D227B2671756F743B666F726D49642671756F743B3A2671756F743B313434303934353431313335343236373634382671756F743B2C2671756F743B726561644F6E6C792671756F743B3A747275652C2671756F743B67726F7570547970652671756F743B3A2671756F743B444550545F504F53545F4C45414445522671756F743B7D223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A7461736B4C697374656E6572206576656E743D226372656174652220636C6173733D22636F6D2E6F72616E6765666F726D732E636F6D6D6F6E2E666C6F772E6C697374656E65722E44657074506F73744C65616465724C697374656E6572223E3C2F61637469766974693A7461736B4C697374656E65723E0A20202020202020203C61637469766974693A6F7065726174696F6E4C6973743E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313131343739343122206C6162656C3D22E5908CE6848F2220747970653D226167726565222073686F774F726465723D2230223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313131353133343922206C6162656C3D22E68B92E7BB9D2220747970653D22726566757365222073686F774F726465723D2231223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A20202020202020203C2F61637469766974693A6F7065726174696F6E4C6973743E0A20202020202020203C61637469766974693A7661726961626C654C6973743E3C2F61637469766974693A7661726961626C654C6973743E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C2F62706D6E323A757365725461736B3E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F30376F703230392220736F757263655265663D2241637469766974795F317462386A6B6122207461726765745265663D2241637469766974795F31316A72307078223E3C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A757365725461736B2069643D2241637469766974795F3030696270307522206E616D653D224852E5AEA1E689B9222061637469766974693A63616E64696461746547726F7570733D2231343430393634323231373830313033313638222061637469766974693A666F726D4B65793D227B2671756F743B666F726D49642671756F743B3A2671756F743B313434303934353431313335343236373634382671756F743B2C2671756F743B726561644F6E6C792671756F743B3A747275652C2671756F743B67726F7570547970652671756F743B3A2671756F743B504F53542671756F743B7D223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A6F7065726174696F6E4C6973743E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313133303636303122206C6162656C3D22E5908CE6848F2220747970653D226167726565222073686F774F726465723D2230223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313133313033393122206C6162656C3D22E68B92E7BB9D2220747970653D22726566757365222073686F774F726465723D2231223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A20202020202020203C2F61637469766974693A6F7065726174696F6E4C6973743E0A20202020202020203C61637469766974693A7661726961626C654C6973743E3C2F61637469766974693A7661726961626C654C6973743E0A20202020202020203C61637469766974693A64657074506F73744C6973743E0A202020202020202020203C61637469766974693A64657074506F73742069643D2264657074506F73745F5F313434303936343232313738303130333136382220747970653D2264657074506F7374222064657074506F737449643D2231343430393634323231373830313033313638223E3C2F61637469766974693A64657074506F73743E0A20202020202020203C2F61637469766974693A64657074506F73744C6973743E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C2F62706D6E323A757365725461736B3E0A202020203C62706D6E323A656E644576656E742069643D224576656E745F3163303839756F223E0A2020202020203C62706D6E323A696E636F6D696E673E466C6F775F306D32376664653C2F62706D6E323A696E636F6D696E673E0A202020203C2F62706D6E323A656E644576656E743E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F306D323766646522206E616D653D22E5908CE6848F2220736F757263655265663D2241637469766974795F3030696270307522207461726765745265663D224576656E745F3163303839756F223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A637573746F6D436F6E646974696F6E20747970653D226F7065726174696F6E22206F7065726174696F6E547970653D226167726565223E3C2F61637469766974693A637573746F6D436F6E646974696F6E3E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A2020202020203C636F6E646974696F6E45787072657373696F6E207873693A747970653D2274466F726D616C45787072657373696F6E223E3C215B43444154415B247B6F7065726174696F6E54797065203D3D20276167726565277D5D5D3E3C2F636F6E646974696F6E45787072657373696F6E3E0A202020203C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F31367A796F613522206E616D653D22E68B92E7BB9D2220736F757263655265663D2241637469766974795F31316A7230707822207461726765745265663D2241637469766974795F317462386A6B61223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A637573746F6D436F6E646974696F6E20747970653D226F7065726174696F6E22206F7065726174696F6E547970653D22726566757365223E3C2F61637469766974693A637573746F6D436F6E646974696F6E3E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A2020202020203C636F6E646974696F6E45787072657373696F6E207873693A747970653D2274466F726D616C45787072657373696F6E223E3C215B43444154415B247B6F7065726174696F6E54797065203D3D2027726566757365277D5D5D3E3C2F636F6E646974696F6E45787072657373696F6E3E0A202020203C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F306C6C3734616E22206E616D653D22E5908CE6848F2220736F757263655265663D2241637469766974795F31316A7230707822207461726765745265663D2241637469766974795F30306962703075223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A637573746F6D436F6E646974696F6E20747970653D226F7065726174696F6E22206F7065726174696F6E547970653D226167726565223E3C2F61637469766974693A637573746F6D436F6E646974696F6E3E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A2020202020203C636F6E646974696F6E45787072657373696F6E207873693A747970653D2274466F726D616C45787072657373696F6E223E3C215B43444154415B247B6F7065726174696F6E54797065203D3D20276167726565277D5D5D3E3C2F636F6E646974696F6E45787072657373696F6E3E0A202020203C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F3161656B6D733822206E616D653D22E68B92E7BB9D2220736F757263655265663D2241637469766974795F3030696270307522207461726765745265663D2241637469766974795F317462386A6B61223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A637573746F6D436F6E646974696F6E20747970653D226F7065726174696F6E22206F7065726174696F6E547970653D22726566757365223E3C2F61637469766974693A637573746F6D436F6E646974696F6E3E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A2020202020203C636F6E646974696F6E45787072657373696F6E207873693A747970653D2274466F726D616C45787072657373696F6E223E3C215B43444154415B247B6F7065726174696F6E54797065203D3D2027726566757365277D5D5D3E3C2F636F6E646974696F6E45787072657373696F6E3E0A202020203C2F62706D6E323A73657175656E6365466C6F773E0A20203C2F62706D6E323A70726F636573733E0A20203C62706D6E64693A42504D4E4469616772616D2069643D2242504D4E4469616772616D5F666C6F774C65617665223E0A202020203C62706D6E64693A42504D4E506C616E652062706D6E456C656D656E743D22666C6F774C65617665222069643D2242504D4E506C616E655F666C6F774C65617665223E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D224576656E745F316D6D72747477222069643D2242504D4E53686170655F4576656E745F316D6D72747477223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2233362E30222077696474683D2233362E302220783D223133322E302220793D223237322E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D2241637469766974795F317462386A6B61222069643D2242504D4E53686170655F41637469766974795F317462386A6B61223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2238302E30222077696474683D223130302E302220783D223232302E302220793D223235302E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D2241637469766974795F31316A72307078222069643D2242504D4E53686170655F41637469766974795F31316A72307078223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2238302E30222077696474683D223130302E302220783D223338302E302220793D223235302E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D2241637469766974795F30306962703075222069643D2242504D4E53686170655F41637469766974795F30306962703075223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2238302E30222077696474683D223130302E302220783D223534302E302220793D223235302E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D224576656E745F3163303839756F222069643D2242504D4E53686170655F4576656E745F3163303839756F223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2233362E30222077696474683D2233362E302220783D223730322E302220793D223237322E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F3161656B6D7338222069643D2242504D4E456467655F466C6F775F3161656B6D7338223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223539302E302220793D223333302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223539302E302220793D223337302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223237302E302220793D223337302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223237302E302220793D223333302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C62706D6E64693A42504D4E4C6162656C3E0A202020202020202020203C6F6D6764633A426F756E6473206865696768743D2231342E30222077696474683D2232322E302220783D223431392E302220793D223335322E30223E3C2F6F6D6764633A426F756E64733E0A20202020202020203C2F62706D6E64693A42504D4E4C6162656C3E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F306C6C3734616E222069643D2242504D4E456467655F466C6F775F306C6C3734616E223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223438302E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223534302E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C62706D6E64693A42504D4E4C6162656C3E0A202020202020202020203C6F6D6764633A426F756E6473206865696768743D2231342E30222077696474683D2232332E302220783D223439392E302220793D223237322E30223E3C2F6F6D6764633A426F756E64733E0A20202020202020203C2F62706D6E64693A42504D4E4C6162656C3E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F31367A796F6135222069643D2242504D4E456467655F466C6F775F31367A796F6135223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223433302E302220793D223235302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223433302E302220793D223231302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223237302E302220793D223231302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223237302E302220793D223235302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C62706D6E64693A42504D4E4C6162656C3E0A202020202020202020203C6F6D6764633A426F756E6473206865696768743D2231342E30222077696474683D2232322E302220783D223333392E302220793D223139322E30223E3C2F6F6D6764633A426F756E64733E0A20202020202020203C2F62706D6E64693A42504D4E4C6162656C3E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F306D3237666465222069643D2242504D4E456467655F466C6F775F306D3237666465223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223634302E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223730322E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C62706D6E64693A42504D4E4C6162656C3E0A202020202020202020203C6F6D6764633A426F756E6473206865696768743D2231342E30222077696474683D2232332E302220783D223636302E302220793D223237322E30223E3C2F6F6D6764633A426F756E64733E0A20202020202020203C2F62706D6E64693A42504D4E4C6162656C3E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F30376F70323039222069643D2242504D4E456467655F466C6F775F30376F70323039223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223332302E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223338302E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F3079346D336B76222069643D2242504D4E456467655F466C6F775F3079346D336B76223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223136382E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223232302E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A202020203C2F62706D6E64693A42504D4E506C616E653E0A20203C2F62706D6E64693A42504D4E4469616772616D3E0A3C2F62706D6E323A646566696E6974696F6E733E, 0); -INSERT INTO `ACT_GE_BYTEARRAY` VALUES ('87e159ee-69e6-11ec-bb85-0235bf949cb9', 1, 'flowSubmit.bpmn', '87e159ed-69e6-11ec-bb85-0235bf949cb9', 0x3C3F786D6C2076657273696F6E3D22312E302220656E636F64696E673D225554462D38223F3E0A3C62706D6E323A646566696E6974696F6E7320786D6C6E733D22687474703A2F2F7777772E6F6D672E6F72672F737065632F42504D4E2F32303130303532342F4D4F44454C2220786D6C6E733A62706D6E323D22687474703A2F2F7777772E6F6D672E6F72672F737065632F42504D4E2F32303130303532342F4D4F44454C2220786D6C6E733A7873693D22687474703A2F2F7777772E77332E6F72672F323030312F584D4C536368656D612D696E7374616E63652220786D6C6E733A7873643D22687474703A2F2F7777772E77332E6F72672F323030312F584D4C536368656D612220786D6C6E733A61637469766974693D22687474703A2F2F61637469766974692E6F72672F62706D6E2220786D6C6E733A62706D6E64693D22687474703A2F2F7777772E6F6D672E6F72672F737065632F42504D4E2F32303130303532342F44492220786D6C6E733A6F6D6764633D22687474703A2F2F7777772E6F6D672E6F72672F737065632F44442F32303130303532342F44432220786D6C6E733A6F6D6764693D22687474703A2F2F7777772E6F6D672E6F72672F737065632F44442F32303130303532342F44492220786D6C6E733A64633D22687474703A2F2F7777772E6F6D672E6F72672F737065632F44442F32303130303532342F44432220786D6C6E733A64693D22687474703A2F2F7777772E6F6D672E6F72672F737065632F44442F32303130303532342F44492220747970654C616E67756167653D22687474703A2F2F7777772E77332E6F72672F323030312F584D4C536368656D61222065787072657373696F6E4C616E67756167653D22687474703A2F2F7777772E77332E6F72672F313939392F585061746822207461726765744E616D6573706163653D22687474703A2F2F61637469766974692E6F72672F62706D6E222069643D226469616772616D5F666C6F775375626D697422207873693A736368656D614C6F636174696F6E3D22687474703A2F2F7777772E6F6D672E6F72672F737065632F42504D4E2F32303130303532342F4D4F44454C2042504D4E32302E787364223E0A20203C62706D6E323A70726F636573732069643D22666C6F775375626D697422206E616D653D22E68AA5E99480E794B3E8AFB72220697345786563757461626C653D2274727565223E0A202020203C657874656E73696F6E456C656D656E74733E0A2020202020203C61637469766974693A657865637574696F6E4C697374656E6572206576656E743D22656E642220636C6173733D22636F6D2E6F72616E6765666F726D732E636F6D6D6F6E2E666C6F772E6C697374656E65722E466C6F7746696E69736865644C697374656E6572223E3C2F61637469766974693A657865637574696F6E4C697374656E65723E0A202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C62706D6E323A73746172744576656E742069643D224576656E745F31753464783362223E0A2020202020203C62706D6E323A6F7574676F696E673E466C6F775F306D726D71626B3C2F62706D6E323A6F7574676F696E673E0A202020203C2F62706D6E323A73746172744576656E743E0A202020203C62706D6E323A757365725461736B2069643D2241637469766974795F3163733462693522206E616D653D22E68AA5E99480E794B3E8AFB7222061637469766974693A61737369676E65653D22247B7374617274557365724E616D657D222061637469766974693A666F726D4B65793D227B2671756F743B666F726D49642671756F743B3A2671756F743B313434303934373637353034313130373936382671756F743B2C2671756F743B726561644F6E6C792671756F743B3A66616C73652C2671756F743B67726F7570547970652671756F743B3A2671756F743B41535349474E45452671756F743B7D223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A6F7065726174696F6E4C6973743E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313138303337393622206C6162656C3D22E68F90E4BAA42220747970653D226167726565222073686F774F726465723D2230223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A20202020202020203C2F61637469766974693A6F7065726174696F6E4C6973743E0A20202020202020203C61637469766974693A7661726961626C654C6973743E3C2F61637469766974693A7661726961626C654C6973743E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C2F62706D6E323A757365725461736B3E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F306D726D71626B2220736F757263655265663D224576656E745F3175346478336222207461726765745265663D2241637469766974795F31637334626935223E3C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A757365725461736B2069643D2241637469766974795F303473636E326F22206E616D653D22E983A8E997A8E9A286E5AFBCE5AEA1E689B9222061637469766974693A63616E64696461746547726F7570733D22247B64657074506F73744C65616465727D222061637469766974693A666F726D4B65793D227B2671756F743B666F726D49642671756F743B3A2671756F743B313434303934373637353034313130373936382671756F743B2C2671756F743B726561644F6E6C792671756F743B3A747275652C2671756F743B67726F7570547970652671756F743B3A2671756F743B444550545F504F53545F4C45414445522671756F743B7D223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A7461736B4C697374656E6572206576656E743D226372656174652220636C6173733D22636F6D2E6F72616E6765666F726D732E636F6D6D6F6E2E666C6F772E6C697374656E65722E44657074506F73744C65616465724C697374656E6572223E3C2F61637469766974693A7461736B4C697374656E65723E0A20202020202020203C61637469766974693A6F7065726174696F6E4C6973743E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313138313236343622206C6162656C3D22E5908CE6848F2220747970653D226167726565222073686F774F726465723D2230223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313138313539383422206C6162656C3D22E68B92E7BB9D2220747970653D22726566757365222073686F774F726465723D2231223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A20202020202020203C2F61637469766974693A6F7065726174696F6E4C6973743E0A20202020202020203C61637469766974693A7661726961626C654C6973743E0A202020202020202020203C61637469766974693A666F726D5661726961626C652069643D2231343530373130383030383534343231353034223E3C2F61637469766974693A666F726D5661726961626C653E0A20202020202020203C2F61637469766974693A7661726961626C654C6973743E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C2F62706D6E323A757365725461736B3E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F307039673732692220736F757263655265663D2241637469766974795F3163733462693522207461726765745265663D2241637469766974795F303473636E326F223E3C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A6578636C7573697665476174657761792069643D22476174657761795F30707572396365223E0A2020202020203C62706D6E323A696E636F6D696E673E466C6F775F306979756B77723C2F62706D6E323A696E636F6D696E673E0A2020202020203C62706D6E323A6F7574676F696E673E466C6F775F306A667265316B3C2F62706D6E323A6F7574676F696E673E0A2020202020203C62706D6E323A6F7574676F696E673E466C6F775F313365646537623C2F62706D6E323A6F7574676F696E673E0A202020203C2F62706D6E323A6578636C7573697665476174657761793E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F306979756B777222206E616D653D22E5908CE6848F2220736F757263655265663D2241637469766974795F303473636E326F22207461726765745265663D22476174657761795F30707572396365223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A637573746F6D436F6E646974696F6E20747970653D226F7065726174696F6E22206F7065726174696F6E547970653D226167726565223E3C2F61637469766974693A637573746F6D436F6E646974696F6E3E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A2020202020203C636F6E646974696F6E45787072657373696F6E207873693A747970653D2274466F726D616C45787072657373696F6E223E3C215B43444154415B247B6F7065726174696F6E54797065203D3D20276167726565277D5D5D3E3C2F636F6E646974696F6E45787072657373696F6E3E0A202020203C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A656E644576656E742069643D224576656E745F30346E71666E79223E0A2020202020203C62706D6E323A696E636F6D696E673E466C6F775F306A667265316B3C2F62706D6E323A696E636F6D696E673E0A2020202020203C62706D6E323A696E636F6D696E673E466C6F775F313576336A6B6A3C2F62706D6E323A696E636F6D696E673E0A202020203C2F62706D6E323A656E644576656E743E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F306A667265316B22206E616D653D22E68AA5E99480E98791E9A29DE5B08FE4BA8E313030302220736F757263655265663D22476174657761795F3070757239636522207461726765745265663D224576656E745F30346E71666E79223E0A2020202020203C636F6E646974696F6E45787072657373696F6E207873693A747970653D2274466F726D616C45787072657373696F6E223E3C215B43444154415B247B746F74616C416D6F756E74203C3D20313030307D5D5D3E3C2F636F6E646974696F6E45787072657373696F6E3E0A202020203C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A757365725461736B2069643D2241637469766974795F3177323378666522206E616D653D22E680BBE7BB8FE79086E5AEA1E689B9222061637469766974693A63616E64696461746547726F7570733D2231343430393131343130353831323133343136222061637469766974693A666F726D4B65793D227B2671756F743B666F726D49642671756F743B3A2671756F743B313434303934373637353034313130373936382671756F743B2C2671756F743B726561644F6E6C792671756F743B3A747275652C2671756F743B67726F7570547970652671756F743B3A2671756F743B444550542671756F743B7D223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A6F7065726174696F6E4C6973743E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313138383339303122206C6162656C3D22E5908CE6848F2220747970653D226167726565222073686F774F726465723D2230223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313138383733323222206C6162656C3D22E68B92E7BB9D2220747970653D22726566757365222073686F774F726465723D2231223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A20202020202020203C2F61637469766974693A6F7065726174696F6E4C6973743E0A20202020202020203C61637469766974693A7661726961626C654C6973743E3C2F61637469766974693A7661726961626C654C6973743E0A20202020202020203C61637469766974693A7573657243616E64696461746547726F75707320747970653D2244455054222076616C75653D2231343430393131343130353831323133343136223E3C2F61637469766974693A7573657243616E64696461746547726F7570733E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C2F62706D6E323A757365725461736B3E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F3133656465376222206E616D653D22E68AA5E99480E98791E9A29DE5A4A7E4BA8E313030302220736F757263655265663D22476174657761795F3070757239636522207461726765745265663D2241637469766974795F31773233786665223E0A2020202020203C636F6E646974696F6E45787072657373696F6E207873693A747970653D2274466F726D616C45787072657373696F6E223E3C215B43444154415B247B746F74616C416D6F756E74203E20313030307D5D5D3E3C2F636F6E646974696F6E45787072657373696F6E3E0A202020203C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F313576336A6B6A22206E616D653D22E5908CE6848F2220736F757263655265663D2241637469766974795F3177323378666522207461726765745265663D224576656E745F30346E71666E79223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A637573746F6D436F6E646974696F6E20747970653D226F7065726174696F6E22206F7065726174696F6E547970653D226167726565223E3C2F61637469766974693A637573746F6D436F6E646974696F6E3E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A2020202020203C636F6E646974696F6E45787072657373696F6E207873693A747970653D2274466F726D616C45787072657373696F6E223E3C215B43444154415B247B6F7065726174696F6E54797065203D3D20276167726565277D5D5D3E3C2F636F6E646974696F6E45787072657373696F6E3E0A202020203C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F316F697135387222206E616D653D22E68B92E7BB9D2220736F757263655265663D2241637469766974795F3177323378666522207461726765745265663D2241637469766974795F31637334626935223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A637573746F6D436F6E646974696F6E20747970653D226F7065726174696F6E22206F7065726174696F6E547970653D22726566757365223E3C2F61637469766974693A637573746F6D436F6E646974696F6E3E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A2020202020203C636F6E646974696F6E45787072657373696F6E207873693A747970653D2274466F726D616C45787072657373696F6E223E3C215B43444154415B247B6F7065726174696F6E54797065203D3D2027726566757365277D5D5D3E3C2F636F6E646974696F6E45787072657373696F6E3E0A202020203C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F3039387338693022206E616D653D22E68B92E7BB9D2220736F757263655265663D2241637469766974795F303473636E326F22207461726765745265663D2241637469766974795F31637334626935223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A637573746F6D436F6E646974696F6E20747970653D226F7065726174696F6E22206F7065726174696F6E547970653D22726566757365223E3C2F61637469766974693A637573746F6D436F6E646974696F6E3E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A2020202020203C636F6E646974696F6E45787072657373696F6E207873693A747970653D2274466F726D616C45787072657373696F6E223E3C215B43444154415B247B6F7065726174696F6E54797065203D3D2027726566757365277D5D5D3E3C2F636F6E646974696F6E45787072657373696F6E3E0A202020203C2F62706D6E323A73657175656E6365466C6F773E0A20203C2F62706D6E323A70726F636573733E0A20203C62706D6E64693A42504D4E4469616772616D2069643D2242504D4E4469616772616D5F666C6F775375626D6974223E0A202020203C62706D6E64693A42504D4E506C616E652062706D6E456C656D656E743D22666C6F775375626D6974222069643D2242504D4E506C616E655F666C6F775375626D6974223E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D224576656E745F31753464783362222069643D2242504D4E53686170655F4576656E745F31753464783362223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2233362E30222077696474683D2233362E302220783D223132322E302220793D223330322E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D2241637469766974795F31637334626935222069643D2242504D4E53686170655F41637469766974795F31637334626935223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2238302E30222077696474683D223130302E302220783D223231302E302220793D223238302E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D2241637469766974795F303473636E326F222069643D2242504D4E53686170655F41637469766974795F303473636E326F223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2238302E30222077696474683D223130302E302220783D223337302E302220793D223238302E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D22476174657761795F30707572396365222069643D2242504D4E53686170655F476174657761795F30707572396365223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2235302E30222077696474683D2235302E302220783D223538352E302220793D223239352E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D224576656E745F30346E71666E79222069643D2242504D4E53686170655F4576656E745F30346E71666E79223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2233362E30222077696474683D2233362E302220783D223834322E302220793D223330322E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D2241637469766974795F31773233786665222069643D2242504D4E53686170655F41637469766974795F31773233786665223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2238302E30222077696474683D223130302E302220783D223536302E302220793D223339302E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F30393873386930222069643D2242504D4E456467655F466C6F775F30393873386930223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223432302E302220793D223238302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223432302E302220793D223234302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223236302E302220793D223234302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223236302E302220793D223238302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C62706D6E64693A42504D4E4C6162656C3E0A202020202020202020203C6F6D6764633A426F756E6473206865696768743D2231342E30222077696474683D2232322E302220783D223332392E302220793D223232322E30223E3C2F6F6D6764633A426F756E64733E0A20202020202020203C2F62706D6E64693A42504D4E4C6162656C3E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F316F6971353872222069643D2242504D4E456467655F466C6F775F316F6971353872223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223536302E302220793D223433302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223236302E302220793D223433302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223236302E302220793D223336302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C62706D6E64693A42504D4E4C6162656C3E0A202020202020202020203C6F6D6764633A426F756E6473206865696768743D2231342E30222077696474683D2232322E302220783D223339392E302220793D223431322E30223E3C2F6F6D6764633A426F756E64733E0A20202020202020203C2F62706D6E64693A42504D4E4C6162656C3E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F313576336A6B6A222069643D2242504D4E456467655F466C6F775F313576336A6B6A223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223636302E302220793D223433302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223836302E302220793D223433302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223836302E302220793D223333382E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C62706D6E64693A42504D4E4C6162656C3E0A202020202020202020203C6F6D6764633A426F756E6473206865696768743D2231342E30222077696474683D2232332E302220783D223734392E302220793D223431322E30223E3C2F6F6D6764633A426F756E64733E0A20202020202020203C2F62706D6E64693A42504D4E4C6162656C3E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F31336564653762222069643D2242504D4E456467655F466C6F775F31336564653762223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223631302E302220793D223334352E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223631302E302220793D223339302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C62706D6E64693A42504D4E4C6162656C3E0A202020202020202020203C6F6D6764633A426F756E6473206865696768743D2231342E30222077696474683D2239302E302220783D223631352E302220793D223335332E30223E3C2F6F6D6764633A426F756E64733E0A20202020202020203C2F62706D6E64693A42504D4E4C6162656C3E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F306A667265316B222069643D2242504D4E456467655F466C6F775F306A667265316B223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223633352E302220793D223332302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223834322E302220793D223332302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C62706D6E64693A42504D4E4C6162656C3E0A202020202020202020203C6F6D6764633A426F756E6473206865696768743D2231342E30222077696474683D2239302E302220783D223639342E302220793D223330322E30223E3C2F6F6D6764633A426F756E64733E0A20202020202020203C2F62706D6E64693A42504D4E4C6162656C3E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F306979756B7772222069643D2242504D4E456467655F466C6F775F306979756B7772223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223437302E302220793D223332302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223538352E302220793D223332302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C62706D6E64693A42504D4E4C6162656C3E0A202020202020202020203C6F6D6764633A426F756E6473206865696768743D2231342E30222077696474683D2232332E302220783D223531362E302220793D223330322E30223E3C2F6F6D6764633A426F756E64733E0A20202020202020203C2F62706D6E64693A42504D4E4C6162656C3E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F30703967373269222069643D2242504D4E456467655F466C6F775F30703967373269223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223331302E302220793D223332302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223337302E302220793D223332302E30223E3C2F6F6D6764693A776179706F696E743E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F306D726D71626B222069643D2242504D4E456467655F466C6F775F306D726D71626B223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223135382E302220793D223332302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223231302E302220793D223332302E30223E3C2F6F6D6764693A776179706F696E743E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A202020203C2F62706D6E64693A42504D4E506C616E653E0A20203C2F62706D6E64693A42504D4E4469616772616D3E0A3C2F62706D6E323A646566696E6974696F6E733E, 0); -INSERT INTO `ACT_GE_BYTEARRAY` VALUES ('8ab49016-5e70-11ec-9355-5e4c369e54c1', 1, 'flowTranslate.bpmn', '8ab49015-5e70-11ec-9355-5e4c369e54c1', 0x3C3F786D6C2076657273696F6E3D22312E302220656E636F64696E673D225554462D38223F3E0A3C62706D6E323A646566696E6974696F6E7320786D6C6E733D22687474703A2F2F7777772E6F6D672E6F72672F737065632F42504D4E2F32303130303532342F4D4F44454C2220786D6C6E733A62706D6E323D22687474703A2F2F7777772E6F6D672E6F72672F737065632F42504D4E2F32303130303532342F4D4F44454C2220786D6C6E733A7873693D22687474703A2F2F7777772E77332E6F72672F323030312F584D4C536368656D612D696E7374616E63652220786D6C6E733A7873643D22687474703A2F2F7777772E77332E6F72672F323030312F584D4C536368656D612220786D6C6E733A61637469766974693D22687474703A2F2F61637469766974692E6F72672F62706D6E2220786D6C6E733A62706D6E64693D22687474703A2F2F7777772E6F6D672E6F72672F737065632F42504D4E2F32303130303532342F44492220786D6C6E733A6F6D6764633D22687474703A2F2F7777772E6F6D672E6F72672F737065632F44442F32303130303532342F44432220786D6C6E733A6F6D6764693D22687474703A2F2F7777772E6F6D672E6F72672F737065632F44442F32303130303532342F44492220786D6C6E733A64633D22687474703A2F2F7777772E6F6D672E6F72672F737065632F44442F32303130303532342F44432220786D6C6E733A64693D22687474703A2F2F7777772E6F6D672E6F72672F737065632F44442F32303130303532342F44492220747970654C616E67756167653D22687474703A2F2F7777772E77332E6F72672F323030312F584D4C536368656D61222065787072657373696F6E4C616E67756167653D22687474703A2F2F7777772E77332E6F72672F313939392F585061746822207461726765744E616D6573706163653D22687474703A2F2F61637469766974692E6F72672F62706D6E222069643D226469616772616D5F666C6F775472616E736C61746522207873693A736368656D614C6F636174696F6E3D22687474703A2F2F7777772E6F6D672E6F72672F737065632F42504D4E2F32303130303532342F4D4F44454C2042504D4E32302E787364223E0A20203C62706D6E323A70726F636573732069643D22666C6F775472616E736C61746522206E616D653D22E8BDACE58A9EE6B581E7A88B2220697345786563757461626C653D2274727565223E0A202020203C657874656E73696F6E456C656D656E74733E0A2020202020203C61637469766974693A657865637574696F6E4C697374656E6572206576656E743D22656E642220636C6173733D22636F6D2E6F72616E6765666F726D732E636F6D6D6F6E2E666C6F772E6C697374656E65722E466C6F7746696E69736865644C697374656E6572223E3C2F61637469766974693A657865637574696F6E4C697374656E65723E0A202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C62706D6E323A73746172744576656E742069643D224576656E745F31357A6F6D7466223E0A2020202020203C62706D6E323A6F7574676F696E673E466C6F775F31756E7635326A3C2F62706D6E323A6F7574676F696E673E0A202020203C2F62706D6E323A73746172744576656E743E0A202020203C62706D6E323A757365725461736B2069643D2241637469766974795F3063366E78646D22206E616D653D22E5BD95E585A5222061637469766974693A61737369676E65653D22247B7374617274557365724E616D657D222061637469766974693A666F726D4B65793D227B2671756F743B666F726D49642671756F743B3A2671756F743B313434303934353431313335343236373634382671756F743B2C2671756F743B726561644F6E6C792671756F743B3A66616C73652C2671756F743B67726F7570547970652671756F743B3A2671756F743B41535349474E45452671756F743B7D223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A6F7065726174696F6E4C6973743E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313431323835353222206C6162656C3D22E68F90E4BAA42220747970653D226167726565222073686F774F726465723D2230223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A20202020202020203C2F61637469766974693A6F7065726174696F6E4C6973743E0A20202020202020203C61637469766974693A7661726961626C654C6973743E3C2F61637469766974693A7661726961626C654C6973743E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C2F62706D6E323A757365725461736B3E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F31756E7635326A2220736F757263655265663D224576656E745F31357A6F6D746622207461726765745265663D2241637469766974795F3063366E78646D223E3C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A757365725461736B2069643D2241637469766974795F3077777369397722206E616D653D22E8BDACE58A9E222061637469766974693A61737369676E65653D2261646D696E222061637469766974693A666F726D4B65793D227B2671756F743B666F726D49642671756F743B3A2671756F743B313434303934353431313335343236373634382671756F743B2C2671756F743B726561644F6E6C792671756F743B3A747275652C2671756F743B67726F7570547970652671756F743B3A2671756F743B41535349474E45452671756F743B7D223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A6F7065726174696F6E4C6973743E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313431343033303022206C6162656C3D22E5908CE6848F2220747970653D226167726565222073686F774F726465723D2230223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313431343434343922206C6162656C3D22E8BDACE58A9E2220747970653D227472616E73666572222073686F774F726465723D2231223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A20202020202020203C2F61637469766974693A6F7065726174696F6E4C6973743E0A20202020202020203C61637469766974693A7661726961626C654C6973743E3C2F61637469766974693A7661726961626C654C6973743E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C2F62706D6E323A757365725461736B3E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F317932696835682220736F757263655265663D2241637469766974795F3063366E78646D22207461726765745265663D2241637469766974795F30777773693977223E3C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A656E644576656E742069643D224576656E745F31616D31747561223E0A2020202020203C62706D6E323A696E636F6D696E673E466C6F775F30306F617A366A3C2F62706D6E323A696E636F6D696E673E0A202020203C2F62706D6E323A656E644576656E743E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F30306F617A366A2220736F757263655265663D2241637469766974795F3077777369397722207461726765745265663D224576656E745F31616D31747561223E3C2F62706D6E323A73657175656E6365466C6F773E0A20203C2F62706D6E323A70726F636573733E0A20203C62706D6E64693A42504D4E4469616772616D2069643D2242504D4E4469616772616D5F666C6F775472616E736C617465223E0A202020203C62706D6E64693A42504D4E506C616E652062706D6E456C656D656E743D22666C6F775472616E736C617465222069643D2242504D4E506C616E655F666C6F775472616E736C617465223E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D224576656E745F31357A6F6D7466222069643D2242504D4E53686170655F4576656E745F31357A6F6D7466223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2233362E30222077696474683D2233362E302220783D223136322E302220793D223237322E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D2241637469766974795F3063366E78646D222069643D2242504D4E53686170655F41637469766974795F3063366E78646D223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2238302E30222077696474683D223130302E302220783D223235302E302220793D223235302E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D2241637469766974795F30777773693977222069643D2242504D4E53686170655F41637469766974795F30777773693977223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2238302E30222077696474683D223130302E302220783D223431302E302220793D223235302E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D224576656E745F31616D31747561222069643D2242504D4E53686170655F4576656E745F31616D31747561223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2233362E30222077696474683D2233362E302220783D223537322E302220793D223237322E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F30306F617A366A222069643D2242504D4E456467655F466C6F775F30306F617A366A223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223531302E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223537322E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F31793269683568222069643D2242504D4E456467655F466C6F775F31793269683568223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223335302E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223431302E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F31756E7635326A222069643D2242504D4E456467655F466C6F775F31756E7635326A223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223139382E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223235302E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A202020203C2F62706D6E64693A42504D4E506C616E653E0A20203C2F62706D6E64693A42504D4E4469616772616D3E0A3C2F62706D6E323A646566696E6974696F6E733E, 0); -INSERT INTO `ACT_GE_BYTEARRAY` VALUES ('8e3e3cea-3179-11ec-9438-f20b812c0662', 1, 'flowLeave.bpmn', '8e3e3ce9-3179-11ec-9438-f20b812c0662', 0x3C3F786D6C2076657273696F6E3D22312E302220656E636F64696E673D225554462D38223F3E0A3C62706D6E323A646566696E6974696F6E7320786D6C6E733D22687474703A2F2F7777772E6F6D672E6F72672F737065632F42504D4E2F32303130303532342F4D4F44454C2220786D6C6E733A62706D6E323D22687474703A2F2F7777772E6F6D672E6F72672F737065632F42504D4E2F32303130303532342F4D4F44454C2220786D6C6E733A7873693D22687474703A2F2F7777772E77332E6F72672F323030312F584D4C536368656D612D696E7374616E63652220786D6C6E733A7873643D22687474703A2F2F7777772E77332E6F72672F323030312F584D4C536368656D612220786D6C6E733A61637469766974693D22687474703A2F2F61637469766974692E6F72672F62706D6E2220786D6C6E733A62706D6E64693D22687474703A2F2F7777772E6F6D672E6F72672F737065632F42504D4E2F32303130303532342F44492220786D6C6E733A6F6D6764633D22687474703A2F2F7777772E6F6D672E6F72672F737065632F44442F32303130303532342F44432220786D6C6E733A6F6D6764693D22687474703A2F2F7777772E6F6D672E6F72672F737065632F44442F32303130303532342F44492220786D6C6E733A64633D22687474703A2F2F7777772E6F6D672E6F72672F737065632F44442F32303130303532342F44432220786D6C6E733A64693D22687474703A2F2F7777772E6F6D672E6F72672F737065632F44442F32303130303532342F44492220747970654C616E67756167653D22687474703A2F2F7777772E77332E6F72672F323030312F584D4C536368656D61222065787072657373696F6E4C616E67756167653D22687474703A2F2F7777772E77332E6F72672F313939392F585061746822207461726765744E616D6573706163653D22687474703A2F2F61637469766974692E6F72672F62706D6E222069643D226469616772616D5F666C6F774C6561766522207873693A736368656D614C6F636174696F6E3D22687474703A2F2F7777772E6F6D672E6F72672F737065632F42504D4E2F32303130303532342F4D4F44454C2042504D4E32302E787364223E0A20203C62706D6E323A70726F636573732069643D22666C6F774C6561766522206E616D653D22E8AFB7E58187E794B3E8AFB72220697345786563757461626C653D2274727565223E0A202020203C657874656E73696F6E456C656D656E74733E0A2020202020203C61637469766974693A657865637574696F6E4C697374656E6572206576656E743D22656E642220636C6173733D22636F6D2E666C6F772E64656D6F2E636F6D6D6F6E2E666C6F772E6C697374656E65722E557064617465466C6F775374617475734C697374656E6572223E3C2F61637469766974693A657865637574696F6E4C697374656E65723E0A202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C62706D6E323A73746172744576656E742069643D224576656E745F316D6D72747477223E0A2020202020203C62706D6E323A6F7574676F696E673E466C6F775F3079346D336B763C2F62706D6E323A6F7574676F696E673E0A202020203C2F62706D6E323A73746172744576656E743E0A202020203C62706D6E323A757365725461736B2069643D2241637469766974795F317462386A6B6122206E616D653D22E8AFB7E58187E794B3E8AFB7222061637469766974693A61737369676E65653D22247B7374617274557365724E616D657D222061637469766974693A666F726D4B65793D227B2671756F743B666F726D49642671756F743B3A2671756F743B313434303934353431313335343236373634382671756F743B2C2671756F743B726561644F6E6C792671756F743B3A66616C73652C2671756F743B67726F7570547970652671756F743B3A2671756F743B444550542671756F743B7D223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A6F7065726174696F6E4C6973743E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313131323239323522206C6162656C3D22E68F90E4BAA42220747970653D226167726565222073686F774F726465723D2230223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A20202020202020203C2F61637469766974693A6F7065726174696F6E4C6973743E0A20202020202020203C61637469766974693A7661726961626C654C6973743E3C2F61637469766974693A7661726961626C654C6973743E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C2F62706D6E323A757365725461736B3E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F3079346D336B762220736F757263655265663D224576656E745F316D6D7274747722207461726765745265663D2241637469766974795F317462386A6B61223E3C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A757365725461736B2069643D2241637469766974795F31316A7230707822206E616D653D22E983A8E997A8E9A286E5AFBCE5AEA1E689B9222061637469766974693A63616E64696461746547726F7570733D22247B64657074506F73744C65616465727D222061637469766974693A666F726D4B65793D227B2671756F743B666F726D49642671756F743B3A2671756F743B313434303934353431313335343236373634382671756F743B2C2671756F743B726561644F6E6C792671756F743B3A747275652C2671756F743B67726F7570547970652671756F743B3A2671756F743B444550545F504F53545F4C45414445522671756F743B7D223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A7461736B4C697374656E6572206576656E743D226372656174652220636C6173733D22636F6D2E666C6F772E64656D6F2E636F6D6D6F6E2E666C6F772E6C697374656E65722E44657074506F73744C65616465724C697374656E6572223E3C2F61637469766974693A7461736B4C697374656E65723E0A20202020202020203C61637469766974693A6F7065726174696F6E4C6973743E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313131343739343122206C6162656C3D22E5908CE6848F2220747970653D226167726565222073686F774F726465723D2230223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313131353133343922206C6162656C3D22E68B92E7BB9D2220747970653D22726566757365222073686F774F726465723D2231223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A20202020202020203C2F61637469766974693A6F7065726174696F6E4C6973743E0A20202020202020203C61637469766974693A7661726961626C654C6973743E3C2F61637469766974693A7661726961626C654C6973743E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C2F62706D6E323A757365725461736B3E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F30376F703230392220736F757263655265663D2241637469766974795F317462386A6B6122207461726765745265663D2241637469766974795F31316A72307078223E3C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A757365725461736B2069643D2241637469766974795F3030696270307522206E616D653D224852E5AEA1E689B9222061637469766974693A63616E64696461746547726F7570733D2231343430393634323231383535363030363430222061637469766974693A666F726D4B65793D227B2671756F743B666F726D49642671756F743B3A2671756F743B313434303934353431313335343236373634382671756F743B2C2671756F743B726561644F6E6C792671756F743B3A747275652C2671756F743B67726F7570547970652671756F743B3A2671756F743B504F53542671756F743B7D223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A6F7065726174696F6E4C6973743E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313133303636303122206C6162656C3D22E5908CE6848F2220747970653D226167726565222073686F774F726465723D2230223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313133313033393122206C6162656C3D22E68B92E7BB9D2220747970653D22726566757365222073686F774F726465723D2231223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A20202020202020203C2F61637469766974693A6F7065726174696F6E4C6973743E0A20202020202020203C61637469766974693A7661726961626C654C6973743E3C2F61637469766974693A7661726961626C654C6973743E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C2F62706D6E323A757365725461736B3E0A202020203C62706D6E323A656E644576656E742069643D224576656E745F3163303839756F223E0A2020202020203C62706D6E323A696E636F6D696E673E466C6F775F306D32376664653C2F62706D6E323A696E636F6D696E673E0A202020203C2F62706D6E323A656E644576656E743E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F306D323766646522206E616D653D22E5908CE6848F2220736F757263655265663D2241637469766974795F3030696270307522207461726765745265663D224576656E745F3163303839756F223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A637573746F6D436F6E646974696F6E20747970653D226F7065726174696F6E22206F7065726174696F6E547970653D226167726565223E3C2F61637469766974693A637573746F6D436F6E646974696F6E3E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A2020202020203C636F6E646974696F6E45787072657373696F6E207873693A747970653D2274466F726D616C45787072657373696F6E223E3C215B43444154415B247B6F7065726174696F6E54797065203D3D20276167726565277D5D5D3E3C2F636F6E646974696F6E45787072657373696F6E3E0A202020203C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F31367A796F613522206E616D653D22E68B92E7BB9D2220736F757263655265663D2241637469766974795F31316A7230707822207461726765745265663D2241637469766974795F317462386A6B61223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A637573746F6D436F6E646974696F6E20747970653D226F7065726174696F6E22206F7065726174696F6E547970653D22726566757365223E3C2F61637469766974693A637573746F6D436F6E646974696F6E3E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A2020202020203C636F6E646974696F6E45787072657373696F6E207873693A747970653D2274466F726D616C45787072657373696F6E223E3C215B43444154415B247B6F7065726174696F6E54797065203D3D2027726566757365277D5D5D3E3C2F636F6E646974696F6E45787072657373696F6E3E0A202020203C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F306C6C3734616E22206E616D653D22E5908CE6848F2220736F757263655265663D2241637469766974795F31316A7230707822207461726765745265663D2241637469766974795F30306962703075223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A637573746F6D436F6E646974696F6E20747970653D226F7065726174696F6E22206F7065726174696F6E547970653D226167726565223E3C2F61637469766974693A637573746F6D436F6E646974696F6E3E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A2020202020203C636F6E646974696F6E45787072657373696F6E207873693A747970653D2274466F726D616C45787072657373696F6E223E3C215B43444154415B247B6F7065726174696F6E54797065203D3D20276167726565277D5D5D3E3C2F636F6E646974696F6E45787072657373696F6E3E0A202020203C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F3161656B6D733822206E616D653D22E68B92E7BB9D2220736F757263655265663D2241637469766974795F3030696270307522207461726765745265663D2241637469766974795F317462386A6B61223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A637573746F6D436F6E646974696F6E20747970653D226F7065726174696F6E22206F7065726174696F6E547970653D22726566757365223E3C2F61637469766974693A637573746F6D436F6E646974696F6E3E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A2020202020203C636F6E646974696F6E45787072657373696F6E207873693A747970653D2274466F726D616C45787072657373696F6E223E3C215B43444154415B247B6F7065726174696F6E54797065203D3D2027726566757365277D5D5D3E3C2F636F6E646974696F6E45787072657373696F6E3E0A202020203C2F62706D6E323A73657175656E6365466C6F773E0A20203C2F62706D6E323A70726F636573733E0A20203C62706D6E64693A42504D4E4469616772616D2069643D2242504D4E4469616772616D5F666C6F774C65617665223E0A202020203C62706D6E64693A42504D4E506C616E652062706D6E456C656D656E743D22666C6F774C65617665222069643D2242504D4E506C616E655F666C6F774C65617665223E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D224576656E745F316D6D72747477222069643D2242504D4E53686170655F4576656E745F316D6D72747477223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2233362E30222077696474683D2233362E302220783D223133322E302220793D223237322E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D2241637469766974795F317462386A6B61222069643D2242504D4E53686170655F41637469766974795F317462386A6B61223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2238302E30222077696474683D223130302E302220783D223232302E302220793D223235302E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D2241637469766974795F31316A72307078222069643D2242504D4E53686170655F41637469766974795F31316A72307078223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2238302E30222077696474683D223130302E302220783D223338302E302220793D223235302E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D2241637469766974795F30306962703075222069643D2242504D4E53686170655F41637469766974795F30306962703075223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2238302E30222077696474683D223130302E302220783D223534302E302220793D223235302E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D224576656E745F3163303839756F222069643D2242504D4E53686170655F4576656E745F3163303839756F223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2233362E30222077696474683D2233362E302220783D223730322E302220793D223237322E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F3079346D336B76222069643D2242504D4E456467655F466C6F775F3079346D336B76223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223136382E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223232302E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F30376F70323039222069643D2242504D4E456467655F466C6F775F30376F70323039223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223332302E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223338302E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F306C6C3734616E222069643D2242504D4E456467655F466C6F775F306C6C3734616E223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223438302E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223534302E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C62706D6E64693A42504D4E4C6162656C3E0A202020202020202020203C6F6D6764633A426F756E6473206865696768743D2231342E30222077696474683D2232332E302220783D223439392E302220793D223237322E30223E3C2F6F6D6764633A426F756E64733E0A20202020202020203C2F62706D6E64693A42504D4E4C6162656C3E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F306D3237666465222069643D2242504D4E456467655F466C6F775F306D3237666465223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223634302E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223730322E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C62706D6E64693A42504D4E4C6162656C3E0A202020202020202020203C6F6D6764633A426F756E6473206865696768743D2231342E30222077696474683D2232332E302220783D223636302E302220793D223237322E30223E3C2F6F6D6764633A426F756E64733E0A20202020202020203C2F62706D6E64693A42504D4E4C6162656C3E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F31367A796F6135222069643D2242504D4E456467655F466C6F775F31367A796F6135223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223433302E302220793D223235302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223433302E302220793D223231302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223237302E302220793D223231302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223237302E302220793D223235302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C62706D6E64693A42504D4E4C6162656C3E0A202020202020202020203C6F6D6764633A426F756E6473206865696768743D2231342E30222077696474683D2232322E302220783D223333392E302220793D223139322E30223E3C2F6F6D6764633A426F756E64733E0A20202020202020203C2F62706D6E64693A42504D4E4C6162656C3E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F3161656B6D7338222069643D2242504D4E456467655F466C6F775F3161656B6D7338223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223539302E302220793D223333302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223539302E302220793D223337302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223237302E302220793D223337302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223237302E302220793D223333302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C62706D6E64693A42504D4E4C6162656C3E0A202020202020202020203C6F6D6764633A426F756E6473206865696768743D2231342E30222077696474683D2232322E302220783D223431392E302220793D223335322E30223E3C2F6F6D6764633A426F756E64733E0A20202020202020203C2F62706D6E64693A42504D4E4C6162656C3E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A202020203C2F62706D6E64693A42504D4E506C616E653E0A20203C2F62706D6E64693A42504D4E4469616772616D3E0A3C2F62706D6E323A646566696E6974696F6E733E, 0); -INSERT INTO `ACT_GE_BYTEARRAY` VALUES ('916d0be1-69e6-11ec-bb85-0235bf949cb9', 1, 'flowContract.bpmn', '916d0be0-69e6-11ec-bb85-0235bf949cb9', 0x3C3F786D6C2076657273696F6E3D22312E302220656E636F64696E673D225554462D38223F3E0A3C62706D6E323A646566696E6974696F6E7320786D6C6E733D22687474703A2F2F7777772E6F6D672E6F72672F737065632F42504D4E2F32303130303532342F4D4F44454C2220786D6C6E733A62706D6E323D22687474703A2F2F7777772E6F6D672E6F72672F737065632F42504D4E2F32303130303532342F4D4F44454C2220786D6C6E733A7873693D22687474703A2F2F7777772E77332E6F72672F323030312F584D4C536368656D612D696E7374616E63652220786D6C6E733A7873643D22687474703A2F2F7777772E77332E6F72672F323030312F584D4C536368656D612220786D6C6E733A61637469766974693D22687474703A2F2F61637469766974692E6F72672F62706D6E2220786D6C6E733A62706D6E64693D22687474703A2F2F7777772E6F6D672E6F72672F737065632F42504D4E2F32303130303532342F44492220786D6C6E733A6F6D6764633D22687474703A2F2F7777772E6F6D672E6F72672F737065632F44442F32303130303532342F44432220786D6C6E733A6F6D6764693D22687474703A2F2F7777772E6F6D672E6F72672F737065632F44442F32303130303532342F44492220786D6C6E733A64633D22687474703A2F2F7777772E6F6D672E6F72672F737065632F44442F32303130303532342F44432220786D6C6E733A64693D22687474703A2F2F7777772E6F6D672E6F72672F737065632F44442F32303130303532342F44492220747970654C616E67756167653D22687474703A2F2F7777772E77332E6F72672F323030312F584D4C536368656D61222065787072657373696F6E4C616E67756167653D22687474703A2F2F7777772E77332E6F72672F313939392F585061746822207461726765744E616D6573706163653D22687474703A2F2F61637469766974692E6F72672F62706D6E222069643D226469616772616D5F666C6F77436F6E747261637422207873693A736368656D614C6F636174696F6E3D22687474703A2F2F7777772E6F6D672E6F72672F737065632F42504D4E2F32303130303532342F4D4F44454C2042504D4E32302E787364223E0A20203C62706D6E323A70726F636573732069643D22666C6F77436F6E747261637422206E616D653D22E59088E5908CE5AEA1E689B92220697345786563757461626C653D2274727565223E0A202020203C657874656E73696F6E456C656D656E74733E0A2020202020203C61637469766974693A657865637574696F6E4C697374656E6572206576656E743D22656E642220636C6173733D22636F6D2E6F72616E6765666F726D732E636F6D6D6F6E2E666C6F772E6C697374656E65722E466C6F7746696E69736865644C697374656E6572223E3C2F61637469766974693A657865637574696F6E4C697374656E65723E0A202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C62706D6E323A73746172744576656E742069643D224576656E745F306B6A70396369223E0A2020202020203C62706D6E323A6F7574676F696E673E466C6F775F30656D7834307A3C2F62706D6E323A6F7574676F696E673E0A202020203C2F62706D6E323A73746172744576656E743E0A202020203C62706D6E323A757365725461736B2069643D2241637469766974795F306263696F686622206E616D653D22E59088E5908CE5BD95E585A5222061637469766974693A61737369676E65653D22247B7374617274557365724E616D657D222061637469766974693A666F726D4B65793D227B2671756F743B666F726D49642671756F743B3A2671756F743B313434303935343932303334383934363433322671756F743B2C2671756F743B726561644F6E6C792671756F743B3A66616C73652C2671756F743B67726F7570547970652671756F743B3A2671756F743B41535349474E45452671756F743B7D223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A6F7065726174696F6E4C6973743E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313235353334393822206C6162656C3D22E68F90E4BAA42220747970653D226167726565222073686F774F726465723D2230223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A20202020202020203C2F61637469766974693A6F7065726174696F6E4C6973743E0A20202020202020203C61637469766974693A7661726961626C654C6973743E3C2F61637469766974693A7661726961626C654C6973743E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C2F62706D6E323A757365725461736B3E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F30656D7834307A2220736F757263655265663D224576656E745F306B6A7039636922207461726765745265663D2241637469766974795F306263696F6866223E3C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A757365725461736B2069643D2241637469766974795F3035336F6D393922206E616D653D22E4B89AE58AA1E983A8E9A286E5AFBCE5AEA1E689B9222061637469766974693A63616E64696461746547726F7570733D22247B64657074506F73744C65616465727D222061637469766974693A666F726D4B65793D227B2671756F743B666F726D49642671756F743B3A2671756F743B313434303935343932303334383934363433322671756F743B2C2671756F743B726561644F6E6C792671756F743B3A747275652C2671756F743B67726F7570547970652671756F743B3A2671756F743B444550545F504F53545F4C45414445522671756F743B7D223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A7461736B4C697374656E6572206576656E743D226372656174652220636C6173733D22636F6D2E6F72616E6765666F726D732E636F6D6D6F6E2E666C6F772E6C697374656E65722E44657074506F73744C65616465724C697374656E6572223E3C2F61637469766974693A7461736B4C697374656E65723E0A20202020202020203C61637469766974693A6F7065726174696F6E4C6973743E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313235363433353322206C6162656C3D22E5908CE6848F2220747970653D226167726565222073686F774F726465723D2230223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A20202020202020203C2F61637469766974693A6F7065726174696F6E4C6973743E0A20202020202020203C61637469766974693A7661726961626C654C6973743E3C2F61637469766974693A7661726961626C654C6973743E0A20202020202020203C61637469766974693A64657074506F73744C6973743E3C2F61637469766974693A64657074506F73744C6973743E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C2F62706D6E323A757365725461736B3E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F306477663979742220736F757263655265663D2241637469766974795F306263696F686622207461726765745265663D2241637469766974795F3035336F6D3939223E3C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F3076357A6A336B2220736F757263655265663D2241637469766974795F3035336F6D393922207461726765745265663D22476174657761795F3038353538696A223E3C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A706172616C6C656C476174657761792069643D22476174657761795F3038353538696A223E0A2020202020203C62706D6E323A696E636F6D696E673E466C6F775F3076357A6A336B3C2F62706D6E323A696E636F6D696E673E0A2020202020203C62706D6E323A6F7574676F696E673E466C6F775F3164357568636F3C2F62706D6E323A6F7574676F696E673E0A2020202020203C62706D6E323A6F7574676F696E673E466C6F775F317168396370303C2F62706D6E323A6F7574676F696E673E0A202020203C2F62706D6E323A706172616C6C656C476174657761793E0A202020203C62706D6E323A757365725461736B2069643D2241637469766974795F307A3930616C6922206E616D653D22E5B7A5E7A88BE983A8E5AEA1E689B9222061637469766974693A61737369676E65653D2261646D696E222061637469766974693A666F726D4B65793D227B2671756F743B666F726D49642671756F743B3A2671756F743B313434303935353139343939313937323335322671756F743B2C2671756F743B726561644F6E6C792671756F743B3A747275652C2671756F743B67726F7570547970652671756F743B3A2671756F743B41535349474E45452671756F743B7D223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A6F7065726174696F6E4C6973743E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313236303635323922206C6162656C3D22E5908CE6848F2220747970653D226167726565222073686F774F726465723D2230223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A20202020202020203C2F61637469766974693A6F7065726174696F6E4C6973743E0A20202020202020203C61637469766974693A7661726961626C654C6973743E3C2F61637469766974693A7661726961626C654C6973743E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C2F62706D6E323A757365725461736B3E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F3164357568636F2220736F757263655265663D22476174657761795F3038353538696A22207461726765745265663D2241637469766974795F307A3930616C69223E3C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A757365725461736B2069643D2241637469766974795F3137393330616A22206E616D653D22E980A0E4BBB7E983A8E5AEA1E689B9222061637469766974693A63616E64696461746555736572733D2261646D696E222061637469766974693A666F726D4B65793D227B2671756F743B666F726D49642671756F743B3A2671756F743B313434303935353139343939313937323335322671756F743B2C2671756F743B726561644F6E6C792671756F743B3A747275652C2671756F743B67726F7570547970652671756F743B3A2671756F743B55534552532671756F743B7D223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A6F7065726174696F6E4C6973743E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313236333131313322206C6162656C3D22E5908CE6848F2220747970653D226167726565222073686F774F726465723D2230223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A20202020202020203C2F61637469766974693A6F7065726174696F6E4C6973743E0A20202020202020203C61637469766974693A7661726961626C654C6973743E3C2F61637469766974693A7661726961626C654C6973743E0A20202020202020203C61637469766974693A7573657243616E64696461746547726F75707320747970653D225553455253222076616C75653D2261646D696E223E3C2F61637469766974693A7573657243616E64696461746547726F7570733E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C2F62706D6E323A757365725461736B3E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F317168396370302220736F757263655265663D22476174657761795F3038353538696A22207461726765745265663D2241637469766974795F3137393330616A223E3C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F316E35637866672220736F757263655265663D2241637469766974795F3137393330616A22207461726765745265663D22476174657761795F30796A79713068223E3C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A706172616C6C656C476174657761792069643D22476174657761795F30796A79713068223E0A2020202020203C62706D6E323A696E636F6D696E673E466C6F775F316E35637866673C2F62706D6E323A696E636F6D696E673E0A2020202020203C62706D6E323A696E636F6D696E673E466C6F775F313068663979353C2F62706D6E323A696E636F6D696E673E0A2020202020203C62706D6E323A6F7574676F696E673E466C6F775F30767435676F723C2F62706D6E323A6F7574676F696E673E0A202020203C2F62706D6E323A706172616C6C656C476174657761793E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F313068663979352220736F757263655265663D2241637469766974795F307A3930616C6922207461726765745265663D22476174657761795F30796A79713068223E3C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A757365725461736B2069643D2241637469766974795F3078657463387522206E616D653D22E8B4A2E58AA1E983A8E5AEA1E689B9222061637469766974693A63616E64696461746547726F7570733D22313434303936343531393339313133373739322C31343430393634353139333935333332303936222061637469766974693A666F726D4B65793D227B2671756F743B666F726D49642671756F743B3A2671756F743B313434303935353132373739303833333636342671756F743B2C2671756F743B726561644F6E6C792671756F743B3A747275652C2671756F743B67726F7570547970652671756F743B3A2671756F743B504F53542671756F743B7D223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A6F7065726174696F6E4C6973743E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313236363839383222206C6162656C3D22E5908CE6848F2220747970653D226167726565222073686F774F726465723D2230223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313236373231393522206C6162656C3D22E68B92E7BB9D2220747970653D22726566757365222073686F774F726465723D2231223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A20202020202020203C2F61637469766974693A6F7065726174696F6E4C6973743E0A20202020202020203C61637469766974693A7661726961626C654C6973743E3C2F61637469766974693A7661726961626C654C6973743E0A20202020202020203C61637469766974693A64657074506F73744C6973743E0A202020202020202020203C61637469766974693A64657074506F73742069643D2264657074506F73745F5F313434303936343531393339313133373739322220747970653D2264657074506F7374222064657074506F737449643D2231343430393634353139333931313337373932223E3C2F61637469766974693A64657074506F73743E0A202020202020202020203C61637469766974693A64657074506F73742069643D2264657074506F73745F5F313434303936343531393339353333323039362220747970653D2264657074506F7374222064657074506F737449643D2231343430393634353139333935333332303936223E3C2F61637469766974693A64657074506F73743E0A20202020202020203C2F61637469766974693A64657074506F73744C6973743E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C2F62706D6E323A757365725461736B3E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F30767435676F722220736F757263655265663D22476174657761795F30796A7971306822207461726765745265663D2241637469766974795F30786574633875223E3C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A757365725461736B2069643D2241637469766974795F3064766734686922206E616D653D22E6B395E58AA1E983A8E5AEA1E689B9222061637469766974693A63616E64696461746547726F7570733D2231343430393634333837393739333939313638222061637469766974693A666F726D4B65793D227B2671756F743B666F726D49642671756F743B3A2671756F743B313434303935353030313039333439323733362671756F743B2C2671756F743B726561644F6E6C792671756F743B3A747275652C2671756F743B67726F7570547970652671756F743B3A2671756F743B504F53542671756F743B7D223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A6F7065726174696F6E4C6973743E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313238323034313422206C6162656C3D22E4BC9AE7ADBE2220747970653D226D756C74695F7369676E222073686F774F726465723D2230223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313238323839303922206C6162656C3D22E58AA0E7ADBE2220747970653D226D756C74695F636F6E7369676E222073686F774F726465723D2231223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A20202020202020203C2F61637469766974693A6F7065726174696F6E4C6973743E0A20202020202020203C61637469766974693A7661726961626C654C6973743E3C2F61637469766974693A7661726961626C654C6973743E0A20202020202020203C61637469766974693A64657074506F73744C6973743E0A202020202020202020203C61637469766974693A64657074506F73742069643D2264657074506F73745F5F313434303936343338373937393339393136382220747970653D2264657074506F7374222064657074506F737449643D2231343430393634333837393739333939313638223E3C2F61637469766974693A64657074506F73743E0A20202020202020203C2F61637469766974693A64657074506F73744C6973743E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C2F62706D6E323A757365725461736B3E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F3069746664623522206E616D653D22E5908CE6848F2220736F757263655265663D2241637469766974795F3078657463387522207461726765745265663D2241637469766974795F30647667346869223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A637573746F6D436F6E646974696F6E20747970653D226F7065726174696F6E22206F7065726174696F6E547970653D226167726565223E3C2F61637469766974693A637573746F6D436F6E646974696F6E3E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A2020202020203C636F6E646974696F6E45787072657373696F6E207873693A747970653D2274466F726D616C45787072657373696F6E223E3C215B43444154415B247B6F7065726174696F6E54797065203D3D20276167726565277D5D5D3E3C2F636F6E646974696F6E45787072657373696F6E3E0A202020203C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A757365725461736B2069643D2241637469766974795F30786F31346E7322206E616D653D22E6B395E58AA1E983A8E4BC9AE7ADBE222061637469766974693A61737369676E65653D22247B61737369676E65657D222061637469766974693A666F726D4B65793D227B2671756F743B666F726D49642671756F743B3A2671756F743B313434303935353030313039333439323733362671756F743B2C2671756F743B726561644F6E6C792671756F743B3A747275652C2671756F743B67726F7570547970652671756F743B3A2671756F743B41535349474E45452671756F743B7D223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A6F7065726174696F6E4C6973743E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313239343530353322206C6162656C3D22E5908CE6848F2220747970653D226D756C74695F6167726565222073686F774F726465723D2230223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313239353131363022206C6162656C3D22E68B92E7BB9D2220747970653D226D756C74695F726566757365222073686F774F726465723D2231223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A20202020202020203C2F61637469766974693A6F7065726174696F6E4C6973743E0A20202020202020203C61637469766974693A7661726961626C654C6973743E3C2F61637469766974693A7661726961626C654C6973743E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A2020202020203C6D756C7469496E7374616E63654C6F6F7043686172616374657269737469637320697353657175656E7469616C3D2266616C7365222061637469766974693A636F6C6C656374696F6E3D2261737369676E65654C697374222061637469766974693A656C656D656E745661726961626C653D2261737369676E6565223E0A20202020202020203C636F6D706C6574696F6E436F6E646974696F6E3E247B6E724F66496E7374616E636573203D3D206E724F66436F6D706C65746564496E7374616E6365737D3C2F636F6D706C6574696F6E436F6E646974696F6E3E0A2020202020203C2F6D756C7469496E7374616E63654C6F6F704368617261637465726973746963733E0A202020203C2F62706D6E323A757365725461736B3E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F307976347562702220736F757263655265663D2241637469766974795F3064766734686922207461726765745265663D2241637469766974795F30786F31346E73223E3C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A6578636C7573697665476174657761792069643D22476174657761795F31633066687A66223E0A2020202020203C62706D6E323A696E636F6D696E673E466C6F775F306969796469703C2F62706D6E323A696E636F6D696E673E0A2020202020203C62706D6E323A6F7574676F696E673E466C6F775F3038653538356A3C2F62706D6E323A6F7574676F696E673E0A2020202020203C62706D6E323A6F7574676F696E673E466C6F775F3165696C647A703C2F62706D6E323A6F7574676F696E673E0A202020203C2F62706D6E323A6578636C7573697665476174657761793E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F306969796469702220736F757263655265663D2241637469766974795F30786F31346E7322207461726765745265663D22476174657761795F31633066687A66223E3C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A757365725461736B2069643D2241637469766974795F31656E68356B6522206E616D653D22E680BBE7BB8FE79086E5AEA1E689B9222061637469766974693A63616E64696461746547726F7570733D2231343430393131343130353831323133343136222061637469766974693A666F726D4B65793D227B2671756F743B666F726D49642671756F743B3A2671756F743B313434303935343932303334383934363433322671756F743B2C2671756F743B726561644F6E6C792671756F743B3A747275652C2671756F743B67726F7570547970652671756F743B3A2671756F743B444550542671756F743B7D223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A6F7065726174696F6E4C6973743E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313331353630393122206C6162656C3D22E5908CE6848F2220747970653D226167726565222073686F774F726465723D2230223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313331353939353622206C6162656C3D22E68B92E7BB9D2220747970653D22726566757365222073686F774F726465723D2231223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A20202020202020203C2F61637469766974693A6F7065726174696F6E4C6973743E0A20202020202020203C61637469766974693A7661726961626C654C6973743E3C2F61637469766974693A7661726961626C654C6973743E0A20202020202020203C61637469766974693A7573657243616E64696461746547726F75707320747970653D2244455054222076616C75653D2231343430393131343130353831323133343136223E3C2F61637469766974693A7573657243616E64696461746547726F7570733E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C2F62706D6E323A757365725461736B3E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F3038653538356A22206E616D653D22E5908CE6848FE4BABAE695B0E5A4A7E4BA8E3430252220736F757263655265663D22476174657761795F31633066687A6622207461726765745265663D2241637469766974795F31656E68356B65223E0A2020202020203C636F6E646974696F6E45787072657373696F6E207873693A747970653D2274466F726D616C45787072657373696F6E223E3C215B43444154415B247B6D756C74694167726565436F756E74202F206D756C74694E756D4F66496E7374616E636573203E20302E347D5D5D3E3C2F636F6E646974696F6E45787072657373696F6E3E0A202020203C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A656E644576656E742069643D224576656E745F30383570366479223E0A2020202020203C62706D6E323A696E636F6D696E673E466C6F775F31696E776864653C2F62706D6E323A696E636F6D696E673E0A202020203C2F62706D6E323A656E644576656E743E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F31696E7768646522206E616D653D22E5908CE6848F2220736F757263655265663D2241637469766974795F31656E68356B6522207461726765745265663D224576656E745F30383570366479223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A637573746F6D436F6E646974696F6E20747970653D226F7065726174696F6E22206F7065726174696F6E547970653D226167726565223E3C2F61637469766974693A637573746F6D436F6E646974696F6E3E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A2020202020203C636F6E646974696F6E45787072657373696F6E207873693A747970653D2274466F726D616C45787072657373696F6E223E3C215B43444154415B247B6F7065726174696F6E54797065203D3D20276167726565277D5D5D3E3C2F636F6E646974696F6E45787072657373696F6E3E0A202020203C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F306A306779327422206E616D653D22E68B92E7BB9D2220736F757263655265663D2241637469766974795F3078657463387522207461726765745265663D2241637469766974795F306263696F6866223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A637573746F6D436F6E646974696F6E20747970653D226F7065726174696F6E22206F7065726174696F6E547970653D22726566757365223E3C2F61637469766974693A637573746F6D436F6E646974696F6E3E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A2020202020203C636F6E646974696F6E45787072657373696F6E207873693A747970653D2274466F726D616C45787072657373696F6E223E3C215B43444154415B247B6F7065726174696F6E54797065203D3D2027726566757365277D5D5D3E3C2F636F6E646974696F6E45787072657373696F6E3E0A202020203C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F3165696C647A7022206E616D653D22E5908CE6848FE4BABAE695B0E5B08FE4BA8E3430252220736F757263655265663D22476174657761795F31633066687A6622207461726765745265663D2241637469766974795F306263696F6866223E0A2020202020203C636F6E646974696F6E45787072657373696F6E207873693A747970653D2274466F726D616C45787072657373696F6E223E3C215B43444154415B247B6D756C74694167726565436F756E74202F206D756C74694E756D4F66496E7374616E636573203C3D20302E347D5D5D3E3C2F636F6E646974696F6E45787072657373696F6E3E0A202020203C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F3063326475367022206E616D653D22E68B92E7BB9D2220736F757263655265663D2241637469766974795F31656E68356B6522207461726765745265663D2241637469766974795F306263696F6866223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A637573746F6D436F6E646974696F6E20747970653D226F7065726174696F6E22206F7065726174696F6E547970653D22726566757365223E3C2F61637469766974693A637573746F6D436F6E646974696F6E3E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A2020202020203C636F6E646974696F6E45787072657373696F6E207873693A747970653D2274466F726D616C45787072657373696F6E223E3C215B43444154415B247B6F7065726174696F6E54797065203D3D2027726566757365277D5D5D3E3C2F636F6E646974696F6E45787072657373696F6E3E0A202020203C2F62706D6E323A73657175656E6365466C6F773E0A20203C2F62706D6E323A70726F636573733E0A20203C62706D6E64693A42504D4E4469616772616D2069643D2242504D4E4469616772616D5F666C6F77436F6E7472616374223E0A202020203C62706D6E64693A42504D4E506C616E652062706D6E456C656D656E743D22666C6F77436F6E7472616374222069643D2242504D4E506C616E655F666C6F77436F6E7472616374223E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D224576656E745F306B6A70396369222069643D2242504D4E53686170655F4576656E745F306B6A70396369223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2233362E30222077696474683D2233362E302220783D2234322E302220793D223330322E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D2241637469766974795F306263696F6866222069643D2242504D4E53686170655F41637469766974795F306263696F6866223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2238302E30222077696474683D223130302E302220783D223133302E302220793D223238302E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D2241637469766974795F3035336F6D3939222069643D2242504D4E53686170655F41637469766974795F3035336F6D3939223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2238302E30222077696474683D223130302E302220783D223239302E302220793D223238302E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D22476174657761795F3038353538696A222069643D2242504D4E53686170655F476174657761795F3038353538696A223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2235302E30222077696474683D2235302E302220783D223435352E302220793D223239352E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D2241637469766974795F307A3930616C69222069643D2242504D4E53686170655F41637469766974795F307A3930616C69223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2238302E30222077696474683D223130302E302220783D223537302E302220793D223137302E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D2241637469766974795F3137393330616A222069643D2242504D4E53686170655F41637469766974795F3137393330616A223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2238302E30222077696474683D223130302E302220783D223537302E302220793D223238302E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D22476174657761795F30796A79713068222069643D2242504D4E53686170655F476174657761795F30796A79713068223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2235302E30222077696474683D2235302E302220783D223733352E302220793D223239352E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D2241637469766974795F30786574633875222069643D2242504D4E53686170655F41637469766974795F30786574633875223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2238302E30222077696474683D223130302E302220783D223837302E302220793D223238302E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D2241637469766974795F30647667346869222069643D2242504D4E53686170655F41637469766974795F30647667346869223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2238302E30222077696474683D223130302E302220783D223837302E302220793D223436302E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D2241637469766974795F30786F31346E73222069643D2242504D4E53686170655F41637469766974795F30786F31346E73223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2238302E30222077696474683D223130302E302220783D223731302E302220793D223436302E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D22476174657761795F31633066687A66222069643D2242504D4E53686170655F476174657761795F31633066687A66223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2235302E30222077696474683D2235302E302220783D223535352E302220793D223437352E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D2241637469766974795F31656E68356B65222069643D2242504D4E53686170655F41637469766974795F31656E68356B65223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2238302E30222077696474683D223130302E302220783D223133302E302220793D223436302E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D224576656E745F30383570366479222069643D2242504D4E53686170655F4576656E745F30383570366479223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2233362E30222077696474683D2233362E302220783D2234322E302220793D223438322E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F30633264753670222069643D2242504D4E456467655F466C6F775F30633264753670223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223135302E302220793D223436302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223135302E302220793D223336302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C62706D6E64693A42504D4E4C6162656C3E0A202020202020202020203C6F6D6764633A426F756E6473206865696768743D2231342E30222077696474683D2232322E302220783D223135342E302220793D223430372E30223E3C2F6F6D6764633A426F756E64733E0A20202020202020203C2F62706D6E64693A42504D4E4C6162656C3E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F3165696C647A70222069643D2242504D4E456467655F466C6F775F3165696C647A70223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223538302E302220793D223437352E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223538302E302220793D223433302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223138302E302220793D223433302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223138302E302220793D223336302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C62706D6E64693A42504D4E4C6162656C3E0A202020202020202020203C6F6D6764633A426F756E6473206865696768743D2231342E30222077696474683D2238392E302220783D223333362E302220793D223431322E30223E3C2F6F6D6764633A426F756E64733E0A20202020202020203C2F62706D6E64693A42504D4E4C6162656C3E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F306A3067793274222069643D2242504D4E456467655F466C6F775F306A3067793274223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223839302E302220793D223336302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223839302E302220793D223339302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223231302E302220793D223339302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223231302E302220793D223336302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C62706D6E64693A42504D4E4C6162656C3E0A202020202020202020203C6F6D6764633A426F756E6473206865696768743D2231342E30222077696474683D2232322E302220783D223533392E302220793D223337322E30223E3C2F6F6D6764633A426F756E64733E0A20202020202020203C2F62706D6E64693A42504D4E4C6162656C3E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F31696E77686465222069643D2242504D4E456467655F466C6F775F31696E77686465223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223133302E302220793D223530302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D2237382E302220793D223530302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C62706D6E64693A42504D4E4C6162656C3E0A202020202020202020203C6F6D6764633A426F756E6473206865696768743D2231342E30222077696474683D2232332E302220783D2239332E302220793D223438322E30223E3C2F6F6D6764633A426F756E64733E0A20202020202020203C2F62706D6E64693A42504D4E4C6162656C3E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F3038653538356A222069643D2242504D4E456467655F466C6F775F3038653538356A223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223535352E302220793D223530302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223233302E302220793D223530302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C62706D6E64693A42504D4E4C6162656C3E0A202020202020202020203C6F6D6764633A426F756E6473206865696768743D2231342E30222077696474683D2238392E302220783D223334382E302220793D223438322E30223E3C2F6F6D6764633A426F756E64733E0A20202020202020203C2F62706D6E64693A42504D4E4C6162656C3E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F30696979646970222069643D2242504D4E456467655F466C6F775F30696979646970223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223731302E302220793D223530302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223630352E302220793D223530302E30223E3C2F6F6D6764693A776179706F696E743E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F30797634756270222069643D2242504D4E456467655F466C6F775F30797634756270223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223837302E302220793D223530302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223831302E302220793D223530302E30223E3C2F6F6D6764693A776179706F696E743E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F30697466646235222069643D2242504D4E456467655F466C6F775F30697466646235223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223934302E302220793D223336302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223934302E302220793D223436302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C62706D6E64693A42504D4E4C6162656C3E0A202020202020202020203C6F6D6764633A426F756E6473206865696768743D2231342E30222077696474683D2232332E302220783D223934342E302220793D223430372E30223E3C2F6F6D6764633A426F756E64733E0A20202020202020203C2F62706D6E64693A42504D4E4C6162656C3E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F30767435676F72222069643D2242504D4E456467655F466C6F775F30767435676F72223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223738352E302220793D223332302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223837302E302220793D223332302E30223E3C2F6F6D6764693A776179706F696E743E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F31306866397935222069643D2242504D4E456467655F466C6F775F31306866397935223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223637302E302220793D223231302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223736302E302220793D223231302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223736302E302220793D223239352E30223E3C2F6F6D6764693A776179706F696E743E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F316E3563786667222069643D2242504D4E456467655F466C6F775F316E3563786667223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223637302E302220793D223332302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223733352E302220793D223332302E30223E3C2F6F6D6764693A776179706F696E743E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F31716839637030222069643D2242504D4E456467655F466C6F775F31716839637030223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223530352E302220793D223332302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223537302E302220793D223332302E30223E3C2F6F6D6764693A776179706F696E743E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F3164357568636F222069643D2242504D4E456467655F466C6F775F3164357568636F223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223438302E302220793D223239352E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223438302E302220793D223231302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223537302E302220793D223231302E30223E3C2F6F6D6764693A776179706F696E743E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F3076357A6A336B222069643D2242504D4E456467655F466C6F775F3076357A6A336B223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223339302E302220793D223332302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223435352E302220793D223332302E30223E3C2F6F6D6764693A776179706F696E743E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F30647766397974222069643D2242504D4E456467655F466C6F775F30647766397974223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223233302E302220793D223332302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223239302E302220793D223332302E30223E3C2F6F6D6764693A776179706F696E743E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F30656D7834307A222069643D2242504D4E456467655F466C6F775F30656D7834307A223E0A20202020202020203C6F6D6764693A776179706F696E7420783D2237382E302220793D223332302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223133302E302220793D223332302E30223E3C2F6F6D6764693A776179706F696E743E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A202020203C2F62706D6E64693A42504D4E506C616E653E0A20203C2F62706D6E64693A42504D4E4469616772616D3E0A3C2F62706D6E323A646566696E6974696F6E733E, 0); -INSERT INTO `ACT_GE_BYTEARRAY` VALUES ('97e6169f-3186-11ec-bf2d-f20b812c0662', 1, 'flowLeave.bpmn', '97e6169e-3186-11ec-bf2d-f20b812c0662', 0x3C3F786D6C2076657273696F6E3D22312E302220656E636F64696E673D225554462D38223F3E0A3C62706D6E323A646566696E6974696F6E7320786D6C6E733D22687474703A2F2F7777772E6F6D672E6F72672F737065632F42504D4E2F32303130303532342F4D4F44454C2220786D6C6E733A62706D6E323D22687474703A2F2F7777772E6F6D672E6F72672F737065632F42504D4E2F32303130303532342F4D4F44454C2220786D6C6E733A7873693D22687474703A2F2F7777772E77332E6F72672F323030312F584D4C536368656D612D696E7374616E63652220786D6C6E733A7873643D22687474703A2F2F7777772E77332E6F72672F323030312F584D4C536368656D612220786D6C6E733A61637469766974693D22687474703A2F2F61637469766974692E6F72672F62706D6E2220786D6C6E733A62706D6E64693D22687474703A2F2F7777772E6F6D672E6F72672F737065632F42504D4E2F32303130303532342F44492220786D6C6E733A6F6D6764633D22687474703A2F2F7777772E6F6D672E6F72672F737065632F44442F32303130303532342F44432220786D6C6E733A6F6D6764693D22687474703A2F2F7777772E6F6D672E6F72672F737065632F44442F32303130303532342F44492220786D6C6E733A64633D22687474703A2F2F7777772E6F6D672E6F72672F737065632F44442F32303130303532342F44432220786D6C6E733A64693D22687474703A2F2F7777772E6F6D672E6F72672F737065632F44442F32303130303532342F44492220747970654C616E67756167653D22687474703A2F2F7777772E77332E6F72672F323030312F584D4C536368656D61222065787072657373696F6E4C616E67756167653D22687474703A2F2F7777772E77332E6F72672F313939392F585061746822207461726765744E616D6573706163653D22687474703A2F2F61637469766974692E6F72672F62706D6E222069643D226469616772616D5F666C6F774C6561766522207873693A736368656D614C6F636174696F6E3D22687474703A2F2F7777772E6F6D672E6F72672F737065632F42504D4E2F32303130303532342F4D4F44454C2042504D4E32302E787364223E0A20203C62706D6E323A70726F636573732069643D22666C6F774C6561766522206E616D653D22E8AFB7E58187E794B3E8AFB72220697345786563757461626C653D2274727565223E0A202020203C657874656E73696F6E456C656D656E74733E0A2020202020203C61637469766974693A657865637574696F6E4C697374656E6572206576656E743D22656E642220636C6173733D22636F6D2E666C6F772E64656D6F2E636F6D6D6F6E2E666C6F772E6C697374656E65722E557064617465466C6F775374617475734C697374656E6572223E3C2F61637469766974693A657865637574696F6E4C697374656E65723E0A202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C62706D6E323A73746172744576656E742069643D224576656E745F316D6D72747477223E0A2020202020203C62706D6E323A6F7574676F696E673E466C6F775F3079346D336B763C2F62706D6E323A6F7574676F696E673E0A202020203C2F62706D6E323A73746172744576656E743E0A202020203C62706D6E323A757365725461736B2069643D2241637469766974795F317462386A6B6122206E616D653D22E8AFB7E58187E794B3E8AFB7222061637469766974693A61737369676E65653D22247B7374617274557365724E616D657D222061637469766974693A666F726D4B65793D227B2671756F743B666F726D49642671756F743B3A2671756F743B313434303934353431313335343236373634382671756F743B2C2671756F743B726561644F6E6C792671756F743B3A66616C73652C2671756F743B67726F7570547970652671756F743B3A2671756F743B444550542671756F743B7D223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A6F7065726174696F6E4C6973743E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313131323239323522206C6162656C3D22E68F90E4BAA42220747970653D226167726565222073686F774F726465723D2230223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A20202020202020203C2F61637469766974693A6F7065726174696F6E4C6973743E0A20202020202020203C61637469766974693A7661726961626C654C6973743E3C2F61637469766974693A7661726961626C654C6973743E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C2F62706D6E323A757365725461736B3E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F3079346D336B762220736F757263655265663D224576656E745F316D6D7274747722207461726765745265663D2241637469766974795F317462386A6B61223E3C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A757365725461736B2069643D2241637469766974795F31316A7230707822206E616D653D22E983A8E997A8E9A286E5AFBCE5AEA1E689B9222061637469766974693A63616E64696461746547726F7570733D22247B64657074506F73744C65616465727D222061637469766974693A666F726D4B65793D227B2671756F743B666F726D49642671756F743B3A2671756F743B313434303934353431313335343236373634382671756F743B2C2671756F743B726561644F6E6C792671756F743B3A747275652C2671756F743B67726F7570547970652671756F743B3A2671756F743B444550545F504F53545F4C45414445522671756F743B7D223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A7461736B4C697374656E6572206576656E743D226372656174652220636C6173733D22636F6D2E666C6F772E64656D6F2E636F6D6D6F6E2E666C6F772E6C697374656E65722E44657074506F73744C65616465724C697374656E6572223E3C2F61637469766974693A7461736B4C697374656E65723E0A20202020202020203C61637469766974693A6F7065726174696F6E4C6973743E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313131343739343122206C6162656C3D22E5908CE6848F2220747970653D226167726565222073686F774F726465723D2230223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313131353133343922206C6162656C3D22E68B92E7BB9D2220747970653D22726566757365222073686F774F726465723D2231223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A20202020202020203C2F61637469766974693A6F7065726174696F6E4C6973743E0A20202020202020203C61637469766974693A7661726961626C654C6973743E3C2F61637469766974693A7661726961626C654C6973743E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C2F62706D6E323A757365725461736B3E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F30376F703230392220736F757263655265663D2241637469766974795F317462386A6B6122207461726765745265663D2241637469766974795F31316A72307078223E3C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A757365725461736B2069643D2241637469766974795F3030696270307522206E616D653D224852E5AEA1E689B9222061637469766974693A63616E64696461746547726F7570733D2231343430393634323231383535363030363430222061637469766974693A666F726D4B65793D227B2671756F743B666F726D49642671756F743B3A2671756F743B313434303934353431313335343236373634382671756F743B2C2671756F743B726561644F6E6C792671756F743B3A747275652C2671756F743B67726F7570547970652671756F743B3A2671756F743B504F53542671756F743B7D223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A6F7065726174696F6E4C6973743E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313133303636303122206C6162656C3D22E5908CE6848F2220747970653D226167726565222073686F774F726465723D2230223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313133313033393122206C6162656C3D22E68B92E7BB9D2220747970653D22726566757365222073686F774F726465723D2231223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A20202020202020203C2F61637469766974693A6F7065726174696F6E4C6973743E0A20202020202020203C61637469766974693A7661726961626C654C6973743E3C2F61637469766974693A7661726961626C654C6973743E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C2F62706D6E323A757365725461736B3E0A202020203C62706D6E323A656E644576656E742069643D224576656E745F3163303839756F223E0A2020202020203C62706D6E323A696E636F6D696E673E466C6F775F306D32376664653C2F62706D6E323A696E636F6D696E673E0A202020203C2F62706D6E323A656E644576656E743E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F306D323766646522206E616D653D22E5908CE6848F2220736F757263655265663D2241637469766974795F3030696270307522207461726765745265663D224576656E745F3163303839756F223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A637573746F6D436F6E646974696F6E20747970653D226F7065726174696F6E22206F7065726174696F6E547970653D226167726565223E3C2F61637469766974693A637573746F6D436F6E646974696F6E3E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A2020202020203C636F6E646974696F6E45787072657373696F6E207873693A747970653D2274466F726D616C45787072657373696F6E223E3C215B43444154415B247B6F7065726174696F6E54797065203D3D20276167726565277D5D5D3E3C2F636F6E646974696F6E45787072657373696F6E3E0A202020203C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F31367A796F613522206E616D653D22E68B92E7BB9D2220736F757263655265663D2241637469766974795F31316A7230707822207461726765745265663D2241637469766974795F317462386A6B61223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A637573746F6D436F6E646974696F6E20747970653D226F7065726174696F6E22206F7065726174696F6E547970653D22726566757365223E3C2F61637469766974693A637573746F6D436F6E646974696F6E3E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A2020202020203C636F6E646974696F6E45787072657373696F6E207873693A747970653D2274466F726D616C45787072657373696F6E223E3C215B43444154415B247B6F7065726174696F6E54797065203D3D2027726566757365277D5D5D3E3C2F636F6E646974696F6E45787072657373696F6E3E0A202020203C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F306C6C3734616E22206E616D653D22E5908CE6848F2220736F757263655265663D2241637469766974795F31316A7230707822207461726765745265663D2241637469766974795F30306962703075223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A637573746F6D436F6E646974696F6E20747970653D226F7065726174696F6E22206F7065726174696F6E547970653D226167726565223E3C2F61637469766974693A637573746F6D436F6E646974696F6E3E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A2020202020203C636F6E646974696F6E45787072657373696F6E207873693A747970653D2274466F726D616C45787072657373696F6E223E3C215B43444154415B247B6F7065726174696F6E54797065203D3D20276167726565277D5D5D3E3C2F636F6E646974696F6E45787072657373696F6E3E0A202020203C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F3161656B6D733822206E616D653D22E68B92E7BB9D2220736F757263655265663D2241637469766974795F3030696270307522207461726765745265663D2241637469766974795F317462386A6B61223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A637573746F6D436F6E646974696F6E20747970653D226F7065726174696F6E22206F7065726174696F6E547970653D22726566757365223E3C2F61637469766974693A637573746F6D436F6E646974696F6E3E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A2020202020203C636F6E646974696F6E45787072657373696F6E207873693A747970653D2274466F726D616C45787072657373696F6E223E3C215B43444154415B247B6F7065726174696F6E54797065203D3D2027726566757365277D5D5D3E3C2F636F6E646974696F6E45787072657373696F6E3E0A202020203C2F62706D6E323A73657175656E6365466C6F773E0A20203C2F62706D6E323A70726F636573733E0A20203C62706D6E64693A42504D4E4469616772616D2069643D2242504D4E4469616772616D5F666C6F774C65617665223E0A202020203C62706D6E64693A42504D4E506C616E652062706D6E456C656D656E743D22666C6F774C65617665222069643D2242504D4E506C616E655F666C6F774C65617665223E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D224576656E745F316D6D72747477222069643D2242504D4E53686170655F4576656E745F316D6D72747477223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2233362E30222077696474683D2233362E302220783D223133322E302220793D223237322E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D2241637469766974795F317462386A6B61222069643D2242504D4E53686170655F41637469766974795F317462386A6B61223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2238302E30222077696474683D223130302E302220783D223232302E302220793D223235302E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D2241637469766974795F31316A72307078222069643D2242504D4E53686170655F41637469766974795F31316A72307078223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2238302E30222077696474683D223130302E302220783D223338302E302220793D223235302E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D2241637469766974795F30306962703075222069643D2242504D4E53686170655F41637469766974795F30306962703075223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2238302E30222077696474683D223130302E302220783D223534302E302220793D223235302E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D224576656E745F3163303839756F222069643D2242504D4E53686170655F4576656E745F3163303839756F223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2233362E30222077696474683D2233362E302220783D223730322E302220793D223237322E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F3079346D336B76222069643D2242504D4E456467655F466C6F775F3079346D336B76223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223136382E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223232302E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F30376F70323039222069643D2242504D4E456467655F466C6F775F30376F70323039223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223332302E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223338302E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F306C6C3734616E222069643D2242504D4E456467655F466C6F775F306C6C3734616E223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223438302E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223534302E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C62706D6E64693A42504D4E4C6162656C3E0A202020202020202020203C6F6D6764633A426F756E6473206865696768743D2231342E30222077696474683D2232332E302220783D223439392E302220793D223237322E30223E3C2F6F6D6764633A426F756E64733E0A20202020202020203C2F62706D6E64693A42504D4E4C6162656C3E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F306D3237666465222069643D2242504D4E456467655F466C6F775F306D3237666465223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223634302E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223730322E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C62706D6E64693A42504D4E4C6162656C3E0A202020202020202020203C6F6D6764633A426F756E6473206865696768743D2231342E30222077696474683D2232332E302220783D223636302E302220793D223237322E30223E3C2F6F6D6764633A426F756E64733E0A20202020202020203C2F62706D6E64693A42504D4E4C6162656C3E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F31367A796F6135222069643D2242504D4E456467655F466C6F775F31367A796F6135223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223433302E302220793D223235302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223433302E302220793D223231302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223237302E302220793D223231302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223237302E302220793D223235302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C62706D6E64693A42504D4E4C6162656C3E0A202020202020202020203C6F6D6764633A426F756E6473206865696768743D2231342E30222077696474683D2232322E302220783D223333392E302220793D223139322E30223E3C2F6F6D6764633A426F756E64733E0A20202020202020203C2F62706D6E64693A42504D4E4C6162656C3E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F3161656B6D7338222069643D2242504D4E456467655F466C6F775F3161656B6D7338223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223539302E302220793D223333302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223539302E302220793D223337302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223237302E302220793D223337302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223237302E302220793D223333302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C62706D6E64693A42504D4E4C6162656C3E0A202020202020202020203C6F6D6764633A426F756E6473206865696768743D2231342E30222077696474683D2232322E302220783D223431392E302220793D223335322E30223E3C2F6F6D6764633A426F756E64733E0A20202020202020203C2F62706D6E64693A42504D4E4C6162656C3E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A202020203C2F62706D6E64693A42504D4E506C616E653E0A20203C2F62706D6E64693A42504D4E4469616772616D3E0A3C2F62706D6E323A646566696E6974696F6E733E, 0); -INSERT INTO `ACT_GE_BYTEARRAY` VALUES ('98ea5034-69e6-11ec-bb85-0235bf949cb9', 1, 'flowConsign.bpmn', '98ea5033-69e6-11ec-bb85-0235bf949cb9', 0x3C3F786D6C2076657273696F6E3D22312E302220656E636F64696E673D225554462D38223F3E0A3C62706D6E323A646566696E6974696F6E7320786D6C6E733D22687474703A2F2F7777772E6F6D672E6F72672F737065632F42504D4E2F32303130303532342F4D4F44454C2220786D6C6E733A62706D6E323D22687474703A2F2F7777772E6F6D672E6F72672F737065632F42504D4E2F32303130303532342F4D4F44454C2220786D6C6E733A7873693D22687474703A2F2F7777772E77332E6F72672F323030312F584D4C536368656D612D696E7374616E63652220786D6C6E733A7873643D22687474703A2F2F7777772E77332E6F72672F323030312F584D4C536368656D612220786D6C6E733A61637469766974693D22687474703A2F2F61637469766974692E6F72672F62706D6E2220786D6C6E733A62706D6E64693D22687474703A2F2F7777772E6F6D672E6F72672F737065632F42504D4E2F32303130303532342F44492220786D6C6E733A6F6D6764633D22687474703A2F2F7777772E6F6D672E6F72672F737065632F44442F32303130303532342F44432220786D6C6E733A6F6D6764693D22687474703A2F2F7777772E6F6D672E6F72672F737065632F44442F32303130303532342F44492220786D6C6E733A64633D22687474703A2F2F7777772E6F6D672E6F72672F737065632F44442F32303130303532342F44432220786D6C6E733A64693D22687474703A2F2F7777772E6F6D672E6F72672F737065632F44442F32303130303532342F44492220747970654C616E67756167653D22687474703A2F2F7777772E77332E6F72672F323030312F584D4C536368656D61222065787072657373696F6E4C616E67756167653D22687474703A2F2F7777772E77332E6F72672F313939392F585061746822207461726765744E616D6573706163653D22687474703A2F2F61637469766974692E6F72672F62706D6E222069643D226469616772616D5F666C6F77436F6E7369676E22207873693A736368656D614C6F636174696F6E3D22687474703A2F2F7777772E6F6D672E6F72672F737065632F42504D4E2F32303130303532342F4D4F44454C2042504D4E32302E787364223E0A20203C62706D6E323A70726F636573732069643D22666C6F77436F6E7369676E22206E616D653D22E5A49AE5AE9EE4BE8BE58AA0E7ADBE2220697345786563757461626C653D2274727565223E0A202020203C657874656E73696F6E456C656D656E74733E0A2020202020203C61637469766974693A657865637574696F6E4C697374656E6572206576656E743D22656E642220636C6173733D22636F6D2E6F72616E6765666F726D732E636F6D6D6F6E2E666C6F772E6C697374656E65722E466C6F7746696E69736865644C697374656E6572223E3C2F61637469766974693A657865637574696F6E4C697374656E65723E0A202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C62706D6E323A73746172744576656E742069643D224576656E745F30696A78367971223E0A2020202020203C62706D6E323A6F7574676F696E673E466C6F775F303569676E6E613C2F62706D6E323A6F7574676F696E673E0A202020203C2F62706D6E323A73746172744576656E743E0A202020203C62706D6E323A757365725461736B2069643D2241637469766974795F313032326E747922206E616D653D22E5BD95E585A5222061637469766974693A61737369676E65653D22247B7374617274557365724E616D657D222061637469766974693A666F726D4B65793D227B2671756F743B666F726D49642671756F743B3A2671756F743B313434303934353431313335343236373634382671756F743B2C2671756F743B726561644F6E6C792671756F743B3A66616C73652C2671756F743B67726F7570547970652671756F743B3A2671756F743B41535349474E45452671756F743B7D223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A6F7065726174696F6E4C6973743E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313334383132303222206C6162656C3D22E4BC9AE7ADBE2220747970653D226D756C74695F7369676E222073686F774F726465723D223022206D756C74695369676E41737369676E65653D227B2671756F743B61737369676E6565547970652671756F743B3A2671756F743B555345525F47524F55502671756F743B2C2671756F743B61737369676E65654C6973742671756F743B3A2671756F743B61646D696E2C75736572412C75736572422671756F743B7D223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313335353833333422206C6162656C3D22E58AA0E7ADBE2220747970653D226D756C74695F636F6E7369676E222073686F774F726465723D2231223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A20202020202020203C2F61637469766974693A6F7065726174696F6E4C6973743E0A20202020202020203C61637469766974693A7661726961626C654C6973743E3C2F61637469766974693A7661726961626C654C6973743E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C2F62706D6E323A757365725461736B3E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F303569676E6E612220736F757263655265663D224576656E745F30696A7836797122207461726765745265663D2241637469766974795F313032326E7479223E3C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A757365725461736B2069643D2241637469766974795F30756D79706F6722206E616D653D22E4BC9AE7ADBE222061637469766974693A61737369676E65653D22247B61737369676E65657D222061637469766974693A666F726D4B65793D227B2671756F743B666F726D49642671756F743B3A2671756F743B313434303934353431313335343236373634382671756F743B2C2671756F743B726561644F6E6C792671756F743B3A747275652C2671756F743B67726F7570547970652671756F743B3A2671756F743B41535349474E45452671756F743B7D223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A6F7065726174696F6E4C6973743E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333936353937313830383122206C6162656C3D22E5908CE6848FEFBC88E4BC9AE7ADBEEFBC892220747970653D226D756C74695F6167726565222073686F774F726465723D2230223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333936353937323431313922206C6162656C3D22E68B92E7BB9DEFBC88E4BC9AE7ADBEEFBC892220747970653D226D756C74695F726566757365222073686F774F726465723D2231223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A20202020202020203C2F61637469766974693A6F7065726174696F6E4C6973743E0A20202020202020203C61637469766974693A7661726961626C654C6973743E3C2F61637469766974693A7661726961626C654C6973743E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A2020202020203C6D756C7469496E7374616E63654C6F6F7043686172616374657269737469637320697353657175656E7469616C3D2266616C7365222061637469766974693A636F6C6C656374696F6E3D2261737369676E65654C697374222061637469766974693A656C656D656E745661726961626C653D2261737369676E6565223E0A20202020202020203C636F6D706C6574696F6E436F6E646974696F6E3E247B6E724F66496E7374616E636573203D3D206E724F66436F6D706C65746564496E7374616E6365737D3C2F636F6D706C6574696F6E436F6E646974696F6E3E0A2020202020203C2F6D756C7469496E7374616E63654C6F6F704368617261637465726973746963733E0A202020203C2F62706D6E323A757365725461736B3E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F31387A6C3769392220736F757263655265663D2241637469766974795F313032326E747922207461726765745265663D2241637469766974795F30756D79706F67223E3C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A757365725461736B2069643D2241637469766974795F3168396464387422206E616D653D22E5AEA1E689B9222061637469766974693A61737369676E65653D2261646D696E222061637469766974693A666F726D4B65793D227B2671756F743B666F726D49642671756F743B3A2671756F743B313434303934353431313335343236373634382671756F743B2C2671756F743B726561644F6E6C792671756F743B3A747275652C2671756F743B67726F7570547970652671756F743B3A2671756F743B41535349474E45452671756F743B7D223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A6F7065726174696F6E4C6973743E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313339363938343222206C6162656C3D22E5908CE6848F2220747970653D226167726565222073686F774F726465723D2230223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313339373531323022206C6162656C3D22E68B92E7BB9D2220747970653D22726566757365222073686F774F726465723D2231223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A20202020202020203C2F61637469766974693A6F7065726174696F6E4C6973743E0A20202020202020203C61637469766974693A7661726961626C654C6973743E3C2F61637469766974693A7661726961626C654C6973743E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C2F62706D6E323A757365725461736B3E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F313332613177652220736F757263655265663D2241637469766974795F30756D79706F6722207461726765745265663D2241637469766974795F31683964643874223E3C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A656E644576656E742069643D224576656E745F30626E356E6C31223E0A2020202020203C62706D6E323A696E636F6D696E673E466C6F775F317734386D65313C2F62706D6E323A696E636F6D696E673E0A202020203C2F62706D6E323A656E644576656E743E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F317734386D653122206E616D653D22E5908CE6848F2220736F757263655265663D2241637469766974795F3168396464387422207461726765745265663D224576656E745F30626E356E6C31223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A637573746F6D436F6E646974696F6E20747970653D226F7065726174696F6E22206F7065726174696F6E547970653D226167726565223E3C2F61637469766974693A637573746F6D436F6E646974696F6E3E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A2020202020203C636F6E646974696F6E45787072657373696F6E207873693A747970653D2274466F726D616C45787072657373696F6E223E3C215B43444154415B247B6F7065726174696F6E54797065203D3D20276167726565277D5D5D3E3C2F636F6E646974696F6E45787072657373696F6E3E0A202020203C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F31707632617A7422206E616D653D22E68B92E7BB9D2220736F757263655265663D2241637469766974795F3168396464387422207461726765745265663D2241637469766974795F313032326E7479223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A637573746F6D436F6E646974696F6E20747970653D226F7065726174696F6E22206F7065726174696F6E547970653D22726566757365223E3C2F61637469766974693A637573746F6D436F6E646974696F6E3E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A2020202020203C636F6E646974696F6E45787072657373696F6E207873693A747970653D2274466F726D616C45787072657373696F6E223E3C215B43444154415B247B6F7065726174696F6E54797065203D3D2027726566757365277D5D5D3E3C2F636F6E646974696F6E45787072657373696F6E3E0A202020203C2F62706D6E323A73657175656E6365466C6F773E0A20203C2F62706D6E323A70726F636573733E0A20203C62706D6E64693A42504D4E4469616772616D2069643D2242504D4E4469616772616D5F666C6F77436F6E7369676E223E0A202020203C62706D6E64693A42504D4E506C616E652062706D6E456C656D656E743D22666C6F77436F6E7369676E222069643D2242504D4E506C616E655F666C6F77436F6E7369676E223E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D224576656E745F30696A78367971222069643D2242504D4E53686170655F4576656E745F30696A78367971223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2233362E30222077696474683D2233362E302220783D223135322E302220793D223237322E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D2241637469766974795F313032326E7479222069643D2242504D4E53686170655F41637469766974795F313032326E7479223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2238302E30222077696474683D223130302E302220783D223234302E302220793D223235302E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D2241637469766974795F30756D79706F67222069643D2242504D4E53686170655F41637469766974795F30756D79706F67223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2238302E30222077696474683D223130302E302220783D223430302E302220793D223235302E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D2241637469766974795F31683964643874222069643D2242504D4E53686170655F41637469766974795F31683964643874223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2238302E30222077696474683D223130302E302220783D223536302E302220793D223235302E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D224576656E745F30626E356E6C31222069643D2242504D4E53686170655F4576656E745F30626E356E6C31223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2233362E30222077696474683D2233362E302220783D223732322E302220793D223237322E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F31707632617A74222069643D2242504D4E456467655F466C6F775F31707632617A74223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223631302E302220793D223235302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223631302E302220793D223232302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223239302E302220793D223232302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223239302E302220793D223235302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C62706D6E64693A42504D4E4C6162656C3E0A202020202020202020203C6F6D6764633A426F756E6473206865696768743D2231342E30222077696474683D2232322E302220783D223433392E302220793D223230322E30223E3C2F6F6D6764633A426F756E64733E0A20202020202020203C2F62706D6E64693A42504D4E4C6162656C3E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F317734386D6531222069643D2242504D4E456467655F466C6F775F317734386D6531223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223636302E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223732322E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C62706D6E64693A42504D4E4C6162656C3E0A202020202020202020203C6F6D6764633A426F756E6473206865696768743D2231342E30222077696474683D2232332E302220783D223638302E302220793D223237322E30223E3C2F6F6D6764633A426F756E64733E0A20202020202020203C2F62706D6E64693A42504D4E4C6162656C3E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F31333261317765222069643D2242504D4E456467655F466C6F775F31333261317765223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223530302E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223536302E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F31387A6C376939222069643D2242504D4E456467655F466C6F775F31387A6C376939223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223334302E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223430302E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F303569676E6E61222069643D2242504D4E456467655F466C6F775F303569676E6E61223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223138382E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223234302E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A202020203C2F62706D6E64693A42504D4E506C616E653E0A20203C2F62706D6E64693A42504D4E4469616772616D3E0A3C2F62706D6E323A646566696E6974696F6E733E, 0); -INSERT INTO `ACT_GE_BYTEARRAY` VALUES ('a0864017-69e6-11ec-bb85-0235bf949cb9', 1, 'flowTranslate.bpmn', 'a0864016-69e6-11ec-bb85-0235bf949cb9', 0x3C3F786D6C2076657273696F6E3D22312E302220656E636F64696E673D225554462D38223F3E0A3C62706D6E323A646566696E6974696F6E7320786D6C6E733D22687474703A2F2F7777772E6F6D672E6F72672F737065632F42504D4E2F32303130303532342F4D4F44454C2220786D6C6E733A62706D6E323D22687474703A2F2F7777772E6F6D672E6F72672F737065632F42504D4E2F32303130303532342F4D4F44454C2220786D6C6E733A7873693D22687474703A2F2F7777772E77332E6F72672F323030312F584D4C536368656D612D696E7374616E63652220786D6C6E733A7873643D22687474703A2F2F7777772E77332E6F72672F323030312F584D4C536368656D612220786D6C6E733A61637469766974693D22687474703A2F2F61637469766974692E6F72672F62706D6E2220786D6C6E733A62706D6E64693D22687474703A2F2F7777772E6F6D672E6F72672F737065632F42504D4E2F32303130303532342F44492220786D6C6E733A6F6D6764633D22687474703A2F2F7777772E6F6D672E6F72672F737065632F44442F32303130303532342F44432220786D6C6E733A6F6D6764693D22687474703A2F2F7777772E6F6D672E6F72672F737065632F44442F32303130303532342F44492220786D6C6E733A64633D22687474703A2F2F7777772E6F6D672E6F72672F737065632F44442F32303130303532342F44432220786D6C6E733A64693D22687474703A2F2F7777772E6F6D672E6F72672F737065632F44442F32303130303532342F44492220747970654C616E67756167653D22687474703A2F2F7777772E77332E6F72672F323030312F584D4C536368656D61222065787072657373696F6E4C616E67756167653D22687474703A2F2F7777772E77332E6F72672F313939392F585061746822207461726765744E616D6573706163653D22687474703A2F2F61637469766974692E6F72672F62706D6E222069643D226469616772616D5F666C6F775472616E736C61746522207873693A736368656D614C6F636174696F6E3D22687474703A2F2F7777772E6F6D672E6F72672F737065632F42504D4E2F32303130303532342F4D4F44454C2042504D4E32302E787364223E0A20203C62706D6E323A70726F636573732069643D22666C6F775472616E736C61746522206E616D653D22E8BDACE58A9EE6B581E7A88B2220697345786563757461626C653D2274727565223E0A202020203C657874656E73696F6E456C656D656E74733E0A2020202020203C61637469766974693A657865637574696F6E4C697374656E6572206576656E743D22656E642220636C6173733D22636F6D2E6F72616E6765666F726D732E636F6D6D6F6E2E666C6F772E6C697374656E65722E466C6F7746696E69736865644C697374656E6572223E3C2F61637469766974693A657865637574696F6E4C697374656E65723E0A202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C62706D6E323A73746172744576656E742069643D224576656E745F31357A6F6D7466223E0A2020202020203C62706D6E323A6F7574676F696E673E466C6F775F31756E7635326A3C2F62706D6E323A6F7574676F696E673E0A202020203C2F62706D6E323A73746172744576656E743E0A202020203C62706D6E323A757365725461736B2069643D2241637469766974795F3063366E78646D22206E616D653D22E5BD95E585A5222061637469766974693A61737369676E65653D22247B7374617274557365724E616D657D222061637469766974693A666F726D4B65793D227B2671756F743B666F726D49642671756F743B3A2671756F743B313434303934353431313335343236373634382671756F743B2C2671756F743B726561644F6E6C792671756F743B3A66616C73652C2671756F743B67726F7570547970652671756F743B3A2671756F743B41535349474E45452671756F743B7D223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A6F7065726174696F6E4C6973743E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313431323835353222206C6162656C3D22E68F90E4BAA42220747970653D226167726565222073686F774F726465723D2230223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A20202020202020203C2F61637469766974693A6F7065726174696F6E4C6973743E0A20202020202020203C61637469766974693A7661726961626C654C6973743E3C2F61637469766974693A7661726961626C654C6973743E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C2F62706D6E323A757365725461736B3E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F31756E7635326A2220736F757263655265663D224576656E745F31357A6F6D746622207461726765745265663D2241637469766974795F3063366E78646D223E3C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A757365725461736B2069643D2241637469766974795F3077777369397722206E616D653D22E8BDACE58A9E222061637469766974693A61737369676E65653D2261646D696E222061637469766974693A666F726D4B65793D227B2671756F743B666F726D49642671756F743B3A2671756F743B313434303934353431313335343236373634382671756F743B2C2671756F743B726561644F6E6C792671756F743B3A747275652C2671756F743B67726F7570547970652671756F743B3A2671756F743B41535349474E45452671756F743B7D223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A6F7065726174696F6E4C6973743E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313431343033303022206C6162656C3D22E5908CE6848F2220747970653D226167726565222073686F774F726465723D2230223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313431343434343922206C6162656C3D22E8BDACE58A9E2220747970653D227472616E73666572222073686F774F726465723D2231223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A20202020202020203C2F61637469766974693A6F7065726174696F6E4C6973743E0A20202020202020203C61637469766974693A7661726961626C654C6973743E3C2F61637469766974693A7661726961626C654C6973743E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C2F62706D6E323A757365725461736B3E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F317932696835682220736F757263655265663D2241637469766974795F3063366E78646D22207461726765745265663D2241637469766974795F30777773693977223E3C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A656E644576656E742069643D224576656E745F31616D31747561223E0A2020202020203C62706D6E323A696E636F6D696E673E466C6F775F30306F617A366A3C2F62706D6E323A696E636F6D696E673E0A202020203C2F62706D6E323A656E644576656E743E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F30306F617A366A2220736F757263655265663D2241637469766974795F3077777369397722207461726765745265663D224576656E745F31616D31747561223E3C2F62706D6E323A73657175656E6365466C6F773E0A20203C2F62706D6E323A70726F636573733E0A20203C62706D6E64693A42504D4E4469616772616D2069643D2242504D4E4469616772616D5F666C6F775472616E736C617465223E0A202020203C62706D6E64693A42504D4E506C616E652062706D6E456C656D656E743D22666C6F775472616E736C617465222069643D2242504D4E506C616E655F666C6F775472616E736C617465223E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D224576656E745F31357A6F6D7466222069643D2242504D4E53686170655F4576656E745F31357A6F6D7466223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2233362E30222077696474683D2233362E302220783D223136322E302220793D223237322E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D2241637469766974795F3063366E78646D222069643D2242504D4E53686170655F41637469766974795F3063366E78646D223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2238302E30222077696474683D223130302E302220783D223235302E302220793D223235302E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D2241637469766974795F30777773693977222069643D2242504D4E53686170655F41637469766974795F30777773693977223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2238302E30222077696474683D223130302E302220783D223431302E302220793D223235302E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D224576656E745F31616D31747561222069643D2242504D4E53686170655F4576656E745F31616D31747561223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2233362E30222077696474683D2233362E302220783D223537322E302220793D223237322E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F30306F617A366A222069643D2242504D4E456467655F466C6F775F30306F617A366A223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223531302E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223537322E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F31793269683568222069643D2242504D4E456467655F466C6F775F31793269683568223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223335302E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223431302E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F31756E7635326A222069643D2242504D4E456467655F466C6F775F31756E7635326A223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223139382E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223235302E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A202020203C2F62706D6E64693A42504D4E506C616E653E0A20203C2F62706D6E64693A42504D4E4469616772616D3E0A3C2F62706D6E323A646566696E6974696F6E733E, 0); -INSERT INTO `ACT_GE_BYTEARRAY` VALUES ('ad3d6859-3175-11ec-9438-f20b812c0662', 1, 'flowLeave.bpmn', 'ad3d6858-3175-11ec-9438-f20b812c0662', 0x3C3F786D6C2076657273696F6E3D22312E302220656E636F64696E673D225554462D38223F3E0A3C62706D6E323A646566696E6974696F6E7320786D6C6E733D22687474703A2F2F7777772E6F6D672E6F72672F737065632F42504D4E2F32303130303532342F4D4F44454C2220786D6C6E733A62706D6E323D22687474703A2F2F7777772E6F6D672E6F72672F737065632F42504D4E2F32303130303532342F4D4F44454C2220786D6C6E733A7873693D22687474703A2F2F7777772E77332E6F72672F323030312F584D4C536368656D612D696E7374616E63652220786D6C6E733A7873643D22687474703A2F2F7777772E77332E6F72672F323030312F584D4C536368656D612220786D6C6E733A61637469766974693D22687474703A2F2F61637469766974692E6F72672F62706D6E2220786D6C6E733A62706D6E64693D22687474703A2F2F7777772E6F6D672E6F72672F737065632F42504D4E2F32303130303532342F44492220786D6C6E733A6F6D6764633D22687474703A2F2F7777772E6F6D672E6F72672F737065632F44442F32303130303532342F44432220786D6C6E733A6F6D6764693D22687474703A2F2F7777772E6F6D672E6F72672F737065632F44442F32303130303532342F44492220786D6C6E733A64633D22687474703A2F2F7777772E6F6D672E6F72672F737065632F44442F32303130303532342F44432220786D6C6E733A64693D22687474703A2F2F7777772E6F6D672E6F72672F737065632F44442F32303130303532342F44492220747970654C616E67756167653D22687474703A2F2F7777772E77332E6F72672F323030312F584D4C536368656D61222065787072657373696F6E4C616E67756167653D22687474703A2F2F7777772E77332E6F72672F313939392F585061746822207461726765744E616D6573706163653D22687474703A2F2F61637469766974692E6F72672F62706D6E222069643D226469616772616D5F666C6F774C6561766522207873693A736368656D614C6F636174696F6E3D22687474703A2F2F7777772E6F6D672E6F72672F737065632F42504D4E2F32303130303532342F4D4F44454C2042504D4E32302E787364223E0A20203C62706D6E323A70726F636573732069643D22666C6F774C6561766522206E616D653D22E8AFB7E58187E794B3E8AFB72220697345786563757461626C653D2274727565223E0A202020203C657874656E73696F6E456C656D656E74733E0A2020202020203C61637469766974693A657865637574696F6E4C697374656E6572206576656E743D22656E642220636C6173733D22636F6D2E666C6F772E64656D6F2E636F6D6D6F6E2E666C6F772E6C697374656E65722E557064617465466C6F775374617475734C697374656E6572223E3C2F61637469766974693A657865637574696F6E4C697374656E65723E0A202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C62706D6E323A73746172744576656E742069643D224576656E745F316D6D72747477223E0A2020202020203C62706D6E323A6F7574676F696E673E466C6F775F3079346D336B763C2F62706D6E323A6F7574676F696E673E0A202020203C2F62706D6E323A73746172744576656E743E0A202020203C62706D6E323A757365725461736B2069643D2241637469766974795F317462386A6B6122206E616D653D22E8AFB7E58187E794B3E8AFB7222061637469766974693A61737369676E65653D22247B7374617274557365724E616D657D222061637469766974693A666F726D4B65793D227B2671756F743B666F726D49642671756F743B3A2671756F743B313434303934353431313335343236373634382671756F743B2C2671756F743B726561644F6E6C792671756F743B3A66616C73652C2671756F743B67726F7570547970652671756F743B3A2671756F743B444550542671756F743B7D223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A6F7065726174696F6E4C6973743E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313131323239323522206C6162656C3D22E68F90E4BAA42220747970653D226167726565222073686F774F726465723D2230223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A20202020202020203C2F61637469766974693A6F7065726174696F6E4C6973743E0A20202020202020203C61637469766974693A7661726961626C654C6973743E3C2F61637469766974693A7661726961626C654C6973743E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C2F62706D6E323A757365725461736B3E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F3079346D336B762220736F757263655265663D224576656E745F316D6D7274747722207461726765745265663D2241637469766974795F317462386A6B61223E3C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A757365725461736B2069643D2241637469766974795F31316A7230707822206E616D653D22E983A8E997A8E9A286E5AFBCE5AEA1E689B9222061637469766974693A63616E64696461746547726F7570733D22247B64657074506F73744C65616465727D222061637469766974693A666F726D4B65793D227B2671756F743B666F726D49642671756F743B3A2671756F743B313434303934353431313335343236373634382671756F743B2C2671756F743B726561644F6E6C792671756F743B3A747275652C2671756F743B67726F7570547970652671756F743B3A2671756F743B444550545F504F53545F4C45414445522671756F743B7D223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A7461736B4C697374656E6572206576656E743D226372656174652220636C6173733D22636F6D2E666C6F772E64656D6F2E636F6D6D6F6E2E666C6F772E6C697374656E65722E44657074506F73744C65616465724C697374656E6572223E3C2F61637469766974693A7461736B4C697374656E65723E0A20202020202020203C61637469766974693A6F7065726174696F6E4C6973743E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313131343739343122206C6162656C3D22E5908CE6848F2220747970653D226167726565222073686F774F726465723D2230223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313131353133343922206C6162656C3D22E68B92E7BB9D2220747970653D22726566757365222073686F774F726465723D2231223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A20202020202020203C2F61637469766974693A6F7065726174696F6E4C6973743E0A20202020202020203C61637469766974693A7661726961626C654C6973743E3C2F61637469766974693A7661726961626C654C6973743E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C2F62706D6E323A757365725461736B3E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F30376F703230392220736F757263655265663D2241637469766974795F317462386A6B6122207461726765745265663D2241637469766974795F31316A72307078223E3C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A757365725461736B2069643D2241637469766974795F3030696270307522206E616D653D224852E5AEA1E689B9222061637469766974693A63616E64696461746547726F7570733D2231343430393634323231383535363030363430222061637469766974693A666F726D4B65793D227B2671756F743B666F726D49642671756F743B3A2671756F743B313434303934353431313335343236373634382671756F743B2C2671756F743B726561644F6E6C792671756F743B3A747275652C2671756F743B67726F7570547970652671756F743B3A2671756F743B504F53542671756F743B7D223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A6F7065726174696F6E4C6973743E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313133303636303122206C6162656C3D22E5908CE6848F2220747970653D226167726565222073686F774F726465723D2230223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313133313033393122206C6162656C3D22E68B92E7BB9D2220747970653D22726566757365222073686F774F726465723D2231223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A20202020202020203C2F61637469766974693A6F7065726174696F6E4C6973743E0A20202020202020203C61637469766974693A7661726961626C654C6973743E3C2F61637469766974693A7661726961626C654C6973743E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C2F62706D6E323A757365725461736B3E0A202020203C62706D6E323A656E644576656E742069643D224576656E745F3163303839756F223E0A2020202020203C62706D6E323A696E636F6D696E673E466C6F775F306D32376664653C2F62706D6E323A696E636F6D696E673E0A202020203C2F62706D6E323A656E644576656E743E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F306D323766646522206E616D653D22E5908CE6848F2220736F757263655265663D2241637469766974795F3030696270307522207461726765745265663D224576656E745F3163303839756F223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A637573746F6D436F6E646974696F6E20747970653D226F7065726174696F6E22206F7065726174696F6E547970653D226167726565223E3C2F61637469766974693A637573746F6D436F6E646974696F6E3E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A2020202020203C636F6E646974696F6E45787072657373696F6E207873693A747970653D2274466F726D616C45787072657373696F6E223E3C215B43444154415B247B6F7065726174696F6E54797065203D3D20276167726565277D5D5D3E3C2F636F6E646974696F6E45787072657373696F6E3E0A202020203C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F31367A796F613522206E616D653D22E68B92E7BB9D2220736F757263655265663D2241637469766974795F31316A7230707822207461726765745265663D2241637469766974795F317462386A6B61223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A637573746F6D436F6E646974696F6E20747970653D226F7065726174696F6E22206F7065726174696F6E547970653D22726566757365223E3C2F61637469766974693A637573746F6D436F6E646974696F6E3E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A2020202020203C636F6E646974696F6E45787072657373696F6E207873693A747970653D2274466F726D616C45787072657373696F6E223E3C215B43444154415B247B6F7065726174696F6E54797065203D3D2027726566757365277D5D5D3E3C2F636F6E646974696F6E45787072657373696F6E3E0A202020203C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F306C6C3734616E22206E616D653D22E5908CE6848F2220736F757263655265663D2241637469766974795F31316A7230707822207461726765745265663D2241637469766974795F30306962703075223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A637573746F6D436F6E646974696F6E20747970653D226F7065726174696F6E22206F7065726174696F6E547970653D226167726565223E3C2F61637469766974693A637573746F6D436F6E646974696F6E3E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A2020202020203C636F6E646974696F6E45787072657373696F6E207873693A747970653D2274466F726D616C45787072657373696F6E223E3C215B43444154415B247B6F7065726174696F6E54797065203D3D20276167726565277D5D5D3E3C2F636F6E646974696F6E45787072657373696F6E3E0A202020203C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F3161656B6D733822206E616D653D22E68B92E7BB9D2220736F757263655265663D2241637469766974795F3030696270307522207461726765745265663D2241637469766974795F317462386A6B61223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A637573746F6D436F6E646974696F6E20747970653D226F7065726174696F6E22206F7065726174696F6E547970653D22726566757365223E3C2F61637469766974693A637573746F6D436F6E646974696F6E3E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A2020202020203C636F6E646974696F6E45787072657373696F6E207873693A747970653D2274466F726D616C45787072657373696F6E223E3C215B43444154415B247B6F7065726174696F6E54797065203D3D2027726566757365277D5D5D3E3C2F636F6E646974696F6E45787072657373696F6E3E0A202020203C2F62706D6E323A73657175656E6365466C6F773E0A20203C2F62706D6E323A70726F636573733E0A20203C62706D6E64693A42504D4E4469616772616D2069643D2242504D4E4469616772616D5F666C6F774C65617665223E0A202020203C62706D6E64693A42504D4E506C616E652062706D6E456C656D656E743D22666C6F774C65617665222069643D2242504D4E506C616E655F666C6F774C65617665223E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D224576656E745F316D6D72747477222069643D2242504D4E53686170655F4576656E745F316D6D72747477223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2233362E30222077696474683D2233362E302220783D223133322E302220793D223237322E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D2241637469766974795F317462386A6B61222069643D2242504D4E53686170655F41637469766974795F317462386A6B61223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2238302E30222077696474683D223130302E302220783D223232302E302220793D223235302E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D2241637469766974795F31316A72307078222069643D2242504D4E53686170655F41637469766974795F31316A72307078223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2238302E30222077696474683D223130302E302220783D223338302E302220793D223235302E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D2241637469766974795F30306962703075222069643D2242504D4E53686170655F41637469766974795F30306962703075223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2238302E30222077696474683D223130302E302220783D223534302E302220793D223235302E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D224576656E745F3163303839756F222069643D2242504D4E53686170655F4576656E745F3163303839756F223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2233362E30222077696474683D2233362E302220783D223730322E302220793D223237322E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F3079346D336B76222069643D2242504D4E456467655F466C6F775F3079346D336B76223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223136382E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223232302E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F30376F70323039222069643D2242504D4E456467655F466C6F775F30376F70323039223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223332302E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223338302E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F306C6C3734616E222069643D2242504D4E456467655F466C6F775F306C6C3734616E223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223438302E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223534302E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C62706D6E64693A42504D4E4C6162656C3E0A202020202020202020203C6F6D6764633A426F756E6473206865696768743D2231342E30222077696474683D2232332E302220783D223439392E302220793D223237322E30223E3C2F6F6D6764633A426F756E64733E0A20202020202020203C2F62706D6E64693A42504D4E4C6162656C3E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F306D3237666465222069643D2242504D4E456467655F466C6F775F306D3237666465223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223634302E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223730322E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C62706D6E64693A42504D4E4C6162656C3E0A202020202020202020203C6F6D6764633A426F756E6473206865696768743D2231342E30222077696474683D2232332E302220783D223636302E302220793D223237322E30223E3C2F6F6D6764633A426F756E64733E0A20202020202020203C2F62706D6E64693A42504D4E4C6162656C3E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F31367A796F6135222069643D2242504D4E456467655F466C6F775F31367A796F6135223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223433302E302220793D223235302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223433302E302220793D223231302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223237302E302220793D223231302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223237302E302220793D223235302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C62706D6E64693A42504D4E4C6162656C3E0A202020202020202020203C6F6D6764633A426F756E6473206865696768743D2231342E30222077696474683D2232322E302220783D223333392E302220793D223139322E30223E3C2F6F6D6764633A426F756E64733E0A20202020202020203C2F62706D6E64693A42504D4E4C6162656C3E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F3161656B6D7338222069643D2242504D4E456467655F466C6F775F3161656B6D7338223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223539302E302220793D223333302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223539302E302220793D223337302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223237302E302220793D223337302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223237302E302220793D223333302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C62706D6E64693A42504D4E4C6162656C3E0A202020202020202020203C6F6D6764633A426F756E6473206865696768743D2231342E30222077696474683D2232322E302220783D223431392E302220793D223335322E30223E3C2F6F6D6764633A426F756E64733E0A20202020202020203C2F62706D6E64693A42504D4E4C6162656C3E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A202020203C2F62706D6E64693A42504D4E506C616E653E0A20203C2F62706D6E64693A42504D4E4469616772616D3E0A3C2F62706D6E323A646566696E6974696F6E733E, 0); -INSERT INTO `ACT_GE_BYTEARRAY` VALUES ('ae82b99c-3175-11ec-9438-f20b812c0662', 1, 'flowSubmit.bpmn', 'ae82b99b-3175-11ec-9438-f20b812c0662', 0x3C3F786D6C2076657273696F6E3D22312E302220656E636F64696E673D225554462D38223F3E0A3C62706D6E323A646566696E6974696F6E7320786D6C6E733D22687474703A2F2F7777772E6F6D672E6F72672F737065632F42504D4E2F32303130303532342F4D4F44454C2220786D6C6E733A62706D6E323D22687474703A2F2F7777772E6F6D672E6F72672F737065632F42504D4E2F32303130303532342F4D4F44454C2220786D6C6E733A7873693D22687474703A2F2F7777772E77332E6F72672F323030312F584D4C536368656D612D696E7374616E63652220786D6C6E733A7873643D22687474703A2F2F7777772E77332E6F72672F323030312F584D4C536368656D612220786D6C6E733A61637469766974693D22687474703A2F2F61637469766974692E6F72672F62706D6E2220786D6C6E733A62706D6E64693D22687474703A2F2F7777772E6F6D672E6F72672F737065632F42504D4E2F32303130303532342F44492220786D6C6E733A6F6D6764633D22687474703A2F2F7777772E6F6D672E6F72672F737065632F44442F32303130303532342F44432220786D6C6E733A6F6D6764693D22687474703A2F2F7777772E6F6D672E6F72672F737065632F44442F32303130303532342F44492220786D6C6E733A64633D22687474703A2F2F7777772E6F6D672E6F72672F737065632F44442F32303130303532342F44432220786D6C6E733A64693D22687474703A2F2F7777772E6F6D672E6F72672F737065632F44442F32303130303532342F44492220747970654C616E67756167653D22687474703A2F2F7777772E77332E6F72672F323030312F584D4C536368656D61222065787072657373696F6E4C616E67756167653D22687474703A2F2F7777772E77332E6F72672F313939392F585061746822207461726765744E616D6573706163653D22687474703A2F2F61637469766974692E6F72672F62706D6E222069643D226469616772616D5F666C6F775375626D697422207873693A736368656D614C6F636174696F6E3D22687474703A2F2F7777772E6F6D672E6F72672F737065632F42504D4E2F32303130303532342F4D4F44454C2042504D4E32302E787364223E0A20203C62706D6E323A70726F636573732069643D22666C6F775375626D697422206E616D653D22E68AA5E99480E794B3E8AFB72220697345786563757461626C653D2274727565223E0A202020203C657874656E73696F6E456C656D656E74733E0A2020202020203C61637469766974693A657865637574696F6E4C697374656E6572206576656E743D22656E642220636C6173733D22636F6D2E666C6F772E64656D6F2E636F6D6D6F6E2E666C6F772E6C697374656E65722E557064617465466C6F775374617475734C697374656E6572223E3C2F61637469766974693A657865637574696F6E4C697374656E65723E0A202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C62706D6E323A73746172744576656E742069643D224576656E745F31753464783362223E0A2020202020203C62706D6E323A6F7574676F696E673E466C6F775F306D726D71626B3C2F62706D6E323A6F7574676F696E673E0A202020203C2F62706D6E323A73746172744576656E743E0A202020203C62706D6E323A757365725461736B2069643D2241637469766974795F3163733462693522206E616D653D22E68AA5E99480E794B3E8AFB7222061637469766974693A61737369676E65653D22247B7374617274557365724E616D657D222061637469766974693A666F726D4B65793D227B2671756F743B666F726D49642671756F743B3A2671756F743B313434303934373637353034313130373936382671756F743B2C2671756F743B726561644F6E6C792671756F743B3A66616C73652C2671756F743B67726F7570547970652671756F743B3A2671756F743B444550542671756F743B7D223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A6F7065726174696F6E4C6973743E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313138303337393622206C6162656C3D22E68F90E4BAA42220747970653D226167726565222073686F774F726465723D2230223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A20202020202020203C2F61637469766974693A6F7065726174696F6E4C6973743E0A20202020202020203C61637469766974693A7661726961626C654C6973743E3C2F61637469766974693A7661726961626C654C6973743E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C2F62706D6E323A757365725461736B3E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F306D726D71626B2220736F757263655265663D224576656E745F3175346478336222207461726765745265663D2241637469766974795F31637334626935223E3C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A757365725461736B2069643D2241637469766974795F303473636E326F22206E616D653D22E983A8E997A8E9A286E5AFBCE5AEA1E689B9222061637469766974693A63616E64696461746547726F7570733D22247B64657074506F73744C65616465727D222061637469766974693A666F726D4B65793D227B2671756F743B666F726D49642671756F743B3A2671756F743B313434303934373637353034313130373936382671756F743B2C2671756F743B726561644F6E6C792671756F743B3A747275652C2671756F743B67726F7570547970652671756F743B3A2671756F743B444550545F504F53545F4C45414445522671756F743B7D223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A7461736B4C697374656E6572206576656E743D226372656174652220636C6173733D22636F6D2E666C6F772E64656D6F2E636F6D6D6F6E2E666C6F772E6C697374656E65722E44657074506F73744C65616465724C697374656E6572223E3C2F61637469766974693A7461736B4C697374656E65723E0A20202020202020203C61637469766974693A6F7065726174696F6E4C6973743E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313138313236343622206C6162656C3D22E5908CE6848F2220747970653D226167726565222073686F774F726465723D2230223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313138313539383422206C6162656C3D22E68B92E7BB9D2220747970653D22726566757365222073686F774F726465723D2231223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A20202020202020203C2F61637469766974693A6F7065726174696F6E4C6973743E0A20202020202020203C61637469766974693A7661726961626C654C6973743E0A202020202020202020203C61637469766974693A666F726D5661726961626C652069643D2231343530373130383030383534343231353034223E3C2F61637469766974693A666F726D5661726961626C653E0A20202020202020203C2F61637469766974693A7661726961626C654C6973743E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C2F62706D6E323A757365725461736B3E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F307039673732692220736F757263655265663D2241637469766974795F3163733462693522207461726765745265663D2241637469766974795F303473636E326F223E3C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A6578636C7573697665476174657761792069643D22476174657761795F30707572396365223E0A2020202020203C62706D6E323A696E636F6D696E673E466C6F775F306979756B77723C2F62706D6E323A696E636F6D696E673E0A2020202020203C62706D6E323A6F7574676F696E673E466C6F775F306A667265316B3C2F62706D6E323A6F7574676F696E673E0A2020202020203C62706D6E323A6F7574676F696E673E466C6F775F313365646537623C2F62706D6E323A6F7574676F696E673E0A202020203C2F62706D6E323A6578636C7573697665476174657761793E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F306979756B777222206E616D653D22E5908CE6848F2220736F757263655265663D2241637469766974795F303473636E326F22207461726765745265663D22476174657761795F30707572396365223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A637573746F6D436F6E646974696F6E20747970653D226F7065726174696F6E22206F7065726174696F6E547970653D226167726565223E3C2F61637469766974693A637573746F6D436F6E646974696F6E3E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A2020202020203C636F6E646974696F6E45787072657373696F6E207873693A747970653D2274466F726D616C45787072657373696F6E223E3C215B43444154415B247B6F7065726174696F6E54797065203D3D20276167726565277D5D5D3E3C2F636F6E646974696F6E45787072657373696F6E3E0A202020203C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A656E644576656E742069643D224576656E745F30346E71666E79223E0A2020202020203C62706D6E323A696E636F6D696E673E466C6F775F306A667265316B3C2F62706D6E323A696E636F6D696E673E0A2020202020203C62706D6E323A696E636F6D696E673E466C6F775F313576336A6B6A3C2F62706D6E323A696E636F6D696E673E0A202020203C2F62706D6E323A656E644576656E743E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F306A667265316B22206E616D653D22E68AA5E99480E98791E9A29DE5B08FE4BA8E313030302220736F757263655265663D22476174657761795F3070757239636522207461726765745265663D224576656E745F30346E71666E79223E0A2020202020203C636F6E646974696F6E45787072657373696F6E207873693A747970653D2274466F726D616C45787072657373696F6E223E3C215B43444154415B247B746F74616C416D6F756E74203C3D20313030307D5D5D3E3C2F636F6E646974696F6E45787072657373696F6E3E0A202020203C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A757365725461736B2069643D2241637469766974795F3177323378666522206E616D653D22E680BBE7BB8FE79086E5AEA1E689B9222061637469766974693A63616E64696461746547726F7570733D2231343430393131343130353831323133343136222061637469766974693A666F726D4B65793D227B2671756F743B666F726D49642671756F743B3A2671756F743B313434303934373637353034313130373936382671756F743B2C2671756F743B726561644F6E6C792671756F743B3A747275652C2671756F743B67726F7570547970652671756F743B3A2671756F743B444550542671756F743B7D223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A6F7065726174696F6E4C6973743E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313138383339303122206C6162656C3D22E5908CE6848F2220747970653D226167726565222073686F774F726465723D2230223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313138383733323222206C6162656C3D22E68B92E7BB9D2220747970653D22726566757365222073686F774F726465723D2231223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A20202020202020203C2F61637469766974693A6F7065726174696F6E4C6973743E0A20202020202020203C61637469766974693A7661726961626C654C6973743E3C2F61637469766974693A7661726961626C654C6973743E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C2F62706D6E323A757365725461736B3E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F3133656465376222206E616D653D22E68AA5E99480E98791E9A29DE5A4A7E4BA8E313030302220736F757263655265663D22476174657761795F3070757239636522207461726765745265663D2241637469766974795F31773233786665223E0A2020202020203C636F6E646974696F6E45787072657373696F6E207873693A747970653D2274466F726D616C45787072657373696F6E223E3C215B43444154415B247B746F74616C416D6F756E74203E20313030307D5D5D3E3C2F636F6E646974696F6E45787072657373696F6E3E0A202020203C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F313576336A6B6A22206E616D653D22E5908CE6848F2220736F757263655265663D2241637469766974795F3177323378666522207461726765745265663D224576656E745F30346E71666E79223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A637573746F6D436F6E646974696F6E20747970653D226F7065726174696F6E22206F7065726174696F6E547970653D226167726565223E3C2F61637469766974693A637573746F6D436F6E646974696F6E3E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A2020202020203C636F6E646974696F6E45787072657373696F6E207873693A747970653D2274466F726D616C45787072657373696F6E223E3C215B43444154415B247B6F7065726174696F6E54797065203D3D20276167726565277D5D5D3E3C2F636F6E646974696F6E45787072657373696F6E3E0A202020203C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F316F697135387222206E616D653D22E68B92E7BB9D2220736F757263655265663D2241637469766974795F3177323378666522207461726765745265663D2241637469766974795F31637334626935223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A637573746F6D436F6E646974696F6E20747970653D226F7065726174696F6E22206F7065726174696F6E547970653D22726566757365223E3C2F61637469766974693A637573746F6D436F6E646974696F6E3E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A2020202020203C636F6E646974696F6E45787072657373696F6E207873693A747970653D2274466F726D616C45787072657373696F6E223E3C215B43444154415B247B6F7065726174696F6E54797065203D3D2027726566757365277D5D5D3E3C2F636F6E646974696F6E45787072657373696F6E3E0A202020203C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F3039387338693022206E616D653D22E68B92E7BB9D2220736F757263655265663D2241637469766974795F303473636E326F22207461726765745265663D2241637469766974795F31637334626935223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A637573746F6D436F6E646974696F6E20747970653D226F7065726174696F6E22206F7065726174696F6E547970653D22726566757365223E3C2F61637469766974693A637573746F6D436F6E646974696F6E3E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A2020202020203C636F6E646974696F6E45787072657373696F6E207873693A747970653D2274466F726D616C45787072657373696F6E223E3C215B43444154415B247B6F7065726174696F6E54797065203D3D2027726566757365277D5D5D3E3C2F636F6E646974696F6E45787072657373696F6E3E0A202020203C2F62706D6E323A73657175656E6365466C6F773E0A20203C2F62706D6E323A70726F636573733E0A20203C62706D6E64693A42504D4E4469616772616D2069643D2242504D4E4469616772616D5F666C6F775375626D6974223E0A202020203C62706D6E64693A42504D4E506C616E652062706D6E456C656D656E743D22666C6F775375626D6974222069643D2242504D4E506C616E655F666C6F775375626D6974223E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D224576656E745F31753464783362222069643D2242504D4E53686170655F4576656E745F31753464783362223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2233362E30222077696474683D2233362E302220783D223132322E302220793D223330322E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D2241637469766974795F31637334626935222069643D2242504D4E53686170655F41637469766974795F31637334626935223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2238302E30222077696474683D223130302E302220783D223231302E302220793D223238302E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D2241637469766974795F303473636E326F222069643D2242504D4E53686170655F41637469766974795F303473636E326F223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2238302E30222077696474683D223130302E302220783D223337302E302220793D223238302E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D224576656E745F30346E71666E79222069643D2242504D4E53686170655F4576656E745F30346E71666E79223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2233362E30222077696474683D2233362E302220783D223834322E302220793D223330322E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D22476174657761795F30707572396365222069643D2242504D4E53686170655F476174657761795F30707572396365223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2235302E30222077696474683D2235302E302220783D223538352E302220793D223239352E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D2241637469766974795F31773233786665222069643D2242504D4E53686170655F41637469766974795F31773233786665223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2238302E30222077696474683D223130302E302220783D223536302E302220793D223339302E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F306D726D71626B222069643D2242504D4E456467655F466C6F775F306D726D71626B223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223135382E302220793D223332302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223231302E302220793D223332302E30223E3C2F6F6D6764693A776179706F696E743E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F30703967373269222069643D2242504D4E456467655F466C6F775F30703967373269223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223331302E302220793D223332302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223337302E302220793D223332302E30223E3C2F6F6D6764693A776179706F696E743E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F306979756B7772222069643D2242504D4E456467655F466C6F775F306979756B7772223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223437302E302220793D223332302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223538352E302220793D223332302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C62706D6E64693A42504D4E4C6162656C3E0A202020202020202020203C6F6D6764633A426F756E6473206865696768743D2231342E30222077696474683D2232332E302220783D223531362E302220793D223330322E30223E3C2F6F6D6764633A426F756E64733E0A20202020202020203C2F62706D6E64693A42504D4E4C6162656C3E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F306A667265316B222069643D2242504D4E456467655F466C6F775F306A667265316B223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223633352E302220793D223332302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223834322E302220793D223332302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C62706D6E64693A42504D4E4C6162656C3E0A202020202020202020203C6F6D6764633A426F756E6473206865696768743D2231342E30222077696474683D2239302E302220783D223639342E302220793D223330322E30223E3C2F6F6D6764633A426F756E64733E0A20202020202020203C2F62706D6E64693A42504D4E4C6162656C3E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F31336564653762222069643D2242504D4E456467655F466C6F775F31336564653762223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223631302E302220793D223334352E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223631302E302220793D223339302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C62706D6E64693A42504D4E4C6162656C3E0A202020202020202020203C6F6D6764633A426F756E6473206865696768743D2231342E30222077696474683D2239302E302220783D223631352E302220793D223335332E30223E3C2F6F6D6764633A426F756E64733E0A20202020202020203C2F62706D6E64693A42504D4E4C6162656C3E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F313576336A6B6A222069643D2242504D4E456467655F466C6F775F313576336A6B6A223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223636302E302220793D223433302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223836302E302220793D223433302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223836302E302220793D223333382E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C62706D6E64693A42504D4E4C6162656C3E0A202020202020202020203C6F6D6764633A426F756E6473206865696768743D2231342E30222077696474683D2232332E302220783D223734392E302220793D223431322E30223E3C2F6F6D6764633A426F756E64733E0A20202020202020203C2F62706D6E64693A42504D4E4C6162656C3E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F316F6971353872222069643D2242504D4E456467655F466C6F775F316F6971353872223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223536302E302220793D223433302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223236302E302220793D223433302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223236302E302220793D223336302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C62706D6E64693A42504D4E4C6162656C3E0A202020202020202020203C6F6D6764633A426F756E6473206865696768743D2231342E30222077696474683D2232322E302220783D223339392E302220793D223431322E30223E3C2F6F6D6764633A426F756E64733E0A20202020202020203C2F62706D6E64693A42504D4E4C6162656C3E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F30393873386930222069643D2242504D4E456467655F466C6F775F30393873386930223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223432302E302220793D223238302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223432302E302220793D223234302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223236302E302220793D223234302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223236302E302220793D223238302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C62706D6E64693A42504D4E4C6162656C3E0A202020202020202020203C6F6D6764633A426F756E6473206865696768743D2231342E30222077696474683D2232322E302220783D223332392E302220793D223232322E30223E3C2F6F6D6764633A426F756E64733E0A20202020202020203C2F62706D6E64693A42504D4E4C6162656C3E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A202020203C2F62706D6E64693A42504D4E506C616E653E0A20203C2F62706D6E64693A42504D4E4469616772616D3E0A3C2F62706D6E323A646566696E6974696F6E733E, 0); -INSERT INTO `ACT_GE_BYTEARRAY` VALUES ('af9bf1cf-3175-11ec-9438-f20b812c0662', 1, 'flowContract.bpmn', 'af9bf1ce-3175-11ec-9438-f20b812c0662', 0x3C3F786D6C2076657273696F6E3D22312E302220656E636F64696E673D225554462D38223F3E0A3C62706D6E323A646566696E6974696F6E7320786D6C6E733D22687474703A2F2F7777772E6F6D672E6F72672F737065632F42504D4E2F32303130303532342F4D4F44454C2220786D6C6E733A62706D6E323D22687474703A2F2F7777772E6F6D672E6F72672F737065632F42504D4E2F32303130303532342F4D4F44454C2220786D6C6E733A7873693D22687474703A2F2F7777772E77332E6F72672F323030312F584D4C536368656D612D696E7374616E63652220786D6C6E733A7873643D22687474703A2F2F7777772E77332E6F72672F323030312F584D4C536368656D612220786D6C6E733A61637469766974693D22687474703A2F2F61637469766974692E6F72672F62706D6E2220786D6C6E733A62706D6E64693D22687474703A2F2F7777772E6F6D672E6F72672F737065632F42504D4E2F32303130303532342F44492220786D6C6E733A6F6D6764633D22687474703A2F2F7777772E6F6D672E6F72672F737065632F44442F32303130303532342F44432220786D6C6E733A6F6D6764693D22687474703A2F2F7777772E6F6D672E6F72672F737065632F44442F32303130303532342F44492220786D6C6E733A64633D22687474703A2F2F7777772E6F6D672E6F72672F737065632F44442F32303130303532342F44432220786D6C6E733A64693D22687474703A2F2F7777772E6F6D672E6F72672F737065632F44442F32303130303532342F44492220747970654C616E67756167653D22687474703A2F2F7777772E77332E6F72672F323030312F584D4C536368656D61222065787072657373696F6E4C616E67756167653D22687474703A2F2F7777772E77332E6F72672F313939392F585061746822207461726765744E616D6573706163653D22687474703A2F2F61637469766974692E6F72672F62706D6E222069643D226469616772616D5F666C6F77436F6E747261637422207873693A736368656D614C6F636174696F6E3D22687474703A2F2F7777772E6F6D672E6F72672F737065632F42504D4E2F32303130303532342F4D4F44454C2042504D4E32302E787364223E0A20203C62706D6E323A70726F636573732069643D22666C6F77436F6E747261637422206E616D653D22E59088E5908CE5AEA1E689B92220697345786563757461626C653D2274727565223E0A202020203C657874656E73696F6E456C656D656E74733E0A2020202020203C61637469766974693A657865637574696F6E4C697374656E6572206576656E743D22656E642220636C6173733D22636F6D2E666C6F772E64656D6F2E636F6D6D6F6E2E666C6F772E6C697374656E65722E557064617465466C6F775374617475734C697374656E6572223E3C2F61637469766974693A657865637574696F6E4C697374656E65723E0A202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C62706D6E323A73746172744576656E742069643D224576656E745F306B6A70396369223E0A2020202020203C62706D6E323A6F7574676F696E673E466C6F775F30656D7834307A3C2F62706D6E323A6F7574676F696E673E0A202020203C2F62706D6E323A73746172744576656E743E0A202020203C62706D6E323A757365725461736B2069643D2241637469766974795F306263696F686622206E616D653D22E59088E5908CE5BD95E585A5222061637469766974693A61737369676E65653D22247B7374617274557365724E616D657D222061637469766974693A666F726D4B65793D227B2671756F743B666F726D49642671756F743B3A2671756F743B313434303935343932303334383934363433322671756F743B2C2671756F743B726561644F6E6C792671756F743B3A66616C73652C2671756F743B67726F7570547970652671756F743B3A2671756F743B444550542671756F743B7D223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A6F7065726174696F6E4C6973743E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313235353334393822206C6162656C3D22E68F90E4BAA42220747970653D226167726565222073686F774F726465723D2230223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A20202020202020203C2F61637469766974693A6F7065726174696F6E4C6973743E0A20202020202020203C61637469766974693A7661726961626C654C6973743E3C2F61637469766974693A7661726961626C654C6973743E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C2F62706D6E323A757365725461736B3E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F30656D7834307A2220736F757263655265663D224576656E745F306B6A7039636922207461726765745265663D2241637469766974795F306263696F6866223E3C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A757365725461736B2069643D2241637469766974795F3035336F6D393922206E616D653D22E4B89AE58AA1E983A8E9A286E5AFBCE5AEA1E689B9222061637469766974693A63616E64696461746547726F7570733D22247B64657074506F73744C65616465727D222061637469766974693A666F726D4B65793D227B2671756F743B666F726D49642671756F743B3A2671756F743B313434303935343932303334383934363433322671756F743B2C2671756F743B726561644F6E6C792671756F743B3A747275652C2671756F743B67726F7570547970652671756F743B3A2671756F743B444550545F504F53545F4C45414445522671756F743B7D223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A7461736B4C697374656E6572206576656E743D226372656174652220636C6173733D22636F6D2E666C6F772E64656D6F2E636F6D6D6F6E2E666C6F772E6C697374656E65722E44657074506F73744C65616465724C697374656E6572223E3C2F61637469766974693A7461736B4C697374656E65723E0A20202020202020203C61637469766974693A6F7065726174696F6E4C6973743E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313235363433353322206C6162656C3D22E5908CE6848F2220747970653D226167726565222073686F774F726465723D2230223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A20202020202020203C2F61637469766974693A6F7065726174696F6E4C6973743E0A20202020202020203C61637469766974693A7661726961626C654C6973743E3C2F61637469766974693A7661726961626C654C6973743E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C2F62706D6E323A757365725461736B3E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F306477663979742220736F757263655265663D2241637469766974795F306263696F686622207461726765745265663D2241637469766974795F3035336F6D3939223E3C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F3076357A6A336B2220736F757263655265663D2241637469766974795F3035336F6D393922207461726765745265663D22476174657761795F3038353538696A223E3C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A706172616C6C656C476174657761792069643D22476174657761795F3038353538696A223E0A2020202020203C62706D6E323A696E636F6D696E673E466C6F775F3076357A6A336B3C2F62706D6E323A696E636F6D696E673E0A2020202020203C62706D6E323A6F7574676F696E673E466C6F775F3164357568636F3C2F62706D6E323A6F7574676F696E673E0A2020202020203C62706D6E323A6F7574676F696E673E466C6F775F317168396370303C2F62706D6E323A6F7574676F696E673E0A202020203C2F62706D6E323A706172616C6C656C476174657761793E0A202020203C62706D6E323A757365725461736B2069643D2241637469766974795F307A3930616C6922206E616D653D22E5B7A5E7A88BE983A8E5AEA1E689B9222061637469766974693A61737369676E65653D2261646D696E222061637469766974693A666F726D4B65793D227B2671756F743B666F726D49642671756F743B3A2671756F743B313434303935353139343939313937323335322671756F743B2C2671756F743B726561644F6E6C792671756F743B3A747275652C2671756F743B67726F7570547970652671756F743B3A2671756F743B444550542671756F743B7D223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A6F7065726174696F6E4C6973743E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313236303635323922206C6162656C3D22E5908CE6848F2220747970653D226167726565222073686F774F726465723D2230223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A20202020202020203C2F61637469766974693A6F7065726174696F6E4C6973743E0A20202020202020203C61637469766974693A7661726961626C654C6973743E3C2F61637469766974693A7661726961626C654C6973743E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C2F62706D6E323A757365725461736B3E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F3164357568636F2220736F757263655265663D22476174657761795F3038353538696A22207461726765745265663D2241637469766974795F307A3930616C69223E3C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A757365725461736B2069643D2241637469766974795F3137393330616A22206E616D653D22E980A0E4BBB7E983A8E5AEA1E689B9222061637469766974693A63616E64696461746555736572733D2261646D696E222061637469766974693A666F726D4B65793D227B2671756F743B666F726D49642671756F743B3A2671756F743B313434303935353139343939313937323335322671756F743B2C2671756F743B726561644F6E6C792671756F743B3A747275652C2671756F743B67726F7570547970652671756F743B3A2671756F743B444550542671756F743B7D223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A6F7065726174696F6E4C6973743E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313236333131313322206C6162656C3D22E5908CE6848F2220747970653D226167726565222073686F774F726465723D2230223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A20202020202020203C2F61637469766974693A6F7065726174696F6E4C6973743E0A20202020202020203C61637469766974693A7661726961626C654C6973743E3C2F61637469766974693A7661726961626C654C6973743E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C2F62706D6E323A757365725461736B3E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F317168396370302220736F757263655265663D22476174657761795F3038353538696A22207461726765745265663D2241637469766974795F3137393330616A223E3C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F316E35637866672220736F757263655265663D2241637469766974795F3137393330616A22207461726765745265663D22476174657761795F30796A79713068223E3C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A706172616C6C656C476174657761792069643D22476174657761795F30796A79713068223E0A2020202020203C62706D6E323A696E636F6D696E673E466C6F775F316E35637866673C2F62706D6E323A696E636F6D696E673E0A2020202020203C62706D6E323A696E636F6D696E673E466C6F775F313068663979353C2F62706D6E323A696E636F6D696E673E0A2020202020203C62706D6E323A6F7574676F696E673E466C6F775F30767435676F723C2F62706D6E323A6F7574676F696E673E0A202020203C2F62706D6E323A706172616C6C656C476174657761793E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F313068663979352220736F757263655265663D2241637469766974795F307A3930616C6922207461726765745265663D22476174657761795F30796A79713068223E3C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A757365725461736B2069643D2241637469766974795F3078657463387522206E616D653D22E8B4A2E58AA1E983A8E5AEA1E689B9222061637469766974693A63616E64696461746547726F7570733D22313434303936343531393339313133373739322C31343430393634353139333935333332303936222061637469766974693A666F726D4B65793D227B2671756F743B666F726D49642671756F743B3A2671756F743B313434303935353132373739303833333636342671756F743B2C2671756F743B726561644F6E6C792671756F743B3A747275652C2671756F743B67726F7570547970652671756F743B3A2671756F743B504F53542671756F743B7D223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A6F7065726174696F6E4C6973743E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313236363839383222206C6162656C3D22E5908CE6848F2220747970653D226167726565222073686F774F726465723D2230223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313236373231393522206C6162656C3D22E68B92E7BB9D2220747970653D22726566757365222073686F774F726465723D2231223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A20202020202020203C2F61637469766974693A6F7065726174696F6E4C6973743E0A20202020202020203C61637469766974693A7661726961626C654C6973743E3C2F61637469766974693A7661726961626C654C6973743E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C2F62706D6E323A757365725461736B3E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F30767435676F722220736F757263655265663D22476174657761795F30796A7971306822207461726765745265663D2241637469766974795F30786574633875223E3C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A757365725461736B2069643D2241637469766974795F3064766734686922206E616D653D22E6B395E58AA1E983A8E5AEA1E689B9222061637469766974693A63616E64696461746547726F7570733D2231343430393634333837393739333939313638222061637469766974693A666F726D4B65793D227B2671756F743B666F726D49642671756F743B3A2671756F743B313434303935353030313039333439323733362671756F743B2C2671756F743B726561644F6E6C792671756F743B3A747275652C2671756F743B67726F7570547970652671756F743B3A2671756F743B504F53542671756F743B7D223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A6F7065726174696F6E4C6973743E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313238323034313422206C6162656C3D22E4BC9AE7ADBE2220747970653D226D756C74695F7369676E222073686F774F726465723D2230223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313238323839303922206C6162656C3D22E58AA0E7ADBE2220747970653D226D756C74695F636F6E7369676E222073686F774F726465723D2231223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A20202020202020203C2F61637469766974693A6F7065726174696F6E4C6973743E0A20202020202020203C61637469766974693A7661726961626C654C6973743E3C2F61637469766974693A7661726961626C654C6973743E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C2F62706D6E323A757365725461736B3E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F3069746664623522206E616D653D22E5908CE6848F2220736F757263655265663D2241637469766974795F3078657463387522207461726765745265663D2241637469766974795F30647667346869223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A637573746F6D436F6E646974696F6E20747970653D226F7065726174696F6E22206F7065726174696F6E547970653D226167726565223E3C2F61637469766974693A637573746F6D436F6E646974696F6E3E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A2020202020203C636F6E646974696F6E45787072657373696F6E207873693A747970653D2274466F726D616C45787072657373696F6E223E3C215B43444154415B247B6F7065726174696F6E54797065203D3D20276167726565277D5D5D3E3C2F636F6E646974696F6E45787072657373696F6E3E0A202020203C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A757365725461736B2069643D2241637469766974795F30786F31346E7322206E616D653D22E6B395E58AA1E983A8E4BC9AE7ADBE222061637469766974693A61737369676E65653D22247B61737369676E65657D222061637469766974693A666F726D4B65793D227B2671756F743B666F726D49642671756F743B3A2671756F743B313434303935353030313039333439323733362671756F743B2C2671756F743B726561644F6E6C792671756F743B3A747275652C2671756F743B67726F7570547970652671756F743B3A2671756F743B444550542671756F743B7D223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A6F7065726174696F6E4C6973743E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313239343530353322206C6162656C3D22E5908CE6848F2220747970653D226D756C74695F6167726565222073686F774F726465723D2230223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313239353131363022206C6162656C3D22E68B92E7BB9D2220747970653D226D756C74695F726566757365222073686F774F726465723D2231223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A20202020202020203C2F61637469766974693A6F7065726174696F6E4C6973743E0A20202020202020203C61637469766974693A7661726961626C654C6973743E3C2F61637469766974693A7661726961626C654C6973743E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A2020202020203C6D756C7469496E7374616E63654C6F6F7043686172616374657269737469637320697353657175656E7469616C3D2266616C7365222061637469766974693A636F6C6C656374696F6E3D2261737369676E65654C697374222061637469766974693A656C656D656E745661726961626C653D2261737369676E6565223E0A20202020202020203C636F6D706C6574696F6E436F6E646974696F6E3E247B6E724F66496E7374616E636573203D3D206E724F66436F6D706C65746564496E7374616E6365737D3C2F636F6D706C6574696F6E436F6E646974696F6E3E0A2020202020203C2F6D756C7469496E7374616E63654C6F6F704368617261637465726973746963733E0A202020203C2F62706D6E323A757365725461736B3E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F307976347562702220736F757263655265663D2241637469766974795F3064766734686922207461726765745265663D2241637469766974795F30786F31346E73223E3C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A6578636C7573697665476174657761792069643D22476174657761795F31633066687A66223E0A2020202020203C62706D6E323A696E636F6D696E673E466C6F775F306969796469703C2F62706D6E323A696E636F6D696E673E0A2020202020203C62706D6E323A6F7574676F696E673E466C6F775F3038653538356A3C2F62706D6E323A6F7574676F696E673E0A2020202020203C62706D6E323A6F7574676F696E673E466C6F775F3165696C647A703C2F62706D6E323A6F7574676F696E673E0A202020203C2F62706D6E323A6578636C7573697665476174657761793E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F306969796469702220736F757263655265663D2241637469766974795F30786F31346E7322207461726765745265663D22476174657761795F31633066687A66223E3C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A757365725461736B2069643D2241637469766974795F31656E68356B6522206E616D653D22E680BBE7BB8FE79086E5AEA1E689B9222061637469766974693A63616E64696461746547726F7570733D2231343430393131343130353831323133343136222061637469766974693A666F726D4B65793D227B2671756F743B666F726D49642671756F743B3A2671756F743B313434303935343932303334383934363433322671756F743B2C2671756F743B726561644F6E6C792671756F743B3A747275652C2671756F743B67726F7570547970652671756F743B3A2671756F743B444550542671756F743B7D223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A6F7065726174696F6E4C6973743E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313331353630393122206C6162656C3D22E5908CE6848F2220747970653D226167726565222073686F774F726465723D2230223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313331353939353622206C6162656C3D22E68B92E7BB9D2220747970653D22726566757365222073686F774F726465723D2231223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A20202020202020203C2F61637469766974693A6F7065726174696F6E4C6973743E0A20202020202020203C61637469766974693A7661726961626C654C6973743E3C2F61637469766974693A7661726961626C654C6973743E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C2F62706D6E323A757365725461736B3E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F3038653538356A22206E616D653D22E5908CE6848FE4BABAE695B0E5A4A7E4BA8E3430252220736F757263655265663D22476174657761795F31633066687A6622207461726765745265663D2241637469766974795F31656E68356B65223E0A2020202020203C636F6E646974696F6E45787072657373696F6E207873693A747970653D2274466F726D616C45787072657373696F6E223E3C215B43444154415B247B6D756C74694167726565436F756E74202F206D756C74694E756D4F66496E7374616E636573203E20302E347D5D5D3E3C2F636F6E646974696F6E45787072657373696F6E3E0A202020203C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A656E644576656E742069643D224576656E745F30383570366479223E0A2020202020203C62706D6E323A696E636F6D696E673E466C6F775F31696E776864653C2F62706D6E323A696E636F6D696E673E0A202020203C2F62706D6E323A656E644576656E743E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F31696E7768646522206E616D653D22E5908CE6848F2220736F757263655265663D2241637469766974795F31656E68356B6522207461726765745265663D224576656E745F30383570366479223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A637573746F6D436F6E646974696F6E20747970653D226F7065726174696F6E22206F7065726174696F6E547970653D226167726565223E3C2F61637469766974693A637573746F6D436F6E646974696F6E3E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A2020202020203C636F6E646974696F6E45787072657373696F6E207873693A747970653D2274466F726D616C45787072657373696F6E223E3C215B43444154415B247B6F7065726174696F6E54797065203D3D20276167726565277D5D5D3E3C2F636F6E646974696F6E45787072657373696F6E3E0A202020203C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F306A306779327422206E616D653D22E68B92E7BB9D2220736F757263655265663D2241637469766974795F3078657463387522207461726765745265663D2241637469766974795F306263696F6866223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A637573746F6D436F6E646974696F6E20747970653D226F7065726174696F6E22206F7065726174696F6E547970653D22726566757365223E3C2F61637469766974693A637573746F6D436F6E646974696F6E3E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A2020202020203C636F6E646974696F6E45787072657373696F6E207873693A747970653D2274466F726D616C45787072657373696F6E223E3C215B43444154415B247B6F7065726174696F6E54797065203D3D2027726566757365277D5D5D3E3C2F636F6E646974696F6E45787072657373696F6E3E0A202020203C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F3165696C647A7022206E616D653D22E5908CE6848FE4BABAE695B0E5B08FE4BA8E3430252220736F757263655265663D22476174657761795F31633066687A6622207461726765745265663D2241637469766974795F306263696F6866223E0A2020202020203C636F6E646974696F6E45787072657373696F6E207873693A747970653D2274466F726D616C45787072657373696F6E223E3C215B43444154415B247B6D756C74694167726565436F756E74202F206D756C74694E756D4F66496E7374616E636573203C3D20302E347D5D5D3E3C2F636F6E646974696F6E45787072657373696F6E3E0A202020203C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F3063326475367022206E616D653D22E68B92E7BB9D2220736F757263655265663D2241637469766974795F31656E68356B6522207461726765745265663D2241637469766974795F306263696F6866223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A637573746F6D436F6E646974696F6E20747970653D226F7065726174696F6E22206F7065726174696F6E547970653D22726566757365223E3C2F61637469766974693A637573746F6D436F6E646974696F6E3E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A2020202020203C636F6E646974696F6E45787072657373696F6E207873693A747970653D2274466F726D616C45787072657373696F6E223E3C215B43444154415B247B6F7065726174696F6E54797065203D3D2027726566757365277D5D5D3E3C2F636F6E646974696F6E45787072657373696F6E3E0A202020203C2F62706D6E323A73657175656E6365466C6F773E0A20203C2F62706D6E323A70726F636573733E0A20203C62706D6E64693A42504D4E4469616772616D2069643D2242504D4E4469616772616D5F666C6F77436F6E7472616374223E0A202020203C62706D6E64693A42504D4E506C616E652062706D6E456C656D656E743D22666C6F77436F6E7472616374222069643D2242504D4E506C616E655F666C6F77436F6E7472616374223E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D224576656E745F306B6A70396369222069643D2242504D4E53686170655F4576656E745F306B6A70396369223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2233362E30222077696474683D2233362E302220783D2234322E302220793D223330322E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D2241637469766974795F306263696F6866222069643D2242504D4E53686170655F41637469766974795F306263696F6866223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2238302E30222077696474683D223130302E302220783D223133302E302220793D223238302E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D2241637469766974795F3035336F6D3939222069643D2242504D4E53686170655F41637469766974795F3035336F6D3939223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2238302E30222077696474683D223130302E302220783D223239302E302220793D223238302E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D22476174657761795F3038353538696A222069643D2242504D4E53686170655F476174657761795F3038353538696A223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2235302E30222077696474683D2235302E302220783D223435352E302220793D223239352E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D2241637469766974795F307A3930616C69222069643D2242504D4E53686170655F41637469766974795F307A3930616C69223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2238302E30222077696474683D223130302E302220783D223537302E302220793D223137302E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D2241637469766974795F3137393330616A222069643D2242504D4E53686170655F41637469766974795F3137393330616A223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2238302E30222077696474683D223130302E302220783D223537302E302220793D223238302E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D22476174657761795F30796A79713068222069643D2242504D4E53686170655F476174657761795F30796A79713068223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2235302E30222077696474683D2235302E302220783D223733352E302220793D223239352E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D2241637469766974795F30786574633875222069643D2242504D4E53686170655F41637469766974795F30786574633875223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2238302E30222077696474683D223130302E302220783D223837302E302220793D223238302E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D2241637469766974795F30647667346869222069643D2242504D4E53686170655F41637469766974795F30647667346869223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2238302E30222077696474683D223130302E302220783D223837302E302220793D223436302E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D2241637469766974795F30786F31346E73222069643D2242504D4E53686170655F41637469766974795F30786F31346E73223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2238302E30222077696474683D223130302E302220783D223731302E302220793D223436302E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D22476174657761795F31633066687A66222069643D2242504D4E53686170655F476174657761795F31633066687A66223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2235302E30222077696474683D2235302E302220783D223535352E302220793D223437352E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D2241637469766974795F31656E68356B65222069643D2242504D4E53686170655F41637469766974795F31656E68356B65223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2238302E30222077696474683D223130302E302220783D223133302E302220793D223436302E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D224576656E745F30383570366479222069643D2242504D4E53686170655F4576656E745F30383570366479223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2233362E30222077696474683D2233362E302220783D2234322E302220793D223438322E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F30656D7834307A222069643D2242504D4E456467655F466C6F775F30656D7834307A223E0A20202020202020203C6F6D6764693A776179706F696E7420783D2237382E302220793D223332302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223133302E302220793D223332302E30223E3C2F6F6D6764693A776179706F696E743E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F30647766397974222069643D2242504D4E456467655F466C6F775F30647766397974223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223233302E302220793D223332302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223239302E302220793D223332302E30223E3C2F6F6D6764693A776179706F696E743E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F3076357A6A336B222069643D2242504D4E456467655F466C6F775F3076357A6A336B223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223339302E302220793D223332302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223435352E302220793D223332302E30223E3C2F6F6D6764693A776179706F696E743E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F3164357568636F222069643D2242504D4E456467655F466C6F775F3164357568636F223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223438302E302220793D223239352E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223438302E302220793D223231302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223537302E302220793D223231302E30223E3C2F6F6D6764693A776179706F696E743E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F31716839637030222069643D2242504D4E456467655F466C6F775F31716839637030223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223530352E302220793D223332302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223537302E302220793D223332302E30223E3C2F6F6D6764693A776179706F696E743E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F316E3563786667222069643D2242504D4E456467655F466C6F775F316E3563786667223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223637302E302220793D223332302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223733352E302220793D223332302E30223E3C2F6F6D6764693A776179706F696E743E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F31306866397935222069643D2242504D4E456467655F466C6F775F31306866397935223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223637302E302220793D223231302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223736302E302220793D223231302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223736302E302220793D223239352E30223E3C2F6F6D6764693A776179706F696E743E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F30767435676F72222069643D2242504D4E456467655F466C6F775F30767435676F72223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223738352E302220793D223332302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223837302E302220793D223332302E30223E3C2F6F6D6764693A776179706F696E743E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F30697466646235222069643D2242504D4E456467655F466C6F775F30697466646235223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223934302E302220793D223336302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223934302E302220793D223436302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C62706D6E64693A42504D4E4C6162656C3E0A202020202020202020203C6F6D6764633A426F756E6473206865696768743D2231342E30222077696474683D2232332E302220783D223934342E302220793D223430372E30223E3C2F6F6D6764633A426F756E64733E0A20202020202020203C2F62706D6E64693A42504D4E4C6162656C3E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F30797634756270222069643D2242504D4E456467655F466C6F775F30797634756270223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223837302E302220793D223530302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223831302E302220793D223530302E30223E3C2F6F6D6764693A776179706F696E743E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F30696979646970222069643D2242504D4E456467655F466C6F775F30696979646970223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223731302E302220793D223530302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223630352E302220793D223530302E30223E3C2F6F6D6764693A776179706F696E743E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F3038653538356A222069643D2242504D4E456467655F466C6F775F3038653538356A223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223535352E302220793D223530302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223233302E302220793D223530302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C62706D6E64693A42504D4E4C6162656C3E0A202020202020202020203C6F6D6764633A426F756E6473206865696768743D2231342E30222077696474683D2238392E302220783D223334382E302220793D223438322E30223E3C2F6F6D6764633A426F756E64733E0A20202020202020203C2F62706D6E64693A42504D4E4C6162656C3E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F31696E77686465222069643D2242504D4E456467655F466C6F775F31696E77686465223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223133302E302220793D223530302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D2237382E302220793D223530302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C62706D6E64693A42504D4E4C6162656C3E0A202020202020202020203C6F6D6764633A426F756E6473206865696768743D2231342E30222077696474683D2232332E302220783D2239332E302220793D223438322E30223E3C2F6F6D6764633A426F756E64733E0A20202020202020203C2F62706D6E64693A42504D4E4C6162656C3E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F306A3067793274222069643D2242504D4E456467655F466C6F775F306A3067793274223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223839302E302220793D223336302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223839302E302220793D223339302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223231302E302220793D223339302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223231302E302220793D223336302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C62706D6E64693A42504D4E4C6162656C3E0A202020202020202020203C6F6D6764633A426F756E6473206865696768743D2231342E30222077696474683D2232322E302220783D223533392E302220793D223337322E30223E3C2F6F6D6764633A426F756E64733E0A20202020202020203C2F62706D6E64693A42504D4E4C6162656C3E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F3165696C647A70222069643D2242504D4E456467655F466C6F775F3165696C647A70223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223538302E302220793D223437352E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223538302E302220793D223433302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223138302E302220793D223433302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223138302E302220793D223336302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C62706D6E64693A42504D4E4C6162656C3E0A202020202020202020203C6F6D6764633A426F756E6473206865696768743D2231342E30222077696474683D2238392E302220783D223333362E302220793D223431322E30223E3C2F6F6D6764633A426F756E64733E0A20202020202020203C2F62706D6E64693A42504D4E4C6162656C3E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F30633264753670222069643D2242504D4E456467655F466C6F775F30633264753670223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223135302E302220793D223436302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223135302E302220793D223336302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C62706D6E64693A42504D4E4C6162656C3E0A202020202020202020203C6F6D6764633A426F756E6473206865696768743D2231342E30222077696474683D2232322E302220783D223135342E302220793D223430372E30223E3C2F6F6D6764633A426F756E64733E0A20202020202020203C2F62706D6E64693A42504D4E4C6162656C3E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A202020203C2F62706D6E64693A42504D4E506C616E653E0A20203C2F62706D6E64693A42504D4E4469616772616D3E0A3C2F62706D6E323A646566696E6974696F6E733E, 0); -INSERT INTO `ACT_GE_BYTEARRAY` VALUES ('b132e582-3175-11ec-9438-f20b812c0662', 1, 'flowConsign.bpmn', 'b132e581-3175-11ec-9438-f20b812c0662', 0x3C3F786D6C2076657273696F6E3D22312E302220656E636F64696E673D225554462D38223F3E0A3C62706D6E323A646566696E6974696F6E7320786D6C6E733D22687474703A2F2F7777772E6F6D672E6F72672F737065632F42504D4E2F32303130303532342F4D4F44454C2220786D6C6E733A62706D6E323D22687474703A2F2F7777772E6F6D672E6F72672F737065632F42504D4E2F32303130303532342F4D4F44454C2220786D6C6E733A7873693D22687474703A2F2F7777772E77332E6F72672F323030312F584D4C536368656D612D696E7374616E63652220786D6C6E733A7873643D22687474703A2F2F7777772E77332E6F72672F323030312F584D4C536368656D612220786D6C6E733A61637469766974693D22687474703A2F2F61637469766974692E6F72672F62706D6E2220786D6C6E733A62706D6E64693D22687474703A2F2F7777772E6F6D672E6F72672F737065632F42504D4E2F32303130303532342F44492220786D6C6E733A6F6D6764633D22687474703A2F2F7777772E6F6D672E6F72672F737065632F44442F32303130303532342F44432220786D6C6E733A6F6D6764693D22687474703A2F2F7777772E6F6D672E6F72672F737065632F44442F32303130303532342F44492220786D6C6E733A64633D22687474703A2F2F7777772E6F6D672E6F72672F737065632F44442F32303130303532342F44432220786D6C6E733A64693D22687474703A2F2F7777772E6F6D672E6F72672F737065632F44442F32303130303532342F44492220747970654C616E67756167653D22687474703A2F2F7777772E77332E6F72672F323030312F584D4C536368656D61222065787072657373696F6E4C616E67756167653D22687474703A2F2F7777772E77332E6F72672F313939392F585061746822207461726765744E616D6573706163653D22687474703A2F2F61637469766974692E6F72672F62706D6E222069643D226469616772616D5F666C6F77436F6E7369676E22207873693A736368656D614C6F636174696F6E3D22687474703A2F2F7777772E6F6D672E6F72672F737065632F42504D4E2F32303130303532342F4D4F44454C2042504D4E32302E787364223E0A20203C62706D6E323A70726F636573732069643D22666C6F77436F6E7369676E22206E616D653D22E5A49AE5AE9EE4BE8BE58AA0E7ADBE2220697345786563757461626C653D2274727565223E0A202020203C657874656E73696F6E456C656D656E74733E0A2020202020203C61637469766974693A657865637574696F6E4C697374656E6572206576656E743D22656E642220636C6173733D22636F6D2E666C6F772E64656D6F2E636F6D6D6F6E2E666C6F772E6C697374656E65722E557064617465466C6F775374617475734C697374656E6572223E3C2F61637469766974693A657865637574696F6E4C697374656E65723E0A202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C62706D6E323A73746172744576656E742069643D224576656E745F30696A78367971223E0A2020202020203C62706D6E323A6F7574676F696E673E466C6F775F303569676E6E613C2F62706D6E323A6F7574676F696E673E0A202020203C2F62706D6E323A73746172744576656E743E0A202020203C62706D6E323A757365725461736B2069643D2241637469766974795F313032326E747922206E616D653D22E5BD95E585A5222061637469766974693A61737369676E65653D22247B7374617274557365724E616D657D222061637469766974693A666F726D4B65793D227B2671756F743B666F726D49642671756F743B3A2671756F743B313434303934353431313335343236373634382671756F743B2C2671756F743B726561644F6E6C792671756F743B3A66616C73652C2671756F743B67726F7570547970652671756F743B3A2671756F743B444550542671756F743B7D223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A6F7065726174696F6E4C6973743E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313334383132303222206C6162656C3D22E4BC9AE7ADBE2220747970653D226D756C74695F7369676E222073686F774F726465723D2230223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313335353833333422206C6162656C3D22E58AA0E7ADBE2220747970653D226D756C74695F636F6E7369676E222073686F774F726465723D2231223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A20202020202020203C2F61637469766974693A6F7065726174696F6E4C6973743E0A20202020202020203C61637469766974693A7661726961626C654C6973743E3C2F61637469766974693A7661726961626C654C6973743E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C2F62706D6E323A757365725461736B3E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F303569676E6E612220736F757263655265663D224576656E745F30696A7836797122207461726765745265663D2241637469766974795F313032326E7479223E3C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A757365725461736B2069643D2241637469766974795F30756D79706F6722206E616D653D22E4BC9AE7ADBE222061637469766974693A61737369676E65653D22247B61737369676E65657D222061637469766974693A666F726D4B65793D227B2671756F743B666F726D49642671756F743B3A2671756F743B313434303934353431313335343236373634382671756F743B2C2671756F743B726561644F6E6C792671756F743B3A747275652C2671756F743B67726F7570547970652671756F743B3A2671756F743B444550542671756F743B7D223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A6F7065726174696F6E4C6973743E3C2F61637469766974693A6F7065726174696F6E4C6973743E0A20202020202020203C61637469766974693A7661726961626C654C6973743E3C2F61637469766974693A7661726961626C654C6973743E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A2020202020203C6D756C7469496E7374616E63654C6F6F7043686172616374657269737469637320697353657175656E7469616C3D2266616C7365222061637469766974693A636F6C6C656374696F6E3D2261737369676E65654C697374222061637469766974693A656C656D656E745661726961626C653D2261737369676E6565223E0A20202020202020203C636F6D706C6574696F6E436F6E646974696F6E3E247B6E724F66496E7374616E636573203D3D206E724F66436F6D706C65746564496E7374616E6365737D3C2F636F6D706C6574696F6E436F6E646974696F6E3E0A2020202020203C2F6D756C7469496E7374616E63654C6F6F704368617261637465726973746963733E0A202020203C2F62706D6E323A757365725461736B3E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F31387A6C3769392220736F757263655265663D2241637469766974795F313032326E747922207461726765745265663D2241637469766974795F30756D79706F67223E3C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A757365725461736B2069643D2241637469766974795F3168396464387422206E616D653D22E5AEA1E689B9222061637469766974693A61737369676E65653D2261646D696E222061637469766974693A666F726D4B65793D227B2671756F743B666F726D49642671756F743B3A2671756F743B313434303934353431313335343236373634382671756F743B2C2671756F743B726561644F6E6C792671756F743B3A747275652C2671756F743B67726F7570547970652671756F743B3A2671756F743B444550542671756F743B7D223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A6F7065726174696F6E4C6973743E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313339363938343222206C6162656C3D22E5908CE6848F2220747970653D226167726565222073686F774F726465723D2230223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313339373531323022206C6162656C3D22E68B92E7BB9D2220747970653D22726566757365222073686F774F726465723D2231223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A20202020202020203C2F61637469766974693A6F7065726174696F6E4C6973743E0A20202020202020203C61637469766974693A7661726961626C654C6973743E3C2F61637469766974693A7661726961626C654C6973743E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C2F62706D6E323A757365725461736B3E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F313332613177652220736F757263655265663D2241637469766974795F30756D79706F6722207461726765745265663D2241637469766974795F31683964643874223E3C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A656E644576656E742069643D224576656E745F30626E356E6C31223E0A2020202020203C62706D6E323A696E636F6D696E673E466C6F775F317734386D65313C2F62706D6E323A696E636F6D696E673E0A202020203C2F62706D6E323A656E644576656E743E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F317734386D653122206E616D653D22E5908CE6848F2220736F757263655265663D2241637469766974795F3168396464387422207461726765745265663D224576656E745F30626E356E6C31223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A637573746F6D436F6E646974696F6E20747970653D226F7065726174696F6E22206F7065726174696F6E547970653D226167726565223E3C2F61637469766974693A637573746F6D436F6E646974696F6E3E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A2020202020203C636F6E646974696F6E45787072657373696F6E207873693A747970653D2274466F726D616C45787072657373696F6E223E3C215B43444154415B247B6F7065726174696F6E54797065203D3D20276167726565277D5D5D3E3C2F636F6E646974696F6E45787072657373696F6E3E0A202020203C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F31707632617A7422206E616D653D22E68B92E7BB9D2220736F757263655265663D2241637469766974795F3168396464387422207461726765745265663D2241637469766974795F313032326E7479223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A637573746F6D436F6E646974696F6E20747970653D226F7065726174696F6E22206F7065726174696F6E547970653D22726566757365223E3C2F61637469766974693A637573746F6D436F6E646974696F6E3E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A2020202020203C636F6E646974696F6E45787072657373696F6E207873693A747970653D2274466F726D616C45787072657373696F6E223E3C215B43444154415B247B6F7065726174696F6E54797065203D3D2027726566757365277D5D5D3E3C2F636F6E646974696F6E45787072657373696F6E3E0A202020203C2F62706D6E323A73657175656E6365466C6F773E0A20203C2F62706D6E323A70726F636573733E0A20203C62706D6E64693A42504D4E4469616772616D2069643D2242504D4E4469616772616D5F666C6F77436F6E7369676E223E0A202020203C62706D6E64693A42504D4E506C616E652062706D6E456C656D656E743D22666C6F77436F6E7369676E222069643D2242504D4E506C616E655F666C6F77436F6E7369676E223E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D224576656E745F30696A78367971222069643D2242504D4E53686170655F4576656E745F30696A78367971223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2233362E30222077696474683D2233362E302220783D223135322E302220793D223237322E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D2241637469766974795F313032326E7479222069643D2242504D4E53686170655F41637469766974795F313032326E7479223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2238302E30222077696474683D223130302E302220783D223234302E302220793D223235302E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D2241637469766974795F30756D79706F67222069643D2242504D4E53686170655F41637469766974795F30756D79706F67223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2238302E30222077696474683D223130302E302220783D223430302E302220793D223235302E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D2241637469766974795F31683964643874222069643D2242504D4E53686170655F41637469766974795F31683964643874223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2238302E30222077696474683D223130302E302220783D223536302E302220793D223235302E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D224576656E745F30626E356E6C31222069643D2242504D4E53686170655F4576656E745F30626E356E6C31223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2233362E30222077696474683D2233362E302220783D223732322E302220793D223237322E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F317734386D6531222069643D2242504D4E456467655F466C6F775F317734386D6531223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223636302E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223732322E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C62706D6E64693A42504D4E4C6162656C3E0A202020202020202020203C6F6D6764633A426F756E6473206865696768743D2231342E30222077696474683D2232332E302220783D223638302E302220793D223237322E30223E3C2F6F6D6764633A426F756E64733E0A20202020202020203C2F62706D6E64693A42504D4E4C6162656C3E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F31333261317765222069643D2242504D4E456467655F466C6F775F31333261317765223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223530302E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223536302E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F31387A6C376939222069643D2242504D4E456467655F466C6F775F31387A6C376939223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223334302E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223430302E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F303569676E6E61222069643D2242504D4E456467655F466C6F775F303569676E6E61223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223138382E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223234302E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F31707632617A74222069643D2242504D4E456467655F466C6F775F31707632617A74223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223631302E302220793D223235302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223631302E302220793D223232302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223239302E302220793D223232302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223239302E302220793D223235302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C62706D6E64693A42504D4E4C6162656C3E0A202020202020202020203C6F6D6764633A426F756E6473206865696768743D2231342E30222077696474683D2232322E302220783D223433392E302220793D223230322E30223E3C2F6F6D6764633A426F756E64733E0A20202020202020203C2F62706D6E64693A42504D4E4C6162656C3E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A202020203C2F62706D6E64693A42504D4E506C616E653E0A20203C2F62706D6E64693A42504D4E4469616772616D3E0A3C2F62706D6E323A646566696E6974696F6E733E, 0); -INSERT INTO `ACT_GE_BYTEARRAY` VALUES ('b28a3825-3175-11ec-9438-f20b812c0662', 1, 'flowTranslate.bpmn', 'b28a3824-3175-11ec-9438-f20b812c0662', 0x3C3F786D6C2076657273696F6E3D22312E302220656E636F64696E673D225554462D38223F3E0A3C62706D6E323A646566696E6974696F6E7320786D6C6E733D22687474703A2F2F7777772E6F6D672E6F72672F737065632F42504D4E2F32303130303532342F4D4F44454C2220786D6C6E733A62706D6E323D22687474703A2F2F7777772E6F6D672E6F72672F737065632F42504D4E2F32303130303532342F4D4F44454C2220786D6C6E733A7873693D22687474703A2F2F7777772E77332E6F72672F323030312F584D4C536368656D612D696E7374616E63652220786D6C6E733A7873643D22687474703A2F2F7777772E77332E6F72672F323030312F584D4C536368656D612220786D6C6E733A61637469766974693D22687474703A2F2F61637469766974692E6F72672F62706D6E2220786D6C6E733A62706D6E64693D22687474703A2F2F7777772E6F6D672E6F72672F737065632F42504D4E2F32303130303532342F44492220786D6C6E733A6F6D6764633D22687474703A2F2F7777772E6F6D672E6F72672F737065632F44442F32303130303532342F44432220786D6C6E733A6F6D6764693D22687474703A2F2F7777772E6F6D672E6F72672F737065632F44442F32303130303532342F44492220786D6C6E733A64633D22687474703A2F2F7777772E6F6D672E6F72672F737065632F44442F32303130303532342F44432220786D6C6E733A64693D22687474703A2F2F7777772E6F6D672E6F72672F737065632F44442F32303130303532342F44492220747970654C616E67756167653D22687474703A2F2F7777772E77332E6F72672F323030312F584D4C536368656D61222065787072657373696F6E4C616E67756167653D22687474703A2F2F7777772E77332E6F72672F313939392F585061746822207461726765744E616D6573706163653D22687474703A2F2F61637469766974692E6F72672F62706D6E222069643D226469616772616D5F666C6F775472616E736C61746522207873693A736368656D614C6F636174696F6E3D22687474703A2F2F7777772E6F6D672E6F72672F737065632F42504D4E2F32303130303532342F4D4F44454C2042504D4E32302E787364223E0A20203C62706D6E323A70726F636573732069643D22666C6F775472616E736C61746522206E616D653D22E8BDACE58A9EE6B581E7A88B2220697345786563757461626C653D2274727565223E0A202020203C657874656E73696F6E456C656D656E74733E0A2020202020203C61637469766974693A657865637574696F6E4C697374656E6572206576656E743D22656E642220636C6173733D22636F6D2E666C6F772E64656D6F2E636F6D6D6F6E2E666C6F772E6C697374656E65722E557064617465466C6F775374617475734C697374656E6572223E3C2F61637469766974693A657865637574696F6E4C697374656E65723E0A202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C62706D6E323A73746172744576656E742069643D224576656E745F31357A6F6D7466223E0A2020202020203C62706D6E323A6F7574676F696E673E466C6F775F31756E7635326A3C2F62706D6E323A6F7574676F696E673E0A202020203C2F62706D6E323A73746172744576656E743E0A202020203C62706D6E323A757365725461736B2069643D2241637469766974795F3063366E78646D22206E616D653D22E5BD95E585A5222061637469766974693A61737369676E65653D22247B7374617274557365724E616D657D222061637469766974693A666F726D4B65793D227B2671756F743B666F726D49642671756F743B3A2671756F743B313434303934353431313335343236373634382671756F743B2C2671756F743B726561644F6E6C792671756F743B3A66616C73652C2671756F743B67726F7570547970652671756F743B3A2671756F743B444550542671756F743B7D223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A6F7065726174696F6E4C6973743E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313431323835353222206C6162656C3D22E68F90E4BAA42220747970653D226167726565222073686F774F726465723D2230223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A20202020202020203C2F61637469766974693A6F7065726174696F6E4C6973743E0A20202020202020203C61637469766974693A7661726961626C654C6973743E3C2F61637469766974693A7661726961626C654C6973743E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C2F62706D6E323A757365725461736B3E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F31756E7635326A2220736F757263655265663D224576656E745F31357A6F6D746622207461726765745265663D2241637469766974795F3063366E78646D223E3C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A757365725461736B2069643D2241637469766974795F3077777369397722206E616D653D22E8BDACE58A9E222061637469766974693A61737369676E65653D2261646D696E222061637469766974693A666F726D4B65793D227B2671756F743B666F726D49642671756F743B3A2671756F743B313434303934353431313335343236373634382671756F743B2C2671756F743B726561644F6E6C792671756F743B3A747275652C2671756F743B67726F7570547970652671756F743B3A2671756F743B444550542671756F743B7D223E0A2020202020203C657874656E73696F6E456C656D656E74733E0A20202020202020203C61637469766974693A6F7065726174696F6E4C6973743E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313431343033303022206C6162656C3D22E5908CE6848F2220747970653D226167726565222073686F774F726465723D2230223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A202020202020202020203C61637469766974693A666F726D4F7065726174696F6E2069643D223136333437313431343434343922206C6162656C3D22E8BDACE58A9E2220747970653D227472616E73666572222073686F774F726465723D2231223E3C2F61637469766974693A666F726D4F7065726174696F6E3E0A20202020202020203C2F61637469766974693A6F7065726174696F6E4C6973743E0A20202020202020203C61637469766974693A7661726961626C654C6973743E3C2F61637469766974693A7661726961626C654C6973743E0A2020202020203C2F657874656E73696F6E456C656D656E74733E0A202020203C2F62706D6E323A757365725461736B3E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F317932696835682220736F757263655265663D2241637469766974795F3063366E78646D22207461726765745265663D2241637469766974795F30777773693977223E3C2F62706D6E323A73657175656E6365466C6F773E0A202020203C62706D6E323A656E644576656E742069643D224576656E745F31616D31747561223E0A2020202020203C62706D6E323A696E636F6D696E673E466C6F775F30306F617A366A3C2F62706D6E323A696E636F6D696E673E0A202020203C2F62706D6E323A656E644576656E743E0A202020203C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F30306F617A366A2220736F757263655265663D2241637469766974795F3077777369397722207461726765745265663D224576656E745F31616D31747561223E3C2F62706D6E323A73657175656E6365466C6F773E0A20203C2F62706D6E323A70726F636573733E0A20203C62706D6E64693A42504D4E4469616772616D2069643D2242504D4E4469616772616D5F666C6F775472616E736C617465223E0A202020203C62706D6E64693A42504D4E506C616E652062706D6E456C656D656E743D22666C6F775472616E736C617465222069643D2242504D4E506C616E655F666C6F775472616E736C617465223E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D224576656E745F31357A6F6D7466222069643D2242504D4E53686170655F4576656E745F31357A6F6D7466223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2233362E30222077696474683D2233362E302220783D223136322E302220793D223237322E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D2241637469766974795F3063366E78646D222069643D2242504D4E53686170655F41637469766974795F3063366E78646D223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2238302E30222077696474683D223130302E302220783D223235302E302220793D223235302E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D2241637469766974795F30777773693977222069643D2242504D4E53686170655F41637469766974795F30777773693977223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2238302E30222077696474683D223130302E302220783D223431302E302220793D223235302E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E53686170652062706D6E456C656D656E743D224576656E745F31616D31747561222069643D2242504D4E53686170655F4576656E745F31616D31747561223E0A20202020202020203C6F6D6764633A426F756E6473206865696768743D2233362E30222077696474683D2233362E302220783D223537322E302220793D223237322E30223E3C2F6F6D6764633A426F756E64733E0A2020202020203C2F62706D6E64693A42504D4E53686170653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F31756E7635326A222069643D2242504D4E456467655F466C6F775F31756E7635326A223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223139382E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223235302E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F31793269683568222069643D2242504D4E456467655F466C6F775F31793269683568223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223335302E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223431302E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A2020202020203C62706D6E64693A42504D4E456467652062706D6E456C656D656E743D22466C6F775F30306F617A366A222069643D2242504D4E456467655F466C6F775F30306F617A366A223E0A20202020202020203C6F6D6764693A776179706F696E7420783D223531302E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A20202020202020203C6F6D6764693A776179706F696E7420783D223537322E302220793D223239302E30223E3C2F6F6D6764693A776179706F696E743E0A2020202020203C2F62706D6E64693A42504D4E456467653E0A202020203C2F62706D6E64693A42504D4E506C616E653E0A20203C2F62706D6E64693A42504D4E4469616772616D3E0A3C2F62706D6E323A646566696E6974696F6E733E, 0); -COMMIT; - --- ---------------------------- --- Table structure for ACT_GE_PROPERTY --- ---------------------------- -DROP TABLE IF EXISTS `ACT_GE_PROPERTY`; -CREATE TABLE `ACT_GE_PROPERTY` ( - `NAME_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL, - `VALUE_` varchar(300) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `REV_` int DEFAULT NULL, - PRIMARY KEY (`NAME_`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_bin; - --- ---------------------------- --- Records of ACT_GE_PROPERTY --- ---------------------------- -BEGIN; -INSERT INTO `ACT_GE_PROPERTY` VALUES ('cfg.execution-related-entities-count', 'false', 1); -INSERT INTO `ACT_GE_PROPERTY` VALUES ('next.dbid', '2501', 2); -INSERT INTO `ACT_GE_PROPERTY` VALUES ('schema.history', 'create(7.1.0-M6)', 1); -INSERT INTO `ACT_GE_PROPERTY` VALUES ('schema.version', '7.1.0-M6', 1); -COMMIT; - --- ---------------------------- --- Table structure for ACT_HI_ACTINST --- ---------------------------- -DROP TABLE IF EXISTS `ACT_HI_ACTINST`; -CREATE TABLE `ACT_HI_ACTINST` ( - `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL, - `PROC_DEF_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL, - `PROC_INST_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL, - `EXECUTION_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL, - `ACT_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL, - `TASK_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `CALL_PROC_INST_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `ACT_NAME_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `ACT_TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL, - `ASSIGNEE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `START_TIME_` datetime(3) NOT NULL, - `END_TIME_` datetime(3) DEFAULT NULL, - `DURATION_` bigint DEFAULT NULL, - `DELETE_REASON_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `TENANT_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT '', - PRIMARY KEY (`ID_`), - KEY `ACT_IDX_HI_ACT_INST_START` (`START_TIME_`), - KEY `ACT_IDX_HI_ACT_INST_END` (`END_TIME_`), - KEY `ACT_IDX_HI_ACT_INST_PROCINST` (`PROC_INST_ID_`,`ACT_ID_`), - KEY `ACT_IDX_HI_ACT_INST_EXEC` (`EXECUTION_ID_`,`ACT_ID_`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_bin; - --- ---------------------------- --- Records of ACT_HI_ACTINST --- ---------------------------- -BEGIN; -INSERT INTO `ACT_HI_ACTINST` VALUES ('01c6f4e1-3185-11ec-9f40-f20b812c0662', 'flowContract:2:7ce26a87-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', 'Gateway_0yjyq0h', NULL, NULL, NULL, 'parallelGateway', NULL, '2021-10-20 17:06:27.187', '2021-10-20 17:06:27.187', 0, NULL, ''); -INSERT INTO `ACT_HI_ACTINST` VALUES ('01c79122-3185-11ec-9f40-f20b812c0662', 'flowContract:2:7ce26a87-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', 'Activity_0xetc8u', '01c79123-3185-11ec-9f40-f20b812c0662', NULL, '财务部审批', 'userTask', 'leaderTJ2', '2021-10-20 17:06:27.191', '2021-10-20 17:07:49.551', 82360, NULL, ''); -INSERT INTO `ACT_HI_ACTINST` VALUES ('04b2d5dc-317b-11ec-9438-f20b812c0662', 'flowTranslate:1:b28cd036-3175-11ec-9438-f20b812c0662', '04b2aec5-317b-11ec-9438-f20b812c0662', '04b2aecb-317b-11ec-9438-f20b812c0662', 'Event_15zomtf', NULL, NULL, NULL, 'startEvent', NULL, '2021-10-20 15:54:57.121', '2021-10-20 15:54:57.121', 0, NULL, ''); -INSERT INTO `ACT_HI_ACTINST` VALUES ('04b2d5dd-317b-11ec-9438-f20b812c0662', 'flowTranslate:1:b28cd036-3175-11ec-9438-f20b812c0662', '04b2aec5-317b-11ec-9438-f20b812c0662', '04b2aecb-317b-11ec-9438-f20b812c0662', 'Activity_0c6nxdm', '04b2d5de-317b-11ec-9438-f20b812c0662', NULL, '录入', 'userTask', 'userD', '2021-10-20 15:54:57.121', '2021-10-20 15:54:57.150', 29, NULL, ''); -INSERT INTO `ACT_HI_ACTINST` VALUES ('04b742b9-317b-11ec-9438-f20b812c0662', 'flowTranslate:1:b28cd036-3175-11ec-9438-f20b812c0662', '04b2aec5-317b-11ec-9438-f20b812c0662', '04b2aecb-317b-11ec-9438-f20b812c0662', 'Activity_0wwsi9w', '04b742ba-317b-11ec-9438-f20b812c0662', NULL, '转办', 'userTask', 'userD', '2021-10-20 15:54:57.150', '2021-10-20 15:55:28.470', 31320, NULL, ''); -INSERT INTO `ACT_HI_ACTINST` VALUES ('17627757-317b-11ec-9438-f20b812c0662', 'flowTranslate:1:b28cd036-3175-11ec-9438-f20b812c0662', '04b2aec5-317b-11ec-9438-f20b812c0662', '04b2aecb-317b-11ec-9438-f20b812c0662', 'Event_1am1tua', NULL, NULL, NULL, 'endEvent', NULL, '2021-10-20 15:55:28.471', '2021-10-20 15:55:28.471', 0, NULL, ''); -INSERT INTO `ACT_HI_ACTINST` VALUES ('190058f3-3184-11ec-ad5a-f20b812c0662', 'flowSubmit:1:ae87c2ad-3175-11ec-9438-f20b812c0662', '190031da-3184-11ec-ad5a-f20b812c0662', '190058f2-3184-11ec-ad5a-f20b812c0662', 'Event_1u4dx3b', NULL, NULL, NULL, 'startEvent', NULL, '2021-10-20 16:59:56.654', '2021-10-20 16:59:56.654', 0, NULL, ''); -INSERT INTO `ACT_HI_ACTINST` VALUES ('19008004-3184-11ec-ad5a-f20b812c0662', 'flowSubmit:1:ae87c2ad-3175-11ec-9438-f20b812c0662', '190031da-3184-11ec-ad5a-f20b812c0662', '190058f2-3184-11ec-ad5a-f20b812c0662', 'Activity_1cs4bi5', '19008005-3184-11ec-ad5a-f20b812c0662', NULL, '报销申请', 'userTask', 'userD', '2021-10-20 16:59:56.655', '2021-10-20 16:59:56.682', 27, NULL, ''); -INSERT INTO `ACT_HI_ACTINST` VALUES ('1904c5d4-3184-11ec-ad5a-f20b812c0662', 'flowSubmit:1:ae87c2ad-3175-11ec-9438-f20b812c0662', '190031da-3184-11ec-ad5a-f20b812c0662', '190058f2-3184-11ec-ad5a-f20b812c0662', 'Activity_04scn2o', '1904c5d5-3184-11ec-ad5a-f20b812c0662', NULL, '部门领导审批', 'userTask', 'leaderTJ', '2021-10-20 16:59:56.683', '2021-10-20 17:00:17.405', 20722, NULL, ''); -INSERT INTO `ACT_HI_ACTINST` VALUES ('255eda1a-3184-11ec-ad5a-f20b812c0662', 'flowSubmit:1:ae87c2ad-3175-11ec-9438-f20b812c0662', '190031da-3184-11ec-ad5a-f20b812c0662', '190058f2-3184-11ec-ad5a-f20b812c0662', 'Gateway_0pur9ce', NULL, NULL, NULL, 'exclusiveGateway', NULL, '2021-10-20 17:00:17.406', '2021-10-20 17:00:17.409', 3, NULL, ''); -INSERT INTO `ACT_HI_ACTINST` VALUES ('255f4f4b-3184-11ec-ad5a-f20b812c0662', 'flowSubmit:1:ae87c2ad-3175-11ec-9438-f20b812c0662', '190031da-3184-11ec-ad5a-f20b812c0662', '190058f2-3184-11ec-ad5a-f20b812c0662', 'Activity_1w23xfe', '255f765c-3184-11ec-ad5a-f20b812c0662', NULL, '总经理审批', 'userTask', 'admin', '2021-10-20 17:00:17.409', '2021-10-20 17:00:40.565', 23156, NULL, ''); -INSERT INTO `ACT_HI_ACTINST` VALUES ('32dedbc4-3185-11ec-9f40-f20b812c0662', 'flowContract:2:7ce26a87-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', 'Activity_0dvg4hi', '32dedbc5-3185-11ec-9f40-f20b812c0662', NULL, '法务部审批', 'userTask', 'leaderLaw', '2021-10-20 17:07:49.552', '2021-10-20 17:08:31.549', 41997, NULL, ''); -INSERT INTO `ACT_HI_ACTINST` VALUES ('332cc9b0-3184-11ec-ad5a-f20b812c0662', 'flowSubmit:1:ae87c2ad-3175-11ec-9438-f20b812c0662', '190031da-3184-11ec-ad5a-f20b812c0662', '190058f2-3184-11ec-ad5a-f20b812c0662', 'Event_04nqfny', NULL, NULL, NULL, 'endEvent', NULL, '2021-10-20 17:00:40.566', '2021-10-20 17:00:40.566', 0, NULL, ''); -INSERT INTO `ACT_HI_ACTINST` VALUES ('4be78cfd-3185-11ec-9f40-f20b812c0662', 'flowContract:2:7ce26a87-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', '4be765e3-3185-11ec-9f40-f20b812c0662', 'Activity_0xo14ns', '4be78cfe-3185-11ec-9f40-f20b812c0662', NULL, '法务部会签', 'userTask', 'admin', '2021-10-20 17:08:31.552', '2021-10-20 17:09:07.159', 35607, NULL, ''); -INSERT INTO `ACT_HI_ACTINST` VALUES ('4be78cff-3185-11ec-9f40-f20b812c0662', 'flowContract:2:7ce26a87-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', '4be765e4-3185-11ec-9f40-f20b812c0662', 'Activity_0xo14ns', '4be78d00-3185-11ec-9f40-f20b812c0662', NULL, '法务部会签', 'userTask', 'userD', '2021-10-20 17:08:31.552', '2021-10-20 17:08:47.915', 16363, NULL, ''); -INSERT INTO `ACT_HI_ACTINST` VALUES ('5b6c8cf3-3183-11ec-ad5a-f20b812c0662', 'flowLeave:4:8e42a9bb-3179-11ec-9438-f20b812c0662', '5b6b546a-3183-11ec-ad5a-f20b812c0662', '5b6c3ed2-3183-11ec-ad5a-f20b812c0662', 'Event_1mmrttw', NULL, NULL, NULL, 'startEvent', NULL, '2021-10-20 16:54:38.596', '2021-10-20 16:54:38.599', 3, NULL, ''); -INSERT INTO `ACT_HI_ACTINST` VALUES ('5b6d7754-3183-11ec-ad5a-f20b812c0662', 'flowLeave:4:8e42a9bb-3179-11ec-9438-f20b812c0662', '5b6b546a-3183-11ec-ad5a-f20b812c0662', '5b6c3ed2-3183-11ec-ad5a-f20b812c0662', 'Activity_1tb8jka', '5b6e61b5-3183-11ec-ad5a-f20b812c0662', NULL, '请假申请', 'userTask', 'userD', '2021-10-20 16:54:38.602', '2021-10-20 16:54:44.797', 6195, NULL, ''); -INSERT INTO `ACT_HI_ACTINST` VALUES ('5f1ebf94-3183-11ec-ad5a-f20b812c0662', 'flowLeave:4:8e42a9bb-3179-11ec-9438-f20b812c0662', '5b6b546a-3183-11ec-ad5a-f20b812c0662', '5b6c3ed2-3183-11ec-ad5a-f20b812c0662', 'Activity_11jr0px', '5f1ee6a5-3183-11ec-ad5a-f20b812c0662', NULL, '部门领导审批', 'userTask', 'leaderTJ', '2021-10-20 16:54:44.797', '2021-10-20 16:55:59.283', 74486, NULL, ''); -INSERT INTO `ACT_HI_ACTINST` VALUES ('6121a93e-3185-11ec-9f40-f20b812c0662', 'flowContract:2:7ce26a87-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', 'Gateway_1c0fhzf', NULL, NULL, NULL, 'exclusiveGateway', NULL, '2021-10-20 17:09:07.165', '2021-10-20 17:09:07.167', 2, NULL, ''); -INSERT INTO `ACT_HI_ACTINST` VALUES ('6121f75f-3185-11ec-9f40-f20b812c0662', 'flowContract:2:7ce26a87-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', 'Activity_1enh5ke', '6121f760-3185-11ec-9f40-f20b812c0662', NULL, '总经理审批', 'userTask', 'leader', '2021-10-20 17:09:07.167', '2021-10-20 17:09:53.026', 45859, NULL, ''); -INSERT INTO `ACT_HI_ACTINST` VALUES ('7c77a5d1-3185-11ec-9f40-f20b812c0662', 'flowContract:2:7ce26a87-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', 'Event_085p6dy', NULL, NULL, NULL, 'endEvent', NULL, '2021-10-20 17:09:53.027', '2021-10-20 17:09:53.027', 0, NULL, ''); -INSERT INTO `ACT_HI_ACTINST` VALUES ('8b85a186-3183-11ec-ad5a-f20b812c0662', 'flowLeave:4:8e42a9bb-3179-11ec-9438-f20b812c0662', '5b6b546a-3183-11ec-ad5a-f20b812c0662', '5b6c3ed2-3183-11ec-ad5a-f20b812c0662', 'Activity_1tb8jka', '8b85a187-3183-11ec-ad5a-f20b812c0662', NULL, '请假申请', 'userTask', 'userD', '2021-10-20 16:55:59.291', '2021-10-20 16:56:19.438', 20147, NULL, ''); -INSERT INTO `ACT_HI_ACTINST` VALUES ('8de9c4e5-3182-11ec-a0b7-f20b812c0662', 'flowLeave:4:8e42a9bb-3179-11ec-9438-f20b812c0662', '8de8b46c-3182-11ec-a0b7-f20b812c0662', '8de976c4-3182-11ec-a0b7-f20b812c0662', 'Event_1mmrttw', NULL, NULL, NULL, 'startEvent', NULL, '2021-10-20 16:48:53.806', '2021-10-20 16:48:53.809', 3, NULL, ''); -INSERT INTO `ACT_HI_ACTINST` VALUES ('8deaaf46-3182-11ec-a0b7-f20b812c0662', 'flowLeave:4:8e42a9bb-3179-11ec-9438-f20b812c0662', '8de8b46c-3182-11ec-a0b7-f20b812c0662', '8de976c4-3182-11ec-a0b7-f20b812c0662', 'Activity_1tb8jka', '8deb99a7-3182-11ec-a0b7-f20b812c0662', NULL, '请假申请', 'userTask', 'userD', '2021-10-20 16:48:53.812', '2021-10-20 16:49:17.586', 23774, NULL, ''); -INSERT INTO `ACT_HI_ACTINST` VALUES ('8ee0e461-3184-11ec-9f40-f20b812c0662', 'flowLeave:6:79b100b1-3184-11ec-9f40-f20b812c0662', '8edf84c8-3184-11ec-9f40-f20b812c0662', '8ee06f30-3184-11ec-9f40-f20b812c0662', 'Event_1mmrttw', NULL, NULL, NULL, 'startEvent', NULL, '2021-10-20 17:03:14.419', '2021-10-20 17:03:14.423', 4, NULL, ''); -INSERT INTO `ACT_HI_ACTINST` VALUES ('8ee243f2-3184-11ec-9f40-f20b812c0662', 'flowLeave:6:79b100b1-3184-11ec-9f40-f20b812c0662', '8edf84c8-3184-11ec-9f40-f20b812c0662', '8ee06f30-3184-11ec-9f40-f20b812c0662', 'Activity_1tb8jka', '8ee35563-3184-11ec-9f40-f20b812c0662', NULL, '请假申请', 'userTask', 'userD', '2021-10-20 17:03:14.428', '2021-10-20 17:03:14.488', 60, NULL, ''); -INSERT INTO `ACT_HI_ACTINST` VALUES ('8eeb6bc1-3184-11ec-9f40-f20b812c0662', 'flowLeave:6:79b100b1-3184-11ec-9f40-f20b812c0662', '8edf84c8-3184-11ec-9f40-f20b812c0662', '8ee06f30-3184-11ec-9f40-f20b812c0662', 'Activity_11jr0px', '8eeb92d2-3184-11ec-9f40-f20b812c0662', NULL, '部门领导审批', 'userTask', 'leaderTJ', '2021-10-20 17:03:14.488', '2021-10-20 17:03:35.209', 20721, NULL, ''); -INSERT INTO `ACT_HI_ACTINST` VALUES ('9787d1c6-3183-11ec-ad5a-f20b812c0662', 'flowLeave:4:8e42a9bb-3179-11ec-9438-f20b812c0662', '5b6b546a-3183-11ec-ad5a-f20b812c0662', '5b6c3ed2-3183-11ec-ad5a-f20b812c0662', 'Activity_11jr0px', '9787d1c7-3183-11ec-ad5a-f20b812c0662', NULL, '部门领导审批', 'userTask', 'leaderTJ', '2021-10-20 16:56:19.438', '2021-10-20 16:56:36.170', 16732, NULL, ''); -INSERT INTO `ACT_HI_ACTINST` VALUES ('9b45ce22-3184-11ec-9f40-f20b812c0662', 'flowLeave:6:79b100b1-3184-11ec-9f40-f20b812c0662', '8edf84c8-3184-11ec-9f40-f20b812c0662', '8ee06f30-3184-11ec-9f40-f20b812c0662', 'Activity_00ibp0u', '9b45ce23-3184-11ec-9f40-f20b812c0662', NULL, 'HR审批', 'userTask', 'userA', '2021-10-20 17:03:35.213', '2021-10-20 17:03:59.166', 23953, NULL, ''); -INSERT INTO `ACT_HI_ACTINST` VALUES ('9c164f36-3182-11ec-a0b7-f20b812c0662', 'flowLeave:4:8e42a9bb-3179-11ec-9438-f20b812c0662', '8de8b46c-3182-11ec-a0b7-f20b812c0662', '8de976c4-3182-11ec-a0b7-f20b812c0662', 'Activity_11jr0px', '9c164f37-3182-11ec-a0b7-f20b812c0662', NULL, '部门领导审批', 'userTask', NULL, '2021-10-20 16:49:17.586', NULL, NULL, NULL, ''); -INSERT INTO `ACT_HI_ACTINST` VALUES ('a18112a7-3183-11ec-ad5a-f20b812c0662', 'flowLeave:4:8e42a9bb-3179-11ec-9438-f20b812c0662', '5b6b546a-3183-11ec-ad5a-f20b812c0662', '5b6c3ed2-3183-11ec-ad5a-f20b812c0662', 'Activity_00ibp0u', 'a18112a8-3183-11ec-ad5a-f20b812c0662', NULL, 'HR审批', 'userTask', 'userA', '2021-10-20 16:56:36.171', '2021-10-20 16:57:52.366', 76195, NULL, ''); -INSERT INTO `ACT_HI_ACTINST` VALUES ('a397dcea-3186-11ec-bf2d-f20b812c0662', 'flowLeave:7:98337350-3186-11ec-bf2d-f20b812c0662', 'a396f281-3186-11ec-bf2d-f20b812c0662', 'a3978ec9-3186-11ec-bf2d-f20b812c0662', 'Event_1mmrttw', NULL, NULL, NULL, 'startEvent', NULL, '2021-10-20 17:18:08.166', '2021-10-20 17:18:08.169', 3, NULL, ''); -INSERT INTO `ACT_HI_ACTINST` VALUES ('a398c74b-3186-11ec-bf2d-f20b812c0662', 'flowLeave:7:98337350-3186-11ec-bf2d-f20b812c0662', 'a396f281-3186-11ec-bf2d-f20b812c0662', 'a3978ec9-3186-11ec-bf2d-f20b812c0662', 'Activity_1tb8jka', 'a399b1ac-3186-11ec-bf2d-f20b812c0662', NULL, '请假申请', 'userTask', 'userD', '2021-10-20 17:18:08.172', '2021-10-20 17:18:08.233', 61, NULL, ''); -INSERT INTO `ACT_HI_ACTINST` VALUES ('a3a2162a-3186-11ec-bf2d-f20b812c0662', 'flowLeave:7:98337350-3186-11ec-bf2d-f20b812c0662', 'a396f281-3186-11ec-bf2d-f20b812c0662', 'a3978ec9-3186-11ec-bf2d-f20b812c0662', 'Activity_11jr0px', 'a3a2162b-3186-11ec-bf2d-f20b812c0662', NULL, '部门领导审批', 'userTask', NULL, '2021-10-20 17:18:08.233', NULL, NULL, NULL, ''); -INSERT INTO `ACT_HI_ACTINST` VALUES ('a98cbe43-3184-11ec-9f40-f20b812c0662', 'flowLeave:6:79b100b1-3184-11ec-9f40-f20b812c0662', '8edf84c8-3184-11ec-9f40-f20b812c0662', '8ee06f30-3184-11ec-9f40-f20b812c0662', 'Event_1c089uo', NULL, NULL, NULL, 'endEvent', NULL, '2021-10-20 17:03:59.166', '2021-10-20 17:03:59.166', 0, NULL, ''); -INSERT INTO `ACT_HI_ACTINST` VALUES ('af5e7e53-69e7-11ec-b9c4-0235bf949cb9', 'flowContract:4:9170b562-69e6-11ec-bb85-0235bf949cb9', 'e214ef91-69e6-11ec-bb85-0235bf949cb9', 'e214ef99-69e6-11ec-bb85-0235bf949cb9', 'Event_085p6dy', NULL, NULL, NULL, 'endEvent', NULL, '2021-12-31 11:13:54.221', '2021-12-31 11:13:54.221', 0, NULL, ''); -INSERT INTO `ACT_HI_ACTINST` VALUES ('ceeba7f9-3183-11ec-ad5a-f20b812c0662', 'flowLeave:4:8e42a9bb-3179-11ec-9438-f20b812c0662', '5b6b546a-3183-11ec-ad5a-f20b812c0662', '5b6c3ed2-3183-11ec-ad5a-f20b812c0662', 'Event_1c089uo', NULL, NULL, NULL, 'endEvent', NULL, '2021-10-20 16:57:52.367', '2021-10-20 16:57:52.367', 0, NULL, ''); -INSERT INTO `ACT_HI_ACTINST` VALUES ('d6434502-69e6-11ec-bb85-0235bf949cb9', 'flowLeave:9:7d23427c-69e6-11ec-bb85-0235bf949cb9', 'd6423389-69e6-11ec-bb85-0235bf949cb9', 'd642f6e1-69e6-11ec-bb85-0235bf949cb9', 'Event_1mmrttw', NULL, NULL, NULL, 'startEvent', NULL, '2021-12-31 11:07:49.977', '2021-12-31 11:07:49.979', 2, NULL, ''); -INSERT INTO `ACT_HI_ACTINST` VALUES ('d6442f63-69e6-11ec-bb85-0235bf949cb9', 'flowLeave:9:7d23427c-69e6-11ec-bb85-0235bf949cb9', 'd6423389-69e6-11ec-bb85-0235bf949cb9', 'd642f6e1-69e6-11ec-bb85-0235bf949cb9', 'Activity_1tb8jka', 'd644f2b4-69e6-11ec-bb85-0235bf949cb9', NULL, '请假申请', 'userTask', 'admin', '2021-12-31 11:07:49.983', '2021-12-31 11:07:50.049', 66, NULL, ''); -INSERT INTO `ACT_HI_ACTINST` VALUES ('d64e68a2-69e6-11ec-bb85-0235bf949cb9', 'flowLeave:9:7d23427c-69e6-11ec-bb85-0235bf949cb9', 'd6423389-69e6-11ec-bb85-0235bf949cb9', 'd642f6e1-69e6-11ec-bb85-0235bf949cb9', 'Activity_11jr0px', 'd64e68a3-69e6-11ec-bb85-0235bf949cb9', NULL, '部门领导审批', 'userTask', NULL, '2021-12-31 11:07:50.050', NULL, NULL, NULL, ''); -INSERT INTO `ACT_HI_ACTINST` VALUES ('dc101a56-69e6-11ec-bb85-0235bf949cb9', 'flowSubmit:4:87e59faf-69e6-11ec-bb85-0235bf949cb9', 'dc101a4d-69e6-11ec-bb85-0235bf949cb9', 'dc101a55-69e6-11ec-bb85-0235bf949cb9', 'Event_1u4dx3b', NULL, NULL, NULL, 'startEvent', NULL, '2021-12-31 11:07:59.708', '2021-12-31 11:07:59.709', 1, NULL, ''); -INSERT INTO `ACT_HI_ACTINST` VALUES ('dc104167-69e6-11ec-bb85-0235bf949cb9', 'flowSubmit:4:87e59faf-69e6-11ec-bb85-0235bf949cb9', 'dc101a4d-69e6-11ec-bb85-0235bf949cb9', 'dc101a55-69e6-11ec-bb85-0235bf949cb9', 'Activity_1cs4bi5', 'dc104168-69e6-11ec-bb85-0235bf949cb9', NULL, '报销申请', 'userTask', 'admin', '2021-12-31 11:07:59.709', '2021-12-31 11:07:59.740', 31, NULL, ''); -INSERT INTO `ACT_HI_ACTINST` VALUES ('dc14fc66-69e6-11ec-bb85-0235bf949cb9', 'flowSubmit:4:87e59faf-69e6-11ec-bb85-0235bf949cb9', 'dc101a4d-69e6-11ec-bb85-0235bf949cb9', 'dc101a55-69e6-11ec-bb85-0235bf949cb9', 'Activity_04scn2o', 'dc14fc67-69e6-11ec-bb85-0235bf949cb9', NULL, '部门领导审批', 'userTask', NULL, '2021-12-31 11:07:59.740', NULL, NULL, NULL, ''); -INSERT INTO `ACT_HI_ACTINST` VALUES ('e21516aa-69e6-11ec-bb85-0235bf949cb9', 'flowContract:4:9170b562-69e6-11ec-bb85-0235bf949cb9', 'e214ef91-69e6-11ec-bb85-0235bf949cb9', 'e214ef99-69e6-11ec-bb85-0235bf949cb9', 'Event_0kjp9ci', NULL, NULL, NULL, 'startEvent', NULL, '2021-12-31 11:08:09.807', '2021-12-31 11:08:09.807', 0, NULL, ''); -INSERT INTO `ACT_HI_ACTINST` VALUES ('e21516ab-69e6-11ec-bb85-0235bf949cb9', 'flowContract:4:9170b562-69e6-11ec-bb85-0235bf949cb9', 'e214ef91-69e6-11ec-bb85-0235bf949cb9', 'e214ef99-69e6-11ec-bb85-0235bf949cb9', 'Activity_0bciohf', 'e21516ac-69e6-11ec-bb85-0235bf949cb9', NULL, '合同录入', 'userTask', 'admin', '2021-12-31 11:08:09.807', '2021-12-31 11:08:09.833', 26, NULL, ''); -INSERT INTO `ACT_HI_ACTINST` VALUES ('e2190e5a-69e6-11ec-bb85-0235bf949cb9', 'flowContract:4:9170b562-69e6-11ec-bb85-0235bf949cb9', 'e214ef91-69e6-11ec-bb85-0235bf949cb9', 'e214ef99-69e6-11ec-bb85-0235bf949cb9', 'Activity_053om99', 'e219356b-69e6-11ec-bb85-0235bf949cb9', NULL, '业务部领导审批', 'userTask', NULL, '2021-12-31 11:08:09.833', '2021-12-31 11:13:54.221', 344388, NULL, ''); -INSERT INTO `ACT_HI_ACTINST` VALUES ('ec6ca59d-3184-11ec-9f40-f20b812c0662', 'flowContract:2:7ce26a87-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', 'Event_0kjp9ci', NULL, NULL, NULL, 'startEvent', NULL, '2021-10-20 17:05:51.363', '2021-10-20 17:05:51.363', 0, NULL, ''); -INSERT INTO `ACT_HI_ACTINST` VALUES ('ec6ca59e-3184-11ec-9f40-f20b812c0662', 'flowContract:2:7ce26a87-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', 'Activity_0bciohf', 'ec6cccaf-3184-11ec-9f40-f20b812c0662', NULL, '合同录入', 'userTask', 'userD', '2021-10-20 17:05:51.363', '2021-10-20 17:05:51.385', 22, NULL, ''); -INSERT INTO `ACT_HI_ACTINST` VALUES ('ec70010d-3184-11ec-9f40-f20b812c0662', 'flowContract:2:7ce26a87-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', 'Activity_053om99', 'ec70010e-3184-11ec-9f40-f20b812c0662', NULL, '业务部领导审批', 'userTask', 'leaderTJ', '2021-10-20 17:05:51.385', '2021-10-20 17:06:05.912', 14527, NULL, ''); -INSERT INTO `ACT_HI_ACTINST` VALUES ('f518a60e-3184-11ec-9f40-f20b812c0662', 'flowContract:2:7ce26a87-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', 'Gateway_08558ij', NULL, NULL, NULL, 'parallelGateway', NULL, '2021-10-20 17:06:05.912', '2021-10-20 17:06:05.913', 1, NULL, ''); -INSERT INTO `ACT_HI_ACTINST` VALUES ('f518f430-3184-11ec-9f40-f20b812c0662', 'flowContract:2:7ce26a87-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', 'Activity_0z90ali', 'f518f431-3184-11ec-9f40-f20b812c0662', NULL, '工程部审批', 'userTask', 'admin', '2021-10-20 17:06:05.914', '2021-10-20 17:06:27.187', 21273, NULL, ''); -INSERT INTO `ACT_HI_ACTINST` VALUES ('f518f432-3184-11ec-9f40-f20b812c0662', 'flowContract:2:7ce26a87-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'f518f42f-3184-11ec-9f40-f20b812c0662', 'Activity_17930aj', 'f518f433-3184-11ec-9f40-f20b812c0662', NULL, '造价部审批', 'userTask', 'admin', '2021-10-20 17:06:05.914', '2021-10-20 17:06:20.906', 14992, NULL, ''); -INSERT INTO `ACT_HI_ACTINST` VALUES ('fe088d4b-3184-11ec-9f40-f20b812c0662', 'flowContract:2:7ce26a87-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'f518f42f-3184-11ec-9f40-f20b812c0662', 'Gateway_0yjyq0h', NULL, NULL, NULL, 'parallelGateway', NULL, '2021-10-20 17:06:20.906', '2021-10-20 17:06:20.907', 1, NULL, ''); -COMMIT; - --- ---------------------------- --- Table structure for ACT_HI_ATTACHMENT --- ---------------------------- -DROP TABLE IF EXISTS `ACT_HI_ATTACHMENT`; -CREATE TABLE `ACT_HI_ATTACHMENT` ( - `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL, - `REV_` int DEFAULT NULL, - `USER_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `NAME_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `DESCRIPTION_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `TASK_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `PROC_INST_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `URL_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `CONTENT_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `TIME_` datetime(3) DEFAULT NULL, - PRIMARY KEY (`ID_`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_bin; - --- ---------------------------- --- Table structure for ACT_HI_COMMENT --- ---------------------------- -DROP TABLE IF EXISTS `ACT_HI_COMMENT`; -CREATE TABLE `ACT_HI_COMMENT` ( - `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL, - `TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `TIME_` datetime(3) NOT NULL, - `USER_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `TASK_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `PROC_INST_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `ACTION_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `MESSAGE_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `FULL_MSG_` longblob, - PRIMARY KEY (`ID_`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_bin; - --- ---------------------------- --- Records of ACT_HI_COMMENT --- ---------------------------- -BEGIN; -INSERT INTO `ACT_HI_COMMENT` VALUES ('108a73b2-317b-11ec-9438-f20b812c0662', 'event', '2021-10-20 15:55:16.989', 'userD', '04b742ba-317b-11ec-9438-f20b812c0662', NULL, 'AddUserLink', 'userD_|_assignee', NULL); -COMMIT; - --- ---------------------------- --- Table structure for ACT_HI_DETAIL --- ---------------------------- -DROP TABLE IF EXISTS `ACT_HI_DETAIL`; -CREATE TABLE `ACT_HI_DETAIL` ( - `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL, - `TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL, - `PROC_INST_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `EXECUTION_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `TASK_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `ACT_INST_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `NAME_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL, - `VAR_TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `REV_` int DEFAULT NULL, - `TIME_` datetime(3) NOT NULL, - `BYTEARRAY_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `DOUBLE_` double DEFAULT NULL, - `LONG_` bigint DEFAULT NULL, - `TEXT_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `TEXT2_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - PRIMARY KEY (`ID_`), - KEY `ACT_IDX_HI_DETAIL_PROC_INST` (`PROC_INST_ID_`), - KEY `ACT_IDX_HI_DETAIL_ACT_INST` (`ACT_INST_ID_`), - KEY `ACT_IDX_HI_DETAIL_TIME` (`TIME_`), - KEY `ACT_IDX_HI_DETAIL_NAME` (`NAME_`), - KEY `ACT_IDX_HI_DETAIL_TASK_ID` (`TASK_ID_`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_bin; - --- ---------------------------- --- Records of ACT_HI_DETAIL --- ---------------------------- -BEGIN; -INSERT INTO `ACT_HI_DETAIL` VALUES ('01c60a7c-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', 'f518f431-3184-11ec-9f40-f20b812c0662', NULL, 'operationType', 'string', 1, '2021-10-20 17:06:27.181', NULL, NULL, NULL, 'agree', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('01c6a6bd-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'operationType', 'string', 1, '2021-10-20 17:06:27.185', NULL, NULL, NULL, 'agree', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('01c6a6be-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'deptPostLeader', 'string', 1, '2021-10-20 17:06:27.185', NULL, NULL, NULL, '1440964519391137792', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('01c6cdcf-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'startUserName', 'string', 1, '2021-10-20 17:06:27.186', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('01c6cdd0-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'initiator', 'string', 1, '2021-10-20 17:06:27.186', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('01c79125-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', '01c79123-3185-11ec-9f40-f20b812c0662', NULL, 'startUserName', 'string', 0, '2021-10-20 17:06:27.191', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('01c7b837-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', '01c79123-3185-11ec-9f40-f20b812c0662', NULL, 'initiator', 'string', 0, '2021-10-20 17:06:27.192', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('01c7b839-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', '01c79123-3185-11ec-9f40-f20b812c0662', NULL, 'operationType', 'string', 0, '2021-10-20 17:06:27.192', NULL, NULL, NULL, 'agree', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('01c7b83b-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', '01c79123-3185-11ec-9f40-f20b812c0662', NULL, 'deptPostLeader', 'string', 0, '2021-10-20 17:06:27.192', NULL, NULL, NULL, '1440964519391137792', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('04b2aec8-317b-11ec-9438-f20b812c0662', 'VariableUpdate', '04b2aec5-317b-11ec-9438-f20b812c0662', '04b2aec5-317b-11ec-9438-f20b812c0662', NULL, NULL, 'startUserName', 'string', 0, '2021-10-20 15:54:57.120', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('04b2aeca-317b-11ec-9438-f20b812c0662', 'VariableUpdate', '04b2aec5-317b-11ec-9438-f20b812c0662', '04b2aec5-317b-11ec-9438-f20b812c0662', NULL, NULL, 'initiator', 'string', 0, '2021-10-20 15:54:57.120', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('04b2fcf0-317b-11ec-9438-f20b812c0662', 'VariableUpdate', '04b2aec5-317b-11ec-9438-f20b812c0662', '04b2aecb-317b-11ec-9438-f20b812c0662', '04b2d5de-317b-11ec-9438-f20b812c0662', NULL, 'startUserName', 'string', 0, '2021-10-20 15:54:57.122', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('04b2fcf2-317b-11ec-9438-f20b812c0662', 'VariableUpdate', '04b2aec5-317b-11ec-9438-f20b812c0662', '04b2aecb-317b-11ec-9438-f20b812c0662', '04b2d5de-317b-11ec-9438-f20b812c0662', NULL, 'initiator', 'string', 0, '2021-10-20 15:54:57.122', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('04b63144-317b-11ec-9438-f20b812c0662', 'VariableUpdate', '04b2aec5-317b-11ec-9438-f20b812c0662', '04b2aecb-317b-11ec-9438-f20b812c0662', '04b2d5de-317b-11ec-9438-f20b812c0662', NULL, 'operationType', 'string', 0, '2021-10-20 15:54:57.143', NULL, NULL, NULL, 'agree', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('04b6f496-317b-11ec-9438-f20b812c0662', 'VariableUpdate', '04b2aec5-317b-11ec-9438-f20b812c0662', '04b2aec5-317b-11ec-9438-f20b812c0662', NULL, NULL, 'operationType', 'string', 0, '2021-10-20 15:54:57.148', NULL, NULL, NULL, 'agree', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('04b6f497-317b-11ec-9438-f20b812c0662', 'VariableUpdate', '04b2aec5-317b-11ec-9438-f20b812c0662', '04b2aec5-317b-11ec-9438-f20b812c0662', NULL, NULL, 'startUserName', 'string', 1, '2021-10-20 15:54:57.148', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('04b71ba8-317b-11ec-9438-f20b812c0662', 'VariableUpdate', '04b2aec5-317b-11ec-9438-f20b812c0662', '04b2aec5-317b-11ec-9438-f20b812c0662', NULL, NULL, 'initiator', 'string', 1, '2021-10-20 15:54:57.149', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('04b769cc-317b-11ec-9438-f20b812c0662', 'VariableUpdate', '04b2aec5-317b-11ec-9438-f20b812c0662', '04b2aecb-317b-11ec-9438-f20b812c0662', '04b742ba-317b-11ec-9438-f20b812c0662', NULL, 'startUserName', 'string', 0, '2021-10-20 15:54:57.151', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('04b769ce-317b-11ec-9438-f20b812c0662', 'VariableUpdate', '04b2aec5-317b-11ec-9438-f20b812c0662', '04b2aecb-317b-11ec-9438-f20b812c0662', '04b742ba-317b-11ec-9438-f20b812c0662', NULL, 'initiator', 'string', 0, '2021-10-20 15:54:57.151', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('04b769d0-317b-11ec-9438-f20b812c0662', 'VariableUpdate', '04b2aec5-317b-11ec-9438-f20b812c0662', '04b2aecb-317b-11ec-9438-f20b812c0662', '04b742ba-317b-11ec-9438-f20b812c0662', NULL, 'operationType', 'string', 0, '2021-10-20 15:54:57.151', NULL, NULL, NULL, 'agree', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('1760c9a3-317b-11ec-9438-f20b812c0662', 'VariableUpdate', '04b2aec5-317b-11ec-9438-f20b812c0662', '04b2aecb-317b-11ec-9438-f20b812c0662', '04b742ba-317b-11ec-9438-f20b812c0662', NULL, 'operationType', 'string', 1, '2021-10-20 15:55:28.460', NULL, NULL, NULL, 'agree', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('1761b404-317b-11ec-9438-f20b812c0662', 'VariableUpdate', '04b2aec5-317b-11ec-9438-f20b812c0662', '04b2aec5-317b-11ec-9438-f20b812c0662', NULL, NULL, 'operationType', 'string', 1, '2021-10-20 15:55:28.466', NULL, NULL, NULL, 'agree', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('1761db15-317b-11ec-9438-f20b812c0662', 'VariableUpdate', '04b2aec5-317b-11ec-9438-f20b812c0662', '04b2aec5-317b-11ec-9438-f20b812c0662', NULL, NULL, 'startUserName', 'string', 1, '2021-10-20 15:55:28.467', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('1761db16-317b-11ec-9438-f20b812c0662', 'VariableUpdate', '04b2aec5-317b-11ec-9438-f20b812c0662', '04b2aec5-317b-11ec-9438-f20b812c0662', NULL, NULL, 'initiator', 'string', 1, '2021-10-20 15:55:28.467', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('190058ed-3184-11ec-ad5a-f20b812c0662', 'VariableUpdate', '190031da-3184-11ec-ad5a-f20b812c0662', '190031da-3184-11ec-ad5a-f20b812c0662', NULL, NULL, 'startUserName', 'string', 0, '2021-10-20 16:59:56.654', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('190058ef-3184-11ec-ad5a-f20b812c0662', 'VariableUpdate', '190031da-3184-11ec-ad5a-f20b812c0662', '190031da-3184-11ec-ad5a-f20b812c0662', NULL, NULL, 'deptPostLeader', 'long', 0, '2021-10-20 16:59:56.654', NULL, NULL, 1440964519391137792, '1440964519391137792', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('190058f1-3184-11ec-ad5a-f20b812c0662', 'VariableUpdate', '190031da-3184-11ec-ad5a-f20b812c0662', '190031da-3184-11ec-ad5a-f20b812c0662', NULL, NULL, 'initiator', 'string', 0, '2021-10-20 16:59:56.654', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('1900a717-3184-11ec-ad5a-f20b812c0662', 'VariableUpdate', '190031da-3184-11ec-ad5a-f20b812c0662', '190058f2-3184-11ec-ad5a-f20b812c0662', '19008005-3184-11ec-ad5a-f20b812c0662', NULL, 'startUserName', 'string', 0, '2021-10-20 16:59:56.656', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('1900a719-3184-11ec-ad5a-f20b812c0662', 'VariableUpdate', '190031da-3184-11ec-ad5a-f20b812c0662', '190058f2-3184-11ec-ad5a-f20b812c0662', '19008005-3184-11ec-ad5a-f20b812c0662', NULL, 'initiator', 'string', 0, '2021-10-20 16:59:56.656', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('1900a71b-3184-11ec-ad5a-f20b812c0662', 'VariableUpdate', '190031da-3184-11ec-ad5a-f20b812c0662', '190058f2-3184-11ec-ad5a-f20b812c0662', '19008005-3184-11ec-ad5a-f20b812c0662', NULL, 'deptPostLeader', 'long', 0, '2021-10-20 16:59:56.656', NULL, NULL, 1440964519391137792, '1440964519391137792', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('1903b45d-3184-11ec-ad5a-f20b812c0662', 'VariableUpdate', '190031da-3184-11ec-ad5a-f20b812c0662', '190058f2-3184-11ec-ad5a-f20b812c0662', '19008005-3184-11ec-ad5a-f20b812c0662', NULL, 'operationType', 'string', 0, '2021-10-20 16:59:56.676', NULL, NULL, NULL, 'agree', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('1903b45e-3184-11ec-ad5a-f20b812c0662', 'VariableUpdate', '190031da-3184-11ec-ad5a-f20b812c0662', '190058f2-3184-11ec-ad5a-f20b812c0662', '19008005-3184-11ec-ad5a-f20b812c0662', NULL, 'deptPostLeader', 'string', 1, '2021-10-20 16:59:56.676', NULL, NULL, NULL, '1440964519391137792', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('1904509f-3184-11ec-ad5a-f20b812c0662', 'VariableUpdate', '190031da-3184-11ec-ad5a-f20b812c0662', '190031da-3184-11ec-ad5a-f20b812c0662', NULL, NULL, 'deptPostLeader', 'string', 1, '2021-10-20 16:59:56.680', NULL, NULL, NULL, '1440964519391137792', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('190477b1-3184-11ec-ad5a-f20b812c0662', 'VariableUpdate', '190031da-3184-11ec-ad5a-f20b812c0662', '190031da-3184-11ec-ad5a-f20b812c0662', NULL, NULL, 'operationType', 'string', 0, '2021-10-20 16:59:56.681', NULL, NULL, NULL, 'agree', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('190477b2-3184-11ec-ad5a-f20b812c0662', 'VariableUpdate', '190031da-3184-11ec-ad5a-f20b812c0662', '190031da-3184-11ec-ad5a-f20b812c0662', NULL, NULL, 'startUserName', 'string', 1, '2021-10-20 16:59:56.681', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('19049ec3-3184-11ec-ad5a-f20b812c0662', 'VariableUpdate', '190031da-3184-11ec-ad5a-f20b812c0662', '190031da-3184-11ec-ad5a-f20b812c0662', NULL, NULL, 'initiator', 'string', 1, '2021-10-20 16:59:56.682', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('1904ece7-3184-11ec-ad5a-f20b812c0662', 'VariableUpdate', '190031da-3184-11ec-ad5a-f20b812c0662', '190058f2-3184-11ec-ad5a-f20b812c0662', '1904c5d5-3184-11ec-ad5a-f20b812c0662', NULL, 'startUserName', 'string', 0, '2021-10-20 16:59:56.684', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('1904ece9-3184-11ec-ad5a-f20b812c0662', 'VariableUpdate', '190031da-3184-11ec-ad5a-f20b812c0662', '190058f2-3184-11ec-ad5a-f20b812c0662', '1904c5d5-3184-11ec-ad5a-f20b812c0662', NULL, 'initiator', 'string', 0, '2021-10-20 16:59:56.684', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('1904eceb-3184-11ec-ad5a-f20b812c0662', 'VariableUpdate', '190031da-3184-11ec-ad5a-f20b812c0662', '190058f2-3184-11ec-ad5a-f20b812c0662', '1904c5d5-3184-11ec-ad5a-f20b812c0662', NULL, 'deptPostLeader', 'string', 0, '2021-10-20 16:59:56.684', NULL, NULL, NULL, '1440964519391137792', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('1904eced-3184-11ec-ad5a-f20b812c0662', 'VariableUpdate', '190031da-3184-11ec-ad5a-f20b812c0662', '190058f2-3184-11ec-ad5a-f20b812c0662', '1904c5d5-3184-11ec-ad5a-f20b812c0662', NULL, 'operationType', 'string', 0, '2021-10-20 16:59:56.684', NULL, NULL, NULL, 'agree', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('255d7a81-3184-11ec-ad5a-f20b812c0662', 'VariableUpdate', '190031da-3184-11ec-ad5a-f20b812c0662', '190058f2-3184-11ec-ad5a-f20b812c0662', '1904c5d5-3184-11ec-ad5a-f20b812c0662', NULL, 'totalAmount', 'integer', 0, '2021-10-20 17:00:17.397', NULL, NULL, 1200, '1200', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('255d7a82-3184-11ec-ad5a-f20b812c0662', 'VariableUpdate', '190031da-3184-11ec-ad5a-f20b812c0662', '190058f2-3184-11ec-ad5a-f20b812c0662', '1904c5d5-3184-11ec-ad5a-f20b812c0662', NULL, 'operationType', 'string', 1, '2021-10-20 17:00:17.397', NULL, NULL, NULL, 'agree', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('255da193-3184-11ec-ad5a-f20b812c0662', 'VariableUpdate', '190031da-3184-11ec-ad5a-f20b812c0662', '190058f2-3184-11ec-ad5a-f20b812c0662', '1904c5d5-3184-11ec-ad5a-f20b812c0662', NULL, 'deptPostLeader', 'string', 1, '2021-10-20 17:00:17.398', NULL, NULL, NULL, '1440964519391137792', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('255e3dd5-3184-11ec-ad5a-f20b812c0662', 'VariableUpdate', '190031da-3184-11ec-ad5a-f20b812c0662', '190031da-3184-11ec-ad5a-f20b812c0662', NULL, NULL, 'totalAmount', 'integer', 0, '2021-10-20 17:00:17.402', NULL, NULL, 1200, '1200', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('255e3dd6-3184-11ec-ad5a-f20b812c0662', 'VariableUpdate', '190031da-3184-11ec-ad5a-f20b812c0662', '190031da-3184-11ec-ad5a-f20b812c0662', NULL, NULL, 'deptPostLeader', 'string', 2, '2021-10-20 17:00:17.402', NULL, NULL, NULL, '1440964519391137792', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('255e64e7-3184-11ec-ad5a-f20b812c0662', 'VariableUpdate', '190031da-3184-11ec-ad5a-f20b812c0662', '190031da-3184-11ec-ad5a-f20b812c0662', NULL, NULL, 'operationType', 'string', 1, '2021-10-20 17:00:17.403', NULL, NULL, NULL, 'agree', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('255e64e8-3184-11ec-ad5a-f20b812c0662', 'VariableUpdate', '190031da-3184-11ec-ad5a-f20b812c0662', '190031da-3184-11ec-ad5a-f20b812c0662', NULL, NULL, 'startUserName', 'string', 1, '2021-10-20 17:00:17.403', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('255e8bf9-3184-11ec-ad5a-f20b812c0662', 'VariableUpdate', '190031da-3184-11ec-ad5a-f20b812c0662', '190031da-3184-11ec-ad5a-f20b812c0662', NULL, NULL, 'initiator', 'string', 1, '2021-10-20 17:00:17.404', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('255f765e-3184-11ec-ad5a-f20b812c0662', 'VariableUpdate', '190031da-3184-11ec-ad5a-f20b812c0662', '190058f2-3184-11ec-ad5a-f20b812c0662', '255f765c-3184-11ec-ad5a-f20b812c0662', NULL, 'totalAmount', 'integer', 0, '2021-10-20 17:00:17.410', NULL, NULL, 1200, '1200', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('255f7660-3184-11ec-ad5a-f20b812c0662', 'VariableUpdate', '190031da-3184-11ec-ad5a-f20b812c0662', '190058f2-3184-11ec-ad5a-f20b812c0662', '255f765c-3184-11ec-ad5a-f20b812c0662', NULL, 'startUserName', 'string', 0, '2021-10-20 17:00:17.410', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('255f7662-3184-11ec-ad5a-f20b812c0662', 'VariableUpdate', '190031da-3184-11ec-ad5a-f20b812c0662', '190058f2-3184-11ec-ad5a-f20b812c0662', '255f765c-3184-11ec-ad5a-f20b812c0662', NULL, 'initiator', 'string', 0, '2021-10-20 17:00:17.410', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('255f7664-3184-11ec-ad5a-f20b812c0662', 'VariableUpdate', '190031da-3184-11ec-ad5a-f20b812c0662', '190058f2-3184-11ec-ad5a-f20b812c0662', '255f765c-3184-11ec-ad5a-f20b812c0662', NULL, 'operationType', 'string', 0, '2021-10-20 17:00:17.410', NULL, NULL, NULL, 'agree', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('255f7666-3184-11ec-ad5a-f20b812c0662', 'VariableUpdate', '190031da-3184-11ec-ad5a-f20b812c0662', '190058f2-3184-11ec-ad5a-f20b812c0662', '255f765c-3184-11ec-ad5a-f20b812c0662', NULL, 'deptPostLeader', 'string', 0, '2021-10-20 17:00:17.410', NULL, NULL, NULL, '1440964519391137792', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('32dd7c2f-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', '01c79123-3185-11ec-9f40-f20b812c0662', NULL, 'operationType', 'string', 1, '2021-10-20 17:07:49.543', NULL, NULL, NULL, 'agree', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('32de3f80-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'operationType', 'string', 1, '2021-10-20 17:07:49.548', NULL, NULL, NULL, 'agree', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('32de6691-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'deptPostLeader', 'string', 1, '2021-10-20 17:07:49.549', NULL, NULL, NULL, '1440964519391137792', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('32de6692-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'startUserName', 'string', 1, '2021-10-20 17:07:49.549', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('32de8da3-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'initiator', 'string', 1, '2021-10-20 17:07:49.550', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('32dedbc7-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', '32dedbc5-3185-11ec-9f40-f20b812c0662', NULL, 'startUserName', 'string', 0, '2021-10-20 17:07:49.552', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('32dedbc9-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', '32dedbc5-3185-11ec-9f40-f20b812c0662', NULL, 'initiator', 'string', 0, '2021-10-20 17:07:49.552', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('32dedbcb-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', '32dedbc5-3185-11ec-9f40-f20b812c0662', NULL, 'operationType', 'string', 0, '2021-10-20 17:07:49.552', NULL, NULL, NULL, 'agree', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('32dedbcd-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', '32dedbc5-3185-11ec-9f40-f20b812c0662', NULL, 'deptPostLeader', 'string', 0, '2021-10-20 17:07:49.552', NULL, NULL, NULL, '1440964519391137792', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('332af4e9-3184-11ec-ad5a-f20b812c0662', 'VariableUpdate', '190031da-3184-11ec-ad5a-f20b812c0662', '190058f2-3184-11ec-ad5a-f20b812c0662', '255f765c-3184-11ec-ad5a-f20b812c0662', NULL, 'operationType', 'string', 1, '2021-10-20 17:00:40.554', NULL, NULL, NULL, 'agree', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('332af4ea-3184-11ec-ad5a-f20b812c0662', 'VariableUpdate', '190031da-3184-11ec-ad5a-f20b812c0662', '190058f2-3184-11ec-ad5a-f20b812c0662', '255f765c-3184-11ec-ad5a-f20b812c0662', NULL, 'deptPostLeader', 'string', 1, '2021-10-20 17:00:40.554', NULL, NULL, NULL, '1440969551792574464', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('332c2d6b-3184-11ec-ad5a-f20b812c0662', 'VariableUpdate', '190031da-3184-11ec-ad5a-f20b812c0662', '190031da-3184-11ec-ad5a-f20b812c0662', NULL, NULL, 'totalAmount', 'integer', 1, '2021-10-20 17:00:40.562', NULL, NULL, 1200, '1200', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('332c2d6c-3184-11ec-ad5a-f20b812c0662', 'VariableUpdate', '190031da-3184-11ec-ad5a-f20b812c0662', '190031da-3184-11ec-ad5a-f20b812c0662', NULL, NULL, 'operationType', 'string', 1, '2021-10-20 17:00:40.562', NULL, NULL, NULL, 'agree', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('332c547d-3184-11ec-ad5a-f20b812c0662', 'VariableUpdate', '190031da-3184-11ec-ad5a-f20b812c0662', '190031da-3184-11ec-ad5a-f20b812c0662', NULL, NULL, 'deptPostLeader', 'string', 2, '2021-10-20 17:00:40.563', NULL, NULL, NULL, '1440969551792574464', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('332c547e-3184-11ec-ad5a-f20b812c0662', 'VariableUpdate', '190031da-3184-11ec-ad5a-f20b812c0662', '190031da-3184-11ec-ad5a-f20b812c0662', NULL, NULL, 'startUserName', 'string', 1, '2021-10-20 17:00:40.563', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('332c7b8f-3184-11ec-ad5a-f20b812c0662', 'VariableUpdate', '190031da-3184-11ec-ad5a-f20b812c0662', '190031da-3184-11ec-ad5a-f20b812c0662', NULL, NULL, 'initiator', 'string', 1, '2021-10-20 17:00:40.564', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('4be4f4c1-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', '32dedbc5-3185-11ec-9f40-f20b812c0662', NULL, 'multiRefuseCount', 'integer', 0, '2021-10-20 17:08:31.535', NULL, NULL, 0, '0', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('4be5b813-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', '32dedbc5-3185-11ec-9f40-f20b812c0662', NULL, 'assigneeList', 'json', 0, '2021-10-20 17:08:31.540', NULL, NULL, NULL, '[\"admin\",\"userD\"]', 'com.alibaba.fastjson.JSONArray'); -INSERT INTO `ACT_HI_DETAIL` VALUES ('4be5b815-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', '32dedbc5-3185-11ec-9f40-f20b812c0662', NULL, 'multiAbstainCount', 'integer', 0, '2021-10-20 17:08:31.540', NULL, NULL, 0, '0', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('4be5b816-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', '32dedbc5-3185-11ec-9f40-f20b812c0662', NULL, 'operationType', 'string', 1, '2021-10-20 17:08:31.540', NULL, NULL, NULL, 'multi_sign', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('4be60638-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', '32dedbc5-3185-11ec-9f40-f20b812c0662', NULL, 'multiSignStartTask', 'string', 0, '2021-10-20 17:08:31.542', NULL, NULL, NULL, '32dedbc5-3185-11ec-9f40-f20b812c0662', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('4be6063a-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', '32dedbc5-3185-11ec-9f40-f20b812c0662', NULL, 'multiAgreeCount', 'integer', 0, '2021-10-20 17:08:31.542', NULL, NULL, 0, '0', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('4be6063c-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', '32dedbc5-3185-11ec-9f40-f20b812c0662', NULL, 'multiNumOfInstances', 'integer', 0, '2021-10-20 17:08:31.542', NULL, NULL, 0, '0', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('4be6c98e-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'multiRefuseCount', 'integer', 0, '2021-10-20 17:08:31.547', NULL, NULL, 0, '0', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('4be6c990-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'assigneeList', 'json', 0, '2021-10-20 17:08:31.547', NULL, NULL, NULL, '[\"admin\",\"userD\"]', 'com.alibaba.fastjson.JSONArray'); -INSERT INTO `ACT_HI_DETAIL` VALUES ('4be6c991-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'startUserName', 'string', 1, '2021-10-20 17:08:31.547', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('4be6c992-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'initiator', 'string', 1, '2021-10-20 17:08:31.547', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('4be6f0a4-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'multiAbstainCount', 'integer', 0, '2021-10-20 17:08:31.548', NULL, NULL, 0, '0', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('4be6f0a5-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'operationType', 'string', 1, '2021-10-20 17:08:31.548', NULL, NULL, NULL, 'multi_sign', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('4be6f0a6-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'deptPostLeader', 'string', 1, '2021-10-20 17:08:31.548', NULL, NULL, NULL, '1440964519391137792', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('4be717b8-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'multiSignStartTask', 'string', 0, '2021-10-20 17:08:31.549', NULL, NULL, NULL, '32dedbc5-3185-11ec-9f40-f20b812c0662', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('4be717ba-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'multiAgreeCount', 'integer', 0, '2021-10-20 17:08:31.549', NULL, NULL, 0, '0', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('4be717bc-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'multiNumOfInstances', 'integer', 0, '2021-10-20 17:08:31.549', NULL, NULL, 0, '0', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('4be73ece-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'nrOfInstances', 'integer', 0, '2021-10-20 17:08:31.550', NULL, NULL, 2, '2', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('4be73ed0-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'nrOfCompletedInstances', 'integer', 0, '2021-10-20 17:08:31.550', NULL, NULL, 0, '0', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('4be73ed2-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'nrOfActiveInstances', 'integer', 0, '2021-10-20 17:08:31.550', NULL, NULL, 2, '2', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('4be765e6-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', '4be765e3-3185-11ec-9f40-f20b812c0662', NULL, NULL, 'loopCounter', 'integer', 0, '2021-10-20 17:08:31.551', NULL, NULL, 0, '0', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('4be765e8-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', '4be765e3-3185-11ec-9f40-f20b812c0662', NULL, NULL, 'assignee', 'string', 0, '2021-10-20 17:08:31.551', NULL, NULL, NULL, 'admin', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('4be78cfa-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', '4be765e4-3185-11ec-9f40-f20b812c0662', NULL, NULL, 'loopCounter', 'integer', 0, '2021-10-20 17:08:31.552', NULL, NULL, 1, '1', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('4be78cfc-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', '4be765e4-3185-11ec-9f40-f20b812c0662', NULL, NULL, 'assignee', 'string', 0, '2021-10-20 17:08:31.552', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('4be7b312-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', '4be765e4-3185-11ec-9f40-f20b812c0662', '4be78d00-3185-11ec-9f40-f20b812c0662', NULL, 'multiRefuseCount', 'integer', 0, '2021-10-20 17:08:31.553', NULL, NULL, 0, '0', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('4be7b314-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', '4be765e4-3185-11ec-9f40-f20b812c0662', '4be78d00-3185-11ec-9f40-f20b812c0662', NULL, 'nrOfActiveInstances', 'integer', 0, '2021-10-20 17:08:31.553', NULL, NULL, 2, '2', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('4be7da26-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', '4be765e4-3185-11ec-9f40-f20b812c0662', '4be78d00-3185-11ec-9f40-f20b812c0662', NULL, 'assigneeList', 'json', 0, '2021-10-20 17:08:31.554', NULL, NULL, NULL, '[\"admin\",\"userD\"]', 'java.util.LinkedList'); -INSERT INTO `ACT_HI_DETAIL` VALUES ('4be7da28-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', '4be765e4-3185-11ec-9f40-f20b812c0662', '4be78d00-3185-11ec-9f40-f20b812c0662', NULL, 'initiator', 'string', 0, '2021-10-20 17:08:31.554', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('4be7da2a-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', '4be765e4-3185-11ec-9f40-f20b812c0662', '4be78d00-3185-11ec-9f40-f20b812c0662', NULL, 'multiAbstainCount', 'integer', 0, '2021-10-20 17:08:31.554', NULL, NULL, 0, '0', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('4be7da2c-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', '4be765e4-3185-11ec-9f40-f20b812c0662', '4be78d00-3185-11ec-9f40-f20b812c0662', NULL, 'loopCounter', 'integer', 0, '2021-10-20 17:08:31.554', NULL, NULL, 1, '1', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('4be7da2e-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', '4be765e4-3185-11ec-9f40-f20b812c0662', '4be78d00-3185-11ec-9f40-f20b812c0662', NULL, 'multiSignStartTask', 'string', 0, '2021-10-20 17:08:31.554', NULL, NULL, NULL, '32dedbc5-3185-11ec-9f40-f20b812c0662', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('4be7da30-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', '4be765e4-3185-11ec-9f40-f20b812c0662', '4be78d00-3185-11ec-9f40-f20b812c0662', NULL, 'multiNumOfInstances', 'integer', 0, '2021-10-20 17:08:31.554', NULL, NULL, 0, '0', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('4be7da32-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', '4be765e4-3185-11ec-9f40-f20b812c0662', '4be78d00-3185-11ec-9f40-f20b812c0662', NULL, 'nrOfInstances', 'integer', 0, '2021-10-20 17:08:31.554', NULL, NULL, 2, '2', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('4be7da34-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', '4be765e4-3185-11ec-9f40-f20b812c0662', '4be78d00-3185-11ec-9f40-f20b812c0662', NULL, 'startUserName', 'string', 0, '2021-10-20 17:08:31.554', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('4be7da36-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', '4be765e4-3185-11ec-9f40-f20b812c0662', '4be78d00-3185-11ec-9f40-f20b812c0662', NULL, 'operationType', 'string', 0, '2021-10-20 17:08:31.554', NULL, NULL, NULL, 'multi_sign', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('4be7da38-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', '4be765e4-3185-11ec-9f40-f20b812c0662', '4be78d00-3185-11ec-9f40-f20b812c0662', NULL, 'deptPostLeader', 'string', 0, '2021-10-20 17:08:31.554', NULL, NULL, NULL, '1440964519391137792', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('4be7da3a-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', '4be765e4-3185-11ec-9f40-f20b812c0662', '4be78d00-3185-11ec-9f40-f20b812c0662', NULL, 'assignee', 'string', 0, '2021-10-20 17:08:31.554', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('4be7da3c-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', '4be765e4-3185-11ec-9f40-f20b812c0662', '4be78d00-3185-11ec-9f40-f20b812c0662', NULL, 'multiAgreeCount', 'integer', 0, '2021-10-20 17:08:31.554', NULL, NULL, 0, '0', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('4be7da3e-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', '4be765e4-3185-11ec-9f40-f20b812c0662', '4be78d00-3185-11ec-9f40-f20b812c0662', NULL, 'nrOfCompletedInstances', 'integer', 0, '2021-10-20 17:08:31.554', NULL, NULL, 0, '0', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('4be82860-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', '4be765e3-3185-11ec-9f40-f20b812c0662', '4be78cfe-3185-11ec-9f40-f20b812c0662', NULL, 'multiRefuseCount', 'integer', 0, '2021-10-20 17:08:31.556', NULL, NULL, 0, '0', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('4be82862-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', '4be765e3-3185-11ec-9f40-f20b812c0662', '4be78cfe-3185-11ec-9f40-f20b812c0662', NULL, 'nrOfActiveInstances', 'integer', 0, '2021-10-20 17:08:31.556', NULL, NULL, 2, '2', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('4be82864-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', '4be765e3-3185-11ec-9f40-f20b812c0662', '4be78cfe-3185-11ec-9f40-f20b812c0662', NULL, 'assigneeList', 'json', 0, '2021-10-20 17:08:31.556', NULL, NULL, NULL, '[\"admin\",\"userD\"]', 'java.util.LinkedList'); -INSERT INTO `ACT_HI_DETAIL` VALUES ('4be82866-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', '4be765e3-3185-11ec-9f40-f20b812c0662', '4be78cfe-3185-11ec-9f40-f20b812c0662', NULL, 'initiator', 'string', 0, '2021-10-20 17:08:31.556', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('4be82868-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', '4be765e3-3185-11ec-9f40-f20b812c0662', '4be78cfe-3185-11ec-9f40-f20b812c0662', NULL, 'multiAbstainCount', 'integer', 0, '2021-10-20 17:08:31.556', NULL, NULL, 0, '0', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('4be8286a-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', '4be765e3-3185-11ec-9f40-f20b812c0662', '4be78cfe-3185-11ec-9f40-f20b812c0662', NULL, 'loopCounter', 'integer', 0, '2021-10-20 17:08:31.556', NULL, NULL, 0, '0', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('4be8286c-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', '4be765e3-3185-11ec-9f40-f20b812c0662', '4be78cfe-3185-11ec-9f40-f20b812c0662', NULL, 'multiSignStartTask', 'string', 0, '2021-10-20 17:08:31.556', NULL, NULL, NULL, '32dedbc5-3185-11ec-9f40-f20b812c0662', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('4be8286e-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', '4be765e3-3185-11ec-9f40-f20b812c0662', '4be78cfe-3185-11ec-9f40-f20b812c0662', NULL, 'multiNumOfInstances', 'integer', 0, '2021-10-20 17:08:31.556', NULL, NULL, 0, '0', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('4be84f80-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', '4be765e3-3185-11ec-9f40-f20b812c0662', '4be78cfe-3185-11ec-9f40-f20b812c0662', NULL, 'nrOfInstances', 'integer', 0, '2021-10-20 17:08:31.557', NULL, NULL, 2, '2', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('4be84f82-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', '4be765e3-3185-11ec-9f40-f20b812c0662', '4be78cfe-3185-11ec-9f40-f20b812c0662', NULL, 'startUserName', 'string', 0, '2021-10-20 17:08:31.557', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('4be84f84-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', '4be765e3-3185-11ec-9f40-f20b812c0662', '4be78cfe-3185-11ec-9f40-f20b812c0662', NULL, 'operationType', 'string', 0, '2021-10-20 17:08:31.557', NULL, NULL, NULL, 'multi_sign', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('4be84f86-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', '4be765e3-3185-11ec-9f40-f20b812c0662', '4be78cfe-3185-11ec-9f40-f20b812c0662', NULL, 'deptPostLeader', 'string', 0, '2021-10-20 17:08:31.557', NULL, NULL, NULL, '1440964519391137792', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('4be84f88-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', '4be765e3-3185-11ec-9f40-f20b812c0662', '4be78cfe-3185-11ec-9f40-f20b812c0662', NULL, 'assignee', 'string', 0, '2021-10-20 17:08:31.557', NULL, NULL, NULL, 'admin', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('4be84f8a-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', '4be765e3-3185-11ec-9f40-f20b812c0662', '4be78cfe-3185-11ec-9f40-f20b812c0662', NULL, 'multiAgreeCount', 'integer', 0, '2021-10-20 17:08:31.557', NULL, NULL, 0, '0', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('4be84f8c-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', '4be765e3-3185-11ec-9f40-f20b812c0662', '4be78cfe-3185-11ec-9f40-f20b812c0662', NULL, 'nrOfCompletedInstances', 'integer', 0, '2021-10-20 17:08:31.557', NULL, NULL, 0, '0', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('55a6350d-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', '4be765e4-3185-11ec-9f40-f20b812c0662', '4be78d00-3185-11ec-9f40-f20b812c0662', NULL, 'multiRefuseCount', 'integer', 1, '2021-10-20 17:08:47.901', NULL, NULL, 0, '0', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('55a6350e-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', '4be765e4-3185-11ec-9f40-f20b812c0662', '4be78d00-3185-11ec-9f40-f20b812c0662', NULL, 'multiAbstainCount', 'integer', 1, '2021-10-20 17:08:47.901', NULL, NULL, 0, '0', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('55a65c1f-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', '4be765e4-3185-11ec-9f40-f20b812c0662', '4be78d00-3185-11ec-9f40-f20b812c0662', NULL, 'operationType', 'string', 1, '2021-10-20 17:08:47.902', NULL, NULL, NULL, 'multi_agree', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('55a65c20-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', '4be765e4-3185-11ec-9f40-f20b812c0662', '4be78d00-3185-11ec-9f40-f20b812c0662', NULL, 'multiAgreeCount', 'integer', 1, '2021-10-20 17:08:47.902', NULL, NULL, 1, '1', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('55a68331-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', '4be765e4-3185-11ec-9f40-f20b812c0662', '4be78d00-3185-11ec-9f40-f20b812c0662', NULL, 'multiNumOfInstances', 'integer', 1, '2021-10-20 17:08:47.903', NULL, NULL, 2, '2', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('55a76d92-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'multiRefuseCount', 'integer', 1, '2021-10-20 17:08:47.909', NULL, NULL, 0, '0', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('55a76d94-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'nrOfActiveInstances', 'integer', 0, '2021-10-20 17:08:47.909', NULL, NULL, 2, '2', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('55a76d95-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'assigneeList', 'json', 1, '2021-10-20 17:08:47.909', NULL, NULL, NULL, '[\"admin\",\"userD\"]', 'java.util.LinkedList'); -INSERT INTO `ACT_HI_DETAIL` VALUES ('55a794a6-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'initiator', 'string', 1, '2021-10-20 17:08:47.910', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('55a794a7-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'multiAbstainCount', 'integer', 1, '2021-10-20 17:08:47.910', NULL, NULL, 0, '0', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('55a794a9-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'loopCounter', 'integer', 0, '2021-10-20 17:08:47.910', NULL, NULL, 1, '1', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('55a794aa-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'multiSignStartTask', 'string', 1, '2021-10-20 17:08:47.910', NULL, NULL, NULL, '32dedbc5-3185-11ec-9f40-f20b812c0662', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('55a7bbbb-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'multiNumOfInstances', 'integer', 1, '2021-10-20 17:08:47.911', NULL, NULL, 2, '2', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('55a7bbbd-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'nrOfInstances', 'integer', 0, '2021-10-20 17:08:47.911', NULL, NULL, 2, '2', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('55a7bbbe-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'startUserName', 'string', 1, '2021-10-20 17:08:47.911', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('55a7e2cf-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'operationType', 'string', 2, '2021-10-20 17:08:47.912', NULL, NULL, NULL, 'multi_agree', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('55a7e2d0-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'deptPostLeader', 'string', 1, '2021-10-20 17:08:47.912', NULL, NULL, NULL, '1440964519391137792', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('55a7e2d2-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'assignee', 'string', 0, '2021-10-20 17:08:47.912', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('55a809e3-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'multiAgreeCount', 'integer', 1, '2021-10-20 17:08:47.913', NULL, NULL, 1, '1', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('55a809e5-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'nrOfCompletedInstances', 'integer', 0, '2021-10-20 17:08:47.913', NULL, NULL, 0, '0', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('55a85806-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'nrOfCompletedInstances', 'integer', 1, '2021-10-20 17:08:47.915', NULL, NULL, 1, '1', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('55a87f17-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'nrOfActiveInstances', 'integer', 1, '2021-10-20 17:08:47.916', NULL, NULL, 1, '1', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('5b6bc99d-3183-11ec-ad5a-f20b812c0662', 'VariableUpdate', '5b6b546a-3183-11ec-ad5a-f20b812c0662', '5b6b546a-3183-11ec-ad5a-f20b812c0662', NULL, NULL, 'startUserName', 'string', 0, '2021-10-20 16:54:38.591', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('5b6c17bf-3183-11ec-ad5a-f20b812c0662', 'VariableUpdate', '5b6b546a-3183-11ec-ad5a-f20b812c0662', '5b6b546a-3183-11ec-ad5a-f20b812c0662', NULL, NULL, 'deptPostLeader', 'long', 0, '2021-10-20 16:54:38.593', NULL, NULL, 1440964519391137792, '1440964519391137792', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('5b6c17c1-3183-11ec-ad5a-f20b812c0662', 'VariableUpdate', '5b6b546a-3183-11ec-ad5a-f20b812c0662', '5b6b546a-3183-11ec-ad5a-f20b812c0662', NULL, NULL, 'initiator', 'string', 0, '2021-10-20 16:54:38.593', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('5b6efdf7-3183-11ec-ad5a-f20b812c0662', 'VariableUpdate', '5b6b546a-3183-11ec-ad5a-f20b812c0662', '5b6c3ed2-3183-11ec-ad5a-f20b812c0662', '5b6e61b5-3183-11ec-ad5a-f20b812c0662', NULL, 'startUserName', 'string', 0, '2021-10-20 16:54:38.612', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('5b6efdf9-3183-11ec-ad5a-f20b812c0662', 'VariableUpdate', '5b6b546a-3183-11ec-ad5a-f20b812c0662', '5b6c3ed2-3183-11ec-ad5a-f20b812c0662', '5b6e61b5-3183-11ec-ad5a-f20b812c0662', NULL, 'initiator', 'string', 0, '2021-10-20 16:54:38.612', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('5b6efdfb-3183-11ec-ad5a-f20b812c0662', 'VariableUpdate', '5b6b546a-3183-11ec-ad5a-f20b812c0662', '5b6c3ed2-3183-11ec-ad5a-f20b812c0662', '5b6e61b5-3183-11ec-ad5a-f20b812c0662', NULL, 'deptPostLeader', 'long', 0, '2021-10-20 16:54:38.612', NULL, NULL, 1440964519391137792, '1440964519391137792', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('5f1bd95d-3183-11ec-ad5a-f20b812c0662', 'VariableUpdate', '5b6b546a-3183-11ec-ad5a-f20b812c0662', '5b6c3ed2-3183-11ec-ad5a-f20b812c0662', '5b6e61b5-3183-11ec-ad5a-f20b812c0662', NULL, 'operationType', 'string', 0, '2021-10-20 16:54:44.778', NULL, NULL, NULL, 'agree', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('5f1bd95e-3183-11ec-ad5a-f20b812c0662', 'VariableUpdate', '5b6b546a-3183-11ec-ad5a-f20b812c0662', '5b6c3ed2-3183-11ec-ad5a-f20b812c0662', '5b6e61b5-3183-11ec-ad5a-f20b812c0662', NULL, 'deptPostLeader', 'string', 1, '2021-10-20 16:54:44.778', NULL, NULL, NULL, '1440964519391137792', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('5f1e4a5f-3183-11ec-ad5a-f20b812c0662', 'VariableUpdate', '5b6b546a-3183-11ec-ad5a-f20b812c0662', '5b6b546a-3183-11ec-ad5a-f20b812c0662', NULL, NULL, 'deptPostLeader', 'string', 1, '2021-10-20 16:54:44.794', NULL, NULL, NULL, '1440964519391137792', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('5f1e7171-3183-11ec-ad5a-f20b812c0662', 'VariableUpdate', '5b6b546a-3183-11ec-ad5a-f20b812c0662', '5b6b546a-3183-11ec-ad5a-f20b812c0662', NULL, NULL, 'operationType', 'string', 0, '2021-10-20 16:54:44.795', NULL, NULL, NULL, 'agree', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('5f1e7172-3183-11ec-ad5a-f20b812c0662', 'VariableUpdate', '5b6b546a-3183-11ec-ad5a-f20b812c0662', '5b6b546a-3183-11ec-ad5a-f20b812c0662', NULL, NULL, 'startUserName', 'string', 1, '2021-10-20 16:54:44.795', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('5f1e9883-3183-11ec-ad5a-f20b812c0662', 'VariableUpdate', '5b6b546a-3183-11ec-ad5a-f20b812c0662', '5b6b546a-3183-11ec-ad5a-f20b812c0662', NULL, NULL, 'initiator', 'string', 1, '2021-10-20 16:54:44.796', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('5f1f0db7-3183-11ec-ad5a-f20b812c0662', 'VariableUpdate', '5b6b546a-3183-11ec-ad5a-f20b812c0662', '5b6c3ed2-3183-11ec-ad5a-f20b812c0662', '5f1ee6a5-3183-11ec-ad5a-f20b812c0662', NULL, 'startUserName', 'string', 0, '2021-10-20 16:54:44.799', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('5f1f0db9-3183-11ec-ad5a-f20b812c0662', 'VariableUpdate', '5b6b546a-3183-11ec-ad5a-f20b812c0662', '5b6c3ed2-3183-11ec-ad5a-f20b812c0662', '5f1ee6a5-3183-11ec-ad5a-f20b812c0662', NULL, 'initiator', 'string', 0, '2021-10-20 16:54:44.799', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('5f1f0dbb-3183-11ec-ad5a-f20b812c0662', 'VariableUpdate', '5b6b546a-3183-11ec-ad5a-f20b812c0662', '5b6c3ed2-3183-11ec-ad5a-f20b812c0662', '5f1ee6a5-3183-11ec-ad5a-f20b812c0662', NULL, 'deptPostLeader', 'string', 0, '2021-10-20 16:54:44.799', NULL, NULL, NULL, '1440964519391137792', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('5f1f0dbd-3183-11ec-ad5a-f20b812c0662', 'VariableUpdate', '5b6b546a-3183-11ec-ad5a-f20b812c0662', '5b6c3ed2-3183-11ec-ad5a-f20b812c0662', '5f1ee6a5-3183-11ec-ad5a-f20b812c0662', NULL, 'operationType', 'string', 0, '2021-10-20 16:54:44.799', NULL, NULL, NULL, 'agree', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('611f1118-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', '4be765e3-3185-11ec-9f40-f20b812c0662', '4be78cfe-3185-11ec-9f40-f20b812c0662', NULL, 'multiRefuseCount', 'integer', 1, '2021-10-20 17:09:07.148', NULL, NULL, 0, '0', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('611f1119-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', '4be765e3-3185-11ec-9f40-f20b812c0662', '4be78cfe-3185-11ec-9f40-f20b812c0662', NULL, 'multiAbstainCount', 'integer', 1, '2021-10-20 17:09:07.148', NULL, NULL, 0, '0', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('611f111a-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', '4be765e3-3185-11ec-9f40-f20b812c0662', '4be78cfe-3185-11ec-9f40-f20b812c0662', NULL, 'operationType', 'string', 1, '2021-10-20 17:09:07.148', NULL, NULL, NULL, 'multi_agree', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('611f382b-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', '4be765e3-3185-11ec-9f40-f20b812c0662', '4be78cfe-3185-11ec-9f40-f20b812c0662', NULL, 'multiAgreeCount', 'integer', 1, '2021-10-20 17:09:07.149', NULL, NULL, 2, '2', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('611f382c-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', '4be765e3-3185-11ec-9f40-f20b812c0662', '4be78cfe-3185-11ec-9f40-f20b812c0662', NULL, 'multiNumOfInstances', 'integer', 1, '2021-10-20 17:09:07.149', NULL, NULL, 2, '2', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('611fd46d-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'multiRefuseCount', 'integer', 1, '2021-10-20 17:09:07.153', NULL, NULL, 0, '0', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('611fd46e-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'nrOfActiveInstances', 'integer', 1, '2021-10-20 17:09:07.153', NULL, NULL, 2, '2', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('611ffb7f-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'assigneeList', 'json', 2, '2021-10-20 17:09:07.154', NULL, NULL, NULL, '[\"admin\",\"userD\"]', 'java.util.LinkedList'); -INSERT INTO `ACT_HI_DETAIL` VALUES ('611ffb80-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'initiator', 'string', 1, '2021-10-20 17:09:07.154', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('61202291-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'multiAbstainCount', 'integer', 1, '2021-10-20 17:09:07.155', NULL, NULL, 0, '0', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('61202292-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'loopCounter', 'integer', 1, '2021-10-20 17:09:07.155', NULL, NULL, 0, '0', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('61202293-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'multiSignStartTask', 'string', 1, '2021-10-20 17:09:07.155', NULL, NULL, NULL, '32dedbc5-3185-11ec-9f40-f20b812c0662', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('612049a4-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'multiNumOfInstances', 'integer', 2, '2021-10-20 17:09:07.156', NULL, NULL, 2, '2', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('612049a5-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'nrOfInstances', 'integer', 1, '2021-10-20 17:09:07.156', NULL, NULL, 2, '2', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('612049a6-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'startUserName', 'string', 1, '2021-10-20 17:09:07.156', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('612049a7-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'operationType', 'string', 3, '2021-10-20 17:09:07.156', NULL, NULL, NULL, 'multi_agree', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('612070b8-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'deptPostLeader', 'string', 1, '2021-10-20 17:09:07.157', NULL, NULL, NULL, '1440964519391137792', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('612070b9-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'assignee', 'string', 1, '2021-10-20 17:09:07.157', NULL, NULL, NULL, 'admin', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('612070ba-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'multiAgreeCount', 'integer', 2, '2021-10-20 17:09:07.157', NULL, NULL, 2, '2', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('612097cb-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'nrOfCompletedInstances', 'integer', 1, '2021-10-20 17:09:07.158', NULL, NULL, 0, '0', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('6120bedc-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'nrOfCompletedInstances', 'integer', 2, '2021-10-20 17:09:07.159', NULL, NULL, 2, '2', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('6120e5ed-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'nrOfActiveInstances', 'integer', 2, '2021-10-20 17:09:07.160', NULL, NULL, 0, '0', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('61221e72-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', '6121f760-3185-11ec-9f40-f20b812c0662', NULL, 'multiRefuseCount', 'integer', 0, '2021-10-20 17:09:07.168', NULL, NULL, 0, '0', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('61221e74-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', '6121f760-3185-11ec-9f40-f20b812c0662', NULL, 'nrOfActiveInstances', 'integer', 0, '2021-10-20 17:09:07.168', NULL, NULL, 0, '0', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('61221e76-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', '6121f760-3185-11ec-9f40-f20b812c0662', NULL, 'assigneeList', 'json', 0, '2021-10-20 17:09:07.168', NULL, NULL, NULL, '[\"admin\",\"userD\"]', 'java.util.LinkedList'); -INSERT INTO `ACT_HI_DETAIL` VALUES ('61221e78-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', '6121f760-3185-11ec-9f40-f20b812c0662', NULL, 'initiator', 'string', 0, '2021-10-20 17:09:07.168', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('61221e7a-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', '6121f760-3185-11ec-9f40-f20b812c0662', NULL, 'multiAbstainCount', 'integer', 0, '2021-10-20 17:09:07.168', NULL, NULL, 0, '0', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('61221e7c-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', '6121f760-3185-11ec-9f40-f20b812c0662', NULL, 'loopCounter', 'integer', 0, '2021-10-20 17:09:07.168', NULL, NULL, 0, '0', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('61221e7e-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', '6121f760-3185-11ec-9f40-f20b812c0662', NULL, 'multiSignStartTask', 'string', 0, '2021-10-20 17:09:07.168', NULL, NULL, NULL, '32dedbc5-3185-11ec-9f40-f20b812c0662', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('61221e80-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', '6121f760-3185-11ec-9f40-f20b812c0662', NULL, 'nrOfInstances', 'integer', 0, '2021-10-20 17:09:07.168', NULL, NULL, 2, '2', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('61221e82-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', '6121f760-3185-11ec-9f40-f20b812c0662', NULL, 'multiNumOfInstances', 'integer', 0, '2021-10-20 17:09:07.168', NULL, NULL, 2, '2', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('61221e84-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', '6121f760-3185-11ec-9f40-f20b812c0662', NULL, 'startUserName', 'string', 0, '2021-10-20 17:09:07.168', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('61221e86-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', '6121f760-3185-11ec-9f40-f20b812c0662', NULL, 'operationType', 'string', 0, '2021-10-20 17:09:07.168', NULL, NULL, NULL, 'multi_agree', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('61221e88-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', '6121f760-3185-11ec-9f40-f20b812c0662', NULL, 'deptPostLeader', 'string', 0, '2021-10-20 17:09:07.168', NULL, NULL, NULL, '1440964519391137792', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('61221e8a-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', '6121f760-3185-11ec-9f40-f20b812c0662', NULL, 'assignee', 'string', 0, '2021-10-20 17:09:07.168', NULL, NULL, NULL, 'admin', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('61221e8c-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', '6121f760-3185-11ec-9f40-f20b812c0662', NULL, 'multiAgreeCount', 'integer', 0, '2021-10-20 17:09:07.168', NULL, NULL, 2, '2', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('61221e8e-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', '6121f760-3185-11ec-9f40-f20b812c0662', NULL, 'nrOfCompletedInstances', 'integer', 0, '2021-10-20 17:09:07.168', NULL, NULL, 2, '2', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('7c75a9f1-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', '6121f760-3185-11ec-9f40-f20b812c0662', NULL, 'operationType', 'string', 1, '2021-10-20 17:09:53.014', NULL, NULL, NULL, 'agree', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('7c769452-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'multiRefuseCount', 'integer', 1, '2021-10-20 17:09:53.020', NULL, NULL, 0, '0', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('7c769453-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'nrOfActiveInstances', 'integer', 1, '2021-10-20 17:09:53.020', NULL, NULL, 0, '0', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('7c76bb64-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'assigneeList', 'json', 2, '2021-10-20 17:09:53.021', NULL, NULL, NULL, '[\"admin\",\"userD\"]', 'java.util.LinkedList'); -INSERT INTO `ACT_HI_DETAIL` VALUES ('7c76bb65-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'initiator', 'string', 1, '2021-10-20 17:09:53.021', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('7c76bb66-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'multiAbstainCount', 'integer', 1, '2021-10-20 17:09:53.021', NULL, NULL, 0, '0', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('7c76e277-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'loopCounter', 'integer', 2, '2021-10-20 17:09:53.022', NULL, NULL, 0, '0', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('7c76e278-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'multiSignStartTask', 'string', 1, '2021-10-20 17:09:53.022', NULL, NULL, NULL, '32dedbc5-3185-11ec-9f40-f20b812c0662', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('7c770989-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'nrOfInstances', 'integer', 1, '2021-10-20 17:09:53.023', NULL, NULL, 2, '2', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('7c77098a-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'multiNumOfInstances', 'integer', 2, '2021-10-20 17:09:53.023', NULL, NULL, 2, '2', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('7c77098b-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'startUserName', 'string', 1, '2021-10-20 17:09:53.023', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('7c77309c-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'operationType', 'string', 3, '2021-10-20 17:09:53.024', NULL, NULL, NULL, 'agree', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('7c77309d-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'deptPostLeader', 'string', 1, '2021-10-20 17:09:53.024', NULL, NULL, NULL, '1440964519391137792', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('7c77309e-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'assignee', 'string', 2, '2021-10-20 17:09:53.024', NULL, NULL, NULL, 'admin', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('7c7757af-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'multiAgreeCount', 'integer', 3, '2021-10-20 17:09:53.025', NULL, NULL, 2, '2', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('7c7757b0-3185-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'nrOfCompletedInstances', 'integer', 1, '2021-10-20 17:09:53.025', NULL, NULL, 2, '2', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('8b8182d0-3183-11ec-ad5a-f20b812c0662', 'VariableUpdate', '5b6b546a-3183-11ec-ad5a-f20b812c0662', '5b6c3ed2-3183-11ec-ad5a-f20b812c0662', '5f1ee6a5-3183-11ec-ad5a-f20b812c0662', NULL, 'operationType', 'string', 1, '2021-10-20 16:55:59.264', NULL, NULL, NULL, 'refuse', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('8b81a9e1-3183-11ec-ad5a-f20b812c0662', 'VariableUpdate', '5b6b546a-3183-11ec-ad5a-f20b812c0662', '5b6c3ed2-3183-11ec-ad5a-f20b812c0662', '5f1ee6a5-3183-11ec-ad5a-f20b812c0662', NULL, 'deptPostLeader', 'string', 1, '2021-10-20 16:55:59.265', NULL, NULL, NULL, '1440964519391137792', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('8b835792-3183-11ec-ad5a-f20b812c0662', 'VariableUpdate', '5b6b546a-3183-11ec-ad5a-f20b812c0662', '5b6b546a-3183-11ec-ad5a-f20b812c0662', NULL, NULL, 'deptPostLeader', 'string', 2, '2021-10-20 16:55:59.276', NULL, NULL, NULL, '1440964519391137792', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('8b837ea3-3183-11ec-ad5a-f20b812c0662', 'VariableUpdate', '5b6b546a-3183-11ec-ad5a-f20b812c0662', '5b6b546a-3183-11ec-ad5a-f20b812c0662', NULL, NULL, 'operationType', 'string', 1, '2021-10-20 16:55:59.277', NULL, NULL, NULL, 'refuse', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('8b83ccc4-3183-11ec-ad5a-f20b812c0662', 'VariableUpdate', '5b6b546a-3183-11ec-ad5a-f20b812c0662', '5b6b546a-3183-11ec-ad5a-f20b812c0662', NULL, NULL, 'startUserName', 'string', 1, '2021-10-20 16:55:59.279', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('8b83f3d5-3183-11ec-ad5a-f20b812c0662', 'VariableUpdate', '5b6b546a-3183-11ec-ad5a-f20b812c0662', '5b6b546a-3183-11ec-ad5a-f20b812c0662', NULL, NULL, 'initiator', 'string', 1, '2021-10-20 16:55:59.280', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('8b85c899-3183-11ec-ad5a-f20b812c0662', 'VariableUpdate', '5b6b546a-3183-11ec-ad5a-f20b812c0662', '5b6c3ed2-3183-11ec-ad5a-f20b812c0662', '8b85a187-3183-11ec-ad5a-f20b812c0662', NULL, 'startUserName', 'string', 0, '2021-10-20 16:55:59.292', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('8b85c89b-3183-11ec-ad5a-f20b812c0662', 'VariableUpdate', '5b6b546a-3183-11ec-ad5a-f20b812c0662', '5b6c3ed2-3183-11ec-ad5a-f20b812c0662', '8b85a187-3183-11ec-ad5a-f20b812c0662', NULL, 'initiator', 'string', 0, '2021-10-20 16:55:59.292', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('8b85c89d-3183-11ec-ad5a-f20b812c0662', 'VariableUpdate', '5b6b546a-3183-11ec-ad5a-f20b812c0662', '5b6c3ed2-3183-11ec-ad5a-f20b812c0662', '8b85a187-3183-11ec-ad5a-f20b812c0662', NULL, 'operationType', 'string', 0, '2021-10-20 16:55:59.292', NULL, NULL, NULL, 'refuse', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('8b85c89f-3183-11ec-ad5a-f20b812c0662', 'VariableUpdate', '5b6b546a-3183-11ec-ad5a-f20b812c0662', '5b6c3ed2-3183-11ec-ad5a-f20b812c0662', '8b85a187-3183-11ec-ad5a-f20b812c0662', NULL, 'deptPostLeader', 'string', 0, '2021-10-20 16:55:59.292', NULL, NULL, NULL, '1440964519391137792', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('8de9299f-3182-11ec-a0b7-f20b812c0662', 'VariableUpdate', '8de8b46c-3182-11ec-a0b7-f20b812c0662', '8de8b46c-3182-11ec-a0b7-f20b812c0662', NULL, NULL, 'startUserName', 'string', 0, '2021-10-20 16:48:53.801', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('8de976c1-3182-11ec-a0b7-f20b812c0662', 'VariableUpdate', '8de8b46c-3182-11ec-a0b7-f20b812c0662', '8de8b46c-3182-11ec-a0b7-f20b812c0662', NULL, NULL, 'deptPostLeader', 'long', 0, '2021-10-20 16:48:53.804', NULL, NULL, 1440964519391137792, '1440964519391137792', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('8de976c3-3182-11ec-a0b7-f20b812c0662', 'VariableUpdate', '8de8b46c-3182-11ec-a0b7-f20b812c0662', '8de8b46c-3182-11ec-a0b7-f20b812c0662', NULL, NULL, 'initiator', 'string', 0, '2021-10-20 16:48:53.804', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('8dec35e9-3182-11ec-a0b7-f20b812c0662', 'VariableUpdate', '8de8b46c-3182-11ec-a0b7-f20b812c0662', '8de976c4-3182-11ec-a0b7-f20b812c0662', '8deb99a7-3182-11ec-a0b7-f20b812c0662', NULL, 'startUserName', 'string', 0, '2021-10-20 16:48:53.822', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('8dec35eb-3182-11ec-a0b7-f20b812c0662', 'VariableUpdate', '8de8b46c-3182-11ec-a0b7-f20b812c0662', '8de976c4-3182-11ec-a0b7-f20b812c0662', '8deb99a7-3182-11ec-a0b7-f20b812c0662', NULL, 'initiator', 'string', 0, '2021-10-20 16:48:53.822', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('8dec35ed-3182-11ec-a0b7-f20b812c0662', 'VariableUpdate', '8de8b46c-3182-11ec-a0b7-f20b812c0662', '8de976c4-3182-11ec-a0b7-f20b812c0662', '8deb99a7-3182-11ec-a0b7-f20b812c0662', NULL, 'deptPostLeader', 'long', 0, '2021-10-20 16:48:53.822', NULL, NULL, 1440964519391137792, '1440964519391137792', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('8edff9fb-3184-11ec-9f40-f20b812c0662', 'VariableUpdate', '8edf84c8-3184-11ec-9f40-f20b812c0662', '8edf84c8-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'startUserName', 'string', 0, '2021-10-20 17:03:14.413', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('8ee0481d-3184-11ec-9f40-f20b812c0662', 'VariableUpdate', '8edf84c8-3184-11ec-9f40-f20b812c0662', '8edf84c8-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'deptPostLeader', 'string', 0, '2021-10-20 17:03:14.415', NULL, NULL, NULL, '1440964519391137792', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('8ee0481f-3184-11ec-9f40-f20b812c0662', 'VariableUpdate', '8edf84c8-3184-11ec-9f40-f20b812c0662', '8edf84c8-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'initiator', 'string', 0, '2021-10-20 17:03:14.415', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('8ee3ca95-3184-11ec-9f40-f20b812c0662', 'VariableUpdate', '8edf84c8-3184-11ec-9f40-f20b812c0662', '8ee06f30-3184-11ec-9f40-f20b812c0662', '8ee35563-3184-11ec-9f40-f20b812c0662', NULL, 'startUserName', 'string', 0, '2021-10-20 17:03:14.438', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('8ee3f1a7-3184-11ec-9f40-f20b812c0662', 'VariableUpdate', '8edf84c8-3184-11ec-9f40-f20b812c0662', '8ee06f30-3184-11ec-9f40-f20b812c0662', '8ee35563-3184-11ec-9f40-f20b812c0662', NULL, 'initiator', 'string', 0, '2021-10-20 17:03:14.439', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('8ee3f1a9-3184-11ec-9f40-f20b812c0662', 'VariableUpdate', '8edf84c8-3184-11ec-9f40-f20b812c0662', '8ee06f30-3184-11ec-9f40-f20b812c0662', '8ee35563-3184-11ec-9f40-f20b812c0662', NULL, 'deptPostLeader', 'string', 0, '2021-10-20 17:03:14.439', NULL, NULL, NULL, '1440964519391137792', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('8ee96feb-3184-11ec-9f40-f20b812c0662', 'VariableUpdate', '8edf84c8-3184-11ec-9f40-f20b812c0662', '8ee06f30-3184-11ec-9f40-f20b812c0662', '8ee35563-3184-11ec-9f40-f20b812c0662', NULL, 'operationType', 'string', 0, '2021-10-20 17:03:14.475', NULL, NULL, NULL, 'agree', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('8eeacf7c-3184-11ec-9f40-f20b812c0662', 'VariableUpdate', '8edf84c8-3184-11ec-9f40-f20b812c0662', '8edf84c8-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'deptPostLeader', 'string', 1, '2021-10-20 17:03:14.484', NULL, NULL, NULL, '1440964519391137792', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('8eeb1d9e-3184-11ec-9f40-f20b812c0662', 'VariableUpdate', '8edf84c8-3184-11ec-9f40-f20b812c0662', '8edf84c8-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'operationType', 'string', 0, '2021-10-20 17:03:14.486', NULL, NULL, NULL, 'agree', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('8eeb1d9f-3184-11ec-9f40-f20b812c0662', 'VariableUpdate', '8edf84c8-3184-11ec-9f40-f20b812c0662', '8edf84c8-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'startUserName', 'string', 1, '2021-10-20 17:03:14.486', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('8eeb44b0-3184-11ec-9f40-f20b812c0662', 'VariableUpdate', '8edf84c8-3184-11ec-9f40-f20b812c0662', '8edf84c8-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'initiator', 'string', 1, '2021-10-20 17:03:14.487', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('8eebb9e4-3184-11ec-9f40-f20b812c0662', 'VariableUpdate', '8edf84c8-3184-11ec-9f40-f20b812c0662', '8ee06f30-3184-11ec-9f40-f20b812c0662', '8eeb92d2-3184-11ec-9f40-f20b812c0662', NULL, 'startUserName', 'string', 0, '2021-10-20 17:03:14.490', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('8eebb9e6-3184-11ec-9f40-f20b812c0662', 'VariableUpdate', '8edf84c8-3184-11ec-9f40-f20b812c0662', '8ee06f30-3184-11ec-9f40-f20b812c0662', '8eeb92d2-3184-11ec-9f40-f20b812c0662', NULL, 'initiator', 'string', 0, '2021-10-20 17:03:14.490', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('8eebb9e8-3184-11ec-9f40-f20b812c0662', 'VariableUpdate', '8edf84c8-3184-11ec-9f40-f20b812c0662', '8ee06f30-3184-11ec-9f40-f20b812c0662', '8eeb92d2-3184-11ec-9f40-f20b812c0662', NULL, 'deptPostLeader', 'string', 0, '2021-10-20 17:03:14.490', NULL, NULL, NULL, '1440964519391137792', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('8eebb9ea-3184-11ec-9f40-f20b812c0662', 'VariableUpdate', '8edf84c8-3184-11ec-9f40-f20b812c0662', '8ee06f30-3184-11ec-9f40-f20b812c0662', '8eeb92d2-3184-11ec-9f40-f20b812c0662', NULL, 'operationType', 'string', 0, '2021-10-20 17:03:14.490', NULL, NULL, NULL, 'agree', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('9785d5f0-3183-11ec-ad5a-f20b812c0662', 'VariableUpdate', '5b6b546a-3183-11ec-ad5a-f20b812c0662', '5b6c3ed2-3183-11ec-ad5a-f20b812c0662', '8b85a187-3183-11ec-ad5a-f20b812c0662', NULL, 'operationType', 'string', 1, '2021-10-20 16:56:19.425', NULL, NULL, NULL, 'agree', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('9785fd01-3183-11ec-ad5a-f20b812c0662', 'VariableUpdate', '5b6b546a-3183-11ec-ad5a-f20b812c0662', '5b6c3ed2-3183-11ec-ad5a-f20b812c0662', '8b85a187-3183-11ec-ad5a-f20b812c0662', NULL, 'deptPostLeader', 'string', 1, '2021-10-20 16:56:19.426', NULL, NULL, NULL, '1440964519391137792', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('97873582-3183-11ec-ad5a-f20b812c0662', 'VariableUpdate', '5b6b546a-3183-11ec-ad5a-f20b812c0662', '5b6b546a-3183-11ec-ad5a-f20b812c0662', NULL, NULL, 'operationType', 'string', 2, '2021-10-20 16:56:19.434', NULL, NULL, NULL, 'agree', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('97873583-3183-11ec-ad5a-f20b812c0662', 'VariableUpdate', '5b6b546a-3183-11ec-ad5a-f20b812c0662', '5b6b546a-3183-11ec-ad5a-f20b812c0662', NULL, NULL, 'deptPostLeader', 'string', 2, '2021-10-20 16:56:19.434', NULL, NULL, NULL, '1440964519391137792', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('97875c94-3183-11ec-ad5a-f20b812c0662', 'VariableUpdate', '5b6b546a-3183-11ec-ad5a-f20b812c0662', '5b6b546a-3183-11ec-ad5a-f20b812c0662', NULL, NULL, 'startUserName', 'string', 1, '2021-10-20 16:56:19.435', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('97875c95-3183-11ec-ad5a-f20b812c0662', 'VariableUpdate', '5b6b546a-3183-11ec-ad5a-f20b812c0662', '5b6b546a-3183-11ec-ad5a-f20b812c0662', NULL, NULL, 'initiator', 'string', 1, '2021-10-20 16:56:19.435', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('9787f8d9-3183-11ec-ad5a-f20b812c0662', 'VariableUpdate', '5b6b546a-3183-11ec-ad5a-f20b812c0662', '5b6c3ed2-3183-11ec-ad5a-f20b812c0662', '9787d1c7-3183-11ec-ad5a-f20b812c0662', NULL, 'startUserName', 'string', 0, '2021-10-20 16:56:19.439', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('9787f8db-3183-11ec-ad5a-f20b812c0662', 'VariableUpdate', '5b6b546a-3183-11ec-ad5a-f20b812c0662', '5b6c3ed2-3183-11ec-ad5a-f20b812c0662', '9787d1c7-3183-11ec-ad5a-f20b812c0662', NULL, 'initiator', 'string', 0, '2021-10-20 16:56:19.439', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('9787f8dd-3183-11ec-ad5a-f20b812c0662', 'VariableUpdate', '5b6b546a-3183-11ec-ad5a-f20b812c0662', '5b6c3ed2-3183-11ec-ad5a-f20b812c0662', '9787d1c7-3183-11ec-ad5a-f20b812c0662', NULL, 'operationType', 'string', 0, '2021-10-20 16:56:19.439', NULL, NULL, NULL, 'agree', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('97881fef-3183-11ec-ad5a-f20b812c0662', 'VariableUpdate', '5b6b546a-3183-11ec-ad5a-f20b812c0662', '5b6c3ed2-3183-11ec-ad5a-f20b812c0662', '9787d1c7-3183-11ec-ad5a-f20b812c0662', NULL, 'deptPostLeader', 'string', 0, '2021-10-20 16:56:19.440', NULL, NULL, NULL, '1440964519391137792', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('9b43ab3d-3184-11ec-9f40-f20b812c0662', 'VariableUpdate', '8edf84c8-3184-11ec-9f40-f20b812c0662', '8ee06f30-3184-11ec-9f40-f20b812c0662', '8eeb92d2-3184-11ec-9f40-f20b812c0662', NULL, 'operationType', 'string', 1, '2021-10-20 17:03:35.199', NULL, NULL, NULL, 'agree', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('9b44bcae-3184-11ec-9f40-f20b812c0662', 'VariableUpdate', '8edf84c8-3184-11ec-9f40-f20b812c0662', '8edf84c8-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'deptPostLeader', 'string', 1, '2021-10-20 17:03:35.206', NULL, NULL, NULL, '1440964519391137792', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('9b44e3bf-3184-11ec-9f40-f20b812c0662', 'VariableUpdate', '8edf84c8-3184-11ec-9f40-f20b812c0662', '8edf84c8-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'operationType', 'string', 1, '2021-10-20 17:03:35.207', NULL, NULL, NULL, 'agree', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('9b450ad0-3184-11ec-9f40-f20b812c0662', 'VariableUpdate', '8edf84c8-3184-11ec-9f40-f20b812c0662', '8edf84c8-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'startUserName', 'string', 1, '2021-10-20 17:03:35.208', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('9b450ad1-3184-11ec-9f40-f20b812c0662', 'VariableUpdate', '8edf84c8-3184-11ec-9f40-f20b812c0662', '8edf84c8-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'initiator', 'string', 1, '2021-10-20 17:03:35.208', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('9b45f535-3184-11ec-9f40-f20b812c0662', 'VariableUpdate', '8edf84c8-3184-11ec-9f40-f20b812c0662', '8ee06f30-3184-11ec-9f40-f20b812c0662', '9b45ce23-3184-11ec-9f40-f20b812c0662', NULL, 'startUserName', 'string', 0, '2021-10-20 17:03:35.214', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('9b45f537-3184-11ec-9f40-f20b812c0662', 'VariableUpdate', '8edf84c8-3184-11ec-9f40-f20b812c0662', '8ee06f30-3184-11ec-9f40-f20b812c0662', '9b45ce23-3184-11ec-9f40-f20b812c0662', NULL, 'initiator', 'string', 0, '2021-10-20 17:03:35.214', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('9b45f539-3184-11ec-9f40-f20b812c0662', 'VariableUpdate', '8edf84c8-3184-11ec-9f40-f20b812c0662', '8ee06f30-3184-11ec-9f40-f20b812c0662', '9b45ce23-3184-11ec-9f40-f20b812c0662', NULL, 'deptPostLeader', 'string', 0, '2021-10-20 17:03:35.214', NULL, NULL, NULL, '1440964519391137792', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('9b461c4b-3184-11ec-9f40-f20b812c0662', 'VariableUpdate', '8edf84c8-3184-11ec-9f40-f20b812c0662', '8ee06f30-3184-11ec-9f40-f20b812c0662', '9b45ce23-3184-11ec-9f40-f20b812c0662', NULL, 'operationType', 'string', 0, '2021-10-20 17:03:35.215', NULL, NULL, NULL, 'agree', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('9c12a5af-3182-11ec-a0b7-f20b812c0662', 'VariableUpdate', '8de8b46c-3182-11ec-a0b7-f20b812c0662', '8de976c4-3182-11ec-a0b7-f20b812c0662', '8deb99a7-3182-11ec-a0b7-f20b812c0662', NULL, 'operationType', 'string', 0, '2021-10-20 16:49:17.562', NULL, NULL, NULL, 'agree', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('9c12ccc0-3182-11ec-a0b7-f20b812c0662', 'VariableUpdate', '8de8b46c-3182-11ec-a0b7-f20b812c0662', '8de976c4-3182-11ec-a0b7-f20b812c0662', '8deb99a7-3182-11ec-a0b7-f20b812c0662', NULL, 'deptPostLeader', 'string', 1, '2021-10-20 16:49:17.562', NULL, NULL, NULL, '1440964519391137792', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('9c15da01-3182-11ec-a0b7-f20b812c0662', 'VariableUpdate', '8de8b46c-3182-11ec-a0b7-f20b812c0662', '8de8b46c-3182-11ec-a0b7-f20b812c0662', NULL, NULL, 'deptPostLeader', 'string', 1, '2021-10-20 16:49:17.583', NULL, NULL, NULL, '1440964519391137792', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('9c160113-3182-11ec-a0b7-f20b812c0662', 'VariableUpdate', '8de8b46c-3182-11ec-a0b7-f20b812c0662', '8de8b46c-3182-11ec-a0b7-f20b812c0662', NULL, NULL, 'operationType', 'string', 0, '2021-10-20 16:49:17.584', NULL, NULL, NULL, 'agree', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('9c160114-3182-11ec-a0b7-f20b812c0662', 'VariableUpdate', '8de8b46c-3182-11ec-a0b7-f20b812c0662', '8de8b46c-3182-11ec-a0b7-f20b812c0662', NULL, NULL, 'startUserName', 'string', 1, '2021-10-20 16:49:17.584', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('9c160115-3182-11ec-a0b7-f20b812c0662', 'VariableUpdate', '8de8b46c-3182-11ec-a0b7-f20b812c0662', '8de8b46c-3182-11ec-a0b7-f20b812c0662', NULL, NULL, 'initiator', 'string', 1, '2021-10-20 16:49:17.584', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('9c169d59-3182-11ec-a0b7-f20b812c0662', 'VariableUpdate', '8de8b46c-3182-11ec-a0b7-f20b812c0662', '8de976c4-3182-11ec-a0b7-f20b812c0662', '9c164f37-3182-11ec-a0b7-f20b812c0662', NULL, 'startUserName', 'string', 0, '2021-10-20 16:49:17.588', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('9c169d5b-3182-11ec-a0b7-f20b812c0662', 'VariableUpdate', '8de8b46c-3182-11ec-a0b7-f20b812c0662', '8de976c4-3182-11ec-a0b7-f20b812c0662', '9c164f37-3182-11ec-a0b7-f20b812c0662', NULL, 'initiator', 'string', 0, '2021-10-20 16:49:17.588', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('9c169d5d-3182-11ec-a0b7-f20b812c0662', 'VariableUpdate', '8de8b46c-3182-11ec-a0b7-f20b812c0662', '8de976c4-3182-11ec-a0b7-f20b812c0662', '9c164f37-3182-11ec-a0b7-f20b812c0662', NULL, 'deptPostLeader', 'string', 0, '2021-10-20 16:49:17.588', NULL, NULL, NULL, '1440964519391137792', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('9c169d5f-3182-11ec-a0b7-f20b812c0662', 'VariableUpdate', '8de8b46c-3182-11ec-a0b7-f20b812c0662', '8de976c4-3182-11ec-a0b7-f20b812c0662', '9c164f37-3182-11ec-a0b7-f20b812c0662', NULL, 'operationType', 'string', 0, '2021-10-20 16:49:17.588', NULL, NULL, NULL, 'agree', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('a17fb311-3183-11ec-ad5a-f20b812c0662', 'VariableUpdate', '5b6b546a-3183-11ec-ad5a-f20b812c0662', '5b6c3ed2-3183-11ec-ad5a-f20b812c0662', '9787d1c7-3183-11ec-ad5a-f20b812c0662', NULL, 'operationType', 'string', 1, '2021-10-20 16:56:36.162', NULL, NULL, NULL, 'agree', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('a17fda22-3183-11ec-ad5a-f20b812c0662', 'VariableUpdate', '5b6b546a-3183-11ec-ad5a-f20b812c0662', '5b6c3ed2-3183-11ec-ad5a-f20b812c0662', '9787d1c7-3183-11ec-ad5a-f20b812c0662', NULL, 'deptPostLeader', 'string', 1, '2021-10-20 16:56:36.163', NULL, NULL, NULL, '1440964519391137792', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('a1807663-3183-11ec-ad5a-f20b812c0662', 'VariableUpdate', '5b6b546a-3183-11ec-ad5a-f20b812c0662', '5b6b546a-3183-11ec-ad5a-f20b812c0662', NULL, NULL, 'operationType', 'string', 3, '2021-10-20 16:56:36.167', NULL, NULL, NULL, 'agree', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('a1809d74-3183-11ec-ad5a-f20b812c0662', 'VariableUpdate', '5b6b546a-3183-11ec-ad5a-f20b812c0662', '5b6b546a-3183-11ec-ad5a-f20b812c0662', NULL, NULL, 'deptPostLeader', 'string', 2, '2021-10-20 16:56:36.168', NULL, NULL, NULL, '1440964519391137792', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('a1809d75-3183-11ec-ad5a-f20b812c0662', 'VariableUpdate', '5b6b546a-3183-11ec-ad5a-f20b812c0662', '5b6b546a-3183-11ec-ad5a-f20b812c0662', NULL, NULL, 'startUserName', 'string', 1, '2021-10-20 16:56:36.168', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('a180c486-3183-11ec-ad5a-f20b812c0662', 'VariableUpdate', '5b6b546a-3183-11ec-ad5a-f20b812c0662', '5b6b546a-3183-11ec-ad5a-f20b812c0662', NULL, NULL, 'initiator', 'string', 1, '2021-10-20 16:56:36.169', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('a18112aa-3183-11ec-ad5a-f20b812c0662', 'VariableUpdate', '5b6b546a-3183-11ec-ad5a-f20b812c0662', '5b6c3ed2-3183-11ec-ad5a-f20b812c0662', 'a18112a8-3183-11ec-ad5a-f20b812c0662', NULL, 'startUserName', 'string', 0, '2021-10-20 16:56:36.171', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('a18112ac-3183-11ec-ad5a-f20b812c0662', 'VariableUpdate', '5b6b546a-3183-11ec-ad5a-f20b812c0662', '5b6c3ed2-3183-11ec-ad5a-f20b812c0662', 'a18112a8-3183-11ec-ad5a-f20b812c0662', NULL, 'initiator', 'string', 0, '2021-10-20 16:56:36.171', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('a18139be-3183-11ec-ad5a-f20b812c0662', 'VariableUpdate', '5b6b546a-3183-11ec-ad5a-f20b812c0662', '5b6c3ed2-3183-11ec-ad5a-f20b812c0662', 'a18112a8-3183-11ec-ad5a-f20b812c0662', NULL, 'operationType', 'string', 0, '2021-10-20 16:56:36.172', NULL, NULL, NULL, 'agree', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('a18139c0-3183-11ec-ad5a-f20b812c0662', 'VariableUpdate', '5b6b546a-3183-11ec-ad5a-f20b812c0662', '5b6c3ed2-3183-11ec-ad5a-f20b812c0662', 'a18112a8-3183-11ec-ad5a-f20b812c0662', NULL, 'deptPostLeader', 'string', 0, '2021-10-20 16:56:36.172', NULL, NULL, NULL, '1440964519391137792', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('a3971994-3186-11ec-bf2d-f20b812c0662', 'VariableUpdate', 'a396f281-3186-11ec-bf2d-f20b812c0662', 'a396f281-3186-11ec-bf2d-f20b812c0662', NULL, NULL, 'startUserName', 'string', 0, '2021-10-20 17:18:08.161', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('a39767b6-3186-11ec-bf2d-f20b812c0662', 'VariableUpdate', 'a396f281-3186-11ec-bf2d-f20b812c0662', 'a396f281-3186-11ec-bf2d-f20b812c0662', NULL, NULL, 'deptPostLeader', 'string', 0, '2021-10-20 17:18:08.163', NULL, NULL, NULL, '1440964519391137792', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('a39767b8-3186-11ec-bf2d-f20b812c0662', 'VariableUpdate', 'a396f281-3186-11ec-bf2d-f20b812c0662', 'a396f281-3186-11ec-bf2d-f20b812c0662', NULL, NULL, 'initiator', 'string', 0, '2021-10-20 17:18:08.163', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('a39a4dee-3186-11ec-bf2d-f20b812c0662', 'VariableUpdate', 'a396f281-3186-11ec-bf2d-f20b812c0662', 'a3978ec9-3186-11ec-bf2d-f20b812c0662', 'a399b1ac-3186-11ec-bf2d-f20b812c0662', NULL, 'startUserName', 'string', 0, '2021-10-20 17:18:08.182', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('a39a4df0-3186-11ec-bf2d-f20b812c0662', 'VariableUpdate', 'a396f281-3186-11ec-bf2d-f20b812c0662', 'a3978ec9-3186-11ec-bf2d-f20b812c0662', 'a399b1ac-3186-11ec-bf2d-f20b812c0662', NULL, 'initiator', 'string', 0, '2021-10-20 17:18:08.182', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('a39a4df2-3186-11ec-bf2d-f20b812c0662', 'VariableUpdate', 'a396f281-3186-11ec-bf2d-f20b812c0662', 'a3978ec9-3186-11ec-bf2d-f20b812c0662', 'a399b1ac-3186-11ec-bf2d-f20b812c0662', NULL, 'deptPostLeader', 'string', 0, '2021-10-20 17:18:08.182', NULL, NULL, NULL, '1440964519391137792', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('a3a06874-3186-11ec-bf2d-f20b812c0662', 'VariableUpdate', 'a396f281-3186-11ec-bf2d-f20b812c0662', 'a3978ec9-3186-11ec-bf2d-f20b812c0662', 'a399b1ac-3186-11ec-bf2d-f20b812c0662', NULL, 'operationType', 'string', 0, '2021-10-20 17:18:08.222', NULL, NULL, NULL, 'agree', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('a3a1a0f5-3186-11ec-bf2d-f20b812c0662', 'VariableUpdate', 'a396f281-3186-11ec-bf2d-f20b812c0662', 'a396f281-3186-11ec-bf2d-f20b812c0662', NULL, NULL, 'deptPostLeader', 'string', 1, '2021-10-20 17:18:08.230', NULL, NULL, NULL, '1440964519391137792', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('a3a1c807-3186-11ec-bf2d-f20b812c0662', 'VariableUpdate', 'a396f281-3186-11ec-bf2d-f20b812c0662', 'a396f281-3186-11ec-bf2d-f20b812c0662', NULL, NULL, 'operationType', 'string', 0, '2021-10-20 17:18:08.231', NULL, NULL, NULL, 'agree', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('a3a1c808-3186-11ec-bf2d-f20b812c0662', 'VariableUpdate', 'a396f281-3186-11ec-bf2d-f20b812c0662', 'a396f281-3186-11ec-bf2d-f20b812c0662', NULL, NULL, 'startUserName', 'string', 1, '2021-10-20 17:18:08.231', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('a3a1ef19-3186-11ec-bf2d-f20b812c0662', 'VariableUpdate', 'a396f281-3186-11ec-bf2d-f20b812c0662', 'a396f281-3186-11ec-bf2d-f20b812c0662', NULL, NULL, 'initiator', 'string', 1, '2021-10-20 17:18:08.232', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('a3a2644d-3186-11ec-bf2d-f20b812c0662', 'VariableUpdate', 'a396f281-3186-11ec-bf2d-f20b812c0662', 'a3978ec9-3186-11ec-bf2d-f20b812c0662', 'a3a2162b-3186-11ec-bf2d-f20b812c0662', NULL, 'startUserName', 'string', 0, '2021-10-20 17:18:08.235', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('a3a2644f-3186-11ec-bf2d-f20b812c0662', 'VariableUpdate', 'a396f281-3186-11ec-bf2d-f20b812c0662', 'a3978ec9-3186-11ec-bf2d-f20b812c0662', 'a3a2162b-3186-11ec-bf2d-f20b812c0662', NULL, 'initiator', 'string', 0, '2021-10-20 17:18:08.235', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('a3a26451-3186-11ec-bf2d-f20b812c0662', 'VariableUpdate', 'a396f281-3186-11ec-bf2d-f20b812c0662', 'a3978ec9-3186-11ec-bf2d-f20b812c0662', 'a3a2162b-3186-11ec-bf2d-f20b812c0662', NULL, 'deptPostLeader', 'string', 0, '2021-10-20 17:18:08.235', NULL, NULL, NULL, '1440964519391137792', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('a3a26453-3186-11ec-bf2d-f20b812c0662', 'VariableUpdate', 'a396f281-3186-11ec-bf2d-f20b812c0662', 'a3978ec9-3186-11ec-bf2d-f20b812c0662', 'a3a2162b-3186-11ec-bf2d-f20b812c0662', NULL, 'operationType', 'string', 0, '2021-10-20 17:18:08.235', NULL, NULL, NULL, 'agree', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('a98b5eae-3184-11ec-9f40-f20b812c0662', 'VariableUpdate', '8edf84c8-3184-11ec-9f40-f20b812c0662', '8ee06f30-3184-11ec-9f40-f20b812c0662', '9b45ce23-3184-11ec-9f40-f20b812c0662', NULL, 'operationType', 'string', 1, '2021-10-20 17:03:59.157', NULL, NULL, NULL, 'agree', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('a98c490f-3184-11ec-9f40-f20b812c0662', 'VariableUpdate', '8edf84c8-3184-11ec-9f40-f20b812c0662', '8edf84c8-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'deptPostLeader', 'string', 1, '2021-10-20 17:03:59.163', NULL, NULL, NULL, '1440964519391137792', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('a98c7020-3184-11ec-9f40-f20b812c0662', 'VariableUpdate', '8edf84c8-3184-11ec-9f40-f20b812c0662', '8edf84c8-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'operationType', 'string', 1, '2021-10-20 17:03:59.164', NULL, NULL, NULL, 'agree', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('a98c7021-3184-11ec-9f40-f20b812c0662', 'VariableUpdate', '8edf84c8-3184-11ec-9f40-f20b812c0662', '8edf84c8-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'startUserName', 'string', 1, '2021-10-20 17:03:59.164', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('a98c9732-3184-11ec-9f40-f20b812c0662', 'VariableUpdate', '8edf84c8-3184-11ec-9f40-f20b812c0662', '8edf84c8-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'initiator', 'string', 1, '2021-10-20 17:03:59.165', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('af5e091f-69e7-11ec-b9c4-0235bf949cb9', 'VariableUpdate', 'e214ef91-69e6-11ec-bb85-0235bf949cb9', 'e214ef91-69e6-11ec-bb85-0235bf949cb9', NULL, NULL, 'deptPostLeader', 'string', 1, '2021-12-31 11:13:54.218', NULL, NULL, NULL, '1440969551792574464', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('af5e0920-69e7-11ec-b9c4-0235bf949cb9', 'VariableUpdate', 'e214ef91-69e6-11ec-bb85-0235bf949cb9', 'e214ef91-69e6-11ec-bb85-0235bf949cb9', NULL, NULL, 'operationType', 'string', 1, '2021-12-31 11:13:54.218', NULL, NULL, NULL, 'agree', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('af5e3031-69e7-11ec-b9c4-0235bf949cb9', 'VariableUpdate', 'e214ef91-69e6-11ec-bb85-0235bf949cb9', 'e214ef91-69e6-11ec-bb85-0235bf949cb9', NULL, NULL, 'startUserName', 'string', 1, '2021-12-31 11:13:54.219', NULL, NULL, NULL, 'admin', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('af5e3032-69e7-11ec-b9c4-0235bf949cb9', 'VariableUpdate', 'e214ef91-69e6-11ec-bb85-0235bf949cb9', 'e214ef91-69e6-11ec-bb85-0235bf949cb9', NULL, NULL, 'initiator', 'string', 1, '2021-12-31 11:13:54.219', NULL, NULL, NULL, 'admin', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('ceea6f73-3183-11ec-ad5a-f20b812c0662', 'VariableUpdate', '5b6b546a-3183-11ec-ad5a-f20b812c0662', '5b6c3ed2-3183-11ec-ad5a-f20b812c0662', 'a18112a8-3183-11ec-ad5a-f20b812c0662', NULL, 'operationType', 'string', 1, '2021-10-20 16:57:52.359', NULL, NULL, NULL, 'agree', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('ceea6f74-3183-11ec-ad5a-f20b812c0662', 'VariableUpdate', '5b6b546a-3183-11ec-ad5a-f20b812c0662', '5b6c3ed2-3183-11ec-ad5a-f20b812c0662', 'a18112a8-3183-11ec-ad5a-f20b812c0662', NULL, 'deptPostLeader', 'string', 1, '2021-10-20 16:57:52.359', NULL, NULL, NULL, '1440964221780103168', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('ceeb32c5-3183-11ec-ad5a-f20b812c0662', 'VariableUpdate', '5b6b546a-3183-11ec-ad5a-f20b812c0662', '5b6b546a-3183-11ec-ad5a-f20b812c0662', NULL, NULL, 'operationType', 'string', 3, '2021-10-20 16:57:52.364', NULL, NULL, NULL, 'agree', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('ceeb59d6-3183-11ec-ad5a-f20b812c0662', 'VariableUpdate', '5b6b546a-3183-11ec-ad5a-f20b812c0662', '5b6b546a-3183-11ec-ad5a-f20b812c0662', NULL, NULL, 'deptPostLeader', 'string', 2, '2021-10-20 16:57:52.365', NULL, NULL, NULL, '1440964221780103168', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('ceeb59d7-3183-11ec-ad5a-f20b812c0662', 'VariableUpdate', '5b6b546a-3183-11ec-ad5a-f20b812c0662', '5b6b546a-3183-11ec-ad5a-f20b812c0662', NULL, NULL, 'startUserName', 'string', 1, '2021-10-20 16:57:52.365', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('ceeb80e8-3183-11ec-ad5a-f20b812c0662', 'VariableUpdate', '5b6b546a-3183-11ec-ad5a-f20b812c0662', '5b6b546a-3183-11ec-ad5a-f20b812c0662', NULL, NULL, 'initiator', 'string', 1, '2021-10-20 16:57:52.366', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('d64281ac-69e6-11ec-bb85-0235bf949cb9', 'VariableUpdate', 'd6423389-69e6-11ec-bb85-0235bf949cb9', 'd6423389-69e6-11ec-bb85-0235bf949cb9', NULL, NULL, 'startUserName', 'string', 0, '2021-12-31 11:07:49.972', NULL, NULL, NULL, 'admin', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('d642cfce-69e6-11ec-bb85-0235bf949cb9', 'VariableUpdate', 'd6423389-69e6-11ec-bb85-0235bf949cb9', 'd6423389-69e6-11ec-bb85-0235bf949cb9', NULL, NULL, 'deptPostLeader', 'string', 0, '2021-12-31 11:07:49.974', NULL, NULL, NULL, '1440969551792574464', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('d642cfd0-69e6-11ec-bb85-0235bf949cb9', 'VariableUpdate', 'd6423389-69e6-11ec-bb85-0235bf949cb9', 'd6423389-69e6-11ec-bb85-0235bf949cb9', NULL, NULL, 'initiator', 'string', 0, '2021-12-31 11:07:49.974', NULL, NULL, NULL, 'admin', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('d6458ef6-69e6-11ec-bb85-0235bf949cb9', 'VariableUpdate', 'd6423389-69e6-11ec-bb85-0235bf949cb9', 'd642f6e1-69e6-11ec-bb85-0235bf949cb9', 'd644f2b4-69e6-11ec-bb85-0235bf949cb9', NULL, 'startUserName', 'string', 0, '2021-12-31 11:07:49.992', NULL, NULL, NULL, 'admin', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('d6458ef8-69e6-11ec-bb85-0235bf949cb9', 'VariableUpdate', 'd6423389-69e6-11ec-bb85-0235bf949cb9', 'd642f6e1-69e6-11ec-bb85-0235bf949cb9', 'd644f2b4-69e6-11ec-bb85-0235bf949cb9', NULL, 'initiator', 'string', 0, '2021-12-31 11:07:49.992', NULL, NULL, NULL, 'admin', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('d6458efa-69e6-11ec-bb85-0235bf949cb9', 'VariableUpdate', 'd6423389-69e6-11ec-bb85-0235bf949cb9', 'd642f6e1-69e6-11ec-bb85-0235bf949cb9', 'd644f2b4-69e6-11ec-bb85-0235bf949cb9', NULL, 'deptPostLeader', 'string', 0, '2021-12-31 11:07:49.992', NULL, NULL, NULL, '1440969551792574464', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('d64c45bc-69e6-11ec-bb85-0235bf949cb9', 'VariableUpdate', 'd6423389-69e6-11ec-bb85-0235bf949cb9', 'd642f6e1-69e6-11ec-bb85-0235bf949cb9', 'd644f2b4-69e6-11ec-bb85-0235bf949cb9', NULL, 'operationType', 'string', 0, '2021-12-31 11:07:50.036', NULL, NULL, NULL, 'agree', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('d64da54d-69e6-11ec-bb85-0235bf949cb9', 'VariableUpdate', 'd6423389-69e6-11ec-bb85-0235bf949cb9', 'd6423389-69e6-11ec-bb85-0235bf949cb9', NULL, NULL, 'deptPostLeader', 'string', 1, '2021-12-31 11:07:50.045', NULL, NULL, NULL, '1440969551792574464', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('d64df36f-69e6-11ec-bb85-0235bf949cb9', 'VariableUpdate', 'd6423389-69e6-11ec-bb85-0235bf949cb9', 'd6423389-69e6-11ec-bb85-0235bf949cb9', NULL, NULL, 'operationType', 'string', 0, '2021-12-31 11:07:50.047', NULL, NULL, NULL, 'agree', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('d64df370-69e6-11ec-bb85-0235bf949cb9', 'VariableUpdate', 'd6423389-69e6-11ec-bb85-0235bf949cb9', 'd6423389-69e6-11ec-bb85-0235bf949cb9', NULL, NULL, 'startUserName', 'string', 1, '2021-12-31 11:07:50.047', NULL, NULL, NULL, 'admin', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('d64e1a81-69e6-11ec-bb85-0235bf949cb9', 'VariableUpdate', 'd6423389-69e6-11ec-bb85-0235bf949cb9', 'd6423389-69e6-11ec-bb85-0235bf949cb9', NULL, NULL, 'initiator', 'string', 1, '2021-12-31 11:07:50.048', NULL, NULL, NULL, 'admin', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('d64e8fb5-69e6-11ec-bb85-0235bf949cb9', 'VariableUpdate', 'd6423389-69e6-11ec-bb85-0235bf949cb9', 'd642f6e1-69e6-11ec-bb85-0235bf949cb9', 'd64e68a3-69e6-11ec-bb85-0235bf949cb9', NULL, 'startUserName', 'string', 0, '2021-12-31 11:07:50.051', NULL, NULL, NULL, 'admin', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('d64e8fb7-69e6-11ec-bb85-0235bf949cb9', 'VariableUpdate', 'd6423389-69e6-11ec-bb85-0235bf949cb9', 'd642f6e1-69e6-11ec-bb85-0235bf949cb9', 'd64e68a3-69e6-11ec-bb85-0235bf949cb9', NULL, 'initiator', 'string', 0, '2021-12-31 11:07:50.051', NULL, NULL, NULL, 'admin', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('d64e8fb9-69e6-11ec-bb85-0235bf949cb9', 'VariableUpdate', 'd6423389-69e6-11ec-bb85-0235bf949cb9', 'd642f6e1-69e6-11ec-bb85-0235bf949cb9', 'd64e68a3-69e6-11ec-bb85-0235bf949cb9', NULL, 'deptPostLeader', 'string', 0, '2021-12-31 11:07:50.051', NULL, NULL, NULL, '1440969551792574464', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('d64e8fbb-69e6-11ec-bb85-0235bf949cb9', 'VariableUpdate', 'd6423389-69e6-11ec-bb85-0235bf949cb9', 'd642f6e1-69e6-11ec-bb85-0235bf949cb9', 'd64e68a3-69e6-11ec-bb85-0235bf949cb9', NULL, 'operationType', 'string', 0, '2021-12-31 11:07:50.051', NULL, NULL, NULL, 'agree', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('dc101a50-69e6-11ec-bb85-0235bf949cb9', 'VariableUpdate', 'dc101a4d-69e6-11ec-bb85-0235bf949cb9', 'dc101a4d-69e6-11ec-bb85-0235bf949cb9', NULL, NULL, 'startUserName', 'string', 0, '2021-12-31 11:07:59.708', NULL, NULL, NULL, 'admin', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('dc101a52-69e6-11ec-bb85-0235bf949cb9', 'VariableUpdate', 'dc101a4d-69e6-11ec-bb85-0235bf949cb9', 'dc101a4d-69e6-11ec-bb85-0235bf949cb9', NULL, NULL, 'deptPostLeader', 'string', 0, '2021-12-31 11:07:59.708', NULL, NULL, NULL, '1440969551792574464', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('dc101a54-69e6-11ec-bb85-0235bf949cb9', 'VariableUpdate', 'dc101a4d-69e6-11ec-bb85-0235bf949cb9', 'dc101a4d-69e6-11ec-bb85-0235bf949cb9', NULL, NULL, 'initiator', 'string', 0, '2021-12-31 11:07:59.708', NULL, NULL, NULL, 'admin', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('dc10687a-69e6-11ec-bb85-0235bf949cb9', 'VariableUpdate', 'dc101a4d-69e6-11ec-bb85-0235bf949cb9', 'dc101a55-69e6-11ec-bb85-0235bf949cb9', 'dc104168-69e6-11ec-bb85-0235bf949cb9', NULL, 'startUserName', 'string', 0, '2021-12-31 11:07:59.710', NULL, NULL, NULL, 'admin', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('dc10687c-69e6-11ec-bb85-0235bf949cb9', 'VariableUpdate', 'dc101a4d-69e6-11ec-bb85-0235bf949cb9', 'dc101a55-69e6-11ec-bb85-0235bf949cb9', 'dc104168-69e6-11ec-bb85-0235bf949cb9', NULL, 'initiator', 'string', 0, '2021-12-31 11:07:59.710', NULL, NULL, NULL, 'admin', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('dc10687e-69e6-11ec-bb85-0235bf949cb9', 'VariableUpdate', 'dc101a4d-69e6-11ec-bb85-0235bf949cb9', 'dc101a55-69e6-11ec-bb85-0235bf949cb9', 'dc104168-69e6-11ec-bb85-0235bf949cb9', NULL, 'deptPostLeader', 'string', 0, '2021-12-31 11:07:59.710', NULL, NULL, NULL, '1440969551792574464', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('dc13eaf0-69e6-11ec-bb85-0235bf949cb9', 'VariableUpdate', 'dc101a4d-69e6-11ec-bb85-0235bf949cb9', 'dc101a55-69e6-11ec-bb85-0235bf949cb9', 'dc104168-69e6-11ec-bb85-0235bf949cb9', NULL, 'operationType', 'string', 0, '2021-12-31 11:07:59.733', NULL, NULL, NULL, 'agree', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('dc14ae41-69e6-11ec-bb85-0235bf949cb9', 'VariableUpdate', 'dc101a4d-69e6-11ec-bb85-0235bf949cb9', 'dc101a4d-69e6-11ec-bb85-0235bf949cb9', NULL, NULL, 'deptPostLeader', 'string', 1, '2021-12-31 11:07:59.738', NULL, NULL, NULL, '1440969551792574464', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('dc14ae43-69e6-11ec-bb85-0235bf949cb9', 'VariableUpdate', 'dc101a4d-69e6-11ec-bb85-0235bf949cb9', 'dc101a4d-69e6-11ec-bb85-0235bf949cb9', NULL, NULL, 'operationType', 'string', 0, '2021-12-31 11:07:59.738', NULL, NULL, NULL, 'agree', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('dc14ae44-69e6-11ec-bb85-0235bf949cb9', 'VariableUpdate', 'dc101a4d-69e6-11ec-bb85-0235bf949cb9', 'dc101a4d-69e6-11ec-bb85-0235bf949cb9', NULL, NULL, 'startUserName', 'string', 1, '2021-12-31 11:07:59.738', NULL, NULL, NULL, 'admin', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('dc14d555-69e6-11ec-bb85-0235bf949cb9', 'VariableUpdate', 'dc101a4d-69e6-11ec-bb85-0235bf949cb9', 'dc101a4d-69e6-11ec-bb85-0235bf949cb9', NULL, NULL, 'initiator', 'string', 1, '2021-12-31 11:07:59.739', NULL, NULL, NULL, 'admin', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('dc154a89-69e6-11ec-bb85-0235bf949cb9', 'VariableUpdate', 'dc101a4d-69e6-11ec-bb85-0235bf949cb9', 'dc101a55-69e6-11ec-bb85-0235bf949cb9', 'dc14fc67-69e6-11ec-bb85-0235bf949cb9', NULL, 'startUserName', 'string', 0, '2021-12-31 11:07:59.742', NULL, NULL, NULL, 'admin', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('dc154a8b-69e6-11ec-bb85-0235bf949cb9', 'VariableUpdate', 'dc101a4d-69e6-11ec-bb85-0235bf949cb9', 'dc101a55-69e6-11ec-bb85-0235bf949cb9', 'dc14fc67-69e6-11ec-bb85-0235bf949cb9', NULL, 'initiator', 'string', 0, '2021-12-31 11:07:59.742', NULL, NULL, NULL, 'admin', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('dc154a8d-69e6-11ec-bb85-0235bf949cb9', 'VariableUpdate', 'dc101a4d-69e6-11ec-bb85-0235bf949cb9', 'dc101a55-69e6-11ec-bb85-0235bf949cb9', 'dc14fc67-69e6-11ec-bb85-0235bf949cb9', NULL, 'deptPostLeader', 'string', 0, '2021-12-31 11:07:59.742', NULL, NULL, NULL, '1440969551792574464', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('dc154a8f-69e6-11ec-bb85-0235bf949cb9', 'VariableUpdate', 'dc101a4d-69e6-11ec-bb85-0235bf949cb9', 'dc101a55-69e6-11ec-bb85-0235bf949cb9', 'dc14fc67-69e6-11ec-bb85-0235bf949cb9', NULL, 'operationType', 'string', 0, '2021-12-31 11:07:59.742', NULL, NULL, NULL, 'agree', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('e214ef94-69e6-11ec-bb85-0235bf949cb9', 'VariableUpdate', 'e214ef91-69e6-11ec-bb85-0235bf949cb9', 'e214ef91-69e6-11ec-bb85-0235bf949cb9', NULL, NULL, 'startUserName', 'string', 0, '2021-12-31 11:08:09.806', NULL, NULL, NULL, 'admin', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('e214ef96-69e6-11ec-bb85-0235bf949cb9', 'VariableUpdate', 'e214ef91-69e6-11ec-bb85-0235bf949cb9', 'e214ef91-69e6-11ec-bb85-0235bf949cb9', NULL, NULL, 'deptPostLeader', 'string', 0, '2021-12-31 11:08:09.806', NULL, NULL, NULL, '1440969551792574464', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('e214ef98-69e6-11ec-bb85-0235bf949cb9', 'VariableUpdate', 'e214ef91-69e6-11ec-bb85-0235bf949cb9', 'e214ef91-69e6-11ec-bb85-0235bf949cb9', NULL, NULL, 'initiator', 'string', 0, '2021-12-31 11:08:09.806', NULL, NULL, NULL, 'admin', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('e2153dbe-69e6-11ec-bb85-0235bf949cb9', 'VariableUpdate', 'e214ef91-69e6-11ec-bb85-0235bf949cb9', 'e214ef99-69e6-11ec-bb85-0235bf949cb9', 'e21516ac-69e6-11ec-bb85-0235bf949cb9', NULL, 'startUserName', 'string', 0, '2021-12-31 11:08:09.808', NULL, NULL, NULL, 'admin', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('e2153dc0-69e6-11ec-bb85-0235bf949cb9', 'VariableUpdate', 'e214ef91-69e6-11ec-bb85-0235bf949cb9', 'e214ef99-69e6-11ec-bb85-0235bf949cb9', 'e21516ac-69e6-11ec-bb85-0235bf949cb9', NULL, 'initiator', 'string', 0, '2021-12-31 11:08:09.808', NULL, NULL, NULL, 'admin', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('e2153dc2-69e6-11ec-bb85-0235bf949cb9', 'VariableUpdate', 'e214ef91-69e6-11ec-bb85-0235bf949cb9', 'e214ef99-69e6-11ec-bb85-0235bf949cb9', 'e21516ac-69e6-11ec-bb85-0235bf949cb9', NULL, 'deptPostLeader', 'string', 0, '2021-12-31 11:08:09.808', NULL, NULL, NULL, '1440969551792574464', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('e217d5d4-69e6-11ec-bb85-0235bf949cb9', 'VariableUpdate', 'e214ef91-69e6-11ec-bb85-0235bf949cb9', 'e214ef99-69e6-11ec-bb85-0235bf949cb9', 'e21516ac-69e6-11ec-bb85-0235bf949cb9', NULL, 'operationType', 'string', 0, '2021-12-31 11:08:09.825', NULL, NULL, NULL, 'agree', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('e218c035-69e6-11ec-bb85-0235bf949cb9', 'VariableUpdate', 'e214ef91-69e6-11ec-bb85-0235bf949cb9', 'e214ef91-69e6-11ec-bb85-0235bf949cb9', NULL, NULL, 'deptPostLeader', 'string', 1, '2021-12-31 11:08:09.831', NULL, NULL, NULL, '1440969551792574464', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('e218e747-69e6-11ec-bb85-0235bf949cb9', 'VariableUpdate', 'e214ef91-69e6-11ec-bb85-0235bf949cb9', 'e214ef91-69e6-11ec-bb85-0235bf949cb9', NULL, NULL, 'operationType', 'string', 0, '2021-12-31 11:08:09.832', NULL, NULL, NULL, 'agree', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('e218e748-69e6-11ec-bb85-0235bf949cb9', 'VariableUpdate', 'e214ef91-69e6-11ec-bb85-0235bf949cb9', 'e214ef91-69e6-11ec-bb85-0235bf949cb9', NULL, NULL, 'startUserName', 'string', 1, '2021-12-31 11:08:09.832', NULL, NULL, NULL, 'admin', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('e218e749-69e6-11ec-bb85-0235bf949cb9', 'VariableUpdate', 'e214ef91-69e6-11ec-bb85-0235bf949cb9', 'e214ef91-69e6-11ec-bb85-0235bf949cb9', NULL, NULL, 'initiator', 'string', 1, '2021-12-31 11:08:09.832', NULL, NULL, NULL, 'admin', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('e2195c7d-69e6-11ec-bb85-0235bf949cb9', 'VariableUpdate', 'e214ef91-69e6-11ec-bb85-0235bf949cb9', 'e214ef99-69e6-11ec-bb85-0235bf949cb9', 'e219356b-69e6-11ec-bb85-0235bf949cb9', NULL, 'startUserName', 'string', 0, '2021-12-31 11:08:09.835', NULL, NULL, NULL, 'admin', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('e2195c7f-69e6-11ec-bb85-0235bf949cb9', 'VariableUpdate', 'e214ef91-69e6-11ec-bb85-0235bf949cb9', 'e214ef99-69e6-11ec-bb85-0235bf949cb9', 'e219356b-69e6-11ec-bb85-0235bf949cb9', NULL, 'initiator', 'string', 0, '2021-12-31 11:08:09.835', NULL, NULL, NULL, 'admin', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('e2195c81-69e6-11ec-bb85-0235bf949cb9', 'VariableUpdate', 'e214ef91-69e6-11ec-bb85-0235bf949cb9', 'e214ef99-69e6-11ec-bb85-0235bf949cb9', 'e219356b-69e6-11ec-bb85-0235bf949cb9', NULL, 'deptPostLeader', 'string', 0, '2021-12-31 11:08:09.835', NULL, NULL, NULL, '1440969551792574464', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('e2195c83-69e6-11ec-bb85-0235bf949cb9', 'VariableUpdate', 'e214ef91-69e6-11ec-bb85-0235bf949cb9', 'e214ef99-69e6-11ec-bb85-0235bf949cb9', 'e219356b-69e6-11ec-bb85-0235bf949cb9', NULL, 'operationType', 'string', 0, '2021-12-31 11:08:09.835', NULL, NULL, NULL, 'agree', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('ec6ca597-3184-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'startUserName', 'string', 0, '2021-10-20 17:05:51.363', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('ec6ca599-3184-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'deptPostLeader', 'string', 0, '2021-10-20 17:05:51.363', NULL, NULL, NULL, '1440964519391137792', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('ec6ca59b-3184-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'initiator', 'string', 0, '2021-10-20 17:05:51.363', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('ec6cccb1-3184-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', 'ec6cccaf-3184-11ec-9f40-f20b812c0662', NULL, 'startUserName', 'string', 0, '2021-10-20 17:05:51.364', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('ec6cccb3-3184-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', 'ec6cccaf-3184-11ec-9f40-f20b812c0662', NULL, 'initiator', 'string', 0, '2021-10-20 17:05:51.364', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('ec6cccb5-3184-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', 'ec6cccaf-3184-11ec-9f40-f20b812c0662', NULL, 'deptPostLeader', 'string', 0, '2021-10-20 17:05:51.364', NULL, NULL, NULL, '1440964519391137792', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('ec6eef97-3184-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', 'ec6cccaf-3184-11ec-9f40-f20b812c0662', NULL, 'operationType', 'string', 0, '2021-10-20 17:05:51.378', NULL, NULL, NULL, 'agree', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('ec6f64c8-3184-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'deptPostLeader', 'string', 1, '2021-10-20 17:05:51.381', NULL, NULL, NULL, '1440964519391137792', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('ec6f8bda-3184-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'operationType', 'string', 0, '2021-10-20 17:05:51.382', NULL, NULL, NULL, 'agree', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('ec6f8bdb-3184-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'startUserName', 'string', 1, '2021-10-20 17:05:51.382', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('ec6f8bdc-3184-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'initiator', 'string', 1, '2021-10-20 17:05:51.382', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('ec702820-3184-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', 'ec70010e-3184-11ec-9f40-f20b812c0662', NULL, 'startUserName', 'string', 0, '2021-10-20 17:05:51.386', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('ec702822-3184-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', 'ec70010e-3184-11ec-9f40-f20b812c0662', NULL, 'initiator', 'string', 0, '2021-10-20 17:05:51.386', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('ec702824-3184-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', 'ec70010e-3184-11ec-9f40-f20b812c0662', NULL, 'deptPostLeader', 'string', 0, '2021-10-20 17:05:51.386', NULL, NULL, NULL, '1440964519391137792', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('ec702826-3184-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', 'ec70010e-3184-11ec-9f40-f20b812c0662', NULL, 'operationType', 'string', 0, '2021-10-20 17:05:51.386', NULL, NULL, NULL, 'agree', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('f5179499-3184-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', 'ec70010e-3184-11ec-9f40-f20b812c0662', NULL, 'operationType', 'string', 1, '2021-10-20 17:06:05.905', NULL, NULL, NULL, 'agree', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('f51857ea-3184-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'deptPostLeader', 'string', 1, '2021-10-20 17:06:05.910', NULL, NULL, NULL, '1440964519391137792', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('f51857eb-3184-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'operationType', 'string', 1, '2021-10-20 17:06:05.910', NULL, NULL, NULL, 'agree', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('f5187efc-3184-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'startUserName', 'string', 1, '2021-10-20 17:06:05.911', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('f5187efd-3184-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'initiator', 'string', 1, '2021-10-20 17:06:05.911', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('f5191b45-3184-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'f518f42f-3184-11ec-9f40-f20b812c0662', 'f518f433-3184-11ec-9f40-f20b812c0662', NULL, 'startUserName', 'string', 0, '2021-10-20 17:06:05.915', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('f5191b47-3184-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'f518f42f-3184-11ec-9f40-f20b812c0662', 'f518f433-3184-11ec-9f40-f20b812c0662', NULL, 'initiator', 'string', 0, '2021-10-20 17:06:05.915', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('f5191b49-3184-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'f518f42f-3184-11ec-9f40-f20b812c0662', 'f518f433-3184-11ec-9f40-f20b812c0662', NULL, 'operationType', 'string', 0, '2021-10-20 17:06:05.915', NULL, NULL, NULL, 'agree', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('f5191b4b-3184-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'f518f42f-3184-11ec-9f40-f20b812c0662', 'f518f433-3184-11ec-9f40-f20b812c0662', NULL, 'deptPostLeader', 'string', 0, '2021-10-20 17:06:05.915', NULL, NULL, NULL, '1440964519391137792', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('f519907f-3184-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', 'f518f431-3184-11ec-9f40-f20b812c0662', NULL, 'startUserName', 'string', 0, '2021-10-20 17:06:05.918', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('f5199081-3184-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', 'f518f431-3184-11ec-9f40-f20b812c0662', NULL, 'initiator', 'string', 0, '2021-10-20 17:06:05.918', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('f5199083-3184-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', 'f518f431-3184-11ec-9f40-f20b812c0662', NULL, 'operationType', 'string', 0, '2021-10-20 17:06:05.918', NULL, NULL, NULL, 'agree', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('f5199085-3184-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', 'f518f431-3184-11ec-9f40-f20b812c0662', NULL, 'deptPostLeader', 'string', 0, '2021-10-20 17:06:05.918', NULL, NULL, NULL, '1440964519391137792', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('fe0706a6-3184-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'f518f42f-3184-11ec-9f40-f20b812c0662', 'f518f433-3184-11ec-9f40-f20b812c0662', NULL, 'operationType', 'string', 1, '2021-10-20 17:06:20.896', NULL, NULL, NULL, 'agree', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('fe081817-3184-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'operationType', 'string', 1, '2021-10-20 17:06:20.903', NULL, NULL, NULL, 'agree', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('fe083f28-3184-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'deptPostLeader', 'string', 1, '2021-10-20 17:06:20.904', NULL, NULL, NULL, '1440964519391137792', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('fe083f29-3184-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'startUserName', 'string', 1, '2021-10-20 17:06:20.904', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_HI_DETAIL` VALUES ('fe08663a-3184-11ec-9f40-f20b812c0662', 'VariableUpdate', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', NULL, NULL, 'initiator', 'string', 1, '2021-10-20 17:06:20.905', NULL, NULL, NULL, 'userD', NULL); -COMMIT; - --- ---------------------------- --- Table structure for ACT_HI_IDENTITYLINK --- ---------------------------- -DROP TABLE IF EXISTS `ACT_HI_IDENTITYLINK`; -CREATE TABLE `ACT_HI_IDENTITYLINK` ( - `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL, - `GROUP_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `USER_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `TASK_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `PROC_INST_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - PRIMARY KEY (`ID_`), - KEY `ACT_IDX_HI_IDENT_LNK_USER` (`USER_ID_`), - KEY `ACT_IDX_HI_IDENT_LNK_TASK` (`TASK_ID_`), - KEY `ACT_IDX_HI_IDENT_LNK_PROCINST` (`PROC_INST_ID_`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_bin; - --- ---------------------------- --- Records of ACT_HI_IDENTITYLINK --- ---------------------------- -BEGIN; -INSERT INTO `ACT_HI_IDENTITYLINK` VALUES ('01c7b83c-3185-11ec-9f40-f20b812c0662', '1440964519391137792', 'candidate', NULL, '01c79123-3185-11ec-9f40-f20b812c0662', NULL); -INSERT INTO `ACT_HI_IDENTITYLINK` VALUES ('01c7b83d-3185-11ec-9f40-f20b812c0662', '1440964519395332096', 'candidate', NULL, '01c79123-3185-11ec-9f40-f20b812c0662', NULL); -INSERT INTO `ACT_HI_IDENTITYLINK` VALUES ('04b2aec6-317b-11ec-9438-f20b812c0662', NULL, 'starter', 'userD', NULL, '04b2aec5-317b-11ec-9438-f20b812c0662'); -INSERT INTO `ACT_HI_IDENTITYLINK` VALUES ('04b769d1-317b-11ec-9438-f20b812c0662', NULL, 'participant', 'admin', NULL, '04b2aec5-317b-11ec-9438-f20b812c0662'); -INSERT INTO `ACT_HI_IDENTITYLINK` VALUES ('190031db-3184-11ec-ad5a-f20b812c0662', NULL, 'starter', 'userD', NULL, '190031da-3184-11ec-ad5a-f20b812c0662'); -INSERT INTO `ACT_HI_IDENTITYLINK` VALUES ('190513fe-3184-11ec-ad5a-f20b812c0662', '1440964519391137792', 'candidate', NULL, '1904c5d5-3184-11ec-ad5a-f20b812c0662', NULL); -INSERT INTO `ACT_HI_IDENTITYLINK` VALUES ('2559a9ef-3184-11ec-ad5a-f20b812c0662', NULL, 'participant', 'leaderTJ', NULL, '190031da-3184-11ec-ad5a-f20b812c0662'); -INSERT INTO `ACT_HI_IDENTITYLINK` VALUES ('255f9d77-3184-11ec-ad5a-f20b812c0662', '1440911410581213416', 'candidate', NULL, '255f765c-3184-11ec-ad5a-f20b812c0662', NULL); -INSERT INTO `ACT_HI_IDENTITYLINK` VALUES ('32da20ce-3185-11ec-9f40-f20b812c0662', NULL, 'participant', 'leaderTJ2', NULL, 'ec6ca594-3184-11ec-9f40-f20b812c0662'); -INSERT INTO `ACT_HI_IDENTITYLINK` VALUES ('32df02de-3185-11ec-9f40-f20b812c0662', '1440964387979399168', 'candidate', NULL, '32dedbc5-3185-11ec-9f40-f20b812c0662', NULL); -INSERT INTO `ACT_HI_IDENTITYLINK` VALUES ('3326fd48-3184-11ec-ad5a-f20b812c0662', NULL, 'participant', 'admin', NULL, '190031da-3184-11ec-ad5a-f20b812c0662'); -INSERT INTO `ACT_HI_IDENTITYLINK` VALUES ('4be1e77f-3185-11ec-9f40-f20b812c0662', NULL, 'participant', 'leaderLaw', NULL, 'ec6ca594-3184-11ec-9f40-f20b812c0662'); -INSERT INTO `ACT_HI_IDENTITYLINK` VALUES ('5b6b546b-3183-11ec-ad5a-f20b812c0662', NULL, 'starter', 'userD', NULL, '5b6b546a-3183-11ec-ad5a-f20b812c0662'); -INSERT INTO `ACT_HI_IDENTITYLINK` VALUES ('5f1f34ce-3183-11ec-ad5a-f20b812c0662', '1440964519391137792', 'candidate', NULL, '5f1ee6a5-3183-11ec-ad5a-f20b812c0662', NULL); -INSERT INTO `ACT_HI_IDENTITYLINK` VALUES ('6122459f-3185-11ec-9f40-f20b812c0662', '1440911410581213416', 'candidate', NULL, '6121f760-3185-11ec-9f40-f20b812c0662', NULL); -INSERT INTO `ACT_HI_IDENTITYLINK` VALUES ('7c722780-3185-11ec-9f40-f20b812c0662', NULL, 'participant', 'leader', NULL, 'ec6ca594-3184-11ec-9f40-f20b812c0662'); -INSERT INTO `ACT_HI_IDENTITYLINK` VALUES ('88e5f05f-3183-11ec-ad5a-f20b812c0662', NULL, 'participant', 'leaderTJ', NULL, '5b6b546a-3183-11ec-ad5a-f20b812c0662'); -INSERT INTO `ACT_HI_IDENTITYLINK` VALUES ('8de8b46d-3182-11ec-a0b7-f20b812c0662', NULL, 'starter', 'userD', NULL, '8de8b46c-3182-11ec-a0b7-f20b812c0662'); -INSERT INTO `ACT_HI_IDENTITYLINK` VALUES ('8edfabd9-3184-11ec-9f40-f20b812c0662', NULL, 'starter', 'userD', NULL, '8edf84c8-3184-11ec-9f40-f20b812c0662'); -INSERT INTO `ACT_HI_IDENTITYLINK` VALUES ('8eebe0fb-3184-11ec-9f40-f20b812c0662', '1440964519391137792', 'candidate', NULL, '8eeb92d2-3184-11ec-9f40-f20b812c0662', NULL); -INSERT INTO `ACT_HI_IDENTITYLINK` VALUES ('97881ff0-3183-11ec-ad5a-f20b812c0662', '1440964519391137792', 'candidate', NULL, '9787d1c7-3183-11ec-ad5a-f20b812c0662', NULL); -INSERT INTO `ACT_HI_IDENTITYLINK` VALUES ('9b3ef04c-3184-11ec-9f40-f20b812c0662', NULL, 'participant', 'leaderTJ', NULL, '8edf84c8-3184-11ec-9f40-f20b812c0662'); -INSERT INTO `ACT_HI_IDENTITYLINK` VALUES ('9b461c4c-3184-11ec-9f40-f20b812c0662', '1440964221855600640', 'candidate', NULL, '9b45ce23-3184-11ec-9f40-f20b812c0662', NULL); -INSERT INTO `ACT_HI_IDENTITYLINK` VALUES ('9c16c470-3182-11ec-a0b7-f20b812c0662', '1440964519391137792', 'candidate', NULL, '9c164f37-3182-11ec-a0b7-f20b812c0662', NULL); -INSERT INTO `ACT_HI_IDENTITYLINK` VALUES ('a18139c1-3183-11ec-ad5a-f20b812c0662', '1440964221855600640', 'candidate', NULL, 'a18112a8-3183-11ec-ad5a-f20b812c0662', NULL); -INSERT INTO `ACT_HI_IDENTITYLINK` VALUES ('a396f282-3186-11ec-bf2d-f20b812c0662', NULL, 'starter', 'userD', NULL, 'a396f281-3186-11ec-bf2d-f20b812c0662'); -INSERT INTO `ACT_HI_IDENTITYLINK` VALUES ('a3a26454-3186-11ec-bf2d-f20b812c0662', '1440964519391137792', 'candidate', NULL, 'a3a2162b-3186-11ec-bf2d-f20b812c0662', NULL); -INSERT INTO `ACT_HI_IDENTITYLINK` VALUES ('a987b52d-3184-11ec-9f40-f20b812c0662', NULL, 'participant', 'userA', NULL, '8edf84c8-3184-11ec-9f40-f20b812c0662'); -INSERT INTO `ACT_HI_IDENTITYLINK` VALUES ('cee629b2-3183-11ec-ad5a-f20b812c0662', NULL, 'participant', 'userA', NULL, '5b6b546a-3183-11ec-ad5a-f20b812c0662'); -INSERT INTO `ACT_HI_IDENTITYLINK` VALUES ('d6425a9a-69e6-11ec-bb85-0235bf949cb9', NULL, 'starter', 'admin', NULL, 'd6423389-69e6-11ec-bb85-0235bf949cb9'); -INSERT INTO `ACT_HI_IDENTITYLINK` VALUES ('d64eb6cc-69e6-11ec-bb85-0235bf949cb9', '1440969551792574464', 'candidate', NULL, 'd64e68a3-69e6-11ec-bb85-0235bf949cb9', NULL); -INSERT INTO `ACT_HI_IDENTITYLINK` VALUES ('dc101a4e-69e6-11ec-bb85-0235bf949cb9', NULL, 'starter', 'admin', NULL, 'dc101a4d-69e6-11ec-bb85-0235bf949cb9'); -INSERT INTO `ACT_HI_IDENTITYLINK` VALUES ('dc154a90-69e6-11ec-bb85-0235bf949cb9', '1440969551792574464', 'candidate', NULL, 'dc14fc67-69e6-11ec-bb85-0235bf949cb9', NULL); -INSERT INTO `ACT_HI_IDENTITYLINK` VALUES ('e214ef92-69e6-11ec-bb85-0235bf949cb9', NULL, 'starter', 'admin', NULL, 'e214ef91-69e6-11ec-bb85-0235bf949cb9'); -INSERT INTO `ACT_HI_IDENTITYLINK` VALUES ('e2195c84-69e6-11ec-bb85-0235bf949cb9', '1440969551792574464', 'candidate', NULL, 'e219356b-69e6-11ec-bb85-0235bf949cb9', NULL); -INSERT INTO `ACT_HI_IDENTITYLINK` VALUES ('ec6ca595-3184-11ec-9f40-f20b812c0662', NULL, 'starter', 'userD', NULL, 'ec6ca594-3184-11ec-9f40-f20b812c0662'); -INSERT INTO `ACT_HI_IDENTITYLINK` VALUES ('ec702827-3184-11ec-9f40-f20b812c0662', '1440964519391137792', 'candidate', NULL, 'ec70010e-3184-11ec-9f40-f20b812c0662', NULL); -INSERT INTO `ACT_HI_IDENTITYLINK` VALUES ('f5148758-3184-11ec-9f40-f20b812c0662', NULL, 'participant', 'leaderTJ', NULL, 'ec6ca594-3184-11ec-9f40-f20b812c0662'); -INSERT INTO `ACT_HI_IDENTITYLINK` VALUES ('f5191b4c-3184-11ec-9f40-f20b812c0662', NULL, 'candidate', 'admin', 'f518f433-3184-11ec-9f40-f20b812c0662', NULL); -INSERT INTO `ACT_HI_IDENTITYLINK` VALUES ('f519696d-3184-11ec-9f40-f20b812c0662', NULL, 'participant', 'admin', NULL, 'ec6ca594-3184-11ec-9f40-f20b812c0662'); -COMMIT; - --- ---------------------------- --- Table structure for ACT_HI_PROCINST --- ---------------------------- -DROP TABLE IF EXISTS `ACT_HI_PROCINST`; -CREATE TABLE `ACT_HI_PROCINST` ( - `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL, - `PROC_INST_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL, - `BUSINESS_KEY_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `PROC_DEF_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL, - `START_TIME_` datetime(3) NOT NULL, - `END_TIME_` datetime(3) DEFAULT NULL, - `DURATION_` bigint DEFAULT NULL, - `START_USER_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `START_ACT_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `END_ACT_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `SUPER_PROCESS_INSTANCE_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `DELETE_REASON_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `TENANT_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT '', - `NAME_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - PRIMARY KEY (`ID_`), - UNIQUE KEY `PROC_INST_ID_` (`PROC_INST_ID_`), - KEY `ACT_IDX_HI_PRO_INST_END` (`END_TIME_`), - KEY `ACT_IDX_HI_PRO_I_BUSKEY` (`BUSINESS_KEY_`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_bin; - --- ---------------------------- --- Records of ACT_HI_PROCINST --- ---------------------------- -BEGIN; -INSERT INTO `ACT_HI_PROCINST` VALUES ('04b2aec5-317b-11ec-9438-f20b812c0662', '04b2aec5-317b-11ec-9438-f20b812c0662', '1450732253180071936', 'flowTranslate:1:b28cd036-3175-11ec-9438-f20b812c0662', '2021-10-20 15:54:57.120', '2021-10-20 15:55:28.489', 31369, 'userD', 'Event_15zomtf', 'Event_1am1tua', NULL, NULL, '', NULL); -INSERT INTO `ACT_HI_PROCINST` VALUES ('190031da-3184-11ec-ad5a-f20b812c0662', '190031da-3184-11ec-ad5a-f20b812c0662', '1450748608977571840', 'flowSubmit:1:ae87c2ad-3175-11ec-9438-f20b812c0662', '2021-10-20 16:59:56.653', '2021-10-20 17:00:40.572', 43919, 'userD', 'Event_1u4dx3b', 'Event_04nqfny', NULL, NULL, '', NULL); -INSERT INTO `ACT_HI_PROCINST` VALUES ('5b6b546a-3183-11ec-ad5a-f20b812c0662', '5b6b546a-3183-11ec-ad5a-f20b812c0662', '1450747274836578304', 'flowLeave:4:8e42a9bb-3179-11ec-9438-f20b812c0662', '2021-10-20 16:54:38.588', '2021-10-20 16:57:52.376', 193788, 'userD', 'Event_1mmrttw', 'Event_1c089uo', NULL, NULL, '', NULL); -INSERT INTO `ACT_HI_PROCINST` VALUES ('8de8b46c-3182-11ec-a0b7-f20b812c0662', '8de8b46c-3182-11ec-a0b7-f20b812c0662', '1450745828686696448', 'flowLeave:4:8e42a9bb-3179-11ec-9438-f20b812c0662', '2021-10-20 16:48:53.798', NULL, NULL, 'userD', 'Event_1mmrttw', NULL, NULL, NULL, '', NULL); -INSERT INTO `ACT_HI_PROCINST` VALUES ('8edf84c8-3184-11ec-9f40-f20b812c0662', '8edf84c8-3184-11ec-9f40-f20b812c0662', '1450749438409576448', 'flowLeave:6:79b100b1-3184-11ec-9f40-f20b812c0662', '2021-10-20 17:03:14.410', '2021-10-20 17:03:59.177', 44767, 'userD', 'Event_1mmrttw', 'Event_1c089uo', NULL, NULL, '', NULL); -INSERT INTO `ACT_HI_PROCINST` VALUES ('a396f281-3186-11ec-bf2d-f20b812c0662', 'a396f281-3186-11ec-bf2d-f20b812c0662', '1450753187064582144', 'flowLeave:7:98337350-3186-11ec-bf2d-f20b812c0662', '2021-10-20 17:18:08.160', NULL, NULL, 'userD', 'Event_1mmrttw', NULL, NULL, NULL, '', NULL); -INSERT INTO `ACT_HI_PROCINST` VALUES ('d6423389-69e6-11ec-bb85-0235bf949cb9', 'd6423389-69e6-11ec-bb85-0235bf949cb9', '1476751923557175296', 'flowLeave:9:7d23427c-69e6-11ec-bb85-0235bf949cb9', '2021-12-31 11:07:49.970', NULL, NULL, 'admin', 'Event_1mmrttw', NULL, NULL, NULL, '', NULL); -INSERT INTO `ACT_HI_PROCINST` VALUES ('dc101a4d-69e6-11ec-bb85-0235bf949cb9', 'dc101a4d-69e6-11ec-bb85-0235bf949cb9', '1476751964434862080', 'flowSubmit:4:87e59faf-69e6-11ec-bb85-0235bf949cb9', '2021-12-31 11:07:59.708', NULL, NULL, 'admin', 'Event_1u4dx3b', NULL, NULL, NULL, '', NULL); -INSERT INTO `ACT_HI_PROCINST` VALUES ('e214ef91-69e6-11ec-bb85-0235bf949cb9', 'e214ef91-69e6-11ec-bb85-0235bf949cb9', '1476752006788943872', 'flowContract:4:9170b562-69e6-11ec-bb85-0235bf949cb9', '2021-12-31 11:08:09.806', '2021-12-31 11:13:54.231', 344425, 'admin', 'Event_0kjp9ci', 'Event_085p6dy', NULL, NULL, '', NULL); -INSERT INTO `ACT_HI_PROCINST` VALUES ('ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', '1450750096739143680', 'flowContract:2:7ce26a87-3184-11ec-9f40-f20b812c0662', '2021-10-20 17:05:51.363', '2021-10-20 17:09:53.033', 241670, 'userD', 'Event_0kjp9ci', 'Event_085p6dy', NULL, NULL, '', NULL); -COMMIT; - --- ---------------------------- --- Table structure for ACT_HI_TASKINST --- ---------------------------- -DROP TABLE IF EXISTS `ACT_HI_TASKINST`; -CREATE TABLE `ACT_HI_TASKINST` ( - `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL, - `PROC_DEF_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `TASK_DEF_KEY_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `PROC_INST_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `EXECUTION_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `NAME_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `PARENT_TASK_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `DESCRIPTION_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `OWNER_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `ASSIGNEE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `START_TIME_` datetime(3) NOT NULL, - `CLAIM_TIME_` datetime(3) DEFAULT NULL, - `END_TIME_` datetime(3) DEFAULT NULL, - `DURATION_` bigint DEFAULT NULL, - `DELETE_REASON_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `PRIORITY_` int DEFAULT NULL, - `DUE_DATE_` datetime(3) DEFAULT NULL, - `FORM_KEY_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `CATEGORY_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `TENANT_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT '', - PRIMARY KEY (`ID_`), - KEY `ACT_IDX_HI_TASK_INST_PROCINST` (`PROC_INST_ID_`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_bin; - --- ---------------------------- --- Records of ACT_HI_TASKINST --- ---------------------------- -BEGIN; -INSERT INTO `ACT_HI_TASKINST` VALUES ('01c79123-3185-11ec-9f40-f20b812c0662', 'flowContract:2:7ce26a87-3184-11ec-9f40-f20b812c0662', 'Activity_0xetc8u', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', '财务部审批', NULL, NULL, NULL, 'leaderTJ2', '2021-10-20 17:06:27.191', '2021-10-20 17:07:49.518', '2021-10-20 17:07:49.546', 82355, NULL, 50, NULL, '{\"formId\":\"1440955127790833664\",\"readOnly\":true,\"groupType\":\"POST\"}', NULL, ''); -INSERT INTO `ACT_HI_TASKINST` VALUES ('04b2d5de-317b-11ec-9438-f20b812c0662', 'flowTranslate:1:b28cd036-3175-11ec-9438-f20b812c0662', 'Activity_0c6nxdm', '04b2aec5-317b-11ec-9438-f20b812c0662', '04b2aecb-317b-11ec-9438-f20b812c0662', '录入', NULL, NULL, NULL, 'userD', '2021-10-20 15:54:57.121', NULL, '2021-10-20 15:54:57.144', 23, NULL, 50, NULL, '{\"formId\":\"1440945411354267648\",\"readOnly\":false,\"groupType\":\"DEPT\"}', NULL, ''); -INSERT INTO `ACT_HI_TASKINST` VALUES ('04b742ba-317b-11ec-9438-f20b812c0662', 'flowTranslate:1:b28cd036-3175-11ec-9438-f20b812c0662', 'Activity_0wwsi9w', '04b2aec5-317b-11ec-9438-f20b812c0662', '04b2aecb-317b-11ec-9438-f20b812c0662', '转办', NULL, NULL, NULL, 'userD', '2021-10-20 15:54:57.150', NULL, '2021-10-20 15:55:28.462', 31312, NULL, 50, NULL, '{\"formId\":\"1440945411354267648\",\"readOnly\":true,\"groupType\":\"DEPT\"}', NULL, ''); -INSERT INTO `ACT_HI_TASKINST` VALUES ('19008005-3184-11ec-ad5a-f20b812c0662', 'flowSubmit:1:ae87c2ad-3175-11ec-9438-f20b812c0662', 'Activity_1cs4bi5', '190031da-3184-11ec-ad5a-f20b812c0662', '190058f2-3184-11ec-ad5a-f20b812c0662', '报销申请', NULL, NULL, NULL, 'userD', '2021-10-20 16:59:56.655', NULL, '2021-10-20 16:59:56.679', 24, NULL, 50, NULL, '{\"formId\":\"1440947675041107968\",\"readOnly\":false,\"groupType\":\"DEPT\"}', NULL, ''); -INSERT INTO `ACT_HI_TASKINST` VALUES ('1904c5d5-3184-11ec-ad5a-f20b812c0662', 'flowSubmit:1:ae87c2ad-3175-11ec-9438-f20b812c0662', 'Activity_04scn2o', '190031da-3184-11ec-ad5a-f20b812c0662', '190058f2-3184-11ec-ad5a-f20b812c0662', '部门领导审批', NULL, NULL, NULL, 'leaderTJ', '2021-10-20 16:59:56.683', '2021-10-20 17:00:17.369', '2021-10-20 17:00:17.400', 20717, NULL, 50, NULL, '{\"formId\":\"1440947675041107968\",\"readOnly\":true,\"groupType\":\"DEPT_POST_LEADER\"}', NULL, ''); -INSERT INTO `ACT_HI_TASKINST` VALUES ('255f765c-3184-11ec-ad5a-f20b812c0662', 'flowSubmit:1:ae87c2ad-3175-11ec-9438-f20b812c0662', 'Activity_1w23xfe', '190031da-3184-11ec-ad5a-f20b812c0662', '190058f2-3184-11ec-ad5a-f20b812c0662', '总经理审批', NULL, NULL, NULL, 'admin', '2021-10-20 17:00:17.410', '2021-10-20 17:00:40.520', '2021-10-20 17:00:40.559', 23149, NULL, 50, NULL, '{\"formId\":\"1440947675041107968\",\"readOnly\":true,\"groupType\":\"DEPT\"}', NULL, ''); -INSERT INTO `ACT_HI_TASKINST` VALUES ('32dedbc5-3185-11ec-9f40-f20b812c0662', 'flowContract:2:7ce26a87-3184-11ec-9f40-f20b812c0662', 'Activity_0dvg4hi', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', '法务部审批', NULL, NULL, NULL, 'leaderLaw', '2021-10-20 17:07:49.552', '2021-10-20 17:08:31.512', '2021-10-20 17:08:31.545', 41993, NULL, 50, NULL, '{\"formId\":\"1440955001093492736\",\"readOnly\":true,\"groupType\":\"POST\"}', NULL, ''); -INSERT INTO `ACT_HI_TASKINST` VALUES ('4be78cfe-3185-11ec-9f40-f20b812c0662', 'flowContract:2:7ce26a87-3184-11ec-9f40-f20b812c0662', 'Activity_0xo14ns', 'ec6ca594-3184-11ec-9f40-f20b812c0662', '4be765e3-3185-11ec-9f40-f20b812c0662', '法务部会签', NULL, NULL, NULL, 'admin', '2021-10-20 17:08:31.552', NULL, '2021-10-20 17:09:07.151', 35599, NULL, 50, NULL, '{\"formId\":\"1440955001093492736\",\"readOnly\":true,\"groupType\":\"DEPT\"}', NULL, ''); -INSERT INTO `ACT_HI_TASKINST` VALUES ('4be78d00-3185-11ec-9f40-f20b812c0662', 'flowContract:2:7ce26a87-3184-11ec-9f40-f20b812c0662', 'Activity_0xo14ns', 'ec6ca594-3184-11ec-9f40-f20b812c0662', '4be765e4-3185-11ec-9f40-f20b812c0662', '法务部会签', NULL, NULL, NULL, 'userD', '2021-10-20 17:08:31.552', NULL, '2021-10-20 17:08:47.907', 16355, NULL, 50, NULL, '{\"formId\":\"1440955001093492736\",\"readOnly\":true,\"groupType\":\"DEPT\"}', NULL, ''); -INSERT INTO `ACT_HI_TASKINST` VALUES ('5b6e61b5-3183-11ec-ad5a-f20b812c0662', 'flowLeave:4:8e42a9bb-3179-11ec-9438-f20b812c0662', 'Activity_1tb8jka', '5b6b546a-3183-11ec-ad5a-f20b812c0662', '5b6c3ed2-3183-11ec-ad5a-f20b812c0662', '请假申请', NULL, NULL, NULL, 'userD', '2021-10-20 16:54:38.608', NULL, '2021-10-20 16:54:44.788', 6180, NULL, 50, NULL, '{\"formId\":\"1440945411354267648\",\"readOnly\":false,\"groupType\":\"DEPT\"}', NULL, ''); -INSERT INTO `ACT_HI_TASKINST` VALUES ('5f1ee6a5-3183-11ec-ad5a-f20b812c0662', 'flowLeave:4:8e42a9bb-3179-11ec-9438-f20b812c0662', 'Activity_11jr0px', '5b6b546a-3183-11ec-ad5a-f20b812c0662', '5b6c3ed2-3183-11ec-ad5a-f20b812c0662', '部门领导审批', NULL, NULL, NULL, 'leaderTJ', '2021-10-20 16:54:44.798', '2021-10-20 16:55:54.885', '2021-10-20 16:55:59.271', 74473, NULL, 50, NULL, '{\"formId\":\"1440945411354267648\",\"readOnly\":true,\"groupType\":\"DEPT_POST_LEADER\"}', NULL, ''); -INSERT INTO `ACT_HI_TASKINST` VALUES ('6121f760-3185-11ec-9f40-f20b812c0662', 'flowContract:2:7ce26a87-3184-11ec-9f40-f20b812c0662', 'Activity_1enh5ke', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', '总经理审批', NULL, NULL, NULL, 'leader', '2021-10-20 17:09:07.167', '2021-10-20 17:09:52.989', '2021-10-20 17:09:53.018', 45851, NULL, 50, NULL, '{\"formId\":\"1440954920348946432\",\"readOnly\":true,\"groupType\":\"DEPT\"}', NULL, ''); -INSERT INTO `ACT_HI_TASKINST` VALUES ('8b85a187-3183-11ec-ad5a-f20b812c0662', 'flowLeave:4:8e42a9bb-3179-11ec-9438-f20b812c0662', 'Activity_1tb8jka', '5b6b546a-3183-11ec-ad5a-f20b812c0662', '5b6c3ed2-3183-11ec-ad5a-f20b812c0662', '请假申请', NULL, NULL, NULL, 'userD', '2021-10-20 16:55:59.291', NULL, '2021-10-20 16:56:19.429', 20138, NULL, 50, NULL, '{\"formId\":\"1440945411354267648\",\"readOnly\":false,\"groupType\":\"DEPT\"}', NULL, ''); -INSERT INTO `ACT_HI_TASKINST` VALUES ('8deb99a7-3182-11ec-a0b7-f20b812c0662', 'flowLeave:4:8e42a9bb-3179-11ec-9438-f20b812c0662', 'Activity_1tb8jka', '8de8b46c-3182-11ec-a0b7-f20b812c0662', '8de976c4-3182-11ec-a0b7-f20b812c0662', '请假申请', NULL, NULL, NULL, 'userD', '2021-10-20 16:48:53.818', NULL, '2021-10-20 16:49:17.576', 23758, NULL, 50, NULL, '{\"formId\":\"1440945411354267648\",\"readOnly\":false,\"groupType\":\"DEPT\"}', NULL, ''); -INSERT INTO `ACT_HI_TASKINST` VALUES ('8ee35563-3184-11ec-9f40-f20b812c0662', 'flowLeave:6:79b100b1-3184-11ec-9f40-f20b812c0662', 'Activity_1tb8jka', '8edf84c8-3184-11ec-9f40-f20b812c0662', '8ee06f30-3184-11ec-9f40-f20b812c0662', '请假申请', NULL, NULL, NULL, 'userD', '2021-10-20 17:03:14.435', NULL, '2021-10-20 17:03:14.481', 46, NULL, 50, NULL, '{\"formId\":\"1440945411354267648\",\"readOnly\":false,\"groupType\":\"DEPT\"}', NULL, ''); -INSERT INTO `ACT_HI_TASKINST` VALUES ('8eeb92d2-3184-11ec-9f40-f20b812c0662', 'flowLeave:6:79b100b1-3184-11ec-9f40-f20b812c0662', 'Activity_11jr0px', '8edf84c8-3184-11ec-9f40-f20b812c0662', '8ee06f30-3184-11ec-9f40-f20b812c0662', '部门领导审批', NULL, NULL, NULL, 'leaderTJ', '2021-10-20 17:03:14.489', '2021-10-20 17:03:35.166', '2021-10-20 17:03:35.203', 20714, NULL, 50, NULL, '{\"formId\":\"1440945411354267648\",\"readOnly\":true,\"groupType\":\"DEPT_POST_LEADER\"}', NULL, ''); -INSERT INTO `ACT_HI_TASKINST` VALUES ('9787d1c7-3183-11ec-ad5a-f20b812c0662', 'flowLeave:4:8e42a9bb-3179-11ec-9438-f20b812c0662', 'Activity_11jr0px', '5b6b546a-3183-11ec-ad5a-f20b812c0662', '5b6c3ed2-3183-11ec-ad5a-f20b812c0662', '部门领导审批', NULL, NULL, NULL, 'leaderTJ', '2021-10-20 16:56:19.438', '2021-10-20 16:56:36.134', '2021-10-20 16:56:36.166', 16728, NULL, 50, NULL, '{\"formId\":\"1440945411354267648\",\"readOnly\":true,\"groupType\":\"DEPT_POST_LEADER\"}', NULL, ''); -INSERT INTO `ACT_HI_TASKINST` VALUES ('9b45ce23-3184-11ec-9f40-f20b812c0662', 'flowLeave:6:79b100b1-3184-11ec-9f40-f20b812c0662', 'Activity_00ibp0u', '8edf84c8-3184-11ec-9f40-f20b812c0662', '8ee06f30-3184-11ec-9f40-f20b812c0662', 'HR审批', NULL, NULL, NULL, 'userA', '2021-10-20 17:03:35.214', '2021-10-20 17:03:59.128', '2021-10-20 17:03:59.161', 23947, NULL, 50, NULL, '{\"formId\":\"1440945411354267648\",\"readOnly\":true,\"groupType\":\"POST\"}', NULL, ''); -INSERT INTO `ACT_HI_TASKINST` VALUES ('9c164f37-3182-11ec-a0b7-f20b812c0662', 'flowLeave:4:8e42a9bb-3179-11ec-9438-f20b812c0662', 'Activity_11jr0px', '8de8b46c-3182-11ec-a0b7-f20b812c0662', '8de976c4-3182-11ec-a0b7-f20b812c0662', '部门领导审批', NULL, NULL, NULL, NULL, '2021-10-20 16:49:17.586', NULL, NULL, NULL, NULL, 50, NULL, '{\"formId\":\"1440945411354267648\",\"readOnly\":true,\"groupType\":\"DEPT_POST_LEADER\"}', NULL, ''); -INSERT INTO `ACT_HI_TASKINST` VALUES ('a18112a8-3183-11ec-ad5a-f20b812c0662', 'flowLeave:4:8e42a9bb-3179-11ec-9438-f20b812c0662', 'Activity_00ibp0u', '5b6b546a-3183-11ec-ad5a-f20b812c0662', '5b6c3ed2-3183-11ec-ad5a-f20b812c0662', 'HR审批', NULL, NULL, NULL, 'userA', '2021-10-20 16:56:36.171', '2021-10-20 16:57:52.329', '2021-10-20 16:57:52.362', 76191, NULL, 50, NULL, '{\"formId\":\"1440945411354267648\",\"readOnly\":true,\"groupType\":\"POST\"}', NULL, ''); -INSERT INTO `ACT_HI_TASKINST` VALUES ('a399b1ac-3186-11ec-bf2d-f20b812c0662', 'flowLeave:7:98337350-3186-11ec-bf2d-f20b812c0662', 'Activity_1tb8jka', 'a396f281-3186-11ec-bf2d-f20b812c0662', 'a3978ec9-3186-11ec-bf2d-f20b812c0662', '请假申请', NULL, NULL, NULL, 'userD', '2021-10-20 17:18:08.178', NULL, '2021-10-20 17:18:08.227', 49, NULL, 50, NULL, '{\"formId\":\"1440945411354267648\",\"readOnly\":false,\"groupType\":\"DEPT\"}', NULL, ''); -INSERT INTO `ACT_HI_TASKINST` VALUES ('a3a2162b-3186-11ec-bf2d-f20b812c0662', 'flowLeave:7:98337350-3186-11ec-bf2d-f20b812c0662', 'Activity_11jr0px', 'a396f281-3186-11ec-bf2d-f20b812c0662', 'a3978ec9-3186-11ec-bf2d-f20b812c0662', '部门领导审批', NULL, NULL, NULL, NULL, '2021-10-20 17:18:08.233', NULL, NULL, NULL, NULL, 50, NULL, '{\"formId\":\"1440945411354267648\",\"readOnly\":true,\"groupType\":\"DEPT_POST_LEADER\"}', NULL, ''); -INSERT INTO `ACT_HI_TASKINST` VALUES ('d644f2b4-69e6-11ec-bb85-0235bf949cb9', 'flowLeave:9:7d23427c-69e6-11ec-bb85-0235bf949cb9', 'Activity_1tb8jka', 'd6423389-69e6-11ec-bb85-0235bf949cb9', 'd642f6e1-69e6-11ec-bb85-0235bf949cb9', '请假申请', NULL, NULL, NULL, 'admin', '2021-12-31 11:07:49.988', NULL, '2021-12-31 11:07:50.042', 54, NULL, 50, NULL, '{\"formId\":\"1440945411354267648\",\"readOnly\":false,\"groupType\":\"ASSIGNEE\"}', NULL, ''); -INSERT INTO `ACT_HI_TASKINST` VALUES ('d64e68a3-69e6-11ec-bb85-0235bf949cb9', 'flowLeave:9:7d23427c-69e6-11ec-bb85-0235bf949cb9', 'Activity_11jr0px', 'd6423389-69e6-11ec-bb85-0235bf949cb9', 'd642f6e1-69e6-11ec-bb85-0235bf949cb9', '部门领导审批', NULL, NULL, NULL, NULL, '2021-12-31 11:07:50.050', NULL, NULL, NULL, NULL, 50, NULL, '{\"formId\":\"1440945411354267648\",\"readOnly\":true,\"groupType\":\"DEPT_POST_LEADER\"}', NULL, ''); -INSERT INTO `ACT_HI_TASKINST` VALUES ('dc104168-69e6-11ec-bb85-0235bf949cb9', 'flowSubmit:4:87e59faf-69e6-11ec-bb85-0235bf949cb9', 'Activity_1cs4bi5', 'dc101a4d-69e6-11ec-bb85-0235bf949cb9', 'dc101a55-69e6-11ec-bb85-0235bf949cb9', '报销申请', NULL, NULL, NULL, 'admin', '2021-12-31 11:07:59.709', NULL, '2021-12-31 11:07:59.736', 27, NULL, 50, NULL, '{\"formId\":\"1440947675041107968\",\"readOnly\":false,\"groupType\":\"ASSIGNEE\"}', NULL, ''); -INSERT INTO `ACT_HI_TASKINST` VALUES ('dc14fc67-69e6-11ec-bb85-0235bf949cb9', 'flowSubmit:4:87e59faf-69e6-11ec-bb85-0235bf949cb9', 'Activity_04scn2o', 'dc101a4d-69e6-11ec-bb85-0235bf949cb9', 'dc101a55-69e6-11ec-bb85-0235bf949cb9', '部门领导审批', NULL, NULL, NULL, NULL, '2021-12-31 11:07:59.741', NULL, NULL, NULL, NULL, 50, NULL, '{\"formId\":\"1440947675041107968\",\"readOnly\":true,\"groupType\":\"DEPT_POST_LEADER\"}', NULL, ''); -INSERT INTO `ACT_HI_TASKINST` VALUES ('e21516ac-69e6-11ec-bb85-0235bf949cb9', 'flowContract:4:9170b562-69e6-11ec-bb85-0235bf949cb9', 'Activity_0bciohf', 'e214ef91-69e6-11ec-bb85-0235bf949cb9', 'e214ef99-69e6-11ec-bb85-0235bf949cb9', '合同录入', NULL, NULL, NULL, 'admin', '2021-12-31 11:08:09.807', NULL, '2021-12-31 11:08:09.828', 21, NULL, 50, NULL, '{\"formId\":\"1440954920348946432\",\"readOnly\":false,\"groupType\":\"ASSIGNEE\"}', NULL, ''); -INSERT INTO `ACT_HI_TASKINST` VALUES ('e219356b-69e6-11ec-bb85-0235bf949cb9', 'flowContract:4:9170b562-69e6-11ec-bb85-0235bf949cb9', 'Activity_053om99', 'e214ef91-69e6-11ec-bb85-0235bf949cb9', 'e214ef99-69e6-11ec-bb85-0235bf949cb9', '业务部领导审批', NULL, NULL, NULL, NULL, '2021-12-31 11:08:09.834', NULL, '2021-12-31 11:13:54.215', 344381, NULL, 50, NULL, '{\"formId\":\"1440954920348946432\",\"readOnly\":true,\"groupType\":\"DEPT_POST_LEADER\"}', NULL, ''); -INSERT INTO `ACT_HI_TASKINST` VALUES ('ec6cccaf-3184-11ec-9f40-f20b812c0662', 'flowContract:2:7ce26a87-3184-11ec-9f40-f20b812c0662', 'Activity_0bciohf', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', '合同录入', NULL, NULL, NULL, 'userD', '2021-10-20 17:05:51.364', NULL, '2021-10-20 17:05:51.380', 16, NULL, 50, NULL, '{\"formId\":\"1440954920348946432\",\"readOnly\":false,\"groupType\":\"DEPT\"}', NULL, ''); -INSERT INTO `ACT_HI_TASKINST` VALUES ('ec70010e-3184-11ec-9f40-f20b812c0662', 'flowContract:2:7ce26a87-3184-11ec-9f40-f20b812c0662', 'Activity_053om99', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', '业务部领导审批', NULL, NULL, NULL, 'leaderTJ', '2021-10-20 17:05:51.385', '2021-10-20 17:06:05.883', '2021-10-20 17:06:05.908', 14523, NULL, 50, NULL, '{\"formId\":\"1440954920348946432\",\"readOnly\":true,\"groupType\":\"DEPT_POST_LEADER\"}', NULL, ''); -INSERT INTO `ACT_HI_TASKINST` VALUES ('f518f431-3184-11ec-9f40-f20b812c0662', 'flowContract:2:7ce26a87-3184-11ec-9f40-f20b812c0662', 'Activity_0z90ali', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', '工程部审批', NULL, NULL, NULL, 'admin', '2021-10-20 17:06:05.914', NULL, '2021-10-20 17:06:27.183', 21269, NULL, 50, NULL, '{\"formId\":\"1440955194991972352\",\"readOnly\":true,\"groupType\":\"DEPT\"}', NULL, ''); -INSERT INTO `ACT_HI_TASKINST` VALUES ('f518f433-3184-11ec-9f40-f20b812c0662', 'flowContract:2:7ce26a87-3184-11ec-9f40-f20b812c0662', 'Activity_17930aj', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'f518f42f-3184-11ec-9f40-f20b812c0662', '造价部审批', NULL, NULL, NULL, 'admin', '2021-10-20 17:06:05.914', '2021-10-20 17:06:20.858', '2021-10-20 17:06:20.901', 14987, NULL, 50, NULL, '{\"formId\":\"1440955194991972352\",\"readOnly\":true,\"groupType\":\"DEPT\"}', NULL, ''); -COMMIT; - --- ---------------------------- --- Table structure for ACT_HI_VARINST --- ---------------------------- -DROP TABLE IF EXISTS `ACT_HI_VARINST`; -CREATE TABLE `ACT_HI_VARINST` ( - `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL, - `PROC_INST_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `EXECUTION_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `TASK_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `NAME_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL, - `VAR_TYPE_` varchar(100) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `REV_` int DEFAULT NULL, - `BYTEARRAY_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `DOUBLE_` double DEFAULT NULL, - `LONG_` bigint DEFAULT NULL, - `TEXT_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `TEXT2_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `CREATE_TIME_` datetime(3) DEFAULT NULL, - `LAST_UPDATED_TIME_` datetime(3) DEFAULT NULL, - PRIMARY KEY (`ID_`), - KEY `ACT_IDX_HI_PROCVAR_PROC_INST` (`PROC_INST_ID_`), - KEY `ACT_IDX_HI_PROCVAR_NAME_TYPE` (`NAME_`,`VAR_TYPE_`), - KEY `ACT_IDX_HI_PROCVAR_TASK_ID` (`TASK_ID_`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_bin; - --- ---------------------------- --- Records of ACT_HI_VARINST --- ---------------------------- -BEGIN; -INSERT INTO `ACT_HI_VARINST` VALUES ('01c79124-3185-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', '01c79123-3185-11ec-9f40-f20b812c0662', 'startUserName', 'string', 0, NULL, NULL, NULL, 'userD', NULL, '2021-10-20 17:06:27.191', '2021-10-20 17:06:27.191'); -INSERT INTO `ACT_HI_VARINST` VALUES ('01c7b836-3185-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', '01c79123-3185-11ec-9f40-f20b812c0662', 'initiator', 'string', 0, NULL, NULL, NULL, 'userD', NULL, '2021-10-20 17:06:27.192', '2021-10-20 17:06:27.192'); -INSERT INTO `ACT_HI_VARINST` VALUES ('01c7b838-3185-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', '01c79123-3185-11ec-9f40-f20b812c0662', 'operationType', 'string', 1, NULL, NULL, NULL, 'agree', NULL, '2021-10-20 17:06:27.192', '2021-10-20 17:07:49.543'); -INSERT INTO `ACT_HI_VARINST` VALUES ('01c7b83a-3185-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', '01c79123-3185-11ec-9f40-f20b812c0662', 'deptPostLeader', 'string', 0, NULL, NULL, NULL, '1440964519391137792', NULL, '2021-10-20 17:06:27.192', '2021-10-20 17:06:27.192'); -INSERT INTO `ACT_HI_VARINST` VALUES ('04b2aec7-317b-11ec-9438-f20b812c0662', '04b2aec5-317b-11ec-9438-f20b812c0662', '04b2aec5-317b-11ec-9438-f20b812c0662', NULL, 'startUserName', 'string', 2, NULL, NULL, NULL, 'userD', NULL, '2021-10-20 15:54:57.120', '2021-10-20 15:55:28.467'); -INSERT INTO `ACT_HI_VARINST` VALUES ('04b2aec9-317b-11ec-9438-f20b812c0662', '04b2aec5-317b-11ec-9438-f20b812c0662', '04b2aec5-317b-11ec-9438-f20b812c0662', NULL, 'initiator', 'string', 2, NULL, NULL, NULL, 'userD', NULL, '2021-10-20 15:54:57.120', '2021-10-20 15:55:28.468'); -INSERT INTO `ACT_HI_VARINST` VALUES ('04b2d5df-317b-11ec-9438-f20b812c0662', '04b2aec5-317b-11ec-9438-f20b812c0662', '04b2aecb-317b-11ec-9438-f20b812c0662', '04b2d5de-317b-11ec-9438-f20b812c0662', 'startUserName', 'string', 0, NULL, NULL, NULL, 'userD', NULL, '2021-10-20 15:54:57.121', '2021-10-20 15:54:57.121'); -INSERT INTO `ACT_HI_VARINST` VALUES ('04b2fcf1-317b-11ec-9438-f20b812c0662', '04b2aec5-317b-11ec-9438-f20b812c0662', '04b2aecb-317b-11ec-9438-f20b812c0662', '04b2d5de-317b-11ec-9438-f20b812c0662', 'initiator', 'string', 0, NULL, NULL, NULL, 'userD', NULL, '2021-10-20 15:54:57.122', '2021-10-20 15:54:57.122'); -INSERT INTO `ACT_HI_VARINST` VALUES ('04b63143-317b-11ec-9438-f20b812c0662', '04b2aec5-317b-11ec-9438-f20b812c0662', '04b2aecb-317b-11ec-9438-f20b812c0662', '04b2d5de-317b-11ec-9438-f20b812c0662', 'operationType', 'string', 0, NULL, NULL, NULL, 'agree', NULL, '2021-10-20 15:54:57.143', '2021-10-20 15:54:57.143'); -INSERT INTO `ACT_HI_VARINST` VALUES ('04b6f495-317b-11ec-9438-f20b812c0662', '04b2aec5-317b-11ec-9438-f20b812c0662', '04b2aec5-317b-11ec-9438-f20b812c0662', NULL, 'operationType', 'string', 1, NULL, NULL, NULL, 'agree', NULL, '2021-10-20 15:54:57.148', '2021-10-20 15:55:28.467'); -INSERT INTO `ACT_HI_VARINST` VALUES ('04b769cb-317b-11ec-9438-f20b812c0662', '04b2aec5-317b-11ec-9438-f20b812c0662', '04b2aecb-317b-11ec-9438-f20b812c0662', '04b742ba-317b-11ec-9438-f20b812c0662', 'startUserName', 'string', 0, NULL, NULL, NULL, 'userD', NULL, '2021-10-20 15:54:57.151', '2021-10-20 15:54:57.151'); -INSERT INTO `ACT_HI_VARINST` VALUES ('04b769cd-317b-11ec-9438-f20b812c0662', '04b2aec5-317b-11ec-9438-f20b812c0662', '04b2aecb-317b-11ec-9438-f20b812c0662', '04b742ba-317b-11ec-9438-f20b812c0662', 'initiator', 'string', 0, NULL, NULL, NULL, 'userD', NULL, '2021-10-20 15:54:57.151', '2021-10-20 15:54:57.151'); -INSERT INTO `ACT_HI_VARINST` VALUES ('04b769cf-317b-11ec-9438-f20b812c0662', '04b2aec5-317b-11ec-9438-f20b812c0662', '04b2aecb-317b-11ec-9438-f20b812c0662', '04b742ba-317b-11ec-9438-f20b812c0662', 'operationType', 'string', 1, NULL, NULL, NULL, 'agree', NULL, '2021-10-20 15:54:57.151', '2021-10-20 15:55:28.460'); -INSERT INTO `ACT_HI_VARINST` VALUES ('190058ec-3184-11ec-ad5a-f20b812c0662', '190031da-3184-11ec-ad5a-f20b812c0662', '190031da-3184-11ec-ad5a-f20b812c0662', NULL, 'startUserName', 'string', 3, NULL, NULL, NULL, 'userD', NULL, '2021-10-20 16:59:56.654', '2021-10-20 17:00:40.564'); -INSERT INTO `ACT_HI_VARINST` VALUES ('190058ee-3184-11ec-ad5a-f20b812c0662', '190031da-3184-11ec-ad5a-f20b812c0662', '190031da-3184-11ec-ad5a-f20b812c0662', NULL, 'deptPostLeader', 'string', 3, NULL, NULL, NULL, '1440969551792574464', NULL, '2021-10-20 16:59:56.654', '2021-10-20 17:00:40.563'); -INSERT INTO `ACT_HI_VARINST` VALUES ('190058f0-3184-11ec-ad5a-f20b812c0662', '190031da-3184-11ec-ad5a-f20b812c0662', '190031da-3184-11ec-ad5a-f20b812c0662', NULL, 'initiator', 'string', 3, NULL, NULL, NULL, 'userD', NULL, '2021-10-20 16:59:56.654', '2021-10-20 17:00:40.564'); -INSERT INTO `ACT_HI_VARINST` VALUES ('1900a716-3184-11ec-ad5a-f20b812c0662', '190031da-3184-11ec-ad5a-f20b812c0662', '190058f2-3184-11ec-ad5a-f20b812c0662', '19008005-3184-11ec-ad5a-f20b812c0662', 'startUserName', 'string', 0, NULL, NULL, NULL, 'userD', NULL, '2021-10-20 16:59:56.656', '2021-10-20 16:59:56.656'); -INSERT INTO `ACT_HI_VARINST` VALUES ('1900a718-3184-11ec-ad5a-f20b812c0662', '190031da-3184-11ec-ad5a-f20b812c0662', '190058f2-3184-11ec-ad5a-f20b812c0662', '19008005-3184-11ec-ad5a-f20b812c0662', 'initiator', 'string', 0, NULL, NULL, NULL, 'userD', NULL, '2021-10-20 16:59:56.656', '2021-10-20 16:59:56.656'); -INSERT INTO `ACT_HI_VARINST` VALUES ('1900a71a-3184-11ec-ad5a-f20b812c0662', '190031da-3184-11ec-ad5a-f20b812c0662', '190058f2-3184-11ec-ad5a-f20b812c0662', '19008005-3184-11ec-ad5a-f20b812c0662', 'deptPostLeader', 'string', 1, NULL, NULL, NULL, '1440964519391137792', NULL, '2021-10-20 16:59:56.656', '2021-10-20 16:59:56.677'); -INSERT INTO `ACT_HI_VARINST` VALUES ('1903b45c-3184-11ec-ad5a-f20b812c0662', '190031da-3184-11ec-ad5a-f20b812c0662', '190058f2-3184-11ec-ad5a-f20b812c0662', '19008005-3184-11ec-ad5a-f20b812c0662', 'operationType', 'string', 0, NULL, NULL, NULL, 'agree', NULL, '2021-10-20 16:59:56.676', '2021-10-20 16:59:56.676'); -INSERT INTO `ACT_HI_VARINST` VALUES ('190477b0-3184-11ec-ad5a-f20b812c0662', '190031da-3184-11ec-ad5a-f20b812c0662', '190031da-3184-11ec-ad5a-f20b812c0662', NULL, 'operationType', 'string', 2, NULL, NULL, NULL, 'agree', NULL, '2021-10-20 16:59:56.681', '2021-10-20 17:00:40.563'); -INSERT INTO `ACT_HI_VARINST` VALUES ('1904ece6-3184-11ec-ad5a-f20b812c0662', '190031da-3184-11ec-ad5a-f20b812c0662', '190058f2-3184-11ec-ad5a-f20b812c0662', '1904c5d5-3184-11ec-ad5a-f20b812c0662', 'startUserName', 'string', 0, NULL, NULL, NULL, 'userD', NULL, '2021-10-20 16:59:56.684', '2021-10-20 16:59:56.684'); -INSERT INTO `ACT_HI_VARINST` VALUES ('1904ece8-3184-11ec-ad5a-f20b812c0662', '190031da-3184-11ec-ad5a-f20b812c0662', '190058f2-3184-11ec-ad5a-f20b812c0662', '1904c5d5-3184-11ec-ad5a-f20b812c0662', 'initiator', 'string', 0, NULL, NULL, NULL, 'userD', NULL, '2021-10-20 16:59:56.684', '2021-10-20 16:59:56.684'); -INSERT INTO `ACT_HI_VARINST` VALUES ('1904ecea-3184-11ec-ad5a-f20b812c0662', '190031da-3184-11ec-ad5a-f20b812c0662', '190058f2-3184-11ec-ad5a-f20b812c0662', '1904c5d5-3184-11ec-ad5a-f20b812c0662', 'deptPostLeader', 'string', 1, NULL, NULL, NULL, '1440964519391137792', NULL, '2021-10-20 16:59:56.684', '2021-10-20 17:00:17.398'); -INSERT INTO `ACT_HI_VARINST` VALUES ('1904ecec-3184-11ec-ad5a-f20b812c0662', '190031da-3184-11ec-ad5a-f20b812c0662', '190058f2-3184-11ec-ad5a-f20b812c0662', '1904c5d5-3184-11ec-ad5a-f20b812c0662', 'operationType', 'string', 1, NULL, NULL, NULL, 'agree', NULL, '2021-10-20 16:59:56.684', '2021-10-20 17:00:17.398'); -INSERT INTO `ACT_HI_VARINST` VALUES ('255d7a80-3184-11ec-ad5a-f20b812c0662', '190031da-3184-11ec-ad5a-f20b812c0662', '190058f2-3184-11ec-ad5a-f20b812c0662', '1904c5d5-3184-11ec-ad5a-f20b812c0662', 'totalAmount', 'integer', 0, NULL, NULL, 1200, '1200', NULL, '2021-10-20 17:00:17.397', '2021-10-20 17:00:17.397'); -INSERT INTO `ACT_HI_VARINST` VALUES ('255e3dd4-3184-11ec-ad5a-f20b812c0662', '190031da-3184-11ec-ad5a-f20b812c0662', '190031da-3184-11ec-ad5a-f20b812c0662', NULL, 'totalAmount', 'integer', 1, NULL, NULL, 1200, '1200', NULL, '2021-10-20 17:00:17.402', '2021-10-20 17:00:40.562'); -INSERT INTO `ACT_HI_VARINST` VALUES ('255f765d-3184-11ec-ad5a-f20b812c0662', '190031da-3184-11ec-ad5a-f20b812c0662', '190058f2-3184-11ec-ad5a-f20b812c0662', '255f765c-3184-11ec-ad5a-f20b812c0662', 'totalAmount', 'integer', 0, NULL, NULL, 1200, '1200', NULL, '2021-10-20 17:00:17.410', '2021-10-20 17:00:17.410'); -INSERT INTO `ACT_HI_VARINST` VALUES ('255f765f-3184-11ec-ad5a-f20b812c0662', '190031da-3184-11ec-ad5a-f20b812c0662', '190058f2-3184-11ec-ad5a-f20b812c0662', '255f765c-3184-11ec-ad5a-f20b812c0662', 'startUserName', 'string', 0, NULL, NULL, NULL, 'userD', NULL, '2021-10-20 17:00:17.410', '2021-10-20 17:00:17.410'); -INSERT INTO `ACT_HI_VARINST` VALUES ('255f7661-3184-11ec-ad5a-f20b812c0662', '190031da-3184-11ec-ad5a-f20b812c0662', '190058f2-3184-11ec-ad5a-f20b812c0662', '255f765c-3184-11ec-ad5a-f20b812c0662', 'initiator', 'string', 0, NULL, NULL, NULL, 'userD', NULL, '2021-10-20 17:00:17.410', '2021-10-20 17:00:17.410'); -INSERT INTO `ACT_HI_VARINST` VALUES ('255f7663-3184-11ec-ad5a-f20b812c0662', '190031da-3184-11ec-ad5a-f20b812c0662', '190058f2-3184-11ec-ad5a-f20b812c0662', '255f765c-3184-11ec-ad5a-f20b812c0662', 'operationType', 'string', 1, NULL, NULL, NULL, 'agree', NULL, '2021-10-20 17:00:17.410', '2021-10-20 17:00:40.554'); -INSERT INTO `ACT_HI_VARINST` VALUES ('255f7665-3184-11ec-ad5a-f20b812c0662', '190031da-3184-11ec-ad5a-f20b812c0662', '190058f2-3184-11ec-ad5a-f20b812c0662', '255f765c-3184-11ec-ad5a-f20b812c0662', 'deptPostLeader', 'string', 1, NULL, NULL, NULL, '1440969551792574464', NULL, '2021-10-20 17:00:17.410', '2021-10-20 17:00:40.555'); -INSERT INTO `ACT_HI_VARINST` VALUES ('32dedbc6-3185-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', '32dedbc5-3185-11ec-9f40-f20b812c0662', 'startUserName', 'string', 0, NULL, NULL, NULL, 'userD', NULL, '2021-10-20 17:07:49.552', '2021-10-20 17:07:49.552'); -INSERT INTO `ACT_HI_VARINST` VALUES ('32dedbc8-3185-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', '32dedbc5-3185-11ec-9f40-f20b812c0662', 'initiator', 'string', 0, NULL, NULL, NULL, 'userD', NULL, '2021-10-20 17:07:49.552', '2021-10-20 17:07:49.552'); -INSERT INTO `ACT_HI_VARINST` VALUES ('32dedbca-3185-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', '32dedbc5-3185-11ec-9f40-f20b812c0662', 'operationType', 'string', 1, NULL, NULL, NULL, 'multi_sign', NULL, '2021-10-20 17:07:49.552', '2021-10-20 17:08:31.542'); -INSERT INTO `ACT_HI_VARINST` VALUES ('32dedbcc-3185-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', '32dedbc5-3185-11ec-9f40-f20b812c0662', 'deptPostLeader', 'string', 0, NULL, NULL, NULL, '1440964519391137792', NULL, '2021-10-20 17:07:49.552', '2021-10-20 17:07:49.552'); -INSERT INTO `ACT_HI_VARINST` VALUES ('4be4f4c0-3185-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', '32dedbc5-3185-11ec-9f40-f20b812c0662', 'multiRefuseCount', 'integer', 0, NULL, NULL, 0, '0', NULL, '2021-10-20 17:08:31.535', '2021-10-20 17:08:31.535'); -INSERT INTO `ACT_HI_VARINST` VALUES ('4be5b812-3185-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', '32dedbc5-3185-11ec-9f40-f20b812c0662', 'assigneeList', 'json', 0, NULL, NULL, NULL, '[\"admin\",\"userD\"]', 'com.alibaba.fastjson.JSONArray', '2021-10-20 17:08:31.540', '2021-10-20 17:08:31.540'); -INSERT INTO `ACT_HI_VARINST` VALUES ('4be5b814-3185-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', '32dedbc5-3185-11ec-9f40-f20b812c0662', 'multiAbstainCount', 'integer', 0, NULL, NULL, 0, '0', NULL, '2021-10-20 17:08:31.540', '2021-10-20 17:08:31.540'); -INSERT INTO `ACT_HI_VARINST` VALUES ('4be60637-3185-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', '32dedbc5-3185-11ec-9f40-f20b812c0662', 'multiSignStartTask', 'string', 0, NULL, NULL, NULL, '32dedbc5-3185-11ec-9f40-f20b812c0662', NULL, '2021-10-20 17:08:31.542', '2021-10-20 17:08:31.542'); -INSERT INTO `ACT_HI_VARINST` VALUES ('4be60639-3185-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', '32dedbc5-3185-11ec-9f40-f20b812c0662', 'multiAgreeCount', 'integer', 0, NULL, NULL, 0, '0', NULL, '2021-10-20 17:08:31.542', '2021-10-20 17:08:31.542'); -INSERT INTO `ACT_HI_VARINST` VALUES ('4be6063b-3185-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', '32dedbc5-3185-11ec-9f40-f20b812c0662', 'multiNumOfInstances', 'integer', 0, NULL, NULL, 0, '0', NULL, '2021-10-20 17:08:31.542', '2021-10-20 17:08:31.542'); -INSERT INTO `ACT_HI_VARINST` VALUES ('4be6c98d-3185-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', NULL, 'multiRefuseCount', 'integer', 3, NULL, NULL, 0, '0', NULL, '2021-10-20 17:08:31.547', '2021-10-20 17:09:53.020'); -INSERT INTO `ACT_HI_VARINST` VALUES ('4be6c98f-3185-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', NULL, 'assigneeList', 'json', 3, NULL, NULL, NULL, '[\"admin\",\"userD\"]', 'java.util.LinkedList', '2021-10-20 17:08:31.547', '2021-10-20 17:09:53.021'); -INSERT INTO `ACT_HI_VARINST` VALUES ('4be6f0a3-3185-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', NULL, 'multiAbstainCount', 'integer', 3, NULL, NULL, 0, '0', NULL, '2021-10-20 17:08:31.548', '2021-10-20 17:09:53.022'); -INSERT INTO `ACT_HI_VARINST` VALUES ('4be717b7-3185-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', NULL, 'multiSignStartTask', 'string', 3, NULL, NULL, NULL, '32dedbc5-3185-11ec-9f40-f20b812c0662', NULL, '2021-10-20 17:08:31.549', '2021-10-20 17:09:53.023'); -INSERT INTO `ACT_HI_VARINST` VALUES ('4be717b9-3185-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', NULL, 'multiAgreeCount', 'integer', 3, NULL, NULL, 2, '2', NULL, '2021-10-20 17:08:31.549', '2021-10-20 17:09:53.025'); -INSERT INTO `ACT_HI_VARINST` VALUES ('4be717bb-3185-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', NULL, 'multiNumOfInstances', 'integer', 3, NULL, NULL, 2, '2', NULL, '2021-10-20 17:08:31.549', '2021-10-20 17:09:53.023'); -INSERT INTO `ACT_HI_VARINST` VALUES ('4be73ecd-3185-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', NULL, 'nrOfInstances', 'integer', 0, NULL, NULL, 2, '2', NULL, '2021-10-20 17:08:31.550', '2021-10-20 17:08:31.550'); -INSERT INTO `ACT_HI_VARINST` VALUES ('4be73ecf-3185-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', NULL, 'nrOfCompletedInstances', 'integer', 2, NULL, NULL, 2, '2', NULL, '2021-10-20 17:08:31.550', '2021-10-20 17:09:07.160'); -INSERT INTO `ACT_HI_VARINST` VALUES ('4be73ed1-3185-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', NULL, 'nrOfActiveInstances', 'integer', 2, NULL, NULL, 0, '0', NULL, '2021-10-20 17:08:31.550', '2021-10-20 17:09:07.160'); -INSERT INTO `ACT_HI_VARINST` VALUES ('4be765e5-3185-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', '4be765e3-3185-11ec-9f40-f20b812c0662', NULL, 'loopCounter', 'integer', 0, NULL, NULL, 0, '0', NULL, '2021-10-20 17:08:31.551', '2021-10-20 17:08:31.551'); -INSERT INTO `ACT_HI_VARINST` VALUES ('4be765e7-3185-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', '4be765e3-3185-11ec-9f40-f20b812c0662', NULL, 'assignee', 'string', 0, NULL, NULL, NULL, 'admin', NULL, '2021-10-20 17:08:31.551', '2021-10-20 17:08:31.551'); -INSERT INTO `ACT_HI_VARINST` VALUES ('4be78cf9-3185-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', '4be765e4-3185-11ec-9f40-f20b812c0662', NULL, 'loopCounter', 'integer', 0, NULL, NULL, 1, '1', NULL, '2021-10-20 17:08:31.552', '2021-10-20 17:08:31.552'); -INSERT INTO `ACT_HI_VARINST` VALUES ('4be78cfb-3185-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', '4be765e4-3185-11ec-9f40-f20b812c0662', NULL, 'assignee', 'string', 0, NULL, NULL, NULL, 'userD', NULL, '2021-10-20 17:08:31.552', '2021-10-20 17:08:31.552'); -INSERT INTO `ACT_HI_VARINST` VALUES ('4be7b311-3185-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', '4be765e4-3185-11ec-9f40-f20b812c0662', '4be78d00-3185-11ec-9f40-f20b812c0662', 'multiRefuseCount', 'integer', 1, NULL, NULL, 0, '0', NULL, '2021-10-20 17:08:31.553', '2021-10-20 17:08:47.901'); -INSERT INTO `ACT_HI_VARINST` VALUES ('4be7b313-3185-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', '4be765e4-3185-11ec-9f40-f20b812c0662', '4be78d00-3185-11ec-9f40-f20b812c0662', 'nrOfActiveInstances', 'integer', 0, NULL, NULL, 2, '2', NULL, '2021-10-20 17:08:31.553', '2021-10-20 17:08:31.553'); -INSERT INTO `ACT_HI_VARINST` VALUES ('4be7da25-3185-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', '4be765e4-3185-11ec-9f40-f20b812c0662', '4be78d00-3185-11ec-9f40-f20b812c0662', 'assigneeList', 'json', 0, NULL, NULL, NULL, '[\"admin\",\"userD\"]', 'java.util.LinkedList', '2021-10-20 17:08:31.554', '2021-10-20 17:08:31.554'); -INSERT INTO `ACT_HI_VARINST` VALUES ('4be7da27-3185-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', '4be765e4-3185-11ec-9f40-f20b812c0662', '4be78d00-3185-11ec-9f40-f20b812c0662', 'initiator', 'string', 0, NULL, NULL, NULL, 'userD', NULL, '2021-10-20 17:08:31.554', '2021-10-20 17:08:31.554'); -INSERT INTO `ACT_HI_VARINST` VALUES ('4be7da29-3185-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', '4be765e4-3185-11ec-9f40-f20b812c0662', '4be78d00-3185-11ec-9f40-f20b812c0662', 'multiAbstainCount', 'integer', 1, NULL, NULL, 0, '0', NULL, '2021-10-20 17:08:31.554', '2021-10-20 17:08:47.902'); -INSERT INTO `ACT_HI_VARINST` VALUES ('4be7da2b-3185-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', '4be765e4-3185-11ec-9f40-f20b812c0662', '4be78d00-3185-11ec-9f40-f20b812c0662', 'loopCounter', 'integer', 0, NULL, NULL, 1, '1', NULL, '2021-10-20 17:08:31.554', '2021-10-20 17:08:31.554'); -INSERT INTO `ACT_HI_VARINST` VALUES ('4be7da2d-3185-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', '4be765e4-3185-11ec-9f40-f20b812c0662', '4be78d00-3185-11ec-9f40-f20b812c0662', 'multiSignStartTask', 'string', 0, NULL, NULL, NULL, '32dedbc5-3185-11ec-9f40-f20b812c0662', NULL, '2021-10-20 17:08:31.554', '2021-10-20 17:08:31.554'); -INSERT INTO `ACT_HI_VARINST` VALUES ('4be7da2f-3185-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', '4be765e4-3185-11ec-9f40-f20b812c0662', '4be78d00-3185-11ec-9f40-f20b812c0662', 'multiNumOfInstances', 'integer', 1, NULL, NULL, 2, '2', NULL, '2021-10-20 17:08:31.554', '2021-10-20 17:08:47.903'); -INSERT INTO `ACT_HI_VARINST` VALUES ('4be7da31-3185-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', '4be765e4-3185-11ec-9f40-f20b812c0662', '4be78d00-3185-11ec-9f40-f20b812c0662', 'nrOfInstances', 'integer', 0, NULL, NULL, 2, '2', NULL, '2021-10-20 17:08:31.554', '2021-10-20 17:08:31.554'); -INSERT INTO `ACT_HI_VARINST` VALUES ('4be7da33-3185-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', '4be765e4-3185-11ec-9f40-f20b812c0662', '4be78d00-3185-11ec-9f40-f20b812c0662', 'startUserName', 'string', 0, NULL, NULL, NULL, 'userD', NULL, '2021-10-20 17:08:31.554', '2021-10-20 17:08:31.554'); -INSERT INTO `ACT_HI_VARINST` VALUES ('4be7da35-3185-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', '4be765e4-3185-11ec-9f40-f20b812c0662', '4be78d00-3185-11ec-9f40-f20b812c0662', 'operationType', 'string', 1, NULL, NULL, NULL, 'multi_agree', NULL, '2021-10-20 17:08:31.554', '2021-10-20 17:08:47.902'); -INSERT INTO `ACT_HI_VARINST` VALUES ('4be7da37-3185-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', '4be765e4-3185-11ec-9f40-f20b812c0662', '4be78d00-3185-11ec-9f40-f20b812c0662', 'deptPostLeader', 'string', 0, NULL, NULL, NULL, '1440964519391137792', NULL, '2021-10-20 17:08:31.554', '2021-10-20 17:08:31.554'); -INSERT INTO `ACT_HI_VARINST` VALUES ('4be7da39-3185-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', '4be765e4-3185-11ec-9f40-f20b812c0662', '4be78d00-3185-11ec-9f40-f20b812c0662', 'assignee', 'string', 0, NULL, NULL, NULL, 'userD', NULL, '2021-10-20 17:08:31.554', '2021-10-20 17:08:31.554'); -INSERT INTO `ACT_HI_VARINST` VALUES ('4be7da3b-3185-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', '4be765e4-3185-11ec-9f40-f20b812c0662', '4be78d00-3185-11ec-9f40-f20b812c0662', 'multiAgreeCount', 'integer', 1, NULL, NULL, 1, '1', NULL, '2021-10-20 17:08:31.554', '2021-10-20 17:08:47.903'); -INSERT INTO `ACT_HI_VARINST` VALUES ('4be7da3d-3185-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', '4be765e4-3185-11ec-9f40-f20b812c0662', '4be78d00-3185-11ec-9f40-f20b812c0662', 'nrOfCompletedInstances', 'integer', 0, NULL, NULL, 0, '0', NULL, '2021-10-20 17:08:31.554', '2021-10-20 17:08:31.554'); -INSERT INTO `ACT_HI_VARINST` VALUES ('4be8285f-3185-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', '4be765e3-3185-11ec-9f40-f20b812c0662', '4be78cfe-3185-11ec-9f40-f20b812c0662', 'multiRefuseCount', 'integer', 1, NULL, NULL, 0, '0', NULL, '2021-10-20 17:08:31.556', '2021-10-20 17:09:07.148'); -INSERT INTO `ACT_HI_VARINST` VALUES ('4be82861-3185-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', '4be765e3-3185-11ec-9f40-f20b812c0662', '4be78cfe-3185-11ec-9f40-f20b812c0662', 'nrOfActiveInstances', 'integer', 0, NULL, NULL, 2, '2', NULL, '2021-10-20 17:08:31.556', '2021-10-20 17:08:31.556'); -INSERT INTO `ACT_HI_VARINST` VALUES ('4be82863-3185-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', '4be765e3-3185-11ec-9f40-f20b812c0662', '4be78cfe-3185-11ec-9f40-f20b812c0662', 'assigneeList', 'json', 0, NULL, NULL, NULL, '[\"admin\",\"userD\"]', 'java.util.LinkedList', '2021-10-20 17:08:31.556', '2021-10-20 17:08:31.556'); -INSERT INTO `ACT_HI_VARINST` VALUES ('4be82865-3185-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', '4be765e3-3185-11ec-9f40-f20b812c0662', '4be78cfe-3185-11ec-9f40-f20b812c0662', 'initiator', 'string', 0, NULL, NULL, NULL, 'userD', NULL, '2021-10-20 17:08:31.556', '2021-10-20 17:08:31.556'); -INSERT INTO `ACT_HI_VARINST` VALUES ('4be82867-3185-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', '4be765e3-3185-11ec-9f40-f20b812c0662', '4be78cfe-3185-11ec-9f40-f20b812c0662', 'multiAbstainCount', 'integer', 1, NULL, NULL, 0, '0', NULL, '2021-10-20 17:08:31.556', '2021-10-20 17:09:07.148'); -INSERT INTO `ACT_HI_VARINST` VALUES ('4be82869-3185-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', '4be765e3-3185-11ec-9f40-f20b812c0662', '4be78cfe-3185-11ec-9f40-f20b812c0662', 'loopCounter', 'integer', 0, NULL, NULL, 0, '0', NULL, '2021-10-20 17:08:31.556', '2021-10-20 17:08:31.556'); -INSERT INTO `ACT_HI_VARINST` VALUES ('4be8286b-3185-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', '4be765e3-3185-11ec-9f40-f20b812c0662', '4be78cfe-3185-11ec-9f40-f20b812c0662', 'multiSignStartTask', 'string', 0, NULL, NULL, NULL, '32dedbc5-3185-11ec-9f40-f20b812c0662', NULL, '2021-10-20 17:08:31.556', '2021-10-20 17:08:31.556'); -INSERT INTO `ACT_HI_VARINST` VALUES ('4be8286d-3185-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', '4be765e3-3185-11ec-9f40-f20b812c0662', '4be78cfe-3185-11ec-9f40-f20b812c0662', 'multiNumOfInstances', 'integer', 1, NULL, NULL, 2, '2', NULL, '2021-10-20 17:08:31.556', '2021-10-20 17:09:07.150'); -INSERT INTO `ACT_HI_VARINST` VALUES ('4be8286f-3185-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', '4be765e3-3185-11ec-9f40-f20b812c0662', '4be78cfe-3185-11ec-9f40-f20b812c0662', 'nrOfInstances', 'integer', 0, NULL, NULL, 2, '2', NULL, '2021-10-20 17:08:31.556', '2021-10-20 17:08:31.556'); -INSERT INTO `ACT_HI_VARINST` VALUES ('4be84f81-3185-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', '4be765e3-3185-11ec-9f40-f20b812c0662', '4be78cfe-3185-11ec-9f40-f20b812c0662', 'startUserName', 'string', 0, NULL, NULL, NULL, 'userD', NULL, '2021-10-20 17:08:31.557', '2021-10-20 17:08:31.557'); -INSERT INTO `ACT_HI_VARINST` VALUES ('4be84f83-3185-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', '4be765e3-3185-11ec-9f40-f20b812c0662', '4be78cfe-3185-11ec-9f40-f20b812c0662', 'operationType', 'string', 1, NULL, NULL, NULL, 'multi_agree', NULL, '2021-10-20 17:08:31.557', '2021-10-20 17:09:07.149'); -INSERT INTO `ACT_HI_VARINST` VALUES ('4be84f85-3185-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', '4be765e3-3185-11ec-9f40-f20b812c0662', '4be78cfe-3185-11ec-9f40-f20b812c0662', 'deptPostLeader', 'string', 0, NULL, NULL, NULL, '1440964519391137792', NULL, '2021-10-20 17:08:31.557', '2021-10-20 17:08:31.557'); -INSERT INTO `ACT_HI_VARINST` VALUES ('4be84f87-3185-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', '4be765e3-3185-11ec-9f40-f20b812c0662', '4be78cfe-3185-11ec-9f40-f20b812c0662', 'assignee', 'string', 0, NULL, NULL, NULL, 'admin', NULL, '2021-10-20 17:08:31.557', '2021-10-20 17:08:31.557'); -INSERT INTO `ACT_HI_VARINST` VALUES ('4be84f89-3185-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', '4be765e3-3185-11ec-9f40-f20b812c0662', '4be78cfe-3185-11ec-9f40-f20b812c0662', 'multiAgreeCount', 'integer', 1, NULL, NULL, 2, '2', NULL, '2021-10-20 17:08:31.557', '2021-10-20 17:09:07.149'); -INSERT INTO `ACT_HI_VARINST` VALUES ('4be84f8b-3185-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', '4be765e3-3185-11ec-9f40-f20b812c0662', '4be78cfe-3185-11ec-9f40-f20b812c0662', 'nrOfCompletedInstances', 'integer', 0, NULL, NULL, 0, '0', NULL, '2021-10-20 17:08:31.557', '2021-10-20 17:08:31.557'); -INSERT INTO `ACT_HI_VARINST` VALUES ('55a76d93-3185-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', NULL, 'nrOfActiveInstances', 'integer', 2, NULL, NULL, 0, '0', NULL, '2021-10-20 17:08:47.909', '2021-10-20 17:09:53.020'); -INSERT INTO `ACT_HI_VARINST` VALUES ('55a794a8-3185-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', NULL, 'loopCounter', 'integer', 2, NULL, NULL, 0, '0', NULL, '2021-10-20 17:08:47.910', '2021-10-20 17:09:53.022'); -INSERT INTO `ACT_HI_VARINST` VALUES ('55a7bbbc-3185-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', NULL, 'nrOfInstances', 'integer', 2, NULL, NULL, 2, '2', NULL, '2021-10-20 17:08:47.911', '2021-10-20 17:09:53.023'); -INSERT INTO `ACT_HI_VARINST` VALUES ('55a7e2d1-3185-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', NULL, 'assignee', 'string', 2, NULL, NULL, NULL, 'admin', NULL, '2021-10-20 17:08:47.912', '2021-10-20 17:09:53.025'); -INSERT INTO `ACT_HI_VARINST` VALUES ('55a809e4-3185-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', NULL, 'nrOfCompletedInstances', 'integer', 2, NULL, NULL, 2, '2', NULL, '2021-10-20 17:08:47.913', '2021-10-20 17:09:53.026'); -INSERT INTO `ACT_HI_VARINST` VALUES ('5b6bc99c-3183-11ec-ad5a-f20b812c0662', '5b6b546a-3183-11ec-ad5a-f20b812c0662', '5b6b546a-3183-11ec-ad5a-f20b812c0662', NULL, 'startUserName', 'string', 5, NULL, NULL, NULL, 'userD', NULL, '2021-10-20 16:54:38.591', '2021-10-20 16:57:52.365'); -INSERT INTO `ACT_HI_VARINST` VALUES ('5b6c17be-3183-11ec-ad5a-f20b812c0662', '5b6b546a-3183-11ec-ad5a-f20b812c0662', '5b6b546a-3183-11ec-ad5a-f20b812c0662', NULL, 'deptPostLeader', 'string', 5, NULL, NULL, NULL, '1440964221780103168', NULL, '2021-10-20 16:54:38.593', '2021-10-20 16:57:52.365'); -INSERT INTO `ACT_HI_VARINST` VALUES ('5b6c17c0-3183-11ec-ad5a-f20b812c0662', '5b6b546a-3183-11ec-ad5a-f20b812c0662', '5b6b546a-3183-11ec-ad5a-f20b812c0662', NULL, 'initiator', 'string', 5, NULL, NULL, NULL, 'userD', NULL, '2021-10-20 16:54:38.593', '2021-10-20 16:57:52.366'); -INSERT INTO `ACT_HI_VARINST` VALUES ('5b6efdf6-3183-11ec-ad5a-f20b812c0662', '5b6b546a-3183-11ec-ad5a-f20b812c0662', '5b6c3ed2-3183-11ec-ad5a-f20b812c0662', '5b6e61b5-3183-11ec-ad5a-f20b812c0662', 'startUserName', 'string', 0, NULL, NULL, NULL, 'userD', NULL, '2021-10-20 16:54:38.612', '2021-10-20 16:54:38.612'); -INSERT INTO `ACT_HI_VARINST` VALUES ('5b6efdf8-3183-11ec-ad5a-f20b812c0662', '5b6b546a-3183-11ec-ad5a-f20b812c0662', '5b6c3ed2-3183-11ec-ad5a-f20b812c0662', '5b6e61b5-3183-11ec-ad5a-f20b812c0662', 'initiator', 'string', 0, NULL, NULL, NULL, 'userD', NULL, '2021-10-20 16:54:38.612', '2021-10-20 16:54:38.612'); -INSERT INTO `ACT_HI_VARINST` VALUES ('5b6efdfa-3183-11ec-ad5a-f20b812c0662', '5b6b546a-3183-11ec-ad5a-f20b812c0662', '5b6c3ed2-3183-11ec-ad5a-f20b812c0662', '5b6e61b5-3183-11ec-ad5a-f20b812c0662', 'deptPostLeader', 'string', 1, NULL, NULL, NULL, '1440964519391137792', NULL, '2021-10-20 16:54:38.612', '2021-10-20 16:54:44.779'); -INSERT INTO `ACT_HI_VARINST` VALUES ('5f1bd95c-3183-11ec-ad5a-f20b812c0662', '5b6b546a-3183-11ec-ad5a-f20b812c0662', '5b6c3ed2-3183-11ec-ad5a-f20b812c0662', '5b6e61b5-3183-11ec-ad5a-f20b812c0662', 'operationType', 'string', 0, NULL, NULL, NULL, 'agree', NULL, '2021-10-20 16:54:44.778', '2021-10-20 16:54:44.778'); -INSERT INTO `ACT_HI_VARINST` VALUES ('5f1e7170-3183-11ec-ad5a-f20b812c0662', '5b6b546a-3183-11ec-ad5a-f20b812c0662', '5b6b546a-3183-11ec-ad5a-f20b812c0662', NULL, 'operationType', 'string', 4, NULL, NULL, NULL, 'agree', NULL, '2021-10-20 16:54:44.795', '2021-10-20 16:57:52.365'); -INSERT INTO `ACT_HI_VARINST` VALUES ('5f1f0db6-3183-11ec-ad5a-f20b812c0662', '5b6b546a-3183-11ec-ad5a-f20b812c0662', '5b6c3ed2-3183-11ec-ad5a-f20b812c0662', '5f1ee6a5-3183-11ec-ad5a-f20b812c0662', 'startUserName', 'string', 0, NULL, NULL, NULL, 'userD', NULL, '2021-10-20 16:54:44.799', '2021-10-20 16:54:44.799'); -INSERT INTO `ACT_HI_VARINST` VALUES ('5f1f0db8-3183-11ec-ad5a-f20b812c0662', '5b6b546a-3183-11ec-ad5a-f20b812c0662', '5b6c3ed2-3183-11ec-ad5a-f20b812c0662', '5f1ee6a5-3183-11ec-ad5a-f20b812c0662', 'initiator', 'string', 0, NULL, NULL, NULL, 'userD', NULL, '2021-10-20 16:54:44.799', '2021-10-20 16:54:44.799'); -INSERT INTO `ACT_HI_VARINST` VALUES ('5f1f0dba-3183-11ec-ad5a-f20b812c0662', '5b6b546a-3183-11ec-ad5a-f20b812c0662', '5b6c3ed2-3183-11ec-ad5a-f20b812c0662', '5f1ee6a5-3183-11ec-ad5a-f20b812c0662', 'deptPostLeader', 'string', 1, NULL, NULL, NULL, '1440964519391137792', NULL, '2021-10-20 16:54:44.799', '2021-10-20 16:55:59.266'); -INSERT INTO `ACT_HI_VARINST` VALUES ('5f1f0dbc-3183-11ec-ad5a-f20b812c0662', '5b6b546a-3183-11ec-ad5a-f20b812c0662', '5b6c3ed2-3183-11ec-ad5a-f20b812c0662', '5f1ee6a5-3183-11ec-ad5a-f20b812c0662', 'operationType', 'string', 1, NULL, NULL, NULL, 'refuse', NULL, '2021-10-20 16:54:44.799', '2021-10-20 16:55:59.265'); -INSERT INTO `ACT_HI_VARINST` VALUES ('61221e71-3185-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', '6121f760-3185-11ec-9f40-f20b812c0662', 'multiRefuseCount', 'integer', 0, NULL, NULL, 0, '0', NULL, '2021-10-20 17:09:07.168', '2021-10-20 17:09:07.168'); -INSERT INTO `ACT_HI_VARINST` VALUES ('61221e73-3185-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', '6121f760-3185-11ec-9f40-f20b812c0662', 'nrOfActiveInstances', 'integer', 0, NULL, NULL, 0, '0', NULL, '2021-10-20 17:09:07.168', '2021-10-20 17:09:07.168'); -INSERT INTO `ACT_HI_VARINST` VALUES ('61221e75-3185-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', '6121f760-3185-11ec-9f40-f20b812c0662', 'assigneeList', 'json', 0, NULL, NULL, NULL, '[\"admin\",\"userD\"]', 'java.util.LinkedList', '2021-10-20 17:09:07.168', '2021-10-20 17:09:07.168'); -INSERT INTO `ACT_HI_VARINST` VALUES ('61221e77-3185-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', '6121f760-3185-11ec-9f40-f20b812c0662', 'initiator', 'string', 0, NULL, NULL, NULL, 'userD', NULL, '2021-10-20 17:09:07.168', '2021-10-20 17:09:07.168'); -INSERT INTO `ACT_HI_VARINST` VALUES ('61221e79-3185-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', '6121f760-3185-11ec-9f40-f20b812c0662', 'multiAbstainCount', 'integer', 0, NULL, NULL, 0, '0', NULL, '2021-10-20 17:09:07.168', '2021-10-20 17:09:07.168'); -INSERT INTO `ACT_HI_VARINST` VALUES ('61221e7b-3185-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', '6121f760-3185-11ec-9f40-f20b812c0662', 'loopCounter', 'integer', 0, NULL, NULL, 0, '0', NULL, '2021-10-20 17:09:07.168', '2021-10-20 17:09:07.168'); -INSERT INTO `ACT_HI_VARINST` VALUES ('61221e7d-3185-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', '6121f760-3185-11ec-9f40-f20b812c0662', 'multiSignStartTask', 'string', 0, NULL, NULL, NULL, '32dedbc5-3185-11ec-9f40-f20b812c0662', NULL, '2021-10-20 17:09:07.168', '2021-10-20 17:09:07.168'); -INSERT INTO `ACT_HI_VARINST` VALUES ('61221e7f-3185-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', '6121f760-3185-11ec-9f40-f20b812c0662', 'nrOfInstances', 'integer', 0, NULL, NULL, 2, '2', NULL, '2021-10-20 17:09:07.168', '2021-10-20 17:09:07.168'); -INSERT INTO `ACT_HI_VARINST` VALUES ('61221e81-3185-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', '6121f760-3185-11ec-9f40-f20b812c0662', 'multiNumOfInstances', 'integer', 0, NULL, NULL, 2, '2', NULL, '2021-10-20 17:09:07.168', '2021-10-20 17:09:07.168'); -INSERT INTO `ACT_HI_VARINST` VALUES ('61221e83-3185-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', '6121f760-3185-11ec-9f40-f20b812c0662', 'startUserName', 'string', 0, NULL, NULL, NULL, 'userD', NULL, '2021-10-20 17:09:07.168', '2021-10-20 17:09:07.168'); -INSERT INTO `ACT_HI_VARINST` VALUES ('61221e85-3185-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', '6121f760-3185-11ec-9f40-f20b812c0662', 'operationType', 'string', 1, NULL, NULL, NULL, 'agree', NULL, '2021-10-20 17:09:07.168', '2021-10-20 17:09:53.015'); -INSERT INTO `ACT_HI_VARINST` VALUES ('61221e87-3185-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', '6121f760-3185-11ec-9f40-f20b812c0662', 'deptPostLeader', 'string', 0, NULL, NULL, NULL, '1440964519391137792', NULL, '2021-10-20 17:09:07.168', '2021-10-20 17:09:07.168'); -INSERT INTO `ACT_HI_VARINST` VALUES ('61221e89-3185-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', '6121f760-3185-11ec-9f40-f20b812c0662', 'assignee', 'string', 0, NULL, NULL, NULL, 'admin', NULL, '2021-10-20 17:09:07.168', '2021-10-20 17:09:07.168'); -INSERT INTO `ACT_HI_VARINST` VALUES ('61221e8b-3185-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', '6121f760-3185-11ec-9f40-f20b812c0662', 'multiAgreeCount', 'integer', 0, NULL, NULL, 2, '2', NULL, '2021-10-20 17:09:07.168', '2021-10-20 17:09:07.168'); -INSERT INTO `ACT_HI_VARINST` VALUES ('61221e8d-3185-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', '6121f760-3185-11ec-9f40-f20b812c0662', 'nrOfCompletedInstances', 'integer', 0, NULL, NULL, 2, '2', NULL, '2021-10-20 17:09:07.168', '2021-10-20 17:09:07.168'); -INSERT INTO `ACT_HI_VARINST` VALUES ('8b85c898-3183-11ec-ad5a-f20b812c0662', '5b6b546a-3183-11ec-ad5a-f20b812c0662', '5b6c3ed2-3183-11ec-ad5a-f20b812c0662', '8b85a187-3183-11ec-ad5a-f20b812c0662', 'startUserName', 'string', 0, NULL, NULL, NULL, 'userD', NULL, '2021-10-20 16:55:59.292', '2021-10-20 16:55:59.292'); -INSERT INTO `ACT_HI_VARINST` VALUES ('8b85c89a-3183-11ec-ad5a-f20b812c0662', '5b6b546a-3183-11ec-ad5a-f20b812c0662', '5b6c3ed2-3183-11ec-ad5a-f20b812c0662', '8b85a187-3183-11ec-ad5a-f20b812c0662', 'initiator', 'string', 0, NULL, NULL, NULL, 'userD', NULL, '2021-10-20 16:55:59.292', '2021-10-20 16:55:59.292'); -INSERT INTO `ACT_HI_VARINST` VALUES ('8b85c89c-3183-11ec-ad5a-f20b812c0662', '5b6b546a-3183-11ec-ad5a-f20b812c0662', '5b6c3ed2-3183-11ec-ad5a-f20b812c0662', '8b85a187-3183-11ec-ad5a-f20b812c0662', 'operationType', 'string', 1, NULL, NULL, NULL, 'agree', NULL, '2021-10-20 16:55:59.292', '2021-10-20 16:56:19.426'); -INSERT INTO `ACT_HI_VARINST` VALUES ('8b85c89e-3183-11ec-ad5a-f20b812c0662', '5b6b546a-3183-11ec-ad5a-f20b812c0662', '5b6c3ed2-3183-11ec-ad5a-f20b812c0662', '8b85a187-3183-11ec-ad5a-f20b812c0662', 'deptPostLeader', 'string', 1, NULL, NULL, NULL, '1440964519391137792', NULL, '2021-10-20 16:55:59.292', '2021-10-20 16:56:19.427'); -INSERT INTO `ACT_HI_VARINST` VALUES ('8de9028e-3182-11ec-a0b7-f20b812c0662', '8de8b46c-3182-11ec-a0b7-f20b812c0662', '8de8b46c-3182-11ec-a0b7-f20b812c0662', NULL, 'startUserName', 'string', 1, NULL, NULL, NULL, 'userD', NULL, '2021-10-20 16:48:53.801', '2021-10-20 16:49:17.584'); -INSERT INTO `ACT_HI_VARINST` VALUES ('8de94fb0-3182-11ec-a0b7-f20b812c0662', '8de8b46c-3182-11ec-a0b7-f20b812c0662', '8de8b46c-3182-11ec-a0b7-f20b812c0662', NULL, 'deptPostLeader', 'string', 1, NULL, NULL, NULL, '1440964519391137792', NULL, '2021-10-20 16:48:53.804', '2021-10-20 16:49:17.583'); -INSERT INTO `ACT_HI_VARINST` VALUES ('8de976c2-3182-11ec-a0b7-f20b812c0662', '8de8b46c-3182-11ec-a0b7-f20b812c0662', '8de8b46c-3182-11ec-a0b7-f20b812c0662', NULL, 'initiator', 'string', 1, NULL, NULL, NULL, 'userD', NULL, '2021-10-20 16:48:53.804', '2021-10-20 16:49:17.585'); -INSERT INTO `ACT_HI_VARINST` VALUES ('8dec0ed8-3182-11ec-a0b7-f20b812c0662', '8de8b46c-3182-11ec-a0b7-f20b812c0662', '8de976c4-3182-11ec-a0b7-f20b812c0662', '8deb99a7-3182-11ec-a0b7-f20b812c0662', 'startUserName', 'string', 0, NULL, NULL, NULL, 'userD', NULL, '2021-10-20 16:48:53.822', '2021-10-20 16:48:53.822'); -INSERT INTO `ACT_HI_VARINST` VALUES ('8dec35ea-3182-11ec-a0b7-f20b812c0662', '8de8b46c-3182-11ec-a0b7-f20b812c0662', '8de976c4-3182-11ec-a0b7-f20b812c0662', '8deb99a7-3182-11ec-a0b7-f20b812c0662', 'initiator', 'string', 0, NULL, NULL, NULL, 'userD', NULL, '2021-10-20 16:48:53.822', '2021-10-20 16:48:53.822'); -INSERT INTO `ACT_HI_VARINST` VALUES ('8dec35ec-3182-11ec-a0b7-f20b812c0662', '8de8b46c-3182-11ec-a0b7-f20b812c0662', '8de976c4-3182-11ec-a0b7-f20b812c0662', '8deb99a7-3182-11ec-a0b7-f20b812c0662', 'deptPostLeader', 'string', 1, NULL, NULL, NULL, '1440964519391137792', NULL, '2021-10-20 16:48:53.822', '2021-10-20 16:49:17.565'); -INSERT INTO `ACT_HI_VARINST` VALUES ('8edfd2ea-3184-11ec-9f40-f20b812c0662', '8edf84c8-3184-11ec-9f40-f20b812c0662', '8edf84c8-3184-11ec-9f40-f20b812c0662', NULL, 'startUserName', 'string', 3, NULL, NULL, NULL, 'userD', NULL, '2021-10-20 17:03:14.412', '2021-10-20 17:03:59.165'); -INSERT INTO `ACT_HI_VARINST` VALUES ('8ee0481c-3184-11ec-9f40-f20b812c0662', '8edf84c8-3184-11ec-9f40-f20b812c0662', '8edf84c8-3184-11ec-9f40-f20b812c0662', NULL, 'deptPostLeader', 'string', 3, NULL, NULL, NULL, '1440964519391137792', NULL, '2021-10-20 17:03:14.415', '2021-10-20 17:03:59.164'); -INSERT INTO `ACT_HI_VARINST` VALUES ('8ee0481e-3184-11ec-9f40-f20b812c0662', '8edf84c8-3184-11ec-9f40-f20b812c0662', '8edf84c8-3184-11ec-9f40-f20b812c0662', NULL, 'initiator', 'string', 3, NULL, NULL, NULL, 'userD', NULL, '2021-10-20 17:03:14.415', '2021-10-20 17:03:59.165'); -INSERT INTO `ACT_HI_VARINST` VALUES ('8ee3ca94-3184-11ec-9f40-f20b812c0662', '8edf84c8-3184-11ec-9f40-f20b812c0662', '8ee06f30-3184-11ec-9f40-f20b812c0662', '8ee35563-3184-11ec-9f40-f20b812c0662', 'startUserName', 'string', 0, NULL, NULL, NULL, 'userD', NULL, '2021-10-20 17:03:14.438', '2021-10-20 17:03:14.438'); -INSERT INTO `ACT_HI_VARINST` VALUES ('8ee3f1a6-3184-11ec-9f40-f20b812c0662', '8edf84c8-3184-11ec-9f40-f20b812c0662', '8ee06f30-3184-11ec-9f40-f20b812c0662', '8ee35563-3184-11ec-9f40-f20b812c0662', 'initiator', 'string', 0, NULL, NULL, NULL, 'userD', NULL, '2021-10-20 17:03:14.439', '2021-10-20 17:03:14.439'); -INSERT INTO `ACT_HI_VARINST` VALUES ('8ee3f1a8-3184-11ec-9f40-f20b812c0662', '8edf84c8-3184-11ec-9f40-f20b812c0662', '8ee06f30-3184-11ec-9f40-f20b812c0662', '8ee35563-3184-11ec-9f40-f20b812c0662', 'deptPostLeader', 'string', 0, NULL, NULL, NULL, '1440964519391137792', NULL, '2021-10-20 17:03:14.439', '2021-10-20 17:03:14.439'); -INSERT INTO `ACT_HI_VARINST` VALUES ('8ee948da-3184-11ec-9f40-f20b812c0662', '8edf84c8-3184-11ec-9f40-f20b812c0662', '8ee06f30-3184-11ec-9f40-f20b812c0662', '8ee35563-3184-11ec-9f40-f20b812c0662', 'operationType', 'string', 0, NULL, NULL, NULL, 'agree', NULL, '2021-10-20 17:03:14.475', '2021-10-20 17:03:14.475'); -INSERT INTO `ACT_HI_VARINST` VALUES ('8eeb1d9d-3184-11ec-9f40-f20b812c0662', '8edf84c8-3184-11ec-9f40-f20b812c0662', '8edf84c8-3184-11ec-9f40-f20b812c0662', NULL, 'operationType', 'string', 2, NULL, NULL, NULL, 'agree', NULL, '2021-10-20 17:03:14.486', '2021-10-20 17:03:59.164'); -INSERT INTO `ACT_HI_VARINST` VALUES ('8eebb9e3-3184-11ec-9f40-f20b812c0662', '8edf84c8-3184-11ec-9f40-f20b812c0662', '8ee06f30-3184-11ec-9f40-f20b812c0662', '8eeb92d2-3184-11ec-9f40-f20b812c0662', 'startUserName', 'string', 0, NULL, NULL, NULL, 'userD', NULL, '2021-10-20 17:03:14.490', '2021-10-20 17:03:14.490'); -INSERT INTO `ACT_HI_VARINST` VALUES ('8eebb9e5-3184-11ec-9f40-f20b812c0662', '8edf84c8-3184-11ec-9f40-f20b812c0662', '8ee06f30-3184-11ec-9f40-f20b812c0662', '8eeb92d2-3184-11ec-9f40-f20b812c0662', 'initiator', 'string', 0, NULL, NULL, NULL, 'userD', NULL, '2021-10-20 17:03:14.490', '2021-10-20 17:03:14.490'); -INSERT INTO `ACT_HI_VARINST` VALUES ('8eebb9e7-3184-11ec-9f40-f20b812c0662', '8edf84c8-3184-11ec-9f40-f20b812c0662', '8ee06f30-3184-11ec-9f40-f20b812c0662', '8eeb92d2-3184-11ec-9f40-f20b812c0662', 'deptPostLeader', 'string', 0, NULL, NULL, NULL, '1440964519391137792', NULL, '2021-10-20 17:03:14.490', '2021-10-20 17:03:14.490'); -INSERT INTO `ACT_HI_VARINST` VALUES ('8eebb9e9-3184-11ec-9f40-f20b812c0662', '8edf84c8-3184-11ec-9f40-f20b812c0662', '8ee06f30-3184-11ec-9f40-f20b812c0662', '8eeb92d2-3184-11ec-9f40-f20b812c0662', 'operationType', 'string', 1, NULL, NULL, NULL, 'agree', NULL, '2021-10-20 17:03:14.490', '2021-10-20 17:03:35.199'); -INSERT INTO `ACT_HI_VARINST` VALUES ('9787f8d8-3183-11ec-ad5a-f20b812c0662', '5b6b546a-3183-11ec-ad5a-f20b812c0662', '5b6c3ed2-3183-11ec-ad5a-f20b812c0662', '9787d1c7-3183-11ec-ad5a-f20b812c0662', 'startUserName', 'string', 0, NULL, NULL, NULL, 'userD', NULL, '2021-10-20 16:56:19.439', '2021-10-20 16:56:19.439'); -INSERT INTO `ACT_HI_VARINST` VALUES ('9787f8da-3183-11ec-ad5a-f20b812c0662', '5b6b546a-3183-11ec-ad5a-f20b812c0662', '5b6c3ed2-3183-11ec-ad5a-f20b812c0662', '9787d1c7-3183-11ec-ad5a-f20b812c0662', 'initiator', 'string', 0, NULL, NULL, NULL, 'userD', NULL, '2021-10-20 16:56:19.439', '2021-10-20 16:56:19.439'); -INSERT INTO `ACT_HI_VARINST` VALUES ('9787f8dc-3183-11ec-ad5a-f20b812c0662', '5b6b546a-3183-11ec-ad5a-f20b812c0662', '5b6c3ed2-3183-11ec-ad5a-f20b812c0662', '9787d1c7-3183-11ec-ad5a-f20b812c0662', 'operationType', 'string', 1, NULL, NULL, NULL, 'agree', NULL, '2021-10-20 16:56:19.439', '2021-10-20 16:56:36.163'); -INSERT INTO `ACT_HI_VARINST` VALUES ('97881fee-3183-11ec-ad5a-f20b812c0662', '5b6b546a-3183-11ec-ad5a-f20b812c0662', '5b6c3ed2-3183-11ec-ad5a-f20b812c0662', '9787d1c7-3183-11ec-ad5a-f20b812c0662', 'deptPostLeader', 'string', 1, NULL, NULL, NULL, '1440964519391137792', NULL, '2021-10-20 16:56:19.440', '2021-10-20 16:56:36.163'); -INSERT INTO `ACT_HI_VARINST` VALUES ('9b45f534-3184-11ec-9f40-f20b812c0662', '8edf84c8-3184-11ec-9f40-f20b812c0662', '8ee06f30-3184-11ec-9f40-f20b812c0662', '9b45ce23-3184-11ec-9f40-f20b812c0662', 'startUserName', 'string', 0, NULL, NULL, NULL, 'userD', NULL, '2021-10-20 17:03:35.214', '2021-10-20 17:03:35.214'); -INSERT INTO `ACT_HI_VARINST` VALUES ('9b45f536-3184-11ec-9f40-f20b812c0662', '8edf84c8-3184-11ec-9f40-f20b812c0662', '8ee06f30-3184-11ec-9f40-f20b812c0662', '9b45ce23-3184-11ec-9f40-f20b812c0662', 'initiator', 'string', 0, NULL, NULL, NULL, 'userD', NULL, '2021-10-20 17:03:35.214', '2021-10-20 17:03:35.214'); -INSERT INTO `ACT_HI_VARINST` VALUES ('9b45f538-3184-11ec-9f40-f20b812c0662', '8edf84c8-3184-11ec-9f40-f20b812c0662', '8ee06f30-3184-11ec-9f40-f20b812c0662', '9b45ce23-3184-11ec-9f40-f20b812c0662', 'deptPostLeader', 'string', 0, NULL, NULL, NULL, '1440964519391137792', NULL, '2021-10-20 17:03:35.214', '2021-10-20 17:03:35.214'); -INSERT INTO `ACT_HI_VARINST` VALUES ('9b461c4a-3184-11ec-9f40-f20b812c0662', '8edf84c8-3184-11ec-9f40-f20b812c0662', '8ee06f30-3184-11ec-9f40-f20b812c0662', '9b45ce23-3184-11ec-9f40-f20b812c0662', 'operationType', 'string', 1, NULL, NULL, NULL, 'agree', NULL, '2021-10-20 17:03:35.215', '2021-10-20 17:03:59.158'); -INSERT INTO `ACT_HI_VARINST` VALUES ('9c12a5ae-3182-11ec-a0b7-f20b812c0662', '8de8b46c-3182-11ec-a0b7-f20b812c0662', '8de976c4-3182-11ec-a0b7-f20b812c0662', '8deb99a7-3182-11ec-a0b7-f20b812c0662', 'operationType', 'string', 0, NULL, NULL, NULL, 'agree', NULL, '2021-10-20 16:49:17.562', '2021-10-20 16:49:17.562'); -INSERT INTO `ACT_HI_VARINST` VALUES ('9c15da02-3182-11ec-a0b7-f20b812c0662', '8de8b46c-3182-11ec-a0b7-f20b812c0662', '8de8b46c-3182-11ec-a0b7-f20b812c0662', NULL, 'operationType', 'string', 0, NULL, NULL, NULL, 'agree', NULL, '2021-10-20 16:49:17.583', '2021-10-20 16:49:17.583'); -INSERT INTO `ACT_HI_VARINST` VALUES ('9c169d58-3182-11ec-a0b7-f20b812c0662', '8de8b46c-3182-11ec-a0b7-f20b812c0662', '8de976c4-3182-11ec-a0b7-f20b812c0662', '9c164f37-3182-11ec-a0b7-f20b812c0662', 'startUserName', 'string', 0, NULL, NULL, NULL, 'userD', NULL, '2021-10-20 16:49:17.588', '2021-10-20 16:49:17.588'); -INSERT INTO `ACT_HI_VARINST` VALUES ('9c169d5a-3182-11ec-a0b7-f20b812c0662', '8de8b46c-3182-11ec-a0b7-f20b812c0662', '8de976c4-3182-11ec-a0b7-f20b812c0662', '9c164f37-3182-11ec-a0b7-f20b812c0662', 'initiator', 'string', 0, NULL, NULL, NULL, 'userD', NULL, '2021-10-20 16:49:17.588', '2021-10-20 16:49:17.588'); -INSERT INTO `ACT_HI_VARINST` VALUES ('9c169d5c-3182-11ec-a0b7-f20b812c0662', '8de8b46c-3182-11ec-a0b7-f20b812c0662', '8de976c4-3182-11ec-a0b7-f20b812c0662', '9c164f37-3182-11ec-a0b7-f20b812c0662', 'deptPostLeader', 'string', 0, NULL, NULL, NULL, '1440964519391137792', NULL, '2021-10-20 16:49:17.588', '2021-10-20 16:49:17.588'); -INSERT INTO `ACT_HI_VARINST` VALUES ('9c169d5e-3182-11ec-a0b7-f20b812c0662', '8de8b46c-3182-11ec-a0b7-f20b812c0662', '8de976c4-3182-11ec-a0b7-f20b812c0662', '9c164f37-3182-11ec-a0b7-f20b812c0662', 'operationType', 'string', 0, NULL, NULL, NULL, 'agree', NULL, '2021-10-20 16:49:17.588', '2021-10-20 16:49:17.588'); -INSERT INTO `ACT_HI_VARINST` VALUES ('a18112a9-3183-11ec-ad5a-f20b812c0662', '5b6b546a-3183-11ec-ad5a-f20b812c0662', '5b6c3ed2-3183-11ec-ad5a-f20b812c0662', 'a18112a8-3183-11ec-ad5a-f20b812c0662', 'startUserName', 'string', 0, NULL, NULL, NULL, 'userD', NULL, '2021-10-20 16:56:36.171', '2021-10-20 16:56:36.171'); -INSERT INTO `ACT_HI_VARINST` VALUES ('a18112ab-3183-11ec-ad5a-f20b812c0662', '5b6b546a-3183-11ec-ad5a-f20b812c0662', '5b6c3ed2-3183-11ec-ad5a-f20b812c0662', 'a18112a8-3183-11ec-ad5a-f20b812c0662', 'initiator', 'string', 0, NULL, NULL, NULL, 'userD', NULL, '2021-10-20 16:56:36.171', '2021-10-20 16:56:36.171'); -INSERT INTO `ACT_HI_VARINST` VALUES ('a18112ad-3183-11ec-ad5a-f20b812c0662', '5b6b546a-3183-11ec-ad5a-f20b812c0662', '5b6c3ed2-3183-11ec-ad5a-f20b812c0662', 'a18112a8-3183-11ec-ad5a-f20b812c0662', 'operationType', 'string', 1, NULL, NULL, NULL, 'agree', NULL, '2021-10-20 16:56:36.172', '2021-10-20 16:57:52.359'); -INSERT INTO `ACT_HI_VARINST` VALUES ('a18139bf-3183-11ec-ad5a-f20b812c0662', '5b6b546a-3183-11ec-ad5a-f20b812c0662', '5b6c3ed2-3183-11ec-ad5a-f20b812c0662', 'a18112a8-3183-11ec-ad5a-f20b812c0662', 'deptPostLeader', 'string', 1, NULL, NULL, NULL, '1440964221780103168', NULL, '2021-10-20 16:56:36.172', '2021-10-20 16:57:52.360'); -INSERT INTO `ACT_HI_VARINST` VALUES ('a3971993-3186-11ec-bf2d-f20b812c0662', 'a396f281-3186-11ec-bf2d-f20b812c0662', 'a396f281-3186-11ec-bf2d-f20b812c0662', NULL, 'startUserName', 'string', 1, NULL, NULL, NULL, 'userD', NULL, '2021-10-20 17:18:08.161', '2021-10-20 17:18:08.232'); -INSERT INTO `ACT_HI_VARINST` VALUES ('a39767b5-3186-11ec-bf2d-f20b812c0662', 'a396f281-3186-11ec-bf2d-f20b812c0662', 'a396f281-3186-11ec-bf2d-f20b812c0662', NULL, 'deptPostLeader', 'string', 1, NULL, NULL, NULL, '1440964519391137792', NULL, '2021-10-20 17:18:08.163', '2021-10-20 17:18:08.230'); -INSERT INTO `ACT_HI_VARINST` VALUES ('a39767b7-3186-11ec-bf2d-f20b812c0662', 'a396f281-3186-11ec-bf2d-f20b812c0662', 'a396f281-3186-11ec-bf2d-f20b812c0662', NULL, 'initiator', 'string', 1, NULL, NULL, NULL, 'userD', NULL, '2021-10-20 17:18:08.163', '2021-10-20 17:18:08.232'); -INSERT INTO `ACT_HI_VARINST` VALUES ('a39a26dd-3186-11ec-bf2d-f20b812c0662', 'a396f281-3186-11ec-bf2d-f20b812c0662', 'a3978ec9-3186-11ec-bf2d-f20b812c0662', 'a399b1ac-3186-11ec-bf2d-f20b812c0662', 'startUserName', 'string', 0, NULL, NULL, NULL, 'userD', NULL, '2021-10-20 17:18:08.181', '2021-10-20 17:18:08.181'); -INSERT INTO `ACT_HI_VARINST` VALUES ('a39a4def-3186-11ec-bf2d-f20b812c0662', 'a396f281-3186-11ec-bf2d-f20b812c0662', 'a3978ec9-3186-11ec-bf2d-f20b812c0662', 'a399b1ac-3186-11ec-bf2d-f20b812c0662', 'initiator', 'string', 0, NULL, NULL, NULL, 'userD', NULL, '2021-10-20 17:18:08.182', '2021-10-20 17:18:08.182'); -INSERT INTO `ACT_HI_VARINST` VALUES ('a39a4df1-3186-11ec-bf2d-f20b812c0662', 'a396f281-3186-11ec-bf2d-f20b812c0662', 'a3978ec9-3186-11ec-bf2d-f20b812c0662', 'a399b1ac-3186-11ec-bf2d-f20b812c0662', 'deptPostLeader', 'string', 0, NULL, NULL, NULL, '1440964519391137792', NULL, '2021-10-20 17:18:08.182', '2021-10-20 17:18:08.182'); -INSERT INTO `ACT_HI_VARINST` VALUES ('a3a04163-3186-11ec-bf2d-f20b812c0662', 'a396f281-3186-11ec-bf2d-f20b812c0662', 'a3978ec9-3186-11ec-bf2d-f20b812c0662', 'a399b1ac-3186-11ec-bf2d-f20b812c0662', 'operationType', 'string', 0, NULL, NULL, NULL, 'agree', NULL, '2021-10-20 17:18:08.222', '2021-10-20 17:18:08.222'); -INSERT INTO `ACT_HI_VARINST` VALUES ('a3a1c806-3186-11ec-bf2d-f20b812c0662', 'a396f281-3186-11ec-bf2d-f20b812c0662', 'a396f281-3186-11ec-bf2d-f20b812c0662', NULL, 'operationType', 'string', 0, NULL, NULL, NULL, 'agree', NULL, '2021-10-20 17:18:08.231', '2021-10-20 17:18:08.231'); -INSERT INTO `ACT_HI_VARINST` VALUES ('a3a23d3c-3186-11ec-bf2d-f20b812c0662', 'a396f281-3186-11ec-bf2d-f20b812c0662', 'a3978ec9-3186-11ec-bf2d-f20b812c0662', 'a3a2162b-3186-11ec-bf2d-f20b812c0662', 'startUserName', 'string', 0, NULL, NULL, NULL, 'userD', NULL, '2021-10-20 17:18:08.234', '2021-10-20 17:18:08.234'); -INSERT INTO `ACT_HI_VARINST` VALUES ('a3a2644e-3186-11ec-bf2d-f20b812c0662', 'a396f281-3186-11ec-bf2d-f20b812c0662', 'a3978ec9-3186-11ec-bf2d-f20b812c0662', 'a3a2162b-3186-11ec-bf2d-f20b812c0662', 'initiator', 'string', 0, NULL, NULL, NULL, 'userD', NULL, '2021-10-20 17:18:08.235', '2021-10-20 17:18:08.235'); -INSERT INTO `ACT_HI_VARINST` VALUES ('a3a26450-3186-11ec-bf2d-f20b812c0662', 'a396f281-3186-11ec-bf2d-f20b812c0662', 'a3978ec9-3186-11ec-bf2d-f20b812c0662', 'a3a2162b-3186-11ec-bf2d-f20b812c0662', 'deptPostLeader', 'string', 0, NULL, NULL, NULL, '1440964519391137792', NULL, '2021-10-20 17:18:08.235', '2021-10-20 17:18:08.235'); -INSERT INTO `ACT_HI_VARINST` VALUES ('a3a26452-3186-11ec-bf2d-f20b812c0662', 'a396f281-3186-11ec-bf2d-f20b812c0662', 'a3978ec9-3186-11ec-bf2d-f20b812c0662', 'a3a2162b-3186-11ec-bf2d-f20b812c0662', 'operationType', 'string', 0, NULL, NULL, NULL, 'agree', NULL, '2021-10-20 17:18:08.235', '2021-10-20 17:18:08.235'); -INSERT INTO `ACT_HI_VARINST` VALUES ('d64281ab-69e6-11ec-bb85-0235bf949cb9', 'd6423389-69e6-11ec-bb85-0235bf949cb9', 'd6423389-69e6-11ec-bb85-0235bf949cb9', NULL, 'startUserName', 'string', 1, NULL, NULL, NULL, 'admin', NULL, '2021-12-31 11:07:49.972', '2021-12-31 11:07:50.048'); -INSERT INTO `ACT_HI_VARINST` VALUES ('d642cfcd-69e6-11ec-bb85-0235bf949cb9', 'd6423389-69e6-11ec-bb85-0235bf949cb9', 'd6423389-69e6-11ec-bb85-0235bf949cb9', NULL, 'deptPostLeader', 'string', 1, NULL, NULL, NULL, '1440969551792574464', NULL, '2021-12-31 11:07:49.974', '2021-12-31 11:07:50.046'); -INSERT INTO `ACT_HI_VARINST` VALUES ('d642cfcf-69e6-11ec-bb85-0235bf949cb9', 'd6423389-69e6-11ec-bb85-0235bf949cb9', 'd6423389-69e6-11ec-bb85-0235bf949cb9', NULL, 'initiator', 'string', 1, NULL, NULL, NULL, 'admin', NULL, '2021-12-31 11:07:49.974', '2021-12-31 11:07:50.049'); -INSERT INTO `ACT_HI_VARINST` VALUES ('d64567e5-69e6-11ec-bb85-0235bf949cb9', 'd6423389-69e6-11ec-bb85-0235bf949cb9', 'd642f6e1-69e6-11ec-bb85-0235bf949cb9', 'd644f2b4-69e6-11ec-bb85-0235bf949cb9', 'startUserName', 'string', 0, NULL, NULL, NULL, 'admin', NULL, '2021-12-31 11:07:49.992', '2021-12-31 11:07:49.992'); -INSERT INTO `ACT_HI_VARINST` VALUES ('d6458ef7-69e6-11ec-bb85-0235bf949cb9', 'd6423389-69e6-11ec-bb85-0235bf949cb9', 'd642f6e1-69e6-11ec-bb85-0235bf949cb9', 'd644f2b4-69e6-11ec-bb85-0235bf949cb9', 'initiator', 'string', 0, NULL, NULL, NULL, 'admin', NULL, '2021-12-31 11:07:49.992', '2021-12-31 11:07:49.992'); -INSERT INTO `ACT_HI_VARINST` VALUES ('d6458ef9-69e6-11ec-bb85-0235bf949cb9', 'd6423389-69e6-11ec-bb85-0235bf949cb9', 'd642f6e1-69e6-11ec-bb85-0235bf949cb9', 'd644f2b4-69e6-11ec-bb85-0235bf949cb9', 'deptPostLeader', 'string', 0, NULL, NULL, NULL, '1440969551792574464', NULL, '2021-12-31 11:07:49.992', '2021-12-31 11:07:49.992'); -INSERT INTO `ACT_HI_VARINST` VALUES ('d64c45bb-69e6-11ec-bb85-0235bf949cb9', 'd6423389-69e6-11ec-bb85-0235bf949cb9', 'd642f6e1-69e6-11ec-bb85-0235bf949cb9', 'd644f2b4-69e6-11ec-bb85-0235bf949cb9', 'operationType', 'string', 0, NULL, NULL, NULL, 'agree', NULL, '2021-12-31 11:07:50.036', '2021-12-31 11:07:50.036'); -INSERT INTO `ACT_HI_VARINST` VALUES ('d64df36e-69e6-11ec-bb85-0235bf949cb9', 'd6423389-69e6-11ec-bb85-0235bf949cb9', 'd6423389-69e6-11ec-bb85-0235bf949cb9', NULL, 'operationType', 'string', 0, NULL, NULL, NULL, 'agree', NULL, '2021-12-31 11:07:50.047', '2021-12-31 11:07:50.047'); -INSERT INTO `ACT_HI_VARINST` VALUES ('d64e8fb4-69e6-11ec-bb85-0235bf949cb9', 'd6423389-69e6-11ec-bb85-0235bf949cb9', 'd642f6e1-69e6-11ec-bb85-0235bf949cb9', 'd64e68a3-69e6-11ec-bb85-0235bf949cb9', 'startUserName', 'string', 0, NULL, NULL, NULL, 'admin', NULL, '2021-12-31 11:07:50.051', '2021-12-31 11:07:50.051'); -INSERT INTO `ACT_HI_VARINST` VALUES ('d64e8fb6-69e6-11ec-bb85-0235bf949cb9', 'd6423389-69e6-11ec-bb85-0235bf949cb9', 'd642f6e1-69e6-11ec-bb85-0235bf949cb9', 'd64e68a3-69e6-11ec-bb85-0235bf949cb9', 'initiator', 'string', 0, NULL, NULL, NULL, 'admin', NULL, '2021-12-31 11:07:50.051', '2021-12-31 11:07:50.051'); -INSERT INTO `ACT_HI_VARINST` VALUES ('d64e8fb8-69e6-11ec-bb85-0235bf949cb9', 'd6423389-69e6-11ec-bb85-0235bf949cb9', 'd642f6e1-69e6-11ec-bb85-0235bf949cb9', 'd64e68a3-69e6-11ec-bb85-0235bf949cb9', 'deptPostLeader', 'string', 0, NULL, NULL, NULL, '1440969551792574464', NULL, '2021-12-31 11:07:50.051', '2021-12-31 11:07:50.051'); -INSERT INTO `ACT_HI_VARINST` VALUES ('d64e8fba-69e6-11ec-bb85-0235bf949cb9', 'd6423389-69e6-11ec-bb85-0235bf949cb9', 'd642f6e1-69e6-11ec-bb85-0235bf949cb9', 'd64e68a3-69e6-11ec-bb85-0235bf949cb9', 'operationType', 'string', 0, NULL, NULL, NULL, 'agree', NULL, '2021-12-31 11:07:50.051', '2021-12-31 11:07:50.051'); -INSERT INTO `ACT_HI_VARINST` VALUES ('dc101a4f-69e6-11ec-bb85-0235bf949cb9', 'dc101a4d-69e6-11ec-bb85-0235bf949cb9', 'dc101a4d-69e6-11ec-bb85-0235bf949cb9', NULL, 'startUserName', 'string', 1, NULL, NULL, NULL, 'admin', NULL, '2021-12-31 11:07:59.708', '2021-12-31 11:07:59.739'); -INSERT INTO `ACT_HI_VARINST` VALUES ('dc101a51-69e6-11ec-bb85-0235bf949cb9', 'dc101a4d-69e6-11ec-bb85-0235bf949cb9', 'dc101a4d-69e6-11ec-bb85-0235bf949cb9', NULL, 'deptPostLeader', 'string', 1, NULL, NULL, NULL, '1440969551792574464', NULL, '2021-12-31 11:07:59.708', '2021-12-31 11:07:59.738'); -INSERT INTO `ACT_HI_VARINST` VALUES ('dc101a53-69e6-11ec-bb85-0235bf949cb9', 'dc101a4d-69e6-11ec-bb85-0235bf949cb9', 'dc101a4d-69e6-11ec-bb85-0235bf949cb9', NULL, 'initiator', 'string', 1, NULL, NULL, NULL, 'admin', NULL, '2021-12-31 11:07:59.708', '2021-12-31 11:07:59.740'); -INSERT INTO `ACT_HI_VARINST` VALUES ('dc104169-69e6-11ec-bb85-0235bf949cb9', 'dc101a4d-69e6-11ec-bb85-0235bf949cb9', 'dc101a55-69e6-11ec-bb85-0235bf949cb9', 'dc104168-69e6-11ec-bb85-0235bf949cb9', 'startUserName', 'string', 0, NULL, NULL, NULL, 'admin', NULL, '2021-12-31 11:07:59.710', '2021-12-31 11:07:59.710'); -INSERT INTO `ACT_HI_VARINST` VALUES ('dc10687b-69e6-11ec-bb85-0235bf949cb9', 'dc101a4d-69e6-11ec-bb85-0235bf949cb9', 'dc101a55-69e6-11ec-bb85-0235bf949cb9', 'dc104168-69e6-11ec-bb85-0235bf949cb9', 'initiator', 'string', 0, NULL, NULL, NULL, 'admin', NULL, '2021-12-31 11:07:59.710', '2021-12-31 11:07:59.710'); -INSERT INTO `ACT_HI_VARINST` VALUES ('dc10687d-69e6-11ec-bb85-0235bf949cb9', 'dc101a4d-69e6-11ec-bb85-0235bf949cb9', 'dc101a55-69e6-11ec-bb85-0235bf949cb9', 'dc104168-69e6-11ec-bb85-0235bf949cb9', 'deptPostLeader', 'string', 0, NULL, NULL, NULL, '1440969551792574464', NULL, '2021-12-31 11:07:59.710', '2021-12-31 11:07:59.710'); -INSERT INTO `ACT_HI_VARINST` VALUES ('dc13eaef-69e6-11ec-bb85-0235bf949cb9', 'dc101a4d-69e6-11ec-bb85-0235bf949cb9', 'dc101a55-69e6-11ec-bb85-0235bf949cb9', 'dc104168-69e6-11ec-bb85-0235bf949cb9', 'operationType', 'string', 0, NULL, NULL, NULL, 'agree', NULL, '2021-12-31 11:07:59.733', '2021-12-31 11:07:59.733'); -INSERT INTO `ACT_HI_VARINST` VALUES ('dc14ae42-69e6-11ec-bb85-0235bf949cb9', 'dc101a4d-69e6-11ec-bb85-0235bf949cb9', 'dc101a4d-69e6-11ec-bb85-0235bf949cb9', NULL, 'operationType', 'string', 0, NULL, NULL, NULL, 'agree', NULL, '2021-12-31 11:07:59.738', '2021-12-31 11:07:59.738'); -INSERT INTO `ACT_HI_VARINST` VALUES ('dc154a88-69e6-11ec-bb85-0235bf949cb9', 'dc101a4d-69e6-11ec-bb85-0235bf949cb9', 'dc101a55-69e6-11ec-bb85-0235bf949cb9', 'dc14fc67-69e6-11ec-bb85-0235bf949cb9', 'startUserName', 'string', 0, NULL, NULL, NULL, 'admin', NULL, '2021-12-31 11:07:59.742', '2021-12-31 11:07:59.742'); -INSERT INTO `ACT_HI_VARINST` VALUES ('dc154a8a-69e6-11ec-bb85-0235bf949cb9', 'dc101a4d-69e6-11ec-bb85-0235bf949cb9', 'dc101a55-69e6-11ec-bb85-0235bf949cb9', 'dc14fc67-69e6-11ec-bb85-0235bf949cb9', 'initiator', 'string', 0, NULL, NULL, NULL, 'admin', NULL, '2021-12-31 11:07:59.742', '2021-12-31 11:07:59.742'); -INSERT INTO `ACT_HI_VARINST` VALUES ('dc154a8c-69e6-11ec-bb85-0235bf949cb9', 'dc101a4d-69e6-11ec-bb85-0235bf949cb9', 'dc101a55-69e6-11ec-bb85-0235bf949cb9', 'dc14fc67-69e6-11ec-bb85-0235bf949cb9', 'deptPostLeader', 'string', 0, NULL, NULL, NULL, '1440969551792574464', NULL, '2021-12-31 11:07:59.742', '2021-12-31 11:07:59.742'); -INSERT INTO `ACT_HI_VARINST` VALUES ('dc154a8e-69e6-11ec-bb85-0235bf949cb9', 'dc101a4d-69e6-11ec-bb85-0235bf949cb9', 'dc101a55-69e6-11ec-bb85-0235bf949cb9', 'dc14fc67-69e6-11ec-bb85-0235bf949cb9', 'operationType', 'string', 0, NULL, NULL, NULL, 'agree', NULL, '2021-12-31 11:07:59.742', '2021-12-31 11:07:59.742'); -INSERT INTO `ACT_HI_VARINST` VALUES ('e214ef93-69e6-11ec-bb85-0235bf949cb9', 'e214ef91-69e6-11ec-bb85-0235bf949cb9', 'e214ef91-69e6-11ec-bb85-0235bf949cb9', NULL, 'startUserName', 'string', 2, NULL, NULL, NULL, 'admin', NULL, '2021-12-31 11:08:09.806', '2021-12-31 11:13:54.219'); -INSERT INTO `ACT_HI_VARINST` VALUES ('e214ef95-69e6-11ec-bb85-0235bf949cb9', 'e214ef91-69e6-11ec-bb85-0235bf949cb9', 'e214ef91-69e6-11ec-bb85-0235bf949cb9', NULL, 'deptPostLeader', 'string', 2, NULL, NULL, NULL, '1440969551792574464', NULL, '2021-12-31 11:08:09.806', '2021-12-31 11:13:54.218'); -INSERT INTO `ACT_HI_VARINST` VALUES ('e214ef97-69e6-11ec-bb85-0235bf949cb9', 'e214ef91-69e6-11ec-bb85-0235bf949cb9', 'e214ef91-69e6-11ec-bb85-0235bf949cb9', NULL, 'initiator', 'string', 2, NULL, NULL, NULL, 'admin', NULL, '2021-12-31 11:08:09.806', '2021-12-31 11:13:54.220'); -INSERT INTO `ACT_HI_VARINST` VALUES ('e2153dbd-69e6-11ec-bb85-0235bf949cb9', 'e214ef91-69e6-11ec-bb85-0235bf949cb9', 'e214ef99-69e6-11ec-bb85-0235bf949cb9', 'e21516ac-69e6-11ec-bb85-0235bf949cb9', 'startUserName', 'string', 0, NULL, NULL, NULL, 'admin', NULL, '2021-12-31 11:08:09.808', '2021-12-31 11:08:09.808'); -INSERT INTO `ACT_HI_VARINST` VALUES ('e2153dbf-69e6-11ec-bb85-0235bf949cb9', 'e214ef91-69e6-11ec-bb85-0235bf949cb9', 'e214ef99-69e6-11ec-bb85-0235bf949cb9', 'e21516ac-69e6-11ec-bb85-0235bf949cb9', 'initiator', 'string', 0, NULL, NULL, NULL, 'admin', NULL, '2021-12-31 11:08:09.808', '2021-12-31 11:08:09.808'); -INSERT INTO `ACT_HI_VARINST` VALUES ('e2153dc1-69e6-11ec-bb85-0235bf949cb9', 'e214ef91-69e6-11ec-bb85-0235bf949cb9', 'e214ef99-69e6-11ec-bb85-0235bf949cb9', 'e21516ac-69e6-11ec-bb85-0235bf949cb9', 'deptPostLeader', 'string', 0, NULL, NULL, NULL, '1440969551792574464', NULL, '2021-12-31 11:08:09.808', '2021-12-31 11:08:09.808'); -INSERT INTO `ACT_HI_VARINST` VALUES ('e217d5d3-69e6-11ec-bb85-0235bf949cb9', 'e214ef91-69e6-11ec-bb85-0235bf949cb9', 'e214ef99-69e6-11ec-bb85-0235bf949cb9', 'e21516ac-69e6-11ec-bb85-0235bf949cb9', 'operationType', 'string', 0, NULL, NULL, NULL, 'agree', NULL, '2021-12-31 11:08:09.825', '2021-12-31 11:08:09.825'); -INSERT INTO `ACT_HI_VARINST` VALUES ('e218c036-69e6-11ec-bb85-0235bf949cb9', 'e214ef91-69e6-11ec-bb85-0235bf949cb9', 'e214ef91-69e6-11ec-bb85-0235bf949cb9', NULL, 'operationType', 'string', 1, NULL, NULL, NULL, 'agree', NULL, '2021-12-31 11:08:09.832', '2021-12-31 11:13:54.219'); -INSERT INTO `ACT_HI_VARINST` VALUES ('e2195c7c-69e6-11ec-bb85-0235bf949cb9', 'e214ef91-69e6-11ec-bb85-0235bf949cb9', 'e214ef99-69e6-11ec-bb85-0235bf949cb9', 'e219356b-69e6-11ec-bb85-0235bf949cb9', 'startUserName', 'string', 0, NULL, NULL, NULL, 'admin', NULL, '2021-12-31 11:08:09.835', '2021-12-31 11:08:09.835'); -INSERT INTO `ACT_HI_VARINST` VALUES ('e2195c7e-69e6-11ec-bb85-0235bf949cb9', 'e214ef91-69e6-11ec-bb85-0235bf949cb9', 'e214ef99-69e6-11ec-bb85-0235bf949cb9', 'e219356b-69e6-11ec-bb85-0235bf949cb9', 'initiator', 'string', 0, NULL, NULL, NULL, 'admin', NULL, '2021-12-31 11:08:09.835', '2021-12-31 11:08:09.835'); -INSERT INTO `ACT_HI_VARINST` VALUES ('e2195c80-69e6-11ec-bb85-0235bf949cb9', 'e214ef91-69e6-11ec-bb85-0235bf949cb9', 'e214ef99-69e6-11ec-bb85-0235bf949cb9', 'e219356b-69e6-11ec-bb85-0235bf949cb9', 'deptPostLeader', 'string', 0, NULL, NULL, NULL, '1440969551792574464', NULL, '2021-12-31 11:08:09.835', '2021-12-31 11:08:09.835'); -INSERT INTO `ACT_HI_VARINST` VALUES ('e2195c82-69e6-11ec-bb85-0235bf949cb9', 'e214ef91-69e6-11ec-bb85-0235bf949cb9', 'e214ef99-69e6-11ec-bb85-0235bf949cb9', 'e219356b-69e6-11ec-bb85-0235bf949cb9', 'operationType', 'string', 0, NULL, NULL, NULL, 'agree', NULL, '2021-12-31 11:08:09.835', '2021-12-31 11:08:09.835'); -INSERT INTO `ACT_HI_VARINST` VALUES ('ec6ca596-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', NULL, 'startUserName', 'string', 9, NULL, NULL, NULL, 'userD', NULL, '2021-10-20 17:05:51.363', '2021-10-20 17:09:53.024'); -INSERT INTO `ACT_HI_VARINST` VALUES ('ec6ca598-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', NULL, 'deptPostLeader', 'string', 9, NULL, NULL, NULL, '1440964519391137792', NULL, '2021-10-20 17:05:51.363', '2021-10-20 17:09:53.024'); -INSERT INTO `ACT_HI_VARINST` VALUES ('ec6ca59a-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', NULL, 'initiator', 'string', 9, NULL, NULL, NULL, 'userD', NULL, '2021-10-20 17:05:51.363', '2021-10-20 17:09:53.021'); -INSERT INTO `ACT_HI_VARINST` VALUES ('ec6cccb0-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', 'ec6cccaf-3184-11ec-9f40-f20b812c0662', 'startUserName', 'string', 0, NULL, NULL, NULL, 'userD', NULL, '2021-10-20 17:05:51.364', '2021-10-20 17:05:51.364'); -INSERT INTO `ACT_HI_VARINST` VALUES ('ec6cccb2-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', 'ec6cccaf-3184-11ec-9f40-f20b812c0662', 'initiator', 'string', 0, NULL, NULL, NULL, 'userD', NULL, '2021-10-20 17:05:51.364', '2021-10-20 17:05:51.364'); -INSERT INTO `ACT_HI_VARINST` VALUES ('ec6cccb4-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', 'ec6cccaf-3184-11ec-9f40-f20b812c0662', 'deptPostLeader', 'string', 0, NULL, NULL, NULL, '1440964519391137792', NULL, '2021-10-20 17:05:51.364', '2021-10-20 17:05:51.364'); -INSERT INTO `ACT_HI_VARINST` VALUES ('ec6eef96-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', 'ec6cccaf-3184-11ec-9f40-f20b812c0662', 'operationType', 'string', 0, NULL, NULL, NULL, 'agree', NULL, '2021-10-20 17:05:51.378', '2021-10-20 17:05:51.378'); -INSERT INTO `ACT_HI_VARINST` VALUES ('ec6f8bd9-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', NULL, 'operationType', 'string', 8, NULL, NULL, NULL, 'agree', NULL, '2021-10-20 17:05:51.382', '2021-10-20 17:09:53.024'); -INSERT INTO `ACT_HI_VARINST` VALUES ('ec70281f-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', 'ec70010e-3184-11ec-9f40-f20b812c0662', 'startUserName', 'string', 0, NULL, NULL, NULL, 'userD', NULL, '2021-10-20 17:05:51.386', '2021-10-20 17:05:51.386'); -INSERT INTO `ACT_HI_VARINST` VALUES ('ec702821-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', 'ec70010e-3184-11ec-9f40-f20b812c0662', 'initiator', 'string', 0, NULL, NULL, NULL, 'userD', NULL, '2021-10-20 17:05:51.386', '2021-10-20 17:05:51.386'); -INSERT INTO `ACT_HI_VARINST` VALUES ('ec702823-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', 'ec70010e-3184-11ec-9f40-f20b812c0662', 'deptPostLeader', 'string', 0, NULL, NULL, NULL, '1440964519391137792', NULL, '2021-10-20 17:05:51.386', '2021-10-20 17:05:51.386'); -INSERT INTO `ACT_HI_VARINST` VALUES ('ec702825-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', 'ec70010e-3184-11ec-9f40-f20b812c0662', 'operationType', 'string', 1, NULL, NULL, NULL, 'agree', NULL, '2021-10-20 17:05:51.386', '2021-10-20 17:06:05.906'); -INSERT INTO `ACT_HI_VARINST` VALUES ('f5191b44-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'f518f42f-3184-11ec-9f40-f20b812c0662', 'f518f433-3184-11ec-9f40-f20b812c0662', 'startUserName', 'string', 0, NULL, NULL, NULL, 'userD', NULL, '2021-10-20 17:06:05.915', '2021-10-20 17:06:05.915'); -INSERT INTO `ACT_HI_VARINST` VALUES ('f5191b46-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'f518f42f-3184-11ec-9f40-f20b812c0662', 'f518f433-3184-11ec-9f40-f20b812c0662', 'initiator', 'string', 0, NULL, NULL, NULL, 'userD', NULL, '2021-10-20 17:06:05.915', '2021-10-20 17:06:05.915'); -INSERT INTO `ACT_HI_VARINST` VALUES ('f5191b48-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'f518f42f-3184-11ec-9f40-f20b812c0662', 'f518f433-3184-11ec-9f40-f20b812c0662', 'operationType', 'string', 1, NULL, NULL, NULL, 'agree', NULL, '2021-10-20 17:06:05.915', '2021-10-20 17:06:20.897'); -INSERT INTO `ACT_HI_VARINST` VALUES ('f5191b4a-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'f518f42f-3184-11ec-9f40-f20b812c0662', 'f518f433-3184-11ec-9f40-f20b812c0662', 'deptPostLeader', 'string', 0, NULL, NULL, NULL, '1440964519391137792', NULL, '2021-10-20 17:06:05.915', '2021-10-20 17:06:05.915'); -INSERT INTO `ACT_HI_VARINST` VALUES ('f519907e-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', 'f518f431-3184-11ec-9f40-f20b812c0662', 'startUserName', 'string', 0, NULL, NULL, NULL, 'userD', NULL, '2021-10-20 17:06:05.918', '2021-10-20 17:06:05.918'); -INSERT INTO `ACT_HI_VARINST` VALUES ('f5199080-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', 'f518f431-3184-11ec-9f40-f20b812c0662', 'initiator', 'string', 0, NULL, NULL, NULL, 'userD', NULL, '2021-10-20 17:06:05.918', '2021-10-20 17:06:05.918'); -INSERT INTO `ACT_HI_VARINST` VALUES ('f5199082-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', 'f518f431-3184-11ec-9f40-f20b812c0662', 'operationType', 'string', 1, NULL, NULL, NULL, 'agree', NULL, '2021-10-20 17:06:05.918', '2021-10-20 17:06:27.182'); -INSERT INTO `ACT_HI_VARINST` VALUES ('f5199084-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6ca59c-3184-11ec-9f40-f20b812c0662', 'f518f431-3184-11ec-9f40-f20b812c0662', 'deptPostLeader', 'string', 0, NULL, NULL, NULL, '1440964519391137792', NULL, '2021-10-20 17:06:05.918', '2021-10-20 17:06:05.918'); -COMMIT; - --- ---------------------------- --- Table structure for ACT_PROCDEF_INFO --- ---------------------------- -DROP TABLE IF EXISTS `ACT_PROCDEF_INFO`; -CREATE TABLE `ACT_PROCDEF_INFO` ( - `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL, - `PROC_DEF_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL, - `REV_` int DEFAULT NULL, - `INFO_JSON_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - PRIMARY KEY (`ID_`), - UNIQUE KEY `ACT_UNIQ_INFO_PROCDEF` (`PROC_DEF_ID_`), - KEY `ACT_IDX_INFO_PROCDEF` (`PROC_DEF_ID_`), - KEY `ACT_FK_INFO_JSON_BA` (`INFO_JSON_ID_`), - CONSTRAINT `ACT_FK_INFO_JSON_BA` FOREIGN KEY (`INFO_JSON_ID_`) REFERENCES `ACT_GE_BYTEARRAY` (`ID_`), - CONSTRAINT `ACT_FK_INFO_PROCDEF` FOREIGN KEY (`PROC_DEF_ID_`) REFERENCES `ACT_RE_PROCDEF` (`ID_`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_bin; - --- ---------------------------- --- Table structure for ACT_RE_DEPLOYMENT --- ---------------------------- -DROP TABLE IF EXISTS `ACT_RE_DEPLOYMENT`; -CREATE TABLE `ACT_RE_DEPLOYMENT` ( - `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL, - `NAME_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `CATEGORY_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `KEY_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `TENANT_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT '', - `DEPLOY_TIME_` timestamp(3) NULL DEFAULT NULL, - `ENGINE_VERSION_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `VERSION_` int DEFAULT '1', - `PROJECT_RELEASE_VERSION_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - PRIMARY KEY (`ID_`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_bin; - --- ---------------------------- --- Records of ACT_RE_DEPLOYMENT --- ---------------------------- -BEGIN; -INSERT INTO `ACT_RE_DEPLOYMENT` VALUES ('0aab3953-3179-11ec-9438-f20b812c0662', '请假申请', 'HR', 'flowLeave', '', '2021-10-20 15:40:48.144', NULL, 1, NULL); -INSERT INTO `ACT_RE_DEPLOYMENT` VALUES ('1', 'SpringAutoDeployment', NULL, NULL, '', '2021-07-11 14:23:02.241', NULL, 1, NULL); -INSERT INTO `ACT_RE_DEPLOYMENT` VALUES ('1a96e449-5e6f-11ec-9355-5e4c369e54c1', '请假申请', 'HR', 'flowLeave', '', '2021-12-16 20:53:02.212', NULL, 1, NULL); -INSERT INTO `ACT_RE_DEPLOYMENT` VALUES ('357dbb16-3180-11ec-9a8f-f20b812c0662', 'SpringAutoDeployment', NULL, NULL, '', '2021-10-20 16:32:06.463', NULL, 5, NULL); -INSERT INTO `ACT_RE_DEPLOYMENT` VALUES ('3895c933-3183-11ec-baea-f20b812c0662', 'SpringAutoDeployment', NULL, NULL, '', '2021-10-20 16:53:40.145', NULL, 9, NULL); -INSERT INTO `ACT_RE_DEPLOYMENT` VALUES ('39a52dbc-5e6f-11ec-9355-5e4c369e54c1', '报销申请', 'CW', 'flowSubmit', '', '2021-12-16 20:53:54.314', NULL, 1, NULL); -INSERT INTO `ACT_RE_DEPLOYMENT` VALUES ('3a623096-3179-11ec-9438-f20b812c0662', '请假申请', 'HR', 'flowLeave', '', '2021-10-20 15:42:08.196', NULL, 1, NULL); -INSERT INTO `ACT_RE_DEPLOYMENT` VALUES ('3ee7468e-317d-11ec-9438-f20b812c0662', '请假申请', 'HR', 'flowLeave', '', '2021-10-20 16:10:53.766', NULL, 1, NULL); -INSERT INTO `ACT_RE_DEPLOYMENT` VALUES ('4127d3cf-5e70-11ec-9355-5e4c369e54c1', '合同审批', 'XM', 'flowContract', '', '2021-12-16 21:01:16.412', NULL, 1, NULL); -INSERT INTO `ACT_RE_DEPLOYMENT` VALUES ('5219c549-3183-11ec-ad5a-f20b812c0662', 'SpringAutoDeployment', NULL, NULL, '', '2021-10-20 16:54:22.953', NULL, 10, NULL); -INSERT INTO `ACT_RE_DEPLOYMENT` VALUES ('54994e3e-3184-11ec-9f40-f20b812c0662', 'SpringAutoDeployment', NULL, NULL, '', '2021-10-20 17:01:36.640', NULL, 11, NULL); -INSERT INTO `ACT_RE_DEPLOYMENT` VALUES ('58b617ce-3186-11ec-b18e-f20b812c0662', 'SpringAutoDeployment', NULL, NULL, '', '2021-10-20 17:16:02.532', NULL, 12, NULL); -INSERT INTO `ACT_RE_DEPLOYMENT` VALUES ('661b337d-3186-11ec-bf2d-f20b812c0662', 'SpringAutoDeployment', NULL, NULL, '', '2021-10-20 17:16:25.006', NULL, 13, NULL); -INSERT INTO `ACT_RE_DEPLOYMENT` VALUES ('778892c2-5e70-11ec-9355-5e4c369e54c1', '多实例加签', 'HR', 'flowConsign', '', '2021-12-16 21:02:47.642', NULL, 1, NULL); -INSERT INTO `ACT_RE_DEPLOYMENT` VALUES ('79a037cf-3184-11ec-9f40-f20b812c0662', '请假申请', 'HR', 'flowLeave', '', '2021-10-20 17:02:38.762', NULL, 1, NULL); -INSERT INTO `ACT_RE_DEPLOYMENT` VALUES ('7b628142-3184-11ec-9f40-f20b812c0662', '报销申请', 'CW', 'flowSubmit', '', '2021-10-20 17:02:41.714', NULL, 1, NULL); -INSERT INTO `ACT_RE_DEPLOYMENT` VALUES ('7cdc7715-3184-11ec-9f40-f20b812c0662', '合同审批', 'XM', 'flowContract', '', '2021-10-20 17:02:44.191', NULL, 1, NULL); -INSERT INTO `ACT_RE_DEPLOYMENT` VALUES ('7ce6126a-69e6-11ec-bb85-0235bf949cb9', '请假申请', 'HR', 'flowLeave', '', '2021-12-31 11:05:20.049', NULL, 1, NULL); -INSERT INTO `ACT_RE_DEPLOYMENT` VALUES ('86abad6b-3182-11ec-a0b7-f20b812c0662', 'SpringAutoDeployment', NULL, NULL, '', '2021-10-20 16:48:41.651', NULL, 7, NULL); -INSERT INTO `ACT_RE_DEPLOYMENT` VALUES ('87e159ed-69e6-11ec-bb85-0235bf949cb9', '报销申请', 'CW', 'flowSubmit', '', '2021-12-31 11:05:38.473', NULL, 1, NULL); -INSERT INTO `ACT_RE_DEPLOYMENT` VALUES ('8ab49015-5e70-11ec-9355-5e4c369e54c1', '转办流程', 'HR', 'flowTranslate', '', '2021-12-16 21:03:19.808', NULL, 1, NULL); -INSERT INTO `ACT_RE_DEPLOYMENT` VALUES ('8e3e3ce9-3179-11ec-9438-f20b812c0662', '请假申请', 'HR', 'flowLeave', '', '2021-10-20 15:44:28.889', NULL, 1, NULL); -INSERT INTO `ACT_RE_DEPLOYMENT` VALUES ('916d0be0-69e6-11ec-bb85-0235bf949cb9', '合同审批', 'XM', 'flowContract', '', '2021-12-31 11:05:54.488', NULL, 1, NULL); -INSERT INTO `ACT_RE_DEPLOYMENT` VALUES ('95ae050a-317f-11ec-8139-f20b812c0662', 'SpringAutoDeployment', NULL, NULL, '', '2021-10-20 16:27:38.345', NULL, 4, NULL); -INSERT INTO `ACT_RE_DEPLOYMENT` VALUES ('97e6169e-3186-11ec-bf2d-f20b812c0662', '请假申请', 'HR', 'flowLeave', '', '2021-10-20 17:17:48.538', NULL, 1, NULL); -INSERT INTO `ACT_RE_DEPLOYMENT` VALUES ('98ea5033-69e6-11ec-bb85-0235bf949cb9', '多实例加签', 'HR', 'flowConsign', '', '2021-12-31 11:06:07.052', NULL, 1, NULL); -INSERT INTO `ACT_RE_DEPLOYMENT` VALUES ('9dc01ef5-5e6e-11ec-9355-5e4c369e54c1', 'SpringAutoDeployment', NULL, NULL, '', '2021-12-16 20:49:32.759', NULL, 14, NULL); -INSERT INTO `ACT_RE_DEPLOYMENT` VALUES ('a0864016-69e6-11ec-bb85-0235bf949cb9', '转办流程', 'HR', 'flowTranslate', '', '2021-12-31 11:06:19.819', NULL, 1, NULL); -INSERT INTO `ACT_RE_DEPLOYMENT` VALUES ('a1c53324-69e7-11ec-b9c4-0235bf949cb9', 'SpringAutoDeployment', NULL, NULL, '', '2021-12-31 11:13:31.404', NULL, 16, NULL); -INSERT INTO `ACT_RE_DEPLOYMENT` VALUES ('ad3d6858-3175-11ec-9438-f20b812c0662', '请假申请', 'HR', 'flowLeave', '', '2021-10-20 15:16:42.906', NULL, 1, NULL); -INSERT INTO `ACT_RE_DEPLOYMENT` VALUES ('ae82b99b-3175-11ec-9438-f20b812c0662', '报销申请', 'CW', 'flowSubmit', '', '2021-10-20 15:16:45.038', NULL, 1, NULL); -INSERT INTO `ACT_RE_DEPLOYMENT` VALUES ('af9bf1ce-3175-11ec-9438-f20b812c0662', '合同审批', 'XM', 'flowContract', '', '2021-10-20 15:16:46.881', NULL, 1, NULL); -INSERT INTO `ACT_RE_DEPLOYMENT` VALUES ('b132e581-3175-11ec-9438-f20b812c0662', '多实例加签', 'HR', 'flowConsign', '', '2021-10-20 15:16:49.548', NULL, 1, NULL); -INSERT INTO `ACT_RE_DEPLOYMENT` VALUES ('b28a3824-3175-11ec-9438-f20b812c0662', '转办流程', 'HR', 'flowTranslate', '', '2021-10-20 15:16:51.798', NULL, 1, NULL); -INSERT INTO `ACT_RE_DEPLOYMENT` VALUES ('b5e8fcda-3181-11ec-bd11-f20b812c0662', 'SpringAutoDeployment', NULL, NULL, '', '2021-10-20 16:42:51.411', NULL, 6, NULL); -INSERT INTO `ACT_RE_DEPLOYMENT` VALUES ('b747d44f-3182-11ec-a7fa-f20b812c0662', 'SpringAutoDeployment', NULL, NULL, '', '2021-10-20 16:50:03.207', NULL, 8, NULL); -INSERT INTO `ACT_RE_DEPLOYMENT` VALUES ('c48f8957-316d-11ec-9438-f20b812c0662', 'SpringAutoDeployment', NULL, NULL, '', '2021-10-20 14:20:06.057', NULL, 3, NULL); -INSERT INTO `ACT_RE_DEPLOYMENT` VALUES ('c61ae019-69e5-11ec-bb85-0235bf949cb9', 'SpringAutoDeployment', NULL, NULL, '', '2021-12-31 11:00:13.367', NULL, 15, NULL); -INSERT INTO `ACT_RE_DEPLOYMENT` VALUES ('f0f03b73-316b-11ec-a79f-f20b812c0662', 'SpringAutoDeployment', NULL, NULL, '', '2021-10-20 14:07:01.517', NULL, 2, NULL); -COMMIT; - --- ---------------------------- --- Table structure for ACT_RE_MODEL --- ---------------------------- -DROP TABLE IF EXISTS `ACT_RE_MODEL`; -CREATE TABLE `ACT_RE_MODEL` ( - `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL, - `REV_` int DEFAULT NULL, - `NAME_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `KEY_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `CATEGORY_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `CREATE_TIME_` timestamp(3) NULL DEFAULT NULL, - `LAST_UPDATE_TIME_` timestamp(3) NULL DEFAULT NULL, - `VERSION_` int DEFAULT NULL, - `META_INFO_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `DEPLOYMENT_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `EDITOR_SOURCE_VALUE_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `EDITOR_SOURCE_EXTRA_VALUE_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `TENANT_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT '', - PRIMARY KEY (`ID_`), - KEY `ACT_FK_MODEL_SOURCE` (`EDITOR_SOURCE_VALUE_ID_`), - KEY `ACT_FK_MODEL_SOURCE_EXTRA` (`EDITOR_SOURCE_EXTRA_VALUE_ID_`), - KEY `ACT_FK_MODEL_DEPLOYMENT` (`DEPLOYMENT_ID_`), - CONSTRAINT `ACT_FK_MODEL_DEPLOYMENT` FOREIGN KEY (`DEPLOYMENT_ID_`) REFERENCES `ACT_RE_DEPLOYMENT` (`ID_`), - CONSTRAINT `ACT_FK_MODEL_SOURCE` FOREIGN KEY (`EDITOR_SOURCE_VALUE_ID_`) REFERENCES `ACT_GE_BYTEARRAY` (`ID_`), - CONSTRAINT `ACT_FK_MODEL_SOURCE_EXTRA` FOREIGN KEY (`EDITOR_SOURCE_EXTRA_VALUE_ID_`) REFERENCES `ACT_GE_BYTEARRAY` (`ID_`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_bin; - --- ---------------------------- --- Table structure for ACT_RE_PROCDEF --- ---------------------------- -DROP TABLE IF EXISTS `ACT_RE_PROCDEF`; -CREATE TABLE `ACT_RE_PROCDEF` ( - `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL, - `REV_` int DEFAULT NULL, - `CATEGORY_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `NAME_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `KEY_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL, - `VERSION_` int NOT NULL, - `DEPLOYMENT_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `RESOURCE_NAME_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `DGRM_RESOURCE_NAME_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `DESCRIPTION_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `HAS_START_FORM_KEY_` tinyint DEFAULT NULL, - `HAS_GRAPHICAL_NOTATION_` tinyint DEFAULT NULL, - `SUSPENSION_STATE_` int DEFAULT NULL, - `TENANT_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT '', - `ENGINE_VERSION_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `APP_VERSION_` int DEFAULT NULL, - PRIMARY KEY (`ID_`), - UNIQUE KEY `ACT_UNIQ_PROCDEF` (`KEY_`,`VERSION_`,`TENANT_ID_`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_bin; - --- ---------------------------- --- Records of ACT_RE_PROCDEF --- ---------------------------- -BEGIN; -INSERT INTO `ACT_RE_PROCDEF` VALUES ('flowConsign:1:b1375253-3175-11ec-9438-f20b812c0662', 1, 'http://activiti.org/bpmn', '多实例加签', 'flowConsign', 1, 'b132e581-3175-11ec-9438-f20b812c0662', 'flowConsign.bpmn', NULL, NULL, 0, 1, 1, '', NULL, NULL); -INSERT INTO `ACT_RE_PROCDEF` VALUES ('flowConsign:2:778c3c44-5e70-11ec-9355-5e4c369e54c1', 1, 'http://activiti.org/bpmn', '多实例加签', 'flowConsign', 2, '778892c2-5e70-11ec-9355-5e4c369e54c1', 'flowConsign.bpmn', NULL, NULL, 0, 1, 1, '', NULL, NULL); -INSERT INTO `ACT_RE_PROCDEF` VALUES ('flowConsign:3:98ed0f55-69e6-11ec-bb85-0235bf949cb9', 1, 'http://activiti.org/bpmn', '多实例加签', 'flowConsign', 3, '98ea5033-69e6-11ec-bb85-0235bf949cb9', 'flowConsign.bpmn', NULL, NULL, 0, 1, 1, '', NULL, NULL); -INSERT INTO `ACT_RE_PROCDEF` VALUES ('flowContract:1:afa45640-3175-11ec-9438-f20b812c0662', 1, 'http://activiti.org/bpmn', '合同审批', 'flowContract', 1, 'af9bf1ce-3175-11ec-9438-f20b812c0662', 'flowContract.bpmn', NULL, NULL, 0, 1, 1, '', NULL, NULL); -INSERT INTO `ACT_RE_PROCDEF` VALUES ('flowContract:2:7ce26a87-3184-11ec-9f40-f20b812c0662', 1, 'http://activiti.org/bpmn', '合同审批', 'flowContract', 2, '7cdc7715-3184-11ec-9f40-f20b812c0662', 'flowContract.bpmn', NULL, NULL, 0, 1, 1, '', NULL, NULL); -INSERT INTO `ACT_RE_PROCDEF` VALUES ('flowContract:3:412c67b1-5e70-11ec-9355-5e4c369e54c1', 1, 'http://activiti.org/bpmn', '合同审批', 'flowContract', 3, '4127d3cf-5e70-11ec-9355-5e4c369e54c1', 'flowContract.bpmn', NULL, NULL, 0, 1, 1, '', NULL, NULL); -INSERT INTO `ACT_RE_PROCDEF` VALUES ('flowContract:4:9170b562-69e6-11ec-bb85-0235bf949cb9', 1, 'http://activiti.org/bpmn', '合同审批', 'flowContract', 4, '916d0be0-69e6-11ec-bb85-0235bf949cb9', 'flowContract.bpmn', NULL, NULL, 0, 1, 1, '', NULL, NULL); -INSERT INTO `ACT_RE_PROCDEF` VALUES ('flowLeave:1:ad52c51a-3175-11ec-9438-f20b812c0662', 1, 'http://activiti.org/bpmn', '请假申请', 'flowLeave', 1, 'ad3d6858-3175-11ec-9438-f20b812c0662', 'flowLeave.bpmn', NULL, NULL, 0, 1, 1, '', NULL, NULL); -INSERT INTO `ACT_RE_PROCDEF` VALUES ('flowLeave:2:0aaff445-3179-11ec-9438-f20b812c0662', 1, 'http://activiti.org/bpmn', '请假申请', 'flowLeave', 2, '0aab3953-3179-11ec-9438-f20b812c0662', 'flowLeave.bpmn', NULL, NULL, 0, 1, 1, '', NULL, NULL); -INSERT INTO `ACT_RE_PROCDEF` VALUES ('flowLeave:3:3a65da18-3179-11ec-9438-f20b812c0662', 1, 'http://activiti.org/bpmn', '请假申请', 'flowLeave', 3, '3a623096-3179-11ec-9438-f20b812c0662', 'flowLeave.bpmn', NULL, NULL, 0, 1, 1, '', NULL, NULL); -INSERT INTO `ACT_RE_PROCDEF` VALUES ('flowLeave:4:8e42a9bb-3179-11ec-9438-f20b812c0662', 1, 'http://activiti.org/bpmn', '请假申请', 'flowLeave', 4, '8e3e3ce9-3179-11ec-9438-f20b812c0662', 'flowLeave.bpmn', NULL, NULL, 0, 1, 1, '', NULL, NULL); -INSERT INTO `ACT_RE_PROCDEF` VALUES ('flowLeave:5:3eea05b0-317d-11ec-9438-f20b812c0662', 1, 'http://activiti.org/bpmn', '请假申请', 'flowLeave', 5, '3ee7468e-317d-11ec-9438-f20b812c0662', 'flowLeave.bpmn', NULL, NULL, 0, 1, 1, '', NULL, NULL); -INSERT INTO `ACT_RE_PROCDEF` VALUES ('flowLeave:6:79b100b1-3184-11ec-9f40-f20b812c0662', 1, 'http://activiti.org/bpmn', '请假申请', 'flowLeave', 6, '79a037cf-3184-11ec-9f40-f20b812c0662', 'flowLeave.bpmn', NULL, NULL, 0, 1, 1, '', NULL, NULL); -INSERT INTO `ACT_RE_PROCDEF` VALUES ('flowLeave:7:98337350-3186-11ec-bf2d-f20b812c0662', 1, 'http://activiti.org/bpmn', '请假申请', 'flowLeave', 7, '97e6169e-3186-11ec-bf2d-f20b812c0662', 'flowLeave.bpmn', NULL, NULL, 0, 1, 1, '', NULL, NULL); -INSERT INTO `ACT_RE_PROCDEF` VALUES ('flowLeave:8:1a9b02fb-5e6f-11ec-9355-5e4c369e54c1', 1, 'http://activiti.org/bpmn', '请假申请', 'flowLeave', 8, '1a96e449-5e6f-11ec-9355-5e4c369e54c1', 'flowLeave.bpmn', NULL, NULL, 0, 1, 1, '', NULL, NULL); -INSERT INTO `ACT_RE_PROCDEF` VALUES ('flowLeave:9:7d23427c-69e6-11ec-bb85-0235bf949cb9', 1, 'http://activiti.org/bpmn', '请假申请', 'flowLeave', 9, '7ce6126a-69e6-11ec-bb85-0235bf949cb9', 'flowLeave.bpmn', NULL, NULL, 0, 1, 1, '', NULL, NULL); -INSERT INTO `ACT_RE_PROCDEF` VALUES ('flowSubmit:1:ae87c2ad-3175-11ec-9438-f20b812c0662', 1, 'http://activiti.org/bpmn', '报销申请', 'flowSubmit', 1, 'ae82b99b-3175-11ec-9438-f20b812c0662', 'flowSubmit.bpmn', NULL, NULL, 0, 1, 1, '', NULL, NULL); -INSERT INTO `ACT_RE_PROCDEF` VALUES ('flowSubmit:2:7b6651d4-3184-11ec-9f40-f20b812c0662', 1, 'http://activiti.org/bpmn', '报销申请', 'flowSubmit', 2, '7b628142-3184-11ec-9f40-f20b812c0662', 'flowSubmit.bpmn', NULL, NULL, 0, 1, 1, '', NULL, NULL); -INSERT INTO `ACT_RE_PROCDEF` VALUES ('flowSubmit:3:39b2742e-5e6f-11ec-9355-5e4c369e54c1', 1, 'http://activiti.org/bpmn', '报销申请', 'flowSubmit', 3, '39a52dbc-5e6f-11ec-9355-5e4c369e54c1', 'flowSubmit.bpmn', NULL, NULL, 0, 1, 1, '', NULL, NULL); -INSERT INTO `ACT_RE_PROCDEF` VALUES ('flowSubmit:4:87e59faf-69e6-11ec-bb85-0235bf949cb9', 1, 'http://activiti.org/bpmn', '报销申请', 'flowSubmit', 4, '87e159ed-69e6-11ec-bb85-0235bf949cb9', 'flowSubmit.bpmn', NULL, NULL, 0, 1, 1, '', NULL, NULL); -INSERT INTO `ACT_RE_PROCDEF` VALUES ('flowTranslate:1:b28cd036-3175-11ec-9438-f20b812c0662', 1, 'http://activiti.org/bpmn', '转办流程', 'flowTranslate', 1, 'b28a3824-3175-11ec-9438-f20b812c0662', 'flowTranslate.bpmn', NULL, NULL, 0, 1, 1, '', NULL, NULL); -INSERT INTO `ACT_RE_PROCDEF` VALUES ('flowTranslate:2:8ab7c467-5e70-11ec-9355-5e4c369e54c1', 1, 'http://activiti.org/bpmn', '转办流程', 'flowTranslate', 2, '8ab49015-5e70-11ec-9355-5e4c369e54c1', 'flowTranslate.bpmn', NULL, NULL, 0, 1, 1, '', NULL, NULL); -INSERT INTO `ACT_RE_PROCDEF` VALUES ('flowTranslate:3:a0888a08-69e6-11ec-bb85-0235bf949cb9', 1, 'http://activiti.org/bpmn', '转办流程', 'flowTranslate', 3, 'a0864016-69e6-11ec-bb85-0235bf949cb9', 'flowTranslate.bpmn', NULL, NULL, 0, 1, 1, '', NULL, NULL); -COMMIT; - --- ---------------------------- --- Table structure for ACT_RU_DEADLETTER_JOB --- ---------------------------- -DROP TABLE IF EXISTS `ACT_RU_DEADLETTER_JOB`; -CREATE TABLE `ACT_RU_DEADLETTER_JOB` ( - `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL, - `REV_` int DEFAULT NULL, - `TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL, - `EXCLUSIVE_` tinyint(1) DEFAULT NULL, - `EXECUTION_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `PROCESS_INSTANCE_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `PROC_DEF_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `EXCEPTION_STACK_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `EXCEPTION_MSG_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `DUEDATE_` timestamp(3) NULL DEFAULT NULL, - `REPEAT_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `HANDLER_TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `HANDLER_CFG_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `TENANT_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT '', - PRIMARY KEY (`ID_`), - KEY `ACT_FK_DEADLETTER_JOB_EXECUTION` (`EXECUTION_ID_`), - KEY `ACT_FK_DEADLETTER_JOB_PROCESS_INSTANCE` (`PROCESS_INSTANCE_ID_`), - KEY `ACT_FK_DEADLETTER_JOB_PROC_DEF` (`PROC_DEF_ID_`), - KEY `ACT_FK_DEADLETTER_JOB_EXCEPTION` (`EXCEPTION_STACK_ID_`), - CONSTRAINT `ACT_FK_DEADLETTER_JOB_EXCEPTION` FOREIGN KEY (`EXCEPTION_STACK_ID_`) REFERENCES `ACT_GE_BYTEARRAY` (`ID_`), - CONSTRAINT `ACT_FK_DEADLETTER_JOB_EXECUTION` FOREIGN KEY (`EXECUTION_ID_`) REFERENCES `ACT_RU_EXECUTION` (`ID_`), - CONSTRAINT `ACT_FK_DEADLETTER_JOB_PROC_DEF` FOREIGN KEY (`PROC_DEF_ID_`) REFERENCES `ACT_RE_PROCDEF` (`ID_`), - CONSTRAINT `ACT_FK_DEADLETTER_JOB_PROCESS_INSTANCE` FOREIGN KEY (`PROCESS_INSTANCE_ID_`) REFERENCES `ACT_RU_EXECUTION` (`ID_`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_bin; - --- ---------------------------- --- Table structure for ACT_RU_EVENT_SUBSCR --- ---------------------------- -DROP TABLE IF EXISTS `ACT_RU_EVENT_SUBSCR`; -CREATE TABLE `ACT_RU_EVENT_SUBSCR` ( - `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL, - `REV_` int DEFAULT NULL, - `EVENT_TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL, - `EVENT_NAME_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `EXECUTION_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `PROC_INST_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `ACTIVITY_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `CONFIGURATION_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `CREATED_` timestamp(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3), - `PROC_DEF_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `TENANT_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT '', - PRIMARY KEY (`ID_`), - KEY `ACT_IDX_EVENT_SUBSCR_CONFIG_` (`CONFIGURATION_`), - KEY `ACT_FK_EVENT_EXEC` (`EXECUTION_ID_`), - CONSTRAINT `ACT_FK_EVENT_EXEC` FOREIGN KEY (`EXECUTION_ID_`) REFERENCES `ACT_RU_EXECUTION` (`ID_`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_bin; - --- ---------------------------- --- Table structure for ACT_RU_EXECUTION --- ---------------------------- -DROP TABLE IF EXISTS `ACT_RU_EXECUTION`; -CREATE TABLE `ACT_RU_EXECUTION` ( - `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL, - `REV_` int DEFAULT NULL, - `PROC_INST_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `BUSINESS_KEY_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `PARENT_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `PROC_DEF_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `SUPER_EXEC_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `ROOT_PROC_INST_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `ACT_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `IS_ACTIVE_` tinyint DEFAULT NULL, - `IS_CONCURRENT_` tinyint DEFAULT NULL, - `IS_SCOPE_` tinyint DEFAULT NULL, - `IS_EVENT_SCOPE_` tinyint DEFAULT NULL, - `IS_MI_ROOT_` tinyint DEFAULT NULL, - `SUSPENSION_STATE_` int DEFAULT NULL, - `CACHED_ENT_STATE_` int DEFAULT NULL, - `TENANT_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT '', - `NAME_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `START_TIME_` datetime(3) DEFAULT NULL, - `START_USER_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `LOCK_TIME_` timestamp(3) NULL DEFAULT NULL, - `IS_COUNT_ENABLED_` tinyint DEFAULT NULL, - `EVT_SUBSCR_COUNT_` int DEFAULT NULL, - `TASK_COUNT_` int DEFAULT NULL, - `JOB_COUNT_` int DEFAULT NULL, - `TIMER_JOB_COUNT_` int DEFAULT NULL, - `SUSP_JOB_COUNT_` int DEFAULT NULL, - `DEADLETTER_JOB_COUNT_` int DEFAULT NULL, - `VAR_COUNT_` int DEFAULT NULL, - `ID_LINK_COUNT_` int DEFAULT NULL, - `APP_VERSION_` int DEFAULT NULL, - PRIMARY KEY (`ID_`), - KEY `ACT_IDX_EXEC_BUSKEY` (`BUSINESS_KEY_`), - KEY `ACT_IDC_EXEC_ROOT` (`ROOT_PROC_INST_ID_`), - KEY `ACT_FK_EXE_PROCINST` (`PROC_INST_ID_`), - KEY `ACT_FK_EXE_PARENT` (`PARENT_ID_`), - KEY `ACT_FK_EXE_SUPER` (`SUPER_EXEC_`), - KEY `ACT_FK_EXE_PROCDEF` (`PROC_DEF_ID_`), - CONSTRAINT `ACT_FK_EXE_PARENT` FOREIGN KEY (`PARENT_ID_`) REFERENCES `ACT_RU_EXECUTION` (`ID_`) ON DELETE CASCADE, - CONSTRAINT `ACT_FK_EXE_PROCDEF` FOREIGN KEY (`PROC_DEF_ID_`) REFERENCES `ACT_RE_PROCDEF` (`ID_`), - CONSTRAINT `ACT_FK_EXE_PROCINST` FOREIGN KEY (`PROC_INST_ID_`) REFERENCES `ACT_RU_EXECUTION` (`ID_`) ON DELETE CASCADE ON UPDATE CASCADE, - CONSTRAINT `ACT_FK_EXE_SUPER` FOREIGN KEY (`SUPER_EXEC_`) REFERENCES `ACT_RU_EXECUTION` (`ID_`) ON DELETE CASCADE -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_bin; - --- ---------------------------- --- Records of ACT_RU_EXECUTION --- ---------------------------- -BEGIN; -INSERT INTO `ACT_RU_EXECUTION` VALUES ('8de8b46c-3182-11ec-a0b7-f20b812c0662', 1, '8de8b46c-3182-11ec-a0b7-f20b812c0662', '1450745828686696448', NULL, 'flowLeave:4:8e42a9bb-3179-11ec-9438-f20b812c0662', NULL, '8de8b46c-3182-11ec-a0b7-f20b812c0662', NULL, 1, 0, 1, 0, 0, 1, NULL, '', NULL, '2021-10-20 16:48:53.798', 'userD', NULL, 0, 0, 0, 0, 0, 0, 0, 0, 0, NULL); -INSERT INTO `ACT_RU_EXECUTION` VALUES ('8de976c4-3182-11ec-a0b7-f20b812c0662', 2, '8de8b46c-3182-11ec-a0b7-f20b812c0662', NULL, '8de8b46c-3182-11ec-a0b7-f20b812c0662', 'flowLeave:4:8e42a9bb-3179-11ec-9438-f20b812c0662', NULL, '8de8b46c-3182-11ec-a0b7-f20b812c0662', 'Activity_11jr0px', 1, 0, 0, 0, 0, 1, NULL, '', NULL, '2021-10-20 16:48:53.804', NULL, NULL, 0, 0, 0, 0, 0, 0, 0, 0, 0, NULL); -INSERT INTO `ACT_RU_EXECUTION` VALUES ('a396f281-3186-11ec-bf2d-f20b812c0662', 1, 'a396f281-3186-11ec-bf2d-f20b812c0662', '1450753187064582144', NULL, 'flowLeave:7:98337350-3186-11ec-bf2d-f20b812c0662', NULL, 'a396f281-3186-11ec-bf2d-f20b812c0662', NULL, 1, 0, 1, 0, 0, 1, NULL, '', NULL, '2021-10-20 17:18:08.160', 'userD', NULL, 0, 0, 0, 0, 0, 0, 0, 0, 0, NULL); -INSERT INTO `ACT_RU_EXECUTION` VALUES ('a3978ec9-3186-11ec-bf2d-f20b812c0662', 2, 'a396f281-3186-11ec-bf2d-f20b812c0662', NULL, 'a396f281-3186-11ec-bf2d-f20b812c0662', 'flowLeave:7:98337350-3186-11ec-bf2d-f20b812c0662', NULL, 'a396f281-3186-11ec-bf2d-f20b812c0662', 'Activity_11jr0px', 1, 0, 0, 0, 0, 1, NULL, '', NULL, '2021-10-20 17:18:08.164', NULL, NULL, 0, 0, 0, 0, 0, 0, 0, 0, 0, NULL); -INSERT INTO `ACT_RU_EXECUTION` VALUES ('d6423389-69e6-11ec-bb85-0235bf949cb9', 1, 'd6423389-69e6-11ec-bb85-0235bf949cb9', '1476751923557175296', NULL, 'flowLeave:9:7d23427c-69e6-11ec-bb85-0235bf949cb9', NULL, 'd6423389-69e6-11ec-bb85-0235bf949cb9', NULL, 1, 0, 1, 0, 0, 1, NULL, '', NULL, '2021-12-31 11:07:49.970', 'admin', NULL, 0, 0, 0, 0, 0, 0, 0, 0, 0, NULL); -INSERT INTO `ACT_RU_EXECUTION` VALUES ('d642f6e1-69e6-11ec-bb85-0235bf949cb9', 2, 'd6423389-69e6-11ec-bb85-0235bf949cb9', NULL, 'd6423389-69e6-11ec-bb85-0235bf949cb9', 'flowLeave:9:7d23427c-69e6-11ec-bb85-0235bf949cb9', NULL, 'd6423389-69e6-11ec-bb85-0235bf949cb9', 'Activity_11jr0px', 1, 0, 0, 0, 0, 1, NULL, '', NULL, '2021-12-31 11:07:49.974', NULL, NULL, 0, 0, 0, 0, 0, 0, 0, 0, 0, NULL); -INSERT INTO `ACT_RU_EXECUTION` VALUES ('dc101a4d-69e6-11ec-bb85-0235bf949cb9', 1, 'dc101a4d-69e6-11ec-bb85-0235bf949cb9', '1476751964434862080', NULL, 'flowSubmit:4:87e59faf-69e6-11ec-bb85-0235bf949cb9', NULL, 'dc101a4d-69e6-11ec-bb85-0235bf949cb9', NULL, 1, 0, 1, 0, 0, 1, NULL, '', NULL, '2021-12-31 11:07:59.708', 'admin', NULL, 0, 0, 0, 0, 0, 0, 0, 0, 0, NULL); -INSERT INTO `ACT_RU_EXECUTION` VALUES ('dc101a55-69e6-11ec-bb85-0235bf949cb9', 2, 'dc101a4d-69e6-11ec-bb85-0235bf949cb9', NULL, 'dc101a4d-69e6-11ec-bb85-0235bf949cb9', 'flowSubmit:4:87e59faf-69e6-11ec-bb85-0235bf949cb9', NULL, 'dc101a4d-69e6-11ec-bb85-0235bf949cb9', 'Activity_04scn2o', 1, 0, 0, 0, 0, 1, NULL, '', NULL, '2021-12-31 11:07:59.708', NULL, NULL, 0, 0, 0, 0, 0, 0, 0, 0, 0, NULL); -COMMIT; - --- ---------------------------- --- Table structure for ACT_RU_IDENTITYLINK --- ---------------------------- -DROP TABLE IF EXISTS `ACT_RU_IDENTITYLINK`; -CREATE TABLE `ACT_RU_IDENTITYLINK` ( - `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL, - `REV_` int DEFAULT NULL, - `GROUP_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `USER_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `TASK_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `PROC_INST_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `PROC_DEF_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - PRIMARY KEY (`ID_`), - KEY `ACT_IDX_IDENT_LNK_USER` (`USER_ID_`), - KEY `ACT_IDX_IDENT_LNK_GROUP` (`GROUP_ID_`), - KEY `ACT_IDX_ATHRZ_PROCEDEF` (`PROC_DEF_ID_`), - KEY `ACT_FK_TSKASS_TASK` (`TASK_ID_`), - KEY `ACT_FK_IDL_PROCINST` (`PROC_INST_ID_`), - CONSTRAINT `ACT_FK_ATHRZ_PROCEDEF` FOREIGN KEY (`PROC_DEF_ID_`) REFERENCES `ACT_RE_PROCDEF` (`ID_`), - CONSTRAINT `ACT_FK_IDL_PROCINST` FOREIGN KEY (`PROC_INST_ID_`) REFERENCES `ACT_RU_EXECUTION` (`ID_`), - CONSTRAINT `ACT_FK_TSKASS_TASK` FOREIGN KEY (`TASK_ID_`) REFERENCES `ACT_RU_TASK` (`ID_`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_bin; - --- ---------------------------- --- Records of ACT_RU_IDENTITYLINK --- ---------------------------- -BEGIN; -INSERT INTO `ACT_RU_IDENTITYLINK` VALUES ('8de8b46d-3182-11ec-a0b7-f20b812c0662', 1, NULL, 'starter', 'userD', NULL, '8de8b46c-3182-11ec-a0b7-f20b812c0662', NULL); -INSERT INTO `ACT_RU_IDENTITYLINK` VALUES ('9c16c470-3182-11ec-a0b7-f20b812c0662', 1, '1440964519391137792', 'candidate', NULL, '9c164f37-3182-11ec-a0b7-f20b812c0662', NULL, NULL); -INSERT INTO `ACT_RU_IDENTITYLINK` VALUES ('a396f282-3186-11ec-bf2d-f20b812c0662', 1, NULL, 'starter', 'userD', NULL, 'a396f281-3186-11ec-bf2d-f20b812c0662', NULL); -INSERT INTO `ACT_RU_IDENTITYLINK` VALUES ('a3a26454-3186-11ec-bf2d-f20b812c0662', 1, '1440964519391137792', 'candidate', NULL, 'a3a2162b-3186-11ec-bf2d-f20b812c0662', NULL, NULL); -INSERT INTO `ACT_RU_IDENTITYLINK` VALUES ('d6425a9a-69e6-11ec-bb85-0235bf949cb9', 1, NULL, 'starter', 'admin', NULL, 'd6423389-69e6-11ec-bb85-0235bf949cb9', NULL); -INSERT INTO `ACT_RU_IDENTITYLINK` VALUES ('d64eb6cc-69e6-11ec-bb85-0235bf949cb9', 1, '1440969551792574464', 'candidate', NULL, 'd64e68a3-69e6-11ec-bb85-0235bf949cb9', NULL, NULL); -INSERT INTO `ACT_RU_IDENTITYLINK` VALUES ('dc101a4e-69e6-11ec-bb85-0235bf949cb9', 1, NULL, 'starter', 'admin', NULL, 'dc101a4d-69e6-11ec-bb85-0235bf949cb9', NULL); -INSERT INTO `ACT_RU_IDENTITYLINK` VALUES ('dc154a90-69e6-11ec-bb85-0235bf949cb9', 1, '1440969551792574464', 'candidate', NULL, 'dc14fc67-69e6-11ec-bb85-0235bf949cb9', NULL, NULL); -COMMIT; - --- ---------------------------- --- Table structure for ACT_RU_INTEGRATION --- ---------------------------- -DROP TABLE IF EXISTS `ACT_RU_INTEGRATION`; -CREATE TABLE `ACT_RU_INTEGRATION` ( - `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL, - `EXECUTION_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `PROCESS_INSTANCE_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `PROC_DEF_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `FLOW_NODE_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `CREATED_DATE_` timestamp(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3) ON UPDATE CURRENT_TIMESTAMP(3), - PRIMARY KEY (`ID_`), - KEY `ACT_FK_INT_EXECUTION` (`EXECUTION_ID_`), - KEY `ACT_FK_INT_PROC_INST` (`PROCESS_INSTANCE_ID_`), - KEY `ACT_FK_INT_PROC_DEF` (`PROC_DEF_ID_`), - CONSTRAINT `ACT_FK_INT_EXECUTION` FOREIGN KEY (`EXECUTION_ID_`) REFERENCES `ACT_RU_EXECUTION` (`ID_`) ON DELETE CASCADE, - CONSTRAINT `ACT_FK_INT_PROC_DEF` FOREIGN KEY (`PROC_DEF_ID_`) REFERENCES `ACT_RE_PROCDEF` (`ID_`), - CONSTRAINT `ACT_FK_INT_PROC_INST` FOREIGN KEY (`PROCESS_INSTANCE_ID_`) REFERENCES `ACT_RU_EXECUTION` (`ID_`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_bin; - --- ---------------------------- --- Table structure for ACT_RU_JOB --- ---------------------------- -DROP TABLE IF EXISTS `ACT_RU_JOB`; -CREATE TABLE `ACT_RU_JOB` ( - `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL, - `REV_` int DEFAULT NULL, - `TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL, - `LOCK_EXP_TIME_` timestamp(3) NULL DEFAULT NULL, - `LOCK_OWNER_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `EXCLUSIVE_` tinyint(1) DEFAULT NULL, - `EXECUTION_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `PROCESS_INSTANCE_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `PROC_DEF_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `RETRIES_` int DEFAULT NULL, - `EXCEPTION_STACK_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `EXCEPTION_MSG_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `DUEDATE_` timestamp(3) NULL DEFAULT NULL, - `REPEAT_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `HANDLER_TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `HANDLER_CFG_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `TENANT_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT '', - PRIMARY KEY (`ID_`), - KEY `ACT_FK_JOB_EXECUTION` (`EXECUTION_ID_`), - KEY `ACT_FK_JOB_PROCESS_INSTANCE` (`PROCESS_INSTANCE_ID_`), - KEY `ACT_FK_JOB_PROC_DEF` (`PROC_DEF_ID_`), - KEY `ACT_FK_JOB_EXCEPTION` (`EXCEPTION_STACK_ID_`), - CONSTRAINT `ACT_FK_JOB_EXCEPTION` FOREIGN KEY (`EXCEPTION_STACK_ID_`) REFERENCES `ACT_GE_BYTEARRAY` (`ID_`), - CONSTRAINT `ACT_FK_JOB_EXECUTION` FOREIGN KEY (`EXECUTION_ID_`) REFERENCES `ACT_RU_EXECUTION` (`ID_`), - CONSTRAINT `ACT_FK_JOB_PROC_DEF` FOREIGN KEY (`PROC_DEF_ID_`) REFERENCES `ACT_RE_PROCDEF` (`ID_`), - CONSTRAINT `ACT_FK_JOB_PROCESS_INSTANCE` FOREIGN KEY (`PROCESS_INSTANCE_ID_`) REFERENCES `ACT_RU_EXECUTION` (`ID_`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_bin; - --- ---------------------------- --- Table structure for ACT_RU_SUSPENDED_JOB --- ---------------------------- -DROP TABLE IF EXISTS `ACT_RU_SUSPENDED_JOB`; -CREATE TABLE `ACT_RU_SUSPENDED_JOB` ( - `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL, - `REV_` int DEFAULT NULL, - `TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL, - `EXCLUSIVE_` tinyint(1) DEFAULT NULL, - `EXECUTION_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `PROCESS_INSTANCE_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `PROC_DEF_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `RETRIES_` int DEFAULT NULL, - `EXCEPTION_STACK_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `EXCEPTION_MSG_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `DUEDATE_` timestamp(3) NULL DEFAULT NULL, - `REPEAT_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `HANDLER_TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `HANDLER_CFG_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `TENANT_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT '', - PRIMARY KEY (`ID_`), - KEY `ACT_FK_SUSPENDED_JOB_EXECUTION` (`EXECUTION_ID_`), - KEY `ACT_FK_SUSPENDED_JOB_PROCESS_INSTANCE` (`PROCESS_INSTANCE_ID_`), - KEY `ACT_FK_SUSPENDED_JOB_PROC_DEF` (`PROC_DEF_ID_`), - KEY `ACT_FK_SUSPENDED_JOB_EXCEPTION` (`EXCEPTION_STACK_ID_`), - CONSTRAINT `ACT_FK_SUSPENDED_JOB_EXCEPTION` FOREIGN KEY (`EXCEPTION_STACK_ID_`) REFERENCES `ACT_GE_BYTEARRAY` (`ID_`), - CONSTRAINT `ACT_FK_SUSPENDED_JOB_EXECUTION` FOREIGN KEY (`EXECUTION_ID_`) REFERENCES `ACT_RU_EXECUTION` (`ID_`), - CONSTRAINT `ACT_FK_SUSPENDED_JOB_PROC_DEF` FOREIGN KEY (`PROC_DEF_ID_`) REFERENCES `ACT_RE_PROCDEF` (`ID_`), - CONSTRAINT `ACT_FK_SUSPENDED_JOB_PROCESS_INSTANCE` FOREIGN KEY (`PROCESS_INSTANCE_ID_`) REFERENCES `ACT_RU_EXECUTION` (`ID_`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_bin; - --- ---------------------------- --- Table structure for ACT_RU_TASK --- ---------------------------- -DROP TABLE IF EXISTS `ACT_RU_TASK`; -CREATE TABLE `ACT_RU_TASK` ( - `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL, - `REV_` int DEFAULT NULL, - `EXECUTION_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `PROC_INST_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `PROC_DEF_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `NAME_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `BUSINESS_KEY_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `PARENT_TASK_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `DESCRIPTION_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `TASK_DEF_KEY_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `OWNER_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `ASSIGNEE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `DELEGATION_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `PRIORITY_` int DEFAULT NULL, - `CREATE_TIME_` timestamp(3) NULL DEFAULT NULL, - `DUE_DATE_` datetime(3) DEFAULT NULL, - `CATEGORY_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `SUSPENSION_STATE_` int DEFAULT NULL, - `TENANT_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT '', - `FORM_KEY_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `CLAIM_TIME_` datetime(3) DEFAULT NULL, - `APP_VERSION_` int DEFAULT NULL, - PRIMARY KEY (`ID_`), - KEY `ACT_IDX_TASK_CREATE` (`CREATE_TIME_`), - KEY `ACT_FK_TASK_EXE` (`EXECUTION_ID_`), - KEY `ACT_FK_TASK_PROCINST` (`PROC_INST_ID_`), - KEY `ACT_FK_TASK_PROCDEF` (`PROC_DEF_ID_`), - CONSTRAINT `ACT_FK_TASK_EXE` FOREIGN KEY (`EXECUTION_ID_`) REFERENCES `ACT_RU_EXECUTION` (`ID_`), - CONSTRAINT `ACT_FK_TASK_PROCDEF` FOREIGN KEY (`PROC_DEF_ID_`) REFERENCES `ACT_RE_PROCDEF` (`ID_`), - CONSTRAINT `ACT_FK_TASK_PROCINST` FOREIGN KEY (`PROC_INST_ID_`) REFERENCES `ACT_RU_EXECUTION` (`ID_`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_bin; - --- ---------------------------- --- Records of ACT_RU_TASK --- ---------------------------- -BEGIN; -INSERT INTO `ACT_RU_TASK` VALUES ('9c164f37-3182-11ec-a0b7-f20b812c0662', 1, '8de976c4-3182-11ec-a0b7-f20b812c0662', '8de8b46c-3182-11ec-a0b7-f20b812c0662', 'flowLeave:4:8e42a9bb-3179-11ec-9438-f20b812c0662', '部门领导审批', '1450745828686696448', NULL, NULL, 'Activity_11jr0px', NULL, NULL, NULL, 50, '2021-10-20 16:49:17.586', NULL, NULL, 1, '', '{\"formId\":\"1440945411354267648\",\"readOnly\":true,\"groupType\":\"DEPT_POST_LEADER\"}', NULL, NULL); -INSERT INTO `ACT_RU_TASK` VALUES ('a3a2162b-3186-11ec-bf2d-f20b812c0662', 1, 'a3978ec9-3186-11ec-bf2d-f20b812c0662', 'a396f281-3186-11ec-bf2d-f20b812c0662', 'flowLeave:7:98337350-3186-11ec-bf2d-f20b812c0662', '部门领导审批', '1450753187064582144', NULL, NULL, 'Activity_11jr0px', NULL, NULL, NULL, 50, '2021-10-20 17:18:08.233', NULL, NULL, 1, '', '{\"formId\":\"1440945411354267648\",\"readOnly\":true,\"groupType\":\"DEPT_POST_LEADER\"}', NULL, NULL); -INSERT INTO `ACT_RU_TASK` VALUES ('d64e68a3-69e6-11ec-bb85-0235bf949cb9', 1, 'd642f6e1-69e6-11ec-bb85-0235bf949cb9', 'd6423389-69e6-11ec-bb85-0235bf949cb9', 'flowLeave:9:7d23427c-69e6-11ec-bb85-0235bf949cb9', '部门领导审批', '1476751923557175296', NULL, NULL, 'Activity_11jr0px', NULL, NULL, NULL, 50, '2021-12-31 11:07:50.050', NULL, NULL, 1, '', '{\"formId\":\"1440945411354267648\",\"readOnly\":true,\"groupType\":\"DEPT_POST_LEADER\"}', NULL, NULL); -INSERT INTO `ACT_RU_TASK` VALUES ('dc14fc67-69e6-11ec-bb85-0235bf949cb9', 1, 'dc101a55-69e6-11ec-bb85-0235bf949cb9', 'dc101a4d-69e6-11ec-bb85-0235bf949cb9', 'flowSubmit:4:87e59faf-69e6-11ec-bb85-0235bf949cb9', '部门领导审批', '1476751964434862080', NULL, NULL, 'Activity_04scn2o', NULL, NULL, NULL, 50, '2021-12-31 11:07:59.740', NULL, NULL, 1, '', '{\"formId\":\"1440947675041107968\",\"readOnly\":true,\"groupType\":\"DEPT_POST_LEADER\"}', NULL, NULL); -COMMIT; - --- ---------------------------- --- Table structure for ACT_RU_TIMER_JOB --- ---------------------------- -DROP TABLE IF EXISTS `ACT_RU_TIMER_JOB`; -CREATE TABLE `ACT_RU_TIMER_JOB` ( - `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL, - `REV_` int DEFAULT NULL, - `TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL, - `LOCK_EXP_TIME_` timestamp(3) NULL DEFAULT NULL, - `LOCK_OWNER_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `EXCLUSIVE_` tinyint(1) DEFAULT NULL, - `EXECUTION_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `PROCESS_INSTANCE_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `PROC_DEF_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `RETRIES_` int DEFAULT NULL, - `EXCEPTION_STACK_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `EXCEPTION_MSG_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `DUEDATE_` timestamp(3) NULL DEFAULT NULL, - `REPEAT_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `HANDLER_TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `HANDLER_CFG_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `TENANT_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT '', - PRIMARY KEY (`ID_`), - KEY `ACT_FK_TIMER_JOB_EXECUTION` (`EXECUTION_ID_`), - KEY `ACT_FK_TIMER_JOB_PROCESS_INSTANCE` (`PROCESS_INSTANCE_ID_`), - KEY `ACT_FK_TIMER_JOB_PROC_DEF` (`PROC_DEF_ID_`), - KEY `ACT_FK_TIMER_JOB_EXCEPTION` (`EXCEPTION_STACK_ID_`), - CONSTRAINT `ACT_FK_TIMER_JOB_EXCEPTION` FOREIGN KEY (`EXCEPTION_STACK_ID_`) REFERENCES `ACT_GE_BYTEARRAY` (`ID_`), - CONSTRAINT `ACT_FK_TIMER_JOB_EXECUTION` FOREIGN KEY (`EXECUTION_ID_`) REFERENCES `ACT_RU_EXECUTION` (`ID_`), - CONSTRAINT `ACT_FK_TIMER_JOB_PROC_DEF` FOREIGN KEY (`PROC_DEF_ID_`) REFERENCES `ACT_RE_PROCDEF` (`ID_`), - CONSTRAINT `ACT_FK_TIMER_JOB_PROCESS_INSTANCE` FOREIGN KEY (`PROCESS_INSTANCE_ID_`) REFERENCES `ACT_RU_EXECUTION` (`ID_`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_bin; - --- ---------------------------- --- Table structure for ACT_RU_VARIABLE --- ---------------------------- -DROP TABLE IF EXISTS `ACT_RU_VARIABLE`; -CREATE TABLE `ACT_RU_VARIABLE` ( - `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL, - `REV_` int DEFAULT NULL, - `TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL, - `NAME_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL, - `EXECUTION_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `PROC_INST_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `TASK_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `BYTEARRAY_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `DOUBLE_` double DEFAULT NULL, - `LONG_` bigint DEFAULT NULL, - `TEXT_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `TEXT2_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - PRIMARY KEY (`ID_`), - KEY `ACT_IDX_VARIABLE_TASK_ID` (`TASK_ID_`), - KEY `ACT_FK_VAR_EXE` (`EXECUTION_ID_`), - KEY `ACT_FK_VAR_PROCINST` (`PROC_INST_ID_`), - KEY `ACT_FK_VAR_BYTEARRAY` (`BYTEARRAY_ID_`), - CONSTRAINT `ACT_FK_VAR_BYTEARRAY` FOREIGN KEY (`BYTEARRAY_ID_`) REFERENCES `ACT_GE_BYTEARRAY` (`ID_`), - CONSTRAINT `ACT_FK_VAR_EXE` FOREIGN KEY (`EXECUTION_ID_`) REFERENCES `ACT_RU_EXECUTION` (`ID_`), - CONSTRAINT `ACT_FK_VAR_PROCINST` FOREIGN KEY (`PROC_INST_ID_`) REFERENCES `ACT_RU_EXECUTION` (`ID_`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_bin; - --- ---------------------------- --- Records of ACT_RU_VARIABLE --- ---------------------------- -BEGIN; -INSERT INTO `ACT_RU_VARIABLE` VALUES ('8de9028e-3182-11ec-a0b7-f20b812c0662', 1, 'string', 'startUserName', '8de8b46c-3182-11ec-a0b7-f20b812c0662', '8de8b46c-3182-11ec-a0b7-f20b812c0662', NULL, NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_RU_VARIABLE` VALUES ('8de94fb0-3182-11ec-a0b7-f20b812c0662', 2, 'string', 'deptPostLeader', '8de8b46c-3182-11ec-a0b7-f20b812c0662', '8de8b46c-3182-11ec-a0b7-f20b812c0662', NULL, NULL, NULL, NULL, '1440964519391137792', NULL); -INSERT INTO `ACT_RU_VARIABLE` VALUES ('8de976c2-3182-11ec-a0b7-f20b812c0662', 1, 'string', 'initiator', '8de8b46c-3182-11ec-a0b7-f20b812c0662', '8de8b46c-3182-11ec-a0b7-f20b812c0662', NULL, NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_RU_VARIABLE` VALUES ('9c15da02-3182-11ec-a0b7-f20b812c0662', 1, 'string', 'operationType', '8de8b46c-3182-11ec-a0b7-f20b812c0662', '8de8b46c-3182-11ec-a0b7-f20b812c0662', NULL, NULL, NULL, NULL, 'agree', NULL); -INSERT INTO `ACT_RU_VARIABLE` VALUES ('9c169d58-3182-11ec-a0b7-f20b812c0662', 1, 'string', 'startUserName', '8de976c4-3182-11ec-a0b7-f20b812c0662', '8de8b46c-3182-11ec-a0b7-f20b812c0662', '9c164f37-3182-11ec-a0b7-f20b812c0662', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_RU_VARIABLE` VALUES ('9c169d5a-3182-11ec-a0b7-f20b812c0662', 1, 'string', 'initiator', '8de976c4-3182-11ec-a0b7-f20b812c0662', '8de8b46c-3182-11ec-a0b7-f20b812c0662', '9c164f37-3182-11ec-a0b7-f20b812c0662', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_RU_VARIABLE` VALUES ('9c169d5c-3182-11ec-a0b7-f20b812c0662', 1, 'string', 'deptPostLeader', '8de976c4-3182-11ec-a0b7-f20b812c0662', '8de8b46c-3182-11ec-a0b7-f20b812c0662', '9c164f37-3182-11ec-a0b7-f20b812c0662', NULL, NULL, NULL, '1440964519391137792', NULL); -INSERT INTO `ACT_RU_VARIABLE` VALUES ('9c169d5e-3182-11ec-a0b7-f20b812c0662', 1, 'string', 'operationType', '8de976c4-3182-11ec-a0b7-f20b812c0662', '8de8b46c-3182-11ec-a0b7-f20b812c0662', '9c164f37-3182-11ec-a0b7-f20b812c0662', NULL, NULL, NULL, 'agree', NULL); -INSERT INTO `ACT_RU_VARIABLE` VALUES ('a3971993-3186-11ec-bf2d-f20b812c0662', 1, 'string', 'startUserName', 'a396f281-3186-11ec-bf2d-f20b812c0662', 'a396f281-3186-11ec-bf2d-f20b812c0662', NULL, NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_RU_VARIABLE` VALUES ('a39767b5-3186-11ec-bf2d-f20b812c0662', 1, 'string', 'deptPostLeader', 'a396f281-3186-11ec-bf2d-f20b812c0662', 'a396f281-3186-11ec-bf2d-f20b812c0662', NULL, NULL, NULL, NULL, '1440964519391137792', NULL); -INSERT INTO `ACT_RU_VARIABLE` VALUES ('a39767b7-3186-11ec-bf2d-f20b812c0662', 1, 'string', 'initiator', 'a396f281-3186-11ec-bf2d-f20b812c0662', 'a396f281-3186-11ec-bf2d-f20b812c0662', NULL, NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_RU_VARIABLE` VALUES ('a3a1c806-3186-11ec-bf2d-f20b812c0662', 1, 'string', 'operationType', 'a396f281-3186-11ec-bf2d-f20b812c0662', 'a396f281-3186-11ec-bf2d-f20b812c0662', NULL, NULL, NULL, NULL, 'agree', NULL); -INSERT INTO `ACT_RU_VARIABLE` VALUES ('a3a23d3c-3186-11ec-bf2d-f20b812c0662', 1, 'string', 'startUserName', 'a3978ec9-3186-11ec-bf2d-f20b812c0662', 'a396f281-3186-11ec-bf2d-f20b812c0662', 'a3a2162b-3186-11ec-bf2d-f20b812c0662', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_RU_VARIABLE` VALUES ('a3a2644e-3186-11ec-bf2d-f20b812c0662', 1, 'string', 'initiator', 'a3978ec9-3186-11ec-bf2d-f20b812c0662', 'a396f281-3186-11ec-bf2d-f20b812c0662', 'a3a2162b-3186-11ec-bf2d-f20b812c0662', NULL, NULL, NULL, 'userD', NULL); -INSERT INTO `ACT_RU_VARIABLE` VALUES ('a3a26450-3186-11ec-bf2d-f20b812c0662', 1, 'string', 'deptPostLeader', 'a3978ec9-3186-11ec-bf2d-f20b812c0662', 'a396f281-3186-11ec-bf2d-f20b812c0662', 'a3a2162b-3186-11ec-bf2d-f20b812c0662', NULL, NULL, NULL, '1440964519391137792', NULL); -INSERT INTO `ACT_RU_VARIABLE` VALUES ('a3a26452-3186-11ec-bf2d-f20b812c0662', 1, 'string', 'operationType', 'a3978ec9-3186-11ec-bf2d-f20b812c0662', 'a396f281-3186-11ec-bf2d-f20b812c0662', 'a3a2162b-3186-11ec-bf2d-f20b812c0662', NULL, NULL, NULL, 'agree', NULL); -INSERT INTO `ACT_RU_VARIABLE` VALUES ('d64281ab-69e6-11ec-bb85-0235bf949cb9', 1, 'string', 'startUserName', 'd6423389-69e6-11ec-bb85-0235bf949cb9', 'd6423389-69e6-11ec-bb85-0235bf949cb9', NULL, NULL, NULL, NULL, 'admin', NULL); -INSERT INTO `ACT_RU_VARIABLE` VALUES ('d642cfcd-69e6-11ec-bb85-0235bf949cb9', 1, 'string', 'deptPostLeader', 'd6423389-69e6-11ec-bb85-0235bf949cb9', 'd6423389-69e6-11ec-bb85-0235bf949cb9', NULL, NULL, NULL, NULL, '1440969551792574464', NULL); -INSERT INTO `ACT_RU_VARIABLE` VALUES ('d642cfcf-69e6-11ec-bb85-0235bf949cb9', 1, 'string', 'initiator', 'd6423389-69e6-11ec-bb85-0235bf949cb9', 'd6423389-69e6-11ec-bb85-0235bf949cb9', NULL, NULL, NULL, NULL, 'admin', NULL); -INSERT INTO `ACT_RU_VARIABLE` VALUES ('d64df36e-69e6-11ec-bb85-0235bf949cb9', 1, 'string', 'operationType', 'd6423389-69e6-11ec-bb85-0235bf949cb9', 'd6423389-69e6-11ec-bb85-0235bf949cb9', NULL, NULL, NULL, NULL, 'agree', NULL); -INSERT INTO `ACT_RU_VARIABLE` VALUES ('d64e8fb4-69e6-11ec-bb85-0235bf949cb9', 1, 'string', 'startUserName', 'd642f6e1-69e6-11ec-bb85-0235bf949cb9', 'd6423389-69e6-11ec-bb85-0235bf949cb9', 'd64e68a3-69e6-11ec-bb85-0235bf949cb9', NULL, NULL, NULL, 'admin', NULL); -INSERT INTO `ACT_RU_VARIABLE` VALUES ('d64e8fb6-69e6-11ec-bb85-0235bf949cb9', 1, 'string', 'initiator', 'd642f6e1-69e6-11ec-bb85-0235bf949cb9', 'd6423389-69e6-11ec-bb85-0235bf949cb9', 'd64e68a3-69e6-11ec-bb85-0235bf949cb9', NULL, NULL, NULL, 'admin', NULL); -INSERT INTO `ACT_RU_VARIABLE` VALUES ('d64e8fb8-69e6-11ec-bb85-0235bf949cb9', 1, 'string', 'deptPostLeader', 'd642f6e1-69e6-11ec-bb85-0235bf949cb9', 'd6423389-69e6-11ec-bb85-0235bf949cb9', 'd64e68a3-69e6-11ec-bb85-0235bf949cb9', NULL, NULL, NULL, '1440969551792574464', NULL); -INSERT INTO `ACT_RU_VARIABLE` VALUES ('d64e8fba-69e6-11ec-bb85-0235bf949cb9', 1, 'string', 'operationType', 'd642f6e1-69e6-11ec-bb85-0235bf949cb9', 'd6423389-69e6-11ec-bb85-0235bf949cb9', 'd64e68a3-69e6-11ec-bb85-0235bf949cb9', NULL, NULL, NULL, 'agree', NULL); -INSERT INTO `ACT_RU_VARIABLE` VALUES ('dc101a4f-69e6-11ec-bb85-0235bf949cb9', 1, 'string', 'startUserName', 'dc101a4d-69e6-11ec-bb85-0235bf949cb9', 'dc101a4d-69e6-11ec-bb85-0235bf949cb9', NULL, NULL, NULL, NULL, 'admin', NULL); -INSERT INTO `ACT_RU_VARIABLE` VALUES ('dc101a51-69e6-11ec-bb85-0235bf949cb9', 1, 'string', 'deptPostLeader', 'dc101a4d-69e6-11ec-bb85-0235bf949cb9', 'dc101a4d-69e6-11ec-bb85-0235bf949cb9', NULL, NULL, NULL, NULL, '1440969551792574464', NULL); -INSERT INTO `ACT_RU_VARIABLE` VALUES ('dc101a53-69e6-11ec-bb85-0235bf949cb9', 1, 'string', 'initiator', 'dc101a4d-69e6-11ec-bb85-0235bf949cb9', 'dc101a4d-69e6-11ec-bb85-0235bf949cb9', NULL, NULL, NULL, NULL, 'admin', NULL); -INSERT INTO `ACT_RU_VARIABLE` VALUES ('dc14ae42-69e6-11ec-bb85-0235bf949cb9', 1, 'string', 'operationType', 'dc101a4d-69e6-11ec-bb85-0235bf949cb9', 'dc101a4d-69e6-11ec-bb85-0235bf949cb9', NULL, NULL, NULL, NULL, 'agree', NULL); -INSERT INTO `ACT_RU_VARIABLE` VALUES ('dc154a88-69e6-11ec-bb85-0235bf949cb9', 1, 'string', 'startUserName', 'dc101a55-69e6-11ec-bb85-0235bf949cb9', 'dc101a4d-69e6-11ec-bb85-0235bf949cb9', 'dc14fc67-69e6-11ec-bb85-0235bf949cb9', NULL, NULL, NULL, 'admin', NULL); -INSERT INTO `ACT_RU_VARIABLE` VALUES ('dc154a8a-69e6-11ec-bb85-0235bf949cb9', 1, 'string', 'initiator', 'dc101a55-69e6-11ec-bb85-0235bf949cb9', 'dc101a4d-69e6-11ec-bb85-0235bf949cb9', 'dc14fc67-69e6-11ec-bb85-0235bf949cb9', NULL, NULL, NULL, 'admin', NULL); -INSERT INTO `ACT_RU_VARIABLE` VALUES ('dc154a8c-69e6-11ec-bb85-0235bf949cb9', 1, 'string', 'deptPostLeader', 'dc101a55-69e6-11ec-bb85-0235bf949cb9', 'dc101a4d-69e6-11ec-bb85-0235bf949cb9', 'dc14fc67-69e6-11ec-bb85-0235bf949cb9', NULL, NULL, NULL, '1440969551792574464', NULL); -INSERT INTO `ACT_RU_VARIABLE` VALUES ('dc154a8e-69e6-11ec-bb85-0235bf949cb9', 1, 'string', 'operationType', 'dc101a55-69e6-11ec-bb85-0235bf949cb9', 'dc101a4d-69e6-11ec-bb85-0235bf949cb9', 'dc14fc67-69e6-11ec-bb85-0235bf949cb9', NULL, NULL, NULL, 'agree', NULL); -COMMIT; - --- ---------------------------- --- Table structure for zz_area_code --- ---------------------------- -DROP TABLE IF EXISTS `zz_area_code`; -CREATE TABLE `zz_area_code` ( - `area_id` bigint unsigned NOT NULL COMMENT '行政区划主键Id', - `area_name` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '' COMMENT '行政区划名称', - `area_level` int NOT NULL COMMENT '行政区划级别 (1: 省级别 2: 市级别 3: 区级别)', - `parent_id` bigint DEFAULT NULL COMMENT '父级行政区划Id', - PRIMARY KEY (`area_id`) USING BTREE, - KEY `idx_level` (`area_level`) USING BTREE, - KEY `idx_area_name` (`area_name`) USING BTREE, - KEY `idx_parent_id` (`parent_id`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='行政区划表'; - --- ---------------------------- --- Records of zz_area_code --- ---------------------------- -BEGIN; -INSERT INTO `zz_area_code` VALUES (110000000000, '北京市', 1, NULL); -INSERT INTO `zz_area_code` VALUES (110100000000, '市辖区', 2, 110000000000); -INSERT INTO `zz_area_code` VALUES (110101000000, '东城区', 3, 110100000000); -INSERT INTO `zz_area_code` VALUES (110102000000, '西城区', 3, 110100000000); -INSERT INTO `zz_area_code` VALUES (110105000000, '朝阳区', 3, 110100000000); -INSERT INTO `zz_area_code` VALUES (110106000000, '丰台区', 3, 110100000000); -INSERT INTO `zz_area_code` VALUES (110107000000, '石景山区', 3, 110100000000); -INSERT INTO `zz_area_code` VALUES (110108000000, '海淀区', 3, 110100000000); -INSERT INTO `zz_area_code` VALUES (110109000000, '门头沟区', 3, 110100000000); -INSERT INTO `zz_area_code` VALUES (110111000000, '房山区', 3, 110100000000); -INSERT INTO `zz_area_code` VALUES (110112000000, '通州区', 3, 110100000000); -INSERT INTO `zz_area_code` VALUES (110113000000, '顺义区', 3, 110100000000); -INSERT INTO `zz_area_code` VALUES (110114000000, '昌平区', 3, 110100000000); -INSERT INTO `zz_area_code` VALUES (110115000000, '大兴区', 3, 110100000000); -INSERT INTO `zz_area_code` VALUES (110116000000, '怀柔区', 3, 110100000000); -INSERT INTO `zz_area_code` VALUES (110117000000, '平谷区', 3, 110100000000); -INSERT INTO `zz_area_code` VALUES (110118000000, '密云区', 3, 110100000000); -INSERT INTO `zz_area_code` VALUES (110119000000, '延庆区', 3, 110100000000); -INSERT INTO `zz_area_code` VALUES (120000000000, '天津市', 1, NULL); -INSERT INTO `zz_area_code` VALUES (120100000000, '市辖区', 2, 120000000000); -INSERT INTO `zz_area_code` VALUES (120101000000, '和平区', 3, 120100000000); -INSERT INTO `zz_area_code` VALUES (120102000000, '河东区', 3, 120100000000); -INSERT INTO `zz_area_code` VALUES (120103000000, '河西区', 3, 120100000000); -INSERT INTO `zz_area_code` VALUES (120104000000, '南开区', 3, 120100000000); -INSERT INTO `zz_area_code` VALUES (120105000000, '河北区', 3, 120100000000); -INSERT INTO `zz_area_code` VALUES (120106000000, '红桥区', 3, 120100000000); -INSERT INTO `zz_area_code` VALUES (120110000000, '东丽区', 3, 120100000000); -INSERT INTO `zz_area_code` VALUES (120111000000, '西青区', 3, 120100000000); -INSERT INTO `zz_area_code` VALUES (120112000000, '津南区', 3, 120100000000); -INSERT INTO `zz_area_code` VALUES (120113000000, '北辰区', 3, 120100000000); -INSERT INTO `zz_area_code` VALUES (120114000000, '武清区', 3, 120100000000); -INSERT INTO `zz_area_code` VALUES (120115000000, '宝坻区', 3, 120100000000); -INSERT INTO `zz_area_code` VALUES (120116000000, '滨海新区', 3, 120100000000); -INSERT INTO `zz_area_code` VALUES (120117000000, '宁河区', 3, 120100000000); -INSERT INTO `zz_area_code` VALUES (120118000000, '静海区', 3, 120100000000); -INSERT INTO `zz_area_code` VALUES (120119000000, '蓟州区', 3, 120100000000); -INSERT INTO `zz_area_code` VALUES (130000000000, '河北省', 1, NULL); -INSERT INTO `zz_area_code` VALUES (130100000000, '石家庄市', 2, 130000000000); -INSERT INTO `zz_area_code` VALUES (130101000000, '市辖区', 3, 130100000000); -INSERT INTO `zz_area_code` VALUES (130102000000, '长安区', 3, 130100000000); -INSERT INTO `zz_area_code` VALUES (130104000000, '桥西区', 3, 130100000000); -INSERT INTO `zz_area_code` VALUES (130105000000, '新华区', 3, 130100000000); -INSERT INTO `zz_area_code` VALUES (130107000000, '井陉矿区', 3, 130100000000); -INSERT INTO `zz_area_code` VALUES (130108000000, '裕华区', 3, 130100000000); -INSERT INTO `zz_area_code` VALUES (130109000000, '藁城区', 3, 130100000000); -INSERT INTO `zz_area_code` VALUES (130110000000, '鹿泉区', 3, 130100000000); -INSERT INTO `zz_area_code` VALUES (130111000000, '栾城区', 3, 130100000000); -INSERT INTO `zz_area_code` VALUES (130121000000, '井陉县', 3, 130100000000); -INSERT INTO `zz_area_code` VALUES (130123000000, '正定县', 3, 130100000000); -INSERT INTO `zz_area_code` VALUES (130125000000, '行唐县', 3, 130100000000); -INSERT INTO `zz_area_code` VALUES (130126000000, '灵寿县', 3, 130100000000); -INSERT INTO `zz_area_code` VALUES (130127000000, '高邑县', 3, 130100000000); -INSERT INTO `zz_area_code` VALUES (130128000000, '深泽县', 3, 130100000000); -INSERT INTO `zz_area_code` VALUES (130129000000, '赞皇县', 3, 130100000000); -INSERT INTO `zz_area_code` VALUES (130130000000, '无极县', 3, 130100000000); -INSERT INTO `zz_area_code` VALUES (130131000000, '平山县', 3, 130100000000); -INSERT INTO `zz_area_code` VALUES (130132000000, '元氏县', 3, 130100000000); -INSERT INTO `zz_area_code` VALUES (130133000000, '赵县', 3, 130100000000); -INSERT INTO `zz_area_code` VALUES (130171000000, '石家庄高新技术产业开发区', 3, 130100000000); -INSERT INTO `zz_area_code` VALUES (130172000000, '石家庄循环化工园区', 3, 130100000000); -INSERT INTO `zz_area_code` VALUES (130181000000, '辛集市', 3, 130100000000); -INSERT INTO `zz_area_code` VALUES (130183000000, '晋州市', 3, 130100000000); -INSERT INTO `zz_area_code` VALUES (130184000000, '新乐市', 3, 130100000000); -INSERT INTO `zz_area_code` VALUES (130200000000, '唐山市', 2, 130000000000); -INSERT INTO `zz_area_code` VALUES (130201000000, '市辖区', 3, 130200000000); -INSERT INTO `zz_area_code` VALUES (130202000000, '路南区', 3, 130200000000); -INSERT INTO `zz_area_code` VALUES (130203000000, '路北区', 3, 130200000000); -INSERT INTO `zz_area_code` VALUES (130204000000, '古冶区', 3, 130200000000); -INSERT INTO `zz_area_code` VALUES (130205000000, '开平区', 3, 130200000000); -INSERT INTO `zz_area_code` VALUES (130207000000, '丰南区', 3, 130200000000); -INSERT INTO `zz_area_code` VALUES (130208000000, '丰润区', 3, 130200000000); -INSERT INTO `zz_area_code` VALUES (130209000000, '曹妃甸区', 3, 130200000000); -INSERT INTO `zz_area_code` VALUES (130224000000, '滦南县', 3, 130200000000); -INSERT INTO `zz_area_code` VALUES (130225000000, '乐亭县', 3, 130200000000); -INSERT INTO `zz_area_code` VALUES (130227000000, '迁西县', 3, 130200000000); -INSERT INTO `zz_area_code` VALUES (130229000000, '玉田县', 3, 130200000000); -INSERT INTO `zz_area_code` VALUES (130271000000, '唐山市芦台经济技术开发区', 3, 130200000000); -INSERT INTO `zz_area_code` VALUES (130272000000, '唐山市汉沽管理区', 3, 130200000000); -INSERT INTO `zz_area_code` VALUES (130273000000, '唐山高新技术产业开发区', 3, 130200000000); -INSERT INTO `zz_area_code` VALUES (130274000000, '河北唐山海港经济开发区', 3, 130200000000); -INSERT INTO `zz_area_code` VALUES (130281000000, '遵化市', 3, 130200000000); -INSERT INTO `zz_area_code` VALUES (130283000000, '迁安市', 3, 130200000000); -INSERT INTO `zz_area_code` VALUES (130284000000, '滦州市', 3, 130200000000); -INSERT INTO `zz_area_code` VALUES (130300000000, '秦皇岛市', 2, 130000000000); -INSERT INTO `zz_area_code` VALUES (130301000000, '市辖区', 3, 130300000000); -INSERT INTO `zz_area_code` VALUES (130302000000, '海港区', 3, 130300000000); -INSERT INTO `zz_area_code` VALUES (130303000000, '山海关区', 3, 130300000000); -INSERT INTO `zz_area_code` VALUES (130304000000, '北戴河区', 3, 130300000000); -INSERT INTO `zz_area_code` VALUES (130306000000, '抚宁区', 3, 130300000000); -INSERT INTO `zz_area_code` VALUES (130321000000, '青龙满族自治县', 3, 130300000000); -INSERT INTO `zz_area_code` VALUES (130322000000, '昌黎县', 3, 130300000000); -INSERT INTO `zz_area_code` VALUES (130324000000, '卢龙县', 3, 130300000000); -INSERT INTO `zz_area_code` VALUES (130371000000, '秦皇岛市经济技术开发区', 3, 130300000000); -INSERT INTO `zz_area_code` VALUES (130372000000, '北戴河新区', 3, 130300000000); -INSERT INTO `zz_area_code` VALUES (130400000000, '邯郸市', 2, 130000000000); -INSERT INTO `zz_area_code` VALUES (130401000000, '市辖区', 3, 130400000000); -INSERT INTO `zz_area_code` VALUES (130402000000, '邯山区', 3, 130400000000); -INSERT INTO `zz_area_code` VALUES (130403000000, '丛台区', 3, 130400000000); -INSERT INTO `zz_area_code` VALUES (130404000000, '复兴区', 3, 130400000000); -INSERT INTO `zz_area_code` VALUES (130406000000, '峰峰矿区', 3, 130400000000); -INSERT INTO `zz_area_code` VALUES (130407000000, '肥乡区', 3, 130400000000); -INSERT INTO `zz_area_code` VALUES (130408000000, '永年区', 3, 130400000000); -INSERT INTO `zz_area_code` VALUES (130423000000, '临漳县', 3, 130400000000); -INSERT INTO `zz_area_code` VALUES (130424000000, '成安县', 3, 130400000000); -INSERT INTO `zz_area_code` VALUES (130425000000, '大名县', 3, 130400000000); -INSERT INTO `zz_area_code` VALUES (130426000000, '涉县', 3, 130400000000); -INSERT INTO `zz_area_code` VALUES (130427000000, '磁县', 3, 130400000000); -INSERT INTO `zz_area_code` VALUES (130430000000, '邱县', 3, 130400000000); -INSERT INTO `zz_area_code` VALUES (130431000000, '鸡泽县', 3, 130400000000); -INSERT INTO `zz_area_code` VALUES (130432000000, '广平县', 3, 130400000000); -INSERT INTO `zz_area_code` VALUES (130433000000, '馆陶县', 3, 130400000000); -INSERT INTO `zz_area_code` VALUES (130434000000, '魏县', 3, 130400000000); -INSERT INTO `zz_area_code` VALUES (130435000000, '曲周县', 3, 130400000000); -INSERT INTO `zz_area_code` VALUES (130471000000, '邯郸经济技术开发区', 3, 130400000000); -INSERT INTO `zz_area_code` VALUES (130473000000, '邯郸冀南新区', 3, 130400000000); -INSERT INTO `zz_area_code` VALUES (130481000000, '武安市', 3, 130400000000); -INSERT INTO `zz_area_code` VALUES (130500000000, '邢台市', 2, 130000000000); -INSERT INTO `zz_area_code` VALUES (130501000000, '市辖区', 3, 130500000000); -INSERT INTO `zz_area_code` VALUES (130502000000, '桥东区', 3, 130500000000); -INSERT INTO `zz_area_code` VALUES (130503000000, '桥西区', 3, 130500000000); -INSERT INTO `zz_area_code` VALUES (130521000000, '邢台县', 3, 130500000000); -INSERT INTO `zz_area_code` VALUES (130522000000, '临城县', 3, 130500000000); -INSERT INTO `zz_area_code` VALUES (130523000000, '内丘县', 3, 130500000000); -INSERT INTO `zz_area_code` VALUES (130524000000, '柏乡县', 3, 130500000000); -INSERT INTO `zz_area_code` VALUES (130525000000, '隆尧县', 3, 130500000000); -INSERT INTO `zz_area_code` VALUES (130526000000, '任县', 3, 130500000000); -INSERT INTO `zz_area_code` VALUES (130527000000, '南和县', 3, 130500000000); -INSERT INTO `zz_area_code` VALUES (130528000000, '宁晋县', 3, 130500000000); -INSERT INTO `zz_area_code` VALUES (130529000000, '巨鹿县', 3, 130500000000); -INSERT INTO `zz_area_code` VALUES (130530000000, '新河县', 3, 130500000000); -INSERT INTO `zz_area_code` VALUES (130531000000, '广宗县', 3, 130500000000); -INSERT INTO `zz_area_code` VALUES (130532000000, '平乡县', 3, 130500000000); -INSERT INTO `zz_area_code` VALUES (130533000000, '威县', 3, 130500000000); -INSERT INTO `zz_area_code` VALUES (130534000000, '清河县', 3, 130500000000); -INSERT INTO `zz_area_code` VALUES (130535000000, '临西县', 3, 130500000000); -INSERT INTO `zz_area_code` VALUES (130571000000, '河北邢台经济开发区', 3, 130500000000); -INSERT INTO `zz_area_code` VALUES (130581000000, '南宫市', 3, 130500000000); -INSERT INTO `zz_area_code` VALUES (130582000000, '沙河市', 3, 130500000000); -INSERT INTO `zz_area_code` VALUES (130600000000, '保定市', 2, 130000000000); -INSERT INTO `zz_area_code` VALUES (130601000000, '市辖区', 3, 130600000000); -INSERT INTO `zz_area_code` VALUES (130602000000, '竞秀区', 3, 130600000000); -INSERT INTO `zz_area_code` VALUES (130606000000, '莲池区', 3, 130600000000); -INSERT INTO `zz_area_code` VALUES (130607000000, '满城区', 3, 130600000000); -INSERT INTO `zz_area_code` VALUES (130608000000, '清苑区', 3, 130600000000); -INSERT INTO `zz_area_code` VALUES (130609000000, '徐水区', 3, 130600000000); -INSERT INTO `zz_area_code` VALUES (130623000000, '涞水县', 3, 130600000000); -INSERT INTO `zz_area_code` VALUES (130624000000, '阜平县', 3, 130600000000); -INSERT INTO `zz_area_code` VALUES (130626000000, '定兴县', 3, 130600000000); -INSERT INTO `zz_area_code` VALUES (130627000000, '唐县', 3, 130600000000); -INSERT INTO `zz_area_code` VALUES (130628000000, '高阳县', 3, 130600000000); -INSERT INTO `zz_area_code` VALUES (130629000000, '容城县', 3, 130600000000); -INSERT INTO `zz_area_code` VALUES (130630000000, '涞源县', 3, 130600000000); -INSERT INTO `zz_area_code` VALUES (130631000000, '望都县', 3, 130600000000); -INSERT INTO `zz_area_code` VALUES (130632000000, '安新县', 3, 130600000000); -INSERT INTO `zz_area_code` VALUES (130633000000, '易县', 3, 130600000000); -INSERT INTO `zz_area_code` VALUES (130634000000, '曲阳县', 3, 130600000000); -INSERT INTO `zz_area_code` VALUES (130635000000, '蠡县', 3, 130600000000); -INSERT INTO `zz_area_code` VALUES (130636000000, '顺平县', 3, 130600000000); -INSERT INTO `zz_area_code` VALUES (130637000000, '博野县', 3, 130600000000); -INSERT INTO `zz_area_code` VALUES (130638000000, '雄县', 3, 130600000000); -INSERT INTO `zz_area_code` VALUES (130671000000, '保定高新技术产业开发区', 3, 130600000000); -INSERT INTO `zz_area_code` VALUES (130672000000, '保定白沟新城', 3, 130600000000); -INSERT INTO `zz_area_code` VALUES (130681000000, '涿州市', 3, 130600000000); -INSERT INTO `zz_area_code` VALUES (130682000000, '定州市', 3, 130600000000); -INSERT INTO `zz_area_code` VALUES (130683000000, '安国市', 3, 130600000000); -INSERT INTO `zz_area_code` VALUES (130684000000, '高碑店市', 3, 130600000000); -INSERT INTO `zz_area_code` VALUES (130700000000, '张家口市', 2, 130000000000); -INSERT INTO `zz_area_code` VALUES (130701000000, '市辖区', 3, 130700000000); -INSERT INTO `zz_area_code` VALUES (130702000000, '桥东区', 3, 130700000000); -INSERT INTO `zz_area_code` VALUES (130703000000, '桥西区', 3, 130700000000); -INSERT INTO `zz_area_code` VALUES (130705000000, '宣化区', 3, 130700000000); -INSERT INTO `zz_area_code` VALUES (130706000000, '下花园区', 3, 130700000000); -INSERT INTO `zz_area_code` VALUES (130708000000, '万全区', 3, 130700000000); -INSERT INTO `zz_area_code` VALUES (130709000000, '崇礼区', 3, 130700000000); -INSERT INTO `zz_area_code` VALUES (130722000000, '张北县', 3, 130700000000); -INSERT INTO `zz_area_code` VALUES (130723000000, '康保县', 3, 130700000000); -INSERT INTO `zz_area_code` VALUES (130724000000, '沽源县', 3, 130700000000); -INSERT INTO `zz_area_code` VALUES (130725000000, '尚义县', 3, 130700000000); -INSERT INTO `zz_area_code` VALUES (130726000000, '蔚县', 3, 130700000000); -INSERT INTO `zz_area_code` VALUES (130727000000, '阳原县', 3, 130700000000); -INSERT INTO `zz_area_code` VALUES (130728000000, '怀安县', 3, 130700000000); -INSERT INTO `zz_area_code` VALUES (130730000000, '怀来县', 3, 130700000000); -INSERT INTO `zz_area_code` VALUES (130731000000, '涿鹿县', 3, 130700000000); -INSERT INTO `zz_area_code` VALUES (130732000000, '赤城县', 3, 130700000000); -INSERT INTO `zz_area_code` VALUES (130771000000, '张家口市高新技术产业开发区', 3, 130700000000); -INSERT INTO `zz_area_code` VALUES (130772000000, '张家口市察北管理区', 3, 130700000000); -INSERT INTO `zz_area_code` VALUES (130773000000, '张家口市塞北管理区', 3, 130700000000); -INSERT INTO `zz_area_code` VALUES (130800000000, '承德市', 2, 130000000000); -INSERT INTO `zz_area_code` VALUES (130801000000, '市辖区', 3, 130800000000); -INSERT INTO `zz_area_code` VALUES (130802000000, '双桥区', 3, 130800000000); -INSERT INTO `zz_area_code` VALUES (130803000000, '双滦区', 3, 130800000000); -INSERT INTO `zz_area_code` VALUES (130804000000, '鹰手营子矿区', 3, 130800000000); -INSERT INTO `zz_area_code` VALUES (130821000000, '承德县', 3, 130800000000); -INSERT INTO `zz_area_code` VALUES (130822000000, '兴隆县', 3, 130800000000); -INSERT INTO `zz_area_code` VALUES (130824000000, '滦平县', 3, 130800000000); -INSERT INTO `zz_area_code` VALUES (130825000000, '隆化县', 3, 130800000000); -INSERT INTO `zz_area_code` VALUES (130826000000, '丰宁满族自治县', 3, 130800000000); -INSERT INTO `zz_area_code` VALUES (130827000000, '宽城满族自治县', 3, 130800000000); -INSERT INTO `zz_area_code` VALUES (130828000000, '围场满族蒙古族自治县', 3, 130800000000); -INSERT INTO `zz_area_code` VALUES (130871000000, '承德高新技术产业开发区', 3, 130800000000); -INSERT INTO `zz_area_code` VALUES (130881000000, '平泉市', 3, 130800000000); -INSERT INTO `zz_area_code` VALUES (130900000000, '沧州市', 2, 130000000000); -INSERT INTO `zz_area_code` VALUES (130901000000, '市辖区', 3, 130900000000); -INSERT INTO `zz_area_code` VALUES (130902000000, '新华区', 3, 130900000000); -INSERT INTO `zz_area_code` VALUES (130903000000, '运河区', 3, 130900000000); -INSERT INTO `zz_area_code` VALUES (130921000000, '沧县', 3, 130900000000); -INSERT INTO `zz_area_code` VALUES (130922000000, '青县', 3, 130900000000); -INSERT INTO `zz_area_code` VALUES (130923000000, '东光县', 3, 130900000000); -INSERT INTO `zz_area_code` VALUES (130924000000, '海兴县', 3, 130900000000); -INSERT INTO `zz_area_code` VALUES (130925000000, '盐山县', 3, 130900000000); -INSERT INTO `zz_area_code` VALUES (130926000000, '肃宁县', 3, 130900000000); -INSERT INTO `zz_area_code` VALUES (130927000000, '南皮县', 3, 130900000000); -INSERT INTO `zz_area_code` VALUES (130928000000, '吴桥县', 3, 130900000000); -INSERT INTO `zz_area_code` VALUES (130929000000, '献县', 3, 130900000000); -INSERT INTO `zz_area_code` VALUES (130930000000, '孟村回族自治县', 3, 130900000000); -INSERT INTO `zz_area_code` VALUES (130971000000, '河北沧州经济开发区', 3, 130900000000); -INSERT INTO `zz_area_code` VALUES (130972000000, '沧州高新技术产业开发区', 3, 130900000000); -INSERT INTO `zz_area_code` VALUES (130973000000, '沧州渤海新区', 3, 130900000000); -INSERT INTO `zz_area_code` VALUES (130981000000, '泊头市', 3, 130900000000); -INSERT INTO `zz_area_code` VALUES (130982000000, '任丘市', 3, 130900000000); -INSERT INTO `zz_area_code` VALUES (130983000000, '黄骅市', 3, 130900000000); -INSERT INTO `zz_area_code` VALUES (130984000000, '河间市', 3, 130900000000); -INSERT INTO `zz_area_code` VALUES (131000000000, '廊坊市', 2, 130000000000); -INSERT INTO `zz_area_code` VALUES (131001000000, '市辖区', 3, 131000000000); -INSERT INTO `zz_area_code` VALUES (131002000000, '安次区', 3, 131000000000); -INSERT INTO `zz_area_code` VALUES (131003000000, '广阳区', 3, 131000000000); -INSERT INTO `zz_area_code` VALUES (131022000000, '固安县', 3, 131000000000); -INSERT INTO `zz_area_code` VALUES (131023000000, '永清县', 3, 131000000000); -INSERT INTO `zz_area_code` VALUES (131024000000, '香河县', 3, 131000000000); -INSERT INTO `zz_area_code` VALUES (131025000000, '大城县', 3, 131000000000); -INSERT INTO `zz_area_code` VALUES (131026000000, '文安县', 3, 131000000000); -INSERT INTO `zz_area_code` VALUES (131028000000, '大厂回族自治县', 3, 131000000000); -INSERT INTO `zz_area_code` VALUES (131071000000, '廊坊经济技术开发区', 3, 131000000000); -INSERT INTO `zz_area_code` VALUES (131081000000, '霸州市', 3, 131000000000); -INSERT INTO `zz_area_code` VALUES (131082000000, '三河市', 3, 131000000000); -INSERT INTO `zz_area_code` VALUES (131100000000, '衡水市', 2, 130000000000); -INSERT INTO `zz_area_code` VALUES (131101000000, '市辖区', 3, 131100000000); -INSERT INTO `zz_area_code` VALUES (131102000000, '桃城区', 3, 131100000000); -INSERT INTO `zz_area_code` VALUES (131103000000, '冀州区', 3, 131100000000); -INSERT INTO `zz_area_code` VALUES (131121000000, '枣强县', 3, 131100000000); -INSERT INTO `zz_area_code` VALUES (131122000000, '武邑县', 3, 131100000000); -INSERT INTO `zz_area_code` VALUES (131123000000, '武强县', 3, 131100000000); -INSERT INTO `zz_area_code` VALUES (131124000000, '饶阳县', 3, 131100000000); -INSERT INTO `zz_area_code` VALUES (131125000000, '安平县', 3, 131100000000); -INSERT INTO `zz_area_code` VALUES (131126000000, '故城县', 3, 131100000000); -INSERT INTO `zz_area_code` VALUES (131127000000, '景县', 3, 131100000000); -INSERT INTO `zz_area_code` VALUES (131128000000, '阜城县', 3, 131100000000); -INSERT INTO `zz_area_code` VALUES (131171000000, '河北衡水高新技术产业开发区', 3, 131100000000); -INSERT INTO `zz_area_code` VALUES (131172000000, '衡水滨湖新区', 3, 131100000000); -INSERT INTO `zz_area_code` VALUES (131182000000, '深州市', 3, 131100000000); -INSERT INTO `zz_area_code` VALUES (140000000000, '山西省', 1, NULL); -INSERT INTO `zz_area_code` VALUES (140100000000, '太原市', 2, 140000000000); -INSERT INTO `zz_area_code` VALUES (140101000000, '市辖区', 3, 140100000000); -INSERT INTO `zz_area_code` VALUES (140105000000, '小店区', 3, 140100000000); -INSERT INTO `zz_area_code` VALUES (140106000000, '迎泽区', 3, 140100000000); -INSERT INTO `zz_area_code` VALUES (140107000000, '杏花岭区', 3, 140100000000); -INSERT INTO `zz_area_code` VALUES (140108000000, '尖草坪区', 3, 140100000000); -INSERT INTO `zz_area_code` VALUES (140109000000, '万柏林区', 3, 140100000000); -INSERT INTO `zz_area_code` VALUES (140110000000, '晋源区', 3, 140100000000); -INSERT INTO `zz_area_code` VALUES (140121000000, '清徐县', 3, 140100000000); -INSERT INTO `zz_area_code` VALUES (140122000000, '阳曲县', 3, 140100000000); -INSERT INTO `zz_area_code` VALUES (140123000000, '娄烦县', 3, 140100000000); -INSERT INTO `zz_area_code` VALUES (140171000000, '山西转型综合改革示范区', 3, 140100000000); -INSERT INTO `zz_area_code` VALUES (140181000000, '古交市', 3, 140100000000); -INSERT INTO `zz_area_code` VALUES (140200000000, '大同市', 2, 140000000000); -INSERT INTO `zz_area_code` VALUES (140201000000, '市辖区', 3, 140200000000); -INSERT INTO `zz_area_code` VALUES (140212000000, '新荣区', 3, 140200000000); -INSERT INTO `zz_area_code` VALUES (140213000000, '平城区', 3, 140200000000); -INSERT INTO `zz_area_code` VALUES (140214000000, '云冈区', 3, 140200000000); -INSERT INTO `zz_area_code` VALUES (140215000000, '云州区', 3, 140200000000); -INSERT INTO `zz_area_code` VALUES (140221000000, '阳高县', 3, 140200000000); -INSERT INTO `zz_area_code` VALUES (140222000000, '天镇县', 3, 140200000000); -INSERT INTO `zz_area_code` VALUES (140223000000, '广灵县', 3, 140200000000); -INSERT INTO `zz_area_code` VALUES (140224000000, '灵丘县', 3, 140200000000); -INSERT INTO `zz_area_code` VALUES (140225000000, '浑源县', 3, 140200000000); -INSERT INTO `zz_area_code` VALUES (140226000000, '左云县', 3, 140200000000); -INSERT INTO `zz_area_code` VALUES (140271000000, '山西大同经济开发区', 3, 140200000000); -INSERT INTO `zz_area_code` VALUES (140300000000, '阳泉市', 2, 140000000000); -INSERT INTO `zz_area_code` VALUES (140301000000, '市辖区', 3, 140300000000); -INSERT INTO `zz_area_code` VALUES (140302000000, '城区', 3, 140300000000); -INSERT INTO `zz_area_code` VALUES (140303000000, '矿区', 3, 140300000000); -INSERT INTO `zz_area_code` VALUES (140311000000, '郊区', 3, 140300000000); -INSERT INTO `zz_area_code` VALUES (140321000000, '平定县', 3, 140300000000); -INSERT INTO `zz_area_code` VALUES (140322000000, '盂县', 3, 140300000000); -INSERT INTO `zz_area_code` VALUES (140400000000, '长治市', 2, 140000000000); -INSERT INTO `zz_area_code` VALUES (140401000000, '市辖区', 3, 140400000000); -INSERT INTO `zz_area_code` VALUES (140403000000, '潞州区', 3, 140400000000); -INSERT INTO `zz_area_code` VALUES (140404000000, '上党区', 3, 140400000000); -INSERT INTO `zz_area_code` VALUES (140405000000, '屯留区', 3, 140400000000); -INSERT INTO `zz_area_code` VALUES (140406000000, '潞城区', 3, 140400000000); -INSERT INTO `zz_area_code` VALUES (140423000000, '襄垣县', 3, 140400000000); -INSERT INTO `zz_area_code` VALUES (140425000000, '平顺县', 3, 140400000000); -INSERT INTO `zz_area_code` VALUES (140426000000, '黎城县', 3, 140400000000); -INSERT INTO `zz_area_code` VALUES (140427000000, '壶关县', 3, 140400000000); -INSERT INTO `zz_area_code` VALUES (140428000000, '长子县', 3, 140400000000); -INSERT INTO `zz_area_code` VALUES (140429000000, '武乡县', 3, 140400000000); -INSERT INTO `zz_area_code` VALUES (140430000000, '沁县', 3, 140400000000); -INSERT INTO `zz_area_code` VALUES (140431000000, '沁源县', 3, 140400000000); -INSERT INTO `zz_area_code` VALUES (140471000000, '山西长治高新技术产业园区', 3, 140400000000); -INSERT INTO `zz_area_code` VALUES (140500000000, '晋城市', 2, 140000000000); -INSERT INTO `zz_area_code` VALUES (140501000000, '市辖区', 3, 140500000000); -INSERT INTO `zz_area_code` VALUES (140502000000, '城区', 3, 140500000000); -INSERT INTO `zz_area_code` VALUES (140521000000, '沁水县', 3, 140500000000); -INSERT INTO `zz_area_code` VALUES (140522000000, '阳城县', 3, 140500000000); -INSERT INTO `zz_area_code` VALUES (140524000000, '陵川县', 3, 140500000000); -INSERT INTO `zz_area_code` VALUES (140525000000, '泽州县', 3, 140500000000); -INSERT INTO `zz_area_code` VALUES (140581000000, '高平市', 3, 140500000000); -INSERT INTO `zz_area_code` VALUES (140600000000, '朔州市', 2, 140000000000); -INSERT INTO `zz_area_code` VALUES (140601000000, '市辖区', 3, 140600000000); -INSERT INTO `zz_area_code` VALUES (140602000000, '朔城区', 3, 140600000000); -INSERT INTO `zz_area_code` VALUES (140603000000, '平鲁区', 3, 140600000000); -INSERT INTO `zz_area_code` VALUES (140621000000, '山阴县', 3, 140600000000); -INSERT INTO `zz_area_code` VALUES (140622000000, '应县', 3, 140600000000); -INSERT INTO `zz_area_code` VALUES (140623000000, '右玉县', 3, 140600000000); -INSERT INTO `zz_area_code` VALUES (140671000000, '山西朔州经济开发区', 3, 140600000000); -INSERT INTO `zz_area_code` VALUES (140681000000, '怀仁市', 3, 140600000000); -INSERT INTO `zz_area_code` VALUES (140700000000, '晋中市', 2, 140000000000); -INSERT INTO `zz_area_code` VALUES (140701000000, '市辖区', 3, 140700000000); -INSERT INTO `zz_area_code` VALUES (140702000000, '榆次区', 3, 140700000000); -INSERT INTO `zz_area_code` VALUES (140721000000, '榆社县', 3, 140700000000); -INSERT INTO `zz_area_code` VALUES (140722000000, '左权县', 3, 140700000000); -INSERT INTO `zz_area_code` VALUES (140723000000, '和顺县', 3, 140700000000); -INSERT INTO `zz_area_code` VALUES (140724000000, '昔阳县', 3, 140700000000); -INSERT INTO `zz_area_code` VALUES (140725000000, '寿阳县', 3, 140700000000); -INSERT INTO `zz_area_code` VALUES (140726000000, '太谷县', 3, 140700000000); -INSERT INTO `zz_area_code` VALUES (140727000000, '祁县', 3, 140700000000); -INSERT INTO `zz_area_code` VALUES (140728000000, '平遥县', 3, 140700000000); -INSERT INTO `zz_area_code` VALUES (140729000000, '灵石县', 3, 140700000000); -INSERT INTO `zz_area_code` VALUES (140781000000, '介休市', 3, 140700000000); -INSERT INTO `zz_area_code` VALUES (140800000000, '运城市', 2, 140000000000); -INSERT INTO `zz_area_code` VALUES (140801000000, '市辖区', 3, 140800000000); -INSERT INTO `zz_area_code` VALUES (140802000000, '盐湖区', 3, 140800000000); -INSERT INTO `zz_area_code` VALUES (140821000000, '临猗县', 3, 140800000000); -INSERT INTO `zz_area_code` VALUES (140822000000, '万荣县', 3, 140800000000); -INSERT INTO `zz_area_code` VALUES (140823000000, '闻喜县', 3, 140800000000); -INSERT INTO `zz_area_code` VALUES (140824000000, '稷山县', 3, 140800000000); -INSERT INTO `zz_area_code` VALUES (140825000000, '新绛县', 3, 140800000000); -INSERT INTO `zz_area_code` VALUES (140826000000, '绛县', 3, 140800000000); -INSERT INTO `zz_area_code` VALUES (140827000000, '垣曲县', 3, 140800000000); -INSERT INTO `zz_area_code` VALUES (140828000000, '夏县', 3, 140800000000); -INSERT INTO `zz_area_code` VALUES (140829000000, '平陆县', 3, 140800000000); -INSERT INTO `zz_area_code` VALUES (140830000000, '芮城县', 3, 140800000000); -INSERT INTO `zz_area_code` VALUES (140881000000, '永济市', 3, 140800000000); -INSERT INTO `zz_area_code` VALUES (140882000000, '河津市', 3, 140800000000); -INSERT INTO `zz_area_code` VALUES (140900000000, '忻州市', 2, 140000000000); -INSERT INTO `zz_area_code` VALUES (140901000000, '市辖区', 3, 140900000000); -INSERT INTO `zz_area_code` VALUES (140902000000, '忻府区', 3, 140900000000); -INSERT INTO `zz_area_code` VALUES (140921000000, '定襄县', 3, 140900000000); -INSERT INTO `zz_area_code` VALUES (140922000000, '五台县', 3, 140900000000); -INSERT INTO `zz_area_code` VALUES (140923000000, '代县', 3, 140900000000); -INSERT INTO `zz_area_code` VALUES (140924000000, '繁峙县', 3, 140900000000); -INSERT INTO `zz_area_code` VALUES (140925000000, '宁武县', 3, 140900000000); -INSERT INTO `zz_area_code` VALUES (140926000000, '静乐县', 3, 140900000000); -INSERT INTO `zz_area_code` VALUES (140927000000, '神池县', 3, 140900000000); -INSERT INTO `zz_area_code` VALUES (140928000000, '五寨县', 3, 140900000000); -INSERT INTO `zz_area_code` VALUES (140929000000, '岢岚县', 3, 140900000000); -INSERT INTO `zz_area_code` VALUES (140930000000, '河曲县', 3, 140900000000); -INSERT INTO `zz_area_code` VALUES (140931000000, '保德县', 3, 140900000000); -INSERT INTO `zz_area_code` VALUES (140932000000, '偏关县', 3, 140900000000); -INSERT INTO `zz_area_code` VALUES (140971000000, '五台山风景名胜区', 3, 140900000000); -INSERT INTO `zz_area_code` VALUES (140981000000, '原平市', 3, 140900000000); -INSERT INTO `zz_area_code` VALUES (141000000000, '临汾市', 2, 140000000000); -INSERT INTO `zz_area_code` VALUES (141001000000, '市辖区', 3, 141000000000); -INSERT INTO `zz_area_code` VALUES (141002000000, '尧都区', 3, 141000000000); -INSERT INTO `zz_area_code` VALUES (141021000000, '曲沃县', 3, 141000000000); -INSERT INTO `zz_area_code` VALUES (141022000000, '翼城县', 3, 141000000000); -INSERT INTO `zz_area_code` VALUES (141023000000, '襄汾县', 3, 141000000000); -INSERT INTO `zz_area_code` VALUES (141024000000, '洪洞县', 3, 141000000000); -INSERT INTO `zz_area_code` VALUES (141025000000, '古县', 3, 141000000000); -INSERT INTO `zz_area_code` VALUES (141026000000, '安泽县', 3, 141000000000); -INSERT INTO `zz_area_code` VALUES (141027000000, '浮山县', 3, 141000000000); -INSERT INTO `zz_area_code` VALUES (141028000000, '吉县', 3, 141000000000); -INSERT INTO `zz_area_code` VALUES (141029000000, '乡宁县', 3, 141000000000); -INSERT INTO `zz_area_code` VALUES (141030000000, '大宁县', 3, 141000000000); -INSERT INTO `zz_area_code` VALUES (141031000000, '隰县', 3, 141000000000); -INSERT INTO `zz_area_code` VALUES (141032000000, '永和县', 3, 141000000000); -INSERT INTO `zz_area_code` VALUES (141033000000, '蒲县', 3, 141000000000); -INSERT INTO `zz_area_code` VALUES (141034000000, '汾西县', 3, 141000000000); -INSERT INTO `zz_area_code` VALUES (141081000000, '侯马市', 3, 141000000000); -INSERT INTO `zz_area_code` VALUES (141082000000, '霍州市', 3, 141000000000); -INSERT INTO `zz_area_code` VALUES (141100000000, '吕梁市', 2, 140000000000); -INSERT INTO `zz_area_code` VALUES (141101000000, '市辖区', 3, 141100000000); -INSERT INTO `zz_area_code` VALUES (141102000000, '离石区', 3, 141100000000); -INSERT INTO `zz_area_code` VALUES (141121000000, '文水县', 3, 141100000000); -INSERT INTO `zz_area_code` VALUES (141122000000, '交城县', 3, 141100000000); -INSERT INTO `zz_area_code` VALUES (141123000000, '兴县', 3, 141100000000); -INSERT INTO `zz_area_code` VALUES (141124000000, '临县', 3, 141100000000); -INSERT INTO `zz_area_code` VALUES (141125000000, '柳林县', 3, 141100000000); -INSERT INTO `zz_area_code` VALUES (141126000000, '石楼县', 3, 141100000000); -INSERT INTO `zz_area_code` VALUES (141127000000, '岚县', 3, 141100000000); -INSERT INTO `zz_area_code` VALUES (141128000000, '方山县', 3, 141100000000); -INSERT INTO `zz_area_code` VALUES (141129000000, '中阳县', 3, 141100000000); -INSERT INTO `zz_area_code` VALUES (141130000000, '交口县', 3, 141100000000); -INSERT INTO `zz_area_code` VALUES (141181000000, '孝义市', 3, 141100000000); -INSERT INTO `zz_area_code` VALUES (141182000000, '汾阳市', 3, 141100000000); -INSERT INTO `zz_area_code` VALUES (150000000000, '内蒙古自治区', 1, NULL); -INSERT INTO `zz_area_code` VALUES (150100000000, '呼和浩特市', 2, 150000000000); -INSERT INTO `zz_area_code` VALUES (150101000000, '市辖区', 3, 150100000000); -INSERT INTO `zz_area_code` VALUES (150102000000, '新城区', 3, 150100000000); -INSERT INTO `zz_area_code` VALUES (150103000000, '回民区', 3, 150100000000); -INSERT INTO `zz_area_code` VALUES (150104000000, '玉泉区', 3, 150100000000); -INSERT INTO `zz_area_code` VALUES (150105000000, '赛罕区', 3, 150100000000); -INSERT INTO `zz_area_code` VALUES (150121000000, '土默特左旗', 3, 150100000000); -INSERT INTO `zz_area_code` VALUES (150122000000, '托克托县', 3, 150100000000); -INSERT INTO `zz_area_code` VALUES (150123000000, '和林格尔县', 3, 150100000000); -INSERT INTO `zz_area_code` VALUES (150124000000, '清水河县', 3, 150100000000); -INSERT INTO `zz_area_code` VALUES (150125000000, '武川县', 3, 150100000000); -INSERT INTO `zz_area_code` VALUES (150171000000, '呼和浩特金海工业园区', 3, 150100000000); -INSERT INTO `zz_area_code` VALUES (150172000000, '呼和浩特经济技术开发区', 3, 150100000000); -INSERT INTO `zz_area_code` VALUES (150200000000, '包头市', 2, 150000000000); -INSERT INTO `zz_area_code` VALUES (150201000000, '市辖区', 3, 150200000000); -INSERT INTO `zz_area_code` VALUES (150202000000, '东河区', 3, 150200000000); -INSERT INTO `zz_area_code` VALUES (150203000000, '昆都仑区', 3, 150200000000); -INSERT INTO `zz_area_code` VALUES (150204000000, '青山区', 3, 150200000000); -INSERT INTO `zz_area_code` VALUES (150205000000, '石拐区', 3, 150200000000); -INSERT INTO `zz_area_code` VALUES (150206000000, '白云鄂博矿区', 3, 150200000000); -INSERT INTO `zz_area_code` VALUES (150207000000, '九原区', 3, 150200000000); -INSERT INTO `zz_area_code` VALUES (150221000000, '土默特右旗', 3, 150200000000); -INSERT INTO `zz_area_code` VALUES (150222000000, '固阳县', 3, 150200000000); -INSERT INTO `zz_area_code` VALUES (150223000000, '达尔罕茂明安联合旗', 3, 150200000000); -INSERT INTO `zz_area_code` VALUES (150271000000, '包头稀土高新技术产业开发区', 3, 150200000000); -INSERT INTO `zz_area_code` VALUES (150300000000, '乌海市', 2, 150000000000); -INSERT INTO `zz_area_code` VALUES (150301000000, '市辖区', 3, 150300000000); -INSERT INTO `zz_area_code` VALUES (150302000000, '海勃湾区', 3, 150300000000); -INSERT INTO `zz_area_code` VALUES (150303000000, '海南区', 3, 150300000000); -INSERT INTO `zz_area_code` VALUES (150304000000, '乌达区', 3, 150300000000); -INSERT INTO `zz_area_code` VALUES (150400000000, '赤峰市', 2, 150000000000); -INSERT INTO `zz_area_code` VALUES (150401000000, '市辖区', 3, 150400000000); -INSERT INTO `zz_area_code` VALUES (150402000000, '红山区', 3, 150400000000); -INSERT INTO `zz_area_code` VALUES (150403000000, '元宝山区', 3, 150400000000); -INSERT INTO `zz_area_code` VALUES (150404000000, '松山区', 3, 150400000000); -INSERT INTO `zz_area_code` VALUES (150421000000, '阿鲁科尔沁旗', 3, 150400000000); -INSERT INTO `zz_area_code` VALUES (150422000000, '巴林左旗', 3, 150400000000); -INSERT INTO `zz_area_code` VALUES (150423000000, '巴林右旗', 3, 150400000000); -INSERT INTO `zz_area_code` VALUES (150424000000, '林西县', 3, 150400000000); -INSERT INTO `zz_area_code` VALUES (150425000000, '克什克腾旗', 3, 150400000000); -INSERT INTO `zz_area_code` VALUES (150426000000, '翁牛特旗', 3, 150400000000); -INSERT INTO `zz_area_code` VALUES (150428000000, '喀喇沁旗', 3, 150400000000); -INSERT INTO `zz_area_code` VALUES (150429000000, '宁城县', 3, 150400000000); -INSERT INTO `zz_area_code` VALUES (150430000000, '敖汉旗', 3, 150400000000); -INSERT INTO `zz_area_code` VALUES (150500000000, '通辽市', 2, 150000000000); -INSERT INTO `zz_area_code` VALUES (150501000000, '市辖区', 3, 150500000000); -INSERT INTO `zz_area_code` VALUES (150502000000, '科尔沁区', 3, 150500000000); -INSERT INTO `zz_area_code` VALUES (150521000000, '科尔沁左翼中旗', 3, 150500000000); -INSERT INTO `zz_area_code` VALUES (150522000000, '科尔沁左翼后旗', 3, 150500000000); -INSERT INTO `zz_area_code` VALUES (150523000000, '开鲁县', 3, 150500000000); -INSERT INTO `zz_area_code` VALUES (150524000000, '库伦旗', 3, 150500000000); -INSERT INTO `zz_area_code` VALUES (150525000000, '奈曼旗', 3, 150500000000); -INSERT INTO `zz_area_code` VALUES (150526000000, '扎鲁特旗', 3, 150500000000); -INSERT INTO `zz_area_code` VALUES (150571000000, '通辽经济技术开发区', 3, 150500000000); -INSERT INTO `zz_area_code` VALUES (150581000000, '霍林郭勒市', 3, 150500000000); -INSERT INTO `zz_area_code` VALUES (150600000000, '鄂尔多斯市', 2, 150000000000); -INSERT INTO `zz_area_code` VALUES (150601000000, '市辖区', 3, 150600000000); -INSERT INTO `zz_area_code` VALUES (150602000000, '东胜区', 3, 150600000000); -INSERT INTO `zz_area_code` VALUES (150603000000, '康巴什区', 3, 150600000000); -INSERT INTO `zz_area_code` VALUES (150621000000, '达拉特旗', 3, 150600000000); -INSERT INTO `zz_area_code` VALUES (150622000000, '准格尔旗', 3, 150600000000); -INSERT INTO `zz_area_code` VALUES (150623000000, '鄂托克前旗', 3, 150600000000); -INSERT INTO `zz_area_code` VALUES (150624000000, '鄂托克旗', 3, 150600000000); -INSERT INTO `zz_area_code` VALUES (150625000000, '杭锦旗', 3, 150600000000); -INSERT INTO `zz_area_code` VALUES (150626000000, '乌审旗', 3, 150600000000); -INSERT INTO `zz_area_code` VALUES (150627000000, '伊金霍洛旗', 3, 150600000000); -INSERT INTO `zz_area_code` VALUES (150700000000, '呼伦贝尔市', 2, 150000000000); -INSERT INTO `zz_area_code` VALUES (150701000000, '市辖区', 3, 150700000000); -INSERT INTO `zz_area_code` VALUES (150702000000, '海拉尔区', 3, 150700000000); -INSERT INTO `zz_area_code` VALUES (150703000000, '扎赉诺尔区', 3, 150700000000); -INSERT INTO `zz_area_code` VALUES (150721000000, '阿荣旗', 3, 150700000000); -INSERT INTO `zz_area_code` VALUES (150722000000, '莫力达瓦达斡尔族自治旗', 3, 150700000000); -INSERT INTO `zz_area_code` VALUES (150723000000, '鄂伦春自治旗', 3, 150700000000); -INSERT INTO `zz_area_code` VALUES (150724000000, '鄂温克族自治旗', 3, 150700000000); -INSERT INTO `zz_area_code` VALUES (150725000000, '陈巴尔虎旗', 3, 150700000000); -INSERT INTO `zz_area_code` VALUES (150726000000, '新巴尔虎左旗', 3, 150700000000); -INSERT INTO `zz_area_code` VALUES (150727000000, '新巴尔虎右旗', 3, 150700000000); -INSERT INTO `zz_area_code` VALUES (150781000000, '满洲里市', 3, 150700000000); -INSERT INTO `zz_area_code` VALUES (150782000000, '牙克石市', 3, 150700000000); -INSERT INTO `zz_area_code` VALUES (150783000000, '扎兰屯市', 3, 150700000000); -INSERT INTO `zz_area_code` VALUES (150784000000, '额尔古纳市', 3, 150700000000); -INSERT INTO `zz_area_code` VALUES (150785000000, '根河市', 3, 150700000000); -INSERT INTO `zz_area_code` VALUES (150800000000, '巴彦淖尔市', 2, 150000000000); -INSERT INTO `zz_area_code` VALUES (150801000000, '市辖区', 3, 150800000000); -INSERT INTO `zz_area_code` VALUES (150802000000, '临河区', 3, 150800000000); -INSERT INTO `zz_area_code` VALUES (150821000000, '五原县', 3, 150800000000); -INSERT INTO `zz_area_code` VALUES (150822000000, '磴口县', 3, 150800000000); -INSERT INTO `zz_area_code` VALUES (150823000000, '乌拉特前旗', 3, 150800000000); -INSERT INTO `zz_area_code` VALUES (150824000000, '乌拉特中旗', 3, 150800000000); -INSERT INTO `zz_area_code` VALUES (150825000000, '乌拉特后旗', 3, 150800000000); -INSERT INTO `zz_area_code` VALUES (150826000000, '杭锦后旗', 3, 150800000000); -INSERT INTO `zz_area_code` VALUES (150900000000, '乌兰察布市', 2, 150000000000); -INSERT INTO `zz_area_code` VALUES (150901000000, '市辖区', 3, 150900000000); -INSERT INTO `zz_area_code` VALUES (150902000000, '集宁区', 3, 150900000000); -INSERT INTO `zz_area_code` VALUES (150921000000, '卓资县', 3, 150900000000); -INSERT INTO `zz_area_code` VALUES (150922000000, '化德县', 3, 150900000000); -INSERT INTO `zz_area_code` VALUES (150923000000, '商都县', 3, 150900000000); -INSERT INTO `zz_area_code` VALUES (150924000000, '兴和县', 3, 150900000000); -INSERT INTO `zz_area_code` VALUES (150925000000, '凉城县', 3, 150900000000); -INSERT INTO `zz_area_code` VALUES (150926000000, '察哈尔右翼前旗', 3, 150900000000); -INSERT INTO `zz_area_code` VALUES (150927000000, '察哈尔右翼中旗', 3, 150900000000); -INSERT INTO `zz_area_code` VALUES (150928000000, '察哈尔右翼后旗', 3, 150900000000); -INSERT INTO `zz_area_code` VALUES (150929000000, '四子王旗', 3, 150900000000); -INSERT INTO `zz_area_code` VALUES (150981000000, '丰镇市', 3, 150900000000); -INSERT INTO `zz_area_code` VALUES (152200000000, '兴安盟', 2, 150000000000); -INSERT INTO `zz_area_code` VALUES (152201000000, '乌兰浩特市', 3, 152200000000); -INSERT INTO `zz_area_code` VALUES (152202000000, '阿尔山市', 3, 152200000000); -INSERT INTO `zz_area_code` VALUES (152221000000, '科尔沁右翼前旗', 3, 152200000000); -INSERT INTO `zz_area_code` VALUES (152222000000, '科尔沁右翼中旗', 3, 152200000000); -INSERT INTO `zz_area_code` VALUES (152223000000, '扎赉特旗', 3, 152200000000); -INSERT INTO `zz_area_code` VALUES (152224000000, '突泉县', 3, 152200000000); -INSERT INTO `zz_area_code` VALUES (152500000000, '锡林郭勒盟', 2, 150000000000); -INSERT INTO `zz_area_code` VALUES (152501000000, '二连浩特市', 3, 152500000000); -INSERT INTO `zz_area_code` VALUES (152502000000, '锡林浩特市', 3, 152500000000); -INSERT INTO `zz_area_code` VALUES (152522000000, '阿巴嘎旗', 3, 152500000000); -INSERT INTO `zz_area_code` VALUES (152523000000, '苏尼特左旗', 3, 152500000000); -INSERT INTO `zz_area_code` VALUES (152524000000, '苏尼特右旗', 3, 152500000000); -INSERT INTO `zz_area_code` VALUES (152525000000, '东乌珠穆沁旗', 3, 152500000000); -INSERT INTO `zz_area_code` VALUES (152526000000, '西乌珠穆沁旗', 3, 152500000000); -INSERT INTO `zz_area_code` VALUES (152527000000, '太仆寺旗', 3, 152500000000); -INSERT INTO `zz_area_code` VALUES (152528000000, '镶黄旗', 3, 152500000000); -INSERT INTO `zz_area_code` VALUES (152529000000, '正镶白旗', 3, 152500000000); -INSERT INTO `zz_area_code` VALUES (152530000000, '正蓝旗', 3, 152500000000); -INSERT INTO `zz_area_code` VALUES (152531000000, '多伦县', 3, 152500000000); -INSERT INTO `zz_area_code` VALUES (152571000000, '乌拉盖管委会', 3, 152500000000); -INSERT INTO `zz_area_code` VALUES (152900000000, '阿拉善盟', 2, 150000000000); -INSERT INTO `zz_area_code` VALUES (152921000000, '阿拉善左旗', 3, 152900000000); -INSERT INTO `zz_area_code` VALUES (152922000000, '阿拉善右旗', 3, 152900000000); -INSERT INTO `zz_area_code` VALUES (152923000000, '额济纳旗', 3, 152900000000); -INSERT INTO `zz_area_code` VALUES (152971000000, '内蒙古阿拉善经济开发区', 3, 152900000000); -INSERT INTO `zz_area_code` VALUES (210000000000, '辽宁省', 1, NULL); -INSERT INTO `zz_area_code` VALUES (210100000000, '沈阳市', 2, 210000000000); -INSERT INTO `zz_area_code` VALUES (210101000000, '市辖区', 3, 210100000000); -INSERT INTO `zz_area_code` VALUES (210102000000, '和平区', 3, 210100000000); -INSERT INTO `zz_area_code` VALUES (210103000000, '沈河区', 3, 210100000000); -INSERT INTO `zz_area_code` VALUES (210104000000, '大东区', 3, 210100000000); -INSERT INTO `zz_area_code` VALUES (210105000000, '皇姑区', 3, 210100000000); -INSERT INTO `zz_area_code` VALUES (210106000000, '铁西区', 3, 210100000000); -INSERT INTO `zz_area_code` VALUES (210111000000, '苏家屯区', 3, 210100000000); -INSERT INTO `zz_area_code` VALUES (210112000000, '浑南区', 3, 210100000000); -INSERT INTO `zz_area_code` VALUES (210113000000, '沈北新区', 3, 210100000000); -INSERT INTO `zz_area_code` VALUES (210114000000, '于洪区', 3, 210100000000); -INSERT INTO `zz_area_code` VALUES (210115000000, '辽中区', 3, 210100000000); -INSERT INTO `zz_area_code` VALUES (210123000000, '康平县', 3, 210100000000); -INSERT INTO `zz_area_code` VALUES (210124000000, '法库县', 3, 210100000000); -INSERT INTO `zz_area_code` VALUES (210181000000, '新民市', 3, 210100000000); -INSERT INTO `zz_area_code` VALUES (210200000000, '大连市', 2, 210000000000); -INSERT INTO `zz_area_code` VALUES (210201000000, '市辖区', 3, 210200000000); -INSERT INTO `zz_area_code` VALUES (210202000000, '中山区', 3, 210200000000); -INSERT INTO `zz_area_code` VALUES (210203000000, '西岗区', 3, 210200000000); -INSERT INTO `zz_area_code` VALUES (210204000000, '沙河口区', 3, 210200000000); -INSERT INTO `zz_area_code` VALUES (210211000000, '甘井子区', 3, 210200000000); -INSERT INTO `zz_area_code` VALUES (210212000000, '旅顺口区', 3, 210200000000); -INSERT INTO `zz_area_code` VALUES (210213000000, '金州区', 3, 210200000000); -INSERT INTO `zz_area_code` VALUES (210214000000, '普兰店区', 3, 210200000000); -INSERT INTO `zz_area_code` VALUES (210224000000, '长海县', 3, 210200000000); -INSERT INTO `zz_area_code` VALUES (210281000000, '瓦房店市', 3, 210200000000); -INSERT INTO `zz_area_code` VALUES (210283000000, '庄河市', 3, 210200000000); -INSERT INTO `zz_area_code` VALUES (210300000000, '鞍山市', 2, 210000000000); -INSERT INTO `zz_area_code` VALUES (210301000000, '市辖区', 3, 210300000000); -INSERT INTO `zz_area_code` VALUES (210302000000, '铁东区', 3, 210300000000); -INSERT INTO `zz_area_code` VALUES (210303000000, '铁西区', 3, 210300000000); -INSERT INTO `zz_area_code` VALUES (210304000000, '立山区', 3, 210300000000); -INSERT INTO `zz_area_code` VALUES (210311000000, '千山区', 3, 210300000000); -INSERT INTO `zz_area_code` VALUES (210321000000, '台安县', 3, 210300000000); -INSERT INTO `zz_area_code` VALUES (210323000000, '岫岩满族自治县', 3, 210300000000); -INSERT INTO `zz_area_code` VALUES (210381000000, '海城市', 3, 210300000000); -INSERT INTO `zz_area_code` VALUES (210400000000, '抚顺市', 2, 210000000000); -INSERT INTO `zz_area_code` VALUES (210401000000, '市辖区', 3, 210400000000); -INSERT INTO `zz_area_code` VALUES (210402000000, '新抚区', 3, 210400000000); -INSERT INTO `zz_area_code` VALUES (210403000000, '东洲区', 3, 210400000000); -INSERT INTO `zz_area_code` VALUES (210404000000, '望花区', 3, 210400000000); -INSERT INTO `zz_area_code` VALUES (210411000000, '顺城区', 3, 210400000000); -INSERT INTO `zz_area_code` VALUES (210421000000, '抚顺县', 3, 210400000000); -INSERT INTO `zz_area_code` VALUES (210422000000, '新宾满族自治县', 3, 210400000000); -INSERT INTO `zz_area_code` VALUES (210423000000, '清原满族自治县', 3, 210400000000); -INSERT INTO `zz_area_code` VALUES (210500000000, '本溪市', 2, 210000000000); -INSERT INTO `zz_area_code` VALUES (210501000000, '市辖区', 3, 210500000000); -INSERT INTO `zz_area_code` VALUES (210502000000, '平山区', 3, 210500000000); -INSERT INTO `zz_area_code` VALUES (210503000000, '溪湖区', 3, 210500000000); -INSERT INTO `zz_area_code` VALUES (210504000000, '明山区', 3, 210500000000); -INSERT INTO `zz_area_code` VALUES (210505000000, '南芬区', 3, 210500000000); -INSERT INTO `zz_area_code` VALUES (210521000000, '本溪满族自治县', 3, 210500000000); -INSERT INTO `zz_area_code` VALUES (210522000000, '桓仁满族自治县', 3, 210500000000); -INSERT INTO `zz_area_code` VALUES (210600000000, '丹东市', 2, 210000000000); -INSERT INTO `zz_area_code` VALUES (210601000000, '市辖区', 3, 210600000000); -INSERT INTO `zz_area_code` VALUES (210602000000, '元宝区', 3, 210600000000); -INSERT INTO `zz_area_code` VALUES (210603000000, '振兴区', 3, 210600000000); -INSERT INTO `zz_area_code` VALUES (210604000000, '振安区', 3, 210600000000); -INSERT INTO `zz_area_code` VALUES (210624000000, '宽甸满族自治县', 3, 210600000000); -INSERT INTO `zz_area_code` VALUES (210681000000, '东港市', 3, 210600000000); -INSERT INTO `zz_area_code` VALUES (210682000000, '凤城市', 3, 210600000000); -INSERT INTO `zz_area_code` VALUES (210700000000, '锦州市', 2, 210000000000); -INSERT INTO `zz_area_code` VALUES (210701000000, '市辖区', 3, 210700000000); -INSERT INTO `zz_area_code` VALUES (210702000000, '古塔区', 3, 210700000000); -INSERT INTO `zz_area_code` VALUES (210703000000, '凌河区', 3, 210700000000); -INSERT INTO `zz_area_code` VALUES (210711000000, '太和区', 3, 210700000000); -INSERT INTO `zz_area_code` VALUES (210726000000, '黑山县', 3, 210700000000); -INSERT INTO `zz_area_code` VALUES (210727000000, '义县', 3, 210700000000); -INSERT INTO `zz_area_code` VALUES (210781000000, '凌海市', 3, 210700000000); -INSERT INTO `zz_area_code` VALUES (210782000000, '北镇市', 3, 210700000000); -INSERT INTO `zz_area_code` VALUES (210800000000, '营口市', 2, 210000000000); -INSERT INTO `zz_area_code` VALUES (210801000000, '市辖区', 3, 210800000000); -INSERT INTO `zz_area_code` VALUES (210802000000, '站前区', 3, 210800000000); -INSERT INTO `zz_area_code` VALUES (210803000000, '西市区', 3, 210800000000); -INSERT INTO `zz_area_code` VALUES (210804000000, '鲅鱼圈区', 3, 210800000000); -INSERT INTO `zz_area_code` VALUES (210811000000, '老边区', 3, 210800000000); -INSERT INTO `zz_area_code` VALUES (210881000000, '盖州市', 3, 210800000000); -INSERT INTO `zz_area_code` VALUES (210882000000, '大石桥市', 3, 210800000000); -INSERT INTO `zz_area_code` VALUES (210900000000, '阜新市', 2, 210000000000); -INSERT INTO `zz_area_code` VALUES (210901000000, '市辖区', 3, 210900000000); -INSERT INTO `zz_area_code` VALUES (210902000000, '海州区', 3, 210900000000); -INSERT INTO `zz_area_code` VALUES (210903000000, '新邱区', 3, 210900000000); -INSERT INTO `zz_area_code` VALUES (210904000000, '太平区', 3, 210900000000); -INSERT INTO `zz_area_code` VALUES (210905000000, '清河门区', 3, 210900000000); -INSERT INTO `zz_area_code` VALUES (210911000000, '细河区', 3, 210900000000); -INSERT INTO `zz_area_code` VALUES (210921000000, '阜新蒙古族自治县', 3, 210900000000); -INSERT INTO `zz_area_code` VALUES (210922000000, '彰武县', 3, 210900000000); -INSERT INTO `zz_area_code` VALUES (211000000000, '辽阳市', 2, 210000000000); -INSERT INTO `zz_area_code` VALUES (211001000000, '市辖区', 3, 211000000000); -INSERT INTO `zz_area_code` VALUES (211002000000, '白塔区', 3, 211000000000); -INSERT INTO `zz_area_code` VALUES (211003000000, '文圣区', 3, 211000000000); -INSERT INTO `zz_area_code` VALUES (211004000000, '宏伟区', 3, 211000000000); -INSERT INTO `zz_area_code` VALUES (211005000000, '弓长岭区', 3, 211000000000); -INSERT INTO `zz_area_code` VALUES (211011000000, '太子河区', 3, 211000000000); -INSERT INTO `zz_area_code` VALUES (211021000000, '辽阳县', 3, 211000000000); -INSERT INTO `zz_area_code` VALUES (211081000000, '灯塔市', 3, 211000000000); -INSERT INTO `zz_area_code` VALUES (211100000000, '盘锦市', 2, 210000000000); -INSERT INTO `zz_area_code` VALUES (211101000000, '市辖区', 3, 211100000000); -INSERT INTO `zz_area_code` VALUES (211102000000, '双台子区', 3, 211100000000); -INSERT INTO `zz_area_code` VALUES (211103000000, '兴隆台区', 3, 211100000000); -INSERT INTO `zz_area_code` VALUES (211104000000, '大洼区', 3, 211100000000); -INSERT INTO `zz_area_code` VALUES (211122000000, '盘山县', 3, 211100000000); -INSERT INTO `zz_area_code` VALUES (211200000000, '铁岭市', 2, 210000000000); -INSERT INTO `zz_area_code` VALUES (211201000000, '市辖区', 3, 211200000000); -INSERT INTO `zz_area_code` VALUES (211202000000, '银州区', 3, 211200000000); -INSERT INTO `zz_area_code` VALUES (211204000000, '清河区', 3, 211200000000); -INSERT INTO `zz_area_code` VALUES (211221000000, '铁岭县', 3, 211200000000); -INSERT INTO `zz_area_code` VALUES (211223000000, '西丰县', 3, 211200000000); -INSERT INTO `zz_area_code` VALUES (211224000000, '昌图县', 3, 211200000000); -INSERT INTO `zz_area_code` VALUES (211281000000, '调兵山市', 3, 211200000000); -INSERT INTO `zz_area_code` VALUES (211282000000, '开原市', 3, 211200000000); -INSERT INTO `zz_area_code` VALUES (211300000000, '朝阳市', 2, 210000000000); -INSERT INTO `zz_area_code` VALUES (211301000000, '市辖区', 3, 211300000000); -INSERT INTO `zz_area_code` VALUES (211302000000, '双塔区', 3, 211300000000); -INSERT INTO `zz_area_code` VALUES (211303000000, '龙城区', 3, 211300000000); -INSERT INTO `zz_area_code` VALUES (211321000000, '朝阳县', 3, 211300000000); -INSERT INTO `zz_area_code` VALUES (211322000000, '建平县', 3, 211300000000); -INSERT INTO `zz_area_code` VALUES (211324000000, '喀喇沁左翼蒙古族自治县', 3, 211300000000); -INSERT INTO `zz_area_code` VALUES (211381000000, '北票市', 3, 211300000000); -INSERT INTO `zz_area_code` VALUES (211382000000, '凌源市', 3, 211300000000); -INSERT INTO `zz_area_code` VALUES (211400000000, '葫芦岛市', 2, 210000000000); -INSERT INTO `zz_area_code` VALUES (211401000000, '市辖区', 3, 211400000000); -INSERT INTO `zz_area_code` VALUES (211402000000, '连山区', 3, 211400000000); -INSERT INTO `zz_area_code` VALUES (211403000000, '龙港区', 3, 211400000000); -INSERT INTO `zz_area_code` VALUES (211404000000, '南票区', 3, 211400000000); -INSERT INTO `zz_area_code` VALUES (211421000000, '绥中县', 3, 211400000000); -INSERT INTO `zz_area_code` VALUES (211422000000, '建昌县', 3, 211400000000); -INSERT INTO `zz_area_code` VALUES (211481000000, '兴城市', 3, 211400000000); -INSERT INTO `zz_area_code` VALUES (220000000000, '吉林省', 1, NULL); -INSERT INTO `zz_area_code` VALUES (220100000000, '长春市', 2, 220000000000); -INSERT INTO `zz_area_code` VALUES (220101000000, '市辖区', 3, 220100000000); -INSERT INTO `zz_area_code` VALUES (220102000000, '南关区', 3, 220100000000); -INSERT INTO `zz_area_code` VALUES (220103000000, '宽城区', 3, 220100000000); -INSERT INTO `zz_area_code` VALUES (220104000000, '朝阳区', 3, 220100000000); -INSERT INTO `zz_area_code` VALUES (220105000000, '二道区', 3, 220100000000); -INSERT INTO `zz_area_code` VALUES (220106000000, '绿园区', 3, 220100000000); -INSERT INTO `zz_area_code` VALUES (220112000000, '双阳区', 3, 220100000000); -INSERT INTO `zz_area_code` VALUES (220113000000, '九台区', 3, 220100000000); -INSERT INTO `zz_area_code` VALUES (220122000000, '农安县', 3, 220100000000); -INSERT INTO `zz_area_code` VALUES (220171000000, '长春经济技术开发区', 3, 220100000000); -INSERT INTO `zz_area_code` VALUES (220172000000, '长春净月高新技术产业开发区', 3, 220100000000); -INSERT INTO `zz_area_code` VALUES (220173000000, '长春高新技术产业开发区', 3, 220100000000); -INSERT INTO `zz_area_code` VALUES (220174000000, '长春汽车经济技术开发区', 3, 220100000000); -INSERT INTO `zz_area_code` VALUES (220182000000, '榆树市', 3, 220100000000); -INSERT INTO `zz_area_code` VALUES (220183000000, '德惠市', 3, 220100000000); -INSERT INTO `zz_area_code` VALUES (220200000000, '吉林市', 2, 220000000000); -INSERT INTO `zz_area_code` VALUES (220201000000, '市辖区', 3, 220200000000); -INSERT INTO `zz_area_code` VALUES (220202000000, '昌邑区', 3, 220200000000); -INSERT INTO `zz_area_code` VALUES (220203000000, '龙潭区', 3, 220200000000); -INSERT INTO `zz_area_code` VALUES (220204000000, '船营区', 3, 220200000000); -INSERT INTO `zz_area_code` VALUES (220211000000, '丰满区', 3, 220200000000); -INSERT INTO `zz_area_code` VALUES (220221000000, '永吉县', 3, 220200000000); -INSERT INTO `zz_area_code` VALUES (220271000000, '吉林经济开发区', 3, 220200000000); -INSERT INTO `zz_area_code` VALUES (220272000000, '吉林高新技术产业开发区', 3, 220200000000); -INSERT INTO `zz_area_code` VALUES (220273000000, '吉林中国新加坡食品区', 3, 220200000000); -INSERT INTO `zz_area_code` VALUES (220281000000, '蛟河市', 3, 220200000000); -INSERT INTO `zz_area_code` VALUES (220282000000, '桦甸市', 3, 220200000000); -INSERT INTO `zz_area_code` VALUES (220283000000, '舒兰市', 3, 220200000000); -INSERT INTO `zz_area_code` VALUES (220284000000, '磐石市', 3, 220200000000); -INSERT INTO `zz_area_code` VALUES (220300000000, '四平市', 2, 220000000000); -INSERT INTO `zz_area_code` VALUES (220301000000, '市辖区', 3, 220300000000); -INSERT INTO `zz_area_code` VALUES (220302000000, '铁西区', 3, 220300000000); -INSERT INTO `zz_area_code` VALUES (220303000000, '铁东区', 3, 220300000000); -INSERT INTO `zz_area_code` VALUES (220322000000, '梨树县', 3, 220300000000); -INSERT INTO `zz_area_code` VALUES (220323000000, '伊通满族自治县', 3, 220300000000); -INSERT INTO `zz_area_code` VALUES (220381000000, '公主岭市', 3, 220300000000); -INSERT INTO `zz_area_code` VALUES (220382000000, '双辽市', 3, 220300000000); -INSERT INTO `zz_area_code` VALUES (220400000000, '辽源市', 2, 220000000000); -INSERT INTO `zz_area_code` VALUES (220401000000, '市辖区', 3, 220400000000); -INSERT INTO `zz_area_code` VALUES (220402000000, '龙山区', 3, 220400000000); -INSERT INTO `zz_area_code` VALUES (220403000000, '西安区', 3, 220400000000); -INSERT INTO `zz_area_code` VALUES (220421000000, '东丰县', 3, 220400000000); -INSERT INTO `zz_area_code` VALUES (220422000000, '东辽县', 3, 220400000000); -INSERT INTO `zz_area_code` VALUES (220500000000, '通化市', 2, 220000000000); -INSERT INTO `zz_area_code` VALUES (220501000000, '市辖区', 3, 220500000000); -INSERT INTO `zz_area_code` VALUES (220502000000, '东昌区', 3, 220500000000); -INSERT INTO `zz_area_code` VALUES (220503000000, '二道江区', 3, 220500000000); -INSERT INTO `zz_area_code` VALUES (220521000000, '通化县', 3, 220500000000); -INSERT INTO `zz_area_code` VALUES (220523000000, '辉南县', 3, 220500000000); -INSERT INTO `zz_area_code` VALUES (220524000000, '柳河县', 3, 220500000000); -INSERT INTO `zz_area_code` VALUES (220581000000, '梅河口市', 3, 220500000000); -INSERT INTO `zz_area_code` VALUES (220582000000, '集安市', 3, 220500000000); -INSERT INTO `zz_area_code` VALUES (220600000000, '白山市', 2, 220000000000); -INSERT INTO `zz_area_code` VALUES (220601000000, '市辖区', 3, 220600000000); -INSERT INTO `zz_area_code` VALUES (220602000000, '浑江区', 3, 220600000000); -INSERT INTO `zz_area_code` VALUES (220605000000, '江源区', 3, 220600000000); -INSERT INTO `zz_area_code` VALUES (220621000000, '抚松县', 3, 220600000000); -INSERT INTO `zz_area_code` VALUES (220622000000, '靖宇县', 3, 220600000000); -INSERT INTO `zz_area_code` VALUES (220623000000, '长白朝鲜族自治县', 3, 220600000000); -INSERT INTO `zz_area_code` VALUES (220681000000, '临江市', 3, 220600000000); -INSERT INTO `zz_area_code` VALUES (220700000000, '松原市', 2, 220000000000); -INSERT INTO `zz_area_code` VALUES (220701000000, '市辖区', 3, 220700000000); -INSERT INTO `zz_area_code` VALUES (220702000000, '宁江区', 3, 220700000000); -INSERT INTO `zz_area_code` VALUES (220721000000, '前郭尔罗斯蒙古族自治县', 3, 220700000000); -INSERT INTO `zz_area_code` VALUES (220722000000, '长岭县', 3, 220700000000); -INSERT INTO `zz_area_code` VALUES (220723000000, '乾安县', 3, 220700000000); -INSERT INTO `zz_area_code` VALUES (220771000000, '吉林松原经济开发区', 3, 220700000000); -INSERT INTO `zz_area_code` VALUES (220781000000, '扶余市', 3, 220700000000); -INSERT INTO `zz_area_code` VALUES (220800000000, '白城市', 2, 220000000000); -INSERT INTO `zz_area_code` VALUES (220801000000, '市辖区', 3, 220800000000); -INSERT INTO `zz_area_code` VALUES (220802000000, '洮北区', 3, 220800000000); -INSERT INTO `zz_area_code` VALUES (220821000000, '镇赉县', 3, 220800000000); -INSERT INTO `zz_area_code` VALUES (220822000000, '通榆县', 3, 220800000000); -INSERT INTO `zz_area_code` VALUES (220871000000, '吉林白城经济开发区', 3, 220800000000); -INSERT INTO `zz_area_code` VALUES (220881000000, '洮南市', 3, 220800000000); -INSERT INTO `zz_area_code` VALUES (220882000000, '大安市', 3, 220800000000); -INSERT INTO `zz_area_code` VALUES (222400000000, '延边朝鲜族自治州', 2, 220000000000); -INSERT INTO `zz_area_code` VALUES (222401000000, '延吉市', 3, 222400000000); -INSERT INTO `zz_area_code` VALUES (222402000000, '图们市', 3, 222400000000); -INSERT INTO `zz_area_code` VALUES (222403000000, '敦化市', 3, 222400000000); -INSERT INTO `zz_area_code` VALUES (222404000000, '珲春市', 3, 222400000000); -INSERT INTO `zz_area_code` VALUES (222405000000, '龙井市', 3, 222400000000); -INSERT INTO `zz_area_code` VALUES (222406000000, '和龙市', 3, 222400000000); -INSERT INTO `zz_area_code` VALUES (222424000000, '汪清县', 3, 222400000000); -INSERT INTO `zz_area_code` VALUES (222426000000, '安图县', 3, 222400000000); -INSERT INTO `zz_area_code` VALUES (230000000000, '黑龙江省', 1, NULL); -INSERT INTO `zz_area_code` VALUES (230100000000, '哈尔滨市', 2, 230000000000); -INSERT INTO `zz_area_code` VALUES (230101000000, '市辖区', 3, 230100000000); -INSERT INTO `zz_area_code` VALUES (230102000000, '道里区', 3, 230100000000); -INSERT INTO `zz_area_code` VALUES (230103000000, '南岗区', 3, 230100000000); -INSERT INTO `zz_area_code` VALUES (230104000000, '道外区', 3, 230100000000); -INSERT INTO `zz_area_code` VALUES (230108000000, '平房区', 3, 230100000000); -INSERT INTO `zz_area_code` VALUES (230109000000, '松北区', 3, 230100000000); -INSERT INTO `zz_area_code` VALUES (230110000000, '香坊区', 3, 230100000000); -INSERT INTO `zz_area_code` VALUES (230111000000, '呼兰区', 3, 230100000000); -INSERT INTO `zz_area_code` VALUES (230112000000, '阿城区', 3, 230100000000); -INSERT INTO `zz_area_code` VALUES (230113000000, '双城区', 3, 230100000000); -INSERT INTO `zz_area_code` VALUES (230123000000, '依兰县', 3, 230100000000); -INSERT INTO `zz_area_code` VALUES (230124000000, '方正县', 3, 230100000000); -INSERT INTO `zz_area_code` VALUES (230125000000, '宾县', 3, 230100000000); -INSERT INTO `zz_area_code` VALUES (230126000000, '巴彦县', 3, 230100000000); -INSERT INTO `zz_area_code` VALUES (230127000000, '木兰县', 3, 230100000000); -INSERT INTO `zz_area_code` VALUES (230128000000, '通河县', 3, 230100000000); -INSERT INTO `zz_area_code` VALUES (230129000000, '延寿县', 3, 230100000000); -INSERT INTO `zz_area_code` VALUES (230183000000, '尚志市', 3, 230100000000); -INSERT INTO `zz_area_code` VALUES (230184000000, '五常市', 3, 230100000000); -INSERT INTO `zz_area_code` VALUES (230200000000, '齐齐哈尔市', 2, 230000000000); -INSERT INTO `zz_area_code` VALUES (230201000000, '市辖区', 3, 230200000000); -INSERT INTO `zz_area_code` VALUES (230202000000, '龙沙区', 3, 230200000000); -INSERT INTO `zz_area_code` VALUES (230203000000, '建华区', 3, 230200000000); -INSERT INTO `zz_area_code` VALUES (230204000000, '铁锋区', 3, 230200000000); -INSERT INTO `zz_area_code` VALUES (230205000000, '昂昂溪区', 3, 230200000000); -INSERT INTO `zz_area_code` VALUES (230206000000, '富拉尔基区', 3, 230200000000); -INSERT INTO `zz_area_code` VALUES (230207000000, '碾子山区', 3, 230200000000); -INSERT INTO `zz_area_code` VALUES (230208000000, '梅里斯达斡尔族区', 3, 230200000000); -INSERT INTO `zz_area_code` VALUES (230221000000, '龙江县', 3, 230200000000); -INSERT INTO `zz_area_code` VALUES (230223000000, '依安县', 3, 230200000000); -INSERT INTO `zz_area_code` VALUES (230224000000, '泰来县', 3, 230200000000); -INSERT INTO `zz_area_code` VALUES (230225000000, '甘南县', 3, 230200000000); -INSERT INTO `zz_area_code` VALUES (230227000000, '富裕县', 3, 230200000000); -INSERT INTO `zz_area_code` VALUES (230229000000, '克山县', 3, 230200000000); -INSERT INTO `zz_area_code` VALUES (230230000000, '克东县', 3, 230200000000); -INSERT INTO `zz_area_code` VALUES (230231000000, '拜泉县', 3, 230200000000); -INSERT INTO `zz_area_code` VALUES (230281000000, '讷河市', 3, 230200000000); -INSERT INTO `zz_area_code` VALUES (230300000000, '鸡西市', 2, 230000000000); -INSERT INTO `zz_area_code` VALUES (230301000000, '市辖区', 3, 230300000000); -INSERT INTO `zz_area_code` VALUES (230302000000, '鸡冠区', 3, 230300000000); -INSERT INTO `zz_area_code` VALUES (230303000000, '恒山区', 3, 230300000000); -INSERT INTO `zz_area_code` VALUES (230304000000, '滴道区', 3, 230300000000); -INSERT INTO `zz_area_code` VALUES (230305000000, '梨树区', 3, 230300000000); -INSERT INTO `zz_area_code` VALUES (230306000000, '城子河区', 3, 230300000000); -INSERT INTO `zz_area_code` VALUES (230307000000, '麻山区', 3, 230300000000); -INSERT INTO `zz_area_code` VALUES (230321000000, '鸡东县', 3, 230300000000); -INSERT INTO `zz_area_code` VALUES (230381000000, '虎林市', 3, 230300000000); -INSERT INTO `zz_area_code` VALUES (230382000000, '密山市', 3, 230300000000); -INSERT INTO `zz_area_code` VALUES (230400000000, '鹤岗市', 2, 230000000000); -INSERT INTO `zz_area_code` VALUES (230401000000, '市辖区', 3, 230400000000); -INSERT INTO `zz_area_code` VALUES (230402000000, '向阳区', 3, 230400000000); -INSERT INTO `zz_area_code` VALUES (230403000000, '工农区', 3, 230400000000); -INSERT INTO `zz_area_code` VALUES (230404000000, '南山区', 3, 230400000000); -INSERT INTO `zz_area_code` VALUES (230405000000, '兴安区', 3, 230400000000); -INSERT INTO `zz_area_code` VALUES (230406000000, '东山区', 3, 230400000000); -INSERT INTO `zz_area_code` VALUES (230407000000, '兴山区', 3, 230400000000); -INSERT INTO `zz_area_code` VALUES (230421000000, '萝北县', 3, 230400000000); -INSERT INTO `zz_area_code` VALUES (230422000000, '绥滨县', 3, 230400000000); -INSERT INTO `zz_area_code` VALUES (230500000000, '双鸭山市', 2, 230000000000); -INSERT INTO `zz_area_code` VALUES (230501000000, '市辖区', 3, 230500000000); -INSERT INTO `zz_area_code` VALUES (230502000000, '尖山区', 3, 230500000000); -INSERT INTO `zz_area_code` VALUES (230503000000, '岭东区', 3, 230500000000); -INSERT INTO `zz_area_code` VALUES (230505000000, '四方台区', 3, 230500000000); -INSERT INTO `zz_area_code` VALUES (230506000000, '宝山区', 3, 230500000000); -INSERT INTO `zz_area_code` VALUES (230521000000, '集贤县', 3, 230500000000); -INSERT INTO `zz_area_code` VALUES (230522000000, '友谊县', 3, 230500000000); -INSERT INTO `zz_area_code` VALUES (230523000000, '宝清县', 3, 230500000000); -INSERT INTO `zz_area_code` VALUES (230524000000, '饶河县', 3, 230500000000); -INSERT INTO `zz_area_code` VALUES (230600000000, '大庆市', 2, 230000000000); -INSERT INTO `zz_area_code` VALUES (230601000000, '市辖区', 3, 230600000000); -INSERT INTO `zz_area_code` VALUES (230602000000, '萨尔图区', 3, 230600000000); -INSERT INTO `zz_area_code` VALUES (230603000000, '龙凤区', 3, 230600000000); -INSERT INTO `zz_area_code` VALUES (230604000000, '让胡路区', 3, 230600000000); -INSERT INTO `zz_area_code` VALUES (230605000000, '红岗区', 3, 230600000000); -INSERT INTO `zz_area_code` VALUES (230606000000, '大同区', 3, 230600000000); -INSERT INTO `zz_area_code` VALUES (230621000000, '肇州县', 3, 230600000000); -INSERT INTO `zz_area_code` VALUES (230622000000, '肇源县', 3, 230600000000); -INSERT INTO `zz_area_code` VALUES (230623000000, '林甸县', 3, 230600000000); -INSERT INTO `zz_area_code` VALUES (230624000000, '杜尔伯特蒙古族自治县', 3, 230600000000); -INSERT INTO `zz_area_code` VALUES (230671000000, '大庆高新技术产业开发区', 3, 230600000000); -INSERT INTO `zz_area_code` VALUES (230700000000, '伊春市', 2, 230000000000); -INSERT INTO `zz_area_code` VALUES (230701000000, '市辖区', 3, 230700000000); -INSERT INTO `zz_area_code` VALUES (230702000000, '伊春区', 3, 230700000000); -INSERT INTO `zz_area_code` VALUES (230703000000, '南岔区', 3, 230700000000); -INSERT INTO `zz_area_code` VALUES (230704000000, '友好区', 3, 230700000000); -INSERT INTO `zz_area_code` VALUES (230705000000, '西林区', 3, 230700000000); -INSERT INTO `zz_area_code` VALUES (230706000000, '翠峦区', 3, 230700000000); -INSERT INTO `zz_area_code` VALUES (230707000000, '新青区', 3, 230700000000); -INSERT INTO `zz_area_code` VALUES (230708000000, '美溪区', 3, 230700000000); -INSERT INTO `zz_area_code` VALUES (230709000000, '金山屯区', 3, 230700000000); -INSERT INTO `zz_area_code` VALUES (230710000000, '五营区', 3, 230700000000); -INSERT INTO `zz_area_code` VALUES (230711000000, '乌马河区', 3, 230700000000); -INSERT INTO `zz_area_code` VALUES (230712000000, '汤旺河区', 3, 230700000000); -INSERT INTO `zz_area_code` VALUES (230713000000, '带岭区', 3, 230700000000); -INSERT INTO `zz_area_code` VALUES (230714000000, '乌伊岭区', 3, 230700000000); -INSERT INTO `zz_area_code` VALUES (230715000000, '红星区', 3, 230700000000); -INSERT INTO `zz_area_code` VALUES (230716000000, '上甘岭区', 3, 230700000000); -INSERT INTO `zz_area_code` VALUES (230722000000, '嘉荫县', 3, 230700000000); -INSERT INTO `zz_area_code` VALUES (230781000000, '铁力市', 3, 230700000000); -INSERT INTO `zz_area_code` VALUES (230800000000, '佳木斯市', 2, 230000000000); -INSERT INTO `zz_area_code` VALUES (230801000000, '市辖区', 3, 230800000000); -INSERT INTO `zz_area_code` VALUES (230803000000, '向阳区', 3, 230800000000); -INSERT INTO `zz_area_code` VALUES (230804000000, '前进区', 3, 230800000000); -INSERT INTO `zz_area_code` VALUES (230805000000, '东风区', 3, 230800000000); -INSERT INTO `zz_area_code` VALUES (230811000000, '郊区', 3, 230800000000); -INSERT INTO `zz_area_code` VALUES (230822000000, '桦南县', 3, 230800000000); -INSERT INTO `zz_area_code` VALUES (230826000000, '桦川县', 3, 230800000000); -INSERT INTO `zz_area_code` VALUES (230828000000, '汤原县', 3, 230800000000); -INSERT INTO `zz_area_code` VALUES (230881000000, '同江市', 3, 230800000000); -INSERT INTO `zz_area_code` VALUES (230882000000, '富锦市', 3, 230800000000); -INSERT INTO `zz_area_code` VALUES (230883000000, '抚远市', 3, 230800000000); -INSERT INTO `zz_area_code` VALUES (230900000000, '七台河市', 2, 230000000000); -INSERT INTO `zz_area_code` VALUES (230901000000, '市辖区', 3, 230900000000); -INSERT INTO `zz_area_code` VALUES (230902000000, '新兴区', 3, 230900000000); -INSERT INTO `zz_area_code` VALUES (230903000000, '桃山区', 3, 230900000000); -INSERT INTO `zz_area_code` VALUES (230904000000, '茄子河区', 3, 230900000000); -INSERT INTO `zz_area_code` VALUES (230921000000, '勃利县', 3, 230900000000); -INSERT INTO `zz_area_code` VALUES (231000000000, '牡丹江市', 2, 230000000000); -INSERT INTO `zz_area_code` VALUES (231001000000, '市辖区', 3, 231000000000); -INSERT INTO `zz_area_code` VALUES (231002000000, '东安区', 3, 231000000000); -INSERT INTO `zz_area_code` VALUES (231003000000, '阳明区', 3, 231000000000); -INSERT INTO `zz_area_code` VALUES (231004000000, '爱民区', 3, 231000000000); -INSERT INTO `zz_area_code` VALUES (231005000000, '西安区', 3, 231000000000); -INSERT INTO `zz_area_code` VALUES (231025000000, '林口县', 3, 231000000000); -INSERT INTO `zz_area_code` VALUES (231071000000, '牡丹江经济技术开发区', 3, 231000000000); -INSERT INTO `zz_area_code` VALUES (231081000000, '绥芬河市', 3, 231000000000); -INSERT INTO `zz_area_code` VALUES (231083000000, '海林市', 3, 231000000000); -INSERT INTO `zz_area_code` VALUES (231084000000, '宁安市', 3, 231000000000); -INSERT INTO `zz_area_code` VALUES (231085000000, '穆棱市', 3, 231000000000); -INSERT INTO `zz_area_code` VALUES (231086000000, '东宁市', 3, 231000000000); -INSERT INTO `zz_area_code` VALUES (231100000000, '黑河市', 2, 230000000000); -INSERT INTO `zz_area_code` VALUES (231101000000, '市辖区', 3, 231100000000); -INSERT INTO `zz_area_code` VALUES (231102000000, '爱辉区', 3, 231100000000); -INSERT INTO `zz_area_code` VALUES (231121000000, '嫩江县', 3, 231100000000); -INSERT INTO `zz_area_code` VALUES (231123000000, '逊克县', 3, 231100000000); -INSERT INTO `zz_area_code` VALUES (231124000000, '孙吴县', 3, 231100000000); -INSERT INTO `zz_area_code` VALUES (231181000000, '北安市', 3, 231100000000); -INSERT INTO `zz_area_code` VALUES (231182000000, '五大连池市', 3, 231100000000); -INSERT INTO `zz_area_code` VALUES (231200000000, '绥化市', 2, 230000000000); -INSERT INTO `zz_area_code` VALUES (231201000000, '市辖区', 3, 231200000000); -INSERT INTO `zz_area_code` VALUES (231202000000, '北林区', 3, 231200000000); -INSERT INTO `zz_area_code` VALUES (231221000000, '望奎县', 3, 231200000000); -INSERT INTO `zz_area_code` VALUES (231222000000, '兰西县', 3, 231200000000); -INSERT INTO `zz_area_code` VALUES (231223000000, '青冈县', 3, 231200000000); -INSERT INTO `zz_area_code` VALUES (231224000000, '庆安县', 3, 231200000000); -INSERT INTO `zz_area_code` VALUES (231225000000, '明水县', 3, 231200000000); -INSERT INTO `zz_area_code` VALUES (231226000000, '绥棱县', 3, 231200000000); -INSERT INTO `zz_area_code` VALUES (231281000000, '安达市', 3, 231200000000); -INSERT INTO `zz_area_code` VALUES (231282000000, '肇东市', 3, 231200000000); -INSERT INTO `zz_area_code` VALUES (231283000000, '海伦市', 3, 231200000000); -INSERT INTO `zz_area_code` VALUES (232700000000, '大兴安岭地区', 2, 230000000000); -INSERT INTO `zz_area_code` VALUES (232701000000, '漠河市', 3, 232700000000); -INSERT INTO `zz_area_code` VALUES (232721000000, '呼玛县', 3, 232700000000); -INSERT INTO `zz_area_code` VALUES (232722000000, '塔河县', 3, 232700000000); -INSERT INTO `zz_area_code` VALUES (232761000000, '加格达奇区', 3, 232700000000); -INSERT INTO `zz_area_code` VALUES (232762000000, '松岭区', 3, 232700000000); -INSERT INTO `zz_area_code` VALUES (232763000000, '新林区', 3, 232700000000); -INSERT INTO `zz_area_code` VALUES (232764000000, '呼中区', 3, 232700000000); -INSERT INTO `zz_area_code` VALUES (310000000000, '上海市', 1, NULL); -INSERT INTO `zz_area_code` VALUES (310100000000, '市辖区', 2, 310000000000); -INSERT INTO `zz_area_code` VALUES (310101000000, '黄浦区', 3, 310100000000); -INSERT INTO `zz_area_code` VALUES (310104000000, '徐汇区', 3, 310100000000); -INSERT INTO `zz_area_code` VALUES (310105000000, '长宁区', 3, 310100000000); -INSERT INTO `zz_area_code` VALUES (310106000000, '静安区', 3, 310100000000); -INSERT INTO `zz_area_code` VALUES (310107000000, '普陀区', 3, 310100000000); -INSERT INTO `zz_area_code` VALUES (310109000000, '虹口区', 3, 310100000000); -INSERT INTO `zz_area_code` VALUES (310110000000, '杨浦区', 3, 310100000000); -INSERT INTO `zz_area_code` VALUES (310112000000, '闵行区', 3, 310100000000); -INSERT INTO `zz_area_code` VALUES (310113000000, '宝山区', 3, 310100000000); -INSERT INTO `zz_area_code` VALUES (310114000000, '嘉定区', 3, 310100000000); -INSERT INTO `zz_area_code` VALUES (310115000000, '浦东新区', 3, 310100000000); -INSERT INTO `zz_area_code` VALUES (310116000000, '金山区', 3, 310100000000); -INSERT INTO `zz_area_code` VALUES (310117000000, '松江区', 3, 310100000000); -INSERT INTO `zz_area_code` VALUES (310118000000, '青浦区', 3, 310100000000); -INSERT INTO `zz_area_code` VALUES (310120000000, '奉贤区', 3, 310100000000); -INSERT INTO `zz_area_code` VALUES (310151000000, '崇明区', 3, 310100000000); -INSERT INTO `zz_area_code` VALUES (320000000000, '江苏省', 1, NULL); -INSERT INTO `zz_area_code` VALUES (320100000000, '南京市', 2, 320000000000); -INSERT INTO `zz_area_code` VALUES (320101000000, '市辖区', 3, 320100000000); -INSERT INTO `zz_area_code` VALUES (320102000000, '玄武区', 3, 320100000000); -INSERT INTO `zz_area_code` VALUES (320104000000, '秦淮区', 3, 320100000000); -INSERT INTO `zz_area_code` VALUES (320105000000, '建邺区', 3, 320100000000); -INSERT INTO `zz_area_code` VALUES (320106000000, '鼓楼区', 3, 320100000000); -INSERT INTO `zz_area_code` VALUES (320111000000, '浦口区', 3, 320100000000); -INSERT INTO `zz_area_code` VALUES (320113000000, '栖霞区', 3, 320100000000); -INSERT INTO `zz_area_code` VALUES (320114000000, '雨花台区', 3, 320100000000); -INSERT INTO `zz_area_code` VALUES (320115000000, '江宁区', 3, 320100000000); -INSERT INTO `zz_area_code` VALUES (320116000000, '六合区', 3, 320100000000); -INSERT INTO `zz_area_code` VALUES (320117000000, '溧水区', 3, 320100000000); -INSERT INTO `zz_area_code` VALUES (320118000000, '高淳区', 3, 320100000000); -INSERT INTO `zz_area_code` VALUES (320200000000, '无锡市', 2, 320000000000); -INSERT INTO `zz_area_code` VALUES (320201000000, '市辖区', 3, 320200000000); -INSERT INTO `zz_area_code` VALUES (320205000000, '锡山区', 3, 320200000000); -INSERT INTO `zz_area_code` VALUES (320206000000, '惠山区', 3, 320200000000); -INSERT INTO `zz_area_code` VALUES (320211000000, '滨湖区', 3, 320200000000); -INSERT INTO `zz_area_code` VALUES (320213000000, '梁溪区', 3, 320200000000); -INSERT INTO `zz_area_code` VALUES (320214000000, '新吴区', 3, 320200000000); -INSERT INTO `zz_area_code` VALUES (320281000000, '江阴市', 3, 320200000000); -INSERT INTO `zz_area_code` VALUES (320282000000, '宜兴市', 3, 320200000000); -INSERT INTO `zz_area_code` VALUES (320300000000, '徐州市', 2, 320000000000); -INSERT INTO `zz_area_code` VALUES (320301000000, '市辖区', 3, 320300000000); -INSERT INTO `zz_area_code` VALUES (320302000000, '鼓楼区', 3, 320300000000); -INSERT INTO `zz_area_code` VALUES (320303000000, '云龙区', 3, 320300000000); -INSERT INTO `zz_area_code` VALUES (320305000000, '贾汪区', 3, 320300000000); -INSERT INTO `zz_area_code` VALUES (320311000000, '泉山区', 3, 320300000000); -INSERT INTO `zz_area_code` VALUES (320312000000, '铜山区', 3, 320300000000); -INSERT INTO `zz_area_code` VALUES (320321000000, '丰县', 3, 320300000000); -INSERT INTO `zz_area_code` VALUES (320322000000, '沛县', 3, 320300000000); -INSERT INTO `zz_area_code` VALUES (320324000000, '睢宁县', 3, 320300000000); -INSERT INTO `zz_area_code` VALUES (320371000000, '徐州经济技术开发区', 3, 320300000000); -INSERT INTO `zz_area_code` VALUES (320381000000, '新沂市', 3, 320300000000); -INSERT INTO `zz_area_code` VALUES (320382000000, '邳州市', 3, 320300000000); -INSERT INTO `zz_area_code` VALUES (320400000000, '常州市', 2, 320000000000); -INSERT INTO `zz_area_code` VALUES (320401000000, '市辖区', 3, 320400000000); -INSERT INTO `zz_area_code` VALUES (320402000000, '天宁区', 3, 320400000000); -INSERT INTO `zz_area_code` VALUES (320404000000, '钟楼区', 3, 320400000000); -INSERT INTO `zz_area_code` VALUES (320411000000, '新北区', 3, 320400000000); -INSERT INTO `zz_area_code` VALUES (320412000000, '武进区', 3, 320400000000); -INSERT INTO `zz_area_code` VALUES (320413000000, '金坛区', 3, 320400000000); -INSERT INTO `zz_area_code` VALUES (320481000000, '溧阳市', 3, 320400000000); -INSERT INTO `zz_area_code` VALUES (320500000000, '苏州市', 2, 320000000000); -INSERT INTO `zz_area_code` VALUES (320501000000, '市辖区', 3, 320500000000); -INSERT INTO `zz_area_code` VALUES (320505000000, '虎丘区', 3, 320500000000); -INSERT INTO `zz_area_code` VALUES (320506000000, '吴中区', 3, 320500000000); -INSERT INTO `zz_area_code` VALUES (320507000000, '相城区', 3, 320500000000); -INSERT INTO `zz_area_code` VALUES (320508000000, '姑苏区', 3, 320500000000); -INSERT INTO `zz_area_code` VALUES (320509000000, '吴江区', 3, 320500000000); -INSERT INTO `zz_area_code` VALUES (320571000000, '苏州工业园区', 3, 320500000000); -INSERT INTO `zz_area_code` VALUES (320581000000, '常熟市', 3, 320500000000); -INSERT INTO `zz_area_code` VALUES (320582000000, '张家港市', 3, 320500000000); -INSERT INTO `zz_area_code` VALUES (320583000000, '昆山市', 3, 320500000000); -INSERT INTO `zz_area_code` VALUES (320585000000, '太仓市', 3, 320500000000); -INSERT INTO `zz_area_code` VALUES (320600000000, '南通市', 2, 320000000000); -INSERT INTO `zz_area_code` VALUES (320601000000, '市辖区', 3, 320600000000); -INSERT INTO `zz_area_code` VALUES (320602000000, '崇川区', 3, 320600000000); -INSERT INTO `zz_area_code` VALUES (320611000000, '港闸区', 3, 320600000000); -INSERT INTO `zz_area_code` VALUES (320612000000, '通州区', 3, 320600000000); -INSERT INTO `zz_area_code` VALUES (320623000000, '如东县', 3, 320600000000); -INSERT INTO `zz_area_code` VALUES (320671000000, '南通经济技术开发区', 3, 320600000000); -INSERT INTO `zz_area_code` VALUES (320681000000, '启东市', 3, 320600000000); -INSERT INTO `zz_area_code` VALUES (320682000000, '如皋市', 3, 320600000000); -INSERT INTO `zz_area_code` VALUES (320684000000, '海门市', 3, 320600000000); -INSERT INTO `zz_area_code` VALUES (320685000000, '海安市', 3, 320600000000); -INSERT INTO `zz_area_code` VALUES (320700000000, '连云港市', 2, 320000000000); -INSERT INTO `zz_area_code` VALUES (320701000000, '市辖区', 3, 320700000000); -INSERT INTO `zz_area_code` VALUES (320703000000, '连云区', 3, 320700000000); -INSERT INTO `zz_area_code` VALUES (320706000000, '海州区', 3, 320700000000); -INSERT INTO `zz_area_code` VALUES (320707000000, '赣榆区', 3, 320700000000); -INSERT INTO `zz_area_code` VALUES (320722000000, '东海县', 3, 320700000000); -INSERT INTO `zz_area_code` VALUES (320723000000, '灌云县', 3, 320700000000); -INSERT INTO `zz_area_code` VALUES (320724000000, '灌南县', 3, 320700000000); -INSERT INTO `zz_area_code` VALUES (320771000000, '连云港经济技术开发区', 3, 320700000000); -INSERT INTO `zz_area_code` VALUES (320772000000, '连云港高新技术产业开发区', 3, 320700000000); -INSERT INTO `zz_area_code` VALUES (320800000000, '淮安市', 2, 320000000000); -INSERT INTO `zz_area_code` VALUES (320801000000, '市辖区', 3, 320800000000); -INSERT INTO `zz_area_code` VALUES (320803000000, '淮安区', 3, 320800000000); -INSERT INTO `zz_area_code` VALUES (320804000000, '淮阴区', 3, 320800000000); -INSERT INTO `zz_area_code` VALUES (320812000000, '清江浦区', 3, 320800000000); -INSERT INTO `zz_area_code` VALUES (320813000000, '洪泽区', 3, 320800000000); -INSERT INTO `zz_area_code` VALUES (320826000000, '涟水县', 3, 320800000000); -INSERT INTO `zz_area_code` VALUES (320830000000, '盱眙县', 3, 320800000000); -INSERT INTO `zz_area_code` VALUES (320831000000, '金湖县', 3, 320800000000); -INSERT INTO `zz_area_code` VALUES (320871000000, '淮安经济技术开发区', 3, 320800000000); -INSERT INTO `zz_area_code` VALUES (320900000000, '盐城市', 2, 320000000000); -INSERT INTO `zz_area_code` VALUES (320901000000, '市辖区', 3, 320900000000); -INSERT INTO `zz_area_code` VALUES (320902000000, '亭湖区', 3, 320900000000); -INSERT INTO `zz_area_code` VALUES (320903000000, '盐都区', 3, 320900000000); -INSERT INTO `zz_area_code` VALUES (320904000000, '大丰区', 3, 320900000000); -INSERT INTO `zz_area_code` VALUES (320921000000, '响水县', 3, 320900000000); -INSERT INTO `zz_area_code` VALUES (320922000000, '滨海县', 3, 320900000000); -INSERT INTO `zz_area_code` VALUES (320923000000, '阜宁县', 3, 320900000000); -INSERT INTO `zz_area_code` VALUES (320924000000, '射阳县', 3, 320900000000); -INSERT INTO `zz_area_code` VALUES (320925000000, '建湖县', 3, 320900000000); -INSERT INTO `zz_area_code` VALUES (320971000000, '盐城经济技术开发区', 3, 320900000000); -INSERT INTO `zz_area_code` VALUES (320981000000, '东台市', 3, 320900000000); -INSERT INTO `zz_area_code` VALUES (321000000000, '扬州市', 2, 320000000000); -INSERT INTO `zz_area_code` VALUES (321001000000, '市辖区', 3, 321000000000); -INSERT INTO `zz_area_code` VALUES (321002000000, '广陵区', 3, 321000000000); -INSERT INTO `zz_area_code` VALUES (321003000000, '邗江区', 3, 321000000000); -INSERT INTO `zz_area_code` VALUES (321012000000, '江都区', 3, 321000000000); -INSERT INTO `zz_area_code` VALUES (321023000000, '宝应县', 3, 321000000000); -INSERT INTO `zz_area_code` VALUES (321071000000, '扬州经济技术开发区', 3, 321000000000); -INSERT INTO `zz_area_code` VALUES (321081000000, '仪征市', 3, 321000000000); -INSERT INTO `zz_area_code` VALUES (321084000000, '高邮市', 3, 321000000000); -INSERT INTO `zz_area_code` VALUES (321100000000, '镇江市', 2, 320000000000); -INSERT INTO `zz_area_code` VALUES (321101000000, '市辖区', 3, 321100000000); -INSERT INTO `zz_area_code` VALUES (321102000000, '京口区', 3, 321100000000); -INSERT INTO `zz_area_code` VALUES (321111000000, '润州区', 3, 321100000000); -INSERT INTO `zz_area_code` VALUES (321112000000, '丹徒区', 3, 321100000000); -INSERT INTO `zz_area_code` VALUES (321171000000, '镇江新区', 3, 321100000000); -INSERT INTO `zz_area_code` VALUES (321181000000, '丹阳市', 3, 321100000000); -INSERT INTO `zz_area_code` VALUES (321182000000, '扬中市', 3, 321100000000); -INSERT INTO `zz_area_code` VALUES (321183000000, '句容市', 3, 321100000000); -INSERT INTO `zz_area_code` VALUES (321200000000, '泰州市', 2, 320000000000); -INSERT INTO `zz_area_code` VALUES (321201000000, '市辖区', 3, 321200000000); -INSERT INTO `zz_area_code` VALUES (321202000000, '海陵区', 3, 321200000000); -INSERT INTO `zz_area_code` VALUES (321203000000, '高港区', 3, 321200000000); -INSERT INTO `zz_area_code` VALUES (321204000000, '姜堰区', 3, 321200000000); -INSERT INTO `zz_area_code` VALUES (321271000000, '泰州医药高新技术产业开发区', 3, 321200000000); -INSERT INTO `zz_area_code` VALUES (321281000000, '兴化市', 3, 321200000000); -INSERT INTO `zz_area_code` VALUES (321282000000, '靖江市', 3, 321200000000); -INSERT INTO `zz_area_code` VALUES (321283000000, '泰兴市', 3, 321200000000); -INSERT INTO `zz_area_code` VALUES (321300000000, '宿迁市', 2, 320000000000); -INSERT INTO `zz_area_code` VALUES (321301000000, '市辖区', 3, 321300000000); -INSERT INTO `zz_area_code` VALUES (321302000000, '宿城区', 3, 321300000000); -INSERT INTO `zz_area_code` VALUES (321311000000, '宿豫区', 3, 321300000000); -INSERT INTO `zz_area_code` VALUES (321322000000, '沭阳县', 3, 321300000000); -INSERT INTO `zz_area_code` VALUES (321323000000, '泗阳县', 3, 321300000000); -INSERT INTO `zz_area_code` VALUES (321324000000, '泗洪县', 3, 321300000000); -INSERT INTO `zz_area_code` VALUES (321371000000, '宿迁经济技术开发区', 3, 321300000000); -INSERT INTO `zz_area_code` VALUES (330000000000, '浙江省', 1, NULL); -INSERT INTO `zz_area_code` VALUES (330100000000, '杭州市', 2, 330000000000); -INSERT INTO `zz_area_code` VALUES (330101000000, '市辖区', 3, 330100000000); -INSERT INTO `zz_area_code` VALUES (330102000000, '上城区', 3, 330100000000); -INSERT INTO `zz_area_code` VALUES (330103000000, '下城区', 3, 330100000000); -INSERT INTO `zz_area_code` VALUES (330104000000, '江干区', 3, 330100000000); -INSERT INTO `zz_area_code` VALUES (330105000000, '拱墅区', 3, 330100000000); -INSERT INTO `zz_area_code` VALUES (330106000000, '西湖区', 3, 330100000000); -INSERT INTO `zz_area_code` VALUES (330108000000, '滨江区', 3, 330100000000); -INSERT INTO `zz_area_code` VALUES (330109000000, '萧山区', 3, 330100000000); -INSERT INTO `zz_area_code` VALUES (330110000000, '余杭区', 3, 330100000000); -INSERT INTO `zz_area_code` VALUES (330111000000, '富阳区', 3, 330100000000); -INSERT INTO `zz_area_code` VALUES (330112000000, '临安区', 3, 330100000000); -INSERT INTO `zz_area_code` VALUES (330122000000, '桐庐县', 3, 330100000000); -INSERT INTO `zz_area_code` VALUES (330127000000, '淳安县', 3, 330100000000); -INSERT INTO `zz_area_code` VALUES (330182000000, '建德市', 3, 330100000000); -INSERT INTO `zz_area_code` VALUES (330200000000, '宁波市', 2, 330000000000); -INSERT INTO `zz_area_code` VALUES (330201000000, '市辖区', 3, 330200000000); -INSERT INTO `zz_area_code` VALUES (330203000000, '海曙区', 3, 330200000000); -INSERT INTO `zz_area_code` VALUES (330205000000, '江北区', 3, 330200000000); -INSERT INTO `zz_area_code` VALUES (330206000000, '北仑区', 3, 330200000000); -INSERT INTO `zz_area_code` VALUES (330211000000, '镇海区', 3, 330200000000); -INSERT INTO `zz_area_code` VALUES (330212000000, '鄞州区', 3, 330200000000); -INSERT INTO `zz_area_code` VALUES (330213000000, '奉化区', 3, 330200000000); -INSERT INTO `zz_area_code` VALUES (330225000000, '象山县', 3, 330200000000); -INSERT INTO `zz_area_code` VALUES (330226000000, '宁海县', 3, 330200000000); -INSERT INTO `zz_area_code` VALUES (330281000000, '余姚市', 3, 330200000000); -INSERT INTO `zz_area_code` VALUES (330282000000, '慈溪市', 3, 330200000000); -INSERT INTO `zz_area_code` VALUES (330300000000, '温州市', 2, 330000000000); -INSERT INTO `zz_area_code` VALUES (330301000000, '市辖区', 3, 330300000000); -INSERT INTO `zz_area_code` VALUES (330302000000, '鹿城区', 3, 330300000000); -INSERT INTO `zz_area_code` VALUES (330303000000, '龙湾区', 3, 330300000000); -INSERT INTO `zz_area_code` VALUES (330304000000, '瓯海区', 3, 330300000000); -INSERT INTO `zz_area_code` VALUES (330305000000, '洞头区', 3, 330300000000); -INSERT INTO `zz_area_code` VALUES (330324000000, '永嘉县', 3, 330300000000); -INSERT INTO `zz_area_code` VALUES (330326000000, '平阳县', 3, 330300000000); -INSERT INTO `zz_area_code` VALUES (330327000000, '苍南县', 3, 330300000000); -INSERT INTO `zz_area_code` VALUES (330328000000, '文成县', 3, 330300000000); -INSERT INTO `zz_area_code` VALUES (330329000000, '泰顺县', 3, 330300000000); -INSERT INTO `zz_area_code` VALUES (330371000000, '温州经济技术开发区', 3, 330300000000); -INSERT INTO `zz_area_code` VALUES (330381000000, '瑞安市', 3, 330300000000); -INSERT INTO `zz_area_code` VALUES (330382000000, '乐清市', 3, 330300000000); -INSERT INTO `zz_area_code` VALUES (330400000000, '嘉兴市', 2, 330000000000); -INSERT INTO `zz_area_code` VALUES (330401000000, '市辖区', 3, 330400000000); -INSERT INTO `zz_area_code` VALUES (330402000000, '南湖区', 3, 330400000000); -INSERT INTO `zz_area_code` VALUES (330411000000, '秀洲区', 3, 330400000000); -INSERT INTO `zz_area_code` VALUES (330421000000, '嘉善县', 3, 330400000000); -INSERT INTO `zz_area_code` VALUES (330424000000, '海盐县', 3, 330400000000); -INSERT INTO `zz_area_code` VALUES (330481000000, '海宁市', 3, 330400000000); -INSERT INTO `zz_area_code` VALUES (330482000000, '平湖市', 3, 330400000000); -INSERT INTO `zz_area_code` VALUES (330483000000, '桐乡市', 3, 330400000000); -INSERT INTO `zz_area_code` VALUES (330500000000, '湖州市', 2, 330000000000); -INSERT INTO `zz_area_code` VALUES (330501000000, '市辖区', 3, 330500000000); -INSERT INTO `zz_area_code` VALUES (330502000000, '吴兴区', 3, 330500000000); -INSERT INTO `zz_area_code` VALUES (330503000000, '南浔区', 3, 330500000000); -INSERT INTO `zz_area_code` VALUES (330521000000, '德清县', 3, 330500000000); -INSERT INTO `zz_area_code` VALUES (330522000000, '长兴县', 3, 330500000000); -INSERT INTO `zz_area_code` VALUES (330523000000, '安吉县', 3, 330500000000); -INSERT INTO `zz_area_code` VALUES (330600000000, '绍兴市', 2, 330000000000); -INSERT INTO `zz_area_code` VALUES (330601000000, '市辖区', 3, 330600000000); -INSERT INTO `zz_area_code` VALUES (330602000000, '越城区', 3, 330600000000); -INSERT INTO `zz_area_code` VALUES (330603000000, '柯桥区', 3, 330600000000); -INSERT INTO `zz_area_code` VALUES (330604000000, '上虞区', 3, 330600000000); -INSERT INTO `zz_area_code` VALUES (330624000000, '新昌县', 3, 330600000000); -INSERT INTO `zz_area_code` VALUES (330681000000, '诸暨市', 3, 330600000000); -INSERT INTO `zz_area_code` VALUES (330683000000, '嵊州市', 3, 330600000000); -INSERT INTO `zz_area_code` VALUES (330700000000, '金华市', 2, 330000000000); -INSERT INTO `zz_area_code` VALUES (330701000000, '市辖区', 3, 330700000000); -INSERT INTO `zz_area_code` VALUES (330702000000, '婺城区', 3, 330700000000); -INSERT INTO `zz_area_code` VALUES (330703000000, '金东区', 3, 330700000000); -INSERT INTO `zz_area_code` VALUES (330723000000, '武义县', 3, 330700000000); -INSERT INTO `zz_area_code` VALUES (330726000000, '浦江县', 3, 330700000000); -INSERT INTO `zz_area_code` VALUES (330727000000, '磐安县', 3, 330700000000); -INSERT INTO `zz_area_code` VALUES (330781000000, '兰溪市', 3, 330700000000); -INSERT INTO `zz_area_code` VALUES (330782000000, '义乌市', 3, 330700000000); -INSERT INTO `zz_area_code` VALUES (330783000000, '东阳市', 3, 330700000000); -INSERT INTO `zz_area_code` VALUES (330784000000, '永康市', 3, 330700000000); -INSERT INTO `zz_area_code` VALUES (330800000000, '衢州市', 2, 330000000000); -INSERT INTO `zz_area_code` VALUES (330801000000, '市辖区', 3, 330800000000); -INSERT INTO `zz_area_code` VALUES (330802000000, '柯城区', 3, 330800000000); -INSERT INTO `zz_area_code` VALUES (330803000000, '衢江区', 3, 330800000000); -INSERT INTO `zz_area_code` VALUES (330822000000, '常山县', 3, 330800000000); -INSERT INTO `zz_area_code` VALUES (330824000000, '开化县', 3, 330800000000); -INSERT INTO `zz_area_code` VALUES (330825000000, '龙游县', 3, 330800000000); -INSERT INTO `zz_area_code` VALUES (330881000000, '江山市', 3, 330800000000); -INSERT INTO `zz_area_code` VALUES (330900000000, '舟山市', 2, 330000000000); -INSERT INTO `zz_area_code` VALUES (330901000000, '市辖区', 3, 330900000000); -INSERT INTO `zz_area_code` VALUES (330902000000, '定海区', 3, 330900000000); -INSERT INTO `zz_area_code` VALUES (330903000000, '普陀区', 3, 330900000000); -INSERT INTO `zz_area_code` VALUES (330921000000, '岱山县', 3, 330900000000); -INSERT INTO `zz_area_code` VALUES (330922000000, '嵊泗县', 3, 330900000000); -INSERT INTO `zz_area_code` VALUES (331000000000, '台州市', 2, 330000000000); -INSERT INTO `zz_area_code` VALUES (331001000000, '市辖区', 3, 331000000000); -INSERT INTO `zz_area_code` VALUES (331002000000, '椒江区', 3, 331000000000); -INSERT INTO `zz_area_code` VALUES (331003000000, '黄岩区', 3, 331000000000); -INSERT INTO `zz_area_code` VALUES (331004000000, '路桥区', 3, 331000000000); -INSERT INTO `zz_area_code` VALUES (331022000000, '三门县', 3, 331000000000); -INSERT INTO `zz_area_code` VALUES (331023000000, '天台县', 3, 331000000000); -INSERT INTO `zz_area_code` VALUES (331024000000, '仙居县', 3, 331000000000); -INSERT INTO `zz_area_code` VALUES (331081000000, '温岭市', 3, 331000000000); -INSERT INTO `zz_area_code` VALUES (331082000000, '临海市', 3, 331000000000); -INSERT INTO `zz_area_code` VALUES (331083000000, '玉环市', 3, 331000000000); -INSERT INTO `zz_area_code` VALUES (331100000000, '丽水市', 2, 330000000000); -INSERT INTO `zz_area_code` VALUES (331101000000, '市辖区', 3, 331100000000); -INSERT INTO `zz_area_code` VALUES (331102000000, '莲都区', 3, 331100000000); -INSERT INTO `zz_area_code` VALUES (331121000000, '青田县', 3, 331100000000); -INSERT INTO `zz_area_code` VALUES (331122000000, '缙云县', 3, 331100000000); -INSERT INTO `zz_area_code` VALUES (331123000000, '遂昌县', 3, 331100000000); -INSERT INTO `zz_area_code` VALUES (331124000000, '松阳县', 3, 331100000000); -INSERT INTO `zz_area_code` VALUES (331125000000, '云和县', 3, 331100000000); -INSERT INTO `zz_area_code` VALUES (331126000000, '庆元县', 3, 331100000000); -INSERT INTO `zz_area_code` VALUES (331127000000, '景宁畲族自治县', 3, 331100000000); -INSERT INTO `zz_area_code` VALUES (331181000000, '龙泉市', 3, 331100000000); -INSERT INTO `zz_area_code` VALUES (340000000000, '安徽省', 1, NULL); -INSERT INTO `zz_area_code` VALUES (340100000000, '合肥市', 2, 340000000000); -INSERT INTO `zz_area_code` VALUES (340101000000, '市辖区', 3, 340100000000); -INSERT INTO `zz_area_code` VALUES (340102000000, '瑶海区', 3, 340100000000); -INSERT INTO `zz_area_code` VALUES (340103000000, '庐阳区', 3, 340100000000); -INSERT INTO `zz_area_code` VALUES (340104000000, '蜀山区', 3, 340100000000); -INSERT INTO `zz_area_code` VALUES (340111000000, '包河区', 3, 340100000000); -INSERT INTO `zz_area_code` VALUES (340121000000, '长丰县', 3, 340100000000); -INSERT INTO `zz_area_code` VALUES (340122000000, '肥东县', 3, 340100000000); -INSERT INTO `zz_area_code` VALUES (340123000000, '肥西县', 3, 340100000000); -INSERT INTO `zz_area_code` VALUES (340124000000, '庐江县', 3, 340100000000); -INSERT INTO `zz_area_code` VALUES (340171000000, '合肥高新技术产业开发区', 3, 340100000000); -INSERT INTO `zz_area_code` VALUES (340172000000, '合肥经济技术开发区', 3, 340100000000); -INSERT INTO `zz_area_code` VALUES (340173000000, '合肥新站高新技术产业开发区', 3, 340100000000); -INSERT INTO `zz_area_code` VALUES (340181000000, '巢湖市', 3, 340100000000); -INSERT INTO `zz_area_code` VALUES (340200000000, '芜湖市', 2, 340000000000); -INSERT INTO `zz_area_code` VALUES (340201000000, '市辖区', 3, 340200000000); -INSERT INTO `zz_area_code` VALUES (340202000000, '镜湖区', 3, 340200000000); -INSERT INTO `zz_area_code` VALUES (340203000000, '弋江区', 3, 340200000000); -INSERT INTO `zz_area_code` VALUES (340207000000, '鸠江区', 3, 340200000000); -INSERT INTO `zz_area_code` VALUES (340208000000, '三山区', 3, 340200000000); -INSERT INTO `zz_area_code` VALUES (340221000000, '芜湖县', 3, 340200000000); -INSERT INTO `zz_area_code` VALUES (340222000000, '繁昌县', 3, 340200000000); -INSERT INTO `zz_area_code` VALUES (340223000000, '南陵县', 3, 340200000000); -INSERT INTO `zz_area_code` VALUES (340225000000, '无为县', 3, 340200000000); -INSERT INTO `zz_area_code` VALUES (340271000000, '芜湖经济技术开发区', 3, 340200000000); -INSERT INTO `zz_area_code` VALUES (340272000000, '安徽芜湖长江大桥经济开发区', 3, 340200000000); -INSERT INTO `zz_area_code` VALUES (340300000000, '蚌埠市', 2, 340000000000); -INSERT INTO `zz_area_code` VALUES (340301000000, '市辖区', 3, 340300000000); -INSERT INTO `zz_area_code` VALUES (340302000000, '龙子湖区', 3, 340300000000); -INSERT INTO `zz_area_code` VALUES (340303000000, '蚌山区', 3, 340300000000); -INSERT INTO `zz_area_code` VALUES (340304000000, '禹会区', 3, 340300000000); -INSERT INTO `zz_area_code` VALUES (340311000000, '淮上区', 3, 340300000000); -INSERT INTO `zz_area_code` VALUES (340321000000, '怀远县', 3, 340300000000); -INSERT INTO `zz_area_code` VALUES (340322000000, '五河县', 3, 340300000000); -INSERT INTO `zz_area_code` VALUES (340323000000, '固镇县', 3, 340300000000); -INSERT INTO `zz_area_code` VALUES (340371000000, '蚌埠市高新技术开发区', 3, 340300000000); -INSERT INTO `zz_area_code` VALUES (340372000000, '蚌埠市经济开发区', 3, 340300000000); -INSERT INTO `zz_area_code` VALUES (340400000000, '淮南市', 2, 340000000000); -INSERT INTO `zz_area_code` VALUES (340401000000, '市辖区', 3, 340400000000); -INSERT INTO `zz_area_code` VALUES (340402000000, '大通区', 3, 340400000000); -INSERT INTO `zz_area_code` VALUES (340403000000, '田家庵区', 3, 340400000000); -INSERT INTO `zz_area_code` VALUES (340404000000, '谢家集区', 3, 340400000000); -INSERT INTO `zz_area_code` VALUES (340405000000, '八公山区', 3, 340400000000); -INSERT INTO `zz_area_code` VALUES (340406000000, '潘集区', 3, 340400000000); -INSERT INTO `zz_area_code` VALUES (340421000000, '凤台县', 3, 340400000000); -INSERT INTO `zz_area_code` VALUES (340422000000, '寿县', 3, 340400000000); -INSERT INTO `zz_area_code` VALUES (340500000000, '马鞍山市', 2, 340000000000); -INSERT INTO `zz_area_code` VALUES (340501000000, '市辖区', 3, 340500000000); -INSERT INTO `zz_area_code` VALUES (340503000000, '花山区', 3, 340500000000); -INSERT INTO `zz_area_code` VALUES (340504000000, '雨山区', 3, 340500000000); -INSERT INTO `zz_area_code` VALUES (340506000000, '博望区', 3, 340500000000); -INSERT INTO `zz_area_code` VALUES (340521000000, '当涂县', 3, 340500000000); -INSERT INTO `zz_area_code` VALUES (340522000000, '含山县', 3, 340500000000); -INSERT INTO `zz_area_code` VALUES (340523000000, '和县', 3, 340500000000); -INSERT INTO `zz_area_code` VALUES (340600000000, '淮北市', 2, 340000000000); -INSERT INTO `zz_area_code` VALUES (340601000000, '市辖区', 3, 340600000000); -INSERT INTO `zz_area_code` VALUES (340602000000, '杜集区', 3, 340600000000); -INSERT INTO `zz_area_code` VALUES (340603000000, '相山区', 3, 340600000000); -INSERT INTO `zz_area_code` VALUES (340604000000, '烈山区', 3, 340600000000); -INSERT INTO `zz_area_code` VALUES (340621000000, '濉溪县', 3, 340600000000); -INSERT INTO `zz_area_code` VALUES (340700000000, '铜陵市', 2, 340000000000); -INSERT INTO `zz_area_code` VALUES (340701000000, '市辖区', 3, 340700000000); -INSERT INTO `zz_area_code` VALUES (340705000000, '铜官区', 3, 340700000000); -INSERT INTO `zz_area_code` VALUES (340706000000, '义安区', 3, 340700000000); -INSERT INTO `zz_area_code` VALUES (340711000000, '郊区', 3, 340700000000); -INSERT INTO `zz_area_code` VALUES (340722000000, '枞阳县', 3, 340700000000); -INSERT INTO `zz_area_code` VALUES (340800000000, '安庆市', 2, 340000000000); -INSERT INTO `zz_area_code` VALUES (340801000000, '市辖区', 3, 340800000000); -INSERT INTO `zz_area_code` VALUES (340802000000, '迎江区', 3, 340800000000); -INSERT INTO `zz_area_code` VALUES (340803000000, '大观区', 3, 340800000000); -INSERT INTO `zz_area_code` VALUES (340811000000, '宜秀区', 3, 340800000000); -INSERT INTO `zz_area_code` VALUES (340822000000, '怀宁县', 3, 340800000000); -INSERT INTO `zz_area_code` VALUES (340825000000, '太湖县', 3, 340800000000); -INSERT INTO `zz_area_code` VALUES (340826000000, '宿松县', 3, 340800000000); -INSERT INTO `zz_area_code` VALUES (340827000000, '望江县', 3, 340800000000); -INSERT INTO `zz_area_code` VALUES (340828000000, '岳西县', 3, 340800000000); -INSERT INTO `zz_area_code` VALUES (340871000000, '安徽安庆经济开发区', 3, 340800000000); -INSERT INTO `zz_area_code` VALUES (340881000000, '桐城市', 3, 340800000000); -INSERT INTO `zz_area_code` VALUES (340882000000, '潜山市', 3, 340800000000); -INSERT INTO `zz_area_code` VALUES (341000000000, '黄山市', 2, 340000000000); -INSERT INTO `zz_area_code` VALUES (341001000000, '市辖区', 3, 341000000000); -INSERT INTO `zz_area_code` VALUES (341002000000, '屯溪区', 3, 341000000000); -INSERT INTO `zz_area_code` VALUES (341003000000, '黄山区', 3, 341000000000); -INSERT INTO `zz_area_code` VALUES (341004000000, '徽州区', 3, 341000000000); -INSERT INTO `zz_area_code` VALUES (341021000000, '歙县', 3, 341000000000); -INSERT INTO `zz_area_code` VALUES (341022000000, '休宁县', 3, 341000000000); -INSERT INTO `zz_area_code` VALUES (341023000000, '黟县', 3, 341000000000); -INSERT INTO `zz_area_code` VALUES (341024000000, '祁门县', 3, 341000000000); -INSERT INTO `zz_area_code` VALUES (341100000000, '滁州市', 2, 340000000000); -INSERT INTO `zz_area_code` VALUES (341101000000, '市辖区', 3, 341100000000); -INSERT INTO `zz_area_code` VALUES (341102000000, '琅琊区', 3, 341100000000); -INSERT INTO `zz_area_code` VALUES (341103000000, '南谯区', 3, 341100000000); -INSERT INTO `zz_area_code` VALUES (341122000000, '来安县', 3, 341100000000); -INSERT INTO `zz_area_code` VALUES (341124000000, '全椒县', 3, 341100000000); -INSERT INTO `zz_area_code` VALUES (341125000000, '定远县', 3, 341100000000); -INSERT INTO `zz_area_code` VALUES (341126000000, '凤阳县', 3, 341100000000); -INSERT INTO `zz_area_code` VALUES (341171000000, '苏滁现代产业园', 3, 341100000000); -INSERT INTO `zz_area_code` VALUES (341172000000, '滁州经济技术开发区', 3, 341100000000); -INSERT INTO `zz_area_code` VALUES (341181000000, '天长市', 3, 341100000000); -INSERT INTO `zz_area_code` VALUES (341182000000, '明光市', 3, 341100000000); -INSERT INTO `zz_area_code` VALUES (341200000000, '阜阳市', 2, 340000000000); -INSERT INTO `zz_area_code` VALUES (341201000000, '市辖区', 3, 341200000000); -INSERT INTO `zz_area_code` VALUES (341202000000, '颍州区', 3, 341200000000); -INSERT INTO `zz_area_code` VALUES (341203000000, '颍东区', 3, 341200000000); -INSERT INTO `zz_area_code` VALUES (341204000000, '颍泉区', 3, 341200000000); -INSERT INTO `zz_area_code` VALUES (341221000000, '临泉县', 3, 341200000000); -INSERT INTO `zz_area_code` VALUES (341222000000, '太和县', 3, 341200000000); -INSERT INTO `zz_area_code` VALUES (341225000000, '阜南县', 3, 341200000000); -INSERT INTO `zz_area_code` VALUES (341226000000, '颍上县', 3, 341200000000); -INSERT INTO `zz_area_code` VALUES (341271000000, '阜阳合肥现代产业园区', 3, 341200000000); -INSERT INTO `zz_area_code` VALUES (341272000000, '阜阳经济技术开发区', 3, 341200000000); -INSERT INTO `zz_area_code` VALUES (341282000000, '界首市', 3, 341200000000); -INSERT INTO `zz_area_code` VALUES (341300000000, '宿州市', 2, 340000000000); -INSERT INTO `zz_area_code` VALUES (341301000000, '市辖区', 3, 341300000000); -INSERT INTO `zz_area_code` VALUES (341302000000, '埇桥区', 3, 341300000000); -INSERT INTO `zz_area_code` VALUES (341321000000, '砀山县', 3, 341300000000); -INSERT INTO `zz_area_code` VALUES (341322000000, '萧县', 3, 341300000000); -INSERT INTO `zz_area_code` VALUES (341323000000, '灵璧县', 3, 341300000000); -INSERT INTO `zz_area_code` VALUES (341324000000, '泗县', 3, 341300000000); -INSERT INTO `zz_area_code` VALUES (341371000000, '宿州马鞍山现代产业园区', 3, 341300000000); -INSERT INTO `zz_area_code` VALUES (341372000000, '宿州经济技术开发区', 3, 341300000000); -INSERT INTO `zz_area_code` VALUES (341500000000, '六安市', 2, 340000000000); -INSERT INTO `zz_area_code` VALUES (341501000000, '市辖区', 3, 341500000000); -INSERT INTO `zz_area_code` VALUES (341502000000, '金安区', 3, 341500000000); -INSERT INTO `zz_area_code` VALUES (341503000000, '裕安区', 3, 341500000000); -INSERT INTO `zz_area_code` VALUES (341504000000, '叶集区', 3, 341500000000); -INSERT INTO `zz_area_code` VALUES (341522000000, '霍邱县', 3, 341500000000); -INSERT INTO `zz_area_code` VALUES (341523000000, '舒城县', 3, 341500000000); -INSERT INTO `zz_area_code` VALUES (341524000000, '金寨县', 3, 341500000000); -INSERT INTO `zz_area_code` VALUES (341525000000, '霍山县', 3, 341500000000); -INSERT INTO `zz_area_code` VALUES (341600000000, '亳州市', 2, 340000000000); -INSERT INTO `zz_area_code` VALUES (341601000000, '市辖区', 3, 341600000000); -INSERT INTO `zz_area_code` VALUES (341602000000, '谯城区', 3, 341600000000); -INSERT INTO `zz_area_code` VALUES (341621000000, '涡阳县', 3, 341600000000); -INSERT INTO `zz_area_code` VALUES (341622000000, '蒙城县', 3, 341600000000); -INSERT INTO `zz_area_code` VALUES (341623000000, '利辛县', 3, 341600000000); -INSERT INTO `zz_area_code` VALUES (341700000000, '池州市', 2, 340000000000); -INSERT INTO `zz_area_code` VALUES (341701000000, '市辖区', 3, 341700000000); -INSERT INTO `zz_area_code` VALUES (341702000000, '贵池区', 3, 341700000000); -INSERT INTO `zz_area_code` VALUES (341721000000, '东至县', 3, 341700000000); -INSERT INTO `zz_area_code` VALUES (341722000000, '石台县', 3, 341700000000); -INSERT INTO `zz_area_code` VALUES (341723000000, '青阳县', 3, 341700000000); -INSERT INTO `zz_area_code` VALUES (341800000000, '宣城市', 2, 340000000000); -INSERT INTO `zz_area_code` VALUES (341801000000, '市辖区', 3, 341800000000); -INSERT INTO `zz_area_code` VALUES (341802000000, '宣州区', 3, 341800000000); -INSERT INTO `zz_area_code` VALUES (341821000000, '郎溪县', 3, 341800000000); -INSERT INTO `zz_area_code` VALUES (341822000000, '广德县', 3, 341800000000); -INSERT INTO `zz_area_code` VALUES (341823000000, '泾县', 3, 341800000000); -INSERT INTO `zz_area_code` VALUES (341824000000, '绩溪县', 3, 341800000000); -INSERT INTO `zz_area_code` VALUES (341825000000, '旌德县', 3, 341800000000); -INSERT INTO `zz_area_code` VALUES (341871000000, '宣城市经济开发区', 3, 341800000000); -INSERT INTO `zz_area_code` VALUES (341881000000, '宁国市', 3, 341800000000); -INSERT INTO `zz_area_code` VALUES (350000000000, '福建省', 1, NULL); -INSERT INTO `zz_area_code` VALUES (350100000000, '福州市', 2, 350000000000); -INSERT INTO `zz_area_code` VALUES (350101000000, '市辖区', 3, 350100000000); -INSERT INTO `zz_area_code` VALUES (350102000000, '鼓楼区', 3, 350100000000); -INSERT INTO `zz_area_code` VALUES (350103000000, '台江区', 3, 350100000000); -INSERT INTO `zz_area_code` VALUES (350104000000, '仓山区', 3, 350100000000); -INSERT INTO `zz_area_code` VALUES (350105000000, '马尾区', 3, 350100000000); -INSERT INTO `zz_area_code` VALUES (350111000000, '晋安区', 3, 350100000000); -INSERT INTO `zz_area_code` VALUES (350112000000, '长乐区', 3, 350100000000); -INSERT INTO `zz_area_code` VALUES (350121000000, '闽侯县', 3, 350100000000); -INSERT INTO `zz_area_code` VALUES (350122000000, '连江县', 3, 350100000000); -INSERT INTO `zz_area_code` VALUES (350123000000, '罗源县', 3, 350100000000); -INSERT INTO `zz_area_code` VALUES (350124000000, '闽清县', 3, 350100000000); -INSERT INTO `zz_area_code` VALUES (350125000000, '永泰县', 3, 350100000000); -INSERT INTO `zz_area_code` VALUES (350128000000, '平潭县', 3, 350100000000); -INSERT INTO `zz_area_code` VALUES (350181000000, '福清市', 3, 350100000000); -INSERT INTO `zz_area_code` VALUES (350200000000, '厦门市', 2, 350000000000); -INSERT INTO `zz_area_code` VALUES (350201000000, '市辖区', 3, 350200000000); -INSERT INTO `zz_area_code` VALUES (350203000000, '思明区', 3, 350200000000); -INSERT INTO `zz_area_code` VALUES (350205000000, '海沧区', 3, 350200000000); -INSERT INTO `zz_area_code` VALUES (350206000000, '湖里区', 3, 350200000000); -INSERT INTO `zz_area_code` VALUES (350211000000, '集美区', 3, 350200000000); -INSERT INTO `zz_area_code` VALUES (350212000000, '同安区', 3, 350200000000); -INSERT INTO `zz_area_code` VALUES (350213000000, '翔安区', 3, 350200000000); -INSERT INTO `zz_area_code` VALUES (350300000000, '莆田市', 2, 350000000000); -INSERT INTO `zz_area_code` VALUES (350301000000, '市辖区', 3, 350300000000); -INSERT INTO `zz_area_code` VALUES (350302000000, '城厢区', 3, 350300000000); -INSERT INTO `zz_area_code` VALUES (350303000000, '涵江区', 3, 350300000000); -INSERT INTO `zz_area_code` VALUES (350304000000, '荔城区', 3, 350300000000); -INSERT INTO `zz_area_code` VALUES (350305000000, '秀屿区', 3, 350300000000); -INSERT INTO `zz_area_code` VALUES (350322000000, '仙游县', 3, 350300000000); -INSERT INTO `zz_area_code` VALUES (350400000000, '三明市', 2, 350000000000); -INSERT INTO `zz_area_code` VALUES (350401000000, '市辖区', 3, 350400000000); -INSERT INTO `zz_area_code` VALUES (350402000000, '梅列区', 3, 350400000000); -INSERT INTO `zz_area_code` VALUES (350403000000, '三元区', 3, 350400000000); -INSERT INTO `zz_area_code` VALUES (350421000000, '明溪县', 3, 350400000000); -INSERT INTO `zz_area_code` VALUES (350423000000, '清流县', 3, 350400000000); -INSERT INTO `zz_area_code` VALUES (350424000000, '宁化县', 3, 350400000000); -INSERT INTO `zz_area_code` VALUES (350425000000, '大田县', 3, 350400000000); -INSERT INTO `zz_area_code` VALUES (350426000000, '尤溪县', 3, 350400000000); -INSERT INTO `zz_area_code` VALUES (350427000000, '沙县', 3, 350400000000); -INSERT INTO `zz_area_code` VALUES (350428000000, '将乐县', 3, 350400000000); -INSERT INTO `zz_area_code` VALUES (350429000000, '泰宁县', 3, 350400000000); -INSERT INTO `zz_area_code` VALUES (350430000000, '建宁县', 3, 350400000000); -INSERT INTO `zz_area_code` VALUES (350481000000, '永安市', 3, 350400000000); -INSERT INTO `zz_area_code` VALUES (350500000000, '泉州市', 2, 350000000000); -INSERT INTO `zz_area_code` VALUES (350501000000, '市辖区', 3, 350500000000); -INSERT INTO `zz_area_code` VALUES (350502000000, '鲤城区', 3, 350500000000); -INSERT INTO `zz_area_code` VALUES (350503000000, '丰泽区', 3, 350500000000); -INSERT INTO `zz_area_code` VALUES (350504000000, '洛江区', 3, 350500000000); -INSERT INTO `zz_area_code` VALUES (350505000000, '泉港区', 3, 350500000000); -INSERT INTO `zz_area_code` VALUES (350521000000, '惠安县', 3, 350500000000); -INSERT INTO `zz_area_code` VALUES (350524000000, '安溪县', 3, 350500000000); -INSERT INTO `zz_area_code` VALUES (350525000000, '永春县', 3, 350500000000); -INSERT INTO `zz_area_code` VALUES (350526000000, '德化县', 3, 350500000000); -INSERT INTO `zz_area_code` VALUES (350527000000, '金门县', 3, 350500000000); -INSERT INTO `zz_area_code` VALUES (350581000000, '石狮市', 3, 350500000000); -INSERT INTO `zz_area_code` VALUES (350582000000, '晋江市', 3, 350500000000); -INSERT INTO `zz_area_code` VALUES (350583000000, '南安市', 3, 350500000000); -INSERT INTO `zz_area_code` VALUES (350600000000, '漳州市', 2, 350000000000); -INSERT INTO `zz_area_code` VALUES (350601000000, '市辖区', 3, 350600000000); -INSERT INTO `zz_area_code` VALUES (350602000000, '芗城区', 3, 350600000000); -INSERT INTO `zz_area_code` VALUES (350603000000, '龙文区', 3, 350600000000); -INSERT INTO `zz_area_code` VALUES (350622000000, '云霄县', 3, 350600000000); -INSERT INTO `zz_area_code` VALUES (350623000000, '漳浦县', 3, 350600000000); -INSERT INTO `zz_area_code` VALUES (350624000000, '诏安县', 3, 350600000000); -INSERT INTO `zz_area_code` VALUES (350625000000, '长泰县', 3, 350600000000); -INSERT INTO `zz_area_code` VALUES (350626000000, '东山县', 3, 350600000000); -INSERT INTO `zz_area_code` VALUES (350627000000, '南靖县', 3, 350600000000); -INSERT INTO `zz_area_code` VALUES (350628000000, '平和县', 3, 350600000000); -INSERT INTO `zz_area_code` VALUES (350629000000, '华安县', 3, 350600000000); -INSERT INTO `zz_area_code` VALUES (350681000000, '龙海市', 3, 350600000000); -INSERT INTO `zz_area_code` VALUES (350700000000, '南平市', 2, 350000000000); -INSERT INTO `zz_area_code` VALUES (350701000000, '市辖区', 3, 350700000000); -INSERT INTO `zz_area_code` VALUES (350702000000, '延平区', 3, 350700000000); -INSERT INTO `zz_area_code` VALUES (350703000000, '建阳区', 3, 350700000000); -INSERT INTO `zz_area_code` VALUES (350721000000, '顺昌县', 3, 350700000000); -INSERT INTO `zz_area_code` VALUES (350722000000, '浦城县', 3, 350700000000); -INSERT INTO `zz_area_code` VALUES (350723000000, '光泽县', 3, 350700000000); -INSERT INTO `zz_area_code` VALUES (350724000000, '松溪县', 3, 350700000000); -INSERT INTO `zz_area_code` VALUES (350725000000, '政和县', 3, 350700000000); -INSERT INTO `zz_area_code` VALUES (350781000000, '邵武市', 3, 350700000000); -INSERT INTO `zz_area_code` VALUES (350782000000, '武夷山市', 3, 350700000000); -INSERT INTO `zz_area_code` VALUES (350783000000, '建瓯市', 3, 350700000000); -INSERT INTO `zz_area_code` VALUES (350800000000, '龙岩市', 2, 350000000000); -INSERT INTO `zz_area_code` VALUES (350801000000, '市辖区', 3, 350800000000); -INSERT INTO `zz_area_code` VALUES (350802000000, '新罗区', 3, 350800000000); -INSERT INTO `zz_area_code` VALUES (350803000000, '永定区', 3, 350800000000); -INSERT INTO `zz_area_code` VALUES (350821000000, '长汀县', 3, 350800000000); -INSERT INTO `zz_area_code` VALUES (350823000000, '上杭县', 3, 350800000000); -INSERT INTO `zz_area_code` VALUES (350824000000, '武平县', 3, 350800000000); -INSERT INTO `zz_area_code` VALUES (350825000000, '连城县', 3, 350800000000); -INSERT INTO `zz_area_code` VALUES (350881000000, '漳平市', 3, 350800000000); -INSERT INTO `zz_area_code` VALUES (350900000000, '宁德市', 2, 350000000000); -INSERT INTO `zz_area_code` VALUES (350901000000, '市辖区', 3, 350900000000); -INSERT INTO `zz_area_code` VALUES (350902000000, '蕉城区', 3, 350900000000); -INSERT INTO `zz_area_code` VALUES (350921000000, '霞浦县', 3, 350900000000); -INSERT INTO `zz_area_code` VALUES (350922000000, '古田县', 3, 350900000000); -INSERT INTO `zz_area_code` VALUES (350923000000, '屏南县', 3, 350900000000); -INSERT INTO `zz_area_code` VALUES (350924000000, '寿宁县', 3, 350900000000); -INSERT INTO `zz_area_code` VALUES (350925000000, '周宁县', 3, 350900000000); -INSERT INTO `zz_area_code` VALUES (350926000000, '柘荣县', 3, 350900000000); -INSERT INTO `zz_area_code` VALUES (350981000000, '福安市', 3, 350900000000); -INSERT INTO `zz_area_code` VALUES (350982000000, '福鼎市', 3, 350900000000); -INSERT INTO `zz_area_code` VALUES (360000000000, '江西省', 1, NULL); -INSERT INTO `zz_area_code` VALUES (360100000000, '南昌市', 2, 360000000000); -INSERT INTO `zz_area_code` VALUES (360101000000, '市辖区', 3, 360100000000); -INSERT INTO `zz_area_code` VALUES (360102000000, '东湖区', 3, 360100000000); -INSERT INTO `zz_area_code` VALUES (360103000000, '西湖区', 3, 360100000000); -INSERT INTO `zz_area_code` VALUES (360104000000, '青云谱区', 3, 360100000000); -INSERT INTO `zz_area_code` VALUES (360105000000, '湾里区', 3, 360100000000); -INSERT INTO `zz_area_code` VALUES (360111000000, '青山湖区', 3, 360100000000); -INSERT INTO `zz_area_code` VALUES (360112000000, '新建区', 3, 360100000000); -INSERT INTO `zz_area_code` VALUES (360121000000, '南昌县', 3, 360100000000); -INSERT INTO `zz_area_code` VALUES (360123000000, '安义县', 3, 360100000000); -INSERT INTO `zz_area_code` VALUES (360124000000, '进贤县', 3, 360100000000); -INSERT INTO `zz_area_code` VALUES (360200000000, '景德镇市', 2, 360000000000); -INSERT INTO `zz_area_code` VALUES (360201000000, '市辖区', 3, 360200000000); -INSERT INTO `zz_area_code` VALUES (360202000000, '昌江区', 3, 360200000000); -INSERT INTO `zz_area_code` VALUES (360203000000, '珠山区', 3, 360200000000); -INSERT INTO `zz_area_code` VALUES (360222000000, '浮梁县', 3, 360200000000); -INSERT INTO `zz_area_code` VALUES (360281000000, '乐平市', 3, 360200000000); -INSERT INTO `zz_area_code` VALUES (360300000000, '萍乡市', 2, 360000000000); -INSERT INTO `zz_area_code` VALUES (360301000000, '市辖区', 3, 360300000000); -INSERT INTO `zz_area_code` VALUES (360302000000, '安源区', 3, 360300000000); -INSERT INTO `zz_area_code` VALUES (360313000000, '湘东区', 3, 360300000000); -INSERT INTO `zz_area_code` VALUES (360321000000, '莲花县', 3, 360300000000); -INSERT INTO `zz_area_code` VALUES (360322000000, '上栗县', 3, 360300000000); -INSERT INTO `zz_area_code` VALUES (360323000000, '芦溪县', 3, 360300000000); -INSERT INTO `zz_area_code` VALUES (360400000000, '九江市', 2, 360000000000); -INSERT INTO `zz_area_code` VALUES (360401000000, '市辖区', 3, 360400000000); -INSERT INTO `zz_area_code` VALUES (360402000000, '濂溪区', 3, 360400000000); -INSERT INTO `zz_area_code` VALUES (360403000000, '浔阳区', 3, 360400000000); -INSERT INTO `zz_area_code` VALUES (360404000000, '柴桑区', 3, 360400000000); -INSERT INTO `zz_area_code` VALUES (360423000000, '武宁县', 3, 360400000000); -INSERT INTO `zz_area_code` VALUES (360424000000, '修水县', 3, 360400000000); -INSERT INTO `zz_area_code` VALUES (360425000000, '永修县', 3, 360400000000); -INSERT INTO `zz_area_code` VALUES (360426000000, '德安县', 3, 360400000000); -INSERT INTO `zz_area_code` VALUES (360428000000, '都昌县', 3, 360400000000); -INSERT INTO `zz_area_code` VALUES (360429000000, '湖口县', 3, 360400000000); -INSERT INTO `zz_area_code` VALUES (360430000000, '彭泽县', 3, 360400000000); -INSERT INTO `zz_area_code` VALUES (360481000000, '瑞昌市', 3, 360400000000); -INSERT INTO `zz_area_code` VALUES (360482000000, '共青城市', 3, 360400000000); -INSERT INTO `zz_area_code` VALUES (360483000000, '庐山市', 3, 360400000000); -INSERT INTO `zz_area_code` VALUES (360500000000, '新余市', 2, 360000000000); -INSERT INTO `zz_area_code` VALUES (360501000000, '市辖区', 3, 360500000000); -INSERT INTO `zz_area_code` VALUES (360502000000, '渝水区', 3, 360500000000); -INSERT INTO `zz_area_code` VALUES (360521000000, '分宜县', 3, 360500000000); -INSERT INTO `zz_area_code` VALUES (360600000000, '鹰潭市', 2, 360000000000); -INSERT INTO `zz_area_code` VALUES (360601000000, '市辖区', 3, 360600000000); -INSERT INTO `zz_area_code` VALUES (360602000000, '月湖区', 3, 360600000000); -INSERT INTO `zz_area_code` VALUES (360603000000, '余江区', 3, 360600000000); -INSERT INTO `zz_area_code` VALUES (360681000000, '贵溪市', 3, 360600000000); -INSERT INTO `zz_area_code` VALUES (360700000000, '赣州市', 2, 360000000000); -INSERT INTO `zz_area_code` VALUES (360701000000, '市辖区', 3, 360700000000); -INSERT INTO `zz_area_code` VALUES (360702000000, '章贡区', 3, 360700000000); -INSERT INTO `zz_area_code` VALUES (360703000000, '南康区', 3, 360700000000); -INSERT INTO `zz_area_code` VALUES (360704000000, '赣县区', 3, 360700000000); -INSERT INTO `zz_area_code` VALUES (360722000000, '信丰县', 3, 360700000000); -INSERT INTO `zz_area_code` VALUES (360723000000, '大余县', 3, 360700000000); -INSERT INTO `zz_area_code` VALUES (360724000000, '上犹县', 3, 360700000000); -INSERT INTO `zz_area_code` VALUES (360725000000, '崇义县', 3, 360700000000); -INSERT INTO `zz_area_code` VALUES (360726000000, '安远县', 3, 360700000000); -INSERT INTO `zz_area_code` VALUES (360727000000, '龙南县', 3, 360700000000); -INSERT INTO `zz_area_code` VALUES (360728000000, '定南县', 3, 360700000000); -INSERT INTO `zz_area_code` VALUES (360729000000, '全南县', 3, 360700000000); -INSERT INTO `zz_area_code` VALUES (360730000000, '宁都县', 3, 360700000000); -INSERT INTO `zz_area_code` VALUES (360731000000, '于都县', 3, 360700000000); -INSERT INTO `zz_area_code` VALUES (360732000000, '兴国县', 3, 360700000000); -INSERT INTO `zz_area_code` VALUES (360733000000, '会昌县', 3, 360700000000); -INSERT INTO `zz_area_code` VALUES (360734000000, '寻乌县', 3, 360700000000); -INSERT INTO `zz_area_code` VALUES (360735000000, '石城县', 3, 360700000000); -INSERT INTO `zz_area_code` VALUES (360781000000, '瑞金市', 3, 360700000000); -INSERT INTO `zz_area_code` VALUES (360800000000, '吉安市', 2, 360000000000); -INSERT INTO `zz_area_code` VALUES (360801000000, '市辖区', 3, 360800000000); -INSERT INTO `zz_area_code` VALUES (360802000000, '吉州区', 3, 360800000000); -INSERT INTO `zz_area_code` VALUES (360803000000, '青原区', 3, 360800000000); -INSERT INTO `zz_area_code` VALUES (360821000000, '吉安县', 3, 360800000000); -INSERT INTO `zz_area_code` VALUES (360822000000, '吉水县', 3, 360800000000); -INSERT INTO `zz_area_code` VALUES (360823000000, '峡江县', 3, 360800000000); -INSERT INTO `zz_area_code` VALUES (360824000000, '新干县', 3, 360800000000); -INSERT INTO `zz_area_code` VALUES (360825000000, '永丰县', 3, 360800000000); -INSERT INTO `zz_area_code` VALUES (360826000000, '泰和县', 3, 360800000000); -INSERT INTO `zz_area_code` VALUES (360827000000, '遂川县', 3, 360800000000); -INSERT INTO `zz_area_code` VALUES (360828000000, '万安县', 3, 360800000000); -INSERT INTO `zz_area_code` VALUES (360829000000, '安福县', 3, 360800000000); -INSERT INTO `zz_area_code` VALUES (360830000000, '永新县', 3, 360800000000); -INSERT INTO `zz_area_code` VALUES (360881000000, '井冈山市', 3, 360800000000); -INSERT INTO `zz_area_code` VALUES (360900000000, '宜春市', 2, 360000000000); -INSERT INTO `zz_area_code` VALUES (360901000000, '市辖区', 3, 360900000000); -INSERT INTO `zz_area_code` VALUES (360902000000, '袁州区', 3, 360900000000); -INSERT INTO `zz_area_code` VALUES (360921000000, '奉新县', 3, 360900000000); -INSERT INTO `zz_area_code` VALUES (360922000000, '万载县', 3, 360900000000); -INSERT INTO `zz_area_code` VALUES (360923000000, '上高县', 3, 360900000000); -INSERT INTO `zz_area_code` VALUES (360924000000, '宜丰县', 3, 360900000000); -INSERT INTO `zz_area_code` VALUES (360925000000, '靖安县', 3, 360900000000); -INSERT INTO `zz_area_code` VALUES (360926000000, '铜鼓县', 3, 360900000000); -INSERT INTO `zz_area_code` VALUES (360981000000, '丰城市', 3, 360900000000); -INSERT INTO `zz_area_code` VALUES (360982000000, '樟树市', 3, 360900000000); -INSERT INTO `zz_area_code` VALUES (360983000000, '高安市', 3, 360900000000); -INSERT INTO `zz_area_code` VALUES (361000000000, '抚州市', 2, 360000000000); -INSERT INTO `zz_area_code` VALUES (361001000000, '市辖区', 3, 361000000000); -INSERT INTO `zz_area_code` VALUES (361002000000, '临川区', 3, 361000000000); -INSERT INTO `zz_area_code` VALUES (361003000000, '东乡区', 3, 361000000000); -INSERT INTO `zz_area_code` VALUES (361021000000, '南城县', 3, 361000000000); -INSERT INTO `zz_area_code` VALUES (361022000000, '黎川县', 3, 361000000000); -INSERT INTO `zz_area_code` VALUES (361023000000, '南丰县', 3, 361000000000); -INSERT INTO `zz_area_code` VALUES (361024000000, '崇仁县', 3, 361000000000); -INSERT INTO `zz_area_code` VALUES (361025000000, '乐安县', 3, 361000000000); -INSERT INTO `zz_area_code` VALUES (361026000000, '宜黄县', 3, 361000000000); -INSERT INTO `zz_area_code` VALUES (361027000000, '金溪县', 3, 361000000000); -INSERT INTO `zz_area_code` VALUES (361028000000, '资溪县', 3, 361000000000); -INSERT INTO `zz_area_code` VALUES (361030000000, '广昌县', 3, 361000000000); -INSERT INTO `zz_area_code` VALUES (361100000000, '上饶市', 2, 360000000000); -INSERT INTO `zz_area_code` VALUES (361101000000, '市辖区', 3, 361100000000); -INSERT INTO `zz_area_code` VALUES (361102000000, '信州区', 3, 361100000000); -INSERT INTO `zz_area_code` VALUES (361103000000, '广丰区', 3, 361100000000); -INSERT INTO `zz_area_code` VALUES (361121000000, '上饶县', 3, 361100000000); -INSERT INTO `zz_area_code` VALUES (361123000000, '玉山县', 3, 361100000000); -INSERT INTO `zz_area_code` VALUES (361124000000, '铅山县', 3, 361100000000); -INSERT INTO `zz_area_code` VALUES (361125000000, '横峰县', 3, 361100000000); -INSERT INTO `zz_area_code` VALUES (361126000000, '弋阳县', 3, 361100000000); -INSERT INTO `zz_area_code` VALUES (361127000000, '余干县', 3, 361100000000); -INSERT INTO `zz_area_code` VALUES (361128000000, '鄱阳县', 3, 361100000000); -INSERT INTO `zz_area_code` VALUES (361129000000, '万年县', 3, 361100000000); -INSERT INTO `zz_area_code` VALUES (361130000000, '婺源县', 3, 361100000000); -INSERT INTO `zz_area_code` VALUES (361181000000, '德兴市', 3, 361100000000); -INSERT INTO `zz_area_code` VALUES (370000000000, '山东省', 1, NULL); -INSERT INTO `zz_area_code` VALUES (370100000000, '济南市', 2, 370000000000); -INSERT INTO `zz_area_code` VALUES (370101000000, '市辖区', 3, 370100000000); -INSERT INTO `zz_area_code` VALUES (370102000000, '历下区', 3, 370100000000); -INSERT INTO `zz_area_code` VALUES (370103000000, '市中区', 3, 370100000000); -INSERT INTO `zz_area_code` VALUES (370104000000, '槐荫区', 3, 370100000000); -INSERT INTO `zz_area_code` VALUES (370105000000, '天桥区', 3, 370100000000); -INSERT INTO `zz_area_code` VALUES (370112000000, '历城区', 3, 370100000000); -INSERT INTO `zz_area_code` VALUES (370113000000, '长清区', 3, 370100000000); -INSERT INTO `zz_area_code` VALUES (370114000000, '章丘区', 3, 370100000000); -INSERT INTO `zz_area_code` VALUES (370115000000, '济阳区', 3, 370100000000); -INSERT INTO `zz_area_code` VALUES (370124000000, '平阴县', 3, 370100000000); -INSERT INTO `zz_area_code` VALUES (370126000000, '商河县', 3, 370100000000); -INSERT INTO `zz_area_code` VALUES (370171000000, '济南高新技术产业开发区', 3, 370100000000); -INSERT INTO `zz_area_code` VALUES (370200000000, '青岛市', 2, 370000000000); -INSERT INTO `zz_area_code` VALUES (370201000000, '市辖区', 3, 370200000000); -INSERT INTO `zz_area_code` VALUES (370202000000, '市南区', 3, 370200000000); -INSERT INTO `zz_area_code` VALUES (370203000000, '市北区', 3, 370200000000); -INSERT INTO `zz_area_code` VALUES (370211000000, '黄岛区', 3, 370200000000); -INSERT INTO `zz_area_code` VALUES (370212000000, '崂山区', 3, 370200000000); -INSERT INTO `zz_area_code` VALUES (370213000000, '李沧区', 3, 370200000000); -INSERT INTO `zz_area_code` VALUES (370214000000, '城阳区', 3, 370200000000); -INSERT INTO `zz_area_code` VALUES (370215000000, '即墨区', 3, 370200000000); -INSERT INTO `zz_area_code` VALUES (370271000000, '青岛高新技术产业开发区', 3, 370200000000); -INSERT INTO `zz_area_code` VALUES (370281000000, '胶州市', 3, 370200000000); -INSERT INTO `zz_area_code` VALUES (370283000000, '平度市', 3, 370200000000); -INSERT INTO `zz_area_code` VALUES (370285000000, '莱西市', 3, 370200000000); -INSERT INTO `zz_area_code` VALUES (370300000000, '淄博市', 2, 370000000000); -INSERT INTO `zz_area_code` VALUES (370301000000, '市辖区', 3, 370300000000); -INSERT INTO `zz_area_code` VALUES (370302000000, '淄川区', 3, 370300000000); -INSERT INTO `zz_area_code` VALUES (370303000000, '张店区', 3, 370300000000); -INSERT INTO `zz_area_code` VALUES (370304000000, '博山区', 3, 370300000000); -INSERT INTO `zz_area_code` VALUES (370305000000, '临淄区', 3, 370300000000); -INSERT INTO `zz_area_code` VALUES (370306000000, '周村区', 3, 370300000000); -INSERT INTO `zz_area_code` VALUES (370321000000, '桓台县', 3, 370300000000); -INSERT INTO `zz_area_code` VALUES (370322000000, '高青县', 3, 370300000000); -INSERT INTO `zz_area_code` VALUES (370323000000, '沂源县', 3, 370300000000); -INSERT INTO `zz_area_code` VALUES (370400000000, '枣庄市', 2, 370000000000); -INSERT INTO `zz_area_code` VALUES (370401000000, '市辖区', 3, 370400000000); -INSERT INTO `zz_area_code` VALUES (370402000000, '市中区', 3, 370400000000); -INSERT INTO `zz_area_code` VALUES (370403000000, '薛城区', 3, 370400000000); -INSERT INTO `zz_area_code` VALUES (370404000000, '峄城区', 3, 370400000000); -INSERT INTO `zz_area_code` VALUES (370405000000, '台儿庄区', 3, 370400000000); -INSERT INTO `zz_area_code` VALUES (370406000000, '山亭区', 3, 370400000000); -INSERT INTO `zz_area_code` VALUES (370481000000, '滕州市', 3, 370400000000); -INSERT INTO `zz_area_code` VALUES (370500000000, '东营市', 2, 370000000000); -INSERT INTO `zz_area_code` VALUES (370501000000, '市辖区', 3, 370500000000); -INSERT INTO `zz_area_code` VALUES (370502000000, '东营区', 3, 370500000000); -INSERT INTO `zz_area_code` VALUES (370503000000, '河口区', 3, 370500000000); -INSERT INTO `zz_area_code` VALUES (370505000000, '垦利区', 3, 370500000000); -INSERT INTO `zz_area_code` VALUES (370522000000, '利津县', 3, 370500000000); -INSERT INTO `zz_area_code` VALUES (370523000000, '广饶县', 3, 370500000000); -INSERT INTO `zz_area_code` VALUES (370571000000, '东营经济技术开发区', 3, 370500000000); -INSERT INTO `zz_area_code` VALUES (370572000000, '东营港经济开发区', 3, 370500000000); -INSERT INTO `zz_area_code` VALUES (370600000000, '烟台市', 2, 370000000000); -INSERT INTO `zz_area_code` VALUES (370601000000, '市辖区', 3, 370600000000); -INSERT INTO `zz_area_code` VALUES (370602000000, '芝罘区', 3, 370600000000); -INSERT INTO `zz_area_code` VALUES (370611000000, '福山区', 3, 370600000000); -INSERT INTO `zz_area_code` VALUES (370612000000, '牟平区', 3, 370600000000); -INSERT INTO `zz_area_code` VALUES (370613000000, '莱山区', 3, 370600000000); -INSERT INTO `zz_area_code` VALUES (370634000000, '长岛县', 3, 370600000000); -INSERT INTO `zz_area_code` VALUES (370671000000, '烟台高新技术产业开发区', 3, 370600000000); -INSERT INTO `zz_area_code` VALUES (370672000000, '烟台经济技术开发区', 3, 370600000000); -INSERT INTO `zz_area_code` VALUES (370681000000, '龙口市', 3, 370600000000); -INSERT INTO `zz_area_code` VALUES (370682000000, '莱阳市', 3, 370600000000); -INSERT INTO `zz_area_code` VALUES (370683000000, '莱州市', 3, 370600000000); -INSERT INTO `zz_area_code` VALUES (370684000000, '蓬莱市', 3, 370600000000); -INSERT INTO `zz_area_code` VALUES (370685000000, '招远市', 3, 370600000000); -INSERT INTO `zz_area_code` VALUES (370686000000, '栖霞市', 3, 370600000000); -INSERT INTO `zz_area_code` VALUES (370687000000, '海阳市', 3, 370600000000); -INSERT INTO `zz_area_code` VALUES (370700000000, '潍坊市', 2, 370000000000); -INSERT INTO `zz_area_code` VALUES (370701000000, '市辖区', 3, 370700000000); -INSERT INTO `zz_area_code` VALUES (370702000000, '潍城区', 3, 370700000000); -INSERT INTO `zz_area_code` VALUES (370703000000, '寒亭区', 3, 370700000000); -INSERT INTO `zz_area_code` VALUES (370704000000, '坊子区', 3, 370700000000); -INSERT INTO `zz_area_code` VALUES (370705000000, '奎文区', 3, 370700000000); -INSERT INTO `zz_area_code` VALUES (370724000000, '临朐县', 3, 370700000000); -INSERT INTO `zz_area_code` VALUES (370725000000, '昌乐县', 3, 370700000000); -INSERT INTO `zz_area_code` VALUES (370772000000, '潍坊滨海经济技术开发区', 3, 370700000000); -INSERT INTO `zz_area_code` VALUES (370781000000, '青州市', 3, 370700000000); -INSERT INTO `zz_area_code` VALUES (370782000000, '诸城市', 3, 370700000000); -INSERT INTO `zz_area_code` VALUES (370783000000, '寿光市', 3, 370700000000); -INSERT INTO `zz_area_code` VALUES (370784000000, '安丘市', 3, 370700000000); -INSERT INTO `zz_area_code` VALUES (370785000000, '高密市', 3, 370700000000); -INSERT INTO `zz_area_code` VALUES (370786000000, '昌邑市', 3, 370700000000); -INSERT INTO `zz_area_code` VALUES (370800000000, '济宁市', 2, 370000000000); -INSERT INTO `zz_area_code` VALUES (370801000000, '市辖区', 3, 370800000000); -INSERT INTO `zz_area_code` VALUES (370811000000, '任城区', 3, 370800000000); -INSERT INTO `zz_area_code` VALUES (370812000000, '兖州区', 3, 370800000000); -INSERT INTO `zz_area_code` VALUES (370826000000, '微山县', 3, 370800000000); -INSERT INTO `zz_area_code` VALUES (370827000000, '鱼台县', 3, 370800000000); -INSERT INTO `zz_area_code` VALUES (370828000000, '金乡县', 3, 370800000000); -INSERT INTO `zz_area_code` VALUES (370829000000, '嘉祥县', 3, 370800000000); -INSERT INTO `zz_area_code` VALUES (370830000000, '汶上县', 3, 370800000000); -INSERT INTO `zz_area_code` VALUES (370831000000, '泗水县', 3, 370800000000); -INSERT INTO `zz_area_code` VALUES (370832000000, '梁山县', 3, 370800000000); -INSERT INTO `zz_area_code` VALUES (370871000000, '济宁高新技术产业开发区', 3, 370800000000); -INSERT INTO `zz_area_code` VALUES (370881000000, '曲阜市', 3, 370800000000); -INSERT INTO `zz_area_code` VALUES (370883000000, '邹城市', 3, 370800000000); -INSERT INTO `zz_area_code` VALUES (370900000000, '泰安市', 2, 370000000000); -INSERT INTO `zz_area_code` VALUES (370901000000, '市辖区', 3, 370900000000); -INSERT INTO `zz_area_code` VALUES (370902000000, '泰山区', 3, 370900000000); -INSERT INTO `zz_area_code` VALUES (370911000000, '岱岳区', 3, 370900000000); -INSERT INTO `zz_area_code` VALUES (370921000000, '宁阳县', 3, 370900000000); -INSERT INTO `zz_area_code` VALUES (370923000000, '东平县', 3, 370900000000); -INSERT INTO `zz_area_code` VALUES (370982000000, '新泰市', 3, 370900000000); -INSERT INTO `zz_area_code` VALUES (370983000000, '肥城市', 3, 370900000000); -INSERT INTO `zz_area_code` VALUES (371000000000, '威海市', 2, 370000000000); -INSERT INTO `zz_area_code` VALUES (371001000000, '市辖区', 3, 371000000000); -INSERT INTO `zz_area_code` VALUES (371002000000, '环翠区', 3, 371000000000); -INSERT INTO `zz_area_code` VALUES (371003000000, '文登区', 3, 371000000000); -INSERT INTO `zz_area_code` VALUES (371071000000, '威海火炬高技术产业开发区', 3, 371000000000); -INSERT INTO `zz_area_code` VALUES (371072000000, '威海经济技术开发区', 3, 371000000000); -INSERT INTO `zz_area_code` VALUES (371073000000, '威海临港经济技术开发区', 3, 371000000000); -INSERT INTO `zz_area_code` VALUES (371082000000, '荣成市', 3, 371000000000); -INSERT INTO `zz_area_code` VALUES (371083000000, '乳山市', 3, 371000000000); -INSERT INTO `zz_area_code` VALUES (371100000000, '日照市', 2, 370000000000); -INSERT INTO `zz_area_code` VALUES (371101000000, '市辖区', 3, 371100000000); -INSERT INTO `zz_area_code` VALUES (371102000000, '东港区', 3, 371100000000); -INSERT INTO `zz_area_code` VALUES (371103000000, '岚山区', 3, 371100000000); -INSERT INTO `zz_area_code` VALUES (371121000000, '五莲县', 3, 371100000000); -INSERT INTO `zz_area_code` VALUES (371122000000, '莒县', 3, 371100000000); -INSERT INTO `zz_area_code` VALUES (371171000000, '日照经济技术开发区', 3, 371100000000); -INSERT INTO `zz_area_code` VALUES (371200000000, '莱芜市', 2, 370000000000); -INSERT INTO `zz_area_code` VALUES (371201000000, '市辖区', 3, 371200000000); -INSERT INTO `zz_area_code` VALUES (371202000000, '莱城区', 3, 371200000000); -INSERT INTO `zz_area_code` VALUES (371203000000, '钢城区', 3, 371200000000); -INSERT INTO `zz_area_code` VALUES (371300000000, '临沂市', 2, 370000000000); -INSERT INTO `zz_area_code` VALUES (371301000000, '市辖区', 3, 371300000000); -INSERT INTO `zz_area_code` VALUES (371302000000, '兰山区', 3, 371300000000); -INSERT INTO `zz_area_code` VALUES (371311000000, '罗庄区', 3, 371300000000); -INSERT INTO `zz_area_code` VALUES (371312000000, '河东区', 3, 371300000000); -INSERT INTO `zz_area_code` VALUES (371321000000, '沂南县', 3, 371300000000); -INSERT INTO `zz_area_code` VALUES (371322000000, '郯城县', 3, 371300000000); -INSERT INTO `zz_area_code` VALUES (371323000000, '沂水县', 3, 371300000000); -INSERT INTO `zz_area_code` VALUES (371324000000, '兰陵县', 3, 371300000000); -INSERT INTO `zz_area_code` VALUES (371325000000, '费县', 3, 371300000000); -INSERT INTO `zz_area_code` VALUES (371326000000, '平邑县', 3, 371300000000); -INSERT INTO `zz_area_code` VALUES (371327000000, '莒南县', 3, 371300000000); -INSERT INTO `zz_area_code` VALUES (371328000000, '蒙阴县', 3, 371300000000); -INSERT INTO `zz_area_code` VALUES (371329000000, '临沭县', 3, 371300000000); -INSERT INTO `zz_area_code` VALUES (371371000000, '临沂高新技术产业开发区', 3, 371300000000); -INSERT INTO `zz_area_code` VALUES (371372000000, '临沂经济技术开发区', 3, 371300000000); -INSERT INTO `zz_area_code` VALUES (371373000000, '临沂临港经济开发区', 3, 371300000000); -INSERT INTO `zz_area_code` VALUES (371400000000, '德州市', 2, 370000000000); -INSERT INTO `zz_area_code` VALUES (371401000000, '市辖区', 3, 371400000000); -INSERT INTO `zz_area_code` VALUES (371402000000, '德城区', 3, 371400000000); -INSERT INTO `zz_area_code` VALUES (371403000000, '陵城区', 3, 371400000000); -INSERT INTO `zz_area_code` VALUES (371422000000, '宁津县', 3, 371400000000); -INSERT INTO `zz_area_code` VALUES (371423000000, '庆云县', 3, 371400000000); -INSERT INTO `zz_area_code` VALUES (371424000000, '临邑县', 3, 371400000000); -INSERT INTO `zz_area_code` VALUES (371425000000, '齐河县', 3, 371400000000); -INSERT INTO `zz_area_code` VALUES (371426000000, '平原县', 3, 371400000000); -INSERT INTO `zz_area_code` VALUES (371427000000, '夏津县', 3, 371400000000); -INSERT INTO `zz_area_code` VALUES (371428000000, '武城县', 3, 371400000000); -INSERT INTO `zz_area_code` VALUES (371471000000, '德州经济技术开发区', 3, 371400000000); -INSERT INTO `zz_area_code` VALUES (371472000000, '德州运河经济开发区', 3, 371400000000); -INSERT INTO `zz_area_code` VALUES (371481000000, '乐陵市', 3, 371400000000); -INSERT INTO `zz_area_code` VALUES (371482000000, '禹城市', 3, 371400000000); -INSERT INTO `zz_area_code` VALUES (371500000000, '聊城市', 2, 370000000000); -INSERT INTO `zz_area_code` VALUES (371501000000, '市辖区', 3, 371500000000); -INSERT INTO `zz_area_code` VALUES (371502000000, '东昌府区', 3, 371500000000); -INSERT INTO `zz_area_code` VALUES (371521000000, '阳谷县', 3, 371500000000); -INSERT INTO `zz_area_code` VALUES (371522000000, '莘县', 3, 371500000000); -INSERT INTO `zz_area_code` VALUES (371523000000, '茌平县', 3, 371500000000); -INSERT INTO `zz_area_code` VALUES (371524000000, '东阿县', 3, 371500000000); -INSERT INTO `zz_area_code` VALUES (371525000000, '冠县', 3, 371500000000); -INSERT INTO `zz_area_code` VALUES (371526000000, '高唐县', 3, 371500000000); -INSERT INTO `zz_area_code` VALUES (371581000000, '临清市', 3, 371500000000); -INSERT INTO `zz_area_code` VALUES (371600000000, '滨州市', 2, 370000000000); -INSERT INTO `zz_area_code` VALUES (371601000000, '市辖区', 3, 371600000000); -INSERT INTO `zz_area_code` VALUES (371602000000, '滨城区', 3, 371600000000); -INSERT INTO `zz_area_code` VALUES (371603000000, '沾化区', 3, 371600000000); -INSERT INTO `zz_area_code` VALUES (371621000000, '惠民县', 3, 371600000000); -INSERT INTO `zz_area_code` VALUES (371622000000, '阳信县', 3, 371600000000); -INSERT INTO `zz_area_code` VALUES (371623000000, '无棣县', 3, 371600000000); -INSERT INTO `zz_area_code` VALUES (371625000000, '博兴县', 3, 371600000000); -INSERT INTO `zz_area_code` VALUES (371681000000, '邹平市', 3, 371600000000); -INSERT INTO `zz_area_code` VALUES (371700000000, '菏泽市', 2, 370000000000); -INSERT INTO `zz_area_code` VALUES (371701000000, '市辖区', 3, 371700000000); -INSERT INTO `zz_area_code` VALUES (371702000000, '牡丹区', 3, 371700000000); -INSERT INTO `zz_area_code` VALUES (371703000000, '定陶区', 3, 371700000000); -INSERT INTO `zz_area_code` VALUES (371721000000, '曹县', 3, 371700000000); -INSERT INTO `zz_area_code` VALUES (371722000000, '单县', 3, 371700000000); -INSERT INTO `zz_area_code` VALUES (371723000000, '成武县', 3, 371700000000); -INSERT INTO `zz_area_code` VALUES (371724000000, '巨野县', 3, 371700000000); -INSERT INTO `zz_area_code` VALUES (371725000000, '郓城县', 3, 371700000000); -INSERT INTO `zz_area_code` VALUES (371726000000, '鄄城县', 3, 371700000000); -INSERT INTO `zz_area_code` VALUES (371728000000, '东明县', 3, 371700000000); -INSERT INTO `zz_area_code` VALUES (371771000000, '菏泽经济技术开发区', 3, 371700000000); -INSERT INTO `zz_area_code` VALUES (371772000000, '菏泽高新技术开发区', 3, 371700000000); -INSERT INTO `zz_area_code` VALUES (410000000000, '河南省', 1, NULL); -INSERT INTO `zz_area_code` VALUES (410100000000, '郑州市', 2, 410000000000); -INSERT INTO `zz_area_code` VALUES (410101000000, '市辖区', 3, 410100000000); -INSERT INTO `zz_area_code` VALUES (410102000000, '中原区', 3, 410100000000); -INSERT INTO `zz_area_code` VALUES (410103000000, '二七区', 3, 410100000000); -INSERT INTO `zz_area_code` VALUES (410104000000, '管城回族区', 3, 410100000000); -INSERT INTO `zz_area_code` VALUES (410105000000, '金水区', 3, 410100000000); -INSERT INTO `zz_area_code` VALUES (410106000000, '上街区', 3, 410100000000); -INSERT INTO `zz_area_code` VALUES (410108000000, '惠济区', 3, 410100000000); -INSERT INTO `zz_area_code` VALUES (410122000000, '中牟县', 3, 410100000000); -INSERT INTO `zz_area_code` VALUES (410171000000, '郑州经济技术开发区', 3, 410100000000); -INSERT INTO `zz_area_code` VALUES (410172000000, '郑州高新技术产业开发区', 3, 410100000000); -INSERT INTO `zz_area_code` VALUES (410173000000, '郑州航空港经济综合实验区', 3, 410100000000); -INSERT INTO `zz_area_code` VALUES (410181000000, '巩义市', 3, 410100000000); -INSERT INTO `zz_area_code` VALUES (410182000000, '荥阳市', 3, 410100000000); -INSERT INTO `zz_area_code` VALUES (410183000000, '新密市', 3, 410100000000); -INSERT INTO `zz_area_code` VALUES (410184000000, '新郑市', 3, 410100000000); -INSERT INTO `zz_area_code` VALUES (410185000000, '登封市', 3, 410100000000); -INSERT INTO `zz_area_code` VALUES (410200000000, '开封市', 2, 410000000000); -INSERT INTO `zz_area_code` VALUES (410201000000, '市辖区', 3, 410200000000); -INSERT INTO `zz_area_code` VALUES (410202000000, '龙亭区', 3, 410200000000); -INSERT INTO `zz_area_code` VALUES (410203000000, '顺河回族区', 3, 410200000000); -INSERT INTO `zz_area_code` VALUES (410204000000, '鼓楼区', 3, 410200000000); -INSERT INTO `zz_area_code` VALUES (410205000000, '禹王台区', 3, 410200000000); -INSERT INTO `zz_area_code` VALUES (410212000000, '祥符区', 3, 410200000000); -INSERT INTO `zz_area_code` VALUES (410221000000, '杞县', 3, 410200000000); -INSERT INTO `zz_area_code` VALUES (410222000000, '通许县', 3, 410200000000); -INSERT INTO `zz_area_code` VALUES (410223000000, '尉氏县', 3, 410200000000); -INSERT INTO `zz_area_code` VALUES (410225000000, '兰考县', 3, 410200000000); -INSERT INTO `zz_area_code` VALUES (410300000000, '洛阳市', 2, 410000000000); -INSERT INTO `zz_area_code` VALUES (410301000000, '市辖区', 3, 410300000000); -INSERT INTO `zz_area_code` VALUES (410302000000, '老城区', 3, 410300000000); -INSERT INTO `zz_area_code` VALUES (410303000000, '西工区', 3, 410300000000); -INSERT INTO `zz_area_code` VALUES (410304000000, '瀍河回族区', 3, 410300000000); -INSERT INTO `zz_area_code` VALUES (410305000000, '涧西区', 3, 410300000000); -INSERT INTO `zz_area_code` VALUES (410306000000, '吉利区', 3, 410300000000); -INSERT INTO `zz_area_code` VALUES (410311000000, '洛龙区', 3, 410300000000); -INSERT INTO `zz_area_code` VALUES (410322000000, '孟津县', 3, 410300000000); -INSERT INTO `zz_area_code` VALUES (410323000000, '新安县', 3, 410300000000); -INSERT INTO `zz_area_code` VALUES (410324000000, '栾川县', 3, 410300000000); -INSERT INTO `zz_area_code` VALUES (410325000000, '嵩县', 3, 410300000000); -INSERT INTO `zz_area_code` VALUES (410326000000, '汝阳县', 3, 410300000000); -INSERT INTO `zz_area_code` VALUES (410327000000, '宜阳县', 3, 410300000000); -INSERT INTO `zz_area_code` VALUES (410328000000, '洛宁县', 3, 410300000000); -INSERT INTO `zz_area_code` VALUES (410329000000, '伊川县', 3, 410300000000); -INSERT INTO `zz_area_code` VALUES (410371000000, '洛阳高新技术产业开发区', 3, 410300000000); -INSERT INTO `zz_area_code` VALUES (410381000000, '偃师市', 3, 410300000000); -INSERT INTO `zz_area_code` VALUES (410400000000, '平顶山市', 2, 410000000000); -INSERT INTO `zz_area_code` VALUES (410401000000, '市辖区', 3, 410400000000); -INSERT INTO `zz_area_code` VALUES (410402000000, '新华区', 3, 410400000000); -INSERT INTO `zz_area_code` VALUES (410403000000, '卫东区', 3, 410400000000); -INSERT INTO `zz_area_code` VALUES (410404000000, '石龙区', 3, 410400000000); -INSERT INTO `zz_area_code` VALUES (410411000000, '湛河区', 3, 410400000000); -INSERT INTO `zz_area_code` VALUES (410421000000, '宝丰县', 3, 410400000000); -INSERT INTO `zz_area_code` VALUES (410422000000, '叶县', 3, 410400000000); -INSERT INTO `zz_area_code` VALUES (410423000000, '鲁山县', 3, 410400000000); -INSERT INTO `zz_area_code` VALUES (410425000000, '郏县', 3, 410400000000); -INSERT INTO `zz_area_code` VALUES (410471000000, '平顶山高新技术产业开发区', 3, 410400000000); -INSERT INTO `zz_area_code` VALUES (410472000000, '平顶山市新城区', 3, 410400000000); -INSERT INTO `zz_area_code` VALUES (410481000000, '舞钢市', 3, 410400000000); -INSERT INTO `zz_area_code` VALUES (410482000000, '汝州市', 3, 410400000000); -INSERT INTO `zz_area_code` VALUES (410500000000, '安阳市', 2, 410000000000); -INSERT INTO `zz_area_code` VALUES (410501000000, '市辖区', 3, 410500000000); -INSERT INTO `zz_area_code` VALUES (410502000000, '文峰区', 3, 410500000000); -INSERT INTO `zz_area_code` VALUES (410503000000, '北关区', 3, 410500000000); -INSERT INTO `zz_area_code` VALUES (410505000000, '殷都区', 3, 410500000000); -INSERT INTO `zz_area_code` VALUES (410506000000, '龙安区', 3, 410500000000); -INSERT INTO `zz_area_code` VALUES (410522000000, '安阳县', 3, 410500000000); -INSERT INTO `zz_area_code` VALUES (410523000000, '汤阴县', 3, 410500000000); -INSERT INTO `zz_area_code` VALUES (410526000000, '滑县', 3, 410500000000); -INSERT INTO `zz_area_code` VALUES (410527000000, '内黄县', 3, 410500000000); -INSERT INTO `zz_area_code` VALUES (410571000000, '安阳高新技术产业开发区', 3, 410500000000); -INSERT INTO `zz_area_code` VALUES (410581000000, '林州市', 3, 410500000000); -INSERT INTO `zz_area_code` VALUES (410600000000, '鹤壁市', 2, 410000000000); -INSERT INTO `zz_area_code` VALUES (410601000000, '市辖区', 3, 410600000000); -INSERT INTO `zz_area_code` VALUES (410602000000, '鹤山区', 3, 410600000000); -INSERT INTO `zz_area_code` VALUES (410603000000, '山城区', 3, 410600000000); -INSERT INTO `zz_area_code` VALUES (410611000000, '淇滨区', 3, 410600000000); -INSERT INTO `zz_area_code` VALUES (410621000000, '浚县', 3, 410600000000); -INSERT INTO `zz_area_code` VALUES (410622000000, '淇县', 3, 410600000000); -INSERT INTO `zz_area_code` VALUES (410671000000, '鹤壁经济技术开发区', 3, 410600000000); -INSERT INTO `zz_area_code` VALUES (410700000000, '新乡市', 2, 410000000000); -INSERT INTO `zz_area_code` VALUES (410701000000, '市辖区', 3, 410700000000); -INSERT INTO `zz_area_code` VALUES (410702000000, '红旗区', 3, 410700000000); -INSERT INTO `zz_area_code` VALUES (410703000000, '卫滨区', 3, 410700000000); -INSERT INTO `zz_area_code` VALUES (410704000000, '凤泉区', 3, 410700000000); -INSERT INTO `zz_area_code` VALUES (410711000000, '牧野区', 3, 410700000000); -INSERT INTO `zz_area_code` VALUES (410721000000, '新乡县', 3, 410700000000); -INSERT INTO `zz_area_code` VALUES (410724000000, '获嘉县', 3, 410700000000); -INSERT INTO `zz_area_code` VALUES (410725000000, '原阳县', 3, 410700000000); -INSERT INTO `zz_area_code` VALUES (410726000000, '延津县', 3, 410700000000); -INSERT INTO `zz_area_code` VALUES (410727000000, '封丘县', 3, 410700000000); -INSERT INTO `zz_area_code` VALUES (410728000000, '长垣县', 3, 410700000000); -INSERT INTO `zz_area_code` VALUES (410771000000, '新乡高新技术产业开发区', 3, 410700000000); -INSERT INTO `zz_area_code` VALUES (410772000000, '新乡经济技术开发区', 3, 410700000000); -INSERT INTO `zz_area_code` VALUES (410773000000, '新乡市平原城乡一体化示范区', 3, 410700000000); -INSERT INTO `zz_area_code` VALUES (410781000000, '卫辉市', 3, 410700000000); -INSERT INTO `zz_area_code` VALUES (410782000000, '辉县市', 3, 410700000000); -INSERT INTO `zz_area_code` VALUES (410800000000, '焦作市', 2, 410000000000); -INSERT INTO `zz_area_code` VALUES (410801000000, '市辖区', 3, 410800000000); -INSERT INTO `zz_area_code` VALUES (410802000000, '解放区', 3, 410800000000); -INSERT INTO `zz_area_code` VALUES (410803000000, '中站区', 3, 410800000000); -INSERT INTO `zz_area_code` VALUES (410804000000, '马村区', 3, 410800000000); -INSERT INTO `zz_area_code` VALUES (410811000000, '山阳区', 3, 410800000000); -INSERT INTO `zz_area_code` VALUES (410821000000, '修武县', 3, 410800000000); -INSERT INTO `zz_area_code` VALUES (410822000000, '博爱县', 3, 410800000000); -INSERT INTO `zz_area_code` VALUES (410823000000, '武陟县', 3, 410800000000); -INSERT INTO `zz_area_code` VALUES (410825000000, '温县', 3, 410800000000); -INSERT INTO `zz_area_code` VALUES (410871000000, '焦作城乡一体化示范区', 3, 410800000000); -INSERT INTO `zz_area_code` VALUES (410882000000, '沁阳市', 3, 410800000000); -INSERT INTO `zz_area_code` VALUES (410883000000, '孟州市', 3, 410800000000); -INSERT INTO `zz_area_code` VALUES (410900000000, '濮阳市', 2, 410000000000); -INSERT INTO `zz_area_code` VALUES (410901000000, '市辖区', 3, 410900000000); -INSERT INTO `zz_area_code` VALUES (410902000000, '华龙区', 3, 410900000000); -INSERT INTO `zz_area_code` VALUES (410922000000, '清丰县', 3, 410900000000); -INSERT INTO `zz_area_code` VALUES (410923000000, '南乐县', 3, 410900000000); -INSERT INTO `zz_area_code` VALUES (410926000000, '范县', 3, 410900000000); -INSERT INTO `zz_area_code` VALUES (410927000000, '台前县', 3, 410900000000); -INSERT INTO `zz_area_code` VALUES (410928000000, '濮阳县', 3, 410900000000); -INSERT INTO `zz_area_code` VALUES (410971000000, '河南濮阳工业园区', 3, 410900000000); -INSERT INTO `zz_area_code` VALUES (410972000000, '濮阳经济技术开发区', 3, 410900000000); -INSERT INTO `zz_area_code` VALUES (411000000000, '许昌市', 2, 410000000000); -INSERT INTO `zz_area_code` VALUES (411001000000, '市辖区', 3, 411000000000); -INSERT INTO `zz_area_code` VALUES (411002000000, '魏都区', 3, 411000000000); -INSERT INTO `zz_area_code` VALUES (411003000000, '建安区', 3, 411000000000); -INSERT INTO `zz_area_code` VALUES (411024000000, '鄢陵县', 3, 411000000000); -INSERT INTO `zz_area_code` VALUES (411025000000, '襄城县', 3, 411000000000); -INSERT INTO `zz_area_code` VALUES (411071000000, '许昌经济技术开发区', 3, 411000000000); -INSERT INTO `zz_area_code` VALUES (411081000000, '禹州市', 3, 411000000000); -INSERT INTO `zz_area_code` VALUES (411082000000, '长葛市', 3, 411000000000); -INSERT INTO `zz_area_code` VALUES (411100000000, '漯河市', 2, 410000000000); -INSERT INTO `zz_area_code` VALUES (411101000000, '市辖区', 3, 411100000000); -INSERT INTO `zz_area_code` VALUES (411102000000, '源汇区', 3, 411100000000); -INSERT INTO `zz_area_code` VALUES (411103000000, '郾城区', 3, 411100000000); -INSERT INTO `zz_area_code` VALUES (411104000000, '召陵区', 3, 411100000000); -INSERT INTO `zz_area_code` VALUES (411121000000, '舞阳县', 3, 411100000000); -INSERT INTO `zz_area_code` VALUES (411122000000, '临颍县', 3, 411100000000); -INSERT INTO `zz_area_code` VALUES (411171000000, '漯河经济技术开发区', 3, 411100000000); -INSERT INTO `zz_area_code` VALUES (411200000000, '三门峡市', 2, 410000000000); -INSERT INTO `zz_area_code` VALUES (411201000000, '市辖区', 3, 411200000000); -INSERT INTO `zz_area_code` VALUES (411202000000, '湖滨区', 3, 411200000000); -INSERT INTO `zz_area_code` VALUES (411203000000, '陕州区', 3, 411200000000); -INSERT INTO `zz_area_code` VALUES (411221000000, '渑池县', 3, 411200000000); -INSERT INTO `zz_area_code` VALUES (411224000000, '卢氏县', 3, 411200000000); -INSERT INTO `zz_area_code` VALUES (411271000000, '河南三门峡经济开发区', 3, 411200000000); -INSERT INTO `zz_area_code` VALUES (411281000000, '义马市', 3, 411200000000); -INSERT INTO `zz_area_code` VALUES (411282000000, '灵宝市', 3, 411200000000); -INSERT INTO `zz_area_code` VALUES (411300000000, '南阳市', 2, 410000000000); -INSERT INTO `zz_area_code` VALUES (411301000000, '市辖区', 3, 411300000000); -INSERT INTO `zz_area_code` VALUES (411302000000, '宛城区', 3, 411300000000); -INSERT INTO `zz_area_code` VALUES (411303000000, '卧龙区', 3, 411300000000); -INSERT INTO `zz_area_code` VALUES (411321000000, '南召县', 3, 411300000000); -INSERT INTO `zz_area_code` VALUES (411322000000, '方城县', 3, 411300000000); -INSERT INTO `zz_area_code` VALUES (411323000000, '西峡县', 3, 411300000000); -INSERT INTO `zz_area_code` VALUES (411324000000, '镇平县', 3, 411300000000); -INSERT INTO `zz_area_code` VALUES (411325000000, '内乡县', 3, 411300000000); -INSERT INTO `zz_area_code` VALUES (411326000000, '淅川县', 3, 411300000000); -INSERT INTO `zz_area_code` VALUES (411327000000, '社旗县', 3, 411300000000); -INSERT INTO `zz_area_code` VALUES (411328000000, '唐河县', 3, 411300000000); -INSERT INTO `zz_area_code` VALUES (411329000000, '新野县', 3, 411300000000); -INSERT INTO `zz_area_code` VALUES (411330000000, '桐柏县', 3, 411300000000); -INSERT INTO `zz_area_code` VALUES (411371000000, '南阳高新技术产业开发区', 3, 411300000000); -INSERT INTO `zz_area_code` VALUES (411372000000, '南阳市城乡一体化示范区', 3, 411300000000); -INSERT INTO `zz_area_code` VALUES (411381000000, '邓州市', 3, 411300000000); -INSERT INTO `zz_area_code` VALUES (411400000000, '商丘市', 2, 410000000000); -INSERT INTO `zz_area_code` VALUES (411401000000, '市辖区', 3, 411400000000); -INSERT INTO `zz_area_code` VALUES (411402000000, '梁园区', 3, 411400000000); -INSERT INTO `zz_area_code` VALUES (411403000000, '睢阳区', 3, 411400000000); -INSERT INTO `zz_area_code` VALUES (411421000000, '民权县', 3, 411400000000); -INSERT INTO `zz_area_code` VALUES (411422000000, '睢县', 3, 411400000000); -INSERT INTO `zz_area_code` VALUES (411423000000, '宁陵县', 3, 411400000000); -INSERT INTO `zz_area_code` VALUES (411424000000, '柘城县', 3, 411400000000); -INSERT INTO `zz_area_code` VALUES (411425000000, '虞城县', 3, 411400000000); -INSERT INTO `zz_area_code` VALUES (411426000000, '夏邑县', 3, 411400000000); -INSERT INTO `zz_area_code` VALUES (411471000000, '豫东综合物流产业聚集区', 3, 411400000000); -INSERT INTO `zz_area_code` VALUES (411472000000, '河南商丘经济开发区', 3, 411400000000); -INSERT INTO `zz_area_code` VALUES (411481000000, '永城市', 3, 411400000000); -INSERT INTO `zz_area_code` VALUES (411500000000, '信阳市', 2, 410000000000); -INSERT INTO `zz_area_code` VALUES (411501000000, '市辖区', 3, 411500000000); -INSERT INTO `zz_area_code` VALUES (411502000000, '浉河区', 3, 411500000000); -INSERT INTO `zz_area_code` VALUES (411503000000, '平桥区', 3, 411500000000); -INSERT INTO `zz_area_code` VALUES (411521000000, '罗山县', 3, 411500000000); -INSERT INTO `zz_area_code` VALUES (411522000000, '光山县', 3, 411500000000); -INSERT INTO `zz_area_code` VALUES (411523000000, '新县', 3, 411500000000); -INSERT INTO `zz_area_code` VALUES (411524000000, '商城县', 3, 411500000000); -INSERT INTO `zz_area_code` VALUES (411525000000, '固始县', 3, 411500000000); -INSERT INTO `zz_area_code` VALUES (411526000000, '潢川县', 3, 411500000000); -INSERT INTO `zz_area_code` VALUES (411527000000, '淮滨县', 3, 411500000000); -INSERT INTO `zz_area_code` VALUES (411528000000, '息县', 3, 411500000000); -INSERT INTO `zz_area_code` VALUES (411571000000, '信阳高新技术产业开发区', 3, 411500000000); -INSERT INTO `zz_area_code` VALUES (411600000000, '周口市', 2, 410000000000); -INSERT INTO `zz_area_code` VALUES (411601000000, '市辖区', 3, 411600000000); -INSERT INTO `zz_area_code` VALUES (411602000000, '川汇区', 3, 411600000000); -INSERT INTO `zz_area_code` VALUES (411621000000, '扶沟县', 3, 411600000000); -INSERT INTO `zz_area_code` VALUES (411622000000, '西华县', 3, 411600000000); -INSERT INTO `zz_area_code` VALUES (411623000000, '商水县', 3, 411600000000); -INSERT INTO `zz_area_code` VALUES (411624000000, '沈丘县', 3, 411600000000); -INSERT INTO `zz_area_code` VALUES (411625000000, '郸城县', 3, 411600000000); -INSERT INTO `zz_area_code` VALUES (411626000000, '淮阳县', 3, 411600000000); -INSERT INTO `zz_area_code` VALUES (411627000000, '太康县', 3, 411600000000); -INSERT INTO `zz_area_code` VALUES (411628000000, '鹿邑县', 3, 411600000000); -INSERT INTO `zz_area_code` VALUES (411671000000, '河南周口经济开发区', 3, 411600000000); -INSERT INTO `zz_area_code` VALUES (411681000000, '项城市', 3, 411600000000); -INSERT INTO `zz_area_code` VALUES (411700000000, '驻马店市', 2, 410000000000); -INSERT INTO `zz_area_code` VALUES (411701000000, '市辖区', 3, 411700000000); -INSERT INTO `zz_area_code` VALUES (411702000000, '驿城区', 3, 411700000000); -INSERT INTO `zz_area_code` VALUES (411721000000, '西平县', 3, 411700000000); -INSERT INTO `zz_area_code` VALUES (411722000000, '上蔡县', 3, 411700000000); -INSERT INTO `zz_area_code` VALUES (411723000000, '平舆县', 3, 411700000000); -INSERT INTO `zz_area_code` VALUES (411724000000, '正阳县', 3, 411700000000); -INSERT INTO `zz_area_code` VALUES (411725000000, '确山县', 3, 411700000000); -INSERT INTO `zz_area_code` VALUES (411726000000, '泌阳县', 3, 411700000000); -INSERT INTO `zz_area_code` VALUES (411727000000, '汝南县', 3, 411700000000); -INSERT INTO `zz_area_code` VALUES (411728000000, '遂平县', 3, 411700000000); -INSERT INTO `zz_area_code` VALUES (411729000000, '新蔡县', 3, 411700000000); -INSERT INTO `zz_area_code` VALUES (411771000000, '河南驻马店经济开发区', 3, 411700000000); -INSERT INTO `zz_area_code` VALUES (419000000000, '省直辖县级行政区划', 2, 410000000000); -INSERT INTO `zz_area_code` VALUES (419001000000, '济源市', 3, 419000000000); -INSERT INTO `zz_area_code` VALUES (420000000000, '湖北省', 1, NULL); -INSERT INTO `zz_area_code` VALUES (420100000000, '武汉市', 2, 420000000000); -INSERT INTO `zz_area_code` VALUES (420101000000, '市辖区', 3, 420100000000); -INSERT INTO `zz_area_code` VALUES (420102000000, '江岸区', 3, 420100000000); -INSERT INTO `zz_area_code` VALUES (420103000000, '江汉区', 3, 420100000000); -INSERT INTO `zz_area_code` VALUES (420104000000, '硚口区', 3, 420100000000); -INSERT INTO `zz_area_code` VALUES (420105000000, '汉阳区', 3, 420100000000); -INSERT INTO `zz_area_code` VALUES (420106000000, '武昌区', 3, 420100000000); -INSERT INTO `zz_area_code` VALUES (420107000000, '青山区', 3, 420100000000); -INSERT INTO `zz_area_code` VALUES (420111000000, '洪山区', 3, 420100000000); -INSERT INTO `zz_area_code` VALUES (420112000000, '东西湖区', 3, 420100000000); -INSERT INTO `zz_area_code` VALUES (420113000000, '汉南区', 3, 420100000000); -INSERT INTO `zz_area_code` VALUES (420114000000, '蔡甸区', 3, 420100000000); -INSERT INTO `zz_area_code` VALUES (420115000000, '江夏区', 3, 420100000000); -INSERT INTO `zz_area_code` VALUES (420116000000, '黄陂区', 3, 420100000000); -INSERT INTO `zz_area_code` VALUES (420117000000, '新洲区', 3, 420100000000); -INSERT INTO `zz_area_code` VALUES (420200000000, '黄石市', 2, 420000000000); -INSERT INTO `zz_area_code` VALUES (420201000000, '市辖区', 3, 420200000000); -INSERT INTO `zz_area_code` VALUES (420202000000, '黄石港区', 3, 420200000000); -INSERT INTO `zz_area_code` VALUES (420203000000, '西塞山区', 3, 420200000000); -INSERT INTO `zz_area_code` VALUES (420204000000, '下陆区', 3, 420200000000); -INSERT INTO `zz_area_code` VALUES (420205000000, '铁山区', 3, 420200000000); -INSERT INTO `zz_area_code` VALUES (420222000000, '阳新县', 3, 420200000000); -INSERT INTO `zz_area_code` VALUES (420281000000, '大冶市', 3, 420200000000); -INSERT INTO `zz_area_code` VALUES (420300000000, '十堰市', 2, 420000000000); -INSERT INTO `zz_area_code` VALUES (420301000000, '市辖区', 3, 420300000000); -INSERT INTO `zz_area_code` VALUES (420302000000, '茅箭区', 3, 420300000000); -INSERT INTO `zz_area_code` VALUES (420303000000, '张湾区', 3, 420300000000); -INSERT INTO `zz_area_code` VALUES (420304000000, '郧阳区', 3, 420300000000); -INSERT INTO `zz_area_code` VALUES (420322000000, '郧西县', 3, 420300000000); -INSERT INTO `zz_area_code` VALUES (420323000000, '竹山县', 3, 420300000000); -INSERT INTO `zz_area_code` VALUES (420324000000, '竹溪县', 3, 420300000000); -INSERT INTO `zz_area_code` VALUES (420325000000, '房县', 3, 420300000000); -INSERT INTO `zz_area_code` VALUES (420381000000, '丹江口市', 3, 420300000000); -INSERT INTO `zz_area_code` VALUES (420500000000, '宜昌市', 2, 420000000000); -INSERT INTO `zz_area_code` VALUES (420501000000, '市辖区', 3, 420500000000); -INSERT INTO `zz_area_code` VALUES (420502000000, '西陵区', 3, 420500000000); -INSERT INTO `zz_area_code` VALUES (420503000000, '伍家岗区', 3, 420500000000); -INSERT INTO `zz_area_code` VALUES (420504000000, '点军区', 3, 420500000000); -INSERT INTO `zz_area_code` VALUES (420505000000, '猇亭区', 3, 420500000000); -INSERT INTO `zz_area_code` VALUES (420506000000, '夷陵区', 3, 420500000000); -INSERT INTO `zz_area_code` VALUES (420525000000, '远安县', 3, 420500000000); -INSERT INTO `zz_area_code` VALUES (420526000000, '兴山县', 3, 420500000000); -INSERT INTO `zz_area_code` VALUES (420527000000, '秭归县', 3, 420500000000); -INSERT INTO `zz_area_code` VALUES (420528000000, '长阳土家族自治县', 3, 420500000000); -INSERT INTO `zz_area_code` VALUES (420529000000, '五峰土家族自治县', 3, 420500000000); -INSERT INTO `zz_area_code` VALUES (420581000000, '宜都市', 3, 420500000000); -INSERT INTO `zz_area_code` VALUES (420582000000, '当阳市', 3, 420500000000); -INSERT INTO `zz_area_code` VALUES (420583000000, '枝江市', 3, 420500000000); -INSERT INTO `zz_area_code` VALUES (420600000000, '襄阳市', 2, 420000000000); -INSERT INTO `zz_area_code` VALUES (420601000000, '市辖区', 3, 420600000000); -INSERT INTO `zz_area_code` VALUES (420602000000, '襄城区', 3, 420600000000); -INSERT INTO `zz_area_code` VALUES (420606000000, '樊城区', 3, 420600000000); -INSERT INTO `zz_area_code` VALUES (420607000000, '襄州区', 3, 420600000000); -INSERT INTO `zz_area_code` VALUES (420624000000, '南漳县', 3, 420600000000); -INSERT INTO `zz_area_code` VALUES (420625000000, '谷城县', 3, 420600000000); -INSERT INTO `zz_area_code` VALUES (420626000000, '保康县', 3, 420600000000); -INSERT INTO `zz_area_code` VALUES (420682000000, '老河口市', 3, 420600000000); -INSERT INTO `zz_area_code` VALUES (420683000000, '枣阳市', 3, 420600000000); -INSERT INTO `zz_area_code` VALUES (420684000000, '宜城市', 3, 420600000000); -INSERT INTO `zz_area_code` VALUES (420700000000, '鄂州市', 2, 420000000000); -INSERT INTO `zz_area_code` VALUES (420701000000, '市辖区', 3, 420700000000); -INSERT INTO `zz_area_code` VALUES (420702000000, '梁子湖区', 3, 420700000000); -INSERT INTO `zz_area_code` VALUES (420703000000, '华容区', 3, 420700000000); -INSERT INTO `zz_area_code` VALUES (420704000000, '鄂城区', 3, 420700000000); -INSERT INTO `zz_area_code` VALUES (420800000000, '荆门市', 2, 420000000000); -INSERT INTO `zz_area_code` VALUES (420801000000, '市辖区', 3, 420800000000); -INSERT INTO `zz_area_code` VALUES (420802000000, '东宝区', 3, 420800000000); -INSERT INTO `zz_area_code` VALUES (420804000000, '掇刀区', 3, 420800000000); -INSERT INTO `zz_area_code` VALUES (420822000000, '沙洋县', 3, 420800000000); -INSERT INTO `zz_area_code` VALUES (420881000000, '钟祥市', 3, 420800000000); -INSERT INTO `zz_area_code` VALUES (420882000000, '京山市', 3, 420800000000); -INSERT INTO `zz_area_code` VALUES (420900000000, '孝感市', 2, 420000000000); -INSERT INTO `zz_area_code` VALUES (420901000000, '市辖区', 3, 420900000000); -INSERT INTO `zz_area_code` VALUES (420902000000, '孝南区', 3, 420900000000); -INSERT INTO `zz_area_code` VALUES (420921000000, '孝昌县', 3, 420900000000); -INSERT INTO `zz_area_code` VALUES (420922000000, '大悟县', 3, 420900000000); -INSERT INTO `zz_area_code` VALUES (420923000000, '云梦县', 3, 420900000000); -INSERT INTO `zz_area_code` VALUES (420981000000, '应城市', 3, 420900000000); -INSERT INTO `zz_area_code` VALUES (420982000000, '安陆市', 3, 420900000000); -INSERT INTO `zz_area_code` VALUES (420984000000, '汉川市', 3, 420900000000); -INSERT INTO `zz_area_code` VALUES (421000000000, '荆州市', 2, 420000000000); -INSERT INTO `zz_area_code` VALUES (421001000000, '市辖区', 3, 421000000000); -INSERT INTO `zz_area_code` VALUES (421002000000, '沙市区', 3, 421000000000); -INSERT INTO `zz_area_code` VALUES (421003000000, '荆州区', 3, 421000000000); -INSERT INTO `zz_area_code` VALUES (421022000000, '公安县', 3, 421000000000); -INSERT INTO `zz_area_code` VALUES (421023000000, '监利县', 3, 421000000000); -INSERT INTO `zz_area_code` VALUES (421024000000, '江陵县', 3, 421000000000); -INSERT INTO `zz_area_code` VALUES (421071000000, '荆州经济技术开发区', 3, 421000000000); -INSERT INTO `zz_area_code` VALUES (421081000000, '石首市', 3, 421000000000); -INSERT INTO `zz_area_code` VALUES (421083000000, '洪湖市', 3, 421000000000); -INSERT INTO `zz_area_code` VALUES (421087000000, '松滋市', 3, 421000000000); -INSERT INTO `zz_area_code` VALUES (421100000000, '黄冈市', 2, 420000000000); -INSERT INTO `zz_area_code` VALUES (421101000000, '市辖区', 3, 421100000000); -INSERT INTO `zz_area_code` VALUES (421102000000, '黄州区', 3, 421100000000); -INSERT INTO `zz_area_code` VALUES (421121000000, '团风县', 3, 421100000000); -INSERT INTO `zz_area_code` VALUES (421122000000, '红安县', 3, 421100000000); -INSERT INTO `zz_area_code` VALUES (421123000000, '罗田县', 3, 421100000000); -INSERT INTO `zz_area_code` VALUES (421124000000, '英山县', 3, 421100000000); -INSERT INTO `zz_area_code` VALUES (421125000000, '浠水县', 3, 421100000000); -INSERT INTO `zz_area_code` VALUES (421126000000, '蕲春县', 3, 421100000000); -INSERT INTO `zz_area_code` VALUES (421127000000, '黄梅县', 3, 421100000000); -INSERT INTO `zz_area_code` VALUES (421171000000, '龙感湖管理区', 3, 421100000000); -INSERT INTO `zz_area_code` VALUES (421181000000, '麻城市', 3, 421100000000); -INSERT INTO `zz_area_code` VALUES (421182000000, '武穴市', 3, 421100000000); -INSERT INTO `zz_area_code` VALUES (421200000000, '咸宁市', 2, 420000000000); -INSERT INTO `zz_area_code` VALUES (421201000000, '市辖区', 3, 421200000000); -INSERT INTO `zz_area_code` VALUES (421202000000, '咸安区', 3, 421200000000); -INSERT INTO `zz_area_code` VALUES (421221000000, '嘉鱼县', 3, 421200000000); -INSERT INTO `zz_area_code` VALUES (421222000000, '通城县', 3, 421200000000); -INSERT INTO `zz_area_code` VALUES (421223000000, '崇阳县', 3, 421200000000); -INSERT INTO `zz_area_code` VALUES (421224000000, '通山县', 3, 421200000000); -INSERT INTO `zz_area_code` VALUES (421281000000, '赤壁市', 3, 421200000000); -INSERT INTO `zz_area_code` VALUES (421300000000, '随州市', 2, 420000000000); -INSERT INTO `zz_area_code` VALUES (421301000000, '市辖区', 3, 421300000000); -INSERT INTO `zz_area_code` VALUES (421303000000, '曾都区', 3, 421300000000); -INSERT INTO `zz_area_code` VALUES (421321000000, '随县', 3, 421300000000); -INSERT INTO `zz_area_code` VALUES (421381000000, '广水市', 3, 421300000000); -INSERT INTO `zz_area_code` VALUES (422800000000, '恩施土家族苗族自治州', 2, 420000000000); -INSERT INTO `zz_area_code` VALUES (422801000000, '恩施市', 3, 422800000000); -INSERT INTO `zz_area_code` VALUES (422802000000, '利川市', 3, 422800000000); -INSERT INTO `zz_area_code` VALUES (422822000000, '建始县', 3, 422800000000); -INSERT INTO `zz_area_code` VALUES (422823000000, '巴东县', 3, 422800000000); -INSERT INTO `zz_area_code` VALUES (422825000000, '宣恩县', 3, 422800000000); -INSERT INTO `zz_area_code` VALUES (422826000000, '咸丰县', 3, 422800000000); -INSERT INTO `zz_area_code` VALUES (422827000000, '来凤县', 3, 422800000000); -INSERT INTO `zz_area_code` VALUES (422828000000, '鹤峰县', 3, 422800000000); -INSERT INTO `zz_area_code` VALUES (429000000000, '省直辖县级行政区划', 2, 420000000000); -INSERT INTO `zz_area_code` VALUES (429004000000, '仙桃市', 3, 429000000000); -INSERT INTO `zz_area_code` VALUES (429005000000, '潜江市', 3, 429000000000); -INSERT INTO `zz_area_code` VALUES (429006000000, '天门市', 3, 429000000000); -INSERT INTO `zz_area_code` VALUES (429021000000, '神农架林区', 3, 429000000000); -INSERT INTO `zz_area_code` VALUES (430000000000, '湖南省', 1, NULL); -INSERT INTO `zz_area_code` VALUES (430100000000, '长沙市', 2, 430000000000); -INSERT INTO `zz_area_code` VALUES (430101000000, '市辖区', 3, 430100000000); -INSERT INTO `zz_area_code` VALUES (430102000000, '芙蓉区', 3, 430100000000); -INSERT INTO `zz_area_code` VALUES (430103000000, '天心区', 3, 430100000000); -INSERT INTO `zz_area_code` VALUES (430104000000, '岳麓区', 3, 430100000000); -INSERT INTO `zz_area_code` VALUES (430105000000, '开福区', 3, 430100000000); -INSERT INTO `zz_area_code` VALUES (430111000000, '雨花区', 3, 430100000000); -INSERT INTO `zz_area_code` VALUES (430112000000, '望城区', 3, 430100000000); -INSERT INTO `zz_area_code` VALUES (430121000000, '长沙县', 3, 430100000000); -INSERT INTO `zz_area_code` VALUES (430181000000, '浏阳市', 3, 430100000000); -INSERT INTO `zz_area_code` VALUES (430182000000, '宁乡市', 3, 430100000000); -INSERT INTO `zz_area_code` VALUES (430200000000, '株洲市', 2, 430000000000); -INSERT INTO `zz_area_code` VALUES (430201000000, '市辖区', 3, 430200000000); -INSERT INTO `zz_area_code` VALUES (430202000000, '荷塘区', 3, 430200000000); -INSERT INTO `zz_area_code` VALUES (430203000000, '芦淞区', 3, 430200000000); -INSERT INTO `zz_area_code` VALUES (430204000000, '石峰区', 3, 430200000000); -INSERT INTO `zz_area_code` VALUES (430211000000, '天元区', 3, 430200000000); -INSERT INTO `zz_area_code` VALUES (430212000000, '渌口区', 3, 430200000000); -INSERT INTO `zz_area_code` VALUES (430223000000, '攸县', 3, 430200000000); -INSERT INTO `zz_area_code` VALUES (430224000000, '茶陵县', 3, 430200000000); -INSERT INTO `zz_area_code` VALUES (430225000000, '炎陵县', 3, 430200000000); -INSERT INTO `zz_area_code` VALUES (430271000000, '云龙示范区', 3, 430200000000); -INSERT INTO `zz_area_code` VALUES (430281000000, '醴陵市', 3, 430200000000); -INSERT INTO `zz_area_code` VALUES (430300000000, '湘潭市', 2, 430000000000); -INSERT INTO `zz_area_code` VALUES (430301000000, '市辖区', 3, 430300000000); -INSERT INTO `zz_area_code` VALUES (430302000000, '雨湖区', 3, 430300000000); -INSERT INTO `zz_area_code` VALUES (430304000000, '岳塘区', 3, 430300000000); -INSERT INTO `zz_area_code` VALUES (430321000000, '湘潭县', 3, 430300000000); -INSERT INTO `zz_area_code` VALUES (430371000000, '湖南湘潭高新技术产业园区', 3, 430300000000); -INSERT INTO `zz_area_code` VALUES (430372000000, '湘潭昭山示范区', 3, 430300000000); -INSERT INTO `zz_area_code` VALUES (430373000000, '湘潭九华示范区', 3, 430300000000); -INSERT INTO `zz_area_code` VALUES (430381000000, '湘乡市', 3, 430300000000); -INSERT INTO `zz_area_code` VALUES (430382000000, '韶山市', 3, 430300000000); -INSERT INTO `zz_area_code` VALUES (430400000000, '衡阳市', 2, 430000000000); -INSERT INTO `zz_area_code` VALUES (430401000000, '市辖区', 3, 430400000000); -INSERT INTO `zz_area_code` VALUES (430405000000, '珠晖区', 3, 430400000000); -INSERT INTO `zz_area_code` VALUES (430406000000, '雁峰区', 3, 430400000000); -INSERT INTO `zz_area_code` VALUES (430407000000, '石鼓区', 3, 430400000000); -INSERT INTO `zz_area_code` VALUES (430408000000, '蒸湘区', 3, 430400000000); -INSERT INTO `zz_area_code` VALUES (430412000000, '南岳区', 3, 430400000000); -INSERT INTO `zz_area_code` VALUES (430421000000, '衡阳县', 3, 430400000000); -INSERT INTO `zz_area_code` VALUES (430422000000, '衡南县', 3, 430400000000); -INSERT INTO `zz_area_code` VALUES (430423000000, '衡山县', 3, 430400000000); -INSERT INTO `zz_area_code` VALUES (430424000000, '衡东县', 3, 430400000000); -INSERT INTO `zz_area_code` VALUES (430426000000, '祁东县', 3, 430400000000); -INSERT INTO `zz_area_code` VALUES (430471000000, '衡阳综合保税区', 3, 430400000000); -INSERT INTO `zz_area_code` VALUES (430472000000, '湖南衡阳高新技术产业园区', 3, 430400000000); -INSERT INTO `zz_area_code` VALUES (430473000000, '湖南衡阳松木经济开发区', 3, 430400000000); -INSERT INTO `zz_area_code` VALUES (430481000000, '耒阳市', 3, 430400000000); -INSERT INTO `zz_area_code` VALUES (430482000000, '常宁市', 3, 430400000000); -INSERT INTO `zz_area_code` VALUES (430500000000, '邵阳市', 2, 430000000000); -INSERT INTO `zz_area_code` VALUES (430501000000, '市辖区', 3, 430500000000); -INSERT INTO `zz_area_code` VALUES (430502000000, '双清区', 3, 430500000000); -INSERT INTO `zz_area_code` VALUES (430503000000, '大祥区', 3, 430500000000); -INSERT INTO `zz_area_code` VALUES (430511000000, '北塔区', 3, 430500000000); -INSERT INTO `zz_area_code` VALUES (430521000000, '邵东县', 3, 430500000000); -INSERT INTO `zz_area_code` VALUES (430522000000, '新邵县', 3, 430500000000); -INSERT INTO `zz_area_code` VALUES (430523000000, '邵阳县', 3, 430500000000); -INSERT INTO `zz_area_code` VALUES (430524000000, '隆回县', 3, 430500000000); -INSERT INTO `zz_area_code` VALUES (430525000000, '洞口县', 3, 430500000000); -INSERT INTO `zz_area_code` VALUES (430527000000, '绥宁县', 3, 430500000000); -INSERT INTO `zz_area_code` VALUES (430528000000, '新宁县', 3, 430500000000); -INSERT INTO `zz_area_code` VALUES (430529000000, '城步苗族自治县', 3, 430500000000); -INSERT INTO `zz_area_code` VALUES (430581000000, '武冈市', 3, 430500000000); -INSERT INTO `zz_area_code` VALUES (430600000000, '岳阳市', 2, 430000000000); -INSERT INTO `zz_area_code` VALUES (430601000000, '市辖区', 3, 430600000000); -INSERT INTO `zz_area_code` VALUES (430602000000, '岳阳楼区', 3, 430600000000); -INSERT INTO `zz_area_code` VALUES (430603000000, '云溪区', 3, 430600000000); -INSERT INTO `zz_area_code` VALUES (430611000000, '君山区', 3, 430600000000); -INSERT INTO `zz_area_code` VALUES (430621000000, '岳阳县', 3, 430600000000); -INSERT INTO `zz_area_code` VALUES (430623000000, '华容县', 3, 430600000000); -INSERT INTO `zz_area_code` VALUES (430624000000, '湘阴县', 3, 430600000000); -INSERT INTO `zz_area_code` VALUES (430626000000, '平江县', 3, 430600000000); -INSERT INTO `zz_area_code` VALUES (430671000000, '岳阳市屈原管理区', 3, 430600000000); -INSERT INTO `zz_area_code` VALUES (430681000000, '汨罗市', 3, 430600000000); -INSERT INTO `zz_area_code` VALUES (430682000000, '临湘市', 3, 430600000000); -INSERT INTO `zz_area_code` VALUES (430700000000, '常德市', 2, 430000000000); -INSERT INTO `zz_area_code` VALUES (430701000000, '市辖区', 3, 430700000000); -INSERT INTO `zz_area_code` VALUES (430702000000, '武陵区', 3, 430700000000); -INSERT INTO `zz_area_code` VALUES (430703000000, '鼎城区', 3, 430700000000); -INSERT INTO `zz_area_code` VALUES (430721000000, '安乡县', 3, 430700000000); -INSERT INTO `zz_area_code` VALUES (430722000000, '汉寿县', 3, 430700000000); -INSERT INTO `zz_area_code` VALUES (430723000000, '澧县', 3, 430700000000); -INSERT INTO `zz_area_code` VALUES (430724000000, '临澧县', 3, 430700000000); -INSERT INTO `zz_area_code` VALUES (430725000000, '桃源县', 3, 430700000000); -INSERT INTO `zz_area_code` VALUES (430726000000, '石门县', 3, 430700000000); -INSERT INTO `zz_area_code` VALUES (430771000000, '常德市西洞庭管理区', 3, 430700000000); -INSERT INTO `zz_area_code` VALUES (430781000000, '津市市', 3, 430700000000); -INSERT INTO `zz_area_code` VALUES (430800000000, '张家界市', 2, 430000000000); -INSERT INTO `zz_area_code` VALUES (430801000000, '市辖区', 3, 430800000000); -INSERT INTO `zz_area_code` VALUES (430802000000, '永定区', 3, 430800000000); -INSERT INTO `zz_area_code` VALUES (430811000000, '武陵源区', 3, 430800000000); -INSERT INTO `zz_area_code` VALUES (430821000000, '慈利县', 3, 430800000000); -INSERT INTO `zz_area_code` VALUES (430822000000, '桑植县', 3, 430800000000); -INSERT INTO `zz_area_code` VALUES (430900000000, '益阳市', 2, 430000000000); -INSERT INTO `zz_area_code` VALUES (430901000000, '市辖区', 3, 430900000000); -INSERT INTO `zz_area_code` VALUES (430902000000, '资阳区', 3, 430900000000); -INSERT INTO `zz_area_code` VALUES (430903000000, '赫山区', 3, 430900000000); -INSERT INTO `zz_area_code` VALUES (430921000000, '南县', 3, 430900000000); -INSERT INTO `zz_area_code` VALUES (430922000000, '桃江县', 3, 430900000000); -INSERT INTO `zz_area_code` VALUES (430923000000, '安化县', 3, 430900000000); -INSERT INTO `zz_area_code` VALUES (430971000000, '益阳市大通湖管理区', 3, 430900000000); -INSERT INTO `zz_area_code` VALUES (430972000000, '湖南益阳高新技术产业园区', 3, 430900000000); -INSERT INTO `zz_area_code` VALUES (430981000000, '沅江市', 3, 430900000000); -INSERT INTO `zz_area_code` VALUES (431000000000, '郴州市', 2, 430000000000); -INSERT INTO `zz_area_code` VALUES (431001000000, '市辖区', 3, 431000000000); -INSERT INTO `zz_area_code` VALUES (431002000000, '北湖区', 3, 431000000000); -INSERT INTO `zz_area_code` VALUES (431003000000, '苏仙区', 3, 431000000000); -INSERT INTO `zz_area_code` VALUES (431021000000, '桂阳县', 3, 431000000000); -INSERT INTO `zz_area_code` VALUES (431022000000, '宜章县', 3, 431000000000); -INSERT INTO `zz_area_code` VALUES (431023000000, '永兴县', 3, 431000000000); -INSERT INTO `zz_area_code` VALUES (431024000000, '嘉禾县', 3, 431000000000); -INSERT INTO `zz_area_code` VALUES (431025000000, '临武县', 3, 431000000000); -INSERT INTO `zz_area_code` VALUES (431026000000, '汝城县', 3, 431000000000); -INSERT INTO `zz_area_code` VALUES (431027000000, '桂东县', 3, 431000000000); -INSERT INTO `zz_area_code` VALUES (431028000000, '安仁县', 3, 431000000000); -INSERT INTO `zz_area_code` VALUES (431081000000, '资兴市', 3, 431000000000); -INSERT INTO `zz_area_code` VALUES (431100000000, '永州市', 2, 430000000000); -INSERT INTO `zz_area_code` VALUES (431101000000, '市辖区', 3, 431100000000); -INSERT INTO `zz_area_code` VALUES (431102000000, '零陵区', 3, 431100000000); -INSERT INTO `zz_area_code` VALUES (431103000000, '冷水滩区', 3, 431100000000); -INSERT INTO `zz_area_code` VALUES (431121000000, '祁阳县', 3, 431100000000); -INSERT INTO `zz_area_code` VALUES (431122000000, '东安县', 3, 431100000000); -INSERT INTO `zz_area_code` VALUES (431123000000, '双牌县', 3, 431100000000); -INSERT INTO `zz_area_code` VALUES (431124000000, '道县', 3, 431100000000); -INSERT INTO `zz_area_code` VALUES (431125000000, '江永县', 3, 431100000000); -INSERT INTO `zz_area_code` VALUES (431126000000, '宁远县', 3, 431100000000); -INSERT INTO `zz_area_code` VALUES (431127000000, '蓝山县', 3, 431100000000); -INSERT INTO `zz_area_code` VALUES (431128000000, '新田县', 3, 431100000000); -INSERT INTO `zz_area_code` VALUES (431129000000, '江华瑶族自治县', 3, 431100000000); -INSERT INTO `zz_area_code` VALUES (431171000000, '永州经济技术开发区', 3, 431100000000); -INSERT INTO `zz_area_code` VALUES (431172000000, '永州市金洞管理区', 3, 431100000000); -INSERT INTO `zz_area_code` VALUES (431173000000, '永州市回龙圩管理区', 3, 431100000000); -INSERT INTO `zz_area_code` VALUES (431200000000, '怀化市', 2, 430000000000); -INSERT INTO `zz_area_code` VALUES (431201000000, '市辖区', 3, 431200000000); -INSERT INTO `zz_area_code` VALUES (431202000000, '鹤城区', 3, 431200000000); -INSERT INTO `zz_area_code` VALUES (431221000000, '中方县', 3, 431200000000); -INSERT INTO `zz_area_code` VALUES (431222000000, '沅陵县', 3, 431200000000); -INSERT INTO `zz_area_code` VALUES (431223000000, '辰溪县', 3, 431200000000); -INSERT INTO `zz_area_code` VALUES (431224000000, '溆浦县', 3, 431200000000); -INSERT INTO `zz_area_code` VALUES (431225000000, '会同县', 3, 431200000000); -INSERT INTO `zz_area_code` VALUES (431226000000, '麻阳苗族自治县', 3, 431200000000); -INSERT INTO `zz_area_code` VALUES (431227000000, '新晃侗族自治县', 3, 431200000000); -INSERT INTO `zz_area_code` VALUES (431228000000, '芷江侗族自治县', 3, 431200000000); -INSERT INTO `zz_area_code` VALUES (431229000000, '靖州苗族侗族自治县', 3, 431200000000); -INSERT INTO `zz_area_code` VALUES (431230000000, '通道侗族自治县', 3, 431200000000); -INSERT INTO `zz_area_code` VALUES (431271000000, '怀化市洪江管理区', 3, 431200000000); -INSERT INTO `zz_area_code` VALUES (431281000000, '洪江市', 3, 431200000000); -INSERT INTO `zz_area_code` VALUES (431300000000, '娄底市', 2, 430000000000); -INSERT INTO `zz_area_code` VALUES (431301000000, '市辖区', 3, 431300000000); -INSERT INTO `zz_area_code` VALUES (431302000000, '娄星区', 3, 431300000000); -INSERT INTO `zz_area_code` VALUES (431321000000, '双峰县', 3, 431300000000); -INSERT INTO `zz_area_code` VALUES (431322000000, '新化县', 3, 431300000000); -INSERT INTO `zz_area_code` VALUES (431381000000, '冷水江市', 3, 431300000000); -INSERT INTO `zz_area_code` VALUES (431382000000, '涟源市', 3, 431300000000); -INSERT INTO `zz_area_code` VALUES (433100000000, '湘西土家族苗族自治州', 2, 430000000000); -INSERT INTO `zz_area_code` VALUES (433101000000, '吉首市', 3, 433100000000); -INSERT INTO `zz_area_code` VALUES (433122000000, '泸溪县', 3, 433100000000); -INSERT INTO `zz_area_code` VALUES (433123000000, '凤凰县', 3, 433100000000); -INSERT INTO `zz_area_code` VALUES (433124000000, '花垣县', 3, 433100000000); -INSERT INTO `zz_area_code` VALUES (433125000000, '保靖县', 3, 433100000000); -INSERT INTO `zz_area_code` VALUES (433126000000, '古丈县', 3, 433100000000); -INSERT INTO `zz_area_code` VALUES (433127000000, '永顺县', 3, 433100000000); -INSERT INTO `zz_area_code` VALUES (433130000000, '龙山县', 3, 433100000000); -INSERT INTO `zz_area_code` VALUES (433172000000, '湖南吉首经济开发区', 3, 433100000000); -INSERT INTO `zz_area_code` VALUES (433173000000, '湖南永顺经济开发区', 3, 433100000000); -INSERT INTO `zz_area_code` VALUES (440000000000, '广东省', 1, NULL); -INSERT INTO `zz_area_code` VALUES (440100000000, '广州市', 2, 440000000000); -INSERT INTO `zz_area_code` VALUES (440101000000, '市辖区', 3, 440100000000); -INSERT INTO `zz_area_code` VALUES (440103000000, '荔湾区', 3, 440100000000); -INSERT INTO `zz_area_code` VALUES (440104000000, '越秀区', 3, 440100000000); -INSERT INTO `zz_area_code` VALUES (440105000000, '海珠区', 3, 440100000000); -INSERT INTO `zz_area_code` VALUES (440106000000, '天河区', 3, 440100000000); -INSERT INTO `zz_area_code` VALUES (440111000000, '白云区', 3, 440100000000); -INSERT INTO `zz_area_code` VALUES (440112000000, '黄埔区', 3, 440100000000); -INSERT INTO `zz_area_code` VALUES (440113000000, '番禺区', 3, 440100000000); -INSERT INTO `zz_area_code` VALUES (440114000000, '花都区', 3, 440100000000); -INSERT INTO `zz_area_code` VALUES (440115000000, '南沙区', 3, 440100000000); -INSERT INTO `zz_area_code` VALUES (440117000000, '从化区', 3, 440100000000); -INSERT INTO `zz_area_code` VALUES (440118000000, '增城区', 3, 440100000000); -INSERT INTO `zz_area_code` VALUES (440200000000, '韶关市', 2, 440000000000); -INSERT INTO `zz_area_code` VALUES (440201000000, '市辖区', 3, 440200000000); -INSERT INTO `zz_area_code` VALUES (440203000000, '武江区', 3, 440200000000); -INSERT INTO `zz_area_code` VALUES (440204000000, '浈江区', 3, 440200000000); -INSERT INTO `zz_area_code` VALUES (440205000000, '曲江区', 3, 440200000000); -INSERT INTO `zz_area_code` VALUES (440222000000, '始兴县', 3, 440200000000); -INSERT INTO `zz_area_code` VALUES (440224000000, '仁化县', 3, 440200000000); -INSERT INTO `zz_area_code` VALUES (440229000000, '翁源县', 3, 440200000000); -INSERT INTO `zz_area_code` VALUES (440232000000, '乳源瑶族自治县', 3, 440200000000); -INSERT INTO `zz_area_code` VALUES (440233000000, '新丰县', 3, 440200000000); -INSERT INTO `zz_area_code` VALUES (440281000000, '乐昌市', 3, 440200000000); -INSERT INTO `zz_area_code` VALUES (440282000000, '南雄市', 3, 440200000000); -INSERT INTO `zz_area_code` VALUES (440300000000, '深圳市', 2, 440000000000); -INSERT INTO `zz_area_code` VALUES (440301000000, '市辖区', 3, 440300000000); -INSERT INTO `zz_area_code` VALUES (440303000000, '罗湖区', 3, 440300000000); -INSERT INTO `zz_area_code` VALUES (440304000000, '福田区', 3, 440300000000); -INSERT INTO `zz_area_code` VALUES (440305000000, '南山区', 3, 440300000000); -INSERT INTO `zz_area_code` VALUES (440306000000, '宝安区', 3, 440300000000); -INSERT INTO `zz_area_code` VALUES (440307000000, '龙岗区', 3, 440300000000); -INSERT INTO `zz_area_code` VALUES (440308000000, '盐田区', 3, 440300000000); -INSERT INTO `zz_area_code` VALUES (440309000000, '龙华区', 3, 440300000000); -INSERT INTO `zz_area_code` VALUES (440310000000, '坪山区', 3, 440300000000); -INSERT INTO `zz_area_code` VALUES (440311000000, '光明区', 3, 440300000000); -INSERT INTO `zz_area_code` VALUES (440400000000, '珠海市', 2, 440000000000); -INSERT INTO `zz_area_code` VALUES (440401000000, '市辖区', 3, 440400000000); -INSERT INTO `zz_area_code` VALUES (440402000000, '香洲区', 3, 440400000000); -INSERT INTO `zz_area_code` VALUES (440403000000, '斗门区', 3, 440400000000); -INSERT INTO `zz_area_code` VALUES (440404000000, '金湾区', 3, 440400000000); -INSERT INTO `zz_area_code` VALUES (440500000000, '汕头市', 2, 440000000000); -INSERT INTO `zz_area_code` VALUES (440501000000, '市辖区', 3, 440500000000); -INSERT INTO `zz_area_code` VALUES (440507000000, '龙湖区', 3, 440500000000); -INSERT INTO `zz_area_code` VALUES (440511000000, '金平区', 3, 440500000000); -INSERT INTO `zz_area_code` VALUES (440512000000, '濠江区', 3, 440500000000); -INSERT INTO `zz_area_code` VALUES (440513000000, '潮阳区', 3, 440500000000); -INSERT INTO `zz_area_code` VALUES (440514000000, '潮南区', 3, 440500000000); -INSERT INTO `zz_area_code` VALUES (440515000000, '澄海区', 3, 440500000000); -INSERT INTO `zz_area_code` VALUES (440523000000, '南澳县', 3, 440500000000); -INSERT INTO `zz_area_code` VALUES (440600000000, '佛山市', 2, 440000000000); -INSERT INTO `zz_area_code` VALUES (440601000000, '市辖区', 3, 440600000000); -INSERT INTO `zz_area_code` VALUES (440604000000, '禅城区', 3, 440600000000); -INSERT INTO `zz_area_code` VALUES (440605000000, '南海区', 3, 440600000000); -INSERT INTO `zz_area_code` VALUES (440606000000, '顺德区', 3, 440600000000); -INSERT INTO `zz_area_code` VALUES (440607000000, '三水区', 3, 440600000000); -INSERT INTO `zz_area_code` VALUES (440608000000, '高明区', 3, 440600000000); -INSERT INTO `zz_area_code` VALUES (440700000000, '江门市', 2, 440000000000); -INSERT INTO `zz_area_code` VALUES (440701000000, '市辖区', 3, 440700000000); -INSERT INTO `zz_area_code` VALUES (440703000000, '蓬江区', 3, 440700000000); -INSERT INTO `zz_area_code` VALUES (440704000000, '江海区', 3, 440700000000); -INSERT INTO `zz_area_code` VALUES (440705000000, '新会区', 3, 440700000000); -INSERT INTO `zz_area_code` VALUES (440781000000, '台山市', 3, 440700000000); -INSERT INTO `zz_area_code` VALUES (440783000000, '开平市', 3, 440700000000); -INSERT INTO `zz_area_code` VALUES (440784000000, '鹤山市', 3, 440700000000); -INSERT INTO `zz_area_code` VALUES (440785000000, '恩平市', 3, 440700000000); -INSERT INTO `zz_area_code` VALUES (440800000000, '湛江市', 2, 440000000000); -INSERT INTO `zz_area_code` VALUES (440801000000, '市辖区', 3, 440800000000); -INSERT INTO `zz_area_code` VALUES (440802000000, '赤坎区', 3, 440800000000); -INSERT INTO `zz_area_code` VALUES (440803000000, '霞山区', 3, 440800000000); -INSERT INTO `zz_area_code` VALUES (440804000000, '坡头区', 3, 440800000000); -INSERT INTO `zz_area_code` VALUES (440811000000, '麻章区', 3, 440800000000); -INSERT INTO `zz_area_code` VALUES (440823000000, '遂溪县', 3, 440800000000); -INSERT INTO `zz_area_code` VALUES (440825000000, '徐闻县', 3, 440800000000); -INSERT INTO `zz_area_code` VALUES (440881000000, '廉江市', 3, 440800000000); -INSERT INTO `zz_area_code` VALUES (440882000000, '雷州市', 3, 440800000000); -INSERT INTO `zz_area_code` VALUES (440883000000, '吴川市', 3, 440800000000); -INSERT INTO `zz_area_code` VALUES (440900000000, '茂名市', 2, 440000000000); -INSERT INTO `zz_area_code` VALUES (440901000000, '市辖区', 3, 440900000000); -INSERT INTO `zz_area_code` VALUES (440902000000, '茂南区', 3, 440900000000); -INSERT INTO `zz_area_code` VALUES (440904000000, '电白区', 3, 440900000000); -INSERT INTO `zz_area_code` VALUES (440981000000, '高州市', 3, 440900000000); -INSERT INTO `zz_area_code` VALUES (440982000000, '化州市', 3, 440900000000); -INSERT INTO `zz_area_code` VALUES (440983000000, '信宜市', 3, 440900000000); -INSERT INTO `zz_area_code` VALUES (441200000000, '肇庆市', 2, 440000000000); -INSERT INTO `zz_area_code` VALUES (441201000000, '市辖区', 3, 441200000000); -INSERT INTO `zz_area_code` VALUES (441202000000, '端州区', 3, 441200000000); -INSERT INTO `zz_area_code` VALUES (441203000000, '鼎湖区', 3, 441200000000); -INSERT INTO `zz_area_code` VALUES (441204000000, '高要区', 3, 441200000000); -INSERT INTO `zz_area_code` VALUES (441223000000, '广宁县', 3, 441200000000); -INSERT INTO `zz_area_code` VALUES (441224000000, '怀集县', 3, 441200000000); -INSERT INTO `zz_area_code` VALUES (441225000000, '封开县', 3, 441200000000); -INSERT INTO `zz_area_code` VALUES (441226000000, '德庆县', 3, 441200000000); -INSERT INTO `zz_area_code` VALUES (441284000000, '四会市', 3, 441200000000); -INSERT INTO `zz_area_code` VALUES (441300000000, '惠州市', 2, 440000000000); -INSERT INTO `zz_area_code` VALUES (441301000000, '市辖区', 3, 441300000000); -INSERT INTO `zz_area_code` VALUES (441302000000, '惠城区', 3, 441300000000); -INSERT INTO `zz_area_code` VALUES (441303000000, '惠阳区', 3, 441300000000); -INSERT INTO `zz_area_code` VALUES (441322000000, '博罗县', 3, 441300000000); -INSERT INTO `zz_area_code` VALUES (441323000000, '惠东县', 3, 441300000000); -INSERT INTO `zz_area_code` VALUES (441324000000, '龙门县', 3, 441300000000); -INSERT INTO `zz_area_code` VALUES (441400000000, '梅州市', 2, 440000000000); -INSERT INTO `zz_area_code` VALUES (441401000000, '市辖区', 3, 441400000000); -INSERT INTO `zz_area_code` VALUES (441402000000, '梅江区', 3, 441400000000); -INSERT INTO `zz_area_code` VALUES (441403000000, '梅县区', 3, 441400000000); -INSERT INTO `zz_area_code` VALUES (441422000000, '大埔县', 3, 441400000000); -INSERT INTO `zz_area_code` VALUES (441423000000, '丰顺县', 3, 441400000000); -INSERT INTO `zz_area_code` VALUES (441424000000, '五华县', 3, 441400000000); -INSERT INTO `zz_area_code` VALUES (441426000000, '平远县', 3, 441400000000); -INSERT INTO `zz_area_code` VALUES (441427000000, '蕉岭县', 3, 441400000000); -INSERT INTO `zz_area_code` VALUES (441481000000, '兴宁市', 3, 441400000000); -INSERT INTO `zz_area_code` VALUES (441500000000, '汕尾市', 2, 440000000000); -INSERT INTO `zz_area_code` VALUES (441501000000, '市辖区', 3, 441500000000); -INSERT INTO `zz_area_code` VALUES (441502000000, '城区', 3, 441500000000); -INSERT INTO `zz_area_code` VALUES (441521000000, '海丰县', 3, 441500000000); -INSERT INTO `zz_area_code` VALUES (441523000000, '陆河县', 3, 441500000000); -INSERT INTO `zz_area_code` VALUES (441581000000, '陆丰市', 3, 441500000000); -INSERT INTO `zz_area_code` VALUES (441600000000, '河源市', 2, 440000000000); -INSERT INTO `zz_area_code` VALUES (441601000000, '市辖区', 3, 441600000000); -INSERT INTO `zz_area_code` VALUES (441602000000, '源城区', 3, 441600000000); -INSERT INTO `zz_area_code` VALUES (441621000000, '紫金县', 3, 441600000000); -INSERT INTO `zz_area_code` VALUES (441622000000, '龙川县', 3, 441600000000); -INSERT INTO `zz_area_code` VALUES (441623000000, '连平县', 3, 441600000000); -INSERT INTO `zz_area_code` VALUES (441624000000, '和平县', 3, 441600000000); -INSERT INTO `zz_area_code` VALUES (441625000000, '东源县', 3, 441600000000); -INSERT INTO `zz_area_code` VALUES (441700000000, '阳江市', 2, 440000000000); -INSERT INTO `zz_area_code` VALUES (441701000000, '市辖区', 3, 441700000000); -INSERT INTO `zz_area_code` VALUES (441702000000, '江城区', 3, 441700000000); -INSERT INTO `zz_area_code` VALUES (441704000000, '阳东区', 3, 441700000000); -INSERT INTO `zz_area_code` VALUES (441721000000, '阳西县', 3, 441700000000); -INSERT INTO `zz_area_code` VALUES (441781000000, '阳春市', 3, 441700000000); -INSERT INTO `zz_area_code` VALUES (441800000000, '清远市', 2, 440000000000); -INSERT INTO `zz_area_code` VALUES (441801000000, '市辖区', 3, 441800000000); -INSERT INTO `zz_area_code` VALUES (441802000000, '清城区', 3, 441800000000); -INSERT INTO `zz_area_code` VALUES (441803000000, '清新区', 3, 441800000000); -INSERT INTO `zz_area_code` VALUES (441821000000, '佛冈县', 3, 441800000000); -INSERT INTO `zz_area_code` VALUES (441823000000, '阳山县', 3, 441800000000); -INSERT INTO `zz_area_code` VALUES (441825000000, '连山壮族瑶族自治县', 3, 441800000000); -INSERT INTO `zz_area_code` VALUES (441826000000, '连南瑶族自治县', 3, 441800000000); -INSERT INTO `zz_area_code` VALUES (441881000000, '英德市', 3, 441800000000); -INSERT INTO `zz_area_code` VALUES (441882000000, '连州市', 3, 441800000000); -INSERT INTO `zz_area_code` VALUES (441900000000, '东莞市', 2, 440000000000); -INSERT INTO `zz_area_code` VALUES (442000000000, '中山市', 2, 440000000000); -INSERT INTO `zz_area_code` VALUES (445100000000, '潮州市', 2, 440000000000); -INSERT INTO `zz_area_code` VALUES (445101000000, '市辖区', 3, 445100000000); -INSERT INTO `zz_area_code` VALUES (445102000000, '湘桥区', 3, 445100000000); -INSERT INTO `zz_area_code` VALUES (445103000000, '潮安区', 3, 445100000000); -INSERT INTO `zz_area_code` VALUES (445122000000, '饶平县', 3, 445100000000); -INSERT INTO `zz_area_code` VALUES (445200000000, '揭阳市', 2, 440000000000); -INSERT INTO `zz_area_code` VALUES (445201000000, '市辖区', 3, 445200000000); -INSERT INTO `zz_area_code` VALUES (445202000000, '榕城区', 3, 445200000000); -INSERT INTO `zz_area_code` VALUES (445203000000, '揭东区', 3, 445200000000); -INSERT INTO `zz_area_code` VALUES (445222000000, '揭西县', 3, 445200000000); -INSERT INTO `zz_area_code` VALUES (445224000000, '惠来县', 3, 445200000000); -INSERT INTO `zz_area_code` VALUES (445281000000, '普宁市', 3, 445200000000); -INSERT INTO `zz_area_code` VALUES (445300000000, '云浮市', 2, 440000000000); -INSERT INTO `zz_area_code` VALUES (445301000000, '市辖区', 3, 445300000000); -INSERT INTO `zz_area_code` VALUES (445302000000, '云城区', 3, 445300000000); -INSERT INTO `zz_area_code` VALUES (445303000000, '云安区', 3, 445300000000); -INSERT INTO `zz_area_code` VALUES (445321000000, '新兴县', 3, 445300000000); -INSERT INTO `zz_area_code` VALUES (445322000000, '郁南县', 3, 445300000000); -INSERT INTO `zz_area_code` VALUES (445381000000, '罗定市', 3, 445300000000); -INSERT INTO `zz_area_code` VALUES (450000000000, '广西壮族自治区', 1, NULL); -INSERT INTO `zz_area_code` VALUES (450100000000, '南宁市', 2, 450000000000); -INSERT INTO `zz_area_code` VALUES (450101000000, '市辖区', 3, 450100000000); -INSERT INTO `zz_area_code` VALUES (450102000000, '兴宁区', 3, 450100000000); -INSERT INTO `zz_area_code` VALUES (450103000000, '青秀区', 3, 450100000000); -INSERT INTO `zz_area_code` VALUES (450105000000, '江南区', 3, 450100000000); -INSERT INTO `zz_area_code` VALUES (450107000000, '西乡塘区', 3, 450100000000); -INSERT INTO `zz_area_code` VALUES (450108000000, '良庆区', 3, 450100000000); -INSERT INTO `zz_area_code` VALUES (450109000000, '邕宁区', 3, 450100000000); -INSERT INTO `zz_area_code` VALUES (450110000000, '武鸣区', 3, 450100000000); -INSERT INTO `zz_area_code` VALUES (450123000000, '隆安县', 3, 450100000000); -INSERT INTO `zz_area_code` VALUES (450124000000, '马山县', 3, 450100000000); -INSERT INTO `zz_area_code` VALUES (450125000000, '上林县', 3, 450100000000); -INSERT INTO `zz_area_code` VALUES (450126000000, '宾阳县', 3, 450100000000); -INSERT INTO `zz_area_code` VALUES (450127000000, '横县', 3, 450100000000); -INSERT INTO `zz_area_code` VALUES (450200000000, '柳州市', 2, 450000000000); -INSERT INTO `zz_area_code` VALUES (450201000000, '市辖区', 3, 450200000000); -INSERT INTO `zz_area_code` VALUES (450202000000, '城中区', 3, 450200000000); -INSERT INTO `zz_area_code` VALUES (450203000000, '鱼峰区', 3, 450200000000); -INSERT INTO `zz_area_code` VALUES (450204000000, '柳南区', 3, 450200000000); -INSERT INTO `zz_area_code` VALUES (450205000000, '柳北区', 3, 450200000000); -INSERT INTO `zz_area_code` VALUES (450206000000, '柳江区', 3, 450200000000); -INSERT INTO `zz_area_code` VALUES (450222000000, '柳城县', 3, 450200000000); -INSERT INTO `zz_area_code` VALUES (450223000000, '鹿寨县', 3, 450200000000); -INSERT INTO `zz_area_code` VALUES (450224000000, '融安县', 3, 450200000000); -INSERT INTO `zz_area_code` VALUES (450225000000, '融水苗族自治县', 3, 450200000000); -INSERT INTO `zz_area_code` VALUES (450226000000, '三江侗族自治县', 3, 450200000000); -INSERT INTO `zz_area_code` VALUES (450300000000, '桂林市', 2, 450000000000); -INSERT INTO `zz_area_code` VALUES (450301000000, '市辖区', 3, 450300000000); -INSERT INTO `zz_area_code` VALUES (450302000000, '秀峰区', 3, 450300000000); -INSERT INTO `zz_area_code` VALUES (450303000000, '叠彩区', 3, 450300000000); -INSERT INTO `zz_area_code` VALUES (450304000000, '象山区', 3, 450300000000); -INSERT INTO `zz_area_code` VALUES (450305000000, '七星区', 3, 450300000000); -INSERT INTO `zz_area_code` VALUES (450311000000, '雁山区', 3, 450300000000); -INSERT INTO `zz_area_code` VALUES (450312000000, '临桂区', 3, 450300000000); -INSERT INTO `zz_area_code` VALUES (450321000000, '阳朔县', 3, 450300000000); -INSERT INTO `zz_area_code` VALUES (450323000000, '灵川县', 3, 450300000000); -INSERT INTO `zz_area_code` VALUES (450324000000, '全州县', 3, 450300000000); -INSERT INTO `zz_area_code` VALUES (450325000000, '兴安县', 3, 450300000000); -INSERT INTO `zz_area_code` VALUES (450326000000, '永福县', 3, 450300000000); -INSERT INTO `zz_area_code` VALUES (450327000000, '灌阳县', 3, 450300000000); -INSERT INTO `zz_area_code` VALUES (450328000000, '龙胜各族自治县', 3, 450300000000); -INSERT INTO `zz_area_code` VALUES (450329000000, '资源县', 3, 450300000000); -INSERT INTO `zz_area_code` VALUES (450330000000, '平乐县', 3, 450300000000); -INSERT INTO `zz_area_code` VALUES (450332000000, '恭城瑶族自治县', 3, 450300000000); -INSERT INTO `zz_area_code` VALUES (450381000000, '荔浦市', 3, 450300000000); -INSERT INTO `zz_area_code` VALUES (450400000000, '梧州市', 2, 450000000000); -INSERT INTO `zz_area_code` VALUES (450401000000, '市辖区', 3, 450400000000); -INSERT INTO `zz_area_code` VALUES (450403000000, '万秀区', 3, 450400000000); -INSERT INTO `zz_area_code` VALUES (450405000000, '长洲区', 3, 450400000000); -INSERT INTO `zz_area_code` VALUES (450406000000, '龙圩区', 3, 450400000000); -INSERT INTO `zz_area_code` VALUES (450421000000, '苍梧县', 3, 450400000000); -INSERT INTO `zz_area_code` VALUES (450422000000, '藤县', 3, 450400000000); -INSERT INTO `zz_area_code` VALUES (450423000000, '蒙山县', 3, 450400000000); -INSERT INTO `zz_area_code` VALUES (450481000000, '岑溪市', 3, 450400000000); -INSERT INTO `zz_area_code` VALUES (450500000000, '北海市', 2, 450000000000); -INSERT INTO `zz_area_code` VALUES (450501000000, '市辖区', 3, 450500000000); -INSERT INTO `zz_area_code` VALUES (450502000000, '海城区', 3, 450500000000); -INSERT INTO `zz_area_code` VALUES (450503000000, '银海区', 3, 450500000000); -INSERT INTO `zz_area_code` VALUES (450512000000, '铁山港区', 3, 450500000000); -INSERT INTO `zz_area_code` VALUES (450521000000, '合浦县', 3, 450500000000); -INSERT INTO `zz_area_code` VALUES (450600000000, '防城港市', 2, 450000000000); -INSERT INTO `zz_area_code` VALUES (450601000000, '市辖区', 3, 450600000000); -INSERT INTO `zz_area_code` VALUES (450602000000, '港口区', 3, 450600000000); -INSERT INTO `zz_area_code` VALUES (450603000000, '防城区', 3, 450600000000); -INSERT INTO `zz_area_code` VALUES (450621000000, '上思县', 3, 450600000000); -INSERT INTO `zz_area_code` VALUES (450681000000, '东兴市', 3, 450600000000); -INSERT INTO `zz_area_code` VALUES (450700000000, '钦州市', 2, 450000000000); -INSERT INTO `zz_area_code` VALUES (450701000000, '市辖区', 3, 450700000000); -INSERT INTO `zz_area_code` VALUES (450702000000, '钦南区', 3, 450700000000); -INSERT INTO `zz_area_code` VALUES (450703000000, '钦北区', 3, 450700000000); -INSERT INTO `zz_area_code` VALUES (450721000000, '灵山县', 3, 450700000000); -INSERT INTO `zz_area_code` VALUES (450722000000, '浦北县', 3, 450700000000); -INSERT INTO `zz_area_code` VALUES (450800000000, '贵港市', 2, 450000000000); -INSERT INTO `zz_area_code` VALUES (450801000000, '市辖区', 3, 450800000000); -INSERT INTO `zz_area_code` VALUES (450802000000, '港北区', 3, 450800000000); -INSERT INTO `zz_area_code` VALUES (450803000000, '港南区', 3, 450800000000); -INSERT INTO `zz_area_code` VALUES (450804000000, '覃塘区', 3, 450800000000); -INSERT INTO `zz_area_code` VALUES (450821000000, '平南县', 3, 450800000000); -INSERT INTO `zz_area_code` VALUES (450881000000, '桂平市', 3, 450800000000); -INSERT INTO `zz_area_code` VALUES (450900000000, '玉林市', 2, 450000000000); -INSERT INTO `zz_area_code` VALUES (450901000000, '市辖区', 3, 450900000000); -INSERT INTO `zz_area_code` VALUES (450902000000, '玉州区', 3, 450900000000); -INSERT INTO `zz_area_code` VALUES (450903000000, '福绵区', 3, 450900000000); -INSERT INTO `zz_area_code` VALUES (450921000000, '容县', 3, 450900000000); -INSERT INTO `zz_area_code` VALUES (450922000000, '陆川县', 3, 450900000000); -INSERT INTO `zz_area_code` VALUES (450923000000, '博白县', 3, 450900000000); -INSERT INTO `zz_area_code` VALUES (450924000000, '兴业县', 3, 450900000000); -INSERT INTO `zz_area_code` VALUES (450981000000, '北流市', 3, 450900000000); -INSERT INTO `zz_area_code` VALUES (451000000000, '百色市', 2, 450000000000); -INSERT INTO `zz_area_code` VALUES (451001000000, '市辖区', 3, 451000000000); -INSERT INTO `zz_area_code` VALUES (451002000000, '右江区', 3, 451000000000); -INSERT INTO `zz_area_code` VALUES (451021000000, '田阳县', 3, 451000000000); -INSERT INTO `zz_area_code` VALUES (451022000000, '田东县', 3, 451000000000); -INSERT INTO `zz_area_code` VALUES (451023000000, '平果县', 3, 451000000000); -INSERT INTO `zz_area_code` VALUES (451024000000, '德保县', 3, 451000000000); -INSERT INTO `zz_area_code` VALUES (451026000000, '那坡县', 3, 451000000000); -INSERT INTO `zz_area_code` VALUES (451027000000, '凌云县', 3, 451000000000); -INSERT INTO `zz_area_code` VALUES (451028000000, '乐业县', 3, 451000000000); -INSERT INTO `zz_area_code` VALUES (451029000000, '田林县', 3, 451000000000); -INSERT INTO `zz_area_code` VALUES (451030000000, '西林县', 3, 451000000000); -INSERT INTO `zz_area_code` VALUES (451031000000, '隆林各族自治县', 3, 451000000000); -INSERT INTO `zz_area_code` VALUES (451081000000, '靖西市', 3, 451000000000); -INSERT INTO `zz_area_code` VALUES (451100000000, '贺州市', 2, 450000000000); -INSERT INTO `zz_area_code` VALUES (451101000000, '市辖区', 3, 451100000000); -INSERT INTO `zz_area_code` VALUES (451102000000, '八步区', 3, 451100000000); -INSERT INTO `zz_area_code` VALUES (451103000000, '平桂区', 3, 451100000000); -INSERT INTO `zz_area_code` VALUES (451121000000, '昭平县', 3, 451100000000); -INSERT INTO `zz_area_code` VALUES (451122000000, '钟山县', 3, 451100000000); -INSERT INTO `zz_area_code` VALUES (451123000000, '富川瑶族自治县', 3, 451100000000); -INSERT INTO `zz_area_code` VALUES (451200000000, '河池市', 2, 450000000000); -INSERT INTO `zz_area_code` VALUES (451201000000, '市辖区', 3, 451200000000); -INSERT INTO `zz_area_code` VALUES (451202000000, '金城江区', 3, 451200000000); -INSERT INTO `zz_area_code` VALUES (451203000000, '宜州区', 3, 451200000000); -INSERT INTO `zz_area_code` VALUES (451221000000, '南丹县', 3, 451200000000); -INSERT INTO `zz_area_code` VALUES (451222000000, '天峨县', 3, 451200000000); -INSERT INTO `zz_area_code` VALUES (451223000000, '凤山县', 3, 451200000000); -INSERT INTO `zz_area_code` VALUES (451224000000, '东兰县', 3, 451200000000); -INSERT INTO `zz_area_code` VALUES (451225000000, '罗城仫佬族自治县', 3, 451200000000); -INSERT INTO `zz_area_code` VALUES (451226000000, '环江毛南族自治县', 3, 451200000000); -INSERT INTO `zz_area_code` VALUES (451227000000, '巴马瑶族自治县', 3, 451200000000); -INSERT INTO `zz_area_code` VALUES (451228000000, '都安瑶族自治县', 3, 451200000000); -INSERT INTO `zz_area_code` VALUES (451229000000, '大化瑶族自治县', 3, 451200000000); -INSERT INTO `zz_area_code` VALUES (451300000000, '来宾市', 2, 450000000000); -INSERT INTO `zz_area_code` VALUES (451301000000, '市辖区', 3, 451300000000); -INSERT INTO `zz_area_code` VALUES (451302000000, '兴宾区', 3, 451300000000); -INSERT INTO `zz_area_code` VALUES (451321000000, '忻城县', 3, 451300000000); -INSERT INTO `zz_area_code` VALUES (451322000000, '象州县', 3, 451300000000); -INSERT INTO `zz_area_code` VALUES (451323000000, '武宣县', 3, 451300000000); -INSERT INTO `zz_area_code` VALUES (451324000000, '金秀瑶族自治县', 3, 451300000000); -INSERT INTO `zz_area_code` VALUES (451381000000, '合山市', 3, 451300000000); -INSERT INTO `zz_area_code` VALUES (451400000000, '崇左市', 2, 450000000000); -INSERT INTO `zz_area_code` VALUES (451401000000, '市辖区', 3, 451400000000); -INSERT INTO `zz_area_code` VALUES (451402000000, '江州区', 3, 451400000000); -INSERT INTO `zz_area_code` VALUES (451421000000, '扶绥县', 3, 451400000000); -INSERT INTO `zz_area_code` VALUES (451422000000, '宁明县', 3, 451400000000); -INSERT INTO `zz_area_code` VALUES (451423000000, '龙州县', 3, 451400000000); -INSERT INTO `zz_area_code` VALUES (451424000000, '大新县', 3, 451400000000); -INSERT INTO `zz_area_code` VALUES (451425000000, '天等县', 3, 451400000000); -INSERT INTO `zz_area_code` VALUES (451481000000, '凭祥市', 3, 451400000000); -INSERT INTO `zz_area_code` VALUES (460000000000, '海南省', 1, NULL); -INSERT INTO `zz_area_code` VALUES (460100000000, '海口市', 2, 460000000000); -INSERT INTO `zz_area_code` VALUES (460101000000, '市辖区', 3, 460100000000); -INSERT INTO `zz_area_code` VALUES (460105000000, '秀英区', 3, 460100000000); -INSERT INTO `zz_area_code` VALUES (460106000000, '龙华区', 3, 460100000000); -INSERT INTO `zz_area_code` VALUES (460107000000, '琼山区', 3, 460100000000); -INSERT INTO `zz_area_code` VALUES (460108000000, '美兰区', 3, 460100000000); -INSERT INTO `zz_area_code` VALUES (460200000000, '三亚市', 2, 460000000000); -INSERT INTO `zz_area_code` VALUES (460201000000, '市辖区', 3, 460200000000); -INSERT INTO `zz_area_code` VALUES (460202000000, '海棠区', 3, 460200000000); -INSERT INTO `zz_area_code` VALUES (460203000000, '吉阳区', 3, 460200000000); -INSERT INTO `zz_area_code` VALUES (460204000000, '天涯区', 3, 460200000000); -INSERT INTO `zz_area_code` VALUES (460205000000, '崖州区', 3, 460200000000); -INSERT INTO `zz_area_code` VALUES (460300000000, '三沙市', 2, 460000000000); -INSERT INTO `zz_area_code` VALUES (460321000000, '西沙群岛', 3, 460300000000); -INSERT INTO `zz_area_code` VALUES (460322000000, '南沙群岛', 3, 460300000000); -INSERT INTO `zz_area_code` VALUES (460323000000, '中沙群岛的岛礁及其海域', 3, 460300000000); -INSERT INTO `zz_area_code` VALUES (460400000000, '儋州市', 2, 460000000000); -INSERT INTO `zz_area_code` VALUES (469000000000, '省直辖县级行政区划', 2, 460000000000); -INSERT INTO `zz_area_code` VALUES (469001000000, '五指山市', 3, 469000000000); -INSERT INTO `zz_area_code` VALUES (469002000000, '琼海市', 3, 469000000000); -INSERT INTO `zz_area_code` VALUES (469005000000, '文昌市', 3, 469000000000); -INSERT INTO `zz_area_code` VALUES (469006000000, '万宁市', 3, 469000000000); -INSERT INTO `zz_area_code` VALUES (469007000000, '东方市', 3, 469000000000); -INSERT INTO `zz_area_code` VALUES (469021000000, '定安县', 3, 469000000000); -INSERT INTO `zz_area_code` VALUES (469022000000, '屯昌县', 3, 469000000000); -INSERT INTO `zz_area_code` VALUES (469023000000, '澄迈县', 3, 469000000000); -INSERT INTO `zz_area_code` VALUES (469024000000, '临高县', 3, 469000000000); -INSERT INTO `zz_area_code` VALUES (469025000000, '白沙黎族自治县', 3, 469000000000); -INSERT INTO `zz_area_code` VALUES (469026000000, '昌江黎族自治县', 3, 469000000000); -INSERT INTO `zz_area_code` VALUES (469027000000, '乐东黎族自治县', 3, 469000000000); -INSERT INTO `zz_area_code` VALUES (469028000000, '陵水黎族自治县', 3, 469000000000); -INSERT INTO `zz_area_code` VALUES (469029000000, '保亭黎族苗族自治县', 3, 469000000000); -INSERT INTO `zz_area_code` VALUES (469030000000, '琼中黎族苗族自治县', 3, 469000000000); -INSERT INTO `zz_area_code` VALUES (500000000000, '重庆市', 1, NULL); -INSERT INTO `zz_area_code` VALUES (500100000000, '市辖区', 2, 500000000000); -INSERT INTO `zz_area_code` VALUES (500101000000, '万州区', 3, 500100000000); -INSERT INTO `zz_area_code` VALUES (500102000000, '涪陵区', 3, 500100000000); -INSERT INTO `zz_area_code` VALUES (500103000000, '渝中区', 3, 500100000000); -INSERT INTO `zz_area_code` VALUES (500104000000, '大渡口区', 3, 500100000000); -INSERT INTO `zz_area_code` VALUES (500105000000, '江北区', 3, 500100000000); -INSERT INTO `zz_area_code` VALUES (500106000000, '沙坪坝区', 3, 500100000000); -INSERT INTO `zz_area_code` VALUES (500107000000, '九龙坡区', 3, 500100000000); -INSERT INTO `zz_area_code` VALUES (500108000000, '南岸区', 3, 500100000000); -INSERT INTO `zz_area_code` VALUES (500109000000, '北碚区', 3, 500100000000); -INSERT INTO `zz_area_code` VALUES (500110000000, '綦江区', 3, 500100000000); -INSERT INTO `zz_area_code` VALUES (500111000000, '大足区', 3, 500100000000); -INSERT INTO `zz_area_code` VALUES (500112000000, '渝北区', 3, 500100000000); -INSERT INTO `zz_area_code` VALUES (500113000000, '巴南区', 3, 500100000000); -INSERT INTO `zz_area_code` VALUES (500114000000, '黔江区', 3, 500100000000); -INSERT INTO `zz_area_code` VALUES (500115000000, '长寿区', 3, 500100000000); -INSERT INTO `zz_area_code` VALUES (500116000000, '江津区', 3, 500100000000); -INSERT INTO `zz_area_code` VALUES (500117000000, '合川区', 3, 500100000000); -INSERT INTO `zz_area_code` VALUES (500118000000, '永川区', 3, 500100000000); -INSERT INTO `zz_area_code` VALUES (500119000000, '南川区', 3, 500100000000); -INSERT INTO `zz_area_code` VALUES (500120000000, '璧山区', 3, 500100000000); -INSERT INTO `zz_area_code` VALUES (500151000000, '铜梁区', 3, 500100000000); -INSERT INTO `zz_area_code` VALUES (500152000000, '潼南区', 3, 500100000000); -INSERT INTO `zz_area_code` VALUES (500153000000, '荣昌区', 3, 500100000000); -INSERT INTO `zz_area_code` VALUES (500154000000, '开州区', 3, 500100000000); -INSERT INTO `zz_area_code` VALUES (500155000000, '梁平区', 3, 500100000000); -INSERT INTO `zz_area_code` VALUES (500156000000, '武隆区', 3, 500100000000); -INSERT INTO `zz_area_code` VALUES (500200000000, '县', 2, 500000000000); -INSERT INTO `zz_area_code` VALUES (500229000000, '城口县', 3, 500200000000); -INSERT INTO `zz_area_code` VALUES (500230000000, '丰都县', 3, 500200000000); -INSERT INTO `zz_area_code` VALUES (500231000000, '垫江县', 3, 500200000000); -INSERT INTO `zz_area_code` VALUES (500233000000, '忠县', 3, 500200000000); -INSERT INTO `zz_area_code` VALUES (500235000000, '云阳县', 3, 500200000000); -INSERT INTO `zz_area_code` VALUES (500236000000, '奉节县', 3, 500200000000); -INSERT INTO `zz_area_code` VALUES (500237000000, '巫山县', 3, 500200000000); -INSERT INTO `zz_area_code` VALUES (500238000000, '巫溪县', 3, 500200000000); -INSERT INTO `zz_area_code` VALUES (500240000000, '石柱土家族自治县', 3, 500200000000); -INSERT INTO `zz_area_code` VALUES (500241000000, '秀山土家族苗族自治县', 3, 500200000000); -INSERT INTO `zz_area_code` VALUES (500242000000, '酉阳土家族苗族自治县', 3, 500200000000); -INSERT INTO `zz_area_code` VALUES (500243000000, '彭水苗族土家族自治县', 3, 500200000000); -INSERT INTO `zz_area_code` VALUES (510000000000, '四川省', 1, NULL); -INSERT INTO `zz_area_code` VALUES (510100000000, '成都市', 2, 510000000000); -INSERT INTO `zz_area_code` VALUES (510101000000, '市辖区', 3, 510100000000); -INSERT INTO `zz_area_code` VALUES (510104000000, '锦江区', 3, 510100000000); -INSERT INTO `zz_area_code` VALUES (510105000000, '青羊区', 3, 510100000000); -INSERT INTO `zz_area_code` VALUES (510106000000, '金牛区', 3, 510100000000); -INSERT INTO `zz_area_code` VALUES (510107000000, '武侯区', 3, 510100000000); -INSERT INTO `zz_area_code` VALUES (510108000000, '成华区', 3, 510100000000); -INSERT INTO `zz_area_code` VALUES (510112000000, '龙泉驿区', 3, 510100000000); -INSERT INTO `zz_area_code` VALUES (510113000000, '青白江区', 3, 510100000000); -INSERT INTO `zz_area_code` VALUES (510114000000, '新都区', 3, 510100000000); -INSERT INTO `zz_area_code` VALUES (510115000000, '温江区', 3, 510100000000); -INSERT INTO `zz_area_code` VALUES (510116000000, '双流区', 3, 510100000000); -INSERT INTO `zz_area_code` VALUES (510117000000, '郫都区', 3, 510100000000); -INSERT INTO `zz_area_code` VALUES (510121000000, '金堂县', 3, 510100000000); -INSERT INTO `zz_area_code` VALUES (510129000000, '大邑县', 3, 510100000000); -INSERT INTO `zz_area_code` VALUES (510131000000, '蒲江县', 3, 510100000000); -INSERT INTO `zz_area_code` VALUES (510132000000, '新津县', 3, 510100000000); -INSERT INTO `zz_area_code` VALUES (510181000000, '都江堰市', 3, 510100000000); -INSERT INTO `zz_area_code` VALUES (510182000000, '彭州市', 3, 510100000000); -INSERT INTO `zz_area_code` VALUES (510183000000, '邛崃市', 3, 510100000000); -INSERT INTO `zz_area_code` VALUES (510184000000, '崇州市', 3, 510100000000); -INSERT INTO `zz_area_code` VALUES (510185000000, '简阳市', 3, 510100000000); -INSERT INTO `zz_area_code` VALUES (510300000000, '自贡市', 2, 510000000000); -INSERT INTO `zz_area_code` VALUES (510301000000, '市辖区', 3, 510300000000); -INSERT INTO `zz_area_code` VALUES (510302000000, '自流井区', 3, 510300000000); -INSERT INTO `zz_area_code` VALUES (510303000000, '贡井区', 3, 510300000000); -INSERT INTO `zz_area_code` VALUES (510304000000, '大安区', 3, 510300000000); -INSERT INTO `zz_area_code` VALUES (510311000000, '沿滩区', 3, 510300000000); -INSERT INTO `zz_area_code` VALUES (510321000000, '荣县', 3, 510300000000); -INSERT INTO `zz_area_code` VALUES (510322000000, '富顺县', 3, 510300000000); -INSERT INTO `zz_area_code` VALUES (510400000000, '攀枝花市', 2, 510000000000); -INSERT INTO `zz_area_code` VALUES (510401000000, '市辖区', 3, 510400000000); -INSERT INTO `zz_area_code` VALUES (510402000000, '东区', 3, 510400000000); -INSERT INTO `zz_area_code` VALUES (510403000000, '西区', 3, 510400000000); -INSERT INTO `zz_area_code` VALUES (510411000000, '仁和区', 3, 510400000000); -INSERT INTO `zz_area_code` VALUES (510421000000, '米易县', 3, 510400000000); -INSERT INTO `zz_area_code` VALUES (510422000000, '盐边县', 3, 510400000000); -INSERT INTO `zz_area_code` VALUES (510500000000, '泸州市', 2, 510000000000); -INSERT INTO `zz_area_code` VALUES (510501000000, '市辖区', 3, 510500000000); -INSERT INTO `zz_area_code` VALUES (510502000000, '江阳区', 3, 510500000000); -INSERT INTO `zz_area_code` VALUES (510503000000, '纳溪区', 3, 510500000000); -INSERT INTO `zz_area_code` VALUES (510504000000, '龙马潭区', 3, 510500000000); -INSERT INTO `zz_area_code` VALUES (510521000000, '泸县', 3, 510500000000); -INSERT INTO `zz_area_code` VALUES (510522000000, '合江县', 3, 510500000000); -INSERT INTO `zz_area_code` VALUES (510524000000, '叙永县', 3, 510500000000); -INSERT INTO `zz_area_code` VALUES (510525000000, '古蔺县', 3, 510500000000); -INSERT INTO `zz_area_code` VALUES (510600000000, '德阳市', 2, 510000000000); -INSERT INTO `zz_area_code` VALUES (510601000000, '市辖区', 3, 510600000000); -INSERT INTO `zz_area_code` VALUES (510603000000, '旌阳区', 3, 510600000000); -INSERT INTO `zz_area_code` VALUES (510604000000, '罗江区', 3, 510600000000); -INSERT INTO `zz_area_code` VALUES (510623000000, '中江县', 3, 510600000000); -INSERT INTO `zz_area_code` VALUES (510681000000, '广汉市', 3, 510600000000); -INSERT INTO `zz_area_code` VALUES (510682000000, '什邡市', 3, 510600000000); -INSERT INTO `zz_area_code` VALUES (510683000000, '绵竹市', 3, 510600000000); -INSERT INTO `zz_area_code` VALUES (510700000000, '绵阳市', 2, 510000000000); -INSERT INTO `zz_area_code` VALUES (510701000000, '市辖区', 3, 510700000000); -INSERT INTO `zz_area_code` VALUES (510703000000, '涪城区', 3, 510700000000); -INSERT INTO `zz_area_code` VALUES (510704000000, '游仙区', 3, 510700000000); -INSERT INTO `zz_area_code` VALUES (510705000000, '安州区', 3, 510700000000); -INSERT INTO `zz_area_code` VALUES (510722000000, '三台县', 3, 510700000000); -INSERT INTO `zz_area_code` VALUES (510723000000, '盐亭县', 3, 510700000000); -INSERT INTO `zz_area_code` VALUES (510725000000, '梓潼县', 3, 510700000000); -INSERT INTO `zz_area_code` VALUES (510726000000, '北川羌族自治县', 3, 510700000000); -INSERT INTO `zz_area_code` VALUES (510727000000, '平武县', 3, 510700000000); -INSERT INTO `zz_area_code` VALUES (510781000000, '江油市', 3, 510700000000); -INSERT INTO `zz_area_code` VALUES (510800000000, '广元市', 2, 510000000000); -INSERT INTO `zz_area_code` VALUES (510801000000, '市辖区', 3, 510800000000); -INSERT INTO `zz_area_code` VALUES (510802000000, '利州区', 3, 510800000000); -INSERT INTO `zz_area_code` VALUES (510811000000, '昭化区', 3, 510800000000); -INSERT INTO `zz_area_code` VALUES (510812000000, '朝天区', 3, 510800000000); -INSERT INTO `zz_area_code` VALUES (510821000000, '旺苍县', 3, 510800000000); -INSERT INTO `zz_area_code` VALUES (510822000000, '青川县', 3, 510800000000); -INSERT INTO `zz_area_code` VALUES (510823000000, '剑阁县', 3, 510800000000); -INSERT INTO `zz_area_code` VALUES (510824000000, '苍溪县', 3, 510800000000); -INSERT INTO `zz_area_code` VALUES (510900000000, '遂宁市', 2, 510000000000); -INSERT INTO `zz_area_code` VALUES (510901000000, '市辖区', 3, 510900000000); -INSERT INTO `zz_area_code` VALUES (510903000000, '船山区', 3, 510900000000); -INSERT INTO `zz_area_code` VALUES (510904000000, '安居区', 3, 510900000000); -INSERT INTO `zz_area_code` VALUES (510921000000, '蓬溪县', 3, 510900000000); -INSERT INTO `zz_area_code` VALUES (510922000000, '射洪县', 3, 510900000000); -INSERT INTO `zz_area_code` VALUES (510923000000, '大英县', 3, 510900000000); -INSERT INTO `zz_area_code` VALUES (511000000000, '内江市', 2, 510000000000); -INSERT INTO `zz_area_code` VALUES (511001000000, '市辖区', 3, 511000000000); -INSERT INTO `zz_area_code` VALUES (511002000000, '市中区', 3, 511000000000); -INSERT INTO `zz_area_code` VALUES (511011000000, '东兴区', 3, 511000000000); -INSERT INTO `zz_area_code` VALUES (511024000000, '威远县', 3, 511000000000); -INSERT INTO `zz_area_code` VALUES (511025000000, '资中县', 3, 511000000000); -INSERT INTO `zz_area_code` VALUES (511071000000, '内江经济开发区', 3, 511000000000); -INSERT INTO `zz_area_code` VALUES (511083000000, '隆昌市', 3, 511000000000); -INSERT INTO `zz_area_code` VALUES (511100000000, '乐山市', 2, 510000000000); -INSERT INTO `zz_area_code` VALUES (511101000000, '市辖区', 3, 511100000000); -INSERT INTO `zz_area_code` VALUES (511102000000, '市中区', 3, 511100000000); -INSERT INTO `zz_area_code` VALUES (511111000000, '沙湾区', 3, 511100000000); -INSERT INTO `zz_area_code` VALUES (511112000000, '五通桥区', 3, 511100000000); -INSERT INTO `zz_area_code` VALUES (511113000000, '金口河区', 3, 511100000000); -INSERT INTO `zz_area_code` VALUES (511123000000, '犍为县', 3, 511100000000); -INSERT INTO `zz_area_code` VALUES (511124000000, '井研县', 3, 511100000000); -INSERT INTO `zz_area_code` VALUES (511126000000, '夹江县', 3, 511100000000); -INSERT INTO `zz_area_code` VALUES (511129000000, '沐川县', 3, 511100000000); -INSERT INTO `zz_area_code` VALUES (511132000000, '峨边彝族自治县', 3, 511100000000); -INSERT INTO `zz_area_code` VALUES (511133000000, '马边彝族自治县', 3, 511100000000); -INSERT INTO `zz_area_code` VALUES (511181000000, '峨眉山市', 3, 511100000000); -INSERT INTO `zz_area_code` VALUES (511300000000, '南充市', 2, 510000000000); -INSERT INTO `zz_area_code` VALUES (511301000000, '市辖区', 3, 511300000000); -INSERT INTO `zz_area_code` VALUES (511302000000, '顺庆区', 3, 511300000000); -INSERT INTO `zz_area_code` VALUES (511303000000, '高坪区', 3, 511300000000); -INSERT INTO `zz_area_code` VALUES (511304000000, '嘉陵区', 3, 511300000000); -INSERT INTO `zz_area_code` VALUES (511321000000, '南部县', 3, 511300000000); -INSERT INTO `zz_area_code` VALUES (511322000000, '营山县', 3, 511300000000); -INSERT INTO `zz_area_code` VALUES (511323000000, '蓬安县', 3, 511300000000); -INSERT INTO `zz_area_code` VALUES (511324000000, '仪陇县', 3, 511300000000); -INSERT INTO `zz_area_code` VALUES (511325000000, '西充县', 3, 511300000000); -INSERT INTO `zz_area_code` VALUES (511381000000, '阆中市', 3, 511300000000); -INSERT INTO `zz_area_code` VALUES (511400000000, '眉山市', 2, 510000000000); -INSERT INTO `zz_area_code` VALUES (511401000000, '市辖区', 3, 511400000000); -INSERT INTO `zz_area_code` VALUES (511402000000, '东坡区', 3, 511400000000); -INSERT INTO `zz_area_code` VALUES (511403000000, '彭山区', 3, 511400000000); -INSERT INTO `zz_area_code` VALUES (511421000000, '仁寿县', 3, 511400000000); -INSERT INTO `zz_area_code` VALUES (511423000000, '洪雅县', 3, 511400000000); -INSERT INTO `zz_area_code` VALUES (511424000000, '丹棱县', 3, 511400000000); -INSERT INTO `zz_area_code` VALUES (511425000000, '青神县', 3, 511400000000); -INSERT INTO `zz_area_code` VALUES (511500000000, '宜宾市', 2, 510000000000); -INSERT INTO `zz_area_code` VALUES (511501000000, '市辖区', 3, 511500000000); -INSERT INTO `zz_area_code` VALUES (511502000000, '翠屏区', 3, 511500000000); -INSERT INTO `zz_area_code` VALUES (511503000000, '南溪区', 3, 511500000000); -INSERT INTO `zz_area_code` VALUES (511504000000, '叙州区', 3, 511500000000); -INSERT INTO `zz_area_code` VALUES (511523000000, '江安县', 3, 511500000000); -INSERT INTO `zz_area_code` VALUES (511524000000, '长宁县', 3, 511500000000); -INSERT INTO `zz_area_code` VALUES (511525000000, '高县', 3, 511500000000); -INSERT INTO `zz_area_code` VALUES (511526000000, '珙县', 3, 511500000000); -INSERT INTO `zz_area_code` VALUES (511527000000, '筠连县', 3, 511500000000); -INSERT INTO `zz_area_code` VALUES (511528000000, '兴文县', 3, 511500000000); -INSERT INTO `zz_area_code` VALUES (511529000000, '屏山县', 3, 511500000000); -INSERT INTO `zz_area_code` VALUES (511600000000, '广安市', 2, 510000000000); -INSERT INTO `zz_area_code` VALUES (511601000000, '市辖区', 3, 511600000000); -INSERT INTO `zz_area_code` VALUES (511602000000, '广安区', 3, 511600000000); -INSERT INTO `zz_area_code` VALUES (511603000000, '前锋区', 3, 511600000000); -INSERT INTO `zz_area_code` VALUES (511621000000, '岳池县', 3, 511600000000); -INSERT INTO `zz_area_code` VALUES (511622000000, '武胜县', 3, 511600000000); -INSERT INTO `zz_area_code` VALUES (511623000000, '邻水县', 3, 511600000000); -INSERT INTO `zz_area_code` VALUES (511681000000, '华蓥市', 3, 511600000000); -INSERT INTO `zz_area_code` VALUES (511700000000, '达州市', 2, 510000000000); -INSERT INTO `zz_area_code` VALUES (511701000000, '市辖区', 3, 511700000000); -INSERT INTO `zz_area_code` VALUES (511702000000, '通川区', 3, 511700000000); -INSERT INTO `zz_area_code` VALUES (511703000000, '达川区', 3, 511700000000); -INSERT INTO `zz_area_code` VALUES (511722000000, '宣汉县', 3, 511700000000); -INSERT INTO `zz_area_code` VALUES (511723000000, '开江县', 3, 511700000000); -INSERT INTO `zz_area_code` VALUES (511724000000, '大竹县', 3, 511700000000); -INSERT INTO `zz_area_code` VALUES (511725000000, '渠县', 3, 511700000000); -INSERT INTO `zz_area_code` VALUES (511771000000, '达州经济开发区', 3, 511700000000); -INSERT INTO `zz_area_code` VALUES (511781000000, '万源市', 3, 511700000000); -INSERT INTO `zz_area_code` VALUES (511800000000, '雅安市', 2, 510000000000); -INSERT INTO `zz_area_code` VALUES (511801000000, '市辖区', 3, 511800000000); -INSERT INTO `zz_area_code` VALUES (511802000000, '雨城区', 3, 511800000000); -INSERT INTO `zz_area_code` VALUES (511803000000, '名山区', 3, 511800000000); -INSERT INTO `zz_area_code` VALUES (511822000000, '荥经县', 3, 511800000000); -INSERT INTO `zz_area_code` VALUES (511823000000, '汉源县', 3, 511800000000); -INSERT INTO `zz_area_code` VALUES (511824000000, '石棉县', 3, 511800000000); -INSERT INTO `zz_area_code` VALUES (511825000000, '天全县', 3, 511800000000); -INSERT INTO `zz_area_code` VALUES (511826000000, '芦山县', 3, 511800000000); -INSERT INTO `zz_area_code` VALUES (511827000000, '宝兴县', 3, 511800000000); -INSERT INTO `zz_area_code` VALUES (511900000000, '巴中市', 2, 510000000000); -INSERT INTO `zz_area_code` VALUES (511901000000, '市辖区', 3, 511900000000); -INSERT INTO `zz_area_code` VALUES (511902000000, '巴州区', 3, 511900000000); -INSERT INTO `zz_area_code` VALUES (511903000000, '恩阳区', 3, 511900000000); -INSERT INTO `zz_area_code` VALUES (511921000000, '通江县', 3, 511900000000); -INSERT INTO `zz_area_code` VALUES (511922000000, '南江县', 3, 511900000000); -INSERT INTO `zz_area_code` VALUES (511923000000, '平昌县', 3, 511900000000); -INSERT INTO `zz_area_code` VALUES (511971000000, '巴中经济开发区', 3, 511900000000); -INSERT INTO `zz_area_code` VALUES (512000000000, '资阳市', 2, 510000000000); -INSERT INTO `zz_area_code` VALUES (512001000000, '市辖区', 3, 512000000000); -INSERT INTO `zz_area_code` VALUES (512002000000, '雁江区', 3, 512000000000); -INSERT INTO `zz_area_code` VALUES (512021000000, '安岳县', 3, 512000000000); -INSERT INTO `zz_area_code` VALUES (512022000000, '乐至县', 3, 512000000000); -INSERT INTO `zz_area_code` VALUES (513200000000, '阿坝藏族羌族自治州', 2, 510000000000); -INSERT INTO `zz_area_code` VALUES (513201000000, '马尔康市', 3, 513200000000); -INSERT INTO `zz_area_code` VALUES (513221000000, '汶川县', 3, 513200000000); -INSERT INTO `zz_area_code` VALUES (513222000000, '理县', 3, 513200000000); -INSERT INTO `zz_area_code` VALUES (513223000000, '茂县', 3, 513200000000); -INSERT INTO `zz_area_code` VALUES (513224000000, '松潘县', 3, 513200000000); -INSERT INTO `zz_area_code` VALUES (513225000000, '九寨沟县', 3, 513200000000); -INSERT INTO `zz_area_code` VALUES (513226000000, '金川县', 3, 513200000000); -INSERT INTO `zz_area_code` VALUES (513227000000, '小金县', 3, 513200000000); -INSERT INTO `zz_area_code` VALUES (513228000000, '黑水县', 3, 513200000000); -INSERT INTO `zz_area_code` VALUES (513230000000, '壤塘县', 3, 513200000000); -INSERT INTO `zz_area_code` VALUES (513231000000, '阿坝县', 3, 513200000000); -INSERT INTO `zz_area_code` VALUES (513232000000, '若尔盖县', 3, 513200000000); -INSERT INTO `zz_area_code` VALUES (513233000000, '红原县', 3, 513200000000); -INSERT INTO `zz_area_code` VALUES (513300000000, '甘孜藏族自治州', 2, 510000000000); -INSERT INTO `zz_area_code` VALUES (513301000000, '康定市', 3, 513300000000); -INSERT INTO `zz_area_code` VALUES (513322000000, '泸定县', 3, 513300000000); -INSERT INTO `zz_area_code` VALUES (513323000000, '丹巴县', 3, 513300000000); -INSERT INTO `zz_area_code` VALUES (513324000000, '九龙县', 3, 513300000000); -INSERT INTO `zz_area_code` VALUES (513325000000, '雅江县', 3, 513300000000); -INSERT INTO `zz_area_code` VALUES (513326000000, '道孚县', 3, 513300000000); -INSERT INTO `zz_area_code` VALUES (513327000000, '炉霍县', 3, 513300000000); -INSERT INTO `zz_area_code` VALUES (513328000000, '甘孜县', 3, 513300000000); -INSERT INTO `zz_area_code` VALUES (513329000000, '新龙县', 3, 513300000000); -INSERT INTO `zz_area_code` VALUES (513330000000, '德格县', 3, 513300000000); -INSERT INTO `zz_area_code` VALUES (513331000000, '白玉县', 3, 513300000000); -INSERT INTO `zz_area_code` VALUES (513332000000, '石渠县', 3, 513300000000); -INSERT INTO `zz_area_code` VALUES (513333000000, '色达县', 3, 513300000000); -INSERT INTO `zz_area_code` VALUES (513334000000, '理塘县', 3, 513300000000); -INSERT INTO `zz_area_code` VALUES (513335000000, '巴塘县', 3, 513300000000); -INSERT INTO `zz_area_code` VALUES (513336000000, '乡城县', 3, 513300000000); -INSERT INTO `zz_area_code` VALUES (513337000000, '稻城县', 3, 513300000000); -INSERT INTO `zz_area_code` VALUES (513338000000, '得荣县', 3, 513300000000); -INSERT INTO `zz_area_code` VALUES (513400000000, '凉山彝族自治州', 2, 510000000000); -INSERT INTO `zz_area_code` VALUES (513401000000, '西昌市', 3, 513400000000); -INSERT INTO `zz_area_code` VALUES (513422000000, '木里藏族自治县', 3, 513400000000); -INSERT INTO `zz_area_code` VALUES (513423000000, '盐源县', 3, 513400000000); -INSERT INTO `zz_area_code` VALUES (513424000000, '德昌县', 3, 513400000000); -INSERT INTO `zz_area_code` VALUES (513425000000, '会理县', 3, 513400000000); -INSERT INTO `zz_area_code` VALUES (513426000000, '会东县', 3, 513400000000); -INSERT INTO `zz_area_code` VALUES (513427000000, '宁南县', 3, 513400000000); -INSERT INTO `zz_area_code` VALUES (513428000000, '普格县', 3, 513400000000); -INSERT INTO `zz_area_code` VALUES (513429000000, '布拖县', 3, 513400000000); -INSERT INTO `zz_area_code` VALUES (513430000000, '金阳县', 3, 513400000000); -INSERT INTO `zz_area_code` VALUES (513431000000, '昭觉县', 3, 513400000000); -INSERT INTO `zz_area_code` VALUES (513432000000, '喜德县', 3, 513400000000); -INSERT INTO `zz_area_code` VALUES (513433000000, '冕宁县', 3, 513400000000); -INSERT INTO `zz_area_code` VALUES (513434000000, '越西县', 3, 513400000000); -INSERT INTO `zz_area_code` VALUES (513435000000, '甘洛县', 3, 513400000000); -INSERT INTO `zz_area_code` VALUES (513436000000, '美姑县', 3, 513400000000); -INSERT INTO `zz_area_code` VALUES (513437000000, '雷波县', 3, 513400000000); -INSERT INTO `zz_area_code` VALUES (520000000000, '贵州省', 1, NULL); -INSERT INTO `zz_area_code` VALUES (520100000000, '贵阳市', 2, 520000000000); -INSERT INTO `zz_area_code` VALUES (520101000000, '市辖区', 3, 520100000000); -INSERT INTO `zz_area_code` VALUES (520102000000, '南明区', 3, 520100000000); -INSERT INTO `zz_area_code` VALUES (520103000000, '云岩区', 3, 520100000000); -INSERT INTO `zz_area_code` VALUES (520111000000, '花溪区', 3, 520100000000); -INSERT INTO `zz_area_code` VALUES (520112000000, '乌当区', 3, 520100000000); -INSERT INTO `zz_area_code` VALUES (520113000000, '白云区', 3, 520100000000); -INSERT INTO `zz_area_code` VALUES (520115000000, '观山湖区', 3, 520100000000); -INSERT INTO `zz_area_code` VALUES (520121000000, '开阳县', 3, 520100000000); -INSERT INTO `zz_area_code` VALUES (520122000000, '息烽县', 3, 520100000000); -INSERT INTO `zz_area_code` VALUES (520123000000, '修文县', 3, 520100000000); -INSERT INTO `zz_area_code` VALUES (520181000000, '清镇市', 3, 520100000000); -INSERT INTO `zz_area_code` VALUES (520200000000, '六盘水市', 2, 520000000000); -INSERT INTO `zz_area_code` VALUES (520201000000, '钟山区', 3, 520200000000); -INSERT INTO `zz_area_code` VALUES (520203000000, '六枝特区', 3, 520200000000); -INSERT INTO `zz_area_code` VALUES (520221000000, '水城县', 3, 520200000000); -INSERT INTO `zz_area_code` VALUES (520281000000, '盘州市', 3, 520200000000); -INSERT INTO `zz_area_code` VALUES (520300000000, '遵义市', 2, 520000000000); -INSERT INTO `zz_area_code` VALUES (520301000000, '市辖区', 3, 520300000000); -INSERT INTO `zz_area_code` VALUES (520302000000, '红花岗区', 3, 520300000000); -INSERT INTO `zz_area_code` VALUES (520303000000, '汇川区', 3, 520300000000); -INSERT INTO `zz_area_code` VALUES (520304000000, '播州区', 3, 520300000000); -INSERT INTO `zz_area_code` VALUES (520322000000, '桐梓县', 3, 520300000000); -INSERT INTO `zz_area_code` VALUES (520323000000, '绥阳县', 3, 520300000000); -INSERT INTO `zz_area_code` VALUES (520324000000, '正安县', 3, 520300000000); -INSERT INTO `zz_area_code` VALUES (520325000000, '道真仡佬族苗族自治县', 3, 520300000000); -INSERT INTO `zz_area_code` VALUES (520326000000, '务川仡佬族苗族自治县', 3, 520300000000); -INSERT INTO `zz_area_code` VALUES (520327000000, '凤冈县', 3, 520300000000); -INSERT INTO `zz_area_code` VALUES (520328000000, '湄潭县', 3, 520300000000); -INSERT INTO `zz_area_code` VALUES (520329000000, '余庆县', 3, 520300000000); -INSERT INTO `zz_area_code` VALUES (520330000000, '习水县', 3, 520300000000); -INSERT INTO `zz_area_code` VALUES (520381000000, '赤水市', 3, 520300000000); -INSERT INTO `zz_area_code` VALUES (520382000000, '仁怀市', 3, 520300000000); -INSERT INTO `zz_area_code` VALUES (520400000000, '安顺市', 2, 520000000000); -INSERT INTO `zz_area_code` VALUES (520401000000, '市辖区', 3, 520400000000); -INSERT INTO `zz_area_code` VALUES (520402000000, '西秀区', 3, 520400000000); -INSERT INTO `zz_area_code` VALUES (520403000000, '平坝区', 3, 520400000000); -INSERT INTO `zz_area_code` VALUES (520422000000, '普定县', 3, 520400000000); -INSERT INTO `zz_area_code` VALUES (520423000000, '镇宁布依族苗族自治县', 3, 520400000000); -INSERT INTO `zz_area_code` VALUES (520424000000, '关岭布依族苗族自治县', 3, 520400000000); -INSERT INTO `zz_area_code` VALUES (520425000000, '紫云苗族布依族自治县', 3, 520400000000); -INSERT INTO `zz_area_code` VALUES (520500000000, '毕节市', 2, 520000000000); -INSERT INTO `zz_area_code` VALUES (520501000000, '市辖区', 3, 520500000000); -INSERT INTO `zz_area_code` VALUES (520502000000, '七星关区', 3, 520500000000); -INSERT INTO `zz_area_code` VALUES (520521000000, '大方县', 3, 520500000000); -INSERT INTO `zz_area_code` VALUES (520522000000, '黔西县', 3, 520500000000); -INSERT INTO `zz_area_code` VALUES (520523000000, '金沙县', 3, 520500000000); -INSERT INTO `zz_area_code` VALUES (520524000000, '织金县', 3, 520500000000); -INSERT INTO `zz_area_code` VALUES (520525000000, '纳雍县', 3, 520500000000); -INSERT INTO `zz_area_code` VALUES (520526000000, '威宁彝族回族苗族自治县', 3, 520500000000); -INSERT INTO `zz_area_code` VALUES (520527000000, '赫章县', 3, 520500000000); -INSERT INTO `zz_area_code` VALUES (520600000000, '铜仁市', 2, 520000000000); -INSERT INTO `zz_area_code` VALUES (520601000000, '市辖区', 3, 520600000000); -INSERT INTO `zz_area_code` VALUES (520602000000, '碧江区', 3, 520600000000); -INSERT INTO `zz_area_code` VALUES (520603000000, '万山区', 3, 520600000000); -INSERT INTO `zz_area_code` VALUES (520621000000, '江口县', 3, 520600000000); -INSERT INTO `zz_area_code` VALUES (520622000000, '玉屏侗族自治县', 3, 520600000000); -INSERT INTO `zz_area_code` VALUES (520623000000, '石阡县', 3, 520600000000); -INSERT INTO `zz_area_code` VALUES (520624000000, '思南县', 3, 520600000000); -INSERT INTO `zz_area_code` VALUES (520625000000, '印江土家族苗族自治县', 3, 520600000000); -INSERT INTO `zz_area_code` VALUES (520626000000, '德江县', 3, 520600000000); -INSERT INTO `zz_area_code` VALUES (520627000000, '沿河土家族自治县', 3, 520600000000); -INSERT INTO `zz_area_code` VALUES (520628000000, '松桃苗族自治县', 3, 520600000000); -INSERT INTO `zz_area_code` VALUES (522300000000, '黔西南布依族苗族自治州', 2, 520000000000); -INSERT INTO `zz_area_code` VALUES (522301000000, '兴义市', 3, 522300000000); -INSERT INTO `zz_area_code` VALUES (522302000000, '兴仁市', 3, 522300000000); -INSERT INTO `zz_area_code` VALUES (522323000000, '普安县', 3, 522300000000); -INSERT INTO `zz_area_code` VALUES (522324000000, '晴隆县', 3, 522300000000); -INSERT INTO `zz_area_code` VALUES (522325000000, '贞丰县', 3, 522300000000); -INSERT INTO `zz_area_code` VALUES (522326000000, '望谟县', 3, 522300000000); -INSERT INTO `zz_area_code` VALUES (522327000000, '册亨县', 3, 522300000000); -INSERT INTO `zz_area_code` VALUES (522328000000, '安龙县', 3, 522300000000); -INSERT INTO `zz_area_code` VALUES (522600000000, '黔东南苗族侗族自治州', 2, 520000000000); -INSERT INTO `zz_area_code` VALUES (522601000000, '凯里市', 3, 522600000000); -INSERT INTO `zz_area_code` VALUES (522622000000, '黄平县', 3, 522600000000); -INSERT INTO `zz_area_code` VALUES (522623000000, '施秉县', 3, 522600000000); -INSERT INTO `zz_area_code` VALUES (522624000000, '三穗县', 3, 522600000000); -INSERT INTO `zz_area_code` VALUES (522625000000, '镇远县', 3, 522600000000); -INSERT INTO `zz_area_code` VALUES (522626000000, '岑巩县', 3, 522600000000); -INSERT INTO `zz_area_code` VALUES (522627000000, '天柱县', 3, 522600000000); -INSERT INTO `zz_area_code` VALUES (522628000000, '锦屏县', 3, 522600000000); -INSERT INTO `zz_area_code` VALUES (522629000000, '剑河县', 3, 522600000000); -INSERT INTO `zz_area_code` VALUES (522630000000, '台江县', 3, 522600000000); -INSERT INTO `zz_area_code` VALUES (522631000000, '黎平县', 3, 522600000000); -INSERT INTO `zz_area_code` VALUES (522632000000, '榕江县', 3, 522600000000); -INSERT INTO `zz_area_code` VALUES (522633000000, '从江县', 3, 522600000000); -INSERT INTO `zz_area_code` VALUES (522634000000, '雷山县', 3, 522600000000); -INSERT INTO `zz_area_code` VALUES (522635000000, '麻江县', 3, 522600000000); -INSERT INTO `zz_area_code` VALUES (522636000000, '丹寨县', 3, 522600000000); -INSERT INTO `zz_area_code` VALUES (522700000000, '黔南布依族苗族自治州', 2, 520000000000); -INSERT INTO `zz_area_code` VALUES (522701000000, '都匀市', 3, 522700000000); -INSERT INTO `zz_area_code` VALUES (522702000000, '福泉市', 3, 522700000000); -INSERT INTO `zz_area_code` VALUES (522722000000, '荔波县', 3, 522700000000); -INSERT INTO `zz_area_code` VALUES (522723000000, '贵定县', 3, 522700000000); -INSERT INTO `zz_area_code` VALUES (522725000000, '瓮安县', 3, 522700000000); -INSERT INTO `zz_area_code` VALUES (522726000000, '独山县', 3, 522700000000); -INSERT INTO `zz_area_code` VALUES (522727000000, '平塘县', 3, 522700000000); -INSERT INTO `zz_area_code` VALUES (522728000000, '罗甸县', 3, 522700000000); -INSERT INTO `zz_area_code` VALUES (522729000000, '长顺县', 3, 522700000000); -INSERT INTO `zz_area_code` VALUES (522730000000, '龙里县', 3, 522700000000); -INSERT INTO `zz_area_code` VALUES (522731000000, '惠水县', 3, 522700000000); -INSERT INTO `zz_area_code` VALUES (522732000000, '三都水族自治县', 3, 522700000000); -INSERT INTO `zz_area_code` VALUES (530000000000, '云南省', 1, NULL); -INSERT INTO `zz_area_code` VALUES (530100000000, '昆明市', 2, 530000000000); -INSERT INTO `zz_area_code` VALUES (530101000000, '市辖区', 3, 530100000000); -INSERT INTO `zz_area_code` VALUES (530102000000, '五华区', 3, 530100000000); -INSERT INTO `zz_area_code` VALUES (530103000000, '盘龙区', 3, 530100000000); -INSERT INTO `zz_area_code` VALUES (530111000000, '官渡区', 3, 530100000000); -INSERT INTO `zz_area_code` VALUES (530112000000, '西山区', 3, 530100000000); -INSERT INTO `zz_area_code` VALUES (530113000000, '东川区', 3, 530100000000); -INSERT INTO `zz_area_code` VALUES (530114000000, '呈贡区', 3, 530100000000); -INSERT INTO `zz_area_code` VALUES (530115000000, '晋宁区', 3, 530100000000); -INSERT INTO `zz_area_code` VALUES (530124000000, '富民县', 3, 530100000000); -INSERT INTO `zz_area_code` VALUES (530125000000, '宜良县', 3, 530100000000); -INSERT INTO `zz_area_code` VALUES (530126000000, '石林彝族自治县', 3, 530100000000); -INSERT INTO `zz_area_code` VALUES (530127000000, '嵩明县', 3, 530100000000); -INSERT INTO `zz_area_code` VALUES (530128000000, '禄劝彝族苗族自治县', 3, 530100000000); -INSERT INTO `zz_area_code` VALUES (530129000000, '寻甸回族彝族自治县', 3, 530100000000); -INSERT INTO `zz_area_code` VALUES (530181000000, '安宁市', 3, 530100000000); -INSERT INTO `zz_area_code` VALUES (530300000000, '曲靖市', 2, 530000000000); -INSERT INTO `zz_area_code` VALUES (530301000000, '市辖区', 3, 530300000000); -INSERT INTO `zz_area_code` VALUES (530302000000, '麒麟区', 3, 530300000000); -INSERT INTO `zz_area_code` VALUES (530303000000, '沾益区', 3, 530300000000); -INSERT INTO `zz_area_code` VALUES (530304000000, '马龙区', 3, 530300000000); -INSERT INTO `zz_area_code` VALUES (530322000000, '陆良县', 3, 530300000000); -INSERT INTO `zz_area_code` VALUES (530323000000, '师宗县', 3, 530300000000); -INSERT INTO `zz_area_code` VALUES (530324000000, '罗平县', 3, 530300000000); -INSERT INTO `zz_area_code` VALUES (530325000000, '富源县', 3, 530300000000); -INSERT INTO `zz_area_code` VALUES (530326000000, '会泽县', 3, 530300000000); -INSERT INTO `zz_area_code` VALUES (530381000000, '宣威市', 3, 530300000000); -INSERT INTO `zz_area_code` VALUES (530400000000, '玉溪市', 2, 530000000000); -INSERT INTO `zz_area_code` VALUES (530401000000, '市辖区', 3, 530400000000); -INSERT INTO `zz_area_code` VALUES (530402000000, '红塔区', 3, 530400000000); -INSERT INTO `zz_area_code` VALUES (530403000000, '江川区', 3, 530400000000); -INSERT INTO `zz_area_code` VALUES (530422000000, '澄江县', 3, 530400000000); -INSERT INTO `zz_area_code` VALUES (530423000000, '通海县', 3, 530400000000); -INSERT INTO `zz_area_code` VALUES (530424000000, '华宁县', 3, 530400000000); -INSERT INTO `zz_area_code` VALUES (530425000000, '易门县', 3, 530400000000); -INSERT INTO `zz_area_code` VALUES (530426000000, '峨山彝族自治县', 3, 530400000000); -INSERT INTO `zz_area_code` VALUES (530427000000, '新平彝族傣族自治县', 3, 530400000000); -INSERT INTO `zz_area_code` VALUES (530428000000, '元江哈尼族彝族傣族自治县', 3, 530400000000); -INSERT INTO `zz_area_code` VALUES (530500000000, '保山市', 2, 530000000000); -INSERT INTO `zz_area_code` VALUES (530501000000, '市辖区', 3, 530500000000); -INSERT INTO `zz_area_code` VALUES (530502000000, '隆阳区', 3, 530500000000); -INSERT INTO `zz_area_code` VALUES (530521000000, '施甸县', 3, 530500000000); -INSERT INTO `zz_area_code` VALUES (530523000000, '龙陵县', 3, 530500000000); -INSERT INTO `zz_area_code` VALUES (530524000000, '昌宁县', 3, 530500000000); -INSERT INTO `zz_area_code` VALUES (530581000000, '腾冲市', 3, 530500000000); -INSERT INTO `zz_area_code` VALUES (530600000000, '昭通市', 2, 530000000000); -INSERT INTO `zz_area_code` VALUES (530601000000, '市辖区', 3, 530600000000); -INSERT INTO `zz_area_code` VALUES (530602000000, '昭阳区', 3, 530600000000); -INSERT INTO `zz_area_code` VALUES (530621000000, '鲁甸县', 3, 530600000000); -INSERT INTO `zz_area_code` VALUES (530622000000, '巧家县', 3, 530600000000); -INSERT INTO `zz_area_code` VALUES (530623000000, '盐津县', 3, 530600000000); -INSERT INTO `zz_area_code` VALUES (530624000000, '大关县', 3, 530600000000); -INSERT INTO `zz_area_code` VALUES (530625000000, '永善县', 3, 530600000000); -INSERT INTO `zz_area_code` VALUES (530626000000, '绥江县', 3, 530600000000); -INSERT INTO `zz_area_code` VALUES (530627000000, '镇雄县', 3, 530600000000); -INSERT INTO `zz_area_code` VALUES (530628000000, '彝良县', 3, 530600000000); -INSERT INTO `zz_area_code` VALUES (530629000000, '威信县', 3, 530600000000); -INSERT INTO `zz_area_code` VALUES (530681000000, '水富市', 3, 530600000000); -INSERT INTO `zz_area_code` VALUES (530700000000, '丽江市', 2, 530000000000); -INSERT INTO `zz_area_code` VALUES (530701000000, '市辖区', 3, 530700000000); -INSERT INTO `zz_area_code` VALUES (530702000000, '古城区', 3, 530700000000); -INSERT INTO `zz_area_code` VALUES (530721000000, '玉龙纳西族自治县', 3, 530700000000); -INSERT INTO `zz_area_code` VALUES (530722000000, '永胜县', 3, 530700000000); -INSERT INTO `zz_area_code` VALUES (530723000000, '华坪县', 3, 530700000000); -INSERT INTO `zz_area_code` VALUES (530724000000, '宁蒗彝族自治县', 3, 530700000000); -INSERT INTO `zz_area_code` VALUES (530800000000, '普洱市', 2, 530000000000); -INSERT INTO `zz_area_code` VALUES (530801000000, '市辖区', 3, 530800000000); -INSERT INTO `zz_area_code` VALUES (530802000000, '思茅区', 3, 530800000000); -INSERT INTO `zz_area_code` VALUES (530821000000, '宁洱哈尼族彝族自治县', 3, 530800000000); -INSERT INTO `zz_area_code` VALUES (530822000000, '墨江哈尼族自治县', 3, 530800000000); -INSERT INTO `zz_area_code` VALUES (530823000000, '景东彝族自治县', 3, 530800000000); -INSERT INTO `zz_area_code` VALUES (530824000000, '景谷傣族彝族自治县', 3, 530800000000); -INSERT INTO `zz_area_code` VALUES (530825000000, '镇沅彝族哈尼族拉祜族自治县', 3, 530800000000); -INSERT INTO `zz_area_code` VALUES (530826000000, '江城哈尼族彝族自治县', 3, 530800000000); -INSERT INTO `zz_area_code` VALUES (530827000000, '孟连傣族拉祜族佤族自治县', 3, 530800000000); -INSERT INTO `zz_area_code` VALUES (530828000000, '澜沧拉祜族自治县', 3, 530800000000); -INSERT INTO `zz_area_code` VALUES (530829000000, '西盟佤族自治县', 3, 530800000000); -INSERT INTO `zz_area_code` VALUES (530900000000, '临沧市', 2, 530000000000); -INSERT INTO `zz_area_code` VALUES (530901000000, '市辖区', 3, 530900000000); -INSERT INTO `zz_area_code` VALUES (530902000000, '临翔区', 3, 530900000000); -INSERT INTO `zz_area_code` VALUES (530921000000, '凤庆县', 3, 530900000000); -INSERT INTO `zz_area_code` VALUES (530922000000, '云县', 3, 530900000000); -INSERT INTO `zz_area_code` VALUES (530923000000, '永德县', 3, 530900000000); -INSERT INTO `zz_area_code` VALUES (530924000000, '镇康县', 3, 530900000000); -INSERT INTO `zz_area_code` VALUES (530925000000, '双江拉祜族佤族布朗族傣族自治县', 3, 530900000000); -INSERT INTO `zz_area_code` VALUES (530926000000, '耿马傣族佤族自治县', 3, 530900000000); -INSERT INTO `zz_area_code` VALUES (530927000000, '沧源佤族自治县', 3, 530900000000); -INSERT INTO `zz_area_code` VALUES (532300000000, '楚雄彝族自治州', 2, 530000000000); -INSERT INTO `zz_area_code` VALUES (532301000000, '楚雄市', 3, 532300000000); -INSERT INTO `zz_area_code` VALUES (532322000000, '双柏县', 3, 532300000000); -INSERT INTO `zz_area_code` VALUES (532323000000, '牟定县', 3, 532300000000); -INSERT INTO `zz_area_code` VALUES (532324000000, '南华县', 3, 532300000000); -INSERT INTO `zz_area_code` VALUES (532325000000, '姚安县', 3, 532300000000); -INSERT INTO `zz_area_code` VALUES (532326000000, '大姚县', 3, 532300000000); -INSERT INTO `zz_area_code` VALUES (532327000000, '永仁县', 3, 532300000000); -INSERT INTO `zz_area_code` VALUES (532328000000, '元谋县', 3, 532300000000); -INSERT INTO `zz_area_code` VALUES (532329000000, '武定县', 3, 532300000000); -INSERT INTO `zz_area_code` VALUES (532331000000, '禄丰县', 3, 532300000000); -INSERT INTO `zz_area_code` VALUES (532500000000, '红河哈尼族彝族自治州', 2, 530000000000); -INSERT INTO `zz_area_code` VALUES (532501000000, '个旧市', 3, 532500000000); -INSERT INTO `zz_area_code` VALUES (532502000000, '开远市', 3, 532500000000); -INSERT INTO `zz_area_code` VALUES (532503000000, '蒙自市', 3, 532500000000); -INSERT INTO `zz_area_code` VALUES (532504000000, '弥勒市', 3, 532500000000); -INSERT INTO `zz_area_code` VALUES (532523000000, '屏边苗族自治县', 3, 532500000000); -INSERT INTO `zz_area_code` VALUES (532524000000, '建水县', 3, 532500000000); -INSERT INTO `zz_area_code` VALUES (532525000000, '石屏县', 3, 532500000000); -INSERT INTO `zz_area_code` VALUES (532527000000, '泸西县', 3, 532500000000); -INSERT INTO `zz_area_code` VALUES (532528000000, '元阳县', 3, 532500000000); -INSERT INTO `zz_area_code` VALUES (532529000000, '红河县', 3, 532500000000); -INSERT INTO `zz_area_code` VALUES (532530000000, '金平苗族瑶族傣族自治县', 3, 532500000000); -INSERT INTO `zz_area_code` VALUES (532531000000, '绿春县', 3, 532500000000); -INSERT INTO `zz_area_code` VALUES (532532000000, '河口瑶族自治县', 3, 532500000000); -INSERT INTO `zz_area_code` VALUES (532600000000, '文山壮族苗族自治州', 2, 530000000000); -INSERT INTO `zz_area_code` VALUES (532601000000, '文山市', 3, 532600000000); -INSERT INTO `zz_area_code` VALUES (532622000000, '砚山县', 3, 532600000000); -INSERT INTO `zz_area_code` VALUES (532623000000, '西畴县', 3, 532600000000); -INSERT INTO `zz_area_code` VALUES (532624000000, '麻栗坡县', 3, 532600000000); -INSERT INTO `zz_area_code` VALUES (532625000000, '马关县', 3, 532600000000); -INSERT INTO `zz_area_code` VALUES (532626000000, '丘北县', 3, 532600000000); -INSERT INTO `zz_area_code` VALUES (532627000000, '广南县', 3, 532600000000); -INSERT INTO `zz_area_code` VALUES (532628000000, '富宁县', 3, 532600000000); -INSERT INTO `zz_area_code` VALUES (532800000000, '西双版纳傣族自治州', 2, 530000000000); -INSERT INTO `zz_area_code` VALUES (532801000000, '景洪市', 3, 532800000000); -INSERT INTO `zz_area_code` VALUES (532822000000, '勐海县', 3, 532800000000); -INSERT INTO `zz_area_code` VALUES (532823000000, '勐腊县', 3, 532800000000); -INSERT INTO `zz_area_code` VALUES (532900000000, '大理白族自治州', 2, 530000000000); -INSERT INTO `zz_area_code` VALUES (532901000000, '大理市', 3, 532900000000); -INSERT INTO `zz_area_code` VALUES (532922000000, '漾濞彝族自治县', 3, 532900000000); -INSERT INTO `zz_area_code` VALUES (532923000000, '祥云县', 3, 532900000000); -INSERT INTO `zz_area_code` VALUES (532924000000, '宾川县', 3, 532900000000); -INSERT INTO `zz_area_code` VALUES (532925000000, '弥渡县', 3, 532900000000); -INSERT INTO `zz_area_code` VALUES (532926000000, '南涧彝族自治县', 3, 532900000000); -INSERT INTO `zz_area_code` VALUES (532927000000, '巍山彝族回族自治县', 3, 532900000000); -INSERT INTO `zz_area_code` VALUES (532928000000, '永平县', 3, 532900000000); -INSERT INTO `zz_area_code` VALUES (532929000000, '云龙县', 3, 532900000000); -INSERT INTO `zz_area_code` VALUES (532930000000, '洱源县', 3, 532900000000); -INSERT INTO `zz_area_code` VALUES (532931000000, '剑川县', 3, 532900000000); -INSERT INTO `zz_area_code` VALUES (532932000000, '鹤庆县', 3, 532900000000); -INSERT INTO `zz_area_code` VALUES (533100000000, '德宏傣族景颇族自治州', 2, 530000000000); -INSERT INTO `zz_area_code` VALUES (533102000000, '瑞丽市', 3, 533100000000); -INSERT INTO `zz_area_code` VALUES (533103000000, '芒市', 3, 533100000000); -INSERT INTO `zz_area_code` VALUES (533122000000, '梁河县', 3, 533100000000); -INSERT INTO `zz_area_code` VALUES (533123000000, '盈江县', 3, 533100000000); -INSERT INTO `zz_area_code` VALUES (533124000000, '陇川县', 3, 533100000000); -INSERT INTO `zz_area_code` VALUES (533300000000, '怒江傈僳族自治州', 2, 530000000000); -INSERT INTO `zz_area_code` VALUES (533301000000, '泸水市', 3, 533300000000); -INSERT INTO `zz_area_code` VALUES (533323000000, '福贡县', 3, 533300000000); -INSERT INTO `zz_area_code` VALUES (533324000000, '贡山独龙族怒族自治县', 3, 533300000000); -INSERT INTO `zz_area_code` VALUES (533325000000, '兰坪白族普米族自治县', 3, 533300000000); -INSERT INTO `zz_area_code` VALUES (533400000000, '迪庆藏族自治州', 2, 530000000000); -INSERT INTO `zz_area_code` VALUES (533401000000, '香格里拉市', 3, 533400000000); -INSERT INTO `zz_area_code` VALUES (533422000000, '德钦县', 3, 533400000000); -INSERT INTO `zz_area_code` VALUES (533423000000, '维西傈僳族自治县', 3, 533400000000); -INSERT INTO `zz_area_code` VALUES (540000000000, '西藏自治区', 1, NULL); -INSERT INTO `zz_area_code` VALUES (540100000000, '拉萨市', 2, 540000000000); -INSERT INTO `zz_area_code` VALUES (540101000000, '市辖区', 3, 540100000000); -INSERT INTO `zz_area_code` VALUES (540102000000, '城关区', 3, 540100000000); -INSERT INTO `zz_area_code` VALUES (540103000000, '堆龙德庆区', 3, 540100000000); -INSERT INTO `zz_area_code` VALUES (540104000000, '达孜区', 3, 540100000000); -INSERT INTO `zz_area_code` VALUES (540121000000, '林周县', 3, 540100000000); -INSERT INTO `zz_area_code` VALUES (540122000000, '当雄县', 3, 540100000000); -INSERT INTO `zz_area_code` VALUES (540123000000, '尼木县', 3, 540100000000); -INSERT INTO `zz_area_code` VALUES (540124000000, '曲水县', 3, 540100000000); -INSERT INTO `zz_area_code` VALUES (540127000000, '墨竹工卡县', 3, 540100000000); -INSERT INTO `zz_area_code` VALUES (540171000000, '格尔木藏青工业园区', 3, 540100000000); -INSERT INTO `zz_area_code` VALUES (540172000000, '拉萨经济技术开发区', 3, 540100000000); -INSERT INTO `zz_area_code` VALUES (540173000000, '西藏文化旅游创意园区', 3, 540100000000); -INSERT INTO `zz_area_code` VALUES (540174000000, '达孜工业园区', 3, 540100000000); -INSERT INTO `zz_area_code` VALUES (540200000000, '日喀则市', 2, 540000000000); -INSERT INTO `zz_area_code` VALUES (540202000000, '桑珠孜区', 3, 540200000000); -INSERT INTO `zz_area_code` VALUES (540221000000, '南木林县', 3, 540200000000); -INSERT INTO `zz_area_code` VALUES (540222000000, '江孜县', 3, 540200000000); -INSERT INTO `zz_area_code` VALUES (540223000000, '定日县', 3, 540200000000); -INSERT INTO `zz_area_code` VALUES (540224000000, '萨迦县', 3, 540200000000); -INSERT INTO `zz_area_code` VALUES (540225000000, '拉孜县', 3, 540200000000); -INSERT INTO `zz_area_code` VALUES (540226000000, '昂仁县', 3, 540200000000); -INSERT INTO `zz_area_code` VALUES (540227000000, '谢通门县', 3, 540200000000); -INSERT INTO `zz_area_code` VALUES (540228000000, '白朗县', 3, 540200000000); -INSERT INTO `zz_area_code` VALUES (540229000000, '仁布县', 3, 540200000000); -INSERT INTO `zz_area_code` VALUES (540230000000, '康马县', 3, 540200000000); -INSERT INTO `zz_area_code` VALUES (540231000000, '定结县', 3, 540200000000); -INSERT INTO `zz_area_code` VALUES (540232000000, '仲巴县', 3, 540200000000); -INSERT INTO `zz_area_code` VALUES (540233000000, '亚东县', 3, 540200000000); -INSERT INTO `zz_area_code` VALUES (540234000000, '吉隆县', 3, 540200000000); -INSERT INTO `zz_area_code` VALUES (540235000000, '聂拉木县', 3, 540200000000); -INSERT INTO `zz_area_code` VALUES (540236000000, '萨嘎县', 3, 540200000000); -INSERT INTO `zz_area_code` VALUES (540237000000, '岗巴县', 3, 540200000000); -INSERT INTO `zz_area_code` VALUES (540300000000, '昌都市', 2, 540000000000); -INSERT INTO `zz_area_code` VALUES (540302000000, '卡若区', 3, 540300000000); -INSERT INTO `zz_area_code` VALUES (540321000000, '江达县', 3, 540300000000); -INSERT INTO `zz_area_code` VALUES (540322000000, '贡觉县', 3, 540300000000); -INSERT INTO `zz_area_code` VALUES (540323000000, '类乌齐县', 3, 540300000000); -INSERT INTO `zz_area_code` VALUES (540324000000, '丁青县', 3, 540300000000); -INSERT INTO `zz_area_code` VALUES (540325000000, '察雅县', 3, 540300000000); -INSERT INTO `zz_area_code` VALUES (540326000000, '八宿县', 3, 540300000000); -INSERT INTO `zz_area_code` VALUES (540327000000, '左贡县', 3, 540300000000); -INSERT INTO `zz_area_code` VALUES (540328000000, '芒康县', 3, 540300000000); -INSERT INTO `zz_area_code` VALUES (540329000000, '洛隆县', 3, 540300000000); -INSERT INTO `zz_area_code` VALUES (540330000000, '边坝县', 3, 540300000000); -INSERT INTO `zz_area_code` VALUES (540400000000, '林芝市', 2, 540000000000); -INSERT INTO `zz_area_code` VALUES (540402000000, '巴宜区', 3, 540400000000); -INSERT INTO `zz_area_code` VALUES (540421000000, '工布江达县', 3, 540400000000); -INSERT INTO `zz_area_code` VALUES (540422000000, '米林县', 3, 540400000000); -INSERT INTO `zz_area_code` VALUES (540423000000, '墨脱县', 3, 540400000000); -INSERT INTO `zz_area_code` VALUES (540424000000, '波密县', 3, 540400000000); -INSERT INTO `zz_area_code` VALUES (540425000000, '察隅县', 3, 540400000000); -INSERT INTO `zz_area_code` VALUES (540426000000, '朗县', 3, 540400000000); -INSERT INTO `zz_area_code` VALUES (540500000000, '山南市', 2, 540000000000); -INSERT INTO `zz_area_code` VALUES (540501000000, '市辖区', 3, 540500000000); -INSERT INTO `zz_area_code` VALUES (540502000000, '乃东区', 3, 540500000000); -INSERT INTO `zz_area_code` VALUES (540521000000, '扎囊县', 3, 540500000000); -INSERT INTO `zz_area_code` VALUES (540522000000, '贡嘎县', 3, 540500000000); -INSERT INTO `zz_area_code` VALUES (540523000000, '桑日县', 3, 540500000000); -INSERT INTO `zz_area_code` VALUES (540524000000, '琼结县', 3, 540500000000); -INSERT INTO `zz_area_code` VALUES (540525000000, '曲松县', 3, 540500000000); -INSERT INTO `zz_area_code` VALUES (540526000000, '措美县', 3, 540500000000); -INSERT INTO `zz_area_code` VALUES (540527000000, '洛扎县', 3, 540500000000); -INSERT INTO `zz_area_code` VALUES (540528000000, '加查县', 3, 540500000000); -INSERT INTO `zz_area_code` VALUES (540529000000, '隆子县', 3, 540500000000); -INSERT INTO `zz_area_code` VALUES (540530000000, '错那县', 3, 540500000000); -INSERT INTO `zz_area_code` VALUES (540531000000, '浪卡子县', 3, 540500000000); -INSERT INTO `zz_area_code` VALUES (540600000000, '那曲市', 2, 540000000000); -INSERT INTO `zz_area_code` VALUES (540602000000, '色尼区', 3, 540600000000); -INSERT INTO `zz_area_code` VALUES (540621000000, '嘉黎县', 3, 540600000000); -INSERT INTO `zz_area_code` VALUES (540622000000, '比如县', 3, 540600000000); -INSERT INTO `zz_area_code` VALUES (540623000000, '聂荣县', 3, 540600000000); -INSERT INTO `zz_area_code` VALUES (540624000000, '安多县', 3, 540600000000); -INSERT INTO `zz_area_code` VALUES (540625000000, '申扎县', 3, 540600000000); -INSERT INTO `zz_area_code` VALUES (540626000000, '索县', 3, 540600000000); -INSERT INTO `zz_area_code` VALUES (540627000000, '班戈县', 3, 540600000000); -INSERT INTO `zz_area_code` VALUES (540628000000, '巴青县', 3, 540600000000); -INSERT INTO `zz_area_code` VALUES (540629000000, '尼玛县', 3, 540600000000); -INSERT INTO `zz_area_code` VALUES (540630000000, '双湖县', 3, 540600000000); -INSERT INTO `zz_area_code` VALUES (542500000000, '阿里地区', 2, 540000000000); -INSERT INTO `zz_area_code` VALUES (542521000000, '普兰县', 3, 542500000000); -INSERT INTO `zz_area_code` VALUES (542522000000, '札达县', 3, 542500000000); -INSERT INTO `zz_area_code` VALUES (542523000000, '噶尔县', 3, 542500000000); -INSERT INTO `zz_area_code` VALUES (542524000000, '日土县', 3, 542500000000); -INSERT INTO `zz_area_code` VALUES (542525000000, '革吉县', 3, 542500000000); -INSERT INTO `zz_area_code` VALUES (542526000000, '改则县', 3, 542500000000); -INSERT INTO `zz_area_code` VALUES (542527000000, '措勤县', 3, 542500000000); -INSERT INTO `zz_area_code` VALUES (610000000000, '陕西省', 1, NULL); -INSERT INTO `zz_area_code` VALUES (610100000000, '西安市', 2, 610000000000); -INSERT INTO `zz_area_code` VALUES (610101000000, '市辖区', 3, 610100000000); -INSERT INTO `zz_area_code` VALUES (610102000000, '新城区', 3, 610100000000); -INSERT INTO `zz_area_code` VALUES (610103000000, '碑林区', 3, 610100000000); -INSERT INTO `zz_area_code` VALUES (610104000000, '莲湖区', 3, 610100000000); -INSERT INTO `zz_area_code` VALUES (610111000000, '灞桥区', 3, 610100000000); -INSERT INTO `zz_area_code` VALUES (610112000000, '未央区', 3, 610100000000); -INSERT INTO `zz_area_code` VALUES (610113000000, '雁塔区', 3, 610100000000); -INSERT INTO `zz_area_code` VALUES (610114000000, '阎良区', 3, 610100000000); -INSERT INTO `zz_area_code` VALUES (610115000000, '临潼区', 3, 610100000000); -INSERT INTO `zz_area_code` VALUES (610116000000, '长安区', 3, 610100000000); -INSERT INTO `zz_area_code` VALUES (610117000000, '高陵区', 3, 610100000000); -INSERT INTO `zz_area_code` VALUES (610118000000, '鄠邑区', 3, 610100000000); -INSERT INTO `zz_area_code` VALUES (610122000000, '蓝田县', 3, 610100000000); -INSERT INTO `zz_area_code` VALUES (610124000000, '周至县', 3, 610100000000); -INSERT INTO `zz_area_code` VALUES (610200000000, '铜川市', 2, 610000000000); -INSERT INTO `zz_area_code` VALUES (610201000000, '市辖区', 3, 610200000000); -INSERT INTO `zz_area_code` VALUES (610202000000, '王益区', 3, 610200000000); -INSERT INTO `zz_area_code` VALUES (610203000000, '印台区', 3, 610200000000); -INSERT INTO `zz_area_code` VALUES (610204000000, '耀州区', 3, 610200000000); -INSERT INTO `zz_area_code` VALUES (610222000000, '宜君县', 3, 610200000000); -INSERT INTO `zz_area_code` VALUES (610300000000, '宝鸡市', 2, 610000000000); -INSERT INTO `zz_area_code` VALUES (610301000000, '市辖区', 3, 610300000000); -INSERT INTO `zz_area_code` VALUES (610302000000, '渭滨区', 3, 610300000000); -INSERT INTO `zz_area_code` VALUES (610303000000, '金台区', 3, 610300000000); -INSERT INTO `zz_area_code` VALUES (610304000000, '陈仓区', 3, 610300000000); -INSERT INTO `zz_area_code` VALUES (610322000000, '凤翔县', 3, 610300000000); -INSERT INTO `zz_area_code` VALUES (610323000000, '岐山县', 3, 610300000000); -INSERT INTO `zz_area_code` VALUES (610324000000, '扶风县', 3, 610300000000); -INSERT INTO `zz_area_code` VALUES (610326000000, '眉县', 3, 610300000000); -INSERT INTO `zz_area_code` VALUES (610327000000, '陇县', 3, 610300000000); -INSERT INTO `zz_area_code` VALUES (610328000000, '千阳县', 3, 610300000000); -INSERT INTO `zz_area_code` VALUES (610329000000, '麟游县', 3, 610300000000); -INSERT INTO `zz_area_code` VALUES (610330000000, '凤县', 3, 610300000000); -INSERT INTO `zz_area_code` VALUES (610331000000, '太白县', 3, 610300000000); -INSERT INTO `zz_area_code` VALUES (610400000000, '咸阳市', 2, 610000000000); -INSERT INTO `zz_area_code` VALUES (610401000000, '市辖区', 3, 610400000000); -INSERT INTO `zz_area_code` VALUES (610402000000, '秦都区', 3, 610400000000); -INSERT INTO `zz_area_code` VALUES (610403000000, '杨陵区', 3, 610400000000); -INSERT INTO `zz_area_code` VALUES (610404000000, '渭城区', 3, 610400000000); -INSERT INTO `zz_area_code` VALUES (610422000000, '三原县', 3, 610400000000); -INSERT INTO `zz_area_code` VALUES (610423000000, '泾阳县', 3, 610400000000); -INSERT INTO `zz_area_code` VALUES (610424000000, '乾县', 3, 610400000000); -INSERT INTO `zz_area_code` VALUES (610425000000, '礼泉县', 3, 610400000000); -INSERT INTO `zz_area_code` VALUES (610426000000, '永寿县', 3, 610400000000); -INSERT INTO `zz_area_code` VALUES (610428000000, '长武县', 3, 610400000000); -INSERT INTO `zz_area_code` VALUES (610429000000, '旬邑县', 3, 610400000000); -INSERT INTO `zz_area_code` VALUES (610430000000, '淳化县', 3, 610400000000); -INSERT INTO `zz_area_code` VALUES (610431000000, '武功县', 3, 610400000000); -INSERT INTO `zz_area_code` VALUES (610481000000, '兴平市', 3, 610400000000); -INSERT INTO `zz_area_code` VALUES (610482000000, '彬州市', 3, 610400000000); -INSERT INTO `zz_area_code` VALUES (610500000000, '渭南市', 2, 610000000000); -INSERT INTO `zz_area_code` VALUES (610501000000, '市辖区', 3, 610500000000); -INSERT INTO `zz_area_code` VALUES (610502000000, '临渭区', 3, 610500000000); -INSERT INTO `zz_area_code` VALUES (610503000000, '华州区', 3, 610500000000); -INSERT INTO `zz_area_code` VALUES (610522000000, '潼关县', 3, 610500000000); -INSERT INTO `zz_area_code` VALUES (610523000000, '大荔县', 3, 610500000000); -INSERT INTO `zz_area_code` VALUES (610524000000, '合阳县', 3, 610500000000); -INSERT INTO `zz_area_code` VALUES (610525000000, '澄城县', 3, 610500000000); -INSERT INTO `zz_area_code` VALUES (610526000000, '蒲城县', 3, 610500000000); -INSERT INTO `zz_area_code` VALUES (610527000000, '白水县', 3, 610500000000); -INSERT INTO `zz_area_code` VALUES (610528000000, '富平县', 3, 610500000000); -INSERT INTO `zz_area_code` VALUES (610581000000, '韩城市', 3, 610500000000); -INSERT INTO `zz_area_code` VALUES (610582000000, '华阴市', 3, 610500000000); -INSERT INTO `zz_area_code` VALUES (610600000000, '延安市', 2, 610000000000); -INSERT INTO `zz_area_code` VALUES (610601000000, '市辖区', 3, 610600000000); -INSERT INTO `zz_area_code` VALUES (610602000000, '宝塔区', 3, 610600000000); -INSERT INTO `zz_area_code` VALUES (610603000000, '安塞区', 3, 610600000000); -INSERT INTO `zz_area_code` VALUES (610621000000, '延长县', 3, 610600000000); -INSERT INTO `zz_area_code` VALUES (610622000000, '延川县', 3, 610600000000); -INSERT INTO `zz_area_code` VALUES (610623000000, '子长县', 3, 610600000000); -INSERT INTO `zz_area_code` VALUES (610625000000, '志丹县', 3, 610600000000); -INSERT INTO `zz_area_code` VALUES (610626000000, '吴起县', 3, 610600000000); -INSERT INTO `zz_area_code` VALUES (610627000000, '甘泉县', 3, 610600000000); -INSERT INTO `zz_area_code` VALUES (610628000000, '富县', 3, 610600000000); -INSERT INTO `zz_area_code` VALUES (610629000000, '洛川县', 3, 610600000000); -INSERT INTO `zz_area_code` VALUES (610630000000, '宜川县', 3, 610600000000); -INSERT INTO `zz_area_code` VALUES (610631000000, '黄龙县', 3, 610600000000); -INSERT INTO `zz_area_code` VALUES (610632000000, '黄陵县', 3, 610600000000); -INSERT INTO `zz_area_code` VALUES (610700000000, '汉中市', 2, 610000000000); -INSERT INTO `zz_area_code` VALUES (610701000000, '市辖区', 3, 610700000000); -INSERT INTO `zz_area_code` VALUES (610702000000, '汉台区', 3, 610700000000); -INSERT INTO `zz_area_code` VALUES (610703000000, '南郑区', 3, 610700000000); -INSERT INTO `zz_area_code` VALUES (610722000000, '城固县', 3, 610700000000); -INSERT INTO `zz_area_code` VALUES (610723000000, '洋县', 3, 610700000000); -INSERT INTO `zz_area_code` VALUES (610724000000, '西乡县', 3, 610700000000); -INSERT INTO `zz_area_code` VALUES (610725000000, '勉县', 3, 610700000000); -INSERT INTO `zz_area_code` VALUES (610726000000, '宁强县', 3, 610700000000); -INSERT INTO `zz_area_code` VALUES (610727000000, '略阳县', 3, 610700000000); -INSERT INTO `zz_area_code` VALUES (610728000000, '镇巴县', 3, 610700000000); -INSERT INTO `zz_area_code` VALUES (610729000000, '留坝县', 3, 610700000000); -INSERT INTO `zz_area_code` VALUES (610730000000, '佛坪县', 3, 610700000000); -INSERT INTO `zz_area_code` VALUES (610800000000, '榆林市', 2, 610000000000); -INSERT INTO `zz_area_code` VALUES (610801000000, '市辖区', 3, 610800000000); -INSERT INTO `zz_area_code` VALUES (610802000000, '榆阳区', 3, 610800000000); -INSERT INTO `zz_area_code` VALUES (610803000000, '横山区', 3, 610800000000); -INSERT INTO `zz_area_code` VALUES (610822000000, '府谷县', 3, 610800000000); -INSERT INTO `zz_area_code` VALUES (610824000000, '靖边县', 3, 610800000000); -INSERT INTO `zz_area_code` VALUES (610825000000, '定边县', 3, 610800000000); -INSERT INTO `zz_area_code` VALUES (610826000000, '绥德县', 3, 610800000000); -INSERT INTO `zz_area_code` VALUES (610827000000, '米脂县', 3, 610800000000); -INSERT INTO `zz_area_code` VALUES (610828000000, '佳县', 3, 610800000000); -INSERT INTO `zz_area_code` VALUES (610829000000, '吴堡县', 3, 610800000000); -INSERT INTO `zz_area_code` VALUES (610830000000, '清涧县', 3, 610800000000); -INSERT INTO `zz_area_code` VALUES (610831000000, '子洲县', 3, 610800000000); -INSERT INTO `zz_area_code` VALUES (610881000000, '神木市', 3, 610800000000); -INSERT INTO `zz_area_code` VALUES (610900000000, '安康市', 2, 610000000000); -INSERT INTO `zz_area_code` VALUES (610901000000, '市辖区', 3, 610900000000); -INSERT INTO `zz_area_code` VALUES (610902000000, '汉滨区', 3, 610900000000); -INSERT INTO `zz_area_code` VALUES (610921000000, '汉阴县', 3, 610900000000); -INSERT INTO `zz_area_code` VALUES (610922000000, '石泉县', 3, 610900000000); -INSERT INTO `zz_area_code` VALUES (610923000000, '宁陕县', 3, 610900000000); -INSERT INTO `zz_area_code` VALUES (610924000000, '紫阳县', 3, 610900000000); -INSERT INTO `zz_area_code` VALUES (610925000000, '岚皋县', 3, 610900000000); -INSERT INTO `zz_area_code` VALUES (610926000000, '平利县', 3, 610900000000); -INSERT INTO `zz_area_code` VALUES (610927000000, '镇坪县', 3, 610900000000); -INSERT INTO `zz_area_code` VALUES (610928000000, '旬阳县', 3, 610900000000); -INSERT INTO `zz_area_code` VALUES (610929000000, '白河县', 3, 610900000000); -INSERT INTO `zz_area_code` VALUES (611000000000, '商洛市', 2, 610000000000); -INSERT INTO `zz_area_code` VALUES (611001000000, '市辖区', 3, 611000000000); -INSERT INTO `zz_area_code` VALUES (611002000000, '商州区', 3, 611000000000); -INSERT INTO `zz_area_code` VALUES (611021000000, '洛南县', 3, 611000000000); -INSERT INTO `zz_area_code` VALUES (611022000000, '丹凤县', 3, 611000000000); -INSERT INTO `zz_area_code` VALUES (611023000000, '商南县', 3, 611000000000); -INSERT INTO `zz_area_code` VALUES (611024000000, '山阳县', 3, 611000000000); -INSERT INTO `zz_area_code` VALUES (611025000000, '镇安县', 3, 611000000000); -INSERT INTO `zz_area_code` VALUES (611026000000, '柞水县', 3, 611000000000); -INSERT INTO `zz_area_code` VALUES (620000000000, '甘肃省', 1, NULL); -INSERT INTO `zz_area_code` VALUES (620100000000, '兰州市', 2, 620000000000); -INSERT INTO `zz_area_code` VALUES (620101000000, '市辖区', 3, 620100000000); -INSERT INTO `zz_area_code` VALUES (620102000000, '城关区', 3, 620100000000); -INSERT INTO `zz_area_code` VALUES (620103000000, '七里河区', 3, 620100000000); -INSERT INTO `zz_area_code` VALUES (620104000000, '西固区', 3, 620100000000); -INSERT INTO `zz_area_code` VALUES (620105000000, '安宁区', 3, 620100000000); -INSERT INTO `zz_area_code` VALUES (620111000000, '红古区', 3, 620100000000); -INSERT INTO `zz_area_code` VALUES (620121000000, '永登县', 3, 620100000000); -INSERT INTO `zz_area_code` VALUES (620122000000, '皋兰县', 3, 620100000000); -INSERT INTO `zz_area_code` VALUES (620123000000, '榆中县', 3, 620100000000); -INSERT INTO `zz_area_code` VALUES (620171000000, '兰州新区', 3, 620100000000); -INSERT INTO `zz_area_code` VALUES (620200000000, '嘉峪关市', 2, 620000000000); -INSERT INTO `zz_area_code` VALUES (620201000000, '市辖区', 3, 620200000000); -INSERT INTO `zz_area_code` VALUES (620300000000, '金昌市', 2, 620000000000); -INSERT INTO `zz_area_code` VALUES (620301000000, '市辖区', 3, 620300000000); -INSERT INTO `zz_area_code` VALUES (620302000000, '金川区', 3, 620300000000); -INSERT INTO `zz_area_code` VALUES (620321000000, '永昌县', 3, 620300000000); -INSERT INTO `zz_area_code` VALUES (620400000000, '白银市', 2, 620000000000); -INSERT INTO `zz_area_code` VALUES (620401000000, '市辖区', 3, 620400000000); -INSERT INTO `zz_area_code` VALUES (620402000000, '白银区', 3, 620400000000); -INSERT INTO `zz_area_code` VALUES (620403000000, '平川区', 3, 620400000000); -INSERT INTO `zz_area_code` VALUES (620421000000, '靖远县', 3, 620400000000); -INSERT INTO `zz_area_code` VALUES (620422000000, '会宁县', 3, 620400000000); -INSERT INTO `zz_area_code` VALUES (620423000000, '景泰县', 3, 620400000000); -INSERT INTO `zz_area_code` VALUES (620500000000, '天水市', 2, 620000000000); -INSERT INTO `zz_area_code` VALUES (620501000000, '市辖区', 3, 620500000000); -INSERT INTO `zz_area_code` VALUES (620502000000, '秦州区', 3, 620500000000); -INSERT INTO `zz_area_code` VALUES (620503000000, '麦积区', 3, 620500000000); -INSERT INTO `zz_area_code` VALUES (620521000000, '清水县', 3, 620500000000); -INSERT INTO `zz_area_code` VALUES (620522000000, '秦安县', 3, 620500000000); -INSERT INTO `zz_area_code` VALUES (620523000000, '甘谷县', 3, 620500000000); -INSERT INTO `zz_area_code` VALUES (620524000000, '武山县', 3, 620500000000); -INSERT INTO `zz_area_code` VALUES (620525000000, '张家川回族自治县', 3, 620500000000); -INSERT INTO `zz_area_code` VALUES (620600000000, '武威市', 2, 620000000000); -INSERT INTO `zz_area_code` VALUES (620601000000, '市辖区', 3, 620600000000); -INSERT INTO `zz_area_code` VALUES (620602000000, '凉州区', 3, 620600000000); -INSERT INTO `zz_area_code` VALUES (620621000000, '民勤县', 3, 620600000000); -INSERT INTO `zz_area_code` VALUES (620622000000, '古浪县', 3, 620600000000); -INSERT INTO `zz_area_code` VALUES (620623000000, '天祝藏族自治县', 3, 620600000000); -INSERT INTO `zz_area_code` VALUES (620700000000, '张掖市', 2, 620000000000); -INSERT INTO `zz_area_code` VALUES (620701000000, '市辖区', 3, 620700000000); -INSERT INTO `zz_area_code` VALUES (620702000000, '甘州区', 3, 620700000000); -INSERT INTO `zz_area_code` VALUES (620721000000, '肃南裕固族自治县', 3, 620700000000); -INSERT INTO `zz_area_code` VALUES (620722000000, '民乐县', 3, 620700000000); -INSERT INTO `zz_area_code` VALUES (620723000000, '临泽县', 3, 620700000000); -INSERT INTO `zz_area_code` VALUES (620724000000, '高台县', 3, 620700000000); -INSERT INTO `zz_area_code` VALUES (620725000000, '山丹县', 3, 620700000000); -INSERT INTO `zz_area_code` VALUES (620800000000, '平凉市', 2, 620000000000); -INSERT INTO `zz_area_code` VALUES (620801000000, '市辖区', 3, 620800000000); -INSERT INTO `zz_area_code` VALUES (620802000000, '崆峒区', 3, 620800000000); -INSERT INTO `zz_area_code` VALUES (620821000000, '泾川县', 3, 620800000000); -INSERT INTO `zz_area_code` VALUES (620822000000, '灵台县', 3, 620800000000); -INSERT INTO `zz_area_code` VALUES (620823000000, '崇信县', 3, 620800000000); -INSERT INTO `zz_area_code` VALUES (620825000000, '庄浪县', 3, 620800000000); -INSERT INTO `zz_area_code` VALUES (620826000000, '静宁县', 3, 620800000000); -INSERT INTO `zz_area_code` VALUES (620881000000, '华亭市', 3, 620800000000); -INSERT INTO `zz_area_code` VALUES (620900000000, '酒泉市', 2, 620000000000); -INSERT INTO `zz_area_code` VALUES (620901000000, '市辖区', 3, 620900000000); -INSERT INTO `zz_area_code` VALUES (620902000000, '肃州区', 3, 620900000000); -INSERT INTO `zz_area_code` VALUES (620921000000, '金塔县', 3, 620900000000); -INSERT INTO `zz_area_code` VALUES (620922000000, '瓜州县', 3, 620900000000); -INSERT INTO `zz_area_code` VALUES (620923000000, '肃北蒙古族自治县', 3, 620900000000); -INSERT INTO `zz_area_code` VALUES (620924000000, '阿克塞哈萨克族自治县', 3, 620900000000); -INSERT INTO `zz_area_code` VALUES (620981000000, '玉门市', 3, 620900000000); -INSERT INTO `zz_area_code` VALUES (620982000000, '敦煌市', 3, 620900000000); -INSERT INTO `zz_area_code` VALUES (621000000000, '庆阳市', 2, 620000000000); -INSERT INTO `zz_area_code` VALUES (621001000000, '市辖区', 3, 621000000000); -INSERT INTO `zz_area_code` VALUES (621002000000, '西峰区', 3, 621000000000); -INSERT INTO `zz_area_code` VALUES (621021000000, '庆城县', 3, 621000000000); -INSERT INTO `zz_area_code` VALUES (621022000000, '环县', 3, 621000000000); -INSERT INTO `zz_area_code` VALUES (621023000000, '华池县', 3, 621000000000); -INSERT INTO `zz_area_code` VALUES (621024000000, '合水县', 3, 621000000000); -INSERT INTO `zz_area_code` VALUES (621025000000, '正宁县', 3, 621000000000); -INSERT INTO `zz_area_code` VALUES (621026000000, '宁县', 3, 621000000000); -INSERT INTO `zz_area_code` VALUES (621027000000, '镇原县', 3, 621000000000); -INSERT INTO `zz_area_code` VALUES (621100000000, '定西市', 2, 620000000000); -INSERT INTO `zz_area_code` VALUES (621101000000, '市辖区', 3, 621100000000); -INSERT INTO `zz_area_code` VALUES (621102000000, '安定区', 3, 621100000000); -INSERT INTO `zz_area_code` VALUES (621121000000, '通渭县', 3, 621100000000); -INSERT INTO `zz_area_code` VALUES (621122000000, '陇西县', 3, 621100000000); -INSERT INTO `zz_area_code` VALUES (621123000000, '渭源县', 3, 621100000000); -INSERT INTO `zz_area_code` VALUES (621124000000, '临洮县', 3, 621100000000); -INSERT INTO `zz_area_code` VALUES (621125000000, '漳县', 3, 621100000000); -INSERT INTO `zz_area_code` VALUES (621126000000, '岷县', 3, 621100000000); -INSERT INTO `zz_area_code` VALUES (621200000000, '陇南市', 2, 620000000000); -INSERT INTO `zz_area_code` VALUES (621201000000, '市辖区', 3, 621200000000); -INSERT INTO `zz_area_code` VALUES (621202000000, '武都区', 3, 621200000000); -INSERT INTO `zz_area_code` VALUES (621221000000, '成县', 3, 621200000000); -INSERT INTO `zz_area_code` VALUES (621222000000, '文县', 3, 621200000000); -INSERT INTO `zz_area_code` VALUES (621223000000, '宕昌县', 3, 621200000000); -INSERT INTO `zz_area_code` VALUES (621224000000, '康县', 3, 621200000000); -INSERT INTO `zz_area_code` VALUES (621225000000, '西和县', 3, 621200000000); -INSERT INTO `zz_area_code` VALUES (621226000000, '礼县', 3, 621200000000); -INSERT INTO `zz_area_code` VALUES (621227000000, '徽县', 3, 621200000000); -INSERT INTO `zz_area_code` VALUES (621228000000, '两当县', 3, 621200000000); -INSERT INTO `zz_area_code` VALUES (622900000000, '临夏回族自治州', 2, 620000000000); -INSERT INTO `zz_area_code` VALUES (622901000000, '临夏市', 3, 622900000000); -INSERT INTO `zz_area_code` VALUES (622921000000, '临夏县', 3, 622900000000); -INSERT INTO `zz_area_code` VALUES (622922000000, '康乐县', 3, 622900000000); -INSERT INTO `zz_area_code` VALUES (622923000000, '永靖县', 3, 622900000000); -INSERT INTO `zz_area_code` VALUES (622924000000, '广河县', 3, 622900000000); -INSERT INTO `zz_area_code` VALUES (622925000000, '和政县', 3, 622900000000); -INSERT INTO `zz_area_code` VALUES (622926000000, '东乡族自治县', 3, 622900000000); -INSERT INTO `zz_area_code` VALUES (622927000000, '积石山保安族东乡族撒拉族自治县', 3, 622900000000); -INSERT INTO `zz_area_code` VALUES (623000000000, '甘南藏族自治州', 2, 620000000000); -INSERT INTO `zz_area_code` VALUES (623001000000, '合作市', 3, 623000000000); -INSERT INTO `zz_area_code` VALUES (623021000000, '临潭县', 3, 623000000000); -INSERT INTO `zz_area_code` VALUES (623022000000, '卓尼县', 3, 623000000000); -INSERT INTO `zz_area_code` VALUES (623023000000, '舟曲县', 3, 623000000000); -INSERT INTO `zz_area_code` VALUES (623024000000, '迭部县', 3, 623000000000); -INSERT INTO `zz_area_code` VALUES (623025000000, '玛曲县', 3, 623000000000); -INSERT INTO `zz_area_code` VALUES (623026000000, '碌曲县', 3, 623000000000); -INSERT INTO `zz_area_code` VALUES (623027000000, '夏河县', 3, 623000000000); -INSERT INTO `zz_area_code` VALUES (630000000000, '青海省', 1, NULL); -INSERT INTO `zz_area_code` VALUES (630100000000, '西宁市', 2, 630000000000); -INSERT INTO `zz_area_code` VALUES (630101000000, '市辖区', 3, 630100000000); -INSERT INTO `zz_area_code` VALUES (630102000000, '城东区', 3, 630100000000); -INSERT INTO `zz_area_code` VALUES (630103000000, '城中区', 3, 630100000000); -INSERT INTO `zz_area_code` VALUES (630104000000, '城西区', 3, 630100000000); -INSERT INTO `zz_area_code` VALUES (630105000000, '城北区', 3, 630100000000); -INSERT INTO `zz_area_code` VALUES (630121000000, '大通回族土族自治县', 3, 630100000000); -INSERT INTO `zz_area_code` VALUES (630122000000, '湟中县', 3, 630100000000); -INSERT INTO `zz_area_code` VALUES (630123000000, '湟源县', 3, 630100000000); -INSERT INTO `zz_area_code` VALUES (630200000000, '海东市', 2, 630000000000); -INSERT INTO `zz_area_code` VALUES (630202000000, '乐都区', 3, 630200000000); -INSERT INTO `zz_area_code` VALUES (630203000000, '平安区', 3, 630200000000); -INSERT INTO `zz_area_code` VALUES (630222000000, '民和回族土族自治县', 3, 630200000000); -INSERT INTO `zz_area_code` VALUES (630223000000, '互助土族自治县', 3, 630200000000); -INSERT INTO `zz_area_code` VALUES (630224000000, '化隆回族自治县', 3, 630200000000); -INSERT INTO `zz_area_code` VALUES (630225000000, '循化撒拉族自治县', 3, 630200000000); -INSERT INTO `zz_area_code` VALUES (632200000000, '海北藏族自治州', 2, 630000000000); -INSERT INTO `zz_area_code` VALUES (632221000000, '门源回族自治县', 3, 632200000000); -INSERT INTO `zz_area_code` VALUES (632222000000, '祁连县', 3, 632200000000); -INSERT INTO `zz_area_code` VALUES (632223000000, '海晏县', 3, 632200000000); -INSERT INTO `zz_area_code` VALUES (632224000000, '刚察县', 3, 632200000000); -INSERT INTO `zz_area_code` VALUES (632300000000, '黄南藏族自治州', 2, 630000000000); -INSERT INTO `zz_area_code` VALUES (632321000000, '同仁县', 3, 632300000000); -INSERT INTO `zz_area_code` VALUES (632322000000, '尖扎县', 3, 632300000000); -INSERT INTO `zz_area_code` VALUES (632323000000, '泽库县', 3, 632300000000); -INSERT INTO `zz_area_code` VALUES (632324000000, '河南蒙古族自治县', 3, 632300000000); -INSERT INTO `zz_area_code` VALUES (632500000000, '海南藏族自治州', 2, 630000000000); -INSERT INTO `zz_area_code` VALUES (632521000000, '共和县', 3, 632500000000); -INSERT INTO `zz_area_code` VALUES (632522000000, '同德县', 3, 632500000000); -INSERT INTO `zz_area_code` VALUES (632523000000, '贵德县', 3, 632500000000); -INSERT INTO `zz_area_code` VALUES (632524000000, '兴海县', 3, 632500000000); -INSERT INTO `zz_area_code` VALUES (632525000000, '贵南县', 3, 632500000000); -INSERT INTO `zz_area_code` VALUES (632600000000, '果洛藏族自治州', 2, 630000000000); -INSERT INTO `zz_area_code` VALUES (632621000000, '玛沁县', 3, 632600000000); -INSERT INTO `zz_area_code` VALUES (632622000000, '班玛县', 3, 632600000000); -INSERT INTO `zz_area_code` VALUES (632623000000, '甘德县', 3, 632600000000); -INSERT INTO `zz_area_code` VALUES (632624000000, '达日县', 3, 632600000000); -INSERT INTO `zz_area_code` VALUES (632625000000, '久治县', 3, 632600000000); -INSERT INTO `zz_area_code` VALUES (632626000000, '玛多县', 3, 632600000000); -INSERT INTO `zz_area_code` VALUES (632700000000, '玉树藏族自治州', 2, 630000000000); -INSERT INTO `zz_area_code` VALUES (632701000000, '玉树市', 3, 632700000000); -INSERT INTO `zz_area_code` VALUES (632722000000, '杂多县', 3, 632700000000); -INSERT INTO `zz_area_code` VALUES (632723000000, '称多县', 3, 632700000000); -INSERT INTO `zz_area_code` VALUES (632724000000, '治多县', 3, 632700000000); -INSERT INTO `zz_area_code` VALUES (632725000000, '囊谦县', 3, 632700000000); -INSERT INTO `zz_area_code` VALUES (632726000000, '曲麻莱县', 3, 632700000000); -INSERT INTO `zz_area_code` VALUES (632800000000, '海西蒙古族藏族自治州', 2, 630000000000); -INSERT INTO `zz_area_code` VALUES (632801000000, '格尔木市', 3, 632800000000); -INSERT INTO `zz_area_code` VALUES (632802000000, '德令哈市', 3, 632800000000); -INSERT INTO `zz_area_code` VALUES (632803000000, '茫崖市', 3, 632800000000); -INSERT INTO `zz_area_code` VALUES (632821000000, '乌兰县', 3, 632800000000); -INSERT INTO `zz_area_code` VALUES (632822000000, '都兰县', 3, 632800000000); -INSERT INTO `zz_area_code` VALUES (632823000000, '天峻县', 3, 632800000000); -INSERT INTO `zz_area_code` VALUES (632857000000, '大柴旦行政委员会', 3, 632800000000); -INSERT INTO `zz_area_code` VALUES (640000000000, '宁夏回族自治区', 1, NULL); -INSERT INTO `zz_area_code` VALUES (640100000000, '银川市', 2, 640000000000); -INSERT INTO `zz_area_code` VALUES (640101000000, '市辖区', 3, 640100000000); -INSERT INTO `zz_area_code` VALUES (640104000000, '兴庆区', 3, 640100000000); -INSERT INTO `zz_area_code` VALUES (640105000000, '西夏区', 3, 640100000000); -INSERT INTO `zz_area_code` VALUES (640106000000, '金凤区', 3, 640100000000); -INSERT INTO `zz_area_code` VALUES (640121000000, '永宁县', 3, 640100000000); -INSERT INTO `zz_area_code` VALUES (640122000000, '贺兰县', 3, 640100000000); -INSERT INTO `zz_area_code` VALUES (640181000000, '灵武市', 3, 640100000000); -INSERT INTO `zz_area_code` VALUES (640200000000, '石嘴山市', 2, 640000000000); -INSERT INTO `zz_area_code` VALUES (640201000000, '市辖区', 3, 640200000000); -INSERT INTO `zz_area_code` VALUES (640202000000, '大武口区', 3, 640200000000); -INSERT INTO `zz_area_code` VALUES (640205000000, '惠农区', 3, 640200000000); -INSERT INTO `zz_area_code` VALUES (640221000000, '平罗县', 3, 640200000000); -INSERT INTO `zz_area_code` VALUES (640300000000, '吴忠市', 2, 640000000000); -INSERT INTO `zz_area_code` VALUES (640301000000, '市辖区', 3, 640300000000); -INSERT INTO `zz_area_code` VALUES (640302000000, '利通区', 3, 640300000000); -INSERT INTO `zz_area_code` VALUES (640303000000, '红寺堡区', 3, 640300000000); -INSERT INTO `zz_area_code` VALUES (640323000000, '盐池县', 3, 640300000000); -INSERT INTO `zz_area_code` VALUES (640324000000, '同心县', 3, 640300000000); -INSERT INTO `zz_area_code` VALUES (640381000000, '青铜峡市', 3, 640300000000); -INSERT INTO `zz_area_code` VALUES (640400000000, '固原市', 2, 640000000000); -INSERT INTO `zz_area_code` VALUES (640401000000, '市辖区', 3, 640400000000); -INSERT INTO `zz_area_code` VALUES (640402000000, '原州区', 3, 640400000000); -INSERT INTO `zz_area_code` VALUES (640422000000, '西吉县', 3, 640400000000); -INSERT INTO `zz_area_code` VALUES (640423000000, '隆德县', 3, 640400000000); -INSERT INTO `zz_area_code` VALUES (640424000000, '泾源县', 3, 640400000000); -INSERT INTO `zz_area_code` VALUES (640425000000, '彭阳县', 3, 640400000000); -INSERT INTO `zz_area_code` VALUES (640500000000, '中卫市', 2, 640000000000); -INSERT INTO `zz_area_code` VALUES (640501000000, '市辖区', 3, 640500000000); -INSERT INTO `zz_area_code` VALUES (640502000000, '沙坡头区', 3, 640500000000); -INSERT INTO `zz_area_code` VALUES (640521000000, '中宁县', 3, 640500000000); -INSERT INTO `zz_area_code` VALUES (640522000000, '海原县', 3, 640500000000); -INSERT INTO `zz_area_code` VALUES (650000000000, '新疆维吾尔自治区', 1, NULL); -INSERT INTO `zz_area_code` VALUES (650100000000, '乌鲁木齐市', 2, 650000000000); -INSERT INTO `zz_area_code` VALUES (650101000000, '市辖区', 3, 650100000000); -INSERT INTO `zz_area_code` VALUES (650102000000, '天山区', 3, 650100000000); -INSERT INTO `zz_area_code` VALUES (650103000000, '沙依巴克区', 3, 650100000000); -INSERT INTO `zz_area_code` VALUES (650104000000, '新市区', 3, 650100000000); -INSERT INTO `zz_area_code` VALUES (650105000000, '水磨沟区', 3, 650100000000); -INSERT INTO `zz_area_code` VALUES (650106000000, '头屯河区', 3, 650100000000); -INSERT INTO `zz_area_code` VALUES (650107000000, '达坂城区', 3, 650100000000); -INSERT INTO `zz_area_code` VALUES (650109000000, '米东区', 3, 650100000000); -INSERT INTO `zz_area_code` VALUES (650121000000, '乌鲁木齐县', 3, 650100000000); -INSERT INTO `zz_area_code` VALUES (650171000000, '乌鲁木齐经济技术开发区', 3, 650100000000); -INSERT INTO `zz_area_code` VALUES (650172000000, '乌鲁木齐高新技术产业开发区', 3, 650100000000); -INSERT INTO `zz_area_code` VALUES (650200000000, '克拉玛依市', 2, 650000000000); -INSERT INTO `zz_area_code` VALUES (650201000000, '市辖区', 3, 650200000000); -INSERT INTO `zz_area_code` VALUES (650202000000, '独山子区', 3, 650200000000); -INSERT INTO `zz_area_code` VALUES (650203000000, '克拉玛依区', 3, 650200000000); -INSERT INTO `zz_area_code` VALUES (650204000000, '白碱滩区', 3, 650200000000); -INSERT INTO `zz_area_code` VALUES (650205000000, '乌尔禾区', 3, 650200000000); -INSERT INTO `zz_area_code` VALUES (650400000000, '吐鲁番市', 2, 650000000000); -INSERT INTO `zz_area_code` VALUES (650402000000, '高昌区', 3, 650400000000); -INSERT INTO `zz_area_code` VALUES (650421000000, '鄯善县', 3, 650400000000); -INSERT INTO `zz_area_code` VALUES (650422000000, '托克逊县', 3, 650400000000); -INSERT INTO `zz_area_code` VALUES (650500000000, '哈密市', 2, 650000000000); -INSERT INTO `zz_area_code` VALUES (650502000000, '伊州区', 3, 650500000000); -INSERT INTO `zz_area_code` VALUES (650521000000, '巴里坤哈萨克自治县', 3, 650500000000); -INSERT INTO `zz_area_code` VALUES (650522000000, '伊吾县', 3, 650500000000); -INSERT INTO `zz_area_code` VALUES (652300000000, '昌吉回族自治州', 2, 650000000000); -INSERT INTO `zz_area_code` VALUES (652301000000, '昌吉市', 3, 652300000000); -INSERT INTO `zz_area_code` VALUES (652302000000, '阜康市', 3, 652300000000); -INSERT INTO `zz_area_code` VALUES (652323000000, '呼图壁县', 3, 652300000000); -INSERT INTO `zz_area_code` VALUES (652324000000, '玛纳斯县', 3, 652300000000); -INSERT INTO `zz_area_code` VALUES (652325000000, '奇台县', 3, 652300000000); -INSERT INTO `zz_area_code` VALUES (652327000000, '吉木萨尔县', 3, 652300000000); -INSERT INTO `zz_area_code` VALUES (652328000000, '木垒哈萨克自治县', 3, 652300000000); -INSERT INTO `zz_area_code` VALUES (652700000000, '博尔塔拉蒙古自治州', 2, 650000000000); -INSERT INTO `zz_area_code` VALUES (652701000000, '博乐市', 3, 652700000000); -INSERT INTO `zz_area_code` VALUES (652702000000, '阿拉山口市', 3, 652700000000); -INSERT INTO `zz_area_code` VALUES (652722000000, '精河县', 3, 652700000000); -INSERT INTO `zz_area_code` VALUES (652723000000, '温泉县', 3, 652700000000); -INSERT INTO `zz_area_code` VALUES (652800000000, '巴音郭楞蒙古自治州', 2, 650000000000); -INSERT INTO `zz_area_code` VALUES (652801000000, '库尔勒市', 3, 652800000000); -INSERT INTO `zz_area_code` VALUES (652822000000, '轮台县', 3, 652800000000); -INSERT INTO `zz_area_code` VALUES (652823000000, '尉犁县', 3, 652800000000); -INSERT INTO `zz_area_code` VALUES (652824000000, '若羌县', 3, 652800000000); -INSERT INTO `zz_area_code` VALUES (652825000000, '且末县', 3, 652800000000); -INSERT INTO `zz_area_code` VALUES (652826000000, '焉耆回族自治县', 3, 652800000000); -INSERT INTO `zz_area_code` VALUES (652827000000, '和静县', 3, 652800000000); -INSERT INTO `zz_area_code` VALUES (652828000000, '和硕县', 3, 652800000000); -INSERT INTO `zz_area_code` VALUES (652829000000, '博湖县', 3, 652800000000); -INSERT INTO `zz_area_code` VALUES (652871000000, '库尔勒经济技术开发区', 3, 652800000000); -INSERT INTO `zz_area_code` VALUES (652900000000, '阿克苏地区', 2, 650000000000); -INSERT INTO `zz_area_code` VALUES (652901000000, '阿克苏市', 3, 652900000000); -INSERT INTO `zz_area_code` VALUES (652922000000, '温宿县', 3, 652900000000); -INSERT INTO `zz_area_code` VALUES (652923000000, '库车县', 3, 652900000000); -INSERT INTO `zz_area_code` VALUES (652924000000, '沙雅县', 3, 652900000000); -INSERT INTO `zz_area_code` VALUES (652925000000, '新和县', 3, 652900000000); -INSERT INTO `zz_area_code` VALUES (652926000000, '拜城县', 3, 652900000000); -INSERT INTO `zz_area_code` VALUES (652927000000, '乌什县', 3, 652900000000); -INSERT INTO `zz_area_code` VALUES (652928000000, '阿瓦提县', 3, 652900000000); -INSERT INTO `zz_area_code` VALUES (652929000000, '柯坪县', 3, 652900000000); -INSERT INTO `zz_area_code` VALUES (653000000000, '克孜勒苏柯尔克孜自治州', 2, 650000000000); -INSERT INTO `zz_area_code` VALUES (653001000000, '阿图什市', 3, 653000000000); -INSERT INTO `zz_area_code` VALUES (653022000000, '阿克陶县', 3, 653000000000); -INSERT INTO `zz_area_code` VALUES (653023000000, '阿合奇县', 3, 653000000000); -INSERT INTO `zz_area_code` VALUES (653024000000, '乌恰县', 3, 653000000000); -INSERT INTO `zz_area_code` VALUES (653100000000, '喀什地区', 2, 650000000000); -INSERT INTO `zz_area_code` VALUES (653101000000, '喀什市', 3, 653100000000); -INSERT INTO `zz_area_code` VALUES (653121000000, '疏附县', 3, 653100000000); -INSERT INTO `zz_area_code` VALUES (653122000000, '疏勒县', 3, 653100000000); -INSERT INTO `zz_area_code` VALUES (653123000000, '英吉沙县', 3, 653100000000); -INSERT INTO `zz_area_code` VALUES (653124000000, '泽普县', 3, 653100000000); -INSERT INTO `zz_area_code` VALUES (653125000000, '莎车县', 3, 653100000000); -INSERT INTO `zz_area_code` VALUES (653126000000, '叶城县', 3, 653100000000); -INSERT INTO `zz_area_code` VALUES (653127000000, '麦盖提县', 3, 653100000000); -INSERT INTO `zz_area_code` VALUES (653128000000, '岳普湖县', 3, 653100000000); -INSERT INTO `zz_area_code` VALUES (653129000000, '伽师县', 3, 653100000000); -INSERT INTO `zz_area_code` VALUES (653130000000, '巴楚县', 3, 653100000000); -INSERT INTO `zz_area_code` VALUES (653131000000, '塔什库尔干塔吉克自治县', 3, 653100000000); -INSERT INTO `zz_area_code` VALUES (653200000000, '和田地区', 2, 650000000000); -INSERT INTO `zz_area_code` VALUES (653201000000, '和田市', 3, 653200000000); -INSERT INTO `zz_area_code` VALUES (653221000000, '和田县', 3, 653200000000); -INSERT INTO `zz_area_code` VALUES (653222000000, '墨玉县', 3, 653200000000); -INSERT INTO `zz_area_code` VALUES (653223000000, '皮山县', 3, 653200000000); -INSERT INTO `zz_area_code` VALUES (653224000000, '洛浦县', 3, 653200000000); -INSERT INTO `zz_area_code` VALUES (653225000000, '策勒县', 3, 653200000000); -INSERT INTO `zz_area_code` VALUES (653226000000, '于田县', 3, 653200000000); -INSERT INTO `zz_area_code` VALUES (653227000000, '民丰县', 3, 653200000000); -INSERT INTO `zz_area_code` VALUES (654000000000, '伊犁哈萨克自治州', 2, 650000000000); -INSERT INTO `zz_area_code` VALUES (654002000000, '伊宁市', 3, 654000000000); -INSERT INTO `zz_area_code` VALUES (654003000000, '奎屯市', 3, 654000000000); -INSERT INTO `zz_area_code` VALUES (654004000000, '霍尔果斯市', 3, 654000000000); -INSERT INTO `zz_area_code` VALUES (654021000000, '伊宁县', 3, 654000000000); -INSERT INTO `zz_area_code` VALUES (654022000000, '察布查尔锡伯自治县', 3, 654000000000); -INSERT INTO `zz_area_code` VALUES (654023000000, '霍城县', 3, 654000000000); -INSERT INTO `zz_area_code` VALUES (654024000000, '巩留县', 3, 654000000000); -INSERT INTO `zz_area_code` VALUES (654025000000, '新源县', 3, 654000000000); -INSERT INTO `zz_area_code` VALUES (654026000000, '昭苏县', 3, 654000000000); -INSERT INTO `zz_area_code` VALUES (654027000000, '特克斯县', 3, 654000000000); -INSERT INTO `zz_area_code` VALUES (654028000000, '尼勒克县', 3, 654000000000); -INSERT INTO `zz_area_code` VALUES (654200000000, '塔城地区', 2, 650000000000); -INSERT INTO `zz_area_code` VALUES (654201000000, '塔城市', 3, 654200000000); -INSERT INTO `zz_area_code` VALUES (654202000000, '乌苏市', 3, 654200000000); -INSERT INTO `zz_area_code` VALUES (654221000000, '额敏县', 3, 654200000000); -INSERT INTO `zz_area_code` VALUES (654223000000, '沙湾县', 3, 654200000000); -INSERT INTO `zz_area_code` VALUES (654224000000, '托里县', 3, 654200000000); -INSERT INTO `zz_area_code` VALUES (654225000000, '裕民县', 3, 654200000000); -INSERT INTO `zz_area_code` VALUES (654226000000, '和布克赛尔蒙古自治县', 3, 654200000000); -INSERT INTO `zz_area_code` VALUES (654300000000, '阿勒泰地区', 2, 650000000000); -INSERT INTO `zz_area_code` VALUES (654301000000, '阿勒泰市', 3, 654300000000); -INSERT INTO `zz_area_code` VALUES (654321000000, '布尔津县', 3, 654300000000); -INSERT INTO `zz_area_code` VALUES (654322000000, '富蕴县', 3, 654300000000); -INSERT INTO `zz_area_code` VALUES (654323000000, '福海县', 3, 654300000000); -INSERT INTO `zz_area_code` VALUES (654324000000, '哈巴河县', 3, 654300000000); -INSERT INTO `zz_area_code` VALUES (654325000000, '青河县', 3, 654300000000); -INSERT INTO `zz_area_code` VALUES (654326000000, '吉木乃县', 3, 654300000000); -INSERT INTO `zz_area_code` VALUES (659000000000, '自治区直辖县级行政区划', 2, 650000000000); -INSERT INTO `zz_area_code` VALUES (659001000000, '石河子市', 3, 659000000000); -INSERT INTO `zz_area_code` VALUES (659002000000, '阿拉尔市', 3, 659000000000); -INSERT INTO `zz_area_code` VALUES (659003000000, '图木舒克市', 3, 659000000000); -INSERT INTO `zz_area_code` VALUES (659004000000, '五家渠市', 3, 659000000000); -INSERT INTO `zz_area_code` VALUES (659006000000, '铁门关市', 3, 659000000000); -COMMIT; - --- ---------------------------- --- Table structure for zz_flow_category --- ---------------------------- -DROP TABLE IF EXISTS `zz_flow_category`; -CREATE TABLE `zz_flow_category` ( - `category_id` bigint NOT NULL COMMENT '主键Id', - `name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '显示名称', - `code` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '分类编码', - `show_order` int NOT NULL COMMENT '实现顺序', - `update_time` datetime NOT NULL COMMENT '更新时间', - `update_user_id` bigint NOT NULL COMMENT '更新者Id', - `create_time` datetime NOT NULL COMMENT '创建时间', - `create_user_id` bigint NOT NULL COMMENT '创建者Id', - PRIMARY KEY (`category_id`) USING BTREE, - UNIQUE KEY `idx_code` (`code`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; - --- ---------------------------- --- Records of zz_flow_category --- ---------------------------- -BEGIN; -INSERT INTO `zz_flow_category` VALUES (1450708275736612864, '人事管理', 'HR', 1, '2021-10-20 14:19:40', 1440911410581213417, '2021-10-20 14:19:40', 1440911410581213417); -INSERT INTO `zz_flow_category` VALUES (1450708314923995136, '财务管理', 'CW', 2, '2021-10-20 14:19:50', 1440911410581213417, '2021-10-20 14:19:50', 1440911410581213417); -INSERT INTO `zz_flow_category` VALUES (1450709110466023424, '项目管理', 'XM', 3, '2021-10-20 14:22:59', 1440911410581213417, '2021-10-20 14:22:59', 1440911410581213417); -COMMIT; - --- ---------------------------- --- Table structure for zz_flow_entry --- ---------------------------- -DROP TABLE IF EXISTS `zz_flow_entry`; -CREATE TABLE `zz_flow_entry` ( - `entry_id` bigint NOT NULL COMMENT '主键', - `process_definition_name` varchar(200) NOT NULL COMMENT '流程名称', - `process_definition_key` varchar(150) NOT NULL COMMENT '流程标识Key', - `category_id` bigint NOT NULL COMMENT '流程分类', - `main_entry_publish_id` bigint DEFAULT NULL COMMENT '工作流部署的发布主版本Id', - `lastest_publish_time` datetime DEFAULT NULL COMMENT '最新发布时间', - `status` int NOT NULL COMMENT '流程状态', - `bpmn_xml` longtext COMMENT '流程定义的xml', - `bind_form_type` int NOT NULL COMMENT '绑定表单类型', - `page_id` bigint DEFAULT NULL COMMENT '在线表单的页面Id', - `default_form_id` bigint DEFAULT NULL COMMENT '在线表单Id', - `default_router_name` varchar(255) DEFAULT NULL COMMENT '静态表单的缺省路由名称', - `update_time` datetime NOT NULL COMMENT '更新时间', - `update_user_id` bigint NOT NULL COMMENT '更新者Id', - `create_time` datetime NOT NULL COMMENT '创建时间', - `create_user_id` bigint NOT NULL COMMENT '创建者Id', - PRIMARY KEY (`entry_id`) USING BTREE, - UNIQUE KEY `idx_process_definition_key` (`process_definition_key`) USING BTREE, - KEY `idx_category_id` (`category_id`) USING BTREE, - KEY `idx_status` (`status`) USING BTREE, - KEY `idx_process_definition_name` (`process_definition_name`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; - --- ---------------------------- --- Records of zz_flow_entry --- ---------------------------- -BEGIN; -INSERT INTO `zz_flow_entry` VALUES (1450709265869180928, '请假申请', 'flowLeave', 1450708275736612864, 1476751296529698816, '2021-12-31 11:05:20', 1, '\n\n \n \n Flow_0y4m3kv\n \n \n \n \n \n \n \n \n Flow_0y4m3kv\n Flow_16zyoa5\n Flow_1aekms8\n Flow_07op209\n \n \n \n \n \n \n \n \n \n \n Flow_07op209\n Flow_16zyoa5\n Flow_0ll74an\n \n \n \n \n \n \n \n \n \n \n \n \n \n Flow_0ll74an\n Flow_0m27fde\n Flow_1aekms8\n \n \n Flow_0m27fde\n \n \n \n \n \n ${operationType == \'agree\'}\n \n \n \n \n \n ${operationType == \'refuse\'}\n \n \n \n \n \n ${operationType == \'agree\'}\n \n \n \n \n \n ${operationType == \'refuse\'}\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n', 0, 1440945149889744896, 1440945411354267648, NULL, '2021-12-31 11:05:17', 1440911410581213417, '2021-10-20 14:23:37', 1440911410581213417); -INSERT INTO `zz_flow_entry` VALUES (1450710743367290880, '报销申请', 'flowSubmit', 1450708314923995136, 1476751372228497408, '2021-12-31 11:05:39', 1, '\n\n \n \n Flow_0mrmqbk\n \n \n \n \n \n \n \n \n Flow_0mrmqbk\n Flow_1oiq58r\n Flow_098s8i0\n Flow_0p9g72i\n \n \n \n \n \n \n \n \n \n \n \n \n Flow_0p9g72i\n Flow_0iyukwr\n Flow_098s8i0\n \n \n \n Flow_0iyukwr\n Flow_0jfre1k\n Flow_13ede7b\n \n \n \n \n \n ${operationType == \'agree\'}\n \n \n Flow_0jfre1k\n Flow_15v3jkj\n \n \n ${totalAmount <= 1000}\n \n \n \n \n \n \n \n \n \n \n Flow_13ede7b\n Flow_15v3jkj\n Flow_1oiq58r\n \n \n ${totalAmount > 1000}\n \n \n \n \n \n ${operationType == \'agree\'}\n \n \n \n \n \n ${operationType == \'refuse\'}\n \n \n \n \n \n ${operationType == \'refuse\'}\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n', 0, 1440946020174270464, 1440947675041107968, NULL, '2021-12-31 11:05:29', 1440911410581213417, '2021-10-20 14:29:29', 1440911410581213417); -INSERT INTO `zz_flow_entry` VALUES (1450713749735346176, '合同审批', 'flowContract', 1450709110466023424, 1476751439387693056, '2021-12-31 11:05:55', 1, '\n\n \n \n Flow_0emx40z\n \n \n \n \n \n \n \n \n Flow_0emx40z\n Flow_0j0gy2t\n Flow_1eildzp\n Flow_0c2du6p\n Flow_0dwf9yt\n \n \n \n \n \n \n \n \n \n \n Flow_0dwf9yt\n Flow_0v5zj3k\n \n \n \n \n Flow_0v5zj3k\n Flow_1d5uhco\n Flow_1qh9cp0\n \n \n \n \n \n \n \n \n Flow_1d5uhco\n Flow_10hf9y5\n \n \n \n \n \n \n \n \n \n \n Flow_1qh9cp0\n Flow_1n5cxfg\n \n \n \n \n Flow_1n5cxfg\n Flow_10hf9y5\n Flow_0vt5gor\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n Flow_0vt5gor\n Flow_0itfdb5\n Flow_0j0gy2t\n \n \n \n \n \n \n \n \n \n \n \n \n \n Flow_0itfdb5\n Flow_0yv4ubp\n \n \n \n \n \n ${operationType == \'agree\'}\n \n \n \n \n \n \n \n \n \n Flow_0yv4ubp\n Flow_0iiydip\n \n ${nrOfInstances == nrOfCompletedInstances}\n \n \n \n \n Flow_0iiydip\n Flow_08e585j\n Flow_1eildzp\n \n \n \n \n \n \n \n \n \n \n \n Flow_08e585j\n Flow_1inwhde\n Flow_0c2du6p\n \n \n ${multiAgreeCount / multiNumOfInstances > 0.4}\n \n \n Flow_1inwhde\n \n \n \n \n \n ${operationType == \'agree\'}\n \n \n \n \n \n ${operationType == \'refuse\'}\n \n \n ${multiAgreeCount / multiNumOfInstances <= 0.4}\n \n \n \n \n \n ${operationType == \'refuse\'}\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n', 0, 1440952710487609344, 1440954920348946432, NULL, '2021-12-31 11:05:48', 1440911410581213417, '2021-10-20 14:41:26', 1440911410581213417); -INSERT INTO `zz_flow_entry` VALUES (1450719191500853248, '多实例加签', 'flowConsign', 1450708275736612864, 1476751492051374080, '2021-12-31 11:06:07', 1, '\n\n \n \n Flow_05ignna\n \n \n \n \n \n \n \n \n \n Flow_05ignna\n Flow_1pv2azt\n Flow_18zl7i9\n \n \n \n \n \n \n \n \n \n \n Flow_18zl7i9\n Flow_132a1we\n \n ${nrOfInstances == nrOfCompletedInstances}\n \n \n \n \n \n \n \n \n \n \n \n Flow_132a1we\n Flow_1w48me1\n Flow_1pv2azt\n \n \n \n Flow_1w48me1\n \n \n \n \n \n ${operationType == \'agree\'}\n \n \n \n \n \n ${operationType == \'refuse\'}\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n', 0, 1440945149889744896, 1440945411354267648, NULL, '2021-12-31 11:06:03', 1440911410581213417, '2021-10-20 15:03:03', 1440911410581213417); -INSERT INTO `zz_flow_entry` VALUES (1450722174842179584, '转办流程', 'flowTranslate', 1450708275736612864, 1476751545591664640, '2021-12-31 11:06:20', 1, '\n\n \n \n Flow_1unv52j\n \n \n \n \n \n \n \n \n Flow_1unv52j\n Flow_1y2ih5h\n \n \n \n \n \n \n \n \n \n \n Flow_1y2ih5h\n Flow_00oaz6j\n \n \n \n Flow_00oaz6j\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n', 0, 1440945149889744896, 1440945411354267648, NULL, '2021-12-31 11:06:16', 1440911410581213417, '2021-10-20 15:14:54', 1440911410581213417); -COMMIT; - --- ---------------------------- --- Table structure for zz_flow_entry_publish --- ---------------------------- -DROP TABLE IF EXISTS `zz_flow_entry_publish`; -CREATE TABLE `zz_flow_entry_publish` ( - `entry_publish_id` bigint NOT NULL COMMENT '主键Id', - `entry_id` bigint NOT NULL COMMENT '流程Id', - `process_definition_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '流程引擎的定义Id', - `deploy_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '流程引擎的部署Id', - `publish_version` int NOT NULL COMMENT '发布版本', - `active_status` bit(1) NOT NULL COMMENT '激活状态', - `main_version` bit(1) NOT NULL COMMENT '是否为主版本', - `create_user_id` bigint NOT NULL COMMENT '创建者Id', - `publish_time` datetime NOT NULL COMMENT '发布时间', - `init_task_info` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci COMMENT '第一个非开始节点任务的附加信息', - PRIMARY KEY (`entry_publish_id`) USING BTREE, - UNIQUE KEY `idx_process_definition_id` (`process_definition_id`) USING BTREE, - KEY `idx_entry_id` (`entry_id`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; - --- ---------------------------- --- Records of zz_flow_entry_publish --- ---------------------------- -BEGIN; -INSERT INTO `zz_flow_entry_publish` VALUES (1450722631203426304, 1450709265869180928, 'flowLeave:1:ad52c51a-3175-11ec-9438-f20b812c0662', 'ad3d6858-3175-11ec-9438-f20b812c0662', 1, b'1', b'0', 1440911410581213417, '2021-10-20 15:16:43', '{\"assignee\":\"${startUserName}\",\"formId\":1440945411354267648,\"groupType\":\"DEPT\",\"operationList\":[{\"showOrder\":\"0\",\"id\":\"1634711122925\",\"label\":\"提交\",\"type\":\"agree\"}],\"readOnly\":false,\"taskKey\":\"Activity_1tb8jka\",\"taskType\":1}'); -INSERT INTO `zz_flow_entry_publish` VALUES (1450722639659143168, 1450710743367290880, 'flowSubmit:1:ae87c2ad-3175-11ec-9438-f20b812c0662', 'ae82b99b-3175-11ec-9438-f20b812c0662', 1, b'1', b'0', 1440911410581213417, '2021-10-20 15:16:45', '{\"assignee\":\"${startUserName}\",\"formId\":1440947675041107968,\"groupType\":\"DEPT\",\"operationList\":[{\"showOrder\":\"0\",\"id\":\"1634711803796\",\"label\":\"提交\",\"type\":\"agree\"}],\"readOnly\":false,\"taskKey\":\"Activity_1cs4bi5\",\"taskType\":1}'); -INSERT INTO `zz_flow_entry_publish` VALUES (1450722647485714432, 1450713749735346176, 'flowContract:1:afa45640-3175-11ec-9438-f20b812c0662', 'af9bf1ce-3175-11ec-9438-f20b812c0662', 1, b'1', b'0', 1440911410581213417, '2021-10-20 15:16:47', '{\"assignee\":\"${startUserName}\",\"formId\":1440954920348946432,\"groupType\":\"DEPT\",\"operationList\":[{\"showOrder\":\"0\",\"id\":\"1634712553498\",\"label\":\"提交\",\"type\":\"agree\"}],\"readOnly\":false,\"taskKey\":\"Activity_0bciohf\",\"taskType\":1}'); -INSERT INTO `zz_flow_entry_publish` VALUES (1450722658558676992, 1450719191500853248, 'flowConsign:1:b1375253-3175-11ec-9438-f20b812c0662', 'b132e581-3175-11ec-9438-f20b812c0662', 1, b'1', b'0', 1440911410581213417, '2021-10-20 15:16:50', '{\"assignee\":\"${startUserName}\",\"formId\":1440945411354267648,\"groupType\":\"DEPT\",\"operationList\":[{\"showOrder\":\"0\",\"id\":\"1634713481202\",\"label\":\"会签\",\"type\":\"multi_sign\"},{\"showOrder\":\"1\",\"id\":\"1634713558334\",\"label\":\"加签\",\"type\":\"multi_consign\"}],\"readOnly\":false,\"taskKey\":\"Activity_1022nty\",\"taskType\":1}'); -INSERT INTO `zz_flow_entry_publish` VALUES (1450722667945529344, 1450722174842179584, 'flowTranslate:1:b28cd036-3175-11ec-9438-f20b812c0662', 'b28a3824-3175-11ec-9438-f20b812c0662', 1, b'1', b'0', 1440911410581213417, '2021-10-20 15:16:52', '{\"assignee\":\"${startUserName}\",\"formId\":1440945411354267648,\"groupType\":\"DEPT\",\"operationList\":[{\"showOrder\":\"0\",\"id\":\"1634714128552\",\"label\":\"提交\",\"type\":\"agree\"}],\"readOnly\":false,\"taskKey\":\"Activity_0c6nxdm\",\"taskType\":1}'); -INSERT INTO `zz_flow_entry_publish` VALUES (1450728692492800000, 1450709265869180928, 'flowLeave:2:0aaff445-3179-11ec-9438-f20b812c0662', '0aab3953-3179-11ec-9438-f20b812c0662', 2, b'1', b'0', 1440966324770574336, '2021-10-20 15:40:48', '{\"assignee\":\"${startUserName}\",\"formId\":1440945411354267648,\"groupType\":\"DEPT\",\"operationList\":[{\"showOrder\":\"0\",\"id\":\"1634711122925\",\"label\":\"提交\",\"type\":\"agree\"}],\"readOnly\":false,\"taskKey\":\"Activity_1tb8jka\",\"taskType\":1}'); -INSERT INTO `zz_flow_entry_publish` VALUES (1450729028217475072, 1450709265869180928, 'flowLeave:3:3a65da18-3179-11ec-9438-f20b812c0662', '3a623096-3179-11ec-9438-f20b812c0662', 3, b'1', b'0', 1440966324770574336, '2021-10-20 15:42:08', '{\"assignee\":\"${startUserName}\",\"formId\":1440945411354267648,\"groupType\":\"DEPT\",\"operationList\":[{\"showOrder\":\"0\",\"id\":\"1634711122925\",\"label\":\"提交\",\"type\":\"agree\"}],\"readOnly\":false,\"taskKey\":\"Activity_1tb8jka\",\"taskType\":1}'); -INSERT INTO `zz_flow_entry_publish` VALUES (1450729618343464960, 1450709265869180928, 'flowLeave:4:8e42a9bb-3179-11ec-9438-f20b812c0662', '8e3e3ce9-3179-11ec-9438-f20b812c0662', 4, b'1', b'0', 1440966324770574336, '2021-10-20 15:44:29', '{\"assignee\":\"${startUserName}\",\"formId\":1440945411354267648,\"groupType\":\"DEPT\",\"operationList\":[{\"showOrder\":\"0\",\"id\":\"1634711122925\",\"label\":\"提交\",\"type\":\"agree\"}],\"readOnly\":false,\"taskKey\":\"Activity_1tb8jka\",\"taskType\":1}'); -INSERT INTO `zz_flow_entry_publish` VALUES (1450736265753268224, 1450709265869180928, 'flowLeave:5:3eea05b0-317d-11ec-9438-f20b812c0662', '3ee7468e-317d-11ec-9438-f20b812c0662', 5, b'1', b'0', 1440911410581213417, '2021-10-20 16:10:54', '{\"assignee\":\"${startUserName}\",\"formId\":1440945411354267648,\"groupType\":\"DEPT\",\"operationList\":[{\"showOrder\":\"0\",\"id\":\"1634711122925\",\"label\":\"提交\",\"type\":\"agree\"}],\"readOnly\":false,\"taskKey\":\"Activity_1tb8jka\",\"taskType\":1}'); -INSERT INTO `zz_flow_entry_publish` VALUES (1450749289469841408, 1450709265869180928, 'flowLeave:6:79b100b1-3184-11ec-9f40-f20b812c0662', '79a037cf-3184-11ec-9f40-f20b812c0662', 6, b'1', b'0', 1440966324770574336, '2021-10-20 17:02:39', '{\"assignee\":\"${startUserName}\",\"formId\":1440945411354267648,\"groupType\":\"DEPT\",\"operationList\":[{\"showOrder\":\"0\",\"id\":\"1634711122925\",\"label\":\"提交\",\"type\":\"agree\"}],\"readOnly\":false,\"taskKey\":\"Activity_1tb8jka\",\"taskType\":1}'); -INSERT INTO `zz_flow_entry_publish` VALUES (1450749301478133760, 1450710743367290880, 'flowSubmit:2:7b6651d4-3184-11ec-9f40-f20b812c0662', '7b628142-3184-11ec-9f40-f20b812c0662', 2, b'1', b'0', 1440966324770574336, '2021-10-20 17:02:42', '{\"assignee\":\"${startUserName}\",\"formId\":1440947675041107968,\"groupType\":\"DEPT\",\"operationList\":[{\"showOrder\":\"0\",\"id\":\"1634711803796\",\"label\":\"提交\",\"type\":\"agree\"}],\"readOnly\":false,\"taskKey\":\"Activity_1cs4bi5\",\"taskType\":1}'); -INSERT INTO `zz_flow_entry_publish` VALUES (1450749311938727936, 1450713749735346176, 'flowContract:2:7ce26a87-3184-11ec-9f40-f20b812c0662', '7cdc7715-3184-11ec-9f40-f20b812c0662', 2, b'1', b'0', 1440966324770574336, '2021-10-20 17:02:44', '{\"assignee\":\"${startUserName}\",\"formId\":1440954920348946432,\"groupType\":\"DEPT\",\"operationList\":[{\"showOrder\":\"0\",\"id\":\"1634712553498\",\"label\":\"提交\",\"type\":\"agree\"}],\"readOnly\":false,\"taskKey\":\"Activity_0bciohf\",\"taskType\":1}'); -INSERT INTO `zz_flow_entry_publish` VALUES (1450753107137925120, 1450709265869180928, 'flowLeave:7:98337350-3186-11ec-bf2d-f20b812c0662', '97e6169e-3186-11ec-bf2d-f20b812c0662', 7, b'1', b'0', 1440966324770574336, '2021-10-20 17:17:49', '{\"assignee\":\"${startUserName}\",\"formId\":1440945411354267648,\"groupType\":\"DEPT\",\"operationList\":[{\"showOrder\":\"0\",\"id\":\"1634711122925\",\"label\":\"提交\",\"type\":\"agree\"}],\"readOnly\":false,\"taskKey\":\"Activity_1tb8jka\",\"taskType\":1}'); -INSERT INTO `zz_flow_entry_publish` VALUES (1471463377191571456, 1450709265869180928, 'flowLeave:8:1a9b02fb-5e6f-11ec-9355-5e4c369e54c1', '1a96e449-5e6f-11ec-9355-5e4c369e54c1', 8, b'1', b'0', 1440911410581213417, '2021-12-16 20:53:02', '{\"assignee\":\"${startUserName}\",\"formId\":1440945411354267648,\"groupType\":\"ASSIGNEE\",\"operationList\":[{\"showOrder\":\"0\",\"id\":\"1634711122925\",\"label\":\"提交\",\"type\":\"agree\"}],\"readOnly\":false,\"taskKey\":\"Activity_1tb8jka\",\"taskType\":1}'); -INSERT INTO `zz_flow_entry_publish` VALUES (1471463596067131392, 1450710743367290880, 'flowSubmit:3:39b2742e-5e6f-11ec-9355-5e4c369e54c1', '39a52dbc-5e6f-11ec-9355-5e4c369e54c1', 3, b'1', b'0', 1440911410581213417, '2021-12-16 20:53:54', '{\"assignee\":\"${startUserName}\",\"formId\":1440947675041107968,\"groupType\":\"ASSIGNEE\",\"operationList\":[{\"showOrder\":\"0\",\"id\":\"1634711803796\",\"label\":\"提交\",\"type\":\"agree\"}],\"readOnly\":false,\"taskKey\":\"Activity_1cs4bi5\",\"taskType\":1}'); -INSERT INTO `zz_flow_entry_publish` VALUES (1471465450033385472, 1450713749735346176, 'flowContract:3:412c67b1-5e70-11ec-9355-5e4c369e54c1', '4127d3cf-5e70-11ec-9355-5e4c369e54c1', 3, b'1', b'0', 1440911410581213417, '2021-12-16 21:01:16', '{\"assignee\":\"${startUserName}\",\"formId\":1440954920348946432,\"groupType\":\"ASSIGNEE\",\"operationList\":[{\"showOrder\":\"0\",\"id\":\"1634712553498\",\"label\":\"提交\",\"type\":\"agree\"}],\"readOnly\":false,\"taskKey\":\"Activity_0bciohf\",\"taskType\":1}'); -INSERT INTO `zz_flow_entry_publish` VALUES (1471465832658767872, 1450719191500853248, 'flowConsign:2:778c3c44-5e70-11ec-9355-5e4c369e54c1', '778892c2-5e70-11ec-9355-5e4c369e54c1', 2, b'1', b'0', 1440911410581213417, '2021-12-16 21:02:48', '{\"assignee\":\"${startUserName}\",\"formId\":1440945411354267648,\"groupType\":\"ASSIGNEE\",\"operationList\":[{\"multiSignAssignee\":{\"assigneeList\":\"admin,userA,userB\",\"assigneeType\":\"USER_GROUP\"},\"showOrder\":\"0\",\"id\":\"1634713481202\",\"label\":\"会签\",\"type\":\"multi_sign\"},{\"showOrder\":\"1\",\"id\":\"1634713558334\",\"label\":\"加签\",\"type\":\"multi_consign\"}],\"readOnly\":false,\"taskKey\":\"Activity_1022nty\",\"taskType\":1}'); -INSERT INTO `zz_flow_entry_publish` VALUES (1471465967547584512, 1450722174842179584, 'flowTranslate:2:8ab7c467-5e70-11ec-9355-5e4c369e54c1', '8ab49015-5e70-11ec-9355-5e4c369e54c1', 2, b'1', b'0', 1440911410581213417, '2021-12-16 21:03:20', '{\"assignee\":\"${startUserName}\",\"formId\":1440945411354267648,\"groupType\":\"ASSIGNEE\",\"operationList\":[{\"showOrder\":\"0\",\"id\":\"1634714128552\",\"label\":\"提交\",\"type\":\"agree\"}],\"readOnly\":false,\"taskKey\":\"Activity_0c6nxdm\",\"taskType\":1}'); -INSERT INTO `zz_flow_entry_publish` VALUES (1476751296529698816, 1450709265869180928, 'flowLeave:9:7d23427c-69e6-11ec-bb85-0235bf949cb9', '7ce6126a-69e6-11ec-bb85-0235bf949cb9', 9, b'1', b'1', 1440911410581213417, '2021-12-31 11:05:20', '{\"assignee\":\"${startUserName}\",\"formId\":1440945411354267648,\"groupType\":\"ASSIGNEE\",\"operationList\":[{\"showOrder\":\"0\",\"id\":\"1634711122925\",\"label\":\"提交\",\"type\":\"agree\"}],\"readOnly\":false,\"taskKey\":\"Activity_1tb8jka\",\"taskType\":1}'); -INSERT INTO `zz_flow_entry_publish` VALUES (1476751372228497408, 1450710743367290880, 'flowSubmit:4:87e59faf-69e6-11ec-bb85-0235bf949cb9', '87e159ed-69e6-11ec-bb85-0235bf949cb9', 4, b'1', b'1', 1440911410581213417, '2021-12-31 11:05:39', '{\"assignee\":\"${startUserName}\",\"formId\":1440947675041107968,\"groupType\":\"ASSIGNEE\",\"operationList\":[{\"showOrder\":\"0\",\"id\":\"1634711803796\",\"label\":\"提交\",\"type\":\"agree\"}],\"readOnly\":false,\"taskKey\":\"Activity_1cs4bi5\",\"taskType\":1}'); -INSERT INTO `zz_flow_entry_publish` VALUES (1476751439387693056, 1450713749735346176, 'flowContract:4:9170b562-69e6-11ec-bb85-0235bf949cb9', '916d0be0-69e6-11ec-bb85-0235bf949cb9', 4, b'1', b'1', 1440911410581213417, '2021-12-31 11:05:55', '{\"assignee\":\"${startUserName}\",\"formId\":1440954920348946432,\"groupType\":\"ASSIGNEE\",\"operationList\":[{\"showOrder\":\"0\",\"id\":\"1634712553498\",\"label\":\"提交\",\"type\":\"agree\"}],\"readOnly\":false,\"taskKey\":\"Activity_0bciohf\",\"taskType\":1}'); -INSERT INTO `zz_flow_entry_publish` VALUES (1476751492051374080, 1450719191500853248, 'flowConsign:3:98ed0f55-69e6-11ec-bb85-0235bf949cb9', '98ea5033-69e6-11ec-bb85-0235bf949cb9', 3, b'1', b'1', 1440911410581213417, '2021-12-31 11:06:07', '{\"assignee\":\"${startUserName}\",\"formId\":1440945411354267648,\"groupType\":\"ASSIGNEE\",\"operationList\":[{\"multiSignAssignee\":{\"assigneeList\":\"admin,userA,userB\",\"assigneeType\":\"USER_GROUP\"},\"showOrder\":\"0\",\"id\":\"1634713481202\",\"label\":\"会签\",\"type\":\"multi_sign\"},{\"showOrder\":\"1\",\"id\":\"1634713558334\",\"label\":\"加签\",\"type\":\"multi_consign\"}],\"readOnly\":false,\"taskKey\":\"Activity_1022nty\",\"taskType\":1}'); -INSERT INTO `zz_flow_entry_publish` VALUES (1476751545591664640, 1450722174842179584, 'flowTranslate:3:a0888a08-69e6-11ec-bb85-0235bf949cb9', 'a0864016-69e6-11ec-bb85-0235bf949cb9', 3, b'1', b'1', 1440911410581213417, '2021-12-31 11:06:20', '{\"assignee\":\"${startUserName}\",\"formId\":1440945411354267648,\"groupType\":\"ASSIGNEE\",\"operationList\":[{\"showOrder\":\"0\",\"id\":\"1634714128552\",\"label\":\"提交\",\"type\":\"agree\"}],\"readOnly\":false,\"taskKey\":\"Activity_0c6nxdm\",\"taskType\":1}'); -COMMIT; - --- ---------------------------- --- Table structure for zz_flow_entry_publish_variable --- ---------------------------- -DROP TABLE IF EXISTS `zz_flow_entry_publish_variable`; -CREATE TABLE `zz_flow_entry_publish_variable` ( - `variable_id` bigint NOT NULL COMMENT '主键Id', - `entry_publish_id` bigint NOT NULL COMMENT '流程Id', - `variable_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '变量名', - `show_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '显示名', - `variable_type` int NOT NULL COMMENT '变量类型', - `bind_datasource_id` bigint DEFAULT NULL COMMENT '绑定数据源Id', - `bind_relation_id` bigint DEFAULT NULL COMMENT '绑定数据源关联Id', - `bind_column_id` bigint DEFAULT NULL COMMENT '绑定字段Id', - `builtin` bit(1) NOT NULL COMMENT '是否内置', - PRIMARY KEY (`variable_id`) USING BTREE, - KEY `idx_entry_publish_id` (`entry_publish_id`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; - --- ---------------------------- --- Records of zz_flow_entry_publish_variable --- ---------------------------- -BEGIN; -INSERT INTO `zz_flow_entry_publish_variable` VALUES (1450722631270535168, 1450722631203426304, 'operationType', '审批类型', 1, NULL, NULL, NULL, b'1'); -INSERT INTO `zz_flow_entry_publish_variable` VALUES (1450722631270535169, 1450722631203426304, 'startUserName', '流程启动用户', 0, NULL, NULL, NULL, b'1'); -INSERT INTO `zz_flow_entry_publish_variable` VALUES (1450722639684308992, 1450722639659143168, 'operationType', '审批类型', 1, NULL, NULL, NULL, b'1'); -INSERT INTO `zz_flow_entry_publish_variable` VALUES (1450722639684308993, 1450722639659143168, 'startUserName', '流程启动用户', 0, NULL, NULL, NULL, b'1'); -INSERT INTO `zz_flow_entry_publish_variable` VALUES (1450722639684308994, 1450722639659143168, 'totalAmount', '报销金额', 1, 1440946127531675648, NULL, 1440946127493926912, b'0'); -INSERT INTO `zz_flow_entry_publish_variable` VALUES (1450722647515074560, 1450722647485714432, 'operationType', '审批类型', 1, NULL, NULL, NULL, b'1'); -INSERT INTO `zz_flow_entry_publish_variable` VALUES (1450722647515074561, 1450722647485714432, 'startUserName', '流程启动用户', 0, NULL, NULL, NULL, b'1'); -INSERT INTO `zz_flow_entry_publish_variable` VALUES (1450722658600620032, 1450722658558676992, 'operationType', '审批类型', 1, NULL, NULL, NULL, b'1'); -INSERT INTO `zz_flow_entry_publish_variable` VALUES (1450722658600620033, 1450722658558676992, 'startUserName', '流程启动用户', 0, NULL, NULL, NULL, b'1'); -INSERT INTO `zz_flow_entry_publish_variable` VALUES (1450722667962306560, 1450722667945529344, 'operationType', '审批类型', 1, NULL, NULL, NULL, b'1'); -INSERT INTO `zz_flow_entry_publish_variable` VALUES (1450722667962306561, 1450722667945529344, 'startUserName', '流程启动用户', 0, NULL, NULL, NULL, b'1'); -INSERT INTO `zz_flow_entry_publish_variable` VALUES (1450728692513771520, 1450728692492800000, 'operationType', '审批类型', 1, NULL, NULL, NULL, b'1'); -INSERT INTO `zz_flow_entry_publish_variable` VALUES (1450728692513771521, 1450728692492800000, 'startUserName', '流程启动用户', 0, NULL, NULL, NULL, b'1'); -INSERT INTO `zz_flow_entry_publish_variable` VALUES (1450729028238446592, 1450729028217475072, 'operationType', '审批类型', 1, NULL, NULL, NULL, b'1'); -INSERT INTO `zz_flow_entry_publish_variable` VALUES (1450729028238446593, 1450729028217475072, 'startUserName', '流程启动用户', 0, NULL, NULL, NULL, b'1'); -INSERT INTO `zz_flow_entry_publish_variable` VALUES (1450729618377019392, 1450729618343464960, 'operationType', '审批类型', 1, NULL, NULL, NULL, b'1'); -INSERT INTO `zz_flow_entry_publish_variable` VALUES (1450729618377019393, 1450729618343464960, 'startUserName', '流程启动用户', 0, NULL, NULL, NULL, b'1'); -INSERT INTO `zz_flow_entry_publish_variable` VALUES (1450736265770045440, 1450736265753268224, 'operationType', '审批类型', 1, NULL, NULL, NULL, b'1'); -INSERT INTO `zz_flow_entry_publish_variable` VALUES (1450736265770045441, 1450736265753268224, 'startUserName', '流程启动用户', 0, NULL, NULL, NULL, b'1'); -INSERT INTO `zz_flow_entry_publish_variable` VALUES (1450749289587281920, 1450749289469841408, 'operationType', '审批类型', 1, NULL, NULL, NULL, b'1'); -INSERT INTO `zz_flow_entry_publish_variable` VALUES (1450749289587281921, 1450749289469841408, 'startUserName', '流程启动用户', 0, NULL, NULL, NULL, b'1'); -INSERT INTO `zz_flow_entry_publish_variable` VALUES (1450749301515882496, 1450749301478133760, 'operationType', '审批类型', 1, NULL, NULL, NULL, b'1'); -INSERT INTO `zz_flow_entry_publish_variable` VALUES (1450749301515882497, 1450749301478133760, 'startUserName', '流程启动用户', 0, NULL, NULL, NULL, b'1'); -INSERT INTO `zz_flow_entry_publish_variable` VALUES (1450749301515882498, 1450749301478133760, 'totalAmount', '报销金额', 1, 1440946127531675648, NULL, 1440946127493926912, b'0'); -INSERT INTO `zz_flow_entry_publish_variable` VALUES (1450749312001642496, 1450749311938727936, 'operationType', '审批类型', 1, NULL, NULL, NULL, b'1'); -INSERT INTO `zz_flow_entry_publish_variable` VALUES (1450749312001642497, 1450749311938727936, 'startUserName', '流程启动用户', 0, NULL, NULL, NULL, b'1'); -INSERT INTO `zz_flow_entry_publish_variable` VALUES (1450753107477663744, 1450753107137925120, 'operationType', '审批类型', 1, NULL, NULL, NULL, b'1'); -INSERT INTO `zz_flow_entry_publish_variable` VALUES (1450753107477663745, 1450753107137925120, 'startUserName', '流程启动用户', 0, NULL, NULL, NULL, b'1'); -INSERT INTO `zz_flow_entry_publish_variable` VALUES (1471463377225125888, 1471463377191571456, 'operationType', '审批类型', 1, NULL, NULL, NULL, b'1'); -INSERT INTO `zz_flow_entry_publish_variable` VALUES (1471463377225125889, 1471463377191571456, 'startUserName', '流程启动用户', 0, NULL, NULL, NULL, b'1'); -INSERT INTO `zz_flow_entry_publish_variable` VALUES (1471463596151017472, 1471463596067131392, 'operationType', '审批类型', 1, NULL, NULL, NULL, b'1'); -INSERT INTO `zz_flow_entry_publish_variable` VALUES (1471463596151017473, 1471463596067131392, 'startUserName', '流程启动用户', 0, NULL, NULL, NULL, b'1'); -INSERT INTO `zz_flow_entry_publish_variable` VALUES (1471463596151017474, 1471463596067131392, 'totalAmount', '报销金额', 1, 1440946127531675648, NULL, 1440946127493926912, b'0'); -INSERT INTO `zz_flow_entry_publish_variable` VALUES (1471465450071134208, 1471465450033385472, 'operationType', '审批类型', 1, NULL, NULL, NULL, b'1'); -INSERT INTO `zz_flow_entry_publish_variable` VALUES (1471465450071134209, 1471465450033385472, 'startUserName', '流程启动用户', 0, NULL, NULL, NULL, b'1'); -INSERT INTO `zz_flow_entry_publish_variable` VALUES (1471465832679739392, 1471465832658767872, 'operationType', '审批类型', 1, NULL, NULL, NULL, b'1'); -INSERT INTO `zz_flow_entry_publish_variable` VALUES (1471465832679739393, 1471465832658767872, 'startUserName', '流程启动用户', 0, NULL, NULL, NULL, b'1'); -INSERT INTO `zz_flow_entry_publish_variable` VALUES (1471465967576944640, 1471465967547584512, 'operationType', '审批类型', 1, NULL, NULL, NULL, b'1'); -INSERT INTO `zz_flow_entry_publish_variable` VALUES (1471465967576944641, 1471465967547584512, 'startUserName', '流程启动用户', 0, NULL, NULL, NULL, b'1'); -INSERT INTO `zz_flow_entry_publish_variable` VALUES (1476751296584224768, 1476751296529698816, 'operationType', '审批类型', 1, NULL, NULL, NULL, b'1'); -INSERT INTO `zz_flow_entry_publish_variable` VALUES (1476751296584224769, 1476751296529698816, 'startUserName', '流程启动用户', 0, NULL, NULL, NULL, b'1'); -INSERT INTO `zz_flow_entry_publish_variable` VALUES (1476751372257857536, 1476751372228497408, 'operationType', '审批类型', 1, NULL, NULL, NULL, b'1'); -INSERT INTO `zz_flow_entry_publish_variable` VALUES (1476751372257857537, 1476751372228497408, 'startUserName', '流程启动用户', 0, NULL, NULL, NULL, b'1'); -INSERT INTO `zz_flow_entry_publish_variable` VALUES (1476751372257857538, 1476751372228497408, 'totalAmount', '报销金额', 1, 1440946127531675648, NULL, 1440946127493926912, b'0'); -INSERT INTO `zz_flow_entry_publish_variable` VALUES (1476751439421247488, 1476751439387693056, 'operationType', '审批类型', 1, NULL, NULL, NULL, b'1'); -INSERT INTO `zz_flow_entry_publish_variable` VALUES (1476751439421247489, 1476751439387693056, 'startUserName', '流程启动用户', 0, NULL, NULL, NULL, b'1'); -INSERT INTO `zz_flow_entry_publish_variable` VALUES (1476751492084928512, 1476751492051374080, 'operationType', '审批类型', 1, NULL, NULL, NULL, b'1'); -INSERT INTO `zz_flow_entry_publish_variable` VALUES (1476751492084928513, 1476751492051374080, 'startUserName', '流程启动用户', 0, NULL, NULL, NULL, b'1'); -INSERT INTO `zz_flow_entry_publish_variable` VALUES (1476751545612636160, 1476751545591664640, 'operationType', '审批类型', 1, NULL, NULL, NULL, b'1'); -INSERT INTO `zz_flow_entry_publish_variable` VALUES (1476751545612636161, 1476751545591664640, 'startUserName', '流程启动用户', 0, NULL, NULL, NULL, b'1'); -COMMIT; - --- ---------------------------- --- Table structure for zz_flow_entry_variable --- ---------------------------- -DROP TABLE IF EXISTS `zz_flow_entry_variable`; -CREATE TABLE `zz_flow_entry_variable` ( - `variable_id` bigint NOT NULL COMMENT '主键Id', - `entry_id` bigint NOT NULL COMMENT '流程Id', - `variable_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '变量名', - `show_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '显示名', - `variable_type` int NOT NULL COMMENT '变量类型', - `bind_datasource_id` bigint DEFAULT NULL COMMENT '绑定数据源Id', - `bind_relation_id` bigint DEFAULT NULL COMMENT '绑定数据源关联Id', - `bind_column_id` bigint DEFAULT NULL COMMENT '绑定字段Id', - `builtin` bit(1) NOT NULL COMMENT '是否内置', - `create_time` datetime NOT NULL COMMENT '创建时间', - PRIMARY KEY (`variable_id`) USING BTREE, - UNIQUE KEY `uk_entry_id_variable_name` (`entry_id`,`variable_name`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; - --- ---------------------------- --- Records of zz_flow_entry_variable --- ---------------------------- -BEGIN; -INSERT INTO `zz_flow_entry_variable` VALUES (1450709265902735360, 1450709265869180928, 'operationType', '审批类型', 1, NULL, NULL, NULL, b'1', '2021-10-20 14:23:37'); -INSERT INTO `zz_flow_entry_variable` VALUES (1450709265927901185, 1450709265869180928, 'startUserName', '流程启动用户', 0, NULL, NULL, NULL, b'1', '2021-10-20 14:23:37'); -INSERT INTO `zz_flow_entry_variable` VALUES (1450710743375679489, 1450710743367290880, 'operationType', '审批类型', 1, NULL, NULL, NULL, b'1', '2021-10-20 14:29:29'); -INSERT INTO `zz_flow_entry_variable` VALUES (1450710743384068096, 1450710743367290880, 'startUserName', '流程启动用户', 0, NULL, NULL, NULL, b'1', '2021-10-20 14:29:29'); -INSERT INTO `zz_flow_entry_variable` VALUES (1450710800854421504, 1450710743367290880, 'totalAmount', '报销金额', 1, 1440946127531675648, NULL, 1440946127493926912, b'0', '2021-10-20 14:29:42'); -INSERT INTO `zz_flow_entry_variable` VALUES (1450713749743734785, 1450713749735346176, 'operationType', '审批类型', 1, NULL, NULL, NULL, b'1', '2021-10-20 14:41:26'); -INSERT INTO `zz_flow_entry_variable` VALUES (1450713749752123393, 1450713749735346176, 'startUserName', '流程启动用户', 0, NULL, NULL, NULL, b'1', '2021-10-20 14:41:26'); -INSERT INTO `zz_flow_entry_variable` VALUES (1450719191509241857, 1450719191500853248, 'operationType', '审批类型', 1, NULL, NULL, NULL, b'1', '2021-10-20 15:03:03'); -INSERT INTO `zz_flow_entry_variable` VALUES (1450719191517630465, 1450719191500853248, 'startUserName', '流程启动用户', 0, NULL, NULL, NULL, b'1', '2021-10-20 15:03:03'); -INSERT INTO `zz_flow_entry_variable` VALUES (1450722174850568193, 1450722174842179584, 'operationType', '审批类型', 1, NULL, NULL, NULL, b'1', '2021-10-20 15:14:54'); -INSERT INTO `zz_flow_entry_variable` VALUES (1450722174858956800, 1450722174842179584, 'startUserName', '流程启动用户', 0, NULL, NULL, NULL, b'1', '2021-10-20 15:14:54'); -COMMIT; - --- ---------------------------- --- Table structure for zz_flow_message --- ---------------------------- -DROP TABLE IF EXISTS `zz_flow_message`; -CREATE TABLE `zz_flow_message` ( - `message_id` bigint NOT NULL COMMENT '主键Id', - `message_type` tinyint NOT NULL COMMENT '消息类型', - `message_content` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '消息内容', - `remind_count` int DEFAULT '0' COMMENT '催办次数', - `work_order_id` bigint DEFAULT NULL COMMENT '工单Id', - `process_definition_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '流程定义Id', - `process_definition_key` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '流程定义标识', - `process_definition_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '流程定义名称', - `process_instance_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '流程实例Id', - `process_instance_initiator` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '流程实例发起者', - `task_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '流程任务Id', - `task_definition_key` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '流程任务定义标识', - `task_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '流程任务名称', - `task_start_time` datetime DEFAULT NULL COMMENT '任务开始时间', - `task_finished` bit(1) NOT NULL DEFAULT b'0' COMMENT '任务是否已完成', - `task_assignee` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '任务指派人登录名', - `business_data_shot` longtext COLLATE utf8mb4_bin COMMENT '业务数据快照', - `update_time` datetime NOT NULL COMMENT '更新时间', - `update_user_id` bigint NOT NULL COMMENT '更新者Id', - `create_time` datetime NOT NULL COMMENT '创建时间', - `create_user_id` bigint NOT NULL COMMENT '创建者Id', - `create_username` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '创建者显示名', - PRIMARY KEY (`message_id`) USING BTREE, - KEY `idx_notified_username` (`task_assignee`) USING BTREE, - KEY `idx_message_type` (`message_type`) USING BTREE, - KEY `idx_task_id` (`task_id`) USING BTREE, - KEY `idx_task_finished` (`task_finished`) USING BTREE, - KEY `idx_update_time` (`update_time`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; - --- ---------------------------- --- Table structure for zz_flow_message_candicate_identity --- ---------------------------- -DROP TABLE IF EXISTS `zz_flow_message_candicate_identity`; -CREATE TABLE `zz_flow_message_candicate_identity` ( - `id` bigint NOT NULL COMMENT '主键Id', - `message_id` bigint NOT NULL COMMENT '流程任务Id', - `candidate_type` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '候选身份类型', - `candidate_id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '候选身份Id', - PRIMARY KEY (`id`), - KEY `idx_candidate_id` (`candidate_id`) USING BTREE, - KEY `idx_message_id` (`message_id`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; - --- ---------------------------- --- Table structure for zz_flow_task_comment --- ---------------------------- -DROP TABLE IF EXISTS `zz_flow_task_comment`; -CREATE TABLE `zz_flow_task_comment` ( - `id` bigint NOT NULL COMMENT '主键Id', - `process_instance_id` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '流程实例Id', - `task_id` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '任务Id', - `task_key` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '任务标识', - `task_name` varchar(512) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL COMMENT '任务名称', - `approval_type` varchar(32) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '审批类型', - `comment` varchar(1024) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL COMMENT '批注内容', - `delegate_assignee` varchar(512) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL COMMENT '委托指定人,比如加签、转办等', - `create_user_id` bigint NOT NULL COMMENT '创建者Id', - `create_username` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '创建者用户名', - `create_time` datetime NOT NULL COMMENT '创建时间', - PRIMARY KEY (`id`) USING BTREE, - KEY `idx_process_instance_id` (`process_instance_id`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_bin; - --- ---------------------------- --- Records of zz_flow_task_comment --- ---------------------------- -BEGIN; -INSERT INTO `zz_flow_task_comment` VALUES (1450732253381398528, '04b2aec5-317b-11ec-9438-f20b812c0662', '04b2d5de-317b-11ec-9438-f20b812c0662', 'Activity_0c6nxdm', '录入', 'agree', NULL, NULL, 1440966324770574336, '员工D', '2021-10-20 15:54:57'); -INSERT INTO `zz_flow_task_comment` VALUES (1450732336550252544, '04b2aec5-317b-11ec-9438-f20b812c0662', '04b742ba-317b-11ec-9438-f20b812c0662', 'Activity_0wwsi9w', '转办', 'transfer', '转办', 'userD', 1440911410581213417, '管理员', '2021-10-20 15:55:17'); -INSERT INTO `zz_flow_task_comment` VALUES (1450732384881217536, '04b2aec5-317b-11ec-9438-f20b812c0662', '04b742ba-317b-11ec-9438-f20b812c0662', 'Activity_0wwsi9w', '转办', 'agree', '同意', NULL, 1440966324770574336, '员工D', '2021-10-20 15:55:29'); -INSERT INTO `zz_flow_task_comment` VALUES (1450745975596388352, '8de8b46c-3182-11ec-a0b7-f20b812c0662', '8deb99a7-3182-11ec-a0b7-f20b812c0662', 'Activity_1tb8jka', '请假申请', 'agree', NULL, NULL, 1440966324770574336, '员工D', '2021-10-20 16:49:29'); -INSERT INTO `zz_flow_task_comment` VALUES (1450747313021521920, '5b6b546a-3183-11ec-ad5a-f20b812c0662', '5b6e61b5-3183-11ec-ad5a-f20b812c0662', 'Activity_1tb8jka', '请假申请', 'agree', NULL, NULL, 1440966324770574336, '员工D', '2021-10-20 16:54:48'); -INSERT INTO `zz_flow_task_comment` VALUES (1450747613543403520, '5b6b546a-3183-11ec-ad5a-f20b812c0662', '5f1ee6a5-3183-11ec-ad5a-f20b812c0662', 'Activity_11jr0px', '部门领导审批', 'refuse', '不同意', NULL, 1440966073686953984, '天津总监', '2021-10-20 16:55:59'); -INSERT INTO `zz_flow_task_comment` VALUES (1450747698067017728, '5b6b546a-3183-11ec-ad5a-f20b812c0662', '8b85a187-3183-11ec-ad5a-f20b812c0662', 'Activity_1tb8jka', '请假申请', 'agree', '再次提交', NULL, 1440966324770574336, '员工D', '2021-10-20 16:56:19'); -INSERT INTO `zz_flow_task_comment` VALUES (1450747768208363520, '5b6b546a-3183-11ec-ad5a-f20b812c0662', '9787d1c7-3183-11ec-ad5a-f20b812c0662', 'Activity_11jr0px', '部门领导审批', 'agree', '同意', NULL, 1440966073686953984, '天津总监', '2021-10-20 16:56:36'); -INSERT INTO `zz_flow_task_comment` VALUES (1450748087831105536, '5b6b546a-3183-11ec-ad5a-f20b812c0662', 'a18112a8-3183-11ec-ad5a-f20b812c0662', 'Activity_00ibp0u', 'HR审批', 'agree', '同意', NULL, 1440965465605148672, '员工A', '2021-10-20 16:57:52'); -INSERT INTO `zz_flow_task_comment` VALUES (1450748609246007296, '190031da-3184-11ec-ad5a-f20b812c0662', '19008005-3184-11ec-ad5a-f20b812c0662', 'Activity_1cs4bi5', '报销申请', 'agree', NULL, NULL, 1440966324770574336, '员工D', '2021-10-20 16:59:57'); -INSERT INTO `zz_flow_task_comment` VALUES (1450748696181346304, '190031da-3184-11ec-ad5a-f20b812c0662', '1904c5d5-3184-11ec-ad5a-f20b812c0662', 'Activity_04scn2o', '部门领导审批', 'agree', '同意', NULL, 1440966073686953984, '天津总监', '2021-10-20 17:00:17'); -INSERT INTO `zz_flow_task_comment` VALUES (1450748793329815552, '190031da-3184-11ec-ad5a-f20b812c0662', '255f765c-3184-11ec-ad5a-f20b812c0662', 'Activity_1w23xfe', '总经理审批', 'agree', '同意', NULL, 1440911410581213417, '管理员', '2021-10-20 17:00:41'); -INSERT INTO `zz_flow_task_comment` VALUES (1450749438929670144, '8edf84c8-3184-11ec-9f40-f20b812c0662', '8ee35563-3184-11ec-9f40-f20b812c0662', 'Activity_1tb8jka', '请假申请', 'agree', NULL, NULL, 1440966324770574336, '员工D', '2021-10-20 17:03:15'); -INSERT INTO `zz_flow_task_comment` VALUES (1450749525818871808, '8edf84c8-3184-11ec-9f40-f20b812c0662', '8eeb92d2-3184-11ec-9f40-f20b812c0662', 'Activity_11jr0px', '部门领导审批', 'agree', '欧了', NULL, 1440966073686953984, '天津总监', '2021-10-20 17:03:35'); -INSERT INTO `zz_flow_task_comment` VALUES (1450749626310201344, '8edf84c8-3184-11ec-9f40-f20b812c0662', '9b45ce23-3184-11ec-9f40-f20b812c0662', 'Activity_00ibp0u', 'HR审批', 'agree', '恭喜恭喜', NULL, 1440965465605148672, '员工A', '2021-10-20 17:03:59'); -INSERT INTO `zz_flow_task_comment` VALUES (1450750096932081664, 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec6cccaf-3184-11ec-9f40-f20b812c0662', 'Activity_0bciohf', '合同录入', 'agree', NULL, NULL, 1440966324770574336, '员工D', '2021-10-20 17:05:51'); -INSERT INTO `zz_flow_task_comment` VALUES (1450750157921456128, 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'ec70010e-3184-11ec-9f40-f20b812c0662', 'Activity_053om99', '业务部领导审批', 'agree', '同意', NULL, 1440966073686953984, '天津总监', '2021-10-20 17:06:06'); -INSERT INTO `zz_flow_task_comment` VALUES (1450750220756324352, 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'f518f433-3184-11ec-9f40-f20b812c0662', 'Activity_17930aj', '造价部审批', 'agree', '同意', NULL, 1440911410581213417, '管理员', '2021-10-20 17:06:21'); -INSERT INTO `zz_flow_task_comment` VALUES (1450750247146885120, 'ec6ca594-3184-11ec-9f40-f20b812c0662', 'f518f431-3184-11ec-9f40-f20b812c0662', 'Activity_0z90ali', '工程部审批', 'agree', '同意了', NULL, 1440911410581213417, '管理员', '2021-10-20 17:06:27'); -INSERT INTO `zz_flow_task_comment` VALUES (1450750592560402432, 'ec6ca594-3184-11ec-9f40-f20b812c0662', '01c79123-3185-11ec-9f40-f20b812c0662', 'Activity_0xetc8u', '财务部审批', 'agree', '没问题', NULL, 1440966186522120192, '天津经理', '2021-10-20 17:07:50'); -INSERT INTO `zz_flow_task_comment` VALUES (1450750768880553984, 'ec6ca594-3184-11ec-9f40-f20b812c0662', '32dedbc5-3185-11ec-9f40-f20b812c0662', 'Activity_0dvg4hi', '法务部审批', 'multi_sign', '用户 [leaderLaw] 会签 [[\"admin\",\"userD\"]]。', NULL, 1440965808049098752, '法务经理', '2021-10-20 17:08:32'); -INSERT INTO `zz_flow_task_comment` VALUES (1450750837398704128, 'ec6ca594-3184-11ec-9f40-f20b812c0662', '4be78d00-3185-11ec-9f40-f20b812c0662', 'Activity_0xo14ns', '法务部会签', 'multi_agree', '同意', NULL, 1440966324770574336, '员工D', '2021-10-20 17:08:48'); -INSERT INTO `zz_flow_task_comment` VALUES (1450750918214553600, 'ec6ca594-3184-11ec-9f40-f20b812c0662', '4be78cfe-3185-11ec-9f40-f20b812c0662', 'Activity_0xo14ns', '法务部会签', 'multi_agree', '同意', NULL, 1440911410581213417, '管理员', '2021-10-20 17:09:07'); -INSERT INTO `zz_flow_task_comment` VALUES (1450751110531780608, 'ec6ca594-3184-11ec-9f40-f20b812c0662', '6121f760-3185-11ec-9f40-f20b812c0662', 'Activity_1enh5ke', '总经理审批', 'agree', '同意', NULL, 1440969706411397120, '总部领导', '2021-10-20 17:09:53'); -INSERT INTO `zz_flow_task_comment` VALUES (1450753187584675840, 'a396f281-3186-11ec-bf2d-f20b812c0662', 'a399b1ac-3186-11ec-bf2d-f20b812c0662', 'Activity_1tb8jka', '请假申请', 'agree', NULL, NULL, 1440966324770574336, '员工D', '2021-10-20 17:18:08'); -INSERT INTO `zz_flow_task_comment` VALUES (1476751923863359488, 'd6423389-69e6-11ec-bb85-0235bf949cb9', 'd644f2b4-69e6-11ec-bb85-0235bf949cb9', 'Activity_1tb8jka', '请假申请', 'agree', NULL, NULL, 1440911410581213417, '管理员', '2021-12-31 11:07:50'); -INSERT INTO `zz_flow_task_comment` VALUES (1476751964548108288, 'dc101a4d-69e6-11ec-bb85-0235bf949cb9', 'dc104168-69e6-11ec-bb85-0235bf949cb9', 'Activity_1cs4bi5', '报销申请', 'agree', NULL, NULL, 1440911410581213417, '管理员', '2021-12-31 11:08:00'); -INSERT INTO `zz_flow_task_comment` VALUES (1476752006881218560, 'e214ef91-69e6-11ec-bb85-0235bf949cb9', 'e21516ac-69e6-11ec-bb85-0235bf949cb9', 'Activity_0bciohf', '合同录入', 'agree', NULL, NULL, 1440911410581213417, '管理员', '2021-12-31 11:08:10'); -INSERT INTO `zz_flow_task_comment` VALUES (1476752044281827328, 'e76568f5-69e6-11ec-bb85-0235bf949cb9', 'e76568fe-69e6-11ec-bb85-0235bf949cb9', 'Activity_1022nty', '录入', 'multi_sign', '用户 [admin] 会签 [admin,userA,userB]。', NULL, 1440911410581213417, '管理员', '2021-12-31 11:08:19'); -INSERT INTO `zz_flow_task_comment` VALUES (1476752083452432384, 'ecf66d42-69e6-11ec-bb85-0235bf949cb9', 'ecf6945b-69e6-11ec-bb85-0235bf949cb9', 'Activity_0c6nxdm', '录入', 'agree', NULL, NULL, 1440911410581213417, '管理员', '2021-12-31 11:08:28'); -INSERT INTO `zz_flow_task_comment` VALUES (1476753410958036992, 'ecf66d42-69e6-11ec-bb85-0235bf949cb9', 'ecfa8c07-69e6-11ec-bb85-0235bf949cb9', 'Activity_0wwsi9w', '转办', 'stop', '1111', NULL, 1440911410581213417, '管理员', '2021-12-31 11:13:45'); -INSERT INTO `zz_flow_task_comment` VALUES (1476753430797094912, 'e76568f5-69e6-11ec-bb85-0235bf949cb9', 'e76ae677-69e6-11ec-bb85-0235bf949cb9', 'Activity_0umypog', '会签', 'stop', '222', NULL, 1440911410581213417, '管理员', '2021-12-31 11:13:49'); -INSERT INTO `zz_flow_task_comment` VALUES (1476753431036170240, 'e76568f5-69e6-11ec-bb85-0235bf949cb9', 'e76ae679-69e6-11ec-bb85-0235bf949cb9', 'Activity_0umypog', '会签', 'stop', '222', NULL, 1440911410581213417, '管理员', '2021-12-31 11:13:49'); -INSERT INTO `zz_flow_task_comment` VALUES (1476753431463989248, 'e76568f5-69e6-11ec-bb85-0235bf949cb9', 'e76ae67b-69e6-11ec-bb85-0235bf949cb9', 'Activity_0umypog', '会签', 'stop', '222', NULL, 1440911410581213417, '管理员', '2021-12-31 11:13:49'); -INSERT INTO `zz_flow_task_comment` VALUES (1476753451512762368, 'e214ef91-69e6-11ec-bb85-0235bf949cb9', 'e219356b-69e6-11ec-bb85-0235bf949cb9', 'Activity_053om99', '业务部领导审批', 'stop', '333', NULL, 1440911410581213417, '管理员', '2021-12-31 11:13:54'); -COMMIT; - --- ---------------------------- --- Table structure for zz_flow_task_ext --- ---------------------------- -DROP TABLE IF EXISTS `zz_flow_task_ext`; -CREATE TABLE `zz_flow_task_ext` ( - `process_definition_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '流程引擎的定义Id', - `task_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '流程引擎任务Id', - `operation_list_json` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin COMMENT '操作列表JSON', - `variable_list_json` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin COMMENT '变量列表JSON', - `assignee_list_json` text CHARACTER SET utf8mb4 COLLATE utf8mb4_bin COMMENT '存储多实例的assigneeList的JSON', - `group_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '分组类型', - `dept_post_list_json` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '保存岗位相关的数据', - `role_ids` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '保存角色Id数据', - `dept_ids` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '保存部门Id数据', - `candidate_usernames` varchar(4000) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '保存候选组用户名数据', - PRIMARY KEY (`process_definition_id`,`task_id`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; - --- ---------------------------- --- Records of zz_flow_task_ext --- ---------------------------- -BEGIN; -INSERT INTO `zz_flow_task_ext` VALUES ('flowConsign:1:b1375253-3175-11ec-9438-f20b812c0662', 'Activity_0umypog', NULL, NULL, NULL, 'DEPT', NULL, NULL, NULL, NULL); -INSERT INTO `zz_flow_task_ext` VALUES ('flowConsign:1:b1375253-3175-11ec-9438-f20b812c0662', 'Activity_1022nty', '[{\"showOrder\":\"0\",\"id\":\"1634713481202\",\"label\":\"会签\",\"type\":\"multi_sign\"},{\"showOrder\":\"1\",\"id\":\"1634713558334\",\"label\":\"加签\",\"type\":\"multi_consign\"}]', NULL, NULL, 'DEPT', NULL, NULL, NULL, NULL); -INSERT INTO `zz_flow_task_ext` VALUES ('flowConsign:1:b1375253-3175-11ec-9438-f20b812c0662', 'Activity_1h9dd8t', '[{\"showOrder\":\"0\",\"id\":\"1634713969842\",\"label\":\"同意\",\"type\":\"agree\"},{\"showOrder\":\"1\",\"id\":\"1634713975120\",\"label\":\"拒绝\",\"type\":\"refuse\"}]', NULL, NULL, 'DEPT', NULL, NULL, NULL, NULL); -INSERT INTO `zz_flow_task_ext` VALUES ('flowConsign:2:778c3c44-5e70-11ec-9355-5e4c369e54c1', 'Activity_0umypog', '[{\"showOrder\":\"0\",\"id\":\"1639659718081\",\"label\":\"同意(会签)\",\"type\":\"multi_agree\"},{\"showOrder\":\"1\",\"id\":\"1639659724119\",\"label\":\"拒绝(会签)\",\"type\":\"multi_refuse\"}]', NULL, NULL, 'ASSIGNEE', NULL, NULL, NULL, NULL); -INSERT INTO `zz_flow_task_ext` VALUES ('flowConsign:2:778c3c44-5e70-11ec-9355-5e4c369e54c1', 'Activity_1022nty', '[{\"multiSignAssignee\":{\"assigneeList\":\"admin,userA,userB\",\"assigneeType\":\"USER_GROUP\"},\"showOrder\":\"0\",\"id\":\"1634713481202\",\"label\":\"会签\",\"type\":\"multi_sign\"},{\"showOrder\":\"1\",\"id\":\"1634713558334\",\"label\":\"加签\",\"type\":\"multi_consign\"}]', NULL, NULL, 'ASSIGNEE', NULL, NULL, NULL, NULL); -INSERT INTO `zz_flow_task_ext` VALUES ('flowConsign:2:778c3c44-5e70-11ec-9355-5e4c369e54c1', 'Activity_1h9dd8t', '[{\"showOrder\":\"0\",\"id\":\"1634713969842\",\"label\":\"同意\",\"type\":\"agree\"},{\"showOrder\":\"1\",\"id\":\"1634713975120\",\"label\":\"拒绝\",\"type\":\"refuse\"}]', NULL, NULL, 'ASSIGNEE', NULL, NULL, NULL, NULL); -INSERT INTO `zz_flow_task_ext` VALUES ('flowConsign:3:98ed0f55-69e6-11ec-bb85-0235bf949cb9', 'Activity_0umypog', '[{\"showOrder\":\"0\",\"id\":\"1639659718081\",\"label\":\"同意(会签)\",\"type\":\"multi_agree\"},{\"showOrder\":\"1\",\"id\":\"1639659724119\",\"label\":\"拒绝(会签)\",\"type\":\"multi_refuse\"}]', NULL, NULL, 'ASSIGNEE', NULL, NULL, NULL, NULL); -INSERT INTO `zz_flow_task_ext` VALUES ('flowConsign:3:98ed0f55-69e6-11ec-bb85-0235bf949cb9', 'Activity_1022nty', '[{\"multiSignAssignee\":{\"assigneeList\":\"admin,userA,userB\",\"assigneeType\":\"USER_GROUP\"},\"showOrder\":\"0\",\"id\":\"1634713481202\",\"label\":\"会签\",\"type\":\"multi_sign\"},{\"showOrder\":\"1\",\"id\":\"1634713558334\",\"label\":\"加签\",\"type\":\"multi_consign\"}]', NULL, NULL, 'ASSIGNEE', NULL, NULL, NULL, NULL); -INSERT INTO `zz_flow_task_ext` VALUES ('flowConsign:3:98ed0f55-69e6-11ec-bb85-0235bf949cb9', 'Activity_1h9dd8t', '[{\"showOrder\":\"0\",\"id\":\"1634713969842\",\"label\":\"同意\",\"type\":\"agree\"},{\"showOrder\":\"1\",\"id\":\"1634713975120\",\"label\":\"拒绝\",\"type\":\"refuse\"}]', NULL, NULL, 'ASSIGNEE', NULL, NULL, NULL, NULL); -INSERT INTO `zz_flow_task_ext` VALUES ('flowContract:1:afa45640-3175-11ec-9438-f20b812c0662', 'Activity_053om99', '[{\"showOrder\":\"0\",\"id\":\"1634712564353\",\"label\":\"同意\",\"type\":\"agree\"}]', NULL, NULL, 'DEPT_POST_LEADER', NULL, NULL, NULL, NULL); -INSERT INTO `zz_flow_task_ext` VALUES ('flowContract:1:afa45640-3175-11ec-9438-f20b812c0662', 'Activity_0bciohf', '[{\"showOrder\":\"0\",\"id\":\"1634712553498\",\"label\":\"提交\",\"type\":\"agree\"}]', NULL, NULL, 'DEPT', NULL, NULL, NULL, NULL); -INSERT INTO `zz_flow_task_ext` VALUES ('flowContract:1:afa45640-3175-11ec-9438-f20b812c0662', 'Activity_0dvg4hi', '[{\"showOrder\":\"0\",\"id\":\"1634712820414\",\"label\":\"会签\",\"type\":\"multi_sign\"},{\"showOrder\":\"1\",\"id\":\"1634712828909\",\"label\":\"加签\",\"type\":\"multi_consign\"}]', NULL, NULL, 'POST', NULL, NULL, NULL, NULL); -INSERT INTO `zz_flow_task_ext` VALUES ('flowContract:1:afa45640-3175-11ec-9438-f20b812c0662', 'Activity_0xetc8u', '[{\"showOrder\":\"0\",\"id\":\"1634712668982\",\"label\":\"同意\",\"type\":\"agree\"},{\"showOrder\":\"1\",\"id\":\"1634712672195\",\"label\":\"拒绝\",\"type\":\"refuse\"}]', NULL, NULL, 'POST', NULL, NULL, NULL, NULL); -INSERT INTO `zz_flow_task_ext` VALUES ('flowContract:1:afa45640-3175-11ec-9438-f20b812c0662', 'Activity_0xo14ns', '[{\"showOrder\":\"0\",\"id\":\"1634712945053\",\"label\":\"同意\",\"type\":\"multi_agree\"},{\"showOrder\":\"1\",\"id\":\"1634712951160\",\"label\":\"拒绝\",\"type\":\"multi_refuse\"}]', NULL, NULL, 'DEPT', NULL, NULL, NULL, NULL); -INSERT INTO `zz_flow_task_ext` VALUES ('flowContract:1:afa45640-3175-11ec-9438-f20b812c0662', 'Activity_0z90ali', '[{\"showOrder\":\"0\",\"id\":\"1634712606529\",\"label\":\"同意\",\"type\":\"agree\"}]', NULL, NULL, 'DEPT', NULL, NULL, NULL, NULL); -INSERT INTO `zz_flow_task_ext` VALUES ('flowContract:1:afa45640-3175-11ec-9438-f20b812c0662', 'Activity_17930aj', '[{\"showOrder\":\"0\",\"id\":\"1634712631113\",\"label\":\"同意\",\"type\":\"agree\"}]', NULL, NULL, 'DEPT', NULL, NULL, NULL, NULL); -INSERT INTO `zz_flow_task_ext` VALUES ('flowContract:1:afa45640-3175-11ec-9438-f20b812c0662', 'Activity_1enh5ke', '[{\"showOrder\":\"0\",\"id\":\"1634713156091\",\"label\":\"同意\",\"type\":\"agree\"},{\"showOrder\":\"1\",\"id\":\"1634713159956\",\"label\":\"拒绝\",\"type\":\"refuse\"}]', NULL, NULL, 'DEPT', NULL, NULL, NULL, NULL); -INSERT INTO `zz_flow_task_ext` VALUES ('flowContract:2:7ce26a87-3184-11ec-9f40-f20b812c0662', 'Activity_053om99', '[{\"showOrder\":\"0\",\"id\":\"1634712564353\",\"label\":\"同意\",\"type\":\"agree\"}]', NULL, NULL, 'DEPT_POST_LEADER', NULL, NULL, NULL, NULL); -INSERT INTO `zz_flow_task_ext` VALUES ('flowContract:2:7ce26a87-3184-11ec-9f40-f20b812c0662', 'Activity_0bciohf', '[{\"showOrder\":\"0\",\"id\":\"1634712553498\",\"label\":\"提交\",\"type\":\"agree\"}]', NULL, NULL, 'DEPT', NULL, NULL, NULL, NULL); -INSERT INTO `zz_flow_task_ext` VALUES ('flowContract:2:7ce26a87-3184-11ec-9f40-f20b812c0662', 'Activity_0dvg4hi', '[{\"showOrder\":\"0\",\"id\":\"1634712820414\",\"label\":\"会签\",\"type\":\"multi_sign\"},{\"showOrder\":\"1\",\"id\":\"1634712828909\",\"label\":\"加签\",\"type\":\"multi_consign\"}]', NULL, NULL, 'POST', NULL, NULL, NULL, NULL); -INSERT INTO `zz_flow_task_ext` VALUES ('flowContract:2:7ce26a87-3184-11ec-9f40-f20b812c0662', 'Activity_0xetc8u', '[{\"showOrder\":\"0\",\"id\":\"1634712668982\",\"label\":\"同意\",\"type\":\"agree\"},{\"showOrder\":\"1\",\"id\":\"1634712672195\",\"label\":\"拒绝\",\"type\":\"refuse\"}]', NULL, NULL, 'POST', NULL, NULL, NULL, NULL); -INSERT INTO `zz_flow_task_ext` VALUES ('flowContract:2:7ce26a87-3184-11ec-9f40-f20b812c0662', 'Activity_0xo14ns', '[{\"showOrder\":\"0\",\"id\":\"1634712945053\",\"label\":\"同意\",\"type\":\"multi_agree\"},{\"showOrder\":\"1\",\"id\":\"1634712951160\",\"label\":\"拒绝\",\"type\":\"multi_refuse\"}]', NULL, NULL, 'DEPT', NULL, NULL, NULL, NULL); -INSERT INTO `zz_flow_task_ext` VALUES ('flowContract:2:7ce26a87-3184-11ec-9f40-f20b812c0662', 'Activity_0z90ali', '[{\"showOrder\":\"0\",\"id\":\"1634712606529\",\"label\":\"同意\",\"type\":\"agree\"}]', NULL, NULL, 'DEPT', NULL, NULL, NULL, NULL); -INSERT INTO `zz_flow_task_ext` VALUES ('flowContract:2:7ce26a87-3184-11ec-9f40-f20b812c0662', 'Activity_17930aj', '[{\"showOrder\":\"0\",\"id\":\"1634712631113\",\"label\":\"同意\",\"type\":\"agree\"}]', NULL, NULL, 'DEPT', NULL, NULL, NULL, NULL); -INSERT INTO `zz_flow_task_ext` VALUES ('flowContract:2:7ce26a87-3184-11ec-9f40-f20b812c0662', 'Activity_1enh5ke', '[{\"showOrder\":\"0\",\"id\":\"1634713156091\",\"label\":\"同意\",\"type\":\"agree\"},{\"showOrder\":\"1\",\"id\":\"1634713159956\",\"label\":\"拒绝\",\"type\":\"refuse\"}]', NULL, NULL, 'DEPT', NULL, NULL, NULL, NULL); -INSERT INTO `zz_flow_task_ext` VALUES ('flowContract:3:412c67b1-5e70-11ec-9355-5e4c369e54c1', 'Activity_053om99', '[{\"showOrder\":\"0\",\"id\":\"1634712564353\",\"label\":\"同意\",\"type\":\"agree\"}]', NULL, NULL, 'DEPT_POST_LEADER', NULL, NULL, NULL, NULL); -INSERT INTO `zz_flow_task_ext` VALUES ('flowContract:3:412c67b1-5e70-11ec-9355-5e4c369e54c1', 'Activity_0bciohf', '[{\"showOrder\":\"0\",\"id\":\"1634712553498\",\"label\":\"提交\",\"type\":\"agree\"}]', NULL, NULL, 'ASSIGNEE', NULL, NULL, NULL, NULL); -INSERT INTO `zz_flow_task_ext` VALUES ('flowContract:3:412c67b1-5e70-11ec-9355-5e4c369e54c1', 'Activity_0dvg4hi', '[{\"showOrder\":\"0\",\"id\":\"1634712820414\",\"label\":\"会签\",\"type\":\"multi_sign\"},{\"showOrder\":\"1\",\"id\":\"1634712828909\",\"label\":\"加签\",\"type\":\"multi_consign\"}]', NULL, NULL, 'POST', '[{\"id\":\"deptPost__1440964387979399168\",\"type\":\"deptPost\",\"deptPostId\":\"1440964387979399168\"}]', NULL, NULL, NULL); -INSERT INTO `zz_flow_task_ext` VALUES ('flowContract:3:412c67b1-5e70-11ec-9355-5e4c369e54c1', 'Activity_0xetc8u', '[{\"showOrder\":\"0\",\"id\":\"1634712668982\",\"label\":\"同意\",\"type\":\"agree\"},{\"showOrder\":\"1\",\"id\":\"1634712672195\",\"label\":\"拒绝\",\"type\":\"refuse\"}]', NULL, NULL, 'POST', '[{\"id\":\"deptPost__1440964519391137792\",\"type\":\"deptPost\",\"deptPostId\":\"1440964519391137792\"},{\"id\":\"deptPost__1440964519395332096\",\"type\":\"deptPost\",\"deptPostId\":\"1440964519395332096\"}]', NULL, NULL, NULL); -INSERT INTO `zz_flow_task_ext` VALUES ('flowContract:3:412c67b1-5e70-11ec-9355-5e4c369e54c1', 'Activity_0xo14ns', '[{\"showOrder\":\"0\",\"id\":\"1634712945053\",\"label\":\"同意\",\"type\":\"multi_agree\"},{\"showOrder\":\"1\",\"id\":\"1634712951160\",\"label\":\"拒绝\",\"type\":\"multi_refuse\"}]', NULL, NULL, 'ASSIGNEE', NULL, NULL, NULL, NULL); -INSERT INTO `zz_flow_task_ext` VALUES ('flowContract:3:412c67b1-5e70-11ec-9355-5e4c369e54c1', 'Activity_0z90ali', '[{\"showOrder\":\"0\",\"id\":\"1634712606529\",\"label\":\"同意\",\"type\":\"agree\"}]', NULL, NULL, 'ASSIGNEE', NULL, NULL, NULL, NULL); -INSERT INTO `zz_flow_task_ext` VALUES ('flowContract:3:412c67b1-5e70-11ec-9355-5e4c369e54c1', 'Activity_17930aj', '[{\"showOrder\":\"0\",\"id\":\"1634712631113\",\"label\":\"同意\",\"type\":\"agree\"}]', NULL, NULL, 'USERS', NULL, NULL, NULL, 'admin'); -INSERT INTO `zz_flow_task_ext` VALUES ('flowContract:3:412c67b1-5e70-11ec-9355-5e4c369e54c1', 'Activity_1enh5ke', '[{\"showOrder\":\"0\",\"id\":\"1634713156091\",\"label\":\"同意\",\"type\":\"agree\"},{\"showOrder\":\"1\",\"id\":\"1634713159956\",\"label\":\"拒绝\",\"type\":\"refuse\"}]', NULL, NULL, 'DEPT', NULL, NULL, '1440911410581213416', NULL); -INSERT INTO `zz_flow_task_ext` VALUES ('flowContract:4:9170b562-69e6-11ec-bb85-0235bf949cb9', 'Activity_053om99', '[{\"showOrder\":\"0\",\"id\":\"1634712564353\",\"label\":\"同意\",\"type\":\"agree\"}]', NULL, NULL, 'DEPT_POST_LEADER', NULL, NULL, NULL, NULL); -INSERT INTO `zz_flow_task_ext` VALUES ('flowContract:4:9170b562-69e6-11ec-bb85-0235bf949cb9', 'Activity_0bciohf', '[{\"showOrder\":\"0\",\"id\":\"1634712553498\",\"label\":\"提交\",\"type\":\"agree\"}]', NULL, NULL, 'ASSIGNEE', NULL, NULL, NULL, NULL); -INSERT INTO `zz_flow_task_ext` VALUES ('flowContract:4:9170b562-69e6-11ec-bb85-0235bf949cb9', 'Activity_0dvg4hi', '[{\"showOrder\":\"0\",\"id\":\"1634712820414\",\"label\":\"会签\",\"type\":\"multi_sign\"},{\"showOrder\":\"1\",\"id\":\"1634712828909\",\"label\":\"加签\",\"type\":\"multi_consign\"}]', NULL, NULL, 'POST', '[{\"id\":\"deptPost__1440964387979399168\",\"type\":\"deptPost\",\"deptPostId\":\"1440964387979399168\"}]', NULL, NULL, NULL); -INSERT INTO `zz_flow_task_ext` VALUES ('flowContract:4:9170b562-69e6-11ec-bb85-0235bf949cb9', 'Activity_0xetc8u', '[{\"showOrder\":\"0\",\"id\":\"1634712668982\",\"label\":\"同意\",\"type\":\"agree\"},{\"showOrder\":\"1\",\"id\":\"1634712672195\",\"label\":\"拒绝\",\"type\":\"refuse\"}]', NULL, NULL, 'POST', '[{\"id\":\"deptPost__1440964519391137792\",\"type\":\"deptPost\",\"deptPostId\":\"1440964519391137792\"},{\"id\":\"deptPost__1440964519395332096\",\"type\":\"deptPost\",\"deptPostId\":\"1440964519395332096\"}]', NULL, NULL, NULL); -INSERT INTO `zz_flow_task_ext` VALUES ('flowContract:4:9170b562-69e6-11ec-bb85-0235bf949cb9', 'Activity_0xo14ns', '[{\"showOrder\":\"0\",\"id\":\"1634712945053\",\"label\":\"同意\",\"type\":\"multi_agree\"},{\"showOrder\":\"1\",\"id\":\"1634712951160\",\"label\":\"拒绝\",\"type\":\"multi_refuse\"}]', NULL, NULL, 'ASSIGNEE', NULL, NULL, NULL, NULL); -INSERT INTO `zz_flow_task_ext` VALUES ('flowContract:4:9170b562-69e6-11ec-bb85-0235bf949cb9', 'Activity_0z90ali', '[{\"showOrder\":\"0\",\"id\":\"1634712606529\",\"label\":\"同意\",\"type\":\"agree\"}]', NULL, NULL, 'ASSIGNEE', NULL, NULL, NULL, NULL); -INSERT INTO `zz_flow_task_ext` VALUES ('flowContract:4:9170b562-69e6-11ec-bb85-0235bf949cb9', 'Activity_17930aj', '[{\"showOrder\":\"0\",\"id\":\"1634712631113\",\"label\":\"同意\",\"type\":\"agree\"}]', NULL, NULL, 'USERS', NULL, NULL, NULL, 'admin'); -INSERT INTO `zz_flow_task_ext` VALUES ('flowContract:4:9170b562-69e6-11ec-bb85-0235bf949cb9', 'Activity_1enh5ke', '[{\"showOrder\":\"0\",\"id\":\"1634713156091\",\"label\":\"同意\",\"type\":\"agree\"},{\"showOrder\":\"1\",\"id\":\"1634713159956\",\"label\":\"拒绝\",\"type\":\"refuse\"}]', NULL, NULL, 'DEPT', NULL, NULL, '1440911410581213416', NULL); -INSERT INTO `zz_flow_task_ext` VALUES ('flowLeave:1:ad52c51a-3175-11ec-9438-f20b812c0662', 'Activity_00ibp0u', '[{\"showOrder\":\"0\",\"id\":\"1634711306601\",\"label\":\"同意\",\"type\":\"agree\"},{\"showOrder\":\"1\",\"id\":\"1634711310391\",\"label\":\"拒绝\",\"type\":\"refuse\"}]', NULL, NULL, 'POST', NULL, NULL, NULL, NULL); -INSERT INTO `zz_flow_task_ext` VALUES ('flowLeave:1:ad52c51a-3175-11ec-9438-f20b812c0662', 'Activity_11jr0px', '[{\"showOrder\":\"0\",\"id\":\"1634711147941\",\"label\":\"同意\",\"type\":\"agree\"},{\"showOrder\":\"1\",\"id\":\"1634711151349\",\"label\":\"拒绝\",\"type\":\"refuse\"}]', NULL, NULL, 'DEPT_POST_LEADER', NULL, NULL, NULL, NULL); -INSERT INTO `zz_flow_task_ext` VALUES ('flowLeave:1:ad52c51a-3175-11ec-9438-f20b812c0662', 'Activity_1tb8jka', '[{\"showOrder\":\"0\",\"id\":\"1634711122925\",\"label\":\"提交\",\"type\":\"agree\"}]', NULL, NULL, 'DEPT', NULL, NULL, NULL, NULL); -INSERT INTO `zz_flow_task_ext` VALUES ('flowLeave:2:0aaff445-3179-11ec-9438-f20b812c0662', 'Activity_00ibp0u', '[{\"showOrder\":\"0\",\"id\":\"1634711306601\",\"label\":\"同意\",\"type\":\"agree\"},{\"showOrder\":\"1\",\"id\":\"1634711310391\",\"label\":\"拒绝\",\"type\":\"refuse\"}]', NULL, NULL, 'POST', NULL, NULL, NULL, NULL); -INSERT INTO `zz_flow_task_ext` VALUES ('flowLeave:2:0aaff445-3179-11ec-9438-f20b812c0662', 'Activity_11jr0px', '[{\"showOrder\":\"0\",\"id\":\"1634711147941\",\"label\":\"同意\",\"type\":\"agree\"},{\"showOrder\":\"1\",\"id\":\"1634711151349\",\"label\":\"拒绝\",\"type\":\"refuse\"}]', NULL, NULL, 'DEPT_POST_LEADER', NULL, NULL, NULL, NULL); -INSERT INTO `zz_flow_task_ext` VALUES ('flowLeave:2:0aaff445-3179-11ec-9438-f20b812c0662', 'Activity_1tb8jka', '[{\"showOrder\":\"0\",\"id\":\"1634711122925\",\"label\":\"提交\",\"type\":\"agree\"}]', NULL, NULL, 'DEPT', NULL, NULL, NULL, NULL); -INSERT INTO `zz_flow_task_ext` VALUES ('flowLeave:3:3a65da18-3179-11ec-9438-f20b812c0662', 'Activity_00ibp0u', '[{\"showOrder\":\"0\",\"id\":\"1634711306601\",\"label\":\"同意\",\"type\":\"agree\"},{\"showOrder\":\"1\",\"id\":\"1634711310391\",\"label\":\"拒绝\",\"type\":\"refuse\"}]', NULL, NULL, 'POST', NULL, NULL, NULL, NULL); -INSERT INTO `zz_flow_task_ext` VALUES ('flowLeave:3:3a65da18-3179-11ec-9438-f20b812c0662', 'Activity_11jr0px', '[{\"showOrder\":\"0\",\"id\":\"1634711147941\",\"label\":\"同意\",\"type\":\"agree\"},{\"showOrder\":\"1\",\"id\":\"1634711151349\",\"label\":\"拒绝\",\"type\":\"refuse\"}]', NULL, NULL, 'DEPT_POST_LEADER', NULL, NULL, NULL, NULL); -INSERT INTO `zz_flow_task_ext` VALUES ('flowLeave:3:3a65da18-3179-11ec-9438-f20b812c0662', 'Activity_1tb8jka', '[{\"showOrder\":\"0\",\"id\":\"1634711122925\",\"label\":\"提交\",\"type\":\"agree\"}]', NULL, NULL, 'DEPT', NULL, NULL, NULL, NULL); -INSERT INTO `zz_flow_task_ext` VALUES ('flowLeave:4:8e42a9bb-3179-11ec-9438-f20b812c0662', 'Activity_00ibp0u', '[{\"showOrder\":\"0\",\"id\":\"1634711306601\",\"label\":\"同意\",\"type\":\"agree\"},{\"showOrder\":\"1\",\"id\":\"1634711310391\",\"label\":\"拒绝\",\"type\":\"refuse\"}]', NULL, NULL, 'POST', NULL, NULL, NULL, NULL); -INSERT INTO `zz_flow_task_ext` VALUES ('flowLeave:4:8e42a9bb-3179-11ec-9438-f20b812c0662', 'Activity_11jr0px', '[{\"showOrder\":\"0\",\"id\":\"1634711147941\",\"label\":\"同意\",\"type\":\"agree\"},{\"showOrder\":\"1\",\"id\":\"1634711151349\",\"label\":\"拒绝\",\"type\":\"refuse\"}]', NULL, NULL, 'DEPT_POST_LEADER', NULL, NULL, NULL, NULL); -INSERT INTO `zz_flow_task_ext` VALUES ('flowLeave:4:8e42a9bb-3179-11ec-9438-f20b812c0662', 'Activity_1tb8jka', '[{\"showOrder\":\"0\",\"id\":\"1634711122925\",\"label\":\"提交\",\"type\":\"agree\"}]', NULL, NULL, 'DEPT', NULL, NULL, NULL, NULL); -INSERT INTO `zz_flow_task_ext` VALUES ('flowLeave:5:3eea05b0-317d-11ec-9438-f20b812c0662', 'Activity_00ibp0u', '[{\"showOrder\":\"0\",\"id\":\"1634711306601\",\"label\":\"同意\",\"type\":\"agree\"},{\"showOrder\":\"1\",\"id\":\"1634711310391\",\"label\":\"拒绝\",\"type\":\"refuse\"}]', NULL, NULL, 'POST', NULL, NULL, NULL, NULL); -INSERT INTO `zz_flow_task_ext` VALUES ('flowLeave:5:3eea05b0-317d-11ec-9438-f20b812c0662', 'Activity_11jr0px', '[{\"showOrder\":\"0\",\"id\":\"1634711147941\",\"label\":\"同意\",\"type\":\"agree\"},{\"showOrder\":\"1\",\"id\":\"1634711151349\",\"label\":\"拒绝\",\"type\":\"refuse\"}]', NULL, NULL, 'DEPT_POST_LEADER', NULL, NULL, NULL, NULL); -INSERT INTO `zz_flow_task_ext` VALUES ('flowLeave:5:3eea05b0-317d-11ec-9438-f20b812c0662', 'Activity_1tb8jka', '[{\"showOrder\":\"0\",\"id\":\"1634711122925\",\"label\":\"提交\",\"type\":\"agree\"}]', NULL, NULL, 'DEPT', NULL, NULL, NULL, NULL); -INSERT INTO `zz_flow_task_ext` VALUES ('flowLeave:6:79b100b1-3184-11ec-9f40-f20b812c0662', 'Activity_00ibp0u', '[{\"showOrder\":\"0\",\"id\":\"1634711306601\",\"label\":\"同意\",\"type\":\"agree\"},{\"showOrder\":\"1\",\"id\":\"1634711310391\",\"label\":\"拒绝\",\"type\":\"refuse\"}]', NULL, NULL, 'POST', NULL, NULL, NULL, NULL); -INSERT INTO `zz_flow_task_ext` VALUES ('flowLeave:6:79b100b1-3184-11ec-9f40-f20b812c0662', 'Activity_11jr0px', '[{\"showOrder\":\"0\",\"id\":\"1634711147941\",\"label\":\"同意\",\"type\":\"agree\"},{\"showOrder\":\"1\",\"id\":\"1634711151349\",\"label\":\"拒绝\",\"type\":\"refuse\"}]', NULL, NULL, 'DEPT_POST_LEADER', NULL, NULL, NULL, NULL); -INSERT INTO `zz_flow_task_ext` VALUES ('flowLeave:6:79b100b1-3184-11ec-9f40-f20b812c0662', 'Activity_1tb8jka', '[{\"showOrder\":\"0\",\"id\":\"1634711122925\",\"label\":\"提交\",\"type\":\"agree\"}]', NULL, NULL, 'DEPT', NULL, NULL, NULL, NULL); -INSERT INTO `zz_flow_task_ext` VALUES ('flowLeave:7:98337350-3186-11ec-bf2d-f20b812c0662', 'Activity_00ibp0u', '[{\"showOrder\":\"0\",\"id\":\"1634711306601\",\"label\":\"同意\",\"type\":\"agree\"},{\"showOrder\":\"1\",\"id\":\"1634711310391\",\"label\":\"拒绝\",\"type\":\"refuse\"}]', NULL, NULL, 'POST', NULL, NULL, NULL, NULL); -INSERT INTO `zz_flow_task_ext` VALUES ('flowLeave:7:98337350-3186-11ec-bf2d-f20b812c0662', 'Activity_11jr0px', '[{\"showOrder\":\"0\",\"id\":\"1634711147941\",\"label\":\"同意\",\"type\":\"agree\"},{\"showOrder\":\"1\",\"id\":\"1634711151349\",\"label\":\"拒绝\",\"type\":\"refuse\"}]', NULL, NULL, 'DEPT_POST_LEADER', NULL, NULL, NULL, NULL); -INSERT INTO `zz_flow_task_ext` VALUES ('flowLeave:7:98337350-3186-11ec-bf2d-f20b812c0662', 'Activity_1tb8jka', '[{\"showOrder\":\"0\",\"id\":\"1634711122925\",\"label\":\"提交\",\"type\":\"agree\"}]', NULL, NULL, 'DEPT', NULL, NULL, NULL, NULL); -INSERT INTO `zz_flow_task_ext` VALUES ('flowLeave:8:1a9b02fb-5e6f-11ec-9355-5e4c369e54c1', 'Activity_00ibp0u', '[{\"showOrder\":\"0\",\"id\":\"1634711306601\",\"label\":\"同意\",\"type\":\"agree\"},{\"showOrder\":\"1\",\"id\":\"1634711310391\",\"label\":\"拒绝\",\"type\":\"refuse\"}]', NULL, NULL, 'POST', '[{\"id\":\"deptPost__1440964221780103168\",\"type\":\"deptPost\",\"deptPostId\":\"1440964221780103168\"}]', NULL, NULL, NULL); -INSERT INTO `zz_flow_task_ext` VALUES ('flowLeave:8:1a9b02fb-5e6f-11ec-9355-5e4c369e54c1', 'Activity_11jr0px', '[{\"showOrder\":\"0\",\"id\":\"1634711147941\",\"label\":\"同意\",\"type\":\"agree\"},{\"showOrder\":\"1\",\"id\":\"1634711151349\",\"label\":\"拒绝\",\"type\":\"refuse\"}]', NULL, NULL, 'DEPT_POST_LEADER', NULL, NULL, NULL, NULL); -INSERT INTO `zz_flow_task_ext` VALUES ('flowLeave:8:1a9b02fb-5e6f-11ec-9355-5e4c369e54c1', 'Activity_1tb8jka', '[{\"showOrder\":\"0\",\"id\":\"1634711122925\",\"label\":\"提交\",\"type\":\"agree\"}]', NULL, NULL, 'ASSIGNEE', NULL, NULL, NULL, NULL); -INSERT INTO `zz_flow_task_ext` VALUES ('flowLeave:9:7d23427c-69e6-11ec-bb85-0235bf949cb9', 'Activity_00ibp0u', '[{\"showOrder\":\"0\",\"id\":\"1634711306601\",\"label\":\"同意\",\"type\":\"agree\"},{\"showOrder\":\"1\",\"id\":\"1634711310391\",\"label\":\"拒绝\",\"type\":\"refuse\"}]', NULL, NULL, 'POST', '[{\"id\":\"deptPost__1440964221780103168\",\"type\":\"deptPost\",\"deptPostId\":\"1440964221780103168\"}]', NULL, NULL, NULL); -INSERT INTO `zz_flow_task_ext` VALUES ('flowLeave:9:7d23427c-69e6-11ec-bb85-0235bf949cb9', 'Activity_11jr0px', '[{\"showOrder\":\"0\",\"id\":\"1634711147941\",\"label\":\"同意\",\"type\":\"agree\"},{\"showOrder\":\"1\",\"id\":\"1634711151349\",\"label\":\"拒绝\",\"type\":\"refuse\"}]', NULL, NULL, 'DEPT_POST_LEADER', NULL, NULL, NULL, NULL); -INSERT INTO `zz_flow_task_ext` VALUES ('flowLeave:9:7d23427c-69e6-11ec-bb85-0235bf949cb9', 'Activity_1tb8jka', '[{\"showOrder\":\"0\",\"id\":\"1634711122925\",\"label\":\"提交\",\"type\":\"agree\"}]', NULL, NULL, 'ASSIGNEE', NULL, NULL, NULL, NULL); -INSERT INTO `zz_flow_task_ext` VALUES ('flowSubmit:1:ae87c2ad-3175-11ec-9438-f20b812c0662', 'Activity_04scn2o', '[{\"showOrder\":\"0\",\"id\":\"1634711812646\",\"label\":\"同意\",\"type\":\"agree\"},{\"showOrder\":\"1\",\"id\":\"1634711815984\",\"label\":\"拒绝\",\"type\":\"refuse\"}]', '[{\"variableType\":1,\"showName\":\"报销金额\",\"variableName\":\"totalAmount\",\"bindColumnId\":1440946127493926912,\"createTime\":1634711382000,\"builtin\":false,\"bindDatasourceId\":1440946127531675648,\"variableId\":1450710800854421504,\"entryId\":1450710743367290880}]', NULL, 'DEPT_POST_LEADER', NULL, NULL, NULL, NULL); -INSERT INTO `zz_flow_task_ext` VALUES ('flowSubmit:1:ae87c2ad-3175-11ec-9438-f20b812c0662', 'Activity_1cs4bi5', '[{\"showOrder\":\"0\",\"id\":\"1634711803796\",\"label\":\"提交\",\"type\":\"agree\"}]', NULL, NULL, 'DEPT', NULL, NULL, NULL, NULL); -INSERT INTO `zz_flow_task_ext` VALUES ('flowSubmit:1:ae87c2ad-3175-11ec-9438-f20b812c0662', 'Activity_1w23xfe', '[{\"showOrder\":\"0\",\"id\":\"1634711883901\",\"label\":\"同意\",\"type\":\"agree\"},{\"showOrder\":\"1\",\"id\":\"1634711887322\",\"label\":\"拒绝\",\"type\":\"refuse\"}]', NULL, NULL, 'DEPT', NULL, NULL, NULL, NULL); -INSERT INTO `zz_flow_task_ext` VALUES ('flowSubmit:2:7b6651d4-3184-11ec-9f40-f20b812c0662', 'Activity_04scn2o', '[{\"showOrder\":\"0\",\"id\":\"1634711812646\",\"label\":\"同意\",\"type\":\"agree\"},{\"showOrder\":\"1\",\"id\":\"1634711815984\",\"label\":\"拒绝\",\"type\":\"refuse\"}]', '[{\"variableType\":1,\"showName\":\"报销金额\",\"variableName\":\"totalAmount\",\"bindColumnId\":1440946127493926912,\"createTime\":1634711382000,\"builtin\":false,\"bindDatasourceId\":1440946127531675648,\"variableId\":1450710800854421504,\"entryId\":1450710743367290880}]', NULL, 'DEPT_POST_LEADER', NULL, NULL, NULL, NULL); -INSERT INTO `zz_flow_task_ext` VALUES ('flowSubmit:2:7b6651d4-3184-11ec-9f40-f20b812c0662', 'Activity_1cs4bi5', '[{\"showOrder\":\"0\",\"id\":\"1634711803796\",\"label\":\"提交\",\"type\":\"agree\"}]', NULL, NULL, 'DEPT', NULL, NULL, NULL, NULL); -INSERT INTO `zz_flow_task_ext` VALUES ('flowSubmit:2:7b6651d4-3184-11ec-9f40-f20b812c0662', 'Activity_1w23xfe', '[{\"showOrder\":\"0\",\"id\":\"1634711883901\",\"label\":\"同意\",\"type\":\"agree\"},{\"showOrder\":\"1\",\"id\":\"1634711887322\",\"label\":\"拒绝\",\"type\":\"refuse\"}]', NULL, NULL, 'DEPT', NULL, NULL, NULL, NULL); -INSERT INTO `zz_flow_task_ext` VALUES ('flowSubmit:3:39b2742e-5e6f-11ec-9355-5e4c369e54c1', 'Activity_04scn2o', '[{\"showOrder\":\"0\",\"id\":\"1634711812646\",\"label\":\"同意\",\"type\":\"agree\"},{\"showOrder\":\"1\",\"id\":\"1634711815984\",\"label\":\"拒绝\",\"type\":\"refuse\"}]', '[{\"variableType\":1,\"showName\":\"报销金额\",\"variableName\":\"totalAmount\",\"bindColumnId\":1440946127493926912,\"createTime\":1634711382000,\"builtin\":false,\"bindDatasourceId\":1440946127531675648,\"variableId\":1450710800854421504,\"entryId\":1450710743367290880}]', NULL, 'DEPT_POST_LEADER', NULL, NULL, NULL, NULL); -INSERT INTO `zz_flow_task_ext` VALUES ('flowSubmit:3:39b2742e-5e6f-11ec-9355-5e4c369e54c1', 'Activity_1cs4bi5', '[{\"showOrder\":\"0\",\"id\":\"1634711803796\",\"label\":\"提交\",\"type\":\"agree\"}]', NULL, NULL, 'ASSIGNEE', NULL, NULL, NULL, NULL); -INSERT INTO `zz_flow_task_ext` VALUES ('flowSubmit:3:39b2742e-5e6f-11ec-9355-5e4c369e54c1', 'Activity_1w23xfe', '[{\"showOrder\":\"0\",\"id\":\"1634711883901\",\"label\":\"同意\",\"type\":\"agree\"},{\"showOrder\":\"1\",\"id\":\"1634711887322\",\"label\":\"拒绝\",\"type\":\"refuse\"}]', NULL, NULL, 'DEPT', NULL, NULL, '1440911410581213416', NULL); -INSERT INTO `zz_flow_task_ext` VALUES ('flowSubmit:4:87e59faf-69e6-11ec-bb85-0235bf949cb9', 'Activity_04scn2o', '[{\"showOrder\":\"0\",\"id\":\"1634711812646\",\"label\":\"同意\",\"type\":\"agree\"},{\"showOrder\":\"1\",\"id\":\"1634711815984\",\"label\":\"拒绝\",\"type\":\"refuse\"}]', '[{\"variableType\":1,\"showName\":\"报销金额\",\"variableName\":\"totalAmount\",\"bindColumnId\":1440946127493926912,\"createTime\":1634711382000,\"builtin\":false,\"bindDatasourceId\":1440946127531675648,\"variableId\":1450710800854421504,\"entryId\":1450710743367290880}]', NULL, 'DEPT_POST_LEADER', NULL, NULL, NULL, NULL); -INSERT INTO `zz_flow_task_ext` VALUES ('flowSubmit:4:87e59faf-69e6-11ec-bb85-0235bf949cb9', 'Activity_1cs4bi5', '[{\"showOrder\":\"0\",\"id\":\"1634711803796\",\"label\":\"提交\",\"type\":\"agree\"}]', NULL, NULL, 'ASSIGNEE', NULL, NULL, NULL, NULL); -INSERT INTO `zz_flow_task_ext` VALUES ('flowSubmit:4:87e59faf-69e6-11ec-bb85-0235bf949cb9', 'Activity_1w23xfe', '[{\"showOrder\":\"0\",\"id\":\"1634711883901\",\"label\":\"同意\",\"type\":\"agree\"},{\"showOrder\":\"1\",\"id\":\"1634711887322\",\"label\":\"拒绝\",\"type\":\"refuse\"}]', NULL, NULL, 'DEPT', NULL, NULL, '1440911410581213416', NULL); -INSERT INTO `zz_flow_task_ext` VALUES ('flowTranslate:1:b28cd036-3175-11ec-9438-f20b812c0662', 'Activity_0c6nxdm', '[{\"showOrder\":\"0\",\"id\":\"1634714128552\",\"label\":\"提交\",\"type\":\"agree\"}]', NULL, NULL, 'DEPT', NULL, NULL, NULL, NULL); -INSERT INTO `zz_flow_task_ext` VALUES ('flowTranslate:1:b28cd036-3175-11ec-9438-f20b812c0662', 'Activity_0wwsi9w', '[{\"showOrder\":\"0\",\"id\":\"1634714140300\",\"label\":\"同意\",\"type\":\"agree\"},{\"showOrder\":\"1\",\"id\":\"1634714144449\",\"label\":\"转办\",\"type\":\"transfer\"}]', NULL, NULL, 'DEPT', NULL, NULL, NULL, NULL); -INSERT INTO `zz_flow_task_ext` VALUES ('flowTranslate:2:8ab7c467-5e70-11ec-9355-5e4c369e54c1', 'Activity_0c6nxdm', '[{\"showOrder\":\"0\",\"id\":\"1634714128552\",\"label\":\"提交\",\"type\":\"agree\"}]', NULL, NULL, 'ASSIGNEE', NULL, NULL, NULL, NULL); -INSERT INTO `zz_flow_task_ext` VALUES ('flowTranslate:2:8ab7c467-5e70-11ec-9355-5e4c369e54c1', 'Activity_0wwsi9w', '[{\"showOrder\":\"0\",\"id\":\"1634714140300\",\"label\":\"同意\",\"type\":\"agree\"},{\"showOrder\":\"1\",\"id\":\"1634714144449\",\"label\":\"转办\",\"type\":\"transfer\"}]', NULL, NULL, 'ASSIGNEE', NULL, NULL, NULL, NULL); -INSERT INTO `zz_flow_task_ext` VALUES ('flowTranslate:3:a0888a08-69e6-11ec-bb85-0235bf949cb9', 'Activity_0c6nxdm', '[{\"showOrder\":\"0\",\"id\":\"1634714128552\",\"label\":\"提交\",\"type\":\"agree\"}]', NULL, NULL, 'ASSIGNEE', NULL, NULL, NULL, NULL); -INSERT INTO `zz_flow_task_ext` VALUES ('flowTranslate:3:a0888a08-69e6-11ec-bb85-0235bf949cb9', 'Activity_0wwsi9w', '[{\"showOrder\":\"0\",\"id\":\"1634714140300\",\"label\":\"同意\",\"type\":\"agree\"},{\"showOrder\":\"1\",\"id\":\"1634714144449\",\"label\":\"转办\",\"type\":\"transfer\"}]', NULL, NULL, 'ASSIGNEE', NULL, NULL, NULL, NULL); -COMMIT; - --- ---------------------------- --- Table structure for zz_flow_work_order --- ---------------------------- -DROP TABLE IF EXISTS `zz_flow_work_order`; -CREATE TABLE `zz_flow_work_order` ( - `work_order_id` bigint NOT NULL COMMENT '主键Id', - `process_definition_key` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '流程定义标识', - `process_definition_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '流程名称', - `process_definition_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '流程引擎的定义Id', - `process_instance_id` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '流程实例Id', - `online_table_id` bigint DEFAULT NULL COMMENT '在线表单的主表Id', - `table_name` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '静态表单名称', - `business_key` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '业务主键值', - `task_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '未完成的任务Id', - `task_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '未完成的任务名称', - `task_definition_key` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '未完成的任务标识', - `flow_status` int NOT NULL DEFAULT '0' COMMENT '流程状态', - `submit_username` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '提交用户登录名称', - `dept_id` bigint NOT NULL COMMENT '提交用户所在部门Id', - `update_time` datetime NOT NULL COMMENT '更新时间', - `update_user_id` bigint NOT NULL COMMENT '更新者Id', - `create_time` datetime NOT NULL COMMENT '创建时间', - `create_user_id` bigint NOT NULL COMMENT '创建者Id', - `deleted_flag` int NOT NULL COMMENT '逻辑删除标记(1: 正常 -1: 已删除)', - PRIMARY KEY (`work_order_id`) USING BTREE, - UNIQUE KEY `uk_process_instance_id` (`process_instance_id`) USING BTREE, - KEY `idx_process_definition_key` (`process_definition_key`) USING BTREE, - KEY `idx_create_user_id` (`create_user_id`) USING BTREE, - KEY `idx_create_time` (`create_time`) USING BTREE, - KEY `idx_dept_id` (`dept_id`) USING BTREE, - KEY `idx_business_key` (`business_key`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; - --- ---------------------------- --- Records of zz_flow_work_order --- ---------------------------- -BEGIN; -INSERT INTO `zz_flow_work_order` VALUES (1450732253410758656, 'flowTranslate', '转办流程', 'flowTranslate:1:b28cd036-3175-11ec-9438-f20b812c0662', '04b2aec5-317b-11ec-9438-f20b812c0662', 1440945228079960064, NULL, '1450732253180071936', NULL, NULL, NULL, 3, 'userD', 1440963698460987392, '2021-10-20 15:55:28', 1440966324770574336, '2021-10-20 15:54:57', 1440966324770574336, 1); -INSERT INTO `zz_flow_work_order` VALUES (1450745975625748480, 'flowLeave', '请假申请', 'flowLeave:4:8e42a9bb-3179-11ec-9438-f20b812c0662', '8de8b46c-3182-11ec-a0b7-f20b812c0662', 1440945228079960064, NULL, '1450745828686696448', NULL, NULL, NULL, 0, 'userD', 1440963698460987392, '2021-10-20 16:49:29', 1440966324770574336, '2021-10-20 16:49:29', 1440966324770574336, 1); -INSERT INTO `zz_flow_work_order` VALUES (1450747313042493440, 'flowLeave', '请假申请', 'flowLeave:4:8e42a9bb-3179-11ec-9438-f20b812c0662', '5b6b546a-3183-11ec-ad5a-f20b812c0662', 1440945228079960064, NULL, '1450747274836578304', NULL, NULL, NULL, 3, 'userD', 1440963698460987392, '2021-10-20 16:57:52', 1440965465605148672, '2021-10-20 16:54:48', 1440966324770574336, 1); -INSERT INTO `zz_flow_work_order` VALUES (1450748609258590208, 'flowSubmit', '报销申请', 'flowSubmit:1:ae87c2ad-3175-11ec-9438-f20b812c0662', '190031da-3184-11ec-ad5a-f20b812c0662', 1440946127460372480, NULL, '1450748608977571840', NULL, NULL, NULL, 3, 'userD', 1440963698460987392, '2021-10-20 17:00:41', 1440911410581213417, '2021-10-20 16:59:57', 1440966324770574336, 1); -INSERT INTO `zz_flow_work_order` VALUES (1450749438946447360, 'flowLeave', '请假申请', 'flowLeave:6:79b100b1-3184-11ec-9f40-f20b812c0662', '8edf84c8-3184-11ec-9f40-f20b812c0662', 1440945228079960064, NULL, '1450749438409576448', NULL, NULL, NULL, 3, 'userD', 1440963698460987392, '2021-10-20 17:03:59', 1440965465605148672, '2021-10-20 17:03:15', 1440966324770574336, 1); -INSERT INTO `zz_flow_work_order` VALUES (1450750096936275968, 'flowContract', '合同审批', 'flowContract:2:7ce26a87-3184-11ec-9f40-f20b812c0662', 'ec6ca594-3184-11ec-9f40-f20b812c0662', 1440952815294877696, NULL, '1450750096739143680', NULL, NULL, NULL, 3, 'userD', 1440963698460987392, '2021-10-20 17:09:53', 1440969706411397120, '2021-10-20 17:05:51', 1440966324770574336, 1); -INSERT INTO `zz_flow_work_order` VALUES (1450753187605647360, 'flowLeave', '请假申请', 'flowLeave:7:98337350-3186-11ec-bf2d-f20b812c0662', 'a396f281-3186-11ec-bf2d-f20b812c0662', 1440945228079960064, NULL, '1450753187064582144', NULL, NULL, NULL, 0, 'userD', 1440963698460987392, '2021-10-20 17:18:08', 1440966324770574336, '2021-10-20 17:18:08', 1440966324770574336, 1); -INSERT INTO `zz_flow_work_order` VALUES (1476751924081463296, 'flowLeave', '请假申请', 'flowLeave:9:7d23427c-69e6-11ec-bb85-0235bf949cb9', 'd6423389-69e6-11ec-bb85-0235bf949cb9', 1440945228079960064, NULL, '1476751923557175296', NULL, NULL, NULL, 0, 'admin', 1440911410581213416, '2021-12-31 11:07:50', 1440911410581213417, '2021-12-31 11:07:50', 1440911410581213417, 1); -INSERT INTO `zz_flow_work_order` VALUES (1476751964678131712, 'flowSubmit', '报销申请', 'flowSubmit:4:87e59faf-69e6-11ec-bb85-0235bf949cb9', 'dc101a4d-69e6-11ec-bb85-0235bf949cb9', 1440946127460372480, NULL, '1476751964434862080', NULL, NULL, NULL, 0, 'admin', 1440911410581213416, '2021-12-31 11:08:00', 1440911410581213417, '2021-12-31 11:08:00', 1440911410581213417, 1); -INSERT INTO `zz_flow_work_order` VALUES (1476752006998659072, 'flowContract', '合同审批', 'flowContract:4:9170b562-69e6-11ec-bb85-0235bf949cb9', 'e214ef91-69e6-11ec-bb85-0235bf949cb9', 1440952815294877696, NULL, '1476752006788943872', NULL, NULL, NULL, 4, 'admin', 1440911410581213416, '2021-12-31 11:13:54', 1440911410581213417, '2021-12-31 11:08:10', 1440911410581213417, 1); -INSERT INTO `zz_flow_work_order` VALUES (1476752044638343168, 'flowConsign', '多实例加签', 'flowConsign:3:98ed0f55-69e6-11ec-bb85-0235bf949cb9', 'e76568f5-69e6-11ec-bb85-0235bf949cb9', 1440945228079960064, NULL, '1476752044185358336', NULL, NULL, NULL, 4, 'admin', 1440911410581213416, '2021-12-31 11:13:49', 1440911410581213417, '2021-12-31 11:08:19', 1440911410581213417, -1); -INSERT INTO `zz_flow_work_order` VALUES (1476752083557289984, 'flowTranslate', '转办流程', 'flowTranslate:3:a0888a08-69e6-11ec-bb85-0235bf949cb9', 'ecf66d42-69e6-11ec-bb85-0235bf949cb9', 1440945228079960064, NULL, '1476752083360157696', NULL, NULL, NULL, 4, 'admin', 1440911410581213416, '2021-12-31 11:13:45', 1440911410581213417, '2021-12-31 11:08:28', 1440911410581213417, -1); -COMMIT; - --- ---------------------------- --- Table structure for zz_online_column --- ---------------------------- -DROP TABLE IF EXISTS `zz_online_column`; -CREATE TABLE `zz_online_column` ( - `column_id` bigint NOT NULL COMMENT '主键Id', - `column_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '字段名', - `table_id` bigint NOT NULL COMMENT '数据表Id', - `column_type` varchar(32) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '数据表中的字段类型', - `full_column_type` varchar(32) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '数据表中的完整字段类型(包括了精度和刻度)', - `primary_key` bit(1) NOT NULL COMMENT '是否为主键', - `auto_increment` bit(1) NOT NULL COMMENT '是否是自增主键(0: 不是 1: 是)', - `nullable` bit(1) NOT NULL COMMENT '是否可以为空 (0: 不可以为空 1: 可以为空)', - `column_default` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL COMMENT '缺省值', - `column_show_order` int NOT NULL COMMENT '字段在数据表中的显示位置', - `column_comment` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL COMMENT '数据表中的字段注释', - `object_field_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '对象映射字段名称', - `object_field_type` varchar(32) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '对象映射字段类型', - `filter_type` int NOT NULL DEFAULT '1' COMMENT '字段过滤类型', - `parent_key` bit(1) NOT NULL COMMENT '是否是主键的父Id', - `dept_filter` bit(1) NOT NULL COMMENT '是否部门过滤字段', - `user_filter` bit(1) NOT NULL COMMENT '是否用户过滤字段', - `field_kind` int DEFAULT NULL COMMENT '字段类别', - `max_file_count` int DEFAULT NULL COMMENT '包含的文件文件数量,0表示无限制', - `dict_id` bigint DEFAULT NULL COMMENT '字典Id', - `update_time` datetime NOT NULL COMMENT '更新时间', - `create_time` datetime NOT NULL COMMENT '创建时间', - PRIMARY KEY (`column_id`), - KEY `idx_table_id` (`table_id`) USING BTREE, - KEY `idx_dict_id` (`dict_id`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; - --- ---------------------------- --- Records of zz_online_column --- ---------------------------- -BEGIN; -INSERT INTO `zz_online_column` VALUES (1440945228088348672, 'id', 1440945228079960064, 'bigint', 'bigint(20)', b'1', b'0', b'0', NULL, 1, '主键Id', 'id', 'Long', 0, b'0', b'0', b'0', NULL, NULL, NULL, '2021-09-23 15:44:49', '2021-09-23 15:44:49'); -INSERT INTO `zz_online_column` VALUES (1440945228092542976, 'user_id', 1440945228079960064, 'bigint', 'bigint(20)', b'0', b'0', b'0', NULL, 2, '请假用户', 'userId', 'Long', 0, b'0', b'0', b'0', 21, NULL, 1440944417170001920, '2021-09-24 09:29:41', '2021-09-23 15:44:49'); -INSERT INTO `zz_online_column` VALUES (1440945228100931584, 'leave_reason', 1440945228079960064, 'varchar', 'varchar(512)', b'0', b'0', b'0', NULL, 3, '请假原因', 'leaveReason', 'String', 0, b'0', b'0', b'0', NULL, NULL, NULL, '2021-09-23 15:44:49', '2021-09-23 15:44:49'); -INSERT INTO `zz_online_column` VALUES (1440945228105125888, 'leave_type', 1440945228079960064, 'int', 'int(11)', b'0', b'0', b'0', NULL, 4, '请假类型', 'leaveType', 'Integer', 0, b'0', b'0', b'0', NULL, NULL, 1440943031288074240, '2021-09-23 15:45:01', '2021-09-23 15:44:49'); -INSERT INTO `zz_online_column` VALUES (1440945228113514496, 'leave_begin_time', 1440945228079960064, 'datetime', 'datetime', b'0', b'0', b'0', NULL, 5, '请假开始时间', 'leaveBeginTime', 'Date', 0, b'0', b'0', b'0', NULL, NULL, NULL, '2021-09-23 15:44:49', '2021-09-23 15:44:49'); -INSERT INTO `zz_online_column` VALUES (1440945228117708800, 'leave_end_time', 1440945228079960064, 'datetime', 'datetime', b'0', b'0', b'0', NULL, 6, '请假结束时间', 'leaveEndTime', 'Date', 0, b'0', b'0', b'0', NULL, NULL, NULL, '2021-09-23 15:44:49', '2021-09-23 15:44:49'); -INSERT INTO `zz_online_column` VALUES (1440945228126097408, 'apply_time', 1440945228079960064, 'datetime', 'datetime', b'0', b'0', b'0', NULL, 7, '申请时间', 'applyTime', 'Date', 0, b'0', b'0', b'0', 20, NULL, NULL, '2021-09-23 15:45:06', '2021-09-23 15:44:49'); -INSERT INTO `zz_online_column` VALUES (1440946127468761088, 'id', 1440946127460372480, 'bigint', 'bigint(20)', b'1', b'0', b'0', NULL, 1, '主键Id', 'id', 'Long', 0, b'0', b'0', b'0', NULL, NULL, NULL, '2021-09-23 15:48:23', '2021-09-23 15:48:23'); -INSERT INTO `zz_online_column` VALUES (1440946127481344000, 'submit_name', 1440946127460372480, 'varchar', 'varchar(255)', b'0', b'0', b'0', NULL, 2, '报销名称', 'submitName', 'String', 0, b'0', b'0', b'0', NULL, NULL, NULL, '2021-09-23 15:48:23', '2021-09-23 15:48:23'); -INSERT INTO `zz_online_column` VALUES (1440946127489732608, 'submit_kind', 1440946127460372480, 'int', 'int(11)', b'0', b'0', b'0', NULL, 3, '报销类别', 'submitKind', 'Integer', 0, b'0', b'0', b'0', NULL, NULL, 1440943168626364416, '2021-09-23 15:49:11', '2021-09-23 15:48:23'); -INSERT INTO `zz_online_column` VALUES (1440946127493926912, 'total_amount', 1440946127460372480, 'int', 'int(11)', b'0', b'0', b'0', NULL, 4, '报销金额', 'totalAmount', 'Integer', 0, b'0', b'0', b'0', NULL, NULL, NULL, '2021-09-23 15:49:52', '2021-09-23 15:48:23'); -INSERT INTO `zz_online_column` VALUES (1440946127498121216, 'description', 1440946127460372480, 'varchar', 'varchar(512)', b'0', b'0', b'0', NULL, 5, '报销描述', 'description', 'String', 0, b'0', b'0', b'0', NULL, NULL, NULL, '2021-09-23 15:48:23', '2021-09-23 15:48:23'); -INSERT INTO `zz_online_column` VALUES (1440946127506509824, 'memo', 1440946127460372480, 'varchar', 'varchar(512)', b'0', b'0', b'1', NULL, 6, '备注', 'memo', 'String', 0, b'0', b'0', b'0', NULL, NULL, NULL, '2021-09-23 15:48:23', '2021-09-23 15:48:23'); -INSERT INTO `zz_online_column` VALUES (1440946127510704128, 'update_user_id', 1440946127460372480, 'bigint', 'bigint(20)', b'0', b'0', b'1', NULL, 7, '修改人', 'updateUserId', 'Long', 0, b'0', b'0', b'0', 23, NULL, NULL, '2021-09-23 15:50:04', '2021-09-23 15:48:23'); -INSERT INTO `zz_online_column` VALUES (1440946127514898432, 'update_time', 1440946127460372480, 'datetime', 'datetime', b'0', b'0', b'1', NULL, 8, '修改时间', 'updateTime', 'Date', 0, b'0', b'0', b'0', 22, NULL, NULL, '2021-09-23 15:50:08', '2021-09-23 15:48:23'); -INSERT INTO `zz_online_column` VALUES (1440946127523287040, 'create_user_id', 1440946127460372480, 'bigint', 'bigint(20)', b'0', b'0', b'0', NULL, 9, '创建人', 'createUserId', 'Long', 0, b'0', b'0', b'0', 21, NULL, NULL, '2021-09-23 15:50:12', '2021-09-23 15:48:23'); -INSERT INTO `zz_online_column` VALUES (1440946127527481344, 'create_time', 1440946127460372480, 'datetime', 'datetime', b'0', b'0', b'0', NULL, 10, '创建时间', 'createTime', 'Date', 0, b'0', b'0', b'0', 20, NULL, NULL, '2021-09-23 15:50:16', '2021-09-23 15:48:23'); -INSERT INTO `zz_online_column` VALUES (1440947089222668288, 'id', 1440947089218473984, 'bigint', 'bigint(20)', b'1', b'0', b'0', NULL, 1, '主键Id', 'id', 'Long', 0, b'0', b'0', b'0', NULL, NULL, NULL, '2021-09-23 15:52:12', '2021-09-23 15:52:12'); -INSERT INTO `zz_online_column` VALUES (1440947089231056896, 'submit_id', 1440947089218473984, 'bigint', 'bigint(20)', b'0', b'0', b'0', NULL, 2, '报销单据Id', 'submitId', 'Long', 1, b'0', b'0', b'0', NULL, NULL, NULL, '2021-09-23 15:57:41', '2021-09-23 15:52:12'); -INSERT INTO `zz_online_column` VALUES (1440947089235251200, 'expense_type', 1440947089218473984, 'int', 'int(11)', b'0', b'0', b'0', NULL, 3, '费用类型', 'expenseType', 'Integer', 0, b'0', b'0', b'0', NULL, NULL, 1440943309924077568, '2021-09-23 15:53:15', '2021-09-23 15:52:12'); -INSERT INTO `zz_online_column` VALUES (1440947089243639808, 'expense_time', 1440947089218473984, 'datetime', 'datetime', b'0', b'0', b'0', NULL, 4, '发生日期', 'expenseTime', 'Date', 0, b'0', b'0', b'0', NULL, NULL, NULL, '2021-09-23 15:52:12', '2021-09-23 15:52:12'); -INSERT INTO `zz_online_column` VALUES (1440947089252028416, 'amount', 1440947089218473984, 'int', 'int(11)', b'0', b'0', b'0', NULL, 5, '金额', 'amount', 'Integer', 0, b'0', b'0', b'0', NULL, NULL, NULL, '2021-09-23 15:52:12', '2021-09-23 15:52:12'); -INSERT INTO `zz_online_column` VALUES (1440947089260417024, 'image_url', 1440947089218473984, 'varchar', 'varchar(512)', b'0', b'0', b'1', NULL, 6, '报销凭证', 'imageUrl', 'String', 0, b'0', b'0', b'0', 2, 1, NULL, '2021-09-23 15:53:53', '2021-09-23 15:52:12'); -INSERT INTO `zz_online_column` VALUES (1440947089264611328, 'description', 1440947089218473984, 'varchar', 'varchar(255)', b'0', b'0', b'1', NULL, 7, '费用描述', 'description', 'String', 0, b'0', b'0', b'0', NULL, NULL, NULL, '2021-09-23 15:52:12', '2021-09-23 15:52:12'); -INSERT INTO `zz_online_column` VALUES (1440952815303266304, 'contract_id', 1440952815294877696, 'bigint', 'bigint(20)', b'1', b'0', b'0', NULL, 1, '主键Id', 'contractId', 'Long', 0, b'0', b'0', b'0', NULL, NULL, NULL, '2021-09-23 16:14:57', '2021-09-23 16:14:57'); -INSERT INTO `zz_online_column` VALUES (1440952815307460608, 'first_party_id', 1440952815294877696, 'bigint', 'bigint(20)', b'0', b'0', b'0', NULL, 2, '甲方企业', 'firstPartyId', 'Long', 0, b'0', b'0', b'0', NULL, NULL, 1440943452526219264, '2021-09-23 16:16:50', '2021-09-23 16:14:57'); -INSERT INTO `zz_online_column` VALUES (1440952815311654912, 'second_party_id', 1440952815294877696, 'bigint', 'bigint(20)', b'0', b'0', b'0', NULL, 3, '乙方企业', 'secondPartyId', 'Long', 0, b'0', b'0', b'0', NULL, NULL, 1440943955939168256, '2021-09-23 16:16:59', '2021-09-23 16:14:57'); -INSERT INTO `zz_online_column` VALUES (1440952815315849216, 'contract_type', 1440952815294877696, 'int', 'int(11)', b'0', b'0', b'0', NULL, 4, '合同类型', 'contractType', 'Integer', 0, b'0', b'0', b'0', NULL, NULL, 1440944300799037440, '2021-09-23 16:17:03', '2021-09-23 16:14:57'); -INSERT INTO `zz_online_column` VALUES (1440952815320043520, 'due_date', 1440952815294877696, 'datetime', 'datetime', b'0', b'0', b'0', NULL, 5, '到期日期', 'dueDate', 'Date', 0, b'0', b'0', b'0', NULL, NULL, NULL, '2021-09-23 16:14:57', '2021-09-23 16:14:57'); -INSERT INTO `zz_online_column` VALUES (1440952815324237824, 'sales_id', 1440952815294877696, 'bigint', 'bigint(20)', b'0', b'0', b'0', NULL, 6, '业务员', 'salesId', 'Long', 0, b'0', b'0', b'0', NULL, NULL, 1440944417170001920, '2021-09-23 16:17:10', '2021-09-23 16:14:57'); -INSERT INTO `zz_online_column` VALUES (1440952815332626432, 'commission_rate', 1440952815294877696, 'int', 'int(11)', b'0', b'0', b'0', NULL, 7, '提成比例(%)', 'commissionRate', 'Integer', 0, b'0', b'0', b'0', NULL, NULL, NULL, '2021-09-23 16:17:38', '2021-09-23 16:14:57'); -INSERT INTO `zz_online_column` VALUES (1440952815336820736, 'attachment', 1440952815294877696, 'varchar', 'varchar(512)', b'0', b'0', b'1', NULL, 8, '合同附件', 'attachment', 'String', 0, b'0', b'0', b'0', 1, 1, NULL, '2021-09-23 16:17:46', '2021-09-23 16:14:57'); -INSERT INTO `zz_online_column` VALUES (1440952815341015040, 'security_attachment', 1440952815294877696, 'varchar', 'varchar(512)', b'0', b'0', b'1', NULL, 9, '保密协议', 'securityAttachment', 'String', 0, b'0', b'0', b'0', 1, 1, NULL, '2021-09-23 16:17:53', '2021-09-23 16:14:57'); -INSERT INTO `zz_online_column` VALUES (1440952815345209344, 'intellectual_property_attachment', 1440952815294877696, 'varchar', 'varchar(512)', b'0', b'0', b'1', NULL, 10, '知识产权协议', 'intellectualPropertyAttachment', 'String', 0, b'0', b'0', b'0', 1, 1, NULL, '2021-09-23 16:18:00', '2021-09-23 16:14:57'); -INSERT INTO `zz_online_column` VALUES (1440952815349403648, 'other_attachment', 1440952815294877696, 'varchar', 'varchar(512)', b'0', b'0', b'1', NULL, 11, '其他附件', 'otherAttachment', 'String', 0, b'0', b'0', b'0', 1, 1, NULL, '2021-09-23 16:18:05', '2021-09-23 16:14:57'); -INSERT INTO `zz_online_column` VALUES (1440952815353597952, 'create_user_id', 1440952815294877696, 'bigint', 'bigint(20)', b'0', b'0', b'0', NULL, 12, '创建者', 'createUserId', 'Long', 0, b'0', b'0', b'0', 21, NULL, NULL, '2021-09-23 16:18:09', '2021-09-23 16:14:57'); -INSERT INTO `zz_online_column` VALUES (1440952815357792256, 'create_time', 1440952815294877696, 'datetime', 'datetime', b'0', b'0', b'0', NULL, 13, '创建时间', 'createTime', 'Date', 0, b'0', b'0', b'0', 20, NULL, NULL, '2021-09-23 16:18:15', '2021-09-23 16:14:57'); -INSERT INTO `zz_online_column` VALUES (1440952815361986560, 'update_user_id', 1440952815294877696, 'bigint', 'bigint(20)', b'0', b'0', b'0', NULL, 14, '更新者', 'updateUserId', 'Long', 0, b'0', b'0', b'0', 23, NULL, NULL, '2021-09-23 16:18:19', '2021-09-23 16:14:57'); -INSERT INTO `zz_online_column` VALUES (1440952815366180864, 'update_time', 1440952815294877696, 'datetime', 'datetime', b'0', b'0', b'0', NULL, 15, '最后更新时间', 'updateTime', 'Date', 0, b'0', b'0', b'0', 22, NULL, NULL, '2021-09-23 16:18:24', '2021-09-23 16:14:57'); -INSERT INTO `zz_online_column` VALUES (1440952815370375168, 'deleted_flag', 1440952815294877696, 'int', 'int(11)', b'0', b'0', b'0', '0', 16, '删除标记(1: 正常 -1: 已删除)', 'deletedFlag', 'Integer', 0, b'0', b'0', b'0', 31, NULL, NULL, '2021-09-23 16:18:28', '2021-09-23 16:14:57'); -INSERT INTO `zz_online_column` VALUES (1440952921037475840, 'first_party_id', 1440952921024892928, 'bigint', 'bigint(20)', b'1', b'0', b'0', NULL, 1, '主键Id', 'firstPartyId', 'Long', 0, b'0', b'0', b'0', NULL, NULL, NULL, '2021-09-23 16:15:23', '2021-09-23 16:15:23'); -INSERT INTO `zz_online_column` VALUES (1440952921041670144, 'company_name', 1440952921024892928, 'varchar', 'varchar(255)', b'0', b'0', b'0', NULL, 2, '公司名称', 'companyName', 'String', 0, b'0', b'0', b'0', NULL, NULL, NULL, '2021-09-23 16:15:23', '2021-09-23 16:15:23'); -INSERT INTO `zz_online_column` VALUES (1440952921050058752, 'legal_person', 1440952921024892928, 'varchar', 'varchar(64)', b'0', b'0', b'0', NULL, 3, '公司法人', 'legalPerson', 'String', 0, b'0', b'0', b'0', NULL, NULL, NULL, '2021-09-23 16:18:38', '2021-09-23 16:15:23'); -INSERT INTO `zz_online_column` VALUES (1440952921054253056, 'legal_person_id', 1440952921024892928, 'char', 'char(18)', b'0', b'0', b'0', NULL, 4, '法人身份证号', 'legalPersonId', 'String', 0, b'0', b'0', b'0', NULL, NULL, NULL, '2021-09-23 16:15:23', '2021-09-23 16:15:23'); -INSERT INTO `zz_online_column` VALUES (1440952921058447360, 'registry_address', 1440952921024892928, 'varchar', 'varchar(512)', b'0', b'0', b'0', NULL, 5, '注册地址', 'registryAddress', 'String', 0, b'0', b'0', b'0', NULL, NULL, NULL, '2021-09-23 16:15:23', '2021-09-23 16:15:23'); -INSERT INTO `zz_online_column` VALUES (1440952921066835968, 'contact_info', 1440952921024892928, 'varchar', 'varchar(255)', b'0', b'0', b'0', NULL, 6, '联系方式', 'contactInfo', 'String', 0, b'0', b'0', b'0', NULL, NULL, NULL, '2021-09-23 16:15:23', '2021-09-23 16:15:23'); -INSERT INTO `zz_online_column` VALUES (1440952921079418880, 'business_scope', 1440952921024892928, 'varchar', 'varchar(4000)', b'0', b'0', b'0', NULL, 7, '经营范围', 'businessScope', 'String', 0, b'0', b'0', b'0', NULL, NULL, NULL, '2021-09-23 16:15:23', '2021-09-23 16:15:23'); -INSERT INTO `zz_online_column` VALUES (1440952921087807488, 'memo', 1440952921024892928, 'varchar', 'varchar(1024)', b'0', b'0', b'1', NULL, 8, '备注', 'memo', 'String', 0, b'0', b'0', b'0', NULL, NULL, NULL, '2021-09-23 16:15:23', '2021-09-23 16:15:23'); -INSERT INTO `zz_online_column` VALUES (1440952921092001792, 'create_user_id', 1440952921024892928, 'bigint', 'bigint(20)', b'0', b'0', b'0', NULL, 9, '创建者', 'createUserId', 'Long', 0, b'0', b'0', b'0', 21, NULL, NULL, '2021-09-23 16:18:48', '2021-09-23 16:15:23'); -INSERT INTO `zz_online_column` VALUES (1440952921100390400, 'create_time', 1440952921024892928, 'datetime', 'datetime', b'0', b'0', b'0', NULL, 10, '创建时间', 'createTime', 'Date', 0, b'0', b'0', b'0', 20, NULL, NULL, '2021-09-23 16:18:51', '2021-09-23 16:15:23'); -INSERT INTO `zz_online_column` VALUES (1440952921104584704, 'update_user_id', 1440952921024892928, 'bigint', 'bigint(20)', b'0', b'0', b'0', NULL, 11, '更新者', 'updateUserId', 'Long', 0, b'0', b'0', b'0', 23, NULL, NULL, '2021-09-23 16:18:54', '2021-09-23 16:15:23'); -INSERT INTO `zz_online_column` VALUES (1440952921108779008, 'update_time', 1440952921024892928, 'datetime', 'datetime', b'0', b'0', b'0', NULL, 12, '最后更新时间', 'updateTime', 'Date', 0, b'0', b'0', b'0', 22, NULL, NULL, '2021-09-23 16:19:00', '2021-09-23 16:15:23'); -INSERT INTO `zz_online_column` VALUES (1440952921112973312, 'deleted_flag', 1440952921024892928, 'int', 'int(11)', b'0', b'0', b'0', '0', 13, '删除标记(1: 正常 -1: 已删除)', 'deletedFlag', 'Integer', 0, b'0', b'0', b'0', 31, NULL, NULL, '2021-09-23 16:19:04', '2021-09-23 16:15:23'); -INSERT INTO `zz_online_column` VALUES (1440952988393803776, 'second_party_id', 1440952988389609472, 'bigint', 'bigint(20)', b'1', b'0', b'0', NULL, 1, '主键Id', 'secondPartyId', 'Long', 0, b'0', b'0', b'0', NULL, NULL, NULL, '2021-09-23 16:15:39', '2021-09-23 16:15:39'); -INSERT INTO `zz_online_column` VALUES (1440952988406386688, 'company_name', 1440952988389609472, 'varchar', 'varchar(255)', b'0', b'0', b'0', NULL, 2, '公司名称', 'companyName', 'String', 0, b'0', b'0', b'0', NULL, NULL, NULL, '2021-09-23 16:15:39', '2021-09-23 16:15:39'); -INSERT INTO `zz_online_column` VALUES (1440952988456718336, 'legal_person', 1440952988389609472, 'varchar', 'varchar(64)', b'0', b'0', b'0', NULL, 3, '公司法人', 'legalPerson', 'String', 0, b'0', b'0', b'0', NULL, NULL, NULL, '2021-09-23 16:19:12', '2021-09-23 16:15:39'); -INSERT INTO `zz_online_column` VALUES (1440952988469301248, 'legal_person_id', 1440952988389609472, 'char', 'char(18)', b'0', b'0', b'0', NULL, 4, '法人身份证号', 'legalPersonId', 'String', 0, b'0', b'0', b'0', NULL, NULL, NULL, '2021-09-23 16:15:39', '2021-09-23 16:15:39'); -INSERT INTO `zz_online_column` VALUES (1440952988473495552, 'registry_address', 1440952988389609472, 'varchar', 'varchar(512)', b'0', b'0', b'0', NULL, 5, '注册地址', 'registryAddress', 'String', 0, b'0', b'0', b'0', NULL, NULL, NULL, '2021-09-23 16:15:39', '2021-09-23 16:15:39'); -INSERT INTO `zz_online_column` VALUES (1440952988486078464, 'contact_info', 1440952988389609472, 'varchar', 'varchar(255)', b'0', b'0', b'0', NULL, 6, '联系方式', 'contactInfo', 'String', 0, b'0', b'0', b'0', NULL, NULL, NULL, '2021-09-23 16:15:39', '2021-09-23 16:15:39'); -INSERT INTO `zz_online_column` VALUES (1440952988494467072, 'business_scope', 1440952988389609472, 'varchar', 'varchar(4000)', b'0', b'0', b'0', NULL, 7, '经营范围', 'businessScope', 'String', 0, b'0', b'0', b'0', NULL, NULL, NULL, '2021-09-23 16:15:39', '2021-09-23 16:15:39'); -INSERT INTO `zz_online_column` VALUES (1440952988498661376, 'memo', 1440952988389609472, 'varchar', 'varchar(1024)', b'0', b'0', b'1', NULL, 8, '备注', 'memo', 'String', 0, b'0', b'0', b'0', NULL, NULL, NULL, '2021-09-23 16:15:39', '2021-09-23 16:15:39'); -INSERT INTO `zz_online_column` VALUES (1440952988502855680, 'create_user_id', 1440952988389609472, 'bigint', 'bigint(20)', b'0', b'0', b'0', NULL, 9, '创建者', 'createUserId', 'Long', 0, b'0', b'0', b'0', 21, NULL, NULL, '2021-09-23 16:19:17', '2021-09-23 16:15:39'); -INSERT INTO `zz_online_column` VALUES (1440952988507049984, 'create_time', 1440952988389609472, 'datetime', 'datetime', b'0', b'0', b'0', NULL, 10, '创建时间', 'createTime', 'Date', 0, b'0', b'0', b'0', 20, NULL, NULL, '2021-09-23 16:19:21', '2021-09-23 16:15:39'); -INSERT INTO `zz_online_column` VALUES (1440952988515438592, 'update_user_id', 1440952988389609472, 'bigint', 'bigint(20)', b'0', b'0', b'0', NULL, 11, '更新者', 'updateUserId', 'Long', 0, b'0', b'0', b'0', 23, NULL, NULL, '2021-09-23 16:19:24', '2021-09-23 16:15:39'); -INSERT INTO `zz_online_column` VALUES (1440952988519632896, 'update_time', 1440952988389609472, 'datetime', 'datetime', b'0', b'0', b'0', NULL, 12, '最后更新时间', 'updateTime', 'Date', 0, b'0', b'0', b'0', 22, NULL, NULL, '2021-09-23 16:19:28', '2021-09-23 16:15:39'); -INSERT INTO `zz_online_column` VALUES (1440952988528021504, 'deleted_flag', 1440952988389609472, 'int', 'int(11)', b'0', b'0', b'0', '0', 13, '删除标记(1: 正常 -1: 已删除)', 'deletedFlag', 'Integer', 0, b'0', b'0', b'0', 31, NULL, NULL, '2021-09-23 16:19:33', '2021-09-23 16:15:39'); -INSERT INTO `zz_online_column` VALUES (1440953088910299136, 'contract_detail_id', 1440953088901910528, 'bigint', 'bigint(20)', b'1', b'0', b'0', NULL, 1, '主键Id', 'contractDetailId', 'Long', 0, b'0', b'0', b'0', NULL, NULL, NULL, '2021-09-23 16:16:03', '2021-09-23 16:16:03'); -INSERT INTO `zz_online_column` VALUES (1440953088918687744, 'contract_id', 1440953088901910528, 'bigint', 'bigint(20)', b'0', b'0', b'0', NULL, 2, '合同Id', 'contractId', 'Long', 1, b'0', b'0', b'0', NULL, NULL, NULL, '2021-09-23 16:42:59', '2021-09-23 16:16:03'); -INSERT INTO `zz_online_column` VALUES (1440953088922882048, 'product_id', 1440953088901910528, 'bigint', 'bigint(20)', b'0', b'0', b'0', NULL, 3, '合同产品', 'productId', 'Long', 0, b'0', b'0', b'0', NULL, NULL, 1440944049128214528, '2021-09-23 16:20:03', '2021-09-23 16:16:03'); -INSERT INTO `zz_online_column` VALUES (1440953088927076352, 'total_count', 1440953088901910528, 'int', 'int(11)', b'0', b'0', b'0', NULL, 4, '产品数量', 'totalCount', 'Integer', 0, b'0', b'0', b'0', NULL, NULL, NULL, '2021-09-23 16:20:10', '2021-09-23 16:16:03'); -INSERT INTO `zz_online_column` VALUES (1440953088935464960, 'total_amount', 1440953088901910528, 'int', 'int(11)', b'0', b'0', b'0', NULL, 5, '产品总价', 'totalAmount', 'Integer', 0, b'0', b'0', b'0', NULL, NULL, NULL, '2021-09-23 16:20:56', '2021-09-23 16:16:03'); -INSERT INTO `zz_online_column` VALUES (1440953088939659264, 'meno', 1440953088901910528, 'varchar', 'varchar(1024)', b'0', b'0', b'1', NULL, 6, '备注', 'meno', 'String', 0, b'0', b'0', b'0', NULL, NULL, NULL, '2021-09-23 16:16:03', '2021-09-23 16:16:03'); -INSERT INTO `zz_online_column` VALUES (1440953088948047872, 'create_user_id', 1440953088901910528, 'bigint', 'bigint(20)', b'0', b'0', b'0', NULL, 7, '创建者', 'createUserId', 'Long', 0, b'0', b'0', b'0', 21, NULL, NULL, '2021-09-23 16:21:00', '2021-09-23 16:16:03'); -INSERT INTO `zz_online_column` VALUES (1440953088952242176, 'create_time', 1440953088901910528, 'datetime', 'datetime', b'0', b'0', b'0', NULL, 8, '创建时间', 'createTime', 'Date', 0, b'0', b'0', b'0', 20, NULL, NULL, '2021-09-23 16:21:04', '2021-09-23 16:16:03'); -INSERT INTO `zz_online_column` VALUES (1440953088960630784, 'update_user_id', 1440953088901910528, 'bigint', 'bigint(20)', b'0', b'0', b'0', NULL, 9, '更新者', 'updateUserId', 'Long', 0, b'0', b'0', b'0', 23, NULL, NULL, '2021-09-23 16:21:07', '2021-09-23 16:16:03'); -INSERT INTO `zz_online_column` VALUES (1440953088964825088, 'update_time', 1440953088901910528, 'datetime', 'datetime', b'0', b'0', b'0', NULL, 10, '最后更新时间', 'updateTime', 'Date', 0, b'0', b'0', b'0', 22, NULL, NULL, '2021-09-23 16:21:12', '2021-09-23 16:16:03'); -INSERT INTO `zz_online_column` VALUES (1440953088973213696, 'deleted_flag', 1440953088901910528, 'int', 'int(11)', b'0', b'0', b'0', '0', 11, '删除标记(1: 正常 -1: 已删除)', 'deletedFlag', 'Integer', 0, b'0', b'0', b'0', 31, NULL, NULL, '2021-09-23 16:21:15', '2021-09-23 16:16:03'); -INSERT INTO `zz_online_column` VALUES (1440953170518872064, 'pay_detail_id', 1440953170514677760, 'bigint', 'bigint(20)', b'1', b'0', b'0', NULL, 1, '主键Id', 'payDetailId', 'Long', 0, b'0', b'0', b'0', NULL, NULL, NULL, '2021-09-23 16:16:22', '2021-09-23 16:16:22'); -INSERT INTO `zz_online_column` VALUES (1440953170531454976, 'contract_id', 1440953170514677760, 'bigint', 'bigint(20)', b'0', b'0', b'0', NULL, 2, '合同Id', 'contractId', 'Long', 1, b'0', b'0', b'0', NULL, NULL, NULL, '2021-09-23 16:43:04', '2021-09-23 16:16:22'); -INSERT INTO `zz_online_column` VALUES (1440953170535649280, 'pay_date', 1440953170514677760, 'datetime', 'datetime', b'0', b'0', b'0', NULL, 3, '付款日期', 'payDate', 'Date', 0, b'0', b'0', b'0', NULL, NULL, NULL, '2021-09-23 16:16:22', '2021-09-23 16:16:22'); -INSERT INTO `zz_online_column` VALUES (1440953170539843584, 'pay_type', 1440953170514677760, 'int', 'int(11)', b'0', b'0', b'0', NULL, 4, '付款类型', 'payType', 'Integer', 0, b'0', b'0', b'0', NULL, NULL, 1440944184381935616, '2021-09-23 16:21:27', '2021-09-23 16:16:22'); -INSERT INTO `zz_online_column` VALUES (1440953170548232192, 'percentage', 1440953170514677760, 'int', 'int(11)', b'0', b'0', b'0', NULL, 5, '百分比', 'percentage', 'Integer', 0, b'0', b'0', b'0', NULL, NULL, NULL, '2021-09-23 16:16:22', '2021-09-23 16:16:22'); -INSERT INTO `zz_online_column` VALUES (1440953170552426496, 'memo', 1440953170514677760, 'varchar', 'varchar(1024)', b'0', b'0', b'1', NULL, 6, '备注', 'memo', 'String', 0, b'0', b'0', b'0', NULL, NULL, NULL, '2021-09-23 16:16:22', '2021-09-23 16:16:22'); -INSERT INTO `zz_online_column` VALUES (1440953170560815104, 'create_user_id', 1440953170514677760, 'bigint', 'bigint(20)', b'0', b'0', b'0', NULL, 7, '创建者', 'createUserId', 'Long', 0, b'0', b'0', b'0', 21, NULL, NULL, '2021-09-23 16:21:43', '2021-09-23 16:16:22'); -INSERT INTO `zz_online_column` VALUES (1440953170569203712, 'create_time', 1440953170514677760, 'datetime', 'datetime', b'0', b'0', b'0', NULL, 8, '创建时间', 'createTime', 'Date', 0, b'0', b'0', b'0', 20, NULL, NULL, '2021-09-23 16:21:46', '2021-09-23 16:16:22'); -INSERT INTO `zz_online_column` VALUES (1440953170573398016, 'update_user_id', 1440953170514677760, 'bigint', 'bigint(20)', b'0', b'0', b'0', NULL, 9, '更新者', 'updateUserId', 'Long', 0, b'0', b'0', b'0', 23, NULL, NULL, '2021-09-23 16:21:49', '2021-09-23 16:16:22'); -INSERT INTO `zz_online_column` VALUES (1440953170581786624, 'update_time', 1440953170514677760, 'datetime', 'datetime', b'0', b'0', b'0', NULL, 10, '最后更新时间', 'updateTime', 'Date', 0, b'0', b'0', b'0', 22, NULL, NULL, '2021-09-23 16:21:52', '2021-09-23 16:16:22'); -INSERT INTO `zz_online_column` VALUES (1440953170585980928, 'deleted_flag', 1440953170514677760, 'int', 'int(11)', b'0', b'0', b'0', '0', 11, '删除标记(1: 正常 -1: 已删除)', 'deletedFlag', 'Integer', 0, b'0', b'0', b'0', 31, NULL, NULL, '2021-09-23 16:21:55', '2021-09-23 16:16:22'); -INSERT INTO `zz_online_column` VALUES (1440953245668216832, 'delivery_id', 1440953245664022528, 'bigint', 'bigint(20)', b'1', b'0', b'0', NULL, 1, '主键Id', 'deliveryId', 'Long', 0, b'0', b'0', b'0', NULL, NULL, NULL, '2021-09-23 16:16:40', '2021-09-23 16:16:40'); -INSERT INTO `zz_online_column` VALUES (1440953245676605440, 'contract_id', 1440953245664022528, 'bigint', 'bigint(20)', b'0', b'0', b'0', NULL, 2, '合同Id', 'contractId', 'Long', 1, b'0', b'0', b'0', NULL, NULL, NULL, '2021-09-23 16:43:09', '2021-09-23 16:16:40'); -INSERT INTO `zz_online_column` VALUES (1440953245684994048, 'delivery_date', 1440953245664022528, 'datetime', 'datetime', b'0', b'0', b'0', NULL, 3, '交付日期', 'deliveryDate', 'Date', 0, b'0', b'0', b'0', NULL, NULL, NULL, '2021-09-23 16:16:40', '2021-09-23 16:16:40'); -INSERT INTO `zz_online_column` VALUES (1440953245697576960, 'product_id', 1440953245664022528, 'bigint', 'bigint(20)', b'0', b'0', b'0', NULL, 4, '交付产品', 'productId', 'Long', 0, b'0', b'0', b'0', NULL, NULL, 1440944049128214528, '2021-09-23 16:22:18', '2021-09-23 16:16:40'); -INSERT INTO `zz_online_column` VALUES (1440953245705965568, 'total_count', 1440953245664022528, 'int', 'int(11)', b'0', b'0', b'0', NULL, 5, '交付数量', 'totalCount', 'Integer', 0, b'0', b'0', b'0', NULL, NULL, NULL, '2021-09-23 16:22:21', '2021-09-23 16:16:40'); -INSERT INTO `zz_online_column` VALUES (1440953245718548480, 'memo', 1440953245664022528, 'varchar', 'varchar(1024)', b'0', b'0', b'1', NULL, 6, '备注', 'memo', 'String', 0, b'0', b'0', b'0', NULL, NULL, NULL, '2021-09-23 16:16:40', '2021-09-23 16:16:40'); -INSERT INTO `zz_online_column` VALUES (1440953245722742784, 'create_user_id', 1440953245664022528, 'bigint', 'bigint(20)', b'0', b'0', b'0', NULL, 7, '创建者', 'createUserId', 'Long', 0, b'0', b'0', b'0', 21, NULL, NULL, '2021-09-23 16:22:45', '2021-09-23 16:16:40'); -INSERT INTO `zz_online_column` VALUES (1440953245726937088, 'create_time', 1440953245664022528, 'datetime', 'datetime', b'0', b'0', b'0', NULL, 8, '创建时间', 'createTime', 'Date', 0, b'0', b'0', b'0', 20, NULL, NULL, '2021-09-23 16:22:48', '2021-09-23 16:16:40'); -INSERT INTO `zz_online_column` VALUES (1440953245731131392, 'update_user_id', 1440953245664022528, 'bigint', 'bigint(20)', b'0', b'0', b'0', NULL, 9, '更新者', 'updateUserId', 'Long', 0, b'0', b'0', b'0', 23, NULL, NULL, '2021-09-23 16:22:52', '2021-09-23 16:16:40'); -INSERT INTO `zz_online_column` VALUES (1440953245735325696, 'update_time', 1440953245664022528, 'datetime', 'datetime', b'0', b'0', b'0', NULL, 10, '最后更新时间', 'updateTime', 'Date', 0, b'0', b'0', b'0', 22, NULL, NULL, '2021-09-23 16:22:56', '2021-09-23 16:16:40'); -INSERT INTO `zz_online_column` VALUES (1440953245743714304, 'deleted_flag', 1440953245664022528, 'int', 'int(11)', b'0', b'0', b'0', '0', 11, '删除标记(1: 正常 -1: 已删除)', 'deletedFlag', 'Integer', 0, b'0', b'0', b'0', 31, NULL, NULL, '2021-09-23 16:22:59', '2021-09-23 16:16:40'); -INSERT INTO `zz_online_column` VALUES (1440958971132252160, 'first_party_id', 1440958971128057856, 'bigint', 'bigint(20)', b'1', b'0', b'0', NULL, 1, '主键Id', 'firstPartyId', 'Long', 0, b'0', b'0', b'0', NULL, NULL, NULL, '2021-09-23 16:39:25', '2021-09-23 16:39:25'); -INSERT INTO `zz_online_column` VALUES (1440958971140640768, 'company_name', 1440958971128057856, 'varchar', 'varchar(255)', b'0', b'0', b'0', NULL, 2, '公司名称', 'companyName', 'String', 3, b'0', b'0', b'0', NULL, NULL, NULL, '2021-09-23 16:41:25', '2021-09-23 16:39:25'); -INSERT INTO `zz_online_column` VALUES (1440958971144835072, 'legal_person', 1440958971128057856, 'varchar', 'varchar(64)', b'0', b'0', b'0', NULL, 3, '公司法人', 'legalPerson', 'String', 0, b'0', b'0', b'0', NULL, NULL, NULL, '2021-09-23 16:39:32', '2021-09-23 16:39:25'); -INSERT INTO `zz_online_column` VALUES (1440958971149029376, 'legal_person_id', 1440958971128057856, 'char', 'char(18)', b'0', b'0', b'0', NULL, 4, '法人身份证号', 'legalPersonId', 'String', 0, b'0', b'0', b'0', NULL, NULL, NULL, '2021-09-23 16:39:25', '2021-09-23 16:39:25'); -INSERT INTO `zz_online_column` VALUES (1440958971153223680, 'registry_address', 1440958971128057856, 'varchar', 'varchar(512)', b'0', b'0', b'0', NULL, 5, '注册地址', 'registryAddress', 'String', 0, b'0', b'0', b'0', NULL, NULL, NULL, '2021-09-23 16:39:25', '2021-09-23 16:39:25'); -INSERT INTO `zz_online_column` VALUES (1440958971157417984, 'contact_info', 1440958971128057856, 'varchar', 'varchar(255)', b'0', b'0', b'0', NULL, 6, '联系方式', 'contactInfo', 'String', 0, b'0', b'0', b'0', NULL, NULL, NULL, '2021-09-23 16:39:25', '2021-09-23 16:39:25'); -INSERT INTO `zz_online_column` VALUES (1440958971161612288, 'business_scope', 1440958971128057856, 'varchar', 'varchar(4000)', b'0', b'0', b'0', NULL, 7, '经营范围', 'businessScope', 'String', 0, b'0', b'0', b'0', NULL, NULL, NULL, '2021-09-23 16:39:25', '2021-09-23 16:39:25'); -INSERT INTO `zz_online_column` VALUES (1440958971165806592, 'memo', 1440958971128057856, 'varchar', 'varchar(1024)', b'0', b'0', b'1', NULL, 8, '备注', 'memo', 'String', 0, b'0', b'0', b'0', NULL, NULL, NULL, '2021-09-23 16:39:25', '2021-09-23 16:39:25'); -INSERT INTO `zz_online_column` VALUES (1440958971170000896, 'create_user_id', 1440958971128057856, 'bigint', 'bigint(20)', b'0', b'0', b'0', NULL, 9, '创建者', 'createUserId', 'Long', 0, b'0', b'0', b'0', 21, NULL, NULL, '2021-09-23 16:39:40', '2021-09-23 16:39:25'); -INSERT INTO `zz_online_column` VALUES (1440958971174195200, 'create_time', 1440958971128057856, 'datetime', 'datetime', b'0', b'0', b'0', NULL, 10, '创建时间', 'createTime', 'Date', 0, b'0', b'0', b'0', 20, NULL, NULL, '2021-09-23 16:39:43', '2021-09-23 16:39:25'); -INSERT INTO `zz_online_column` VALUES (1440958971178389504, 'update_user_id', 1440958971128057856, 'bigint', 'bigint(20)', b'0', b'0', b'0', NULL, 11, '更新者', 'updateUserId', 'Long', 0, b'0', b'0', b'0', 23, NULL, NULL, '2021-09-23 16:39:46', '2021-09-23 16:39:25'); -INSERT INTO `zz_online_column` VALUES (1440958971182583808, 'update_time', 1440958971128057856, 'datetime', 'datetime', b'0', b'0', b'0', NULL, 12, '最后更新时间', 'updateTime', 'Date', 0, b'0', b'0', b'0', 22, NULL, NULL, '2021-09-23 16:39:53', '2021-09-23 16:39:25'); -INSERT INTO `zz_online_column` VALUES (1440958971186778112, 'deleted_flag', 1440958971128057856, 'int', 'int(11)', b'0', b'0', b'0', '0', 13, '删除标记(1: 正常 -1: 已删除)', 'deletedFlag', 'Integer', 0, b'0', b'0', b'0', 31, NULL, NULL, '2021-09-23 16:39:58', '2021-09-23 16:39:25'); -INSERT INTO `zz_online_column` VALUES (1440961208285925376, 'second_party_id', 1440961208273342464, 'bigint', 'bigint(20)', b'1', b'0', b'0', NULL, 1, '主键Id', 'secondPartyId', 'Long', 0, b'0', b'0', b'0', NULL, NULL, NULL, '2021-09-23 16:48:18', '2021-09-23 16:48:18'); -INSERT INTO `zz_online_column` VALUES (1440961208294313984, 'company_name', 1440961208273342464, 'varchar', 'varchar(255)', b'0', b'0', b'0', NULL, 2, '公司名称', 'companyName', 'String', 3, b'0', b'0', b'0', NULL, NULL, NULL, '2021-09-23 16:48:23', '2021-09-23 16:48:18'); -INSERT INTO `zz_online_column` VALUES (1440961208298508288, 'legal_person', 1440961208273342464, 'varchar', 'varchar(64)', b'0', b'0', b'0', NULL, 3, '公司法人', 'legalPerson', 'String', 0, b'0', b'0', b'0', NULL, NULL, NULL, '2021-09-23 16:48:28', '2021-09-23 16:48:18'); -INSERT INTO `zz_online_column` VALUES (1440961208302702592, 'legal_person_id', 1440961208273342464, 'char', 'char(18)', b'0', b'0', b'0', NULL, 4, '法人身份证号', 'legalPersonId', 'String', 0, b'0', b'0', b'0', NULL, NULL, NULL, '2021-09-23 16:48:18', '2021-09-23 16:48:18'); -INSERT INTO `zz_online_column` VALUES (1440961208306896896, 'registry_address', 1440961208273342464, 'varchar', 'varchar(512)', b'0', b'0', b'0', NULL, 5, '注册地址', 'registryAddress', 'String', 0, b'0', b'0', b'0', NULL, NULL, NULL, '2021-09-23 16:48:18', '2021-09-23 16:48:18'); -INSERT INTO `zz_online_column` VALUES (1440961208315285504, 'contact_info', 1440961208273342464, 'varchar', 'varchar(255)', b'0', b'0', b'0', NULL, 6, '联系方式', 'contactInfo', 'String', 0, b'0', b'0', b'0', NULL, NULL, NULL, '2021-09-23 16:48:18', '2021-09-23 16:48:18'); -INSERT INTO `zz_online_column` VALUES (1440961208319479808, 'business_scope', 1440961208273342464, 'varchar', 'varchar(4000)', b'0', b'0', b'0', NULL, 7, '经营范围', 'businessScope', 'String', 0, b'0', b'0', b'0', NULL, NULL, NULL, '2021-09-23 16:48:18', '2021-09-23 16:48:18'); -INSERT INTO `zz_online_column` VALUES (1440961208323674112, 'memo', 1440961208273342464, 'varchar', 'varchar(1024)', b'0', b'0', b'1', NULL, 8, '备注', 'memo', 'String', 0, b'0', b'0', b'0', NULL, NULL, NULL, '2021-09-23 16:48:18', '2021-09-23 16:48:18'); -INSERT INTO `zz_online_column` VALUES (1440961208327868416, 'create_user_id', 1440961208273342464, 'bigint', 'bigint(20)', b'0', b'0', b'0', NULL, 9, '创建者', 'createUserId', 'Long', 0, b'0', b'0', b'0', 21, NULL, NULL, '2021-09-23 16:48:36', '2021-09-23 16:48:18'); -INSERT INTO `zz_online_column` VALUES (1440961208332062720, 'create_time', 1440961208273342464, 'datetime', 'datetime', b'0', b'0', b'0', NULL, 10, '创建时间', 'createTime', 'Date', 0, b'0', b'0', b'0', 20, NULL, NULL, '2021-09-23 16:48:40', '2021-09-23 16:48:18'); -INSERT INTO `zz_online_column` VALUES (1440961208336257024, 'update_user_id', 1440961208273342464, 'bigint', 'bigint(20)', b'0', b'0', b'0', NULL, 11, '更新者', 'updateUserId', 'Long', 0, b'0', b'0', b'0', 23, NULL, NULL, '2021-09-23 16:48:44', '2021-09-23 16:48:18'); -INSERT INTO `zz_online_column` VALUES (1440961208340451328, 'update_time', 1440961208273342464, 'datetime', 'datetime', b'0', b'0', b'0', NULL, 12, '最后更新时间', 'updateTime', 'Date', 0, b'0', b'0', b'0', 22, NULL, NULL, '2021-09-23 16:48:49', '2021-09-23 16:48:18'); -INSERT INTO `zz_online_column` VALUES (1440961208344645632, 'deleted_flag', 1440961208273342464, 'int', 'int(11)', b'0', b'0', b'0', '0', 13, '删除标记(1: 正常 -1: 已删除)', 'deletedFlag', 'Integer', 0, b'0', b'0', b'0', 31, NULL, NULL, '2021-09-23 16:48:55', '2021-09-23 16:48:18'); -INSERT INTO `zz_online_column` VALUES (1440962162720772096, 'product_id', 1440962162712383488, 'bigint', 'bigint(20)', b'1', b'0', b'0', NULL, 1, '主键Id', 'productId', 'Long', 0, b'0', b'0', b'0', NULL, NULL, NULL, '2021-09-23 16:52:06', '2021-09-23 16:52:06'); -INSERT INTO `zz_online_column` VALUES (1440962162729160704, 'product_name', 1440962162712383488, 'varchar', 'varchar(255)', b'0', b'0', b'0', NULL, 2, '产品名称', 'productName', 'String', 3, b'0', b'0', b'0', NULL, NULL, NULL, '2021-09-23 16:52:10', '2021-09-23 16:52:06'); -INSERT INTO `zz_online_column` VALUES (1440962162733355008, 'product_spec', 1440962162712383488, 'varchar', 'varchar(255)', b'0', b'0', b'0', NULL, 3, '规格', 'productSpec', 'String', 0, b'0', b'0', b'0', NULL, NULL, NULL, '2021-09-23 16:52:06', '2021-09-23 16:52:06'); -INSERT INTO `zz_online_column` VALUES (1440962162737549312, 'type', 1440962162712383488, 'varchar', 'varchar(255)', b'0', b'0', b'0', NULL, 4, '型号', 'type', 'String', 0, b'0', b'0', b'0', NULL, NULL, NULL, '2021-09-23 16:52:06', '2021-09-23 16:52:06'); -INSERT INTO `zz_online_column` VALUES (1440962162741743616, 'cost_price', 1440962162712383488, 'int', 'int(11)', b'0', b'0', b'0', NULL, 5, '产品价格', 'costPrice', 'Integer', 2, b'0', b'0', b'0', NULL, NULL, NULL, '2021-09-23 16:53:05', '2021-09-23 16:52:06'); -INSERT INTO `zz_online_column` VALUES (1440962162745937920, 'memo', 1440962162712383488, 'varchar', 'varchar(1024)', b'0', b'0', b'1', NULL, 6, '备注', 'memo', 'String', 0, b'0', b'0', b'0', NULL, NULL, NULL, '2021-09-23 16:52:06', '2021-09-23 16:52:06'); -INSERT INTO `zz_online_column` VALUES (1440962162750132224, 'create_user_id', 1440962162712383488, 'bigint', 'bigint(20)', b'0', b'0', b'0', NULL, 7, '创建者', 'createUserId', 'Long', 0, b'0', b'0', b'0', 21, NULL, NULL, '2021-09-23 16:52:20', '2021-09-23 16:52:06'); -INSERT INTO `zz_online_column` VALUES (1440962162754326528, 'create_time', 1440962162712383488, 'datetime', 'datetime', b'0', b'0', b'0', NULL, 8, '创建时间', 'createTime', 'Date', 0, b'0', b'0', b'0', 20, NULL, NULL, '2021-09-23 16:52:23', '2021-09-23 16:52:06'); -INSERT INTO `zz_online_column` VALUES (1440962162762715136, 'update_user_id', 1440962162712383488, 'bigint', 'bigint(20)', b'0', b'0', b'0', NULL, 9, '更新者', 'updateUserId', 'Long', 0, b'0', b'0', b'0', 23, NULL, NULL, '2021-09-23 16:52:27', '2021-09-23 16:52:06'); -INSERT INTO `zz_online_column` VALUES (1440962162766909440, 'update_time', 1440962162712383488, 'datetime', 'datetime', b'0', b'0', b'0', NULL, 10, '最后更新时间', 'updateTime', 'Date', 0, b'0', b'0', b'0', 22, NULL, NULL, '2021-09-23 16:52:31', '2021-09-23 16:52:06'); -INSERT INTO `zz_online_column` VALUES (1440962162771103744, 'deleted_flag', 1440962162712383488, 'int', 'int(11)', b'0', b'0', b'0', '0', 11, '删除标记(1: 正常 -1: 已删除)', 'deletedFlag', 'Integer', 0, b'0', b'0', b'0', 31, NULL, NULL, '2021-09-23 16:52:34', '2021-09-23 16:52:06'); -COMMIT; - --- ---------------------------- --- Table structure for zz_online_column_rule --- ---------------------------- -DROP TABLE IF EXISTS `zz_online_column_rule`; -CREATE TABLE `zz_online_column_rule` ( - `column_id` bigint NOT NULL COMMENT '字段Id', - `rule_id` bigint NOT NULL COMMENT '规则Id', - `prop_data_json` text CHARACTER SET utf8mb4 COLLATE utf8mb4_bin COMMENT '规则属性数据', - PRIMARY KEY (`column_id`,`rule_id`) USING BTREE, - KEY `idx_rule_id` (`rule_id`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; - --- ---------------------------- --- Records of zz_online_column_rule --- ---------------------------- -BEGIN; -INSERT INTO `zz_online_column_rule` VALUES (1440946127493926912, 2, '{\"message\":\"报销金额必须大于0\"}'); -INSERT INTO `zz_online_column_rule` VALUES (1440946127493926912, 4, '{\"message\":\"报销金额必须大于0\",\"min\":0}'); -INSERT INTO `zz_online_column_rule` VALUES (1440946261518716928, 2, '{\"message\":\"报销金额必须大于0\"}'); -INSERT INTO `zz_online_column_rule` VALUES (1440946261518716928, 4, '{\"message\":\"报销金额必须大于0\",\"min\":0}'); -INSERT INTO `zz_online_column_rule` VALUES (1440947089252028416, 2, '{\"message\":\"报销金额必须大于0\"}'); -INSERT INTO `zz_online_column_rule` VALUES (1440947089252028416, 4, '{\"message\":\"报销金额必须大于0\",\"min\":0}'); -INSERT INTO `zz_online_column_rule` VALUES (1440949025019793408, 2, '{\"message\":\"提成比例必须大于0\"}'); -INSERT INTO `zz_online_column_rule` VALUES (1440949025019793408, 4, '{\"message\":\"提成比例必须大于0\",\"min\":0}'); -INSERT INTO `zz_online_column_rule` VALUES (1440949181786099712, 6, '{\"message\":\"请输入正确的手机号码\"}'); -INSERT INTO `zz_online_column_rule` VALUES (1440949481989214208, 1, '{\"message\":\"产品数量必须大于0\"}'); -INSERT INTO `zz_online_column_rule` VALUES (1440949481989214208, 4, '{\"message\":\"产品数量必须大于0\",\"min\":0}'); -INSERT INTO `zz_online_column_rule` VALUES (1440949481993408512, 2, '{\"message\":\"产品总价必须大于0\"}'); -INSERT INTO `zz_online_column_rule` VALUES (1440949481993408512, 4, '{\"message\":\"产品总价必须大于0\",\"min\":0}'); -INSERT INTO `zz_online_column_rule` VALUES (1440949804128538624, 2, '{\"message\":\"交付商品数量必须大于0\"}'); -INSERT INTO `zz_online_column_rule` VALUES (1440949804128538624, 4, '{\"message\":\"交付商品数量必须大于0\",\"min\":0}'); -INSERT INTO `zz_online_column_rule` VALUES (1440952815332626432, 2, '{\"message\":\"提成比例必须大于0\"}'); -INSERT INTO `zz_online_column_rule` VALUES (1440952815332626432, 4, '{\"message\":\"提成比例必须大于0\",\"min\":0}'); -INSERT INTO `zz_online_column_rule` VALUES (1440953088927076352, 2, '{\"message\":\"产品数量必须大于0\"}'); -INSERT INTO `zz_online_column_rule` VALUES (1440953088927076352, 4, '{\"message\":\"产品数量必须大于0\",\"min\":0}'); -INSERT INTO `zz_online_column_rule` VALUES (1440953088935464960, 2, '{\"message\":\"产品总价必须大于0\"}'); -INSERT INTO `zz_online_column_rule` VALUES (1440953088935464960, 4, '{\"message\":\"产品总价必须大于0\",\"min\":0}'); -INSERT INTO `zz_online_column_rule` VALUES (1440953245705965568, 2, '{\"message\":\"交付数量必须大于0\"}'); -INSERT INTO `zz_online_column_rule` VALUES (1440953245705965568, 4, '{\"message\":\"交付数量必须大于0\",\"min\":0}'); -INSERT INTO `zz_online_column_rule` VALUES (1440962162741743616, 2, '{\"message\":\"产品价格不能小于0\"}'); -INSERT INTO `zz_online_column_rule` VALUES (1440962162741743616, 4, '{\"message\":\"产品价格不能小于0\",\"min\":0}'); -COMMIT; - --- ---------------------------- --- Table structure for zz_online_datasource --- ---------------------------- -DROP TABLE IF EXISTS `zz_online_datasource`; -CREATE TABLE `zz_online_datasource` ( - `datasource_id` bigint NOT NULL COMMENT '主键Id', - `datasource_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '数据源名称', - `variable_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '数据源变量名', - `dblink_id` bigint NOT NULL COMMENT '数据库链接Id', - `master_table_id` bigint NOT NULL COMMENT '主表Id', - `update_time` datetime NOT NULL COMMENT '更新时间', - `create_time` datetime NOT NULL COMMENT '创建时间', - PRIMARY KEY (`datasource_id`), - UNIQUE KEY `idx_variable_name` (`variable_name`) USING BTREE, - KEY `idx_master_table_id` (`master_table_id`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; - --- ---------------------------- --- Records of zz_online_datasource --- ---------------------------- -BEGIN; -INSERT INTO `zz_online_datasource` VALUES (1440945228130291712, '请假申请', 'dsFlowLeave', 1, 1440945228079960064, '2021-09-23 15:44:49', '2021-09-23 15:44:49'); -INSERT INTO `zz_online_datasource` VALUES (1440946127531675648, '报销申请', 'dsFlowSubmit', 1, 1440946127460372480, '2021-09-23 15:48:23', '2021-09-23 15:48:23'); -INSERT INTO `zz_online_datasource` VALUES (1440952815374569472, '合同审批', 'dsFlowContract', 1, 1440952815294877696, '2021-09-23 16:14:57', '2021-09-23 16:14:57'); -INSERT INTO `zz_online_datasource` VALUES (1440958971190972416, '甲方管理', 'dsFirstParty', 1, 1440958971128057856, '2021-09-23 16:39:25', '2021-09-23 16:39:25'); -INSERT INTO `zz_online_datasource` VALUES (1440961208344645633, '乙方管理', 'dsSecondParty', 1, 1440961208273342464, '2021-09-23 16:48:18', '2021-09-23 16:48:18'); -INSERT INTO `zz_online_datasource` VALUES (1440962162771103745, '产品管理', 'dsProduct', 1, 1440962162712383488, '2021-09-23 16:52:06', '2021-09-23 16:52:06'); -COMMIT; - --- ---------------------------- --- Table structure for zz_online_datasource_relation --- ---------------------------- -DROP TABLE IF EXISTS `zz_online_datasource_relation`; -CREATE TABLE `zz_online_datasource_relation` ( - `relation_id` bigint NOT NULL COMMENT '主键Id', - `relation_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '关联名称', - `variable_name` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '变量名', - `datasource_id` bigint NOT NULL COMMENT '主数据源Id', - `relation_type` int NOT NULL COMMENT '关联类型', - `master_column_id` bigint NOT NULL COMMENT '主表关联字段Id', - `slave_table_id` bigint NOT NULL COMMENT '从表Id', - `slave_column_id` bigint NOT NULL COMMENT '从表关联字段Id', - `cascade_delete` bit(1) NOT NULL COMMENT '删除主表的时候是否级联删除一对一和一对多的从表数据,多对多只是删除关联,不受到这个标记的影响。', - `left_join` bit(1) NOT NULL COMMENT '是否左连接', - `update_time` datetime NOT NULL COMMENT '更新时间', - `create_time` datetime NOT NULL COMMENT '创建时间', - PRIMARY KEY (`relation_id`) USING BTREE, - KEY `idx_datasource_id` (`datasource_id`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; - --- ---------------------------- --- Records of zz_online_datasource_relation --- ---------------------------- -BEGIN; -INSERT INTO `zz_online_datasource_relation` VALUES (1440947089268805632, '报销详情', 'id_zz_test_flow_submit_detail_submit_idRelation', 1440946127531675648, 1, 1440946127468761088, 1440947089218473984, 1440947089231056896, b'1', b'1', '2021-09-23 15:52:12', '2021-09-23 15:52:12'); -INSERT INTO `zz_online_datasource_relation` VALUES (1440952921117167616, '甲方企业', 'first_party_id_zz_test_flow_first_party_first_party_idRelation', 1440952815374569472, 0, 1440952815307460608, 1440952921024892928, 1440952921037475840, b'0', b'1', '2021-09-23 16:15:23', '2021-09-23 16:15:23'); -INSERT INTO `zz_online_datasource_relation` VALUES (1440952988536410112, '乙方企业', 'second_party_id_zz_test_flow_second_party_second_party_idRelation', 1440952815374569472, 0, 1440952815311654912, 1440952988389609472, 1440952988393803776, b'0', b'1', '2021-09-23 16:15:39', '2021-09-23 16:15:39'); -INSERT INTO `zz_online_datasource_relation` VALUES (1440953088977408000, '合同详情', 'contract_id_zz_test_flow_contract_detail_contract_idRelation', 1440952815374569472, 1, 1440952815303266304, 1440953088901910528, 1440953088918687744, b'1', b'1', '2021-09-23 16:16:03', '2021-09-23 16:16:03'); -INSERT INTO `zz_online_datasource_relation` VALUES (1440953170590175232, '付款详情', 'contract_id_zz_test_flow_pay_detail_contract_idRelation', 1440952815374569472, 1, 1440952815303266304, 1440953170514677760, 1440953170531454976, b'1', b'1', '2021-09-23 16:16:22', '2021-09-23 16:16:22'); -INSERT INTO `zz_online_datasource_relation` VALUES (1440953245747908608, '交付详情', 'contract_id_zz_test_flow_delivery_detail_contract_idRelation', 1440952815374569472, 1, 1440952815303266304, 1440953245664022528, 1440953245676605440, b'1', b'1', '2021-09-23 16:16:40', '2021-09-23 16:16:40'); -COMMIT; - --- ---------------------------- --- Table structure for zz_online_datasource_table --- ---------------------------- -DROP TABLE IF EXISTS `zz_online_datasource_table`; -CREATE TABLE `zz_online_datasource_table` ( - `id` bigint NOT NULL COMMENT '主键Id', - `datasource_id` bigint NOT NULL COMMENT '数据源Id', - `relation_id` bigint DEFAULT NULL COMMENT '数据源关联Id', - `table_id` bigint NOT NULL COMMENT '数据表Id', - PRIMARY KEY (`id`) USING BTREE, - KEY `idx_relation_id` (`relation_id`) USING BTREE, - KEY `idx_datasource_id` (`datasource_id`) USING BTREE, - KEY `idx_table_id` (`table_id`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; - --- ---------------------------- --- Records of zz_online_datasource_table --- ---------------------------- -BEGIN; -INSERT INTO `zz_online_datasource_table` VALUES (1440945228134486016, 1440945228130291712, NULL, 1440945228079960064); -INSERT INTO `zz_online_datasource_table` VALUES (1440946127535869952, 1440946127531675648, NULL, 1440946127460372480); -INSERT INTO `zz_online_datasource_table` VALUES (1440947089272999936, 1440946127531675648, 1440947089268805632, 1440947089218473984); -INSERT INTO `zz_online_datasource_table` VALUES (1440952815378763776, 1440952815374569472, NULL, 1440952815294877696); -INSERT INTO `zz_online_datasource_table` VALUES (1440952921121361920, 1440952815374569472, 1440952921117167616, 1440952921024892928); -INSERT INTO `zz_online_datasource_table` VALUES (1440952988540604416, 1440952815374569472, 1440952988536410112, 1440952988389609472); -INSERT INTO `zz_online_datasource_table` VALUES (1440953088981602304, 1440952815374569472, 1440953088977408000, 1440953088901910528); -INSERT INTO `zz_online_datasource_table` VALUES (1440953170594369536, 1440952815374569472, 1440953170590175232, 1440953170514677760); -INSERT INTO `zz_online_datasource_table` VALUES (1440953245752102912, 1440952815374569472, 1440953245747908608, 1440953245664022528); -INSERT INTO `zz_online_datasource_table` VALUES (1440958971195166720, 1440958971190972416, NULL, 1440958971128057856); -INSERT INTO `zz_online_datasource_table` VALUES (1440961208348839936, 1440961208344645633, NULL, 1440961208273342464); -INSERT INTO `zz_online_datasource_table` VALUES (1440962162775298048, 1440962162771103745, NULL, 1440962162712383488); -COMMIT; - --- ---------------------------- --- Table structure for zz_online_dblink --- ---------------------------- -DROP TABLE IF EXISTS `zz_online_dblink`; -CREATE TABLE `zz_online_dblink` ( - `dblink_id` bigint NOT NULL COMMENT '主键Id', - `dblink_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '链接中文名称', - `variable_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '链接英文名称', - `dblink_desc` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '链接描述', - `dblink_config_constant` int NOT NULL COMMENT '数据源配置常量', - `create_time` datetime NOT NULL COMMENT '创建时间', - PRIMARY KEY (`dblink_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; - --- ---------------------------- --- Records of zz_online_dblink --- ---------------------------- -BEGIN; -INSERT INTO `zz_online_dblink` VALUES (1, 'first', 'first', '第一个链接', 0, '2021-09-23 00:00:00'); -COMMIT; - --- ---------------------------- --- Table structure for zz_online_dict --- ---------------------------- -DROP TABLE IF EXISTS `zz_online_dict`; -CREATE TABLE `zz_online_dict` ( - `dict_id` bigint NOT NULL COMMENT '主键Id', - `dict_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '字典名称', - `dict_type` int NOT NULL COMMENT '字典类型', - `dblink_id` bigint DEFAULT NULL COMMENT '数据库链接Id', - `table_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '字典表名称', - `key_column_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '字典表键字段名称', - `parent_key_column_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '字典表父键字段名称', - `value_column_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '字典值字段名称', - `deleted_column_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '逻辑删除字段', - `user_filter_column_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '用户过滤滤字段名称', - `dept_filter_column_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT 'dept_filter_column_name', - `tenant_filter_column_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '租户过滤字段名称', - `tree_flag` bit(1) NOT NULL COMMENT '是否树形标记', - `dict_list_url` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '获取字典列表数据的url', - `dict_ids_url` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '根据主键id批量获取字典数据的url', - `dict_data_json` text CHARACTER SET utf8mb4 COLLATE utf8mb4_bin COMMENT '字典的JSON数据', - `update_time` datetime NOT NULL COMMENT '更新时间', - `create_time` datetime NOT NULL COMMENT '创建时间', - PRIMARY KEY (`dict_id`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; - --- ---------------------------- --- Records of zz_online_dict --- ---------------------------- -BEGIN; -INSERT INTO `zz_online_dict` VALUES (1440943031288074240, '请假类型', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, b'0', NULL, NULL, '{\"dictData\":[{\"type\":\"Integer\",\"id\":1,\"name\":\"年假\"},{\"type\":\"Integer\",\"id\":2,\"name\":\"事假\"},{\"type\":\"Integer\",\"id\":3,\"name\":\"婚假\"}],\"paramList\":[]}', '2021-09-23 15:36:05', '2021-09-23 15:36:05'); -INSERT INTO `zz_online_dict` VALUES (1440943168626364416, '报销类别', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, b'0', NULL, NULL, '{\"dictData\":[{\"type\":\"Integer\",\"id\":1,\"name\":\"差旅报销\"},{\"type\":\"Integer\",\"id\":2,\"name\":\"日常报销\"}],\"paramList\":[]}', '2021-09-23 15:36:37', '2021-09-23 15:36:37'); -INSERT INTO `zz_online_dict` VALUES (1440943309924077568, '费用类别', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, b'0', NULL, NULL, '{\"dictData\":[{\"type\":\"Integer\",\"id\":1,\"name\":\"食宿费用\"},{\"type\":\"Integer\",\"id\":2,\"name\":\"交通费用\"}],\"paramList\":[]}', '2021-09-23 15:37:11', '2021-09-23 15:37:11'); -INSERT INTO `zz_online_dict` VALUES (1440943452526219264, '甲方企业', 1, 1, 'zz_test_flow_first_party', 'first_party_id', NULL, 'company_name', 'deleted_flag', NULL, NULL, NULL, b'0', NULL, NULL, '{\"paramList\":[]}', '2021-09-23 15:37:45', '2021-09-23 15:37:45'); -INSERT INTO `zz_online_dict` VALUES (1440943955939168256, '乙方企业', 1, 1, 'zz_test_flow_second_party', 'second_party_id', NULL, 'company_name', 'deleted_flag', NULL, NULL, NULL, b'0', NULL, NULL, '{\"paramList\":[]}', '2021-09-23 15:39:45', '2021-09-23 15:39:45'); -INSERT INTO `zz_online_dict` VALUES (1440944049128214528, '商品字典', 1, 1, 'zz_test_flow_product', 'product_id', NULL, 'product_name', 'deleted_flag', NULL, NULL, NULL, b'0', NULL, NULL, '{\"paramList\":[]}', '2021-09-23 15:40:07', '2021-09-23 15:40:07'); -INSERT INTO `zz_online_dict` VALUES (1440944184381935616, '付款类型', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, b'0', NULL, NULL, '{\"dictData\":[{\"type\":\"Integer\",\"id\":1,\"name\":\"预付款\"},{\"type\":\"Integer\",\"id\":2,\"name\":\"分期款\"},{\"type\":\"Integer\",\"id\":3,\"name\":\"项目尾款\"}],\"paramList\":[]}', '2021-09-23 15:40:40', '2021-09-23 15:40:40'); -INSERT INTO `zz_online_dict` VALUES (1440944300799037440, '合同类型', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, b'0', NULL, NULL, '{\"dictData\":[{\"type\":\"Integer\",\"id\":1,\"name\":\"生产合同\"},{\"type\":\"Integer\",\"id\":2,\"name\":\"代工合同\"}],\"paramList\":[]}', '2021-09-23 15:41:07', '2021-09-23 15:41:07'); -INSERT INTO `zz_online_dict` VALUES (1440944417170001920, '用户字典', 1, 1, 'zz_sys_user', 'user_id', NULL, 'show_name', 'deleted_flag', NULL, NULL, NULL, b'0', NULL, NULL, '{\"paramList\":[]}', '2021-09-23 15:41:35', '2021-09-23 15:41:35'); -COMMIT; - --- ---------------------------- --- Table structure for zz_online_form --- ---------------------------- -DROP TABLE IF EXISTS `zz_online_form`; -CREATE TABLE `zz_online_form` ( - `form_id` bigint NOT NULL COMMENT '主键Id', - `page_id` bigint NOT NULL COMMENT '页面id', - `form_code` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '表单编码', - `form_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '表单名称', - `form_kind` int NOT NULL COMMENT '表单类别', - `form_type` int NOT NULL COMMENT '表单类型', - `master_table_id` bigint NOT NULL COMMENT '表单主表id', - `widget_json` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin COMMENT '表单组件JSON', - `params_json` text CHARACTER SET utf8mb4 COLLATE utf8mb4_bin COMMENT '表单参数JSON', - `update_time` datetime NOT NULL COMMENT '更新时间', - `create_time` datetime NOT NULL COMMENT '创建时间', - PRIMARY KEY (`form_id`) USING BTREE, - UNIQUE KEY `uk_page_id_form_code` (`page_id`,`form_code`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; - --- ---------------------------- --- Records of zz_online_form --- ---------------------------- -BEGIN; -INSERT INTO `zz_online_form` VALUES (1440945411354267648, 1440945149889744896, 'formFlowLeave', '请假申请', 5, 10, 1440945228079960064, '{\"formConfig\":{\"formKind\":5,\"formType\":10,\"gutter\":20,\"labelWidth\":120,\"labelPosition\":\"right\",\"width\":800,\"paramList\":[{\"columnName\":\"id\",\"primaryKey\":true,\"slaveClumn\":false,\"builtin\":true}]},\"widgetList\":[{\"widgetKind\":1,\"widgetType\":10,\"span\":24,\"placeholder\":\"\",\"id\":1632383156919,\"datasourceId\":\"1440945228130291712\",\"tableId\":\"1440945228079960064\",\"columnId\":\"1440945228105125888\",\"columnName\":\"leave_type\",\"showName\":\"请假类型\",\"variableName\":\"leaveType\",\"dictParamList\":[],\"queryParamList\":[],\"tableColumnList\":[]},{\"widgetKind\":1,\"widgetType\":20,\"span\":24,\"placeholder\":\"\",\"type\":\"date\",\"format\":\"yyyy-MM-dd\",\"valueFormat\":\"yyyy-MM-dd\",\"readOnly\":false,\"disabled\":false,\"id\":1632383163405,\"datasourceId\":\"1440945228130291712\",\"tableId\":\"1440945228079960064\",\"columnId\":\"1440945228113514496\",\"columnName\":\"leave_begin_time\",\"showName\":\"开始时间\",\"variableName\":\"leaveBeginTime\",\"dictParamList\":null,\"queryParamList\":[],\"tableColumnList\":[]},{\"widgetKind\":1,\"widgetType\":20,\"span\":24,\"placeholder\":\"\",\"type\":\"date\",\"format\":\"yyyy-MM-dd\",\"valueFormat\":\"yyyy-MM-dd\",\"readOnly\":false,\"disabled\":false,\"id\":1632383171595,\"datasourceId\":\"1440945228130291712\",\"tableId\":\"1440945228079960064\",\"columnId\":\"1440945228117708800\",\"columnName\":\"leave_end_time\",\"showName\":\"结束时间\",\"variableName\":\"leaveEndTime\",\"dictParamList\":null,\"queryParamList\":[],\"tableColumnList\":[]},{\"widgetKind\":1,\"widgetType\":1,\"span\":24,\"type\":\"textarea\",\"placeholder\":\"\",\"defaultValue\":\"\",\"minRows\":2,\"maxRows\":2,\"readOnly\":false,\"disabled\":false,\"id\":1632383177429,\"datasourceId\":\"1440945228130291712\",\"tableId\":\"1440945228079960064\",\"columnId\":\"1440945228100931584\",\"columnName\":\"leave_reason\",\"showName\":\"请假原因\",\"variableName\":\"leaveReason\",\"dictParamList\":null,\"queryParamList\":[],\"tableColumnList\":[]}]}', '[{\"autoIncrement\":false,\"columnComment\":\"主键Id\",\"columnId\":\"1440945228088348672\",\"columnName\":\"id\",\"columnShowOrder\":1,\"columnType\":\"bigint\",\"createTime\":\"2021-09-23 15:44:49\",\"deptFilter\":false,\"filterType\":0,\"fullColumnType\":\"bigint(20)\",\"nullable\":false,\"objectFieldName\":\"id\",\"objectFieldType\":\"Long\",\"parentKey\":false,\"primaryKey\":true,\"tableId\":\"1440945228079960064\",\"updateTime\":\"2021-09-23 15:44:49\",\"userFilter\":false}]', '2021-09-23 15:46:50', '2021-09-23 15:45:32'); -INSERT INTO `zz_online_form` VALUES (1440945468593934336, 1440945149889744896, 'formOrderLeave', '请假工单', 5, 11, 1440945228079960064, '{\"formConfig\":{\"formKind\":5,\"formType\":11,\"gutter\":20,\"labelWidth\":100,\"labelPosition\":\"right\",\"width\":800,\"paramList\":[{\"columnName\":\"id\",\"primaryKey\":true,\"slaveClumn\":false,\"builtin\":true}],\"tableWidget\":{\"widgetKind\":2,\"widgetType\":100,\"span\":24,\"supportBottom\":0,\"tableInfo\":{\"paged\":true,\"optionColumnWidth\":150},\"titleColor\":\"#409EFF\",\"tableColumnList\":[{\"columnId\":\"1440945228092542976\",\"tableId\":\"1440945228079960064\",\"showName\":\"请假用户\",\"showOrder\":1,\"sortable\":false},{\"columnId\":\"1440945228105125888\",\"tableId\":\"1440945228079960064\",\"showName\":\"请假类型\",\"showOrder\":2,\"sortable\":false},{\"columnId\":\"1440945228113514496\",\"tableId\":\"1440945228079960064\",\"showName\":\"开始时间\",\"showOrder\":3,\"sortable\":false},{\"columnId\":\"1440945228117708800\",\"tableId\":\"1440945228079960064\",\"showName\":\"结束时间\",\"showOrder\":4,\"sortable\":false}],\"operationList\":[],\"queryParamList\":[],\"tableId\":\"1440945228079960064\",\"variableName\":\"formOrderLeave\",\"showName\":\"请假工单\",\"hasError\":false,\"datasourceId\":\"1440945228130291712\"}},\"widgetList\":[]}', '[{\"autoIncrement\":false,\"columnComment\":\"主键Id\",\"columnId\":\"1440945228088348672\",\"columnName\":\"id\",\"columnShowOrder\":1,\"columnType\":\"bigint\",\"createTime\":\"2021-09-23 15:44:49\",\"deptFilter\":false,\"filterType\":0,\"fullColumnType\":\"bigint(20)\",\"nullable\":false,\"objectFieldName\":\"id\",\"objectFieldType\":\"Long\",\"parentKey\":false,\"primaryKey\":true,\"tableId\":\"1440945228079960064\",\"updateTime\":\"2021-09-23 15:44:49\",\"userFilter\":false}]', '2021-09-23 17:56:51', '2021-09-23 15:45:46'); -INSERT INTO `zz_online_form` VALUES (1440947675041107968, 1440946020174270464, 'formFlowSubmit', '报销申请', 5, 10, 1440946127460372480, '{\"formConfig\":{\"formKind\":5,\"formType\":10,\"gutter\":20,\"labelWidth\":100,\"labelPosition\":\"right\",\"width\":800,\"paramList\":[{\"columnName\":\"id\",\"primaryKey\":true,\"slaveClumn\":false,\"builtin\":true}]},\"widgetList\":[{\"widgetKind\":1,\"widgetType\":1,\"span\":12,\"type\":\"text\",\"placeholder\":\"\",\"defaultValue\":\"\",\"minRows\":2,\"maxRows\":2,\"readOnly\":false,\"disabled\":false,\"id\":1632383719604,\"datasourceId\":\"1440946127531675648\",\"tableId\":\"1440946127460372480\",\"columnId\":\"1440946127481344000\",\"columnName\":\"submit_name\",\"showName\":\"报销名称\",\"variableName\":\"submitName\",\"dictParamList\":null,\"queryParamList\":[],\"tableColumnList\":[],\"hasError\":false},{\"widgetKind\":1,\"widgetType\":10,\"span\":12,\"placeholder\":\"\",\"id\":1632383720428,\"datasourceId\":\"1440946127531675648\",\"tableId\":\"1440946127460372480\",\"columnId\":\"1440946127489732608\",\"columnName\":\"submit_kind\",\"showName\":\"报销类别\",\"variableName\":\"submitKind\",\"queryParamList\":[],\"tableColumnList\":[],\"hasError\":false},{\"widgetKind\":1,\"widgetType\":3,\"span\":12,\"defaultValue\":0,\"min\":0,\"step\":1,\"precision\":2,\"controlVisible\":1,\"controlPosition\":0,\"readOnly\":false,\"disabled\":false,\"id\":1632383724574,\"datasourceId\":\"1440946127531675648\",\"tableId\":\"1440946127460372480\",\"columnId\":\"1440946127493926912\",\"columnName\":\"total_amount\",\"showName\":\"报销金额\",\"variableName\":\"totalAmount\",\"dictParamList\":null,\"queryParamList\":[],\"tableColumnList\":[],\"hasError\":false},{\"widgetKind\":1,\"widgetType\":1,\"span\":12,\"type\":\"text\",\"placeholder\":\"\",\"defaultValue\":\"\",\"minRows\":2,\"maxRows\":2,\"readOnly\":false,\"disabled\":false,\"id\":1632383744379,\"datasourceId\":\"1440946127531675648\",\"tableId\":\"1440946127460372480\",\"columnId\":\"1440946127498121216\",\"columnName\":\"description\",\"showName\":\"报销描述\",\"variableName\":\"description\",\"dictParamList\":null,\"queryParamList\":[],\"tableColumnList\":[],\"hasError\":false},{\"widgetKind\":1,\"widgetType\":1,\"span\":24,\"type\":\"textarea\",\"placeholder\":\"\",\"defaultValue\":\"\",\"minRows\":2,\"maxRows\":2,\"readOnly\":false,\"disabled\":false,\"id\":1632383752809,\"datasourceId\":\"1440946127531675648\",\"tableId\":\"1440946127460372480\",\"columnId\":\"1440946127506509824\",\"columnName\":\"memo\",\"showName\":\"备注\",\"variableName\":\"memo\",\"dictParamList\":null,\"queryParamList\":[],\"tableColumnList\":[],\"hasError\":false},{\"widgetKind\":2,\"widgetType\":100,\"span\":24,\"supportBottom\":0,\"tableInfo\":{\"paged\":true,\"optionColumnWidth\":150},\"titleColor\":\"#409EFF\",\"tableColumnList\":[{\"columnId\":\"1440947089235251200\",\"tableId\":\"1440947089218473984\",\"showName\":\"费用类型\",\"showOrder\":1,\"sortable\":false,\"relationId\":\"1440947089268805632\",\"dataFieldName\":null},{\"columnId\":\"1440947089252028416\",\"tableId\":\"1440947089218473984\",\"showName\":\"金额\",\"showOrder\":2,\"sortable\":false,\"relationId\":\"1440947089268805632\",\"dataFieldName\":null},{\"columnId\":\"1440947089260417024\",\"tableId\":\"1440947089218473984\",\"showName\":\"报销凭证\",\"showOrder\":3,\"sortable\":false,\"relationId\":\"1440947089268805632\",\"dataFieldName\":null},{\"columnId\":\"1440947089264611328\",\"tableId\":\"1440947089218473984\",\"showName\":\"费用描述\",\"showOrder\":4,\"sortable\":false,\"relationId\":\"1440947089268805632\",\"dataFieldName\":null}],\"operationList\":[{\"id\":1,\"type\":0,\"name\":\"新建\",\"enabled\":true,\"builtin\":true,\"rowOperation\":false,\"btnType\":\"primary\",\"plain\":false,\"formId\":\"1440947791881834496\"},{\"id\":2,\"type\":1,\"name\":\"编辑\",\"enabled\":true,\"builtin\":true,\"rowOperation\":true,\"btnClass\":\"table-btn success\",\"formId\":\"1440947791881834496\"},{\"id\":3,\"type\":2,\"name\":\"删除\",\"enabled\":true,\"builtin\":true,\"rowOperation\":true,\"btnClass\":\"table-btn delete\"}],\"queryParamList\":[{\"tableId\":\"1440947089218473984\",\"columnId\":\"1440947089231056896\",\"paramValueType\":0,\"paramValue\":\"id\"}],\"id\":1632383762135,\"relationId\":\"1440947089268805632\",\"tableId\":\"1440947089218473984\",\"columnName\":\"id_zz_test_flow_submit_detail_submit_idRelation\",\"showName\":\"报销详情\",\"variableName\":\"id_zz_test_flow_submit_detail_submit_idRelation\",\"dictParamList\":null,\"hasError\":false}]}', '[{\"autoIncrement\":false,\"columnComment\":\"主键Id\",\"columnId\":\"1440946127468761088\",\"columnName\":\"id\",\"columnShowOrder\":1,\"columnType\":\"bigint\",\"createTime\":\"2021-09-23 15:48:23\",\"deptFilter\":false,\"filterType\":0,\"fullColumnType\":\"bigint(20)\",\"nullable\":false,\"objectFieldName\":\"id\",\"objectFieldType\":\"Long\",\"parentKey\":false,\"primaryKey\":true,\"tableId\":\"1440946127460372480\",\"updateTime\":\"2021-09-23 15:48:23\",\"userFilter\":false}]', '2021-09-23 15:58:07', '2021-09-23 15:54:32'); -INSERT INTO `zz_online_form` VALUES (1440947791881834496, 1440946020174270464, 'formEditFlowSubmitDetail', '编辑报销详情', 1, 5, 1440947089218473984, '{\"formConfig\":{\"formKind\":1,\"formType\":5,\"gutter\":20,\"labelWidth\":100,\"labelPosition\":\"right\",\"width\":800,\"paramList\":[{\"columnName\":\"id\",\"primaryKey\":true,\"slaveClumn\":false,\"builtin\":true}]},\"widgetList\":[{\"widgetKind\":1,\"widgetType\":10,\"span\":24,\"placeholder\":\"\",\"id\":1632383900080,\"datasourceId\":\"1440946127531675648\",\"relationId\":\"1440947089268805632\",\"tableId\":\"1440947089218473984\",\"columnId\":\"1440947089235251200\",\"columnName\":\"expense_type\",\"showName\":\"费用类型\",\"variableName\":\"expenseType\",\"dictParamList\":[],\"queryParamList\":[],\"tableColumnList\":[]},{\"widgetKind\":1,\"widgetType\":20,\"span\":24,\"placeholder\":\"\",\"type\":\"date\",\"format\":\"yyyy-MM-dd\",\"valueFormat\":\"yyyy-MM-dd\",\"readOnly\":false,\"disabled\":false,\"id\":1632383900902,\"datasourceId\":\"1440946127531675648\",\"relationId\":\"1440947089268805632\",\"tableId\":\"1440947089218473984\",\"columnId\":\"1440947089243639808\",\"columnName\":\"expense_time\",\"showName\":\"发生日期\",\"variableName\":\"expenseTime\",\"dictParamList\":null,\"queryParamList\":[],\"tableColumnList\":[]},{\"widgetKind\":1,\"widgetType\":3,\"span\":24,\"defaultValue\":0,\"min\":0,\"step\":1,\"precision\":2,\"controlVisible\":1,\"controlPosition\":0,\"readOnly\":false,\"disabled\":false,\"id\":1632383906027,\"datasourceId\":\"1440946127531675648\",\"relationId\":\"1440947089268805632\",\"tableId\":\"1440947089218473984\",\"columnId\":\"1440947089252028416\",\"columnName\":\"amount\",\"showName\":\"金额\",\"variableName\":\"amount\",\"dictParamList\":null,\"queryParamList\":[],\"tableColumnList\":[]},{\"widgetKind\":1,\"widgetType\":1,\"span\":24,\"type\":\"textarea\",\"placeholder\":\"\",\"defaultValue\":\"\",\"minRows\":2,\"maxRows\":4,\"readOnly\":false,\"disabled\":false,\"id\":1632383907850,\"datasourceId\":\"1440946127531675648\",\"relationId\":\"1440947089268805632\",\"tableId\":\"1440947089218473984\",\"columnId\":\"1440947089264611328\",\"columnName\":\"description\",\"showName\":\"费用描述\",\"variableName\":\"description\",\"dictParamList\":null,\"queryParamList\":[],\"tableColumnList\":[]},{\"widgetKind\":1,\"widgetType\":31,\"span\":24,\"isImage\":true,\"fileFieldName\":\"uploadFile\",\"actionUrl\":\"/admin/flow/flowOnlineOperation/upload\",\"downloadUrl\":\"/admin/flow/flowOnlineOperation/download\",\"id\":1632383908452,\"datasourceId\":\"1440946127531675648\",\"relationId\":\"1440947089268805632\",\"tableId\":\"1440947089218473984\",\"columnId\":\"1440947089260417024\",\"columnName\":\"image_url\",\"showName\":\"报销凭证\",\"variableName\":\"imageUrl\",\"dictParamList\":null,\"queryParamList\":[],\"tableColumnList\":[]}]}', '[{\"autoIncrement\":false,\"columnComment\":\"主键Id\",\"columnId\":\"1440947089222668288\",\"columnName\":\"id\",\"columnShowOrder\":1,\"columnType\":\"bigint\",\"createTime\":\"2021-09-23 15:52:12\",\"deptFilter\":false,\"filterType\":0,\"fullColumnType\":\"bigint(20)\",\"nullable\":false,\"objectFieldName\":\"id\",\"objectFieldType\":\"Long\",\"parentKey\":false,\"primaryKey\":true,\"tableId\":\"1440947089218473984\",\"updateTime\":\"2021-09-23 15:52:12\",\"userFilter\":false}]', '2021-09-23 15:59:08', '2021-09-23 15:55:00'); -INSERT INTO `zz_online_form` VALUES (1440954920348946432, 1440952710487609344, 'formFlowContract', '合同审批', 5, 10, 1440952815294877696, '{\"formConfig\":{\"formKind\":5,\"formType\":10,\"gutter\":20,\"labelWidth\":120,\"labelPosition\":\"right\",\"width\":800,\"paramList\":[{\"columnName\":\"contract_id\",\"primaryKey\":true,\"slaveClumn\":false,\"builtin\":true}]},\"widgetList\":[{\"widgetKind\":1,\"widgetType\":10,\"span\":12,\"placeholder\":\"\",\"id\":1632385543720,\"datasourceId\":\"1440952815374569472\",\"tableId\":\"1440952815294877696\",\"columnId\":\"1440952815307460608\",\"columnName\":\"first_party_id\",\"showName\":\"甲方企业\",\"variableName\":\"firstPartyId\",\"queryParamList\":[],\"tableColumnList\":[],\"hasError\":false},{\"widgetKind\":1,\"widgetType\":10,\"span\":12,\"placeholder\":\"\",\"id\":1632385544316,\"datasourceId\":\"1440952815374569472\",\"tableId\":\"1440952815294877696\",\"columnId\":\"1440952815311654912\",\"columnName\":\"second_party_id\",\"showName\":\"乙方企业\",\"variableName\":\"secondPartyId\",\"queryParamList\":[],\"tableColumnList\":[],\"hasError\":false},{\"widgetKind\":1,\"widgetType\":10,\"span\":12,\"placeholder\":\"\",\"id\":1632385545012,\"datasourceId\":\"1440952815374569472\",\"tableId\":\"1440952815294877696\",\"columnId\":\"1440952815315849216\",\"columnName\":\"contract_type\",\"showName\":\"合同类型\",\"variableName\":\"contractType\",\"queryParamList\":[],\"tableColumnList\":[],\"hasError\":false},{\"widgetKind\":1,\"widgetType\":10,\"span\":12,\"placeholder\":\"\",\"id\":1632385545729,\"datasourceId\":\"1440952815374569472\",\"tableId\":\"1440952815294877696\",\"columnId\":\"1440952815324237824\",\"columnName\":\"sales_id\",\"showName\":\"业务员\",\"variableName\":\"salesId\",\"queryParamList\":[],\"tableColumnList\":[],\"hasError\":false},{\"widgetKind\":1,\"widgetType\":20,\"span\":12,\"placeholder\":\"\",\"type\":\"date\",\"format\":\"yyyy-MM-dd\",\"valueFormat\":\"yyyy-MM-dd\",\"readOnly\":false,\"disabled\":false,\"id\":1632385550074,\"datasourceId\":\"1440952815374569472\",\"tableId\":\"1440952815294877696\",\"columnId\":\"1440952815320043520\",\"columnName\":\"due_date\",\"showName\":\"到期日期\",\"variableName\":\"dueDate\",\"dictParamList\":null,\"queryParamList\":[],\"tableColumnList\":[],\"hasError\":false},{\"widgetKind\":1,\"widgetType\":3,\"span\":12,\"defaultValue\":0,\"min\":0,\"step\":1,\"precision\":2,\"controlVisible\":1,\"controlPosition\":0,\"readOnly\":false,\"disabled\":false,\"id\":1632385552142,\"datasourceId\":\"1440952815374569472\",\"tableId\":\"1440952815294877696\",\"columnId\":\"1440952815332626432\",\"columnName\":\"commission_rate\",\"showName\":\"提成比例\",\"variableName\":\"commissionRate\",\"dictParamList\":null,\"queryParamList\":[],\"tableColumnList\":[],\"hasError\":false},{\"widgetKind\":1,\"widgetType\":31,\"span\":12,\"isImage\":false,\"fileFieldName\":\"uploadFile\",\"actionUrl\":\"/admin/flow/flowOnlineOperation/upload\",\"downloadUrl\":\"/admin/flow/flowOnlineOperation/download\",\"id\":1632385586521,\"datasourceId\":\"1440952815374569472\",\"tableId\":\"1440952815294877696\",\"columnId\":\"1440952815336820736\",\"columnName\":\"attachment\",\"showName\":\"合同附件\",\"variableName\":\"attachment\",\"dictParamList\":null,\"queryParamList\":[],\"tableColumnList\":[],\"hasError\":false},{\"widgetKind\":1,\"widgetType\":31,\"span\":12,\"isImage\":false,\"fileFieldName\":\"uploadFile\",\"actionUrl\":\"/admin/flow/flowOnlineOperation/upload\",\"downloadUrl\":\"/admin/flow/flowOnlineOperation/download\",\"id\":1632385587136,\"datasourceId\":\"1440952815374569472\",\"tableId\":\"1440952815294877696\",\"columnId\":\"1440952815341015040\",\"columnName\":\"security_attachment\",\"showName\":\"保密协议\",\"variableName\":\"securityAttachment\",\"dictParamList\":null,\"queryParamList\":[],\"tableColumnList\":[],\"hasError\":false},{\"widgetKind\":1,\"widgetType\":31,\"span\":12,\"isImage\":false,\"fileFieldName\":\"uploadFile\",\"actionUrl\":\"/admin/flow/flowOnlineOperation/upload\",\"downloadUrl\":\"/admin/flow/flowOnlineOperation/download\",\"id\":1632385587746,\"datasourceId\":\"1440952815374569472\",\"tableId\":\"1440952815294877696\",\"columnId\":\"1440952815345209344\",\"columnName\":\"intellectual_property_attachment\",\"showName\":\"知识产权协议\",\"variableName\":\"intellectualPropertyAttachment\",\"dictParamList\":null,\"queryParamList\":[],\"tableColumnList\":[],\"hasError\":false},{\"widgetKind\":1,\"widgetType\":31,\"span\":12,\"isImage\":false,\"fileFieldName\":\"uploadFile\",\"actionUrl\":\"/admin/flow/flowOnlineOperation/upload\",\"downloadUrl\":\"/admin/flow/flowOnlineOperation/download\",\"id\":1632385589128,\"datasourceId\":\"1440952815374569472\",\"tableId\":\"1440952815294877696\",\"columnId\":\"1440952815349403648\",\"columnName\":\"other_attachment\",\"showName\":\"其他附件\",\"variableName\":\"otherAttachment\",\"dictParamList\":null,\"queryParamList\":[],\"tableColumnList\":[],\"hasError\":false},{\"widgetKind\":2,\"widgetType\":100,\"span\":24,\"supportBottom\":1,\"tableInfo\":{\"paged\":true,\"optionColumnWidth\":150},\"titleColor\":\"#409EFF\",\"tableColumnList\":[{\"columnId\":\"1440953088922882048\",\"tableId\":\"1440953088901910528\",\"showName\":\"合同产品\",\"showOrder\":1,\"sortable\":false,\"relationId\":\"1440953088977408000\",\"dataFieldName\":null},{\"columnId\":\"1440953088927076352\",\"tableId\":\"1440953088901910528\",\"showName\":\"产品数量\",\"showOrder\":2,\"sortable\":false,\"relationId\":\"1440953088977408000\",\"dataFieldName\":null},{\"columnId\":\"1440953088935464960\",\"tableId\":\"1440953088901910528\",\"showName\":\"产品总价\",\"showOrder\":3,\"sortable\":false,\"relationId\":\"1440953088977408000\",\"dataFieldName\":null},{\"columnId\":\"1440953088939659264\",\"tableId\":\"1440953088901910528\",\"showName\":\"备注\",\"showOrder\":4,\"sortable\":false,\"relationId\":\"1440953088977408000\",\"dataFieldName\":null}],\"operationList\":[{\"id\":1,\"type\":0,\"name\":\"新建\",\"enabled\":true,\"builtin\":true,\"rowOperation\":false,\"btnType\":\"primary\",\"plain\":false,\"formId\":\"1440955295755931648\"},{\"id\":2,\"type\":1,\"name\":\"编辑\",\"enabled\":true,\"builtin\":true,\"rowOperation\":true,\"btnClass\":\"table-btn success\",\"formId\":\"1440955295755931648\"},{\"id\":3,\"type\":2,\"name\":\"删除\",\"enabled\":true,\"builtin\":true,\"rowOperation\":true,\"btnClass\":\"table-btn delete\"}],\"queryParamList\":[{\"tableId\":\"1440953088901910528\",\"columnId\":\"1440953088918687744\",\"paramValueType\":1,\"paramValue\":\"1440952815303266304\"}],\"id\":1632385613866,\"relationId\":\"1440953088977408000\",\"tableId\":\"1440953088901910528\",\"columnName\":\"contract_id_zz_test_flow_contract_detail_contract_idRelation\",\"showName\":\"合同详情\",\"variableName\":\"contract_id_zz_test_flow_contract_detail_contract_idRelation\",\"dictParamList\":null,\"hasError\":false},{\"widgetKind\":2,\"widgetType\":100,\"span\":24,\"supportBottom\":1,\"tableInfo\":{\"paged\":true,\"optionColumnWidth\":150},\"titleColor\":\"#409EFF\",\"tableColumnList\":[{\"columnId\":\"1440953245684994048\",\"tableId\":\"1440953245664022528\",\"showName\":\"交付日期\",\"showOrder\":1,\"sortable\":false,\"relationId\":\"1440953245747908608\",\"dataFieldName\":null},{\"columnId\":\"1440953245697576960\",\"tableId\":\"1440953245664022528\",\"showName\":\"交付产品\",\"showOrder\":2,\"sortable\":false,\"relationId\":\"1440953245747908608\",\"dataFieldName\":null},{\"columnId\":\"1440953245705965568\",\"tableId\":\"1440953245664022528\",\"showName\":\"交付数量\",\"showOrder\":3,\"sortable\":false,\"relationId\":\"1440953245747908608\",\"dataFieldName\":null},{\"columnId\":\"1440953245718548480\",\"tableId\":\"1440953245664022528\",\"showName\":\"备注\",\"showOrder\":4,\"sortable\":false,\"relationId\":\"1440953245747908608\",\"dataFieldName\":null}],\"operationList\":[{\"id\":1,\"type\":0,\"name\":\"新建\",\"enabled\":true,\"builtin\":true,\"rowOperation\":false,\"btnType\":\"primary\",\"plain\":false,\"formId\":\"1440955424638504960\"},{\"id\":2,\"type\":1,\"name\":\"编辑\",\"enabled\":true,\"builtin\":true,\"rowOperation\":true,\"btnClass\":\"table-btn success\",\"formId\":\"1440955424638504960\"},{\"id\":3,\"type\":2,\"name\":\"删除\",\"enabled\":true,\"builtin\":true,\"rowOperation\":true,\"btnClass\":\"table-btn delete\"}],\"queryParamList\":[{\"tableId\":\"1440953245664022528\",\"columnId\":\"1440953245676605440\",\"paramValueType\":1,\"paramValue\":\"1440952815303266304\"}],\"id\":1632385617093,\"relationId\":\"1440953245747908608\",\"tableId\":\"1440953245664022528\",\"columnName\":\"contract_id_zz_test_flow_delivery_detail_contract_idRelation\",\"showName\":\"交付详情\",\"variableName\":\"contract_id_zz_test_flow_delivery_detail_contract_idRelation\",\"dictParamList\":null,\"hasError\":false},{\"widgetKind\":2,\"widgetType\":100,\"span\":24,\"supportBottom\":0,\"tableInfo\":{\"paged\":true,\"optionColumnWidth\":150},\"titleColor\":\"#409EFF\",\"tableColumnList\":[{\"columnId\":\"1440953170535649280\",\"tableId\":\"1440953170514677760\",\"showName\":\"付款日期\",\"showOrder\":1,\"sortable\":false,\"relationId\":\"1440953170590175232\",\"dataFieldName\":null},{\"columnId\":\"1440953170539843584\",\"tableId\":\"1440953170514677760\",\"showName\":\"付款类型\",\"showOrder\":2,\"sortable\":false,\"relationId\":\"1440953170590175232\",\"dataFieldName\":null},{\"columnId\":\"1440953170548232192\",\"tableId\":\"1440953170514677760\",\"showName\":\"付款比例(%)\",\"showOrder\":3,\"sortable\":false,\"relationId\":\"1440953170590175232\",\"dataFieldName\":null},{\"columnId\":\"1440953170552426496\",\"tableId\":\"1440953170514677760\",\"showName\":\"备注\",\"showOrder\":4,\"sortable\":false,\"relationId\":\"1440953170590175232\",\"dataFieldName\":null}],\"operationList\":[{\"id\":1,\"type\":0,\"name\":\"新建\",\"enabled\":true,\"builtin\":true,\"rowOperation\":false,\"btnType\":\"primary\",\"plain\":false,\"formId\":\"1440955361006718976\"},{\"id\":2,\"type\":1,\"name\":\"编辑\",\"enabled\":true,\"builtin\":true,\"rowOperation\":true,\"btnClass\":\"table-btn success\",\"formId\":\"1440955361006718976\"},{\"id\":3,\"type\":2,\"name\":\"删除\",\"enabled\":true,\"builtin\":true,\"rowOperation\":true,\"btnClass\":\"table-btn delete\"}],\"queryParamList\":[{\"tableId\":\"1440953170514677760\",\"columnId\":\"1440953170531454976\",\"paramValueType\":1,\"paramValue\":\"1440952815303266304\"}],\"id\":1632385617965,\"relationId\":\"1440953170590175232\",\"tableId\":\"1440953170514677760\",\"columnName\":\"contract_id_zz_test_flow_pay_detail_contract_idRelation\",\"showName\":\"付款详情\",\"variableName\":\"contract_id_zz_test_flow_pay_detail_contract_idRelation\",\"dictParamList\":null,\"hasError\":false}]}', '[{\"autoIncrement\":false,\"columnComment\":\"主键Id\",\"columnId\":\"1440952815303266304\",\"columnName\":\"contract_id\",\"columnShowOrder\":1,\"columnType\":\"bigint\",\"createTime\":\"2021-09-23 16:14:57\",\"deptFilter\":false,\"filterType\":0,\"fullColumnType\":\"bigint(20)\",\"nullable\":false,\"objectFieldName\":\"contractId\",\"objectFieldType\":\"Long\",\"parentKey\":false,\"primaryKey\":true,\"tableId\":\"1440952815294877696\",\"updateTime\":\"2021-09-23 16:14:57\",\"userFilter\":false}]', '2021-09-24 09:36:35', '2021-09-23 16:23:19'); -INSERT INTO `zz_online_form` VALUES (1440955001093492736, 1440952710487609344, 'formFlowContractLaw', '法务信息', 5, 10, 1440952815294877696, '{\"formConfig\":{\"formKind\":5,\"formType\":10,\"gutter\":20,\"labelWidth\":120,\"labelPosition\":\"right\",\"width\":800,\"paramList\":[{\"columnName\":\"contract_id\",\"primaryKey\":true,\"slaveClumn\":false,\"builtin\":true}]},\"widgetList\":[{\"widgetKind\":2,\"widgetType\":40,\"span\":24,\"position\":\"center\",\"id\":1632385804854,\"columnName\":\"divider\",\"showName\":\"甲方信息\",\"variableName\":\"divider\",\"dictParamList\":null,\"queryParamList\":[],\"tableColumnList\":[]},{\"widgetKind\":1,\"widgetType\":1,\"span\":12,\"type\":\"text\",\"placeholder\":\"\",\"defaultValue\":\"\",\"minRows\":2,\"maxRows\":2,\"readOnly\":false,\"disabled\":false,\"id\":1632385840611,\"datasourceId\":\"1440952815374569472\",\"relationId\":\"1440952921117167616\",\"tableId\":\"1440952921024892928\",\"columnId\":\"1440952921041670144\",\"columnName\":\"company_name\",\"showName\":\"公司名称\",\"variableName\":\"companyName\",\"dictParamList\":null,\"queryParamList\":[],\"tableColumnList\":[]},{\"widgetKind\":1,\"widgetType\":1,\"span\":12,\"type\":\"text\",\"placeholder\":\"\",\"defaultValue\":\"\",\"minRows\":2,\"maxRows\":2,\"readOnly\":false,\"disabled\":false,\"id\":1632385850871,\"datasourceId\":\"1440952815374569472\",\"relationId\":\"1440952921117167616\",\"tableId\":\"1440952921024892928\",\"columnId\":\"1440952921066835968\",\"columnName\":\"contact_info\",\"showName\":\"联系方式\",\"variableName\":\"contactInfo\",\"dictParamList\":null,\"queryParamList\":[],\"tableColumnList\":[]},{\"widgetKind\":1,\"widgetType\":1,\"span\":24,\"type\":\"textarea\",\"placeholder\":\"\",\"defaultValue\":\"\",\"minRows\":2,\"maxRows\":2,\"readOnly\":false,\"disabled\":false,\"id\":1632385854474,\"datasourceId\":\"1440952815374569472\",\"relationId\":\"1440952921117167616\",\"tableId\":\"1440952921024892928\",\"columnId\":\"1440952921058447360\",\"columnName\":\"registry_address\",\"showName\":\"注册地址\",\"variableName\":\"registryAddress\",\"dictParamList\":null,\"queryParamList\":[],\"tableColumnList\":[]},{\"widgetKind\":1,\"widgetType\":1,\"span\":24,\"type\":\"textarea\",\"placeholder\":\"\",\"defaultValue\":\"\",\"minRows\":2,\"maxRows\":2,\"readOnly\":false,\"disabled\":false,\"id\":1632385855796,\"datasourceId\":\"1440952815374569472\",\"relationId\":\"1440952921117167616\",\"tableId\":\"1440952921024892928\",\"columnId\":\"1440952921079418880\",\"columnName\":\"business_scope\",\"showName\":\"经营范围\",\"variableName\":\"businessScope\",\"dictParamList\":null,\"queryParamList\":[],\"tableColumnList\":[]},{\"widgetKind\":2,\"widgetType\":40,\"span\":24,\"position\":\"center\",\"id\":1632385870258,\"columnName\":\"divider\",\"showName\":\"乙方信息\",\"variableName\":\"divider1\",\"dictParamList\":null,\"queryParamList\":[],\"tableColumnList\":[]},{\"widgetKind\":1,\"widgetType\":1,\"span\":12,\"type\":\"text\",\"placeholder\":\"\",\"defaultValue\":\"\",\"minRows\":2,\"maxRows\":2,\"readOnly\":false,\"disabled\":false,\"id\":1632385881057,\"datasourceId\":\"1440952815374569472\",\"relationId\":\"1440952988536410112\",\"tableId\":\"1440952988389609472\",\"columnId\":\"1440952988406386688\",\"columnName\":\"company_name\",\"showName\":\"公司名称\",\"variableName\":\"companyName1\",\"dictParamList\":null,\"queryParamList\":[],\"tableColumnList\":[]},{\"widgetKind\":1,\"widgetType\":1,\"span\":12,\"type\":\"text\",\"placeholder\":\"\",\"defaultValue\":\"\",\"minRows\":2,\"maxRows\":2,\"readOnly\":false,\"disabled\":false,\"id\":1632385882845,\"datasourceId\":\"1440952815374569472\",\"relationId\":\"1440952988536410112\",\"tableId\":\"1440952988389609472\",\"columnId\":\"1440952988486078464\",\"columnName\":\"contact_info\",\"showName\":\"联系方式\",\"variableName\":\"contactInfo1\",\"dictParamList\":null,\"queryParamList\":[],\"tableColumnList\":[]},{\"widgetKind\":1,\"widgetType\":1,\"span\":24,\"type\":\"textarea\",\"placeholder\":\"\",\"defaultValue\":\"\",\"minRows\":2,\"maxRows\":2,\"readOnly\":false,\"disabled\":false,\"id\":1632385886068,\"datasourceId\":\"1440952815374569472\",\"relationId\":\"1440952988536410112\",\"tableId\":\"1440952988389609472\",\"columnId\":\"1440952988473495552\",\"columnName\":\"registry_address\",\"showName\":\"注册地址\",\"variableName\":\"registryAddress1\",\"dictParamList\":null,\"queryParamList\":[],\"tableColumnList\":[]},{\"widgetKind\":1,\"widgetType\":1,\"span\":24,\"type\":\"textarea\",\"placeholder\":\"\",\"defaultValue\":\"\",\"minRows\":2,\"maxRows\":2,\"readOnly\":false,\"disabled\":false,\"id\":1632385886979,\"datasourceId\":\"1440952815374569472\",\"relationId\":\"1440952988536410112\",\"tableId\":\"1440952988389609472\",\"columnId\":\"1440952988494467072\",\"columnName\":\"business_scope\",\"showName\":\"经营范围\",\"variableName\":\"businessScope1\",\"dictParamList\":null,\"queryParamList\":[],\"tableColumnList\":[]},{\"widgetKind\":2,\"widgetType\":40,\"span\":24,\"position\":\"center\",\"id\":1632385900924,\"columnName\":\"divider\",\"showName\":\"合同信息\",\"variableName\":\"divider2\",\"dictParamList\":null,\"queryParamList\":[],\"tableColumnList\":[]},{\"widgetKind\":1,\"widgetType\":10,\"span\":12,\"placeholder\":\"\",\"id\":1632385921859,\"datasourceId\":\"1440952815374569472\",\"tableId\":\"1440952815294877696\",\"columnId\":\"1440952815315849216\",\"columnName\":\"contract_type\",\"showName\":\"合同类型\",\"variableName\":\"contractType\",\"readOnly\":true,\"dictParamList\":[],\"queryParamList\":[],\"tableColumnList\":[]},{\"widgetKind\":1,\"widgetType\":20,\"span\":12,\"placeholder\":\"\",\"type\":\"date\",\"format\":\"yyyy-MM-dd\",\"valueFormat\":\"yyyy-MM-dd\",\"readOnly\":true,\"disabled\":false,\"id\":1632385943091,\"datasourceId\":\"1440952815374569472\",\"tableId\":\"1440952815294877696\",\"columnId\":\"1440952815320043520\",\"columnName\":\"due_date\",\"showName\":\"到期日期\",\"variableName\":\"dueDate\",\"dictParamList\":null,\"queryParamList\":[],\"tableColumnList\":[]},{\"widgetKind\":1,\"widgetType\":31,\"span\":12,\"isImage\":false,\"fileFieldName\":\"uploadFile\",\"actionUrl\":\"/admin/flow/flowOnlineOperation/upload\",\"downloadUrl\":\"/admin/flow/flowOnlineOperation/download\",\"id\":1632385951296,\"datasourceId\":\"1440952815374569472\",\"tableId\":\"1440952815294877696\",\"columnId\":\"1440952815336820736\",\"columnName\":\"attachment\",\"showName\":\"合同附件\",\"variableName\":\"attachment\",\"dictParamList\":null,\"queryParamList\":[],\"tableColumnList\":[]},{\"widgetKind\":1,\"widgetType\":31,\"span\":12,\"isImage\":false,\"fileFieldName\":\"uploadFile\",\"actionUrl\":\"/admin/flow/flowOnlineOperation/upload\",\"downloadUrl\":\"/admin/flow/flowOnlineOperation/download\",\"id\":1632385954049,\"datasourceId\":\"1440952815374569472\",\"tableId\":\"1440952815294877696\",\"columnId\":\"1440952815341015040\",\"columnName\":\"security_attachment\",\"showName\":\"保密协议\",\"variableName\":\"securityAttachment\",\"dictParamList\":null,\"queryParamList\":[],\"tableColumnList\":[]},{\"widgetKind\":1,\"widgetType\":31,\"span\":12,\"isImage\":false,\"fileFieldName\":\"uploadFile\",\"actionUrl\":\"/admin/flow/flowOnlineOperation/upload\",\"downloadUrl\":\"/admin/flow/flowOnlineOperation/download\",\"id\":1632385954722,\"datasourceId\":\"1440952815374569472\",\"tableId\":\"1440952815294877696\",\"columnId\":\"1440952815345209344\",\"columnName\":\"intellectual_property_attachment\",\"showName\":\"知识产权协议\",\"variableName\":\"intellectualPropertyAttachment\",\"dictParamList\":null,\"queryParamList\":[],\"tableColumnList\":[]},{\"widgetKind\":1,\"widgetType\":31,\"span\":12,\"isImage\":false,\"fileFieldName\":\"uploadFile\",\"actionUrl\":\"/admin/flow/flowOnlineOperation/upload\",\"downloadUrl\":\"/admin/flow/flowOnlineOperation/download\",\"id\":1632385955926,\"datasourceId\":\"1440952815374569472\",\"tableId\":\"1440952815294877696\",\"columnId\":\"1440952815349403648\",\"columnName\":\"other_attachment\",\"showName\":\"其他附件\",\"variableName\":\"otherAttachment\",\"dictParamList\":null,\"queryParamList\":[],\"tableColumnList\":[]}]}', '[{\"autoIncrement\":false,\"columnComment\":\"主键Id\",\"columnId\":\"1440952815303266304\",\"columnName\":\"contract_id\",\"columnShowOrder\":1,\"columnType\":\"bigint\",\"createTime\":\"2021-09-23 16:14:57\",\"deptFilter\":false,\"filterType\":0,\"fullColumnType\":\"bigint(20)\",\"nullable\":false,\"objectFieldName\":\"contractId\",\"objectFieldType\":\"Long\",\"parentKey\":false,\"primaryKey\":true,\"tableId\":\"1440952815294877696\",\"updateTime\":\"2021-09-23 16:14:57\",\"userFilter\":false}]', '2021-09-23 16:32:45', '2021-09-23 16:23:39'); -INSERT INTO `zz_online_form` VALUES (1440955127790833664, 1440952710487609344, 'formFlowContractPay', '付款详情', 5, 10, 1440952815294877696, '{\"formConfig\":{\"formKind\":5,\"formType\":10,\"gutter\":20,\"labelWidth\":100,\"labelPosition\":\"right\",\"width\":800,\"paramList\":[{\"columnName\":\"contract_id\",\"primaryKey\":true,\"slaveClumn\":false,\"builtin\":true}]},\"widgetList\":[{\"widgetKind\":1,\"widgetType\":10,\"span\":12,\"placeholder\":\"\",\"id\":1632385985050,\"datasourceId\":\"1440952815374569472\",\"tableId\":\"1440952815294877696\",\"columnId\":\"1440952815307460608\",\"columnName\":\"first_party_id\",\"showName\":\"甲方企业\",\"variableName\":\"firstPartyId\",\"queryParamList\":[],\"tableColumnList\":[],\"hasError\":false},{\"widgetKind\":1,\"widgetType\":10,\"span\":12,\"placeholder\":\"\",\"id\":1632385985722,\"datasourceId\":\"1440952815374569472\",\"tableId\":\"1440952815294877696\",\"columnId\":\"1440952815311654912\",\"columnName\":\"second_party_id\",\"showName\":\"乙方企业\",\"variableName\":\"secondPartyId\",\"queryParamList\":[],\"tableColumnList\":[],\"hasError\":false},{\"widgetKind\":1,\"widgetType\":10,\"span\":12,\"placeholder\":\"\",\"id\":1632385986562,\"datasourceId\":\"1440952815374569472\",\"tableId\":\"1440952815294877696\",\"columnId\":\"1440952815315849216\",\"columnName\":\"contract_type\",\"showName\":\"合同类型\",\"variableName\":\"contractType\",\"queryParamList\":[],\"tableColumnList\":[],\"hasError\":false},{\"widgetKind\":1,\"widgetType\":10,\"span\":12,\"placeholder\":\"\",\"id\":1632385987354,\"datasourceId\":\"1440952815374569472\",\"tableId\":\"1440952815294877696\",\"columnId\":\"1440952815324237824\",\"columnName\":\"sales_id\",\"showName\":\"业务员\",\"variableName\":\"salesId\",\"queryParamList\":[],\"tableColumnList\":[],\"hasError\":false},{\"widgetKind\":1,\"widgetType\":20,\"span\":12,\"placeholder\":\"\",\"type\":\"date\",\"format\":\"yyyy-MM-dd\",\"valueFormat\":\"yyyy-MM-dd\",\"readOnly\":false,\"disabled\":false,\"id\":1632385998420,\"datasourceId\":\"1440952815374569472\",\"tableId\":\"1440952815294877696\",\"columnId\":\"1440952815320043520\",\"columnName\":\"due_date\",\"showName\":\"到期日期\",\"variableName\":\"dueDate\",\"dictParamList\":null,\"queryParamList\":[],\"tableColumnList\":[],\"hasError\":false},{\"widgetKind\":2,\"widgetType\":100,\"span\":24,\"supportBottom\":0,\"tableInfo\":{\"paged\":true,\"optionColumnWidth\":150},\"titleColor\":\"#409EFF\",\"tableColumnList\":[{\"columnId\":\"1440953170535649280\",\"tableId\":\"1440953170514677760\",\"showName\":\"付款日期\",\"showOrder\":1,\"sortable\":false,\"relationId\":\"1440953170590175232\",\"dataFieldName\":null},{\"columnId\":\"1440953170539843584\",\"tableId\":\"1440953170514677760\",\"showName\":\"付款类型\",\"showOrder\":2,\"sortable\":false,\"relationId\":\"1440953170590175232\",\"dataFieldName\":null},{\"columnId\":\"1440953170548232192\",\"tableId\":\"1440953170514677760\",\"showName\":\"付款比例(%)\",\"showOrder\":3,\"sortable\":false,\"relationId\":\"1440953170590175232\",\"dataFieldName\":null},{\"columnId\":\"1440953170552426496\",\"tableId\":\"1440953170514677760\",\"showName\":\"备注\",\"showOrder\":4,\"sortable\":false,\"relationId\":\"1440953170590175232\",\"dataFieldName\":null}],\"operationList\":[{\"id\":1,\"type\":0,\"name\":\"新建\",\"enabled\":false,\"builtin\":true,\"rowOperation\":false,\"btnType\":\"primary\",\"plain\":false},{\"id\":2,\"type\":1,\"name\":\"编辑\",\"enabled\":false,\"builtin\":true,\"rowOperation\":true,\"btnClass\":\"table-btn success\"},{\"id\":3,\"type\":2,\"name\":\"删除\",\"enabled\":false,\"builtin\":true,\"rowOperation\":true,\"btnClass\":\"table-btn delete\"}],\"queryParamList\":[{\"tableId\":\"1440953170514677760\",\"columnId\":\"1440953170531454976\",\"paramValueType\":1,\"paramValue\":\"1440952815303266304\"}],\"id\":1632386005350,\"relationId\":\"1440953170590175232\",\"tableId\":\"1440953170514677760\",\"columnName\":\"contract_id_zz_test_flow_pay_detail_contract_idRelation\",\"showName\":\"付款详情\",\"variableName\":\"contract_id_zz_test_flow_pay_detail_contract_idRelation\",\"dictParamList\":null,\"hasError\":false}]}', '[{\"autoIncrement\":false,\"columnComment\":\"主键Id\",\"columnId\":\"1440952815303266304\",\"columnName\":\"contract_id\",\"columnShowOrder\":1,\"columnType\":\"bigint\",\"createTime\":\"2021-09-23 16:14:57\",\"deptFilter\":false,\"filterType\":0,\"fullColumnType\":\"bigint(20)\",\"nullable\":false,\"objectFieldName\":\"contractId\",\"objectFieldType\":\"Long\",\"parentKey\":false,\"primaryKey\":true,\"tableId\":\"1440952815294877696\",\"updateTime\":\"2021-09-23 16:14:57\",\"userFilter\":false}]', '2021-09-23 16:45:43', '2021-09-23 16:24:09'); -INSERT INTO `zz_online_form` VALUES (1440955194991972352, 1440952710487609344, 'formFlowContractDetail', '合同详情', 5, 10, 1440952815294877696, '{\"formConfig\":{\"formKind\":5,\"formType\":10,\"gutter\":20,\"labelWidth\":100,\"labelPosition\":\"right\",\"width\":800,\"paramList\":[{\"columnName\":\"contract_id\",\"primaryKey\":true,\"slaveClumn\":false,\"builtin\":true}]},\"widgetList\":[{\"widgetKind\":1,\"widgetType\":10,\"span\":12,\"placeholder\":\"\",\"id\":1632386076617,\"datasourceId\":\"1440952815374569472\",\"tableId\":\"1440952815294877696\",\"columnId\":\"1440952815307460608\",\"columnName\":\"first_party_id\",\"showName\":\"甲方企业\",\"variableName\":\"firstPartyId\",\"queryParamList\":[],\"tableColumnList\":[],\"hasError\":false},{\"widgetKind\":1,\"widgetType\":10,\"span\":12,\"placeholder\":\"\",\"id\":1632386077249,\"datasourceId\":\"1440952815374569472\",\"tableId\":\"1440952815294877696\",\"columnId\":\"1440952815311654912\",\"columnName\":\"second_party_id\",\"showName\":\"乙方企业\",\"variableName\":\"secondPartyId\",\"queryParamList\":[],\"tableColumnList\":[],\"hasError\":false},{\"widgetKind\":1,\"widgetType\":10,\"span\":12,\"placeholder\":\"\",\"id\":1632386077906,\"datasourceId\":\"1440952815374569472\",\"tableId\":\"1440952815294877696\",\"columnId\":\"1440952815315849216\",\"columnName\":\"contract_type\",\"showName\":\"合同类型\",\"variableName\":\"contractType\",\"queryParamList\":[],\"tableColumnList\":[],\"hasError\":false},{\"widgetKind\":1,\"widgetType\":10,\"span\":12,\"placeholder\":\"\",\"id\":1632386078973,\"datasourceId\":\"1440952815374569472\",\"tableId\":\"1440952815294877696\",\"columnId\":\"1440952815324237824\",\"columnName\":\"sales_id\",\"showName\":\"业务员\",\"variableName\":\"salesId\",\"queryParamList\":[],\"tableColumnList\":[],\"hasError\":false},{\"widgetKind\":1,\"widgetType\":20,\"span\":12,\"placeholder\":\"\",\"type\":\"date\",\"format\":\"yyyy-MM-dd\",\"valueFormat\":\"yyyy-MM-dd\",\"readOnly\":false,\"disabled\":false,\"id\":1632386079478,\"datasourceId\":\"1440952815374569472\",\"tableId\":\"1440952815294877696\",\"columnId\":\"1440952815320043520\",\"columnName\":\"due_date\",\"showName\":\"到期日期\",\"variableName\":\"dueDate\",\"dictParamList\":null,\"queryParamList\":[],\"tableColumnList\":[],\"hasError\":false},{\"widgetKind\":2,\"widgetType\":100,\"span\":24,\"supportBottom\":0,\"tableInfo\":{\"paged\":true,\"optionColumnWidth\":150},\"titleColor\":\"#409EFF\",\"tableColumnList\":[{\"columnId\":\"1440953088922882048\",\"tableId\":\"1440953088901910528\",\"showName\":\"合同产品\",\"showOrder\":1,\"sortable\":false,\"relationId\":\"1440953088977408000\",\"dataFieldName\":null},{\"columnId\":\"1440953088927076352\",\"tableId\":\"1440953088901910528\",\"showName\":\"产品数量\",\"showOrder\":2,\"sortable\":false,\"relationId\":\"1440953088977408000\",\"dataFieldName\":null},{\"columnId\":\"1440953088935464960\",\"tableId\":\"1440953088901910528\",\"showName\":\"产品总价\",\"showOrder\":3,\"sortable\":false,\"relationId\":\"1440953088977408000\",\"dataFieldName\":null},{\"columnId\":\"1440953088939659264\",\"tableId\":\"1440953088901910528\",\"showName\":\"备注\",\"showOrder\":4,\"sortable\":false,\"relationId\":\"1440953088977408000\",\"dataFieldName\":null}],\"operationList\":[{\"id\":1,\"type\":0,\"name\":\"新建\",\"enabled\":false,\"builtin\":true,\"rowOperation\":false,\"btnType\":\"primary\",\"plain\":false},{\"id\":2,\"type\":1,\"name\":\"编辑\",\"enabled\":false,\"builtin\":true,\"rowOperation\":true,\"btnClass\":\"table-btn success\"},{\"id\":3,\"type\":2,\"name\":\"删除\",\"enabled\":false,\"builtin\":true,\"rowOperation\":true,\"btnClass\":\"table-btn delete\"}],\"queryParamList\":[{\"tableId\":\"1440953088901910528\",\"columnId\":\"1440953088918687744\",\"paramValueType\":1,\"paramValue\":\"1440952815303266304\"}],\"id\":1632386082967,\"relationId\":\"1440953088977408000\",\"tableId\":\"1440953088901910528\",\"columnName\":\"contract_id_zz_test_flow_contract_detail_contract_idRelation\",\"showName\":\"合同详情\",\"variableName\":\"contract_id_zz_test_flow_contract_detail_contract_idRelation\",\"dictParamList\":null,\"hasError\":false},{\"widgetKind\":2,\"widgetType\":100,\"span\":24,\"supportBottom\":0,\"tableInfo\":{\"paged\":true,\"optionColumnWidth\":150},\"titleColor\":\"#409EFF\",\"tableColumnList\":[{\"columnId\":\"1440953245684994048\",\"tableId\":\"1440953245664022528\",\"showName\":\"交付日期\",\"showOrder\":1,\"sortable\":false,\"relationId\":\"1440953245747908608\",\"dataFieldName\":null},{\"columnId\":\"1440953245697576960\",\"tableId\":\"1440953245664022528\",\"showName\":\"交付产品\",\"showOrder\":2,\"sortable\":false,\"relationId\":\"1440953245747908608\",\"dataFieldName\":null},{\"columnId\":\"1440953245705965568\",\"tableId\":\"1440953245664022528\",\"showName\":\"交付数量\",\"showOrder\":3,\"sortable\":false,\"relationId\":\"1440953245747908608\",\"dataFieldName\":null},{\"columnId\":\"1440953245718548480\",\"tableId\":\"1440953245664022528\",\"showName\":\"备注\",\"showOrder\":4,\"sortable\":false,\"relationId\":\"1440953245747908608\",\"dataFieldName\":null}],\"operationList\":[{\"id\":1,\"type\":0,\"name\":\"新建\",\"enabled\":false,\"builtin\":true,\"rowOperation\":false,\"btnType\":\"primary\",\"plain\":false},{\"id\":2,\"type\":1,\"name\":\"编辑\",\"enabled\":false,\"builtin\":true,\"rowOperation\":true,\"btnClass\":\"table-btn success\"},{\"id\":3,\"type\":2,\"name\":\"删除\",\"enabled\":false,\"builtin\":true,\"rowOperation\":true,\"btnClass\":\"table-btn delete\"}],\"queryParamList\":[{\"tableId\":\"1440953245664022528\",\"columnId\":\"1440953245676605440\",\"paramValueType\":1,\"paramValue\":\"1440952815303266304\"}],\"id\":1632386085719,\"relationId\":\"1440953245747908608\",\"tableId\":\"1440953245664022528\",\"columnName\":\"contract_id_zz_test_flow_delivery_detail_contract_idRelation\",\"showName\":\"交付详情\",\"variableName\":\"contract_id_zz_test_flow_delivery_detail_contract_idRelation\",\"dictParamList\":null,\"hasError\":false}]}', '[{\"autoIncrement\":false,\"columnComment\":\"主键Id\",\"columnId\":\"1440952815303266304\",\"columnName\":\"contract_id\",\"columnShowOrder\":1,\"columnType\":\"bigint\",\"createTime\":\"2021-09-23 16:14:57\",\"deptFilter\":false,\"filterType\":0,\"fullColumnType\":\"bigint(20)\",\"nullable\":false,\"objectFieldName\":\"contractId\",\"objectFieldType\":\"Long\",\"parentKey\":false,\"primaryKey\":true,\"tableId\":\"1440952815294877696\",\"updateTime\":\"2021-09-23 16:14:57\",\"userFilter\":false}]', '2021-09-23 16:46:06', '2021-09-23 16:24:25'); -INSERT INTO `zz_online_form` VALUES (1440955295755931648, 1440952710487609344, 'formEditProduct', '编辑商品信息', 1, 5, 1440953088901910528, '{\"formConfig\":{\"formKind\":1,\"formType\":5,\"gutter\":20,\"labelWidth\":100,\"labelPosition\":\"right\",\"width\":800,\"paramList\":[{\"columnName\":\"contract_detail_id\",\"primaryKey\":true,\"slaveClumn\":false,\"builtin\":true}]},\"widgetList\":[{\"widgetKind\":1,\"widgetType\":10,\"span\":24,\"placeholder\":\"\",\"id\":1632386167477,\"datasourceId\":\"1440952815374569472\",\"relationId\":\"1440953088977408000\",\"tableId\":\"1440953088901910528\",\"columnId\":\"1440953088922882048\",\"columnName\":\"product_id\",\"showName\":\"合同产品\",\"variableName\":\"productId\",\"dictParamList\":[],\"queryParamList\":[],\"tableColumnList\":[],\"hasError\":false},{\"widgetKind\":1,\"widgetType\":3,\"span\":24,\"defaultValue\":0,\"min\":0,\"step\":1,\"precision\":0,\"controlVisible\":1,\"controlPosition\":0,\"readOnly\":false,\"disabled\":false,\"id\":1632386168097,\"datasourceId\":\"1440952815374569472\",\"relationId\":\"1440953088977408000\",\"tableId\":\"1440953088901910528\",\"columnId\":\"1440953088927076352\",\"columnName\":\"total_count\",\"showName\":\"产品数量\",\"variableName\":\"totalCount\",\"dictParamList\":null,\"queryParamList\":[],\"tableColumnList\":[],\"hasError\":false},{\"widgetKind\":1,\"widgetType\":3,\"span\":24,\"defaultValue\":0,\"min\":0,\"step\":1,\"precision\":2,\"controlVisible\":1,\"controlPosition\":0,\"readOnly\":false,\"disabled\":false,\"id\":1632386168937,\"datasourceId\":\"1440952815374569472\",\"relationId\":\"1440953088977408000\",\"tableId\":\"1440953088901910528\",\"columnId\":\"1440953088935464960\",\"columnName\":\"total_amount\",\"showName\":\"产品总价\",\"variableName\":\"totalAmount\",\"dictParamList\":null,\"queryParamList\":[],\"tableColumnList\":[],\"hasError\":false},{\"widgetKind\":1,\"widgetType\":1,\"span\":24,\"type\":\"textarea\",\"placeholder\":\"\",\"defaultValue\":\"\",\"minRows\":2,\"maxRows\":4,\"readOnly\":false,\"disabled\":false,\"id\":1632386170038,\"datasourceId\":\"1440952815374569472\",\"relationId\":\"1440953088977408000\",\"tableId\":\"1440953088901910528\",\"columnId\":\"1440953088939659264\",\"columnName\":\"meno\",\"showName\":\"备注\",\"variableName\":\"meno\",\"dictParamList\":null,\"queryParamList\":[],\"tableColumnList\":[],\"hasError\":false}]}', '[{\"autoIncrement\":false,\"columnComment\":\"主键Id\",\"columnId\":\"1440953088910299136\",\"columnName\":\"contract_detail_id\",\"columnShowOrder\":1,\"columnType\":\"bigint\",\"createTime\":\"2021-09-23 16:16:03\",\"deptFilter\":false,\"filterType\":0,\"fullColumnType\":\"bigint(20)\",\"nullable\":false,\"objectFieldName\":\"contractDetailId\",\"objectFieldType\":\"Long\",\"parentKey\":false,\"primaryKey\":true,\"tableId\":\"1440953088901910528\",\"updateTime\":\"2021-09-23 16:16:03\",\"userFilter\":false}]', '2021-09-23 16:40:38', '2021-09-23 16:24:49'); -INSERT INTO `zz_online_form` VALUES (1440955361006718976, 1440952710487609344, 'formEditPay', '编辑付款信息', 1, 5, 1440953170514677760, '{\"formConfig\":{\"formKind\":1,\"formType\":5,\"gutter\":20,\"labelWidth\":100,\"labelPosition\":\"right\",\"width\":800,\"paramList\":[{\"columnName\":\"pay_detail_id\",\"primaryKey\":true,\"slaveClumn\":false,\"builtin\":true}]},\"widgetList\":[{\"widgetKind\":1,\"widgetType\":10,\"span\":24,\"placeholder\":\"\",\"id\":1632386206508,\"datasourceId\":\"1440952815374569472\",\"relationId\":\"1440953170590175232\",\"tableId\":\"1440953170514677760\",\"columnId\":\"1440953170539843584\",\"columnName\":\"pay_type\",\"showName\":\"付款类型\",\"variableName\":\"payType\",\"dictParamList\":[],\"queryParamList\":[],\"tableColumnList\":[],\"hasError\":false},{\"widgetKind\":1,\"widgetType\":20,\"span\":24,\"placeholder\":\"\",\"type\":\"date\",\"format\":\"yyyy-MM-dd\",\"valueFormat\":\"yyyy-MM-dd\",\"readOnly\":false,\"disabled\":false,\"id\":1632386207312,\"datasourceId\":\"1440952815374569472\",\"relationId\":\"1440953170590175232\",\"tableId\":\"1440953170514677760\",\"columnId\":\"1440953170535649280\",\"columnName\":\"pay_date\",\"showName\":\"付款日期\",\"variableName\":\"payDate\",\"dictParamList\":null,\"queryParamList\":[],\"tableColumnList\":[],\"hasError\":false},{\"widgetKind\":1,\"widgetType\":3,\"span\":24,\"defaultValue\":0,\"min\":0,\"max\":100,\"step\":1,\"precision\":2,\"controlVisible\":1,\"controlPosition\":0,\"readOnly\":false,\"disabled\":false,\"id\":1632386208455,\"datasourceId\":\"1440952815374569472\",\"relationId\":\"1440953170590175232\",\"tableId\":\"1440953170514677760\",\"columnId\":\"1440953170548232192\",\"columnName\":\"percentage\",\"showName\":\"百分比\",\"variableName\":\"percentage\",\"dictParamList\":null,\"queryParamList\":[],\"tableColumnList\":[],\"hasError\":false},{\"widgetKind\":1,\"widgetType\":1,\"span\":24,\"type\":\"textarea\",\"placeholder\":\"\",\"defaultValue\":\"\",\"minRows\":2,\"maxRows\":2,\"readOnly\":false,\"disabled\":false,\"id\":1632386209209,\"datasourceId\":\"1440952815374569472\",\"relationId\":\"1440953170590175232\",\"tableId\":\"1440953170514677760\",\"columnId\":\"1440953170552426496\",\"columnName\":\"memo\",\"showName\":\"备注\",\"variableName\":\"memo\",\"dictParamList\":null,\"queryParamList\":[],\"tableColumnList\":[],\"hasError\":false}]}', '[{\"autoIncrement\":false,\"columnComment\":\"主键Id\",\"columnId\":\"1440953170518872064\",\"columnName\":\"pay_detail_id\",\"columnShowOrder\":1,\"columnType\":\"bigint\",\"createTime\":\"2021-09-23 16:16:22\",\"deptFilter\":false,\"filterType\":0,\"fullColumnType\":\"bigint(20)\",\"nullable\":false,\"objectFieldName\":\"payDetailId\",\"objectFieldType\":\"Long\",\"parentKey\":false,\"primaryKey\":true,\"tableId\":\"1440953170514677760\",\"updateTime\":\"2021-09-23 16:16:22\",\"userFilter\":false}]', '2021-09-23 16:40:43', '2021-09-23 16:25:04'); -INSERT INTO `zz_online_form` VALUES (1440955424638504960, 1440952710487609344, 'formEditDelivery', '编辑交付信息', 1, 5, 1440953245664022528, '{\"formConfig\":{\"formKind\":1,\"formType\":5,\"gutter\":20,\"labelWidth\":100,\"labelPosition\":\"right\",\"width\":800,\"paramList\":[{\"columnName\":\"delivery_id\",\"primaryKey\":true,\"slaveClumn\":false,\"builtin\":true}]},\"widgetList\":[{\"widgetKind\":1,\"widgetType\":20,\"span\":24,\"placeholder\":\"\",\"type\":\"date\",\"format\":\"yyyy-MM-dd\",\"valueFormat\":\"yyyy-MM-dd\",\"readOnly\":false,\"disabled\":false,\"id\":1632386237515,\"datasourceId\":\"1440952815374569472\",\"relationId\":\"1440953245747908608\",\"tableId\":\"1440953245664022528\",\"columnId\":\"1440953245684994048\",\"columnName\":\"delivery_date\",\"showName\":\"交付日期\",\"variableName\":\"deliveryDate\",\"dictParamList\":null,\"queryParamList\":[],\"tableColumnList\":[],\"hasError\":false},{\"widgetKind\":1,\"widgetType\":10,\"span\":24,\"placeholder\":\"\",\"id\":1632386238087,\"datasourceId\":\"1440952815374569472\",\"relationId\":\"1440953245747908608\",\"tableId\":\"1440953245664022528\",\"columnId\":\"1440953245697576960\",\"columnName\":\"product_id\",\"showName\":\"交付产品\",\"variableName\":\"productId\",\"dictParamList\":[],\"queryParamList\":[],\"tableColumnList\":[],\"hasError\":false},{\"widgetKind\":1,\"widgetType\":3,\"span\":24,\"defaultValue\":0,\"min\":0,\"step\":1,\"precision\":0,\"controlVisible\":1,\"controlPosition\":0,\"readOnly\":false,\"disabled\":false,\"id\":1632386238799,\"datasourceId\":\"1440952815374569472\",\"relationId\":\"1440953245747908608\",\"tableId\":\"1440953245664022528\",\"columnId\":\"1440953245705965568\",\"columnName\":\"total_count\",\"showName\":\"交付数量\",\"variableName\":\"totalCount\",\"dictParamList\":null,\"queryParamList\":[],\"tableColumnList\":[],\"hasError\":false},{\"widgetKind\":1,\"widgetType\":1,\"span\":24,\"type\":\"textarea\",\"placeholder\":\"\",\"defaultValue\":\"\",\"minRows\":2,\"maxRows\":4,\"readOnly\":false,\"disabled\":false,\"id\":1632386239345,\"datasourceId\":\"1440952815374569472\",\"relationId\":\"1440953245747908608\",\"tableId\":\"1440953245664022528\",\"columnId\":\"1440953245718548480\",\"columnName\":\"memo\",\"showName\":\"备注\",\"variableName\":\"memo\",\"dictParamList\":null,\"queryParamList\":[],\"tableColumnList\":[],\"hasError\":false}]}', '[{\"autoIncrement\":false,\"columnComment\":\"主键Id\",\"columnId\":\"1440953245668216832\",\"columnName\":\"delivery_id\",\"columnShowOrder\":1,\"columnType\":\"bigint\",\"createTime\":\"2021-09-23 16:16:40\",\"deptFilter\":false,\"filterType\":0,\"fullColumnType\":\"bigint(20)\",\"nullable\":false,\"objectFieldName\":\"deliveryId\",\"objectFieldType\":\"Long\",\"parentKey\":false,\"primaryKey\":true,\"tableId\":\"1440953245664022528\",\"updateTime\":\"2021-09-23 16:16:40\",\"userFilter\":false}]', '2021-09-23 16:40:49', '2021-09-23 16:25:20'); -INSERT INTO `zz_online_form` VALUES (1440955483438452736, 1440952710487609344, 'formOrderContract', '合同工单', 5, 11, 1440952815294877696, '{\"formConfig\":{\"formKind\":5,\"formType\":11,\"gutter\":20,\"labelWidth\":100,\"labelPosition\":\"right\",\"width\":800,\"paramList\":[{\"columnName\":\"contract_id\",\"primaryKey\":true,\"slaveClumn\":false,\"builtin\":true}],\"tableWidget\":{\"widgetKind\":2,\"widgetType\":100,\"span\":24,\"supportBottom\":0,\"tableInfo\":{\"paged\":true,\"optionColumnWidth\":150},\"titleColor\":\"#409EFF\",\"tableColumnList\":[{\"columnId\":\"1440952815307460608\",\"tableId\":\"1440952815294877696\",\"showName\":\"甲方企业\",\"showOrder\":1,\"sortable\":false},{\"columnId\":\"1440952815311654912\",\"tableId\":\"1440952815294877696\",\"showName\":\"乙方企业\",\"showOrder\":2,\"sortable\":false},{\"columnId\":\"1440952815315849216\",\"tableId\":\"1440952815294877696\",\"showName\":\"合同类型\",\"showOrder\":3,\"sortable\":false},{\"columnId\":\"1440952815320043520\",\"tableId\":\"1440952815294877696\",\"showName\":\"到期日期\",\"showOrder\":4,\"sortable\":false},{\"columnId\":\"1440952815324237824\",\"tableId\":\"1440952815294877696\",\"showName\":\"业务员\",\"showOrder\":5,\"sortable\":false}],\"operationList\":[],\"queryParamList\":[],\"tableId\":\"1440952815294877696\",\"variableName\":\"formOrderContract\",\"showName\":\"合同工单\",\"hasError\":false,\"datasourceId\":\"1440952815374569472\"}},\"widgetList\":[]}', '[{\"autoIncrement\":false,\"columnComment\":\"主键Id\",\"columnId\":\"1440952815303266304\",\"columnName\":\"contract_id\",\"columnShowOrder\":1,\"columnType\":\"bigint\",\"createTime\":\"2021-09-23 16:14:57\",\"deptFilter\":false,\"filterType\":0,\"fullColumnType\":\"bigint(20)\",\"nullable\":false,\"objectFieldName\":\"contractId\",\"objectFieldType\":\"Long\",\"parentKey\":false,\"primaryKey\":true,\"tableId\":\"1440952815294877696\",\"updateTime\":\"2021-09-23 16:14:57\",\"userFilter\":false}]', '2021-09-23 16:38:33', '2021-09-23 16:25:34'); -INSERT INTO `zz_online_form` VALUES (1440959226632474624, 1440958861153406976, 'formFirstParty', '甲方企业管理', 5, 1, 1440958971128057856, '{\"formConfig\":{\"formKind\":5,\"formType\":1,\"gutter\":20,\"labelWidth\":100,\"labelPosition\":\"right\",\"width\":800,\"paramList\":[],\"tableWidget\":{\"widgetKind\":2,\"widgetType\":100,\"span\":24,\"supportBottom\":0,\"tableInfo\":{\"paged\":true,\"optionColumnWidth\":150},\"titleColor\":\"#409EFF\",\"tableColumnList\":[{\"columnId\":\"1440958971140640768\",\"tableId\":\"1440958971128057856\",\"showName\":\"公司名称\",\"showOrder\":1,\"sortable\":false},{\"columnId\":\"1440958971144835072\",\"tableId\":\"1440958971128057856\",\"showName\":\"公司法人\",\"showOrder\":2,\"sortable\":false},{\"columnId\":\"1440958971157417984\",\"tableId\":\"1440958971128057856\",\"showName\":\"联系方式\",\"showOrder\":3,\"sortable\":false},{\"columnId\":\"1440958971153223680\",\"tableId\":\"1440958971128057856\",\"showName\":\"注册地址\",\"showOrder\":4,\"sortable\":false}],\"operationList\":[{\"id\":1,\"type\":0,\"name\":\"新建\",\"enabled\":true,\"builtin\":true,\"rowOperation\":false,\"btnType\":\"primary\",\"plain\":false,\"formId\":\"1440959420396736512\"},{\"id\":2,\"type\":1,\"name\":\"编辑\",\"enabled\":true,\"builtin\":true,\"rowOperation\":true,\"btnClass\":\"table-btn success\",\"formId\":\"1440959420396736512\"},{\"id\":3,\"type\":2,\"name\":\"删除\",\"enabled\":true,\"builtin\":true,\"rowOperation\":true,\"btnClass\":\"table-btn delete\"}],\"queryParamList\":[],\"tableId\":\"1440958971128057856\",\"variableName\":\"formFirstParty\",\"showName\":\"甲方企业管理\",\"datasourceId\":\"1440958971190972416\",\"hasError\":false}},\"widgetList\":[{\"widgetKind\":0,\"widgetType\":1,\"span\":12,\"type\":\"text\",\"placeholder\":\"\",\"defaultValue\":\"\",\"minRows\":2,\"maxRows\":2,\"readOnly\":false,\"disabled\":false,\"id\":1632386494962,\"datasourceId\":\"1440958971190972416\",\"tableId\":\"1440958971128057856\",\"columnId\":\"1440958971140640768\",\"columnName\":\"company_name\",\"showName\":\"公司名称\",\"variableName\":\"companyName\",\"dictParamList\":null,\"queryParamList\":[],\"tableColumnList\":[]}]}', '[{\"autoIncrement\":false,\"columnComment\":\"公司名称\",\"columnId\":\"1440958971140640768\",\"columnName\":\"company_name\",\"columnShowOrder\":2,\"columnType\":\"varchar\",\"createTime\":\"2021-09-23 16:39:25\",\"deptFilter\":false,\"filterType\":3,\"fullColumnType\":\"varchar(255)\",\"nullable\":false,\"objectFieldName\":\"companyName\",\"objectFieldType\":\"String\",\"parentKey\":false,\"primaryKey\":false,\"tableId\":\"1440958971128057856\",\"updateTime\":\"2021-09-23 16:41:25\",\"userFilter\":false}]', '2021-09-23 16:42:32', '2021-09-23 16:40:26'); -INSERT INTO `zz_online_form` VALUES (1440959420396736512, 1440958861153406976, 'formViewFirstParty', '编辑甲方企业', 1, 5, 1440958971128057856, '{\"formConfig\":{\"formKind\":1,\"formType\":5,\"gutter\":20,\"labelWidth\":120,\"labelPosition\":\"right\",\"width\":800,\"paramList\":[{\"columnName\":\"first_party_id\",\"primaryKey\":true,\"slaveClumn\":false,\"builtin\":true}]},\"widgetList\":[{\"widgetKind\":1,\"widgetType\":1,\"span\":12,\"type\":\"text\",\"placeholder\":\"\",\"defaultValue\":\"\",\"minRows\":2,\"maxRows\":2,\"readOnly\":false,\"disabled\":false,\"id\":1632386807099,\"datasourceId\":\"1440958971190972416\",\"tableId\":\"1440958971128057856\",\"columnId\":\"1440958971140640768\",\"columnName\":\"company_name\",\"showName\":\"公司名称\",\"variableName\":\"companyName\",\"dictParamList\":null,\"queryParamList\":[],\"tableColumnList\":[]},{\"widgetKind\":1,\"widgetType\":1,\"span\":12,\"type\":\"text\",\"placeholder\":\"\",\"defaultValue\":\"\",\"minRows\":2,\"maxRows\":2,\"readOnly\":false,\"disabled\":false,\"id\":1632386808030,\"datasourceId\":\"1440958971190972416\",\"tableId\":\"1440958971128057856\",\"columnId\":\"1440958971144835072\",\"columnName\":\"legal_person\",\"showName\":\"公司法人\",\"variableName\":\"legalPerson\",\"dictParamList\":null,\"queryParamList\":[],\"tableColumnList\":[]},{\"widgetKind\":1,\"widgetType\":1,\"span\":12,\"type\":\"text\",\"placeholder\":\"\",\"defaultValue\":\"\",\"minRows\":2,\"maxRows\":2,\"readOnly\":false,\"disabled\":false,\"id\":1632386809518,\"datasourceId\":\"1440958971190972416\",\"tableId\":\"1440958971128057856\",\"columnId\":\"1440958971149029376\",\"columnName\":\"legal_person_id\",\"showName\":\"法人身份证号\",\"variableName\":\"legalPersonId\",\"dictParamList\":null,\"queryParamList\":[],\"tableColumnList\":[]},{\"widgetKind\":1,\"widgetType\":1,\"span\":12,\"type\":\"text\",\"placeholder\":\"\",\"defaultValue\":\"\",\"minRows\":2,\"maxRows\":2,\"readOnly\":false,\"disabled\":false,\"id\":1632386811364,\"datasourceId\":\"1440958971190972416\",\"tableId\":\"1440958971128057856\",\"columnId\":\"1440958971157417984\",\"columnName\":\"contact_info\",\"showName\":\"联系方式\",\"variableName\":\"contactInfo\",\"dictParamList\":null,\"queryParamList\":[],\"tableColumnList\":[]},{\"widgetKind\":1,\"widgetType\":1,\"span\":24,\"type\":\"text\",\"placeholder\":\"\",\"defaultValue\":\"\",\"minRows\":2,\"maxRows\":2,\"readOnly\":false,\"disabled\":false,\"id\":1632386814864,\"datasourceId\":\"1440958971190972416\",\"tableId\":\"1440958971128057856\",\"columnId\":\"1440958971153223680\",\"columnName\":\"registry_address\",\"showName\":\"注册地址\",\"variableName\":\"registryAddress\",\"dictParamList\":null,\"queryParamList\":[],\"tableColumnList\":[]},{\"widgetKind\":1,\"widgetType\":1,\"span\":24,\"type\":\"textarea\",\"placeholder\":\"\",\"defaultValue\":\"\",\"minRows\":2,\"maxRows\":2,\"readOnly\":false,\"disabled\":false,\"id\":1632386817801,\"datasourceId\":\"1440958971190972416\",\"tableId\":\"1440958971128057856\",\"columnId\":\"1440958971161612288\",\"columnName\":\"business_scope\",\"showName\":\"经营范围\",\"variableName\":\"businessScope\",\"dictParamList\":null,\"queryParamList\":[],\"tableColumnList\":[]},{\"widgetKind\":1,\"widgetType\":1,\"span\":24,\"type\":\"textarea\",\"placeholder\":\"\",\"defaultValue\":\"\",\"minRows\":2,\"maxRows\":2,\"readOnly\":false,\"disabled\":false,\"id\":1632386819192,\"datasourceId\":\"1440958971190972416\",\"tableId\":\"1440958971128057856\",\"columnId\":\"1440958971165806592\",\"columnName\":\"memo\",\"showName\":\"备注\",\"variableName\":\"memo\",\"dictParamList\":null,\"queryParamList\":[],\"tableColumnList\":[]}]}', '[{\"autoIncrement\":false,\"columnComment\":\"主键Id\",\"columnId\":\"1440958971132252160\",\"columnName\":\"first_party_id\",\"columnShowOrder\":1,\"columnType\":\"bigint\",\"createTime\":\"2021-09-23 16:39:25\",\"deptFilter\":false,\"filterType\":0,\"fullColumnType\":\"bigint(20)\",\"nullable\":false,\"objectFieldName\":\"firstPartyId\",\"objectFieldType\":\"Long\",\"parentKey\":false,\"primaryKey\":true,\"tableId\":\"1440958971128057856\",\"updateTime\":\"2021-09-23 16:39:25\",\"userFilter\":false}]', '2021-09-23 16:47:25', '2021-09-23 16:41:12'); -INSERT INTO `zz_online_form` VALUES (1440961456601305088, 1440961119001776128, 'formSecondParty', '乙方管理', 5, 1, 1440961208273342464, '{\"formConfig\":{\"formKind\":5,\"formType\":1,\"gutter\":20,\"labelWidth\":100,\"labelPosition\":\"right\",\"width\":800,\"paramList\":[],\"tableWidget\":{\"widgetKind\":2,\"widgetType\":100,\"span\":24,\"supportBottom\":0,\"tableInfo\":{\"paged\":true,\"optionColumnWidth\":150},\"titleColor\":\"#409EFF\",\"tableColumnList\":[{\"columnId\":\"1440961208294313984\",\"tableId\":\"1440961208273342464\",\"showName\":\"公司名称\",\"showOrder\":1,\"sortable\":false,\"dataFieldName\":\"company_name\"},{\"columnId\":\"1440961208298508288\",\"tableId\":\"1440961208273342464\",\"showName\":\"公司法人\",\"showOrder\":2,\"sortable\":false,\"dataFieldName\":\"legal_person\"},{\"columnId\":\"1440961208315285504\",\"tableId\":\"1440961208273342464\",\"showName\":\"联系方式\",\"showOrder\":3,\"sortable\":false,\"dataFieldName\":\"contact_info\"},{\"columnId\":\"1440961208306896896\",\"tableId\":\"1440961208273342464\",\"showName\":\"注册地址\",\"showOrder\":4,\"sortable\":false,\"dataFieldName\":\"registry_address\"}],\"operationList\":[{\"id\":1,\"type\":0,\"name\":\"新建\",\"enabled\":true,\"builtin\":true,\"rowOperation\":false,\"btnType\":\"primary\",\"plain\":false,\"formId\":\"1440961779596267520\"},{\"id\":2,\"type\":1,\"name\":\"编辑\",\"enabled\":true,\"builtin\":true,\"rowOperation\":true,\"btnClass\":\"table-btn success\",\"formId\":\"1440961779596267520\"},{\"id\":3,\"type\":2,\"name\":\"删除\",\"enabled\":true,\"builtin\":true,\"rowOperation\":true,\"btnClass\":\"table-btn delete\"}],\"queryParamList\":[],\"tableId\":\"1440961208273342464\",\"variableName\":\"formSecondParty\",\"showName\":\"乙方管理\",\"datasourceId\":\"1440961208344645633\",\"hasError\":false}},\"widgetList\":[{\"widgetKind\":0,\"widgetType\":1,\"span\":12,\"type\":\"text\",\"placeholder\":\"\",\"defaultValue\":\"\",\"minRows\":2,\"maxRows\":2,\"readOnly\":false,\"disabled\":false,\"id\":1632386975051,\"datasourceId\":\"1440961208344645633\",\"tableId\":\"1440961208273342464\",\"columnId\":\"1440961208294313984\",\"columnName\":\"company_name\",\"showName\":\"公司名称\",\"variableName\":\"companyName\",\"dictParamList\":null,\"queryParamList\":[],\"tableColumnList\":[],\"hasError\":false}]}', '[{\"autoIncrement\":false,\"columnComment\":\"公司名称\",\"columnId\":\"1440961208294313984\",\"columnName\":\"company_name\",\"columnShowOrder\":2,\"columnType\":\"varchar\",\"createTime\":\"2021-09-23 16:48:18\",\"deptFilter\":false,\"filterType\":3,\"fullColumnType\":\"varchar(255)\",\"nullable\":false,\"objectFieldName\":\"companyName\",\"objectFieldType\":\"String\",\"parentKey\":false,\"primaryKey\":false,\"tableId\":\"1440961208273342464\",\"updateTime\":\"2021-09-23 16:48:23\",\"userFilter\":false}]', '2021-09-23 16:50:51', '2021-09-23 16:49:18'); -INSERT INTO `zz_online_form` VALUES (1440961779596267520, 1440961119001776128, 'formViewSecondParty', '编辑乙方信息', 1, 5, 1440961208273342464, '{\"formConfig\":{\"formKind\":1,\"formType\":5,\"gutter\":20,\"labelWidth\":120,\"labelPosition\":\"right\",\"width\":800,\"paramList\":[{\"columnName\":\"second_party_id\",\"primaryKey\":true,\"slaveClumn\":false,\"builtin\":true}]},\"widgetList\":[{\"widgetKind\":1,\"widgetType\":1,\"span\":12,\"type\":\"text\",\"placeholder\":\"\",\"defaultValue\":\"\",\"minRows\":2,\"maxRows\":2,\"readOnly\":false,\"disabled\":false,\"id\":1632387055657,\"datasourceId\":\"1440961208344645633\",\"tableId\":\"1440961208273342464\",\"columnId\":\"1440961208294313984\",\"columnName\":\"company_name\",\"showName\":\"公司名称\",\"variableName\":\"companyName\",\"dictParamList\":null,\"queryParamList\":[],\"tableColumnList\":[]},{\"widgetKind\":1,\"widgetType\":1,\"span\":12,\"type\":\"text\",\"placeholder\":\"\",\"defaultValue\":\"\",\"minRows\":2,\"maxRows\":2,\"readOnly\":false,\"disabled\":false,\"id\":1632387056269,\"datasourceId\":\"1440961208344645633\",\"tableId\":\"1440961208273342464\",\"columnId\":\"1440961208298508288\",\"columnName\":\"legal_person\",\"showName\":\"公司法人\",\"variableName\":\"legalPerson\",\"dictParamList\":null,\"queryParamList\":[],\"tableColumnList\":[]},{\"widgetKind\":1,\"widgetType\":1,\"span\":12,\"type\":\"text\",\"placeholder\":\"\",\"defaultValue\":\"\",\"minRows\":2,\"maxRows\":2,\"readOnly\":false,\"disabled\":false,\"id\":1632387056789,\"datasourceId\":\"1440961208344645633\",\"tableId\":\"1440961208273342464\",\"columnId\":\"1440961208302702592\",\"columnName\":\"legal_person_id\",\"showName\":\"法人身份证号\",\"variableName\":\"legalPersonId\",\"dictParamList\":null,\"queryParamList\":[],\"tableColumnList\":[]},{\"widgetKind\":1,\"widgetType\":1,\"span\":12,\"type\":\"text\",\"placeholder\":\"\",\"defaultValue\":\"\",\"minRows\":2,\"maxRows\":2,\"readOnly\":false,\"disabled\":false,\"id\":1632387059360,\"datasourceId\":\"1440961208344645633\",\"tableId\":\"1440961208273342464\",\"columnId\":\"1440961208315285504\",\"columnName\":\"contact_info\",\"showName\":\"联系方式\",\"variableName\":\"contactInfo\",\"dictParamList\":null,\"queryParamList\":[],\"tableColumnList\":[]},{\"widgetKind\":1,\"widgetType\":1,\"span\":24,\"type\":\"text\",\"placeholder\":\"\",\"defaultValue\":\"\",\"minRows\":2,\"maxRows\":2,\"readOnly\":false,\"disabled\":false,\"id\":1632387060899,\"datasourceId\":\"1440961208344645633\",\"tableId\":\"1440961208273342464\",\"columnId\":\"1440961208306896896\",\"columnName\":\"registry_address\",\"showName\":\"注册地址\",\"variableName\":\"registryAddress\",\"dictParamList\":null,\"queryParamList\":[],\"tableColumnList\":[]},{\"widgetKind\":1,\"widgetType\":1,\"span\":24,\"type\":\"textarea\",\"placeholder\":\"\",\"defaultValue\":\"\",\"minRows\":2,\"maxRows\":4,\"readOnly\":false,\"disabled\":false,\"id\":1632387061874,\"datasourceId\":\"1440961208344645633\",\"tableId\":\"1440961208273342464\",\"columnId\":\"1440961208319479808\",\"columnName\":\"business_scope\",\"showName\":\"经营范围\",\"variableName\":\"businessScope\",\"dictParamList\":null,\"queryParamList\":[],\"tableColumnList\":[]},{\"widgetKind\":1,\"widgetType\":1,\"span\":24,\"type\":\"textarea\",\"placeholder\":\"\",\"defaultValue\":\"\",\"minRows\":2,\"maxRows\":4,\"readOnly\":false,\"disabled\":false,\"id\":1632387062646,\"datasourceId\":\"1440961208344645633\",\"tableId\":\"1440961208273342464\",\"columnId\":\"1440961208323674112\",\"columnName\":\"memo\",\"showName\":\"备注\",\"variableName\":\"memo\",\"dictParamList\":null,\"queryParamList\":[],\"tableColumnList\":[]}]}', '[{\"autoIncrement\":false,\"columnComment\":\"主键Id\",\"columnId\":\"1440961208285925376\",\"columnName\":\"second_party_id\",\"columnShowOrder\":1,\"columnType\":\"bigint\",\"createTime\":\"2021-09-23 16:48:18\",\"deptFilter\":false,\"filterType\":0,\"fullColumnType\":\"bigint(20)\",\"nullable\":false,\"objectFieldName\":\"secondPartyId\",\"objectFieldType\":\"Long\",\"parentKey\":false,\"primaryKey\":true,\"tableId\":\"1440961208273342464\",\"updateTime\":\"2021-09-23 16:48:18\",\"userFilter\":false}]', '2021-09-23 16:51:20', '2021-09-23 16:50:35'); -INSERT INTO `zz_online_form` VALUES (1440962496864194560, 1440962061336055808, 'formProduct', '产品管理', 5, 1, 1440962162712383488, '{\"formConfig\":{\"formKind\":5,\"formType\":1,\"gutter\":20,\"labelWidth\":100,\"labelPosition\":\"right\",\"width\":800,\"paramList\":[],\"tableWidget\":{\"widgetKind\":2,\"widgetType\":100,\"span\":24,\"supportBottom\":0,\"tableInfo\":{\"paged\":true,\"optionColumnWidth\":150},\"titleColor\":\"#409EFF\",\"tableColumnList\":[{\"columnId\":\"1440962162729160704\",\"tableId\":\"1440962162712383488\",\"showName\":\"产品名称\",\"showOrder\":1,\"sortable\":false},{\"columnId\":\"1440962162733355008\",\"tableId\":\"1440962162712383488\",\"showName\":\"规格\",\"showOrder\":2,\"sortable\":false},{\"columnId\":\"1440962162741743616\",\"tableId\":\"1440962162712383488\",\"showName\":\"产品价格\",\"showOrder\":3,\"sortable\":false},{\"columnId\":\"1440962162745937920\",\"tableId\":\"1440962162712383488\",\"showName\":\"备注\",\"showOrder\":4,\"sortable\":false}],\"operationList\":[{\"id\":1,\"type\":0,\"name\":\"新建\",\"enabled\":true,\"builtin\":true,\"rowOperation\":false,\"btnType\":\"primary\",\"plain\":false,\"formId\":\"1440962547132928000\"},{\"id\":2,\"type\":1,\"name\":\"编辑\",\"enabled\":true,\"builtin\":true,\"rowOperation\":true,\"btnClass\":\"table-btn success\",\"formId\":\"1440962547132928000\"},{\"id\":3,\"type\":2,\"name\":\"删除\",\"enabled\":true,\"builtin\":true,\"rowOperation\":true,\"btnClass\":\"table-btn delete\"}],\"queryParamList\":[],\"tableId\":\"1440962162712383488\",\"variableName\":\"formProduct\",\"showName\":\"产品管理\",\"datasourceId\":\"1440962162771103745\",\"hasError\":false}},\"widgetList\":[{\"widgetKind\":0,\"widgetType\":1,\"span\":12,\"type\":\"text\",\"placeholder\":\"\",\"defaultValue\":\"\",\"minRows\":2,\"maxRows\":2,\"readOnly\":false,\"disabled\":false,\"id\":1632387220352,\"datasourceId\":\"1440962162771103745\",\"tableId\":\"1440962162712383488\",\"columnId\":\"1440962162729160704\",\"columnName\":\"product_name\",\"showName\":\"产品名称\",\"variableName\":\"productName\",\"dictParamList\":null,\"queryParamList\":[],\"tableColumnList\":[]},{\"widgetKind\":0,\"widgetType\":4,\"readOnly\":false,\"disabled\":false,\"id\":1632387221253,\"datasourceId\":\"1440962162771103745\",\"tableId\":\"1440962162712383488\",\"columnId\":\"1440962162741743616\",\"columnName\":\"cost_price\",\"showName\":\"产品价格\",\"variableName\":\"costPrice\",\"dictParamList\":null,\"queryParamList\":[],\"tableColumnList\":[]}]}', '[{\"autoIncrement\":false,\"columnComment\":\"产品名称\",\"columnId\":\"1440962162729160704\",\"columnName\":\"product_name\",\"columnShowOrder\":2,\"columnType\":\"varchar\",\"createTime\":\"2021-09-23 16:52:06\",\"deptFilter\":false,\"filterType\":3,\"fullColumnType\":\"varchar(255)\",\"nullable\":false,\"objectFieldName\":\"productName\",\"objectFieldType\":\"String\",\"parentKey\":false,\"primaryKey\":false,\"tableId\":\"1440962162712383488\",\"updateTime\":\"2021-09-23 16:52:10\",\"userFilter\":false},{\"autoIncrement\":false,\"columnComment\":\"产品价格\",\"columnId\":\"1440962162741743616\",\"columnName\":\"cost_price\",\"columnShowOrder\":5,\"columnType\":\"int\",\"createTime\":\"2021-09-23 16:52:06\",\"deptFilter\":false,\"filterType\":2,\"fullColumnType\":\"int(11)\",\"nullable\":false,\"objectFieldName\":\"costPrice\",\"objectFieldType\":\"Integer\",\"parentKey\":false,\"primaryKey\":false,\"tableId\":\"1440962162712383488\",\"updateTime\":\"2021-09-23 16:53:05\",\"userFilter\":false}]', '2021-09-23 16:54:15', '2021-09-23 16:53:26'); -INSERT INTO `zz_online_form` VALUES (1440962547132928000, 1440962061336055808, 'formEditProduct', '编辑产品', 1, 5, 1440962162712383488, '{\"formConfig\":{\"gutter\":20,\"labelWidth\":100,\"labelPosition\":\"right\",\"width\":800,\"widgetList\":[],\"paramList\":[]},\"widgetList\":[]}', '[]', '2021-09-23 16:53:38', '2021-09-23 16:53:38'); -COMMIT; - --- ---------------------------- --- Table structure for zz_online_form_datasource --- ---------------------------- -DROP TABLE IF EXISTS `zz_online_form_datasource`; -CREATE TABLE `zz_online_form_datasource` ( - `id` bigint NOT NULL COMMENT '主键Id', - `form_id` bigint NOT NULL COMMENT '表单Id', - `datasource_id` bigint NOT NULL COMMENT '数据源Id', - PRIMARY KEY (`id`), - KEY `idx_form_id` (`form_id`) USING BTREE, - KEY `idx_datasource_id` (`datasource_id`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; - --- ---------------------------- --- Records of zz_online_form_datasource --- ---------------------------- -BEGIN; -INSERT INTO `zz_online_form_datasource` VALUES (1440945738333818880, 1440945411354267648, 1440945228130291712); -INSERT INTO `zz_online_form_datasource` VALUES (1440948576577392640, 1440947675041107968, 1440946127531675648); -INSERT INTO `zz_online_form_datasource` VALUES (1440948832954224640, 1440947791881834496, 1440946127531675648); -INSERT INTO `zz_online_form_datasource` VALUES (1440957294211764224, 1440955001093492736, 1440952815374569472); -INSERT INTO `zz_online_form_datasource` VALUES (1440958752122474496, 1440955483438452736, 1440952815374569472); -INSERT INTO `zz_online_form_datasource` VALUES (1440959275592585216, 1440955295755931648, 1440952815374569472); -INSERT INTO `zz_online_form_datasource` VALUES (1440959299529478144, 1440955361006718976, 1440952815374569472); -INSERT INTO `zz_online_form_datasource` VALUES (1440959323269238784, 1440955424638504960, 1440952815374569472); -INSERT INTO `zz_online_form_datasource` VALUES (1440959757073518592, 1440959226632474624, 1440958971190972416); -INSERT INTO `zz_online_form_datasource` VALUES (1440960555518005248, 1440955127790833664, 1440952815374569472); -INSERT INTO `zz_online_form_datasource` VALUES (1440960654734266368, 1440955194991972352, 1440952815374569472); -INSERT INTO `zz_online_form_datasource` VALUES (1440960985459331072, 1440959420396736512, 1440958971190972416); -INSERT INTO `zz_online_form_datasource` VALUES (1440961848324132864, 1440961456601305088, 1440961208344645633); -INSERT INTO `zz_online_form_datasource` VALUES (1440961970739089408, 1440961779596267520, 1440961208344645633); -INSERT INTO `zz_online_form_datasource` VALUES (1440962547137122304, 1440962547132928000, 1440962162771103745); -INSERT INTO `zz_online_form_datasource` VALUES (1440962702619971584, 1440962496864194560, 1440962162771103745); -INSERT INTO `zz_online_form_datasource` VALUES (1440978457667309568, 1440945468593934336, 1440945228130291712); -INSERT INTO `zz_online_form_datasource` VALUES (1441214948859449344, 1440954920348946432, 1440952815374569472); -COMMIT; - --- ---------------------------- --- Table structure for zz_online_page --- ---------------------------- -DROP TABLE IF EXISTS `zz_online_page`; -CREATE TABLE `zz_online_page` ( - `page_id` bigint NOT NULL COMMENT '主键Id', - `page_code` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '页面编码', - `page_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '页面名称', - `page_type` int NOT NULL COMMENT '页面类型', - `status` int NOT NULL COMMENT '页面编辑状态', - `published` bit(1) NOT NULL DEFAULT b'0' COMMENT '是否发布', - `update_time` datetime NOT NULL COMMENT '更新时间', - `create_time` datetime NOT NULL COMMENT '创建时间', - PRIMARY KEY (`page_id`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; - --- ---------------------------- --- Records of zz_online_page --- ---------------------------- -BEGIN; -INSERT INTO `zz_online_page` VALUES (1440945149889744896, 'pageFlowLeave', '请假申请', 10, 2, b'1', '2021-09-23 15:45:08', '2021-09-23 15:44:30'); -INSERT INTO `zz_online_page` VALUES (1440946020174270464, 'pageSubmit', '报销申请', 10, 2, b'1', '2021-09-23 15:57:43', '2021-09-23 15:47:57'); -INSERT INTO `zz_online_page` VALUES (1440952710487609344, 'pageFlowContract', '合同审批', 10, 2, b'1', '2021-09-23 16:23:02', '2021-09-23 16:14:32'); -INSERT INTO `zz_online_page` VALUES (1440958861153406976, 'formFirstParty', '甲方企业', 1, 2, b'1', '2021-09-23 16:40:03', '2021-09-23 16:38:59'); -INSERT INTO `zz_online_page` VALUES (1440961119001776128, 'pageSecondParty', '乙方企业管理', 1, 2, b'1', '2021-09-23 16:48:58', '2021-09-23 16:47:57'); -INSERT INTO `zz_online_page` VALUES (1440962061336055808, 'pageProduct', '产品管理', 1, 2, b'1', '2021-09-23 16:53:12', '2021-09-23 16:51:42'); -COMMIT; - --- ---------------------------- --- Table structure for zz_online_page_datasource --- ---------------------------- -DROP TABLE IF EXISTS `zz_online_page_datasource`; -CREATE TABLE `zz_online_page_datasource` ( - `id` bigint NOT NULL COMMENT '主键Id', - `page_id` bigint NOT NULL COMMENT '页面主键Id', - `datasource_id` bigint NOT NULL COMMENT '数据源主键Id', - PRIMARY KEY (`id`), - KEY `idx_page_id` (`page_id`) USING BTREE, - KEY `idx_datasource_id` (`datasource_id`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; - --- ---------------------------- --- Records of zz_online_page_datasource --- ---------------------------- -BEGIN; -INSERT INTO `zz_online_page_datasource` VALUES (1440945228138680320, 1440945149889744896, 1440945228130291712); -INSERT INTO `zz_online_page_datasource` VALUES (1440946127540064256, 1440946020174270464, 1440946127531675648); -INSERT INTO `zz_online_page_datasource` VALUES (1440952815382958080, 1440952710487609344, 1440952815374569472); -INSERT INTO `zz_online_page_datasource` VALUES (1440958971195166721, 1440958861153406976, 1440958971190972416); -INSERT INTO `zz_online_page_datasource` VALUES (1440961208353034240, 1440961119001776128, 1440961208344645633); -INSERT INTO `zz_online_page_datasource` VALUES (1440962162779492352, 1440962061336055808, 1440962162771103745); -COMMIT; - --- ---------------------------- --- Table structure for zz_online_rule --- ---------------------------- -DROP TABLE IF EXISTS `zz_online_rule`; -CREATE TABLE `zz_online_rule` ( - `rule_id` bigint NOT NULL COMMENT '主键Id', - `rule_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '规则名称', - `rule_type` int NOT NULL COMMENT '规则类型', - `builtin` bit(1) NOT NULL COMMENT '内置规则标记', - `pattern` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '自定义规则的正则表达式', - `update_time` datetime NOT NULL COMMENT '更新时间', - `create_time` datetime NOT NULL COMMENT '创建时间', - `deleted_flag` int NOT NULL COMMENT '逻辑删除标记', - PRIMARY KEY (`rule_id`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; - --- ---------------------------- --- Records of zz_online_rule --- ---------------------------- -BEGIN; -INSERT INTO `zz_online_rule` VALUES (1, '只允许整数', 1, b'1', NULL, '2021-09-23 00:00:00', '2021-09-23 00:00:00', 1); -INSERT INTO `zz_online_rule` VALUES (2, '只允许数字', 2, b'1', NULL, '2021-09-23 00:00:00', '2021-09-23 00:00:00', 1); -INSERT INTO `zz_online_rule` VALUES (3, '只允许英文字符', 3, b'1', NULL, '2021-09-23 00:00:00', '2021-09-23 00:00:00', 1); -INSERT INTO `zz_online_rule` VALUES (4, '范围验证', 4, b'1', NULL, '2021-09-23 00:00:00', '2021-09-23 00:00:00', 1); -INSERT INTO `zz_online_rule` VALUES (5, '邮箱格式验证', 5, b'1', NULL, '2021-09-23 00:00:00', '2021-09-23 00:00:00', 1); -INSERT INTO `zz_online_rule` VALUES (6, '手机格式验证', 6, b'1', NULL, '2021-09-23 00:00:00', '2021-09-23 00:00:00', 1); -COMMIT; - --- ---------------------------- --- Table structure for zz_online_table --- ---------------------------- -DROP TABLE IF EXISTS `zz_online_table`; -CREATE TABLE `zz_online_table` ( - `table_id` bigint NOT NULL COMMENT '主键Id', - `table_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '表名称', - `model_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '实体名称', - `dblink_id` bigint NOT NULL COMMENT '数据库链接Id', - `update_time` datetime NOT NULL COMMENT '更新时间', - `create_time` datetime NOT NULL COMMENT '创建时间', - PRIMARY KEY (`table_id`), - KEY `idx_dblink_id` (`dblink_id`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; - --- ---------------------------- --- Records of zz_online_table --- ---------------------------- -BEGIN; -INSERT INTO `zz_online_table` VALUES (1440945228079960064, 'zz_test_flow_leave', 'ZzTestFlowLeave', 1, '2021-09-23 15:44:48', '2021-09-23 15:44:48'); -INSERT INTO `zz_online_table` VALUES (1440946127460372480, 'zz_test_flow_submit', 'ZzTestFlowSubmit', 1, '2021-09-23 15:48:23', '2021-09-23 15:48:23'); -INSERT INTO `zz_online_table` VALUES (1440947089218473984, 'zz_test_flow_submit_detail', 'ZzTestFlowSubmitDetail', 1, '2021-09-23 15:52:12', '2021-09-23 15:52:12'); -INSERT INTO `zz_online_table` VALUES (1440952815294877696, 'zz_test_flow_contract', 'ZzTestFlowContract', 1, '2021-09-23 16:14:57', '2021-09-23 16:14:57'); -INSERT INTO `zz_online_table` VALUES (1440952921024892928, 'zz_test_flow_first_party', 'ZzTestFlowFirstParty', 1, '2021-09-23 16:15:23', '2021-09-23 16:15:23'); -INSERT INTO `zz_online_table` VALUES (1440952988389609472, 'zz_test_flow_second_party', 'ZzTestFlowSecondParty', 1, '2021-09-23 16:15:39', '2021-09-23 16:15:39'); -INSERT INTO `zz_online_table` VALUES (1440953088901910528, 'zz_test_flow_contract_detail', 'ZzTestFlowContractDetail', 1, '2021-09-23 16:16:03', '2021-09-23 16:16:03'); -INSERT INTO `zz_online_table` VALUES (1440953170514677760, 'zz_test_flow_pay_detail', 'ZzTestFlowPayDetail', 1, '2021-09-23 16:16:22', '2021-09-23 16:16:22'); -INSERT INTO `zz_online_table` VALUES (1440953245664022528, 'zz_test_flow_delivery_detail', 'ZzTestFlowDeliveryDetail', 1, '2021-09-23 16:16:40', '2021-09-23 16:16:40'); -INSERT INTO `zz_online_table` VALUES (1440958971128057856, 'zz_test_flow_first_party', 'ZzTestFlowFirstParty', 1, '2021-09-23 16:39:25', '2021-09-23 16:39:25'); -INSERT INTO `zz_online_table` VALUES (1440961208273342464, 'zz_test_flow_second_party', 'ZzTestFlowSecondParty', 1, '2021-09-23 16:48:18', '2021-09-23 16:48:18'); -INSERT INTO `zz_online_table` VALUES (1440962162712383488, 'zz_test_flow_product', 'ZzTestFlowProduct', 1, '2021-09-23 16:52:06', '2021-09-23 16:52:06'); -COMMIT; - --- ---------------------------- --- Table structure for zz_online_virtual_column --- ---------------------------- -DROP TABLE IF EXISTS `zz_online_virtual_column`; -CREATE TABLE `zz_online_virtual_column` ( - `virtual_column_id` bigint NOT NULL COMMENT '主键Id', - `table_id` bigint NOT NULL COMMENT '所在表Id', - `object_field_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '字段名称', - `object_field_type` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '属性类型', - `column_prompt` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '字段提示名', - `virtual_type` int NOT NULL COMMENT '虚拟字段类型(0: 聚合)', - `datasource_id` bigint NOT NULL COMMENT '关联数据源Id', - `relation_id` bigint DEFAULT NULL COMMENT '关联Id', - `aggregation_table_id` bigint DEFAULT NULL COMMENT '聚合字段所在关联表Id', - `aggregation_column_id` bigint DEFAULT NULL COMMENT '关联表聚合字段Id', - `aggregation_type` int DEFAULT NULL COMMENT '聚合类型(0: sum 1: count 2: avg 3: min 4: max)', - `where_clause_json` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '存储过滤条件的json', - PRIMARY KEY (`virtual_column_id`) USING BTREE, - KEY `idx_database_id` (`datasource_id`) USING BTREE, - KEY `idx_relation_id` (`relation_id`) USING BTREE, - KEY `idx_table_id` (`table_id`) USING BTREE, - KEY `idx_aggregation_column_id` (`aggregation_column_id`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; - --- ---------------------------- --- Records of zz_online_virtual_column --- ---------------------------- -BEGIN; -INSERT INTO `zz_online_virtual_column` VALUES (1440947297541165056, 1440946127460372480, 'totalAmount', 'Long', '报销总金额', 0, 1440946127531675648, 1440947089268805632, 1440947089218473984, 1440947089252028416, 0, '[]'); -COMMIT; - --- ---------------------------- --- Table structure for zz_sys_data_perm --- ---------------------------- -DROP TABLE IF EXISTS `zz_sys_data_perm`; -CREATE TABLE `zz_sys_data_perm` ( - `data_perm_id` bigint NOT NULL COMMENT '主键', - `data_perm_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '显示名称', - `rule_type` tinyint NOT NULL COMMENT '数据权限规则类型(0: 全部可见 1: 只看自己 2: 只看本部门 3: 本部门及子部门 4: 多部门及子部门 5: 自定义部门列表)。', - `create_user_id` bigint NOT NULL COMMENT '创建者Id', - `create_time` datetime NOT NULL COMMENT '创建时间', - `update_user_id` bigint NOT NULL COMMENT '更新者Id', - `update_time` datetime NOT NULL COMMENT '最后更新时间', - `deleted_flag` int NOT NULL COMMENT '逻辑删除标记(1: 正常 -1: 已删除)', - PRIMARY KEY (`data_perm_id`) USING BTREE, - KEY `idx_create_time` (`create_time`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='数据权限表'; - --- ---------------------------- --- Records of zz_sys_data_perm --- ---------------------------- -BEGIN; -INSERT INTO `zz_sys_data_perm` VALUES (1440965237959299072, '查看全部', 0, 1440911410581213417, '2021-09-23 17:04:19', 1440911410581213417, '2021-09-23 17:04:19', 1); -COMMIT; - --- ---------------------------- --- Table structure for zz_sys_data_perm_dept --- ---------------------------- -DROP TABLE IF EXISTS `zz_sys_data_perm_dept`; -CREATE TABLE `zz_sys_data_perm_dept` ( - `data_perm_id` bigint NOT NULL COMMENT '数据权限Id', - `dept_id` bigint NOT NULL COMMENT '部门Id', - PRIMARY KEY (`data_perm_id`,`dept_id`), - KEY `idx_dept_id` (`dept_id`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='数据权限和部门关联表'; - --- ---------------------------- --- Table structure for zz_sys_data_perm_user --- ---------------------------- -DROP TABLE IF EXISTS `zz_sys_data_perm_user`; -CREATE TABLE `zz_sys_data_perm_user` ( - `data_perm_id` bigint NOT NULL COMMENT '数据权限Id', - `user_id` bigint NOT NULL COMMENT '用户Id', - PRIMARY KEY (`data_perm_id`,`user_id`), - KEY `idx_user_id` (`user_id`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='数据权限和用户关联表'; - --- ---------------------------- --- Records of zz_sys_data_perm_user --- ---------------------------- -BEGIN; -INSERT INTO `zz_sys_data_perm_user` VALUES (1440965237959299072, 1440965344985354240); -INSERT INTO `zz_sys_data_perm_user` VALUES (1440965237959299072, 1440965465605148672); -INSERT INTO `zz_sys_data_perm_user` VALUES (1440965237959299072, 1440965586715676672); -INSERT INTO `zz_sys_data_perm_user` VALUES (1440965237959299072, 1440965697961201664); -INSERT INTO `zz_sys_data_perm_user` VALUES (1440965237959299072, 1440965808049098752); -INSERT INTO `zz_sys_data_perm_user` VALUES (1440965237959299072, 1440966073686953984); -INSERT INTO `zz_sys_data_perm_user` VALUES (1440965237959299072, 1440966186522120192); -INSERT INTO `zz_sys_data_perm_user` VALUES (1440965237959299072, 1440966324770574336); -INSERT INTO `zz_sys_data_perm_user` VALUES (1440965237959299072, 1440969706411397120); -COMMIT; - --- ---------------------------- --- Table structure for zz_sys_dept --- ---------------------------- -DROP TABLE IF EXISTS `zz_sys_dept`; -CREATE TABLE `zz_sys_dept` ( - `dept_id` bigint NOT NULL COMMENT '部门Id', - `parent_id` bigint DEFAULT NULL COMMENT '父部门Id', - `dept_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '部门名称', - `show_order` int NOT NULL COMMENT '兄弟部分之间的显示顺序,数字越小越靠前', - `create_user_id` bigint NOT NULL COMMENT '创建者Id', - `create_time` datetime NOT NULL COMMENT '创建时间', - `update_user_id` bigint NOT NULL COMMENT '更新者Id', - `update_time` datetime NOT NULL COMMENT '最后更新时间', - `deleted_flag` int NOT NULL DEFAULT '0' COMMENT '删除标记(1: 正常 -1: 已删除)', - PRIMARY KEY (`dept_id`) USING BTREE, - KEY `idx_parent_id` (`parent_id`) USING BTREE, - KEY `idx_show_order` (`show_order`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin ROW_FORMAT=COMPACT COMMENT='部门管理表'; - --- ---------------------------- --- Records of zz_sys_dept --- ---------------------------- -BEGIN; -INSERT INTO `zz_sys_dept` VALUES (1440911410581213416, NULL, '公司总部', 1, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_dept` VALUES (1440963592970047488, 1440911410581213416, '人事部', 1, 1440911410581213417, '2021-09-23 16:57:47', 1440911410581213417, '2021-09-23 16:57:47', 1); -INSERT INTO `zz_sys_dept` VALUES (1440963642542526464, 1440911410581213416, '法务部', 2, 1440911410581213417, '2021-09-23 16:57:59', 1440911410581213417, '2021-09-23 16:57:59', 1); -INSERT INTO `zz_sys_dept` VALUES (1440963698460987392, NULL, '天津分公司', 2, 1440911410581213417, '2021-09-23 16:58:12', 1440911410581213417, '2021-09-23 16:58:12', 1); -INSERT INTO `zz_sys_dept` VALUES (1440963733084966912, NULL, '北京分公司', 2, 1440911410581213417, '2021-09-23 16:58:20', 1440911410581213417, '2021-09-23 16:58:20', 1); -COMMIT; - --- ---------------------------- --- Table structure for zz_sys_dept_post --- ---------------------------- -DROP TABLE IF EXISTS `zz_sys_dept_post`; -CREATE TABLE `zz_sys_dept_post` ( - `dept_post_id` bigint NOT NULL COMMENT '主键Id', - `dept_id` bigint NOT NULL COMMENT '部门Id', - `post_id` bigint NOT NULL COMMENT '岗位Id', - `post_show_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '部门岗位显示名称', - PRIMARY KEY (`dept_post_id`) USING BTREE, - KEY `idx_post_id` (`post_id`) USING BTREE, - KEY `idx_dept_id` (`dept_id`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; - --- ---------------------------- --- Records of zz_sys_dept_post --- ---------------------------- -BEGIN; -INSERT INTO `zz_sys_dept_post` VALUES (1440964221780103168, 1440963592970047488, 1440964097913917440, '人事部经理'); -INSERT INTO `zz_sys_dept_post` VALUES (1440964221855600640, 1440963592970047488, 1440964157770829824, '人事专员'); -INSERT INTO `zz_sys_dept_post` VALUES (1440964387979399168, 1440963642542526464, 1440964097913917440, '法务部经理'); -INSERT INTO `zz_sys_dept_post` VALUES (1440964387983593472, 1440963642542526464, 1440964157770829824, '法务专员'); -INSERT INTO `zz_sys_dept_post` VALUES (1440964519391137792, 1440963698460987392, 1440963890539139072, '天津大区总监'); -INSERT INTO `zz_sys_dept_post` VALUES (1440964519395332096, 1440963698460987392, 1440964040611336192, '天津地区经理'); -INSERT INTO `zz_sys_dept_post` VALUES (1440964519399526400, 1440963698460987392, 1440964157770829824, '员工'); -INSERT INTO `zz_sys_dept_post` VALUES (1440964725134331904, 1440963733084966912, 1440963890539139072, '北京大区总监'); -INSERT INTO `zz_sys_dept_post` VALUES (1440964725138526208, 1440963733084966912, 1440964040611336192, '北京地区经理'); -INSERT INTO `zz_sys_dept_post` VALUES (1440964725142720512, 1440963733084966912, 1440964157770829824, '员工'); -INSERT INTO `zz_sys_dept_post` VALUES (1440969551792574464, 1440911410581213416, 1440963890539139072, '总裁'); -COMMIT; - --- ---------------------------- --- Table structure for zz_sys_dept_relation --- ---------------------------- -DROP TABLE IF EXISTS `zz_sys_dept_relation`; -CREATE TABLE `zz_sys_dept_relation` ( - `parent_dept_id` bigint NOT NULL COMMENT '父部门Id', - `dept_id` bigint NOT NULL COMMENT '部门Id', - PRIMARY KEY (`parent_dept_id`,`dept_id`), - KEY `idx_dept_id` (`dept_id`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin ROW_FORMAT=COMPACT COMMENT='部门关联关系表'; - --- ---------------------------- --- Records of zz_sys_dept_relation --- ---------------------------- -BEGIN; -INSERT INTO `zz_sys_dept_relation` VALUES (1440911410581213416, 1440911410581213416); -INSERT INTO `zz_sys_dept_relation` VALUES (1440911410581213416, 1440963592970047488); -INSERT INTO `zz_sys_dept_relation` VALUES (1440963592970047488, 1440963592970047488); -INSERT INTO `zz_sys_dept_relation` VALUES (1440911410581213416, 1440963642542526464); -INSERT INTO `zz_sys_dept_relation` VALUES (1440963642542526464, 1440963642542526464); -INSERT INTO `zz_sys_dept_relation` VALUES (1440963698460987392, 1440963698460987392); -INSERT INTO `zz_sys_dept_relation` VALUES (1440963733084966912, 1440963733084966912); -COMMIT; - --- ---------------------------- --- Table structure for zz_sys_menu --- ---------------------------- -DROP TABLE IF EXISTS `zz_sys_menu`; -CREATE TABLE `zz_sys_menu` ( - `menu_id` bigint NOT NULL COMMENT '主键Id', - `parent_id` bigint DEFAULT NULL COMMENT '父菜单Id,目录菜单的父菜单为null', - `menu_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '菜单显示名称', - `menu_type` int NOT NULL COMMENT '(0: 目录 1: 菜单 2: 按钮 3: UI片段)', - `form_router_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '前端表单路由名称,仅用于menu_type为1的菜单类型', - `online_form_id` bigint DEFAULT NULL COMMENT '在线表单主键Id', - `online_menu_perm_type` int DEFAULT NULL COMMENT '在线表单菜单的权限控制类型', - `online_flow_entry_id` bigint DEFAULT NULL COMMENT '仅用于在线表单的流程Id', - `show_order` int NOT NULL COMMENT '菜单显示顺序 (值越小,排序越靠前)', - `icon` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '菜单图标', - `create_user_id` bigint NOT NULL COMMENT '创建者Id', - `create_time` datetime NOT NULL COMMENT '创建时间', - `update_user_id` bigint NOT NULL COMMENT '更新者Id', - `update_time` datetime NOT NULL COMMENT '最后更新时间', - `deleted_flag` int NOT NULL COMMENT '逻辑删除标记(1: 正常 -1: 已删除)', - PRIMARY KEY (`menu_id`) USING BTREE, - KEY `idx_show_order` (`show_order`) USING BTREE, - KEY `idx_parent_id` (`parent_id`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin ROW_FORMAT=COMPACT COMMENT='菜单和操作权限管理表'; - --- ---------------------------- --- Records of zz_sys_menu --- ---------------------------- -BEGIN; -INSERT INTO `zz_sys_menu` VALUES (1392786476428693504, NULL, '在线表单', 0, NULL, NULL, NULL, NULL, 2, 'el-icon-c-scale-to-original', 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 17:42:00', 1); -INSERT INTO `zz_sys_menu` VALUES (1392786549942259712, 1392786476428693504, '字典管理', 1, 'formOnlineDict', NULL, NULL, NULL, 1, NULL, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_menu` VALUES (1392786950682841088, 1392786476428693504, '表单管理', 1, 'formOnlinePage', NULL, NULL, NULL, 2, NULL, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_menu` VALUES (1401532054578925568, NULL, '系统管理', 0, NULL, NULL, NULL, NULL, 1, 'el-icon-setting', 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 17:41:39', 1); -INSERT INTO `zz_sys_menu` VALUES (1401532055971434496, 1401532054578925568, '用户管理', 1, 'formSysUser', NULL, NULL, NULL, 100, NULL, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_menu` VALUES (1401532055971434497, 1401532054578925568, '部门管理', 1, 'formSysDept', NULL, NULL, NULL, 105, NULL, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_menu` VALUES (1401532055971434498, 1401532054578925568, '角色管理', 1, 'formSysRole', NULL, NULL, NULL, 110, NULL, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_menu` VALUES (1401532055971434499, 1401532054578925568, '数据权限管理', 1, 'formSysDataPerm', NULL, NULL, NULL, 115, NULL, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_menu` VALUES (1401532055971434500, 1401532054578925568, '菜单管理', 1, 'formSysMenu', NULL, NULL, NULL, 120, NULL, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_menu` VALUES (1401532055971434501, 1401532054578925568, '权限字管理', 1, 'formSysPermCode', NULL, NULL, NULL, 125, NULL, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_menu` VALUES (1401532055971434502, 1401532054578925568, '权限管理', 1, 'formSysPerm', NULL, NULL, NULL, 130, NULL, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_menu` VALUES (1401532055971434503, 1401532054578925568, '字典管理', 1, 'formSysDict', NULL, NULL, NULL, 135, NULL, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_menu` VALUES (1401532055971434504, 1401532054578925568, '在线用户', 1, 'formSysLoginUser', NULL, NULL, NULL, 145, NULL, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_menu` VALUES (1418057714138877952, NULL, '流程管理', 0, NULL, NULL, NULL, NULL, 3, 'el-icon-s-operation', 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 17:42:12', 1); -INSERT INTO `zz_sys_menu` VALUES (1418057835631087616, 1418057714138877952, '流程分类', 1, 'formFlowCategory', NULL, NULL, NULL, 1, NULL, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_menu` VALUES (1418058049951633408, 1418057835631087616, '新建', 3, NULL, NULL, NULL, NULL, 1, NULL, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_menu` VALUES (1418058115667988480, 1418057835631087616, '编辑', 3, NULL, NULL, NULL, NULL, 2, NULL, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_menu` VALUES (1418058170542067712, 1418057835631087616, '删除', 3, NULL, NULL, NULL, NULL, 3, NULL, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_menu` VALUES (1418058289182150656, 1418057714138877952, '流程设计', 1, 'formFlowEntry', NULL, NULL, NULL, 2, NULL, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_menu` VALUES (1418058515099947008, 1418058289182150656, '启动', 3, NULL, NULL, NULL, NULL, 1, NULL, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_menu` VALUES (1418058602723151872, 1418058289182150656, '编辑', 3, NULL, NULL, NULL, NULL, 2, NULL, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_menu` VALUES (1418058744037642240, 1418057714138877952, '流程实例', 1, 'formAllInstance', NULL, NULL, NULL, 3, NULL, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_menu` VALUES (1418058844164067328, 1418058744037642240, '终止', 3, NULL, NULL, NULL, NULL, 1, NULL, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_menu` VALUES (1418058907674218496, 1418058744037642240, '删除', 3, NULL, NULL, NULL, NULL, 2, NULL, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_menu` VALUES (1418059005175009280, NULL, '任务管理', 0, NULL, NULL, NULL, NULL, 4, 'el-icon-tickets', 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 17:42:32', 1); -INSERT INTO `zz_sys_menu` VALUES (1418059167532322816, 1418059005175009280, '待办任务', 1, 'formMyTask', NULL, NULL, NULL, 1, NULL, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_menu` VALUES (1418059283920064512, 1418059005175009280, '历史任务', 1, 'formMyHistoryTask', NULL, NULL, NULL, 2, NULL, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_menu` VALUES (1423161217970606080, 1418059005175009280, '已办任务', 1, 'formMyApprovedTask', NULL, NULL, NULL, 2, NULL, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_menu` VALUES (1433040549035642880, 1401532054578925568, '岗位管理', 1, 'formSysPost', NULL, NULL, NULL, 106, NULL, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_menu` VALUES (1440911410581213280, 1401532055971434496, '显示', 3, NULL, NULL, NULL, NULL, 1, NULL, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_menu` VALUES (1440911410581213281, 1401532055971434496, '新增', 3, NULL, NULL, NULL, NULL, 2, NULL, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_menu` VALUES (1440911410581213282, 1401532055971434496, '编辑', 3, NULL, NULL, NULL, NULL, 3, NULL, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_menu` VALUES (1440911410581213283, 1401532055971434496, '删除', 3, NULL, NULL, NULL, NULL, 4, NULL, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_menu` VALUES (1440911410581213284, 1401532055971434496, '重置密码', 3, NULL, NULL, NULL, NULL, 5, NULL, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_menu` VALUES (1440911410581213285, 1401532055971434496, '权限详情', 3, NULL, NULL, NULL, NULL, 6, NULL, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_menu` VALUES (1440911410581213294, 1401532055971434497, '显示', 3, NULL, NULL, NULL, NULL, 1, NULL, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_menu` VALUES (1440911410581213295, 1401532055971434497, '新增', 3, NULL, NULL, NULL, NULL, 2, NULL, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_menu` VALUES (1440911410581213296, 1401532055971434497, '编辑', 3, NULL, NULL, NULL, NULL, 3, NULL, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_menu` VALUES (1440911410581213297, 1401532055971434497, '删除', 3, NULL, NULL, NULL, NULL, 4, NULL, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_menu` VALUES (1440911410581213298, 1401532055971434497, '设置岗位', 3, NULL, NULL, NULL, NULL, 5, NULL, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_menu` VALUES (1440911410581213299, 1401532055971434497, '查看岗位', 3, NULL, NULL, NULL, NULL, 6, NULL, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_menu` VALUES (1440911410581213308, 1401532055971434498, '角色管理', 2, NULL, NULL, NULL, NULL, 1, NULL, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_menu` VALUES (1440911410581213309, 1401532055971434498, '用户授权', 2, NULL, NULL, NULL, NULL, 2, NULL, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_menu` VALUES (1440911410581213310, 1440911410581213308, '显示', 3, NULL, NULL, NULL, NULL, 1, NULL, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_menu` VALUES (1440911410581213311, 1440911410581213308, '新增', 3, NULL, NULL, NULL, NULL, 2, NULL, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_menu` VALUES (1440911410581213312, 1440911410581213308, '编辑', 3, NULL, NULL, NULL, NULL, 3, NULL, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_menu` VALUES (1440911410581213313, 1440911410581213308, '删除', 3, NULL, NULL, NULL, NULL, 4, NULL, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_menu` VALUES (1440911410581213314, 1440911410581213308, '权限详情', 3, NULL, NULL, NULL, NULL, 5, NULL, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_menu` VALUES (1440911410581213315, 1440911410581213309, '显示', 3, NULL, NULL, NULL, NULL, 1, NULL, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_menu` VALUES (1440911410581213316, 1440911410581213309, '授权用户', 3, NULL, NULL, NULL, NULL, 2, NULL, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_menu` VALUES (1440911410581213317, 1440911410581213309, '移除用户', 3, NULL, NULL, NULL, NULL, 3, NULL, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_menu` VALUES (1440911410581213328, 1401532055971434499, '数据权限管理', 2, NULL, NULL, NULL, NULL, 1, NULL, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_menu` VALUES (1440911410581213329, 1401532055971434499, '用户授权', 2, NULL, NULL, NULL, NULL, 2, NULL, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_menu` VALUES (1440911410581213330, 1440911410581213328, '显示', 3, NULL, NULL, NULL, NULL, 1, NULL, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_menu` VALUES (1440911410581213331, 1440911410581213328, '新增', 3, NULL, NULL, NULL, NULL, 2, NULL, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_menu` VALUES (1440911410581213332, 1440911410581213328, '编辑', 3, NULL, NULL, NULL, NULL, 3, NULL, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_menu` VALUES (1440911410581213333, 1440911410581213328, '删除', 3, NULL, NULL, NULL, NULL, 4, NULL, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_menu` VALUES (1440911410581213334, 1440911410581213329, '显示', 3, NULL, NULL, NULL, NULL, 1, NULL, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_menu` VALUES (1440911410581213335, 1440911410581213329, '授权用户', 3, NULL, NULL, NULL, NULL, 2, NULL, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_menu` VALUES (1440911410581213336, 1440911410581213329, '移除用户', 3, NULL, NULL, NULL, NULL, 3, NULL, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_menu` VALUES (1440911410581213346, 1401532055971434500, '显示', 3, NULL, NULL, NULL, NULL, 1, NULL, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_menu` VALUES (1440911410581213347, 1401532055971434500, '新增', 3, NULL, NULL, NULL, NULL, 2, NULL, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_menu` VALUES (1440911410581213348, 1401532055971434500, '编辑', 3, NULL, NULL, NULL, NULL, 3, NULL, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_menu` VALUES (1440911410581213349, 1401532055971434500, '删除', 3, NULL, NULL, NULL, NULL, 4, NULL, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_menu` VALUES (1440911410581213350, 1401532055971434500, '权限详情', 3, NULL, NULL, NULL, NULL, 5, NULL, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_menu` VALUES (1440911410581213358, 1401532055971434501, '显示', 3, NULL, NULL, NULL, NULL, 1, NULL, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_menu` VALUES (1440911410581213359, 1401532055971434501, '新增', 3, NULL, NULL, NULL, NULL, 2, NULL, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_menu` VALUES (1440911410581213360, 1401532055971434501, '编辑', 3, NULL, NULL, NULL, NULL, 3, NULL, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_menu` VALUES (1440911410581213361, 1401532055971434501, '删除', 3, NULL, NULL, NULL, NULL, 4, NULL, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_menu` VALUES (1440911410581213362, 1401532055971434501, '权限详情', 3, NULL, NULL, NULL, NULL, 5, NULL, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_menu` VALUES (1440911410581213370, 1401532055971434502, '显示', 3, NULL, NULL, NULL, NULL, 1, NULL, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_menu` VALUES (1440911410581213371, 1401532055971434502, '新增模块', 3, NULL, NULL, NULL, NULL, 2, NULL, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_menu` VALUES (1440911410581213372, 1401532055971434502, '编辑模块', 3, NULL, NULL, NULL, NULL, 3, NULL, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_menu` VALUES (1440911410581213373, 1401532055971434502, '删除模块', 3, NULL, NULL, NULL, NULL, 4, NULL, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_menu` VALUES (1440911410581213374, 1401532055971434502, '新增权限', 3, NULL, NULL, NULL, NULL, 5, NULL, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_menu` VALUES (1440911410581213375, 1401532055971434502, '编辑权限', 3, NULL, NULL, NULL, NULL, 6, NULL, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_menu` VALUES (1440911410581213376, 1401532055971434502, '删除权限', 3, NULL, NULL, NULL, NULL, 7, NULL, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_menu` VALUES (1440911410581213377, 1401532055971434502, '权限详情', 3, NULL, NULL, NULL, NULL, 8, NULL, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_menu` VALUES (1440911410581213388, 1401532055971434503, '显示', 3, NULL, NULL, NULL, NULL, 1, NULL, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_menu` VALUES (1440911410581213389, 1401532055971434503, '新增', 3, NULL, NULL, NULL, NULL, 2, NULL, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_menu` VALUES (1440911410581213390, 1401532055971434503, '编辑', 3, NULL, NULL, NULL, NULL, 3, NULL, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_menu` VALUES (1440911410581213391, 1401532055971434503, '删除', 3, NULL, NULL, NULL, NULL, 4, NULL, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_menu` VALUES (1440911410581213392, 1401532055971434503, '同步缓存', 3, NULL, NULL, NULL, NULL, 5, NULL, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_menu` VALUES (1440911410581213400, 1401532055971434504, '显示', 3, NULL, NULL, NULL, NULL, 1, NULL, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_menu` VALUES (1440911410581213401, 1401532055971434504, '强制下线', 3, NULL, NULL, NULL, NULL, 2, NULL, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_menu` VALUES (1440911410581213406, 1433040549035642880, '岗位管理', 2, NULL, NULL, NULL, NULL, 1, NULL, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_menu` VALUES (1440911410581213407, 1440911410581213406, '显示', 3, NULL, NULL, NULL, NULL, 1, NULL, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_menu` VALUES (1440911410581213408, 1440911410581213406, '新增', 3, NULL, NULL, NULL, NULL, 2, NULL, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_menu` VALUES (1440911410581213409, 1440911410581213406, '编辑', 3, NULL, NULL, NULL, NULL, 3, NULL, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_menu` VALUES (1440911410581213410, 1440911410581213406, '删除', 3, NULL, NULL, NULL, NULL, 4, NULL, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_menu` VALUES (1440973980537196544, NULL, '业务管理', 0, NULL, NULL, NULL, NULL, 5, 'el-icon-goods', 1440911410581213417, '2021-09-23 17:39:04', 1440911410581213417, '2021-09-23 17:42:45', 1); -INSERT INTO `zz_sys_menu` VALUES (1440974056105971712, 1440973980537196544, '甲方管理', 1, NULL, 1440959226632474624, NULL, NULL, 1, NULL, 1440911410581213417, '2021-09-23 17:39:22', 1440911410581213417, '2021-09-23 17:39:22', 1); -INSERT INTO `zz_sys_menu` VALUES (1440974056110166016, 1440974056105971712, '查看', 3, NULL, 1440959226632474624, 0, NULL, 0, NULL, 1440911410581213417, '2021-09-23 17:39:22', 1440911410581213417, '2021-09-23 17:39:22', 1); -INSERT INTO `zz_sys_menu` VALUES (1440974056114360320, 1440974056105971712, '编辑', 3, NULL, 1440959226632474624, 1, NULL, 1, NULL, 1440911410581213417, '2021-09-23 17:39:22', 1440911410581213417, '2021-09-23 17:39:22', 1); -INSERT INTO `zz_sys_menu` VALUES (1440974134195523584, 1440973980537196544, '乙方管理', 1, NULL, 1440961456601305088, NULL, NULL, 2, NULL, 1440911410581213417, '2021-09-23 17:39:40', 1440911410581213417, '2021-09-23 17:39:40', 1); -INSERT INTO `zz_sys_menu` VALUES (1440974134199717888, 1440974134195523584, '查看', 3, NULL, 1440961456601305088, 0, NULL, 0, NULL, 1440911410581213417, '2021-09-23 17:39:40', 1440911410581213417, '2021-09-23 17:39:40', 1); -INSERT INTO `zz_sys_menu` VALUES (1440974134203912192, 1440974134195523584, '编辑', 3, NULL, 1440961456601305088, 1, NULL, 1, NULL, 1440911410581213417, '2021-09-23 17:39:40', 1440911410581213417, '2021-09-23 17:39:40', 1); -INSERT INTO `zz_sys_menu` VALUES (1440974233613111296, 1440973980537196544, '产品管理', 1, NULL, 1440962496864194560, NULL, NULL, 3, NULL, 1440911410581213417, '2021-09-23 17:40:04', 1440911410581213417, '2021-09-23 17:40:04', 1); -INSERT INTO `zz_sys_menu` VALUES (1440974233617305600, 1440974233613111296, '查看', 3, NULL, 1440962496864194560, 0, NULL, 0, NULL, 1440911410581213417, '2021-09-23 17:40:04', 1440911410581213417, '2021-09-23 17:40:04', 1); -INSERT INTO `zz_sys_menu` VALUES (1440974233621499904, 1440974233613111296, '编辑', 3, NULL, 1440962496864194560, 1, NULL, 1, NULL, 1440911410581213417, '2021-09-23 17:40:04', 1440911410581213417, '2021-09-23 17:40:04', 1); -INSERT INTO `zz_sys_menu` VALUES (1440974310754750464, NULL, '工单管理', 0, NULL, NULL, NULL, NULL, 6, 'el-icon-menu', 1440911410581213417, '2021-09-23 17:40:22', 1440911410581213417, '2021-09-23 17:43:00', 1); -INSERT INTO `zz_sys_menu` VALUES (1440974580402360320, 1440974310754750464, '请假申请', 1, NULL, 1440945468593934336, NULL, 1450709265869180928, 1, NULL, 1440911410581213417, '2021-09-23 17:41:27', 1440911410581213417, '2021-11-25 16:16:46', 1); -INSERT INTO `zz_sys_menu` VALUES (1440978065088843776, 1440974310754750464, '合同工单管理', 1, NULL, 1440955483438452736, NULL, 1450713749735346176, 2, NULL, 1440911410581213417, '2021-09-23 17:55:17', 1440911410581213417, '2021-11-25 16:16:51', 1); -COMMIT; - --- ---------------------------- --- Table structure for zz_sys_menu_perm_code --- ---------------------------- -DROP TABLE IF EXISTS `zz_sys_menu_perm_code`; -CREATE TABLE `zz_sys_menu_perm_code` ( - `menu_id` bigint NOT NULL COMMENT '关联菜单Id', - `perm_code_id` bigint NOT NULL COMMENT '关联权限字Id', - PRIMARY KEY (`menu_id`,`perm_code_id`) USING BTREE, - KEY `idx_perm_code_id` (`perm_code_id`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='菜单和权限关系表'; - --- ---------------------------- --- Records of zz_sys_menu_perm_code --- ---------------------------- -BEGIN; -INSERT INTO `zz_sys_menu_perm_code` VALUES (1392786549942259712, 1400638885750378496); -INSERT INTO `zz_sys_menu_perm_code` VALUES (1392786950682841088, 1400639252747784192); -INSERT INTO `zz_sys_menu_perm_code` VALUES (1418057835631087616, 1418046848794365952); -INSERT INTO `zz_sys_menu_perm_code` VALUES (1418058049951633408, 1418046986677915648); -INSERT INTO `zz_sys_menu_perm_code` VALUES (1418058115667988480, 1418047095188754432); -INSERT INTO `zz_sys_menu_perm_code` VALUES (1418058170542067712, 1418047182946177024); -INSERT INTO `zz_sys_menu_perm_code` VALUES (1418058289182150656, 1418048205177753600); -INSERT INTO `zz_sys_menu_perm_code` VALUES (1418058602723151872, 1418048335343783936); -INSERT INTO `zz_sys_menu_perm_code` VALUES (1418058744037642240, 1418049164754817024); -INSERT INTO `zz_sys_menu_perm_code` VALUES (1418058844164067328, 1418049287106859008); -INSERT INTO `zz_sys_menu_perm_code` VALUES (1418058907674218496, 1418049398776008704); -INSERT INTO `zz_sys_menu_perm_code` VALUES (1418059167532322816, 1418050322282057728); -INSERT INTO `zz_sys_menu_perm_code` VALUES (1418058515099947008, 1418050797706416128); -INSERT INTO `zz_sys_menu_perm_code` VALUES (1418059283920064512, 1418057346877231104); -INSERT INTO `zz_sys_menu_perm_code` VALUES (1423161217970606080, 1423636498195943424); -INSERT INTO `zz_sys_menu_perm_code` VALUES (1423161217970606080, 1423637544578322432); -INSERT INTO `zz_sys_menu_perm_code` VALUES (1440911410581213280, 1440911410581213287); -INSERT INTO `zz_sys_menu_perm_code` VALUES (1440911410581213281, 1440911410581213288); -INSERT INTO `zz_sys_menu_perm_code` VALUES (1440911410581213282, 1440911410581213289); -INSERT INTO `zz_sys_menu_perm_code` VALUES (1440911410581213283, 1440911410581213290); -INSERT INTO `zz_sys_menu_perm_code` VALUES (1440911410581213284, 1440911410581213291); -INSERT INTO `zz_sys_menu_perm_code` VALUES (1440911410581213285, 1440911410581213292); -INSERT INTO `zz_sys_menu_perm_code` VALUES (1440911410581213294, 1440911410581213301); -INSERT INTO `zz_sys_menu_perm_code` VALUES (1440911410581213295, 1440911410581213302); -INSERT INTO `zz_sys_menu_perm_code` VALUES (1440911410581213296, 1440911410581213303); -INSERT INTO `zz_sys_menu_perm_code` VALUES (1440911410581213297, 1440911410581213304); -INSERT INTO `zz_sys_menu_perm_code` VALUES (1440911410581213298, 1440911410581213305); -INSERT INTO `zz_sys_menu_perm_code` VALUES (1440911410581213299, 1440911410581213306); -INSERT INTO `zz_sys_menu_perm_code` VALUES (1440911410581213310, 1440911410581213319); -INSERT INTO `zz_sys_menu_perm_code` VALUES (1440911410581213315, 1440911410581213320); -INSERT INTO `zz_sys_menu_perm_code` VALUES (1440911410581213311, 1440911410581213321); -INSERT INTO `zz_sys_menu_perm_code` VALUES (1440911410581213312, 1440911410581213322); -INSERT INTO `zz_sys_menu_perm_code` VALUES (1440911410581213313, 1440911410581213323); -INSERT INTO `zz_sys_menu_perm_code` VALUES (1440911410581213314, 1440911410581213324); -INSERT INTO `zz_sys_menu_perm_code` VALUES (1440911410581213316, 1440911410581213325); -INSERT INTO `zz_sys_menu_perm_code` VALUES (1440911410581213317, 1440911410581213326); -INSERT INTO `zz_sys_menu_perm_code` VALUES (1440911410581213330, 1440911410581213338); -INSERT INTO `zz_sys_menu_perm_code` VALUES (1440911410581213334, 1440911410581213339); -INSERT INTO `zz_sys_menu_perm_code` VALUES (1440911410581213331, 1440911410581213340); -INSERT INTO `zz_sys_menu_perm_code` VALUES (1440911410581213332, 1440911410581213341); -INSERT INTO `zz_sys_menu_perm_code` VALUES (1440911410581213333, 1440911410581213342); -INSERT INTO `zz_sys_menu_perm_code` VALUES (1440911410581213335, 1440911410581213343); -INSERT INTO `zz_sys_menu_perm_code` VALUES (1440911410581213336, 1440911410581213344); -INSERT INTO `zz_sys_menu_perm_code` VALUES (1440911410581213346, 1440911410581213352); -INSERT INTO `zz_sys_menu_perm_code` VALUES (1440911410581213347, 1440911410581213353); -INSERT INTO `zz_sys_menu_perm_code` VALUES (1440911410581213348, 1440911410581213354); -INSERT INTO `zz_sys_menu_perm_code` VALUES (1440911410581213349, 1440911410581213355); -INSERT INTO `zz_sys_menu_perm_code` VALUES (1440911410581213350, 1440911410581213356); -INSERT INTO `zz_sys_menu_perm_code` VALUES (1440911410581213358, 1440911410581213364); -INSERT INTO `zz_sys_menu_perm_code` VALUES (1440911410581213359, 1440911410581213365); -INSERT INTO `zz_sys_menu_perm_code` VALUES (1440911410581213360, 1440911410581213366); -INSERT INTO `zz_sys_menu_perm_code` VALUES (1440911410581213361, 1440911410581213367); -INSERT INTO `zz_sys_menu_perm_code` VALUES (1440911410581213362, 1440911410581213368); -INSERT INTO `zz_sys_menu_perm_code` VALUES (1440911410581213370, 1440911410581213379); -INSERT INTO `zz_sys_menu_perm_code` VALUES (1440911410581213371, 1440911410581213380); -INSERT INTO `zz_sys_menu_perm_code` VALUES (1440911410581213372, 1440911410581213381); -INSERT INTO `zz_sys_menu_perm_code` VALUES (1440911410581213373, 1440911410581213382); -INSERT INTO `zz_sys_menu_perm_code` VALUES (1440911410581213374, 1440911410581213383); -INSERT INTO `zz_sys_menu_perm_code` VALUES (1440911410581213375, 1440911410581213384); -INSERT INTO `zz_sys_menu_perm_code` VALUES (1440911410581213376, 1440911410581213385); -INSERT INTO `zz_sys_menu_perm_code` VALUES (1440911410581213377, 1440911410581213386); -INSERT INTO `zz_sys_menu_perm_code` VALUES (1401532055971434503, 1440911410581213394); -INSERT INTO `zz_sys_menu_perm_code` VALUES (1440911410581213388, 1440911410581213394); -INSERT INTO `zz_sys_menu_perm_code` VALUES (1401532055971434503, 1440911410581213395); -INSERT INTO `zz_sys_menu_perm_code` VALUES (1440911410581213389, 1440911410581213395); -INSERT INTO `zz_sys_menu_perm_code` VALUES (1401532055971434503, 1440911410581213396); -INSERT INTO `zz_sys_menu_perm_code` VALUES (1440911410581213390, 1440911410581213396); -INSERT INTO `zz_sys_menu_perm_code` VALUES (1401532055971434503, 1440911410581213397); -INSERT INTO `zz_sys_menu_perm_code` VALUES (1440911410581213391, 1440911410581213397); -INSERT INTO `zz_sys_menu_perm_code` VALUES (1401532055971434503, 1440911410581213398); -INSERT INTO `zz_sys_menu_perm_code` VALUES (1440911410581213392, 1440911410581213398); -INSERT INTO `zz_sys_menu_perm_code` VALUES (1440911410581213400, 1440911410581213403); -INSERT INTO `zz_sys_menu_perm_code` VALUES (1440911410581213401, 1440911410581213404); -INSERT INTO `zz_sys_menu_perm_code` VALUES (1440911410581213407, 1440911410581213412); -INSERT INTO `zz_sys_menu_perm_code` VALUES (1440911410581213408, 1440911410581213413); -INSERT INTO `zz_sys_menu_perm_code` VALUES (1440911410581213409, 1440911410581213414); -INSERT INTO `zz_sys_menu_perm_code` VALUES (1440911410581213410, 1440911410581213415); -INSERT INTO `zz_sys_menu_perm_code` VALUES (1440974580402360320, 1440976898661289984); -INSERT INTO `zz_sys_menu_perm_code` VALUES (1440978065088843776, 1440976998183735296); -INSERT INTO `zz_sys_menu_perm_code` VALUES (1440974580402360320, 1440977405874278400); -INSERT INTO `zz_sys_menu_perm_code` VALUES (1440978065088843776, 1440977767599443968); -COMMIT; - --- ---------------------------- --- Table structure for zz_sys_operation_log --- ---------------------------- -DROP TABLE IF EXISTS `zz_sys_operation_log`; -CREATE TABLE `zz_sys_operation_log` ( - `log_id` bigint NOT NULL COMMENT '主键Id', - `description` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '日志描述', - `operation_type` int DEFAULT NULL COMMENT '操作类型', - `service_name` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '接口所在服务名称', - `api_class` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '调用的controller全类名', - `api_method` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '调用的controller中的方法', - `session_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '用户会话sessionId', - `trace_id` char(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '每次请求的Id', - `elapse` int DEFAULT NULL COMMENT '调用时长', - `request_method` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT 'HTTP 请求方法,如GET', - `request_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT 'HTTP 请求地址', - `request_arguments` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT 'controller接口参数', - `response_result` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT 'controller应答结果', - `request_ip` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '请求IP', - `success` bit(1) DEFAULT NULL COMMENT '应答状态', - `error_msg` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '错误信息', - `tenant_id` bigint DEFAULT NULL COMMENT '租户Id', - `operator_id` bigint DEFAULT NULL COMMENT '操作员Id', - `operator_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '操作员名称', - `operation_time` datetime DEFAULT NULL COMMENT '操作时间', - PRIMARY KEY (`log_id`), - KEY `idx_trace_id_idx` (`trace_id`), - KEY `idx_operation_type_idx` (`operation_type`), - KEY `idx_operation_time_idx` (`operation_time`) USING BTREE, - KEY `idx_success` (`success`) USING BTREE, - KEY `idx_elapse` (`elapse`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='系统操作日志表'; - --- ---------------------------- --- Records of zz_sys_operation_log --- ---------------------------- -BEGIN; -INSERT INTO `zz_sys_operation_log` VALUES (1458247157554352128, '', 0, 'application-webadmin', 'com.flow.demo.webadmin.upms.controller.LoginController', 'com.flow.demo.webadmin.upms.controller.LoginController.doLogin', 'admin_4_7cf3280458ea4d949ee47ac18a8546e0', '196037ef4bbd4714a49d0d7db19ea444', 454, 'POST', '/admin/upms/login/doLogin', '{\"password\":\"RkbhZenA3W3t299S1i8QYyibTl5SioWZACVbHyWTzURAf6GnpVmXTkzzhQxwzZYJ69X%2FMkRt%2Fo%2B%2BE2msWsRxTr%2FTl7u5dGGKUPJblJtvA1DMOdnSE7Ga4WdJ97TRCU6TQFgQhvkIa%2Bc2CSvBm6ZazFBHqmxenLZyvy3ogA75r5c%3D\",\"loginName\":\"admin\"}', NULL, '10.24.85.30', b'1', NULL, NULL, 1401532052469190656, 'admin', '2021-11-10 09:36:30'); -INSERT INTO `zz_sys_operation_log` VALUES (1463782175693344768, '', 0, 'application-webadmin', 'com.flow.demo.webadmin.upms.controller.LoginController', 'com.flow.demo.webadmin.upms.controller.LoginController.doLogin', 'admin_4_3670874fa8cf4470bd5a2e4e42d9d8c4', '7ebd6c3aa2a649d09f991f381555edc3', 417, 'POST', '/admin/upms/login/doLogin', '{\"password\":\"U3DDkKFX%2F%2FwPKF4D%2FObb%2BAgGDJDEbySyrPdsMMkuP7jIFQ7D%2FIcBylsMl4henBk%2FUhNWYrgL7Z%2BzirRsCV6yj9AOFNkNIP0YxBEQQ0qU7vQul2Wc7ynx9VcmdmHrVQQ3Vvc8YXjwcInZ7WGJou86uRzsUkQ7xOfWzKJuXkJiYtk%3D\",\"loginName\":\"admin\"}', NULL, '10.24.85.30', b'1', NULL, NULL, 1401532052469190656, 'admin', '2021-11-25 16:10:41'); -INSERT INTO `zz_sys_operation_log` VALUES (1463783350345928704, '', 0, 'application-webadmin', 'com.flow.demo.webadmin.upms.controller.LoginController', 'com.flow.demo.webadmin.upms.controller.LoginController.doLogin', 'admin_4_4febe9ebdff84d4eb365bc649c6c9994', 'ba316285fa1444f8a9c3136d2813daa3', 128, 'POST', '/admin/upms/login/doLogin', '{\"password\":\"Ans1XyFSlDmEC1r3E7LyTVF4IawtvFEeIIH2d%2BStPzpJpPQqnZPBUvyyyEVmx1oyKznWWRUV5ZzOZC%2F2Oi%2F5xrBojygmfEHqFaRieDtWStNk0cKaieCh9cnEjdA28099q2I2h4ZlnrMCHPs%2BpYjaz%2Fhgr6mEFj6Gn2Z%2BZkrbAPY%3D\",\"loginName\":\"admin\"}', NULL, '10.24.85.30', b'1', NULL, NULL, 1440911410581213417, 'admin', '2021-11-25 16:15:21'); -INSERT INTO `zz_sys_operation_log` VALUES (1463783705167269888, '', 15, 'application-webadmin', 'com.flow.demo.webadmin.upms.controller.SysMenuController', 'com.flow.demo.webadmin.upms.controller.SysMenuController.update', 'admin_4_4febe9ebdff84d4eb365bc649c6c9994', 'b14a340128474eef8d2c60a61d53258a', 110, 'POST', '/admin/upms/sysMenu/update', '{\"permCodeIdListString\":\"1440976898661289984,1440977405874278400\",\"sysMenuDto\":{\"menuId\":1440974580402360320,\"menuName\":\"请假申请\",\"menuType\":1,\"onlineFlowEntryId\":1450709265869180928,\"onlineFormId\":1440945468593934336,\"parentId\":1440974310754750464,\"showOrder\":1}}', '{\"errorCode\":\"NO-ERROR\",\"errorMessage\":\"NO-MESSAGE\",\"success\":true}', '10.24.85.30', b'1', NULL, NULL, 1440911410581213417, 'admin', '2021-11-25 16:16:46'); -INSERT INTO `zz_sys_operation_log` VALUES (1463783727917174784, '', 15, 'application-webadmin', 'com.flow.demo.webadmin.upms.controller.SysMenuController', 'com.flow.demo.webadmin.upms.controller.SysMenuController.update', 'admin_4_4febe9ebdff84d4eb365bc649c6c9994', '8451bed720e349fba91bffcc2c33a8aa', 12, 'POST', '/admin/upms/sysMenu/update', '{\"permCodeIdListString\":\"1440976998183735296,1440977767599443968\",\"sysMenuDto\":{\"menuId\":1440978065088843776,\"menuName\":\"合同工单管理\",\"menuType\":1,\"onlineFlowEntryId\":1450713749735346176,\"onlineFormId\":1440955483438452736,\"parentId\":1440974310754750464,\"showOrder\":2}}', '{\"errorCode\":\"NO-ERROR\",\"errorMessage\":\"NO-MESSAGE\",\"success\":true}', '10.24.85.30', b'1', NULL, NULL, 1440911410581213417, 'admin', '2021-11-25 16:16:51'); -INSERT INTO `zz_sys_operation_log` VALUES (1463783926764933120, '', 5, 'application-webadmin', 'com.flow.demo.webadmin.upms.controller.LoginController', 'com.flow.demo.webadmin.upms.controller.LoginController.doLogout', 'admin_4_4febe9ebdff84d4eb365bc649c6c9994', '63d745e86e144120b8536ac5f6fdb6a6', 8, 'POST', '/admin/upms/login/doLogout', '{}', '{\"errorCode\":\"NO-ERROR\",\"errorMessage\":\"NO-MESSAGE\",\"success\":true}', '10.24.85.30', b'1', NULL, NULL, 1440911410581213417, 'admin', '2021-11-25 16:17:39'); -INSERT INTO `zz_sys_operation_log` VALUES (1463783932330774528, '', 0, 'application-webadmin', 'com.flow.demo.webadmin.upms.controller.LoginController', 'com.flow.demo.webadmin.upms.controller.LoginController.doLogin', 'admin_4_f89ef1ae80354a7ab8715f3b52908836', '922ad3d5681d494aaf20545a12ea7d0f', 119, 'POST', '/admin/upms/login/doLogin', '{\"password\":\"GHT4aJvoa5Y8muOarh824O23TRNX%2FXJqXkrwluYFbHjiVFSnkA5GWsQM3exU8HojWgyBY%2BsKkzc%2Fi65%2B6e2lWm1Xr38g5xvoqaSEEUHuLQi5h4%2FHToVAb53MbO%2BetqQD8n2j0YrVzdLe3GVM7rb7Yog6cnHamB3ndqq%2BdIqNcx4%3D\",\"loginName\":\"admin\"}', NULL, '10.24.85.30', b'1', NULL, NULL, 1440911410581213417, 'admin', '2021-11-25 16:17:40'); -COMMIT; - --- ---------------------------- --- Table structure for zz_sys_perm --- ---------------------------- -DROP TABLE IF EXISTS `zz_sys_perm`; -CREATE TABLE `zz_sys_perm` ( - `perm_id` bigint NOT NULL COMMENT '权限id', - `module_id` bigint NOT NULL DEFAULT '0' COMMENT '权限所在的权限模块id', - `perm_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '' COMMENT '权限名称', - `url` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '' COMMENT '关联的url', - `show_order` int NOT NULL DEFAULT '0' COMMENT '权限在当前模块下的顺序,由小到大', - `create_user_id` bigint NOT NULL COMMENT '创建者Id', - `create_time` datetime NOT NULL COMMENT '创建时间', - `update_user_id` bigint NOT NULL COMMENT '更新者Id', - `update_time` datetime NOT NULL COMMENT '最后更新时间', - `deleted_flag` int NOT NULL COMMENT '逻辑删除标记(1: 正常 -1: 已删除)', - PRIMARY KEY (`perm_id`) USING BTREE, - KEY `idx_show_order` (`show_order`) USING BTREE, - KEY `idx_module_id` (`module_id`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin ROW_FORMAT=COMPACT COMMENT='系统权限表'; - --- ---------------------------- --- Records of zz_sys_perm --- ---------------------------- -BEGIN; -INSERT INTO `zz_sys_perm` VALUES (1400626748101496832, 1400625224646397952, '显示列表', '/admin/online/onlineDblink/list', 1, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1400626963806162944, 1400625224646397952, '数据表列表', '/admin/online/onlineDblink/listDblinkTables', 2, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1400627109692444672, 1400625224646397952, '数据表字段列表', '/admin/online/onlineDblink/listDblinkTableColumns', 3, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1400632108514283520, 1400625585851469824, '显示列表', '/admin/online/onlineDict/list', 1, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1400632216169484288, 1400625585851469824, '详情', '/admin/online/onlineDict/view', 2, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1400632326538399744, 1400625585851469824, '新增', '/admin/online/onlineDict/add', 3, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1400632438635368448, 1400625585851469824, '编辑', '/admin/online/onlineDict/update', 4, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1400632511620452352, 1400625585851469824, '删除', '/admin/online/onlineDict/delete', 5, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1400632924021198848, 1400625800033603584, '显示列表', '/admin/online/onlineTable/list', 1, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1400632978937221120, 1400625800033603584, '详情', '/admin/online/onlineTable/view', 2, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1400633026181861376, 1400625800033603584, '新增', '/admin/online/onlineTable/add', 3, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1400633077717274624, 1400625800033603584, '编辑', '/admin/online/onlineTable/update', 4, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1400633129688895488, 1400625800033603584, '删除', '/admin/online/onlineTable/delete', 5, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1400633375525441536, 1400625906245963776, '显示列表', '/admin/online/onlineColumn/list', 1, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1400633437093629952, 1400625906245963776, '详情', '/admin/online/onlineColumn/view', 2, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1400633529678696448, 1400625906245963776, '新增', '/admin/online/onlineColumn/add', 3, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1400633568027217920, 1400625906245963776, '编辑', '/admin/online/onlineColumn/update', 4, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1400633612201627648, 1400625906245963776, '删除', '/admin/online/onlineColumn/delete', 5, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1400633713376628736, 1400625906245963776, '刷新字段', '/admin/online/onlineColumn/refresh', 6, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1400633798403559424, 1400625906245963776, '字段验证规则列表', '/admin/online/onlineColumn/listOnlineColumnRule', 7, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1400633922085195776, 1400625906245963776, '未使用字段验证规则列表', '/admin/online/onlineColumn/listNotInOnlineColumnRule', 8, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1400634012745076736, 1400625906245963776, '添加字段验证规则', '/admin/online/onlineColumn/addOnlineColumnRule', 9, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1400634100498305024, 1400625906245963776, '删除字段验证规则', '/admin/online/onlineColumn/deleteOnlineColumnRule', 10, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1400634280308117504, 1400625906245963776, '编辑字段验证规则', '/admin/online/onlineColumn/updateOnlineColumnRule', 11, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1400634354593435648, 1400625906245963776, '字段验证规则详情', '/admin/online/onlineColumn/viewOnlineColumnRule', 12, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1400634559896227840, 1400626018774945792, '显示列表', '/admin/online/onlineRule/list', 1, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1400634613151305728, 1400626018774945792, '详情', '/admin/online/onlineRule/view', 2, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1400634651944423424, 1400626018774945792, '新增', '/admin/online/onlineRule/add', 3, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1400634693472227328, 1400626018774945792, '编辑', '/admin/online/onlineRule/update', 4, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1400634735549485056, 1400626018774945792, '删除', '/admin/online/onlineRule/delete', 5, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1400635131969933312, 1400625338886656000, '显示列表', '/admin/online/onlinePage/list', 1, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1400635267726970880, 1400625338886656000, '页面以及表单列表', '/admin/online/onlinePage/listAllPageAndForm', 2, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1400635341274091520, 1400625338886656000, '详情', '/admin/online/onlinePage/view', 3, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1400635378506928128, 1400625338886656000, '新增', '/admin/online/onlinePage/add', 4, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1400635426808532992, 1400625338886656000, '编辑', '/admin/online/onlinePage/update', 5, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1400635527698321408, 1400625338886656000, '更新启用状态', '/admin/online/onlinePage/updatePublished', 6, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1400635581532213248, 1400625338886656000, '删除', '/admin/online/onlinePage/delete', 7, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1400635661106548736, 1400625338886656000, '页面数据源列表', '/admin/online/onlinePage/listOnlinePageDatasource', 8, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1400635757332271104, 1400625338886656000, '未使用页面数据源列表', '/admin/online/onlinePage/listNotInOnlinePageDatasource', 9, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1400635827347787776, 1400625338886656000, '添加页面数据源', '/admin/online/onlinePage/addOnlinePageDatasource', 10, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1400635896461529088, 1400625338886656000, '删除页面数据源', '/admin/online/onlinePage/deleteOnlinePageDatasource', 11, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1400635963469729792, 1400625338886656000, '编辑页面数据源', '/admin/online/onlinePage/updateOnlinePageDatasource', 12, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1400636031752998912, 1400625338886656000, '页面数据源详情', '/admin/online/onlinePage/viewOnlinePageDatasource', 13, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1400636182936686592, 1400626192725315584, '显示列表', '/admin/online/onlineDatasource/list', 1, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1400636217728438272, 1400626192725315584, '详情', '/admin/online/onlineDatasource/view', 2, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1400636258107002880, 1400626192725315584, '新增', '/admin/online/onlineDatasource/add', 3, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1400636301480300544, 1400626192725315584, '编辑', '/admin/online/onlineDatasource/update', 4, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1400636338838966272, 1400626192725315584, '删除', '/admin/online/onlineDatasource/delete', 5, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1400636501900922880, 1400626237478539264, '显示列表', '/admin/online/onlineDatasourceRelation/list', 1, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1400636535371468800, 1400626237478539264, '详情', '/admin/online/onlineDatasourceRelation/view', 2, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1400636571165659136, 1400626237478539264, '新增', '/admin/online/onlineDatasourceRelation/add', 3, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1400636610403373056, 1400626237478539264, '编辑', '/admin/online/onlineDatasourceRelation/update', 4, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1400636656679129088, 1400626237478539264, '删除', '/admin/online/onlineDatasourceRelation/delete', 5, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1400637740705386496, 1400626463740268544, '显示列表', '/admin/online/onlineForm/list', 1, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1400637775962705920, 1400626463740268544, '详情', '/admin/online/onlineForm/view', 2, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1400637822737584128, 1400626463740268544, '新增', '/admin/online/onlineForm/add', 3, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1400637858414333952, 1400626463740268544, '编辑', '/admin/online/onlineForm/update', 4, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1400637895328403456, 1400626463740268544, '删除', '/admin/online/onlineForm/delete', 5, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1400637970863624192, 1400626463740268544, '渲染信息', '/admin/online/onlineForm/render', 6, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1413405061278601216, 1413404952566435840, '显示列表', '/admin/online/onlineVirtualColumn/list', 1, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1413405166471745536, 1413404952566435840, '详情', '/admin/online/onlineVirtualColumn/view', 2, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1413405224021790720, 1413404952566435840, '新增', '/admin/online/onlineVirtualColumn/add', 3, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1413405313788284928, 1413404952566435840, '编辑', '/admin/online/onlineVirtualColumn/update', 4, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1413405352866615296, 1413404952566435840, '删除', '/admin/online/onlineVirtualColumn/delete', 5, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1418030338508066816, 1418029566533832704, '显示列表', '/admin/flow/flowCategory/list', 1, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1418030386436378624, 1418029566533832704, '新增', '/admin/flow/flowCategory/add', 2, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1418030437971791872, 1418029566533832704, '编辑', '/admin/flow/flowCategory/update', 3, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1418030477918343168, 1418029566533832704, '删除', '/admin/flow/flowCategory/delete', 4, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1418030533757112320, 1418029566533832704, '详情', '/admin/flow/flowCategory/view', 5, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1418031006660694016, 1418029615040958464, '显示列表', '/admin/flow/flowEntry/list', 1, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1418031078391681024, 1418029615040958464, '新增', '/admin/flow/flowEntry/add', 2, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1418031120481521664, 1418029615040958464, '编辑', '/admin/flow/flowEntry/update', 3, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1418031174604820480, 1418029615040958464, '删除', '/admin/flow/flowEntry/delete', 4, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1418031219706171392, 1418029615040958464, '详情', '/admin/flow/flowEntry/view', 5, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1418031304779239424, 1418029615040958464, '发布', '/admin/flow/flowEntry/publish', 6, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1418031515207471104, 1418029615040958464, '流程版本列表', '/admin/flow/flowEntry/listFlowEntryPublish', 7, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1418031648351457280, 1418029615040958464, '设置主版本', '/admin/flow/flowEntry/updateMainVersion', 8, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1418031712788549632, 1418029615040958464, '挂起', '/admin/flow/flowEntry/suspendFlowEntryPublish', 9, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1418031801271586816, 1418029615040958464, '激活', '/admin/flow/flowEntry/activateFlowEntryPublish', 10, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1418032222232907776, 1418031999276290048, '显示列表', '/admin/flow/flowEntryVariable/list', 1, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1418032258429751296, 1418031999276290048, '新增', '/admin/flow/flowEntryVariable/add', 2, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1418032300414734336, 1418031999276290048, '编辑', '/admin/flow/flowEntryVariable/update', 3, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1418032344064856064, 1418031999276290048, '删除', '/admin/flow/flowEntryVariable/delete', 4, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1418032382409183232, 1418031999276290048, '详情', '/admin/flow/flowEntryVariable/view', 5, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1418033804987076608, 1418030256765276160, '流程实例列表', '/admin/flow/flowOperation/listAllHistoricProcessInstance', 1, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1418033889183535104, 1418030256765276160, '我的历史流程', '/admin/flow/flowOperation/listHistoricProcessInstance', 2, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1418034243434450944, 1418030256765276160, '历史流程数据', '/admin/flow/flowOnlineOperation/viewHistoricProcessInstance', 3, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1418035997727264768, 1418030256765276160, '历史流程信息', '/admin/flow/flowOperation/viewInitialHistoricTaskInfo', 4, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1418040510253109248, 1418030256765276160, '终止流程', '/admin/flow/flowOperation/stopProcessInstance', 5, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1418040574245605376, 1418030256765276160, '删除流程', '/admin/flow/flowOperation/deleteProcessInstance', 6, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1418051334564745216, 1418051228918616064, '仅启动流程', '/admin/flow/flowOperation/startOnly', 1, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1418051485324808192, 1418051228918616064, '获取启动信息', '/admin/flow/flowOperation/viewInitialTaskInfo', 2, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1418051693639110656, 1418051634793025536, '流程审批', '/admin/flow/flowOperation/viewRuntimeTaskInfo', 1, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1418054128097038336, 1418051634793025536, '在办流程数据', '/admin/flow/flowOnlineOperation/viewUserTask', 2, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1418054519798894592, 1418054414190514176, '获取流程图', '/admin/flow/flowOperation/viewProcessBpmn', 1, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1418054618176294912, 1418054414190514176, '审批历史记录列表', '/admin/flow/flowOperation/listFlowTaskComment', 2, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1418054792965525504, 1418054414190514176, '流程审批状态', '/admin/flow/flowOperation/viewHighlightFlowData', 3, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1418055060981551104, 1418051634793025536, '提交审批数据', '/admin/flow/flowOnlineOperation/submitUserTask', 3, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1418056212146032640, 1418051634793025536, '待办任务列表', '/admin/flow/flowOperation/listRuntimeTask', 4, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1418056212146032641, 1418051634793025536, '待办任务数量', '/admin/flow/flowOperation/countRuntimeTask', 5, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1418079603167072256, 1418054414190514176, '文件上传', '/admin/flow/flowOnlineOperation/upload', 4, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1418079670594703360, 1418054414190514176, '文件下载', '/admin/flow/flowOnlineOperation/download', 5, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1423635764486344704, 1423635643371622400, '已办任务列表', '/admin/flow/flowOperation/listHistoricTask', 1, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1423635851312631808, 1423635643371622400, '已办任务信息', '/admin/flow/flowOperation/viewHistoricTaskInfo', 2, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1423636091033882624, 1423635643371622400, '加签', '/admin/flow/flowOperation/submitConsign', 3, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1423984506028691456, 1418030256765276160, '撤销工单', '/admin/flow/flowOperation/cancelWorkOrder', 7, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1440911410581213185, 1440911410581213184, '新增', '/admin/upms/sysDept/add', 1, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1440911410581213186, 1440911410581213184, '编辑', '/admin/upms/sysDept/update', 2, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1440911410581213187, 1440911410581213184, '删除', '/admin/upms/sysDept/delete', 3, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1440911410581213188, 1440911410581213184, '显示列表', '/admin/upms/sysDept/list', 4, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1440911410581213189, 1440911410581213184, '导出', '/admin/upms/sysDept/export', 5, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1440911410581213190, 1440911410581213184, '详情', '/admin/upms/sysDept/view', 6, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1440911410581213191, 1440911410581213184, '打印', '/admin/upms/sysDept/print', 7, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1440911410581213192, 1440911410581213184, '新增部门岗位', '/admin/upms/sysDept/addSysDeptPost', 8, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1440911410581213193, 1440911410581213184, '编辑部门岗位', '/admin/upms/sysDept/updateSysDeptPost', 9, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1440911410581213194, 1440911410581213184, '移除部门岗位', '/admin/upms/sysDept/deleteSysDeptPost', 10, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1440911410581213195, 1440911410581213184, '列表显示部门岗位', '/admin/upms/sysDept/listSysDeptPost', 11, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1440911410581213196, 1440911410581213184, '列表显示未关联部门岗位', '/admin/upms/sysDept/listNotInSysDeptPost', 12, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1440911410581213197, 1440911410581213184, '详情显示部门岗位', '/admin/upms/sysDept/viewSysDeptPost', 13, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1440911410581213199, 1440911410581213198, '新增', '/admin/upms/sysUser/add', 1, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1440911410581213200, 1440911410581213198, '编辑', '/admin/upms/sysUser/update', 2, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1440911410581213201, 1440911410581213198, '删除', '/admin/upms/sysUser/delete', 3, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1440911410581213202, 1440911410581213198, '显示列表', '/admin/upms/sysUser/list', 4, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1440911410581213203, 1440911410581213198, '导出', '/admin/upms/sysUser/export', 5, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1440911410581213204, 1440911410581213198, '详情', '/admin/upms/sysUser/view', 6, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1440911410581213205, 1440911410581213198, '打印', '/admin/upms/sysUser/print', 7, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1440911410581213206, 1440911410581213198, '重置密码', '/admin/upms/sysUser/resetPassword', 8, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1440911410581213207, 1440911410581213198, '用户权限资源分配详情', '/admin/upms/sysUser/listSysPermWithDetail', 9, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1440911410581213208, 1440911410581213198, '用户权限字分配详情', '/admin/upms/sysUser/listSysPermCodeWithDetail', 10, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1440911410581213209, 1440911410581213198, '用户菜单分配详情', '/admin/upms/sysUser/listSysMenuWithDetail', 11, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1440911410581213211, 1440911410581213210, '新增', '/admin/upms/sysRole/add', 1, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1440911410581213212, 1440911410581213210, '编辑', '/admin/upms/sysRole/update', 2, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1440911410581213213, 1440911410581213210, '删除', '/admin/upms/sysRole/delete', 3, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1440911410581213214, 1440911410581213210, '显示列表', '/admin/upms/sysRole/list', 4, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1440911410581213215, 1440911410581213210, '详情', '/admin/upms/sysRole/view', 5, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1440911410581213216, 1440911410581213210, '授权用户', '/admin/upms/sysRole/addUserRole', 6, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1440911410581213217, 1440911410581213210, '移除用户', '/admin/upms/sysRole/deleteUserRole', 7, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1440911410581213218, 1440911410581213210, '角色用户列表', '/admin/upms/sysRole/listUserRole', 8, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1440911410581213219, 1440911410581213210, '角色未添加用户列表', '/admin/upms/sysRole/listNotInUserRole', 9, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1440911410581213220, 1440911410581213210, '角色权限资源分配详情', '/admin/upms/sysRole/listSysPermWithDetail', 10, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1440911410581213221, 1440911410581213210, '角色权限字分配详情', '/admin/upms/sysRole/listSysPermCodeWithDetail', 11, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1440911410581213223, 1440911410581213222, '新增', '/admin/upms/sysDataPerm/add', 1, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1440911410581213224, 1440911410581213222, '编辑', '/admin/upms/sysDataPerm/update', 2, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1440911410581213225, 1440911410581213222, '删除', '/admin/upms/sysDataPerm/delete', 3, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1440911410581213226, 1440911410581213222, '显示列表', '/admin/upms/sysDataPerm/list', 4, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1440911410581213227, 1440911410581213222, '详情', '/admin/upms/sysDataPerm/view', 5, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1440911410581213228, 1440911410581213222, '授权用户', '/admin/upms/sysDataPerm/addDataPermUser', 5, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1440911410581213229, 1440911410581213222, '移除用户', '/admin/upms/sysDataPerm/deleteDataPermUser', 6, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1440911410581213230, 1440911410581213222, '数据权限用户列表', '/admin/upms/sysDataPerm/listDataPermUser', 7, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1440911410581213231, 1440911410581213222, '数据权限未添加用户列表', '/admin/upms/sysDataPerm/listNotInDataPermUser', 8, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1440911410581213233, 1440911410581213232, '新增', '/admin/upms/sysPost/add', 1, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1440911410581213234, 1440911410581213232, '编辑', '/admin/upms/sysPost/update', 2, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1440911410581213235, 1440911410581213232, '删除', '/admin/upms/sysPost/delete', 3, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1440911410581213236, 1440911410581213232, '显示列表', '/admin/upms/sysPost/list', 4, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1440911410581213237, 1440911410581213232, '详情', '/admin/upms/sysPost/view', 5, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1440911410581213239, 1440911410581213238, '新增', '/admin/upms/sysMenu/add', 1, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1440911410581213240, 1440911410581213238, '删除', '/admin/upms/sysMenu/delete', 2, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1440911410581213241, 1440911410581213238, '编辑', '/admin/upms/sysMenu/update', 3, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1440911410581213242, 1440911410581213238, '显示列表', '/admin/upms/sysMenu/list', 4, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1440911410581213243, 1440911410581213238, '详情', '/admin/upms/sysMenu/view', 5, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1440911410581213244, 1440911410581213238, '菜单权限资源分配详情', '/admin/upms/sysMenu/listSysPermWithDetail', 6, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1440911410581213245, 1440911410581213238, '菜单用户分配详情', '/admin/upms/sysMenu/listSysUserWithDetail', 7, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1440911410581213247, 1440911410581213246, '新增', '/admin/upms/sysPermCode/add', 1, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1440911410581213248, 1440911410581213246, '编辑', '/admin/upms/sysPermCode/update', 2, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1440911410581213249, 1440911410581213246, '删除', '/admin/upms/sysPermCode/delete', 3, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1440911410581213250, 1440911410581213246, '显示列表', '/admin/upms/sysPermCode/list', 4, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1440911410581213251, 1440911410581213246, '详情', '/admin/upms/sysPermCode/view', 5, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1440911410581213252, 1440911410581213246, '权限字用户分配详情', '/admin/upms/sysPermCode/listSysUserWithDetail', 6, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1440911410581213253, 1440911410581213246, '权限字角色分配详情', '/admin/upms/sysPermCode/listSysRoleWithDetail', 7, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1440911410581213255, 1440911410581213254, '新增', '/admin/upms/sysPermModule/add', 1, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1440911410581213256, 1440911410581213254, '编辑', '/admin/upms/sysPermModule/update', 2, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1440911410581213257, 1440911410581213254, '删除', '/admin/upms/sysPermModule/delete', 3, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1440911410581213258, 1440911410581213254, '显示列表', '/admin/upms/sysPermModule/list', 4, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1440911410581213259, 1440911410581213254, '显示全部', '/admin/upms/sysPermModule/listAll', 5, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1440911410581213261, 1440911410581213260, '新增', '/admin/upms/sysPerm/add', 1, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1440911410581213262, 1440911410581213260, '编辑', '/admin/upms/sysPerm/update', 2, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1440911410581213263, 1440911410581213260, '删除', '/admin/upms/sysPerm/delete', 3, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1440911410581213264, 1440911410581213260, '显示列表', '/admin/upms/sysPerm/list', 4, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1440911410581213265, 1440911410581213260, '详情', '/admin/upms/sysPerm/view', 5, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1440911410581213266, 1440911410581213260, '权限资源用户分配详情', '/admin/upms/sysPerm/listSysUserWithDetail', 6, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1440911410581213267, 1440911410581213260, '权限资源角色分配详情', '/admin/upms/sysPerm/listSysRoleWithDetail', 7, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1440911410581213268, 1440911410581213260, '权限资源菜单分配详情', '/admin/upms/sysPerm/listSysMenuWithDetail', 8, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1440911410581213271, 1440911410581213270, '新增', '/admin/app/areaCode/add', 1, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1440911410581213272, 1440911410581213270, '编辑', '/admin/app/areaCode/update', 2, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1440911410581213273, 1440911410581213270, '删除', '/admin/app/areaCode/delete', 3, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1440911410581213274, 1440911410581213270, '同步缓存', '/admin/app/areaCode/reloadCachedData', 4, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1440911410581213276, 1440911410581213275, '显示列表', '/admin/upms/loginUser/list', 1, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1440911410581213277, 1440911410581213275, '删除', '/admin/upms/loginUser/delete', 1, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1440975727276068864, 1440975375537541120, '启动并提交数据', '/admin/flow/flowOnlineOperation/startAndTakeUserTask/flowLeave', 1, 1440911410581213417, '2021-09-23 17:46:00', 1440911410581213417, '2021-09-23 17:46:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1440975781374201856, 1440975375537541120, '工单列表', '/admin/flow/flowOnlineOperation/listWorkOrder/flowLeave', 2, 1440911410581213417, '2021-09-23 17:46:13', 1440911410581213417, '2021-09-23 17:46:13', 1); -INSERT INTO `zz_sys_perm` VALUES (1440975850529886208, 1440975429199466496, '启动并提交数据', '/admin/flow/flowOnlineOperation/startAndTakeUserTask/flowSubmit', 1, 1440911410581213417, '2021-09-23 17:46:29', 1440911410581213417, '2021-09-23 17:46:29', 1); -INSERT INTO `zz_sys_perm` VALUES (1440975895627042816, 1440975429199466496, '工单列表', '/admin/flow/flowOnlineOperation/listWorkOrder/flowSubmit', 2, 1440911410581213417, '2021-09-23 17:46:40', 1440911410581213417, '2021-09-23 17:46:40', 1); -INSERT INTO `zz_sys_perm` VALUES (1440975979374710784, 1440975469133434880, '启动并提交数据', '/admin/flow/flowOnlineOperation/startAndTakeUserTask/flowContract', 1, 1440911410581213417, '2021-09-23 17:47:00', 1440911410581213417, '2021-09-23 17:47:00', 1); -INSERT INTO `zz_sys_perm` VALUES (1440976024471867392, 1440975469133434880, '工单列表', '/admin/flow/flowOnlineOperation/listWorkOrder/flowContract', 2, 1440911410581213417, '2021-09-23 17:47:11', 1440911410581213417, '2021-09-23 17:47:11', 1); -INSERT INTO `zz_sys_perm` VALUES (1440976144311521280, 1440975527128076288, '启动并提交数据', '/admin/flow/flowOnlineOperation/startAndTakeUserTask/flowConSign', 1, 1440911410581213417, '2021-09-23 17:47:40', 1440911410581213417, '2021-09-23 17:47:40', 1); -INSERT INTO `zz_sys_perm` VALUES (1440976188553039872, 1440975527128076288, '工单列表', '/admin/flow/flowOnlineOperation/listWorkOrder/flowConSign', 2, 1440911410581213417, '2021-09-23 17:47:50', 1440911410581213417, '2021-09-23 17:47:50', 1); -INSERT INTO `zz_sys_perm` VALUES (1440976259415805952, 1440975571776442368, '启动并提交数据', '/admin/flow/flowOnlineOperation/startAndTakeUserTask/flowTranslate', 1, 1440911410581213417, '2021-09-23 17:48:07', 1440911410581213417, '2021-09-23 17:48:07', 1); -INSERT INTO `zz_sys_perm` VALUES (1440976310951219200, 1440975571776442368, '工单列表', '/admin/flow/flowOnlineOperation/listWorkOrder/flowTranslate', 2, 1440911410581213417, '2021-09-23 17:48:19', 1440911410581213417, '2021-09-23 17:48:19', 1); -COMMIT; - --- ---------------------------- --- Table structure for zz_sys_perm_code --- ---------------------------- -DROP TABLE IF EXISTS `zz_sys_perm_code`; -CREATE TABLE `zz_sys_perm_code` ( - `perm_code_id` bigint NOT NULL COMMENT '主键Id', - `parent_id` bigint DEFAULT NULL COMMENT '上级权限字Id', - `perm_code` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '权限字标识(一般为有含义的英文字符串)', - `perm_code_type` int NOT NULL COMMENT '类型(0: 表单 1: UI片段 2: 操作)', - `show_name` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '显示名称', - `show_order` int NOT NULL COMMENT '显示顺序(数值越小,越靠前)', - `create_user_id` bigint NOT NULL COMMENT '创建者Id', - `create_time` datetime NOT NULL COMMENT '创建时间', - `update_user_id` bigint NOT NULL COMMENT '更新者Id', - `update_time` datetime NOT NULL COMMENT '最后更新时间', - `deleted_flag` int NOT NULL COMMENT '逻辑删除标记(1: 正常 -1: 已删除)', - PRIMARY KEY (`perm_code_id`), - UNIQUE KEY `idx_perm_code` (`perm_code`) USING BTREE, - KEY `idx_parent_id` (`parent_id`) USING BTREE, - KEY `idx_show_order` (`show_order`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin ROW_FORMAT=COMPACT COMMENT='系统权限资源表'; - --- ---------------------------- --- Records of zz_sys_perm_code --- ---------------------------- -BEGIN; -INSERT INTO `zz_sys_perm_code` VALUES (1400638673195634688, NULL, 'formOnlineDict', 0, '在线表单字典管理', 12000, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_code` VALUES (1400638885750378496, 1400638673195634688, 'formOnlineDict:fragmentOnlineDict', 1, '在线表单字典管理', 1, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_code` VALUES (1400639030462255104, NULL, 'formOnlinePage', 0, '在线表单表单管理', 12100, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_code` VALUES (1400639252747784192, 1400639030462255104, 'formOnlinePage:fragmentOnlinePage', 1, '在线表单表单管理', 1, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_code` VALUES (1418046729906819072, NULL, 'formFlowCategory', 0, '流程分类', 13000, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_code` VALUES (1418046848794365952, 1418046729906819072, 'formFlowCategory:formFlowCategory', 1, '流程分类', 1, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_code` VALUES (1418046986677915648, 1418046848794365952, 'formFlowCategory:formFlowCategory:add', 2, '新增', 1, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_code` VALUES (1418047095188754432, 1418046848794365952, 'formFlowCategory:formFlowCategory:update', 2, '编辑', 2, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_code` VALUES (1418047182946177024, 1418046848794365952, 'formFlowCategory:formFlowCategory:delete', 2, '删除', 3, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_code` VALUES (1418048134759583744, NULL, 'formFlowEntry', 0, '流程设计', 13100, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_code` VALUES (1418048205177753600, 1418048134759583744, 'formFlowEntry:formFlowEntry', 1, '流程设计', 1, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_code` VALUES (1418048335343783936, 1418048205177753600, 'formFlowEntry:formFlowEntry:update', 2, '编辑', 1, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_code` VALUES (1418048872671875072, NULL, 'formAllInstance', 0, '流程实例', 13200, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_code` VALUES (1418049164754817024, 1418048872671875072, 'formAllInstance:formAllInstance', 1, '流程实例', 1, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_code` VALUES (1418049287106859008, 1418049164754817024, 'formAllInstance:formAllInstance:stop', 2, '终止', 1, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_code` VALUES (1418049398776008704, 1418049164754817024, 'formAllInstance:formAllInstance:delete', 2, '删除', 2, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_code` VALUES (1418050031436435456, NULL, 'formMyTask', 0, '我的待办', 13300, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_code` VALUES (1418050322282057728, 1418050031436435456, 'formMyTask:formMyTask', 1, '我的待办', 1, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_code` VALUES (1418050797706416128, 1418048205177753600, 'formFlowEntry:formFlowEntry:start', 2, '启动', 2, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-24 09:28:39', 1); -INSERT INTO `zz_sys_perm_code` VALUES (1418057020824621056, NULL, 'formMyHistoryTask', 0, '历史流程', 13400, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_code` VALUES (1418057346877231104, 1418057020824621056, 'formMyHistoryTask:formMyHistoryTask', 1, '历史流程', 1, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_code` VALUES (1423636498195943424, NULL, 'formMyApprovedTask', 0, '已办任务', 13500, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_code` VALUES (1423637544578322432, 1423636498195943424, 'formMyApprovedTask:formMyApprovedTask', 1, '已办任务', 1, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_code` VALUES (1440911410581213286, NULL, 'formSysUser', 0, '用户管理', 10000, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_code` VALUES (1440911410581213287, 1440911410581213286, 'formSysUser:fragmentSysUser', 1, '用户管理', 1, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_code` VALUES (1440911410581213288, 1440911410581213287, 'formSysUser:fragmentSysUser:add', 2, '新增', 1, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_code` VALUES (1440911410581213289, 1440911410581213287, 'formSysUser:fragmentSysUser:update', 2, '编辑', 2, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_code` VALUES (1440911410581213290, 1440911410581213287, 'formSysUser:fragmentSysUser:delete', 2, '删除', 3, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_code` VALUES (1440911410581213291, 1440911410581213287, 'formSysUser:fragmentSysUser:resetPassword', 2, '重置密码', 4, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_code` VALUES (1440911410581213292, 1440911410581213287, 'formSysUser:fragmentSysUser:listSysUserPermDetail', 2, '权限详情', 5, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_code` VALUES (1440911410581213300, NULL, 'formSysDept', 0, '部门管理', 10100, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_code` VALUES (1440911410581213301, 1440911410581213300, 'formSysDept:fragmentSysDept', 1, '部门管理', 1, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_code` VALUES (1440911410581213302, 1440911410581213301, 'formSysDept:fragmentSysDept:add', 2, '新增', 1, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_code` VALUES (1440911410581213303, 1440911410581213301, 'formSysDept:fragmentSysDept:update', 2, '编辑', 2, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_code` VALUES (1440911410581213304, 1440911410581213301, 'formSysDept:fragmentSysDept:delete', 2, '删除', 3, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_code` VALUES (1440911410581213305, 1440911410581213301, 'formSysDept:fragmentSysDept:editPost', 2, '设置岗位', 4, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_code` VALUES (1440911410581213306, 1440911410581213301, 'formSysDept:fragmentSysDept:viewPost', 2, '查看岗位', 5, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_code` VALUES (1440911410581213318, NULL, 'formSysRole', 0, '角色管理', 10200, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_code` VALUES (1440911410581213319, 1440911410581213318, 'formSysRole:fragmentSysRole', 1, '角色管理', 1, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_code` VALUES (1440911410581213320, 1440911410581213318, 'formSysRole:fragmentSysRoleUser', 1, '用户授权', 2, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_code` VALUES (1440911410581213321, 1440911410581213319, 'formSysRole:fragmentSysRole:add', 2, '新增', 1, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_code` VALUES (1440911410581213322, 1440911410581213319, 'formSysRole:fragmentSysRole:update', 2, '编辑', 2, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_code` VALUES (1440911410581213323, 1440911410581213319, 'formSysRole:fragmentSysRole:delete', 2, '删除', 3, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_code` VALUES (1440911410581213324, 1440911410581213319, 'formSysRole:fragmentSysRole:listSysRolePermDetail', 2, '权限详情', 4, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_code` VALUES (1440911410581213325, 1440911410581213320, 'formSysRole:fragmentSysRoleUser:addUserRole', 2, '授权用户', 1, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_code` VALUES (1440911410581213326, 1440911410581213320, 'formSysRole:fragmentSysRoleUser:deleteUserRole', 2, '移除用户', 2, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_code` VALUES (1440911410581213337, NULL, 'formSysDataPerm', 0, '数据权限管理', 10400, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_code` VALUES (1440911410581213338, 1440911410581213337, 'formSysDataPerm:fragmentSysDataPerm', 1, '数据权限管理', 1, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_code` VALUES (1440911410581213339, 1440911410581213337, 'formSysDataPerm:fragmentSysDataPermUser', 1, '用户授权', 2, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_code` VALUES (1440911410581213340, 1440911410581213338, 'formSysDataPerm:fragmentSysDataPerm:add', 2, '新增', 1, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_code` VALUES (1440911410581213341, 1440911410581213338, 'formSysDataPerm:fragmentSysDataPerm:update', 2, '编辑', 2, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_code` VALUES (1440911410581213342, 1440911410581213338, 'formSysDataPerm:fragmentSysDataPerm:delete', 2, '删除', 3, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_code` VALUES (1440911410581213343, 1440911410581213339, 'formSysDataPerm:fragmentSysDataPermUser:addDataPermUser', 2, '授权用户', 1, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_code` VALUES (1440911410581213344, 1440911410581213339, 'formSysDataPerm:fragmentSysDataPermUser:deleteDataPermUser', 2, '移除用户', 2, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_code` VALUES (1440911410581213351, NULL, 'formSysMenu', 0, '菜单管理', 10600, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_code` VALUES (1440911410581213352, 1440911410581213351, 'formSysMenu:fragmentSysMenu', 1, '菜单管理', 1, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_code` VALUES (1440911410581213353, 1440911410581213352, 'formSysMenu:fragmentSysMenu:add', 2, '新增', 1, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_code` VALUES (1440911410581213354, 1440911410581213352, 'formSysMenu:fragmentSysMenu:update', 2, '编辑', 2, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_code` VALUES (1440911410581213355, 1440911410581213352, 'formSysMenu:fragmentSysMenu:delete', 2, '删除', 3, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_code` VALUES (1440911410581213356, 1440911410581213352, 'formSysMenu:fragmentSysMenu:listSysMenuPermDetail', 2, '权限详情', 4, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_code` VALUES (1440911410581213363, NULL, 'formSysPermCode', 0, '权限字管理', 10700, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_code` VALUES (1440911410581213364, 1440911410581213363, 'formSysPermCode:fragmentSysPermCode', 1, '权限字管理', 1, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_code` VALUES (1440911410581213365, 1440911410581213364, 'formSysPermCode:fragmentSysPermCode:add', 2, '新增', 1, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_code` VALUES (1440911410581213366, 1440911410581213364, 'formSysPermCode:fragmentSysPermCode:update', 2, '编辑', 2, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_code` VALUES (1440911410581213367, 1440911410581213364, 'formSysPermCode:fragmentSysPermCode:delete', 2, '删除', 3, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_code` VALUES (1440911410581213368, 1440911410581213364, 'formSysPermCode:fragmentSysPermCode:listSysPermCodePermDetail', 2, '权限详情', 4, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_code` VALUES (1440911410581213378, NULL, 'formSysPerm', 0, '权限管理', 10800, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_code` VALUES (1440911410581213379, 1440911410581213378, 'formSysPerm:fragmentSysPerm', 1, '权限管理', 1, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_code` VALUES (1440911410581213380, 1440911410581213379, 'formSysPerm:fragmentSysPerm:addPermModule', 2, '新增模块', 1, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_code` VALUES (1440911410581213381, 1440911410581213379, 'formSysPerm:fragmentSysPerm:updatePermModule', 2, '编辑模块', 2, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_code` VALUES (1440911410581213382, 1440911410581213379, 'formSysPerm:fragmentSysPerm:deletePermModule', 2, '删除模块', 3, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_code` VALUES (1440911410581213383, 1440911410581213379, 'formSysPerm:fragmentSysPerm:addPerm', 2, '新增权限', 4, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_code` VALUES (1440911410581213384, 1440911410581213379, 'formSysPerm:fragmentSysPerm:updatePerm', 2, '编辑权限', 5, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_code` VALUES (1440911410581213385, 1440911410581213379, 'formSysPerm:fragmentSysPerm:deletePerm', 2, '删除权限', 6, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_code` VALUES (1440911410581213386, 1440911410581213379, 'formSysPerm:fragmentSysPerm:listSysPermPermDetail', 2, '权限详情', 7, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_code` VALUES (1440911410581213393, NULL, 'formSysDict', 0, '字典管理', 10900, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_code` VALUES (1440911410581213394, 1440911410581213393, 'formSysDict:fragmentSysDict', 1, '字典管理', 1, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_code` VALUES (1440911410581213395, 1440911410581213394, 'formSysDict:fragmentSysDict:add', 2, '新增', 1, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_code` VALUES (1440911410581213396, 1440911410581213394, 'formSysDict:fragmentSysDict:update', 2, '编辑', 2, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_code` VALUES (1440911410581213397, 1440911410581213394, 'formSysDict:fragmentSysDict:delete', 2, '删除', 3, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_code` VALUES (1440911410581213398, 1440911410581213394, 'formSysDict:fragmentSysDict:reloadCache', 2, '同步缓存', 4, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_code` VALUES (1440911410581213402, NULL, 'formSysLoginUser', 0, '在线用户', 11200, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_code` VALUES (1440911410581213403, 1440911410581213402, 'formSysLoginUser:fragmentLoginUser', 1, '在线用户', 1, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_code` VALUES (1440911410581213404, 1440911410581213403, 'formSysLoginUser:fragmentLoginUser:delete', 2, '强制下线', 1, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_code` VALUES (1440911410581213411, NULL, 'formSysPost', 0, '岗位管理', 10150, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_code` VALUES (1440911410581213412, 1440911410581213411, 'formSysPost:fragmentSysPost', 1, '岗位管理', 1, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_code` VALUES (1440911410581213413, 1440911410581213412, 'formSysPost:fragmentSysPost:add', 2, '新增', 1, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_code` VALUES (1440911410581213414, 1440911410581213412, 'formSysPost:fragmentSysPost:update', 2, '编辑', 2, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_code` VALUES (1440911410581213415, 1440911410581213412, 'formSysPost:fragmentSysPost:delete', 2, '删除', 3, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_code` VALUES (1440976898661289984, NULL, 'formFlowLeave', 0, '请假申请', 14000, 1440911410581213417, '2021-09-23 17:50:39', 1440911410581213417, '2021-09-23 17:50:39', 1); -INSERT INTO `zz_sys_perm_code` VALUES (1440976998183735296, NULL, 'formContractOrder', 0, '合同工单', 14100, 1440911410581213417, '2021-09-23 17:51:03', 1440911410581213417, '2021-09-23 17:51:03', 1); -INSERT INTO `zz_sys_perm_code` VALUES (1440977405874278400, 1440976898661289984, 'formFlowLeave:formFlowLeave', 1, '请假申请', 1, 1440911410581213417, '2021-09-23 17:52:40', 1440911410581213417, '2021-09-23 17:52:40', 1); -INSERT INTO `zz_sys_perm_code` VALUES (1440977767599443968, 1440976998183735296, 'formContractOrder:formContractOrder', 1, '合同工单', 1, 1440911410581213417, '2021-09-23 17:54:07', 1440911410581213417, '2021-09-23 17:54:07', 1); -COMMIT; - --- ---------------------------- --- Table structure for zz_sys_perm_code_perm --- ---------------------------- -DROP TABLE IF EXISTS `zz_sys_perm_code_perm`; -CREATE TABLE `zz_sys_perm_code_perm` ( - `perm_code_id` bigint NOT NULL COMMENT '权限字Id', - `perm_id` bigint NOT NULL COMMENT '权限id', - PRIMARY KEY (`perm_code_id`,`perm_id`), - KEY `idx_perm_id` (`perm_id`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin ROW_FORMAT=COMPACT COMMENT='系统权限字和权限资源关联表'; - --- ---------------------------- --- Records of zz_sys_perm_code_perm --- ---------------------------- -BEGIN; -INSERT INTO `zz_sys_perm_code_perm` VALUES (1400638885750378496, 1400626748101496832); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1400639252747784192, 1400626748101496832); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1400638885750378496, 1400626963806162944); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1400639252747784192, 1400626963806162944); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1400638885750378496, 1400627109692444672); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1400639252747784192, 1400627109692444672); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1400638885750378496, 1400632108514283520); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1400639252747784192, 1400632108514283520); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1400638885750378496, 1400632216169484288); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1400639252747784192, 1400632216169484288); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1400638885750378496, 1400632326538399744); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1400638885750378496, 1400632438635368448); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1400638885750378496, 1400632511620452352); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1400639252747784192, 1400632924021198848); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1400639252747784192, 1400632978937221120); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1400639252747784192, 1400633026181861376); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1400639252747784192, 1400633077717274624); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1400639252747784192, 1400633129688895488); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1400639252747784192, 1400633375525441536); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1418048335343783936, 1400633375525441536); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1400639252747784192, 1400633437093629952); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1400639252747784192, 1400633529678696448); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1400639252747784192, 1400633568027217920); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1400639252747784192, 1400633612201627648); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1400639252747784192, 1400633713376628736); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1400639252747784192, 1400633798403559424); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1400639252747784192, 1400633922085195776); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1400639252747784192, 1400634012745076736); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1400639252747784192, 1400634100498305024); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1400639252747784192, 1400634280308117504); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1400639252747784192, 1400634354593435648); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1400639252747784192, 1400634559896227840); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1400639252747784192, 1400634613151305728); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1400639252747784192, 1400634651944423424); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1400639252747784192, 1400634693472227328); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1400639252747784192, 1400634735549485056); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1400639252747784192, 1400635131969933312); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1418048335343783936, 1400635131969933312); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1400639252747784192, 1400635267726970880); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1400639252747784192, 1400635341274091520); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1400639252747784192, 1400635378506928128); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1400639252747784192, 1400635426808532992); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1400639252747784192, 1400635527698321408); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1400639252747784192, 1400635581532213248); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1400639252747784192, 1400635661106548736); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1418048335343783936, 1400635661106548736); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1400639252747784192, 1400635757332271104); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1400639252747784192, 1400635827347787776); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1400639252747784192, 1400635896461529088); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1400639252747784192, 1400635963469729792); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1400639252747784192, 1400636031752998912); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1400639252747784192, 1400636182936686592); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1400639252747784192, 1400636217728438272); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1400639252747784192, 1400636258107002880); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1400639252747784192, 1400636301480300544); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1400639252747784192, 1400636338838966272); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1400639252747784192, 1400636501900922880); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1418048335343783936, 1400636501900922880); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1400639252747784192, 1400636535371468800); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1400639252747784192, 1400636571165659136); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1400639252747784192, 1400636610403373056); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1400639252747784192, 1400636656679129088); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1400639252747784192, 1400637740705386496); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1418048335343783936, 1400637740705386496); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1400639252747784192, 1400637775962705920); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1423637544578322432, 1400637775962705920); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440977405874278400, 1400637775962705920); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440977767599443968, 1400637775962705920); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1400639252747784192, 1400637822737584128); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1400639252747784192, 1400637858414333952); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1400639252747784192, 1400637895328403456); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1400639252747784192, 1400637970863624192); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1418050322282057728, 1400637970863624192); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1418050797706416128, 1400637970863624192); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1418057346877231104, 1400637970863624192); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1423637544578322432, 1400637970863624192); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440977405874278400, 1400637970863624192); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440977767599443968, 1400637970863624192); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1400639252747784192, 1413405061278601216); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1418048335343783936, 1413405061278601216); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1400639252747784192, 1413405166471745536); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1400639252747784192, 1413405224021790720); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1400639252747784192, 1413405313788284928); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1400639252747784192, 1413405352866615296); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1418050322282057728, 1418026612762349572); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1418048335343783936, 1418026612762349580); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1418046848794365952, 1418030338508066816); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1418046986677915648, 1418030386436378624); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1418047095188754432, 1418030437971791872); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1418047182946177024, 1418030477918343168); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1418047095188754432, 1418030533757112320); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1418048205177753600, 1418031006660694016); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1418048335343783936, 1418031078391681024); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1418048335343783936, 1418031120481521664); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1418048335343783936, 1418031174604820480); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1418048335343783936, 1418031219706171392); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1418048335343783936, 1418031304779239424); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1418048335343783936, 1418031515207471104); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1418048335343783936, 1418031648351457280); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1418048335343783936, 1418031712788549632); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1418048335343783936, 1418031801271586816); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1418048335343783936, 1418032222232907776); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1418048335343783936, 1418032258429751296); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1418048335343783936, 1418032300414734336); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1418048335343783936, 1418032344064856064); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1418048335343783936, 1418032382409183232); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1418049164754817024, 1418033804987076608); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1418057346877231104, 1418033889183535104); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1418049164754817024, 1418034243434450944); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1418057346877231104, 1418034243434450944); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1423637544578322432, 1418034243434450944); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440977405874278400, 1418034243434450944); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440977767599443968, 1418034243434450944); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1418049164754817024, 1418035997727264768); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1418057346877231104, 1418035997727264768); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440977405874278400, 1418035997727264768); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440977767599443968, 1418035997727264768); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1418049287106859008, 1418040510253109248); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1418049398776008704, 1418040574245605376); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1418050797706416128, 1418051334564745216); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440977405874278400, 1418051334564745216); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440977767599443968, 1418051334564745216); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1418050797706416128, 1418051485324808192); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440977405874278400, 1418051485324808192); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440977767599443968, 1418051485324808192); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1418050322282057728, 1418051693639110656); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440977405874278400, 1418051693639110656); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440977767599443968, 1418051693639110656); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1418050322282057728, 1418054128097038336); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440977405874278400, 1418054128097038336); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440977767599443968, 1418054128097038336); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1418048335343783936, 1418054519798894592); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1418049164754817024, 1418054519798894592); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1418050322282057728, 1418054519798894592); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1418050797706416128, 1418054519798894592); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1418057346877231104, 1418054519798894592); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1423637544578322432, 1418054519798894592); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440977405874278400, 1418054519798894592); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440977767599443968, 1418054519798894592); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1418050322282057728, 1418054618176294912); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1418057346877231104, 1418054618176294912); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1423637544578322432, 1418054618176294912); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440977405874278400, 1418054618176294912); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440977767599443968, 1418054618176294912); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1418049164754817024, 1418054792965525504); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1418050322282057728, 1418054792965525504); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1418057346877231104, 1418054792965525504); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1423637544578322432, 1418054792965525504); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440977405874278400, 1418054792965525504); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440977767599443968, 1418054792965525504); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1418050322282057728, 1418055060981551104); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440977405874278400, 1418055060981551104); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440977767599443968, 1418055060981551104); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1418050322282057728, 1418056212146032640); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1418050322282057728, 1418079603167072256); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1418050797706416128, 1418079603167072256); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440977405874278400, 1418079603167072256); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440977767599443968, 1418079603167072256); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1418050322282057728, 1418079670594703360); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1418050797706416128, 1418079670594703360); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1418057346877231104, 1418079670594703360); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440977405874278400, 1418079670594703360); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440977767599443968, 1418079670594703360); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1423637544578322432, 1423635764486344704); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1423637544578322432, 1423635851312631808); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1423637544578322432, 1423636091033882624); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440977405874278400, 1423636091033882624); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440977767599443968, 1423636091033882624); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440977405874278400, 1423984506028691456); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440977767599443968, 1423984506028691456); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440911410581213302, 1440911410581213185); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440911410581213303, 1440911410581213186); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440911410581213304, 1440911410581213187); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440911410581213288, 1440911410581213188); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440911410581213289, 1440911410581213188); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440911410581213301, 1440911410581213188); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440911410581213301, 1440911410581213189); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440911410581213303, 1440911410581213190); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440911410581213303, 1440911410581213191); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440911410581213305, 1440911410581213192); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440911410581213305, 1440911410581213193); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440911410581213305, 1440911410581213194); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440911410581213305, 1440911410581213195); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440911410581213306, 1440911410581213195); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440911410581213305, 1440911410581213196); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440911410581213305, 1440911410581213197); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440911410581213306, 1440911410581213197); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440911410581213288, 1440911410581213199); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440911410581213289, 1440911410581213200); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440911410581213290, 1440911410581213201); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1418048335343783936, 1440911410581213202); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440911410581213287, 1440911410581213202); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440911410581213287, 1440911410581213203); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440911410581213289, 1440911410581213204); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440911410581213289, 1440911410581213205); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440911410581213291, 1440911410581213206); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440911410581213292, 1440911410581213207); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440911410581213292, 1440911410581213208); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440911410581213292, 1440911410581213209); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440911410581213321, 1440911410581213211); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440911410581213322, 1440911410581213212); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440911410581213323, 1440911410581213213); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440911410581213288, 1440911410581213214); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440911410581213289, 1440911410581213214); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440911410581213319, 1440911410581213214); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440911410581213322, 1440911410581213215); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440911410581213325, 1440911410581213216); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440911410581213326, 1440911410581213217); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440911410581213320, 1440911410581213218); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440911410581213325, 1440911410581213219); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440911410581213324, 1440911410581213220); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440911410581213324, 1440911410581213221); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440911410581213340, 1440911410581213223); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440911410581213341, 1440911410581213224); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440911410581213342, 1440911410581213225); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440911410581213288, 1440911410581213226); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440911410581213289, 1440911410581213226); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440911410581213338, 1440911410581213226); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440911410581213341, 1440911410581213227); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440911410581213343, 1440911410581213228); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440911410581213344, 1440911410581213229); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440911410581213339, 1440911410581213230); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440911410581213343, 1440911410581213231); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440911410581213413, 1440911410581213233); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440911410581213414, 1440911410581213234); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440911410581213415, 1440911410581213235); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440911410581213412, 1440911410581213236); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440911410581213414, 1440911410581213237); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440911410581213353, 1440911410581213239); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440911410581213355, 1440911410581213240); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440911410581213354, 1440911410581213241); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440911410581213321, 1440911410581213242); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440911410581213322, 1440911410581213242); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440911410581213352, 1440911410581213242); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440911410581213354, 1440911410581213243); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440911410581213356, 1440911410581213244); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440911410581213356, 1440911410581213245); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440911410581213365, 1440911410581213247); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440911410581213366, 1440911410581213248); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440911410581213367, 1440911410581213249); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440911410581213353, 1440911410581213250); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440911410581213354, 1440911410581213250); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440911410581213364, 1440911410581213250); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440911410581213366, 1440911410581213251); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440911410581213368, 1440911410581213252); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440911410581213368, 1440911410581213253); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440911410581213380, 1440911410581213255); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440911410581213381, 1440911410581213256); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440911410581213382, 1440911410581213257); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440911410581213379, 1440911410581213258); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440911410581213365, 1440911410581213259); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440911410581213366, 1440911410581213259); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440911410581213379, 1440911410581213259); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440911410581213383, 1440911410581213261); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440911410581213384, 1440911410581213262); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440911410581213385, 1440911410581213263); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440911410581213379, 1440911410581213264); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440911410581213384, 1440911410581213265); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440911410581213386, 1440911410581213266); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440911410581213386, 1440911410581213267); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440911410581213386, 1440911410581213268); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440911410581213394, 1440911410581213271); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440911410581213394, 1440911410581213272); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440911410581213394, 1440911410581213273); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440911410581213394, 1440911410581213274); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440911410581213403, 1440911410581213276); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440911410581213404, 1440911410581213277); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1418050797706416128, 1440975727276068864); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440977405874278400, 1440975727276068864); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440977405874278400, 1440975781374201856); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1418050797706416128, 1440975850529886208); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1418050797706416128, 1440975979374710784); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440977767599443968, 1440975979374710784); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1440977767599443968, 1440976024471867392); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1418050797706416128, 1440976144311521280); -INSERT INTO `zz_sys_perm_code_perm` VALUES (1418050797706416128, 1440976259415805952); -COMMIT; - --- ---------------------------- --- Table structure for zz_sys_perm_module --- ---------------------------- -DROP TABLE IF EXISTS `zz_sys_perm_module`; -CREATE TABLE `zz_sys_perm_module` ( - `module_id` bigint NOT NULL COMMENT '权限模块id', - `parent_id` bigint DEFAULT '0' COMMENT '上级权限模块id', - `module_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '' COMMENT '权限模块名称', - `module_type` int NOT NULL COMMENT '模块类型(0: 普通模块 1: Controller模块)', - `show_order` int NOT NULL DEFAULT '0' COMMENT '权限模块在当前层级下的顺序,由小到大', - `create_user_id` bigint NOT NULL COMMENT '创建者Id', - `create_time` datetime NOT NULL COMMENT '创建时间', - `update_user_id` bigint NOT NULL COMMENT '更新者Id', - `update_time` datetime NOT NULL COMMENT '最后更新时间', - `deleted_flag` int NOT NULL COMMENT '逻辑删除标记(1: 正常 -1: 已删除)', - PRIMARY KEY (`module_id`) USING BTREE, - KEY `idx_show_order` (`show_order`) USING BTREE, - KEY `idx_parent_id` (`parent_id`) USING BTREE, - KEY `idx_module_type` (`module_type`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin ROW_FORMAT=COMPACT COMMENT='系统权限模块表'; - --- ---------------------------- --- Records of zz_sys_perm_module --- ---------------------------- -BEGIN; -INSERT INTO `zz_sys_perm_module` VALUES (1400625106979393536, NULL, '在线表单', 0, 5, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_module` VALUES (1400625224646397952, 1400625106979393536, '数据库连接', 1, 2, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_module` VALUES (1400625338886656000, 1400625106979393536, '页面管理', 1, 6, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_module` VALUES (1400625585851469824, 1400625106979393536, '在线表单字典管理', 1, 1, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_module` VALUES (1400625800033603584, 1400625106979393536, '数据表管理', 1, 3, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_module` VALUES (1400625906245963776, 1400625106979393536, '数据表字段', 1, 4, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_module` VALUES (1400626018774945792, 1400625106979393536, '字段验证规则', 1, 5, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_module` VALUES (1400626192725315584, 1400625106979393536, '数据源管理', 1, 7, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_module` VALUES (1400626237478539264, 1400625106979393536, '数据源关联', 1, 8, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_module` VALUES (1400626463740268544, 1400625106979393536, '表单管理', 1, 9, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_module` VALUES (1401532052901203970, NULL, '用户权限', 0, 1, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_module` VALUES (1401532056508305408, NULL, '系统配置', 0, 2, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_module` VALUES (1401532056508305409, NULL, '缺省分组', 0, 3, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_module` VALUES (1413404952566435840, 1400625106979393536, '虚拟字段管理', 1, 10, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_module` VALUES (1418028920103505920, NULL, '流程管理', 0, 6, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_module` VALUES (1418029566533832704, 1418028920103505920, '流程分类', 1, 1, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_module` VALUES (1418029615040958464, 1418028920103505920, '流程设计', 1, 2, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_module` VALUES (1418030256765276160, 1418028920103505920, '流程操作', 1, 4, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_module` VALUES (1418031999276290048, 1418028920103505920, '流程变量', 1, 3, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_module` VALUES (1418038955105849344, NULL, '工单列表', 0, 7, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_module` VALUES (1418051228918616064, 1418028920103505920, '启动流程', 1, 5, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_module` VALUES (1418051634793025536, 1418028920103505920, '审批流程', 1, 6, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_module` VALUES (1418054414190514176, 1418028920103505920, '流程审批数据', 1, 7, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_module` VALUES (1423635643371622400, 1418028920103505920, '已办任务', 1, 8, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_module` VALUES (1440911410581213184, 1401532052901203970, '部门管理', 1, 0, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_module` VALUES (1440911410581213198, 1401532052901203970, '用户管理', 1, 5, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_module` VALUES (1440911410581213210, 1401532052901203970, '角色管理', 1, 10, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_module` VALUES (1440911410581213222, 1401532052901203970, '数据权限管理', 1, 15, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_module` VALUES (1440911410581213232, 1401532052901203970, '岗位管理', 1, 20, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_module` VALUES (1440911410581213238, 1401532052901203970, '菜单管理', 1, 25, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_module` VALUES (1440911410581213246, 1401532052901203970, '权限字管理', 1, 30, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_module` VALUES (1440911410581213254, 1401532052901203970, '权限模块管理', 1, 35, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_module` VALUES (1440911410581213260, 1401532052901203970, '权限资源管理', 1, 40, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_module` VALUES (1440911410581213269, 1401532056508305408, '字典管理', 0, 0, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_module` VALUES (1440911410581213270, 1440911410581213269, '行政区划', 1, 1, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_module` VALUES (1440911410581213275, 1401532056508305408, '在线用户', 1, 5, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_perm_module` VALUES (1440975375537541120, 1418038955105849344, '请假申请', 1, 1, 1440911410581213417, '2021-09-23 17:44:36', 1440911410581213417, '2021-09-23 17:44:36', 1); -INSERT INTO `zz_sys_perm_module` VALUES (1440975429199466496, 1418038955105849344, '报销申请', 1, 2, 1440911410581213417, '2021-09-23 17:44:49', 1440911410581213417, '2021-09-23 17:44:49', 1); -INSERT INTO `zz_sys_perm_module` VALUES (1440975469133434880, 1418038955105849344, '合同审批', 1, 3, 1440911410581213417, '2021-09-23 17:44:59', 1440911410581213417, '2021-09-23 17:44:59', 1); -INSERT INTO `zz_sys_perm_module` VALUES (1440975527128076288, 1418038955105849344, '多实例加签', 1, 4, 1440911410581213417, '2021-09-23 17:45:12', 1440911410581213417, '2021-09-23 17:45:12', 1); -INSERT INTO `zz_sys_perm_module` VALUES (1440975571776442368, 1418038955105849344, '转办流程', 1, 5, 1440911410581213417, '2021-09-23 17:45:23', 1440911410581213417, '2021-09-23 17:45:32', 1); -COMMIT; - --- ---------------------------- --- Table structure for zz_sys_perm_whitelist --- ---------------------------- -DROP TABLE IF EXISTS `zz_sys_perm_whitelist`; -CREATE TABLE `zz_sys_perm_whitelist` ( - `perm_url` varchar(512) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '权限资源的url', - `module_name` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL COMMENT '权限资源所属模块名字(通常是Controller的名字)', - `perm_name` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL COMMENT '权限的名称', - PRIMARY KEY (`perm_url`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='权限资源白名单表(认证用户均可访问的url资源)'; - --- ---------------------------- --- Records of zz_sys_perm_whitelist --- ---------------------------- -BEGIN; -INSERT INTO `zz_sys_perm_whitelist` VALUES ('/admin/app/areaCode/listAll', '行政区划', '字典全部列表'); -INSERT INTO `zz_sys_perm_whitelist` VALUES ('/admin/app/areaCode/listDict', '行政区划', '行政区划列表'); -INSERT INTO `zz_sys_perm_whitelist` VALUES ('/admin/app/areaCode/listDictByIds', '行政区划', '行政区划批量Id列表'); -INSERT INTO `zz_sys_perm_whitelist` VALUES ('/admin/app/areaCode/listDictByParentId', '行政区划', '行政区划过滤列表'); -INSERT INTO `zz_sys_perm_whitelist` VALUES ('/admin/flow/flowCategory/listDict', '流程管理', '流程分类字典'); -INSERT INTO `zz_sys_perm_whitelist` VALUES ('/admin/flow/flowEntry/listDict', '流程管理', '流程字典'); -INSERT INTO `zz_sys_perm_whitelist` VALUES ('/admin/flow/flowEntry/viewDict', '流程管理', '流程部分数据查看'); -INSERT INTO `zz_sys_perm_whitelist` VALUES ('/admin/flow/flowOnlineOperation/listFlowEntryForm', '流程管理', '流程列表包含在线表单列表'); -INSERT INTO `zz_sys_perm_whitelist` VALUES ('/admin/flow/flowOperation/countRuntimeTask', '流程管理', '待办任务列表'); -INSERT INTO `zz_sys_perm_whitelist` VALUES ('/admin/online/onlineOperation/listDict', '在线表单', '在线表单字典'); -INSERT INTO `zz_sys_perm_whitelist` VALUES ('/admin/upms/login/doLogout', '登录模块', '退出登陆'); -INSERT INTO `zz_sys_perm_whitelist` VALUES ('/admin/upms/login/getLoginInfo', '登录模块', '获取登录信息'); -INSERT INTO `zz_sys_perm_whitelist` VALUES ('/admin/upms/sysDept/listDict', '部门管理', '部门字典字典列表'); -INSERT INTO `zz_sys_perm_whitelist` VALUES ('/admin/upms/sysDept/listDictByIds', '部门管理', '部门字典字典批量Id列表'); -INSERT INTO `zz_sys_perm_whitelist` VALUES ('/admin/upms/sysDept/listDictByParentId', '部门管理', '部门字典下一级字典列表'); -INSERT INTO `zz_sys_perm_whitelist` VALUES ('/admin/upms/sysDept/listSysDeptPostWithRelation', '系统管理', '部门岗位关联列表'); -INSERT INTO `zz_sys_perm_whitelist` VALUES ('/admin/upms/sysPost/listDict', '系统管理', '岗位字典接口'); -INSERT INTO `zz_sys_perm_whitelist` VALUES ('/admin/upms/sysPost/listDictByIds', '系统管理', '岗位字典接口'); -COMMIT; - --- ---------------------------- --- Table structure for zz_sys_post --- ---------------------------- -DROP TABLE IF EXISTS `zz_sys_post`; -CREATE TABLE `zz_sys_post` ( - `post_id` bigint NOT NULL COMMENT '岗位Id', - `post_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '岗位名称', - `level` int NOT NULL COMMENT '岗位层级,数值越小级别越高', - `leader_post` bit(1) NOT NULL DEFAULT b'0' COMMENT '是否领导岗位', - `create_user_id` bigint NOT NULL COMMENT '创建者Id', - `create_time` datetime NOT NULL COMMENT '创建时间', - `update_user_id` bigint NOT NULL COMMENT '更新者Id', - `update_time` datetime NOT NULL COMMENT '最后更新时间', - `deleted_flag` int NOT NULL COMMENT '逻辑删除标记(1: 正常 -1: 已删除)', - PRIMARY KEY (`post_id`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; - --- ---------------------------- --- Records of zz_sys_post --- ---------------------------- -BEGIN; -INSERT INTO `zz_sys_post` VALUES (1440963890539139072, '总经理', 1, b'1', 1440911410581213417, '2021-09-23 16:58:58', 1440911410581213417, '2021-09-23 16:59:27', 1); -INSERT INTO `zz_sys_post` VALUES (1440964040611336192, '副经理', 2, b'1', 1440911410581213417, '2021-09-23 16:59:34', 1440911410581213417, '2021-09-23 16:59:34', 1); -INSERT INTO `zz_sys_post` VALUES (1440964097913917440, '组长', 10, b'1', 1440911410581213417, '2021-09-23 16:59:47', 1440911410581213417, '2021-09-23 16:59:47', 1); -INSERT INTO `zz_sys_post` VALUES (1440964131539652608, '副组长', 11, b'1', 1440911410581213417, '2021-09-23 16:59:55', 1440911410581213417, '2021-09-23 16:59:55', 1); -INSERT INTO `zz_sys_post` VALUES (1440964157770829824, '组员', 20, b'0', 1440911410581213417, '2021-09-23 17:00:02', 1440911410581213417, '2021-09-23 17:00:02', 1); -COMMIT; - --- ---------------------------- --- Table structure for zz_sys_role --- ---------------------------- -DROP TABLE IF EXISTS `zz_sys_role`; -CREATE TABLE `zz_sys_role` ( - `role_id` bigint NOT NULL COMMENT '主键Id', - `role_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '角色名称', - `create_user_id` bigint NOT NULL COMMENT '创建者Id', - `create_time` datetime NOT NULL COMMENT '创建时间', - `update_user_id` bigint NOT NULL COMMENT '更新者Id', - `update_time` datetime NOT NULL COMMENT '最后更新时间', - `deleted_flag` int NOT NULL COMMENT '逻辑删除标记(1: 正常 -1: 已删除)', - PRIMARY KEY (`role_id`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin ROW_FORMAT=COMPACT COMMENT='系统角色表'; - --- ---------------------------- --- Records of zz_sys_role --- ---------------------------- -BEGIN; -INSERT INTO `zz_sys_role` VALUES (1440965195903012864, '查看全部', 1440911410581213417, '2021-09-23 17:04:09', 1440911410581213417, '2021-09-24 09:25:49', 1); -COMMIT; - --- ---------------------------- --- Table structure for zz_sys_role_menu --- ---------------------------- -DROP TABLE IF EXISTS `zz_sys_role_menu`; -CREATE TABLE `zz_sys_role_menu` ( - `role_id` bigint NOT NULL COMMENT '角色Id', - `menu_id` bigint NOT NULL COMMENT '菜单Id', - PRIMARY KEY (`role_id`,`menu_id`) USING BTREE, - KEY `idx_menu_id` (`menu_id`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin ROW_FORMAT=COMPACT COMMENT='角色与菜单对应关系表'; - --- ---------------------------- --- Records of zz_sys_role_menu --- ---------------------------- -BEGIN; -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1392786476428693504); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1392786549942259712); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1392786950682841088); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1401532054578925568); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1401532055971434496); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1401532055971434497); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1401532055971434498); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1401532055971434499); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1401532055971434500); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1401532055971434501); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1401532055971434502); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1401532055971434503); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1401532055971434504); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1418057714138877952); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1418057835631087616); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1418058049951633408); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1418058115667988480); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1418058170542067712); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1418058289182150656); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1418058515099947008); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1418058602723151872); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1418058744037642240); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1418058844164067328); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1418058907674218496); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1418059005175009280); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1418059167532322816); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1418059283920064512); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1423161217970606080); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1433040549035642880); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1440911410581213280); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1440911410581213281); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1440911410581213282); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1440911410581213283); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1440911410581213284); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1440911410581213285); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1440911410581213294); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1440911410581213295); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1440911410581213296); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1440911410581213297); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1440911410581213298); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1440911410581213299); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1440911410581213308); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1440911410581213309); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1440911410581213310); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1440911410581213311); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1440911410581213312); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1440911410581213313); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1440911410581213314); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1440911410581213315); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1440911410581213316); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1440911410581213317); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1440911410581213328); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1440911410581213329); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1440911410581213330); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1440911410581213331); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1440911410581213332); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1440911410581213333); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1440911410581213334); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1440911410581213335); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1440911410581213336); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1440911410581213346); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1440911410581213347); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1440911410581213348); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1440911410581213349); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1440911410581213350); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1440911410581213358); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1440911410581213359); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1440911410581213360); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1440911410581213361); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1440911410581213362); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1440911410581213370); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1440911410581213371); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1440911410581213372); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1440911410581213373); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1440911410581213374); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1440911410581213375); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1440911410581213376); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1440911410581213377); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1440911410581213388); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1440911410581213389); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1440911410581213390); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1440911410581213391); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1440911410581213392); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1440911410581213400); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1440911410581213401); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1440911410581213406); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1440911410581213407); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1440911410581213408); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1440911410581213409); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1440911410581213410); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1440973980537196544); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1440974056105971712); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1440974056110166016); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1440974056114360320); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1440974134195523584); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1440974134199717888); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1440974134203912192); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1440974233613111296); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1440974233617305600); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1440974233621499904); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1440974310754750464); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1440974580402360320); -INSERT INTO `zz_sys_role_menu` VALUES (1440965195903012864, 1440978065088843776); -COMMIT; - --- ---------------------------- --- Table structure for zz_sys_user --- ---------------------------- -DROP TABLE IF EXISTS `zz_sys_user`; -CREATE TABLE `zz_sys_user` ( - `user_id` bigint NOT NULL COMMENT '主键Id', - `login_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '用户登录名称', - `password` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '密码', - `show_name` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '用户显示名称', - `dept_id` bigint NOT NULL COMMENT '用户所在部门Id', - `user_type` int NOT NULL COMMENT '用户类型(0: 管理员 1: 系统管理用户 2: 系统业务用户)', - `head_image_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '用户头像的Url', - `user_status` int NOT NULL COMMENT '状态(0: 正常 1: 锁定)', - `create_user_id` bigint NOT NULL COMMENT '创建者Id', - `create_time` datetime NOT NULL COMMENT '创建时间', - `update_user_id` bigint NOT NULL COMMENT '更新者Id', - `update_time` datetime NOT NULL COMMENT '最后更新时间', - `deleted_flag` int NOT NULL COMMENT '删除标记(1: 正常 -1: 已删除)', - PRIMARY KEY (`user_id`) USING BTREE, - UNIQUE KEY `uk_login_name` (`login_name`) USING BTREE, - KEY `idx_dept_id` (`dept_id`) USING BTREE, - KEY `idx_status` (`user_status`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin ROW_FORMAT=COMPACT COMMENT='系统用户表'; - --- ---------------------------- --- Records of zz_sys_user --- ---------------------------- -BEGIN; -INSERT INTO `zz_sys_user` VALUES (1440911410581213417, 'admin', '$2a$10$GT/GXfypSJ.2f7.npoAAHuINPkC/VJttDGYBB3xyQqWt1bi9qEnL6', '管理员', 1440911410581213416, 0, 'CHANGE TO YOUR HEAD IMAGE URL!!!', 0, 1440911410581213417, '2021-09-23 00:00:00', 1440911410581213417, '2021-09-23 00:00:00', 1); -INSERT INTO `zz_sys_user` VALUES (1440965344985354240, 'leaderHR', '$2a$10$tLqussQ4t4n..A274vS9luxZI8zmxdQSkmwXcOU3egPJtyFIVDYj.', '人事经理', 1440963592970047488, 2, NULL, 0, 1440911410581213417, '2021-09-23 17:04:45', 1440911410581213417, '2021-09-23 17:04:45', 1); -INSERT INTO `zz_sys_user` VALUES (1440965465605148672, 'userA', '$2a$10$BGsgE5KA/hKV95.kCZmMleiUssNRpOGE0qMTkCGHsSiugnqSsaSFS', '员工A', 1440963592970047488, 2, NULL, 0, 1440911410581213417, '2021-09-23 17:05:14', 1440911410581213417, '2021-09-23 17:05:14', 1); -INSERT INTO `zz_sys_user` VALUES (1440965586715676672, 'userB', '$2a$10$J0obwzeNt3iWoArSdRCKLeABdcMwe/rJrPIoGNW.LFgCYKhFKC9Lu', '员工B', 1440963642542526464, 2, NULL, 0, 1440911410581213417, '2021-09-23 17:05:42', 1440911410581213417, '2021-09-23 17:05:42', 1); -INSERT INTO `zz_sys_user` VALUES (1440965697961201664, 'userC', '$2a$10$KukIvoMoncnpSafKnueXnOLEhI5V7cW0GBsGt9EkTGq482vsRgQwm', '员工C', 1440963642542526464, 2, NULL, 0, 1440911410581213417, '2021-09-23 17:06:09', 1440911410581213417, '2021-09-23 17:06:09', 1); -INSERT INTO `zz_sys_user` VALUES (1440965808049098752, 'leaderLaw', '$2a$10$8o2qUYKOpizH42gIs4hDU.TjrzzWu/tOJeQebvXISkAI3wscFbAl2', '法务经理', 1440963642542526464, 2, NULL, 0, 1440911410581213417, '2021-09-23 17:06:35', 1440911410581213417, '2021-09-23 17:06:35', 1); -INSERT INTO `zz_sys_user` VALUES (1440966073686953984, 'leaderTJ', '$2a$10$NLZDkFP/nLkGzo/blYJ7w.HmmZF8v12ByockmYXPZZ7cr/TqILB/u', '天津总监', 1440963698460987392, 2, NULL, 0, 1440911410581213417, '2021-09-23 17:07:39', 1440911410581213417, '2021-09-23 17:07:39', 1); -INSERT INTO `zz_sys_user` VALUES (1440966186522120192, 'leaderTJ2', '$2a$10$F7vVIJeC7OdHTNV050aqieJwJcBdjrUOCGjAE4wq0mESLb1Pn6yoe', '天津经理', 1440963698460987392, 2, NULL, 0, 1440911410581213417, '2021-09-23 17:08:05', 1440911410581213417, '2021-09-23 17:08:05', 1); -INSERT INTO `zz_sys_user` VALUES (1440966324770574336, 'userD', '$2a$10$7G2Lcw1GducD2FtCxQask.7lVRPRvKZk7YVZOsT319uXVtK2LQPji', '员工D', 1440963698460987392, 2, NULL, 0, 1440911410581213417, '2021-09-23 17:08:38', 1440911410581213417, '2021-09-23 17:08:38', 1); -INSERT INTO `zz_sys_user` VALUES (1440969706411397120, 'leader', '$2a$10$LgJRx/7YT.F6oUs4PPVpxuSYQBOdcXqx6dvdkaJmA7ObWdpJzhOQu', '总部领导', 1440911410581213416, 2, NULL, 0, 1440911410581213417, '2021-09-23 17:22:05', 1440911410581213417, '2021-09-23 17:22:05', 1); -COMMIT; - --- ---------------------------- --- Table structure for zz_sys_user_post --- ---------------------------- -DROP TABLE IF EXISTS `zz_sys_user_post`; -CREATE TABLE `zz_sys_user_post` ( - `user_id` bigint NOT NULL COMMENT '用户Id', - `dept_post_id` bigint NOT NULL COMMENT '部门岗位Id', - `post_id` bigint NOT NULL COMMENT '岗位Id', - PRIMARY KEY (`user_id`,`dept_post_id`) USING BTREE, - KEY `idx_post_id` (`post_id`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; - --- ---------------------------- --- Records of zz_sys_user_post --- ---------------------------- -BEGIN; -INSERT INTO `zz_sys_user_post` VALUES (1440966073686953984, 1440964519391137792, 1440963890539139072); -INSERT INTO `zz_sys_user_post` VALUES (1440969706411397120, 1440969551792574464, 1440963890539139072); -INSERT INTO `zz_sys_user_post` VALUES (1440966186522120192, 1440964519395332096, 1440964040611336192); -INSERT INTO `zz_sys_user_post` VALUES (1440965344985354240, 1440964221780103168, 1440964097913917440); -INSERT INTO `zz_sys_user_post` VALUES (1440965808049098752, 1440964387979399168, 1440964097913917440); -INSERT INTO `zz_sys_user_post` VALUES (1440965465605148672, 1440964221855600640, 1440964157770829824); -INSERT INTO `zz_sys_user_post` VALUES (1440965586715676672, 1440964387983593472, 1440964157770829824); -INSERT INTO `zz_sys_user_post` VALUES (1440965697961201664, 1440964387983593472, 1440964157770829824); -INSERT INTO `zz_sys_user_post` VALUES (1440966324770574336, 1440964519399526400, 1440964157770829824); -COMMIT; - --- ---------------------------- --- Table structure for zz_sys_user_role --- ---------------------------- -DROP TABLE IF EXISTS `zz_sys_user_role`; -CREATE TABLE `zz_sys_user_role` ( - `user_id` bigint NOT NULL COMMENT '用户Id', - `role_id` bigint NOT NULL COMMENT '角色Id', - PRIMARY KEY (`user_id`,`role_id`) USING BTREE, - KEY `idx_role_id` (`role_id`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin ROW_FORMAT=COMPACT COMMENT='用户与角色对应关系表'; - --- ---------------------------- --- Records of zz_sys_user_role --- ---------------------------- -BEGIN; -INSERT INTO `zz_sys_user_role` VALUES (1440965344985354240, 1440965195903012864); -INSERT INTO `zz_sys_user_role` VALUES (1440965465605148672, 1440965195903012864); -INSERT INTO `zz_sys_user_role` VALUES (1440965586715676672, 1440965195903012864); -INSERT INTO `zz_sys_user_role` VALUES (1440965697961201664, 1440965195903012864); -INSERT INTO `zz_sys_user_role` VALUES (1440965808049098752, 1440965195903012864); -INSERT INTO `zz_sys_user_role` VALUES (1440966073686953984, 1440965195903012864); -INSERT INTO `zz_sys_user_role` VALUES (1440966186522120192, 1440965195903012864); -INSERT INTO `zz_sys_user_role` VALUES (1440966324770574336, 1440965195903012864); -INSERT INTO `zz_sys_user_role` VALUES (1440969706411397120, 1440965195903012864); -COMMIT; - --- ---------------------------- --- Table structure for zz_test_flow_contract --- ---------------------------- -DROP TABLE IF EXISTS `zz_test_flow_contract`; -CREATE TABLE `zz_test_flow_contract` ( - `contract_id` bigint NOT NULL COMMENT '主键Id', - `first_party_id` bigint NOT NULL COMMENT '甲方信息Id', - `second_party_id` bigint NOT NULL COMMENT '乙方信息Id', - `contract_type` int NOT NULL COMMENT '合同类型', - `due_date` datetime NOT NULL COMMENT '到期日期', - `sales_id` bigint NOT NULL COMMENT '业务员Id', - `commission_rate` int NOT NULL COMMENT '提成比例', - `attachment` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '合同附件URL', - `security_attachment` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '保密协议附件URL', - `intellectual_property_attachment` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '知识产权协议附件', - `other_attachment` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '其他附件', - `create_user_id` bigint NOT NULL COMMENT '创建者', - `create_time` datetime NOT NULL COMMENT '创建时间', - `update_user_id` bigint NOT NULL COMMENT '更新者', - `update_time` datetime NOT NULL COMMENT '最后更新时间', - `deleted_flag` int NOT NULL DEFAULT '0' COMMENT '删除标记(1: 正常 -1: 已删除)', - PRIMARY KEY (`contract_id`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; - --- ---------------------------- --- Records of zz_test_flow_contract --- ---------------------------- -BEGIN; -INSERT INTO `zz_test_flow_contract` VALUES (1424647986075406336, 1424645184158699520, 1424645446290116608, 1, '2021-09-18 00:00:00', 1424607792735457280, 5, '[{\"name\":\"logo.png\",\"filename\":\"c29d9f9302c04114b559f130fe606c4f.png\"}]', '[{\"name\":\"新建位图图像.png\",\"filename\":\"d861d009ae2c46ddbb7ccaf2d679a639.png\"}]', '[{\"name\":\"logo.png\",\"filename\":\"46c75b9445f44540922a84f471f61340.png\"}]', '[{\"name\":\"新建位图图像.png\",\"filename\":\"08c56233600d4da9822c07f22bf4fa0e.png\"}]', 1424545631073996884, '2021-08-08 16:25:23', 1424545631073996884, '2021-08-08 16:25:23', 1); -INSERT INTO `zz_test_flow_contract` VALUES (1441215377508929536, 1424645184158699520, 1424645446290116608, 1, '2021-09-30 00:00:00', 1440966324770574336, 5, '[{\"name\":\"新建位图图像.png\",\"filename\":\"d9aa27ea7eec4375b123e11ce92ec9b5.png\"}]', '[{\"name\":\"新建位图图像.png\",\"filename\":\"0c20b1c7256148018451852ddae9f8aa.png\"}]', NULL, NULL, 1440966324770574336, '2021-09-24 09:38:17', 1440966324770574336, '2021-09-24 09:38:17', 1); -INSERT INTO `zz_test_flow_contract` VALUES (1441217206602960896, 1424645184158699520, 1424645446290116608, 1, '2021-10-09 00:00:00', 1440966324770574336, 7, '[{\"name\":\"新建位图图像.png\",\"filename\":\"dcd2db9b75664251a3baf595f6752d90.png\"}]', '[{\"name\":\"新建位图图像.png\",\"filename\":\"e85a5b89d3bd4a3f94d58b0630afc7af.png\"}]', NULL, NULL, 1440966324770574336, '2021-09-24 09:45:33', 1440966324770574336, '2021-09-24 09:45:33', 1); -INSERT INTO `zz_test_flow_contract` VALUES (1450750096739143680, 1424645184158699520, 1424645446290116608, 1, '2021-11-06 00:00:00', 1440966324770574336, 10, '[{\"name\":\"logo.png\",\"filename\":\"1a4d071f19164c19811e4067b21707d2.png\"}]', '[{\"name\":\"图片1.png\",\"filename\":\"5aa213bbea704ecdb480d7e655abea8b.png\"}]', NULL, NULL, 1440966324770574336, '2021-10-20 17:05:51', 1440966324770574336, '2021-10-20 17:05:51', 1); -INSERT INTO `zz_test_flow_contract` VALUES (1476752006788943872, 1424645184158699520, 1424645446290116608, 1, '2021-12-10 00:00:00', 1440911410581213417, 11, NULL, NULL, NULL, NULL, 1440911410581213417, '2021-12-31 11:08:10', 1440911410581213417, '2021-12-31 11:08:10', 1); -COMMIT; - --- ---------------------------- --- Table structure for zz_test_flow_contract_detail --- ---------------------------- -DROP TABLE IF EXISTS `zz_test_flow_contract_detail`; -CREATE TABLE `zz_test_flow_contract_detail` ( - `contract_detail_id` bigint NOT NULL COMMENT '主键Id', - `contract_id` bigint NOT NULL COMMENT '合同Id', - `product_id` bigint NOT NULL COMMENT '产品Id', - `total_count` int NOT NULL COMMENT '数量', - `total_amount` int NOT NULL COMMENT '总价', - `meno` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '备注', - `create_user_id` bigint NOT NULL COMMENT '创建者', - `create_time` datetime NOT NULL COMMENT '创建时间', - `update_user_id` bigint NOT NULL COMMENT '更新者', - `update_time` datetime NOT NULL COMMENT '最后更新时间', - `deleted_flag` int NOT NULL DEFAULT '0' COMMENT '删除标记(1: 正常 -1: 已删除)', - PRIMARY KEY (`contract_detail_id`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; - --- ---------------------------- --- Records of zz_test_flow_contract_detail --- ---------------------------- -BEGIN; -INSERT INTO `zz_test_flow_contract_detail` VALUES (1424647986087989249, 1424647986075406336, 1424645586203709440, 1, 12001, '加急', 1424545631073996884, '2021-08-08 16:25:23', 1424545631073996884, '2021-08-08 16:25:23', 1); -INSERT INTO `zz_test_flow_contract_detail` VALUES (1424647986092183552, 1424647986075406336, 1424645694550970368, 5, 143680, NULL, 1424545631073996884, '2021-08-08 16:25:23', 1424545631073996884, '2021-08-08 16:25:23', 1); -INSERT INTO `zz_test_flow_contract_detail` VALUES (1441215377550872576, 1441215377508929536, 1424645586203709440, 100, 1230000, '加急', 1440966324770574336, '2021-09-24 09:38:17', 1440966324770574336, '2021-09-24 09:38:17', 1); -INSERT INTO `zz_test_flow_contract_detail` VALUES (1441217206628126720, 1441217206602960896, 1424645586203709440, 50, 234000, '加急', 1440966324770574336, '2021-09-24 09:45:33', 1440966324770574336, '2021-09-24 09:45:33', 1); -INSERT INTO `zz_test_flow_contract_detail` VALUES (1450750096764309505, 1450750096739143680, 1424645586203709440, 5, 24863, '加急', 1440966324770574336, '2021-10-20 17:05:51', 1440966324770574336, '2021-10-20 17:05:51', 1); -COMMIT; - --- ---------------------------- --- Table structure for zz_test_flow_delivery_detail --- ---------------------------- -DROP TABLE IF EXISTS `zz_test_flow_delivery_detail`; -CREATE TABLE `zz_test_flow_delivery_detail` ( - `delivery_id` bigint NOT NULL COMMENT '主键Id', - `contract_id` bigint NOT NULL COMMENT '合同Id', - `delivery_date` datetime NOT NULL COMMENT '交付日期', - `product_id` bigint NOT NULL COMMENT '产品Id', - `total_count` int NOT NULL COMMENT '数量', - `memo` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '备注', - `create_user_id` bigint NOT NULL COMMENT '创建者', - `create_time` datetime NOT NULL COMMENT '创建时间', - `update_user_id` bigint NOT NULL COMMENT '更新者', - `update_time` datetime NOT NULL COMMENT '最后更新时间', - `deleted_flag` int NOT NULL DEFAULT '0' COMMENT '删除标记(1: 正常 -1: 已删除)', - PRIMARY KEY (`delivery_id`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; - --- ---------------------------- --- Records of zz_test_flow_delivery_detail --- ---------------------------- -BEGIN; -INSERT INTO `zz_test_flow_delivery_detail` VALUES (1424647986079600640, 1424647986075406336, '2021-08-14 00:00:00', 1424645586203709440, 1, NULL, 1424545631073996884, '2021-08-08 16:25:23', 1424545631073996884, '2021-08-08 16:25:23', 1); -INSERT INTO `zz_test_flow_delivery_detail` VALUES (1424647986083794944, 1424647986075406336, '2021-08-28 00:00:00', 1424645694550970368, 2, NULL, 1424545631073996884, '2021-08-08 16:25:23', 1424545631073996884, '2021-08-08 16:25:23', 1); -INSERT INTO `zz_test_flow_delivery_detail` VALUES (1424647986087989248, 1424647986075406336, '2021-09-11 00:00:00', 1424645694550970368, 3, NULL, 1424545631073996884, '2021-08-08 16:25:23', 1424545631073996884, '2021-08-08 16:25:23', 1); -INSERT INTO `zz_test_flow_delivery_detail` VALUES (1441215377538289664, 1441215377508929536, '2021-09-27 00:00:00', 1424645586203709440, 40, NULL, 1440966324770574336, '2021-09-24 09:38:17', 1440966324770574336, '2021-09-24 09:38:17', 1); -INSERT INTO `zz_test_flow_delivery_detail` VALUES (1441215377546678272, 1441215377508929536, '2021-09-30 00:00:00', 1424645586203709440, 60, '加急', 1440966324770574336, '2021-09-24 09:38:17', 1440966324770574336, '2021-09-24 09:38:17', 1); -INSERT INTO `zz_test_flow_delivery_detail` VALUES (1441217206619738113, 1441217206602960896, '2021-09-27 00:00:00', 1424645586203709440, 20, NULL, 1440966324770574336, '2021-09-24 09:45:33', 1440966324770574336, '2021-09-24 09:45:33', 1); -INSERT INTO `zz_test_flow_delivery_detail` VALUES (1441217206623932416, 1441217206602960896, '2021-09-29 00:00:00', 1424645586203709440, 30, NULL, 1440966324770574336, '2021-09-24 09:45:33', 1440966324770574336, '2021-09-24 09:45:33', 1); -INSERT INTO `zz_test_flow_delivery_detail` VALUES (1450750096760115200, 1450750096739143680, '2021-10-27 00:00:00', 1424645586203709440, 3, '加急', 1440966324770574336, '2021-10-20 17:05:51', 1440966324770574336, '2021-10-20 17:05:51', 1); -INSERT INTO `zz_test_flow_delivery_detail` VALUES (1450750096764309504, 1450750096739143680, '2021-11-03 00:00:00', 1424645586203709440, 2, NULL, 1440966324770574336, '2021-10-20 17:05:51', 1440966324770574336, '2021-10-20 17:05:51', 1); -COMMIT; - --- ---------------------------- --- Table structure for zz_test_flow_first_party --- ---------------------------- -DROP TABLE IF EXISTS `zz_test_flow_first_party`; -CREATE TABLE `zz_test_flow_first_party` ( - `first_party_id` bigint NOT NULL COMMENT '主键Id', - `company_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '公司名称', - `legal_person` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '法人', - `legal_person_id` char(18) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '法人身份证号', - `registry_address` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '注册地址', - `contact_info` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '联系方式', - `business_scope` varchar(4000) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '经营范围', - `memo` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '备注', - `create_user_id` bigint NOT NULL COMMENT '创建者', - `create_time` datetime NOT NULL COMMENT '创建时间', - `update_user_id` bigint NOT NULL COMMENT '更新者', - `update_time` datetime NOT NULL COMMENT '最后更新时间', - `deleted_flag` int NOT NULL DEFAULT '0' COMMENT '删除标记(1: 正常 -1: 已删除)', - PRIMARY KEY (`first_party_id`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; - --- ---------------------------- --- Records of zz_test_flow_first_party --- ---------------------------- -BEGIN; -INSERT INTO `zz_test_flow_first_party` VALUES (1424645184158699520, '天津哈哈乐商贸公司', '王哈哈', '120104197604150375', '天津市津南区', '022-23451234', '商贸商贸', '天津商贸', 1424545631073996884, '2021-08-08 16:14:15', 1424545631073996884, '2021-08-08 16:14:15', 1); -COMMIT; - --- ---------------------------- --- Table structure for zz_test_flow_leave --- ---------------------------- -DROP TABLE IF EXISTS `zz_test_flow_leave`; -CREATE TABLE `zz_test_flow_leave` ( - `id` bigint NOT NULL COMMENT '主键Id', - `user_id` bigint NOT NULL COMMENT '请假用户Id', - `leave_reason` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '请假原因', - `leave_type` int NOT NULL COMMENT '请假类型', - `leave_begin_time` datetime NOT NULL COMMENT '请假开始时间', - `leave_end_time` datetime NOT NULL COMMENT '请假结束时间', - `apply_time` datetime NOT NULL COMMENT '申请时间', - PRIMARY KEY (`id`) USING BTREE, - KEY `idx_user_id` (`user_id`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; - --- ---------------------------- --- Records of zz_test_flow_leave --- ---------------------------- -BEGIN; -INSERT INTO `zz_test_flow_leave` VALUES (1424636082313498624, 1424545631073996884, '请假2天', 1, '2021-08-01 00:00:00', '2021-08-02 00:00:00', '2021-08-08 15:38:05'); -INSERT INTO `zz_test_flow_leave` VALUES (1424649303212691456, 1424545631073996884, '请假一天', 1, '2021-08-01 00:00:00', '2021-08-01 00:00:00', '2021-08-08 16:30:37'); -INSERT INTO `zz_test_flow_leave` VALUES (1424652775060410368, 1424545631073996884, '请假2天', 1, '2021-08-01 00:00:00', '2021-08-02 00:00:00', '2021-08-08 16:44:25'); -INSERT INTO `zz_test_flow_leave` VALUES (1424653286929076224, 1424545631073996884, '请假一天', 1, '2021-08-01 00:00:00', '2021-08-01 00:00:00', '2021-08-08 16:46:27'); -INSERT INTO `zz_test_flow_leave` VALUES (1424653896705380352, 1424545631073996884, '请假3天!!!', 2, '2021-08-01 00:00:00', '2021-08-03 00:00:00', '2021-08-08 16:48:52'); -INSERT INTO `zz_test_flow_leave` VALUES (1424654125999591424, 1424545631073996884, '结婚了结婚了', 3, '2021-08-01 00:00:00', '2021-08-07 00:00:00', '2021-08-08 16:49:47'); -INSERT INTO `zz_test_flow_leave` VALUES (1424657782186971136, 1424654900813369344, '请假请假', 1, '2021-08-01 00:00:00', '2021-08-07 00:00:00', '2021-08-08 17:04:19'); -INSERT INTO `zz_test_flow_leave` VALUES (1424658915961868288, 1424545631073996884, '测试', 1, '2021-08-01 00:00:00', '2021-08-07 00:00:00', '2021-08-08 17:08:49'); -INSERT INTO `zz_test_flow_leave` VALUES (1424659588543680512, 1424608402885054464, '测试请假', 1, '2021-08-01 00:00:00', '2021-08-02 00:00:00', '2021-08-08 17:11:29'); -INSERT INTO `zz_test_flow_leave` VALUES (1424659995714129920, 1424608402885054464, '测试了测试了', 1, '2021-08-01 00:00:00', '2021-08-07 00:00:00', '2021-08-08 17:13:07'); -INSERT INTO `zz_test_flow_leave` VALUES (1424660095102357504, 1424608402885054464, '测试了测试了!!!', 1, '2021-08-01 00:00:00', '2021-08-07 00:00:00', '2021-08-08 17:13:30'); -INSERT INTO `zz_test_flow_leave` VALUES (1441213240326492160, 1440966324770574336, '请假一天', 1, '2021-09-17 00:00:00', '2021-09-18 00:00:00', '2021-09-24 09:29:48'); -INSERT INTO `zz_test_flow_leave` VALUES (1441218427220922368, 1440911410581213417, '请假2天', 1, '2021-09-02 00:00:00', '2021-09-04 00:00:00', '2021-09-24 09:50:24'); -INSERT INTO `zz_test_flow_leave` VALUES (1450732253180071936, 1440966324770574336, '请假一天', 1, '2021-10-20 00:00:00', '2021-10-21 00:00:00', '2021-10-20 15:54:57'); -INSERT INTO `zz_test_flow_leave` VALUES (1450745828686696448, 1440966324770574336, '世界辣么大,我想去看看', 1, '2021-10-20 00:00:00', '2021-10-21 00:00:00', '2021-10-20 16:48:54'); -INSERT INTO `zz_test_flow_leave` VALUES (1450747274836578304, 1440966324770574336, '世界辣么大,我想去看看', 1, '2021-10-20 00:00:00', '2021-10-21 00:00:00', '2021-10-20 16:54:39'); -INSERT INTO `zz_test_flow_leave` VALUES (1450749438409576448, 1440966324770574336, '结束单身狗的生涯', 3, '2021-10-20 00:00:00', '2021-10-27 00:00:00', '2021-10-20 17:03:14'); -INSERT INTO `zz_test_flow_leave` VALUES (1450753187064582144, 1440966324770574336, '请假3天', 2, '2021-10-21 00:00:00', '2021-10-23 00:00:00', '2021-10-20 17:18:08'); -INSERT INTO `zz_test_flow_leave` VALUES (1476751923557175296, 1440911410581213417, '1111', 1, '2021-12-01 00:00:00', '2021-12-04 00:00:00', '2021-12-31 11:07:50'); -INSERT INTO `zz_test_flow_leave` VALUES (1476752044185358336, 1440911410581213417, '111', 1, '2021-12-01 00:00:00', '2021-12-08 00:00:00', '2021-12-31 11:08:19'); -INSERT INTO `zz_test_flow_leave` VALUES (1476752083360157696, 1440911410581213417, '111222', 1, '2021-12-01 00:00:00', '2021-12-09 00:00:00', '2021-12-31 11:08:28'); -COMMIT; - --- ---------------------------- --- Table structure for zz_test_flow_pay_detail --- ---------------------------- -DROP TABLE IF EXISTS `zz_test_flow_pay_detail`; -CREATE TABLE `zz_test_flow_pay_detail` ( - `pay_detail_id` bigint NOT NULL COMMENT '主键Id', - `contract_id` bigint NOT NULL COMMENT '合同Id', - `pay_date` datetime NOT NULL COMMENT '付款日期', - `pay_type` int NOT NULL COMMENT '付款类型', - `percentage` int NOT NULL COMMENT '百分比', - `memo` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '备注', - `create_user_id` bigint NOT NULL COMMENT '创建者', - `create_time` datetime NOT NULL COMMENT '创建时间', - `update_user_id` bigint NOT NULL COMMENT '更新者', - `update_time` datetime NOT NULL COMMENT '最后更新时间', - `deleted_flag` int NOT NULL DEFAULT '0' COMMENT '删除标记(1: 正常 -1: 已删除)', - PRIMARY KEY (`pay_detail_id`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; - --- ---------------------------- --- Records of zz_test_flow_pay_detail --- ---------------------------- -BEGIN; -INSERT INTO `zz_test_flow_pay_detail` VALUES (1424647986096377856, 1424647986075406336, '2021-08-18 00:00:00', 1, 20, '预付款', 1424545631073996884, '2021-08-08 16:25:23', 1424545631073996884, '2021-08-08 16:25:23', 1); -INSERT INTO `zz_test_flow_pay_detail` VALUES (1424647986100572160, 1424647986075406336, '2021-08-28 00:00:00', 2, 50, '分期款', 1424545631073996884, '2021-08-08 16:25:23', 1424545631073996884, '2021-08-08 16:25:23', 1); -INSERT INTO `zz_test_flow_pay_detail` VALUES (1424647986104766464, 1424647986075406336, '2021-09-04 00:00:00', 2, 29, '分期款', 1424545631073996884, '2021-08-08 16:25:23', 1424545631073996884, '2021-08-08 16:25:23', 1); -INSERT INTO `zz_test_flow_pay_detail` VALUES (1424647986108960768, 1424647986075406336, '2021-09-17 00:00:00', 3, 10, '尾款', 1424545631073996884, '2021-08-08 16:25:23', 1424545631073996884, '2021-08-08 16:25:23', 1); -INSERT INTO `zz_test_flow_pay_detail` VALUES (1441215377521512448, 1441215377508929536, '2021-09-25 00:00:00', 1, 20, NULL, 1440966324770574336, '2021-09-24 09:38:17', 1440966324770574336, '2021-09-24 09:38:17', 1); -INSERT INTO `zz_test_flow_pay_detail` VALUES (1441215377529901056, 1441215377508929536, '2021-09-28 00:00:00', 2, 60, NULL, 1440966324770574336, '2021-09-24 09:38:17', 1440966324770574336, '2021-09-24 09:38:17', 1); -INSERT INTO `zz_test_flow_pay_detail` VALUES (1441215377534095360, 1441215377508929536, '2021-10-05 00:00:00', 3, 20, NULL, 1440966324770574336, '2021-09-24 09:38:17', 1440966324770574336, '2021-09-24 09:38:17', 1); -INSERT INTO `zz_test_flow_pay_detail` VALUES (1441217206607155200, 1441217206602960896, '2021-09-26 00:00:00', 1, 20, NULL, 1440966324770574336, '2021-09-24 09:45:33', 1440966324770574336, '2021-09-24 09:45:33', 1); -INSERT INTO `zz_test_flow_pay_detail` VALUES (1441217206611349504, 1441217206602960896, '2021-10-01 00:00:00', 2, 40, NULL, 1440966324770574336, '2021-09-24 09:45:33', 1440966324770574336, '2021-09-24 09:45:33', 1); -INSERT INTO `zz_test_flow_pay_detail` VALUES (1441217206615543808, 1441217206602960896, '2021-10-07 00:00:00', 2, 30, NULL, 1440966324770574336, '2021-09-24 09:45:33', 1440966324770574336, '2021-09-24 09:45:33', 1); -INSERT INTO `zz_test_flow_pay_detail` VALUES (1441217206619738112, 1441217206602960896, '2021-10-15 00:00:00', 3, 10, NULL, 1440966324770574336, '2021-09-24 09:45:33', 1440966324770574336, '2021-09-24 09:45:33', 1); -INSERT INTO `zz_test_flow_pay_detail` VALUES (1450750096747532288, 1450750096739143680, '2021-10-23 00:00:00', 1, 30, NULL, 1440966324770574336, '2021-10-20 17:05:51', 1440966324770574336, '2021-10-20 17:05:51', 1); -INSERT INTO `zz_test_flow_pay_detail` VALUES (1450750096751726592, 1450750096739143680, '2021-10-26 00:00:00', 2, 40, NULL, 1440966324770574336, '2021-10-20 17:05:51', 1440966324770574336, '2021-10-20 17:05:51', 1); -INSERT INTO `zz_test_flow_pay_detail` VALUES (1450750096755920896, 1450750096739143680, '2021-11-02 00:00:00', 3, 30, NULL, 1440966324770574336, '2021-10-20 17:05:51', 1440966324770574336, '2021-10-20 17:05:51', 1); -COMMIT; - --- ---------------------------- --- Table structure for zz_test_flow_product --- ---------------------------- -DROP TABLE IF EXISTS `zz_test_flow_product`; -CREATE TABLE `zz_test_flow_product` ( - `product_id` bigint NOT NULL COMMENT '主键Id', - `product_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '产品名称', - `product_spec` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '规格', - `type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '型号', - `cost_price` int NOT NULL COMMENT '成本价', - `memo` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '备注', - `create_user_id` bigint NOT NULL COMMENT '创建者', - `create_time` datetime NOT NULL COMMENT '创建时间', - `update_user_id` bigint NOT NULL COMMENT '更新者', - `update_time` datetime NOT NULL COMMENT '最后更新时间', - `deleted_flag` int NOT NULL DEFAULT '0' COMMENT '删除标记(1: 正常 -1: 已删除)', - PRIMARY KEY (`product_id`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; - --- ---------------------------- --- Records of zz_test_flow_product --- ---------------------------- -BEGIN; -INSERT INTO `zz_test_flow_product` VALUES (1424645586203709440, '单动薄板拉伸(冲压)液压机', '630T', '630T', 12001, '机身采用四柱整体框架或组合框架结构,均为全钢板焊接;四角八面直角导轨导向、精度高,刚性好,并采用液压预紧。', 1424545631073996884, '2021-08-08 16:15:51', 1424545631073996884, '2021-08-08 16:15:51', 1); -INSERT INTO `zz_test_flow_product` VALUES (1424645694550970368, '单动薄板拉伸液压机', '315T', 'YLL27', 143680, '机身采用四柱整体框架或组合框架结构,均为全钢板焊接;四角八面直角导轨导向、精度高,刚性好,并采用液压预紧。液压系统采用二通插装集成阀;整个系统工作稳定、可靠、使用寿命长、泄露少、故障点少。', 1424545631073996884, '2021-08-08 16:16:17', 1424545631073996884, '2021-08-08 16:16:17', 1); -INSERT INTO `zz_test_flow_product` VALUES (1424645807918813184, '单柱校正液压机', '210T', 'YLL30', 89000, '计算机优化直立式C型结构设计,刚性好。机器各部件均安装于机身内,外形整齐美观。液压系统采用手动换向阀,调速方便。具有手动和脚踏两种操作方式。机器行程、压力可在规定范围内调节。', 1424545631073996884, '2021-08-08 16:16:44', 1424545631073996884, '2021-08-08 16:16:44', 1); -COMMIT; - --- ---------------------------- --- Table structure for zz_test_flow_second_party --- ---------------------------- -DROP TABLE IF EXISTS `zz_test_flow_second_party`; -CREATE TABLE `zz_test_flow_second_party` ( - `second_party_id` bigint NOT NULL COMMENT '主键Id', - `company_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '公司名称', - `legal_person` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '法人', - `legal_person_id` char(18) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '法人身份证号', - `registry_address` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '注册地址', - `contact_info` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '联系方式', - `business_scope` varchar(4000) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '经营范围', - `memo` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '备注', - `create_user_id` bigint NOT NULL COMMENT '创建者', - `create_time` datetime NOT NULL COMMENT '创建时间', - `update_user_id` bigint NOT NULL COMMENT '更新者', - `update_time` datetime NOT NULL COMMENT '最后更新时间', - `deleted_flag` int NOT NULL DEFAULT '0' COMMENT '删除标记(1: 正常 -1: 已删除)', - PRIMARY KEY (`second_party_id`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; - --- ---------------------------- --- Records of zz_test_flow_second_party --- ---------------------------- -BEGIN; -INSERT INTO `zz_test_flow_second_party` VALUES (1424645446290116608, '天津乐呵呵公司', '乐呵呵', '120106197003150043', '天津市河东区', '022-12345678', '乐呵呵乐呵呵', '乐呵呵乐呵呵', 1424545631073996884, '2021-08-08 16:15:18', 1424545631073996884, '2021-08-08 16:15:18', 1); -COMMIT; - --- ---------------------------- --- Table structure for zz_test_flow_submit --- ---------------------------- -DROP TABLE IF EXISTS `zz_test_flow_submit`; -CREATE TABLE `zz_test_flow_submit` ( - `id` bigint NOT NULL COMMENT '主键Id', - `submit_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '报销名称', - `submit_kind` int NOT NULL COMMENT '报销类别', - `total_amount` int NOT NULL COMMENT '报销金额', - `description` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '报销描述', - `memo` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '备注', - `update_user_id` bigint DEFAULT NULL COMMENT '修改人', - `update_time` datetime DEFAULT NULL COMMENT '修改时间', - `create_user_id` bigint NOT NULL COMMENT '创建人', - `create_time` datetime NOT NULL COMMENT '创建时间', - PRIMARY KEY (`id`) USING BTREE, - KEY `idx_submit_kind` (`submit_kind`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; - --- ---------------------------- --- Records of zz_test_flow_submit --- ---------------------------- -BEGIN; -INSERT INTO `zz_test_flow_submit` VALUES (1424636815804993536, '7月份出差报销', 1, 1200, '7月份出差报销', '出差报销', 1424545631073996884, '2021-08-08 15:41:47', 1424545631073996884, '2021-08-08 15:41:00'); -INSERT INTO `zz_test_flow_submit` VALUES (1441213876367527936, '出差报销', 1, 1200, '出差', '出差', 1440966324770574336, '2021-09-24 09:32:19', 1440966324770574336, '2021-09-24 09:32:19'); -INSERT INTO `zz_test_flow_submit` VALUES (1441312736167333888, '出差', 1, 800, '出差', NULL, 1440966324770574336, '2021-09-24 16:05:09', 1440966324770574336, '2021-09-24 16:05:09'); -INSERT INTO `zz_test_flow_submit` VALUES (1441340309442138112, '团建', 2, 500, '团建', NULL, 1440966324770574336, '2021-09-24 17:54:43', 1440966324770574336, '2021-09-24 17:54:43'); -INSERT INTO `zz_test_flow_submit` VALUES (1450748608977571840, '出差报销', 1, 1200, '出差见客户', '去广州出差拜访客户', 1440966324770574336, '2021-10-20 16:59:57', 1440966324770574336, '2021-10-20 16:59:57'); -INSERT INTO `zz_test_flow_submit` VALUES (1476751964434862080, '1111', 1, 11, '1111', '1111', 1440911410581213417, '2021-12-31 11:08:00', 1440911410581213417, '2021-12-31 11:08:00'); -COMMIT; - --- ---------------------------- --- Table structure for zz_test_flow_submit_detail --- ---------------------------- -DROP TABLE IF EXISTS `zz_test_flow_submit_detail`; -CREATE TABLE `zz_test_flow_submit_detail` ( - `id` bigint NOT NULL COMMENT '主键Id', - `submit_id` bigint NOT NULL COMMENT '报销单据Id', - `expense_type` int NOT NULL COMMENT '费用类型', - `expense_time` datetime NOT NULL COMMENT '发生日期', - `amount` int NOT NULL COMMENT '金额', - `image_url` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '上传图片URL', - `description` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '费用描述', - PRIMARY KEY (`id`) USING BTREE, - KEY `idx_submit_id` (`submit_id`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; - --- ---------------------------- --- Records of zz_test_flow_submit_detail --- ---------------------------- -BEGIN; -INSERT INTO `zz_test_flow_submit_detail` VALUES (1424636815809187840, 1424636815804993536, 1, '2021-07-06 00:00:00', 500, '[{\"name\":\"图片1.png\",\"filename\":\"5981b24ffaf640a590b57c462d9ff889.png\"}]', '住宿一天'); -INSERT INTO `zz_test_flow_submit_detail` VALUES (1424636815813382144, 1424636815804993536, 2, '2021-07-22 00:00:00', 700, '[{\"name\":\"logo.png\",\"filename\":\"4b63d00a0e3b420a9e86e751ba210f6a.png\"}]', '交通费用'); -INSERT INTO `zz_test_flow_submit_detail` VALUES (1441213876384305152, 1441213876367527936, 1, '2021-09-23 00:00:00', 600, '[{\"name\":\"logo.png\",\"filename\":\"38b7e4a097654ff38e176846ba005fcf.png\"}]', NULL); -INSERT INTO `zz_test_flow_submit_detail` VALUES (1441312736230248448, 1441312736167333888, 1, '2021-09-24 00:00:00', 600, '[{\"name\":\"logo.png\",\"filename\":\"1252138daaf744a3b1fdf06a07c5a173.png\"}]', '吃饭'); -INSERT INTO `zz_test_flow_submit_detail` VALUES (1441340309446332416, 1441340309442138112, 1, '2021-09-30 00:00:00', 500, '[{\"name\":\"logo.png\",\"filename\":\"f33b658b052f487c9a34af274f48dcd3.png\"}]', '团建费用'); -INSERT INTO `zz_test_flow_submit_detail` VALUES (1450748608985960448, 1450748608977571840, 1, '2021-10-13 00:00:00', 600, '[{\"name\":\"logo.png\",\"filename\":\"7240adc317f24378bfac20f283fb4202.png\"}]', NULL); -INSERT INTO `zz_test_flow_submit_detail` VALUES (1450748608994349056, 1450748608977571840, 2, '2021-10-13 00:00:00', 600, '[{\"name\":\"图片1.png\",\"filename\":\"ea216ab90a04492d96befa8fadd5a862.png\"}]', '高铁'); -COMMIT; - -SET FOREIGN_KEY_CHECKS = 1; diff --git a/images/orange-demo-activiti-service/zz-resource/docker-files/docker-compose.yml b/images/orange-demo-activiti-service/zz-resource/docker-files/docker-compose.yml deleted file mode 100644 index 94903d49..00000000 --- a/images/orange-demo-activiti-service/zz-resource/docker-files/docker-compose.yml +++ /dev/null @@ -1,16 +0,0 @@ -version: '3.2' - -services: - - redis: - container_name: redis - build: - context: services/redis/ - args: - - REDIS_VER=4 - ports: - - "6379:6379" - volumes: - - ./services/redis/redis.conf:/usr/local/etc/redis/redis.conf:rw - - ./data/redis:/data:rw - - ./logs/redis:/var/log/:rw diff --git a/images/orange-demo-activiti-service/zz-resource/docker-files/services/redis/Dockerfile b/images/orange-demo-activiti-service/zz-resource/docker-files/services/redis/Dockerfile deleted file mode 100644 index 924bd9d6..00000000 --- a/images/orange-demo-activiti-service/zz-resource/docker-files/services/redis/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -ARG REDIS_VER - -FROM redis:${REDIS_VER} - -COPY redis.conf /usr/local/etc/redis/redis.conf -CMD ["redis-server", "/usr/local/etc/redis/redis.conf"] - -# 设置时区为上海 -ENV TZ=Asia/Shanghai -RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone - -# Ubuntu软件源选择中国的服务器 -RUN sed -i 's/archive.ubuntu.com/mirrors.ustc.edu.cn/g' /etc/apt/sources.list \ No newline at end of file diff --git a/images/orange-demo-activiti-service/zz-resource/docker-files/services/redis/redis.conf b/images/orange-demo-activiti-service/zz-resource/docker-files/services/redis/redis.conf deleted file mode 100644 index 2eecfa5a..00000000 --- a/images/orange-demo-activiti-service/zz-resource/docker-files/services/redis/redis.conf +++ /dev/null @@ -1,1307 +0,0 @@ -# Redis configuration file example. -# -# Note that in order to read the configuration file, Redis must be -# started with the file path as first argument: -# -# ./redis-server /path/to/redis.conf - -# Note on units: when memory size is needed, it is possible to specify -# it in the usual form of 1k 5GB 4M and so forth: -# -# 1k => 1000 bytes -# 1kb => 1024 bytes -# 1m => 1000000 bytes -# 1mb => 1024*1024 bytes -# 1g => 1000000000 bytes -# 1gb => 1024*1024*1024 bytes -# -# units are case insensitive so 1GB 1Gb 1gB are all the same. - -################################## INCLUDES ################################### - -# Include one or more other config files here. This is useful if you -# have a standard template that goes to all Redis servers but also need -# to customize a few per-server settings. Include files can include -# other files, so use this wisely. -# -# Notice option "include" won't be rewritten by command "CONFIG REWRITE" -# from admin or Redis Sentinel. Since Redis always uses the last processed -# line as value of a configuration directive, you'd better put includes -# at the beginning of this file to avoid overwriting config change at runtime. -# -# If instead you are interested in using includes to override configuration -# options, it is better to use include as the last line. -# -# include /path/to/local.conf -# include /path/to/other.conf - -################################## MODULES ##################################### - -# Load modules at startup. If the server is not able to load modules -# it will abort. It is possible to use multiple loadmodule directives. -# -# loadmodule /path/to/my_module.so -# loadmodule /path/to/other_module.so - -################################## NETWORK ##################################### - -# By default, if no "bind" configuration directive is specified, Redis listens -# for connections from all the network interfaces available on the server. -# It is possible to listen to just one or multiple selected interfaces using -# the "bind" configuration directive, followed by one or more IP addresses. -# -# Examples: -# -# bind 192.168.1.100 10.0.0.1 -# bind 127.0.0.1 ::1 -# -# ~~~ WARNING ~~~ If the computer running Redis is directly exposed to the -# internet, binding to all the interfaces is dangerous and will expose the -# instance to everybody on the internet. So by default we uncomment the -# following bind directive, that will force Redis to listen only into -# the IPv4 lookback interface address (this means Redis will be able to -# accept connections only from clients running into the same computer it -# is running). -# -# IF YOU ARE SURE YOU WANT YOUR INSTANCE TO LISTEN TO ALL THE INTERFACES -# JUST COMMENT THE FOLLOWING LINE. -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -bind 0.0.0.0 - -# Protected mode is a layer of security protection, in order to avoid that -# Redis instances left open on the internet are accessed and exploited. -# -# When protected mode is on and if: -# -# 1) The server is not binding explicitly to a set of addresses using the -# "bind" directive. -# 2) No password is configured. -# -# The server only accepts connections from clients connecting from the -# IPv4 and IPv6 loopback addresses 127.0.0.1 and ::1, and from Unix domain -# sockets. -# -# By default protected mode is enabled. You should disable it only if -# you are sure you want clients from other hosts to connect to Redis -# even if no authentication is configured, nor a specific set of interfaces -# are explicitly listed using the "bind" directive. -protected-mode yes - -# Accept connections on the specified port, default is 6379 (IANA #815344). -# If port 0 is specified Redis will not listen on a TCP socket. -port 6379 - -# TCP listen() backlog. -# -# In high requests-per-second environments you need an high backlog in order -# to avoid slow clients connections issues. Note that the Linux kernel -# will silently truncate it to the value of /proc/sys/net/core/somaxconn so -# make sure to raise both the value of somaxconn and tcp_max_syn_backlog -# in order to get the desired effect. -tcp-backlog 511 - -# Unix socket. -# -# Specify the path for the Unix socket that will be used to listen for -# incoming connections. There is no default, so Redis will not listen -# on a unix socket when not specified. -# -# unixsocket /tmp/redis.sock -# unixsocketperm 700 - -# Close the connection after a client is idle for N seconds (0 to disable) -timeout 0 - -# TCP keepalive. -# -# If non-zero, use SO_KEEPALIVE to send TCP ACKs to clients in absence -# of communication. This is useful for two reasons: -# -# 1) Detect dead peers. -# 2) Take the connection alive from the point of view of network -# equipment in the middle. -# -# On Linux, the specified value (in seconds) is the period used to send ACKs. -# Note that to close the connection the double of the time is needed. -# On other kernels the period depends on the kernel configuration. -# -# A reasonable value for this option is 300 seconds, which is the new -# Redis default starting with Redis 3.2.1. -tcp-keepalive 300 - -################################# GENERAL ##################################### - -# By default Redis does not run as a daemon. Use 'yes' if you need it. -# Note that Redis will write a pid file in /var/run/redis.pid when daemonized. -daemonize no - -# If you run Redis from upstart or systemd, Redis can interact with your -# supervision tree. Options: -# supervised no - no supervision interaction -# supervised upstart - signal upstart by putting Redis into SIGSTOP mode -# supervised systemd - signal systemd by writing READY=1 to $NOTIFY_SOCKET -# supervised auto - detect upstart or systemd method based on -# UPSTART_JOB or NOTIFY_SOCKET environment variables -# Note: these supervision methods only signal "process is ready." -# They do not enable continuous liveness pings back to your supervisor. -supervised no - -# If a pid file is specified, Redis writes it where specified at startup -# and removes it at exit. -# -# When the server runs non daemonized, no pid file is created if none is -# specified in the configuration. When the server is daemonized, the pid file -# is used even if not specified, defaulting to "/var/run/redis.pid". -# -# Creating a pid file is best effort: if Redis is not able to create it -# nothing bad happens, the server will start and run normally. -pidfile /var/run/redis_6379.pid - -# Specify the server verbosity level. -# This can be one of: -# debug (a lot of information, useful for development/testing) -# verbose (many rarely useful info, but not a mess like the debug level) -# notice (moderately verbose, what you want in production probably) -# warning (only very important / critical messages are logged) -loglevel notice - -# Specify the log file name. Also the empty string can be used to force -# Redis to log on the standard output. Note that if you use standard -# output for logging but daemonize, logs will be sent to /dev/null -logfile /var/log/redis_6379.log - -# To enable logging to the system logger, just set 'syslog-enabled' to yes, -# and optionally update the other syslog parameters to suit your needs. -# syslog-enabled no - -# Specify the syslog identity. -# syslog-ident redis - -# Specify the syslog facility. Must be USER or between LOCAL0-LOCAL7. -# syslog-facility local0 - -# Set the number of databases. The default database is DB 0, you can select -# a different one on a per-connection basis using SELECT where -# dbid is a number between 0 and 'databases'-1 -databases 16 - -# By default Redis shows an ASCII art logo only when started to log to the -# standard output and if the standard output is a TTY. Basically this means -# that normally a logo is displayed only in interactive sessions. -# -# However it is possible to force the pre-4.0 behavior and always show a -# ASCII art logo in startup logs by setting the following option to yes. -always-show-logo yes - -################################ SNAPSHOTTING ################################ -# -# Save the DB on disk: -# -# save -# -# Will save the DB if both the given number of seconds and the given -# number of write operations against the DB occurred. -# -# In the example below the behaviour will be to save: -# after 900 sec (15 min) if at least 1 key changed -# after 300 sec (5 min) if at least 10 keys changed -# after 60 sec if at least 10000 keys changed -# -# Note: you can disable saving completely by commenting out all "save" lines. -# -# It is also possible to remove all the previously configured save -# points by adding a save directive with a single empty string argument -# like in the following example: -# -# save "" - -save 900 1 -save 300 10 -save 60 10000 - -# By default Redis will stop accepting writes if RDB snapshots are enabled -# (at least one save point) and the latest background save failed. -# This will make the user aware (in a hard way) that data is not persisting -# on disk properly, otherwise chances are that no one will notice and some -# disaster will happen. -# -# If the background saving process will start working again Redis will -# automatically allow writes again. -# -# However if you have setup your proper monitoring of the Redis server -# and persistence, you may want to disable this feature so that Redis will -# continue to work as usual even if there are problems with disk, -# permissions, and so forth. -stop-writes-on-bgsave-error yes - -# Compress string objects using LZF when dump .rdb databases? -# For default that's set to 'yes' as it's almost always a win. -# If you want to save some CPU in the saving child set it to 'no' but -# the dataset will likely be bigger if you have compressible values or keys. -rdbcompression yes - -# Since version 5 of RDB a CRC64 checksum is placed at the end of the file. -# This makes the format more resistant to corruption but there is a performance -# hit to pay (around 10%) when saving and loading RDB files, so you can disable it -# for maximum performances. -# -# RDB files created with checksum disabled have a checksum of zero that will -# tell the loading code to skip the check. -rdbchecksum yes - -# The filename where to dump the DB -dbfilename dump.rdb - -# The working directory. -# -# The DB will be written inside this directory, with the filename specified -# above using the 'dbfilename' configuration directive. -# -# The Append Only File will also be created inside this directory. -# -# Note that you must specify a directory here, not a file name. -dir ./ - -################################# REPLICATION ################################# - -# Master-Slave replication. Use slaveof to make a Redis instance a copy of -# another Redis server. A few things to understand ASAP about Redis replication. -# -# 1) Redis replication is asynchronous, but you can configure a master to -# stop accepting writes if it appears to be not connected with at least -# a given number of slaves. -# 2) Redis slaves are able to perform a partial resynchronization with the -# master if the replication link is lost for a relatively small amount of -# time. You may want to configure the replication backlog size (see the next -# sections of this file) with a sensible value depending on your needs. -# 3) Replication is automatic and does not need user intervention. After a -# network partition slaves automatically try to reconnect to masters -# and resynchronize with them. -# -# slaveof - -# If the master is password protected (using the "requirepass" configuration -# directive below) it is possible to tell the slave to authenticate before -# starting the replication synchronization process, otherwise the master will -# refuse the slave request. -# -# masterauth - -# When a slave loses its connection with the master, or when the replication -# is still in progress, the slave can act in two different ways: -# -# 1) if slave-serve-stale-data is set to 'yes' (the default) the slave will -# still reply to client requests, possibly with out of date data, or the -# data set may just be empty if this is the first synchronization. -# -# 2) if slave-serve-stale-data is set to 'no' the slave will reply with -# an error "SYNC with master in progress" to all the kind of commands -# but to INFO and SLAVEOF. -# -slave-serve-stale-data yes - -# You can configure a slave instance to accept writes or not. Writing against -# a slave instance may be useful to store some ephemeral data (because data -# written on a slave will be easily deleted after resync with the master) but -# may also cause problems if clients are writing to it because of a -# misconfiguration. -# -# Since Redis 2.6 by default slaves are read-only. -# -# Note: read only slaves are not designed to be exposed to untrusted clients -# on the internet. It's just a protection layer against misuse of the instance. -# Still a read only slave exports by default all the administrative commands -# such as CONFIG, DEBUG, and so forth. To a limited extent you can improve -# security of read only slaves using 'rename-command' to shadow all the -# administrative / dangerous commands. -slave-read-only yes - -# Replication SYNC strategy: disk or socket. -# -# ------------------------------------------------------- -# WARNING: DISKLESS REPLICATION IS EXPERIMENTAL CURRENTLY -# ------------------------------------------------------- -# -# New slaves and reconnecting slaves that are not able to continue the replication -# process just receiving differences, need to do what is called a "full -# synchronization". An RDB file is transmitted from the master to the slaves. -# The transmission can happen in two different ways: -# -# 1) Disk-backed: The Redis master creates a new process that writes the RDB -# file on disk. Later the file is transferred by the parent -# process to the slaves incrementally. -# 2) Diskless: The Redis master creates a new process that directly writes the -# RDB file to slave sockets, without touching the disk at all. -# -# With disk-backed replication, while the RDB file is generated, more slaves -# can be queued and served with the RDB file as soon as the current child producing -# the RDB file finishes its work. With diskless replication instead once -# the transfer starts, new slaves arriving will be queued and a new transfer -# will start when the current one terminates. -# -# When diskless replication is used, the master waits a configurable amount of -# time (in seconds) before starting the transfer in the hope that multiple slaves -# will arrive and the transfer can be parallelized. -# -# With slow disks and fast (large bandwidth) networks, diskless replication -# works better. -repl-diskless-sync no - -# When diskless replication is enabled, it is possible to configure the delay -# the server waits in order to spawn the child that transfers the RDB via socket -# to the slaves. -# -# This is important since once the transfer starts, it is not possible to serve -# new slaves arriving, that will be queued for the next RDB transfer, so the server -# waits a delay in order to let more slaves arrive. -# -# The delay is specified in seconds, and by default is 5 seconds. To disable -# it entirely just set it to 0 seconds and the transfer will start ASAP. -repl-diskless-sync-delay 5 - -# Slaves send PINGs to server in a predefined interval. It's possible to change -# this interval with the repl_ping_slave_period option. The default value is 10 -# seconds. -# -# repl-ping-slave-period 10 - -# The following option sets the replication timeout for: -# -# 1) Bulk transfer I/O during SYNC, from the point of view of slave. -# 2) Master timeout from the point of view of slaves (data, pings). -# 3) Slave timeout from the point of view of masters (REPLCONF ACK pings). -# -# It is important to make sure that this value is greater than the value -# specified for repl-ping-slave-period otherwise a timeout will be detected -# every time there is low traffic between the master and the slave. -# -# repl-timeout 60 - -# Disable TCP_NODELAY on the slave socket after SYNC? -# -# If you select "yes" Redis will use a smaller number of TCP packets and -# less bandwidth to send data to slaves. But this can add a delay for -# the data to appear on the slave side, up to 40 milliseconds with -# Linux kernels using a default configuration. -# -# If you select "no" the delay for data to appear on the slave side will -# be reduced but more bandwidth will be used for replication. -# -# By default we optimize for low latency, but in very high traffic conditions -# or when the master and slaves are many hops away, turning this to "yes" may -# be a good idea. -repl-disable-tcp-nodelay no - -# Set the replication backlog size. The backlog is a buffer that accumulates -# slave data when slaves are disconnected for some time, so that when a slave -# wants to reconnect again, often a full resync is not needed, but a partial -# resync is enough, just passing the portion of data the slave missed while -# disconnected. -# -# The bigger the replication backlog, the longer the time the slave can be -# disconnected and later be able to perform a partial resynchronization. -# -# The backlog is only allocated once there is at least a slave connected. -# -# repl-backlog-size 1mb - -# After a master has no longer connected slaves for some time, the backlog -# will be freed. The following option configures the amount of seconds that -# need to elapse, starting from the time the last slave disconnected, for -# the backlog buffer to be freed. -# -# Note that slaves never free the backlog for timeout, since they may be -# promoted to masters later, and should be able to correctly "partially -# resynchronize" with the slaves: hence they should always accumulate backlog. -# -# A value of 0 means to never release the backlog. -# -# repl-backlog-ttl 3600 - -# The slave priority is an integer number published by Redis in the INFO output. -# It is used by Redis Sentinel in order to select a slave to promote into a -# master if the master is no longer working correctly. -# -# A slave with a low priority number is considered better for promotion, so -# for instance if there are three slaves with priority 10, 100, 25 Sentinel will -# pick the one with priority 10, that is the lowest. -# -# However a special priority of 0 marks the slave as not able to perform the -# role of master, so a slave with priority of 0 will never be selected by -# Redis Sentinel for promotion. -# -# By default the priority is 100. -slave-priority 100 - -# It is possible for a master to stop accepting writes if there are less than -# N slaves connected, having a lag less or equal than M seconds. -# -# The N slaves need to be in "online" state. -# -# The lag in seconds, that must be <= the specified value, is calculated from -# the last ping received from the slave, that is usually sent every second. -# -# This option does not GUARANTEE that N replicas will accept the write, but -# will limit the window of exposure for lost writes in case not enough slaves -# are available, to the specified number of seconds. -# -# For example to require at least 3 slaves with a lag <= 10 seconds use: -# -# min-slaves-to-write 3 -# min-slaves-max-lag 10 -# -# Setting one or the other to 0 disables the feature. -# -# By default min-slaves-to-write is set to 0 (feature disabled) and -# min-slaves-max-lag is set to 10. - -# A Redis master is able to list the address and port of the attached -# slaves in different ways. For example the "INFO replication" section -# offers this information, which is used, among other tools, by -# Redis Sentinel in order to discover slave instances. -# Another place where this info is available is in the output of the -# "ROLE" command of a master. -# -# The listed IP and address normally reported by a slave is obtained -# in the following way: -# -# IP: The address is auto detected by checking the peer address -# of the socket used by the slave to connect with the master. -# -# Port: The port is communicated by the slave during the replication -# handshake, and is normally the port that the slave is using to -# list for connections. -# -# However when port forwarding or Network Address Translation (NAT) is -# used, the slave may be actually reachable via different IP and port -# pairs. The following two options can be used by a slave in order to -# report to its master a specific set of IP and port, so that both INFO -# and ROLE will report those values. -# -# There is no need to use both the options if you need to override just -# the port or the IP address. -# -# slave-announce-ip 5.5.5.5 -# slave-announce-port 1234 - -################################## SECURITY ################################### - -# Require clients to issue AUTH before processing any other -# commands. This might be useful in environments in which you do not trust -# others with access to the host running redis-server. -# -# This should stay commented out for backward compatibility and because most -# people do not need auth (e.g. they run their own servers). -# -# Warning: since Redis is pretty fast an outside user can try up to -# 150k passwords per second against a good box. This means that you should -# use a very strong password otherwise it will be very easy to break. -# -# requirepass foobared - -# Command renaming. -# -# It is possible to change the name of dangerous commands in a shared -# environment. For instance the CONFIG command may be renamed into something -# hard to guess so that it will still be available for internal-use tools -# but not available for general clients. -# -# Example: -# -# rename-command CONFIG b840fc02d524045429941cc15f59e41cb7be6c52 -# -# It is also possible to completely kill a command by renaming it into -# an empty string: -# -# rename-command CONFIG "" -# -# Please note that changing the name of commands that are logged into the -# AOF file or transmitted to slaves may cause problems. - -################################### CLIENTS #################################### - -# Set the max number of connected clients at the same time. By default -# this limit is set to 10000 clients, however if the Redis server is not -# able to configure the process file limit to allow for the specified limit -# the max number of allowed clients is set to the current file limit -# minus 32 (as Redis reserves a few file descriptors for internal uses). -# -# Once the limit is reached Redis will close all the new connections sending -# an error 'max number of clients reached'. -# -# maxclients 10000 - -############################## MEMORY MANAGEMENT ################################ - -# Set a memory usage limit to the specified amount of bytes. -# When the memory limit is reached Redis will try to remove keys -# according to the eviction policy selected (see maxmemory-policy). -# -# If Redis can't remove keys according to the policy, or if the policy is -# set to 'noeviction', Redis will start to reply with errors to commands -# that would use more memory, like SET, LPUSH, and so on, and will continue -# to reply to read-only commands like GET. -# -# This option is usually useful when using Redis as an LRU or LFU cache, or to -# set a hard memory limit for an instance (using the 'noeviction' policy). -# -# WARNING: If you have slaves attached to an instance with maxmemory on, -# the size of the output buffers needed to feed the slaves are subtracted -# from the used memory count, so that network problems / resyncs will -# not trigger a loop where keys are evicted, and in turn the output -# buffer of slaves is full with DELs of keys evicted triggering the deletion -# of more keys, and so forth until the database is completely emptied. -# -# In short... if you have slaves attached it is suggested that you set a lower -# limit for maxmemory so that there is some free RAM on the system for slave -# output buffers (but this is not needed if the policy is 'noeviction'). -# -# maxmemory - -# MAXMEMORY POLICY: how Redis will select what to remove when maxmemory -# is reached. You can select among five behaviors: -# -# volatile-lru -> Evict using approximated LRU among the keys with an expire set. -# allkeys-lru -> Evict any key using approximated LRU. -# volatile-lfu -> Evict using approximated LFU among the keys with an expire set. -# allkeys-lfu -> Evict any key using approximated LFU. -# volatile-random -> Remove a random key among the ones with an expire set. -# allkeys-random -> Remove a random key, any key. -# volatile-ttl -> Remove the key with the nearest expire time (minor TTL) -# noeviction -> Don't evict anything, just return an error on write operations. -# -# LRU means Least Recently Used -# LFU means Least Frequently Used -# -# Both LRU, LFU and volatile-ttl are implemented using approximated -# randomized algorithms. -# -# Note: with any of the above policies, Redis will return an error on write -# operations, when there are no suitable keys for eviction. -# -# At the date of writing these commands are: set setnx setex append -# incr decr rpush lpush rpushx lpushx linsert lset rpoplpush sadd -# sinter sinterstore sunion sunionstore sdiff sdiffstore zadd zincrby -# zunionstore zinterstore hset hsetnx hmset hincrby incrby decrby -# getset mset msetnx exec sort -# -# The default is: -# -# maxmemory-policy noeviction - -# LRU, LFU and minimal TTL algorithms are not precise algorithms but approximated -# algorithms (in order to save memory), so you can tune it for speed or -# accuracy. For default Redis will check five keys and pick the one that was -# used less recently, you can change the sample size using the following -# configuration directive. -# -# The default of 5 produces good enough results. 10 Approximates very closely -# true LRU but costs more CPU. 3 is faster but not very accurate. -# -# maxmemory-samples 5 - -############################# LAZY FREEING #################################### - -# Redis has two primitives to delete keys. One is called DEL and is a blocking -# deletion of the object. It means that the server stops processing new commands -# in order to reclaim all the memory associated with an object in a synchronous -# way. If the key deleted is associated with a small object, the time needed -# in order to execute the DEL command is very small and comparable to most other -# O(1) or O(log_N) commands in Redis. However if the key is associated with an -# aggregated value containing millions of elements, the server can block for -# a long time (even seconds) in order to complete the operation. -# -# For the above reasons Redis also offers non blocking deletion primitives -# such as UNLINK (non blocking DEL) and the ASYNC option of FLUSHALL and -# FLUSHDB commands, in order to reclaim memory in background. Those commands -# are executed in constant time. Another thread will incrementally free the -# object in the background as fast as possible. -# -# DEL, UNLINK and ASYNC option of FLUSHALL and FLUSHDB are user-controlled. -# It's up to the design of the application to understand when it is a good -# idea to use one or the other. However the Redis server sometimes has to -# delete keys or flush the whole database as a side effect of other operations. -# Specifically Redis deletes objects independently of a user call in the -# following scenarios: -# -# 1) On eviction, because of the maxmemory and maxmemory policy configurations, -# in order to make room for new data, without going over the specified -# memory limit. -# 2) Because of expire: when a key with an associated time to live (see the -# EXPIRE command) must be deleted from memory. -# 3) Because of a side effect of a command that stores data on a key that may -# already exist. For example the RENAME command may delete the old key -# content when it is replaced with another one. Similarly SUNIONSTORE -# or SORT with STORE option may delete existing keys. The SET command -# itself removes any old content of the specified key in order to replace -# it with the specified string. -# 4) During replication, when a slave performs a full resynchronization with -# its master, the content of the whole database is removed in order to -# load the RDB file just transfered. -# -# In all the above cases the default is to delete objects in a blocking way, -# like if DEL was called. However you can configure each case specifically -# in order to instead release memory in a non-blocking way like if UNLINK -# was called, using the following configuration directives: - -lazyfree-lazy-eviction no -lazyfree-lazy-expire no -lazyfree-lazy-server-del no -slave-lazy-flush no - -############################## APPEND ONLY MODE ############################### - -# By default Redis asynchronously dumps the dataset on disk. This mode is -# good enough in many applications, but an issue with the Redis process or -# a power outage may result into a few minutes of writes lost (depending on -# the configured save points). -# -# The Append Only File is an alternative persistence mode that provides -# much better durability. For instance using the default data fsync policy -# (see later in the config file) Redis can lose just one second of writes in a -# dramatic event like a server power outage, or a single write if something -# wrong with the Redis process itself happens, but the operating system is -# still running correctly. -# -# AOF and RDB persistence can be enabled at the same time without problems. -# If the AOF is enabled on startup Redis will load the AOF, that is the file -# with the better durability guarantees. -# -# Please check http://redis.io/topics/persistence for more information. - -appendonly no - -# The name of the append only file (default: "appendonly.aof") - -appendfilename "appendonly.aof" - -# The fsync() call tells the Operating System to actually write data on disk -# instead of waiting for more data in the output buffer. Some OS will really flush -# data on disk, some other OS will just try to do it ASAP. -# -# Redis supports three different modes: -# -# no: don't fsync, just let the OS flush the data when it wants. Faster. -# always: fsync after every write to the append only log. Slow, Safest. -# everysec: fsync only one time every second. Compromise. -# -# The default is "everysec", as that's usually the right compromise between -# speed and data safety. It's up to you to understand if you can relax this to -# "no" that will let the operating system flush the output buffer when -# it wants, for better performances (but if you can live with the idea of -# some data loss consider the default persistence mode that's snapshotting), -# or on the contrary, use "always" that's very slow but a bit safer than -# everysec. -# -# More details please check the following article: -# http://antirez.com/post/redis-persistence-demystified.html -# -# If unsure, use "everysec". - -# appendfsync always -appendfsync everysec -# appendfsync no - -# When the AOF fsync policy is set to always or everysec, and a background -# saving process (a background save or AOF log background rewriting) is -# performing a lot of I/O against the disk, in some Linux configurations -# Redis may block too long on the fsync() call. Note that there is no fix for -# this currently, as even performing fsync in a different thread will block -# our synchronous write(2) call. -# -# In order to mitigate this problem it's possible to use the following option -# that will prevent fsync() from being called in the main process while a -# BGSAVE or BGREWRITEAOF is in progress. -# -# This means that while another child is saving, the durability of Redis is -# the same as "appendfsync none". In practical terms, this means that it is -# possible to lose up to 30 seconds of log in the worst scenario (with the -# default Linux settings). -# -# If you have latency problems turn this to "yes". Otherwise leave it as -# "no" that is the safest pick from the point of view of durability. - -no-appendfsync-on-rewrite no - -# Automatic rewrite of the append only file. -# Redis is able to automatically rewrite the log file implicitly calling -# BGREWRITEAOF when the AOF log size grows by the specified percentage. -# -# This is how it works: Redis remembers the size of the AOF file after the -# latest rewrite (if no rewrite has happened since the restart, the size of -# the AOF at startup is used). -# -# This base size is compared to the current size. If the current size is -# bigger than the specified percentage, the rewrite is triggered. Also -# you need to specify a minimal size for the AOF file to be rewritten, this -# is useful to avoid rewriting the AOF file even if the percentage increase -# is reached but it is still pretty small. -# -# Specify a percentage of zero in order to disable the automatic AOF -# rewrite feature. - -auto-aof-rewrite-percentage 100 -auto-aof-rewrite-min-size 64mb - -# An AOF file may be found to be truncated at the end during the Redis -# startup process, when the AOF data gets loaded back into memory. -# This may happen when the system where Redis is running -# crashes, especially when an ext4 filesystem is mounted without the -# data=ordered option (however this can't happen when Redis itself -# crashes or aborts but the operating system still works correctly). -# -# Redis can either exit with an error when this happens, or load as much -# data as possible (the default now) and start if the AOF file is found -# to be truncated at the end. The following option controls this behavior. -# -# If aof-load-truncated is set to yes, a truncated AOF file is loaded and -# the Redis server starts emitting a log to inform the user of the event. -# Otherwise if the option is set to no, the server aborts with an error -# and refuses to start. When the option is set to no, the user requires -# to fix the AOF file using the "redis-check-aof" utility before to restart -# the server. -# -# Note that if the AOF file will be found to be corrupted in the middle -# the server will still exit with an error. This option only applies when -# Redis will try to read more data from the AOF file but not enough bytes -# will be found. -aof-load-truncated yes - -# When rewriting the AOF file, Redis is able to use an RDB preamble in the -# AOF file for faster rewrites and recoveries. When this option is turned -# on the rewritten AOF file is composed of two different stanzas: -# -# [RDB file][AOF tail] -# -# When loading Redis recognizes that the AOF file starts with the "REDIS" -# string and loads the prefixed RDB file, and continues loading the AOF -# tail. -# -# This is currently turned off by default in order to avoid the surprise -# of a format change, but will at some point be used as the default. -aof-use-rdb-preamble no - -################################ LUA SCRIPTING ############################### - -# Max execution time of a Lua script in milliseconds. -# -# If the maximum execution time is reached Redis will log that a script is -# still in execution after the maximum allowed time and will start to -# reply to queries with an error. -# -# When a long running script exceeds the maximum execution time only the -# SCRIPT KILL and SHUTDOWN NOSAVE commands are available. The first can be -# used to stop a script that did not yet called write commands. The second -# is the only way to shut down the server in the case a write command was -# already issued by the script but the user doesn't want to wait for the natural -# termination of the script. -# -# Set it to 0 or a negative value for unlimited execution without warnings. -lua-time-limit 5000 - -################################ REDIS CLUSTER ############################### -# -# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -# WARNING EXPERIMENTAL: Redis Cluster is considered to be stable code, however -# in order to mark it as "mature" we need to wait for a non trivial percentage -# of users to deploy it in production. -# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -# -# Normal Redis instances can't be part of a Redis Cluster; only nodes that are -# started as cluster nodes can. In order to start a Redis instance as a -# cluster node enable the cluster support uncommenting the following: -# -# cluster-enabled yes - -# Every cluster node has a cluster configuration file. This file is not -# intended to be edited by hand. It is created and updated by Redis nodes. -# Every Redis Cluster node requires a different cluster configuration file. -# Make sure that instances running in the same system do not have -# overlapping cluster configuration file names. -# -# cluster-config-file nodes-6379.conf - -# Cluster node timeout is the amount of milliseconds a node must be unreachable -# for it to be considered in failure state. -# Most other internal time limits are multiple of the node timeout. -# -# cluster-node-timeout 15000 - -# A slave of a failing master will avoid to start a failover if its data -# looks too old. -# -# There is no simple way for a slave to actually have an exact measure of -# its "data age", so the following two checks are performed: -# -# 1) If there are multiple slaves able to failover, they exchange messages -# in order to try to give an advantage to the slave with the best -# replication offset (more data from the master processed). -# Slaves will try to get their rank by offset, and apply to the start -# of the failover a delay proportional to their rank. -# -# 2) Every single slave computes the time of the last interaction with -# its master. This can be the last ping or command received (if the master -# is still in the "connected" state), or the time that elapsed since the -# disconnection with the master (if the replication link is currently down). -# If the last interaction is too old, the slave will not try to failover -# at all. -# -# The point "2" can be tuned by user. Specifically a slave will not perform -# the failover if, since the last interaction with the master, the time -# elapsed is greater than: -# -# (node-timeout * slave-validity-factor) + repl-ping-slave-period -# -# So for example if node-timeout is 30 seconds, and the slave-validity-factor -# is 10, and assuming a default repl-ping-slave-period of 10 seconds, the -# slave will not try to failover if it was not able to talk with the master -# for longer than 310 seconds. -# -# A large slave-validity-factor may allow slaves with too old data to failover -# a master, while a too small value may prevent the cluster from being able to -# elect a slave at all. -# -# For maximum availability, it is possible to set the slave-validity-factor -# to a value of 0, which means, that slaves will always try to failover the -# master regardless of the last time they interacted with the master. -# (However they'll always try to apply a delay proportional to their -# offset rank). -# -# Zero is the only value able to guarantee that when all the partitions heal -# the cluster will always be able to continue. -# -# cluster-slave-validity-factor 10 - -# Cluster slaves are able to migrate to orphaned masters, that are masters -# that are left without working slaves. This improves the cluster ability -# to resist to failures as otherwise an orphaned master can't be failed over -# in case of failure if it has no working slaves. -# -# Slaves migrate to orphaned masters only if there are still at least a -# given number of other working slaves for their old master. This number -# is the "migration barrier". A migration barrier of 1 means that a slave -# will migrate only if there is at least 1 other working slave for its master -# and so forth. It usually reflects the number of slaves you want for every -# master in your cluster. -# -# Default is 1 (slaves migrate only if their masters remain with at least -# one slave). To disable migration just set it to a very large value. -# A value of 0 can be set but is useful only for debugging and dangerous -# in production. -# -# cluster-migration-barrier 1 - -# By default Redis Cluster nodes stop accepting queries if they detect there -# is at least an hash slot uncovered (no available node is serving it). -# This way if the cluster is partially down (for example a range of hash slots -# are no longer covered) all the cluster becomes, eventually, unavailable. -# It automatically returns available as soon as all the slots are covered again. -# -# However sometimes you want the subset of the cluster which is working, -# to continue to accept queries for the part of the key space that is still -# covered. In order to do so, just set the cluster-require-full-coverage -# option to no. -# -# cluster-require-full-coverage yes - -# In order to setup your cluster make sure to read the documentation -# available at http://redis.io web site. - -########################## CLUSTER DOCKER/NAT support ######################## - -# In certain deployments, Redis Cluster nodes address discovery fails, because -# addresses are NAT-ted or because ports are forwarded (the typical case is -# Docker and other containers). -# -# In order to make Redis Cluster working in such environments, a static -# configuration where each node knows its public address is needed. The -# following two options are used for this scope, and are: -# -# * cluster-announce-ip -# * cluster-announce-port -# * cluster-announce-bus-port -# -# Each instruct the node about its address, client port, and cluster message -# bus port. The information is then published in the header of the bus packets -# so that other nodes will be able to correctly map the address of the node -# publishing the information. -# -# If the above options are not used, the normal Redis Cluster auto-detection -# will be used instead. -# -# Note that when remapped, the bus port may not be at the fixed offset of -# clients port + 10000, so you can specify any port and bus-port depending -# on how they get remapped. If the bus-port is not set, a fixed offset of -# 10000 will be used as usually. -# -# Example: -# -# cluster-announce-ip 10.1.1.5 -# cluster-announce-port 6379 -# cluster-announce-bus-port 6380 - -################################## SLOW LOG ################################### - -# The Redis Slow Log is a system to log queries that exceeded a specified -# execution time. The execution time does not include the I/O operations -# like talking with the client, sending the reply and so forth, -# but just the time needed to actually execute the command (this is the only -# stage of command execution where the thread is blocked and can not serve -# other requests in the meantime). -# -# You can configure the slow log with two parameters: one tells Redis -# what is the execution time, in microseconds, to exceed in order for the -# command to get logged, and the other parameter is the length of the -# slow log. When a new command is logged the oldest one is removed from the -# queue of logged commands. - -# The following time is expressed in microseconds, so 1000000 is equivalent -# to one second. Note that a negative number disables the slow log, while -# a value of zero forces the logging of every command. -slowlog-log-slower-than 10000 - -# There is no limit to this length. Just be aware that it will consume memory. -# You can reclaim memory used by the slow log with SLOWLOG RESET. -slowlog-max-len 128 - -################################ LATENCY MONITOR ############################## - -# The Redis latency monitoring subsystem samples different operations -# at runtime in order to collect data related to possible sources of -# latency of a Redis instance. -# -# Via the LATENCY command this information is available to the user that can -# print graphs and obtain reports. -# -# The system only logs operations that were performed in a time equal or -# greater than the amount of milliseconds specified via the -# latency-monitor-threshold configuration directive. When its value is set -# to zero, the latency monitor is turned off. -# -# By default latency monitoring is disabled since it is mostly not needed -# if you don't have latency issues, and collecting data has a performance -# impact, that while very small, can be measured under big load. Latency -# monitoring can easily be enabled at runtime using the command -# "CONFIG SET latency-monitor-threshold " if needed. -latency-monitor-threshold 0 - -############################# EVENT NOTIFICATION ############################## - -# Redis can notify Pub/Sub clients about events happening in the key space. -# This feature is documented at http://redis.io/topics/notifications -# -# For instance if keyspace events notification is enabled, and a client -# performs a DEL operation on key "foo" stored in the Database 0, two -# messages will be published via Pub/Sub: -# -# PUBLISH __keyspace@0__:foo del -# PUBLISH __keyevent@0__:del foo -# -# It is possible to select the events that Redis will notify among a set -# of classes. Every class is identified by a single character: -# -# K Keyspace events, published with __keyspace@__ prefix. -# E Keyevent events, published with __keyevent@__ prefix. -# g Generic commands (non-type specific) like DEL, EXPIRE, RENAME, ... -# $ String commands -# l List commands -# s Set commands -# h Hash commands -# z Sorted set commands -# x Expired events (events generated every time a key expires) -# e Evicted events (events generated when a key is evicted for maxmemory) -# A Alias for g$lshzxe, so that the "AKE" string means all the events. -# -# The "notify-keyspace-events" takes as argument a string that is composed -# of zero or multiple characters. The empty string means that notifications -# are disabled. -# -# Example: to enable list and generic events, from the point of view of the -# event name, use: -# -# notify-keyspace-events Elg -# -# Example 2: to get the stream of the expired keys subscribing to channel -# name __keyevent@0__:expired use: -# -# notify-keyspace-events Ex -# -# By default all notifications are disabled because most users don't need -# this feature and the feature has some overhead. Note that if you don't -# specify at least one of K or E, no events will be delivered. -notify-keyspace-events "" - -############################### ADVANCED CONFIG ############################### - -# Hashes are encoded using a memory efficient data structure when they have a -# small number of entries, and the biggest entry does not exceed a given -# threshold. These thresholds can be configured using the following directives. -hash-max-ziplist-entries 512 -hash-max-ziplist-value 64 - -# Lists are also encoded in a special way to save a lot of space. -# The number of entries allowed per internal list node can be specified -# as a fixed maximum size or a maximum number of elements. -# For a fixed maximum size, use -5 through -1, meaning: -# -5: max size: 64 Kb <-- not recommended for normal workloads -# -4: max size: 32 Kb <-- not recommended -# -3: max size: 16 Kb <-- probably not recommended -# -2: max size: 8 Kb <-- good -# -1: max size: 4 Kb <-- good -# Positive numbers mean store up to _exactly_ that number of elements -# per list node. -# The highest performing option is usually -2 (8 Kb size) or -1 (4 Kb size), -# but if your use case is unique, adjust the settings as necessary. -list-max-ziplist-size -2 - -# Lists may also be compressed. -# Compress depth is the number of quicklist ziplist nodes from *each* side of -# the list to *exclude* from compression. The head and tail of the list -# are always uncompressed for fast push/pop operations. Settings are: -# 0: disable all list compression -# 1: depth 1 means "don't start compressing until after 1 node into the list, -# going from either the head or tail" -# So: [head]->node->node->...->node->[tail] -# [head], [tail] will always be uncompressed; inner nodes will compress. -# 2: [head]->[next]->node->node->...->node->[prev]->[tail] -# 2 here means: don't compress head or head->next or tail->prev or tail, -# but compress all nodes between them. -# 3: [head]->[next]->[next]->node->node->...->node->[prev]->[prev]->[tail] -# etc. -list-compress-depth 0 - -# Sets have a special encoding in just one case: when a set is composed -# of just strings that happen to be integers in radix 10 in the range -# of 64 bit signed integers. -# The following configuration setting sets the limit in the size of the -# set in order to use this special memory saving encoding. -set-max-intset-entries 512 - -# Similarly to hashes and lists, sorted sets are also specially encoded in -# order to save a lot of space. This encoding is only used when the length and -# elements of a sorted set are below the following limits: -zset-max-ziplist-entries 128 -zset-max-ziplist-value 64 - -# HyperLogLog sparse representation bytes limit. The limit includes the -# 16 bytes header. When an HyperLogLog using the sparse representation crosses -# this limit, it is converted into the dense representation. -# -# A value greater than 16000 is totally useless, since at that point the -# dense representation is more memory efficient. -# -# The suggested value is ~ 3000 in order to have the benefits of -# the space efficient encoding without slowing down too much PFADD, -# which is O(N) with the sparse encoding. The value can be raised to -# ~ 10000 when CPU is not a concern, but space is, and the data set is -# composed of many HyperLogLogs with cardinality in the 0 - 15000 range. -hll-sparse-max-bytes 3000 - -# Active rehashing uses 1 millisecond every 100 milliseconds of CPU time in -# order to help rehashing the main Redis hash table (the one mapping top-level -# keys to values). The hash table implementation Redis uses (see dict.c) -# performs a lazy rehashing: the more operation you run into a hash table -# that is rehashing, the more rehashing "steps" are performed, so if the -# server is idle the rehashing is never complete and some more memory is used -# by the hash table. -# -# The default is to use this millisecond 10 times every second in order to -# actively rehash the main dictionaries, freeing memory when possible. -# -# If unsure: -# use "activerehashing no" if you have hard latency requirements and it is -# not a good thing in your environment that Redis can reply from time to time -# to queries with 2 milliseconds delay. -# -# use "activerehashing yes" if you don't have such hard requirements but -# want to free memory asap when possible. -activerehashing yes - -# The client output buffer limits can be used to force disconnection of clients -# that are not reading data from the server fast enough for some reason (a -# common reason is that a Pub/Sub client can't consume messages as fast as the -# publisher can produce them). -# -# The limit can be set differently for the three different classes of clients: -# -# normal -> normal clients including MONITOR clients -# slave -> slave clients -# pubsub -> clients subscribed to at least one pubsub channel or pattern -# -# The syntax of every client-output-buffer-limit directive is the following: -# -# client-output-buffer-limit -# -# A client is immediately disconnected once the hard limit is reached, or if -# the soft limit is reached and remains reached for the specified number of -# seconds (continuously). -# So for instance if the hard limit is 32 megabytes and the soft limit is -# 16 megabytes / 10 seconds, the client will get disconnected immediately -# if the size of the output buffers reach 32 megabytes, but will also get -# disconnected if the client reaches 16 megabytes and continuously overcomes -# the limit for 10 seconds. -# -# By default normal clients are not limited because they don't receive data -# without asking (in a push way), but just after a request, so only -# asynchronous clients may create a scenario where data is requested faster -# than it can read. -# -# Instead there is a default limit for pubsub and slave clients, since -# subscribers and slaves receive data in a push fashion. -# -# Both the hard or the soft limit can be disabled by setting them to zero. -client-output-buffer-limit normal 0 0 0 -client-output-buffer-limit slave 256mb 64mb 60 -client-output-buffer-limit pubsub 32mb 8mb 60 - -# Client query buffers accumulate new commands. They are limited to a fixed -# amount by default in order to avoid that a protocol desynchronization (for -# instance due to a bug in the client) will lead to unbound memory usage in -# the query buffer. However you can configure it here if you have very special -# needs, such us huge multi/exec requests or alike. -# -# client-query-buffer-limit 1gb - -# In the Redis protocol, bulk requests, that are, elements representing single -# strings, are normally limited ot 512 mb. However you can change this limit -# here. -# -# proto-max-bulk-len 512mb - -# Redis calls an internal function to perform many background tasks, like -# closing connections of clients in timeout, purging expired keys that are -# never requested, and so forth. -# -# Not all tasks are performed with the same frequency, but Redis checks for -# tasks to perform according to the specified "hz" value. -# -# By default "hz" is set to 10. Raising the value will use more CPU when -# Redis is idle, but at the same time will make Redis more responsive when -# there are many keys expiring at the same time, and timeouts may be -# handled with more precision. -# -# The range is between 1 and 500, however a value over 100 is usually not -# a good idea. Most users should use the default of 10 and raise this up to -# 100 only in environments where very low latency is required. -hz 10 - -# When a child rewrites the AOF file, if the following option is enabled -# the file will be fsync-ed every 32 MB of data generated. This is useful -# in order to commit the file to the disk more incrementally and avoid -# big latency spikes. -aof-rewrite-incremental-fsync yes - -# Redis LFU eviction (see maxmemory setting) can be tuned. However it is a good -# idea to start with the default settings and only change them after investigating -# how to improve the performances and how the keys LFU change over time, which -# is possible to inspect via the OBJECT FREQ command. -# -# There are two tunable parameters in the Redis LFU implementation: the -# counter logarithm factor and the counter decay time. It is important to -# understand what the two parameters mean before changing them. -# -# The LFU counter is just 8 bits per key, it's maximum value is 255, so Redis -# uses a probabilistic increment with logarithmic behavior. Given the value -# of the old counter, when a key is accessed, the counter is incremented in -# this way: -# -# 1. A random number R between 0 and 1 is extracted. -# 2. A probability P is calculated as 1/(old_value*lfu_log_factor+1). -# 3. The counter is incremented only if R < P. -# -# The default lfu-log-factor is 10. This is a table of how the frequency -# counter changes with a different number of accesses with different -# logarithmic factors: -# -# +--------+------------+------------+------------+------------+------------+ -# | factor | 100 hits | 1000 hits | 100K hits | 1M hits | 10M hits | -# +--------+------------+------------+------------+------------+------------+ -# | 0 | 104 | 255 | 255 | 255 | 255 | -# +--------+------------+------------+------------+------------+------------+ -# | 1 | 18 | 49 | 255 | 255 | 255 | -# +--------+------------+------------+------------+------------+------------+ -# | 10 | 10 | 18 | 142 | 255 | 255 | -# +--------+------------+------------+------------+------------+------------+ -# | 100 | 8 | 11 | 49 | 143 | 255 | -# +--------+------------+------------+------------+------------+------------+ -# -# NOTE: The above table was obtained by running the following commands: -# -# redis-benchmark -n 1000000 incr foo -# redis-cli object freq foo -# -# NOTE 2: The counter initial value is 5 in order to give new objects a chance -# to accumulate hits. -# -# The counter decay time is the time, in minutes, that must elapse in order -# for the key counter to be divided by two (or decremented if it has a value -# less <= 10). -# -# The default value for the lfu-decay-time is 1. A Special value of 0 means to -# decay the counter every time it happens to be scanned. -# -# lfu-log-factor 10 -# lfu-decay-time 1 - -########################### ACTIVE DEFRAGMENTATION ####################### -# -# WARNING THIS FEATURE IS EXPERIMENTAL. However it was stress tested -# even in production and manually tested by multiple engineers for some -# time. -# -# What is active defragmentation? -# ------------------------------- -# -# Active (online) defragmentation allows a Redis server to compact the -# spaces left between small allocations and deallocations of data in memory, -# thus allowing to reclaim back memory. -# -# Fragmentation is a natural process that happens with every allocator (but -# less so with Jemalloc, fortunately) and certain workloads. Normally a server -# restart is needed in order to lower the fragmentation, or at least to flush -# away all the data and create it again. However thanks to this feature -# implemented by Oran Agra for Redis 4.0 this process can happen at runtime -# in an "hot" way, while the server is running. -# -# Basically when the fragmentation is over a certain level (see the -# configuration options below) Redis will start to create new copies of the -# values in contiguous memory regions by exploiting certain specific Jemalloc -# features (in order to understand if an allocation is causing fragmentation -# and to allocate it in a better place), and at the same time, will release the -# old copies of the data. This process, repeated incrementally for all the keys -# will cause the fragmentation to drop back to normal values. -# -# Important things to understand: -# -# 1. This feature is disabled by default, and only works if you compiled Redis -# to use the copy of Jemalloc we ship with the source code of Redis. -# This is the default with Linux builds. -# -# 2. You never need to enable this feature if you don't have fragmentation -# issues. -# -# 3. Once you experience fragmentation, you can enable this feature when -# needed with the command "CONFIG SET activedefrag yes". -# -# The configuration parameters are able to fine tune the behavior of the -# defragmentation process. If you are not sure about what they mean it is -# a good idea to leave the defaults untouched. - -# Enabled active defragmentation -# activedefrag yes - -# Minimum amount of fragmentation waste to start active defrag -# active-defrag-ignore-bytes 100mb - -# Minimum percentage of fragmentation to start active defrag -# active-defrag-threshold-lower 10 - -# Maximum percentage of fragmentation at which we use maximum effort -# active-defrag-threshold-upper 100 - -# Minimal effort for defrag in CPU percentage -# active-defrag-cycle-min 25 - -# Maximal effort for defrag in CPU percentage -# active-defrag-cycle-max 75 -