├── module-system ├── src │ ├── main │ │ ├── descriptors │ │ │ └── readme.md │ │ ├── java │ │ │ ├── lombok.config │ │ │ └── cc │ │ │ │ └── admin │ │ │ │ ├── modules │ │ │ │ ├── jp │ │ │ │ │ ├── util │ │ │ │ │ │ ├── level │ │ │ │ │ │ │ ├── 9003.ftl │ │ │ │ │ │ │ ├── 9000.ftl │ │ │ │ │ │ │ ├── 9001.ftl │ │ │ │ │ │ │ └── 9002.ftl │ │ │ │ │ │ └── LevelFreeMaker.java │ │ │ │ │ ├── mapper │ │ │ │ │ │ ├── xml │ │ │ │ │ │ │ └── JpPersonMapper.xml │ │ │ │ │ │ └── JpPersonMapper.java │ │ │ │ │ ├── entity │ │ │ │ │ │ ├── Mate.java │ │ │ │ │ │ └── JpTreeChartData.java │ │ │ │ │ └── service │ │ │ │ │ │ └── IJpPersonService.java │ │ │ │ ├── shiro │ │ │ │ │ ├── vo │ │ │ │ │ │ ├── DefContants.java │ │ │ │ │ │ ├── UserBean.java │ │ │ │ │ │ └── ResponseBean.java │ │ │ │ │ └── authc │ │ │ │ │ │ └── JwtToken.java │ │ │ │ ├── message │ │ │ │ │ ├── handle │ │ │ │ │ │ ├── ISendMsgHandle.java │ │ │ │ │ │ ├── impl │ │ │ │ │ │ │ ├── WxSendMsgHandle.java │ │ │ │ │ │ │ └── SmsSendMsgHandle.java │ │ │ │ │ │ └── enums │ │ │ │ │ │ │ └── SendMsgStatusEnum.java │ │ │ │ │ ├── mapper │ │ │ │ │ │ ├── xml │ │ │ │ │ │ │ ├── SysMessageMapper.xml │ │ │ │ │ │ │ └── SysMessageTemplateMapper.xml │ │ │ │ │ │ ├── SysMessageMapper.java │ │ │ │ │ │ └── SysMessageTemplateMapper.java │ │ │ │ │ ├── websocket │ │ │ │ │ │ └── MsgType.java │ │ │ │ │ ├── service │ │ │ │ │ │ ├── ISysMessageService.java │ │ │ │ │ │ ├── ISysMessageTemplateService.java │ │ │ │ │ │ └── impl │ │ │ │ │ │ │ ├── SysMessageServiceImpl.java │ │ │ │ │ │ │ └── SysMessageTemplateServiceImpl.java │ │ │ │ │ └── entity │ │ │ │ │ │ ├── MsgParams.java │ │ │ │ │ │ └── SysMessageTemplate.java │ │ │ │ ├── bi │ │ │ │ │ ├── model │ │ │ │ │ │ ├── Field.java │ │ │ │ │ │ ├── SourceTest.java │ │ │ │ │ │ ├── Group.java │ │ │ │ │ │ ├── ViewExecuteSql.java │ │ │ │ │ │ ├── Order.java │ │ │ │ │ │ ├── QueryColumn.java │ │ │ │ │ │ ├── Param.java │ │ │ │ │ │ ├── Aggregator.java │ │ │ │ │ │ └── PaginateWithQueryColumns.java │ │ │ │ │ ├── mapper │ │ │ │ │ │ ├── xml │ │ │ │ │ │ │ ├── BiMapMapper.xml │ │ │ │ │ │ │ ├── ViewMapper.xml │ │ │ │ │ │ │ ├── ScreenMapper.xml │ │ │ │ │ │ │ └── BiFavoritesMapper.xml │ │ │ │ │ │ ├── ViewMapper.java │ │ │ │ │ │ ├── ScreenMapper.java │ │ │ │ │ │ ├── BiMapMapper.java │ │ │ │ │ │ └── BiFavoritesMapper.java │ │ │ │ │ ├── entity │ │ │ │ │ │ ├── SeriesData.java │ │ │ │ │ │ └── PieData.java │ │ │ │ │ ├── service │ │ │ │ │ │ ├── IBiMapService.java │ │ │ │ │ │ ├── IBiFavoritesService.java │ │ │ │ │ │ ├── IScreenService.java │ │ │ │ │ │ └── impl │ │ │ │ │ │ │ ├── BiMapServiceImpl.java │ │ │ │ │ │ │ └── BiFavoritesServiceImpl.java │ │ │ │ │ └── core │ │ │ │ │ │ ├── model │ │ │ │ │ │ ├── FieldCustom.java │ │ │ │ │ │ ├── FieldDate.java │ │ │ │ │ │ ├── FieldPercentage.java │ │ │ │ │ │ ├── FieldScientificNotation.java │ │ │ │ │ │ ├── FieldCurrency.java │ │ │ │ │ │ ├── SqlVariableChannel.java │ │ │ │ │ │ ├── SourceTableInfo.java │ │ │ │ │ │ ├── DataUploadEntity.java │ │ │ │ │ │ └── FieldNumeric.java │ │ │ │ │ │ ├── service │ │ │ │ │ │ └── CheckEntityService.java │ │ │ │ │ │ ├── enums │ │ │ │ │ │ ├── LockType.java │ │ │ │ │ │ └── ActionEnum.java │ │ │ │ │ │ └── exception │ │ │ │ │ │ ├── ServerException.java │ │ │ │ │ │ ├── SourceException.java │ │ │ │ │ │ └── NotFoundException.java │ │ │ │ ├── sys │ │ │ │ │ ├── util │ │ │ │ │ │ ├── HelperUtil.java │ │ │ │ │ │ └── FreeMakerTemplateEntity.java │ │ │ │ │ ├── mapper │ │ │ │ │ │ ├── xml │ │ │ │ │ │ │ ├── SysFileMapper.xml │ │ │ │ │ │ │ ├── SysNewsMapper.xml │ │ │ │ │ │ │ ├── SysCheckRuleMapper.xml │ │ │ │ │ │ │ ├── SysFillRuleMapper.xml │ │ │ │ │ │ │ ├── SysPositionMapper.xml │ │ │ │ │ │ │ ├── SysUserAgentMapper.xml │ │ │ │ │ │ │ ├── SysUserRoleMapper.xml │ │ │ │ │ │ │ ├── SysDataSourceMapper.xml │ │ │ │ │ │ │ ├── SysDepartRoleUserMapper.xml │ │ │ │ │ │ │ ├── SysDepartPermissionMapper.xml │ │ │ │ │ │ │ ├── SysDepartRolePermissionMapper.xml │ │ │ │ │ │ │ ├── SysUserDepartMapper.xml │ │ │ │ │ │ │ ├── SysDataLogMapper.xml │ │ │ │ │ │ │ ├── SysDictItemMapper.xml │ │ │ │ │ │ │ ├── SysCatalogMapper.xml │ │ │ │ │ │ │ └── SysDepartRoleMapper.xml │ │ │ │ │ │ ├── SysFileMapper.java │ │ │ │ │ │ ├── SysNewsMapper.java │ │ │ │ │ │ ├── SysFillRuleMapper.java │ │ │ │ │ │ ├── SysPositionMapper.java │ │ │ │ │ │ ├── SysCheckRuleMapper.java │ │ │ │ │ │ ├── SysDataSourceMapper.java │ │ │ │ │ │ ├── SysUserAgentMapper.java │ │ │ │ │ │ ├── SysDepartRoleUserMapper.java │ │ │ │ │ │ ├── SysDepartPermissionMapper.java │ │ │ │ │ │ ├── SysDepartRolePermissionMapper.java │ │ │ │ │ │ ├── SysRolePermissionMapper.java │ │ │ │ │ │ ├── SysUserDepartMapper.java │ │ │ │ │ │ ├── SysDataLogMapper.java │ │ │ │ │ │ ├── SysAnnouncementMapper.java │ │ │ │ │ │ ├── SysDepartRoleMapper.java │ │ │ │ │ │ ├── SysPermissionDataRuleMapper.java │ │ │ │ │ │ ├── SysCatalogMapper.java │ │ │ │ │ │ ├── SysAnnouncementSendMapper.java │ │ │ │ │ │ ├── SysRoleMapper.java │ │ │ │ │ │ └── SysDictItemMapper.java │ │ │ │ │ ├── vo │ │ │ │ │ │ ├── SysUserDepVo.java │ │ │ │ │ │ ├── SysUserRoleVO.java │ │ │ │ │ │ ├── SysDepartUsersVO.java │ │ │ │ │ │ └── SysDictPage.java │ │ │ │ │ ├── service │ │ │ │ │ │ ├── ISysFileService.java │ │ │ │ │ │ ├── ISysNewsService.java │ │ │ │ │ │ ├── ISysPositionService.java │ │ │ │ │ │ ├── ISysFillRuleService.java │ │ │ │ │ │ ├── ISysUserAgentService.java │ │ │ │ │ │ ├── ISysDataLogService.java │ │ │ │ │ │ ├── ISysOnlineUserService.java │ │ │ │ │ │ ├── ISysUserRoleService.java │ │ │ │ │ │ ├── impl │ │ │ │ │ │ │ ├── SysFileServiceImpl.java │ │ │ │ │ │ │ ├── SysNewsServiceImpl.java │ │ │ │ │ │ │ ├── SysPositionServiceImpl.java │ │ │ │ │ │ │ ├── SysUserAgentServiceImpl.java │ │ │ │ │ │ │ ├── SysFillRuleServiceImpl.java │ │ │ │ │ │ │ ├── ImportFileServiceImpl.java │ │ │ │ │ │ │ ├── SysDepartRoleServiceImpl.java │ │ │ │ │ │ │ └── SysUserRoleServiceImpl.java │ │ │ │ │ │ ├── ISysDepartRoleService.java │ │ │ │ │ │ ├── ISysDictItemService.java │ │ │ │ │ │ ├── ISysDepartRolePermissionService.java │ │ │ │ │ │ ├── ISysDepartRoleUserService.java │ │ │ │ │ │ ├── ISysDataSourceService.java │ │ │ │ │ │ ├── ISysAnnouncementService.java │ │ │ │ │ │ ├── ISysCatalogService.java │ │ │ │ │ │ ├── ISysCheckRuleService.java │ │ │ │ │ │ ├── ISysRolePermissionService.java │ │ │ │ │ │ ├── ISysAnnouncementSendService.java │ │ │ │ │ │ ├── ISysUserDepartService.java │ │ │ │ │ │ ├── ISysDepartPermissionService.java │ │ │ │ │ │ └── ISysRoleService.java │ │ │ │ │ ├── model │ │ │ │ │ │ ├── SysUserSysDepartModel.java │ │ │ │ │ │ ├── CatalogTree.java │ │ │ │ │ │ └── DuplicateCheckVo.java │ │ │ │ │ └── entity │ │ │ │ │ │ ├── SysUserDepart.java │ │ │ │ │ │ └── SysUserRole.java │ │ │ │ ├── oss │ │ │ │ │ ├── mapper │ │ │ │ │ │ └── OSSFileMapper.java │ │ │ │ │ ├── service │ │ │ │ │ │ └── IOSSFileService.java │ │ │ │ │ └── entity │ │ │ │ │ │ └── OSSFile.java │ │ │ │ ├── mnt │ │ │ │ │ ├── mapper │ │ │ │ │ │ ├── xml │ │ │ │ │ │ │ ├── MntAppMapper.xml │ │ │ │ │ │ │ ├── MntDeployMapper.xml │ │ │ │ │ │ │ └── MntServerMapper.xml │ │ │ │ │ │ ├── MntAppMapper.java │ │ │ │ │ │ ├── MntDeployMapper.java │ │ │ │ │ │ └── MntServerMapper.java │ │ │ │ │ ├── service │ │ │ │ │ │ ├── IMntAppService.java │ │ │ │ │ │ ├── IMntServerService.java │ │ │ │ │ │ ├── IMntDeployService.java │ │ │ │ │ │ └── impl │ │ │ │ │ │ │ ├── MntAppServiceImpl.java │ │ │ │ │ │ │ └── MntServerServiceImpl.java │ │ │ │ │ └── entity │ │ │ │ │ │ └── MntMessage.java │ │ │ │ ├── pro │ │ │ │ │ ├── mapper │ │ │ │ │ │ ├── xml │ │ │ │ │ │ │ ├── ProInfoMapper.xml │ │ │ │ │ │ │ └── ProRemarkMapper.xml │ │ │ │ │ │ ├── ProInfoMapper.java │ │ │ │ │ │ └── ProRemarkMapper.java │ │ │ │ │ └── service │ │ │ │ │ │ ├── IProInfoService.java │ │ │ │ │ │ ├── IProRemarkService.java │ │ │ │ │ │ └── impl │ │ │ │ │ │ ├── ProInfoServiceImpl.java │ │ │ │ │ │ └── ProRemarkServiceImpl.java │ │ │ │ ├── baby │ │ │ │ │ ├── mapper │ │ │ │ │ │ ├── xml │ │ │ │ │ │ │ ├── BabyWordMapper.xml │ │ │ │ │ │ │ └── BabyStudyLogMapper.xml │ │ │ │ │ │ ├── BabyStudyLogMapper.java │ │ │ │ │ │ └── BabyWordMapper.java │ │ │ │ │ └── service │ │ │ │ │ │ ├── IBabyStudyLogService.java │ │ │ │ │ │ ├── IBabyWordService.java │ │ │ │ │ │ └── impl │ │ │ │ │ │ ├── BabyStudyLogServiceImpl.java │ │ │ │ │ │ └── BabyWordServiceImpl.java │ │ │ │ ├── demo │ │ │ │ │ ├── mapper │ │ │ │ │ │ ├── xml │ │ │ │ │ │ │ ├── DemoBookMapper.xml │ │ │ │ │ │ │ ├── DemoPlanMapper.xml │ │ │ │ │ │ │ ├── DemoTestMapper.xml │ │ │ │ │ │ │ ├── DemoOrderMainMapper.xml │ │ │ │ │ │ │ └── DemoPlanDetailMapper.xml │ │ │ │ │ │ ├── DemoBookMapper.java │ │ │ │ │ │ ├── DemoPlanMapper.java │ │ │ │ │ │ ├── DemoTestMapper.java │ │ │ │ │ │ ├── DemoOrderMainMapper.java │ │ │ │ │ │ └── DemoPlanDetailMapper.java │ │ │ │ │ ├── mock │ │ │ │ │ │ └── json │ │ │ │ │ │ │ ├── sysdatalog.json │ │ │ │ │ │ │ ├── asyn_tree_list_0.json │ │ │ │ │ │ │ ├── asyn_tree_list_1.json │ │ │ │ │ │ │ ├── asyn_tree_list_3.json │ │ │ │ │ │ │ ├── asyn_tree_list_2.json │ │ │ │ │ │ │ ├── asyn_tree_list_31.json │ │ │ │ │ │ │ ├── graphreport_chart.json │ │ │ │ │ │ │ ├── workplace_radar.json │ │ │ │ │ │ │ └── workplace_teams.json │ │ │ │ │ └── service │ │ │ │ │ │ ├── IDemoBookService.java │ │ │ │ │ │ ├── IDemoPlanService.java │ │ │ │ │ │ ├── IDemoTestService.java │ │ │ │ │ │ ├── IDemoOrderMainService.java │ │ │ │ │ │ ├── IDemoPlanDetailService.java │ │ │ │ │ │ └── impl │ │ │ │ │ │ ├── DemoBookServiceImpl.java │ │ │ │ │ │ ├── DemoPlanServiceImpl.java │ │ │ │ │ │ ├── DemoTestServiceImpl.java │ │ │ │ │ │ ├── DemoOrderMainServiceImpl.java │ │ │ │ │ │ └── DemoPlanDetailServiceImpl.java │ │ │ │ ├── app │ │ │ │ │ ├── mapper │ │ │ │ │ │ ├── xml │ │ │ │ │ │ │ └── TestPersonMapper.xml │ │ │ │ │ │ └── TestPersonMapper.java │ │ │ │ │ └── service │ │ │ │ │ │ ├── IHdsService.java │ │ │ │ │ │ ├── ITestPersonService.java │ │ │ │ │ │ └── impl │ │ │ │ │ │ ├── TestPersonServiceImpl.java │ │ │ │ │ │ └── HdsServiceImpl.java │ │ │ │ ├── generate │ │ │ │ │ ├── mapper │ │ │ │ │ │ ├── xml │ │ │ │ │ │ │ └── GenerateMapper.xml │ │ │ │ │ │ └── GenerateMapper.java │ │ │ │ │ ├── util │ │ │ │ │ │ └── template │ │ │ │ │ │ │ ├── xml.ftl │ │ │ │ │ │ │ ├── list.ftl │ │ │ │ │ │ │ ├── service.ftl │ │ │ │ │ │ │ ├── mapper.ftl │ │ │ │ │ │ │ ├── impl.ftl │ │ │ │ │ │ │ └── include │ │ │ │ │ │ │ └── simpleQuery.ftl │ │ │ │ │ ├── model │ │ │ │ │ │ ├── TableSchema.java │ │ │ │ │ │ ├── GenerateForm.java │ │ │ │ │ │ ├── GenerateContent.java │ │ │ │ │ │ ├── DictTable.java │ │ │ │ │ │ ├── RelateData.java │ │ │ │ │ │ ├── PageColumnConstant.java │ │ │ │ │ │ └── ColumnCheck.java │ │ │ │ │ └── entity │ │ │ │ │ │ └── FreeMakerTemplateEntity.java │ │ │ │ ├── monitor │ │ │ │ │ ├── service │ │ │ │ │ │ ├── ServerMonitorService.java │ │ │ │ │ │ ├── RedisService.java │ │ │ │ │ │ └── impl │ │ │ │ │ │ │ └── MailHealthIndicator.java │ │ │ │ │ ├── exception │ │ │ │ │ │ └── RedisConnectException.java │ │ │ │ │ └── controller │ │ │ │ │ │ └── ServerMonitorController.java │ │ │ │ ├── ngalain │ │ │ │ │ ├── mapper │ │ │ │ │ │ ├── xml │ │ │ │ │ │ │ └── NgAlainMapper.xml │ │ │ │ │ │ └── NgAlainMapper.java │ │ │ │ │ └── service │ │ │ │ │ │ └── NgAlainService.java │ │ │ │ └── quartz │ │ │ │ │ ├── mapper │ │ │ │ │ ├── xml │ │ │ │ │ │ └── QuartzJobMapper.xml │ │ │ │ │ └── QuartzJobMapper.java │ │ │ │ │ ├── job │ │ │ │ │ ├── SampleJob.java │ │ │ │ │ └── SampleParamJob.java │ │ │ │ │ ├── entity │ │ │ │ │ └── JobUnit.java │ │ │ │ │ └── service │ │ │ │ │ └── IQuartzJobService.java │ │ │ │ └── config │ │ │ │ ├── WebSocketConfig.java │ │ │ │ ├── AutoPoiConfig.java │ │ │ │ ├── RestTemplateConfig.java │ │ │ │ ├── StaticConfig.java │ │ │ │ ├── MybatisPlusConfig.java │ │ │ │ └── oss │ │ │ │ └── OssBootConfiguration.java │ │ └── resources │ │ │ ├── ip2region │ │ │ └── ip2region.db │ │ │ ├── application.yml │ │ │ └── banner.txt │ └── release │ │ └── bin │ │ ├── log.sh │ │ ├── wrapper │ │ ├── wrapper.dll │ │ ├── wrapper.exe │ │ ├── wrapper.jar │ │ ├── libwrapper.so │ │ └── startup.bat └── .gitignore ├── auto-poi ├── src │ └── main │ │ └── java │ │ └── cc │ │ └── admin │ │ ├── poi │ │ ├── excel │ │ │ ├── imports │ │ │ │ ├── package-info.java │ │ │ │ └── base │ │ │ │ │ └── ImportFileServiceI.java │ │ │ ├── entity │ │ │ │ └── enmus │ │ │ │ │ ├── ExcelType.java │ │ │ │ │ └── CellValueType.java │ │ │ ├── html │ │ │ │ └── helper │ │ │ │ │ └── excelStyle.css │ │ │ ├── def │ │ │ │ └── BasePOIConstants.java │ │ │ └── annotation │ │ │ │ └── ExcelIgnore.java │ │ ├── handler │ │ │ ├── package-info.java │ │ │ ├── impl │ │ │ │ └── package-info.java │ │ │ └── inter │ │ │ │ └── IExcelReadRowHanlder.java │ │ ├── cache │ │ │ └── package-info.java │ │ └── package-info.java │ │ ├── dict │ │ └── service │ │ │ └── AutoPoiDictServiceI.java │ │ └── core │ │ └── util │ │ └── ApplicationContextUtil.java └── .gitignore ├── base-common ├── src │ └── main │ │ └── java │ │ └── cc │ │ └── admin │ │ └── common │ │ ├── util │ │ ├── BrowserType.java │ │ ├── security │ │ │ └── entity │ │ │ │ ├── MyKeyPair.java │ │ │ │ ├── SecuritySignReq.java │ │ │ │ ├── SecurityResp.java │ │ │ │ ├── SecuritySignResp.java │ │ │ │ └── SecurityReq.java │ │ ├── superSearch │ │ │ └── QueryRuleVo.java │ │ ├── encryption │ │ │ └── EncryptedString.java │ │ ├── jsonschema │ │ │ ├── BaseColumn.java │ │ │ └── validate │ │ │ │ └── HiddenProperty.java │ │ ├── HTMLUtils.java │ │ └── dynamic │ │ │ └── db │ │ │ └── DbValidationQueryEnum.java │ │ ├── sys │ │ ├── base │ │ │ └── service │ │ │ │ ├── BaseService.java │ │ │ │ └── impl │ │ │ │ └── BaseServiceImpl.java │ │ ├── vo │ │ │ ├── DictQuery.java │ │ │ ├── DictModel.java │ │ │ ├── ComboModel.java │ │ │ └── DynamicDataSourceModel.java │ │ └── query │ │ │ └── MatchTypeEnum.java │ │ ├── aspect │ │ └── annotation │ │ │ ├── OnlineAuth.java │ │ │ ├── PermissionData.java │ │ │ ├── AutoLog.java │ │ │ └── Dict.java │ │ ├── handler │ │ └── IFillRuleHandler.java │ │ ├── view │ │ └── EntityViewConstants.java │ │ ├── constant │ │ ├── FillRuleConstant.java │ │ └── CommonSendStatus.java │ │ └── exception │ │ └── CcAdminException.java ├── pom.xml └── .gitignore └── .gitignore /module-system/src/main/descriptors/readme.md: -------------------------------------------------------------------------------- 1 | #Will copy to logs folder -------------------------------------------------------------------------------- /module-system/src/release/bin/log.sh: -------------------------------------------------------------------------------- 1 | tail -fn100 ../logs/wrapper.log 2 | -------------------------------------------------------------------------------- /module-system/src/main/java/lombok.config: -------------------------------------------------------------------------------- 1 | config.stopBubbling=true 2 | lombok.equalsAndHashCode.callSuper=call 3 | -------------------------------------------------------------------------------- /module-system/src/release/bin/wrapper: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhy6599/cc-admin-api/HEAD/module-system/src/release/bin/wrapper -------------------------------------------------------------------------------- /module-system/src/release/bin/wrapper.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhy6599/cc-admin-api/HEAD/module-system/src/release/bin/wrapper.dll -------------------------------------------------------------------------------- /module-system/src/release/bin/wrapper.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhy6599/cc-admin-api/HEAD/module-system/src/release/bin/wrapper.exe -------------------------------------------------------------------------------- /module-system/src/release/bin/wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhy6599/cc-admin-api/HEAD/module-system/src/release/bin/wrapper.jar -------------------------------------------------------------------------------- /module-system/src/release/bin/libwrapper.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhy6599/cc-admin-api/HEAD/module-system/src/release/bin/libwrapper.so -------------------------------------------------------------------------------- /module-system/src/main/resources/ip2region/ip2region.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhy6599/cc-admin-api/HEAD/module-system/src/main/resources/ip2region/ip2region.db -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/jp/util/level/9003.ftl: -------------------------------------------------------------------------------- 1 | 十  2 | 六  3 | 世  4 |    5 |    6 | 十  7 | 七  8 | 世  9 |    10 |    11 | 十  12 | 八  13 | 世  14 |    -------------------------------------------------------------------------------- /auto-poi/src/main/java/cc/admin/poi/excel/imports/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 导入类 3 | * @author JEECG 4 | * @date 2014年6月23日 下午11:05:59 5 | */ 6 | package cc.admin.poi.excel.imports; 7 | -------------------------------------------------------------------------------- /auto-poi/src/main/java/cc/admin/poi/handler/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 数据处理中心,对导入导出进行数据处理 3 | * @author JEECG 4 | * @date 2014年6月20日 上午12:08:09 5 | */ 6 | package cc.admin.poi.handler; 7 | -------------------------------------------------------------------------------- /auto-poi/src/main/java/cc/admin/poi/handler/impl/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 对接口的抽象的默认实现,避免用户实现过多方法 3 | * @author JEECG 4 | * @date 2014年6月20日 上午12:09:27 5 | */ 6 | package cc.admin.poi.handler.impl; 7 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/shiro/vo/DefContants.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.shiro.vo; 2 | 3 | public class DefContants { 4 | 5 | public final static String X_ACCESS_TOKEN = "Authorization"; 6 | 7 | } 8 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/message/handle/ISendMsgHandle.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.message.handle; 2 | 3 | public interface ISendMsgHandle { 4 | 5 | void SendMsg(String es_receiver, String es_title, String es_content); 6 | } 7 | -------------------------------------------------------------------------------- /base-common/src/main/java/cc/admin/common/util/BrowserType.java: -------------------------------------------------------------------------------- 1 | package cc.admin.common.util; 2 | 3 | /** 4 | * 5 | * @Author 张代浩 6 | * 7 | */ 8 | public enum BrowserType { 9 | IE11,IE10,IE9,IE8,IE7,IE6,Firefox,Safari,Chrome,Opera,Camino,Gecko 10 | } 11 | -------------------------------------------------------------------------------- /base-common/src/main/java/cc/admin/common/util/security/entity/MyKeyPair.java: -------------------------------------------------------------------------------- 1 | package cc.admin.common.util.security.entity; 2 | 3 | import lombok.Data; 4 | 5 | @Data 6 | public class MyKeyPair { 7 | private String priKey; 8 | private String pubKey; 9 | } 10 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/bi/model/Field.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.bi.model; 2 | 3 | import lombok.Data; 4 | 5 | @Data 6 | public class Field { 7 | private String alias; 8 | private String desc; 9 | private Boolean useExpression; 10 | } 11 | -------------------------------------------------------------------------------- /base-common/src/main/java/cc/admin/common/util/security/entity/SecuritySignReq.java: -------------------------------------------------------------------------------- 1 | package cc.admin.common.util.security.entity; 2 | 3 | import lombok.Data; 4 | 5 | @Data 6 | public class SecuritySignReq { 7 | private String data; 8 | private String prikey; 9 | } 10 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/sys/util/HelperUtil.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.sys.util; 2 | 3 | import lombok.extern.slf4j.Slf4j; 4 | /** 5 | * @author: cc-admin 6 | * @Date:2012-12-8 12:15:03 7 | */ 8 | @Slf4j 9 | public class HelperUtil { 10 | 11 | } 12 | -------------------------------------------------------------------------------- /base-common/src/main/java/cc/admin/common/util/superSearch/QueryRuleVo.java: -------------------------------------------------------------------------------- 1 | package cc.admin.common.util.superSearch; 2 | 3 | import lombok.Data; 4 | 5 | @Data 6 | public class QueryRuleVo { 7 | 8 | private String field; 9 | private String rule; 10 | private String val; 11 | } 12 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/jp/util/level/9000.ftl: -------------------------------------------------------------------------------- 1 | 一  2 | 世  3 |    4 |    5 |    6 | 二  7 | 世  8 |    9 |    10 |    11 | 三  12 | 世  13 |    14 |    15 |    16 | 四  17 | 世  18 |    19 |    20 |    21 | 五  22 | 世  23 |    24 |    25 |    26 | 六  27 | 世  28 |    29 |    30 |    -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/jp/util/level/9001.ftl: -------------------------------------------------------------------------------- 1 | 六  2 | 世  3 |    4 |    5 |    6 | 七  7 | 世  8 |    9 |    10 |    11 | 八  12 | 世  13 |    14 |    15 |    16 | 九  17 | 世  18 |    19 |    20 |    21 | 十  22 | 世  23 |    24 |    25 |    26 | 十  27 | 一  28 | 世  29 |    30 |    -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/jp/util/level/9002.ftl: -------------------------------------------------------------------------------- 1 | 十  2 | 一  3 | 世  4 |    5 |    6 | 十  7 | 二  8 | 世  9 |    10 |    11 | 十  12 | 三  13 | 世  14 |    15 |    16 | 十  17 | 四  18 | 世  19 |    20 |    21 | 十  22 | 五  23 | 世  24 |    25 |    26 | 十  27 | 六  28 | 世  29 |    30 |    -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/bi/mapper/xml/BiMapMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/bi/mapper/xml/ViewMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/oss/mapper/OSSFileMapper.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.oss.mapper; 2 | 3 | import cc.admin.modules.oss.entity.OSSFile; 4 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; 5 | 6 | public interface OSSFileMapper extends BaseMapper { 7 | 8 | } 9 | -------------------------------------------------------------------------------- /auto-poi/src/main/java/cc/admin/poi/cache/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 对POI用到的模板进行缓存,进行统一管理,缓存工具暂时使用guava(脱离配置文件) 3 | * 缓存方式统一为byte[] 屏蔽文件类型的差异 4 | * 缓存获取方式,URL或者URL+index(EXcel的) 5 | */ 6 | /** 7 | * @author JEECG 8 | * @date 2014年2月10日 9 | * @version 1.0 10 | */ 11 | package cc.admin.poi.cache; 12 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/bi/mapper/xml/ScreenMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/jp/mapper/xml/JpPersonMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/mnt/mapper/xml/MntAppMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/pro/mapper/xml/ProInfoMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/sys/mapper/xml/SysFileMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/sys/mapper/xml/SysNewsMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/baby/mapper/xml/BabyWordMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/demo/mapper/xml/DemoBookMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/demo/mapper/xml/DemoPlanMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/demo/mapper/xml/DemoTestMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/mnt/mapper/xml/MntDeployMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/mnt/mapper/xml/MntServerMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/pro/mapper/xml/ProRemarkMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /auto-poi/src/main/java/cc/admin/poi/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * @author JEECG 3 | * @date 2014年2月10日 4 | * @version 1.0 5 | * 对POI进行封装,通过注解的使用,完成POI的简易重复操作 6 | * 通过模板完成较为复杂的操作 7 | * 进阶步骤:
8 | *

