├── .gitignore ├── CHANGELOG.md ├── LICENSE ├── README.md ├── pom.xml ├── vboot-application ├── pom.xml └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── abc │ │ │ ├── Application.java │ │ │ └── module │ │ │ ├── oa │ │ │ └── doc │ │ │ │ ├── cate │ │ │ │ ├── OaDocCate.java │ │ │ │ ├── OaDocCateApi.java │ │ │ │ ├── OaDocCateRepo.java │ │ │ │ └── OaDocCateService.java │ │ │ │ └── main │ │ │ │ ├── OaDocMain.java │ │ │ │ ├── OaDocMainApi.java │ │ │ │ ├── OaDocMainRepo.java │ │ │ │ └── OaDocMainService.java │ │ │ ├── sa │ │ │ ├── agent │ │ │ │ └── main │ │ │ │ │ ├── SaAgentMain.java │ │ │ │ │ ├── SaAgentMainApi.java │ │ │ │ │ ├── SaAgentMainRepo.java │ │ │ │ │ └── SaAgentMainService.java │ │ │ ├── draw │ │ │ │ └── main │ │ │ │ │ ├── SaDrawMain.java │ │ │ │ │ ├── SaDrawMainApi.java │ │ │ │ │ ├── SaDrawMainRepo.java │ │ │ │ │ └── SaDrawMainService.java │ │ │ ├── prod │ │ │ │ ├── feat │ │ │ │ │ └── SaProdFeat.java │ │ │ │ ├── group │ │ │ │ │ ├── SaProdGroup.java │ │ │ │ │ ├── SaProdGroupApi.java │ │ │ │ │ ├── SaProdGroupRepo.java │ │ │ │ │ └── SaProdGroupService.java │ │ │ │ ├── main │ │ │ │ │ └── SaProdMain.java │ │ │ │ └── tem │ │ │ │ │ ├── SaProdTem.java │ │ │ │ │ ├── SaProdTemApi.java │ │ │ │ │ ├── SaProdTemRepo.java │ │ │ │ │ └── SaProdTemService.java │ │ │ └── proj │ │ │ │ └── main │ │ │ │ ├── SaProjMain.java │ │ │ │ ├── SaProjMainApi.java │ │ │ │ ├── SaProjMainRepo.java │ │ │ │ └── SaProjMainService.java │ │ │ ├── te │ │ │ ├── allot │ │ │ │ ├── check │ │ │ │ │ ├── TeAllotCheck.java │ │ │ │ │ ├── TeAllotCheckApi.java │ │ │ │ │ ├── TeAllotCheckItem.java │ │ │ │ │ ├── TeAllotCheckRepo.java │ │ │ │ │ ├── TeAllotCheckService.java │ │ │ │ │ └── Zcheck.java │ │ │ │ ├── drive │ │ │ │ │ ├── TeAllotDrive.java │ │ │ │ │ ├── TeAllotDriveApi.java │ │ │ │ │ ├── TeAllotDriveItem.java │ │ │ │ │ ├── TeAllotDriveRepo.java │ │ │ │ │ ├── TeAllotDriveService.java │ │ │ │ │ └── Zdrive.java │ │ │ │ ├── link │ │ │ │ │ ├── TeAllotLink.java │ │ │ │ │ ├── TeAllotLinkApi.java │ │ │ │ │ ├── TeAllotLinkItem.java │ │ │ │ │ ├── TeAllotLinkRepo.java │ │ │ │ │ ├── TeAllotLinkService.java │ │ │ │ │ └── Zlink.java │ │ │ │ └── param │ │ │ │ │ ├── TeAllotParam.java │ │ │ │ │ ├── TeAllotParamApi.java │ │ │ │ │ ├── TeAllotParamItem.java │ │ │ │ │ ├── TeAllotParamRepo.java │ │ │ │ │ └── TeAllotParamService.java │ │ │ ├── feat │ │ │ │ ├── check │ │ │ │ │ ├── TeFeatCheck.java │ │ │ │ │ ├── TeFeatCheckApi.java │ │ │ │ │ ├── TeFeatCheckRepo.java │ │ │ │ │ └── TeFeatCheckService.java │ │ │ │ ├── comp │ │ │ │ │ ├── TeFeatComp.java │ │ │ │ │ ├── TeFeatCompApi.java │ │ │ │ │ ├── TeFeatCompRepo.java │ │ │ │ │ └── TeFeatCompService.java │ │ │ │ ├── drive │ │ │ │ │ ├── TeFeatDrive.java │ │ │ │ │ ├── TeFeatDriveApi.java │ │ │ │ │ ├── TeFeatDriveRepo.java │ │ │ │ │ └── TeFeatDriveService.java │ │ │ │ ├── link │ │ │ │ │ ├── TeFeatLink.java │ │ │ │ │ ├── TeFeatLinkApi.java │ │ │ │ │ ├── TeFeatLinkItem.java │ │ │ │ │ ├── TeFeatLinkLeft.java │ │ │ │ │ ├── TeFeatLinkRepo.java │ │ │ │ │ ├── TeFeatLinkRight.java │ │ │ │ │ └── TeFeatLinkService.java │ │ │ │ ├── param │ │ │ │ │ ├── TeFeatParam.java │ │ │ │ │ ├── TeFeatParamApi.java │ │ │ │ │ ├── TeFeatParamOption.java │ │ │ │ │ ├── TeFeatParamRepo.java │ │ │ │ │ └── TeFeatParamService.java │ │ │ │ └── screen │ │ │ │ │ ├── TeFeatScreen.java │ │ │ │ │ ├── TeFeatScreenApi.java │ │ │ │ │ ├── TeFeatScreenRepo.java │ │ │ │ │ └── TeFeatScreenService.java │ │ │ ├── prod │ │ │ │ ├── cate │ │ │ │ │ ├── TeProdCate.java │ │ │ │ │ ├── TeProdCateApi.java │ │ │ │ │ ├── TeProdCateRepo.java │ │ │ │ │ └── TeProdCateService.java │ │ │ │ ├── model │ │ │ │ │ ├── TeProdModel.java │ │ │ │ │ ├── TeProdModelApi.java │ │ │ │ │ ├── TeProdModelRepo.java │ │ │ │ │ ├── TeProdModelService.java │ │ │ │ │ ├── Zmodel.java │ │ │ │ │ ├── Zparam.java │ │ │ │ │ └── Zscreen.java │ │ │ │ ├── serie │ │ │ │ │ ├── TeProdSerie.java │ │ │ │ │ ├── TeProdSerieApi.java │ │ │ │ │ ├── TeProdSerieRepo.java │ │ │ │ │ └── TeProdSerieService.java │ │ │ │ ├── test │ │ │ │ │ ├── TeProdTest.java │ │ │ │ │ ├── TeProdTestApi.java │ │ │ │ │ ├── TeProdTestRepo.java │ │ │ │ │ └── TeProdTestService.java │ │ │ │ └── version │ │ │ │ │ ├── TeProdVersion.java │ │ │ │ │ ├── TeProdVersionApi.java │ │ │ │ │ ├── TeProdVersionRepo.java │ │ │ │ │ └── TeProdVersionService.java │ │ │ └── tran │ │ │ │ ├── cate │ │ │ │ ├── TeTranCate.java │ │ │ │ ├── TeTranCateApi.java │ │ │ │ ├── TeTranCateRepo.java │ │ │ │ └── TeTranCateService.java │ │ │ │ └── main │ │ │ │ ├── TeTranMain.java │ │ │ │ ├── TeTranMainApi.java │ │ │ │ ├── TeTranMainItem.java │ │ │ │ ├── TeTranMainRepo.java │ │ │ │ └── TeTranMainService.java │ │ │ └── wc │ │ │ ├── cont │ │ │ └── WcCont.java │ │ │ ├── match │ │ │ └── main │ │ │ │ ├── Dataxx.java │ │ │ │ ├── WcMatch.java │ │ │ │ └── WcMatchRepo.java │ │ │ ├── palyer │ │ │ └── main │ │ │ │ ├── WcPlayer.java │ │ │ │ ├── WcPlayerRepo.java │ │ │ │ └── WcPlayerService.java │ │ │ ├── stat │ │ │ ├── WcStat.java │ │ │ └── WcStatRepo.java │ │ │ └── team │ │ │ └── main │ │ │ ├── WcTeam.java │ │ │ ├── WcTeamRepo.java │ │ │ └── WcTeamService.java │ └── resources │ │ ├── META-INF │ │ └── MANIFEST.MF │ │ ├── application.properties │ │ ├── application.yml │ │ ├── config │ │ ├── banner.txt │ │ ├── logback.xml │ │ └── sap-config.properties │ │ └── static │ │ ├── assets │ │ ├── 401.1653003640069.css │ │ ├── 401.1653003640069.js │ │ ├── 404.1653003640069.css │ │ ├── 404.1653003640069.js │ │ ├── DeptTree.1653003640069.css │ │ ├── DeptTree.1653003640069.js │ │ ├── Event.1653003640069.js │ │ ├── Flow.1653003640069.js │ │ ├── FlowModal.1653003640069.css │ │ ├── FlowModal.1653003640069.js │ │ ├── Gateway.1653003640069.js │ │ ├── GenModal.1653003640069.css │ │ ├── GenModal.1653003640069.js │ │ ├── GenTree.1653003640069.css │ │ ├── GenTree.1653003640069.js │ │ ├── OrgModal.1653003640069.css │ │ ├── OrgModal.1653003640069.js │ │ ├── Other.1653003640069.js │ │ ├── PrefixLabelSelect.1653003640069.css │ │ ├── PrefixLabelSelect.1653003640069.js │ │ ├── Process.1653003640069.js │ │ ├── Task.1653003640069.js │ │ ├── Wrap.1653003640069.js │ │ ├── aside.1653003640069.js │ │ ├── bathymetry.1653003640069.jpg │ │ ├── bpmn.1653003640069.eot │ │ ├── bpmn.1653003640069.svg │ │ ├── bpmn.1653003640069.ttf │ │ ├── bpmn.1653003640069.woff │ │ ├── bpmn.1653003640069.woff2 │ │ ├── classic.1653003640069.js │ │ ├── columns.1653003640069.css │ │ ├── columns.1653003640069.js │ │ ├── common.1653003640069.css │ │ ├── common.1653003640069.js │ │ ├── defaults.1653003640069.js │ │ ├── demo1.1653003640069.css │ │ ├── demo1.1653003640069.js │ │ ├── demo2.1653003640069.css │ │ ├── demo2.1653003640069.js │ │ ├── echarts.1653003640069.js │ │ ├── edit.1653003640069.css │ │ ├── edit.1653003640069.js │ │ ├── edit.165300364006910.js │ │ ├── edit.165300364006911.js │ │ ├── edit.165300364006912.js │ │ ├── edit.165300364006913.js │ │ ├── edit.16530036400692.js │ │ ├── edit.16530036400693.js │ │ ├── edit.16530036400694.js │ │ ├── edit.16530036400695.js │ │ ├── edit.16530036400696.js │ │ ├── edit.16530036400697.js │ │ ├── edit.16530036400698.js │ │ ├── edit.16530036400699.js │ │ ├── iframes.1653003640069.js │ │ ├── index.1653003640069.css │ │ ├── index.1653003640069.js │ │ ├── index.165300364006910.js │ │ ├── index.165300364006911.js │ │ ├── index.165300364006912.js │ │ ├── index.165300364006913.js │ │ ├── index.165300364006914.js │ │ ├── index.165300364006915.js │ │ ├── index.165300364006916.js │ │ ├── index.165300364006917.js │ │ ├── index.165300364006918.js │ │ ├── index.165300364006919.js │ │ ├── index.16530036400692.css │ │ ├── index.16530036400692.js │ │ ├── index.16530036400693.css │ │ ├── index.16530036400693.js │ │ ├── index.16530036400694.js │ │ ├── index.16530036400695.js │ │ ├── index.16530036400696.js │ │ ├── index.16530036400697.js │ │ ├── index.16530036400698.js │ │ ├── index.16530036400699.js │ │ ├── link.1653003640069.js │ │ ├── login-icon-two.1653003640069.svg │ │ ├── logo-mini.1653003640069.js │ │ ├── logo-mini.1653003640069.svg │ │ ├── main.1653003640069.css │ │ ├── main.1653003640069.js │ │ ├── parent.1653003640069.js │ │ ├── store.1653003640069.js │ │ ├── translate.1653003640069.css │ │ ├── translate.1653003640069.js │ │ ├── transverse.1653003640069.js │ │ ├── view.1653003640069.css │ │ ├── view.1653003640069.js │ │ ├── view.16530036400692.js │ │ ├── vue.1653003640069.js │ │ └── world.1653003640069.jpg │ │ ├── favicon.ico │ │ └── vue.html │ └── test │ └── java │ └── com │ └── abc │ └── test │ ├── mybpmn │ ├── MyTest1.java │ └── bpmn.xml │ └── wc │ └── WcTest.java ├── vboot-core ├── lib │ └── ojdbc6.jar ├── pom.xml └── src │ └── main │ └── java │ └── vboot │ ├── common │ ├── mvc │ │ ├── api │ │ │ ├── PageData.java │ │ │ └── RestResult.java │ │ ├── dao │ │ │ ├── BaseSqler.java │ │ │ ├── CacheDao.java │ │ │ ├── Dsqler.java │ │ │ ├── Isqler.java │ │ │ ├── JdbcDao.java │ │ │ ├── Sqler.java │ │ │ └── Usqler.java │ │ ├── entity │ │ │ ├── BaseCateEntity.java │ │ │ ├── BaseEntity.java │ │ │ └── BaseMainEntity.java │ │ ├── exception │ │ │ ├── BadConfigurationException.java │ │ │ ├── BadRequestException.java │ │ │ ├── EntityExistException.java │ │ │ ├── EntityNotFoundException.java │ │ │ └── handler │ │ │ │ ├── ApiError.java │ │ │ │ ├── GlobalExceptionHandler.java │ │ │ │ └── ThrowableUtil.java │ │ ├── others │ │ │ └── MapHelper.java │ │ ├── pojo │ │ │ ├── Zconn.java │ │ │ ├── ZidName.java │ │ │ ├── Zinp.java │ │ │ └── Ztree.java │ │ └── service │ │ │ ├── BaseCateService.java │ │ │ ├── BaseMainService.java │ │ │ └── BaseService.java │ └── util │ │ ├── file │ │ ├── XexcelUtil.java │ │ ├── XfileUtil.java │ │ ├── XpdfUtil.java │ │ └── XqcodeUtil.java │ │ ├── lang │ │ ├── JsonUtils.java │ │ ├── XdateUtil.java │ │ ├── XjsonUtil.java │ │ ├── XmapUtil.java │ │ ├── XnumberUtil.java │ │ ├── XreflectUtil.java │ │ ├── XregUtil.java │ │ ├── XstringUtil.java │ │ └── XtimeUtil.java │ │ ├── obj │ │ ├── AlterPropertyInfo.java │ │ ├── JsonDateValueProcessor.java │ │ └── PropertyModelInfo.java │ │ └── web │ │ ├── XaddressUtil.java │ │ ├── XhttpUtil.java │ │ ├── XpageUtil.java │ │ ├── XreqUtil.java │ │ ├── XresUtil.java │ │ ├── XspringUtil.java │ │ └── XuserUtil.java │ ├── config │ ├── AppConfig.java │ ├── db │ │ ├── PrimaryDataSourceConfig.java │ │ ├── PrimaryJpaConfig.java │ │ ├── VbootNamingStrategy.java │ │ ├── init │ │ │ ├── DbInitListener.java │ │ │ ├── SysOrgInit.java │ │ │ └── SysPermInit.java │ │ └── jpa │ │ │ ├── Comment.java │ │ │ ├── CommentIntegrator.java │ │ │ └── HibernateConfig.java │ ├── dbx │ │ ├── ldap │ │ │ └── LdapConfig.java │ │ └── redis │ │ │ ├── RedisConfig.java │ │ │ └── RedisHandler.java │ ├── security │ │ ├── SecurityConfig.java │ │ ├── authn │ │ │ ├── AuthnController.java │ │ │ ├── AuthnFailedHandler.java │ │ │ ├── AuthnService.java │ │ │ ├── LdapService.java │ │ │ └── LoginDto.java │ │ ├── authz │ │ │ ├── AuthzController.java │ │ │ ├── AuthzDeniedHandler.java │ │ │ ├── AuthzHandler.java │ │ │ └── AuthzService.java │ │ ├── jwt │ │ │ ├── JwtFilter.java │ │ │ ├── JwtFilterAdapter.java │ │ │ └── JwtHandler.java │ │ └── pojo │ │ │ ├── Duser.java │ │ │ ├── Zmenu.java │ │ │ ├── Zmeta.java │ │ │ └── Zuser.java │ └── web │ │ ├── CorsConfig.java │ │ ├── RestTemplateConfig.java │ │ ├── WebSocketConfig.java │ │ └── WebSocketServer.java │ ├── module │ ├── ass │ │ ├── dict │ │ │ ├── cate │ │ │ │ ├── AssDictCate.java │ │ │ │ ├── AssDictCateApi.java │ │ │ │ ├── AssDictCateRepo.java │ │ │ │ └── AssDictCateService.java │ │ │ ├── data │ │ │ │ ├── AssDictData.java │ │ │ │ ├── AssDictDataApi.java │ │ │ │ ├── AssDictDataRepo.java │ │ │ │ └── AssDictDataService.java │ │ │ └── main │ │ │ │ ├── AssDictMain.java │ │ │ │ ├── AssDictMainApi.java │ │ │ │ ├── AssDictMainRepo.java │ │ │ │ └── AssDictMainService.java │ │ ├── file │ │ │ └── att │ │ │ │ ├── AssFileAtt.java │ │ │ │ ├── AssFileAttHandler.java │ │ │ │ └── AssFileAttRepo.java │ │ └── num │ │ │ └── main │ │ │ ├── AssNumMain.java │ │ │ ├── AssNumMainApi.java │ │ │ ├── AssNumMainRepo.java │ │ │ ├── AssNumMainService.java │ │ │ └── NumUtil.java │ ├── bpm │ │ ├── audit │ │ │ └── main │ │ │ │ ├── BpmAuditMain.java │ │ │ │ ├── BpmAuditMainApi.java │ │ │ │ ├── BpmAuditMainRepo.java │ │ │ │ └── BpmAuditMainService.java │ │ ├── node │ │ │ ├── hist │ │ │ │ ├── BpmNodeHist.java │ │ │ │ ├── BpmNodeHistRepo.java │ │ │ │ └── BpmNodeHistService.java │ │ │ └── main │ │ │ │ ├── BpmNodeMain.java │ │ │ │ ├── BpmNodeMainRepo.java │ │ │ │ └── BpmNodeMainService.java │ │ ├── proc │ │ │ ├── main │ │ │ │ ├── BpmProcMain.java │ │ │ │ ├── BpmProcMainApi.java │ │ │ │ ├── BpmProcMainHand.java │ │ │ │ ├── BpmProcMainRepo.java │ │ │ │ ├── BpmProcMainService.java │ │ │ │ ├── Zbpm.java │ │ │ │ └── Znode.java │ │ │ ├── param │ │ │ │ ├── BpmProcParam.java │ │ │ │ ├── BpmProcParamRepo.java │ │ │ │ └── BpmProcParamService.java │ │ │ └── temp │ │ │ │ ├── BpmProcTemp.java │ │ │ │ ├── BpmProcTempRepo.java │ │ │ │ └── BpmProcTempService.java │ │ └── task │ │ │ ├── hist │ │ │ ├── BpmTaskHist.java │ │ │ ├── BpmTaskHistRepo.java │ │ │ └── BpmTaskHistService.java │ │ │ └── main │ │ │ ├── BpmTaskMain.java │ │ │ ├── BpmTaskMainRepo.java │ │ │ └── BpmTaskMainService.java │ ├── gen │ │ ├── file │ │ │ ├── GenAttApi.java │ │ │ └── GenImgApi.java │ │ ├── num │ │ │ └── GenNumApi.java │ │ ├── org │ │ │ ├── rece │ │ │ │ ├── GenOrgReceApi.java │ │ │ │ └── GenOrgReceService.java │ │ │ └── root │ │ │ │ ├── GenOrgDeptApi.java │ │ │ │ └── GenOrgMainApi.java │ │ └── sys │ │ │ ├── auth │ │ │ └── GenAuthApi.java │ │ │ └── org │ │ │ └── GenOrgApi.java │ └── sys │ │ ├── job │ │ ├── log │ │ │ ├── SysJobLog.java │ │ │ ├── SysJobLogApi.java │ │ │ ├── SysJobLogRepo.java │ │ │ └── SysJobLogService.java │ │ ├── main │ │ │ ├── SysJobDemo.java │ │ │ ├── SysJobMain.java │ │ │ ├── SysJobMainApi.java │ │ │ ├── SysJobMainRepo.java │ │ │ └── SysJobMainService.java │ │ └── root │ │ │ ├── IJob.java │ │ │ ├── IJobGroup.java │ │ │ ├── JobConfig.java │ │ │ ├── SysJobFactory.java │ │ │ ├── SysJobHandler.java │ │ │ └── SysJobListener.java │ │ ├── log │ │ └── login │ │ │ ├── SysLogLogin.java │ │ │ ├── SysLogLoginApi.java │ │ │ ├── SysLogLoginRepo.java │ │ │ └── SysLogLoginService.java │ │ ├── org │ │ ├── dept │ │ │ ├── SysOrgDept.java │ │ │ ├── SysOrgDeptApi.java │ │ │ ├── SysOrgDeptRepo.java │ │ │ └── SysOrgDeptService.java │ │ ├── group │ │ │ ├── SysOrgGroup.java │ │ │ ├── SysOrgGroupApi.java │ │ │ ├── SysOrgGroupRepo.java │ │ │ └── SysOrgGroupService.java │ │ ├── post │ │ │ ├── SysOrgPost.java │ │ │ ├── SysOrgPostApi.java │ │ │ ├── SysOrgPostRepo.java │ │ │ └── SysOrgPostService.java │ │ ├── rece │ │ │ ├── SysOrgRece.java │ │ │ └── SysOrgReceRepo.java │ │ ├── root │ │ │ ├── SysOrg.java │ │ │ └── SysOrgRepo.java │ │ └── user │ │ │ ├── SysOrgUser.java │ │ │ ├── SysOrgUserApi.java │ │ │ ├── SysOrgUserRepo.java │ │ │ └── SysOrgUserService.java │ │ ├── perm │ │ ├── api │ │ │ ├── SysPermApi.java │ │ │ ├── SysPermApiApi.java │ │ │ ├── SysPermApiRepo.java │ │ │ ├── SysPermApiService.java │ │ │ ├── Yperm.java │ │ │ └── Zperm.java │ │ ├── menu │ │ │ ├── SysPermMenu.java │ │ │ ├── SysPermMenuApi.java │ │ │ ├── SysPermMenuRepo.java │ │ │ └── SysPermMenuService.java │ │ └── role │ │ │ ├── SysPermRole.java │ │ │ ├── SysPermRoleApi.java │ │ │ ├── SysPermRoleRepo.java │ │ │ └── SysPermRoleService.java │ │ └── todo │ │ ├── done │ │ ├── SysTodoDone.java │ │ └── SysTodoDoneRepo.java │ │ ├── hist │ │ └── SysTodoHist.java │ │ ├── main │ │ ├── SysTodoMain.java │ │ ├── SysTodoMainApi.java │ │ ├── SysTodoMainRepo.java │ │ └── SysTodoMainService.java │ │ └── user │ │ ├── SysTodoUser.java │ │ └── SysTodoUserRepo.java │ └── modulex │ └── oa │ └── flow │ ├── cate │ ├── OaFlowCate.java │ ├── OaFlowCateApi.java │ ├── OaFlowCateRepo.java │ └── OaFlowCateService.java │ ├── main │ ├── OaFlowMain.java │ ├── OaFlowMainApi.java │ ├── OaFlowMainRepo.java │ └── OaFlowMainService.java │ ├── rece │ ├── OaFlowRece.java │ ├── OaFlowReceApi.java │ ├── OaFlowReceRepo.java │ └── OaFlowReceService.java │ └── temp │ ├── OaFlowTemp.java │ ├── OaFlowTempApi.java │ ├── OaFlowTempRepo.java │ └── OaFlowTempService.java └── vboot-extend-bi ├── lib ├── ascsapjco3wrp-20100529.jar ├── commons-vfs2-2.2.jar ├── jface-3.3.0-I20070606-0010.jar ├── kettle-core-8.2.0.0-342.jar ├── kettle-engine-8.2.0.0-342.jar ├── kettle-sap-plugin-core-8.2.0.0-342.jar ├── kettle-ui-swt-8.2.0.0-342.jar ├── metastore-8.2.0.0-342.jar ├── org.mozilla.javascript_1.7.2.jar ├── sapjco3.jar └── scannotation-1.0.2.jar ├── pom.xml └── src └── main └── java └── vboot └── bi ├── conn └── main │ ├── BiConnMain.java │ ├── BiConnMainApi.java │ ├── BiConnMainRepo.java │ └── BiConnMainService.java ├── demo ├── boy │ ├── BiDemoBoy.java │ ├── BiDemoBoyApi.java │ ├── BiDemoBoyRepo.java │ └── BiDemoBoyService.java ├── girl │ ├── BiDemoGirl.java │ ├── BiDemoGirlApi.java │ ├── BiDemoGirlRepo.java │ └── BiDemoGirlService.java └── student │ ├── BiDemoStudent.java │ ├── BiDemoStudentApi.java │ ├── BiDemoStudentRepo.java │ └── BiDemoStudentService.java ├── etl ├── log │ ├── BiEtlLog.java │ └── BiEtlLogApi.java └── main │ ├── BiEtlJobListener.java │ ├── BiEtlMain.java │ ├── BiEtlMainApi.java │ ├── BiEtlMainHandler.java │ ├── BiEtlMainRepo.java │ ├── BiEtlMainService.java │ ├── KetJobFactory.java │ └── KetUtil.java ├── field └── main │ ├── BiFieldMain.java │ ├── BiFieldMainApi.java │ ├── BiFieldMainRepo.java │ └── BiFieldMainService.java └── table └── main ├── BiTableMain.java ├── BiTableMainApi.java ├── BiTableMainRepo.java └── BiTableMainService.java /.gitignore: -------------------------------------------------------------------------------- 1 | # 项目排除路径 2 | /vboot-application/target/ 3 | /vboot-core/target/ 4 | /vboot-extend-wf/target/ 5 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | - **初始化项目 V0.1** 2 | 3 | - [更新] README.md、项目介绍 4 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2022 vboot 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. -------------------------------------------------------------------------------- /vboot-application/src/main/java/com/abc/module/oa/doc/cate/OaDocCate.java: -------------------------------------------------------------------------------- 1 | package com.abc.module.oa.doc.cate; 2 | 3 | import vboot.common.mvc.entity.BaseCateEntity; 4 | import lombok.Getter; 5 | import lombok.Setter; 6 | 7 | import javax.persistence.*; 8 | import java.util.ArrayList; 9 | import java.util.List; 10 | 11 | @Entity 12 | @Getter 13 | @Setter 14 | public class OaDocCate extends BaseCateEntity { 15 | 16 | @ManyToOne(fetch= FetchType.EAGER) 17 | @JoinColumn(name = "pid") 18 | private OaDocCate parent;//父类别 19 | 20 | @Transient 21 | private List children = new ArrayList<>(); //行项目 22 | 23 | private String notes;//备注 24 | } 25 | -------------------------------------------------------------------------------- /vboot-application/src/main/java/com/abc/module/oa/doc/cate/OaDocCateRepo.java: -------------------------------------------------------------------------------- 1 | package com.abc.module.oa.doc.cate; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | public interface OaDocCateRepo extends JpaRepository { 6 | 7 | 8 | } 9 | -------------------------------------------------------------------------------- /vboot-application/src/main/java/com/abc/module/oa/doc/main/OaDocMain.java: -------------------------------------------------------------------------------- 1 | package com.abc.module.oa.doc.main; 2 | 3 | import vboot.common.mvc.entity.BaseMainEntity; 4 | import lombok.Getter; 5 | import lombok.Setter; 6 | 7 | import javax.persistence.Entity; 8 | 9 | @Entity 10 | @Getter 11 | @Setter 12 | public class OaDocMain extends BaseMainEntity { 13 | 14 | private String notes; 15 | 16 | 17 | } -------------------------------------------------------------------------------- /vboot-application/src/main/java/com/abc/module/oa/doc/main/OaDocMainApi.java: -------------------------------------------------------------------------------- 1 | package com.abc.module.oa.doc.main; 2 | 3 | import vboot.common.mvc.api.RestResult; 4 | import vboot.common.mvc.dao.Sqler; 5 | import org.dom4j.DocumentException; 6 | import org.springframework.beans.factory.annotation.Autowired; 7 | import org.springframework.web.bind.annotation.*; 8 | 9 | @RestController 10 | @RequestMapping("oa/doc/main") 11 | public class OaDocMainApi { 12 | 13 | @GetMapping 14 | public RestResult get(String name) { 15 | Sqler sqler = new Sqler("oa_doc_main"); 16 | sqler.addLike("t.name", name); 17 | return RestResult.ok(service.findPageData(sqler)); 18 | } 19 | 20 | 21 | @GetMapping("one/{id}") 22 | public RestResult getOne(@PathVariable String id) { 23 | OaDocMain main = service.findOne(id); 24 | return RestResult.ok(main); 25 | } 26 | 27 | @PostMapping 28 | public RestResult post(@RequestBody OaDocMain main) throws DocumentException { 29 | return RestResult.ok(service.insert(main)); 30 | } 31 | 32 | @PutMapping 33 | public RestResult put(@RequestBody OaDocMain main) { 34 | return RestResult.ok(service.update(main)); 35 | } 36 | 37 | @DeleteMapping("{ids}") 38 | public RestResult delete(@PathVariable String[] ids) { 39 | return RestResult.ok(service.delete(ids)); 40 | } 41 | 42 | @Autowired 43 | private OaDocMainService service; 44 | 45 | } 46 | -------------------------------------------------------------------------------- /vboot-application/src/main/java/com/abc/module/oa/doc/main/OaDocMainRepo.java: -------------------------------------------------------------------------------- 1 | package com.abc.module.oa.doc.main; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | public interface OaDocMainRepo extends JpaRepository { 6 | 7 | 8 | } 9 | -------------------------------------------------------------------------------- /vboot-application/src/main/java/com/abc/module/oa/doc/main/OaDocMainService.java: -------------------------------------------------------------------------------- 1 | package com.abc.module.oa.doc.main; 2 | 3 | import vboot.common.mvc.service.BaseMainService; 4 | import vboot.module.bpm.proc.main.BpmProcMainService; 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | import org.springframework.stereotype.Service; 7 | 8 | import javax.annotation.PostConstruct; 9 | 10 | @Service 11 | public class OaDocMainService extends BaseMainService { 12 | 13 | public OaDocMain insert(OaDocMain OaDocMain) { 14 | OaDocMain dbMain = super.insert(OaDocMain); 15 | // BpmProcMain wfFlowMain = new BpmProcMain(dbMain); 16 | // flowService.start(wfFlowMain); 17 | return dbMain; 18 | } 19 | 20 | //----------bean注入------------ 21 | @Autowired 22 | private BpmProcMainService flowService; 23 | 24 | @Autowired 25 | private OaDocMainRepo repo; 26 | 27 | @PostConstruct 28 | public void initDao() { 29 | super.setRepo(repo); 30 | } 31 | 32 | } 33 | -------------------------------------------------------------------------------- /vboot-application/src/main/java/com/abc/module/sa/agent/main/SaAgentMain.java: -------------------------------------------------------------------------------- 1 | package com.abc.module.sa.agent.main; 2 | 3 | import com.abc.module.te.feat.param.TeFeatParamOption; 4 | import io.swagger.annotations.ApiModelProperty; 5 | import lombok.Getter; 6 | import lombok.Setter; 7 | import vboot.common.mvc.entity.BaseMainEntity; 8 | import vboot.module.sys.org.root.SysOrg; 9 | 10 | import javax.persistence.*; 11 | import java.util.List; 12 | 13 | @Entity 14 | @Getter 15 | @Setter 16 | public class SaAgentMain extends BaseMainEntity { 17 | 18 | private String addre; 19 | 20 | @ApiModelProperty("备注") 21 | private String notes; 22 | 23 | @ManyToOne 24 | @JoinColumn(name = "opman") 25 | private SysOrg opman;//创建人 26 | 27 | @ManyToMany 28 | @JoinTable(name = "sa_agent_main_viewer", joinColumns = {@JoinColumn(name = "mid")}, 29 | inverseJoinColumns = {@JoinColumn(name = "oid")}) 30 | private List viewers; 31 | } -------------------------------------------------------------------------------- /vboot-application/src/main/java/com/abc/module/sa/agent/main/SaAgentMainApi.java: -------------------------------------------------------------------------------- 1 | package com.abc.module.sa.agent.main; 2 | 3 | import org.springframework.beans.factory.annotation.Autowired; 4 | import org.springframework.web.bind.annotation.*; 5 | import vboot.common.mvc.api.RestResult; 6 | import vboot.common.mvc.dao.Sqler; 7 | 8 | @RestController 9 | @RequestMapping("sa/agent/main") 10 | public class SaAgentMainApi { 11 | 12 | @GetMapping 13 | public RestResult get(String name,String catid) { 14 | Sqler sqler = new Sqler("sa_agent_main"); 15 | sqler.addLike("t.name", name); 16 | sqler.addSelect("t.addre"); 17 | return RestResult.ok(service.findPageData(sqler)); 18 | } 19 | 20 | 21 | @GetMapping("one/{id}") 22 | public RestResult getOne(@PathVariable String id) { 23 | SaAgentMain main = service.findOne(id); 24 | return RestResult.ok(main); 25 | } 26 | 27 | @PostMapping 28 | public RestResult post(@RequestBody SaAgentMain main) { 29 | return RestResult.ok(service.insert(main)); 30 | } 31 | 32 | @PutMapping 33 | public RestResult put(@RequestBody SaAgentMain main) { 34 | return RestResult.ok(service.update(main)); 35 | } 36 | 37 | @DeleteMapping("{ids}") 38 | public RestResult delete(@PathVariable String[] ids) { 39 | return RestResult.ok(service.delete(ids)); 40 | } 41 | 42 | @Autowired 43 | private SaAgentMainService service; 44 | 45 | } 46 | -------------------------------------------------------------------------------- /vboot-application/src/main/java/com/abc/module/sa/agent/main/SaAgentMainRepo.java: -------------------------------------------------------------------------------- 1 | package com.abc.module.sa.agent.main; 2 | 3 | 4 | import org.springframework.data.jpa.repository.JpaRepository; 5 | 6 | public interface SaAgentMainRepo extends JpaRepository { 7 | 8 | 9 | } 10 | -------------------------------------------------------------------------------- /vboot-application/src/main/java/com/abc/module/sa/agent/main/SaAgentMainService.java: -------------------------------------------------------------------------------- 1 | package com.abc.module.sa.agent.main; 2 | 3 | import org.springframework.beans.factory.annotation.Autowired; 4 | import org.springframework.stereotype.Service; 5 | import vboot.common.mvc.service.BaseMainService; 6 | 7 | import javax.annotation.PostConstruct; 8 | 9 | @Service 10 | public class SaAgentMainService extends BaseMainService { 11 | 12 | 13 | //----------bean注入------------ 14 | @Autowired 15 | private SaAgentMainRepo repo; 16 | 17 | @PostConstruct 18 | public void initDao() { 19 | super.setRepo(repo); 20 | } 21 | 22 | } 23 | -------------------------------------------------------------------------------- /vboot-application/src/main/java/com/abc/module/sa/draw/main/SaDrawMain.java: -------------------------------------------------------------------------------- 1 | package com.abc.module.sa.draw.main; 2 | 3 | import vboot.common.mvc.entity.BaseMainEntity; 4 | import io.swagger.annotations.ApiModelProperty; 5 | import lombok.Getter; 6 | import lombok.Setter; 7 | 8 | import javax.persistence.Column; 9 | import javax.persistence.Entity; 10 | 11 | @Entity 12 | @Getter 13 | @Setter 14 | public class SaDrawMain extends BaseMainEntity { 15 | 16 | @Column(length = 32) 17 | private String catid;//所属分类 18 | 19 | private Integer ornum; 20 | 21 | @ApiModelProperty("备注") 22 | private String notes; 23 | 24 | 25 | 26 | } -------------------------------------------------------------------------------- /vboot-application/src/main/java/com/abc/module/sa/draw/main/SaDrawMainApi.java: -------------------------------------------------------------------------------- 1 | package com.abc.module.sa.draw.main; 2 | 3 | import vboot.common.mvc.api.RestResult; 4 | import vboot.common.mvc.dao.Sqler; 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | import org.springframework.web.bind.annotation.*; 7 | 8 | @RestController 9 | @RequestMapping("sa/draw/main") 10 | public class SaDrawMainApi { 11 | 12 | @GetMapping 13 | public RestResult get(String name,String catid) { 14 | Sqler sqler = new Sqler("sa_draw_main"); 15 | sqler.addLike("t.name", name); 16 | sqler.addEqual("t.catid", catid); 17 | return RestResult.ok(service.findPageData(sqler)); 18 | } 19 | 20 | 21 | @GetMapping("one/{id}") 22 | public RestResult getOne(@PathVariable String id) { 23 | SaDrawMain main = service.findOne(id); 24 | return RestResult.ok(main); 25 | } 26 | 27 | @PostMapping 28 | public RestResult post(@RequestBody SaDrawMain main) { 29 | return RestResult.ok(service.insert(main)); 30 | } 31 | 32 | @PutMapping 33 | public RestResult put(@RequestBody SaDrawMain main) { 34 | return RestResult.ok(service.update(main)); 35 | } 36 | 37 | @DeleteMapping("{ids}") 38 | public RestResult delete(@PathVariable String[] ids) { 39 | return RestResult.ok(service.delete(ids)); 40 | } 41 | 42 | @Autowired 43 | private SaDrawMainService service; 44 | 45 | } 46 | -------------------------------------------------------------------------------- /vboot-application/src/main/java/com/abc/module/sa/draw/main/SaDrawMainRepo.java: -------------------------------------------------------------------------------- 1 | package com.abc.module.sa.draw.main; 2 | 3 | 4 | import org.springframework.data.jpa.repository.JpaRepository; 5 | 6 | public interface SaDrawMainRepo extends JpaRepository { 7 | 8 | 9 | } 10 | -------------------------------------------------------------------------------- /vboot-application/src/main/java/com/abc/module/sa/draw/main/SaDrawMainService.java: -------------------------------------------------------------------------------- 1 | package com.abc.module.sa.draw.main; 2 | 3 | import vboot.common.mvc.service.BaseMainService; 4 | import org.springframework.beans.factory.annotation.Autowired; 5 | import org.springframework.stereotype.Service; 6 | 7 | import javax.annotation.PostConstruct; 8 | 9 | @Service 10 | public class SaDrawMainService extends BaseMainService { 11 | 12 | 13 | 14 | //----------bean注入------------ 15 | @Autowired 16 | private SaDrawMainRepo repo; 17 | 18 | @PostConstruct 19 | public void initDao() { 20 | super.setRepo(repo); 21 | } 22 | 23 | } 24 | -------------------------------------------------------------------------------- /vboot-application/src/main/java/com/abc/module/sa/prod/feat/SaProdFeat.java: -------------------------------------------------------------------------------- 1 | package com.abc.module.sa.prod.feat; 2 | 3 | import lombok.Getter; 4 | import lombok.Setter; 5 | import org.hibernate.annotations.GenericGenerator; 6 | 7 | import javax.persistence.Column; 8 | import javax.persistence.Entity; 9 | import javax.persistence.GeneratedValue; 10 | import javax.persistence.Id; 11 | 12 | @Entity 13 | @Getter 14 | @Setter 15 | public class SaProdFeat { 16 | 17 | @Id 18 | @Column(length = 32) 19 | @GeneratedValue(generator = "jpa-uuid") 20 | @GenericGenerator(name = "jpa-uuid", strategy = "uuid") 21 | private String id;//ID 22 | 23 | @Column(length = 100) 24 | private String name;//选项名称 25 | 26 | private Integer ornum;//排序号 27 | 28 | private String notes;//备注 29 | 30 | } -------------------------------------------------------------------------------- /vboot-application/src/main/java/com/abc/module/sa/prod/group/SaProdGroup.java: -------------------------------------------------------------------------------- 1 | package com.abc.module.sa.prod.group; 2 | 3 | import com.abc.module.sa.prod.main.SaProdMain; 4 | import vboot.common.mvc.entity.BaseMainEntity; 5 | import lombok.Getter; 6 | import lombok.Setter; 7 | 8 | import javax.persistence.*; 9 | import java.util.ArrayList; 10 | import java.util.List; 11 | 12 | @Entity 13 | @Getter 14 | @Setter 15 | public class SaProdGroup extends BaseMainEntity { 16 | 17 | 18 | 19 | 20 | //备注 21 | private String notes; 22 | 23 | @Column(length = 32) 24 | private String projid;//项目 25 | 26 | @OneToMany(cascade = CascadeType.ALL, orphanRemoval = true) 27 | @JoinColumn(name = "groid") 28 | @OrderBy("ornum ASC") 29 | private List prods = new ArrayList<>(); 30 | 31 | 32 | 33 | 34 | } -------------------------------------------------------------------------------- /vboot-application/src/main/java/com/abc/module/sa/prod/group/SaProdGroupRepo.java: -------------------------------------------------------------------------------- 1 | package com.abc.module.sa.prod.group; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | import java.util.List; 6 | 7 | public interface SaProdGroupRepo extends JpaRepository { 8 | 9 | List findAllByProjid(String projid); 10 | } 11 | -------------------------------------------------------------------------------- /vboot-application/src/main/java/com/abc/module/sa/prod/group/SaProdGroupService.java: -------------------------------------------------------------------------------- 1 | package com.abc.module.sa.prod.group; 2 | 3 | import vboot.common.mvc.service.BaseMainService; 4 | import org.springframework.beans.factory.annotation.Autowired; 5 | import org.springframework.stereotype.Service; 6 | 7 | import javax.annotation.PostConstruct; 8 | import java.util.List; 9 | 10 | 11 | @Service 12 | public class SaProdGroupService extends BaseMainService { 13 | 14 | public List findAllByProjid(String projid){ 15 | return repo.findAllByProjid(projid); 16 | } 17 | 18 | //----------bean注入------------ 19 | @Autowired 20 | private SaProdGroupRepo repo; 21 | 22 | @PostConstruct 23 | public void initDao() { 24 | super.setRepo(repo); 25 | } 26 | 27 | 28 | } 29 | 30 | -------------------------------------------------------------------------------- /vboot-application/src/main/java/com/abc/module/sa/prod/main/SaProdMain.java: -------------------------------------------------------------------------------- 1 | package com.abc.module.sa.prod.main; 2 | 3 | import lombok.Getter; 4 | import lombok.Setter; 5 | import org.hibernate.annotations.GenericGenerator; 6 | 7 | import javax.persistence.Column; 8 | import javax.persistence.Entity; 9 | import javax.persistence.GeneratedValue; 10 | import javax.persistence.Id; 11 | 12 | @Entity 13 | @Getter 14 | @Setter 15 | public class SaProdMain { 16 | 17 | @Id 18 | @Column(length = 32) 19 | @GeneratedValue(generator = "jpa-uuid") 20 | @GenericGenerator(name = "jpa-uuid", strategy = "uuid") 21 | private String id;//ID 22 | 23 | @Column(length = 100) 24 | private String name;//选项名称 25 | 26 | private Integer ornum;//排序号 27 | 28 | private String notes;//备注 29 | 30 | } -------------------------------------------------------------------------------- /vboot-application/src/main/java/com/abc/module/sa/prod/tem/SaProdTem.java: -------------------------------------------------------------------------------- 1 | package com.abc.module.sa.prod.tem; 2 | 3 | import vboot.common.mvc.entity.BaseMainEntity; 4 | import lombok.Getter; 5 | import lombok.Setter; 6 | 7 | import javax.persistence.Column; 8 | import javax.persistence.Entity; 9 | 10 | @Entity 11 | @Getter 12 | @Setter 13 | public class SaProdTem extends BaseMainEntity { 14 | 15 | private Integer ornum; 16 | 17 | private String notes; 18 | 19 | @Column(length = 32) 20 | private String modid; 21 | 22 | 23 | 24 | 25 | } -------------------------------------------------------------------------------- /vboot-application/src/main/java/com/abc/module/sa/prod/tem/SaProdTemRepo.java: -------------------------------------------------------------------------------- 1 | package com.abc.module.sa.prod.tem; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | 6 | public interface SaProdTemRepo extends JpaRepository { 7 | 8 | 9 | } 10 | -------------------------------------------------------------------------------- /vboot-application/src/main/java/com/abc/module/sa/prod/tem/SaProdTemService.java: -------------------------------------------------------------------------------- 1 | package com.abc.module.sa.prod.tem; 2 | 3 | import vboot.common.mvc.service.BaseMainService; 4 | import org.springframework.beans.factory.annotation.Autowired; 5 | import org.springframework.stereotype.Service; 6 | 7 | import javax.annotation.PostConstruct; 8 | 9 | @Service 10 | public class SaProdTemService extends BaseMainService { 11 | 12 | 13 | //----------bean注入------------ 14 | @Autowired 15 | private SaProdTemRepo repo; 16 | 17 | @PostConstruct 18 | public void initDao() { 19 | super.setRepo(repo); 20 | } 21 | 22 | } 23 | -------------------------------------------------------------------------------- /vboot-application/src/main/java/com/abc/module/sa/proj/main/SaProjMain.java: -------------------------------------------------------------------------------- 1 | package com.abc.module.sa.proj.main; 2 | 3 | import com.abc.module.sa.prod.group.SaProdGroup; 4 | import vboot.common.mvc.entity.BaseMainEntity; 5 | import lombok.Getter; 6 | import lombok.Setter; 7 | 8 | import javax.persistence.Entity; 9 | import javax.persistence.Transient; 10 | import java.util.ArrayList; 11 | import java.util.List; 12 | 13 | @Entity 14 | @Getter 15 | @Setter 16 | public class SaProjMain extends BaseMainEntity { 17 | 18 | //备注 19 | private String notes; 20 | 21 | //项目地址 22 | private String addre; 23 | 24 | @Transient 25 | private List groups = new ArrayList<>(); //产品组 26 | 27 | } -------------------------------------------------------------------------------- /vboot-application/src/main/java/com/abc/module/sa/proj/main/SaProjMainRepo.java: -------------------------------------------------------------------------------- 1 | package com.abc.module.sa.proj.main; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | public interface SaProjMainRepo extends JpaRepository { 6 | 7 | 8 | } 9 | -------------------------------------------------------------------------------- /vboot-application/src/main/java/com/abc/module/sa/proj/main/SaProjMainService.java: -------------------------------------------------------------------------------- 1 | package com.abc.module.sa.proj.main; 2 | 3 | import vboot.common.mvc.service.BaseMainService; 4 | import org.springframework.beans.factory.annotation.Autowired; 5 | import org.springframework.stereotype.Service; 6 | 7 | import javax.annotation.PostConstruct; 8 | 9 | 10 | @Service 11 | public class SaProjMainService extends BaseMainService { 12 | 13 | 14 | //----------bean注入------------ 15 | @Autowired 16 | private SaProjMainRepo repo; 17 | 18 | @PostConstruct 19 | public void initDao() { 20 | super.setRepo(repo); 21 | } 22 | 23 | 24 | } 25 | 26 | -------------------------------------------------------------------------------- /vboot-application/src/main/java/com/abc/module/te/allot/check/TeAllotCheck.java: -------------------------------------------------------------------------------- 1 | package com.abc.module.te.allot.check; 2 | 3 | import vboot.common.mvc.entity.BaseMainEntity; 4 | import lombok.Getter; 5 | import lombok.Setter; 6 | 7 | import javax.persistence.*; 8 | import java.util.ArrayList; 9 | import java.util.List; 10 | 11 | @Entity 12 | @Getter 13 | @Setter 14 | public class TeAllotCheck extends BaseMainEntity { 15 | 16 | private Integer ornum; 17 | 18 | private Integer venum;//版本号 19 | 20 | private String notes; 21 | 22 | @Column(length = 32) 23 | private String catid;//分类id 24 | 25 | @Column(length = 32) 26 | private String serid;//系列id 27 | 28 | @Column(length = 32) 29 | private String modid;//型号id 30 | 31 | @OneToMany(cascade = CascadeType.ALL, orphanRemoval = true) 32 | @JoinColumn(name = "allid") 33 | private List items = new ArrayList<>(); 34 | 35 | } -------------------------------------------------------------------------------- /vboot-application/src/main/java/com/abc/module/te/allot/check/TeAllotCheckItem.java: -------------------------------------------------------------------------------- 1 | package com.abc.module.te.allot.check; 2 | 3 | import lombok.Getter; 4 | import lombok.Setter; 5 | import org.hibernate.annotations.GenericGenerator; 6 | 7 | import javax.persistence.Column; 8 | import javax.persistence.Entity; 9 | import javax.persistence.GeneratedValue; 10 | import javax.persistence.Id; 11 | 12 | @Entity 13 | @Getter 14 | @Setter 15 | public class TeAllotCheckItem { 16 | 17 | @Id 18 | @Column(length = 32) 19 | @GeneratedValue(generator = "jpa-uuid") 20 | @GenericGenerator(name = "jpa-uuid", strategy = "uuid") 21 | private String id;//ID 22 | 23 | @Column(length = 32) 24 | private String cheid; 25 | 26 | 27 | } -------------------------------------------------------------------------------- /vboot-application/src/main/java/com/abc/module/te/allot/check/TeAllotCheckRepo.java: -------------------------------------------------------------------------------- 1 | package com.abc.module.te.allot.check; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | public interface TeAllotCheckRepo extends JpaRepository { 6 | 7 | 8 | } 9 | -------------------------------------------------------------------------------- /vboot-application/src/main/java/com/abc/module/te/allot/check/TeAllotCheckService.java: -------------------------------------------------------------------------------- 1 | package com.abc.module.te.allot.check; 2 | 3 | import vboot.common.mvc.dao.Sqler; 4 | import vboot.common.mvc.service.BaseMainService; 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | import org.springframework.jdbc.core.BeanPropertyRowMapper; 7 | import org.springframework.stereotype.Service; 8 | 9 | import javax.annotation.PostConstruct; 10 | import java.util.List; 11 | 12 | @Service 13 | public class TeAllotCheckService extends BaseMainService { 14 | 15 | public List findData(String catid) { 16 | Sqler sqler = new Sqler("te_feat_check"); 17 | sqler.addEqual("t.catid", catid); 18 | sqler.addOrder("t.ornum"); 19 | List list = jdbcDao.getTp().query(sqler.getSql(), sqler.getParams(), new BeanPropertyRowMapper<>(Zcheck.class)); 20 | return list; 21 | } 22 | 23 | 24 | //----------bean注入------------ 25 | @Autowired 26 | private TeAllotCheckRepo repo; 27 | 28 | @PostConstruct 29 | public void initDao() { 30 | super.setRepo(repo); 31 | } 32 | 33 | } 34 | -------------------------------------------------------------------------------- /vboot-application/src/main/java/com/abc/module/te/allot/check/Zcheck.java: -------------------------------------------------------------------------------- 1 | package com.abc.module.te.allot.check; 2 | 3 | import lombok.Data; 4 | 5 | @Data 6 | public class Zcheck { 7 | 8 | private String id; 9 | 10 | private String code; 11 | 12 | private String name; 13 | 14 | private Integer ornum; 15 | 16 | } 17 | -------------------------------------------------------------------------------- /vboot-application/src/main/java/com/abc/module/te/allot/drive/TeAllotDrive.java: -------------------------------------------------------------------------------- 1 | package com.abc.module.te.allot.drive; 2 | 3 | import vboot.common.mvc.entity.BaseMainEntity; 4 | import lombok.Getter; 5 | import lombok.Setter; 6 | 7 | import javax.persistence.*; 8 | import java.util.ArrayList; 9 | import java.util.List; 10 | 11 | @Entity 12 | @Getter 13 | @Setter 14 | public class TeAllotDrive extends BaseMainEntity { 15 | 16 | private Integer ornum; 17 | 18 | private Integer venum;//版本号 19 | 20 | private String notes; 21 | 22 | @Column(length = 32) 23 | private String catid; 24 | 25 | @Column(length = 32) 26 | private String serid;//系列id 27 | 28 | @Column(length = 32) 29 | private String modid;//型号id 30 | 31 | @OneToMany(cascade = CascadeType.ALL, orphanRemoval = true) 32 | @JoinColumn(name = "allid") 33 | private List items = new ArrayList<>(); 34 | 35 | } -------------------------------------------------------------------------------- /vboot-application/src/main/java/com/abc/module/te/allot/drive/TeAllotDriveItem.java: -------------------------------------------------------------------------------- 1 | package com.abc.module.te.allot.drive; 2 | 3 | import lombok.Getter; 4 | import lombok.Setter; 5 | import org.hibernate.annotations.GenericGenerator; 6 | 7 | import javax.persistence.Column; 8 | import javax.persistence.Entity; 9 | import javax.persistence.GeneratedValue; 10 | import javax.persistence.Id; 11 | 12 | @Entity 13 | @Getter 14 | @Setter 15 | public class TeAllotDriveItem { 16 | 17 | @Id 18 | @Column(length = 32) 19 | @GeneratedValue(generator = "jpa-uuid") 20 | @GenericGenerator(name = "jpa-uuid", strategy = "uuid") 21 | private String id;//ID 22 | 23 | @Column(length = 32) 24 | private String driid; 25 | 26 | 27 | } -------------------------------------------------------------------------------- /vboot-application/src/main/java/com/abc/module/te/allot/drive/TeAllotDriveRepo.java: -------------------------------------------------------------------------------- 1 | package com.abc.module.te.allot.drive; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | public interface TeAllotDriveRepo extends JpaRepository { 6 | 7 | 8 | } 9 | -------------------------------------------------------------------------------- /vboot-application/src/main/java/com/abc/module/te/allot/drive/TeAllotDriveService.java: -------------------------------------------------------------------------------- 1 | package com.abc.module.te.allot.drive; 2 | 3 | import vboot.common.mvc.dao.Sqler; 4 | import vboot.common.mvc.service.BaseMainService; 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | import org.springframework.jdbc.core.BeanPropertyRowMapper; 7 | import org.springframework.stereotype.Service; 8 | 9 | import javax.annotation.PostConstruct; 10 | import java.util.List; 11 | 12 | @Service 13 | public class TeAllotDriveService extends BaseMainService { 14 | 15 | public List findData(String catid) { 16 | Sqler sqler = new Sqler("te_feat_drive"); 17 | sqler.addEqual("t.catid", catid); 18 | sqler.addOrder("t.ornum"); 19 | List list = jdbcDao.getTp().query(sqler.getSql(), sqler.getParams(), new BeanPropertyRowMapper<>(Zdrive.class)); 20 | return list; 21 | } 22 | 23 | //----------bean注入------------ 24 | @Autowired 25 | private TeAllotDriveRepo repo; 26 | 27 | @PostConstruct 28 | public void initDao() { 29 | super.setRepo(repo); 30 | } 31 | 32 | } 33 | -------------------------------------------------------------------------------- /vboot-application/src/main/java/com/abc/module/te/allot/drive/Zdrive.java: -------------------------------------------------------------------------------- 1 | package com.abc.module.te.allot.drive; 2 | 3 | import lombok.Data; 4 | 5 | @Data 6 | public class Zdrive { 7 | 8 | private String id; 9 | 10 | private String code; 11 | 12 | private String name; 13 | 14 | private Integer ornum; 15 | 16 | } 17 | -------------------------------------------------------------------------------- /vboot-application/src/main/java/com/abc/module/te/allot/link/TeAllotLink.java: -------------------------------------------------------------------------------- 1 | package com.abc.module.te.allot.link; 2 | 3 | import vboot.common.mvc.entity.BaseMainEntity; 4 | import lombok.Getter; 5 | import lombok.Setter; 6 | 7 | import javax.persistence.*; 8 | import java.util.ArrayList; 9 | import java.util.List; 10 | 11 | @Entity 12 | @Getter 13 | @Setter 14 | public class TeAllotLink extends BaseMainEntity { 15 | 16 | private Integer ornum; 17 | 18 | private Integer venum;//版本号 19 | 20 | private String notes; 21 | 22 | @Column(length = 32) 23 | private String catid; 24 | 25 | @Column(length = 32) 26 | private String serid;//系列id 27 | 28 | @Column(length = 32) 29 | private String modid;//型号id 30 | 31 | @OneToMany(cascade = CascadeType.ALL, orphanRemoval = true) 32 | @JoinColumn(name = "allid") 33 | private List items = new ArrayList<>(); 34 | 35 | } -------------------------------------------------------------------------------- /vboot-application/src/main/java/com/abc/module/te/allot/link/TeAllotLinkItem.java: -------------------------------------------------------------------------------- 1 | package com.abc.module.te.allot.link; 2 | 3 | import lombok.Getter; 4 | import lombok.Setter; 5 | import org.hibernate.annotations.GenericGenerator; 6 | 7 | import javax.persistence.Column; 8 | import javax.persistence.Entity; 9 | import javax.persistence.GeneratedValue; 10 | import javax.persistence.Id; 11 | 12 | @Entity 13 | @Getter 14 | @Setter 15 | public class TeAllotLinkItem { 16 | 17 | @Id 18 | @Column(length = 32) 19 | @GeneratedValue(generator = "jpa-uuid") 20 | @GenericGenerator(name = "jpa-uuid", strategy = "uuid") 21 | private String id;//ID 22 | 23 | @Column(length = 32) 24 | private String linid; 25 | 26 | 27 | } -------------------------------------------------------------------------------- /vboot-application/src/main/java/com/abc/module/te/allot/link/TeAllotLinkRepo.java: -------------------------------------------------------------------------------- 1 | package com.abc.module.te.allot.link; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | public interface TeAllotLinkRepo extends JpaRepository { 6 | 7 | 8 | } 9 | -------------------------------------------------------------------------------- /vboot-application/src/main/java/com/abc/module/te/allot/link/TeAllotLinkService.java: -------------------------------------------------------------------------------- 1 | package com.abc.module.te.allot.link; 2 | 3 | import vboot.common.mvc.dao.Sqler; 4 | import vboot.common.mvc.service.BaseMainService; 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | import org.springframework.jdbc.core.BeanPropertyRowMapper; 7 | import org.springframework.stereotype.Service; 8 | 9 | import javax.annotation.PostConstruct; 10 | import java.util.List; 11 | 12 | @Service 13 | public class TeAllotLinkService extends BaseMainService { 14 | 15 | public List findData(String catid) { 16 | Sqler sqler = new Sqler("te_feat_link"); 17 | sqler.addEqual("t.catid", catid); 18 | sqler.addOrder("t.ornum"); 19 | List list = jdbcDao.getTp().query(sqler.getSql(), sqler.getParams(), new BeanPropertyRowMapper<>(Zlink.class)); 20 | return list; 21 | } 22 | 23 | //----------bean注入------------ 24 | @Autowired 25 | private TeAllotLinkRepo repo; 26 | 27 | @PostConstruct 28 | public void initDao() { 29 | super.setRepo(repo); 30 | } 31 | 32 | } 33 | -------------------------------------------------------------------------------- /vboot-application/src/main/java/com/abc/module/te/allot/link/Zlink.java: -------------------------------------------------------------------------------- 1 | package com.abc.module.te.allot.link; 2 | 3 | import lombok.Data; 4 | 5 | @Data 6 | public class Zlink { 7 | 8 | private String id; 9 | 10 | private String code; 11 | 12 | private String name; 13 | 14 | private Integer ornum; 15 | 16 | } 17 | -------------------------------------------------------------------------------- /vboot-application/src/main/java/com/abc/module/te/allot/param/TeAllotParam.java: -------------------------------------------------------------------------------- 1 | package com.abc.module.te.allot.param; 2 | 3 | import vboot.common.mvc.entity.BaseMainEntity; 4 | import lombok.Getter; 5 | import lombok.Setter; 6 | 7 | import javax.persistence.*; 8 | import java.util.ArrayList; 9 | import java.util.List; 10 | 11 | @Entity 12 | @Getter 13 | @Setter 14 | public class TeAllotParam extends BaseMainEntity { 15 | 16 | private Boolean ornum; 17 | 18 | private Boolean sptag;//专用标记 19 | 20 | private Integer venum;//版本号 21 | 22 | private String notes; 23 | 24 | @Column(length = 32) 25 | private String catid; 26 | 27 | @Column(length = 32) 28 | private String serid;//系列id 29 | 30 | @Column(length = 32) 31 | private String modid;//型号id 32 | 33 | @OneToMany(cascade = CascadeType.ALL, orphanRemoval = true) 34 | @JoinColumn(name = "allid") 35 | private List items = new ArrayList<>(); 36 | 37 | } -------------------------------------------------------------------------------- /vboot-application/src/main/java/com/abc/module/te/allot/param/TeAllotParamItem.java: -------------------------------------------------------------------------------- 1 | package com.abc.module.te.allot.param; 2 | 3 | import lombok.Getter; 4 | import lombok.Setter; 5 | import org.hibernate.annotations.GenericGenerator; 6 | 7 | import javax.persistence.Column; 8 | import javax.persistence.Entity; 9 | import javax.persistence.GeneratedValue; 10 | import javax.persistence.Id; 11 | 12 | @Entity 13 | @Getter 14 | @Setter 15 | public class TeAllotParamItem { 16 | 17 | @Id 18 | @Column(length = 32) 19 | @GeneratedValue(generator = "jpa-uuid") 20 | @GenericGenerator(name = "jpa-uuid", strategy = "uuid") 21 | private String id;//ID 22 | 23 | @Column(length = 32) 24 | private String parid; 25 | 26 | 27 | } -------------------------------------------------------------------------------- /vboot-application/src/main/java/com/abc/module/te/allot/param/TeAllotParamRepo.java: -------------------------------------------------------------------------------- 1 | package com.abc.module.te.allot.param; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | public interface TeAllotParamRepo extends JpaRepository { 6 | 7 | 8 | } 9 | -------------------------------------------------------------------------------- /vboot-application/src/main/java/com/abc/module/te/feat/check/TeFeatCheck.java: -------------------------------------------------------------------------------- 1 | package com.abc.module.te.feat.check; 2 | 3 | import vboot.common.mvc.entity.BaseMainEntity; 4 | import lombok.Getter; 5 | import lombok.Setter; 6 | 7 | import javax.persistence.Column; 8 | import javax.persistence.Entity; 9 | 10 | @Entity 11 | @Getter 12 | @Setter 13 | public class TeFeatCheck extends BaseMainEntity { 14 | 15 | //te_feat_check 16 | @Column(length = 32) 17 | private String catid;//所属分类 18 | 19 | private Integer ornum; 20 | 21 | private String notes; 22 | 23 | } -------------------------------------------------------------------------------- /vboot-application/src/main/java/com/abc/module/te/feat/check/TeFeatCheckRepo.java: -------------------------------------------------------------------------------- 1 | package com.abc.module.te.feat.check; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | public interface TeFeatCheckRepo extends JpaRepository { 6 | 7 | 8 | } 9 | -------------------------------------------------------------------------------- /vboot-application/src/main/java/com/abc/module/te/feat/check/TeFeatCheckService.java: -------------------------------------------------------------------------------- 1 | package com.abc.module.te.feat.check; 2 | 3 | import vboot.common.mvc.service.BaseMainService; 4 | import org.springframework.beans.factory.annotation.Autowired; 5 | import org.springframework.stereotype.Service; 6 | 7 | import javax.annotation.PostConstruct; 8 | 9 | @Service 10 | public class TeFeatCheckService extends BaseMainService { 11 | 12 | 13 | //----------bean注入------------ 14 | @Autowired 15 | private TeFeatCheckRepo repo; 16 | 17 | @PostConstruct 18 | public void initDao() { 19 | super.setRepo(repo); 20 | } 21 | 22 | } 23 | -------------------------------------------------------------------------------- /vboot-application/src/main/java/com/abc/module/te/feat/comp/TeFeatCompRepo.java: -------------------------------------------------------------------------------- 1 | package com.abc.module.te.feat.comp; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | public interface TeFeatCompRepo extends JpaRepository { 6 | 7 | 8 | } 9 | -------------------------------------------------------------------------------- /vboot-application/src/main/java/com/abc/module/te/feat/comp/TeFeatCompService.java: -------------------------------------------------------------------------------- 1 | package com.abc.module.te.feat.comp; 2 | 3 | import com.abc.module.te.allot.param.TeAllotParamRepo; 4 | import vboot.common.mvc.service.BaseMainService; 5 | import vboot.common.util.lang.XstringUtil; 6 | import org.springframework.beans.factory.annotation.Autowired; 7 | import org.springframework.stereotype.Service; 8 | 9 | import javax.annotation.PostConstruct; 10 | 11 | @Service 12 | public class TeFeatCompService extends BaseMainService { 13 | 14 | public TeFeatComp insert(TeFeatComp main){ 15 | if(main.getPatem()!=null){ 16 | String puuid = XstringUtil.getUUID(); 17 | main.getPatem().setId(puuid); 18 | main.getPatem().setName(main.getName()+"专用"); 19 | main.getPatem().setSptag(true); 20 | apRepo.save(main.getPatem()); 21 | main.setPatid(puuid); 22 | } 23 | return super.insert(main); 24 | } 25 | 26 | public TeFeatComp update(TeFeatComp main){ 27 | if(main.getPatem()!=null){ 28 | apRepo.save(main.getPatem()); 29 | } 30 | return super.update(main); 31 | } 32 | 33 | //----------bean注入------------ 34 | @Autowired 35 | private TeAllotParamRepo apRepo; 36 | 37 | @Autowired 38 | private TeFeatCompRepo repo; 39 | 40 | @PostConstruct 41 | public void initDao() { 42 | super.setRepo(repo); 43 | } 44 | 45 | } 46 | -------------------------------------------------------------------------------- /vboot-application/src/main/java/com/abc/module/te/feat/drive/TeFeatDrive.java: -------------------------------------------------------------------------------- 1 | package com.abc.module.te.feat.drive; 2 | 3 | import vboot.common.mvc.entity.BaseMainEntity; 4 | import lombok.Getter; 5 | import lombok.Setter; 6 | 7 | import javax.persistence.Column; 8 | import javax.persistence.Entity; 9 | 10 | @Entity 11 | @Getter 12 | @Setter 13 | public class TeFeatDrive extends BaseMainEntity { 14 | 15 | @Column(length = 32) 16 | private String catid;//所属分类 17 | 18 | private Integer ornum; 19 | 20 | private String notes; 21 | 22 | } -------------------------------------------------------------------------------- /vboot-application/src/main/java/com/abc/module/te/feat/drive/TeFeatDriveRepo.java: -------------------------------------------------------------------------------- 1 | package com.abc.module.te.feat.drive; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | public interface TeFeatDriveRepo extends JpaRepository { 6 | 7 | 8 | } 9 | -------------------------------------------------------------------------------- /vboot-application/src/main/java/com/abc/module/te/feat/drive/TeFeatDriveService.java: -------------------------------------------------------------------------------- 1 | package com.abc.module.te.feat.drive; 2 | 3 | import vboot.common.mvc.service.BaseMainService; 4 | import org.springframework.beans.factory.annotation.Autowired; 5 | import org.springframework.stereotype.Service; 6 | 7 | import javax.annotation.PostConstruct; 8 | 9 | @Service 10 | public class TeFeatDriveService extends BaseMainService { 11 | 12 | 13 | //----------bean注入------------ 14 | @Autowired 15 | private TeFeatDriveRepo repo; 16 | 17 | @PostConstruct 18 | public void initDao() { 19 | super.setRepo(repo); 20 | } 21 | 22 | } 23 | -------------------------------------------------------------------------------- /vboot-application/src/main/java/com/abc/module/te/feat/link/TeFeatLinkItem.java: -------------------------------------------------------------------------------- 1 | package com.abc.module.te.feat.link; 2 | 3 | import lombok.Getter; 4 | import lombok.Setter; 5 | import org.hibernate.annotations.GenericGenerator; 6 | 7 | import javax.persistence.*; 8 | import java.util.ArrayList; 9 | import java.util.List; 10 | 11 | @Entity 12 | @Getter 13 | @Setter 14 | public class TeFeatLinkItem { 15 | 16 | @Id 17 | @Column(length = 32) 18 | @GeneratedValue(generator = "jpa-uuid") 19 | @GenericGenerator(name = "jpa-uuid", strategy = "uuid") 20 | private String id;//ID 21 | 22 | private Integer ornum;//排序号 23 | 24 | @OneToMany(cascade = CascadeType.ALL, orphanRemoval = true) 25 | @JoinColumn(name = "iteid") 26 | @OrderBy("ornum ASC") 27 | private List lefts = new ArrayList<>(); 28 | 29 | @OneToMany(cascade = CascadeType.ALL, orphanRemoval = true) 30 | @JoinColumn(name = "iteid") 31 | @OrderBy("ornum ASC") 32 | private List rights = new ArrayList<>(); 33 | 34 | private String notes;//备注 35 | 36 | } -------------------------------------------------------------------------------- /vboot-application/src/main/java/com/abc/module/te/feat/link/TeFeatLinkLeft.java: -------------------------------------------------------------------------------- 1 | package com.abc.module.te.feat.link; 2 | 3 | import lombok.Getter; 4 | import lombok.Setter; 5 | import org.hibernate.annotations.GenericGenerator; 6 | 7 | import javax.persistence.*; 8 | 9 | @Entity 10 | @Getter 11 | @Setter 12 | public class TeFeatLinkLeft { 13 | 14 | @Id 15 | @Column(length = 32) 16 | @GeneratedValue(generator = "jpa-uuid") 17 | @GenericGenerator(name = "jpa-uuid", strategy = "uuid") 18 | private String id;//ID 19 | 20 | private Integer ornum;//排序号 21 | 22 | @Column(length = 32) 23 | private String copar; 24 | 25 | @Column(length = 32) 26 | private String coway; 27 | 28 | @Column(length = 32) 29 | private String coval; 30 | 31 | } 32 | -------------------------------------------------------------------------------- /vboot-application/src/main/java/com/abc/module/te/feat/link/TeFeatLinkRepo.java: -------------------------------------------------------------------------------- 1 | package com.abc.module.te.feat.link; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | public interface TeFeatLinkRepo extends JpaRepository { 6 | 7 | 8 | } 9 | -------------------------------------------------------------------------------- /vboot-application/src/main/java/com/abc/module/te/feat/link/TeFeatLinkRight.java: -------------------------------------------------------------------------------- 1 | package com.abc.module.te.feat.link; 2 | 3 | import com.abc.module.te.feat.param.TeFeatParamOption; 4 | import lombok.Getter; 5 | import lombok.Setter; 6 | import org.hibernate.annotations.GenericGenerator; 7 | 8 | import javax.persistence.*; 9 | import java.util.List; 10 | 11 | @Entity 12 | @Getter 13 | @Setter 14 | public class TeFeatLinkRight { 15 | 16 | @Id 17 | @Column(length = 32) 18 | @GeneratedValue(generator = "jpa-uuid") 19 | @GenericGenerator(name = "jpa-uuid", strategy = "uuid") 20 | private String id; 21 | 22 | private Integer ornum; 23 | 24 | @Column(length = 32) 25 | private String efpar; 26 | 27 | @Column(length = 32) 28 | private String efway; 29 | 30 | @Column(length = 32) 31 | private String efval; 32 | 33 | @ManyToMany 34 | @JoinTable(name = "te_feat_link_right_op", joinColumns = {@JoinColumn(name = "rid")}, 35 | inverseJoinColumns = {@JoinColumn(name = "oid")}) 36 | private List efops; 37 | } 38 | -------------------------------------------------------------------------------- /vboot-application/src/main/java/com/abc/module/te/feat/link/TeFeatLinkService.java: -------------------------------------------------------------------------------- 1 | package com.abc.module.te.feat.link; 2 | 3 | import vboot.common.mvc.service.BaseMainService; 4 | import org.springframework.beans.factory.annotation.Autowired; 5 | import org.springframework.stereotype.Service; 6 | 7 | import javax.annotation.PostConstruct; 8 | 9 | @Service 10 | public class TeFeatLinkService extends BaseMainService { 11 | 12 | 13 | 14 | //----------bean注入------------ 15 | @Autowired 16 | private TeFeatLinkRepo repo; 17 | 18 | @PostConstruct 19 | public void initDao() { 20 | super.setRepo(repo); 21 | } 22 | 23 | } 24 | -------------------------------------------------------------------------------- /vboot-application/src/main/java/com/abc/module/te/feat/param/TeFeatParam.java: -------------------------------------------------------------------------------- 1 | package com.abc.module.te.feat.param; 2 | 3 | import vboot.common.mvc.entity.BaseMainEntity; 4 | import lombok.Getter; 5 | import lombok.Setter; 6 | 7 | import javax.persistence.*; 8 | import java.util.ArrayList; 9 | import java.util.List; 10 | 11 | @Entity 12 | @Getter 13 | @Setter 14 | public class TeFeatParam extends BaseMainEntity { 15 | 16 | private Boolean drtag;//土建参数标记 17 | 18 | private Boolean qutag;//询价参数标记 19 | 20 | @Column(length = 32) 21 | private String shmod;//显示模式 22 | 23 | @Column(length = 32) 24 | private String code; 25 | 26 | private Integer ornum; 27 | 28 | private String notes; 29 | 30 | @Column(length = 32) 31 | private String scrid; 32 | 33 | @Transient 34 | private String scrna; 35 | 36 | @OneToMany(cascade = CascadeType.ALL, orphanRemoval = true) 37 | @JoinColumn(name = "parid") 38 | @OrderBy("ornum ASC") 39 | private List options = new ArrayList<>(); 40 | 41 | @Column(length = 2000) 42 | private String asfun;//关联函数 43 | 44 | 45 | 46 | } -------------------------------------------------------------------------------- /vboot-application/src/main/java/com/abc/module/te/feat/param/TeFeatParamOption.java: -------------------------------------------------------------------------------- 1 | package com.abc.module.te.feat.param; 2 | 3 | import lombok.Getter; 4 | import lombok.Setter; 5 | import org.hibernate.annotations.GenericGenerator; 6 | 7 | import javax.persistence.Column; 8 | import javax.persistence.Entity; 9 | import javax.persistence.GeneratedValue; 10 | import javax.persistence.Id; 11 | 12 | @Entity 13 | @Getter 14 | @Setter 15 | public class TeFeatParamOption { 16 | 17 | @Id 18 | @Column(length = 32) 19 | @GeneratedValue(generator = "jpa-uuid") 20 | @GenericGenerator(name = "jpa-uuid", strategy = "uuid") 21 | private String id;//ID 22 | 23 | @Column(length = 32) 24 | private String code;//选项代码 25 | 26 | @Column(length = 100) 27 | private String name;//选项名称 28 | 29 | private Integer ornum;//排序号 30 | 31 | private String notes;//备注 32 | 33 | } -------------------------------------------------------------------------------- /vboot-application/src/main/java/com/abc/module/te/feat/param/TeFeatParamRepo.java: -------------------------------------------------------------------------------- 1 | package com.abc.module.te.feat.param; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | public interface TeFeatParamRepo extends JpaRepository { 6 | 7 | 8 | } 9 | -------------------------------------------------------------------------------- /vboot-application/src/main/java/com/abc/module/te/feat/param/TeFeatParamService.java: -------------------------------------------------------------------------------- 1 | package com.abc.module.te.feat.param; 2 | 3 | import vboot.common.mvc.dao.Sqler; 4 | import vboot.common.mvc.pojo.ZidName; 5 | import vboot.common.mvc.service.BaseMainService; 6 | import org.springframework.beans.factory.annotation.Autowired; 7 | import org.springframework.jdbc.core.BeanPropertyRowMapper; 8 | import org.springframework.stereotype.Service; 9 | 10 | import javax.annotation.PostConstruct; 11 | import java.util.List; 12 | 13 | @Service 14 | public class TeFeatParamService extends BaseMainService { 15 | 16 | public List findData(String paramid){ 17 | Sqler sqler1 = new Sqler("t.catid","te_feat_screen"); 18 | sqler1.addInnerJoin("", "te_feat_param p", "p.scrid=t.id"); 19 | sqler1.addEqual("p.id", paramid); 20 | String catid = jdbcDao.findOneString(sqler1); 21 | 22 | Sqler sqler2=new Sqler("te_prod_model"); 23 | sqler2.addEqual("t.catid", catid); 24 | sqler2.addOrder("t.ornum"); 25 | List zmodels=jdbcDao.getTp().query(sqler2.getSql(),sqler2.getParams(), new BeanPropertyRowMapper<>(ZidName.class)); 26 | return zmodels; 27 | } 28 | 29 | 30 | 31 | 32 | //----------bean注入------------ 33 | @Autowired 34 | private TeFeatParamRepo repo; 35 | 36 | @PostConstruct 37 | public void initDao() { 38 | super.setRepo(repo); 39 | } 40 | 41 | } 42 | -------------------------------------------------------------------------------- /vboot-application/src/main/java/com/abc/module/te/feat/screen/TeFeatScreen.java: -------------------------------------------------------------------------------- 1 | package com.abc.module.te.feat.screen; 2 | 3 | import vboot.common.mvc.entity.BaseMainEntity; 4 | import lombok.Getter; 5 | import lombok.Setter; 6 | 7 | import javax.persistence.Column; 8 | import javax.persistence.Entity; 9 | 10 | @Entity 11 | @Getter 12 | @Setter 13 | public class TeFeatScreen extends BaseMainEntity { 14 | 15 | @Column(length = 32) 16 | private String catid;//所属分类 17 | 18 | private Integer ornum; 19 | 20 | private String notes; 21 | 22 | } -------------------------------------------------------------------------------- /vboot-application/src/main/java/com/abc/module/te/feat/screen/TeFeatScreenRepo.java: -------------------------------------------------------------------------------- 1 | package com.abc.module.te.feat.screen; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | public interface TeFeatScreenRepo extends JpaRepository { 6 | 7 | 8 | } 9 | -------------------------------------------------------------------------------- /vboot-application/src/main/java/com/abc/module/te/prod/cate/TeProdCate.java: -------------------------------------------------------------------------------- 1 | package com.abc.module.te.prod.cate; 2 | 3 | import vboot.common.mvc.entity.BaseMainEntity; 4 | import lombok.Getter; 5 | import lombok.Setter; 6 | 7 | import javax.persistence.Entity; 8 | 9 | @Entity 10 | @Getter 11 | @Setter 12 | public class TeProdCate extends BaseMainEntity { 13 | 14 | private Integer ornum; 15 | 16 | private String notes; 17 | 18 | } -------------------------------------------------------------------------------- /vboot-application/src/main/java/com/abc/module/te/prod/cate/TeProdCateRepo.java: -------------------------------------------------------------------------------- 1 | package com.abc.module.te.prod.cate; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | public interface TeProdCateRepo extends JpaRepository { 6 | 7 | 8 | } 9 | -------------------------------------------------------------------------------- /vboot-application/src/main/java/com/abc/module/te/prod/cate/TeProdCateService.java: -------------------------------------------------------------------------------- 1 | package com.abc.module.te.prod.cate; 2 | 3 | import vboot.common.mvc.service.BaseMainService; 4 | import org.springframework.beans.factory.annotation.Autowired; 5 | import org.springframework.stereotype.Service; 6 | 7 | import javax.annotation.PostConstruct; 8 | 9 | @Service 10 | public class TeProdCateService extends BaseMainService { 11 | 12 | 13 | //----------bean注入------------ 14 | @Autowired 15 | private TeProdCateRepo repo; 16 | 17 | @PostConstruct 18 | public void initDao() { 19 | super.setRepo(repo); 20 | } 21 | 22 | } 23 | -------------------------------------------------------------------------------- /vboot-application/src/main/java/com/abc/module/te/prod/model/TeProdModel.java: -------------------------------------------------------------------------------- 1 | package com.abc.module.te.prod.model; 2 | 3 | import vboot.common.mvc.entity.BaseMainEntity; 4 | import lombok.Getter; 5 | import lombok.Setter; 6 | 7 | import javax.persistence.*; 8 | 9 | @Entity 10 | @Getter 11 | @Setter 12 | public class TeProdModel extends BaseMainEntity { 13 | 14 | private Integer ornum; 15 | 16 | private String notes; 17 | 18 | @Column(length = 32) 19 | private String catid; 20 | 21 | @Column(length = 32) 22 | private String serid; 23 | 24 | 25 | } -------------------------------------------------------------------------------- /vboot-application/src/main/java/com/abc/module/te/prod/model/TeProdModelRepo.java: -------------------------------------------------------------------------------- 1 | package com.abc.module.te.prod.model; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | public interface TeProdModelRepo extends JpaRepository { 6 | 7 | 8 | } 9 | -------------------------------------------------------------------------------- /vboot-application/src/main/java/com/abc/module/te/prod/model/Zmodel.java: -------------------------------------------------------------------------------- 1 | package com.abc.module.te.prod.model; 2 | 3 | import lombok.Data; 4 | 5 | import java.util.ArrayList; 6 | import java.util.List; 7 | 8 | 9 | @Data 10 | public class Zmodel { 11 | 12 | private String id; 13 | 14 | private String name; 15 | 16 | private String catid; 17 | 18 | List screens = new ArrayList<>(); 19 | 20 | } -------------------------------------------------------------------------------- /vboot-application/src/main/java/com/abc/module/te/prod/model/Zparam.java: -------------------------------------------------------------------------------- 1 | package com.abc.module.te.prod.model; 2 | 3 | import lombok.Data; 4 | 5 | @Data 6 | public class Zparam { 7 | 8 | private String id; 9 | 10 | private String code; 11 | 12 | private String name; 13 | 14 | private Integer ornum; 15 | 16 | private String scrid; 17 | 18 | private String shmod; 19 | } 20 | -------------------------------------------------------------------------------- /vboot-application/src/main/java/com/abc/module/te/prod/model/Zscreen.java: -------------------------------------------------------------------------------- 1 | package com.abc.module.te.prod.model; 2 | 3 | import lombok.Data; 4 | 5 | import java.util.ArrayList; 6 | import java.util.List; 7 | 8 | @Data 9 | public class Zscreen { 10 | 11 | private String id; 12 | 13 | private String name; 14 | 15 | private Integer ornum; 16 | 17 | List params = new ArrayList<>(); 18 | 19 | } 20 | -------------------------------------------------------------------------------- /vboot-application/src/main/java/com/abc/module/te/prod/serie/TeProdSerie.java: -------------------------------------------------------------------------------- 1 | package com.abc.module.te.prod.serie; 2 | 3 | import vboot.common.mvc.entity.BaseMainEntity; 4 | import lombok.Getter; 5 | import lombok.Setter; 6 | 7 | import javax.persistence.Column; 8 | import javax.persistence.Entity; 9 | 10 | @Entity 11 | @Getter 12 | @Setter 13 | public class TeProdSerie extends BaseMainEntity { 14 | 15 | private Integer ornum; 16 | 17 | private String notes; 18 | 19 | @Column(length = 32) 20 | private String catid; 21 | 22 | 23 | 24 | 25 | } -------------------------------------------------------------------------------- /vboot-application/src/main/java/com/abc/module/te/prod/serie/TeProdSerieRepo.java: -------------------------------------------------------------------------------- 1 | package com.abc.module.te.prod.serie; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | import java.util.List; 6 | 7 | public interface TeProdSerieRepo extends JpaRepository { 8 | 9 | List findAllByCatid(String catid); 10 | 11 | } 12 | -------------------------------------------------------------------------------- /vboot-application/src/main/java/com/abc/module/te/prod/serie/TeProdSerieService.java: -------------------------------------------------------------------------------- 1 | package com.abc.module.te.prod.serie; 2 | 3 | import vboot.common.mvc.service.BaseMainService; 4 | import org.springframework.beans.factory.annotation.Autowired; 5 | import org.springframework.stereotype.Service; 6 | 7 | import javax.annotation.PostConstruct; 8 | import java.util.List; 9 | 10 | @Service 11 | public class TeProdSerieService extends BaseMainService { 12 | 13 | public List findAllByCatid(String catid){ 14 | return repo.findAllByCatid(catid); 15 | } 16 | 17 | //----------bean注入------------ 18 | @Autowired 19 | private TeProdSerieRepo repo; 20 | 21 | @PostConstruct 22 | public void initDao() { 23 | super.setRepo(repo); 24 | } 25 | 26 | } 27 | -------------------------------------------------------------------------------- /vboot-application/src/main/java/com/abc/module/te/prod/test/TeProdTest.java: -------------------------------------------------------------------------------- 1 | package com.abc.module.te.prod.test; 2 | 3 | import vboot.common.mvc.entity.BaseMainEntity; 4 | import lombok.Getter; 5 | import lombok.Setter; 6 | 7 | import javax.persistence.Entity; 8 | 9 | @Entity 10 | @Getter 11 | @Setter 12 | public class TeProdTest extends BaseMainEntity { 13 | 14 | private String notes; 15 | 16 | } -------------------------------------------------------------------------------- /vboot-application/src/main/java/com/abc/module/te/prod/test/TeProdTestRepo.java: -------------------------------------------------------------------------------- 1 | package com.abc.module.te.prod.test; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | public interface TeProdTestRepo extends JpaRepository { 6 | 7 | 8 | } 9 | -------------------------------------------------------------------------------- /vboot-application/src/main/java/com/abc/module/te/prod/test/TeProdTestService.java: -------------------------------------------------------------------------------- 1 | package com.abc.module.te.prod.test; 2 | 3 | import vboot.common.mvc.service.BaseMainService; 4 | import org.springframework.beans.factory.annotation.Autowired; 5 | import org.springframework.stereotype.Service; 6 | 7 | import javax.annotation.PostConstruct; 8 | 9 | @Service 10 | public class TeProdTestService extends BaseMainService { 11 | 12 | 13 | 14 | 15 | 16 | //----------bean注入------------ 17 | @Autowired 18 | private TeProdTestRepo repo; 19 | 20 | @PostConstruct 21 | public void initDao() { 22 | super.setRepo(repo); 23 | } 24 | 25 | } 26 | -------------------------------------------------------------------------------- /vboot-application/src/main/java/com/abc/module/te/prod/version/TeProdVersionRepo.java: -------------------------------------------------------------------------------- 1 | package com.abc.module.te.prod.version; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | public interface TeProdVersionRepo extends JpaRepository { 6 | 7 | 8 | } 9 | -------------------------------------------------------------------------------- /vboot-application/src/main/java/com/abc/module/te/prod/version/TeProdVersionService.java: -------------------------------------------------------------------------------- 1 | package com.abc.module.te.prod.version; 2 | 3 | import com.abc.module.te.allot.param.TeAllotParamRepo; 4 | import vboot.common.mvc.service.BaseMainService; 5 | import vboot.common.util.lang.XstringUtil; 6 | import org.springframework.beans.factory.annotation.Autowired; 7 | import org.springframework.stereotype.Service; 8 | 9 | import javax.annotation.PostConstruct; 10 | 11 | @Service 12 | public class TeProdVersionService extends BaseMainService { 13 | 14 | public TeProdVersion insert(TeProdVersion main){ 15 | if(main.getPatem()!=null){ 16 | String puuid = XstringUtil.getUUID(); 17 | main.getPatem().setId(puuid); 18 | main.getPatem().setName(main.getName()+"专用"); 19 | main.getPatem().setSptag(true); 20 | apRepo.save(main.getPatem()); 21 | main.setPatid(puuid); 22 | } 23 | return super.insert(main); 24 | } 25 | 26 | public TeProdVersion update(TeProdVersion main){ 27 | if(main.getPatem()!=null){ 28 | apRepo.save(main.getPatem()); 29 | } 30 | return super.update(main); 31 | } 32 | 33 | //----------bean注入------------ 34 | @Autowired 35 | private TeAllotParamRepo apRepo; 36 | 37 | 38 | @Autowired 39 | private TeProdVersionRepo repo; 40 | 41 | @PostConstruct 42 | public void initDao() { 43 | super.setRepo(repo); 44 | } 45 | 46 | } 47 | -------------------------------------------------------------------------------- /vboot-application/src/main/java/com/abc/module/te/tran/cate/TeTranCate.java: -------------------------------------------------------------------------------- 1 | package com.abc.module.te.tran.cate; 2 | 3 | import vboot.common.mvc.entity.BaseMainEntity; 4 | import lombok.Getter; 5 | import lombok.Setter; 6 | 7 | import javax.persistence.Entity; 8 | 9 | @Entity 10 | @Getter 11 | @Setter 12 | public class TeTranCate extends BaseMainEntity { 13 | 14 | private Integer ornum; 15 | 16 | private String notes; 17 | 18 | } -------------------------------------------------------------------------------- /vboot-application/src/main/java/com/abc/module/te/tran/cate/TeTranCateRepo.java: -------------------------------------------------------------------------------- 1 | package com.abc.module.te.tran.cate; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | public interface TeTranCateRepo extends JpaRepository { 6 | 7 | 8 | } 9 | -------------------------------------------------------------------------------- /vboot-application/src/main/java/com/abc/module/te/tran/cate/TeTranCateService.java: -------------------------------------------------------------------------------- 1 | package com.abc.module.te.tran.cate; 2 | 3 | import vboot.common.mvc.service.BaseMainService; 4 | import org.springframework.beans.factory.annotation.Autowired; 5 | import org.springframework.stereotype.Service; 6 | 7 | import javax.annotation.PostConstruct; 8 | 9 | @Service 10 | public class TeTranCateService extends BaseMainService { 11 | 12 | 13 | //----------bean注入------------ 14 | @Autowired 15 | private TeTranCateRepo repo; 16 | 17 | @PostConstruct 18 | public void initDao() { 19 | super.setRepo(repo); 20 | } 21 | 22 | } 23 | -------------------------------------------------------------------------------- /vboot-application/src/main/java/com/abc/module/te/tran/main/TeTranMainItem.java: -------------------------------------------------------------------------------- 1 | package com.abc.module.te.tran.main; 2 | 3 | import lombok.Getter; 4 | import lombok.Setter; 5 | import org.hibernate.annotations.GenericGenerator; 6 | 7 | import javax.persistence.Column; 8 | import javax.persistence.Entity; 9 | import javax.persistence.GeneratedValue; 10 | import javax.persistence.Id; 11 | 12 | @Entity 13 | @Getter 14 | @Setter 15 | public class TeTranMainItem { 16 | 17 | @Id 18 | @Column(length = 32) 19 | @GeneratedValue(generator = "jpa-uuid") 20 | @GenericGenerator(name = "jpa-uuid", strategy = "uuid") 21 | private String id;//ID 22 | 23 | private Integer ornum;//排序号 24 | 25 | @Column(length = 100) 26 | private String paval; 27 | 28 | @Column(length = 100) 29 | private String pbval; 30 | 31 | @Column(length = 100) 32 | private String pcval; 33 | 34 | @Column(length = 100) 35 | private String pdval; 36 | 37 | @Column(length = 100) 38 | private String pxval; 39 | 40 | @Column(length = 100) 41 | private String pyval; 42 | 43 | private String notes;//备注 44 | 45 | } -------------------------------------------------------------------------------- /vboot-application/src/main/java/com/abc/module/te/tran/main/TeTranMainRepo.java: -------------------------------------------------------------------------------- 1 | package com.abc.module.te.tran.main; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | public interface TeTranMainRepo extends JpaRepository { 6 | 7 | 8 | } 9 | -------------------------------------------------------------------------------- /vboot-application/src/main/java/com/abc/module/te/tran/main/TeTranMainService.java: -------------------------------------------------------------------------------- 1 | package com.abc.module.te.tran.main; 2 | 3 | import vboot.common.mvc.service.BaseMainService; 4 | import org.springframework.beans.factory.annotation.Autowired; 5 | import org.springframework.stereotype.Service; 6 | 7 | import javax.annotation.PostConstruct; 8 | 9 | @Service 10 | public class TeTranMainService extends BaseMainService { 11 | 12 | 13 | //----------bean注入------------ 14 | @Autowired 15 | private TeTranMainRepo repo; 16 | 17 | @PostConstruct 18 | public void initDao() { 19 | super.setRepo(repo); 20 | } 21 | 22 | } 23 | -------------------------------------------------------------------------------- /vboot-application/src/main/java/com/abc/module/wc/cont/WcCont.java: -------------------------------------------------------------------------------- 1 | package com.abc.module.wc.cont; 2 | 3 | import lombok.Data; 4 | 5 | import javax.persistence.Column; 6 | import javax.persistence.Entity; 7 | import javax.persistence.Id; 8 | 9 | @Data 10 | @Entity 11 | public class WcCont { 12 | 13 | @Id 14 | @Column(length = 32) 15 | private String id; 16 | 17 | @Column(length = 64) 18 | private String name; 19 | 20 | 21 | 22 | } 23 | -------------------------------------------------------------------------------- /vboot-application/src/main/java/com/abc/module/wc/match/main/WcMatch.java: -------------------------------------------------------------------------------- 1 | package com.abc.module.wc.match.main; 2 | 3 | import lombok.Data; 4 | 5 | import javax.persistence.*; 6 | 7 | @Data 8 | @Entity 9 | public class WcMatch { 10 | 11 | @Id 12 | @Column(length = 32) 13 | private String id; 14 | 15 | @Column(length = 128) 16 | private String name;//round_cn 17 | 18 | @Column(length = 32) 19 | private String homeId; 20 | 21 | private Integer homeScore; 22 | 23 | @Column(length = 32) 24 | private String awayId; 25 | 26 | private Integer awayScore; 27 | 28 | 29 | 30 | 31 | 32 | // @ManyToMany 33 | // @JoinTable(name = "wc_match_link_team", joinColumns = {@JoinColumn(name = "match_id")}, 34 | // inverseJoinColumns = {@JoinColumn(name = "team_id")}) 35 | // private List teams; 36 | 37 | 38 | 39 | } 40 | -------------------------------------------------------------------------------- /vboot-application/src/main/java/com/abc/module/wc/match/main/WcMatchRepo.java: -------------------------------------------------------------------------------- 1 | package com.abc.module.wc.match.main; 2 | 3 | 4 | import org.springframework.data.jpa.repository.JpaRepository; 5 | 6 | public interface WcMatchRepo extends JpaRepository { 7 | 8 | 9 | } 10 | -------------------------------------------------------------------------------- /vboot-application/src/main/java/com/abc/module/wc/palyer/main/WcPlayer.java: -------------------------------------------------------------------------------- 1 | package com.abc.module.wc.palyer.main; 2 | 3 | import lombok.Data; 4 | 5 | import javax.persistence.Column; 6 | import javax.persistence.Entity; 7 | import javax.persistence.Id; 8 | import java.math.BigDecimal; 9 | import java.util.Date; 10 | 11 | @Data 12 | @Entity 13 | public class WcPlayer { 14 | 15 | @Id 16 | @Column(length = 32) 17 | private String id;//主键 18 | 19 | @Column(length = 64) 20 | private String name;//中文名称 21 | 22 | @Column(length = 64) 23 | private String enName;//英文名称 24 | 25 | private String enFullName;//英文全称 26 | 27 | private Date birthday;//出生日期 28 | 29 | private Integer height;//身高(cm) 30 | 31 | private Integer weight;//体重(kg) 32 | 33 | private String position;//场上位置 34 | 35 | private String shirtNumber;//球衣号 36 | 37 | private String teamId;//球队ID 38 | 39 | private String club;//俱乐部 40 | 41 | private BigDecimal weekly;//周薪 可以改成 salary 42 | 43 | private BigDecimal adrate;//每年广告费 44 | 45 | private String idolId;//偶像的ID 46 | 47 | } 48 | -------------------------------------------------------------------------------- /vboot-application/src/main/java/com/abc/module/wc/palyer/main/WcPlayerRepo.java: -------------------------------------------------------------------------------- 1 | package com.abc.module.wc.palyer.main; 2 | 3 | 4 | import org.springframework.data.jpa.repository.JpaRepository; 5 | 6 | public interface WcPlayerRepo extends JpaRepository { 7 | 8 | 9 | } 10 | -------------------------------------------------------------------------------- /vboot-application/src/main/java/com/abc/module/wc/stat/WcStat.java: -------------------------------------------------------------------------------- 1 | package com.abc.module.wc.stat; 2 | 3 | import lombok.Data; 4 | 5 | import javax.persistence.Column; 6 | import javax.persistence.Entity; 7 | import javax.persistence.Id; 8 | 9 | @Data 10 | @Entity 11 | public class WcStat { 12 | 13 | @Id 14 | @Column(length = 32) 15 | private String id; 16 | 17 | @Column(length = 32) 18 | private String palyerId;//球员ID 19 | 20 | @Column(length = 32) 21 | private String matchId;//比赛ID 22 | 23 | private Integer totalScoringAtt;//射门次数 24 | 25 | private Integer ontargetScoringAtt;//射正次数 26 | 27 | private Integer goals;//进球数 28 | 29 | private Integer goalAssist;//助攻 30 | 31 | private Integer minsPlayed;//出场时间 32 | 33 | private Integer fouls;//犯规 34 | 35 | private Integer wasFouled;//被犯规 36 | 37 | private Integer totalPass;//总传球数 38 | 39 | private Integer accuratePass;//成功传球数 40 | 41 | private Integer saves;//扑救数 42 | 43 | private Boolean status;//是否首发 44 | 45 | private Boolean isHome;//是否为主队 46 | 47 | } 48 | -------------------------------------------------------------------------------- /vboot-application/src/main/java/com/abc/module/wc/stat/WcStatRepo.java: -------------------------------------------------------------------------------- 1 | package com.abc.module.wc.stat; 2 | 3 | 4 | import org.springframework.data.jpa.repository.JpaRepository; 5 | 6 | public interface WcStatRepo extends JpaRepository { 7 | 8 | 9 | } 10 | -------------------------------------------------------------------------------- /vboot-application/src/main/java/com/abc/module/wc/team/main/WcTeam.java: -------------------------------------------------------------------------------- 1 | package com.abc.module.wc.team.main; 2 | 3 | import lombok.Data; 4 | 5 | import javax.persistence.*; 6 | 7 | @Data 8 | @Entity 9 | public class WcTeam { 10 | 11 | @Id 12 | @Column(length = 32) 13 | private String id; 14 | 15 | @Column(length = 32) 16 | private String name; 17 | 18 | // @Column(length = 64) 19 | // private String enName; 20 | 21 | @Column(length = 32) 22 | private String coach;//主教练 23 | 24 | @Column(length = 32) 25 | private String contId;//大洲的ID 26 | 27 | 28 | } 29 | -------------------------------------------------------------------------------- /vboot-application/src/main/java/com/abc/module/wc/team/main/WcTeamRepo.java: -------------------------------------------------------------------------------- 1 | package com.abc.module.wc.team.main; 2 | 3 | 4 | import org.springframework.data.jpa.repository.JpaRepository; 5 | 6 | public interface WcTeamRepo extends JpaRepository { 7 | 8 | 9 | } 10 | -------------------------------------------------------------------------------- /vboot-application/src/main/java/com/abc/module/wc/team/main/WcTeamService.java: -------------------------------------------------------------------------------- 1 | package com.abc.module.wc.team.main; 2 | 3 | import org.springframework.beans.factory.annotation.Autowired; 4 | import org.springframework.stereotype.Service; 5 | import org.springframework.transaction.annotation.Transactional; 6 | 7 | 8 | 9 | @Service 10 | @Transactional(rollbackFor = Exception.class) 11 | public class WcTeamService { 12 | 13 | 14 | 15 | @Autowired 16 | private WcTeamRepo repo; 17 | 18 | 19 | } 20 | -------------------------------------------------------------------------------- /vboot-application/src/main/resources/config/banner.txt: -------------------------------------------------------------------------------- 1 | ${AnsiColor.GREEN} 2 | 3 | vboot V0.1 一个开箱即用的快速开发平台.JAVA版 4 | 5 | ${AnsiColor.GREEN} 6 | ${spring-boot.version} -------------------------------------------------------------------------------- /vboot-application/src/main/resources/config/sap-config.properties: -------------------------------------------------------------------------------- 1 | #sap\u6D4B\u8BD5\u673A 2 | jco.client.client=800 3 | jco.client.user=xxxx 4 | jco.client.passwd=xxxxx 5 | jco.client.lang=zh 6 | jco.client.ashost=10.10.10.10 7 | jco.client.sysnr=00 8 | 9 | 10 | #jco.client.pool_capacity=30 11 | #jco.client.peak_limit=150 12 | 13 | 14 | 15 | #jco.client.pool_capacity=30 16 | #jco.client.peak_limit=150 -------------------------------------------------------------------------------- /vboot-application/src/main/resources/static/assets/401.1653003640069.css: -------------------------------------------------------------------------------- 1 | .error[data-v-20f60251]{height:100%;background-color:var(--el-color-white);display:flex}.error .error-flex[data-v-20f60251]{margin:auto;display:flex;height:350px;width:900px}.error .error-flex .left[data-v-20f60251]{flex:1;height:100%;align-items:center;display:flex}.error .error-flex .left .left-item .left-item-animation[data-v-20f60251]{opacity:0;animation-name:error-num;animation-duration:.5s;animation-fill-mode:forwards}.error .error-flex .left .left-item .left-item-num[data-v-20f60251]{color:var(--el-color-info);font-size:55px}.error .error-flex .left .left-item .left-item-title[data-v-20f60251]{font-size:20px;color:var(--el-text-color-primary);margin:15px 0 5px;animation-delay:.1s}.error .error-flex .left .left-item .left-item-msg[data-v-20f60251]{color:var(--el-text-color-secondary);font-size:12px;margin-bottom:30px;animation-delay:.2s}.error .error-flex .left .left-item .left-item-btn[data-v-20f60251]{animation-delay:.2s}.error .error-flex .right[data-v-20f60251]{flex:1;opacity:0;animation-name:error-img;animation-duration:2s;animation-fill-mode:forwards}.error .error-flex .right img[data-v-20f60251]{width:100%;height:100%} 2 | -------------------------------------------------------------------------------- /vboot-application/src/main/resources/static/assets/404.1653003640069.css: -------------------------------------------------------------------------------- 1 | .error[data-v-d5f37826]{height:100%;background-color:var(--el-color-white);display:flex}.error .error-flex[data-v-d5f37826]{margin:auto;display:flex;height:350px;width:900px}.error .error-flex .left[data-v-d5f37826]{flex:1;height:100%;align-items:center;display:flex}.error .error-flex .left .left-item .left-item-animation[data-v-d5f37826]{opacity:0;animation-name:error-num;animation-duration:.5s;animation-fill-mode:forwards}.error .error-flex .left .left-item .left-item-num[data-v-d5f37826]{color:var(--el-color-info);font-size:55px}.error .error-flex .left .left-item .left-item-title[data-v-d5f37826]{font-size:20px;color:var(--el-text-color-primary);margin:15px 0 5px;animation-delay:.1s}.error .error-flex .left .left-item .left-item-msg[data-v-d5f37826]{color:var(--el-text-color-secondary);font-size:12px;margin-bottom:30px;animation-delay:.2s}.error .error-flex .left .left-item .left-item-btn[data-v-d5f37826]{animation-delay:.2s}.error .error-flex .right[data-v-d5f37826]{flex:1;opacity:0;animation-name:error-img;animation-duration:2s;animation-fill-mode:forwards}.error .error-flex .right img[data-v-d5f37826]{width:100%;height:100%} 2 | -------------------------------------------------------------------------------- /vboot-application/src/main/resources/static/assets/DeptTree.1653003640069.css: -------------------------------------------------------------------------------- 1 | .tree-h-flex[data-v-5a7a6c7c]{display:flex}.tree-h-left[data-v-5a7a6c7c]{flex:1;width:100%}.tree-h-right[data-v-5a7a6c7c]{width:40px;min-width:40px} 2 | -------------------------------------------------------------------------------- /vboot-application/src/main/resources/static/assets/Event.1653003640069.js: -------------------------------------------------------------------------------- 1 | import{C as t,F as p,E as e,D as o}from"./common.1653003640069.js";import"./index.1653003640069.js";import"./vue.1653003640069.js";import"./store.1653003640069.js";const r=[t,e,o];var s={"bpmn:StartEvent":[t,p,e,o],"bpmn:EndEvent":r,"bpmn:IntermediateThrowEvent":r,"bpmn:IntermediateCatchEvent":r};export{s as default}; 2 | -------------------------------------------------------------------------------- /vboot-application/src/main/resources/static/assets/FlowModal.1653003640069.css: -------------------------------------------------------------------------------- 1 | .dialog-footer button[data-v-4c979fca]:first-child{margin-right:10px}.layui-elip[data-v-4c979fca]{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.f-flow[data-v-4c979fca]:before,.f-flow[data-v-4c979fca]:after{content:" ";display:table}.f-flow[data-v-4c979fca]:after{clear:both}.f-flow input[data-v-4c979fca],.f-flow label[data-v-4c979fca]{float:left;margin-top:10px;margin-right:8px}.f-flow img[data-v-4c979fca]{width:50px;height:50px;float:left;border-radius:100%;margin-right:8px}.f-flow .f-flow-name[data-v-4c979fca],.f-flow .f-flow-cate[data-v-4c979fca]{display:block}.f-flow .f-flow-name[data-v-4c979fca]{margin-top:6px}.f-flow .f-flow-cate[data-v-4c979fca]{color:#a599b2}.z-flow-search li[data-v-4c979fca]{width:50%;float:left;cursor:pointer;padding:2px;list-style-type:none}.z-flow-search li[data-v-4c979fca]:hover{background-color:#f7efec}.z-cate-tree li[data-v-4c979fca]{margin:3px;cursor:pointer;padding:3px;list-style-type:none}.z-cate-tree li[data-v-4c979fca]:hover{background-color:#f7efec} 2 | -------------------------------------------------------------------------------- /vboot-application/src/main/resources/static/assets/Gateway.1653003640069.js: -------------------------------------------------------------------------------- 1 | import{C as o,E as r,D as a}from"./common.1653003640069.js";import"./index.1653003640069.js";import"./vue.1653003640069.js";import"./store.1653003640069.js";const e=[o,r,a];var n={"bpmn:ExclusiveGateway":e,"bpmn:ParallelGateway":e,"bpmn:ComplexGateway":e,"bpmn:EventBasedGateway":e};export{n as default}; 2 | -------------------------------------------------------------------------------- /vboot-application/src/main/resources/static/assets/GenModal.1653003640069.css: -------------------------------------------------------------------------------- 1 | .tree-h-flex[data-v-63c86f7b]{display:flex}.tree-h-left[data-v-63c86f7b]{flex:1;width:100%}.tree-h-right[data-v-63c86f7b]{width:40px;min-width:40px} 2 | -------------------------------------------------------------------------------- /vboot-application/src/main/resources/static/assets/GenTree.1653003640069.css: -------------------------------------------------------------------------------- 1 | .tree-h-flex[data-v-ebf87b5a]{display:flex}.tree-h-left[data-v-ebf87b5a]{flex:1;width:100%}.tree-h-right[data-v-ebf87b5a]{width:40px;min-width:40px} 2 | -------------------------------------------------------------------------------- /vboot-application/src/main/resources/static/assets/Other.1653003640069.js: -------------------------------------------------------------------------------- 1 | import{E as a,D as m,C as u}from"./common.1653003640069.js";import{T as t}from"./index.1653003640069.js";import{Z as p,X as n}from"./vue.1653003640069.js";import"./store.1653003640069.js";const r=[u,a,m],i={name:"\u57FA\u7840\u4FE1\u606F",icon:"el-icon-info",properties:{id:{component:t,placeholder:"\u8282\u70B9ID",vSlots:{prepend:()=>p("div",null,[n("\u8282\u70B9ID")])}},name:{component:t,placeholder:"\u8282\u70B9\u540D\u79F0",vSlots:{prepend:()=>p("div",null,[n("\u8282\u70B9\u540D\u79F0")])},getValue:e=>{var o;return(o=e==null?void 0:e.categoryValueRef)==null?void 0:o.value}}}};var f={"bpmn:Participant":r,"bpmn:Group":[i,a,m],"bpmn:DataStoreReference":r,"bpmn:DataObjectReference":r};export{f as default}; 2 | -------------------------------------------------------------------------------- /vboot-application/src/main/resources/static/assets/PrefixLabelSelect.1653003640069.css: -------------------------------------------------------------------------------- 1 | .prefix-label-select-container{display:inline-table;width:100%}.prefix-title{display:table-cell;padding:0 20px;border:1px solid #DCDFE6;border-right:0;border-radius:4px 0 0 4px;color:#909399;background-color:#f5f7fa;width:1px;white-space:nowrap}.prefix-label-select{display:table-cell}.prefix-label-select .el-input,.el-select{line-height:normal}.prefix-label-select .el-input__inner{border-radius:0 4px 4px 0!important;line-height:normal} 2 | -------------------------------------------------------------------------------- /vboot-application/src/main/resources/static/assets/PrefixLabelSelect.1653003640069.js: -------------------------------------------------------------------------------- 1 | var c=Object.defineProperty,m=Object.defineProperties;var f=Object.getOwnPropertyDescriptors;var o=Object.getOwnPropertySymbols;var n=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable;var s=(e,l,t)=>l in e?c(e,l,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[l]=t,p=(e,l)=>{for(var t in l||(l={}))n.call(l,t)&&s(e,t,l[t]);if(o)for(var t of o(l))x.call(l,t)&&s(e,t,l[t]);return e},d=(e,l)=>m(e,f(l));import{V as u}from"./index.1653003640069.js";import{a as V,B as v,Z as i,P as b}from"./vue.1653003640069.js";const T=V({props:d(p({},u.props),{prefixTitle:{type:String,default:()=>""}}),emits:["update:modelValue"],setup(e,{emit:l,slots:t}){const r=v({get:()=>e.value,set:a=>l("update:modelValue",a)});return()=>i("div",{class:"prefix-label-select-container"},[e.prefixTitle&&i("div",{class:"prefix-title "},[e.prefixTitle]),i(u,b({class:"prefix-label-select",modelValue:r.value,"onUpdate:modelValue":a=>r.value=a},e),t)])}});export{T as P}; 2 | -------------------------------------------------------------------------------- /vboot-application/src/main/resources/static/assets/Process.1653003640069.js: -------------------------------------------------------------------------------- 1 | import{C as e,g as o,E as s,D as p}from"./common.1653003640069.js";import"./index.1653003640069.js";import"./vue.1653003640069.js";import"./store.1653003640069.js";const r=[e,o({name:"\u5168\u5C40\u76D1\u542C\u5668"}),s,p];var a={"bpmn:Process":r,"bpmn:SubProcess":r};export{a as default}; 2 | -------------------------------------------------------------------------------- /vboot-application/src/main/resources/static/assets/Wrap.1653003640069.js: -------------------------------------------------------------------------------- 1 | import{a as i,B as l,s as t,o as u,b as c,L as f,O as p,u as m}from"./vue.1653003640069.js";import{b as g,u as h}from"./index.1653003640069.js";const v=i({setup(T){const o=l(()=>{const e=g(),s=h(),{themeConfig:a}=t(s),{isTagsViewCurrenFull:r}=t(e);let{isTagsview:n}=a.value;return r.value?"13px":n?"97px":"63px"});return(e,s)=>(u(),c("div",{class:"p-flex",style:p({height:`calc(100vh - ${m(o)}`})},[f(e.$slots,"default")],4))}});export{v as _}; 2 | -------------------------------------------------------------------------------- /vboot-application/src/main/resources/static/assets/bathymetry.1653003640069.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsvg-com/vboot-java/83ab73eee39ece4fe3593115fc4d384b557992b8/vboot-application/src/main/resources/static/assets/bathymetry.1653003640069.jpg -------------------------------------------------------------------------------- /vboot-application/src/main/resources/static/assets/bpmn.1653003640069.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsvg-com/vboot-java/83ab73eee39ece4fe3593115fc4d384b557992b8/vboot-application/src/main/resources/static/assets/bpmn.1653003640069.eot -------------------------------------------------------------------------------- /vboot-application/src/main/resources/static/assets/bpmn.1653003640069.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsvg-com/vboot-java/83ab73eee39ece4fe3593115fc4d384b557992b8/vboot-application/src/main/resources/static/assets/bpmn.1653003640069.ttf -------------------------------------------------------------------------------- /vboot-application/src/main/resources/static/assets/bpmn.1653003640069.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsvg-com/vboot-java/83ab73eee39ece4fe3593115fc4d384b557992b8/vboot-application/src/main/resources/static/assets/bpmn.1653003640069.woff -------------------------------------------------------------------------------- /vboot-application/src/main/resources/static/assets/bpmn.1653003640069.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsvg-com/vboot-java/83ab73eee39ece4fe3593115fc4d384b557992b8/vboot-application/src/main/resources/static/assets/bpmn.1653003640069.woff2 -------------------------------------------------------------------------------- /vboot-application/src/main/resources/static/assets/classic.1653003640069.js: -------------------------------------------------------------------------------- 1 | import{a as f,s as d,a2 as e,o as n,R as c,S as r,Z as o,e as u,W as g}from"./vue.1653003640069.js";import{_ as h,u as C}from"./index.1653003640069.js";import{A as T}from"./aside.1653003640069.js";import{H as k,M as w,T as y}from"./main.1653003640069.js";import"./logo-mini.1653003640069.js";import"./parent.1653003640069.js";const V=f({name:"layoutClassic",components:{Aside:T,Header:k,Main:w,TagsView:y},setup(){const t=C(),{themeConfig:a}=d(t);return{themeConfig:a}}}),b={class:"flex-center layout-backtop"};function x(t,a,v,A,H,M){const i=e("Header"),m=e("Aside"),p=e("TagsView"),_=e("Main"),s=e("el-container"),l=e("el-backtop");return n(),c(s,{class:"layout-container flex-center"},{default:r(()=>[o(i),o(s,{class:"layout-mian-height-50"},{default:r(()=>[o(m),u("div",b,[t.themeConfig.isTagsview?(n(),c(p,{key:0})):g("",!0),o(_)])]),_:1}),o(l,{target:".layout-backtop .el-main .el-scrollbar__wrap"})]),_:1})}var Z=h(V,[["render",x]]);export{Z as default}; 2 | -------------------------------------------------------------------------------- /vboot-application/src/main/resources/static/assets/common.1653003640069.css: -------------------------------------------------------------------------------- 1 | .sublist-add{margin-top:8px;border:1px solid #409eff;text-align:center;cursor:pointer;color:#fff;font-weight:700;border-radius:4px;background-color:#409eff}.sublist-add:hover{border-color:#66b1ff;background-color:#66b1ff}.sublist-actions .sublist-btn{margin:0 5px}.sublist-edit,.sublist-confirm{color:#409eff}.sublist-split{color:#bbbec3}.sublist-btn{cursor:pointer}.sublist-btn:hover{border-bottom:2px solid}.sublist-edit :hover,.sublist-confirm:hover{color:#66b1ff}.sublist-delete{color:#fa3b3b}.sublist-delete:hover{color:#f78989}.sublist-actions .readonly{color:#bbbec3;cursor:default}.sublist-actions .readonly:hover{border-bottom:none}.sublist-form-item{width:100%;margin-right:0!important;margin-bottom:0!important}.sublist-form-item .el-form-item__content{width:100%} 2 | -------------------------------------------------------------------------------- /vboot-application/src/main/resources/static/assets/defaults.1653003640069.js: -------------------------------------------------------------------------------- 1 | import{a as y,aB as H,s as C,B as x,k as h,a2 as o,o as t,R as s,S as r,Z as a,W as d,M as m,l as F}from"./vue.1653003640069.js";import{_ as $,u as g}from"./index.1653003640069.js";import{A as M}from"./aside.1653003640069.js";import{H as R,M as w}from"./main.1653003640069.js";import"./logo-mini.1653003640069.js";import"./parent.1653003640069.js";const A=y({name:"layoutDefaults",components:{Aside:M,Header:R,Main:w},setup(){const{proxy:e}=F(),n=H(),c=g(),{themeConfig:l}=C(c),i=x(()=>l.value.isFixedHeader);return h(()=>n.path,()=>{e.$refs.layoutDefaultsScrollbarRef.wrap$.scrollTop=0}),{isFixedHeader:i}}});function B(e,n,c,l,i,T){const f=o("Aside"),p=o("Header"),_=o("Main"),b=o("el-scrollbar"),u=o("el-container"),k=o("el-backtop");return t(),s(u,{class:"layout-container"},{default:r(()=>[a(f),a(u,{class:m(["flex-center",{"layout-backtop":!e.isFixedHeader}])},{default:r(()=>[e.isFixedHeader?(t(),s(p,{key:0})):d("",!0),a(b,{ref:"layoutDefaultsScrollbarRef",class:m({"layout-backtop":e.isFixedHeader})},{default:r(()=>[e.isFixedHeader?d("",!0):(t(),s(p,{key:0})),a(_)]),_:1},8,["class"])]),_:1},8,["class"]),a(k,{target:".layout-backtop .el-scrollbar__wrap"})]),_:1})}var I=$(A,[["render",B]]);export{I as default}; 2 | -------------------------------------------------------------------------------- /vboot-application/src/main/resources/static/assets/edit.16530036400692.js: -------------------------------------------------------------------------------- 1 | var f=Object.defineProperty;var c=Object.getOwnPropertySymbols;var d=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable;var l=(r,a,o)=>a in r?f(r,a,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[a]=o,s=(r,a)=>{for(var o in a||(a={}))d.call(a,o)&&l(r,o,a[o]);if(c)for(var o of c(a))w.call(a,o)&&l(r,o,a[o]);return r};import{s as t,E as p}from"./index.1653003640069.js";const S=async(r,a)=>{var e;r.params=a;let o=(e=r.params.query)==null?void 0:e.id;o?r.form=await t({url:r.url+"/one/"+o,method:"get"}):r.form.avtag=!0},v=async(r,a,o,e)=>{if(!await m(r))return!1;a.form.crtim?await t({url:a.url,method:"put",data:a.form}):await t({url:a.url,method:"post",data:a.form}),b(o,e)},b=(r,a)=>{r.mittBus.emit("onCurrentContextmenuClick",Object.assign({},s({contextMenuClickId:1},a)))},y=async(r,a)=>{if(!await m(r))return!1;a.form.crtim?await t({url:a.url,method:"put",data:a.form}):await t({url:a.url,method:"post",data:a.form}),window.close()},C=()=>{window.close()},k=async(r,a)=>{if(!await m(r))return!1;a.form.crtim?await t({url:a.url,method:"put",data:a.form}):await t({url:a.url,method:"post",data:a.form}),a.show=!1},x=async(r,a)=>{a?r.form=await t({url:r.url+"/one/"+a,method:"get"}):r.form={avtag:!0},r.show=!0},m=async r=>{let a=!1;return await r.validate((o,e)=>{if(o)a=!0;else{let i="";for(const u in e)for(let n=0;na in e?g(e,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[a]=s,c=(e,a)=>{for(var s in a||(a={}))h.call(a,s)&&m(e,s,a[s]);if(f)for(var s of f(a))p.call(a,s)&&m(e,s,a[s]);return e};import{a as v,s as l,aB as w,a3 as T,B as _,m as L,k as B,ag as b,T as u,b as k,e as y,U as C,O as I,n as R,aa as V,o as $}from"./vue.1653003640069.js";import{_ as x,u as U,b as D}from"./index.1653003640069.js";const E=v({name:"layoutIfameView",setup(){const e=U(),a=D(),{themeConfig:s}=l(e),{isTagsViewCurrenFull:n}=l(a),i=w(),t=T({iframeLoading:!0,iframeUrl:""}),r=()=>{t.iframeUrl=i.meta.isLink,R(()=>{t.iframeLoading=!0;const o=document.getElementById("iframe");if(!o)return!1;o.onload=()=>{t.iframeLoading=!1}})},d=_(()=>{let{isTagsview:o}=s.value;return n.value?"1px":o?"86px":"51px"});return L(()=>{r()}),B(()=>i.path,()=>{r()}),c({setIframeHeight:d},b(t))}}),H=["src"];function S(e,a,s,n,i,t){const r=V("loading");return u(($(),k("div",{class:"layout-view-bg-white flex mt1",style:I({height:`calc(100vh - ${e.setIframeHeight}`,border:"none"})},[u(y("iframe",{src:e.iframeUrl,frameborder:"0",height:"100%",width:"100%",id:"iframe"},null,8,H),[[C,!e.iframeLoading]])],4)),[[r,e.iframeLoading]])}var N=x(E,[["render",S]]);export{N as default}; 2 | -------------------------------------------------------------------------------- /vboot-application/src/main/resources/static/assets/index.165300364006919.js: -------------------------------------------------------------------------------- 1 | import{_ as e}from"./index.1653003640069.js";import{b as o,o as r}from"./vue.1653003640069.js";const n={name:"index.vue"};function t(a,c,s,p,_,i){return r(),o("div",null," \u8FD9\u662F\u4E3B\u9875 ")}var m=e(n,[["render",t]]);export{m as default}; 2 | -------------------------------------------------------------------------------- /vboot-application/src/main/resources/static/assets/link.1653003640069.js: -------------------------------------------------------------------------------- 1 | var l=Object.defineProperty;var n=Object.getOwnPropertySymbols;var f=Object.prototype.hasOwnProperty,m=Object.prototype.propertyIsEnumerable;var i=(e,a,t)=>a in e?l(e,a,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[a]=t,u=(e,a)=>{for(var t in a||(a={}))f.call(a,t)&&i(e,t,a[t]);if(n)for(var t of n(a))m.call(a,t)&&i(e,t,a[t]);return e};import{a as p,s as h,aB as g,a3 as k,B as d,k as v,ag as R,b as _,e as w,Y as c,O as y,o as L}from"./vue.1653003640069.js";import{_ as $,u as B}from"./index.1653003640069.js";const M=p({name:"layoutLinkView",setup(){const e=B(),{themeConfig:a}=h(e),t=g(),s=k({currentRouteMeta:{isLink:"",title:""}}),o=d(()=>{let{isTagsview:r}=a.value;return r?"115px":"80px"});return v(()=>t.path,()=>{s.currentRouteMeta=t.meta},{immediate:!0}),u({setLinkHeight:o},R(s))}}),C=["href"];function T(e,a,t,s,o,r){return L(),_("div",{class:"layout-view-bg-white flex layout-view-link",style:y({height:`calc(100vh - ${e.setLinkHeight}`})},[w("a",{href:e.currentRouteMeta.isLink,target:"_blank",rel:"opener",class:"flex-margin"},c(e.$t(e.currentRouteMeta.title))+"\uFF1A"+c(e.currentRouteMeta.isLink),9,C)],4)}var H=$(M,[["render",T]]);export{H as default}; 2 | -------------------------------------------------------------------------------- /vboot-application/src/main/resources/static/assets/logo-mini.1653003640069.js: -------------------------------------------------------------------------------- 1 | var o="assets/logo-mini.1653003640069.svg";export{o as l}; 2 | -------------------------------------------------------------------------------- /vboot-application/src/main/resources/static/assets/transverse.1653003640069.js: -------------------------------------------------------------------------------- 1 | import{H as c,M as s}from"./main.1653003640069.js";import{_ as p}from"./index.1653003640069.js";import{a2 as e,o as _,R as l,S as m,Z as o}from"./vue.1653003640069.js";import"./logo-mini.1653003640069.js";import"./parent.1653003640069.js";const i={name:"layoutTransverse",components:{Header:c,Main:s}};function f(d,u,k,b,x,v){const t=e("Header"),a=e("Main"),n=e("el-backtop"),r=e("el-container");return _(),l(r,{class:"layout-container flex-center layout-backtop"},{default:m(()=>[o(t),o(a),o(n,{target:".layout-backtop .el-main .el-scrollbar__wrap"})]),_:1})}var w=p(i,[["render",f]]);export{w as default}; 2 | -------------------------------------------------------------------------------- /vboot-application/src/main/resources/static/assets/view.1653003640069.css: -------------------------------------------------------------------------------- 1 | .bjs-powered-by{display:none}.bpmn-container{height:100%}#modeler-container{flex:1;height:100%;position:relative;background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PHBhdHRlcm4gaWQ9ImEiIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgcGF0dGVyblVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PHBhdGggZD0iTTAgMTBoNDBNMTAgMHY0ME0wIDIwaDQwTTIwIDB2NDBNMCAzMGg0ME0zMCAwdjQwIiBmaWxsPSJub25lIiBzdHJva2U9IiNlMGUwZTAiIG9wYWNpdHk9Ii4yIi8+PHBhdGggZD0iTTQwIDBIMHY0MCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZTBlMGUwIi8+PC9wYXR0ZXJuPjwvZGVmcz48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSJ1cmwoI2EpIi8+PC9zdmc+) repeat!important}.djs-palette{border:none!important;background-color:#fff!important;box-shadow:0 3px 3px #0003;top:65px!important}.au-flex[data-v-2f8741ba]{display:flex;background-color:#fff}.au-msg[data-v-2f8741ba]{flex:1;width:100%}.au-button[data-v-2f8741ba]{width:105px;min-width:105px}.zpage[data-v-2fb01e9a]{overflow:auto} 2 | -------------------------------------------------------------------------------- /vboot-application/src/main/resources/static/assets/world.1653003640069.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsvg-com/vboot-java/83ab73eee39ece4fe3593115fc4d384b557992b8/vboot-application/src/main/resources/static/assets/world.1653003640069.jpg -------------------------------------------------------------------------------- /vboot-application/src/main/resources/static/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsvg-com/vboot-java/83ab73eee39ece4fe3593115fc4d384b557992b8/vboot-application/src/main/resources/static/favicon.ico -------------------------------------------------------------------------------- /vboot-core/lib/ojdbc6.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsvg-com/vboot-java/83ab73eee39ece4fe3593115fc4d384b557992b8/vboot-core/lib/ojdbc6.jar -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/common/mvc/api/PageData.java: -------------------------------------------------------------------------------- 1 | package vboot.common.mvc.api; 2 | 3 | import lombok.AllArgsConstructor; 4 | import lombok.Data; 5 | import lombok.NoArgsConstructor; 6 | 7 | import java.util.List; 8 | import java.util.Map; 9 | 10 | @Data 11 | @AllArgsConstructor 12 | @NoArgsConstructor 13 | public class PageData { 14 | 15 | private Integer total; 16 | 17 | private List> items; 18 | 19 | } 20 | -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/common/mvc/dao/BaseSqler.java: -------------------------------------------------------------------------------- 1 | package vboot.common.mvc.dao; 2 | 3 | import java.sql.SQLException; 4 | 5 | public abstract class BaseSqler { 6 | 7 | public abstract String getSql() throws SQLException; 8 | 9 | 10 | public abstract Object[] getParams(); 11 | 12 | } 13 | -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/common/mvc/dao/Dsqler.java: -------------------------------------------------------------------------------- 1 | package vboot.common.mvc.dao; 2 | 3 | import java.sql.SQLException; 4 | import java.util.ArrayList; 5 | import java.util.List; 6 | 7 | public class Dsqler extends BaseSqler{ 8 | private String deleteClause = ""; 9 | private String whereClause = ""; 10 | private List whereParameters = new ArrayList(); 11 | 12 | 13 | public Dsqler(String table) 14 | { 15 | this.deleteClause = "DELETE FROM " + table + " "; 16 | } 17 | 18 | 19 | public Dsqler addWhere(String condition, Object... params) 20 | { 21 | if (whereClause.length() == 0) 22 | { 23 | whereClause = " WHERE " + condition; 24 | } else 25 | { 26 | whereClause += " AND " + condition; 27 | } 28 | if (params != null && params.length > 0) 29 | { 30 | for (Object obj : params) 31 | { 32 | whereParameters.add(obj); 33 | } 34 | } 35 | return this; 36 | } 37 | 38 | public String getSql() throws SQLException { 39 | if("".equals(whereClause)){ 40 | throw new SQLException("为防止误删,delete 语句必须要有where条件"); 41 | } 42 | return deleteClause + whereClause; 43 | } 44 | 45 | public Object[] getParams() 46 | { 47 | return whereParameters.toArray(); 48 | } 49 | 50 | 51 | } 52 | -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/common/mvc/entity/BaseEntity.java: -------------------------------------------------------------------------------- 1 | package vboot.common.mvc.entity; 2 | 3 | import lombok.Getter; 4 | import lombok.Setter; 5 | 6 | import javax.persistence.Column; 7 | import javax.persistence.Id; 8 | import javax.persistence.MappedSuperclass; 9 | 10 | @MappedSuperclass 11 | @Getter 12 | @Setter 13 | public class BaseEntity { 14 | 15 | 16 | @Id 17 | @Column(length = 32) 18 | protected String id; 19 | 20 | @Column(length = 126) 21 | protected String name;//名称 22 | 23 | } 24 | -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/common/mvc/exception/BadRequestException.java: -------------------------------------------------------------------------------- 1 | package vboot.common.mvc.exception; 2 | 3 | import lombok.Getter; 4 | import org.springframework.http.HttpStatus; 5 | 6 | import static org.springframework.http.HttpStatus.BAD_REQUEST; 7 | 8 | @Getter 9 | public class BadRequestException extends RuntimeException{ 10 | 11 | private Integer status = BAD_REQUEST.value(); 12 | 13 | public BadRequestException(String msg){ 14 | super(msg); 15 | } 16 | 17 | public BadRequestException(HttpStatus status, String msg){ 18 | super(msg); 19 | this.status = status.value(); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/common/mvc/exception/EntityExistException.java: -------------------------------------------------------------------------------- 1 | package vboot.common.mvc.exception; 2 | 3 | import org.springframework.util.StringUtils; 4 | 5 | public class EntityExistException extends RuntimeException { 6 | 7 | public EntityExistException(Class clazz, String field, String val) { 8 | super(EntityExistException.generateMessage(clazz.getSimpleName(), field, val)); 9 | } 10 | 11 | private static String generateMessage(String entity, String field, String val) { 12 | return StringUtils.capitalize(entity) 13 | + " with " + field + " "+ val + " existed"; 14 | } 15 | } -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/common/mvc/exception/EntityNotFoundException.java: -------------------------------------------------------------------------------- 1 | package vboot.common.mvc.exception; 2 | 3 | import org.springframework.util.StringUtils; 4 | 5 | public class EntityNotFoundException extends RuntimeException { 6 | 7 | public EntityNotFoundException(Class clazz, String field, String val) { 8 | super(EntityNotFoundException.generateMessage(clazz.getSimpleName(), field, val)); 9 | } 10 | 11 | private static String generateMessage(String entity, String field, String val) { 12 | return StringUtils.capitalize(entity) 13 | + " with " + field + " "+ val + " does not exist"; 14 | } 15 | } -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/common/mvc/exception/handler/ApiError.java: -------------------------------------------------------------------------------- 1 | package vboot.common.mvc.exception.handler; 2 | 3 | import com.fasterxml.jackson.annotation.JsonFormat; 4 | import lombok.Data; 5 | 6 | import java.time.LocalDateTime; 7 | 8 | @Data 9 | class ApiError { 10 | 11 | private Integer status = 500; 12 | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") 13 | private LocalDateTime timestamp; 14 | private String message; 15 | 16 | private ApiError() { 17 | timestamp = LocalDateTime.now(); 18 | } 19 | 20 | public static ApiError error(String message){ 21 | ApiError apiError = new ApiError(); 22 | apiError.setMessage(message); 23 | return apiError; 24 | } 25 | 26 | public static ApiError error(Integer status, String message){ 27 | ApiError apiError = new ApiError(); 28 | apiError.setStatus(status); 29 | apiError.setMessage(message); 30 | return apiError; 31 | } 32 | } 33 | 34 | 35 | -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/common/mvc/exception/handler/ThrowableUtil.java: -------------------------------------------------------------------------------- 1 | package vboot.common.mvc.exception.handler; 2 | 3 | import java.io.PrintWriter; 4 | import java.io.StringWriter; 5 | 6 | public class ThrowableUtil { 7 | 8 | /** 9 | * 获取堆栈信息 10 | */ 11 | public static String getStackTrace(Throwable throwable){ 12 | StringWriter sw = new StringWriter(); 13 | try (PrintWriter pw = new PrintWriter(sw)) { 14 | throwable.printStackTrace(pw); 15 | return sw.toString(); 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/common/mvc/others/MapHelper.java: -------------------------------------------------------------------------------- 1 | package vboot.common.mvc.others; 2 | 3 | import java.util.LinkedHashMap; 4 | import java.util.List; 5 | import java.util.Map; 6 | 7 | public class MapHelper { 8 | private Map map; 9 | 10 | public MapHelper(){ 11 | map = new LinkedHashMap<>(); 12 | } 13 | 14 | public MapHelper(String field,String title){ 15 | map = new LinkedHashMap<>(); 16 | map.put("field", field); 17 | map.put("title", title); 18 | } 19 | 20 | public MapHelper put(String key,String value){ 21 | map.put(key, value); 22 | return this; 23 | } 24 | 25 | public Map get(){ 26 | return map; 27 | } 28 | 29 | public MapHelper addTo(List list){ 30 | list.add(map); 31 | return this; 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/common/mvc/pojo/ZidName.java: -------------------------------------------------------------------------------- 1 | package vboot.common.mvc.pojo; 2 | 3 | 4 | public class ZidName 5 | { 6 | private String id; 7 | private String name; 8 | 9 | @Override 10 | public String toString() { 11 | return "ZidName{" + 12 | "id='" + id + '\'' + 13 | ", name='" + name + '\'' + 14 | '}'; 15 | } 16 | 17 | public ZidName(String id, String name) 18 | { 19 | this.id = id; 20 | this.name = name; 21 | } 22 | 23 | public ZidName() 24 | { 25 | } 26 | 27 | //get and set------- 28 | public String getId() 29 | { 30 | return id; 31 | } 32 | 33 | public void setId(String id) 34 | { 35 | this.id = id; 36 | } 37 | 38 | public String getName() 39 | { 40 | return name; 41 | } 42 | 43 | public void setName(String name) 44 | { 45 | this.name = name; 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/common/mvc/pojo/Zinp.java: -------------------------------------------------------------------------------- 1 | package vboot.common.mvc.pojo; 2 | 3 | import java.util.List; 4 | 5 | public class Zinp { 6 | private String id; 7 | private String name; 8 | private String pid; 9 | 10 | private List children; 11 | 12 | public Zinp() { 13 | } 14 | 15 | public Zinp(String id) { 16 | this.id = id; 17 | } 18 | 19 | public Zinp(String id, String name) { 20 | this.id = id; 21 | this.name = name; 22 | } 23 | 24 | public Zinp(String id, String name, String pid) { 25 | this.id = id; 26 | this.name = name; 27 | this.pid = pid; 28 | } 29 | 30 | public String getId() { 31 | return id; 32 | } 33 | 34 | public void setId(String id) { 35 | this.id = id; 36 | } 37 | 38 | public String getName() { 39 | return name; 40 | } 41 | 42 | public void setName(String name) { 43 | this.name = name; 44 | } 45 | 46 | public String getPid() { 47 | return pid; 48 | } 49 | 50 | public void setPid(String pid) { 51 | this.pid = pid; 52 | } 53 | 54 | public List getChildren() { 55 | return children; 56 | } 57 | 58 | public void setChildren(List children) { 59 | this.children = children; 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/common/mvc/pojo/Ztree.java: -------------------------------------------------------------------------------- 1 | package vboot.common.mvc.pojo; 2 | 3 | 4 | import com.fasterxml.jackson.annotation.JsonIgnore; 5 | import lombok.Data; 6 | 7 | import java.util.List; 8 | import java.util.Map; 9 | 10 | @Data 11 | public class Ztree { 12 | private String id; 13 | 14 | private String name; 15 | 16 | @JsonIgnore 17 | private String pid; 18 | 19 | private List children; 20 | 21 | private Map data; 22 | 23 | } -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/common/util/lang/XnumberUtil.java: -------------------------------------------------------------------------------- 1 | package vboot.common.util.lang; 2 | 3 | import java.math.BigDecimal; 4 | import java.util.Random; 5 | 6 | public class XnumberUtil { 7 | public static double tsize = 1024L * 1024; 8 | 9 | public static double gsize = 1024L; 10 | 11 | 12 | public static String tranWellSize(Long space) { 13 | 14 | if (space > tsize) { 15 | return String.format("%.2f", space / tsize) + "T"; 16 | } else if (space > gsize) { 17 | return String.format("%.2f", space / gsize) + "G"; 18 | } else if(space>0){ 19 | return space + "M"; 20 | }else{ 21 | return "0"; 22 | } 23 | } 24 | 25 | /** 26 | * 获取金额 27 | * @param min 28 | * @param max 29 | * @return 30 | */ 31 | public static BigDecimal getRandomBigDecimal(BigDecimal min, BigDecimal max){ 32 | float minF = min.floatValue(); 33 | float maxF = max.floatValue(); 34 | 35 | //生成随机数 36 | BigDecimal db = new BigDecimal(Math.random() * (maxF - minF) + minF); 37 | 38 | //返回保留两位小数的随机数。不进行四舍五入 39 | return db.setScale(2,BigDecimal.ROUND_DOWN); 40 | } 41 | 42 | public static int getRandom6(){ 43 | int radom = new Random().nextInt(999999); 44 | if (radom < 100000) { 45 | radom += 100000; 46 | } 47 | return radom; 48 | } 49 | 50 | } 51 | -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/common/util/lang/XregUtil.java: -------------------------------------------------------------------------------- 1 | package vboot.common.util.lang; 2 | 3 | import java.util.ArrayList; 4 | import java.util.List; 5 | import java.util.regex.Matcher; 6 | import java.util.regex.Pattern; 7 | 8 | public class XregUtil { 9 | public static boolean match(String reg, String str) { 10 | return Pattern.matches(reg, str); 11 | } 12 | 13 | public static List find(String reg, String str) { 14 | Matcher matcher = Pattern.compile(reg).matcher(str); 15 | List list = new ArrayList(); 16 | while (matcher.find()) { 17 | list.add(matcher.group()); 18 | } 19 | return list; 20 | } 21 | 22 | public static String find(String reg, String str, int index) { 23 | Matcher matcher = Pattern.compile(reg).matcher(str); 24 | if (matcher.find()) { 25 | return matcher.group(index); 26 | } 27 | return null; 28 | } 29 | 30 | public static String findString(String reg, String str) { 31 | String returnStr = null; 32 | List list = find(reg, str); 33 | if (list.size() != 0) 34 | returnStr = list.get(0); 35 | return returnStr; 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/common/util/obj/AlterPropertyInfo.java: -------------------------------------------------------------------------------- 1 | package vboot.common.util.obj; 2 | 3 | import lombok.Data; 4 | 5 | import java.io.Serializable; 6 | 7 | @Data 8 | public class AlterPropertyInfo implements Serializable { 9 | 10 | // 对应的属性名 11 | private String prnam; 12 | 13 | // 未修改之前的值 14 | private Object olval; 15 | 16 | // 修改后的值 17 | private Object neval; 18 | } -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/common/util/obj/JsonDateValueProcessor.java: -------------------------------------------------------------------------------- 1 | package vboot.common.util.obj; 2 | 3 | import net.sf.json.JsonConfig; 4 | import net.sf.json.processors.JsonValueProcessor; 5 | 6 | import java.text.SimpleDateFormat; 7 | import java.util.Date; 8 | import java.util.Locale; 9 | 10 | public class JsonDateValueProcessor implements JsonValueProcessor { 11 | @Override 12 | public Object processArrayValue(Object obj, JsonConfig jsonconfig) { 13 | return process(obj); 14 | } 15 | @Override 16 | public Object processObjectValue(String s, Object obj, JsonConfig jsonconfig) { 17 | return process(obj); 18 | } 19 | private Object process(Object obj) { 20 | if (obj == null) {// 如果时间为null,则返回空字串 21 | return ""; 22 | } 23 | if (obj instanceof Date) { 24 | obj = new java.util.Date(((Date) obj).getTime()); 25 | } 26 | if (obj instanceof java.util.Date) { 27 | SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss", 28 | Locale.CHINA);// 格式化时间为yyyy-MM-dd类型 29 | return sdf.format(obj); 30 | } else { 31 | return new Object(); 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/common/util/obj/PropertyModelInfo.java: -------------------------------------------------------------------------------- 1 | package vboot.common.util.obj; 2 | 3 | import lombok.Data; 4 | 5 | @Data 6 | public class PropertyModelInfo { 7 | //属性名 8 | private String prnam; 9 | // 属性值 10 | private Object value; 11 | // 返回值类型 12 | private Class retyp; 13 | } -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/common/util/web/XpageUtil.java: -------------------------------------------------------------------------------- 1 | package vboot.common.util.web; 2 | 3 | public class XpageUtil { 4 | 5 | 6 | 7 | } 8 | -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/common/util/web/XresUtil.java: -------------------------------------------------------------------------------- 1 | package vboot.common.util.web; 2 | 3 | import org.apache.poi.hssf.usermodel.HSSFWorkbook; 4 | import org.apache.poi.xssf.usermodel.XSSFWorkbook; 5 | 6 | import javax.servlet.http.HttpServletResponse; 7 | import java.io.IOException; 8 | import java.io.OutputStream; 9 | import java.net.URLEncoder; 10 | 11 | public class XresUtil { 12 | 13 | 14 | public static void downloadExcelXls(HttpServletResponse response, HSSFWorkbook workbook, String name) throws IOException 15 | { 16 | String fileName = URLEncoder.encode(name, "UTF-8"); 17 | response.setHeader("content-disposition", "attachment;filename=" + fileName + ".xls"); 18 | response.setContentType("application/vnd.ms-excel"); 19 | OutputStream out = response.getOutputStream(); 20 | workbook.write(out); 21 | out.flush(); 22 | out.close(); 23 | } 24 | 25 | public static void downloadExcelXlsx(HttpServletResponse response, XSSFWorkbook workbook, String name) throws IOException 26 | { 27 | String fileName = URLEncoder.encode(name, "UTF-8"); 28 | response.setHeader("content-disposition", "attachment;filename=" + fileName + ".xlsx"); 29 | response.setContentType("application/vnd.ms-excel"); 30 | OutputStream out = response.getOutputStream(); 31 | workbook.write(out); 32 | out.flush(); 33 | out.close(); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/common/util/web/XspringUtil.java: -------------------------------------------------------------------------------- 1 | package vboot.common.util.web; 2 | 3 | import org.springframework.beans.BeansException; 4 | import org.springframework.context.ApplicationContext; 5 | 6 | public class XspringUtil { 7 | 8 | private static ApplicationContext applicationContext = null; 9 | 10 | public static void setApplicationContext(ApplicationContext applicationContext) throws BeansException { 11 | if(XspringUtil.applicationContext == null){ 12 | XspringUtil.applicationContext = applicationContext; 13 | } 14 | } 15 | 16 | public static ApplicationContext getApp() { 17 | return applicationContext; 18 | } 19 | 20 | public static Object getBean(String name){ 21 | return getApp().getBean(name); 22 | } 23 | 24 | public static T getBean(Class clazz){ 25 | return getApp().getBean(clazz); 26 | } 27 | 28 | public static T getBean(String name,Class clazz){ 29 | return getApp().getBean(name, clazz); 30 | } 31 | 32 | } -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/config/AppConfig.java: -------------------------------------------------------------------------------- 1 | package vboot.config; 2 | 3 | import lombok.Getter; 4 | import lombok.Setter; 5 | import org.springframework.boot.context.properties.ConfigurationProperties; 6 | import org.springframework.context.annotation.Configuration; 7 | import org.springframework.validation.annotation.Validated; 8 | 9 | import javax.validation.Valid; 10 | 11 | @Validated 12 | @Configuration 13 | @ConfigurationProperties(prefix = "zsvg") 14 | public class AppConfig { 15 | 16 | @Getter 17 | @Setter 18 | @Valid 19 | private Jwt jwt = new Jwt(); 20 | 21 | @Getter 22 | @Setter 23 | public static class Jwt { 24 | private String header = "Authorization"; //HTTP 报头的认证字段的 key 25 | private String prefix = "Bearer "; //HTTP 报头的认证字段的值的前缀 26 | 27 | private long atime = 28800L; //accessToken过期时间 此处单位秒 ,默认8小时 28800 28 | 29 | private long rtime = 3456000L; //accessToken过期时间 此处单位秒 ,默认30天 3456000 30 | 31 | private String akey;//生成accessToken用的key 32 | 33 | private String rkey;//生成refreshToken用的key 34 | 35 | 36 | //以下赞未用到 37 | // //在线用户 key,根据 key 查询 redis 中在线用户的数据 38 | // private String onlineKey; 39 | // 40 | // //验证码 key 41 | // private String codeKey; 42 | // 43 | // //token 续期检查 44 | // private Long detect; 45 | // 46 | // //续期时间 47 | // private Long renew; 48 | 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/config/db/PrimaryDataSourceConfig.java: -------------------------------------------------------------------------------- 1 | package vboot.config.db; 2 | 3 | import com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceBuilder; 4 | import org.springframework.beans.factory.annotation.Qualifier; 5 | import org.springframework.boot.context.properties.ConfigurationProperties; 6 | import org.springframework.context.annotation.Bean; 7 | import org.springframework.context.annotation.Configuration; 8 | import org.springframework.context.annotation.Primary; 9 | import org.springframework.jdbc.core.JdbcTemplate; 10 | 11 | import javax.sql.DataSource; 12 | 13 | @Configuration 14 | public class PrimaryDataSourceConfig { 15 | 16 | @Primary 17 | @Bean(name = "dataSource") 18 | @ConfigurationProperties("spring.datasource.primary") 19 | public DataSource primaryDataSource() { 20 | return DruidDataSourceBuilder.create().build(); 21 | } 22 | 23 | @Bean(name = "jdbcTemplate") 24 | public JdbcTemplate primaryJdbcTemplate(@Qualifier("dataSource") DataSource dataSource) { 25 | return new JdbcTemplate(dataSource); 26 | } 27 | } 28 | 29 | -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/config/db/jpa/Comment.java: -------------------------------------------------------------------------------- 1 | package vboot.config.db.jpa; 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 | @Retention(RetentionPolicy.RUNTIME) 9 | @Target({ElementType.TYPE, ElementType.METHOD, ElementType.FIELD}) 10 | public @interface Comment { 11 | String value() default ""; 12 | } 13 | 14 | -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/config/db/jpa/HibernateConfig.java: -------------------------------------------------------------------------------- 1 | package vboot.config.db.jpa; 2 | 3 | import org.hibernate.jpa.boot.spi.IntegratorProvider; 4 | import org.springframework.boot.autoconfigure.orm.jpa.HibernatePropertiesCustomizer; 5 | import org.springframework.stereotype.Component; 6 | 7 | import java.util.Collections; 8 | import java.util.Map; 9 | 10 | @Component 11 | public class HibernateConfig implements HibernatePropertiesCustomizer { 12 | @Override 13 | public void customize(Map hibernateProperties) { 14 | hibernateProperties.put("hibernate.use_sql_comments", true); 15 | hibernateProperties.put("hibernate.integrator_provider", 16 | (IntegratorProvider) () -> Collections.singletonList(CommentIntegrator.INSTANCE)); 17 | } 18 | } 19 | 20 | -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/config/security/authn/LdapService.java: -------------------------------------------------------------------------------- 1 | package vboot.config.security.authn; 2 | 3 | import org.springframework.beans.factory.annotation.Autowired; 4 | import org.springframework.beans.factory.annotation.Value; 5 | import org.springframework.ldap.core.LdapTemplate; 6 | import org.springframework.ldap.support.LdapUtils; 7 | import org.springframework.stereotype.Service; 8 | 9 | import javax.naming.directory.DirContext; 10 | 11 | @Service 12 | public class LdapService { 13 | 14 | @Autowired 15 | private LdapTemplate ldapTemplate; 16 | 17 | @Value("${ldap.domainName}") 18 | private String ldapDomainName; 19 | 20 | @Value("${ldap.base}") 21 | private String ldapBaseDn; 22 | 23 | public boolean authenticate(String userName, String password) { 24 | //String userDomainName = getDnForUser(userName); 25 | String userDomainName = String.format(ldapDomainName, userName); 26 | DirContext ctx = null; 27 | try { 28 | ctx = ldapTemplate.getContextSource().getContext(userDomainName, password); 29 | return true; 30 | } catch (Exception e) { 31 | // e.printStackTrace(); 32 | } finally { 33 | LdapUtils.closeContext(ctx); 34 | } 35 | return false; 36 | } 37 | 38 | } -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/config/security/authn/LoginDto.java: -------------------------------------------------------------------------------- 1 | package vboot.config.security.authn; 2 | 3 | import lombok.AllArgsConstructor; 4 | import lombok.Data; 5 | import lombok.NoArgsConstructor; 6 | 7 | import javax.validation.constraints.NotNull; 8 | import java.io.Serializable; 9 | 10 | @Data 11 | @NoArgsConstructor 12 | @AllArgsConstructor 13 | public class LoginDto implements Serializable { 14 | 15 | private static final long serialVersionUID = 1L; 16 | 17 | @NotNull 18 | private String username; 19 | 20 | @NotNull 21 | private String password; 22 | } 23 | -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/config/security/authz/AuthzController.java: -------------------------------------------------------------------------------- 1 | package vboot.config.security.authz; 2 | 3 | 4 | import vboot.common.mvc.api.RestResult; 5 | import vboot.config.security.pojo.Zuser; 6 | import vboot.module.sys.log.login.SysLogLoginService; 7 | import org.springframework.beans.factory.annotation.Autowired; 8 | import org.springframework.security.core.Authentication; 9 | import org.springframework.web.bind.annotation.GetMapping; 10 | import org.springframework.web.bind.annotation.RestController; 11 | 12 | import javax.servlet.http.HttpServletRequest; 13 | 14 | @RestController 15 | public class AuthzController { 16 | 17 | 18 | @GetMapping("/getUserInfo") 19 | public RestResult getUserInfo(Authentication auth, HttpServletRequest request) { 20 | Zuser zuser = (Zuser) auth.getPrincipal(); 21 | sysLogLoginService.save(zuser,request); 22 | return RestResult.ok("test"); 23 | } 24 | 25 | @GetMapping("/getPermCode") 26 | public RestResult getPermCode(Authentication auth) { 27 | 28 | return RestResult.ok("test"); 29 | } 30 | 31 | 32 | 33 | 34 | 35 | @GetMapping("/com/getZuser") 36 | public RestResult getZuser(Authentication auth) { 37 | return RestResult.ok("test"); 38 | } 39 | 40 | @Autowired 41 | private SysLogLoginService sysLogLoginService; 42 | 43 | @Autowired 44 | private AuthzService authzService; 45 | 46 | } 47 | -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/config/security/authz/AuthzHandler.java: -------------------------------------------------------------------------------- 1 | package vboot.config.security.authz; 2 | 3 | import vboot.config.security.pojo.Zuser; 4 | import org.springframework.security.core.Authentication; 5 | import org.springframework.stereotype.Component; 6 | 7 | import javax.servlet.http.HttpServletRequest; 8 | 9 | @Component 10 | public class AuthzHandler { 11 | 12 | public boolean hasPermission(HttpServletRequest request, Authentication authentication) { 13 | String uri=request.getRequestURI(); 14 | 15 | try { 16 | Zuser zuser = (Zuser) authentication.getPrincipal(); 17 | } catch (Exception e) { 18 | //e.printStackTrace(); 19 | return false; 20 | } 21 | 22 | 23 | return true; 24 | } 25 | 26 | } 27 | -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/config/security/jwt/JwtFilterAdapter.java: -------------------------------------------------------------------------------- 1 | package vboot.config.security.jwt; 2 | 3 | import lombok.RequiredArgsConstructor; 4 | import vboot.config.dbx.redis.RedisHandler; 5 | import org.springframework.security.config.annotation.SecurityConfigurerAdapter; 6 | import org.springframework.security.config.annotation.web.builders.HttpSecurity; 7 | import org.springframework.security.web.DefaultSecurityFilterChain; 8 | import org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter; 9 | 10 | @RequiredArgsConstructor 11 | public class JwtFilterAdapter extends SecurityConfigurerAdapter { 12 | 13 | private final JwtHandler jwtHandler; 14 | private final RedisHandler redisHandler; 15 | 16 | 17 | @Override 18 | public void configure(HttpSecurity http) throws Exception { 19 | JwtFilter jwtFilter = new JwtFilter(jwtHandler, redisHandler); 20 | http.addFilterBefore(jwtFilter, UsernamePasswordAuthenticationFilter.class); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/config/security/pojo/Duser.java: -------------------------------------------------------------------------------- 1 | package vboot.config.security.pojo; 2 | 3 | import lombok.Data; 4 | 5 | @Data 6 | public class Duser { 7 | 8 | private String id; 9 | 10 | private String name; 11 | 12 | private String pacod; 13 | 14 | private Boolean retag; 15 | 16 | private String tier; 17 | 18 | } 19 | -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/config/security/pojo/Zmenu.java: -------------------------------------------------------------------------------- 1 | package vboot.config.security.pojo; 2 | 3 | import com.alibaba.fastjson.annotation.JSONField; 4 | import com.fasterxml.jackson.annotation.JsonIgnore; 5 | import lombok.Data; 6 | 7 | import java.io.Serializable; 8 | import java.util.List; 9 | 10 | @Data 11 | public class Zmenu implements Serializable { 12 | private static final long serialVersionUID = 1L; 13 | 14 | @JsonIgnore 15 | @JSONField(serialize = false) 16 | private String id; 17 | 18 | @JsonIgnore 19 | @JSONField(serialize = false) 20 | private String pid; 21 | 22 | @JsonIgnore 23 | @JSONField(serialize = false) 24 | private String perm; 25 | 26 | private String path; 27 | 28 | private String name; 29 | 30 | private String component; 31 | 32 | private Zmeta meta; 33 | 34 | private String redirect; 35 | 36 | private List children; 37 | 38 | } 39 | -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/config/security/pojo/Zmeta.java: -------------------------------------------------------------------------------- 1 | package vboot.config.security.pojo; 2 | 3 | import lombok.Data; 4 | 5 | import java.io.Serializable; 6 | 7 | @Data 8 | public class Zmeta implements Serializable { 9 | private static final long serialVersionUID = 1L; 10 | 11 | private String title; 12 | 13 | private String affix; 14 | 15 | private String icon; 16 | 17 | private Integer orderNo; 18 | 19 | private Boolean ignoreKeepAlive; 20 | 21 | } 22 | -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/config/web/CorsConfig.java: -------------------------------------------------------------------------------- 1 | package vboot.config.web; 2 | 3 | import org.springframework.context.annotation.Bean; 4 | import org.springframework.context.annotation.Configuration; 5 | import org.springframework.web.servlet.config.annotation.CorsRegistry; 6 | import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; 7 | 8 | @Configuration 9 | public class CorsConfig { 10 | @Bean 11 | public WebMvcConfigurer corsConfigurer() { 12 | return new WebMvcConfigurer() { 13 | @Override 14 | public void addCorsMappings(CorsRegistry registry) { 15 | registry.addMapping("/**") 16 | // .allowedHeaders("Authorization") 17 | .allowedOrigins("*") 18 | .allowCredentials(true) 19 | .allowedMethods("GET", "POST", "DELETE", "PUT", "PATCH") 20 | .maxAge(3600); 21 | } 22 | }; 23 | } 24 | } -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/config/web/WebSocketConfig.java: -------------------------------------------------------------------------------- 1 | package vboot.config.web; 2 | 3 | import org.springframework.context.annotation.Configuration; 4 | 5 | @Configuration 6 | public class WebSocketConfig { 7 | /** 8 | * ServerEndpointExporter 作用 9 | * 10 | * 这个Bean会自动注册使用@ServerEndpoint注解声明的websocket endpoint 11 | * 12 | * @return 13 | */ 14 | //影响单元测试所以先注释了 15 | // @Bean 16 | // public ServerEndpointExporter serverEndpointExporter() { 17 | // return new ServerEndpointExporter(); 18 | // } 19 | } -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/module/ass/dict/cate/AssDictCate.java: -------------------------------------------------------------------------------- 1 | package vboot.module.ass.dict.cate; 2 | 3 | import lombok.Getter; 4 | import lombok.Setter; 5 | import vboot.common.mvc.entity.BaseCateEntity; 6 | 7 | import javax.persistence.Entity; 8 | 9 | @Entity 10 | @Getter 11 | @Setter 12 | public class AssDictCate extends BaseCateEntity { 13 | 14 | private String notes;//备注 15 | } 16 | -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/module/ass/dict/cate/AssDictCateApi.java: -------------------------------------------------------------------------------- 1 | package vboot.module.ass.dict.cate; 2 | 3 | import vboot.common.mvc.api.RestResult; 4 | import vboot.common.mvc.dao.Sqler; 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | import org.springframework.web.bind.annotation.*; 7 | 8 | @RestController 9 | @RequestMapping("ass/dict/cate") 10 | public class AssDictCateApi { 11 | 12 | private String table = "ass_dict_cate"; 13 | 14 | @GetMapping 15 | public RestResult get(String name) { 16 | Sqler sqler = new Sqler(table); 17 | sqler.addLike("t.name", name); 18 | sqler.addSelect("t.notes,t.ornum"); 19 | return RestResult.ok(service.findPageData(sqler)); 20 | } 21 | 22 | @GetMapping("one/{id}") 23 | public RestResult getOne(@PathVariable String id) { 24 | AssDictCate cate = service.findOne(id); 25 | return RestResult.ok(cate); 26 | } 27 | 28 | @PostMapping 29 | public RestResult post(@RequestBody AssDictCate main) { 30 | return RestResult.ok(service.insert(main)); 31 | } 32 | 33 | @PutMapping 34 | public RestResult put(@RequestBody AssDictCate main) { 35 | return RestResult.ok(service.update(main)); 36 | } 37 | 38 | @DeleteMapping("{ids}") 39 | public RestResult delete(@PathVariable String[] ids) { 40 | return RestResult.ok(service.delete(ids)); 41 | } 42 | 43 | @Autowired 44 | private AssDictCateService service; 45 | 46 | } 47 | -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/module/ass/dict/cate/AssDictCateRepo.java: -------------------------------------------------------------------------------- 1 | package vboot.module.ass.dict.cate; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | public interface AssDictCateRepo extends JpaRepository { 6 | 7 | 8 | } 9 | -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/module/ass/dict/cate/AssDictCateService.java: -------------------------------------------------------------------------------- 1 | package vboot.module.ass.dict.cate; 2 | 3 | import vboot.common.mvc.service.BaseCateService; 4 | import org.springframework.beans.factory.annotation.Autowired; 5 | import org.springframework.stereotype.Service; 6 | 7 | import javax.annotation.PostConstruct; 8 | 9 | @Service 10 | public class AssDictCateService extends BaseCateService { 11 | 12 | 13 | 14 | 15 | 16 | 17 | //----------bean注入------------ 18 | @Autowired 19 | private AssDictCateRepo repo; 20 | 21 | @PostConstruct 22 | public void initDao() { 23 | super.setRepo(repo); 24 | } 25 | 26 | 27 | } 28 | -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/module/ass/dict/data/AssDictData.java: -------------------------------------------------------------------------------- 1 | package vboot.module.ass.dict.data; 2 | 3 | import lombok.Getter; 4 | import lombok.Setter; 5 | import vboot.common.mvc.entity.BaseEntity; 6 | 7 | import javax.persistence.Column; 8 | import javax.persistence.Entity; 9 | 10 | @Entity 11 | @Getter 12 | @Setter 13 | public class AssDictData extends BaseEntity { 14 | 15 | private String notes;//备注 16 | 17 | @Column(length = 32) 18 | private String code;//编码 19 | 20 | private Integer ornum; 21 | 22 | 23 | } -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/module/ass/dict/data/AssDictDataApi.java: -------------------------------------------------------------------------------- 1 | package vboot.module.ass.dict.data; 2 | 3 | import vboot.common.mvc.api.RestResult; 4 | import vboot.common.mvc.dao.Sqler; 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | import org.springframework.web.bind.annotation.*; 7 | 8 | 9 | @RestController 10 | @RequestMapping("ass/dict/data") 11 | public class AssDictDataApi { 12 | 13 | private String table = "ass_dict_data"; 14 | 15 | @GetMapping 16 | public RestResult get(String name) { 17 | Sqler sqler = new Sqler(table); 18 | sqler.addLike("t.name", name); 19 | sqler.addSelect("t.notes,t.ornum,t.code"); 20 | return RestResult.ok(service.findPageData(sqler)); 21 | } 22 | 23 | @GetMapping("one/{id}") 24 | public RestResult getOne(@PathVariable String id) { 25 | AssDictData main = service.findOne(id); 26 | return RestResult.ok(main); 27 | } 28 | 29 | @PostMapping 30 | public RestResult post(@RequestBody AssDictData main) { 31 | return RestResult.ok(service.insert(main)); 32 | } 33 | 34 | @PutMapping 35 | public RestResult put(@RequestBody AssDictData main) { 36 | return RestResult.ok(service.update(main)); 37 | } 38 | 39 | @DeleteMapping("{ids}") 40 | public RestResult delete(@PathVariable String[] ids) { 41 | return RestResult.ok(service.delete(ids)); 42 | } 43 | 44 | @Autowired 45 | private AssDictDataService service; 46 | 47 | } 48 | -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/module/ass/dict/data/AssDictDataRepo.java: -------------------------------------------------------------------------------- 1 | package vboot.module.ass.dict.data; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | 6 | public interface AssDictDataRepo extends JpaRepository { 7 | 8 | } 9 | 10 | -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/module/ass/dict/data/AssDictDataService.java: -------------------------------------------------------------------------------- 1 | package vboot.module.ass.dict.data; 2 | 3 | import vboot.common.mvc.service.BaseService; 4 | import org.springframework.beans.factory.annotation.Autowired; 5 | import org.springframework.stereotype.Service; 6 | 7 | import javax.annotation.PostConstruct; 8 | 9 | 10 | @Service 11 | public class AssDictDataService extends BaseService { 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | //----------bean注入------------ 21 | @Autowired 22 | private AssDictDataRepo repo; 23 | 24 | @PostConstruct 25 | public void initDao() { 26 | super.setRepo(repo); 27 | } 28 | 29 | 30 | } 31 | 32 | -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/module/ass/dict/main/AssDictMain.java: -------------------------------------------------------------------------------- 1 | package vboot.module.ass.dict.main; 2 | 3 | import lombok.Getter; 4 | import lombok.Setter; 5 | import vboot.common.mvc.entity.BaseMainEntity; 6 | 7 | import javax.persistence.Column; 8 | import javax.persistence.Entity; 9 | 10 | @Entity 11 | @Getter 12 | @Setter 13 | public class AssDictMain extends BaseMainEntity { 14 | 15 | private String notes; 16 | 17 | @Column(length = 32) 18 | private String code;//编码 19 | 20 | private Integer ornum; 21 | 22 | } -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/module/ass/dict/main/AssDictMainRepo.java: -------------------------------------------------------------------------------- 1 | package vboot.module.ass.dict.main; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | 6 | public interface AssDictMainRepo extends JpaRepository { 7 | 8 | } 9 | 10 | -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/module/ass/dict/main/AssDictMainService.java: -------------------------------------------------------------------------------- 1 | package vboot.module.ass.dict.main; 2 | 3 | import vboot.common.mvc.service.BaseMainService; 4 | import org.springframework.beans.factory.annotation.Autowired; 5 | import org.springframework.stereotype.Service; 6 | 7 | import javax.annotation.PostConstruct; 8 | 9 | 10 | @Service 11 | public class AssDictMainService extends BaseMainService { 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | //----------bean注入------------ 21 | @Autowired 22 | private AssDictMainRepo repo; 23 | 24 | @PostConstruct 25 | public void initDao() { 26 | super.setRepo(repo); 27 | } 28 | 29 | 30 | } 31 | 32 | -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/module/ass/file/att/AssFileAtt.java: -------------------------------------------------------------------------------- 1 | package vboot.module.ass.file.att; 2 | 3 | import lombok.Data; 4 | 5 | import javax.persistence.Column; 6 | import javax.persistence.Entity; 7 | import javax.persistence.Id; 8 | import javax.persistence.Transient; 9 | 10 | @Entity 11 | @Data 12 | public class AssFileAtt { 13 | @Id 14 | @Column(length = 32) 15 | private String id; 16 | 17 | @Column(length = 32) 18 | private String address; 19 | 20 | @Column(length = 128) 21 | private String pname; 22 | 23 | @Column(length = 128) 24 | private String sname; 25 | 26 | @Column(length = 16) 27 | private String zsize; 28 | 29 | @Transient 30 | private String zimg; 31 | 32 | } 33 | -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/module/ass/file/att/AssFileAttRepo.java: -------------------------------------------------------------------------------- 1 | package vboot.module.ass.file.att; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | public interface AssFileAttRepo extends JpaRepository { 6 | 7 | } 8 | -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/module/ass/num/main/AssNumMain.java: -------------------------------------------------------------------------------- 1 | package vboot.module.ass.num.main; 2 | 3 | import lombok.Data; 4 | 5 | import javax.persistence.Column; 6 | import javax.persistence.Entity; 7 | import javax.persistence.Id; 8 | 9 | @Entity 10 | @Data 11 | public class AssNumMain { 12 | @Id 13 | @Column(length = 8) 14 | private String id; 15 | 16 | @Column(length = 100) 17 | private String label; 18 | 19 | @Column(length = 32) 20 | private String name; 21 | 22 | @Column(length = 32) 23 | private String numod; 24 | 25 | @Column(length = 32) 26 | private String nupre; 27 | 28 | private Boolean nflag; 29 | 30 | @Column(length = 8) 31 | private String nunex; 32 | 33 | private Integer nulen; 34 | 35 | @Column(length = 8) 36 | private String cudat; 37 | } 38 | -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/module/ass/num/main/AssNumMainRepo.java: -------------------------------------------------------------------------------- 1 | package vboot.module.ass.num.main; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | public interface AssNumMainRepo extends JpaRepository { 6 | 7 | } 8 | -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/module/bpm/audit/main/BpmAuditMain.java: -------------------------------------------------------------------------------- 1 | package vboot.module.bpm.audit.main; 2 | 3 | import lombok.Getter; 4 | import lombok.Setter; 5 | 6 | import javax.persistence.Column; 7 | import javax.persistence.Entity; 8 | import javax.persistence.Id; 9 | import java.util.Date; 10 | 11 | @Entity 12 | @Getter 13 | @Setter 14 | public class BpmAuditMain { 15 | 16 | @Id 17 | @Column(length = 32) 18 | private String id;//主键 19 | 20 | @Column(length = 32) 21 | private String facno;//当前节点ID:N1,N2 22 | 23 | @Column(length = 126) 24 | private String facna;//当前节点名称 25 | 26 | @Column(updatable = false) 27 | protected Date crtim = new Date();//开始时间 28 | 29 | @Column(length = 32) 30 | private String proid;//流程id 31 | 32 | @Column(length = 32) 33 | private String nodid;//节点id 34 | 35 | @Column(length = 32) 36 | private String tasid;//任务id 37 | 38 | @Column(length = 32) 39 | private String haman;//实处理人 40 | 41 | // @Column(length = 32) 42 | // private String auman;//授权处理人 43 | // 44 | // @Column(length = 32) 45 | // private String exman;//应处理人 46 | 47 | @Column(length = 32) 48 | private String opkey;//操作的key:pass,refuse 49 | 50 | @Column(length = 64) 51 | private String opinf;//操作的名称: 通过,驳回,转办等 52 | 53 | @Column(length = 1000) 54 | private String opnot;//审核留言:具体写了什么审核内容 55 | 56 | 57 | } -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/module/bpm/audit/main/BpmAuditMainApi.java: -------------------------------------------------------------------------------- 1 | package vboot.module.bpm.audit.main; 2 | 3 | import vboot.common.mvc.api.RestResult; 4 | import vboot.common.mvc.dao.JdbcDao; 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | import org.springframework.web.bind.annotation.*; 7 | 8 | @RestController 9 | @RequestMapping("bpm/audit/main") 10 | public class BpmAuditMainApi { 11 | 12 | @GetMapping("list/{proid}") 13 | public RestResult list(@PathVariable String proid) { 14 | String sql = "select t.id,t.crtim,t.facna,t.facno,t.opnot,t.opinf,o.name as haman from bpm_audit_main t " + 15 | "inner join sys_org o on o.id=t.haman " + 16 | "where t.proid=? order by t.crtim"; 17 | return RestResult.ok(jdbcDao.findMapList(sql,proid)); 18 | } 19 | 20 | 21 | @Autowired 22 | private JdbcDao jdbcDao; 23 | 24 | @Autowired 25 | private BpmAuditMainService service; 26 | 27 | } 28 | -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/module/bpm/audit/main/BpmAuditMainRepo.java: -------------------------------------------------------------------------------- 1 | package vboot.module.bpm.audit.main; 2 | 3 | 4 | import org.springframework.data.jpa.repository.JpaRepository; 5 | 6 | public interface BpmAuditMainRepo extends JpaRepository { 7 | 8 | 9 | } -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/module/bpm/node/hist/BpmNodeHist.java: -------------------------------------------------------------------------------- 1 | package vboot.module.bpm.node.hist; 2 | 3 | import lombok.Getter; 4 | import lombok.Setter; 5 | 6 | import javax.persistence.Column; 7 | import javax.persistence.Entity; 8 | import javax.persistence.Id; 9 | import java.util.Date; 10 | 11 | @Entity 12 | @Getter 13 | @Setter 14 | public class BpmNodeHist { 15 | 16 | @Id 17 | @Column(length = 32) 18 | private String id;//主键 19 | 20 | @Column(length = 32) 21 | private String facno;//当前节点ID:N1,N2 22 | 23 | @Column(length = 126) 24 | private String facna;//当前节点名称 25 | 26 | @Column(length = 32) 27 | private String facty;//当前节点类型 28 | 29 | @Column(length = 32) 30 | private String tarno;//目标节点ID 31 | 32 | @Column(length = 126) 33 | private String tarna;//目标节点名称 34 | 35 | @Column(length = 32) 36 | private String proid;//流程实例id 37 | 38 | @Column(length = 8) 39 | private String state;//状态 40 | 41 | @Column(updatable = false) 42 | private Date sttim = new Date();//开始时间 43 | 44 | private Date entim;//结束时间 45 | 46 | } -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/module/bpm/node/hist/BpmNodeHistRepo.java: -------------------------------------------------------------------------------- 1 | package vboot.module.bpm.node.hist; 2 | 3 | 4 | import org.springframework.data.jpa.repository.JpaRepository; 5 | 6 | public interface BpmNodeHistRepo extends JpaRepository { 7 | 8 | 9 | } -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/module/bpm/node/main/BpmNodeMain.java: -------------------------------------------------------------------------------- 1 | package vboot.module.bpm.node.main; 2 | 3 | import lombok.Getter; 4 | import lombok.Setter; 5 | 6 | import javax.persistence.Column; 7 | import javax.persistence.Entity; 8 | import javax.persistence.Id; 9 | import java.util.Date; 10 | 11 | @Entity 12 | @Getter 13 | @Setter 14 | public class BpmNodeMain { 15 | 16 | @Id 17 | @Column(length = 32) 18 | private String id;//主键 19 | 20 | @Column(length = 32) 21 | private String facno;//当前节点编号:N1,N2 22 | 23 | @Column(length = 126) 24 | private String facna;//当前节点名称 25 | 26 | @Column(length = 32) 27 | private String facty;//当前节点类型 28 | 29 | @Column(length = 32) 30 | private String proid;//流程实例id 31 | 32 | @Column(length = 8) 33 | private String state;//状态 34 | 35 | @Column(updatable = false) 36 | protected Date sttim = new Date();//开始时间 37 | 38 | } -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/module/bpm/node/main/BpmNodeMainRepo.java: -------------------------------------------------------------------------------- 1 | package vboot.module.bpm.node.main; 2 | 3 | 4 | import org.springframework.data.jpa.repository.JpaRepository; 5 | 6 | public interface BpmNodeMainRepo extends JpaRepository { 7 | 8 | 9 | } -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/module/bpm/node/main/BpmNodeMainService.java: -------------------------------------------------------------------------------- 1 | package vboot.module.bpm.node.main; 2 | 3 | 4 | import vboot.common.util.lang.XstringUtil; 5 | import vboot.module.bpm.proc.main.Zbpm; 6 | import vboot.module.bpm.proc.main.Znode; 7 | import org.springframework.beans.factory.annotation.Autowired; 8 | import org.springframework.stereotype.Service; 9 | import org.springframework.transaction.annotation.Transactional; 10 | 11 | @Transactional(rollbackFor = Exception.class) 12 | @Service 13 | public class BpmNodeMainService { 14 | 15 | public BpmNodeMain saveNode(Zbpm zbpm, Znode znode) { 16 | BpmNodeMain node = new BpmNodeMain(); 17 | node.setFacno(znode.getFacno()); 18 | node.setFacna(znode.getFacna()); 19 | node.setFacty(znode.getFacty()); 20 | node.setProid(zbpm.getProid()); 21 | node.setState("20"); 22 | node.setId(XstringUtil.getUUID()); 23 | return repo.save(node); 24 | } 25 | 26 | @Transactional(readOnly = true) 27 | public BpmNodeMain findOne(String id) { 28 | return repo.findById(id).get(); 29 | } 30 | 31 | public void delete(String id) { 32 | repo.deleteById(id); 33 | } 34 | 35 | @Autowired 36 | private BpmNodeMainRepo repo; 37 | } 38 | -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/module/bpm/proc/main/BpmProcMain.java: -------------------------------------------------------------------------------- 1 | package vboot.module.bpm.proc.main; 2 | 3 | import vboot.common.mvc.entity.BaseMainEntity; 4 | import vboot.module.sys.org.root.SysOrg; 5 | import lombok.Getter; 6 | import lombok.Setter; 7 | 8 | import javax.persistence.Column; 9 | import javax.persistence.Entity; 10 | 11 | @Entity 12 | @Getter 13 | @Setter 14 | public class BpmProcMain extends BaseMainEntity { 15 | 16 | 17 | //待用字段 18 | @Column(length = 32) 19 | private String modid; 20 | 21 | //待用字段 22 | private String modty; 23 | 24 | 25 | @Column(length = 32) 26 | private String temid; 27 | 28 | @Column(length = 8) 29 | private String state; 30 | 31 | public BpmProcMain() { 32 | 33 | } 34 | 35 | public BpmProcMain(Zbpm zbpm) { 36 | this.id=zbpm.getProid(); 37 | this.name=zbpm.getProna(); 38 | this.temid=zbpm.getTemid(); 39 | this.crman=new SysOrg(zbpm.getHaman()); 40 | } 41 | 42 | } -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/module/bpm/proc/main/BpmProcMainRepo.java: -------------------------------------------------------------------------------- 1 | package vboot.module.bpm.proc.main; 2 | 3 | 4 | import org.springframework.data.jpa.repository.JpaRepository; 5 | 6 | public interface BpmProcMainRepo extends JpaRepository { 7 | 8 | 9 | } -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/module/bpm/proc/main/Zbpm.java: -------------------------------------------------------------------------------- 1 | package vboot.module.bpm.proc.main; 2 | 3 | import lombok.Data; 4 | 5 | @Data 6 | public class Zbpm { 7 | private String todid;//待办ID 8 | 9 | private String temid;//流程模板ID 10 | 11 | private String proid;//流程实例ID 12 | 13 | private String prona;//流程实例名称 14 | 15 | private String nodid;//当前节点ID 16 | 17 | private String facno;//当前节点编号 18 | 19 | private String facna;//当前节点名称 20 | 21 | private String tarno;//目标节点编号 22 | 23 | private String tarna;//目标节点名称 24 | 25 | private Boolean retag=true;//驳回标记,驳回的节点通过后直接返回本节点 26 | 27 | private String bacid;//驳回后的流程重新提交时的bpm_proc_param的id 28 | 29 | private String tasid;//任务ID 30 | 31 | private String opnot;//操作:处理意见 32 | 33 | private String opurg;//操作:紧急程度 34 | 35 | private String opkey;//操作key:pass, reject 36 | 37 | // private String renod;//驳回的节点:N1,N2 38 | 39 | private String opinf;//操作名称:通过,驳回到谁,沟通谁 40 | 41 | private String chxml;//优化过的vboot可解析的的xml 42 | 43 | private String haman;//当前处理人ID 44 | 45 | private String exman;//应处理人ID 46 | 47 | public Zbpm() { 48 | } 49 | 50 | public Zbpm(String proid) { 51 | this.proid = proid; 52 | } 53 | 54 | public Zbpm(String proid,String prona) { 55 | this.proid = proid; 56 | this.prona = prona; 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/module/bpm/proc/main/Znode.java: -------------------------------------------------------------------------------- 1 | package vboot.module.bpm.proc.main; 2 | 3 | import lombok.Data; 4 | 5 | @Data 6 | public class Znode { 7 | 8 | private String nodid;//节点ID 9 | 10 | private String facno;//当前节点编号:N1,N2 11 | 12 | private String facna;//当前节点名称 13 | 14 | private String facty;//当前节点类型 15 | 16 | private String tarno;//目标节点编号 17 | 18 | private String tarna;//目标节点名称 19 | 20 | private String exman;//应处理人 21 | 22 | public Znode(String facno) { 23 | this.facno = facno; 24 | } 25 | 26 | public Znode() { 27 | 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/module/bpm/proc/param/BpmProcParam.java: -------------------------------------------------------------------------------- 1 | package vboot.module.bpm.proc.param; 2 | 3 | import lombok.Getter; 4 | import lombok.Setter; 5 | 6 | import javax.persistence.Column; 7 | import javax.persistence.Entity; 8 | import javax.persistence.Id; 9 | 10 | @Entity 11 | @Getter 12 | @Setter 13 | public class BpmProcParam { 14 | 15 | 16 | @Id 17 | @Column(length = 32) 18 | private String id; 19 | 20 | @Column(length = 64) 21 | private String pakey; 22 | 23 | @Column(length = 512) 24 | private String paval; 25 | 26 | @Column(length = 32) 27 | private String offty; 28 | 29 | @Column(length = 32) 30 | private String offid; 31 | 32 | @Column(length = 32) 33 | private String proid; 34 | 35 | 36 | 37 | 38 | } 39 | -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/module/bpm/proc/param/BpmProcParamRepo.java: -------------------------------------------------------------------------------- 1 | package vboot.module.bpm.proc.param; 2 | 3 | 4 | import org.springframework.data.jpa.repository.JpaRepository; 5 | 6 | public interface BpmProcParamRepo extends JpaRepository { 7 | 8 | 9 | } -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/module/bpm/proc/param/BpmProcParamService.java: -------------------------------------------------------------------------------- 1 | package vboot.module.bpm.proc.param; 2 | 3 | 4 | import org.springframework.beans.factory.annotation.Autowired; 5 | import org.springframework.stereotype.Service; 6 | import org.springframework.transaction.annotation.Transactional; 7 | 8 | @Transactional(rollbackFor = Exception.class) 9 | @Service 10 | public class BpmProcParamService { 11 | 12 | public void save(BpmProcParam param){ 13 | repo.save(param); 14 | } 15 | 16 | public void delete(String id){ 17 | repo.deleteById(id); 18 | } 19 | 20 | 21 | 22 | @Autowired 23 | private BpmProcParamRepo repo; 24 | } 25 | -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/module/bpm/proc/temp/BpmProcTemp.java: -------------------------------------------------------------------------------- 1 | package vboot.module.bpm.proc.temp; 2 | 3 | import vboot.common.mvc.entity.BaseMainEntity; 4 | import lombok.Getter; 5 | import lombok.Setter; 6 | 7 | import javax.persistence.Entity; 8 | import javax.persistence.Lob; 9 | 10 | @Entity 11 | @Getter 12 | @Setter 13 | public class BpmProcTemp extends BaseMainEntity { 14 | 15 | public BpmProcTemp() { 16 | 17 | } 18 | 19 | public BpmProcTemp(BaseMainEntity main) { 20 | this.name=main.getName(); 21 | this.crman=main.getCrman(); 22 | this.crtim=main.getCrtim(); 23 | } 24 | 25 | @Lob 26 | private String orxml;//原始XML 27 | 28 | @Lob 29 | private String chxml;//变动后的XML 30 | 31 | } -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/module/bpm/proc/temp/BpmProcTempRepo.java: -------------------------------------------------------------------------------- 1 | package vboot.module.bpm.proc.temp; 2 | 3 | 4 | import org.springframework.data.jpa.repository.JpaRepository; 5 | 6 | public interface BpmProcTempRepo extends JpaRepository { 7 | 8 | 9 | } 10 | -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/module/bpm/proc/temp/BpmProcTempService.java: -------------------------------------------------------------------------------- 1 | package vboot.module.bpm.proc.temp; 2 | 3 | import vboot.common.mvc.service.BaseMainService; 4 | import org.springframework.beans.factory.annotation.Autowired; 5 | import org.springframework.stereotype.Service; 6 | 7 | import javax.annotation.PostConstruct; 8 | 9 | @Service 10 | public class BpmProcTempService extends BaseMainService { 11 | 12 | //----------bean注入------------ 13 | @Autowired 14 | private BpmProcTempRepo repo; 15 | 16 | @PostConstruct 17 | public void initDao() { 18 | super.setRepo(repo); 19 | } 20 | 21 | } 22 | -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/module/bpm/task/hist/BpmTaskHist.java: -------------------------------------------------------------------------------- 1 | package vboot.module.bpm.task.hist; 2 | 3 | import lombok.Getter; 4 | import lombok.Setter; 5 | 6 | import javax.persistence.Column; 7 | import javax.persistence.Entity; 8 | import javax.persistence.Id; 9 | import java.util.Date; 10 | 11 | @Entity 12 | @Getter 13 | @Setter 14 | public class BpmTaskHist { 15 | 16 | @Id 17 | @Column(length = 32) 18 | private String id;//主键 19 | 20 | @Column(length = 32) 21 | private String type;//任务类型 22 | 23 | @Column(length = 32) 24 | private String proid;//流程实例id 25 | 26 | @Column(length = 32) 27 | private String nodid;//节点id 28 | 29 | @Column(updatable = false) 30 | private Date sttim = new Date();//开始时间 31 | 32 | private Date entim;//结束时间 33 | 34 | @Column(length = 8) 35 | private String notty;//消息类型 36 | 37 | @Column(length = 8) 38 | private String state;//状态 39 | 40 | @Column(length = 32) 41 | private String haman;//实处理人 42 | 43 | @Column(length = 32) 44 | private String auman;//授权处理人 45 | 46 | @Column(length = 32) 47 | private String exman;//应处理人 48 | 49 | } 50 | -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/module/bpm/task/hist/BpmTaskHistRepo.java: -------------------------------------------------------------------------------- 1 | package vboot.module.bpm.task.hist; 2 | 3 | 4 | import org.springframework.data.jpa.repository.JpaRepository; 5 | 6 | public interface BpmTaskHistRepo extends JpaRepository { 7 | 8 | 9 | } -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/module/bpm/task/hist/BpmTaskHistService.java: -------------------------------------------------------------------------------- 1 | package vboot.module.bpm.task.hist; 2 | 3 | 4 | import vboot.common.mvc.dao.JdbcDao; 5 | import vboot.module.bpm.task.main.BpmTaskMain; 6 | import org.springframework.beans.factory.annotation.Autowired; 7 | import org.springframework.stereotype.Service; 8 | import org.springframework.transaction.annotation.Transactional; 9 | 10 | @Transactional(rollbackFor = Exception.class) 11 | @Service 12 | public class BpmTaskHistService { 13 | 14 | public BpmTaskHist createTask(BpmTaskMain mainTask) { 15 | BpmTaskHist histTask = new BpmTaskHist(); 16 | histTask.setId(mainTask.getId()); 17 | histTask.setProid(mainTask.getProid()); 18 | histTask.setState("20"); 19 | histTask.setExman(mainTask.getExman()); 20 | histTask.setNodid(mainTask.getNodid()); 21 | histTask.setType("1"); 22 | return repo.save(histTask); 23 | } 24 | 25 | @Transactional(readOnly = true) 26 | public BpmTaskHist findOne(String id) { 27 | return repo.findById(id).get(); 28 | } 29 | 30 | public void delete(String id) { 31 | repo.deleteById(id); 32 | } 33 | 34 | 35 | @Autowired 36 | protected JdbcDao jdbcDao; 37 | 38 | 39 | @Autowired 40 | private BpmTaskHistRepo repo; 41 | } 42 | -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/module/bpm/task/main/BpmTaskMain.java: -------------------------------------------------------------------------------- 1 | package vboot.module.bpm.task.main; 2 | 3 | 4 | import lombok.Getter; 5 | import lombok.Setter; 6 | 7 | import javax.persistence.Column; 8 | import javax.persistence.Entity; 9 | import javax.persistence.Id; 10 | import java.util.Date; 11 | 12 | @Entity 13 | @Getter 14 | @Setter 15 | public class BpmTaskMain { 16 | 17 | @Id 18 | @Column(length = 32) 19 | private String id;//主键 20 | 21 | @Column(length = 32) 22 | private String type;//任务类型 23 | 24 | @Column(length = 32) 25 | private String proid;//流程实例id 26 | 27 | private String nodid;//节点id 28 | 29 | @Column(updatable = false) 30 | private Date sttim = new Date();//开始时间 31 | 32 | @Column(length = 8) 33 | private String notty;//消息类型 34 | 35 | @Column(length = 8) 36 | private String state;//状态 37 | 38 | private Integer ornum;//排序 39 | 40 | private Boolean actag;//是否激活 41 | 42 | @Column(length = 32) 43 | private String haman;//实处理人 44 | 45 | @Column(length = 32) 46 | private String auman;//授权处理人 47 | 48 | @Column(length = 32) 49 | private String exman;//应处理人 50 | 51 | 52 | } 53 | -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/module/bpm/task/main/BpmTaskMainRepo.java: -------------------------------------------------------------------------------- 1 | package vboot.module.bpm.task.main; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | public interface BpmTaskMainRepo extends JpaRepository { 6 | 7 | 8 | } -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/module/gen/num/GenNumApi.java: -------------------------------------------------------------------------------- 1 | package vboot.module.gen.num; 2 | 3 | import vboot.common.mvc.api.RestResult; 4 | import vboot.common.util.lang.XstringUtil; 5 | import org.springframework.web.bind.annotation.GetMapping; 6 | import org.springframework.web.bind.annotation.RequestMapping; 7 | import org.springframework.web.bind.annotation.RestController; 8 | 9 | @RestController 10 | @RequestMapping("gen/num") 11 | public class GenNumApi { 12 | 13 | @GetMapping("uuid") 14 | public RestResult uuid() { 15 | return RestResult.ok(XstringUtil.getUUID()); 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/module/sys/job/log/SysJobLog.java: -------------------------------------------------------------------------------- 1 | package vboot.module.sys.job.log; 2 | 3 | import lombok.Data; 4 | 5 | import javax.persistence.Column; 6 | import javax.persistence.Entity; 7 | import javax.persistence.Id; 8 | 9 | @Entity 10 | @Data 11 | public class SysJobLog { 12 | 13 | @Id 14 | @Column(length = 32) 15 | private String id; 16 | 17 | @Column(length = 32) 18 | private String name; 19 | 20 | @Column(length = 32) 21 | private String sttim; 22 | 23 | @Column(length = 32) 24 | private String entim; 25 | 26 | @Column(length = 32) 27 | private String ret; 28 | 29 | @Column(length = 5000) 30 | private String msg; 31 | } 32 | -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/module/sys/job/log/SysJobLogApi.java: -------------------------------------------------------------------------------- 1 | package vboot.module.sys.job.log; 2 | 3 | import vboot.common.mvc.api.RestResult; 4 | import vboot.common.mvc.dao.Sqler; 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | import org.springframework.web.bind.annotation.*; 7 | 8 | @RestController 9 | @RequestMapping("sys/job/log") 10 | public class SysJobLogApi { 11 | 12 | private String table = "sys_job_log"; 13 | 14 | @GetMapping 15 | public RestResult get(String name) { 16 | Sqler sqler = new Sqler("t.id,t.name,t.sttim,t.entim,t.ret", table); 17 | // XreqUtil.setPageParam(sqler); 18 | sqler.addLike("t.name", name); 19 | sqler.addOrder("t.entim desc"); 20 | System.out.println(sqler.getSql()); 21 | return RestResult.ok(service.findPageData(sqler)) ; 22 | } 23 | 24 | @GetMapping("one/{id}") 25 | public RestResult getOne(@PathVariable String id) { 26 | return RestResult.ok(service.findOne(id)); 27 | } 28 | 29 | 30 | @DeleteMapping("{ids}") 31 | public RestResult delete(@PathVariable String[] ids) { 32 | return RestResult.ok(service.delete(ids)); 33 | } 34 | 35 | 36 | 37 | @Autowired 38 | private SysJobLogService service; 39 | } 40 | -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/module/sys/job/log/SysJobLogRepo.java: -------------------------------------------------------------------------------- 1 | package vboot.module.sys.job.log; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | public interface SysJobLogRepo extends JpaRepository { 6 | 7 | } 8 | 9 | -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/module/sys/job/log/SysJobLogService.java: -------------------------------------------------------------------------------- 1 | package vboot.module.sys.job.log; 2 | 3 | import vboot.common.mvc.dao.JdbcDao; 4 | import vboot.common.mvc.dao.Sqler; 5 | import lombok.extern.slf4j.Slf4j; 6 | import vboot.common.mvc.api.PageData; 7 | import org.springframework.beans.factory.annotation.Autowired; 8 | import org.springframework.stereotype.Service; 9 | import org.springframework.transaction.annotation.Transactional; 10 | 11 | @Service 12 | @Transactional(rollbackFor = Exception.class) 13 | @Slf4j 14 | public class SysJobLogService { 15 | 16 | @Transactional(readOnly = true) 17 | public PageData findPageData(Sqler sqler) { 18 | return jdbcDao.findPageData(sqler); 19 | } 20 | 21 | public int delete(String[] ids) { 22 | for (String id : ids) { 23 | repo.deleteById(id); 24 | } 25 | return ids.length; 26 | } 27 | 28 | @Transactional(readOnly = true) 29 | public SysJobLog findOne(String id) { 30 | return repo.findById(id).get(); 31 | } 32 | 33 | @Autowired 34 | private SysJobLogRepo repo; 35 | 36 | 37 | @Autowired 38 | private JdbcDao jdbcDao; 39 | } 40 | -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/module/sys/job/main/SysJobDemo.java: -------------------------------------------------------------------------------- 1 | package vboot.module.sys.job.main; 2 | 3 | import vboot.module.sys.job.root.IJob; 4 | import vboot.module.sys.job.root.IJobGroup; 5 | import vboot.common.util.lang.XtimeUtil; 6 | import org.springframework.stereotype.Component; 7 | 8 | @IJobGroup 9 | @Component 10 | public class SysJobDemo 11 | { 12 | private static boolean usingFlag = false; 13 | 14 | @IJob(code="demo1",cron = "0/10 * 0-23 * * ?", name = "10秒执行一次的DEMO1") 15 | public void demo1() 16 | { 17 | System.out.println("定时任务-demo1:" + XtimeUtil.getTime()); 18 | } 19 | 20 | @IJob(code="demo2",cron = "0/20 * 0-23 * * ?", name = "20秒执行一次的DEMO2") 21 | public void demo2() 22 | { 23 | if (!usingFlag) 24 | { 25 | usingFlag = true; 26 | try 27 | { 28 | System.out.println("定时任务-demo2:" + XtimeUtil.getTime()); 29 | } finally 30 | { 31 | usingFlag = false; 32 | } 33 | } 34 | 35 | } 36 | } -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/module/sys/job/main/SysJobMain.java: -------------------------------------------------------------------------------- 1 | package vboot.module.sys.job.main; 2 | 3 | 4 | import lombok.Data; 5 | 6 | import javax.persistence.Column; 7 | import javax.persistence.Entity; 8 | import javax.persistence.Id; 9 | import javax.persistence.Transient; 10 | import java.util.Date; 11 | 12 | @Data 13 | @Entity 14 | public class SysJobMain 15 | { 16 | @Id 17 | @Column(length = 32) 18 | private String id; 19 | 20 | @Column(length = 128, updatable = false) 21 | private String name; 22 | 23 | @Column(length = 128, updatable = false) 24 | private String code; 25 | 26 | // @Column(length = 32, updatable = false) 27 | @Transient 28 | private String jid; 29 | // 30 | // @Column(length = 32, updatable = false) 31 | @Transient 32 | private String jgroup; 33 | 34 | private Integer retyp; 35 | 36 | @Column(length = 32, updatable = false) 37 | private String reurl; 38 | 39 | private Boolean avtag; 40 | 41 | private Integer ornum; 42 | 43 | @Column(updatable = false) 44 | private Date crtim = new Date(); 45 | 46 | @Column(length = 32) 47 | private String cron; 48 | 49 | private String notes; 50 | 51 | } 52 | -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/module/sys/job/main/SysJobMainRepo.java: -------------------------------------------------------------------------------- 1 | package vboot.module.sys.job.main; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | public interface SysJobMainRepo extends JpaRepository { 6 | 7 | } 8 | 9 | -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/module/sys/job/root/IJob.java: -------------------------------------------------------------------------------- 1 | package vboot.module.sys.job.root; 2 | import java.lang.annotation.ElementType; 3 | import java.lang.annotation.Retention; 4 | import java.lang.annotation.RetentionPolicy; 5 | import java.lang.annotation.Target; 6 | 7 | @Retention(RetentionPolicy.RUNTIME) 8 | @Target(value = {ElementType.METHOD}) 9 | public @interface IJob 10 | { 11 | String value() default ""; 12 | 13 | String cron() default ""; 14 | 15 | String name() default ""; 16 | 17 | String code() default ""; 18 | } -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/module/sys/job/root/IJobGroup.java: -------------------------------------------------------------------------------- 1 | package vboot.module.sys.job.root; 2 | 3 | @java.lang.annotation.Documented 4 | @java.lang.annotation.Target({java.lang.annotation.ElementType.TYPE}) 5 | @java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.RUNTIME) 6 | public @interface IJobGroup 7 | { 8 | String value() default ""; 9 | } 10 | 11 | -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/module/sys/job/root/JobConfig.java: -------------------------------------------------------------------------------- 1 | package vboot.module.sys.job.root; 2 | 3 | import org.quartz.Scheduler; 4 | import org.quartz.SchedulerException; 5 | import org.quartz.SchedulerFactory; 6 | import org.quartz.impl.StdSchedulerFactory; 7 | import org.springframework.context.annotation.Bean; 8 | import org.springframework.context.annotation.Configuration; 9 | 10 | 11 | @Configuration 12 | public class JobConfig { 13 | 14 | //初始注入scheduler 15 | @Bean 16 | public Scheduler scheduler() throws SchedulerException { 17 | SchedulerFactory schedulerFactoryBean = new StdSchedulerFactory(); 18 | return schedulerFactoryBean.getScheduler(); 19 | } 20 | 21 | } 22 | -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/module/sys/job/root/SysJobListener.java: -------------------------------------------------------------------------------- 1 | package vboot.module.sys.job.root; 2 | 3 | import vboot.module.sys.job.main.SysJobMain; 4 | import vboot.module.sys.job.main.SysJobMainService; 5 | import lombok.extern.slf4j.Slf4j; 6 | import org.quartz.SchedulerException; 7 | import org.springframework.beans.factory.annotation.Autowired; 8 | import org.springframework.context.ApplicationListener; 9 | import org.springframework.context.annotation.Configuration; 10 | import org.springframework.context.event.ContextRefreshedEvent; 11 | 12 | import java.util.List; 13 | 14 | @Configuration 15 | @Slf4j 16 | public class SysJobListener implements ApplicationListener { 17 | @Autowired 18 | private SysJobHandler handler; 19 | 20 | @Autowired 21 | private SysJobMainService sysJobMainService; 22 | 23 | 24 | //初始启动quartz 25 | @Override 26 | public void onApplicationEvent(ContextRefreshedEvent event) { 27 | List dbJobList = sysJobMainService.getJobList(); 28 | try { 29 | handler.startAllJobs(dbJobList); 30 | // log.info("----SYS定时调度任务开启----"); 31 | } catch (SchedulerException e) { 32 | e.printStackTrace(); 33 | } 34 | } 35 | 36 | 37 | } -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/module/sys/log/login/SysLogLogin.java: -------------------------------------------------------------------------------- 1 | package vboot.module.sys.log.login; 2 | 3 | import lombok.Data; 4 | 5 | import javax.persistence.Column; 6 | import javax.persistence.Entity; 7 | import javax.persistence.Id; 8 | import java.util.Date; 9 | 10 | @Entity 11 | @Data 12 | public class SysLogLogin { 13 | @Id 14 | @Column(length = 32) 15 | private String id; 16 | 17 | @Column(length = 32) 18 | private String name;//用户名称 19 | 20 | @Column(length = 32) 21 | private String usnam;//登录账号 22 | @Column(length = 32) 23 | private String ip;//登录ip 24 | 25 | @Column(updatable = false) 26 | private Date crtim=new Date(); 27 | 28 | @Column(length = 32) 29 | private String addre;//登录地点 30 | 31 | @Column(length = 64) 32 | private String usession;//取消了session!!! 33 | 34 | @Column(length = 32) 35 | private String ageos;//客户端操作系统 36 | 37 | @Column(length = 32) 38 | private String agbro;//客户端浏览器 39 | 40 | @Column(length = 512) 41 | private String agdet;//客户端详情 42 | 43 | 44 | 45 | 46 | } 47 | -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/module/sys/log/login/SysLogLoginApi.java: -------------------------------------------------------------------------------- 1 | package vboot.module.sys.log.login; 2 | 3 | import vboot.common.mvc.dao.JdbcDao; 4 | import vboot.common.mvc.dao.Sqler; 5 | import vboot.common.mvc.api.RestResult; 6 | import org.springframework.beans.factory.annotation.Autowired; 7 | import org.springframework.web.bind.annotation.*; 8 | 9 | @RestController 10 | @RequestMapping("sys/log/login") 11 | public class SysLogLoginApi { 12 | 13 | @GetMapping 14 | public RestResult get(String name) { 15 | Sqler sqlHelper = new Sqler("t.*", "sys_log_login"); 16 | sqlHelper.addLike("t.name", name); 17 | sqlHelper.addOrder("t.crtim desc"); 18 | return RestResult.ok(jdbcDao.findPageData(sqlHelper)); 19 | } 20 | 21 | @GetMapping("one/{id}") 22 | public RestResult getOne(@PathVariable String id) { 23 | return RestResult.ok(repo.findById(id).get()); 24 | } 25 | 26 | @DeleteMapping("{ids}") 27 | public RestResult delete(@PathVariable String[] ids) { 28 | for (String id : ids) { 29 | repo.deleteById(id); 30 | } 31 | return RestResult.ok(); 32 | } 33 | 34 | @DeleteMapping("all") 35 | public RestResult deleteAll() { 36 | repo.deleteAll(); 37 | return RestResult.ok(); 38 | } 39 | 40 | @Autowired 41 | private JdbcDao jdbcDao; 42 | 43 | @Autowired 44 | private SysLogLoginRepo repo; 45 | } 46 | -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/module/sys/log/login/SysLogLoginRepo.java: -------------------------------------------------------------------------------- 1 | package vboot.module.sys.log.login; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | public interface SysLogLoginRepo extends JpaRepository { 6 | 7 | } 8 | -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/module/sys/org/dept/SysOrgDeptRepo.java: -------------------------------------------------------------------------------- 1 | package vboot.module.sys.org.dept; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | import java.util.List; 6 | 7 | public interface SysOrgDeptRepo extends JpaRepository { 8 | 9 | List findByNameLikeOrderByOrnum(String name); 10 | 11 | List findByOrderByOrnum(); 12 | 13 | List findByParent(String pid); 14 | 15 | } 16 | -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/module/sys/org/group/SysOrgGroup.java: -------------------------------------------------------------------------------- 1 | package vboot.module.sys.org.group; 2 | 3 | import vboot.module.sys.org.root.SysOrg; 4 | import lombok.Data; 5 | 6 | import javax.persistence.*; 7 | import java.util.Date; 8 | import java.util.List; 9 | 10 | @Entity 11 | @Data 12 | public class SysOrgGroup { 13 | 14 | @Id 15 | @Column(length = 32) 16 | private String id;//ID 17 | 18 | @Column(length = 100) 19 | private String name;//名称 20 | 21 | private String notes;//备注 22 | 23 | private Integer ornum;//排序号 24 | 25 | private Boolean avtag;//可用标记 26 | 27 | @Column(updatable = false) 28 | private Date crtim=new Date();//创建时间 29 | 30 | private Date uptim;//更新时间 31 | 32 | @ManyToMany 33 | @JoinTable(name = "sys_org_group_org", joinColumns = {@JoinColumn(name = "gid")}, 34 | inverseJoinColumns = {@JoinColumn(name = "oid")}) 35 | private List members; 36 | 37 | 38 | 39 | } 40 | -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/module/sys/org/group/SysOrgGroupApi.java: -------------------------------------------------------------------------------- 1 | package vboot.module.sys.org.group; 2 | 3 | import vboot.common.mvc.api.RestResult; 4 | import vboot.common.mvc.dao.Sqler; 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | import org.springframework.web.bind.annotation.*; 7 | 8 | @RestController 9 | @RequestMapping("sys/org/group") 10 | public class SysOrgGroupApi { 11 | 12 | @GetMapping 13 | public RestResult get(String name) { 14 | Sqler sqler = new Sqler("sys_org_group"); 15 | sqler.addLike("t.name", name); 16 | sqler.addSelect("t.ornum,t.notes,t.crtim,t.uptim"); 17 | return RestResult.ok(service.findPageData(sqler)); 18 | } 19 | 20 | @GetMapping("one/{id}") 21 | public RestResult getOne(@PathVariable String id) { 22 | SysOrgGroup main = service.findById(id); 23 | return RestResult.ok(main); 24 | } 25 | 26 | @PostMapping 27 | public RestResult post(@RequestBody SysOrgGroup main) { 28 | return RestResult.ok(service.insert(main)); 29 | } 30 | 31 | @PutMapping 32 | public RestResult put(@RequestBody SysOrgGroup main) { 33 | return RestResult.ok(service.update(main)); 34 | } 35 | 36 | @DeleteMapping("{ids}") 37 | public RestResult delete(@PathVariable String[] ids) { 38 | return RestResult.ok(service.delete(ids)); 39 | } 40 | 41 | @Autowired 42 | private SysOrgGroupService service; 43 | 44 | } 45 | -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/module/sys/org/group/SysOrgGroupRepo.java: -------------------------------------------------------------------------------- 1 | package vboot.module.sys.org.group; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | import java.util.List; 6 | 7 | public interface SysOrgGroupRepo extends JpaRepository { 8 | 9 | List findByNameLikeOrderByOrnum(String name); 10 | 11 | List findByOrderByOrnum(); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/module/sys/org/post/SysOrgPost.java: -------------------------------------------------------------------------------- 1 | package vboot.module.sys.org.post; 2 | 3 | import vboot.module.sys.org.root.SysOrg; 4 | import lombok.Data; 5 | 6 | import javax.persistence.*; 7 | import java.util.Date; 8 | import java.util.List; 9 | 10 | @Entity 11 | @Data 12 | @Table(indexes = {@Index(columnList = "tier",unique = true), @Index(columnList = "avtag")}) 13 | public class SysOrgPost{ 14 | @Id 15 | @Column(length = 32) 16 | private String id; 17 | 18 | @Column(length = 32) 19 | private String name;//名称 20 | 21 | @Transient 22 | private String deptid;//部门ID 23 | 24 | @ManyToOne(fetch = FetchType.EAGER) 25 | @JoinColumn(name = "deptid") 26 | private SysOrg dept;//部门 27 | 28 | @Column(length = 1000) 29 | private String tier;//层级 30 | 31 | private String notes;//备注 32 | 33 | private Integer ornum;//排序号 34 | 35 | private Boolean avtag;//可用标记 36 | 37 | 38 | @Column(updatable = false) 39 | private Date crtim = new Date();//创建时间 40 | 41 | private Date uptim;//更新时间 42 | 43 | @Column(length = 1000) 44 | private String ldnam;//ldap 层级名称 45 | 46 | @ManyToMany 47 | @JoinTable(name = "sys_org_post_org", joinColumns = {@JoinColumn(name = "pid")}, 48 | inverseJoinColumns = {@JoinColumn(name = "oid")}) 49 | private List users;//员工列表 50 | 51 | 52 | } 53 | -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/module/sys/org/post/SysOrgPostRepo.java: -------------------------------------------------------------------------------- 1 | package vboot.module.sys.org.post; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | public interface SysOrgPostRepo extends JpaRepository { 6 | 7 | 8 | 9 | } 10 | 11 | -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/module/sys/org/rece/SysOrgRece.java: -------------------------------------------------------------------------------- 1 | package vboot.module.sys.org.rece; 2 | 3 | import lombok.Data; 4 | 5 | import javax.persistence.*; 6 | import java.util.Date; 7 | 8 | @Entity 9 | @Data 10 | @Table(indexes = {@Index(columnList = "userid"),@Index(columnList = "orgid")}) 11 | public class SysOrgRece { 12 | 13 | @Id 14 | @Column(length = 32) 15 | private String id;//ID 16 | 17 | @Column(length = 32) 18 | private String userid;//用户ID 19 | 20 | @Column(length = 32) 21 | private String orgid;//最近使用的组织架构ID 22 | 23 | @Column 24 | private Date uptim = new Date();//最近使用时间 25 | } 26 | -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/module/sys/org/rece/SysOrgReceRepo.java: -------------------------------------------------------------------------------- 1 | package vboot.module.sys.org.rece; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | public interface SysOrgReceRepo extends JpaRepository { 6 | 7 | 8 | } 9 | -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/module/sys/org/root/SysOrg.java: -------------------------------------------------------------------------------- 1 | package vboot.module.sys.org.root; 2 | 3 | import lombok.Data; 4 | 5 | import javax.persistence.Column; 6 | import javax.persistence.Entity; 7 | import javax.persistence.Id; 8 | 9 | @Entity 10 | @Data 11 | public class SysOrg { 12 | @Id 13 | @Column(length = 32) 14 | private String id; 15 | 16 | @Column(length = 100) 17 | private String name; 18 | 19 | public SysOrg(String id){ 20 | this.id=id; 21 | } 22 | 23 | public SysOrg(String id, String name) { 24 | this.id = id; 25 | this.name = name; 26 | } 27 | 28 | public SysOrg() { 29 | 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/module/sys/org/root/SysOrgRepo.java: -------------------------------------------------------------------------------- 1 | package vboot.module.sys.org.root; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | public interface SysOrgRepo extends JpaRepository { 6 | } 7 | 8 | -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/module/sys/org/user/SysOrgUserRepo.java: -------------------------------------------------------------------------------- 1 | package vboot.module.sys.org.user; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | public interface SysOrgUserRepo extends JpaRepository { 6 | 7 | SysOrgUser findByUsnam(String usnam); 8 | 9 | SysOrgUser findByMonum(String monum); 10 | 11 | } 12 | 13 | -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/module/sys/perm/api/SysPermApi.java: -------------------------------------------------------------------------------- 1 | package vboot.module.sys.perm.api; 2 | 3 | import lombok.Data; 4 | 5 | import javax.persistence.Column; 6 | import javax.persistence.Entity; 7 | import javax.persistence.Id; 8 | 9 | @Entity 10 | @Data 11 | public class SysPermApi { 12 | 13 | @Id 14 | @Column(length = 64) 15 | private String id; 16 | 17 | @Column(length = 64) 18 | private String name; 19 | 20 | @Column(length = 64) 21 | private String pid; 22 | 23 | private Long lcode; 24 | 25 | private Integer ipos; 26 | 27 | private Boolean cotag;//公共标记 28 | 29 | @Column(length = 32) 30 | private String tcode; 31 | 32 | private Boolean avtag;//可用标记 33 | 34 | } 35 | -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/module/sys/perm/api/SysPermApiRepo.java: -------------------------------------------------------------------------------- 1 | package vboot.module.sys.perm.api; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | 6 | public interface SysPermApiRepo extends JpaRepository { 7 | } 8 | 9 | -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/module/sys/perm/api/Yperm.java: -------------------------------------------------------------------------------- 1 | package vboot.module.sys.perm.api; 2 | 3 | import lombok.Data; 4 | 5 | import java.io.Serializable; 6 | 7 | @Data 8 | public class Yperm implements Serializable 9 | { 10 | private static final long serialVersionUID = 7712491509249951764L; 11 | 12 | private int pos; 13 | private long code; 14 | private String id; 15 | private String tcode; 16 | 17 | //get and set------------ 18 | } 19 | -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/module/sys/perm/api/Zperm.java: -------------------------------------------------------------------------------- 1 | package vboot.module.sys.perm.api; 2 | 3 | public class Zperm 4 | { 5 | private int pos; 6 | private long code; 7 | 8 | //get and set----------- 9 | 10 | public int getPos() 11 | { 12 | return pos; 13 | } 14 | 15 | public void setPos(int pos) 16 | { 17 | this.pos = pos; 18 | } 19 | 20 | public long getCode() 21 | { 22 | return code; 23 | } 24 | 25 | public void setCode(long code) 26 | { 27 | this.code = code; 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/module/sys/perm/menu/SysPermMenuRepo.java: -------------------------------------------------------------------------------- 1 | package vboot.module.sys.perm.menu; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | import java.util.List; 6 | 7 | public interface SysPermMenuRepo extends JpaRepository { 8 | 9 | List findByNameLikeOrderByOrnum(String name); 10 | 11 | List findByOrderByOrnum(); 12 | 13 | List findByPid(String pid); 14 | 15 | } 16 | 17 | -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/module/sys/perm/role/SysPermRole.java: -------------------------------------------------------------------------------- 1 | package vboot.module.sys.perm.role; 2 | 3 | import lombok.Getter; 4 | import lombok.Setter; 5 | import vboot.common.mvc.entity.BaseMainEntity; 6 | import vboot.module.sys.org.root.SysOrg; 7 | import vboot.module.sys.perm.menu.SysPermMenu; 8 | 9 | import javax.persistence.*; 10 | import java.util.ArrayList; 11 | import java.util.List; 12 | 13 | @Entity 14 | @Getter 15 | @Setter 16 | public class SysPermRole extends BaseMainEntity 17 | { 18 | 19 | @Column(length = 32) 20 | private String type; 21 | 22 | @Column(length = 32) 23 | private String label; 24 | 25 | private String notes; 26 | 27 | //拥有的菜单 28 | @ManyToMany 29 | @JoinTable(name = "sys_perm_role_menu", 30 | joinColumns = {@JoinColumn(name = "rid")}, 31 | inverseJoinColumns = {@JoinColumn(name = "mid")}) 32 | private List menus = new ArrayList<>(); 33 | 34 | //授权的用户 35 | @ManyToMany 36 | @JoinTable(name = "sys_perm_role_org", 37 | joinColumns = {@JoinColumn(name = "rid")}, 38 | inverseJoinColumns = {@JoinColumn(name = "oid")}) 39 | private List orgs = new ArrayList<>(); 40 | 41 | } 42 | -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/module/sys/perm/role/SysPermRoleRepo.java: -------------------------------------------------------------------------------- 1 | package vboot.module.sys.perm.role; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | public interface SysPermRoleRepo extends JpaRepository { 6 | } 7 | -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/module/sys/perm/role/SysPermRoleService.java: -------------------------------------------------------------------------------- 1 | package vboot.module.sys.perm.role; 2 | 3 | import vboot.common.mvc.service.BaseMainService; 4 | import org.springframework.beans.factory.annotation.Autowired; 5 | import org.springframework.stereotype.Service; 6 | 7 | import javax.annotation.PostConstruct; 8 | 9 | @Service 10 | public class SysPermRoleService extends BaseMainService { 11 | 12 | //bean注入------------------------------ 13 | @Autowired 14 | private SysPermRoleRepo repo; 15 | 16 | @PostConstruct 17 | public void initDao() { 18 | super.setRepo(repo); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/module/sys/todo/done/SysTodoDone.java: -------------------------------------------------------------------------------- 1 | package vboot.module.sys.todo.done; 2 | 3 | import lombok.Getter; 4 | import lombok.Setter; 5 | 6 | import javax.persistence.Column; 7 | import javax.persistence.Entity; 8 | import javax.persistence.Id; 9 | import java.util.Date; 10 | 11 | @Entity 12 | @Getter 13 | @Setter 14 | public class SysTodoDone { 15 | 16 | @Id 17 | @Column(length = 32) 18 | private String id;//主键 19 | 20 | @Column(length = 32) 21 | private String tid;//todoid 22 | 23 | @Column(length = 32) 24 | private String uid;//userid 25 | 26 | @Column(updatable = false) 27 | private Date entim = new Date();//完成时间 28 | } 29 | -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/module/sys/todo/done/SysTodoDoneRepo.java: -------------------------------------------------------------------------------- 1 | package vboot.module.sys.todo.done; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | public interface SysTodoDoneRepo extends JpaRepository { 6 | 7 | 8 | } 9 | -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/module/sys/todo/hist/SysTodoHist.java: -------------------------------------------------------------------------------- 1 | package vboot.module.sys.todo.hist; 2 | 3 | 4 | import lombok.Getter; 5 | import lombok.Setter; 6 | 7 | import javax.persistence.Column; 8 | import javax.persistence.Entity; 9 | import javax.persistence.Id; 10 | import java.util.Date; 11 | 12 | @Entity 13 | @Getter 14 | @Setter 15 | public class SysTodoHist { 16 | 17 | @Id 18 | @Column(length = 32) 19 | private String id;//主键 20 | 21 | @Column(length = 256) 22 | private String name;//主题 23 | 24 | @Column(length = 8) 25 | private String type;//类型 26 | 27 | @Column(length = 8) 28 | private String level;//紧急度 29 | 30 | @Column(length = 128) 31 | private String modca;//模型分类 32 | 33 | @Column(length = 32) 34 | private String modid;//模型ID 35 | 36 | @Column(length = 512) 37 | private String link;//链接 38 | 39 | private String notes;//备注 40 | 41 | @Column(updatable = false) 42 | private Date crtim = new Date();//创建时间 43 | 44 | @Column(updatable = false) 45 | private String crman;//创建人 46 | 47 | // @ManyToMany 48 | // @JoinTable(name = "sys_todo_user", joinColumns = {@JoinColumn(name = "tid")}, 49 | // inverseJoinColumns = {@JoinColumn(name = "uid")}) 50 | // private List tamen; 51 | 52 | } 53 | -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/module/sys/todo/main/SysTodoMain.java: -------------------------------------------------------------------------------- 1 | package vboot.module.sys.todo.main; 2 | 3 | 4 | import lombok.Getter; 5 | import lombok.Setter; 6 | 7 | import javax.persistence.*; 8 | import java.util.Date; 9 | 10 | @Entity 11 | @Getter 12 | @Setter 13 | public class SysTodoMain { 14 | 15 | @Id 16 | @Column(length = 32) 17 | private String id;//主键 18 | 19 | @Column(length = 256) 20 | private String name;//主题 21 | 22 | @Column(length = 8) 23 | private String type;//类型 24 | 25 | @Column(length = 8) 26 | private String level;//紧急度 27 | 28 | @Column(length = 128) 29 | private String modca;//模型分类 30 | 31 | @Column(length = 32) 32 | private String modid;//模型ID 33 | 34 | @Column(length = 512) 35 | private String link;//链接 36 | 37 | private String notes;//备注 38 | 39 | @Column(updatable = false) 40 | private Date crtim = new Date();//创建时间 41 | 42 | @Column(updatable = false) 43 | private String crman;//创建人 44 | 45 | // @ManyToMany 46 | // @JoinTable(name = "sys_todo_user", joinColumns = {@JoinColumn(name = "tid")}, 47 | // inverseJoinColumns = {@JoinColumn(name = "uid")}) 48 | // private List tamen; 49 | 50 | } 51 | -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/module/sys/todo/main/SysTodoMainRepo.java: -------------------------------------------------------------------------------- 1 | package vboot.module.sys.todo.main; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | public interface SysTodoMainRepo extends JpaRepository { 6 | 7 | 8 | } 9 | -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/module/sys/todo/user/SysTodoUser.java: -------------------------------------------------------------------------------- 1 | package vboot.module.sys.todo.user; 2 | 3 | import lombok.Getter; 4 | import lombok.Setter; 5 | 6 | import javax.persistence.Column; 7 | import javax.persistence.Entity; 8 | import javax.persistence.Id; 9 | 10 | @Entity 11 | @Getter 12 | @Setter 13 | public class SysTodoUser { 14 | 15 | @Id 16 | @Column(length = 32) 17 | private String id;//主键 18 | 19 | @Column(length = 32) 20 | private String tid;//todoid 21 | 22 | @Column(length = 32) 23 | private String uid;//userid 24 | } 25 | -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/module/sys/todo/user/SysTodoUserRepo.java: -------------------------------------------------------------------------------- 1 | package vboot.module.sys.todo.user; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | public interface SysTodoUserRepo extends JpaRepository { 6 | 7 | 8 | } 9 | -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/modulex/oa/flow/cate/OaFlowCate.java: -------------------------------------------------------------------------------- 1 | package vboot.modulex.oa.flow.cate; 2 | 3 | import vboot.common.mvc.entity.BaseCateEntity; 4 | import lombok.Getter; 5 | import lombok.Setter; 6 | 7 | import javax.persistence.*; 8 | import java.util.ArrayList; 9 | import java.util.List; 10 | 11 | @Entity 12 | @Getter 13 | @Setter 14 | public class OaFlowCate extends BaseCateEntity { 15 | 16 | @ManyToOne(fetch= FetchType.EAGER) 17 | @JoinColumn(name = "pid") 18 | private OaFlowCate parent;//父类别 19 | 20 | @Transient 21 | private List children = new ArrayList<>(); //行项目 22 | 23 | private String notes;//备注 24 | } 25 | -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/modulex/oa/flow/cate/OaFlowCateRepo.java: -------------------------------------------------------------------------------- 1 | package vboot.modulex.oa.flow.cate; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | public interface OaFlowCateRepo extends JpaRepository { 6 | 7 | 8 | } 9 | -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/modulex/oa/flow/main/OaFlowMain.java: -------------------------------------------------------------------------------- 1 | package vboot.modulex.oa.flow.main; 2 | 3 | import vboot.common.mvc.entity.BaseMainEntity; 4 | import vboot.module.bpm.proc.main.Zbpm; 5 | import lombok.Getter; 6 | import lombok.Setter; 7 | 8 | import javax.persistence.Column; 9 | import javax.persistence.Entity; 10 | import javax.persistence.Transient; 11 | 12 | @Entity 13 | @Getter 14 | @Setter 15 | public class OaFlowMain extends BaseMainEntity { 16 | 17 | @Column(length = 32) 18 | private String temid;//OA流程模板ID 19 | 20 | @Column(length = 32) 21 | private String protd;//全局流程模板ID 22 | 23 | private String notes; 24 | 25 | @Column(length = 8) 26 | private String state; 27 | 28 | @Transient 29 | private Zbpm zbpm; 30 | 31 | 32 | } -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/modulex/oa/flow/main/OaFlowMainRepo.java: -------------------------------------------------------------------------------- 1 | package vboot.modulex.oa.flow.main; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | public interface OaFlowMainRepo extends JpaRepository { 6 | 7 | 8 | } 9 | -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/modulex/oa/flow/rece/OaFlowRece.java: -------------------------------------------------------------------------------- 1 | package vboot.modulex.oa.flow.rece; 2 | 3 | import lombok.Data; 4 | 5 | import javax.persistence.*; 6 | import java.util.Date; 7 | 8 | @Entity 9 | @Data 10 | @Table(indexes = {@Index(columnList = "userid"),@Index(columnList = "flowid")}) 11 | public class OaFlowRece { 12 | 13 | @Id 14 | @Column(length = 32) 15 | private String id;//ID 16 | 17 | @Column(length = 32) 18 | private String userid;//用户ID 19 | 20 | @Column(length = 32) 21 | private String flowid;//最近使用的流程ID 22 | 23 | @Column 24 | private Date uptim = new Date();//最近使用时间 25 | } 26 | -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/modulex/oa/flow/rece/OaFlowReceRepo.java: -------------------------------------------------------------------------------- 1 | package vboot.modulex.oa.flow.rece; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | public interface OaFlowReceRepo extends JpaRepository { 6 | 7 | 8 | } 9 | -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/modulex/oa/flow/temp/OaFlowTemp.java: -------------------------------------------------------------------------------- 1 | package vboot.modulex.oa.flow.temp; 2 | 3 | import vboot.common.mvc.entity.BaseMainEntity; 4 | import lombok.Getter; 5 | import lombok.Setter; 6 | import vboot.module.sys.org.root.SysOrg; 7 | import vboot.modulex.oa.flow.cate.OaFlowCate; 8 | 9 | import javax.persistence.*; 10 | 11 | @Entity 12 | @Getter 13 | @Setter 14 | public class OaFlowTemp extends BaseMainEntity { 15 | 16 | private Integer ornum; 17 | 18 | private String notes; 19 | 20 | private String protd;//全局流程模板ID 21 | 22 | @Lob 23 | private String vform; 24 | 25 | @Transient 26 | private String prxml; 27 | 28 | @ManyToOne 29 | @JoinColumn(name = "catid") 30 | private OaFlowCate cate;//流程分类 31 | 32 | } -------------------------------------------------------------------------------- /vboot-core/src/main/java/vboot/modulex/oa/flow/temp/OaFlowTempRepo.java: -------------------------------------------------------------------------------- 1 | package vboot.modulex.oa.flow.temp; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | public interface OaFlowTempRepo extends JpaRepository { 6 | 7 | 8 | } 9 | -------------------------------------------------------------------------------- /vboot-extend-bi/lib/ascsapjco3wrp-20100529.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsvg-com/vboot-java/83ab73eee39ece4fe3593115fc4d384b557992b8/vboot-extend-bi/lib/ascsapjco3wrp-20100529.jar -------------------------------------------------------------------------------- /vboot-extend-bi/lib/commons-vfs2-2.2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsvg-com/vboot-java/83ab73eee39ece4fe3593115fc4d384b557992b8/vboot-extend-bi/lib/commons-vfs2-2.2.jar -------------------------------------------------------------------------------- /vboot-extend-bi/lib/jface-3.3.0-I20070606-0010.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsvg-com/vboot-java/83ab73eee39ece4fe3593115fc4d384b557992b8/vboot-extend-bi/lib/jface-3.3.0-I20070606-0010.jar -------------------------------------------------------------------------------- /vboot-extend-bi/lib/kettle-core-8.2.0.0-342.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsvg-com/vboot-java/83ab73eee39ece4fe3593115fc4d384b557992b8/vboot-extend-bi/lib/kettle-core-8.2.0.0-342.jar -------------------------------------------------------------------------------- /vboot-extend-bi/lib/kettle-engine-8.2.0.0-342.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsvg-com/vboot-java/83ab73eee39ece4fe3593115fc4d384b557992b8/vboot-extend-bi/lib/kettle-engine-8.2.0.0-342.jar -------------------------------------------------------------------------------- /vboot-extend-bi/lib/kettle-sap-plugin-core-8.2.0.0-342.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsvg-com/vboot-java/83ab73eee39ece4fe3593115fc4d384b557992b8/vboot-extend-bi/lib/kettle-sap-plugin-core-8.2.0.0-342.jar -------------------------------------------------------------------------------- /vboot-extend-bi/lib/kettle-ui-swt-8.2.0.0-342.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsvg-com/vboot-java/83ab73eee39ece4fe3593115fc4d384b557992b8/vboot-extend-bi/lib/kettle-ui-swt-8.2.0.0-342.jar -------------------------------------------------------------------------------- /vboot-extend-bi/lib/metastore-8.2.0.0-342.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsvg-com/vboot-java/83ab73eee39ece4fe3593115fc4d384b557992b8/vboot-extend-bi/lib/metastore-8.2.0.0-342.jar -------------------------------------------------------------------------------- /vboot-extend-bi/lib/org.mozilla.javascript_1.7.2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsvg-com/vboot-java/83ab73eee39ece4fe3593115fc4d384b557992b8/vboot-extend-bi/lib/org.mozilla.javascript_1.7.2.jar -------------------------------------------------------------------------------- /vboot-extend-bi/lib/sapjco3.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsvg-com/vboot-java/83ab73eee39ece4fe3593115fc4d384b557992b8/vboot-extend-bi/lib/sapjco3.jar -------------------------------------------------------------------------------- /vboot-extend-bi/lib/scannotation-1.0.2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsvg-com/vboot-java/83ab73eee39ece4fe3593115fc4d384b557992b8/vboot-extend-bi/lib/scannotation-1.0.2.jar -------------------------------------------------------------------------------- /vboot-extend-bi/src/main/java/vboot/bi/conn/main/BiConnMain.java: -------------------------------------------------------------------------------- 1 | package vboot.bi.conn.main; 2 | 3 | import vboot.common.mvc.entity.BaseMainEntity; 4 | import lombok.Getter; 5 | import lombok.Setter; 6 | 7 | import javax.persistence.Column; 8 | import javax.persistence.Entity; 9 | 10 | @Entity 11 | @Getter 12 | @Setter 13 | public class BiConnMain extends BaseMainEntity { 14 | 15 | @Column(length = 64) 16 | private String comet;//注释 17 | 18 | @Column(length = 64) 19 | private String notes;//备注 20 | 21 | } -------------------------------------------------------------------------------- /vboot-extend-bi/src/main/java/vboot/bi/conn/main/BiConnMainRepo.java: -------------------------------------------------------------------------------- 1 | package vboot.bi.conn.main; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | public interface BiConnMainRepo extends JpaRepository { 6 | 7 | 8 | } 9 | -------------------------------------------------------------------------------- /vboot-extend-bi/src/main/java/vboot/bi/conn/main/BiConnMainService.java: -------------------------------------------------------------------------------- 1 | package vboot.bi.conn.main; 2 | 3 | import vboot.common.mvc.service.BaseMainService; 4 | import org.springframework.beans.factory.annotation.Autowired; 5 | import org.springframework.stereotype.Service; 6 | 7 | import javax.annotation.PostConstruct; 8 | 9 | @Service 10 | public class BiConnMainService extends BaseMainService { 11 | 12 | //----------bean注入------------ 13 | @Autowired 14 | private BiConnMainRepo repo; 15 | 16 | @PostConstruct 17 | public void initDao() { 18 | super.setRepo(repo); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /vboot-extend-bi/src/main/java/vboot/bi/demo/boy/BiDemoBoy.java: -------------------------------------------------------------------------------- 1 | package vboot.bi.demo.boy; 2 | 3 | import vboot.common.mvc.entity.BaseEntity; 4 | import lombok.Getter; 5 | import lombok.Setter; 6 | 7 | import javax.persistence.Entity; 8 | 9 | @Entity 10 | @Getter 11 | @Setter 12 | public class BiDemoBoy extends BaseEntity 13 | { 14 | private String notes; 15 | } 16 | -------------------------------------------------------------------------------- /vboot-extend-bi/src/main/java/vboot/bi/demo/boy/BiDemoBoyRepo.java: -------------------------------------------------------------------------------- 1 | package vboot.bi.demo.boy; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | public interface BiDemoBoyRepo extends JpaRepository { 6 | 7 | 8 | } 9 | -------------------------------------------------------------------------------- /vboot-extend-bi/src/main/java/vboot/bi/demo/boy/BiDemoBoyService.java: -------------------------------------------------------------------------------- 1 | package vboot.bi.demo.boy; 2 | 3 | import vboot.common.mvc.service.BaseService; 4 | import lombok.extern.slf4j.Slf4j; 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | import org.springframework.stereotype.Service; 7 | 8 | import javax.annotation.PostConstruct; 9 | 10 | @Service 11 | @Slf4j 12 | public class BiDemoBoyService extends BaseService { 13 | 14 | //----------bean注入------------ 15 | @Autowired 16 | private BiDemoBoyRepo repo; 17 | 18 | @PostConstruct 19 | public void initDao() { 20 | super.setRepo(repo); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /vboot-extend-bi/src/main/java/vboot/bi/demo/girl/BiDemoGirl.java: -------------------------------------------------------------------------------- 1 | package vboot.bi.demo.girl; 2 | 3 | import vboot.common.mvc.entity.BaseEntity; 4 | import lombok.Getter; 5 | import lombok.Setter; 6 | 7 | import javax.persistence.Entity; 8 | 9 | @Entity 10 | @Getter 11 | @Setter 12 | public class BiDemoGirl extends BaseEntity 13 | { 14 | private String notes; 15 | } 16 | -------------------------------------------------------------------------------- /vboot-extend-bi/src/main/java/vboot/bi/demo/girl/BiDemoGirlApi.java: -------------------------------------------------------------------------------- 1 | package vboot.bi.demo.girl; 2 | 3 | import vboot.common.mvc.api.RestResult; 4 | import vboot.common.mvc.dao.Sqler; 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | import org.springframework.web.bind.annotation.*; 7 | 8 | 9 | @RestController 10 | @RequestMapping("bi/demo/girl") 11 | public class BiDemoGirlApi { 12 | 13 | private String table = "bi_demo_girl"; 14 | 15 | @GetMapping 16 | public RestResult get(String name) { 17 | Sqler sqler = new Sqler(table); 18 | sqler.addLike("t.name", name); 19 | return RestResult.ok(service.findPageData(sqler)); 20 | } 21 | 22 | @GetMapping("one/{id}") 23 | public RestResult getOne(@PathVariable String id) { 24 | BiDemoGirl main = service.findOne(id); 25 | return RestResult.ok(main); 26 | } 27 | 28 | @PostMapping 29 | public RestResult post(@RequestBody BiDemoGirl main) { 30 | return RestResult.ok(service.insert(main)); 31 | } 32 | 33 | @PutMapping 34 | public RestResult put(@RequestBody BiDemoGirl main) { 35 | return RestResult.ok(service.update(main)); 36 | } 37 | 38 | @DeleteMapping("{ids}") 39 | public RestResult delete(@PathVariable String[] ids) { 40 | return RestResult.ok(service.delete(ids)); 41 | } 42 | 43 | @Autowired 44 | private BiDemoGirlService service; 45 | 46 | } -------------------------------------------------------------------------------- /vboot-extend-bi/src/main/java/vboot/bi/demo/girl/BiDemoGirlRepo.java: -------------------------------------------------------------------------------- 1 | package vboot.bi.demo.girl; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | public interface BiDemoGirlRepo extends JpaRepository { 6 | 7 | 8 | } -------------------------------------------------------------------------------- /vboot-extend-bi/src/main/java/vboot/bi/demo/girl/BiDemoGirlService.java: -------------------------------------------------------------------------------- 1 | package vboot.bi.demo.girl; 2 | 3 | import vboot.common.mvc.service.BaseService; 4 | import lombok.extern.slf4j.Slf4j; 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | import org.springframework.stereotype.Service; 7 | 8 | import javax.annotation.PostConstruct; 9 | 10 | @Service 11 | @Slf4j 12 | public class BiDemoGirlService extends BaseService { 13 | 14 | //----------bean注入------------ 15 | @Autowired 16 | private BiDemoGirlRepo repo; 17 | 18 | @PostConstruct 19 | public void initDao() { 20 | super.setRepo(repo); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /vboot-extend-bi/src/main/java/vboot/bi/demo/student/BiDemoStudent.java: -------------------------------------------------------------------------------- 1 | package vboot.bi.demo.student; 2 | 3 | import vboot.common.mvc.entity.BaseEntity; 4 | import lombok.Getter; 5 | import lombok.Setter; 6 | 7 | import javax.persistence.Entity; 8 | 9 | @Entity 10 | @Getter 11 | @Setter 12 | public class BiDemoStudent extends BaseEntity 13 | { 14 | 15 | } 16 | -------------------------------------------------------------------------------- /vboot-extend-bi/src/main/java/vboot/bi/demo/student/BiDemoStudentApi.java: -------------------------------------------------------------------------------- 1 | package vboot.bi.demo.student; 2 | 3 | import vboot.common.mvc.api.RestResult; 4 | import vboot.common.mvc.dao.Sqler; 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | import org.springframework.web.bind.annotation.*; 7 | 8 | 9 | @RestController 10 | @RequestMapping("bi/demo/student") 11 | public class BiDemoStudentApi { 12 | 13 | private String table = "bi_demo_student"; 14 | 15 | @GetMapping 16 | public RestResult get(String name) { 17 | Sqler sqler = new Sqler(table); 18 | sqler.addLike("t.name", name); 19 | return RestResult.ok(service.findPageData(sqler)); 20 | } 21 | 22 | @GetMapping("one/{id}") 23 | public RestResult getOne(@PathVariable String id) { 24 | BiDemoStudent main = service.findOne(id); 25 | return RestResult.ok(main); 26 | } 27 | 28 | @PostMapping 29 | public RestResult post(@RequestBody BiDemoStudent main) { 30 | return RestResult.ok(service.insert(main)); 31 | } 32 | 33 | @PutMapping 34 | public RestResult put(@RequestBody BiDemoStudent main) { 35 | return RestResult.ok(service.update(main)); 36 | } 37 | 38 | @DeleteMapping("{ids}") 39 | public RestResult delete(@PathVariable String[] ids) { 40 | return RestResult.ok(service.delete(ids)); 41 | } 42 | 43 | @Autowired 44 | private BiDemoStudentService service; 45 | 46 | } -------------------------------------------------------------------------------- /vboot-extend-bi/src/main/java/vboot/bi/demo/student/BiDemoStudentRepo.java: -------------------------------------------------------------------------------- 1 | package vboot.bi.demo.student; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | public interface BiDemoStudentRepo extends JpaRepository { 6 | 7 | 8 | } 9 | -------------------------------------------------------------------------------- /vboot-extend-bi/src/main/java/vboot/bi/demo/student/BiDemoStudentService.java: -------------------------------------------------------------------------------- 1 | package vboot.bi.demo.student; 2 | 3 | import vboot.common.mvc.service.BaseService; 4 | import lombok.extern.slf4j.Slf4j; 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | import org.springframework.stereotype.Service; 7 | 8 | import javax.annotation.PostConstruct; 9 | 10 | @Service 11 | @Slf4j 12 | public class BiDemoStudentService extends BaseService { 13 | 14 | //----------bean注入------------ 15 | @Autowired 16 | private BiDemoStudentRepo repo; 17 | 18 | @PostConstruct 19 | public void initDao() { 20 | super.setRepo(repo); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /vboot-extend-bi/src/main/java/vboot/bi/etl/log/BiEtlLog.java: -------------------------------------------------------------------------------- 1 | package vboot.bi.etl.log; 2 | 3 | import lombok.Getter; 4 | import lombok.Setter; 5 | 6 | import javax.persistence.Column; 7 | import javax.persistence.Entity; 8 | import javax.persistence.Id; 9 | import java.util.Date; 10 | 11 | @Entity 12 | @Getter 13 | @Setter 14 | public class BiEtlLog { 15 | 16 | @Id 17 | private Integer ID_BATCH; 18 | 19 | private String CHANNEL_ID; 20 | 21 | private String TRANSNAME; 22 | 23 | @Column(length = 15) 24 | private String STATUS; 25 | 26 | private Long LINES_READ; 27 | 28 | private Long LINES_WRITTEN; 29 | 30 | private Long LINES_UPDATED; 31 | 32 | private Long LINES_INPUT; 33 | 34 | private Long LINES_OUTPUT; 35 | 36 | private Long LINES_REJECTED; 37 | 38 | private Long ERRORS; 39 | 40 | private Date STARTDATE; 41 | 42 | private Date ENDDATE; 43 | 44 | private Date LOGDATE; 45 | 46 | private Date DEPDATE; 47 | 48 | private Date REPLAYDATE; 49 | 50 | @Column(length = 5000) 51 | private String LOG_FIELD; 52 | } 53 | -------------------------------------------------------------------------------- /vboot-extend-bi/src/main/java/vboot/bi/etl/main/BiEtlJobListener.java: -------------------------------------------------------------------------------- 1 | package vboot.bi.etl.main; 2 | 3 | import lombok.extern.slf4j.Slf4j; 4 | import org.pentaho.di.core.KettleEnvironment; 5 | import org.pentaho.di.core.exception.KettleException; 6 | import org.quartz.SchedulerException; 7 | import org.springframework.beans.factory.annotation.Autowired; 8 | import org.springframework.context.ApplicationListener; 9 | import org.springframework.context.annotation.Configuration; 10 | import org.springframework.context.event.ContextRefreshedEvent; 11 | 12 | import java.util.List; 13 | 14 | @Configuration 15 | @Slf4j 16 | public class BiEtlJobListener implements ApplicationListener { 17 | @Autowired 18 | private BiEtlMainHandler handler; 19 | 20 | @Autowired 21 | private BiEtlMainService etlService; 22 | 23 | //初始启动quartz 24 | @Override 25 | public void onApplicationEvent(ContextRefreshedEvent event) { 26 | List kettleList = etlService.findAll(); 27 | try { 28 | KettleEnvironment.init(); 29 | } catch (KettleException e) { 30 | e.printStackTrace(); 31 | } 32 | try { 33 | handler.startAllEtlJobs(kettleList); 34 | } catch (SchedulerException e) { 35 | e.printStackTrace(); 36 | } 37 | // log.info("----ETL定时调度任务开启----"); 38 | } 39 | 40 | 41 | } -------------------------------------------------------------------------------- /vboot-extend-bi/src/main/java/vboot/bi/etl/main/BiEtlMain.java: -------------------------------------------------------------------------------- 1 | package vboot.bi.etl.main; 2 | 3 | import vboot.common.mvc.entity.BaseMainEntity; 4 | import lombok.Getter; 5 | import lombok.Setter; 6 | 7 | import javax.persistence.Column; 8 | import javax.persistence.Entity; 9 | 10 | @Entity 11 | @Getter 12 | @Setter 13 | public class BiEtlMain extends BaseMainEntity 14 | { 15 | @Column(length = 32) 16 | private String code; 17 | 18 | @Column(length = 32) 19 | private String cron; 20 | 21 | private String notes; 22 | 23 | @Column(length = 128) 24 | private String zpath; 25 | 26 | @Column(length = 128) 27 | private String zname; 28 | } 29 | -------------------------------------------------------------------------------- /vboot-extend-bi/src/main/java/vboot/bi/etl/main/BiEtlMainRepo.java: -------------------------------------------------------------------------------- 1 | package vboot.bi.etl.main; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | public interface BiEtlMainRepo extends JpaRepository { 6 | 7 | BiEtlMain findByCode(String code); 8 | 9 | } 10 | -------------------------------------------------------------------------------- /vboot-extend-bi/src/main/java/vboot/bi/etl/main/KetJobFactory.java: -------------------------------------------------------------------------------- 1 | package vboot.bi.etl.main; 2 | 3 | import vboot.common.util.web.XspringUtil; 4 | import org.quartz.Job; 5 | import org.quartz.JobExecutionContext; 6 | 7 | public class KetJobFactory implements Job { 8 | 9 | 10 | @Override 11 | public void execute(JobExecutionContext context) { 12 | String kettleId = (String) context.getMergedJobDataMap().get("etl"); 13 | try { 14 | BiEtlMainService service= XspringUtil.getBean(BiEtlMainService.class); 15 | service.runById(kettleId,null); 16 | } catch (Exception e) { 17 | e.printStackTrace(); 18 | } 19 | } 20 | 21 | 22 | } 23 | -------------------------------------------------------------------------------- /vboot-extend-bi/src/main/java/vboot/bi/field/main/BiFieldMain.java: -------------------------------------------------------------------------------- 1 | package vboot.bi.field.main; 2 | 3 | import vboot.common.mvc.entity.BaseMainEntity; 4 | import lombok.Getter; 5 | import lombok.Setter; 6 | 7 | import javax.persistence.Column; 8 | import javax.persistence.Entity; 9 | 10 | @Entity 11 | @Getter 12 | @Setter 13 | public class BiFieldMain extends BaseMainEntity { 14 | 15 | @Column(length = 64) 16 | private String comet; 17 | 18 | @Column(length = 64) 19 | private String notes; 20 | 21 | @Column(length = 32) 22 | private String tableid; 23 | } 24 | -------------------------------------------------------------------------------- /vboot-extend-bi/src/main/java/vboot/bi/field/main/BiFieldMainApi.java: -------------------------------------------------------------------------------- 1 | package vboot.bi.field.main; 2 | 3 | import vboot.common.mvc.api.RestResult; 4 | import vboot.common.mvc.dao.Sqler; 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | import org.springframework.web.bind.annotation.*; 7 | 8 | @RestController 9 | @RequestMapping("bi/field/main") 10 | public class BiFieldMainApi { 11 | 12 | private String table = "bi_field_main"; 13 | 14 | @GetMapping 15 | public RestResult get(String name) { 16 | Sqler sqler = new Sqler(table); 17 | sqler.addLike("t.name", name); 18 | sqler.addSelect("t.notes"); 19 | return RestResult.ok(service.findPageData(sqler)); 20 | } 21 | 22 | @GetMapping("one/{id}") 23 | public RestResult getOne(@PathVariable String id) { 24 | BiFieldMain main = service.findOne(id); 25 | return RestResult.ok(main); 26 | } 27 | 28 | @PostMapping 29 | public RestResult post(@RequestBody BiFieldMain main) { 30 | return RestResult.ok(service.insert(main)); 31 | } 32 | 33 | @PutMapping 34 | public RestResult put(@RequestBody BiFieldMain main) { 35 | return RestResult.ok(service.update(main)); 36 | } 37 | 38 | @DeleteMapping("{ids}") 39 | public RestResult delete(@PathVariable String[] ids) { 40 | return RestResult.ok(service.delete(ids)); 41 | } 42 | 43 | @Autowired 44 | private BiFieldMainService service; 45 | 46 | } -------------------------------------------------------------------------------- /vboot-extend-bi/src/main/java/vboot/bi/field/main/BiFieldMainRepo.java: -------------------------------------------------------------------------------- 1 | package vboot.bi.field.main; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | public interface BiFieldMainRepo extends JpaRepository { 6 | 7 | 8 | } 9 | -------------------------------------------------------------------------------- /vboot-extend-bi/src/main/java/vboot/bi/field/main/BiFieldMainService.java: -------------------------------------------------------------------------------- 1 | package vboot.bi.field.main; 2 | 3 | import vboot.common.mvc.service.BaseMainService; 4 | import org.springframework.beans.factory.annotation.Autowired; 5 | import org.springframework.stereotype.Service; 6 | 7 | import javax.annotation.PostConstruct; 8 | 9 | @Service 10 | public class BiFieldMainService extends BaseMainService { 11 | 12 | //----------bean注入------------ 13 | @Autowired 14 | private BiFieldMainRepo repo; 15 | 16 | @PostConstruct 17 | public void initDao() { 18 | super.setRepo(repo); 19 | } 20 | } 21 | 22 | 23 | -------------------------------------------------------------------------------- /vboot-extend-bi/src/main/java/vboot/bi/table/main/BiTableMain.java: -------------------------------------------------------------------------------- 1 | package vboot.bi.table.main; 2 | 3 | import vboot.common.mvc.entity.BaseMainEntity; 4 | import lombok.Getter; 5 | import lombok.Setter; 6 | 7 | import javax.persistence.Column; 8 | import javax.persistence.Entity; 9 | 10 | @Entity 11 | @Getter 12 | @Setter 13 | public class BiTableMain extends BaseMainEntity { 14 | 15 | @Column(length = 64) 16 | private String comet;//注释 17 | 18 | @Column(length = 64) 19 | private String notes;//备注 20 | 21 | 22 | } 23 | -------------------------------------------------------------------------------- /vboot-extend-bi/src/main/java/vboot/bi/table/main/BiTableMainApi.java: -------------------------------------------------------------------------------- 1 | package vboot.bi.table.main; 2 | 3 | import vboot.common.mvc.api.RestResult; 4 | import vboot.common.mvc.dao.Sqler; 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | import org.springframework.web.bind.annotation.*; 7 | 8 | @RestController 9 | @RequestMapping("bi/table/main") 10 | public class BiTableMainApi { 11 | 12 | private String table = "bi_table_main"; 13 | 14 | @GetMapping 15 | public RestResult get(String name) { 16 | Sqler sqler = new Sqler(table); 17 | sqler.addLike("t.name", name); 18 | sqler.addSelect("t.comet,t.notes"); 19 | return RestResult.ok(service.findPageData(sqler)); 20 | } 21 | 22 | @GetMapping("one/{id}") 23 | public RestResult getOne(@PathVariable String id) { 24 | BiTableMain main = service.findOne(id); 25 | return RestResult.ok(main); 26 | } 27 | 28 | @PostMapping 29 | public RestResult post(@RequestBody BiTableMain main) { 30 | return RestResult.ok(service.insert(main)); 31 | } 32 | 33 | @PutMapping 34 | public RestResult put(@RequestBody BiTableMain main) { 35 | return RestResult.ok(service.update(main)); 36 | } 37 | 38 | @DeleteMapping("{ids}") 39 | public RestResult delete(@PathVariable String[] ids) { 40 | return RestResult.ok(service.delete(ids)); 41 | } 42 | 43 | @Autowired 44 | private BiTableMainService service; 45 | 46 | } -------------------------------------------------------------------------------- /vboot-extend-bi/src/main/java/vboot/bi/table/main/BiTableMainRepo.java: -------------------------------------------------------------------------------- 1 | package vboot.bi.table.main; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | public interface BiTableMainRepo extends JpaRepository { 6 | 7 | 8 | } 9 | -------------------------------------------------------------------------------- /vboot-extend-bi/src/main/java/vboot/bi/table/main/BiTableMainService.java: -------------------------------------------------------------------------------- 1 | package vboot.bi.table.main; 2 | 3 | import vboot.common.mvc.service.BaseMainService; 4 | import org.springframework.beans.factory.annotation.Autowired; 5 | import org.springframework.stereotype.Service; 6 | 7 | import javax.annotation.PostConstruct; 8 | 9 | @Service 10 | public class BiTableMainService extends BaseMainService { 11 | 12 | //----------bean注入------------ 13 | @Autowired 14 | private BiTableMainRepo repo; 15 | 16 | @PostConstruct 17 | public void initDao() { 18 | super.setRepo(repo); 19 | } 20 | } 21 | 22 | 23 | --------------------------------------------------------------------------------