| | |
| | | } else { |
| | | type = ActivitiBusinessType.valueOf(businessType); |
| | | } |
| | | |
| | | if (type.equals(ActivitiBusinessType.maintain)) { |
| | | Maintain maintain = maintainService.selectById(businessId); |
| | | boolean canStart = maintainService.getCanAct(maintain.getTableName()); |
| | | if (!canStart) { |
| | | return Result.error(CodeMsg.ACT_RUN_ERROR); |
| | | } |
| | | } |
| | | |
| | | Object descObj = variableMap.get("desc"); |
| | | String desc; |
| | | if (descObj == null) { |
| | |
| | | return identityService.deleteUser(userId); |
| | | } |
| | | |
| | | |
| | | @RequestMapping(value = "/test") |
| | | public Result test(@RequestParam String roleId, @RequestParam String roleId2, @RequestParam String userId) { |
| | | identityService.deleteUserRole(roleId, userId); |
| | | identityService.addUserRole(roleId, userId); |
| | | identityService.deleteUserRole(roleId2, userId); |
| | | return identityService.addUserRole(roleId2, userId); |
| | | } |
| | | } |