1.了解注解,图片类

9 | *

2.模板语言

10 | *

3.模板组合

11 | * 12 | */ 13 | package cc.admin.poi; 14 | -------------------------------------------------------------------------------- /base-common/src/main/java/cc/admin/common/util/security/entity/SecurityResp.java: -------------------------------------------------------------------------------- 1 | package cc.admin.common.util.security.entity; 2 | 3 | import cn.hutool.json.JSONObject; 4 | import lombok.Data; 5 | 6 | @Data 7 | public class SecurityResp { 8 | private Boolean success; 9 | private JSONObject data; 10 | } 11 | -------------------------------------------------------------------------------- /base-common/src/main/java/cc/admin/common/util/security/entity/SecuritySignResp.java: -------------------------------------------------------------------------------- 1 | package cc.admin.common.util.security.entity; 2 | 3 | import lombok.Data; 4 | 5 | @Data 6 | public class SecuritySignResp { 7 | private String data; 8 | private String signData; 9 | private String aesKey; 10 | } 11 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/app/mapper/xml/TestPersonMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/bi/mapper/xml/BiFavoritesMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/sys/mapper/xml/SysCheckRuleMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/sys/mapper/xml/SysFillRuleMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/sys/mapper/xml/SysPositionMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/sys/mapper/xml/SysUserAgentMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/sys/mapper/xml/SysUserRoleMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /auto-poi/src/main/java/cc/admin/poi/excel/imports/base/ImportFileServiceI.java: -------------------------------------------------------------------------------- 1 | package cc.admin.poi.excel.imports.base; 2 | 3 | public interface ImportFileServiceI { 4 | 5 | /** 6 | * 上传文件 返回文件地址字符串 7 | * @param data 8 | * @return 9 | */ 10 | String doUpload(byte[] data); 11 | 12 | } 13 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/baby/mapper/xml/BabyStudyLogMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/demo/mapper/xml/DemoOrderMainMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/generate/mapper/xml/GenerateMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/message/mapper/xml/SysMessageMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/sys/mapper/xml/SysDataSourceMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/demo/mapper/xml/DemoPlanDetailMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/generate/util/template/xml.ftl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/sys/mapper/xml/SysDepartRoleUserMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/sys/mapper/xml/SysDepartPermissionMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /base-common/src/main/java/cc/admin/common/util/security/entity/SecurityReq.java: -------------------------------------------------------------------------------- 1 | package cc.admin.common.util.security.entity; 2 | 3 | import lombok.Data; 4 | 5 | @Data 6 | public class SecurityReq { 7 | private String data; 8 | private String pubKey; 9 | private String signData; 10 | private String aesKey; 11 | } 12 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/message/mapper/xml/SysMessageTemplateMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/sys/mapper/xml/SysDepartRolePermissionMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/bi/model/SourceTest.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.bi.model; 2 | 3 | import lombok.Data; 4 | 5 | @Data 6 | public class SourceTest { 7 | 8 | private String username; 9 | 10 | private String password; 11 | 12 | private String parameters; 13 | 14 | private String url; 15 | 16 | } 17 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/message/websocket/MsgType.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.message.websocket; 2 | 3 | /** 4 | * @author: ZhangHouYing 5 | * @date: 2021-02-09 12:02 6 | */ 7 | public enum MsgType { 8 | /** 连接 */ 9 | CONNECT, 10 | /** 关闭 */ 11 | CLOSE, 12 | /** 信息 */ 13 | INFO, 14 | /** 错误 */ 15 | ERROR 16 | } 17 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/generate/util/template/list.ftl: -------------------------------------------------------------------------------- 1 | <#list fmColumnList as fm> 2 | <#if fm.dicTable != "" && fm.dynamicDic == "1"> 3 | // 以下内容复制到 SysDictItemController 的 afterPropertiesSet 中 4 | dictTableMap.put("${fm.optionsName}", new DictTable("${fm.dicTable}", "${fm.dicCode}", "${fm.dicText}")); 5 | 6 | 7 | -------------------------------------------------------------------------------- /base-common/src/main/java/cc/admin/common/util/encryption/EncryptedString.java: -------------------------------------------------------------------------------- 1 | package cc.admin.common.util.encryption; 2 | 3 | 4 | import lombok.Data; 5 | 6 | @Data 7 | public class EncryptedString { 8 | 9 | public static String key = "1234567890adbcde";//长度为16个字符 10 | 11 | public static String iv = "1234567890hjlkew";//长度为16个字符 12 | } 13 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/bi/entity/SeriesData.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.bi.entity; 2 | 3 | import lombok.Data; 4 | 5 | import java.util.List; 6 | /** 7 | * @author: ZhangHouYing 8 | * @date: 2020-11-21 20:03 9 | */ 10 | @Data 11 | public class SeriesData { 12 | String name; 13 | String axisIndex; 14 | List dataList; 15 | } 16 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/sys/vo/SysUserDepVo.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.sys.vo; 2 | 3 | import lombok.Data; 4 | 5 | /** 6 | * @Author qinfeng 7 | * @Date 2020/1/2 21:58 8 | * @Description: 9 | * @Version 1.0 10 | */ 11 | @Data 12 | public class SysUserDepVo { 13 | private String userId; 14 | private String departName; 15 | } 16 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/demo/mock/json/sysdatalog.json: -------------------------------------------------------------------------------- 1 | { 2 | "mobilePhone":"1872222222", 3 | "officePhone":"1222222", 4 | "email":"", 5 | "createDate":"Jun 23, 2016 12:00:00 PM", 6 | "sex":"1", 7 | "depId":"402880e447e99cf10147e9a03b320003", 8 | "userName":"9001", 9 | "status":"1", 10 | "content":"111", 11 | "id":"4028ef81550c1a7901550c1cd6e70001" 12 | } -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/jp/entity/Mate.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.jp.entity; 2 | 3 | import lombok.Data; 4 | /** 5 | * @Description: 6 | * @Author: cc-admin 7 | * @Date: 2021-04-04 8 | * @Version: V1.0.0 9 | */ 10 | @Data 11 | public class Mate { 12 | private String name; 13 | 14 | public Mate(String wife) { 15 | this.name = wife; 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /base-common/src/main/java/cc/admin/common/sys/base/service/BaseService.java: -------------------------------------------------------------------------------- 1 | package cc.admin.common.sys.base.service; 2 | 3 | import com.baomidou.mybatisplus.extension.service.IService; 4 | 5 | /** 6 | * @Description: Service基类 7 | * @Author: dangzhenghui@163.com 8 | * @Date: 2019-4-21 8:13 9 | * @Version: 1.0 10 | */ 11 | public interface BaseService extends IService { 12 | } 13 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/monitor/service/ServerMonitorService.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.monitor.service; 2 | 3 | import java.util.Map; 4 | /** 5 | * @author: ZhangHouYing 6 | * @date: 2021-01-20 11:08 7 | */ 8 | public interface ServerMonitorService { 9 | 10 | /** 11 | * 获取服务器监控信息 12 | * @return 13 | */ 14 | public Map getServerInfo(); 15 | } 16 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/bi/entity/PieData.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.bi.entity; 2 | 3 | import lombok.Data; 4 | /** 5 | * @author: ZhangHouYing 6 | * @date: 2020-11-21 20:03 7 | */ 8 | @Data 9 | public class PieData { 10 | String name; 11 | Object value; 12 | 13 | public PieData(String name, Object value) { 14 | this.name = name; 15 | this.value = value; 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/generate/model/TableSchema.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.generate.model; 2 | 3 | import lombok.Data; 4 | 5 | import java.util.List; 6 | /** 7 | * @author: ZhangHouYing 8 | * @date: 2020-09-03 16:42 9 | */ 10 | @Data 11 | public class TableSchema { 12 | private String id; 13 | private String name; 14 | private List columnSchemaList; 15 | } 16 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/bi/mapper/ViewMapper.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.bi.mapper; 2 | 3 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; 4 | import cc.admin.modules.bi.entity.View; 5 | 6 | /** 7 | * @Description: bi_view 8 | * @Author: ZhangHouYing 9 | * @Date: 2020-07-04 10 | * @Version: V1.0 11 | */ 12 | public interface ViewMapper extends BaseMapper { 13 | 14 | } 15 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/monitor/exception/RedisConnectException.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.monitor.exception; 2 | 3 | /** 4 | * Redis 连接异常 5 | */ 6 | public class RedisConnectException extends Exception { 7 | 8 | private static final long serialVersionUID = 1639374111871115063L; 9 | 10 | public RedisConnectException(String message) { 11 | super(message); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/bi/mapper/ScreenMapper.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.bi.mapper; 2 | 3 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; 4 | import cc.admin.modules.bi.entity.Screen; 5 | 6 | /** 7 | * @Description: 大屏 8 | * @Author: ZhangHouYing 9 | * @Date: 2020-06-13 10 | * @Version: V1.0 11 | */ 12 | public interface ScreenMapper extends BaseMapper { 13 | 14 | } 15 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/jp/mapper/JpPersonMapper.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.jp.mapper; 2 | 3 | import cc.admin.modules.jp.entity.JpPerson; 4 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; 5 | 6 | /** 7 | * @Description: 8 | * @Author: cc-admin 9 | * @Date: 2021-04-04 10 | * @Version: V1.0.0 11 | */ 12 | public interface JpPersonMapper extends BaseMapper { 13 | 14 | } 15 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/bi/service/IBiMapService.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.bi.service; 2 | 3 | import cc.admin.modules.bi.entity.BiMap; 4 | import com.baomidou.mybatisplus.extension.service.IService; 5 | 6 | /** 7 | * @Description: 地图管理 8 | * @Author: cc-admin 9 | * @Date: 2021-01-02 10 | * @Version: V1.0.0 11 | */ 12 | public interface IBiMapService extends IService { 13 | 14 | } 15 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/generate/model/GenerateForm.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.generate.model; 2 | 3 | import lombok.Data; 4 | /** 5 | * @author: ZhangHouYing 6 | * @date: 2020-09-09 14:14 7 | */ 8 | @Data 9 | public class GenerateForm { 10 | private String id; 11 | private String moduleName; 12 | private String className; 13 | private String packageName; 14 | private String jsPath; 15 | } 16 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/pro/mapper/ProInfoMapper.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.pro.mapper; 2 | 3 | import cc.admin.modules.pro.entity.ProInfo; 4 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; 5 | 6 | /** 7 | * @Description: 信息发布 8 | * @Author: cc-admin 9 | * @Date: 2021-04-05 10 | * @Version: V1.0.0 11 | */ 12 | public interface ProInfoMapper extends BaseMapper { 13 | 14 | } 15 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/sys/mapper/SysFileMapper.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.sys.mapper; 2 | 3 | import cc.admin.modules.sys.entity.SysFile; 4 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; 5 | 6 | /** 7 | * @Description: 文件管理 8 | * @Author: cc-admin 9 | * @Date: 2021-04-23 10 | * @Version: V1.0.0 11 | */ 12 | public interface SysFileMapper extends BaseMapper { 13 | 14 | } 15 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/sys/mapper/SysNewsMapper.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.sys.mapper; 2 | 3 | import cc.admin.modules.sys.entity.SysNews; 4 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; 5 | 6 | /** 7 | * @Description: 新闻信息 8 | * @Author: cc-admin 9 | * @Date: 2021-06-10 10 | * @Version: V1.0.0 11 | */ 12 | public interface SysNewsMapper extends BaseMapper { 13 | 14 | } 15 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/mnt/service/IMntAppService.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.mnt.service; 2 | 3 | import cc.admin.modules.mnt.entity.MntApp; 4 | import com.baomidou.mybatisplus.extension.service.IService; 5 | 6 | /** 7 | * @Description: 应用管理 8 | * @Author: cc-admin 9 | * @Date: 2021-02-08 10 | * @Version: V1.0.0 11 | */ 12 | public interface IMntAppService extends IService { 13 | 14 | } 15 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/pro/mapper/ProRemarkMapper.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.pro.mapper; 2 | 3 | import cc.admin.modules.pro.entity.ProRemark; 4 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; 5 | 6 | /** 7 | * @Description: 留言板 8 | * @Author: cc-admin 9 | * @Date: 2021-04-05 10 | * @Version: V1.0.0 11 | */ 12 | public interface ProRemarkMapper extends BaseMapper { 13 | 14 | } 15 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/pro/service/IProInfoService.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.pro.service; 2 | 3 | import cc.admin.modules.pro.entity.ProInfo; 4 | import com.baomidou.mybatisplus.extension.service.IService; 5 | 6 | /** 7 | * @Description: 信息发布 8 | * @Author: cc-admin 9 | * @Date: 2021-04-05 10 | * @Version: V1.0.0 11 | */ 12 | public interface IProInfoService extends IService { 13 | 14 | } 15 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/sys/service/ISysFileService.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.sys.service; 2 | 3 | import cc.admin.modules.sys.entity.SysFile; 4 | import com.baomidou.mybatisplus.extension.service.IService; 5 | 6 | /** 7 | * @Description: 文件管理 8 | * @Author: cc-admin 9 | * @Date: 2021-04-23 10 | * @Version: V1.0.0 11 | */ 12 | public interface ISysFileService extends IService { 13 | 14 | } 15 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/sys/service/ISysNewsService.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.sys.service; 2 | 3 | import cc.admin.modules.sys.entity.SysNews; 4 | import com.baomidou.mybatisplus.extension.service.IService; 5 | 6 | /** 7 | * @Description: 新闻信息 8 | * @Author: cc-admin 9 | * @Date: 2021-06-10 10 | * @Version: V1.0.0 11 | */ 12 | public interface ISysNewsService extends IService { 13 | 14 | } 15 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/demo/mapper/DemoBookMapper.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.demo.mapper; 2 | 3 | import cc.admin.modules.demo.entity.DemoBook; 4 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; 5 | 6 | /** 7 | * @Description: 图书 8 | * @Author: ZhangHouYing 9 | * @Date: 2020-11-07 10 | * @Version: V1.0.0 11 | */ 12 | public interface DemoBookMapper extends BaseMapper { 13 | 14 | } 15 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/pro/service/IProRemarkService.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.pro.service; 2 | 3 | import cc.admin.modules.pro.entity.ProRemark; 4 | import com.baomidou.mybatisplus.extension.service.IService; 5 | 6 | /** 7 | * @Description: 留言板 8 | * @Author: cc-admin 9 | * @Date: 2021-04-05 10 | * @Version: V1.0.0 11 | */ 12 | public interface IProRemarkService extends IService { 13 | 14 | } 15 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/sys/mapper/SysFillRuleMapper.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.sys.mapper; 2 | 3 | import cc.admin.modules.sys.entity.SysFillRule; 4 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; 5 | 6 | /** 7 | * @Description: 填值规则 8 | * @Author: jeecg-boot 9 | * @Date: 2019-11-07 10 | * @Version: V1.0 11 | */ 12 | public interface SysFillRuleMapper extends BaseMapper { 13 | 14 | } 15 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/sys/mapper/SysPositionMapper.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.sys.mapper; 2 | 3 | import cc.admin.modules.sys.entity.SysPosition; 4 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; 5 | 6 | /** 7 | * @Description: 职务表 8 | * @Author: jeecg-boot 9 | * @Date: 2019-09-19 10 | * @Version: V1.0 11 | */ 12 | public interface SysPositionMapper extends BaseMapper { 13 | 14 | } 15 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/app/mapper/TestPersonMapper.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.app.mapper; 2 | 3 | import cc.admin.modules.app.entity.TestPerson; 4 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; 5 | 6 | /** 7 | * @Description: test_person 8 | * @Author: ZhangHouYing 9 | * @Date: 2020-05-31 10 | * @Version: V1.0 11 | */ 12 | public interface TestPersonMapper extends BaseMapper { 13 | 14 | } 15 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/bi/service/IBiFavoritesService.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.bi.service; 2 | 3 | import cc.admin.modules.bi.entity.BiFavorites; 4 | import com.baomidou.mybatisplus.extension.service.IService; 5 | 6 | /** 7 | * @Description: 收藏夹 8 | * @Author: cc-admin 9 | * @Date: 2021-02-10 10 | * @Version: V1.0.0 11 | */ 12 | public interface IBiFavoritesService extends IService { 13 | 14 | } 15 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/demo/service/IDemoBookService.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.demo.service; 2 | 3 | import cc.admin.modules.demo.entity.DemoBook; 4 | import com.baomidou.mybatisplus.extension.service.IService; 5 | 6 | /** 7 | * @Description: 图书 8 | * @Author: ZhangHouYing 9 | * @Date: 2020-11-07 10 | * @Version: V1.0.0 11 | */ 12 | public interface IDemoBookService extends IService { 13 | 14 | } 15 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/demo/service/IDemoPlanService.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.demo.service; 2 | 3 | import cc.admin.modules.demo.entity.DemoPlan; 4 | import com.baomidou.mybatisplus.extension.service.IService; 5 | 6 | /** 7 | * @Description: 审计计划 8 | * @Author: ZhangHouYing 9 | * @Date: 2020-11-07 10 | * @Version: V1.0.0 11 | */ 12 | public interface IDemoPlanService extends IService { 13 | 14 | } 15 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/demo/service/IDemoTestService.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.demo.service; 2 | 3 | import cc.admin.modules.demo.entity.DemoTest; 4 | import com.baomidou.mybatisplus.extension.service.IService; 5 | 6 | /** 7 | * @Description: 测试代码生成 8 | * @Author: cc-admin 9 | * @Date: 2021-02-06 10 | * @Version: V1.0.0 11 | */ 12 | public interface IDemoTestService extends IService { 13 | 14 | } 15 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/generate/mapper/GenerateMapper.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.generate.mapper; 2 | 3 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; 4 | import cc.admin.modules.generate.entity.Generate; 5 | 6 | /** 7 | * @Description: 代码生成 8 | * @Author: ZhangHouYing 9 | * @Date: 2020-09-12 10 | * @Version: V1.0.0 11 | */ 12 | public interface GenerateMapper extends BaseMapper { 13 | 14 | } 15 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/message/mapper/SysMessageMapper.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.message.mapper; 2 | 3 | import cc.admin.modules.message.entity.SysMessage; 4 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; 5 | 6 | /** 7 | * @Description: 消息 8 | * @Author: jeecg-boot 9 | * @Date: 2019-04-09 10 | * @Version: V1.0 11 | */ 12 | public interface SysMessageMapper extends BaseMapper { 13 | 14 | } 15 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/mnt/service/IMntServerService.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.mnt.service; 2 | 3 | import cc.admin.modules.mnt.entity.MntServer; 4 | import com.baomidou.mybatisplus.extension.service.IService; 5 | 6 | /** 7 | * @Description: 服务器管理 8 | * @Author: cc-admin 9 | * @Date: 2021-02-08 10 | * @Version: V1.0.0 11 | */ 12 | public interface IMntServerService extends IService { 13 | 14 | } 15 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/sys/mapper/SysCheckRuleMapper.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.sys.mapper; 2 | 3 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; 4 | import cc.admin.modules.sys.entity.SysCheckRule; 5 | 6 | /** 7 | * @Description: 编码校验规则 8 | * @Author: jeecg-boot 9 | * @Date: 2020-02-04 10 | * @Version: V1.0 11 | */ 12 | public interface SysCheckRuleMapper extends BaseMapper { 13 | 14 | } 15 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/sys/service/ISysPositionService.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.sys.service; 2 | 3 | import cc.admin.modules.sys.entity.SysPosition; 4 | import com.baomidou.mybatisplus.extension.service.IService; 5 | 6 | /** 7 | * @Description: 职务表 8 | * @Author: jeecg-boot 9 | * @Date: 2019-09-19 10 | * @Version: V1.0 11 | */ 12 | public interface ISysPositionService extends IService { 13 | 14 | } 15 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/message/service/ISysMessageService.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.message.service; 2 | 3 | import cc.admin.common.sys.base.service.BaseService; 4 | import cc.admin.modules.message.entity.SysMessage; 5 | 6 | /** 7 | * @Description: 消息 8 | * @Author: jeecg-boot 9 | * @Date: 2019-04-09 10 | * @Version: V1.0 11 | */ 12 | public interface ISysMessageService extends BaseService { 13 | 14 | } 15 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/sys/mapper/SysDataSourceMapper.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.sys.mapper; 2 | 3 | import cc.admin.modules.sys.entity.SysDataSource; 4 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; 5 | 6 | /** 7 | * @Description: 多数据源管理 8 | * @Author: jeecg-boot 9 | * @Date: 2019-12-25 10 | * @Version: V1.0 11 | */ 12 | public interface SysDataSourceMapper extends BaseMapper { 13 | 14 | } 15 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/sys/mapper/SysUserAgentMapper.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.sys.mapper; 2 | 3 | import cc.admin.modules.sys.entity.SysUserAgent; 4 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; 5 | 6 | /** 7 | * @Description: 用户代理人设置 8 | * @Author: jeecg-boot 9 | * @Date: 2019-04-17 10 | * @Version: V1.0 11 | */ 12 | public interface SysUserAgentMapper extends BaseMapper { 13 | 14 | } 15 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/sys/service/ISysFillRuleService.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.sys.service; 2 | 3 | import cc.admin.modules.sys.entity.SysFillRule; 4 | import com.baomidou.mybatisplus.extension.service.IService; 5 | 6 | /** 7 | * @Description: 填值规则 8 | * @Author: jeecg-boot 9 | * @Date: 2019-11-07 10 | * @Version: V1.0 11 | */ 12 | public interface ISysFillRuleService extends IService { 13 | 14 | } 15 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/app/service/IHdsService.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.app.service; 2 | 3 | import java.util.List; 4 | import java.util.Map; 5 | /** 6 | * 操作业务库 7 | * 8 | * @author: ZhangHouYing 9 | * @date: 2018-07-07 10:15 10 | */ 11 | public interface IHdsService { 12 | 13 | /** 14 | * 查询数据列表 15 | * @param sql 16 | * @return 17 | */ 18 | public List> queryForList(String sql); 19 | 20 | } 21 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/app/service/ITestPersonService.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.app.service; 2 | 3 | import cc.admin.modules.app.entity.TestPerson; 4 | import com.baomidou.mybatisplus.extension.service.IService; 5 | 6 | /** 7 | * @Description: test_person 8 | * @Author: ZhangHouYing 9 | * @Date: 2020-05-31 10 | * @Version: V1.0 11 | */ 12 | public interface ITestPersonService extends IService { 13 | 14 | } 15 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/message/handle/impl/WxSendMsgHandle.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.message.handle.impl; 2 | 3 | import cc.admin.modules.message.handle.ISendMsgHandle; 4 | import lombok.extern.slf4j.Slf4j; 5 | @Slf4j 6 | public class WxSendMsgHandle implements ISendMsgHandle { 7 | 8 | @Override 9 | public void SendMsg(String es_receiver, String es_title, String es_content) { 10 | log.info("发微信消息模板"); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/sys/service/ISysUserAgentService.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.sys.service; 2 | 3 | import cc.admin.modules.sys.entity.SysUserAgent; 4 | import com.baomidou.mybatisplus.extension.service.IService; 5 | 6 | /** 7 | * @Description: 用户代理人设置 8 | * @Author: jeecg-boot 9 | * @Date: 2019-04-17 10 | * @Version: V1.0 11 | */ 12 | public interface ISysUserAgentService extends IService { 13 | 14 | } 15 | -------------------------------------------------------------------------------- /base-common/src/main/java/cc/admin/common/aspect/annotation/OnlineAuth.java: -------------------------------------------------------------------------------- 1 | package cc.admin.common.aspect.annotation; 2 | 3 | import java.lang.annotation.*; 4 | 5 | /** 6 | * online请求拦截专用注解 7 | */ 8 | @Retention(RetentionPolicy.RUNTIME) 9 | @Target({ElementType.TYPE,ElementType.METHOD}) 10 | @Documented 11 | public @interface OnlineAuth { 12 | 13 | /** 14 | * 请求关键字,在xxx/code之前的字符串 15 | * @return 16 | */ 17 | String value(); 18 | } 19 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/baby/service/IBabyStudyLogService.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.baby.service; 2 | 3 | import cc.admin.modules.baby.entity.BabyStudyLog; 4 | import com.baomidou.mybatisplus.extension.service.IService; 5 | 6 | /** 7 | * @Description: 学习记录 8 | * @Author: ZhangHouYing 9 | * @Date: 2020-11-21 10 | * @Version: V1.0.0 11 | */ 12 | public interface IBabyStudyLogService extends IService { 13 | 14 | } 15 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/message/handle/impl/SmsSendMsgHandle.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.message.handle.impl; 2 | 3 | import cc.admin.modules.message.handle.ISendMsgHandle; 4 | import lombok.extern.slf4j.Slf4j; 5 | 6 | @Slf4j 7 | public class SmsSendMsgHandle implements ISendMsgHandle { 8 | 9 | @Override 10 | public void SendMsg(String es_receiver, String es_title, String es_content) { 11 | log.info("发短信"); 12 | } 13 | 14 | } 15 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/demo/service/IDemoOrderMainService.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.demo.service; 2 | 3 | import cc.admin.modules.demo.entity.DemoOrderMain; 4 | import com.baomidou.mybatisplus.extension.service.IService; 5 | 6 | /** 7 | * @Description: 订单主表 8 | * @Author: ZhangHouYing 9 | * @Date: 2020-11-07 10 | * @Version: V1.0.0 11 | */ 12 | public interface IDemoOrderMainService extends IService { 13 | 14 | } 15 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/bi/model/Group.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.bi.model; 2 | 3 | import cn.hutool.core.util.StrUtil; 4 | import lombok.Data; 5 | 6 | @Data 7 | public class Group { 8 | private Field field; 9 | private String name; 10 | private String type; 11 | 12 | public String getDisplayName() { 13 | if (StrUtil.isEmpty(field.getAlias())) { 14 | return name; 15 | } else { 16 | return field.getAlias(); 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/demo/service/IDemoPlanDetailService.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.demo.service; 2 | 3 | import cc.admin.modules.demo.entity.DemoPlanDetail; 4 | import com.baomidou.mybatisplus.extension.service.IService; 5 | 6 | /** 7 | * @Description: 计划明细 8 | * @Author: ZhangHouYing 9 | * @Date: 2020-11-07 10 | * @Version: V1.0.0 11 | */ 12 | public interface IDemoPlanDetailService extends IService { 13 | 14 | } 15 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/shiro/vo/UserBean.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.shiro.vo; 2 | 3 | import java.util.HashSet; 4 | import java.util.Set; 5 | import lombok.Data; 6 | 7 | @Data 8 | public class UserBean { 9 | private String username; 10 | private String password; 11 | private Set roles = new HashSet<>(); //用户所有角色值,用于shiro做角色权限的判断 12 | private Set perms = new HashSet<>(); //用户所有权限值,用于shiro做资源权限的判断 13 | } 14 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/sys/mapper/SysDepartRoleUserMapper.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.sys.mapper; 2 | 3 | import cc.admin.modules.sys.entity.SysDepartRoleUser; 4 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; 5 | 6 | /** 7 | * @Description: 部门角色人员信息 8 | * @Author: jeecg-boot 9 | * @Date: 2020-02-13 10 | * @Version: V1.0 11 | */ 12 | public interface SysDepartRoleUserMapper extends BaseMapper { 13 | 14 | } 15 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/sys/mapper/SysDepartPermissionMapper.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.sys.mapper; 2 | 3 | import cc.admin.modules.sys.entity.SysDepartPermission; 4 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; 5 | 6 | /** 7 | * @Description: 部门权限表 8 | * @Author: jeecg-boot 9 | * @Date: 2020-02-11 10 | * @Version: V1.0 11 | */ 12 | public interface SysDepartPermissionMapper extends BaseMapper { 13 | 14 | } 15 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/bi/service/IScreenService.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.bi.service; 2 | 3 | import cc.admin.modules.bi.entity.Screen; 4 | import com.baomidou.mybatisplus.extension.service.IService; 5 | 6 | /** 7 | * @Description: 大屏 8 | * @Author: ZhangHouYing 9 | * @Date: 2020-06-13 10 | * @Version: V1.0 11 | */ 12 | public interface IScreenService extends IService { 13 | 14 | boolean checkNameExist(String id, String name); 15 | } 16 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/ngalain/mapper/xml/NgAlainMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/sys/mapper/SysDepartRolePermissionMapper.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.sys.mapper; 2 | 3 | import cc.admin.modules.sys.entity.SysDepartRolePermission; 4 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; 5 | 6 | /** 7 | * @Description: 部门角色权限 8 | * @Author: jeecg-boot 9 | * @Date: 2020-02-12 10 | * @Version: V1.0 11 | */ 12 | public interface SysDepartRolePermissionMapper extends BaseMapper { 13 | 14 | } 15 | -------------------------------------------------------------------------------- /base-common/src/main/java/cc/admin/common/handler/IFillRuleHandler.java: -------------------------------------------------------------------------------- 1 | package cc.admin.common.handler; 2 | 3 | import com.alibaba.fastjson.JSONObject; 4 | 5 | /** 6 | * 填值规则接口 7 | * 8 | * @author Yan_东 9 | * 如需使用填值规则功能,规则实现类必须实现此接口 10 | */ 11 | public interface IFillRuleHandler { 12 | 13 | /** 14 | * @param params 页面配置固定参数 15 | * @param formData 动态表单参数 16 | * @return 17 | */ 18 | public Object execute(JSONObject params, JSONObject formData); 19 | 20 | } 21 | 22 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/bi/mapper/BiMapMapper.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.bi.mapper; 2 | 3 | import java.util.List; 4 | 5 | import org.apache.ibatis.annotations.Param; 6 | import cc.admin.modules.bi.entity.BiMap; 7 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; 8 | 9 | /** 10 | * @Description: 地图管理 11 | * @Author: cc-admin 12 | * @Date: 2021-01-02 13 | * @Version: V1.0.0 14 | */ 15 | public interface BiMapMapper extends BaseMapper { 16 | 17 | } 18 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/sys/mapper/SysRolePermissionMapper.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.sys.mapper; 2 | 3 | import cc.admin.modules.sys.entity.SysRolePermission; 4 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; 5 | 6 | /** 7 | * 8 | * 角色权限表 Mapper 接口 9 | * 10 | * 11 | * @Author scott 12 | * @since 2018-12-21 13 | */ 14 | public interface SysRolePermissionMapper extends BaseMapper { 15 | 16 | } 17 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/bi/model/ViewExecuteSql.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.bi.model; 2 | 3 | import lombok.Data; 4 | import cc.admin.modules.bi.core.model.SqlVariable; 5 | 6 | import java.util.List; 7 | 8 | @Data 9 | public class ViewExecuteSql { 10 | private String sourceId; 11 | 12 | private String sql; 13 | 14 | private List variables; 15 | 16 | private int limit = 0; 17 | private int pageNo = -1; 18 | private int pageSize = -1; 19 | } 20 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/mnt/mapper/MntAppMapper.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.mnt.mapper; 2 | 3 | import java.util.List; 4 | 5 | import org.apache.ibatis.annotations.Param; 6 | import cc.admin.modules.mnt.entity.MntApp; 7 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; 8 | 9 | /** 10 | * @Description: 应用管理 11 | * @Author: cc-admin 12 | * @Date: 2021-02-08 13 | * @Version: V1.0.0 14 | */ 15 | public interface MntAppMapper extends BaseMapper { 16 | 17 | } 18 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/ngalain/mapper/NgAlainMapper.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.ngalain.mapper; 2 | 3 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; 4 | import org.apache.ibatis.annotations.Param; 5 | 6 | import java.util.List; 7 | import java.util.Map; 8 | 9 | public interface NgAlainMapper extends BaseMapper { 10 | public List> getDictByTable(@Param("table") String table, @Param("key") String key, @Param("value") String value); 11 | 12 | } 13 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/sys/mapper/SysUserDepartMapper.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.sys.mapper; 2 | 3 | import java.util.List; 4 | 5 | import cc.admin.modules.sys.entity.SysUserDepart; 6 | 7 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; 8 | 9 | import io.lettuce.core.dynamic.annotation.Param; 10 | 11 | public interface SysUserDepartMapper extends BaseMapper{ 12 | 13 | List getUserDepartByUid(@Param("userId") String userId); 14 | } 15 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/generate/util/template/service.ftl: -------------------------------------------------------------------------------- 1 | package ${bussiPackage}.${entityPackage}.service; 2 | 3 | import ${bussiPackage}.${entityPackage}.entity.${entityName}; 4 | import com.baomidou.mybatisplus.extension.service.IService; 5 | 6 | /** 7 | * @Description: ${geForm.moduleName} 8 | * @Author: cc-admin 9 | * @Date: ${.now?string["yyyy-MM-dd"]} 10 | * @Version: V1.0.0 11 | */ 12 | public interface I${entityName}Service extends IService<${entityName}> { 13 | 14 | } 15 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/ngalain/service/NgAlainService.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.ngalain.service; 2 | 3 | import com.alibaba.fastjson.JSONArray; 4 | 5 | import java.util.List; 6 | import java.util.Map; 7 | 8 | public interface NgAlainService { 9 | public JSONArray getMenu(String id) throws Exception; 10 | 11 | public JSONArray getCcAdminMenu(String id) throws Exception; 12 | public List> getDictByTable(String table, String key, String value); 13 | } 14 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/sys/util/FreeMakerTemplateEntity.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.sys.util; 2 | 3 | import lombok.Data; 4 | /** 5 | * @author: ZhangHouYing 6 | * @date: 2020-09-10 13:23 7 | */ 8 | @Data 9 | public class FreeMakerTemplateEntity { 10 | private String templateName; 11 | private String fileName; 12 | 13 | public FreeMakerTemplateEntity(String templateName, String fileName) { 14 | this.templateName = templateName; 15 | this.fileName = fileName; 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/mnt/mapper/MntDeployMapper.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.mnt.mapper; 2 | 3 | import java.util.List; 4 | 5 | import org.apache.ibatis.annotations.Param; 6 | import cc.admin.modules.mnt.entity.MntDeploy; 7 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; 8 | 9 | /** 10 | * @Description: 部署管理 11 | * @Author: cc-admin 12 | * @Date: 2021-02-08 13 | * @Version: V1.0.0 14 | */ 15 | public interface MntDeployMapper extends BaseMapper { 16 | 17 | } 18 | -------------------------------------------------------------------------------- /base-common/src/main/java/cc/admin/common/view/EntityViewConstants.java: -------------------------------------------------------------------------------- 1 | package cc.admin.common.view; 2 | 3 | /** 4 | * @author: ZhangHouYing 5 | * @date: 2021-02-06 20:13 6 | */ 7 | public interface EntityViewConstants { 8 | 9 | /** 10 | * 下载文件名称 11 | */ 12 | public final static String FILE_NAME = "fileName"; 13 | 14 | /** 15 | * 源文件路径 16 | */ 17 | public final static String SRC_PATH = "srcPath"; 18 | /** 19 | * 压缩文件路径 20 | */ 21 | public final static String ZIP_PATH = "zipPath"; 22 | 23 | } 24 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/bi/mapper/BiFavoritesMapper.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.bi.mapper; 2 | 3 | import java.util.List; 4 | 5 | import org.apache.ibatis.annotations.Param; 6 | import cc.admin.modules.bi.entity.BiFavorites; 7 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; 8 | 9 | /** 10 | * @Description: 收藏夹 11 | * @Author: cc-admin 12 | * @Date: 2021-02-10 13 | * @Version: V1.0.0 14 | */ 15 | public interface BiFavoritesMapper extends BaseMapper { 16 | 17 | } 18 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/demo/mapper/DemoPlanMapper.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.demo.mapper; 2 | 3 | import java.util.List; 4 | 5 | import org.apache.ibatis.annotations.Param; 6 | import cc.admin.modules.demo.entity.DemoPlan; 7 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; 8 | 9 | /** 10 | * @Description: 审计计划 11 | * @Author: ZhangHouYing 12 | * @Date: 2020-11-07 13 | * @Version: V1.0.0 14 | */ 15 | public interface DemoPlanMapper extends BaseMapper { 16 | 17 | } 18 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/demo/mapper/DemoTestMapper.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.demo.mapper; 2 | 3 | import java.util.List; 4 | 5 | import org.apache.ibatis.annotations.Param; 6 | import cc.admin.modules.demo.entity.DemoTest; 7 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; 8 | 9 | /** 10 | * @Description: 测试代码生成 11 | * @Author: cc-admin 12 | * @Date: 2021-02-06 13 | * @Version: V1.0.0 14 | */ 15 | public interface DemoTestMapper extends BaseMapper { 16 | 17 | } 18 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/mnt/mapper/MntServerMapper.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.mnt.mapper; 2 | 3 | import java.util.List; 4 | 5 | import org.apache.ibatis.annotations.Param; 6 | import cc.admin.modules.mnt.entity.MntServer; 7 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; 8 | 9 | /** 10 | * @Description: 服务器管理 11 | * @Author: cc-admin 12 | * @Date: 2021-02-08 13 | * @Version: V1.0.0 14 | */ 15 | public interface MntServerMapper extends BaseMapper { 16 | 17 | } 18 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/generate/entity/FreeMakerTemplateEntity.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.generate.entity; 2 | 3 | import lombok.Data; 4 | /** 5 | * @author: ZhangHouYing 6 | * @date: 2020-09-10 13:23 7 | */ 8 | @Data 9 | public class FreeMakerTemplateEntity { 10 | private String templateName; 11 | private String fileName; 12 | 13 | public FreeMakerTemplateEntity(String templateName, String fileName) { 14 | this.templateName = templateName; 15 | this.fileName = fileName; 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/oss/service/IOSSFileService.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.oss.service; 2 | 3 | import java.io.IOException; 4 | 5 | import com.baomidou.mybatisplus.extension.service.IService; 6 | import cc.admin.modules.oss.entity.OSSFile; 7 | import org.springframework.web.multipart.MultipartFile; 8 | 9 | public interface IOSSFileService extends IService { 10 | 11 | void upload(MultipartFile multipartFile) throws IOException; 12 | 13 | boolean delete(OSSFile ossFile); 14 | 15 | } 16 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/sys/service/ISysDataLogService.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.sys.service; 2 | 3 | import cc.admin.modules.sys.entity.SysDataLog; 4 | 5 | import com.baomidou.mybatisplus.extension.service.IService; 6 | 7 | public interface ISysDataLogService extends IService { 8 | 9 | /** 10 | * 添加数据日志 11 | * @param tableName 12 | * @param dataId 13 | * @param dataContent 14 | */ 15 | public void addDataLog(String tableName, String dataId, String dataContent); 16 | 17 | } 18 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/baby/mapper/BabyStudyLogMapper.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.baby.mapper; 2 | 3 | import java.util.List; 4 | 5 | import org.apache.ibatis.annotations.Param; 6 | import cc.admin.modules.baby.entity.BabyStudyLog; 7 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; 8 | 9 | /** 10 | * @Description: 学习记录 11 | * @Author: ZhangHouYing 12 | * @Date: 2020-11-21 13 | * @Version: V1.0.0 14 | */ 15 | public interface BabyStudyLogMapper extends BaseMapper { 16 | 17 | } 18 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/quartz/mapper/xml/QuartzJobMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/demo/mapper/DemoOrderMainMapper.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.demo.mapper; 2 | 3 | import java.util.List; 4 | 5 | import org.apache.ibatis.annotations.Param; 6 | import cc.admin.modules.demo.entity.DemoOrderMain; 7 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; 8 | 9 | /** 10 | * @Description: 订单主表 11 | * @Author: ZhangHouYing 12 | * @Date: 2020-11-07 13 | * @Version: V1.0.0 14 | */ 15 | public interface DemoOrderMainMapper extends BaseMapper { 16 | 17 | } 18 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/demo/mapper/DemoPlanDetailMapper.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.demo.mapper; 2 | 3 | import java.util.List; 4 | 5 | import org.apache.ibatis.annotations.Param; 6 | import cc.admin.modules.demo.entity.DemoPlanDetail; 7 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; 8 | 9 | /** 10 | * @Description: 计划明细 11 | * @Author: ZhangHouYing 12 | * @Date: 2020-11-07 13 | * @Version: V1.0.0 14 | */ 15 | public interface DemoPlanDetailMapper extends BaseMapper { 16 | 17 | } 18 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/generate/model/GenerateContent.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.generate.model; 2 | 3 | import lombok.Data; 4 | 5 | import java.util.List; 6 | /** 7 | * @author: ZhangHouYing 8 | * @date: 2020-09-09 15:38 9 | */ 10 | @Data 11 | public class GenerateContent { 12 | private List columnSchemaList; 13 | private List pageColumnList; 14 | private List columnCheckList; 15 | private List relateDataList; 16 | private GenerateForm generateForm; 17 | } 18 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/message/entity/MsgParams.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.message.entity; 2 | 3 | import java.io.Serializable; 4 | 5 | import lombok.Data; 6 | 7 | /** 8 | * 发送消息实体 9 | */ 10 | @Data 11 | public class MsgParams implements Serializable { 12 | 13 | private static final long serialVersionUID = 1L; 14 | /*消息类型*/ 15 | private String msgType; 16 | /*消息接收方*/ 17 | private String receiver; 18 | /*消息模板码*/ 19 | private String templateCode; 20 | /*测试数据*/ 21 | private String testData; 22 | 23 | } 24 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/sys/mapper/xml/SysUserDepartMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 10 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/bi/model/Order.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.bi.model; 2 | 3 | import lombok.Data; 4 | 5 | import javax.validation.constraints.NotBlank; 6 | 7 | @Data 8 | public class Order { 9 | @NotBlank(message = "Invalid order column") 10 | private String column; 11 | 12 | private String direction = "asc"; 13 | 14 | public Order(String column, String direction) { 15 | this.column = column; 16 | this.direction = direction; 17 | } 18 | 19 | public Order() { 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/baby/service/IBabyWordService.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.baby.service; 2 | 3 | import cc.admin.modules.baby.entity.BabyWord; 4 | import com.baomidou.mybatisplus.extension.service.IService; 5 | 6 | import java.util.List; 7 | 8 | /** 9 | * @Description: 字词管理 10 | * @Author: ZhangHouYing 11 | * @Date: 2020-11-21 12 | * @Version: V1.0.0 13 | */ 14 | public interface IBabyWordService extends IService { 15 | 16 | /** 17 | * 复习单词 18 | * @return 19 | */ 20 | List review(); 21 | } 22 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/generate/model/DictTable.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.generate.model; 2 | 3 | import lombok.Data; 4 | /** 5 | * @author: ZhangHouYing 6 | * @date: 2020-09-22 11:24 7 | */ 8 | @Data 9 | public class DictTable { 10 | 11 | private String dicTable = ""; 12 | private String dicCode = ""; 13 | private String dicText = ""; 14 | 15 | public DictTable(String dicTable, String dicCode, String dicText) { 16 | this.dicTable = dicTable; 17 | this.dicCode = dicCode; 18 | this.dicText = dicText; 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/message/handle/enums/SendMsgStatusEnum.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.message.handle.enums; 2 | 3 | /** 4 | * 推送状态枚举 5 | */ 6 | public enum SendMsgStatusEnum { 7 | 8 | //推送状态 0未推送 1推送成功 2推送失败 9 | WAIT("0"), SUCCESS("1"), FAIL("2"); 10 | 11 | private String code; 12 | 13 | private SendMsgStatusEnum(String code) { 14 | this.code = code; 15 | } 16 | 17 | public String getCode() { 18 | return code; 19 | } 20 | 21 | public void setStatusCode(String code) { 22 | this.code = code; 23 | } 24 | 25 | } 26 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/sys/mapper/xml/SysDataLogMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/sys/mapper/xml/SysDictItemMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/sys/service/ISysOnlineUserService.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.sys.service; 2 | 3 | import cc.admin.modules.sys.entity.SysOnlineUser; 4 | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; 5 | 6 | /** 7 | * @Description: 在线用户 8 | * @Author: cc-admin 9 | * @Date: 2021-01-17 10 | * @Version: V1.0.0 11 | */ 12 | public interface ISysOnlineUserService { 13 | 14 | /** 15 | * 在线用户列表 16 | * @return 17 | */ 18 | Page onlineUserList(String key, int pageNo, int pageSize); 19 | } 20 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/bi/model/QueryColumn.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.bi.model; 2 | 3 | import com.baomidou.mybatisplus.core.toolkit.Constants; 4 | import lombok.Data; 5 | 6 | @Data 7 | public class QueryColumn { 8 | private String name; 9 | private String type; 10 | 11 | public QueryColumn(String name, String type) { 12 | this.name = name; 13 | this.type = type.toLowerCase(); 14 | } 15 | 16 | public void setType(String type) { 17 | this.type = type == null ? Constants.EMPTY : type; 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/message/service/ISysMessageTemplateService.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.message.service; 2 | 3 | import cc.admin.common.sys.base.service.BaseService; 4 | import cc.admin.modules.message.entity.SysMessageTemplate; 5 | 6 | import java.util.List; 7 | 8 | /** 9 | * @Description: 消息模板 10 | * @Author: jeecg-boot 11 | * @Date: 2019-04-09 12 | * @Version: V1.0 13 | */ 14 | public interface ISysMessageTemplateService extends BaseService { 15 | List selectByCode(String code); 16 | } 17 | -------------------------------------------------------------------------------- /base-common/src/main/java/cc/admin/common/constant/FillRuleConstant.java: -------------------------------------------------------------------------------- 1 | package cc.admin.common.constant; 2 | 3 | /** 4 | * 规则值生成 编码常量类 5 | * @author: taoyan 6 | * @date: 2020年04月02日 7 | */ 8 | public class FillRuleConstant { 9 | 10 | /** 11 | * 公文发文编码 12 | */ 13 | public static final String DOC_SEND = "doc_send_code"; 14 | 15 | /** 16 | * 部门编码 17 | */ 18 | public static final String DEPART = "org_num_role"; 19 | 20 | /** 21 | * 分类字典编码 22 | */ 23 | public static final String CATEGORY = "category_code_rule"; 24 | 25 | } 26 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/bi/model/Param.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.bi.model; 2 | 3 | import lombok.Data; 4 | 5 | import javax.validation.constraints.NotBlank; 6 | 7 | @Data 8 | public class Param { 9 | 10 | @NotBlank(message = "Invald parameter name") 11 | private String name; 12 | 13 | @NotBlank(message = "Invalid parameter value") 14 | private String value; 15 | 16 | public Param() { 17 | } 18 | 19 | public Param(String name, String value) { 20 | this.name = name; 21 | this.value = value; 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/sys/mapper/SysDataLogMapper.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.sys.mapper; 2 | 3 | import cc.admin.modules.sys.entity.SysDataLog; 4 | import org.apache.ibatis.annotations.Param; 5 | 6 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; 7 | 8 | public interface SysDataLogMapper extends BaseMapper{ 9 | /** 10 | * 通过表名及数据Id获取最大版本 11 | * @param tableName 12 | * @param dataId 13 | * @return 14 | */ 15 | public String queryMaxDataVer(@Param("tableName") String tableName,@Param("dataId") String dataId); 16 | 17 | } 18 | -------------------------------------------------------------------------------- /auto-poi/src/main/java/cc/admin/dict/service/AutoPoiDictServiceI.java: -------------------------------------------------------------------------------- 1 | package cc.admin.dict.service; 2 | 3 | 4 | /** 5 | * 描述: 6 | * @author:scott 7 | * @since:2017-4-12 下午04:58:15 8 | * @version:1.0 9 | */ 10 | public interface AutoPoiDictServiceI{ 11 | /** 12 | * 方法描述: 查询数据字典 13 | * 作 者: yiming.zhang 14 | * 日 期: 2014年5月11日-下午4:22:42 15 | * @param dicTable 16 | * @param dicCode 17 | * @param dicText 18 | * @return 19 | * 返回类型: List 20 | */ 21 | public String[] queryDict(String dicTable, String dicCode, String dicText); 22 | 23 | } 24 | -------------------------------------------------------------------------------- /base-common/src/main/java/cc/admin/common/util/jsonschema/BaseColumn.java: -------------------------------------------------------------------------------- 1 | package cc.admin.common.util.jsonschema; 2 | 3 | import lombok.Data; 4 | 5 | /** 6 | * 列 配置基本信息 7 | */ 8 | @Data 9 | public class BaseColumn { 10 | 11 | /** 12 | * 列配置 描述 -对应数据库字段描述 13 | */ 14 | private String title; 15 | 16 | /** 17 | * 列配置 名称 -对应数据库字段名 18 | */ 19 | private String field; 20 | 21 | public BaseColumn(){} 22 | 23 | public BaseColumn(String title,String field){ 24 | this.title = title; 25 | this.field = field; 26 | } 27 | 28 | } 29 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/generate/util/template/mapper.ftl: -------------------------------------------------------------------------------- 1 | package ${bussiPackage}.${entityPackage}.mapper; 2 | 3 | import java.util.List; 4 | 5 | import org.apache.ibatis.annotations.Param; 6 | import ${bussiPackage}.${entityPackage}.entity.${entityName}; 7 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; 8 | 9 | /** 10 | * @Description: ${geForm.moduleName} 11 | * @Author: cc-admin 12 | * @Date: ${.now?string["yyyy-MM-dd"]} 13 | * @Version: V1.0.0 14 | */ 15 | public interface ${entityName}Mapper extends BaseMapper<${entityName}> { 16 | 17 | } 18 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/sys/service/ISysUserRoleService.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.sys.service; 2 | 3 | import cc.admin.modules.sys.entity.SysUserRole; 4 | 5 | import com.baomidou.mybatisplus.extension.service.IService; 6 | 7 | /** 8 | * 9 | * 用户角色表 服务类 10 | * 11 | * 12 | * @Author scott 13 | * @since 2018-12-21 14 | */ 15 | public interface ISysUserRoleService extends IService { 16 | /** 17 | * 将角色对应的所有用户删除 18 | * @param roleId 19 | */ 20 | void removeAllByRoleId(String roleId); 21 | } 22 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/mnt/service/IMntDeployService.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.mnt.service; 2 | 3 | import cc.admin.modules.mnt.entity.MntDeploy; 4 | import com.baomidou.mybatisplus.extension.service.IService; 5 | 6 | import java.util.List; 7 | 8 | /** 9 | * @Description: 部署管理 10 | * @Author: cc-admin 11 | * @Date: 2021-02-08 12 | * @Version: V1.0.0 13 | */ 14 | public interface IMntDeployService extends IService { 15 | 16 | /** 17 | * 查询服务运行状态 18 | * @param ids 19 | * @return 20 | */ 21 | String serverStatus(List ids); 22 | } 23 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/sys/model/SysUserSysDepartModel.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.sys.model; 2 | 3 | import lombok.Data; 4 | 5 | /** 6 | * 包含 SysUser 和 SysDepart 的 Model 7 | * 8 | * @author sunjianlei 9 | */ 10 | @Data 11 | public class SysUserSysDepartModel { 12 | 13 | private String id; 14 | private String realname; 15 | private String workNo; 16 | private String post; 17 | private String telephone; 18 | private String email; 19 | private String phone; 20 | private String departId; 21 | private String departName; 22 | 23 | } 24 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/sys/mapper/xml/SysCatalogMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | update sys_catalog set lft = #{lft} ,rgh = #{rgh} where id = #{id} 8 | 9 | 10 | 11 | delete from sys_catalog where lft >=#{lft} and rgh <= #{rgh} and type = #{type} 12 | 13 | 14 | -------------------------------------------------------------------------------- /base-common/src/main/java/cc/admin/common/sys/vo/DictQuery.java: -------------------------------------------------------------------------------- 1 | package cc.admin.common.sys.vo; 2 | 3 | import lombok.Data; 4 | 5 | /** 6 | * 字典查询参数实体 7 | */ 8 | @Data 9 | public class DictQuery { 10 | /** 11 | * 表名 12 | */ 13 | private String table; 14 | /** 15 | * 存储列 16 | */ 17 | private String code; 18 | 19 | /** 20 | * 显示列 21 | */ 22 | private String text; 23 | 24 | /** 25 | * 关键字查询 26 | */ 27 | private String keyword; 28 | 29 | /** 30 | * 存储列的值 用于回显查询 31 | */ 32 | private String codeValue; 33 | 34 | } 35 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/quartz/mapper/QuartzJobMapper.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.quartz.mapper; 2 | 3 | import java.util.List; 4 | 5 | import cc.admin.modules.quartz.entity.QuartzJob; 6 | import org.apache.ibatis.annotations.Param; 7 | 8 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; 9 | 10 | /** 11 | * @Description: 定时任务在线管理 12 | * @Author: jeecg-boot 13 | * @Date: 2019-01-02 14 | * @Version: V1.0 15 | */ 16 | public interface QuartzJobMapper extends BaseMapper { 17 | 18 | public List findByJobClassName(@Param("jobClassName") String jobClassName); 19 | 20 | } 21 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/config/WebSocketConfig.java: -------------------------------------------------------------------------------- 1 | package cc.admin.config; 2 | 3 | import org.springframework.context.annotation.Bean; 4 | import org.springframework.context.annotation.Configuration; 5 | import org.springframework.web.socket.server.standard.ServerEndpointExporter; 6 | 7 | @Configuration 8 | public class WebSocketConfig { 9 | /** 10 | * 注入ServerEndpointExporter, 11 | * 这个bean会自动注册使用了@ServerEndpoint注解声明的Websocket endpoint 12 | */ 13 | @Bean 14 | public ServerEndpointExporter serverEndpointExporter() { 15 | return new ServerEndpointExporter(); 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/mnt/entity/MntMessage.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.mnt.entity; 2 | 3 | import cc.admin.modules.message.websocket.MsgType; 4 | import com.alibaba.fastjson.JSONObject; 5 | import lombok.Data; 6 | /** 7 | * @author: ZhangHouYing 8 | * @date: 2021-02-09 12:10 9 | */ 10 | @Data 11 | public class MntMessage { 12 | private String message; 13 | private MsgType msgType; 14 | 15 | public MntMessage(String message,MsgType msgType){ 16 | this.message = message; 17 | this.msgType = msgType; 18 | } 19 | 20 | public String toString(){ 21 | return JSONObject.toJSONString(this); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/demo/mock/json/asyn_tree_list_0.json: -------------------------------------------------------------------------------- 1 | { 2 | "status": 200, 3 | "success": true, 4 | "message": "ok", 5 | "result": [ 6 | { 7 | "id": 1, 8 | "name": "首页", 9 | "component": "dashboard/Analysis", 10 | "orderNum": 1, 11 | "hasChildren": false 12 | }, 13 | { 14 | "id": 2, 15 | "name": "常见案例", 16 | "component": "layouts/RouteView", 17 | "orderNum": 2, 18 | "hasChildren": true 19 | }, 20 | { 21 | "id": 3, 22 | "name": "系统监控", 23 | "component": "layouts/RouteView", 24 | "orderNum": 3, 25 | "hasChildren": true 26 | } 27 | ], 28 | "timestamp": 1554950583837 29 | } -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/demo/mock/json/asyn_tree_list_1.json: -------------------------------------------------------------------------------- 1 | { 2 | "status": 200, 3 | "success": true, 4 | "message": "ok", 5 | "result": [ 6 | { 7 | "id": 11, 8 | "name": "首页", 9 | "component": "dashboard/Analysis", 10 | "orderNum": 1, 11 | "hasChildren": false 12 | }, 13 | { 14 | "id": 12, 15 | "name": "系统管理", 16 | "component": "layouts/RouteView", 17 | "orderNum": 2, 18 | "hasChildren": true 19 | }, 20 | { 21 | "id": 13, 22 | "name": "常见案例", 23 | "component": "layouts/RouteView", 24 | "orderNum": 3, 25 | "hasChildren": true 26 | } 27 | ], 28 | "timestamp": 1554950583837 29 | } -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/bi/service/impl/BiMapServiceImpl.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.bi.service.impl; 2 | 3 | import cc.admin.modules.bi.entity.BiMap; 4 | import cc.admin.modules.bi.mapper.BiMapMapper; 5 | import cc.admin.modules.bi.service.IBiMapService; 6 | import org.springframework.stereotype.Service; 7 | 8 | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; 9 | 10 | /** 11 | * @Description: 地图管理 12 | * @Author: cc-admin 13 | * @Date: 2021-01-02 14 | * @Version: V1.0.0 15 | */ 16 | @Service 17 | public class BiMapServiceImpl extends ServiceImpl implements IBiMapService { 18 | 19 | } 20 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/generate/model/RelateData.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.generate.model; 2 | 3 | import lombok.Data; 4 | /** 5 | * @author: ZhangHouYing 6 | * @date: 2020-11-08 20:24 7 | */ 8 | @Data 9 | public class RelateData { 10 | 11 | private String id; 12 | private String name; 13 | private String mainTable =""; 14 | private String mainColumn =""; 15 | private String slaveTable =""; 16 | private String slaveColumn =""; 17 | 18 | public RelateData() { 19 | } 20 | 21 | public RelateData(ColumnSchema columnSchema) { 22 | this.id = columnSchema.getId(); 23 | this.name = columnSchema.getName(); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /base-common/pom.xml: -------------------------------------------------------------------------------- 1 | 4 | 4.0.0 5 | 6 | cc.admin 7 | cc-admin-api 8 | 1.0.0 9 | 10 | base-common 11 | 12 | 13 | cc.admin 14 | auto-poi 15 | 1.0.0 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/demo/mock/json/asyn_tree_list_3.json: -------------------------------------------------------------------------------- 1 | { 2 | "status": 200, 3 | "success": true, 4 | "message": "ok", 5 | "result": [ 6 | { 7 | "id": 31, 8 | "name": "性能监控", 9 | "component": "layouts/RouteView", 10 | "orderNum": 1, 11 | "hasChildren": true 12 | }, 13 | { 14 | "id": 32, 15 | "name": "在线文档", 16 | "component": "layouts/IframePageView", 17 | "orderNum": 2, 18 | "hasChildren": false 19 | }, 20 | { 21 | "id": 33, 22 | "name": "工作台", 23 | "component": "dashboard/Workplace", 24 | "orderNum": 3, 25 | "hasChildren": false 26 | } 27 | ], 28 | "timestamp": 1554950583837 29 | } -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/sys/vo/SysUserRoleVO.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.sys.vo; 2 | 3 | import lombok.Data; 4 | 5 | import java.io.Serializable; 6 | import java.util.List; 7 | 8 | @Data 9 | public class SysUserRoleVO implements Serializable{ 10 | private static final long serialVersionUID = 1L; 11 | 12 | /**部门id*/ 13 | private String roleId; 14 | /**对应的用户id集合*/ 15 | private List userIdList; 16 | 17 | public SysUserRoleVO() { 18 | super(); 19 | } 20 | 21 | public SysUserRoleVO(String roleId, List userIdList) { 22 | super(); 23 | this.roleId = roleId; 24 | this.userIdList = userIdList; 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/mnt/service/impl/MntAppServiceImpl.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.mnt.service.impl; 2 | 3 | import cc.admin.modules.mnt.entity.MntApp; 4 | import cc.admin.modules.mnt.mapper.MntAppMapper; 5 | import cc.admin.modules.mnt.service.IMntAppService; 6 | import org.springframework.stereotype.Service; 7 | 8 | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; 9 | 10 | /** 11 | * @Description: 应用管理 12 | * @Author: cc-admin 13 | * @Date: 2021-02-08 14 | * @Version: V1.0.0 15 | */ 16 | @Service 17 | public class MntAppServiceImpl extends ServiceImpl implements IMntAppService { 18 | 19 | } 20 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/pro/service/impl/ProInfoServiceImpl.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.pro.service.impl; 2 | 3 | import cc.admin.modules.pro.entity.ProInfo; 4 | import cc.admin.modules.pro.mapper.ProInfoMapper; 5 | import cc.admin.modules.pro.service.IProInfoService; 6 | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; 7 | import org.springframework.stereotype.Service; 8 | 9 | /** 10 | * @Description: 信息发布 11 | * @Author: cc-admin 12 | * @Date: 2021-04-05 13 | * @Version: V1.0.0 14 | */ 15 | @Service 16 | public class ProInfoServiceImpl extends ServiceImpl implements IProInfoService { 17 | 18 | } 19 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/quartz/job/SampleJob.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.quartz.job; 2 | 3 | import cc.admin.common.util.DateUtils; 4 | import org.quartz.Job; 5 | import org.quartz.JobExecutionContext; 6 | import org.quartz.JobExecutionException; 7 | 8 | import lombok.extern.slf4j.Slf4j; 9 | 10 | /** 11 | * 示例不带参定时任务 12 | * 13 | * @Author Scott 14 | */ 15 | @Slf4j 16 | public class SampleJob implements Job { 17 | 18 | @Override 19 | public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException { 20 | 21 | log.info(String.format(" CcAdmin 普通定时任务 SampleJob ! 时间:" + DateUtils.getTimestamp())); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/sys/service/impl/SysFileServiceImpl.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.sys.service.impl; 2 | 3 | import cc.admin.modules.sys.entity.SysFile; 4 | import cc.admin.modules.sys.mapper.SysFileMapper; 5 | import cc.admin.modules.sys.service.ISysFileService; 6 | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; 7 | import org.springframework.stereotype.Service; 8 | 9 | /** 10 | * @Description: 文件管理 11 | * @Author: cc-admin 12 | * @Date: 2021-04-23 13 | * @Version: V1.0.0 14 | */ 15 | @Service 16 | public class SysFileServiceImpl extends ServiceImpl implements ISysFileService { 17 | 18 | } 19 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/sys/service/impl/SysNewsServiceImpl.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.sys.service.impl; 2 | 3 | import cc.admin.modules.sys.entity.SysNews; 4 | import cc.admin.modules.sys.mapper.SysNewsMapper; 5 | import cc.admin.modules.sys.service.ISysNewsService; 6 | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; 7 | import org.springframework.stereotype.Service; 8 | 9 | /** 10 | * @Description: 新闻信息 11 | * @Author: cc-admin 12 | * @Date: 2021-06-10 13 | * @Version: V1.0.0 14 | */ 15 | @Service 16 | public class SysNewsServiceImpl extends ServiceImpl implements ISysNewsService { 17 | 18 | } 19 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/demo/mock/json/asyn_tree_list_2.json: -------------------------------------------------------------------------------- 1 | { 2 | "status": 200, 3 | "success": true, 4 | "message": "ok", 5 | "result": [ 6 | { 7 | "id": 21, 8 | "name": "弹框选择Demo", 9 | "component": "jeecg/SelectDemo", 10 | "orderNum": 1, 11 | "hasChildren": false 12 | }, 13 | { 14 | "id": 22, 15 | "name": "单表模型示例", 16 | "component": "jeecg/JeecgDemoList", 17 | "orderNum": 2, 18 | "hasChildren": false 19 | }, 20 | { 21 | "id": 23, 22 | "name": "一对多Tab示例", 23 | "component": "jeecg/tablist/JeecgOrderDMainList", 24 | "orderNum": 3, 25 | "hasChildren": false 26 | } 27 | ], 28 | "timestamp": 1554950583837 29 | } -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/pro/service/impl/ProRemarkServiceImpl.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.pro.service.impl; 2 | 3 | import cc.admin.modules.pro.entity.ProRemark; 4 | import cc.admin.modules.pro.mapper.ProRemarkMapper; 5 | import cc.admin.modules.pro.service.IProRemarkService; 6 | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; 7 | import org.springframework.stereotype.Service; 8 | 9 | /** 10 | * @Description: 留言板 11 | * @Author: cc-admin 12 | * @Date: 2021-04-05 13 | * @Version: V1.0.0 14 | */ 15 | @Service 16 | public class ProRemarkServiceImpl extends ServiceImpl implements IProRemarkService { 17 | 18 | } 19 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/sys/model/CatalogTree.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.sys.model; 2 | 3 | import io.swagger.annotations.ApiModel; 4 | import io.swagger.annotations.ApiModelProperty; 5 | import lombok.Data; 6 | 7 | import java.util.List; 8 | 9 | /** 10 | * @Description: 目录管理 11 | * @Author: ZhangHouYing 12 | * @Date: 2019-08-10 13 | * @Version: V1.0.0 14 | */ 15 | @Data 16 | @ApiModel(value="分类目录对象", description="分类目录") 17 | public class CatalogTree { 18 | 19 | List children; 20 | /**编号*/ 21 | @ApiModelProperty(value = "编号") 22 | private String id; 23 | /**名称*/ 24 | @ApiModelProperty(value = "名称") 25 | private String name; 26 | } 27 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/demo/mock/json/asyn_tree_list_31.json: -------------------------------------------------------------------------------- 1 | { 2 | "status": 200, 3 | "success": true, 4 | "message": "ok", 5 | "result": [ 6 | { 7 | "id": 311, 8 | "name": "Redis监控", 9 | "component": "modules/monitor/RedisInfo", 10 | "orderNum": 1, 11 | "hasChildren": false 12 | }, 13 | { 14 | "id": 312, 15 | "name": "JVM信息", 16 | "component": "modules/monitor/JvmInfo", 17 | "orderNum": 2, 18 | "hasChildren": false 19 | }, 20 | { 21 | "id": 313, 22 | "name": "Tomcat信息", 23 | "component": "modules/monitor/TomcatInfo", 24 | "orderNum": 3, 25 | "hasChildren": false 26 | } 27 | ], 28 | "timestamp": 1554950583837 29 | } -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/demo/service/impl/DemoBookServiceImpl.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.demo.service.impl; 2 | 3 | import cc.admin.modules.demo.entity.DemoBook; 4 | import cc.admin.modules.demo.mapper.DemoBookMapper; 5 | import cc.admin.modules.demo.service.IDemoBookService; 6 | import org.springframework.stereotype.Service; 7 | 8 | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; 9 | 10 | /** 11 | * @Description: 图书 12 | * @Author: ZhangHouYing 13 | * @Date: 2020-11-07 14 | * @Version: V1.0.0 15 | */ 16 | @Service 17 | public class DemoBookServiceImpl extends ServiceImpl implements IDemoBookService { 18 | 19 | } 20 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/demo/service/impl/DemoPlanServiceImpl.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.demo.service.impl; 2 | 3 | import cc.admin.modules.demo.entity.DemoPlan; 4 | import cc.admin.modules.demo.mapper.DemoPlanMapper; 5 | import cc.admin.modules.demo.service.IDemoPlanService; 6 | import org.springframework.stereotype.Service; 7 | 8 | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; 9 | 10 | /** 11 | * @Description: 审计计划 12 | * @Author: ZhangHouYing 13 | * @Date: 2020-11-07 14 | * @Version: V1.0.0 15 | */ 16 | @Service 17 | public class DemoPlanServiceImpl extends ServiceImpl implements IDemoPlanService { 18 | 19 | } 20 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/demo/service/impl/DemoTestServiceImpl.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.demo.service.impl; 2 | 3 | import cc.admin.modules.demo.entity.DemoTest; 4 | import cc.admin.modules.demo.mapper.DemoTestMapper; 5 | import cc.admin.modules.demo.service.IDemoTestService; 6 | import org.springframework.stereotype.Service; 7 | 8 | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; 9 | 10 | /** 11 | * @Description: 测试代码生成 12 | * @Author: cc-admin 13 | * @Date: 2021-02-06 14 | * @Version: V1.0.0 15 | */ 16 | @Service 17 | public class DemoTestServiceImpl extends ServiceImpl implements IDemoTestService { 18 | 19 | } 20 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/message/mapper/SysMessageTemplateMapper.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.message.mapper; 2 | 3 | import cc.admin.modules.message.entity.SysMessageTemplate; 4 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; 5 | import org.apache.ibatis.annotations.Select; 6 | 7 | import java.util.List; 8 | 9 | /** 10 | * @Description: 消息模板 11 | * @Author: jeecg-boot 12 | * @Date: 2019-04-09 13 | * @Version: V1.0 14 | */ 15 | public interface SysMessageTemplateMapper extends BaseMapper { 16 | @Select("SELECT * FROM SYS_SMS_TEMPLATE WHERE TEMPLATE_CODE = #{code}") 17 | List selectByCode(String code); 18 | } 19 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/mnt/service/impl/MntServerServiceImpl.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.mnt.service.impl; 2 | 3 | import cc.admin.modules.mnt.entity.MntServer; 4 | import cc.admin.modules.mnt.mapper.MntServerMapper; 5 | import cc.admin.modules.mnt.service.IMntServerService; 6 | import org.springframework.stereotype.Service; 7 | 8 | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; 9 | 10 | /** 11 | * @Description: 服务器管理 12 | * @Author: cc-admin 13 | * @Date: 2021-02-08 14 | * @Version: V1.0.0 15 | */ 16 | @Service 17 | public class MntServerServiceImpl extends ServiceImpl implements IMntServerService { 18 | 19 | } 20 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/quartz/entity/JobUnit.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.quartz.entity; 2 | 3 | /** 4 | * @author: ZhangHouYing 5 | * @date: 2020-08-21 11:05 6 | */ 7 | public enum JobUnit { 8 | 9 | /** 分钟 */ 10 | MINUTE("minute"), 11 | /** 小时 */ 12 | HOUR("hour"), 13 | /** 天 */ 14 | DAY("day"), 15 | /** 周 */ 16 | WEEK("week"), 17 | /** 月 */ 18 | MONTH("month"), 19 | /** 季度 */ 20 | QUARTER("quarter"), 21 | /** 半年 */ 22 | HALF_YEAR("half_year"), 23 | /** 年 */ 24 | YEAR("YEAR"); 25 | 26 | private String unit; 27 | 28 | JobUnit(String unit) { 29 | this.unit = unit; 30 | } 31 | 32 | public String getJobUnit(){ 33 | return unit; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/sys/service/impl/SysPositionServiceImpl.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.sys.service.impl; 2 | 3 | import cc.admin.modules.sys.entity.SysPosition; 4 | import cc.admin.modules.sys.mapper.SysPositionMapper; 5 | import cc.admin.modules.sys.service.ISysPositionService; 6 | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; 7 | import org.springframework.stereotype.Service; 8 | 9 | /** 10 | * @Description: 职务表 11 | * @Author: jeecg-boot 12 | * @Date: 2019-09-19 13 | * @Version: V1.0 14 | */ 15 | @Service 16 | public class SysPositionServiceImpl extends ServiceImpl implements ISysPositionService { 17 | 18 | } 19 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/app/service/impl/TestPersonServiceImpl.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.app.service.impl; 2 | 3 | import cc.admin.modules.app.entity.TestPerson; 4 | import cc.admin.modules.app.mapper.TestPersonMapper; 5 | import cc.admin.modules.app.service.ITestPersonService; 6 | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; 7 | import org.springframework.stereotype.Service; 8 | 9 | /** 10 | * @Description: test_person 11 | * @Author: ZhangHouYing 12 | * @Date: 2020-05-31 13 | * @Version: V1.0 14 | */ 15 | @Service 16 | public class TestPersonServiceImpl extends ServiceImpl implements ITestPersonService { 17 | 18 | } 19 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/bi/service/impl/BiFavoritesServiceImpl.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.bi.service.impl; 2 | 3 | import cc.admin.modules.bi.entity.BiFavorites; 4 | import cc.admin.modules.bi.mapper.BiFavoritesMapper; 5 | import cc.admin.modules.bi.service.IBiFavoritesService; 6 | import org.springframework.stereotype.Service; 7 | 8 | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; 9 | 10 | /** 11 | * @Description: 收藏夹 12 | * @Author: cc-admin 13 | * @Date: 2021-02-10 14 | * @Version: V1.0.0 15 | */ 16 | @Service 17 | public class BiFavoritesServiceImpl extends ServiceImpl implements IBiFavoritesService { 18 | 19 | } 20 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/generate/model/PageColumnConstant.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.generate.model; 2 | 3 | import com.google.common.collect.ImmutableList; 4 | 5 | import java.util.List; 6 | /** 7 | * @author: ZhangHouYing 8 | * @date: 2020-09-08 9:46 9 | */ 10 | public class PageColumnConstant { 11 | public static final List NUMBER_LIST = ImmutableList.of("int","float","double","tiny int","medium int","big int","decimal"); 12 | public static final List DATE_LIST = ImmutableList.of("date","datetime"); 13 | public static final List SYS_COLUMN_LIST = ImmutableList.of("create_time","create_by","update_time","update_by","sys_org_code"); 14 | 15 | } 16 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/shiro/authc/JwtToken.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.shiro.authc; 2 | 3 | import org.apache.shiro.authc.AuthenticationToken; 4 | 5 | /** 6 | * @Author Scott 7 | * @create 2018-07-12 15:19 8 | * @desc 9 | **/ 10 | public class JwtToken implements AuthenticationToken { 11 | 12 | private static final long serialVersionUID = 1L; 13 | private String token; 14 | 15 | public JwtToken(String token) { 16 | this.token = token; 17 | } 18 | 19 | @Override 20 | public Object getPrincipal() { 21 | return token; 22 | } 23 | 24 | @Override 25 | public Object getCredentials() { 26 | return token; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /auto-poi/src/main/java/cc/admin/core/util/ApplicationContextUtil.java: -------------------------------------------------------------------------------- 1 | package cc.admin.core.util; 2 | 3 | import org.springframework.beans.BeansException; 4 | import org.springframework.context.ApplicationContext; 5 | import org.springframework.context.ApplicationContextAware; 6 | 7 | /** 8 | * 9 | * @author 张代浩 10 | * 11 | */ 12 | public class ApplicationContextUtil implements ApplicationContextAware { 13 | 14 | private static ApplicationContext context; 15 | 16 | 17 | public void setApplicationContext(ApplicationContext context) 18 | throws BeansException { 19 | this.context = context; 20 | } 21 | 22 | public static ApplicationContext getContext() { 23 | return context; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/message/service/impl/SysMessageServiceImpl.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.message.service.impl; 2 | 3 | import cc.admin.common.sys.base.service.impl.BaseServiceImpl; 4 | import cc.admin.modules.message.entity.SysMessage; 5 | import cc.admin.modules.message.mapper.SysMessageMapper; 6 | import cc.admin.modules.message.service.ISysMessageService; 7 | import org.springframework.stereotype.Service; 8 | 9 | /** 10 | * @Description: 消息 11 | * @Author: jeecg-boot 12 | * @Date: 2019-04-09 13 | * @Version: V1.0 14 | */ 15 | @Service 16 | public class SysMessageServiceImpl extends BaseServiceImpl implements ISysMessageService { 17 | 18 | } 19 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/sys/service/ISysDepartRoleService.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.sys.service; 2 | 3 | import cc.admin.modules.sys.entity.SysDepartRole; 4 | import com.baomidou.mybatisplus.extension.service.IService; 5 | 6 | import java.util.List; 7 | 8 | /** 9 | * @Description: 部门角色 10 | * @Author: jeecg-boot 11 | * @Date: 2020-02-12 12 | * @Version: V1.0 13 | */ 14 | public interface ISysDepartRoleService extends IService { 15 | 16 | /** 17 | * 根据用户id,部门id查询可授权所有部门角色 18 | * @param orgCode 19 | * @param userId 20 | * @return 21 | */ 22 | List queryDeptRoleByDeptAndUser(String orgCode, String userId); 23 | 24 | } 25 | -------------------------------------------------------------------------------- /base-common/src/main/java/cc/admin/common/sys/base/service/impl/BaseServiceImpl.java: -------------------------------------------------------------------------------- 1 | package cc.admin.common.sys.base.service.impl; 2 | 3 | import cc.admin.common.sys.base.entity.BaseEntity; 4 | import cc.admin.common.sys.base.service.BaseService; 5 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; 6 | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; 7 | import lombok.extern.slf4j.Slf4j; 8 | 9 | /** 10 | * @Description: ServiceImpl基类 11 | * @Author: dangzhenghui@163.com 12 | * @Date: 2019-4-21 8:13 13 | * @Version: 1.0 14 | */ 15 | @Slf4j 16 | public class BaseServiceImpl, T extends BaseEntity> extends ServiceImpl implements BaseService { 17 | 18 | } 19 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/sys/service/ISysDictItemService.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.sys.service; 2 | 3 | import cc.admin.modules.sys.entity.SysDictItem; 4 | import com.baomidou.mybatisplus.extension.service.IService; 5 | 6 | import java.util.List; 7 | 8 | /** 9 | *

10 | * 服务类 11 | *

12 | * 13 | * @Author zhangweijian 14 | * @since 2018-12-28 15 | */ 16 | public interface ISysDictItemService extends IService { 17 | public List selectItemsByMainId(String mainId); 18 | 19 | public List selectItemsByDictCode(String dictCode); 20 | 21 | public List selectItemsByTable(String dicTable, String dicCode, String dicText); 22 | } 23 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/sys/service/impl/SysUserAgentServiceImpl.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.sys.service.impl; 2 | 3 | import cc.admin.modules.sys.entity.SysUserAgent; 4 | import cc.admin.modules.sys.mapper.SysUserAgentMapper; 5 | import cc.admin.modules.sys.service.ISysUserAgentService; 6 | import org.springframework.stereotype.Service; 7 | 8 | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; 9 | 10 | /** 11 | * @Description: 用户代理人设置 12 | * @Author: jeecg-boot 13 | * @Date: 2019-04-17 14 | * @Version: V1.0 15 | */ 16 | @Service 17 | public class SysUserAgentServiceImpl extends ServiceImpl implements ISysUserAgentService { 18 | 19 | } 20 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/baby/service/impl/BabyStudyLogServiceImpl.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.baby.service.impl; 2 | 3 | import cc.admin.modules.baby.entity.BabyStudyLog; 4 | import cc.admin.modules.baby.mapper.BabyStudyLogMapper; 5 | import cc.admin.modules.baby.service.IBabyStudyLogService; 6 | import org.springframework.stereotype.Service; 7 | 8 | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; 9 | 10 | /** 11 | * @Description: 学习记录 12 | * @Author: ZhangHouYing 13 | * @Date: 2020-11-21 14 | * @Version: V1.0.0 15 | */ 16 | @Service 17 | public class BabyStudyLogServiceImpl extends ServiceImpl implements IBabyStudyLogService { 18 | 19 | } 20 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/oss/entity/OSSFile.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.oss.entity; 2 | 3 | import cc.admin.common.sys.base.entity.BaseEntity; 4 | import cc.admin.poi.excel.annotation.Excel; 5 | import com.baomidou.mybatisplus.annotation.TableName; 6 | import lombok.Data; 7 | import lombok.EqualsAndHashCode; 8 | import lombok.experimental.Accessors; 9 | 10 | @Data 11 | @TableName("oss_file") 12 | @EqualsAndHashCode(callSuper = false) 13 | @Accessors(chain = true) 14 | public class OSSFile extends BaseEntity { 15 | 16 | private static final long serialVersionUID = 1L; 17 | 18 | @Excel(name = "文件名称") 19 | private String fileName; 20 | 21 | @Excel(name = "文件地址") 22 | private String url; 23 | 24 | } 25 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/sys/mapper/xml/SysDepartRoleMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12 | 13 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/sys/service/impl/SysFillRuleServiceImpl.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.sys.service.impl; 2 | 3 | import cc.admin.modules.sys.entity.SysFillRule; 4 | import cc.admin.modules.sys.mapper.SysFillRuleMapper; 5 | import cc.admin.modules.sys.service.ISysFillRuleService; 6 | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; 7 | import org.springframework.stereotype.Service; 8 | 9 | /** 10 | * @Description: 填值规则 11 | * @Author: jeecg-boot 12 | * @Date: 2019-11-07 13 | * @Version: V1.0 14 | */ 15 | @Service("sysFillRuleServiceImpl") 16 | public class SysFillRuleServiceImpl extends ServiceImpl implements ISysFillRuleService { 17 | 18 | } 19 | -------------------------------------------------------------------------------- /base-common/src/main/java/cc/admin/common/constant/CommonSendStatus.java: -------------------------------------------------------------------------------- 1 | package cc.admin.common.constant; 2 | 3 | /** 4 | * 系统通告 - 发布状态 5 | * @Author LeeShaoQing 6 | * 7 | */ 8 | public interface CommonSendStatus { 9 | 10 | public static final String UNPUBLISHED_STATUS_0 = "0"; //未发布 11 | 12 | public static final String PUBLISHED_STATUS_1 = "1"; //已发布 13 | 14 | public static final String REVOKE_STATUS_2 = "2"; //撤销 15 | 16 | 17 | 18 | /**流程催办——系统通知消息模板*/ 19 | public static final String TZMB_BPM_CUIBAN = "bpm_cuiban"; 20 | /**标准模板—系统消息通知*/ 21 | public static final String TZMB_SYS_TS_NOTE = "sys_ts_note"; 22 | /**流程超时提醒——系统通知消息模板*/ 23 | public static final String TZMB_BPM_CHAOSHI_TIP = "bpm_chaoshi_tip"; 24 | } 25 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/demo/service/impl/DemoOrderMainServiceImpl.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.demo.service.impl; 2 | 3 | import cc.admin.modules.demo.entity.DemoOrderMain; 4 | import cc.admin.modules.demo.mapper.DemoOrderMainMapper; 5 | import cc.admin.modules.demo.service.IDemoOrderMainService; 6 | import org.springframework.stereotype.Service; 7 | 8 | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; 9 | 10 | /** 11 | * @Description: 订单主表 12 | * @Author: ZhangHouYing 13 | * @Date: 2020-11-07 14 | * @Version: V1.0.0 15 | */ 16 | @Service 17 | public class DemoOrderMainServiceImpl extends ServiceImpl implements IDemoOrderMainService { 18 | 19 | } 20 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/demo/service/impl/DemoPlanDetailServiceImpl.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.demo.service.impl; 2 | 3 | import cc.admin.modules.demo.entity.DemoPlanDetail; 4 | import cc.admin.modules.demo.mapper.DemoPlanDetailMapper; 5 | import cc.admin.modules.demo.service.IDemoPlanDetailService; 6 | import org.springframework.stereotype.Service; 7 | 8 | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; 9 | 10 | /** 11 | * @Description: 计划明细 12 | * @Author: ZhangHouYing 13 | * @Date: 2020-11-07 14 | * @Version: V1.0.0 15 | */ 16 | @Service 17 | public class DemoPlanDetailServiceImpl extends ServiceImpl implements IDemoPlanDetailService { 18 | 19 | } 20 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/sys/service/ISysDepartRolePermissionService.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.sys.service; 2 | 3 | import cc.admin.modules.sys.entity.SysDepartRolePermission; 4 | import com.baomidou.mybatisplus.extension.service.IService; 5 | 6 | /** 7 | * @Description: 部门角色权限 8 | * @Author: jeecg-boot 9 | * @Date: 2020-02-12 10 | * @Version: V1.0 11 | */ 12 | public interface ISysDepartRolePermissionService extends IService { 13 | /** 14 | * 保存授权 将上次的权限和这次作比较 差异处理提高效率 15 | * @param roleId 16 | * @param permissionIds 17 | * @param lastPermissionIds 18 | */ 19 | public void saveDeptRolePermission(String roleId,String permissionIds,String lastPermissionIds); 20 | } 21 | -------------------------------------------------------------------------------- /base-common/src/main/java/cc/admin/common/aspect/annotation/PermissionData.java: -------------------------------------------------------------------------------- 1 | package cc.admin.common.aspect.annotation; 2 | 3 | import java.lang.annotation.Documented; 4 | import java.lang.annotation.ElementType; 5 | import java.lang.annotation.Retention; 6 | import java.lang.annotation.RetentionPolicy; 7 | import java.lang.annotation.Target; 8 | 9 | /** 10 | * 数据权限注解 11 | * @Author taoyan 12 | * @Date 2019年4月11日 13 | */ 14 | @Retention(RetentionPolicy.RUNTIME) 15 | @Target({ElementType.TYPE,ElementType.METHOD}) 16 | @Documented 17 | public @interface PermissionData { 18 | /** 19 | * 暂时没用 20 | * @return 21 | */ 22 | String value() default ""; 23 | 24 | 25 | /** 26 | * 配置菜单的组件路径,用于数据权限 27 | */ 28 | String pageComponent() default ""; 29 | } 30 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/sys/service/ISysDepartRoleUserService.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.sys.service; 2 | 3 | import cc.admin.modules.sys.entity.SysDepartRoleUser; 4 | import com.baomidou.mybatisplus.extension.service.IService; 5 | 6 | import java.util.List; 7 | 8 | /** 9 | * @Description: 部门角色人员信息 10 | * @Author: jeecg-boot 11 | * @Date: 2020-02-13 12 | * @Version: V1.0 13 | */ 14 | public interface ISysDepartRoleUserService extends IService { 15 | 16 | void deptRoleUserAdd(String userId,String newRoleId,String oldRoleId); 17 | 18 | /** 19 | * 取消用户与部门关联,删除关联关系 20 | * @param userIds 21 | * @param depId 22 | */ 23 | void removeDeptRoleUser(List userIds,String depId); 24 | } 25 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/config/AutoPoiConfig.java: -------------------------------------------------------------------------------- 1 | package cc.admin.config; 2 | 3 | import cc.admin.core.util.ApplicationContextUtil; 4 | import org.springframework.context.annotation.Bean; 5 | import org.springframework.context.annotation.Configuration; 6 | 7 | /** 8 | * @Author: Scott 9 | * @Date: 2018/2/7 10 | * @description: autopoi 配置类 11 | */ 12 | 13 | @Configuration 14 | public class AutoPoiConfig { 15 | 16 | /** 17 | * excel注解字典参数支持(导入导出字典值,自动翻译) 18 | * 举例: @Excel(name = "性别", width = 15, dicCode = "sex") 19 | * 1、导出的时候会根据字典配置,把值1,2翻译成:男、女; 20 | * 2、导入的时候,会把男、女翻译成1,2存进数据库; 21 | * @return 22 | */ 23 | @Bean 24 | public ApplicationContextUtil applicationContextUtil() { 25 | return new ApplicationContextUtil(); 26 | } 27 | 28 | } 29 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/sys/mapper/SysAnnouncementMapper.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.sys.mapper; 2 | 3 | import java.util.List; 4 | 5 | import cc.admin.modules.sys.entity.SysAnnouncement; 6 | import org.apache.ibatis.annotations.Param; 7 | 8 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; 9 | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; 10 | 11 | /** 12 | * @Description: 系统通告表 13 | * @Author: jeecg-boot 14 | * @Date: 2019-01-02 15 | * @Version: V1.0 16 | */ 17 | public interface SysAnnouncementMapper extends BaseMapper { 18 | 19 | 20 | List querySysCementListByUserId(Page page, @Param("userId")String userId,@Param("msgCategory")String msgCategory); 21 | 22 | } 23 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/sys/mapper/SysDepartRoleMapper.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.sys.mapper; 2 | 3 | import java.util.List; 4 | 5 | import org.apache.ibatis.annotations.Param; 6 | import cc.admin.modules.sys.entity.SysDepartRole; 7 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; 8 | 9 | /** 10 | * @Description: 部门角色 11 | * @Author: jeecg-boot 12 | * @Date: 2020-02-12 13 | * @Version: V1.0 14 | */ 15 | public interface SysDepartRoleMapper extends BaseMapper { 16 | /** 17 | * 根据用户id,部门id查询可授权所有部门角色 18 | * @param orgCode 19 | * @param userId 20 | * @return 21 | */ 22 | public List queryDeptRoleByDeptAndUser(@Param("orgCode") String orgCode, @Param("userId") String userId); 23 | } 24 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/baby/mapper/BabyWordMapper.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.baby.mapper; 2 | 3 | import cc.admin.modules.baby.entity.BabyWord; 4 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; 5 | import org.apache.ibatis.annotations.Select; 6 | 7 | import java.util.List; 8 | 9 | /** 10 | * @Description: 字词管理 11 | * @Author: ZhangHouYing 12 | * @Date: 2020-11-21 13 | * @Version: V1.0.0 14 | */ 15 | public interface BabyWordMapper extends BaseMapper { 16 | 17 | /** 18 | * 复习单词列表 19 | * @return 20 | */ 21 | @Select("select w.* from (select word_id,count(1) weight from baby_study_log where is_know='0' GROUP BY word_id) l , baby_word w where l.word_id = w.id order by l.weight desc limit 1000") 22 | List review(); 23 | } 24 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/generate/util/template/impl.ftl: -------------------------------------------------------------------------------- 1 | package ${bussiPackage}.${entityPackage}.service.impl; 2 | 3 | import ${bussiPackage}.${entityPackage}.entity.${entityName}; 4 | import ${bussiPackage}.${entityPackage}.mapper.${entityName}Mapper; 5 | import ${bussiPackage}.${entityPackage}.service.I${entityName}Service; 6 | import org.springframework.stereotype.Service; 7 | 8 | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; 9 | 10 | /** 11 | * @Description: ${geForm.moduleName} 12 | * @Author: cc-admin 13 | * @Date: ${.now?string["yyyy-MM-dd"]} 14 | * @Version: V1.0.0 15 | */ 16 | @Service 17 | public class ${entityName}ServiceImpl extends ServiceImpl<${entityName}Mapper, ${entityName}> implements I${entityName}Service { 18 | 19 | } 20 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/monitor/service/RedisService.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.monitor.service; 2 | 3 | import java.util.List; 4 | import java.util.Map; 5 | 6 | import cc.admin.modules.monitor.domain.RedisInfo; 7 | import cc.admin.modules.monitor.exception.RedisConnectException; 8 | 9 | public interface RedisService { 10 | 11 | /** 12 | * 获取 redis 的详细信息 13 | * 14 | * @return List 15 | */ 16 | List getRedisInfo() throws RedisConnectException; 17 | 18 | /** 19 | * 获取 redis key 数量 20 | * 21 | * @return Map 22 | */ 23 | Map getKeysSize() throws RedisConnectException; 24 | 25 | /** 26 | * 获取 redis 内存信息 27 | * 28 | * @return Map 29 | */ 30 | Map getMemoryInfo() throws RedisConnectException; 31 | 32 | } 33 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/sys/service/ISysDataSourceService.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.sys.service; 2 | 3 | import cc.admin.modules.bi.model.QueryColumn; 4 | import cc.admin.modules.sys.entity.SysDataSource; 5 | import com.baomidou.mybatisplus.extension.service.IService; 6 | 7 | import java.util.List; 8 | 9 | /** 10 | * @Description: 多数据源管理 11 | * @Author: jeecg-boot 12 | * @Date: 2019-12-25 13 | * @Version: V1.0 14 | */ 15 | public interface ISysDataSourceService extends IService { 16 | 17 | /** 18 | * 查询数据库列表 19 | * @param id 20 | * @return 21 | */ 22 | List databases(String id); 23 | 24 | /** 25 | * 查询表列表 26 | * @param id 27 | * @param dbName 28 | * @return 29 | */ 30 | List tables(String id, String dbName); 31 | } 32 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/demo/mock/json/graphreport_chart.json: -------------------------------------------------------------------------------- 1 | { 2 | "status": 200, 3 | "success": true, 4 | "message": "ok", 5 | "result": { 6 | "data": [ 7 | { 8 | "id": 0, 9 | "x": "1", 10 | "y": 889 11 | }, 12 | { 13 | "id": 1, 14 | "x": "2", 15 | "y": 341 16 | }, 17 | { 18 | "id": 2, 19 | "x": "3", 20 | "y": 1028 21 | }, 22 | { 23 | "id": 3, 24 | "x": "4", 25 | "y": 1168 26 | }, 27 | { 28 | "id": 4, 29 | "x": "5", 30 | "y": 653 31 | }, 32 | { 33 | "id": 5, 34 | "x": "6", 35 | "y": 863 36 | }, 37 | { 38 | "id": 6, 39 | "x": "7", 40 | "y": 421 41 | }, 42 | { 43 | "id": 7, 44 | "x": "8", 45 | "y": 1320 46 | } 47 | ] 48 | }, 49 | "timestamp": 1554950583837 50 | } -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/demo/mock/json/workplace_radar.json: -------------------------------------------------------------------------------- 1 | { 2 | "message": "", 3 | "result": [ 4 | { 5 | "item": "引用", 6 | "个人": 70, 7 | "团队": 30, 8 | "部门": 40 9 | }, 10 | { 11 | "item": "口碑", 12 | "个人": 60, 13 | "团队": 70, 14 | "部门": 40 15 | }, 16 | { 17 | "item": "产量", 18 | "个人": 50, 19 | "团队": 60, 20 | "部门": 40 21 | }, 22 | { 23 | "item": "贡献", 24 | "个人": 40, 25 | "团队": 50, 26 | "部门": 40 27 | }, 28 | { 29 | "item": "热度", 30 | "个人": 60, 31 | "团队": 70, 32 | "部门": 40 33 | }, 34 | { 35 | "item": "引用", 36 | "个人": 70, 37 | "团队": 50, 38 | "部门": 40 39 | } 40 | ], 41 | "status": 200, 42 | "timestamp": 1534955098193 43 | } -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/generate/model/ColumnCheck.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.generate.model; 2 | 3 | import lombok.Data; 4 | /** 5 | * 字段校验 6 | * @author: ZhangHouYing 7 | * @date: 2020-09-08 9:20 8 | */ 9 | @Data 10 | public class ColumnCheck { 11 | 12 | private String id; 13 | private String name; 14 | private String colLink =""; 15 | private String rule =""; 16 | private String mustInput ="0"; 17 | private String dynamicDic ="0"; 18 | private String sysDicCode =""; 19 | private String sysDicName =""; 20 | private String dicTable =""; 21 | private String dicCode =""; 22 | private String dicText =""; 23 | 24 | public ColumnCheck() { 25 | } 26 | 27 | public ColumnCheck(ColumnSchema columnSchema) { 28 | this.id = columnSchema.getId(); 29 | this.name = columnSchema.getName(); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/sys/mapper/SysPermissionDataRuleMapper.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.sys.mapper; 2 | 3 | import java.util.List; 4 | 5 | import org.apache.ibatis.annotations.Param; 6 | import cc.admin.modules.sys.entity.SysPermissionDataRule; 7 | 8 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; 9 | 10 | /** 11 | * 12 | * 权限规则 Mapper 接口 13 | * 14 | * 15 | * @Author huangzhilin 16 | * @since 2019-04-01 17 | */ 18 | public interface SysPermissionDataRuleMapper extends BaseMapper { 19 | 20 | /** 21 | * 根据用户名和权限id查询 22 | * @param username 23 | * @param permissionId 24 | * @return 25 | */ 26 | public List queryDataRuleIds(@Param("username") String username,@Param("permissionId") String permissionId); 27 | 28 | } 29 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/jp/entity/JpTreeChartData.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.jp.entity; 2 | 3 | import lombok.Data; 4 | 5 | import java.util.ArrayList; 6 | import java.util.List; 7 | 8 | /** 9 | * @Description: 10 | * @Author: cc-admin 11 | * @Date: 2021-04-04 12 | * @Version: V1.0.0 13 | */ 14 | @Data 15 | public class JpTreeChartData { 16 | 17 | private String name; 18 | private String pic; 19 | private Mate mate; 20 | 21 | private List children = new ArrayList<>(); 22 | 23 | public JpTreeChartData() { 24 | } 25 | 26 | /** 27 | * 将JpPerson对象转换成JpPersonTree对象 28 | * 29 | * @param jpPerson 30 | */ 31 | public JpTreeChartData(JpPerson jpPerson) { 32 | this.name = jpPerson.getName(); 33 | this.pic = jpPerson.getPic(); 34 | this.mate = new Mate(jpPerson.getWife()); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/quartz/service/IQuartzJobService.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.quartz.service; 2 | 3 | import java.util.List; 4 | 5 | import cc.admin.modules.quartz.entity.QuartzJob; 6 | import org.quartz.SchedulerException; 7 | 8 | import com.baomidou.mybatisplus.extension.service.IService; 9 | 10 | /** 11 | * @Description: 定时任务在线管理 12 | * @Author: jeecg-boot 13 | * @Date: 2019-04-28 14 | * @Version: V1.1 15 | */ 16 | public interface IQuartzJobService extends IService { 17 | 18 | List findByJobClassName(String jobClassName); 19 | 20 | boolean saveAndScheduleJob(QuartzJob quartzJob); 21 | 22 | boolean editAndScheduleJob(QuartzJob quartzJob) throws SchedulerException; 23 | 24 | boolean deleteAndStopJob(QuartzJob quartzJob); 25 | 26 | boolean resumeJob(QuartzJob quartzJob); 27 | } 28 | -------------------------------------------------------------------------------- /base-common/src/main/java/cc/admin/common/util/HTMLUtils.java: -------------------------------------------------------------------------------- 1 | package cc.admin.common.util; 2 | 3 | import org.apache.commons.lang.StringUtils; 4 | import org.springframework.web.util.HtmlUtils; 5 | 6 | /** 7 | * HTML 工具类 8 | */ 9 | public class HTMLUtils { 10 | 11 | /** 12 | * 获取HTML内的文本,不包含标签 13 | * 14 | * @param html HTML 代码 15 | */ 16 | public static String getInnerText(String html) { 17 | if (StringUtils.isNotBlank(html)) { 18 | //去掉 html 的标签 19 | String content = html.replaceAll("]+>", ""); 20 | // 将多个空格合并成一个空格 21 | content = content.replaceAll("( )+", " "); 22 | // 反向转义字符 23 | content = HtmlUtils.htmlUnescape(content); 24 | return content.trim(); 25 | } 26 | return ""; 27 | } 28 | 29 | } 30 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/sys/vo/SysDepartUsersVO.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.sys.vo; 2 | 3 | import java.io.Serializable; 4 | import java.util.List; 5 | 6 | import lombok.Data; 7 | 8 | @Data 9 | public class SysDepartUsersVO implements Serializable{ 10 | private static final long serialVersionUID = 1L; 11 | 12 | /**部门id*/ 13 | private String depId; 14 | /**对应的用户id集合*/ 15 | private List userIdList; 16 | public SysDepartUsersVO(String depId, List userIdList) { 17 | super(); 18 | this.depId = depId; 19 | this.userIdList = userIdList; 20 | } 21 | //update-begin--Author:kangxiaolin Date:20190908 for:[512][部门管理]点击添加已有用户失败修复-------------------- 22 | 23 | public SysDepartUsersVO(){ 24 | 25 | } 26 | //update-begin--Author:kangxiaolin Date:20190908 for:[512][部门管理]点击添加已有用户失败修复-------------------- 27 | 28 | } 29 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/sys/service/impl/ImportFileServiceImpl.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.sys.service.impl; 2 | 3 | import lombok.extern.slf4j.Slf4j; 4 | import cc.admin.common.util.CommonUtils; 5 | import cc.admin.poi.excel.imports.base.ImportFileServiceI; 6 | import org.springframework.beans.factory.annotation.Value; 7 | import org.springframework.stereotype.Service; 8 | 9 | /** 10 | * excel导入 实现类 11 | */ 12 | @Slf4j 13 | @Service 14 | public class ImportFileServiceImpl implements ImportFileServiceI { 15 | 16 | @Value("${cc.admin.path.upload}") 17 | private String upLoadPath; 18 | 19 | @Value(value="${cc.admin.uploadType}") 20 | private String uploadType; 21 | 22 | @Override 23 | public String doUpload(byte[] data) { 24 | return CommonUtils.uploadOnlineImage(data, upLoadPath, "import", uploadType); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/sys/mapper/SysCatalogMapper.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.sys.mapper; 2 | 3 | import cc.admin.modules.sys.entity.SysCatalog; 4 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; 5 | import org.apache.ibatis.annotations.Param; 6 | 7 | /** 8 | * @Description: 分类目录 9 | * @Author: ZhangHouYing 10 | * @Date: 2020-10-17 11 | * @Version: V1.0.0 12 | */ 13 | public interface SysCatalogMapper extends BaseMapper { 14 | 15 | /** 16 | * 更新左右值 17 | * @param id 18 | * @param lft 19 | * @param rgh 20 | */ 21 | public void updateLftRgh(@Param("id") String id, @Param("lft") int lft, @Param("rgh") int rgh); 22 | 23 | /** 24 | * 根据左右值删除记录 25 | * @param lft 26 | * @param rgh 27 | * @return 28 | */ 29 | int deleteByLftRgh(@Param("lft") Integer lft,@Param("rgh") Integer rgh,@Param("type") String type); 30 | } 31 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/monitor/service/impl/MailHealthIndicator.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.monitor.service.impl; 2 | 3 | import org.springframework.boot.actuate.health.Health; 4 | import org.springframework.boot.actuate.health.HealthIndicator; 5 | import org.springframework.stereotype.Component; 6 | 7 | /** 8 | * 功能说明:自定义邮件检测 9 | * 10 | * @author: 李波 11 | * @email: 503378406@qq.com 12 | * @date: 2019-06-29 13 | */ 14 | @Component 15 | public class MailHealthIndicator implements HealthIndicator { 16 | 17 | 18 | @Override public Health health() { 19 | int errorCode = check(); 20 | if (errorCode != 0) { 21 | return Health.down().withDetail("Error Code", errorCode) .build(); 22 | } 23 | return Health.up().build(); 24 | } 25 | int check(){ 26 | //可以实现自定义的数据库检测逻辑 27 | return 0; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/quartz/job/SampleParamJob.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.quartz.job; 2 | 3 | import cc.admin.common.util.DateUtils; 4 | import org.quartz.Job; 5 | import org.quartz.JobExecutionContext; 6 | import org.quartz.JobExecutionException; 7 | 8 | import lombok.extern.slf4j.Slf4j; 9 | 10 | /** 11 | * 示例带参定时任务 12 | * 13 | * @Author Scott 14 | */ 15 | @Slf4j 16 | public class SampleParamJob implements Job { 17 | 18 | /** 19 | * 若参数变量名修改 QuartzJobController中也需对应修改 20 | */ 21 | private String parameter; 22 | 23 | public void setParameter(String parameter) { 24 | this.parameter = parameter; 25 | } 26 | 27 | @Override 28 | public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException { 29 | 30 | log.info(String.format("welcome %s! CcAdmin 带参数定时任务 SampleParamJob ! 时间:" + DateUtils.now(), this.parameter)); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/sys/service/ISysAnnouncementService.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.sys.service; 2 | 3 | import cc.admin.modules.sys.entity.SysAnnouncement; 4 | 5 | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; 6 | import com.baomidou.mybatisplus.extension.service.IService; 7 | 8 | /** 9 | * @Description: 系统通告表 10 | * @Author: jeecg-boot 11 | * @Date: 2019-01-02 12 | * @Version: V1.0 13 | */ 14 | public interface ISysAnnouncementService extends IService { 15 | 16 | public void saveAnnouncement(SysAnnouncement sysAnnouncement); 17 | 18 | public boolean upDateAnnouncement(SysAnnouncement sysAnnouncement); 19 | 20 | public void saveSysAnnouncement(String title, String msgContent); 21 | 22 | public Page querySysCementPageByUserId(Page page,String userId,String msgCategory); 23 | 24 | 25 | } 26 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/generate/util/template/include/simpleQuery.ftl: -------------------------------------------------------------------------------- 1 | 11 | 16 | 17 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/sys/service/ISysCatalogService.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.sys.service; 2 | 3 | import cc.admin.modules.sys.entity.SysCatalog; 4 | import cc.admin.modules.sys.model.CatalogTree; 5 | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; 6 | import com.baomidou.mybatisplus.extension.service.IService; 7 | 8 | import java.util.List; 9 | 10 | /** 11 | * @Description: 分类目录 12 | * @Author: ZhangHouYing 13 | * @Date: 2020-10-17 14 | * @Version: V1.0.0 15 | */ 16 | public interface ISysCatalogService extends IService { 17 | 18 | /** 19 | * 查询树列表 20 | * 21 | * @param queryWrapper 22 | * @return 23 | */ 24 | List queryTreeList(QueryWrapper queryWrapper); 25 | 26 | void add(SysCatalog sysCatalog); 27 | 28 | /** 29 | * 删除当前的以及下级的 30 | * @param id 31 | */ 32 | int deleteById(String id); 33 | } 34 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/sys/service/ISysCheckRuleService.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.sys.service; 2 | 3 | import cc.admin.modules.sys.entity.SysCheckRule; 4 | import com.alibaba.fastjson.JSONObject; 5 | import com.baomidou.mybatisplus.extension.service.IService; 6 | 7 | /** 8 | * @Description: 编码校验规则 9 | * @Author: jeecg-boot 10 | * @Date: 2020-02-04 11 | * @Version: V1.0 12 | */ 13 | public interface ISysCheckRuleService extends IService { 14 | 15 | /** 16 | * 通过 code 获取规则 17 | * 18 | * @param ruleCode 19 | * @return 20 | */ 21 | SysCheckRule getByCode(String ruleCode); 22 | 23 | 24 | /** 25 | * 通过用户设定的自定义校验规则校验传入的值 26 | * 27 | * @param checkRule 28 | * @param value 29 | * @return 返回 null代表通过校验,否则就是返回的错误提示文本 30 | */ 31 | JSONObject checkValue(SysCheckRule checkRule, String value); 32 | 33 | } 34 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/sys/service/ISysRolePermissionService.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.sys.service; 2 | 3 | import cc.admin.modules.sys.entity.SysRolePermission; 4 | import com.baomidou.mybatisplus.extension.service.IService; 5 | 6 | /** 7 | * 8 | * 角色权限表 服务类 9 | * 10 | * 11 | * @Author scott 12 | * @since 2018-12-21 13 | */ 14 | public interface ISysRolePermissionService extends IService { 15 | 16 | /** 17 | * 保存授权/先删后增 18 | * @param roleId 19 | * @param permissionIds 20 | */ 21 | public void saveRolePermission(String roleId,String permissionIds); 22 | 23 | /** 24 | * 保存授权 将上次的权限和这次作比较 差异处理提高效率 25 | * @param roleId 26 | * @param permissionIds 27 | * @param lastPermissionIds 28 | */ 29 | public void saveRolePermission(String roleId,String permissionIds,String lastPermissionIds); 30 | 31 | } 32 | -------------------------------------------------------------------------------- /module-system/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | spring: 2 | profiles: 3 | active: dev 4 | swagger: 5 | production: false 6 | basic: 7 | enable: false 8 | username: cc 9 | password: cc1314 10 | # 第三方登录 11 | justauth: 12 | enabled: true 13 | type: 14 | GITHUB: 15 | client-id: 0277e675495f14a4a183 16 | client-secret: ?? 17 | redirect-uri: http://sso.test.com:8080/cc-admin/thirdLogin/github/callback 18 | WECHAT_ENTERPRISE: 19 | client-id: wwc2a8c8b19c201bcc 20 | client-secret: ?? 21 | redirect-uri: http://sso.test.com:8080/cc-admin/thirdLogin/wechat_enterprise/callback 22 | agent-id: 1000002 23 | DINGTALK: 24 | client-id: dingoa33vjqxrbyidnmgwo 25 | client-secret: ?? 26 | redirect-uri: http://sso.test.com:8080/cc-admin/thirdLogin/dingtalk/callback 27 | cache: 28 | type: default 29 | prefix: 'demo::' 30 | timeout: 1h 31 | -------------------------------------------------------------------------------- /auto-poi/src/main/java/cc/admin/poi/excel/entity/enmus/ExcelType.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2013-2015 JEECG (jeecgos@163.com) 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package cc.admin.poi.excel.entity.enmus; 17 | 18 | /** 19 | * Excel Type 20 | * 21 | * @author JEECG 22 | * @date 2014年12月29日 下午9:08:21 23 | */ 24 | public enum ExcelType { 25 | 26 | HSSF, XSSF; 27 | 28 | } 29 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/app/service/impl/HdsServiceImpl.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.app.service.impl; 2 | 3 | import cc.admin.modules.app.service.IHdsService; 4 | import com.baomidou.dynamic.datasource.annotation.DS; 5 | import lombok.extern.slf4j.Slf4j; 6 | import org.springframework.beans.factory.annotation.Autowired; 7 | import org.springframework.jdbc.core.JdbcTemplate; 8 | import org.springframework.stereotype.Service; 9 | 10 | import java.util.List; 11 | import java.util.Map; 12 | /** 13 | * 这里提供业务库相关操作方法 14 | * 15 | * @author: ZhangHouYing 16 | * @date: 2018-07-07 10:15 17 | */ 18 | @DS("hds") 19 | @Service 20 | @Slf4j 21 | public class HdsServiceImpl implements IHdsService { 22 | 23 | @Autowired 24 | JdbcTemplate jdbcTemplate; 25 | 26 | private String schema; 27 | 28 | @Override 29 | public List> queryForList(String sql) { 30 | return jdbcTemplate.queryForList(sql); 31 | } 32 | 33 | } 34 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/baby/service/impl/BabyWordServiceImpl.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.baby.service.impl; 2 | 3 | import cc.admin.modules.baby.entity.BabyWord; 4 | import cc.admin.modules.baby.mapper.BabyWordMapper; 5 | import cc.admin.modules.baby.service.IBabyWordService; 6 | import org.springframework.beans.factory.annotation.Autowired; 7 | import org.springframework.stereotype.Service; 8 | 9 | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; 10 | 11 | import java.util.List; 12 | 13 | /** 14 | * @Description: 字词管理 15 | * @Author: ZhangHouYing 16 | * @Date: 2020-11-21 17 | * @Version: V1.0.0 18 | */ 19 | @Service 20 | public class BabyWordServiceImpl extends ServiceImpl implements IBabyWordService { 21 | 22 | @Autowired 23 | BabyWordMapper babyWordMapper; 24 | 25 | @Override 26 | public List review() { 27 | return babyWordMapper.review(); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/config/RestTemplateConfig.java: -------------------------------------------------------------------------------- 1 | package cc.admin.config; 2 | 3 | import org.springframework.context.annotation.Bean; 4 | import org.springframework.context.annotation.Configuration; 5 | import org.springframework.http.client.ClientHttpRequestFactory; 6 | import org.springframework.http.client.SimpleClientHttpRequestFactory; 7 | import org.springframework.web.client.RestTemplate; 8 | 9 | @Configuration 10 | public class RestTemplateConfig { 11 | 12 | @Bean 13 | public RestTemplate restTemplate(ClientHttpRequestFactory factory) { 14 | return new RestTemplate(factory); 15 | } 16 | 17 | @Bean 18 | public ClientHttpRequestFactory simpleClientHttpRequestFactory() { 19 | SimpleClientHttpRequestFactory factory = new SimpleClientHttpRequestFactory(); 20 | factory.setReadTimeout(5000);//ms 21 | factory.setConnectTimeout(15000);//ms 22 | return factory; 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/shiro/vo/ResponseBean.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.shiro.vo; 2 | public class ResponseBean { 3 | 4 | // http 状态码 5 | private int code; 6 | 7 | // 返回信息 8 | private String msg; 9 | 10 | // 返回的数据 11 | private Object data; 12 | 13 | public ResponseBean(int code, String msg, Object data) { 14 | this.code = code; 15 | this.msg = msg; 16 | this.data = data; 17 | } 18 | 19 | public int getCode() { 20 | return code; 21 | } 22 | 23 | public void setCode(int code) { 24 | this.code = code; 25 | } 26 | 27 | public String getMsg() { 28 | return msg; 29 | } 30 | 31 | public void setMsg(String msg) { 32 | this.msg = msg; 33 | } 34 | 35 | public Object getData() { 36 | return data; 37 | } 38 | 39 | public void setData(Object data) { 40 | this.data = data; 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/sys/service/ISysAnnouncementSendService.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.sys.service; 2 | 3 | import java.util.List; 4 | 5 | import cc.admin.modules.sys.entity.SysAnnouncementSend; 6 | import cc.admin.modules.sys.model.AnnouncementSendModel; 7 | 8 | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; 9 | import com.baomidou.mybatisplus.extension.service.IService; 10 | 11 | /** 12 | * @Description: 用户通告阅读标记表 13 | * @Author: jeecg-boot 14 | * @Date: 2019-02-21 15 | * @Version: V1.0 16 | */ 17 | public interface ISysAnnouncementSendService extends IService { 18 | 19 | public List queryByUserId(String userId); 20 | 21 | /** 22 | * @功能:获取我的消息 23 | * @param announcementSendModel 24 | * @return 25 | */ 26 | public Page getMyAnnouncementSendPage(Page page, AnnouncementSendModel announcementSendModel); 27 | 28 | } 29 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/sys/service/impl/SysDepartRoleServiceImpl.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.sys.service.impl; 2 | 3 | import cc.admin.modules.sys.entity.SysDepartRole; 4 | import cc.admin.modules.sys.mapper.SysDepartRoleMapper; 5 | import cc.admin.modules.sys.service.ISysDepartRoleService; 6 | import org.springframework.stereotype.Service; 7 | 8 | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; 9 | 10 | import java.util.List; 11 | 12 | /** 13 | * @Description: 部门角色 14 | * @Author: jeecg-boot 15 | * @Date: 2020-02-12 16 | * @Version: V1.0 17 | */ 18 | @Service 19 | public class SysDepartRoleServiceImpl extends ServiceImpl implements ISysDepartRoleService { 20 | 21 | @Override 22 | public List queryDeptRoleByDeptAndUser(String orgCode, String userId) { 23 | return this.baseMapper.queryDeptRoleByDeptAndUser(orgCode,userId); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/bi/core/model/FieldCustom.java: -------------------------------------------------------------------------------- 1 | /* 2 | * << 3 | * Davinci 4 | * == 5 | * Copyright (C) 2016 - 2019 EDP 6 | * == 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain getHardWareId copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | * >> 17 | * 18 | */ 19 | 20 | package cc.admin.modules.bi.core.model; 21 | 22 | import lombok.Data; 23 | 24 | @Data 25 | public class FieldCustom { 26 | private String format; 27 | } 28 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/bi/core/model/FieldDate.java: -------------------------------------------------------------------------------- 1 | /* 2 | * << 3 | * Davinci 4 | * == 5 | * Copyright (C) 2016 - 2019 EDP 6 | * == 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain getHardWareId copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | * >> 17 | * 18 | */ 19 | 20 | package cc.admin.modules.bi.core.model; 21 | 22 | import lombok.Data; 23 | 24 | @Data 25 | public class FieldDate { 26 | private String format; 27 | } 28 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/demo/mock/json/workplace_teams.json: -------------------------------------------------------------------------------- 1 | { 2 | "message": "", 3 | "result": [ 4 | { 5 | "id": 1, 6 | "name": "科学搬砖组", 7 | "avatar": "https://gw.alipayobjects.com/zos/rmsportal/BiazfanxmamNRoxxVxka.png" 8 | }, 9 | { 10 | "id": 2, 11 | "name": "程序员日常", 12 | "avatar": "https://gw.alipayobjects.com/zos/rmsportal/cnrhVkzwxjPwAaCfPbdc.png" 13 | }, 14 | { 15 | "id": 1, 16 | "name": "设计天团", 17 | "avatar": "https://gw.alipayobjects.com/zos/rmsportal/gaOngJwsRYRaVAuXXcmB.png" 18 | }, 19 | { 20 | "id": 1, 21 | "name": "中二少女团", 22 | "avatar": "https://gw.alipayobjects.com/zos/rmsportal/ubnKSIfAJTxIgXOKlciN.png" 23 | }, 24 | { 25 | "id": 1, 26 | "name": "骗你学计算机", 27 | "avatar": "https://gw.alipayobjects.com/zos/rmsportal/WhxKECPNujWoWEFNdnJE.png" 28 | } 29 | ], 30 | "status": 200, 31 | "timestamp": 0 32 | } -------------------------------------------------------------------------------- /module-system/src/release/bin/startup.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | 3 | REM ------------------------------------------------------------------------ 4 | REM cc-admin-api-module-system 5 | REM ------------------------------------------------------------------------ 6 | 7 | rem 8 | rem Find the application home. 9 | rem 10 | if "%OS%"=="Windows_NT" goto nt 11 | 12 | echo This is not NT, so please edit this script and set _APP_HOME manually 13 | set _APP_HOME=. 14 | # set utf8 15 | chcp 65001 16 | 17 | goto conf 18 | 19 | :nt 20 | rem %~dp0 is name of current script under NT 21 | set _APP_HOME=%~dp0 22 | 23 | rem 24 | rem Find the wrapper.conf 25 | rem 26 | :conf 27 | set _WRAPPER_CONF=wrapper.conf 28 | 29 | rem 30 | rem Run the application. 31 | rem At runtime, the current directory will be that of Wrapper.exe 32 | rem 33 | "%_APP_HOME%wrapper.exe" -c %_WRAPPER_CONF% 34 | if not errorlevel 1 goto end 35 | pause 36 | 37 | :end 38 | set _APP_HOME= 39 | set _WRAPPER_CONF= 40 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/bi/core/model/FieldPercentage.java: -------------------------------------------------------------------------------- 1 | /* 2 | * << 3 | * Davinci 4 | * == 5 | * Copyright (C) 2016 - 2019 EDP 6 | * == 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain getHardWareId copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | * >> 17 | * 18 | */ 19 | 20 | package cc.admin.modules.bi.core.model; 21 | 22 | import lombok.Data; 23 | 24 | @Data 25 | public class FieldPercentage { 26 | private int decimalPlaces; 27 | } 28 | -------------------------------------------------------------------------------- /module-system/src/main/resources/banner.txt: -------------------------------------------------------------------------------- 1 | ${AnsiColor.BRIGHT_BLUE} 2 | 3 | .oooooo. .oooooo. .o. oooooooooo. ooo ooooo ooooo ooooo ooo 4 | d8P' `Y8b d8P' `Y8b .888. `888' `Y8b `88. .888' `888' `888b. `8' 5 | 888 888 .8"888. 888 888 888b d'888 888 8 `88b. 8 6 | 888 888 .8' `888. 888 888 8 Y88. .P 888 888 8 `88b. 8 7 | 888 888 8888888 .88ooo8888. 888 888 8 `888' 888 888 8 `88b.8 8 | `88b ooo `88b ooo .8' `888. 888 d88' 8 Y 888 888 8 `888 9 | `Y8bood8P' `Y8bood8P' o88o o8888o o888bood8P' o8o o888o o888o o8o `8 10 | 11 | 12 | 13 | ${AnsiColor.BRIGHT_GREEN} 14 | CC Admin Version: 1.0.0 15 | Spring Boot Version: ${spring-boot.version}${spring-boot.formatted-version} 16 | ${AnsiColor.BLACK} 17 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/sys/entity/SysUserDepart.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.sys.entity; 2 | 3 | import java.io.Serializable; 4 | 5 | import com.baomidou.mybatisplus.annotation.IdType; 6 | import com.baomidou.mybatisplus.annotation.TableId; 7 | import com.baomidou.mybatisplus.annotation.TableName; 8 | 9 | import lombok.Data; 10 | @Data 11 | @TableName("sys_user_depart") 12 | public class SysUserDepart implements Serializable { 13 | private static final long serialVersionUID = 1L; 14 | 15 | /**主键id*/ 16 | @TableId(type = IdType.ID_WORKER_STR) 17 | private String id; 18 | /**用户id*/ 19 | private String userId; 20 | /**部门id*/ 21 | private String depId; 22 | public SysUserDepart(String id, String userId, String depId) { 23 | super(); 24 | this.id = id; 25 | this.userId = userId; 26 | this.depId = depId; 27 | } 28 | 29 | public SysUserDepart(String id, String departId) { 30 | this.userId = id; 31 | this.depId = departId; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/sys/vo/SysDictPage.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.sys.vo; 2 | 3 | import lombok.Data; 4 | import cc.admin.modules.sys.entity.SysDictItem; 5 | import cc.admin.poi.excel.annotation.Excel; 6 | import cc.admin.poi.excel.annotation.ExcelCollection; 7 | 8 | import java.util.List; 9 | 10 | @Data 11 | public class SysDictPage { 12 | 13 | /** 14 | * 主键 15 | */ 16 | private String id; 17 | /** 18 | * 字典名称 19 | */ 20 | @Excel(name = "字典名称", width = 20) 21 | private String dictName; 22 | 23 | /** 24 | * 字典编码 25 | */ 26 | @Excel(name = "字典编码", width = 30) 27 | private String dictCode; 28 | /** 29 | * 删除状态 30 | */ 31 | private Integer delFlag; 32 | /** 33 | * 描述 34 | */ 35 | @Excel(name = "描述", width = 30) 36 | private String description; 37 | 38 | @ExcelCollection(name = "字典列表") 39 | private List sysDictItemList; 40 | 41 | } 42 | -------------------------------------------------------------------------------- /base-common/src/main/java/cc/admin/common/sys/vo/DictModel.java: -------------------------------------------------------------------------------- 1 | package cc.admin.common.sys.vo; 2 | 3 | import java.io.Serializable; 4 | 5 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 6 | 7 | import lombok.Data; 8 | import lombok.EqualsAndHashCode; 9 | import lombok.experimental.Accessors; 10 | 11 | @Data 12 | @EqualsAndHashCode(callSuper = false) 13 | @Accessors(chain = true) 14 | @JsonIgnoreProperties(ignoreUnknown = true) 15 | public class DictModel implements Serializable{ 16 | private static final long serialVersionUID = 1L; 17 | 18 | public DictModel() { 19 | } 20 | 21 | public DictModel(String value, String text) { 22 | this.value = value; 23 | this.text = text; 24 | } 25 | 26 | /** 27 | * 字典value 28 | */ 29 | private String value; 30 | /** 31 | * 字典文本 32 | */ 33 | private String text; 34 | 35 | /** 36 | * 特殊用途: JgEditableTable 37 | * @return 38 | */ 39 | public String getTitle() { 40 | return this.text; 41 | } 42 | 43 | } 44 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/bi/core/model/FieldScientificNotation.java: -------------------------------------------------------------------------------- 1 | /* 2 | * << 3 | * Davinci 4 | * == 5 | * Copyright (C) 2016 - 2019 EDP 6 | * == 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain getHardWareId copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | * >> 17 | * 18 | */ 19 | 20 | package cc.admin.modules.bi.core.model; 21 | 22 | import lombok.Data; 23 | 24 | @Data 25 | public class FieldScientificNotation { 26 | private int decimalPlaces; 27 | } 28 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/sys/service/impl/SysUserRoleServiceImpl.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.sys.service.impl; 2 | 3 | import cc.admin.modules.sys.entity.SysUserRole; 4 | import cc.admin.modules.sys.mapper.SysUserRoleMapper; 5 | import cc.admin.modules.sys.service.ISysUserRoleService; 6 | import org.springframework.beans.factory.annotation.Autowired; 7 | import org.springframework.stereotype.Service; 8 | 9 | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; 10 | 11 | /** 12 | * 13 | * 用户角色表 服务实现类 14 | * 15 | * 16 | * @Author scott 17 | * @since 2018-12-21 18 | */ 19 | @Service 20 | public class SysUserRoleServiceImpl extends ServiceImpl implements ISysUserRoleService { 21 | 22 | @Autowired 23 | SysUserRoleMapper sysUserRoleMapper; 24 | 25 | @Override 26 | public void removeAllByRoleId(String roleId) { 27 | sysUserRoleMapper.removeAllByRoleId(roleId); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /auto-poi/src/main/java/cc/admin/poi/excel/entity/enmus/CellValueType.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2013-2015 JEECG (jeecgos@163.com) 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package cc.admin.poi.excel.entity.enmus; 17 | 18 | /** 19 | * Cell 值得类型 20 | * 21 | * @author JEECG 22 | * @date 2014年12月29日 下午10:20:49 23 | */ 24 | public enum CellValueType { 25 | 26 | String, Number, Boolean, Date, TElement, Null, None; 27 | 28 | } 29 | -------------------------------------------------------------------------------- /base-common/src/main/java/cc/admin/common/aspect/annotation/AutoLog.java: -------------------------------------------------------------------------------- 1 | package cc.admin.common.aspect.annotation; 2 | 3 | import java.lang.annotation.Documented; 4 | import java.lang.annotation.ElementType; 5 | import java.lang.annotation.Retention; 6 | import java.lang.annotation.RetentionPolicy; 7 | import java.lang.annotation.Target; 8 | 9 | import cc.admin.common.constant.CommonConstant; 10 | 11 | /** 12 | * 系统日志注解 13 | * 14 | * @Author scott 15 | * @email jeecgos@163.com 16 | * @Date 2019年1月14日 17 | */ 18 | @Target(ElementType.METHOD) 19 | @Retention(RetentionPolicy.RUNTIME) 20 | @Documented 21 | public @interface AutoLog { 22 | 23 | /** 24 | * 日志内容 25 | * 26 | * @return 27 | */ 28 | String value() default ""; 29 | 30 | /** 31 | * 日志类型 32 | * 33 | * @return 0:操作日志;1:登录日志;2:定时任务; 34 | */ 35 | int logType() default CommonConstant.LOG_TYPE_2; 36 | 37 | /** 38 | * 操作日志类型 39 | * 40 | * @return (1查询,2添加,3修改,4删除) 41 | */ 42 | int operateType() default 0; 43 | } 44 | -------------------------------------------------------------------------------- /base-common/src/main/java/cc/admin/common/util/dynamic/db/DbValidationQueryEnum.java: -------------------------------------------------------------------------------- 1 | package cc.admin.common.util.dynamic.db; 2 | 3 | public enum DbValidationQueryEnum { 4 | ORACLE("oracle", "SELECT 1 FROM DUAL"), 5 | MYSQL("mysql", "select 1"), 6 | SQLSERVER("sqlserver", "SELECT 1 FROM DUAL"),; 7 | 8 | DbValidationQueryEnum(String dbType, String validationQuerySql) { 9 | this.dbType = dbType; 10 | this.validationQuerySql = validationQuerySql; 11 | } 12 | 13 | private String dbType; 14 | private String validationQuerySql; 15 | 16 | public String getDbType() { 17 | return dbType; 18 | } 19 | 20 | public void setDbType(String dbType) { 21 | this.dbType = dbType; 22 | } 23 | 24 | public String getValidationQuerySql() { 25 | return validationQuerySql; 26 | } 27 | 28 | public void setValidationQuerySql(String validationQuerySql) { 29 | this.validationQuerySql = validationQuerySql; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/config/StaticConfig.java: -------------------------------------------------------------------------------- 1 | package cc.admin.config; 2 | 3 | import cc.admin.common.util.DySmsHelper; 4 | import cc.admin.modules.message.handle.impl.EmailSendMsgHandle; 5 | import org.springframework.beans.factory.annotation.Value; 6 | import org.springframework.context.annotation.Bean; 7 | import org.springframework.context.annotation.Configuration; 8 | 9 | /** 10 | * 设置静态参数初始化 11 | */ 12 | @Configuration 13 | public class StaticConfig { 14 | 15 | @Value("${cc.admin.sms.accessKeyId}") 16 | private String accessKeyId; 17 | 18 | @Value("${cc.admin.sms.accessKeySecret}") 19 | private String accessKeySecret; 20 | 21 | @Value(value = "${spring.mail.username}") 22 | private String emailFrom; 23 | 24 | 25 | @Bean 26 | public void initStatic() { 27 | DySmsHelper.setAccessKeyId(accessKeyId); 28 | DySmsHelper.setAccessKeySecret(accessKeySecret); 29 | EmailSendMsgHandle.setEmailFrom(emailFrom); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /base-common/src/main/java/cc/admin/common/util/jsonschema/validate/HiddenProperty.java: -------------------------------------------------------------------------------- 1 | package cc.admin.common.util.jsonschema.validate; 2 | 3 | import java.util.HashMap; 4 | import java.util.Map; 5 | 6 | import cc.admin.common.util.jsonschema.CommonProperty; 7 | 8 | import com.alibaba.fastjson.JSONObject; 9 | 10 | /** 11 | * 字典属性 12 | * @author 86729 13 | * 14 | */ 15 | public class HiddenProperty extends CommonProperty { 16 | 17 | private static final long serialVersionUID = -8939298551502162479L; 18 | 19 | public HiddenProperty() {} 20 | 21 | public HiddenProperty(String key,String title) { 22 | this.type = "string"; 23 | this.view = "hidden"; 24 | this.key = key; 25 | this.title = title; 26 | } 27 | 28 | @Override 29 | public Map getPropertyJson() { 30 | Map map = new HashMap<>(); 31 | map.put("key",getKey()); 32 | JSONObject prop = getCommonJson(); 33 | prop.put("hidden",true); 34 | map.put("prop",prop); 35 | return map; 36 | } 37 | 38 | } 39 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/bi/core/model/FieldCurrency.java: -------------------------------------------------------------------------------- 1 | /* 2 | * << 3 | * Davinci 4 | * == 5 | * Copyright (C) 2016 - 2019 EDP 6 | * == 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain getHardWareId copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | * >> 17 | * 18 | */ 19 | 20 | package cc.admin.modules.bi.core.model; 21 | 22 | import lombok.Data; 23 | 24 | @Data 25 | public class FieldCurrency extends FieldNumeric { 26 | private String prefix; 27 | private String suffix; 28 | } 29 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/bi/core/service/CheckEntityService.java: -------------------------------------------------------------------------------- 1 | /* 2 | * << 3 | * Davinci 4 | * == 5 | * Copyright (C) 2016 - 2019 EDP 6 | * == 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain getHardWareId copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | * >> 17 | * 18 | */ 19 | 20 | package cc.admin.modules.bi.core.service; 21 | 22 | /** 23 | * 验证资源是否存在接口,资源接口必须实现 24 | */ 25 | public interface CheckEntityService { 26 | 27 | boolean isExist(String name, Long id, Long scopeId); 28 | } 29 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/monitor/controller/ServerMonitorController.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.monitor.controller; 2 | 3 | import cc.admin.common.api.vo.Result; 4 | import cc.admin.modules.monitor.service.ServerMonitorService; 5 | import lombok.extern.slf4j.Slf4j; 6 | import org.springframework.beans.factory.annotation.Autowired; 7 | import org.springframework.web.bind.annotation.RequestMapping; 8 | import org.springframework.web.bind.annotation.RequestMethod; 9 | import org.springframework.web.bind.annotation.RestController; 10 | 11 | /** 12 | * @author Zhang houying 13 | * @date 2019-11-03 14 | */ 15 | @RestController 16 | @RequestMapping("/monitor/serverMonitor") 17 | @Slf4j 18 | public class ServerMonitorController { 19 | 20 | @Autowired 21 | private ServerMonitorService serverMonitorService; 22 | 23 | @RequestMapping(value = "/getServerInfo", method = RequestMethod.GET) 24 | public Result getServerInfo() { 25 | return Result.ok(serverMonitorService.getServerInfo()); 26 | } 27 | 28 | } 29 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Built application files and Maven 2 | target/ 3 | pom.xml.tag 4 | pom.xml.releaseBackup 5 | pom.xml.versionsBackup 6 | pom.xml.next 7 | release.properties 8 | dependency-reduced-pom.xml 9 | buildNumber.properties 10 | .mvn/timing.properties 11 | 12 | # Compiled class files 13 | *.class 14 | 15 | # Log Files 16 | *.log 17 | 18 | # About IntelliJ 19 | *.iml 20 | /.idea/ 21 | /out/ 22 | 23 | # BlueJ files 24 | *.ctxt 25 | 26 | # Mobile Tools for Java (J2ME) 27 | .mtj.tmp/ 28 | 29 | # macOS 30 | .DS_Store 31 | 32 | 33 | # CMake 34 | cmake-build-debug/ 35 | 36 | # File-based project format 37 | *.iws 38 | 39 | # mpeltonen/sbt-idea plugin 40 | .idea_modules/ 41 | 42 | # JIRA plugin 43 | atlassian-ide-plugin.xml 44 | 45 | # Crashlytics plugin (for Android Studio and IntelliJ) 46 | com_crashlytics_export_strings.xml 47 | crashlytics.properties 48 | crashlytics-build.properties 49 | fabric.properties 50 | 51 | # virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml 52 | hs_err_pid* -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/bi/core/model/SqlVariableChannel.java: -------------------------------------------------------------------------------- 1 | /* 2 | * << 3 | * Davinci 4 | * == 5 | * Copyright (C) 2016 - 2019 EDP 6 | * == 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain getHardWareId copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | * >> 17 | * 18 | */ 19 | 20 | package cc.admin.modules.bi.core.model; 21 | 22 | import lombok.Data; 23 | 24 | @Data 25 | public class SqlVariableChannel { 26 | private String name; 27 | private Long tenantId; 28 | private Long bizId; 29 | } 30 | -------------------------------------------------------------------------------- /auto-poi/.gitignore: -------------------------------------------------------------------------------- 1 | # Built application files and Maven 2 | target/ 3 | pom.xml.tag 4 | pom.xml.releaseBackup 5 | pom.xml.versionsBackup 6 | pom.xml.next 7 | release.properties 8 | dependency-reduced-pom.xml 9 | buildNumber.properties 10 | .mvn/timing.properties 11 | 12 | # Compiled class files 13 | *.class 14 | 15 | # Log Files 16 | *.log 17 | 18 | # About IntelliJ 19 | *.iml 20 | /.idea/ 21 | /out/ 22 | 23 | # BlueJ files 24 | *.ctxt 25 | 26 | # Mobile Tools for Java (J2ME) 27 | .mtj.tmp/ 28 | 29 | # macOS 30 | .DS_Store 31 | 32 | 33 | # CMake 34 | cmake-build-debug/ 35 | 36 | # File-based project format 37 | *.iws 38 | 39 | # mpeltonen/sbt-idea plugin 40 | .idea_modules/ 41 | 42 | # JIRA plugin 43 | atlassian-ide-plugin.xml 44 | 45 | # Crashlytics plugin (for Android Studio and IntelliJ) 46 | com_crashlytics_export_strings.xml 47 | crashlytics.properties 48 | crashlytics-build.properties 49 | fabric.properties 50 | 51 | # virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml 52 | hs_err_pid* -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/sys/service/ISysUserDepartService.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.sys.service; 2 | 3 | 4 | import java.util.List; 5 | 6 | import cc.admin.modules.sys.entity.SysUser; 7 | import cc.admin.modules.sys.entity.SysUserDepart; 8 | import cc.admin.modules.sys.model.DepartIdModel; 9 | 10 | import com.baomidou.mybatisplus.extension.service.IService; 11 | 12 | /** 13 | * 14 | * SysUserDpeart用户组织机构service 15 | * 16 | * @Author ZhiLin 17 | * 18 | */ 19 | public interface ISysUserDepartService extends IService { 20 | 21 | 22 | /** 23 | * 根据指定用户id查询部门信息 24 | * @param userId 25 | * @return 26 | */ 27 | List queryDepartIdsOfUser(String userId); 28 | 29 | 30 | /** 31 | * 根据部门id查询用户信息 32 | * @param depId 33 | * @return 34 | */ 35 | List queryUserByDepId(String depId); 36 | /** 37 | * 根据部门code,查询当前部门和下级部门的用户信息 38 | */ 39 | public List queryUserByDepCode(String depCode,String realname); 40 | } 41 | -------------------------------------------------------------------------------- /base-common/.gitignore: -------------------------------------------------------------------------------- 1 | # Built application files and Maven 2 | target/ 3 | pom.xml.tag 4 | pom.xml.releaseBackup 5 | pom.xml.versionsBackup 6 | pom.xml.next 7 | release.properties 8 | dependency-reduced-pom.xml 9 | buildNumber.properties 10 | .mvn/timing.properties 11 | 12 | # Compiled class files 13 | *.class 14 | 15 | # Log Files 16 | *.log 17 | 18 | # About IntelliJ 19 | *.iml 20 | /.idea/ 21 | /out/ 22 | 23 | # BlueJ files 24 | *.ctxt 25 | 26 | # Mobile Tools for Java (J2ME) 27 | .mtj.tmp/ 28 | 29 | # macOS 30 | .DS_Store 31 | 32 | 33 | # CMake 34 | cmake-build-debug/ 35 | 36 | # File-based project format 37 | *.iws 38 | 39 | # mpeltonen/sbt-idea plugin 40 | .idea_modules/ 41 | 42 | # JIRA plugin 43 | atlassian-ide-plugin.xml 44 | 45 | # Crashlytics plugin (for Android Studio and IntelliJ) 46 | com_crashlytics_export_strings.xml 47 | crashlytics.properties 48 | crashlytics-build.properties 49 | fabric.properties 50 | 51 | # virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml 52 | hs_err_pid* -------------------------------------------------------------------------------- /module-system/.gitignore: -------------------------------------------------------------------------------- 1 | # Built application files and Maven 2 | target/ 3 | pom.xml.tag 4 | pom.xml.releaseBackup 5 | pom.xml.versionsBackup 6 | pom.xml.next 7 | release.properties 8 | dependency-reduced-pom.xml 9 | buildNumber.properties 10 | .mvn/timing.properties 11 | 12 | # Compiled class files 13 | *.class 14 | 15 | # Log Files 16 | *.log 17 | 18 | # About IntelliJ 19 | *.iml 20 | /.idea/ 21 | /out/ 22 | 23 | # BlueJ files 24 | *.ctxt 25 | 26 | # Mobile Tools for Java (J2ME) 27 | .mtj.tmp/ 28 | 29 | # macOS 30 | .DS_Store 31 | 32 | 33 | # CMake 34 | cmake-build-debug/ 35 | 36 | # File-based project format 37 | *.iws 38 | 39 | # mpeltonen/sbt-idea plugin 40 | .idea_modules/ 41 | 42 | # JIRA plugin 43 | atlassian-ide-plugin.xml 44 | 45 | # Crashlytics plugin (for Android Studio and IntelliJ) 46 | com_crashlytics_export_strings.xml 47 | crashlytics.properties 48 | crashlytics-build.properties 49 | fabric.properties 50 | 51 | # virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml 52 | hs_err_pid* -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/sys/service/ISysDepartPermissionService.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.sys.service; 2 | 3 | import cc.admin.modules.sys.entity.SysDepartPermission; 4 | import cc.admin.modules.sys.entity.SysPermissionDataRule; 5 | import com.baomidou.mybatisplus.extension.service.IService; 6 | 7 | import java.util.List; 8 | 9 | /** 10 | * @Description: 部门权限表 11 | * @Author: jeecg-boot 12 | * @Date: 2020-02-11 13 | * @Version: V1.0 14 | */ 15 | public interface ISysDepartPermissionService extends IService { 16 | /** 17 | * 保存授权 将上次的权限和这次作比较 差异处理提高效率 18 | * @param departId 19 | * @param permissionIds 20 | * @param lastPermissionIds 21 | */ 22 | public void saveDepartPermission(String departId,String permissionIds,String lastPermissionIds); 23 | 24 | /** 25 | * 根据部门id,菜单id获取数据规则 26 | * @param permissionId 27 | * @return 28 | */ 29 | List getPermRuleListByDeptIdAndPermId(String departId, String permissionId); 30 | } 31 | -------------------------------------------------------------------------------- /auto-poi/src/main/java/cc/admin/poi/handler/inter/IExcelReadRowHanlder.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2013-2015 JEECG (jeecgos@163.com) 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package cc.admin.poi.handler.inter; 17 | 18 | /** 19 | * 接口自定义处理类 20 | * 21 | * @author JEECG 22 | * @date 2015年1月16日 下午8:06:26 23 | * @param 24 | */ 25 | public interface IExcelReadRowHanlder { 26 | /** 27 | * 处理解析对象 28 | * 29 | * @param t 30 | */ 31 | public void hanlder(T t); 32 | 33 | } 34 | -------------------------------------------------------------------------------- /base-common/src/main/java/cc/admin/common/exception/CcAdminException.java: -------------------------------------------------------------------------------- 1 | package cc.admin.common.exception; 2 | 3 | import com.google.common.base.Strings; 4 | public class CcAdminException extends RuntimeException { 5 | private static final long serialVersionUID = 1L; 6 | 7 | public CcAdminException(String message){ 8 | super(message); 9 | } 10 | 11 | public CcAdminException(Throwable cause) 12 | { 13 | super(cause); 14 | } 15 | 16 | public CcAdminException(String message,Throwable cause) 17 | { 18 | super(message,cause); 19 | } 20 | 21 | public CcAdminException(String message, Object... args) { 22 | super(Strings.lenientFormat(message, args)); 23 | } 24 | 25 | public static void runTimeException(String message) { 26 | throw new CcAdminException(message); 27 | } 28 | 29 | public static void runTimeException(String message, Object... args) { 30 | throw new CcAdminException(message, args); 31 | } 32 | 33 | public static void runTimeException(String message, Throwable cause) { 34 | throw new CcAdminException(message, cause); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/bi/core/model/SourceTableInfo.java: -------------------------------------------------------------------------------- 1 | /* 2 | * << 3 | * Davinci 4 | * == 5 | * Copyright (C) 2016 - 2019 EDP 6 | * == 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain getHardWareId copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | * >> 17 | * 18 | */ 19 | 20 | package cc.admin.modules.bi.core.model; 21 | 22 | import lombok.Data; 23 | 24 | /** 25 | * 26 | * @author: ZhangHouYing 27 | */ 28 | @Data 29 | public class SourceTableInfo extends TableInfo { 30 | private String sourceId; 31 | private String tableName; 32 | } 33 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/jp/util/LevelFreeMaker.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.jp.util; 2 | 3 | import freemarker.template.Configuration; 4 | import freemarker.template.Template; 5 | import lombok.extern.slf4j.Slf4j; 6 | 7 | import java.io.StringWriter; 8 | import java.util.Map; 9 | /** 10 | * @author: ZhangHouYing 11 | * @date: 2021-04-18 15:35 12 | */ 13 | @Slf4j 14 | public class LevelFreeMaker { 15 | private static Configuration configuration = new Configuration(Configuration.DEFAULT_INCOMPATIBLE_IMPROVEMENTS); 16 | 17 | public static String renderContent(String name, Map map) { 18 | try { 19 | StringWriter stringWriter = new StringWriter(); 20 | configuration.setClassForTemplateLoading(LevelFreeMaker.class, "level"); 21 | Template template = configuration.getTemplate(name, "utf-8"); 22 | template.process(map, stringWriter); 23 | return stringWriter.toString(); 24 | } catch (Exception exception) { 25 | log.error(exception.getMessage(), (Throwable) exception); 26 | return exception.toString(); 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /auto-poi/src/main/java/cc/admin/poi/excel/html/helper/excelStyle.css: -------------------------------------------------------------------------------- 1 | .excelDefaults { 2 | background-color: white; 3 | color: black; 4 | text-decoration: none; 5 | direction: ltr; 6 | text-transform: none; 7 | text-indent: 0; 8 | letter-spacing: 0; 9 | word-spacing: 0; 10 | white-space: normal; 11 | unicode-bidi: normal; 12 | vertical-align: 0; 13 | text-shadow: none; 14 | padding: 0; 15 | margin: 0; 16 | border-collapse: collapse; 17 | white-space: pre-wrap; 18 | word-wrap: break-word; 19 | word-break: break-all; 20 | } 21 | 22 | .excelDefaults td { 23 | padding: 1px 5px; 24 | border: 1px solid silver; 25 | border-color: #000000; 26 | text-align: center; 27 | vertical-align: middle; 28 | font-size: 12pt; 29 | } 30 | 31 | .excelDefaults .colHeader { 32 | background-color: silver; 33 | font-weight: bold; 34 | border: 1px solid black; 35 | text-align: center; 36 | padding: 1px 5px; 37 | } 38 | 39 | .excelDefaults .rowHeader { 40 | background-color: silver; 41 | font-weight: bold; 42 | border: 1px solid black; 43 | text-align: right; 44 | padding: 1px 5px; 45 | } -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/sys/mapper/SysAnnouncementSendMapper.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.sys.mapper; 2 | 3 | import java.util.List; 4 | 5 | import cc.admin.modules.sys.model.AnnouncementSendModel; 6 | import org.apache.ibatis.annotations.Param; 7 | import cc.admin.modules.sys.entity.SysAnnouncementSend; 8 | 9 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; 10 | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; 11 | 12 | /** 13 | * @Description: 用户通告阅读标记表 14 | * @Author: jeecg-boot 15 | * @Date: 2019-02-21 16 | * @Version: V1.0 17 | */ 18 | public interface SysAnnouncementSendMapper extends BaseMapper { 19 | 20 | public List queryByUserId(@Param("userId") String userId); 21 | 22 | /** 23 | * @功能:获取我的消息 24 | * @param announcementSendModel 25 | * @param pageSize 26 | * @param pageNo 27 | * @return 28 | */ 29 | public List getMyAnnouncementSendList(Page page, @Param("announcementSendModel") AnnouncementSendModel announcementSendModel); 30 | 31 | } 32 | -------------------------------------------------------------------------------- /base-common/src/main/java/cc/admin/common/sys/vo/ComboModel.java: -------------------------------------------------------------------------------- 1 | package cc.admin.common.sys.vo; 2 | 3 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 4 | import lombok.Data; 5 | import lombok.EqualsAndHashCode; 6 | import lombok.experimental.Accessors; 7 | 8 | import java.io.Serializable; 9 | 10 | @Data 11 | @EqualsAndHashCode(callSuper = false) 12 | @Accessors(chain = true) 13 | @JsonIgnoreProperties(ignoreUnknown = true) 14 | public class ComboModel implements Serializable { 15 | private String id; 16 | private String title; 17 | /**文档管理 表单table默认选中*/ 18 | private boolean checked; 19 | /**文档管理 表单table 用户账号*/ 20 | private String username; 21 | /**文档管理 表单table 用户邮箱*/ 22 | private String email; 23 | /**文档管理 表单table 角色编码*/ 24 | private String roleCode; 25 | 26 | public ComboModel(){ 27 | 28 | }; 29 | 30 | public ComboModel(String id,String title,boolean checked,String username){ 31 | this.id = id; 32 | this.title = title; 33 | this.checked = false; 34 | this.username = username; 35 | }; 36 | } 37 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/sys/mapper/SysRoleMapper.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.sys.mapper; 2 | 3 | import cc.admin.modules.sys.entity.SysRole; 4 | import org.apache.ibatis.annotations.Delete; 5 | import org.apache.ibatis.annotations.Param; 6 | 7 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; 8 | 9 | /** 10 | * 11 | * 角色表 Mapper 接口 12 | * 13 | * 14 | * @Author scott 15 | * @since 2018-12-19 16 | */ 17 | public interface SysRoleMapper extends BaseMapper { 18 | 19 | /** 20 | * @Author scott 21 | * @Date 2019/12/13 16:12 22 | * @Description: 删除角色与用户关系 23 | */ 24 | @Delete("delete from sys_user_role where role_id = #{roleId}") 25 | void deleteRoleUserRelation(@Param("roleId") String roleId); 26 | 27 | 28 | /** 29 | * @Author scott 30 | * @Date 2019/12/13 16:12 31 | * @Description: 删除角色与权限关系 32 | */ 33 | @Delete("delete from sys_role_permission where role_id = #{roleId}") 34 | void deleteRolePermissionRelation(@Param("roleId") String roleId); 35 | 36 | } 37 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/bi/core/enums/LockType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * << 3 | * Davinci 4 | * == 5 | * Copyright (C) 2016 - 2019 EDP 6 | * == 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain getHardWareId copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | * >> 17 | * 18 | */ 19 | 20 | package cc.admin.modules.bi.core.enums; 21 | 22 | public enum LockType { 23 | 24 | REDIS("redis"), 25 | LOCAL("local"); 26 | 27 | private String type; 28 | 29 | LockType(String type) { 30 | this.type = type; 31 | } 32 | 33 | public String getType() { 34 | return type; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/jp/service/IJpPersonService.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.jp.service; 2 | 3 | import cc.admin.modules.jp.entity.JpPerson; 4 | import cc.admin.modules.jp.entity.JpPersonTree; 5 | import cc.admin.modules.jp.entity.JpTreeChartData; 6 | import com.baomidou.mybatisplus.extension.service.IService; 7 | import org.springframework.core.io.FileSystemResource; 8 | import org.springframework.http.ResponseEntity; 9 | 10 | import javax.servlet.http.HttpServletRequest; 11 | import java.util.List; 12 | 13 | /** 14 | * @Description: 15 | * @Author: cc-admin 16 | * @Date: 2021-04-04 17 | * @Version: V1.0.0 18 | */ 19 | public interface IJpPersonService extends IService { 20 | 21 | List queryJpPersonTree(); 22 | 23 | JpTreeChartData queryTreeChartData(); 24 | 25 | /** 26 | * 导出word 27 | * @param request 28 | * @param jpPerson 29 | * @param jpPersonClass 30 | * @param s 31 | * @return 32 | */ 33 | ResponseEntity exportWord(HttpServletRequest request, JpPerson jpPerson, Class jpPersonClass, String s); 34 | } 35 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/sys/mapper/SysDictItemMapper.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.sys.mapper; 2 | 3 | import cc.admin.modules.sys.entity.SysDictItem; 4 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; 5 | import org.apache.ibatis.annotations.Param; 6 | import org.apache.ibatis.annotations.Select; 7 | 8 | import java.util.List; 9 | 10 | /** 11 | *

12 | * Mapper 接口 13 | *

14 | * 15 | * @Author zhangweijian 16 | * @since 2018-12-28 17 | */ 18 | public interface SysDictItemMapper extends BaseMapper { 19 | @Select("SELECT * FROM sys_dict_item WHERE DICT_ID = #{mainId} order by sort_order asc, item_value asc") 20 | public List selectItemsByMainId(String mainId); 21 | 22 | 23 | @Select("SELECT * FROM sys_dict_item WHERE DICT_ID in (select id from sys_dict where dict_code = #{dictCode}) order by sort_order asc, item_value asc") 24 | public List selectItemsByDictCode(String dictCode); 25 | 26 | List selectItemsByTable(@Param("table") String table, @Param("code") String code, @Param("text") String text); 27 | } 28 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/config/MybatisPlusConfig.java: -------------------------------------------------------------------------------- 1 | package cc.admin.config; 2 | 3 | import org.mybatis.spring.annotation.MapperScan; 4 | import org.springframework.context.annotation.Bean; 5 | import org.springframework.context.annotation.Configuration; 6 | import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor; 7 | import com.baomidou.mybatisplus.extension.plugins.PerformanceInterceptor; 8 | 9 | /** 10 | * 单数据源配置(jeecg.datasource.open = false时生效) 11 | * @Author zhoujf 12 | * 13 | */ 14 | @Configuration 15 | @MapperScan(value={"cc.admin.modules.**.mapper*"}) 16 | public class MybatisPlusConfig { 17 | 18 | /** 19 | * 分页插件 20 | */ 21 | @Bean 22 | public PaginationInterceptor paginationInterceptor() { 23 | // 设置sql的limit为无限制,默认是500 24 | return new PaginationInterceptor().setLimit(-1); 25 | } 26 | 27 | // /** 28 | // * mybatis-plus SQL执行效率插件【生产环境可以关闭】 29 | // */ 30 | // @Bean 31 | // public PerformanceInterceptor performanceInterceptor() { 32 | // return new PerformanceInterceptor(); 33 | // } 34 | 35 | 36 | } 37 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/bi/core/exception/ServerException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * << 3 | * Davinci 4 | * == 5 | * Copyright (C) 2016 - 2019 EDP 6 | * == 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain getHardWareId copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | * >> 17 | * 18 | */ 19 | 20 | package cc.admin.modules.bi.core.exception; 21 | 22 | public class ServerException extends RuntimeException { 23 | public ServerException(String message) { 24 | super(message); 25 | } 26 | 27 | public ServerException(String message, Throwable cause) { 28 | super(message, cause); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/bi/core/exception/SourceException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * << 3 | * Davinci 4 | * == 5 | * Copyright (C) 2016 - 2019 EDP 6 | * == 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain getHardWareId copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | * >> 17 | * 18 | */ 19 | 20 | package cc.admin.modules.bi.core.exception; 21 | 22 | public class SourceException extends RuntimeException { 23 | public SourceException(String message) { 24 | super(message); 25 | } 26 | 27 | public SourceException(String message, Throwable cause) { 28 | super(message, cause); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /base-common/src/main/java/cc/admin/common/aspect/annotation/Dict.java: -------------------------------------------------------------------------------- 1 | package cc.admin.common.aspect.annotation; 2 | 3 | import java.lang.annotation.ElementType; 4 | import java.lang.annotation.Retention; 5 | import java.lang.annotation.RetentionPolicy; 6 | import java.lang.annotation.Target; 7 | 8 | /** 9 | * 类描述: 字典注解 10 | * 作 者: dangzhenghui 11 | * 日 期: 2019年03月17日-下午9:37:16 12 | */ 13 | @Target(ElementType.FIELD) 14 | @Retention(RetentionPolicy.RUNTIME) 15 | public @interface Dict { 16 | /** 17 | * 方法描述: 数据code 18 | * 作 者: dangzhenghui 19 | * 日 期: 2019年03月17日-下午9:37:16 20 | * 21 | * @return 返回类型: String 22 | */ 23 | String dicCode(); 24 | 25 | /** 26 | * 方法描述: 数据Text 27 | * 作 者: dangzhenghui 28 | * 日 期: 2019年03月17日-下午9:37:16 29 | * 30 | * @return 返回类型: String 31 | */ 32 | String dicText() default ""; 33 | 34 | /** 35 | * 方法描述: 数据字典表 36 | * 作 者: dangzhenghui 37 | * 日 期: 2019年03月17日-下午9:37:16 38 | * 39 | * @return 返回类型: String 40 | */ 41 | String dictTable() default ""; 42 | } 43 | -------------------------------------------------------------------------------- /base-common/src/main/java/cc/admin/common/sys/query/MatchTypeEnum.java: -------------------------------------------------------------------------------- 1 | package cc.admin.common.sys.query; 2 | 3 | import cc.admin.common.util.oConvertUtils; 4 | 5 | /** 6 | * 查询链接规则 7 | * 8 | * @Author Sunjianlei 9 | */ 10 | public enum MatchTypeEnum { 11 | 12 | AND("AND"), 13 | OR("OR"); 14 | 15 | private String value; 16 | 17 | MatchTypeEnum(String value) { 18 | this.value = value; 19 | } 20 | 21 | public String getValue() { 22 | return value; 23 | } 24 | 25 | public static MatchTypeEnum getByValue(Object value) { 26 | if (oConvertUtils.isEmpty(value)) { 27 | return null; 28 | } 29 | return getByValue(value.toString()); 30 | } 31 | 32 | public static MatchTypeEnum getByValue(String value) { 33 | if (oConvertUtils.isEmpty(value)) { 34 | return null; 35 | } 36 | for (MatchTypeEnum val : values()) { 37 | if (val.getValue().toLowerCase().equals(value.toLowerCase())) { 38 | return val; 39 | } 40 | } 41 | return null; 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/bi/core/exception/NotFoundException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * << 3 | * Davinci 4 | * == 5 | * Copyright (C) 2016 - 2019 EDP 6 | * == 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain getHardWareId copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | * >> 17 | * 18 | */ 19 | 20 | package cc.admin.modules.bi.core.exception; 21 | 22 | public class NotFoundException extends RuntimeException { 23 | public NotFoundException(String message) { 24 | super(message); 25 | } 26 | 27 | public NotFoundException(String message, Throwable cause) { 28 | super(message, cause); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/bi/model/Aggregator.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.bi.model; 2 | 3 | import cn.hutool.core.util.StrUtil; 4 | import lombok.Data; 5 | 6 | import javax.validation.constraints.NotBlank; 7 | 8 | @Data 9 | public class Aggregator { 10 | 11 | @NotBlank(message = "Invalid aggregator column") 12 | private String column; 13 | 14 | private String func; 15 | 16 | private String axisIndex; 17 | 18 | private String alias; 19 | 20 | public Aggregator() { 21 | } 22 | 23 | public Aggregator(String column, String func) { 24 | this.column = column; 25 | this.func = func; 26 | } 27 | 28 | public Aggregator(String column, String func, String axisIndex) { 29 | this.column = column; 30 | this.func = func; 31 | this.axisIndex = axisIndex; 32 | } 33 | 34 | public String getDisplayName() { 35 | if (StrUtil.isNotEmpty(alias)) { 36 | return alias; 37 | } 38 | return column; 39 | } 40 | 41 | public String getName() { 42 | if (StrUtil.isEmpty(func)) { 43 | return column; 44 | } else { 45 | return String.format("%s(%s)", func, column); 46 | } 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/bi/core/enums/ActionEnum.java: -------------------------------------------------------------------------------- 1 | /* 2 | * << 3 | * Davinci 4 | * == 5 | * Copyright (C) 2016 - 2019 EDP 6 | * == 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain getHardWareId copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | * >> 17 | * 18 | */ 19 | 20 | package cc.admin.modules.bi.core.enums; 21 | 22 | /** 23 | * Created by IntelliJ IDEA. 24 | * 25 | * @Author daemon 26 | * @Date 19/5/30 16:38 27 | * To change this template use File | Settings | File Templates. 28 | */ 29 | public enum ActionEnum { 30 | DOWNLOAD, 31 | MAIL, 32 | SHAREDOWNLOAD 33 | ; 34 | } 35 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/message/service/impl/SysMessageTemplateServiceImpl.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.message.service.impl; 2 | 3 | import cc.admin.common.sys.base.service.impl.BaseServiceImpl; 4 | import cc.admin.modules.message.entity.SysMessageTemplate; 5 | import cc.admin.modules.message.mapper.SysMessageTemplateMapper; 6 | import cc.admin.modules.message.service.ISysMessageTemplateService; 7 | import org.springframework.beans.factory.annotation.Autowired; 8 | import org.springframework.stereotype.Service; 9 | 10 | import java.util.List; 11 | 12 | /** 13 | * @Description: 消息模板 14 | * @Author: jeecg-boot 15 | * @Date: 2019-04-09 16 | * @Version: V1.0 17 | */ 18 | @Service 19 | public class SysMessageTemplateServiceImpl extends BaseServiceImpl implements ISysMessageTemplateService { 20 | 21 | @Autowired 22 | private SysMessageTemplateMapper sysMessageTemplateMapper; 23 | 24 | 25 | @Override 26 | public List selectByCode(String code) { 27 | return sysMessageTemplateMapper.selectByCode(code); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/sys/model/DuplicateCheckVo.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.sys.model; 2 | 3 | import java.io.Serializable; 4 | import io.swagger.annotations.ApiModel; 5 | import io.swagger.annotations.ApiModelProperty; 6 | import lombok.Data; 7 | 8 | /** 9 | * @Title: DuplicateCheckVo 10 | * @Description: 重复校验VO 11 | * @Author 张代浩 12 | * @Date 2019-03-25 13 | * @Version V1.0 14 | */ 15 | @Data 16 | @ApiModel(value="重复校验数据模型",description="重复校验数据模型") 17 | public class DuplicateCheckVo implements Serializable { 18 | private static final long serialVersionUID = 1L; 19 | 20 | /** 21 | * 表名 22 | */ 23 | @ApiModelProperty(value="表名",name="tableName",example="sys_log") 24 | private String tableName; 25 | 26 | /** 27 | * 字段名 28 | */ 29 | @ApiModelProperty(value="字段名",name="fieldName",example="id") 30 | private String fieldName; 31 | 32 | /** 33 | * 字段值 34 | */ 35 | @ApiModelProperty(value="字段值",name="fieldVal",example="1000") 36 | private String fieldVal; 37 | 38 | /** 39 | * 数据ID 40 | */ 41 | @ApiModelProperty(value="数据ID",name="dataId",example="2000") 42 | private String dataId; 43 | 44 | } 45 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/bi/model/PaginateWithQueryColumns.java: -------------------------------------------------------------------------------- 1 | /* 2 | * << 3 | * Davinci 4 | * == 5 | * Copyright (C) 2016 - 2019 EDP 6 | * == 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain setProjectPath copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | * >> 17 | * 18 | */ 19 | 20 | package cc.admin.modules.bi.model; 21 | 22 | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; 23 | import lombok.Data; 24 | 25 | import java.util.List; 26 | import java.util.Map; 27 | 28 | @Data 29 | public class PaginateWithQueryColumns extends Page> { 30 | List columns; 31 | } 32 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/sys/entity/SysUserRole.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.sys.entity; 2 | 3 | import java.io.Serializable; 4 | 5 | import com.baomidou.mybatisplus.annotation.IdType; 6 | import com.baomidou.mybatisplus.annotation.TableId; 7 | 8 | import lombok.Data; 9 | import lombok.EqualsAndHashCode; 10 | import lombok.experimental.Accessors; 11 | 12 | /** 13 | * 14 | * 用户角色表 15 | * 16 | * 17 | * @Author scott 18 | * @since 2018-12-21 19 | */ 20 | @Data 21 | @EqualsAndHashCode(callSuper = false) 22 | @Accessors(chain = true) 23 | public class SysUserRole implements Serializable { 24 | 25 | private static final long serialVersionUID = 1L; 26 | 27 | @TableId(type = IdType.ID_WORKER_STR) 28 | private String id; 29 | 30 | /** 31 | * 用户id 32 | */ 33 | private String userId; 34 | 35 | /** 36 | * 角色id 37 | */ 38 | private String roleId; 39 | 40 | public SysUserRole() { 41 | } 42 | 43 | public SysUserRole(String userId, String roleId) { 44 | this.userId = userId; 45 | this.roleId = roleId; 46 | } 47 | 48 | 49 | 50 | } 51 | -------------------------------------------------------------------------------- /base-common/src/main/java/cc/admin/common/sys/vo/DynamicDataSourceModel.java: -------------------------------------------------------------------------------- 1 | package cc.admin.common.sys.vo; 2 | 3 | import lombok.Data; 4 | import org.springframework.beans.BeanUtils; 5 | 6 | @Data 7 | public class DynamicDataSourceModel { 8 | 9 | public DynamicDataSourceModel() { 10 | 11 | } 12 | 13 | public DynamicDataSourceModel(Object dbSource) { 14 | if (dbSource != null) { 15 | BeanUtils.copyProperties(dbSource, this); 16 | } 17 | } 18 | 19 | /** 20 | * id 21 | */ 22 | private java.lang.String id; 23 | /** 24 | * 数据源编码 25 | */ 26 | private java.lang.String code; 27 | /** 28 | * 数据库类型 29 | */ 30 | private java.lang.String dbType; 31 | /** 32 | * 驱动类 33 | */ 34 | private java.lang.String dbDriver; 35 | /** 36 | * 数据源地址 37 | */ 38 | private java.lang.String dbUrl; 39 | /** 40 | * 数据库名称 41 | */ 42 | private java.lang.String dbName; 43 | /** 44 | * 用户名 45 | */ 46 | private java.lang.String dbUsername; 47 | /** 48 | * 密码 49 | */ 50 | private java.lang.String dbPassword; 51 | 52 | } 53 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/config/oss/OssBootConfiguration.java: -------------------------------------------------------------------------------- 1 | package cc.admin.config.oss; 2 | 3 | import cc.admin.common.util.oss.OssBootUtil; 4 | import org.springframework.beans.factory.annotation.Value; 5 | import org.springframework.context.annotation.Bean; 6 | import org.springframework.context.annotation.Configuration; 7 | 8 | @Configuration 9 | public class OssBootConfiguration { 10 | 11 | @Value("${cc.admin.oss.endpoint}") 12 | private String endpoint; 13 | @Value("${cc.admin.oss.accessKey}") 14 | private String accessKeyId; 15 | @Value("${cc.admin.oss.secretKey}") 16 | private String accessKeySecret; 17 | @Value("${cc.admin.oss.bucketName}") 18 | private String bucketName; 19 | @Value("${cc.admin.oss.staticDomain}") 20 | private String staticDomain; 21 | 22 | 23 | @Bean 24 | public void initOssBootConfiguration() { 25 | OssBootUtil.setEndPoint(endpoint); 26 | OssBootUtil.setAccessKeyId(accessKeyId); 27 | OssBootUtil.setAccessKeySecret(accessKeySecret); 28 | OssBootUtil.setBucketName(bucketName); 29 | OssBootUtil.setStaticDomain(staticDomain); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/bi/core/model/DataUploadEntity.java: -------------------------------------------------------------------------------- 1 | /* 2 | * << 3 | * Davinci 4 | * == 5 | * Copyright (C) 2016 - 2019 EDP 6 | * == 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain getHardWareId copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | * >> 17 | * 18 | */ 19 | 20 | package cc.admin.modules.bi.core.model; 21 | 22 | import lombok.Data; 23 | import cc.admin.modules.bi.model.QueryColumn; 24 | 25 | import java.util.List; 26 | import java.util.Map; 27 | import java.util.Set; 28 | 29 | @Data 30 | public class DataUploadEntity { 31 | 32 | private Set headers; 33 | 34 | private List> values; 35 | } 36 | -------------------------------------------------------------------------------- /auto-poi/src/main/java/cc/admin/poi/excel/def/BasePOIConstants.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2013-2015 JEECG (jeecgos@163.com) 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package cc.admin.poi.excel.def; 17 | 18 | /** 19 | * 基础POI常量 20 | * 21 | * @author JEECG 22 | * @date 2014年6月30日 下午9:23:37 23 | */ 24 | interface BasePOIConstants { 25 | 26 | /** 27 | * 注解对象 28 | */ 29 | public final static String CLASS = "entity"; 30 | /** 31 | * 表格参数 32 | */ 33 | public final static String PARAMS = "params"; 34 | /** 35 | * 下载文件名称 36 | */ 37 | public final static String FILE_NAME = "fileName"; 38 | 39 | } 40 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/bi/core/model/FieldNumeric.java: -------------------------------------------------------------------------------- 1 | /* 2 | * << 3 | * Davinci 4 | * == 5 | * Copyright (C) 2016 - 2019 EDP 6 | * == 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain getHardWareId copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | * >> 17 | * 18 | */ 19 | 20 | package cc.admin.modules.bi.core.model; 21 | 22 | import com.fasterxml.jackson.annotation.JsonIgnore; 23 | import lombok.Data; 24 | import cc.admin.modules.bi.core.enums.NumericUnitEnum; 25 | 26 | @Data 27 | public class FieldNumeric { 28 | private int decimalPlaces; 29 | 30 | @JsonIgnore 31 | private NumericUnitEnum unit; 32 | private boolean useThousandSeparator; 33 | } 34 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/sys/service/ISysRoleService.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.sys.service; 2 | 3 | import cc.admin.modules.sys.entity.SysRole; 4 | import com.baomidou.mybatisplus.extension.service.IService; 5 | import cc.admin.common.api.vo.Result; 6 | import cc.admin.poi.excel.entity.ImportParams; 7 | import org.springframework.web.multipart.MultipartFile; 8 | 9 | /** 10 | * 11 | * 角色表 服务类 12 | * 13 | * 14 | * @Author scott 15 | * @since 2018-12-19 16 | */ 17 | public interface ISysRoleService extends IService { 18 | 19 | /** 20 | * 导入 excel ,检查 roleCode 的唯一性 21 | * 22 | * @param file 23 | * @param params 24 | * @return 25 | * @throws Exception 26 | */ 27 | Result importExcelCheckRoleCode(MultipartFile file, ImportParams params) throws Exception; 28 | 29 | /** 30 | * 删除角色 31 | * @param roleid 32 | * @return 33 | */ 34 | public boolean deleteRole(String roleid); 35 | 36 | /** 37 | * 批量删除角色 38 | * @param roleids 39 | * @return 40 | */ 41 | public boolean deleteBatchRole(String[] roleids); 42 | 43 | } 44 | -------------------------------------------------------------------------------- /auto-poi/src/main/java/cc/admin/poi/excel/annotation/ExcelIgnore.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2013-2015 JEECG (jeecgos@163.com) 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package cc.admin.poi.excel.annotation; 17 | 18 | import java.lang.annotation.ElementType; 19 | import java.lang.annotation.Retention; 20 | import java.lang.annotation.RetentionPolicy; 21 | import java.lang.annotation.Target; 22 | 23 | /** 24 | * 标记为excel 创建实体忽略,放置死循环的造成 25 | * 26 | * @author JEECG 27 | * @date 2013-9-24 28 | * @version 1.0 29 | */ 30 | @Retention(RetentionPolicy.RUNTIME) 31 | @Target(ElementType.FIELD) 32 | public @interface ExcelIgnore { 33 | 34 | } 35 | -------------------------------------------------------------------------------- /module-system/src/main/java/cc/admin/modules/message/entity/SysMessageTemplate.java: -------------------------------------------------------------------------------- 1 | package cc.admin.modules.message.entity; 2 | 3 | import cc.admin.common.sys.base.entity.BaseEntity; 4 | import cc.admin.poi.excel.annotation.Excel; 5 | import com.baomidou.mybatisplus.annotation.TableName; 6 | import lombok.Data; 7 | import lombok.EqualsAndHashCode; 8 | import lombok.experimental.Accessors; 9 | 10 | /** 11 | * @Description: 消息模板 12 | * @Author: jeecg-boot 13 | * @Date: 2019-04-09 14 | * @Version: V1.0 15 | */ 16 | @Data 17 | @EqualsAndHashCode(callSuper = false) 18 | @Accessors(chain = true) 19 | @TableName("sys_sms_template") 20 | public class SysMessageTemplate extends BaseEntity { 21 | /**模板CODE*/ 22 | @Excel(name = "模板CODE", width = 15) 23 | private java.lang.String templateCode; 24 | /**模板标题*/ 25 | @Excel(name = "模板标题", width = 30) 26 | private java.lang.String templateName; 27 | /**模板内容*/ 28 | @Excel(name = "模板内容", width = 50) 29 | private java.lang.String templateContent; 30 | /**模板测试json*/ 31 | @Excel(name = "模板测试json", width = 15) 32 | private java.lang.String templateTestJson; 33 | /**模板类型*/ 34 | @Excel(name = "模板类型", width = 15) 35 | private java.lang.String templateType; 36 | } 37 | --------------------------------------------------------------------------------