Merge remote-tracking branch 'origin/master'
已修改94个文件
已删除28个文件
已重命名43个文件
已添加96个文件
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <project version="4"> |
| | | <component name="ChangeListManager"> |
| | | <list default="true" id="16f0b01c-a58c-44dd-9719-cb51eacd47bf" name="Default Changelist" comment=""> |
| | | <change afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/.browserslistrc" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/.editorconfig" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/.eslintrc.js" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/.gitignore" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/.postcssrc.js" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/.project" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/.settings/.jsdtscope" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/.settings/org.eclipse.wst.jsdt.ui.superType.container" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/.settings/org.eclipse.wst.jsdt.ui.superType.name" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/LICENSE" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/README.md" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/babel.config.js" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/build.sh" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/package-lock.json" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/package.json" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/public/cdn/animate/3.5.2/animate.css" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/public/cdn/avue/2.9.12/avue.min.js" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/public/cdn/avue/2.9.12/index.css" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/public/cdn/axios/1.0.0/axios.min.js" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/public/cdn/element-ui/2.15.6/index.js" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/public/cdn/element-ui/2.15.6/theme-chalk/fonts/element-icons.ttf" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/public/cdn/element-ui/2.15.6/theme-chalk/fonts/element-icons.woff" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/public/cdn/element-ui/2.15.6/theme-chalk/index.css" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/public/cdn/iconfont/avue/iconfont.css" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/public/cdn/iconfont/avue/iconfont.eot" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/public/cdn/iconfont/avue/iconfont.js" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/public/cdn/iconfont/avue/iconfont.json" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/public/cdn/iconfont/avue/iconfont.svg" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/public/cdn/iconfont/avue/iconfont.ttf" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/public/cdn/iconfont/avue/iconfont.woff" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/public/cdn/iconfont/avue/iconfont.woff2" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/public/cdn/iconfont/index.css" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/public/cdn/iconfont/saber/iconfont.css" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/public/cdn/iconfont/saber/iconfont.eot" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/public/cdn/iconfont/saber/iconfont.js" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/public/cdn/iconfont/saber/iconfont.json" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/public/cdn/iconfont/saber/iconfont.svg" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/public/cdn/iconfont/saber/iconfont.ttf" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/public/cdn/iconfont/saber/iconfont.woff" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/public/cdn/iconfont/saber/iconfont.woff2" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/public/cdn/nutflow/wf-design-base/fonts/bpmn.08b5f281.eot" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/public/cdn/nutflow/wf-design-base/fonts/bpmn.3c4c9f45.woff2" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/public/cdn/nutflow/wf-design-base/fonts/bpmn.acbc6cbd.woff" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/public/cdn/nutflow/wf-design-base/fonts/bpmn.f922519e.ttf" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/public/cdn/nutflow/wf-design-base/fonts/codicon.22349029.ttf" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/public/cdn/nutflow/wf-design-base/fonts/fontawesome-webfont.674f50d2.eot" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/public/cdn/nutflow/wf-design-base/fonts/fontawesome-webfont.af7ae505.woff2" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/public/cdn/nutflow/wf-design-base/fonts/fontawesome-webfont.b06871f2.ttf" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/public/cdn/nutflow/wf-design-base/fonts/fontawesome-webfont.fee66e71.woff" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/public/cdn/nutflow/wf-design-base/img/bpmn.1381b44e.svg" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/public/cdn/nutflow/wf-design-base/img/fontawesome-webfont.912ec66d.svg" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/public/cdn/nutflow/wf-design-base/index.umd.min.js" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/public/cdn/vue-router/3.0.1/vue-router.min.js" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/public/cdn/vue/2.6.10/vue.min.js" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/public/cdn/vuex/3.1.1/vuex.min.js" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/public/cdn/xlsx/FileSaver.min.js" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/public/cdn/xlsx/xlsx.full.min.js" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/public/favicon.png" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/public/img/bg/403.svg" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/public/img/bg/404.svg" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/public/img/bg/500.svg" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/public/img/bg/bg.jpg" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/public/img/bg/bg1.jpg" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/public/img/bg/bg2.jpg" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/public/img/bg/bg3.jpg" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/public/img/bg/bg4.jpg" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/public/img/bg/cloud.jpg" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/public/img/bg/img-logo.png" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/public/img/bg/login.png" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/public/img/bg/logo.png" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/public/img/bg/star-squashed.jpg" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/public/img/bg/vip1.png" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/public/img/bg/vip2.png" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/public/img/bg/vip3.png" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/public/img/bg/vip4.png" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/public/img/logo.png" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/public/img/mock/card/card-1.jpg" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/public/img/mock/card/card-2.jpg" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/public/img/mock/card/card-3.jpg" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/public/img/mock/card/card-4.jpg" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/public/img/mock/cli/1.png" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/public/img/mock/cli/2.png" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/public/img/mock/cli/3.png" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/public/img/mock/iconfont.png" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/public/index.html" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/public/svg/loading-spin.svg" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/public/util/aes.js" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/public/util/screen/guge.png" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/public/util/screen/huohu.png" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/public/util/screen/screen.css" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/public/util/screen/screen.js" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/App.vue" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/api/base/region.js" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/api/common.js" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/api/desk/notice.js" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/api/flow/flow.js" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/api/logs.js" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/api/report/report.js" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/api/resource/attach.js" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/api/resource/oss.js" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/api/resource/sms.js" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/api/system/client.js" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/api/system/dept.js" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/api/system/dict.js" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/api/system/dictbiz.js" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/api/system/menu.js" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/api/system/param.js" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/api/system/passwordresultant.js" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/api/system/passwords.js" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/api/system/passwordvalue.js" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/api/system/post.js" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/api/system/role.js" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/api/system/scope.js" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/api/system/tenant.js" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/api/system/tenantpackage.js" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/api/system/topmenu.js" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/api/system/user.js" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/api/tool/code.js" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/api/tool/datasource.js" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/api/tool/model.js" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/api/user.js" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/api/work/process.js" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/api/work/work.js" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/cache.js" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/components/basic-block/main.vue" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/components/basic-container/main.vue" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/components/error-page/403.vue" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/components/error-page/404.vue" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/components/error-page/500.vue" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/components/error-page/style.scss" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/components/flow-design/main.vue" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/components/iframe/main.vue" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/components/third-register/main.vue" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/config/env.js" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/config/iconList.js" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/config/website.js" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/const/tool/model.js" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/docker/Dockerfile" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/error.js" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/lang/en.js" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/lang/index.js" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/lang/zh.js" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/main.js" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/mixins/color.js" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/mixins/crud.js" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/mock/index.js" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/mock/menu.js" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/mock/oauth.js" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/mock/param.js" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/mock/user.js" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/option/system/dict.js" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/option/system/dictbiz.js" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/option/system/param.js" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/option/user/info.js" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/page/index/favicon.png" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/page/index/index.vue" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/page/index/layout.vue" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/page/index/logo.vue" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/page/index/search.vue" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/page/index/sidebar/config.js" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/page/index/sidebar/index.vue" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/page/index/sidebar/sidebarItem.vue" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/page/index/tags.vue" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/page/index/top/index.vue" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/page/index/top/top-color.vue" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/page/index/top/top-lang.vue" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/page/index/top/top-lock.vue" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/page/index/top/top-logs.vue" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/page/index/top/top-menu.vue" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/page/index/top/top-notice.vue" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/page/index/top/top-search.vue" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/page/index/top/top-theme.vue" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/page/lock/index.vue" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/page/login/authredirect.vue" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/page/login/index.vue" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/page/login/thirdlogin.vue" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/page/login/userlogin.vue" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/page/logs/index.vue" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/permission.js" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/router/avue-router.js" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/router/axios.js" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/router/page/index.js" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/router/router.js" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/router/views/index.js" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/store/getters.js" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/store/index.js" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/store/modules/common.js" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/store/modules/dict.js" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/store/modules/logs.js" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/store/modules/tags.js" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/store/modules/user.js" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/styles/animate/vue-transition.scss" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/styles/common.scss" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/styles/element-ui.scss" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/styles/login.scss" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/styles/media.scss" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/styles/mixin.scss" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/styles/normalize.scss" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/styles/sidebar.scss" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/styles/tags.scss" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/styles/theme/bule.scss" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/styles/theme/cool.scss" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/styles/theme/d2.scss" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/styles/theme/dark.scss" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/styles/theme/hey.scss" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/styles/theme/index.scss" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/styles/theme/iview.scss" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/styles/theme/lte.scss" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/styles/theme/star.scss" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/styles/theme/vip.scss" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/styles/theme/white.scss" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/styles/top.scss" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/styles/variables.scss" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/util/admin.js" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/util/auth.js" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/util/crypto.js" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/util/date.js" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/util/flow.js" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/util/func.js" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/util/store.js" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/util/util.js" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/util/validate.js" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/views/authority/apiscope.vue" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/views/authority/datascope.vue" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/views/authority/role.vue" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/views/base/region.vue" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/views/desk/notice.vue" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/views/flow/deploy.vue" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/views/flow/follow.vue" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/views/flow/manager.vue" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/views/flow/model.vue" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/views/monitor/log/api.vue" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/views/monitor/log/error.vue" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/views/monitor/log/usual.vue" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/views/report/reportlist.vue" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/views/resource/attach.vue" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/views/resource/oss.vue" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/views/resource/sms.vue" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/views/system/PasswordManagement/Passwordresultant.vue" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/views/system/PasswordManagement/Passwordvalue.vue" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/views/system/PasswordManagement/passwords.vue" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/views/system/client.vue" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/views/system/dept.vue" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/views/system/dict.vue" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/views/system/dictbiz.vue" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/views/system/menu.vue" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/views/system/param.vue" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/views/system/post.vue" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/views/system/tenant.vue" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/views/system/tenantpackage.vue" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/views/system/topmenu.vue" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/views/system/user.vue" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/views/system/userinfo.vue" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/views/test.vue" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/views/tool/code.vue" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/views/tool/datasource.vue" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/views/tool/model.vue" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/views/util/affix.vue" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/views/util/cache.vue" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/views/util/crud-form.vue" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/views/util/data.vue" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/views/util/demo/dict-classic.vue" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/views/util/demo/dict-horizontal.vue" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/views/util/demo/dict-vertical.vue" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/views/util/demo/dict.vue" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/views/util/demo/dictbiz.vue" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/views/util/form-detail.vue" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/views/util/form.vue" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/views/util/logs.vue" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/views/util/permission.vue" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/views/util/store.vue" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/views/util/table.vue" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/views/util/tags.vue" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/views/util/test.vue" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/views/util/top.vue" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/views/wel/dashboard.vue" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/views/wel/index.vue" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/views/work/claim.vue" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/views/work/done.vue" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/views/work/process/leave/detail.vue" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/views/work/process/leave/form.vue" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/views/work/process/leave/handle.vue" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/views/work/send.vue" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/views/work/start.vue" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/src/views/work/todo.vue" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/public/vue.config.js" afterDir="false" /> |
| | | <list default="true" id="16f0b01c-a58c-44dd-9719-cb51eacd47bf" name="Default Changelist" comment="å¢å æ åç
§ç»ä»¶"> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/src/api/refer/tree.js" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/src/components/refer/vciWebRefer.vue" afterDir="false" /> |
| | | <change afterPath="$PROJECT_DIR$/Source/UBCS-WEB/src/components/refer/vciWebReferTree.vue" afterDir="false" /> |
| | | <change beforePath="$PROJECT_DIR$/Source/UBCS-WEB/src/components/FormTemplate/index.vue" beforeDir="false" afterPath="$PROJECT_DIR$/Source/UBCS-WEB/src/components/FormTemplate/index.vue" afterDir="false" /> |
| | | </list> |
| | | <option name="SHOW_DIALOG" value="false" /> |
| | | <option name="HIGHLIGHT_CONFLICTS" value="true" /> |
| | |
| | | </task> |
| | | <servers /> |
| | | </component> |
| | | <component name="VcsManagerConfiguration"> |
| | | <MESSAGE value="å¢å æ åç
§ç»ä»¶" /> |
| | | <option name="LAST_COMMIT_MESSAGE" value="å¢å æ åç
§ç»ä»¶" /> |
| | | </component> |
| | | </project> |
| | |
| | | "js-base64": "^2.5.1", |
| | | "js-cookie": "^2.2.0", |
| | | "js-md5": "^0.7.3", |
| | | "js-pinyin": "^0.2.4", |
| | | "mockjs": "^1.0.1-beta3", |
| | | "node-gyp": "^5.0.6", |
| | | "nprogress": "^0.2.0", |
¶Ô±ÈÐÂÎļþ |
| | |
| | | import request from "@/router/axios"; |
| | | |
| | | export const MasterTable =(params)=>{ |
| | | return request({ |
| | | url: 'api/ubcs-code/ubcs-code//mdmEngineController/getUIInfoByClassifyOid', |
| | | method: 'get', |
| | | params:{ |
| | | ...params |
| | | } |
| | | }) |
| | | } |
| | | |
| | | export const TableData =(params)=>{ |
| | | return request({ |
| | | url: 'api/ubcs-code/ubcs-code/mdmEngineController/gridTableDataByClassifyOid', |
| | | method: 'get', |
| | | params:{ |
| | | ...params |
| | | } |
| | | }) |
| | | } |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | import request from '@/router/axios'; |
| | | |
| | | export const getReferConfigPage = (page, limit, params) => { |
| | | return request({ |
| | | url: '/api/ubcs-code/codeReferConfig/getReferConfigPage', |
| | | method: 'get', |
| | | params: { |
| | | ...params, |
| | | page, |
| | | limit, |
| | | } |
| | | }) |
| | | } |
| | | |
| | | export const getReferConfigList = (params) => { |
| | | return request({ |
| | | url: '/api/ubcs-code/codeReferConfig/getReferConfigList', |
| | | method: 'get', |
| | | params: { |
| | | ...params |
| | | } |
| | | }) |
| | | } |
| | | |
| | | export const editCodeReferConfig = (CodeReferConfigVO) => { |
| | | return request({ |
| | | url: '/api/ubcs-code/codeReferConfig/edit', |
| | | method: 'put', |
| | | data: CodeReferConfigVO, |
| | | }) |
| | | } |
| | | |
| | | export const addSaveCodeReferConfig = (data) => { |
| | | return request({ |
| | | url: '/api/ubcs-code/codeReferConfig/addSave', |
| | | method: 'post', |
| | | data: data |
| | | }) |
| | | } |
| | | |
| | | export const deleteCodeReferConfig = (codeReferConfigDTO) => { |
| | | return request({ |
| | | url: '/api/ubcs-code/codeReferConfig/del', |
| | | method: 'delete', |
| | | data: codeReferConfigDTO, |
| | | }) |
| | | } |
| | |
| | | }) |
| | | } |
| | | |
| | | export const getFormTemplate = (params) => { |
| | | return request({ |
| | | url: '/ubcs-code/ubcs-code/mdmEngineController/getFormDefineByTemplateOid', |
| | | method: 'get', |
| | | params |
| | | }) |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | |
|
| | | import request from "@/router/axios";
|
| | |
|
| | | // è·åè¡¨åæ¨¡æ¿æ°æ®
|
| | | export const getFormTemplate = (params) => {
|
| | | return request({
|
| | | url: 'api/ubcs-code/ubcs-code/mdmEngineController/getFormDefineByTemplateOid',
|
| | | method: 'get',
|
| | | params
|
| | | })
|
| | | }
|
| | | // è¡¨åæ°æ®æ§è¡ä»£ç
|
| | | export const executeCode = (params) => {
|
| | | return request({
|
| | | url: 'api/ubcs-code/ubcs-code/mdmEngineController/getFormDefineByTemplateOid',
|
| | | method: 'get',
|
| | | params
|
| | | })
|
| | | }
|
| | | // ç¸ä¼¼é¡¹æ¥è¯¢
|
| | | export const findLike = (data) => {
|
| | | return request({
|
| | | url: 'api/mdmEngineController/resembleQuery',
|
| | | method: 'post',
|
| | | data
|
| | | })
|
| | | } |
| | |
| | | method: 'post', |
| | | data: btmType |
| | | }) |
| | | } |
| | | |
| | | export const btmPage = (current,size,params) => { |
| | | return request ({ |
| | | url: '/api/ubcs-omd/btm-type/page', |
| | | method: 'get', |
| | | params: { |
| | | current, |
| | | size, |
| | | ...params |
| | | } |
| | | }) |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <basic-container> |
| | | <avue-crud ref="crud" |
| | | v-loading="loading" |
| | | :data="data" |
| | | :option="option" |
| | | :page="page" |
| | | @sort-change="sortChange" |
| | | @selection-change="selectionChange" |
| | | @on-load="onLoad"> |
| | | <template slot="menu"> |
| | | <el-button type="text">æåæé®</el-button> |
| | | </template> |
| | | <template slot="menuLeft"> |
| | | <div> |
| | | <el-table :data="tableData" style="width: 100%" @cell-click="handleCellClick" @cell-dblclick="dbclick"> |
| | | <div v-for="(item,index) in this.tableHeadData" :key="index"> |
| | | <el-table-column :label="item.label" :prop="item.prop"> |
| | | <!-- ç¼è¾åå±ç¤ºé»è¾ --> |
| | | <template slot-scope="{ row }"> |
| | | <el-input v-if="editingRow === row && editShow== item.prop" v-model="row[item.prop]" @blur="saveRow"></el-input> |
| | | <span v-else>{{row[item.prop]}}</span> |
| | | </template> |
| | | </el-table-column> |
| | | </div> |
| | | <el-table-column fixed="right" label="æä½" width="120"> |
| | | <template slot-scope="scope"> |
| | | <el-button size="small" type="text" @click.native.prevent="enumDeleteRow(scope.$index, tableData)"> |
| | | ç§»é¤ |
| | | </el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | <template> |
| | | <div style="display: flex;justify-content: right;margin-top: 15px"> |
| | | <el-button type="primary" size="small">ä¿å</el-button> |
| | | <el-button size="small" @click="enumVisible=false">åæ¶</el-button> |
| | | </div> |
| | | </template> |
| | | </div> |
| | | </template> |
| | | </avue-crud> |
| | | </basic-container> |
| | | </template> |
| | | |
| | | <script> |
| | | import {MasterTable, TableData} from "@/api/GetItem"; |
| | | |
| | | export default { |
| | | name: "Crud.vue", |
| | | data() { |
| | | return { |
| | | editingRow:null, |
| | | editShow: "", |
| | | editAttr:"", |
| | | loading: false, |
| | | data: [], |
| | | option: { |
| | | //é»è®¤é«åº¦, |
| | | align: 'center', |
| | | menuAlign: 'center', |
| | | addBtn: false, |
| | | editBtn: false, |
| | | selection: true, |
| | | selectionFixed: false, |
| | | index: true, |
| | | column: [] |
| | | }, |
| | | List: [], |
| | | columnType: { |
| | | text: "input", |
| | | combox: "select", |
| | | truefalse: "switch", |
| | | number: "number", |
| | | datetime: "datetime", |
| | | }, |
| | | page: { |
| | | total: 0, |
| | | currentPage: 1, |
| | | pageSize: 10, |
| | | pageSizes: [10, 30, 50, 100, 200], |
| | | }, |
| | | tableData:[], |
| | | tableHeadData:[], |
| | | items:{} |
| | | } |
| | | }, |
| | | computed:{ |
| | | editable(){ |
| | | this.tableData.forEach(item=>{ |
| | | this.items=item |
| | | }) |
| | | return this.editShow === this.editingRow[this.items.prop]; |
| | | } |
| | | }, |
| | | created() { |
| | | this.CrudHeaderRend(); |
| | | this.CrudRend() |
| | | }, |
| | | activated() { |
| | | this.doLayout() |
| | | }, |
| | | methods: { |
| | | // çå¬åå
æ ¼ç¹å»äºä»¶å¹¶å卿£å¨ç¼è¾çè¡ |
| | | handleCellClick(row, column) { |
| | | this.editingRow = row; |
| | | this.editShow = column.property; |
| | | console.log( this.editingRow['name'], this.editShow) |
| | | }, |
| | | //æä¸¾æ³¨å
¥å é¤ |
| | | enumDeleteRow(row) { |
| | | console.log(row) |
| | | this.tableData.splice(row, 1) |
| | | }, |
| | | // å°æ£å¨ç¼è¾çè¡çç¶æå为 null ï¼å³éåºç¼è¾ç¶æ |
| | | saveRow() { |
| | | this.editingRow = null; |
| | | }, |
| | | doLayout() { |
| | | this.$nextTick(() => { |
| | | this.$refs.crud.doLayout(); |
| | | }); |
| | | }, |
| | | //è¡¨æ ¼å¤´æ¸²æ |
| | | CrudHeaderRend() { |
| | | MasterTable({ |
| | | codeClassifyOid: "D9CF223F-317D-71EB-BD11-433A94CAD9F3", |
| | | functionId: 5, |
| | | _: 1685067339479 |
| | | }).then(res => { |
| | | this.List = res.data.tableDefineVO.cols[0]; |
| | | this.List.forEach(item => { |
| | | let columnItem = { |
| | | label: item.title, |
| | | prop: item.field, |
| | | type: this.columnType[item.type], |
| | | sortable: item.sort, |
| | | width: item.minWidth |
| | | }; |
| | | this.option.column.push(columnItem); |
| | | this.option.column=this.tableHeadData; |
| | | }) |
| | | }) |
| | | }, |
| | | //è¡¨æ ¼æ°æ® |
| | | CrudRend() { |
| | | TableData({ |
| | | templateOid: "A12826E4-2B66-6D56-DE30-92BB1D7F607F", |
| | | codeClassifyOid: "D9CF223F-317D-71EB-BD11-433A94CAD9F3", |
| | | page: this.page.currentPage, |
| | | limit: this.page.pageSize, |
| | | _: 1685089123575 |
| | | }).then(res => { |
| | | this.page.total = res.data.total; |
| | | this.data = res.data.data; |
| | | this.tableData=res.data.data; |
| | | }) |
| | | }, |
| | | // æåº |
| | | sortChange(val) { |
| | | this.loading = true; |
| | | let order = "" |
| | | if (val.order == "ascending") { |
| | | order = "asc"; |
| | | } else { |
| | | order = "desc"; |
| | | } |
| | | TableData({ |
| | | templateOid: "A12826E4-2B66-6D56-DE30-92BB1D7F607F", |
| | | codeClassifyOid: "D9CF223F-317D-71EB-BD11-433A94CAD9F3", |
| | | order: order, |
| | | sort: val.prop, |
| | | page: this.page.currentPage, |
| | | limit: this.page.pageSize, |
| | | }).then(res => { |
| | | setTimeout(() => { |
| | | this.data = res.data.data; |
| | | this.loading = false; |
| | | }, 100); |
| | | }) |
| | | }, |
| | | //å页巿° |
| | | async onLoad(val) { |
| | | console.log(val) |
| | | await TableData({ |
| | | templateOid: "A12826E4-2B66-6D56-DE30-92BB1D7F607F", |
| | | codeClassifyOid: "D9CF223F-317D-71EB-BD11-433A94CAD9F3", |
| | | page: val.currentPage, |
| | | limit: val.pageSize, |
| | | _: 1685089123575 |
| | | }).then(res => { |
| | | this.data = res.data.data; |
| | | }) |
| | | }, |
| | | //å¤é |
| | | selectionChange(row) { |
| | | console.log(row) |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style scoped> |
| | | |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template>
|
| | | <div v-if="visible">
|
| | | <el-tabs v-model="activeName" type="card" @tab-click="handleClick">
|
| | | <el-tab-pane label="ç¸ä¼¼é¡¹æ°æ®" name="findlike">
|
| | | <el-table
|
| | | :data="tableData"
|
| | | v-loading="loading"
|
| | | height="250"
|
| | | :border="true"
|
| | | >
|
| | | <el-table-column
|
| | | v-for="item in column"
|
| | | :key="item.prop"
|
| | | :prop="item.prop"
|
| | | :label="item.label"
|
| | | >
|
| | | <template #default="{ row }">
|
| | | <el-button type="text" @click="openFormTemlpate(row)">{{
|
| | | row.id
|
| | | }}</el-button>
|
| | | </template>
|
| | | </el-table-column>
|
| | | </el-table>
|
| | | </el-tab-pane>
|
| | | </el-tabs>
|
| | |
|
| | | <FormTemplate
|
| | | type="detail"
|
| | | :visible.sync="templateVisible"
|
| | | templateOid="78B8C7C5-A042-0B96-FE6D-65421451782A"
|
| | | codeClassifyOid="4524E801-6CC6-92E8-1AC3-2AB9604E8F96"
|
| | | ></FormTemplate>
|
| | | </div>
|
| | | </template>
|
| | |
|
| | | <script>
|
| | | import { findLike } from "@/api/formTemplate";
|
| | | import FormTemplate from "./index.vue";
|
| | | export default {
|
| | | name: "FindLike",
|
| | | components: { FormTemplate },
|
| | | props: {
|
| | | column: {
|
| | | type: Array,
|
| | | default: () => [{ prop: "id", label: "代å·" }],
|
| | | },
|
| | | },
|
| | | data() {
|
| | | return {
|
| | | visible: false,
|
| | | templateVisible: false,
|
| | | activeName: 'findlike',
|
| | | tableData: [
|
| | | {
|
| | | lastmodifier: "1(ä¸å¡æµè¯)",
|
| | | revisionseq: "1",
|
| | | versionvalue: "1",
|
| | | secondfl: "",
|
| | | versionseq: "1",
|
| | | checkinby: "",
|
| | | firstfl: "",
|
| | | jiliangdwname: "",
|
| | | materialtype: "1001",
|
| | | materialtypeText: "ææ",
|
| | | chukufangshi: "å
è¿å
åº",
|
| | | hesuanfenlei: "",
|
| | | lctid: "wupinLC",
|
| | | id: "******",
|
| | | isfirstv: "1",
|
| | | revisionoid: "C2FD69E0-59CA-7A3C-D3BE-A95AB67F81D4",
|
| | | checkouttime: "",
|
| | | btmname: "wupin",
|
| | | codeclsfid: "4524E801-6CC6-92E8-1AC3-2AB9604E8F96",
|
| | | revisionvalue: "1",
|
| | | secretgradeText: "æ®éåå¯",
|
| | | name: "",
|
| | | secretgrade: "2",
|
| | | isfirstr: "1",
|
| | | xinghaoguige: "",
|
| | | materialname: "test12",
|
| | | codetemplateoid: "78B8C7C5-A042-0B96-FE6D-65421451782A",
|
| | | description: "",
|
| | | oid: "5052756D-CE43-8F30-AE6B-A4F4102A66C5",
|
| | | thrifl: "",
|
| | | revisionrule: "numberversionrule",
|
| | | lcstatus_text: "ç¼è¾ä¸",
|
| | | oldcode: "223",
|
| | | hesuanfenleiname: "",
|
| | | codeclsfpath:
|
| | | "D9CF223F-317D-71EB-BD11-433A94CAD9F3##535FC9B6-FE27-241F-5FCA-ED4DC17CF95B##8EB35A1D-AB8B-2255-565C-84D309E0C62B##4524E801-6CC6-92E8-1AC3-2AB9604E8F96",
|
| | | owner: "1",
|
| | | xiaoshouwl: "false",
|
| | | checkoutby: "",
|
| | | creator: "1(ä¸å¡æµè¯)",
|
| | | createtime: "2023-04-12 21:53:06.637",
|
| | | tuhao: "yy002",
|
| | | beizhushuoming: "",
|
| | | versionrule: "0",
|
| | | jiliangdw: "个",
|
| | | islastr: "1",
|
| | | copyfromversion: "",
|
| | | materialclassify: "",
|
| | | lastmodifytime: "2023-04-12 21:53:06.637",
|
| | | nameoid: "69E5E86F-AD62-1DBE-05D3-E0CE4C07408F",
|
| | | lcstatus: "Editing",
|
| | | islastv: "1",
|
| | | checkintime: "",
|
| | | ts: "2023-04-12 21:53:06.637",
|
| | | },
|
| | | {
|
| | | lastmodifier: "1(ä¸å¡æµè¯)",
|
| | | revisionseq: "1",
|
| | | versionvalue: "1",
|
| | | secondfl: "",
|
| | | versionseq: "1",
|
| | | checkinby: "",
|
| | | firstfl: "",
|
| | | jiliangdwname: "",
|
| | | materialtype: "1001",
|
| | | materialtypeText: "ææ",
|
| | | chukufangshi: "å
è¿å
åº",
|
| | | hesuanfenlei: "",
|
| | | lctid: "wupinLC",
|
| | | id: "******",
|
| | | isfirstv: "1",
|
| | | revisionoid: "C33464B7-79A8-095B-D6FC-F9EB2EA0C985",
|
| | | checkouttime: "",
|
| | | btmname: "wupin",
|
| | | codeclsfid: "4524E801-6CC6-92E8-1AC3-2AB9604E8F96",
|
| | | revisionvalue: "1",
|
| | | secretgradeText: "æ®éåå¯",
|
| | | name: "",
|
| | | secretgrade: "2",
|
| | | isfirstr: "1",
|
| | | xinghaoguige: "",
|
| | | materialname: "test12",
|
| | | codetemplateoid: "78B8C7C5-A042-0B96-FE6D-65421451782A",
|
| | | description: "",
|
| | | oid: "4AF61981-D2E8-D8A2-9704-D12B043C22D1",
|
| | | thrifl: "",
|
| | | revisionrule: "numberversionrule",
|
| | | lcstatus_text: "ç¼è¾ä¸",
|
| | | oldcode: "223",
|
| | | hesuanfenleiname: "",
|
| | | codeclsfpath:
|
| | | "D9CF223F-317D-71EB-BD11-433A94CAD9F3##535FC9B6-FE27-241F-5FCA-ED4DC17CF95B##8EB35A1D-AB8B-2255-565C-84D309E0C62B##4524E801-6CC6-92E8-1AC3-2AB9604E8F96",
|
| | | owner: "1",
|
| | | xiaoshouwl: "false",
|
| | | checkoutby: "",
|
| | | creator: "1(ä¸å¡æµè¯)",
|
| | | createtime: "2023-04-12 21:51:06.262",
|
| | | tuhao: "yy002",
|
| | | beizhushuoming: "",
|
| | | versionrule: "0",
|
| | | jiliangdw: "个",
|
| | | islastr: "1",
|
| | | copyfromversion: "",
|
| | | materialclassify: "",
|
| | | lastmodifytime: "2023-04-12 21:51:06.262",
|
| | | nameoid: "53E9B351-C410-2A78-3DC0-159BB3E695F9",
|
| | | lcstatus: "Editing",
|
| | | islastv: "1",
|
| | | checkintime: "",
|
| | | ts: "2023-04-12 21:51:06.262",
|
| | | },
|
| | | {
|
| | | lastmodifier: "1(ä¸å¡æµè¯)",
|
| | | revisionseq: "1",
|
| | | versionvalue: "1",
|
| | | secondfl: "",
|
| | | versionseq: "1",
|
| | | checkinby: "",
|
| | | firstfl: "",
|
| | | jiliangdwname: "",
|
| | | materialtype: "1001",
|
| | | materialtypeText: "ææ",
|
| | | chukufangshi: "å
è¿å
åº",
|
| | | hesuanfenlei: "",
|
| | | lctid: "wupinLC",
|
| | | id: "******",
|
| | | isfirstv: "1",
|
| | | revisionoid: "00813CDD-4066-5FF5-0AAF-4AFCDB0C2CAE",
|
| | | checkouttime: "",
|
| | | btmname: "wupin",
|
| | | codeclsfid: "4524E801-6CC6-92E8-1AC3-2AB9604E8F96",
|
| | | revisionvalue: "1",
|
| | | secretgradeText: "æ®éåå¯",
|
| | | name: "",
|
| | | secretgrade: "2",
|
| | | isfirstr: "1",
|
| | | xinghaoguige: "",
|
| | | materialname: "test12",
|
| | | codetemplateoid: "78B8C7C5-A042-0B96-FE6D-65421451782A",
|
| | | description: "",
|
| | | oid: "47E45EAF-74E3-C722-3FCA-8FC8F996684F",
|
| | | thrifl: "",
|
| | | revisionrule: "numberversionrule",
|
| | | lcstatus_text: "ç¼è¾ä¸",
|
| | | oldcode: "223",
|
| | | hesuanfenleiname: "",
|
| | | codeclsfpath:
|
| | | "D9CF223F-317D-71EB-BD11-433A94CAD9F3##535FC9B6-FE27-241F-5FCA-ED4DC17CF95B##8EB35A1D-AB8B-2255-565C-84D309E0C62B##4524E801-6CC6-92E8-1AC3-2AB9604E8F96",
|
| | | owner: "1",
|
| | | xiaoshouwl: "false",
|
| | | checkoutby: "",
|
| | | creator: "1(ä¸å¡æµè¯)",
|
| | | createtime: "2023-04-12 21:41:14.965",
|
| | | tuhao: "yy002",
|
| | | beizhushuoming: "",
|
| | | versionrule: "0",
|
| | | jiliangdw: "个",
|
| | | islastr: "1",
|
| | | copyfromversion: "",
|
| | | materialclassify: "",
|
| | | lastmodifytime: "2023-04-12 21:41:14.965",
|
| | | nameoid: "0AA8ACA8-1961-A670-93C5-744DCFF64238",
|
| | | lcstatus: "Editing",
|
| | | islastv: "1",
|
| | | checkintime: "",
|
| | | ts: "2023-04-12 21:41:14.965",
|
| | | },
|
| | | {
|
| | | lastmodifier: "1(ä¸å¡æµè¯)",
|
| | | revisionseq: "1",
|
| | | versionvalue: "1",
|
| | | secondfl: "",
|
| | | versionseq: "1",
|
| | | checkinby: "",
|
| | | firstfl: "",
|
| | | jiliangdwname: "",
|
| | | materialtype: "1001",
|
| | | materialtypeText: "ææ",
|
| | | chukufangshi: "å
è¿å
åº",
|
| | | hesuanfenlei: "",
|
| | | lctid: "wupinLC",
|
| | | id: "******",
|
| | | isfirstv: "1",
|
| | | revisionoid: "413C9BA4-877D-AC01-554D-4DF3CCC0CCA5",
|
| | | checkouttime: "",
|
| | | btmname: "wupin",
|
| | | codeclsfid: "4524E801-6CC6-92E8-1AC3-2AB9604E8F96",
|
| | | revisionvalue: "1",
|
| | | secretgradeText: "æ®éåå¯",
|
| | | name: "",
|
| | | secretgrade: "2",
|
| | | isfirstr: "1",
|
| | | xinghaoguige: "",
|
| | | materialname: "test12",
|
| | | codetemplateoid: "78B8C7C5-A042-0B96-FE6D-65421451782A",
|
| | | description: "",
|
| | | oid: "E2F85B5B-9812-0A03-59D1-F4A48BCDA20B",
|
| | | thrifl: "",
|
| | | revisionrule: "numberversionrule",
|
| | | lcstatus_text: "ç¼è¾ä¸",
|
| | | oldcode: "223",
|
| | | hesuanfenleiname: "",
|
| | | codeclsfpath:
|
| | | "D9CF223F-317D-71EB-BD11-433A94CAD9F3##535FC9B6-FE27-241F-5FCA-ED4DC17CF95B##8EB35A1D-AB8B-2255-565C-84D309E0C62B##4524E801-6CC6-92E8-1AC3-2AB9604E8F96",
|
| | | owner: "1",
|
| | | xiaoshouwl: "false",
|
| | | checkoutby: "",
|
| | | creator: "1(ä¸å¡æµè¯)",
|
| | | createtime: "2023-04-12 21:38:11.315",
|
| | | tuhao: "yy002",
|
| | | beizhushuoming: "",
|
| | | versionrule: "0",
|
| | | jiliangdw: "个",
|
| | | islastr: "1",
|
| | | copyfromversion: "",
|
| | | materialclassify: "",
|
| | | lastmodifytime: "2023-04-12 21:38:11.315",
|
| | | nameoid: "231D873D-ADF0-1E46-5E02-A2C0C1667324",
|
| | | lcstatus: "Editing",
|
| | | islastv: "1",
|
| | | checkintime: "",
|
| | | ts: "2023-04-12 21:38:11.315",
|
| | | },
|
| | | {
|
| | | lastmodifier: "1(ä¸å¡æµè¯)",
|
| | | revisionseq: "1",
|
| | | versionvalue: "1",
|
| | | secondfl: "",
|
| | | versionseq: "1",
|
| | | checkinby: "",
|
| | | firstfl: "",
|
| | | jiliangdwname: "",
|
| | | materialtype: "1001",
|
| | | materialtypeText: "ææ",
|
| | | chukufangshi: "å
è¿å
åº",
|
| | | hesuanfenlei: "",
|
| | | lctid: "wupinLC",
|
| | | id: "******",
|
| | | isfirstv: "1",
|
| | | revisionoid: "99E22C15-228E-E64B-E0F4-BB699CF1E686",
|
| | | checkouttime: "",
|
| | | btmname: "wupin",
|
| | | codeclsfid: "4524E801-6CC6-92E8-1AC3-2AB9604E8F96",
|
| | | revisionvalue: "1",
|
| | | secretgradeText: "æ®éåå¯",
|
| | | name: "",
|
| | | secretgrade: "2",
|
| | | isfirstr: "1",
|
| | | xinghaoguige: "",
|
| | | materialname: "test1223",
|
| | | codetemplateoid: "78B8C7C5-A042-0B96-FE6D-65421451782A",
|
| | | description: "",
|
| | | oid: "A750F940-B2EA-DB08-5240-1379FE34E9C1",
|
| | | thrifl: "",
|
| | | revisionrule: "numberversionrule",
|
| | | lcstatus_text: "ç¼è¾ä¸",
|
| | | oldcode: "223",
|
| | | hesuanfenleiname: "",
|
| | | codeclsfpath:
|
| | | "D9CF223F-317D-71EB-BD11-433A94CAD9F3##535FC9B6-FE27-241F-5FCA-ED4DC17CF95B##8EB35A1D-AB8B-2255-565C-84D309E0C62B##4524E801-6CC6-92E8-1AC3-2AB9604E8F96",
|
| | | owner: "1",
|
| | | xiaoshouwl: "false",
|
| | | checkoutby: "",
|
| | | creator: "1(ä¸å¡æµè¯)",
|
| | | createtime: "2023-04-12 21:26:31.626",
|
| | | tuhao: "yy002",
|
| | | beizhushuoming: "",
|
| | | versionrule: "0",
|
| | | jiliangdw: "个",
|
| | | islastr: "1",
|
| | | copyfromversion: "",
|
| | | materialclassify: "",
|
| | | lastmodifytime: "2023-04-12 21:26:31.626",
|
| | | nameoid: "B38F560F-38EF-4E80-A843-0EF0556DBE1A",
|
| | | lcstatus: "Editing",
|
| | | islastv: "1",
|
| | | checkintime: "",
|
| | | ts: "2023-04-12 21:26:31.626",
|
| | | },
|
| | | {
|
| | | lastmodifier: "1(ä¸å¡æµè¯)",
|
| | | revisionseq: "1",
|
| | | versionvalue: "1",
|
| | | secondfl: "",
|
| | | versionseq: "1",
|
| | | checkinby: "",
|
| | | firstfl: "",
|
| | | jiliangdwname: "",
|
| | | materialtype: "1001",
|
| | | materialtypeText: "ææ",
|
| | | chukufangshi: "å
è¿å
åº",
|
| | | hesuanfenlei: "",
|
| | | lctid: "wupinLC",
|
| | | id: "******",
|
| | | isfirstv: "1",
|
| | | revisionoid: "0D8A595E-962C-E88A-1B75-CCBA29675B7A",
|
| | | checkouttime: "",
|
| | | btmname: "wupin",
|
| | | codeclsfid: "4524E801-6CC6-92E8-1AC3-2AB9604E8F96",
|
| | | revisionvalue: "1",
|
| | | secretgradeText: "æ®éåå¯",
|
| | | name: "",
|
| | | secretgrade: "2",
|
| | | isfirstr: "1",
|
| | | xinghaoguige: "",
|
| | | materialname: "test12",
|
| | | codetemplateoid: "78B8C7C5-A042-0B96-FE6D-65421451782A",
|
| | | description: "",
|
| | | oid: "80602381-F29D-E6A3-9DD4-FEF211DB8EAA",
|
| | | thrifl: "",
|
| | | revisionrule: "numberversionrule",
|
| | | lcstatus_text: "ç¼è¾ä¸",
|
| | | oldcode: "223",
|
| | | hesuanfenleiname: "",
|
| | | codeclsfpath:
|
| | | "D9CF223F-317D-71EB-BD11-433A94CAD9F3##535FC9B6-FE27-241F-5FCA-ED4DC17CF95B##8EB35A1D-AB8B-2255-565C-84D309E0C62B##4524E801-6CC6-92E8-1AC3-2AB9604E8F96",
|
| | | owner: "1",
|
| | | xiaoshouwl: "false",
|
| | | checkoutby: "",
|
| | | creator: "1(ä¸å¡æµè¯)",
|
| | | createtime: "2023-04-12 21:20:08.311",
|
| | | tuhao: "yy002",
|
| | | beizhushuoming: "",
|
| | | versionrule: "0",
|
| | | jiliangdw: "个",
|
| | | islastr: "1",
|
| | | copyfromversion: "",
|
| | | materialclassify: "",
|
| | | lastmodifytime: "2023-04-12 21:20:08.311",
|
| | | nameoid: "DBDF377F-F7CF-67BA-673B-D8DE7E6D6587",
|
| | | lcstatus: "Editing",
|
| | | islastv: "1",
|
| | | checkintime: "",
|
| | | ts: "2023-04-12 21:20:08.311",
|
| | | },
|
| | | {
|
| | | lastmodifier: "1(ä¸å¡æµè¯)",
|
| | | revisionseq: "1",
|
| | | versionvalue: "1",
|
| | | secondfl: "",
|
| | | versionseq: "1",
|
| | | checkinby: "",
|
| | | firstfl: "",
|
| | | jiliangdwname: "",
|
| | | materialtype: "1001",
|
| | | materialtypeText: "ææ",
|
| | | chukufangshi: "å
è¿å
åº",
|
| | | hesuanfenlei: "",
|
| | | lctid: "wupinLC",
|
| | | id: "******",
|
| | | isfirstv: "1",
|
| | | revisionoid: "3EFB6B91-E320-58DD-8402-956E9D416D2C",
|
| | | checkouttime: "",
|
| | | btmname: "wupin",
|
| | | codeclsfid: "4524E801-6CC6-92E8-1AC3-2AB9604E8F96",
|
| | | revisionvalue: "1",
|
| | | secretgradeText: "æ®éåå¯",
|
| | | name: "",
|
| | | secretgrade: "2",
|
| | | isfirstr: "1",
|
| | | xinghaoguige: "",
|
| | | materialname: "test12",
|
| | | codetemplateoid: "78B8C7C5-A042-0B96-FE6D-65421451782A",
|
| | | description: "",
|
| | | oid: "0B6D7C29-DE6A-9D81-BC11-EB39D454877F",
|
| | | thrifl: "",
|
| | | revisionrule: "numberversionrule",
|
| | | lcstatus_text: "ç¼è¾ä¸",
|
| | | oldcode: "223",
|
| | | hesuanfenleiname: "",
|
| | | codeclsfpath:
|
| | | "D9CF223F-317D-71EB-BD11-433A94CAD9F3##535FC9B6-FE27-241F-5FCA-ED4DC17CF95B##8EB35A1D-AB8B-2255-565C-84D309E0C62B##4524E801-6CC6-92E8-1AC3-2AB9604E8F96",
|
| | | owner: "1",
|
| | | xiaoshouwl: "false",
|
| | | checkoutby: "",
|
| | | creator: "1(ä¸å¡æµè¯)",
|
| | | createtime: "2023-04-12 21:16:24.964",
|
| | | tuhao: "yy002",
|
| | | beizhushuoming: "",
|
| | | versionrule: "0",
|
| | | jiliangdw: "个",
|
| | | islastr: "1",
|
| | | copyfromversion: "",
|
| | | materialclassify: "",
|
| | | lastmodifytime: "2023-04-12 21:16:24.964",
|
| | | nameoid: "3B3C476A-74E2-FF4A-7228-01D1F1EA18B8",
|
| | | lcstatus: "Editing",
|
| | | islastv: "1",
|
| | | checkintime: "",
|
| | | ts: "2023-04-12 21:16:24.964",
|
| | | },
|
| | | {
|
| | | lastmodifier: "1(ä¸å¡æµè¯)",
|
| | | revisionseq: "1",
|
| | | versionvalue: "1",
|
| | | secondfl: "",
|
| | | versionseq: "1",
|
| | | checkinby: "",
|
| | | firstfl: "",
|
| | | jiliangdwname: "",
|
| | | materialtype: "1001",
|
| | | materialtypeText: "ææ",
|
| | | chukufangshi: "å
è¿å
åº",
|
| | | hesuanfenlei: "",
|
| | | lctid: "wupinLC",
|
| | | id: "******",
|
| | | isfirstv: "1",
|
| | | revisionoid: "F3EB357A-1285-6BED-105E-4E4F1230CB76",
|
| | | checkouttime: "",
|
| | | btmname: "wupin",
|
| | | codeclsfid: "4524E801-6CC6-92E8-1AC3-2AB9604E8F96",
|
| | | revisionvalue: "1",
|
| | | secretgradeText: "æ®éåå¯",
|
| | | name: "",
|
| | | secretgrade: "2",
|
| | | isfirstr: "1",
|
| | | xinghaoguige: "",
|
| | | materialname: "test12",
|
| | | codetemplateoid: "78B8C7C5-A042-0B96-FE6D-65421451782A",
|
| | | description: "",
|
| | | oid: "247CF179-AA18-E636-F66E-054BF1A4A03C",
|
| | | thrifl: "",
|
| | | revisionrule: "numberversionrule",
|
| | | lcstatus_text: "ç¼è¾ä¸",
|
| | | oldcode: "223",
|
| | | hesuanfenleiname: "",
|
| | | codeclsfpath:
|
| | | "D9CF223F-317D-71EB-BD11-433A94CAD9F3##535FC9B6-FE27-241F-5FCA-ED4DC17CF95B##8EB35A1D-AB8B-2255-565C-84D309E0C62B##4524E801-6CC6-92E8-1AC3-2AB9604E8F96",
|
| | | owner: "1",
|
| | | xiaoshouwl: "false",
|
| | | checkoutby: "",
|
| | | creator: "1(ä¸å¡æµè¯)",
|
| | | createtime: "2023-04-12 20:28:37.591",
|
| | | tuhao: "yy002",
|
| | | beizhushuoming: "",
|
| | | versionrule: "0",
|
| | | jiliangdw: "个",
|
| | | islastr: "1",
|
| | | copyfromversion: "",
|
| | | materialclassify: "",
|
| | | lastmodifytime: "2023-04-12 20:28:37.591",
|
| | | nameoid: "F95AF399-F100-8CD0-F944-DE528F8DFC93",
|
| | | lcstatus: "Editing",
|
| | | islastv: "1",
|
| | | checkintime: "",
|
| | | ts: "2023-04-12 20:28:37.591",
|
| | | },
|
| | | {
|
| | | lastmodifier: "1(ä¸å¡æµè¯)",
|
| | | revisionseq: "1",
|
| | | versionvalue: "1",
|
| | | secondfl: "",
|
| | | versionseq: "1",
|
| | | checkinby: "",
|
| | | firstfl: "",
|
| | | jiliangdwname: "",
|
| | | materialtype: "1001",
|
| | | materialtypeText: "ææ",
|
| | | chukufangshi: "å
è¿å
åº",
|
| | | hesuanfenlei: "",
|
| | | lctid: "wupinLC",
|
| | | id: "******",
|
| | | isfirstv: "1",
|
| | | revisionoid: "610F9365-8E6E-699F-07A0-BC35601BD952",
|
| | | checkouttime: "",
|
| | | btmname: "wupin",
|
| | | codeclsfid: "4524E801-6CC6-92E8-1AC3-2AB9604E8F96",
|
| | | revisionvalue: "1",
|
| | | secretgradeText: "æ®éåå¯",
|
| | | name: "",
|
| | | secretgrade: "2",
|
| | | isfirstr: "1",
|
| | | xinghaoguige: "",
|
| | | materialname: "test12",
|
| | | codetemplateoid: "78B8C7C5-A042-0B96-FE6D-65421451782A",
|
| | | description: "",
|
| | | oid: "9DBE4C77-D0E6-4326-621D-EA9AACD86AD4",
|
| | | thrifl: "",
|
| | | revisionrule: "numberversionrule",
|
| | | lcstatus_text: "ç¼è¾ä¸",
|
| | | oldcode: "223",
|
| | | hesuanfenleiname: "",
|
| | | codeclsfpath:
|
| | | "D9CF223F-317D-71EB-BD11-433A94CAD9F3##535FC9B6-FE27-241F-5FCA-ED4DC17CF95B##8EB35A1D-AB8B-2255-565C-84D309E0C62B##4524E801-6CC6-92E8-1AC3-2AB9604E8F96",
|
| | | owner: "1",
|
| | | xiaoshouwl: "false",
|
| | | checkoutby: "",
|
| | | creator: "1(ä¸å¡æµè¯)",
|
| | | createtime: "2023-04-12 20:27:05.35",
|
| | | tuhao: "yy002",
|
| | | beizhushuoming: "",
|
| | | versionrule: "0",
|
| | | jiliangdw: "个",
|
| | | islastr: "1",
|
| | | copyfromversion: "",
|
| | | materialclassify: "",
|
| | | lastmodifytime: "2023-04-12 20:27:05.35",
|
| | | nameoid: "B1B51981-A1D9-20A0-F974-5A61C1B9F3FF",
|
| | | lcstatus: "Editing",
|
| | | islastv: "1",
|
| | | checkintime: "",
|
| | | ts: "2023-04-12 20:27:05.35",
|
| | | },
|
| | | {
|
| | | lastmodifier: "1(ä¸å¡æµè¯)",
|
| | | revisionseq: "1",
|
| | | versionvalue: "1",
|
| | | secondfl: "",
|
| | | versionseq: "1",
|
| | | checkinby: "",
|
| | | firstfl: "",
|
| | | jiliangdwname: "",
|
| | | materialtype: "1001",
|
| | | materialtypeText: "ææ",
|
| | | chukufangshi: "å
è¿å
åº",
|
| | | hesuanfenlei: "",
|
| | | lctid: "wupinLC",
|
| | | id: "******",
|
| | | isfirstv: "1",
|
| | | revisionoid: "7AF39DAB-A6EA-C0E0-303F-BD8B493553AE",
|
| | | checkouttime: "",
|
| | | btmname: "wupin",
|
| | | codeclsfid: "4524E801-6CC6-92E8-1AC3-2AB9604E8F96",
|
| | | revisionvalue: "1",
|
| | | secretgradeText: "æ®éåå¯",
|
| | | name: "",
|
| | | secretgrade: "2",
|
| | | isfirstr: "1",
|
| | | xinghaoguige: "",
|
| | | materialname: "test12",
|
| | | codetemplateoid: "78B8C7C5-A042-0B96-FE6D-65421451782A",
|
| | | description: "",
|
| | | oid: "CD5EF43C-41E5-A0AC-42B1-BBEE6535AE1C",
|
| | | thrifl: "",
|
| | | revisionrule: "numberversionrule",
|
| | | lcstatus_text: "ç¼è¾ä¸",
|
| | | oldcode: "223",
|
| | | hesuanfenleiname: "",
|
| | | codeclsfpath:
|
| | | "D9CF223F-317D-71EB-BD11-433A94CAD9F3##535FC9B6-FE27-241F-5FCA-ED4DC17CF95B##8EB35A1D-AB8B-2255-565C-84D309E0C62B##4524E801-6CC6-92E8-1AC3-2AB9604E8F96",
|
| | | owner: "1",
|
| | | xiaoshouwl: "false",
|
| | | checkoutby: "",
|
| | | creator: "1(ä¸å¡æµè¯)",
|
| | | createtime: "2023-04-12 20:25:28.642",
|
| | | tuhao: "yy002",
|
| | | beizhushuoming: "",
|
| | | versionrule: "0",
|
| | | jiliangdw: "个",
|
| | | islastr: "1",
|
| | | copyfromversion: "",
|
| | | materialclassify: "",
|
| | | lastmodifytime: "2023-04-12 20:25:28.642",
|
| | | nameoid: "9BC308A8-35D7-49FD-4E49-B93CB21E22A3",
|
| | | lcstatus: "Editing",
|
| | | islastv: "1",
|
| | | checkintime: "",
|
| | | ts: "2023-04-12 20:25:28.642",
|
| | | },
|
| | | ],
|
| | | loading: false,
|
| | | templateOid: "",
|
| | | codeClassifyOid: "",
|
| | | };
|
| | | },
|
| | | methods: {
|
| | | findLinkClick(data) {
|
| | | this.visible = true;
|
| | | // findLike(data).then((res) => {
|
| | | // this.tableData = res.data.data
|
| | | // });
|
| | | },
|
| | | openFormTemlpate(row) {
|
| | | this.codetemplateoid = row.codetemplateoid;
|
| | | this.codeClassifyOid = row.codeclsfid;
|
| | | this.templateVisible = true;
|
| | | },
|
| | | },
|
| | | };
|
| | | </script>
|
| | |
|
| | | <style lang="less" scoped></style>
|
| | |
| | | <template>
|
| | | <div>
|
| | | </div>
|
| | | </template>
|
| | |
|
| | | <script>
|
| | | import { getFormTemplate } from '../../api/common';
|
| | | export default {
|
| | | name: 'FormTemplate',
|
| | | props: {
|
| | | visible: {
|
| | | type: Boolean,
|
| | | default: false
|
| | | },
|
| | | },
|
| | | created() {
|
| | | this.getFormTemplate()
|
| | | },
|
| | | data() {
|
| | | return {
|
| | | load: false
|
| | | }
|
| | | },
|
| | | methods: {
|
| | | getFormTemplate() {
|
| | | this.load = true
|
| | | getFormTemplate({
|
| | | templateOid: '78B8C7C5-A042-0B96-FE6D-65421451782A',
|
| | | codeClassifyOid: '4524E801-6CC6-92E8-1AC3-2AB9604E8F96'
|
| | | }).then(res => {
|
| | | console.log(res);
|
| | | }).catch(err => {
|
| | | console.log(err);
|
| | | })
|
| | | }
|
| | | }
|
| | | }
|
| | | </script>
|
| | |
|
| | | <style lang='less' scoped>
|
| | |
|
| | | </style> |
| | | <template> |
| | | <el-dialog |
| | | :visible.sync="dialogVisible" |
| | | v-dialogDrag |
| | | top="0vh" |
| | | :title="title" |
| | | class="avue-dialog avue-dialog--top" |
| | | :width="dialogOptions.width" |
| | | append-to-body |
| | | v-if="dialogVisible" |
| | | > |
| | | <avue-form |
| | | v-model="form" |
| | | :option="option" |
| | | v-loading="loading" |
| | | ref="form" |
| | | :key="index" |
| | | > |
| | | <template :slot="item.prop + 'Label'" v-for="item in option.column"> |
| | | <span> |
| | | <span>{{ item.label }} </span> |
| | | <el-tooltip |
| | | v-if="item.keyAttr" |
| | | class="item" |
| | | effect="dark" |
| | | content="è¯¥å±æ§ä¸ºå
³é®å±æ§" |
| | | placement="top-start" |
| | | > |
| | | <i class="el-icon-star-on key_attr_icon"></i> |
| | | </el-tooltip> |
| | | <el-tooltip |
| | | v-if="item.tip" |
| | | class="item" |
| | | effect="dark" |
| | | :content="item.tip" |
| | | placement="top-start" |
| | | > |
| | | <i class="el-icon-warning"></i> |
| | | </el-tooltip> |
| | | </span> |
| | | </template> |
| | | <template :slot="item.prop + ''" v-for="item in option.column"> |
| | | <vciWebRefer v-if="item.type=='refer'" :options="item.originalItem"></vciWebRefer> |
| | | </template> |
| | | </avue-form> |
| | | <FindLike ref="findLike"></FindLike> |
| | | <div class="avue-dialog__footer" v-if="type !== 'detail'"> |
| | | <el-button @click="close()">å æ¶</el-button> |
| | | <el-button @click="close()" type="primary" :loading="submitBtnLoading">ç¡® å®</el-button> |
| | | <el-button @click="findLinkSubmit" type="primary">ç¸ä¼¼åæ¥è¯¢</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | </template> |
| | | |
| | | <script> |
| | | import { getFormTemplate, executeCode, findLike } from "@/api/formTemplate"; |
| | | import { getDictionary } from "../../api/system/dict"; |
| | | import FindLike from "./FindLike.vue"; |
| | | import vciWebRefer from "../refer/vciWebRefer.vue"; |
| | | export default { |
| | | name: "FormTemplate", |
| | | components: { FindLike ,vciWebRefer}, |
| | | props: { |
| | | visible: { |
| | | type: Boolean, |
| | | default: false, |
| | | }, |
| | | disabledProp: { |
| | | type: Array, |
| | | default: () => ["id"], |
| | | }, |
| | | templateOid: { |
| | | type: String, |
| | | default: "", |
| | | }, |
| | | codeClassifyOid: { |
| | | type: String, |
| | | default: "", |
| | | }, |
| | | type: { |
| | | type: String, |
| | | default: 'add' |
| | | }, |
| | | title: { |
| | | type: String, |
| | | default: 'è¡¨åæ¨¡æ¿' |
| | | } |
| | | }, |
| | | data() { |
| | | return { |
| | | index: 0, |
| | | form: {}, |
| | | loading: false, |
| | | dialogOptions: { |
| | | width: "60%", |
| | | }, |
| | | option: { |
| | | emptyBtn: false, |
| | | submitBtn: false, |
| | | labelWidth: "120", |
| | | column: [], |
| | | }, |
| | | templateData: {}, |
| | | columnType: { |
| | | text: "input", |
| | | combox: "select", |
| | | truefalse: "switch", |
| | | number: "number", |
| | | textarea: "textarea", |
| | | datetime: "datetime", |
| | | date: "date", |
| | | refer:'refer' |
| | | }, |
| | | // åæ°æ® |
| | | testItems: [ |
| | | { |
| | | comboxKey: null, |
| | | customClass: null, |
| | | data: null, |
| | | dateFormate: "", |
| | | defaultValue: "", |
| | | displayExtension: null, |
| | | extendAttrMap: null, |
| | | extendAttrString: null, |
| | | field: "id", |
| | | hidden: false, |
| | | keyAttr: false, |
| | | prefix: "", |
| | | readOnly: false, |
| | | referConfig: null, |
| | | required: false, |
| | | selectLibFlag: "", |
| | | showField: null, |
| | | suffix: "", |
| | | text: "ä¼ å¼ç¦ç¨åè½", |
| | | tooltips: "", |
| | | type: "combox", |
| | | unique: false, |
| | | verify: "", |
| | | }, |
| | | { |
| | | customClass: null, |
| | | data: null, |
| | | dateFormate: "", |
| | | defaultValue: "", |
| | | displayExtension: null, |
| | | extendAttrMap: null, |
| | | extendAttrString: null, |
| | | field: "state", |
| | | hidden: false, |
| | | keyAttr: false, |
| | | prefix: "", |
| | | readOnly: true, |
| | | referConfig: null, |
| | | required: false, |
| | | selectLibFlag: "", |
| | | showField: null, |
| | | suffix: "", |
| | | text: "æ¥å£ç¦ç¨åè½", |
| | | tooltips: "", |
| | | type: "combox", |
| | | unique: false, |
| | | verify: "", |
| | | }, |
| | | { |
| | | comboxKey: null, |
| | | customClass: null, |
| | | data: null, |
| | | dateFormate: "", |
| | | defaultValue: "", |
| | | displayExtension: null, |
| | | extendAttrMap: null, |
| | | extendAttrString: null, |
| | | field: "oldcode", |
| | | hidden: false, |
| | | keyAttr: false, |
| | | prefix: "el-icon-search", |
| | | readOnly: false, |
| | | referConfig: null, |
| | | required: false, |
| | | selectLibFlag: "", |
| | | showField: null, |
| | | suffix: "ææ¬åç¼æµè¯", |
| | | text: "ååç¼åè½", |
| | | tooltips: "", |
| | | type: "text", |
| | | unique: false, |
| | | verify: "", |
| | | }, |
| | | { |
| | | comboxKey: null, |
| | | customClass: null, |
| | | data: null, |
| | | dateFormate: "", |
| | | defaultValue: "", |
| | | displayExtension: null, |
| | | extendAttrMap: null, |
| | | extendAttrString: null, |
| | | field: "materialname", |
| | | hidden: false, |
| | | keyAttr: false, |
| | | prefix: "", |
| | | readOnly: false, |
| | | referConfig: null, |
| | | required: true, |
| | | selectLibFlag: "", |
| | | showField: null, |
| | | suffix: "", |
| | | text: "æ£åæ ¡éªåè½", |
| | | tooltips: "请è¾å
¥æ°å", |
| | | type: "text", |
| | | unique: false, |
| | | verify: "/[0-9]/", |
| | | }, |
| | | { |
| | | comboxKey: null, |
| | | customClass: null, |
| | | data: [ |
| | | { |
| | | attributes: {}, |
| | | key: "model_type", |
| | | value: "模å", |
| | | }, |
| | | { |
| | | attributes: {}, |
| | | key: "part_type", |
| | | value: "é¶ä»¶", |
| | | }, |
| | | ], |
| | | dateFormate: "", |
| | | defaultValue: "", |
| | | displayExtension: null, |
| | | extendAttrMap: null, |
| | | extendAttrString: null, |
| | | field: "dataSelect", |
| | | hidden: false, |
| | | keyAttr: false, |
| | | prefix: "", |
| | | readOnly: false, |
| | | referConfig: null, |
| | | required: false, |
| | | selectLibFlag: "", |
| | | showField: null, |
| | | suffix: "", |
| | | text: "ç´æ¥è¿å䏿", |
| | | tooltips: "", |
| | | type: "combox", |
| | | unique: false, |
| | | verify: "", |
| | | }, |
| | | { |
| | | comboxKey: "formTemplateTest", |
| | | customClass: null, |
| | | data: [], |
| | | dateFormate: "", |
| | | defaultValue: "", |
| | | displayExtension: null, |
| | | extendAttrMap: null, |
| | | extendAttrString: null, |
| | | field: "dictSelect", |
| | | hidden: false, |
| | | keyAttr: false, |
| | | prefix: "", |
| | | readOnly: false, |
| | | referConfig: null, |
| | | required: false, |
| | | selectLibFlag: "", |
| | | showField: null, |
| | | suffix: "", |
| | | text: "åå
¸è¿å䏿", |
| | | tooltips: "", |
| | | type: "combox", |
| | | unique: false, |
| | | verify: "", |
| | | }, |
| | | { |
| | | comboxKey: null, |
| | | customClass: null, |
| | | data: null, |
| | | dateFormate: "", |
| | | defaultValue: "", |
| | | displayExtension: null, |
| | | extendAttrMap: null, |
| | | extendAttrString: null, |
| | | field: "firstfl", |
| | | hidden: false, |
| | | keyAttr: false, |
| | | prefix: "", |
| | | readOnly: false, |
| | | referConfig: null, |
| | | required: false, |
| | | selectLibFlag: "", |
| | | showField: null, |
| | | suffix: "", |
| | | text: "æ°åè¾å
¥æ¡", |
| | | tooltips: "", |
| | | type: "number", |
| | | unique: false, |
| | | verify: "", |
| | | }, |
| | | { |
| | | comboxKey: null, |
| | | customClass: null, |
| | | data: null, |
| | | dateFormate: "yyyy-MM-dd HH:mm:ss", |
| | | defaultValue: "", |
| | | displayExtension: null, |
| | | extendAttrMap: null, |
| | | extendAttrString: null, |
| | | field: "datetime", |
| | | hidden: false, |
| | | keyAttr: false, |
| | | prefix: "", |
| | | readOnly: false, |
| | | referConfig: null, |
| | | required: false, |
| | | selectLibFlag: "", |
| | | showField: null, |
| | | suffix: "", |
| | | text: "æ¥ææ¶é´éæ©å¨", |
| | | tooltips: "", |
| | | type: "datetime", |
| | | unique: false, |
| | | verify: "", |
| | | }, |
| | | { |
| | | comboxKey: null, |
| | | customClass: null, |
| | | data: null, |
| | | dateFormate: "", |
| | | defaultValue: "", |
| | | displayExtension: null, |
| | | extendAttrMap: null, |
| | | extendAttrString: null, |
| | | field: "time", |
| | | hidden: false, |
| | | keyAttr: false, |
| | | prefix: "", |
| | | readOnly: false, |
| | | referConfig: null, |
| | | required: false, |
| | | selectLibFlag: "", |
| | | showField: null, |
| | | suffix: "", |
| | | text: "æ¶é´éæ©å¨", |
| | | tooltips: "", |
| | | type: "date", |
| | | unique: false, |
| | | verify: "", |
| | | }, |
| | | { |
| | | comboxKey: null, |
| | | customClass: null, |
| | | data: null, |
| | | dateFormate: "", |
| | | defaultValue: "false", |
| | | displayExtension: null, |
| | | extendAttrMap: null, |
| | | extendAttrString: null, |
| | | field: "xiaoshouwl", |
| | | hidden: false, |
| | | keyAttr: false, |
| | | prefix: "", |
| | | readOnly: false, |
| | | referConfig: null, |
| | | required: false, |
| | | selectLibFlag: "", |
| | | showField: null, |
| | | suffix: "", |
| | | text: "å¼å
³", |
| | | tooltips: "", |
| | | type: "truefalse", |
| | | unique: false, |
| | | verify: "", |
| | | }, |
| | | { |
| | | comboxKey: null, |
| | | customClass: null, |
| | | data: null, |
| | | dateFormate: "", |
| | | defaultValue: "ææ¯é»è®¤å¼", |
| | | displayExtension: null, |
| | | extendAttrMap: null, |
| | | extendAttrString: null, |
| | | field: "tuhao", |
| | | hidden: false, |
| | | keyAttr: false, |
| | | prefix: "", |
| | | readOnly: false, |
| | | referConfig: null, |
| | | required: false, |
| | | selectLibFlag: "", |
| | | showField: null, |
| | | suffix: "", |
| | | text: "é»è®¤å¼åè½", |
| | | tooltips: "æç¤º", |
| | | type: "text", |
| | | unique: false, |
| | | verify: "", |
| | | }, |
| | | { |
| | | comboxKey: null, |
| | | customClass: null, |
| | | data: null, |
| | | dateFormate: "", |
| | | defaultValue: "", |
| | | displayExtension: null, |
| | | extendAttrMap: null, |
| | | extendAttrString: null, |
| | | field: "xinghaoguige", |
| | | hidden: false, |
| | | keyAttr: true, |
| | | prefix: "", |
| | | readOnly: false, |
| | | referConfig: null, |
| | | required: false, |
| | | selectLibFlag: "", |
| | | showField: null, |
| | | suffix: "", |
| | | text: "屿§å
³é®å¼", |
| | | tooltips: "", |
| | | type: "text", |
| | | unique: false, |
| | | verify: "", |
| | | }, |
| | | { |
| | | comboxKey: null, |
| | | customClass: null, |
| | | data: null, |
| | | dateFormate: "", |
| | | defaultValue: "", |
| | | displayExtension: null, |
| | | extendAttrMap: null, |
| | | extendAttrString: null, |
| | | field: "jiliangdw", |
| | | hidden: false, |
| | | keyAttr: false, |
| | | prefix: "", |
| | | readOnly: false, |
| | | tip: "ææ¯æç¤ºåè½", |
| | | required: false, |
| | | selectLibFlag: "", |
| | | showField: "jiliangdwname", |
| | | suffix: "", |
| | | text: "æç¤ºåè½", |
| | | tooltips: "", |
| | | type: "text", |
| | | unique: false, |
| | | verify: "", |
| | | }, |
| | | { |
| | | comboxKey: null, |
| | | customClass: null, |
| | | data: null, |
| | | dateFormate: "", |
| | | defaultValue: "", |
| | | displayExtension: "this.form.sum = this.form.fun1 + this.form.fun2", |
| | | extendAttrMap: null, |
| | | extendAttrString: null, |
| | | field: "fun1", |
| | | hidden: false, |
| | | keyAttr: false, |
| | | prefix: "", |
| | | readOnly: false, |
| | | referConfig: null, |
| | | required: false, |
| | | selectLibFlag: "", |
| | | showField: null, |
| | | suffix: "", |
| | | text: "åæ°1æµè¯js", |
| | | tooltips: "", |
| | | type: "text", |
| | | unique: false, |
| | | verify: "", |
| | | }, |
| | | { |
| | | comboxKey: null, |
| | | customClass: null, |
| | | data: null, |
| | | dateFormate: "", |
| | | defaultValue: "", |
| | | displayExtension: "this.form.sum = this.form.fun1 + this.form.fun2", |
| | | extendAttrMap: null, |
| | | extendAttrString: null, |
| | | field: "fun2", |
| | | hidden: false, |
| | | keyAttr: false, |
| | | prefix: "", |
| | | readOnly: false, |
| | | required: false, |
| | | selectLibFlag: "", |
| | | showField: "hesuanfenleiname", |
| | | suffix: "", |
| | | text: "åæ°2æµè¯js", |
| | | tooltips: "", |
| | | type: "text", |
| | | unique: false, |
| | | verify: "", |
| | | }, |
| | | { |
| | | comboxKey: null, |
| | | customClass: null, |
| | | data: null, |
| | | dateFormate: "", |
| | | defaultValue: "", |
| | | displayExtension: "", |
| | | extendAttrMap: null, |
| | | extendAttrString: null, |
| | | field: "sum", |
| | | hidden: false, |
| | | keyAttr: false, |
| | | prefix: "", |
| | | readOnly: true, |
| | | required: false, |
| | | selectLibFlag: "", |
| | | showField: "", |
| | | suffix: "", |
| | | text: "åæ°1åæ°2æ±å", |
| | | tooltips: "", |
| | | type: "text", |
| | | unique: false, |
| | | verify: "", |
| | | }, |
| | | { |
| | | comboxKey: null, |
| | | customClass: null, |
| | | data: null, |
| | | dateFormate: "", |
| | | defaultValue: "", |
| | | displayExtension: null, |
| | | extendAttrMap: null, |
| | | extendAttrString: null, |
| | | field: "textarea", |
| | | hidden: false, |
| | | keyAttr: false, |
| | | prefix: "", |
| | | readOnly: false, |
| | | referConfig: null, |
| | | required: false, |
| | | selectLibFlag: "", |
| | | showField: null, |
| | | suffix: "", |
| | | text: "ææ¬å", |
| | | tooltips: "", |
| | | type: "textarea", |
| | | unique: false, |
| | | verify: "", |
| | | }, |
| | | { |
| | | comboxKey: null, |
| | | customClass: null, |
| | | data: null, |
| | | dateFormate: "", |
| | | defaultValue: "", |
| | | displayExtension: null, |
| | | extendAttrMap: null, |
| | | extendAttrString: null, |
| | | field: "cz", |
| | | hidden: false, |
| | | keyAttr: false, |
| | | prefix: "", |
| | | readOnly: true, |
| | | referConfig: true, |
| | | required: false, |
| | | selectLibFlag: "", |
| | | showField: "depId", |
| | | suffix: "", |
| | | text: "åç
§", |
| | | tooltips: "", |
| | | type: "text", |
| | | unique: false, |
| | | verify: "", |
| | | }, |
| | | ], |
| | | submitBtnLoading: false |
| | | }; |
| | | }, |
| | | created() {}, |
| | | computed: { |
| | | dialogVisible: { |
| | | get() { |
| | | return this.visible; |
| | | }, |
| | | set(val) { |
| | | this.$emit("update:visible", val); |
| | | }, |
| | | }, |
| | | }, |
| | | methods: { |
| | | getFormTemplate() { |
| | | this.loading = true; |
| | | getFormTemplate({ |
| | | templateOid: this.templateOid, |
| | | codeClassifyOid: this.codeClassifyOid, |
| | | }) |
| | | .then((res) => { |
| | | if (res.status === 200) { |
| | | this.templateData = res.data; |
| | | this.templateRender(); |
| | | } |
| | | this.loading = false; |
| | | console.log(res.data); |
| | | }) |
| | | .catch((err) => { |
| | | this.loading = false; |
| | | console.log(err); |
| | | }); |
| | | }, |
| | | templateRender() { |
| | | const items = this.templateData.formDefineVO.items; |
| | | let column = []; |
| | | let dictKeys = []; |
| | | items.forEach((item) => { |
| | | // éè表åå
ç´ |
| | | if (item.hide) { |
| | | return; |
| | | } |
| | | if ( |
| | | item.type === "combox" && |
| | | item.comboxKey && |
| | | (!Array.isArray(item.dicData) || item.dicData.length === 0) |
| | | ) { |
| | | dictKeys.push({ dictKey: item.comboxKey, field: item.field }); |
| | | } |
| | | // ç¦ç¨é¨å屿§ï¼å¤é¨ä¼ å¼ç¦ç¨ååç
§ç¦ç¨ï¼ |
| | | if (this.disabledProp.includes(item.field) || this.$utilFunc.isValuableObj(item.referConfig)) { |
| | | item.readOnly = true; |
| | | } |
| | | // è®¾ç½®è¡¨åæ ¡éªçè§åï¼ææ¬ |
| | | let message = "è¯·éæ©"; |
| | | let trigger = "change"; |
| | | if (item.type === "text") { |
| | | message = "请è¾å
¥"; |
| | | trigger = "blur"; |
| | | } else if (item.type === "file") { |
| | | message = "请ä¸ä¼ "; |
| | | } |
| | | let columnItem = { |
| | | label: item.text, |
| | | labelslot: true, |
| | | prop: this.$utilFunc.isValuableObj(item.referConfig) ? (item.showField || item.field) : item.field, |
| | | type: this.columnType[item.type], |
| | | dicData: this.getDataList(item.type, item.data), |
| | | disabled: this.type === 'detail' ? true : item.readOnly, |
| | | prepend: this.preOrSufFixShow("text", item.prefix), |
| | | append: this.preOrSufFixShow("text", item.suffix), |
| | | prefixIcon: this.preOrSufFixShow("icon", item.prefix), |
| | | suffixIcon: this.preOrSufFixShow("icon", item.suffix), |
| | | valueFormat: item.dateFormate, |
| | | format: item.dateFormate, |
| | | keyAttr: item.keyAttr, |
| | | value: item.defaultValue, |
| | | tip: item.tip, |
| | | comboxKey: item.comboxKey, |
| | | originalItem:item, |
| | | change: () => { |
| | | this.changeFun(item.displayExtension, item.prop); |
| | | }, |
| | | span: item.type === "file" || item.type === "textarea" ? 24 : null, |
| | | click: this.clickFun(item.referConfig), |
| | | rules: [ |
| | | { |
| | | required: item.required, |
| | | message: `请${message}${item.text}`, |
| | | trigger, |
| | | }, |
| | | { |
| | | // å¦ææ²¡ææ£ååå¹é
ä»»ä½å符 |
| | | pattern: item.verify ? item.verify : /[\s\S.]*/g, |
| | | message: item.tooltips, |
| | | trigger, |
| | | }, |
| | | ], |
| | | props: { |
| | | label: "value", |
| | | value: "key", |
| | | }, |
| | | }; |
| | | column.push(columnItem); |
| | | this.$set(this.option, "column", column); |
| | | }); |
| | | this.index++; |
| | | this.geDictData(dictKeys); |
| | | }, |
| | | changeFun(displayExtension, prop) { |
| | | // executeCode({displayExtension, data: this.form}).then(res => { |
| | | // this.form[prop] = res.data.data |
| | | // }) |
| | | }, |
| | | clickFun(referConfig) { |
| | | if (this.type === 'detail') { |
| | | return |
| | | } |
| | | }, |
| | | // ååç¼ |
| | | preOrSufFixShow(type, val) { |
| | | if (this.$utilFunc.isEmpty(val) && typeof val !== "string") return; |
| | | const isIcon = val.slice(0, 8) === "el-icon-"; |
| | | if ((type === "text" && !isIcon) || (type === "icon" && isIcon)) { |
| | | return val; |
| | | } |
| | | }, |
| | | // è·åswichåå·²æ¿å°çä¸ææ°æ® |
| | | getDataList(type, dicData) { |
| | | if (type === "truefalse") { |
| | | return [ |
| | | { |
| | | key: false, |
| | | value: "å¦", |
| | | }, |
| | | { |
| | | key: true, |
| | | value: "æ¯", |
| | | }, |
| | | ]; |
| | | } else if (type === "combox") { |
| | | return dicData; |
| | | } |
| | | return []; |
| | | }, |
| | | // è·ååå
¸æ°æ® |
| | | geDictData(dictKeys) { |
| | | dictKeys.forEach((dictObj) => { |
| | | getDictionary({ code: dictObj.dictKey }).then((res) => { |
| | | if (res.data && res.data.code === 200) { |
| | | this.option.column = this.option.column.map((item) => { |
| | | if (item.field === dictObj.field) { |
| | | let dictData = (res.data.data || []).map((itm) => { |
| | | itm.value = itm.dictValue; |
| | | itm.key = itm.dictKey; |
| | | return itm; |
| | | }); |
| | | item.dicData = dictData; |
| | | } |
| | | return item; |
| | | }); |
| | | } |
| | | }); |
| | | }); |
| | | }, |
| | | findLinkSubmit() { |
| | | this.templateData.templateVO.data = this.form |
| | | console.log(this.$refs.findLike, 'this.$refs.findLike'); |
| | | this.$refs.findLike.findLinkClick(this.templateData.templateVO) |
| | | } |
| | | }, |
| | | watch: { |
| | | visible(newV) { |
| | | if (newV) { |
| | | this.getFormTemplate(); |
| | | // this.templateRender() |
| | | } |
| | | }, |
| | | }, |
| | | }; |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | .key_attr_icon { |
| | | font-size: 24px; |
| | | position: relative; |
| | | top: 2px; |
| | | color: red; |
| | | } |
| | | // è§£å³swichç»ä»¶ä¸åç´å±
ä¸çé®é¢ |
| | | /deep/ .el-switch { |
| | | vertical-align: baseline; |
| | | } |
| | | </style> |
| | |
| | | cell: false, |
| | | labelWidth: 110, |
| | | width: 125, |
| | | sortable: true, |
| | | sortable: false, |
| | | }, |
| | | { |
| | | label: "屿§ä¸æåç§°", |
| | |
| | | }, |
| | | // æåº |
| | | sortChange(val) { |
| | | switch (val.order) { |
| | | // case "ascending": |
| | | // this.data = this.data.sort((a,b) => { return b['name'].localeCompare(a['name']) }) |
| | | // this.data = this.data.sort((a,b) => { return b['id'].localeCompare(a['id']) }) |
| | | // break; |
| | | // case "descending": |
| | | // this.data = this.data.sort((a,b) => { return a['name'].localeCompare(b['name']) }) |
| | | // this.data = this.data.sort((a,b) => { return a['id'].localeCompare(b['id']) }) |
| | | // break; |
| | | } |
| | | console.log(val) |
| | | // switch (val.order) { |
| | | // // case "ascending": |
| | | // // this.data = this.data.sort((a,b) => { return b['name'].localeCompare(a['name']) }) |
| | | // // this.data = this.data.sort((a,b) => { return b['id'].localeCompare(a['id']) }) |
| | | // // break; |
| | | // // case "descending": |
| | | // // this.data = this.data.sort((a,b) => { return a['name'].localeCompare(b['name']) }) |
| | | // // this.data = this.data.sort((a,b) => { return a['id'].localeCompare(b['id']) }) |
| | | // // break; |
| | | // } |
| | | } |
| | | } |
| | | } |
| | |
| | | }, |
| | | { |
| | | label:"æè¿°", |
| | | prop:"description" |
| | | prop:"description", |
| | | labelWidth:128, |
| | | }, |
| | | { |
| | | label: 'åå¨çä¸å¡ç±»å', |
| | |
| | | }, |
| | | { |
| | | label:"ç¼ç è§å", |
| | | prop:"coderuleoidName" |
| | | prop:"coderuleoidName", |
| | | labelWidth:128, |
| | | }, |
| | | { |
| | | label:"忽ç¥å¤§å°åæ¥é", |
| | | label:"å
³é®å±æ§æ¥è¯¢è§å", |
| | | prop:"codekeyattrrepeatoidName", |
| | | labelWidth:128, |
| | | }, |
| | | { |
| | | label:"ç¸ä¼¼æ¥è¯¢è§å", |
| | | prop:"codeResembleRuleOidName", |
| | | labelWidth:100, |
| | | labelWidth:128, |
| | | }, |
| | | ] |
| | | }, |
| | |
| | | <el-button plain size="small" type="primary" @click="flushed">å·æ°</el-button> |
| | | </div> |
| | | <div style="display: flex;justify-content: space-around;margin-top: 5px;margin-bottom: 5px"> |
| | | |
| | | </div> |
| | | </div> |
| | | <!-- æ èç¹æ·»å å¯¹è¯æ¡--> |
| | |
| | | </el-dialog> |
| | | <!-- ä¿®æ¹å¯¹è¯æ¡--> |
| | | <el-dialog :visible.sync="TreeEditFormVisible" append-to-body title="ä¿®æ¹åç±»"> |
| | | <classifyTreeform ref="childForm" :TreeNewForm="TreeList" :nodeList="nodeList"></classifyTreeform> |
| | | <classifyTreeform ref="childForm" :loneTreeNewForm="TreeList" :nodeList="nodeList"></classifyTreeform> |
| | | </el-dialog> |
| | | <avue-tree ref="tree" v-model="TreeAvueform" v-loading="loading" :data="Treedata" :defaultExpandAll="false" |
| | | <avue-tree ref="tree" v-model="CloneTreeAvueform" v-loading="loading" :data="CloneTreedata" :defaultExpandAll="false" |
| | | :option="Treeoption" |
| | | style="height: 80.5vh;padding-top: 5px;padding-bottom: 30px" |
| | | @node-click=" nodeClick" |
| | |
| | | @row-save="CrudRowSave" |
| | | @row-del="CrudRowDel" |
| | | @row-update="CrudRowUpdata" |
| | | :before-close="beforeClose" |
| | | > |
| | | <template slot="menuLeft"> |
| | | <el-button plain size="small" type="primary" @click="FindFormVisible = true;">æ¥è¯¢</el-button> |
| | |
| | | <el-container> |
| | | <el-aside width="300px"> |
| | | <div style="margin-bottom: 5px"><el-tag>主é¢åºåç±»</el-tag></div> |
| | | <!-- å
鿍¡æ¿çæ æ²¿ç¨é¦é¡µæ çloadingåoptionï¼ä½æ¯dataåv-modelç»å®çæ°æ®å建ä¸ä¸ªæ°çåéï¼å¦å¤ç¹å»æ¹æ³ä¹æ¯éæ°è·åæ¥æä½å
鿍¡æ¿çæ°æ®--> |
| | | <avue-tree ref="tree" v-model="TreeAvueform" v-loading="loading" :data="Treedata" |
| | | :defaultExpandAll="false" |
| | | :option="Treeoption" |
| | | style="height: 50.5vh;margin-right: 10px" |
| | | @node-click=" nodeClick" |
| | | @check-change="checkChange" |
| | | @node-click="ClonenodeClick" |
| | | > |
| | | </avue-tree> |
| | | </el-aside> |
| | |
| | | TreeAddFormVisible: false, |
| | | //å½åç¹å»é¡¹ |
| | | nodeClickList: "", |
| | | ClonenodeClickList:"", |
| | | //åç±»å主é¢åºç¶æ |
| | | TreeFlag: false, |
| | | //æ å è½½ |
| | |
| | | }, |
| | | //avue-treeæ°æ®ï¼ææ¶æ²¡æä½ç¨ï¼éé¢åè½ç¨elementåäºï¼åªç¨avueçä¸ä¸ªæ ç»ä»¶ä¸ç¨å
置表åäºã |
| | | TreeAvueform: {}, |
| | | //å
éæ |
| | | CloneTreeAvueform:{}, |
| | | Treedata: [], |
| | | CloneTreedata:[], |
| | | Treeoption: { |
| | | addBtn: false, |
| | | editBtn: false, |
| | |
| | | CloneSelectOptions: [{ |
| | | value: '0', |
| | | label: '模æ¿ç¼å·' |
| | | }, |
| | | }, |
| | | { |
| | | value: '1', |
| | | label: '模æ¿åç§°' |
| | |
| | | }, |
| | | { |
| | | label: "模æ¿åç§°", |
| | | prop: "name" |
| | | prop: "name", |
| | | }, |
| | | { |
| | | label: "æ¨¡æ¿æè¿°", |
| | |
| | | getAttr() { |
| | | getAtrrList().then(res => { |
| | | this.Treedata = res.data; |
| | | this.Treedata.forEach(() => { |
| | | this.CloneTreedata = res.data; |
| | | this.Treedata.forEach((item) => { |
| | | for (let i = 0; i < this.Treedata.length; i++) { |
| | | this.Treedata[i].value = i; |
| | | } |
| | | }) |
| | | //è°ç¨ä¿®æ¹å±æ§åæ¹æ³ |
| | | this.ModifyProperties(this.Treedata, 'text', 'label'); |
| | | this.ModifyProperties(this.CloneTreedata, 'text', 'label'); |
| | | }).catch(res => { |
| | | this.$message.error(res) |
| | | }) |
| | | }, |
| | | //å®ä¹ä¸ä¸ªä¿®æ¹å¯¹è±¡å±æ§åçæ¹æ³ è¿é嫿¹ï¼ï¼ï¼å¥½åæ¯åå°æ¥å£æ°æ®å段ä¸ä¸è´ï¼æ·»å çæ¹æ³ãå
·ä½ä»ä¹åå æä¹å¿è®°äº |
| | | //å®ä¹ä¸ä¸ªä¿®æ¹æ°æ®å±æ§åçæ¹æ³ |
| | | ModifyProperties(obj, oldName, newName) { |
| | | for (let key in obj) { |
| | | if (key === oldName) { |
| | |
| | | }) |
| | | //模æ¿ç®¡çè¡¨æ ¼æ°æ® |
| | | await gridCodeClassifyTemplate({'conditionMap[codeclassifyoid]': data.oid}).then(res => { |
| | | if (this.CloneVisible != true) { |
| | | this.Formlist = res.data.data.filter(item => { |
| | | if (item.codeclassifyoid != "") { |
| | | this.codeClassifyOid = item.codeclassifyoid |
| | | return item.codeclassifyoid == this.nodeClickList.oid |
| | | } |
| | | }) |
| | | } else { |
| | | this.CloneFormlist = res.data.data.filter(item => { |
| | | if (item.codeclassifyoid != "") { |
| | | this.codeClassifyOid = item.codeclassifyoid |
| | | return item.codeclassifyoid == this.nodeClickList.oid |
| | | } |
| | | }) |
| | | } |
| | | this.Formlist = res.data.data.filter(item => { |
| | | if (item.codeclassifyoid != "") { |
| | | this.codeClassifyOid = item.codeclassifyoid |
| | | return item.codeclassifyoid == this.nodeClickList.oid |
| | | } |
| | | }) |
| | | gridCodeClassifyTemplateAttr({'conditionMap[classifyTemplateOid]': this.Formlist[0].oid}).then(res => { |
| | | this.ProData = res.data.data |
| | | console.log(this.ProData) |
| | |
| | | console.log(error) |
| | | } |
| | | }, |
| | | //å
鿍¡æ¿æ çç¹å»åæ¢æ°æ® |
| | | async ClonenodeClick(data){ |
| | | this.ClonenodeClickList=data; |
| | | console.log("aaa",this.ClonenodeClickList.oid) |
| | | await gridCodeClassifyTemplate({'conditionMap[codeclassifyoid]': data.oid}).then(res=>{ |
| | | this.CloneFormlist = res.data.data.filter(item => { |
| | | if (item.codeclassifyoid != "") { |
| | | this.codeClassifyOid = item.codeclassifyoid |
| | | return item.codeclassifyoid == this.ClonenodeClickList.oid |
| | | } |
| | | }) |
| | | }) |
| | | }, |
| | | //tabæ 忢 |
| | | handleChange(column) { |
| | | this.type = column |
| | | this.type = column; |
| | | }, |
| | | // //é«çº§æ¥è¯¢æé® |
| | | // handleSelectChange(key) { |
| | |
| | | this.Formlist = res.data.data |
| | | }) |
| | | }, |
| | | |
| | | //模æ¿ç®¡çè¡¨æ ¼æ·»å |
| | | CrudRowSave(row,done) { |
| | | debugger |
| | | console.log(nodeClickList.length) |
| | | if (this.nodeClickList.length <= 0) { |
| | | this.$message({ |
| | | type: 'warning', |
| | | message: '请å
仿 ä¸éæ©ä¸æ¡æ°æ®!' |
| | | }); |
| | | } else { |
| | | console.log(this.nodeClickList) |
| | | let codeClassifyOid = this.codeClassifyOid |
| | | this.$set(row, "codeclassifyoid", codeClassifyOid) |
| | | addSave(row).then(res => { |
| | | this.$message({ |
| | | type: "success", |
| | | message: "æ·»å æå!" |
| | | }); |
| | | done(row) |
| | | this.CrudRend() |
| | | done() |
| | | }).catch(res => { |
| | | this.$message({ |
| | | type: 'info', |
| | |
| | | } |
| | | }, |
| | | //模æ¿ç®¡çä¿®æ¹ |
| | | CrudRowUpdata(row) { |
| | | editSave(row).then(() => { |
| | | CrudRowUpdata(row,index,done) { |
| | | editSave(row).then((res) => { |
| | | this.CrudRend() |
| | | }).catch(res => { |
| | | this.$message({ |
| | | type: 'info', |
| | | message: res |
| | | type: "success", |
| | | message: "æä½æå!" |
| | | }); |
| | | done() |
| | | }).catch(res => { |
| | | console.log(res) |
| | | }) |
| | | }, |
| | | //模æ¿ç®¡çå é¤ |
| | |
| | | }, |
| | | //å
鿍¡æ¿éæ©ç¡®å® |
| | | Clonehandler(){ |
| | | if(this.CloneFormlist.length <= 0){ |
| | | if(this.CloneSelect.length <= 0){ |
| | | this.$message({ |
| | | type: 'warning', |
| | | message: 'è¯·éæ©è¦å
éçæ¨¡æ¿!' |
| | |
| | | message: 'åªè½éæ©ä¸æ¡æ°æ®!' |
| | | }); |
| | | } else { |
| | | this.CloneinnerVisible=true |
| | | this.CloneinnerVisible=true; |
| | | |
| | | } |
| | | }, |
| | | //ç¹å»ä»å
¶å®æ¨¡æ¿å
é |
| | |
| | | }, |
| | | //å
鿍¡æ¿åéæ¡æ¹å |
| | | selectionChange(row){ |
| | | console.log(row) |
| | | this.CloneSelect=row |
| | | this.CloneSelect=row; |
| | | //ååç»å®ï¼æäº¤è¡¨åè¾å
¥æ¡åå¡«ä¸å½åéæ©çæ°æ® |
| | | this.CloneModel.id=row[0].id; |
| | | this.CloneModel.name=row[0].name; |
| | | //è¿éæç¹ç»ï¼CloneSelectæ¯æéæ©æ¡éæ©çæ°æ®ãçäºthis.nodeClickList.oidæ¯å 为ï¼å
鿍¡æ¿ä¼ éæ°æ®è¦æå½åéæ©æ çoidä¼ éç»å端ãè䏿¯å½åè¦å
鿍¡æ¿çoid |
| | | this.CloneSelect[0].codeclassifyoid=this.nodeClickList.oid |
| | | }, |
| | | //å
é表åæäº¤ |
| | | Clonesubmit(done){ |
| | | Clonesubmit(row,done){ |
| | | //éæ°èµå¼CloneSelectä¼ éçæ°æ®ä¸ºè¾å
¥æ¡å¯ä»¥ä¿®æ¹çæ°æ®ï¼CloneModelæäº¤è¡¨åè¾å
¥æ¡ååç»å®æ°æ® |
| | | this.CloneSelect[0].id=this.CloneModel.id; |
| | | this.CloneSelect[0].name=this.CloneModel.name; |
| | | copy(this.CloneSelect[0]).then(res=>{ |
| | | console.log(res) |
| | | done() |
| | | //å 为æ¯åµå¥å¼¹çªæä»¥æå¨å
³éCloneinnerVisibleï¼CloneVisible两个弹çªã |
| | | this.CloneinnerVisible=false |
| | | this.CloneVisible=false |
| | | this.$message.success("å¤å¶æå") |
| | | this.CrudRend() |
| | | done(row) |
| | | }).catch(res=>{ |
| | | done(res) |
| | | }) |
| | | }, |
| | | //å·æ° |
| | |
| | | setTimeout(() => { |
| | | this.FormLoing = false |
| | | }, 600); |
| | | }, |
| | | // å·¦æ å¤é |
| | | checkChange(val) { |
| | | console.log(val) |
| | | }, |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | |
| | | </template> |
| | | |
| | | <script> |
| | | export default { |
| | | |
| | | } |
| | | </script> |
| | | |
| | | <style> |
| | | |
| | | </style> |
| | |
| | | title="éæ©åç
§é
ç½®" |
| | | append-to-body |
| | | :visible.sync="isShowReferConfigCrud" |
| | | width="94%" |
| | | width="95%" |
| | | id="refer-config-dialog" |
| | | style="height: 115vh; margin-top: -14vh; overflow-y: hidden"> |
| | | <div style="width: 100%; overflow-y: auto; height: 70vh"> |
| | | <el-row style="width: 100%; height:70%"> |
| | | <el-col style="width: 70%; height: 100%;"> |
| | | <basic-container style="width: 100%; "> |
| | | <el-col :style="toggleBasicCrudWidth"> |
| | | <basic-container style="width: 100%;"> |
| | | <avue-crud :option="referConfigCrudOption" |
| | | class="refer-config-crud" |
| | | :page.sync="referConfigParams.referConfigPage" |
| | |
| | | :data="referConfigParams.referConfigData" |
| | | :ref= "referConfigParams.ref" |
| | | @row-click="referConfigRowClick" |
| | | @selection-change="referConfigDataChange" |
| | | @search-change="referConfigSearchChange" |
| | | @search-reset="referConfigSearchReset"> |
| | | @search-reset="referConfigSearchReset" |
| | | @current-change="referConfigCurrentChange" |
| | | @size-change="referConfigSizeChange" |
| | | @on-load="referConfigOnload"> |
| | | <template #radio="{row}"> |
| | | <el-radio v-model="referConfigParams.referConfigSelectedRow" |
| | | :label="row.$index"> |
| | |
| | | </avue-crud> |
| | | </basic-container> |
| | | </el-col> |
| | | <el-col v-show="true" style="width: 30%; height: 100%;"> |
| | | <basic-container style="width: 100%;"> |
| | | <el-col v-show="isShowForm" style="height: 100%; width: 30%;"> |
| | | <basic-container style="width: 100%; height: 100vh; overflow-y: hidden"> |
| | | <avue-form ref="refereConfigForm" |
| | | style="height: 65vh;" |
| | | :option="formOption" |
| | | class="refer-confg-form" |
| | | ></avue-form> |
| | | style="height: 65vh; overflow-y: auto;" |
| | | :option="formOption" |
| | | v-model="referConfigForm" |
| | | class="refer-confg-form"> |
| | | </avue-form> |
| | | </basic-container> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row style="width: 100%; height:30%; margin-top: 130px"> |
| | | <basic-container style="width: 100%; height:100%;"> |
| | | <avue-crud :option="attrAndSrchCondOption" |
| | | class="refer-attrorsrchcond-crud" |
| | | :table-loading="attrAndSrchCondParams.attrAndSrchCondLoading" |
| | | :data="attrAndSrchCondParams.attrAndSrchCondData" |
| | | :ref= "attrAndSrchCondParams.ref" |
| | | @row-click="attrAndSrchCondRowClick"> |
| | | </avue-crud> |
| | | </basic-container> |
| | | <el-col |
| | | :style="toggleSrchCrudWidth"> |
| | | <basic-container style="width: 100%; height:100%;"> |
| | | <avue-crud :option="srchCondOption" |
| | | class="refer-srchcond-crud" |
| | | :table-loading="srchCondParams.srchCondLoading" |
| | | :data="srchCondParams.srchCondData" |
| | | :ref= "srchCondParams.ref"> |
| | | </avue-crud> |
| | | </basic-container> |
| | | </el-col> |
| | | <el-col v-show="showAttrParams.isShow" style="width: 60%; height: 100%;"> |
| | | <basic-container style="width: 100%; height:100%;"> |
| | | <avue-crud :option="showAttrOption" |
| | | class="refer-attr-crud" |
| | | :table-loading="showAttrParams.showAttrLoading" |
| | | :data="showAttrParams.showAttrData" |
| | | :ref= "showAttrParams.ref"> |
| | | </avue-crud> |
| | | </basic-container> |
| | | </el-col> |
| | | </el-row> |
| | | </div> |
| | | <div slot="footer" class="dialog-footer"> |
| | |
| | | |
| | | <script> |
| | | //import func from "@/util/func"; |
| | | import { getReferConfigPage } from "@/api/code/codeReferConfig"; |
| | | export default { |
| | | name: "referConfigDialog", |
| | | props: { |
| | |
| | | isShowReferConfigCrud:false, |
| | | referConfigCrudOption: { |
| | | border: true, |
| | | height: '56vh', |
| | | height: '45vh', |
| | | tip: false, |
| | | searchShow: true, |
| | | searchMenuSpan: 6, |
| | |
| | | },{ |
| | | label: 'åç
§çä¸å¡ç±»å', |
| | | search: false, |
| | | prop: 'referType' |
| | | prop: 'referTypeName' |
| | | },{ |
| | | label: 'æ¾ç¤ºç屿§', |
| | | search: false, |
| | |
| | | },{ |
| | | label: 'åç
§çªå£ç±»å', |
| | | search: false, |
| | | prop: 'typeText' |
| | | prop: 'typeText', |
| | | } |
| | | ], |
| | | }, |
| | |
| | | formOption: { |
| | | submitBtn: false, |
| | | emptyBtn: false, |
| | | labelWidth: '110', //é»è®¤æ ç¾å®½åº¦ |
| | | column: [{ |
| | | label: 'æ¯é¡µæ¾ç¤ºæ¡æ°', |
| | | prop: 'limit', |
| | | labelWidth: '150', //é»è®¤æ ç¾å®½åº¦ |
| | | // é»è®¤é
置就为æ 形类åï¼æ¹äºä¼åºç°é®é¢ |
| | | column: [ |
| | | { |
| | | label: 'æ å½¢çä¸çº§å±æ§', |
| | | prop: 'parentFieldName', |
| | | span: 24, |
| | | disabled: true, |
| | | row: true, |
| | | placeholder: ' ', |
| | | },{ |
| | | label: 'ä¸çº§å±æ§å¼å¯¹åºå±æ§', |
| | | prop: 'parentUsedField', |
| | | span: 24, |
| | | disabled: true, |
| | | row: true, |
| | | placeholder: ' ', |
| | | },{ |
| | | label: 'æ ¹èç¹çå¼', |
| | | prop: 'parentValue', |
| | | span: 24, |
| | | disabled: true, |
| | | row: true, |
| | | placeholder: ' ', |
| | | },{ |
| | | label: 'æ å è½½æ¹å¼', |
| | | prop: 'loadType', |
| | | span: 24, |
| | | disabled: true, |
| | | row: true, |
| | | placeholder: ' ', |
| | | dicData: [{ |
| | | label: 'å
¨é¨', value: 'all' |
| | | }, { |
| | | label: 'é级å è½½', value: 'node' |
| | | }], |
| | | },{ |
| | | label: 'æ¯å¦åªè½éæ©å¶åèç¹', |
| | | prop: 'onlyLeaf', |
| | | span: 24, |
| | | disabled: true, |
| | | row: true, |
| | |
| | | label: 'æåºç±»å', |
| | | prop: 'sortType', |
| | | span: 24, |
| | | disabled: true, |
| | | row: true, |
| | | placeholder: ' ', |
| | | dicData: [{ |
| | | label: 'ååº', value: 'asc' |
| | | }, { |
| | | label: 'éåº', value: 'desc' |
| | | }], |
| | | type: 'select', |
| | | disabled: true, |
| | | row: true, |
| | | placeholder: ' ', |
| | | } |
| | | ] |
| | | }, |
| | | ], |
| | | }, |
| | | referConfigForm:{}, |
| | | // æåºç±»åç表åé
ç½® |
| | | sortColumn:[{ |
| | | label: 'æ¯é¡µæ¾ç¤ºæ¡æ°', |
| | |
| | | label: 'æåºç±»å', |
| | | prop: 'sortType', |
| | | span: 24, |
| | | disabled: true, |
| | | row: true, |
| | | placeholder: ' ', |
| | | dicData: [{ |
| | | label: 'ååº', value: 'asc' |
| | | }, { |
| | | label: 'éåº', value: 'desc' |
| | | }], |
| | | type: 'select', |
| | | disabled: true, |
| | | row: true, |
| | | placeholder: ' ', |
| | | }], |
| | | // æ 形类åç表åé
ç½® |
| | | treeColumn:[{ |
| | | label: 'æ å½¢çä¸çº§å±æ§', |
| | | prop: 'parentFieldName', |
| | | span: 7, |
| | | tip: 'æ å½¢å±ç¤ºçæ¶åï¼ä¸ä¸çº§å
³ç³»æ¥æ¾ç屿§ã', |
| | | tipPlacement: 'right', |
| | | rules: [{ |
| | | required: true, |
| | | message: "(æ å½¢çä¸çº§å±æ§)å¿
填项ä¸è½ä¸ºç©º", |
| | | trigger: "blur", |
| | | }], |
| | | span: 24, |
| | | disabled: true, |
| | | row: true, |
| | | placeholder: ' ', |
| | | },{ |
| | | label: 'ä¸çº§å±æ§å¼å¯¹åºå±æ§', |
| | | prop: 'parentUsedField', |
| | | span: 7, |
| | | tip: 'ä¸çº§å±æ§åå¨çå¼,æ¯ä¸çº§æ°æ®çä»ä¹å±æ§ãä¸è¬é½æ¯oidã', |
| | | value: 'oid', |
| | | tipPlacement: 'right', |
| | | span: 24, |
| | | disabled: true, |
| | | row: true, |
| | | placeholder: ' ', |
| | | },{ |
| | | label: 'æ ¹èç¹çå¼', |
| | | prop: 'parentValue', |
| | | span: 7, |
| | | tip: 'æ å½¢å±ç¤ºçæ¶åï¼ä¸çº§çå¼ã', |
| | | tipPlacement: 'right', |
| | | },{ |
| | | span: 24, |
| | | disabled: true, |
| | | row: true, |
| | | placeholder: ' ', |
| | | }, |
| | | { |
| | | label: 'æ å è½½æ¹å¼', |
| | | prop: 'loadType', |
| | | span: 7, |
| | | value: 'all', |
| | | span: 24, |
| | | disabled: true, |
| | | row: true, |
| | | placeholder: ' ', |
| | | dicData: [{ |
| | | label: 'å
¨é¨', value: 'all' |
| | | }, { |
| | | label: 'é级å è½½', value: 'node' |
| | | }], |
| | | type: 'select', |
| | | },{ |
| | | label: 'æ¯å¦åªè½éæ©å¶åèç¹', |
| | | prop: 'onlyLeaf', |
| | | span: 7, |
| | | value: false, |
| | | type: 'switch', |
| | | span: 24, |
| | | disabled: true, |
| | | row: true, |
| | | placeholder: ' ', |
| | | },{ |
| | | label: 'æåºå段', |
| | | prop: 'sortField', |
| | | span: 7, |
| | | //type: 'table', |
| | | tip: 'æ¥è¯¢æ°æ®æ¶çæåºå段', |
| | | tipPlacement: 'right', |
| | | span: 24, |
| | | disabled: true, |
| | | row: true, |
| | | placeholder: ' ', |
| | | },{ |
| | | label: 'æåºç±»å', |
| | | prop: 'sortType', |
| | | span: 7, |
| | | type: 'select', |
| | | value: 'asc', |
| | | span: 24, |
| | | disabled: true, |
| | | row: true, |
| | | placeholder: ' ', |
| | | dicData: [{ |
| | | label: 'ååº', value: 'asc' |
| | | }, { |
| | | label: 'éåº', value: 'desc' |
| | | }], |
| | | },], |
| | | }, |
| | | ], |
| | | // å¹³å°ç±»åç表åé
ç½® |
| | | standColumn:[{ |
| | | label: 'åèçUIä¸ä¸æ', |
| | | prop: 'referContent', |
| | | span: 7, |
| | | tip: 'åªæåç
§çªå£ç±»åæ¯standæ¶æå¿
须设置,ä¸å¨standç±»å䏿è½çæ', |
| | | tipPlacement: 'right', |
| | | span: 24, |
| | | disabled: true, |
| | | row: true, |
| | | placeholder: ' ', |
| | | }, |
| | | { |
| | | label: 'å¹³å°çè¡¨æ ¼ç¼å·', |
| | | prop: 'displayTable', |
| | | span: 7, |
| | | tip: 'ä¸åç
§çUIä¸ä¸æäºæ¥ï¼åªæåç
§çªå£ç±»åæ¯standæ¶æå¿
须设置ï¼ä¸å¨standç±»å䏿è½çæ', |
| | | tipPlacement: 'right', |
| | | span: 24, |
| | | disabled: true, |
| | | row: true, |
| | | placeholder: ' ', |
| | | }], |
| | | |
| | | // æ¾ç¤ºç屿§åæ¥è¯¢æ¡ä»¶è¡¨æ ¼åºå |
| | | attrAndSrchCondOption: { |
| | | // æ¥è¯¢æ¡ä»¶è¡¨æ ¼åºå |
| | | srchCondOption: { |
| | | border: true, |
| | | height: '40vh', |
| | | tip: false, |
| | |
| | | prop: 'filterValue', |
| | | } |
| | | ], |
| | | },{ |
| | | }, |
| | | ], |
| | | }, |
| | | srchCondParams: { |
| | | ref: "srchCondCrud", |
| | | srchCondLoading: false, |
| | | srchCondData: [], |
| | | isShow: true, |
| | | }, |
| | | toggleSrchCrudWidth: { |
| | | width: '40%', |
| | | height: '100%', |
| | | }, |
| | | |
| | | //æ¾ç¤ºç屿§è¡¨æ ¼é
ç½®åºå |
| | | showAttrOption: { |
| | | border: true, |
| | | height: '40vh', |
| | | tip: false, |
| | | searchShow: false, |
| | | searchMenuSpan: 6, |
| | | index: true, |
| | | selection: false, |
| | | menu: false, |
| | | addBtn: false, |
| | | refreshBtn: false, |
| | | searchShowBtn: false, |
| | | columnBtn: false, |
| | | dialogClickModal: false, |
| | | highlightCurrentRow: true, |
| | | align: 'center', |
| | | menuAlign: 'center', |
| | | column: [ |
| | | { |
| | | label: 'æ¾ç¤ºç屿§', |
| | | children: [ |
| | | { |
| | |
| | | prop: 'title' |
| | | },{ |
| | | label: 'åæ®µç±»å', |
| | | prop: 'fieldType' |
| | | prop: 'fieldTypeText' |
| | | },{ |
| | | label: 'åè¡¨å¯æåº', |
| | | prop: 'sort' |
| | | },{ |
| | | label: 'æåºå段', |
| | | prop: 'sortField' |
| | | prop: 'attrSortField' |
| | | },{ |
| | | label: 'åæ®µå®½åº¦', |
| | | prop: 'width' |
| | | },{ |
| | | label: 'ååºå®ä½ç½®', |
| | | prop: 'fixedText' |
| | | prop: 'fixedPositionText' |
| | | },{ |
| | | label: 'jsæ¾ç¤ºä»£ç ', |
| | | prop: 'templet' |
| | | },{ |
| | | label: 'æ¯å¦å¿«éæ¥è¯¢', |
| | | prop: 'isQuery' |
| | | } |
| | | ] |
| | | }, |
| | | ], |
| | | }, |
| | | attrAndSrchCondParams: { |
| | | ref: "attrOrSrchCondCrud", |
| | | attrAndSrchCondLoading: false, |
| | | attrAndSrchCondData: [], |
| | | showAttrParams: { |
| | | ref: "showAttrCrud", |
| | | showAttrLoading: false, |
| | | showAttrData: [], |
| | | isShow: true, |
| | | }, |
| | | |
| | | // æ¯å¦æ¾ç¤ºåå¨ç表ååºå |
| | | isShowForm: true, |
| | | toggleBasicCrudWidth: { |
| | | height: '100%', |
| | | width: '70%', |
| | | }, |
| | | |
| | | // æ¯å¦æ¾ç¤ºå±æ§è¡¨æ ¼ |
| | | isShowAttrCrud: true, |
| | | |
| | | defaultOrGridForm: ['limit','sortField','sortType'], |
| | | standForm: ['referContent','displayTable'], |
| | | treeForm: [ |
| | | 'parentFieldName', |
| | | 'parentUsedField', |
| | | 'parentValue', |
| | | 'loadType', |
| | | 'onlyLeaf', |
| | | 'sortField', |
| | | 'sortType' |
| | | ], |
| | | } |
| | | }, |
| | | methods: { |
| | | |
| | | // ä¸ä¸æ¥è¦è¿è¡çæä½éæ©å¹¶ä¿åæéæ©å¹¶ä¿®æ¹ |
| | | selectedreferConfig(condition) { |
| | | // å½åéä¸çåç
§é
ç½®è¡ |
| | |
| | | this.$message.warning("è¯·éæ©ä¸æ¡æ°æ®ï¼"); |
| | | return; |
| | | } |
| | | let filterForm = this.filterForm(currentSeletedRow); |
| | | if(condition == "selectedSave"){ |
| | | console.log(currentSeletedRow); |
| | | // ç´æ¥ä¿å,æä»¥ç´æ¥è°ç¨codeçé¢ççé¢åæ¾ |
| | | this.$emit('echoReferConfig',filterForm); |
| | | // console.log(filterForm); |
| | | }else { |
| | | console.log(currentSeletedRow); |
| | | } |
| | | }, |
| | | referConfigOnload(page, params = {}){ |
| | | this.referConfigParams.referConfigLoading = true; |
| | | this.referConfigParams.referConfigData = [ |
| | | { |
| | | id: 'test', |
| | | name: 'æµè¯', |
| | | referType: 'test', |
| | | textField: 'test', |
| | | valueField: 'test', |
| | | typeText:'é»è®¤é
ç½®', |
| | | },{ |
| | | id: 'test1', |
| | | name: 'æµè¯1', |
| | | referType: 'test1', |
| | | textField: 'test1', |
| | | valueField: 'test1', |
| | | typeText:'å¹³å°é
ç½®', |
| | | // éæ©å¹¶ä¿®æ¹,æ§è¡codeæå¡ä¸çæå¼çé¢ï¼æä»¥è¦å
æé åºæéçæ°æ® |
| | | let submitForm = { |
| | | referBtmName: filterForm.referType, |
| | | referBtmId: filterForm.referTypeName, |
| | | referConfig: JSON.stringify(filterForm), |
| | | } |
| | | this.$emit('openReconfigInterFace',submitForm); |
| | | } |
| | | this.isShowReferConfigCrud = false; |
| | | }, |
| | | // è¿æ»¤åºå½åç±»åæéè¦ç屿§ |
| | | filterForm(currentRow){ |
| | | // éè¦ä¿ççåºç¡å±æ§ |
| | | let submittDefaultForm = [ |
| | | 'referTypeName', |
| | | 'referType', |
| | | 'textField', |
| | | 'valueField', |
| | | 'type', //åç
§çªå£ç±»å |
| | | 'url', |
| | | 'backPath', |
| | | 'method', |
| | | 'height', |
| | | 'useFormKey', |
| | | 'paramForFormKey', |
| | | 'isMuti', |
| | | 'mapFields', |
| | | 'isOpenGlobal', //æ¯å¦å¼å¯å
¨å± |
| | | 'isPersistence', |
| | | 'id', |
| | | 'name', |
| | | ]; |
| | | this.$nextTick(() => { |
| | | this.$refs[this.referConfigParams.ref].doLayout() |
| | | }) |
| | | this.referConfigParams.referConfigLoading = false; |
| | | // éè¦æ ¹æ®ç±»åæ·»å ç屿§ |
| | | let addArray = []; |
| | | let newForm ={}; |
| | | // æ ¹æ®ä¸åç±»åè¿æ»¤åºä¸åçç表å屿§ |
| | | if(currentRow.type == 'stand'){ |
| | | addArray = ['referContent', 'displayTable']; |
| | | } else if(currentRow.type == 'default' || currentRow.type == 'grid'){ |
| | | addArray = ['limit', 'sortField', 'sortType']; |
| | | } else if(currentRow.type == 'tree'){ |
| | | addArray = [ |
| | | "parentFieldName", |
| | | 'parentUsedField', |
| | | 'parentValue', |
| | | 'loadType', |
| | | 'onlyLeaf', |
| | | 'sortField', |
| | | 'sortType' |
| | | ]; |
| | | } |
| | | // æ¼æ¥ä¸¤ä¸ªæ°ç» |
| | | submittDefaultForm = submittDefaultForm.concat(addArray); |
| | | if(currentRow.codeSrchCondConfigVOS.length > 0){ |
| | | //console.log(currentRow.codeSrchCondConfigVOS); |
| | | newForm = { |
| | | codeSrchCondConfigVOS: currentRow.codeSrchCondConfigVOS, |
| | | } |
| | | } |
| | | if((currentRow.type == 'default' || currentRow.type == 'grid') && currentRow.codeShowFieldConfigVOS.length >= 0){ |
| | | newForm = Object.assign(newForm,{codeShowFieldConfigVOS: currentRow.codeShowFieldConfigVOS}); |
| | | } |
| | | // è¿æ»¤åºç©ºå¼å±æ§åä¸éè¦ç屿§ |
| | | submittDefaultForm.forEach(item=>{ |
| | | // console.log(!this.checkStringIsEmpty(currentRow[item]) || !this.checkArrayIsUndefined(currentRow[item])); |
| | | if((item == 'isMuti' || item == 'onlyLeaf') || (!this.checkStringIsEmpty(currentRow[item]) || !this.checkArrayIsUndefined(currentRow[item]))){ |
| | | //console.log(item,currentRow[item]); |
| | | newForm = Object.assign(newForm,{[item]:currentRow[item]}); |
| | | } |
| | | }); |
| | | // console.log(newForm); |
| | | return newForm; |
| | | }, |
| | | /** |
| | | * 为空 |
| | | * @param val |
| | | * @returns {boolean} |
| | | */ |
| | | checkStringIsEmpty(val){ |
| | | if ( |
| | | val === null || |
| | | typeof val === 'undefined' || |
| | | (typeof val === 'string' && val === "" && val !== 'undefined') |
| | | ) { |
| | | return true; |
| | | } |
| | | return false; |
| | | }, |
| | | /** |
| | | * æ¯å¦ä¸ºå®ä¹ |
| | | * @param val |
| | | * @returns {boolean} |
| | | */ |
| | | checkArrayIsUndefined(val){ |
| | | return typeof val === 'array' && (val.length === 0 || val === null || typeof val === 'undefined' || val === []); |
| | | }, |
| | | referConfigOnload(){ |
| | | let refer = this.referConfigParams; |
| | | refer.referConfigLoading = true; |
| | | let param = {}; |
| | | // å¤ä¸ªconditionMapè¿æ ·ä¼ å |
| | | if(refer.referConfigQuery){ |
| | | Object.keys(refer.referConfigQuery).forEach(key=>{ |
| | | param['conditionMap['+key+']'] = refer.referConfigQuery[key]; |
| | | }); |
| | | } |
| | | getReferConfigPage( |
| | | refer.referConfigPage.currentPage, |
| | | refer.referConfigPage.pageSize, |
| | | param |
| | | ).then(res=>{ |
| | | const data = res.data.data; |
| | | this.referConfigParams.referConfigPage.total = data.total; |
| | | this.referConfigParams.referConfigData = data.records; |
| | | this.referConfigParams.referConfigLoading = false; |
| | | //console.log(this.referConfigParams.referConfigData.length > 0); |
| | | // 渲æå
¶ä»åºåæ°æ® |
| | | if(this.referConfigParams.referConfigData.length > 0) { |
| | | this.$nextTick(() => { |
| | | // è¡¨æ ¼éè¡é®é¢ |
| | | this.$refs[this.referConfigParams.ref].doLayout() |
| | | // é»è®¤éä¸ç¬¬ä¸è¡ |
| | | this.referConfigParams.referConfigSelectedRow = 0; |
| | | this.$refs[this.referConfigParams.ref].setCurrentRow(this.referConfigParams.referConfigData[0]); |
| | | this.referConfigParams.referConfigSelectedRowData = this.referConfigParams.referConfigData[0]; |
| | | this.attrAndSrchCondOnload(this.referConfigParams.referConfigData[0]); |
| | | this.loadDefaultOrGridOrStandOrTreeForm(this.referConfigParams.referConfigData[0]); |
| | | }) |
| | | } |
| | | }); |
| | | }, |
| | | referBtmTypeSizeChange(pageSize){ |
| | | this.referConfigParams.referConfigPage.pageSize = pageSize; |
| | |
| | | this.referConfigParams.referConfigPage.currentPage = currentPage; |
| | | }, |
| | | referConfigRowClick(row){ |
| | | // 对å½åéä¸è¡è¿è¡è®°å½ |
| | | this.referConfigParams.referConfigSelectedRowData = row; |
| | | // åéæ¡éä¸ |
| | | this.referConfigParams.referConfigSelectedRow = row.$index |
| | | this.attrAndSrchCondOnload(row); |
| | | this.loadDefaultOrGridOrStandOrTreeForm(row); |
| | | }, |
| | | referConfigDataChange(params, done){ |
| | | referConfigSearchChange(params, done){ |
| | | this.referConfigParams.referConfigQuery = params; |
| | | this.referConfigParams.referConfigPage.currentPage = 1; |
| | | this.referConfigOnload(this.referConfigParams.referConfigPage, params); |
| | | this.referConfigOnload(); |
| | | done(); |
| | | }, |
| | | referConfigSearchReset(){ |
| | | this.referConfigParams.referConfigQuery = {}; |
| | | this.referConfigOnload(this.referConfigParams.referConfigPage); |
| | | }, |
| | | referConfigCurrentChange(currentPage){ |
| | | this.referConfigParams.referConfigPage.currentPage = currentPage; |
| | | }, |
| | | referConfigSizeChange(pageSize){ |
| | | this.referConfigParams.referConfigPage.pageSize = pageSize; |
| | | }, |
| | | // å è½½è¡¨åæ¾ç¤ºå
容 |
| | | loadDefaultOrGridOrStandOrTreeForm(currentFormData){ |
| | | if(currentFormData.type != 'tree' & |
| | | currentFormData.type != 'stand' & |
| | | currentFormData.type != 'default'& |
| | | currentFormData.type != 'grid') { |
| | | //æ§å¶åç
§é
ç½®è¡¨æ ¼åè¡¨åæ¾ç¤ºæ¯ä¾ |
| | | this.isShowForm = false; |
| | | this.toggleBasicCrudWidth.width = '100%'; |
| | | }else { |
| | | this.isShowForm = true; |
| | | this.toggleBasicCrudWidth.width = '70%'; |
| | | this.toggleFormOption(currentFormData); |
| | | } |
| | | this.toggleCurdWidth(currentFormData); |
| | | //console.log(this.isShowForm); |
| | | //console.log(this.toggleBasicCrudWidth.width); |
| | | }, |
| | | |
| | | // æ ¹æ®typeçåå¨åæ¢è¡¨åçé
ç½®option |
| | | toggleFormOption(data){ |
| | | //console.log(data); |
| | | let currentForm = ''; |
| | | if(data.type=='default' || data.type=='grid'){ |
| | | this.formOption.column = this.sortColumn; |
| | | currentForm = 'defaultOrGridForm'; |
| | | }else if(data.type == 'stand'){ |
| | | this.formOption.column = this.standColumn; |
| | | currentForm = 'standForm'; |
| | | }else if(data.type == 'tree'){ |
| | | this.formOption.column = this.treeColumn; |
| | | currentForm = 'treeForm' |
| | | } |
| | | this.referConfigForm = {}, |
| | | //console.log( this.formOption); |
| | | this[currentForm].forEach(item=>{ |
| | | Vue.set(this.referConfigForm, item, data[item]) |
| | | //this.referConfigForm = Object.assign(this.referConfigForm,{[item]:data[item]}) |
| | | }) |
| | | // console.log(this.referConfigForm); |
| | | }, |
| | | // æ ¹æ®typeçåå¨åæ¢attrè¡¨æ ¼çæ¾ç¤ºéèï¼è°æ´æ¥è¯¢æ¡ä»¶è¡¨æ ¼ç宽度 |
| | | toggleCurdWidth(data) { |
| | | if(data.type=='default' || data.type=='grid'){ |
| | | this.showAttrParams.isShow = true; |
| | | // ä¸éè¦æ¾ç¤ºå±æ§è¡¨æ ¼ææéè¦å°æ¥è¯¢è°ä»·è¡¨æ ¼ç¼©å°ä¸º100% |
| | | this.toggleSrchCrudWidth.width = '40%'; |
| | | }else { |
| | | this.showAttrParams.isShow = false; |
| | | // ä¸éè¦æ¾ç¤ºå±æ§è¡¨æ ¼ææéè¦å°æ¥è¯¢è°ä»·è¡¨æ ¼ç¼©å°ä¸º100% |
| | | this.toggleSrchCrudWidth.width = '100%'; |
| | | } |
| | | // console.log(this.toggleSrchCrudWidth); |
| | | // console.log(this.showAttrParams.isShow); |
| | | }, |
| | | |
| | | // æ¾ç¤ºç屿§åæ¥è¯¢æ¡ä»¶ç¸å
³æ¹æ³ |
| | | attrAndSrchCondOnload(row){ |
| | | this.attrAndSrchCondParams.attrAndSrchCondLoading = true; |
| | | this.attrAndSrchCondParams.attrAndSrchCondParams = row.attrAndSrchCondParams |
| | | this.attrAndSrchCondParams.attrAndSrchCondLoading = false; |
| | | this.srchCondParams.srchCondLoading = true; |
| | | this.showAttrParams.showAttrLoading = true; |
| | | this.$nextTick(() => { |
| | | this.$refs[this.srchCondParams.ref].doLayout() |
| | | this.$refs[this.showAttrParams.ref].doLayout() |
| | | }); |
| | | this.srchCondParams.srchCondData = row.codeSrchCondConfigVOS |
| | | this.showAttrParams.showAttrData = row.codeShowFieldConfigVOS |
| | | //console.log(this.showAttrParams.showAttrData); |
| | | this.srchCondParams.srchCondLoading = false; |
| | | this.showAttrParams.showAttrLoading = false; |
| | | }, |
| | | |
| | | }, |
| | |
| | | .refer-config-crud > .el-card > .el-card__body > .avue-crud__menu { |
| | | display: none!important; |
| | | } |
| | | .refer-attrorsrchcond-crud > .el-card > .el-card__body > .avue-crud__menu { |
| | | .refer-srchcond-crud > .el-card > .el-card__body > .avue-crud__menu { |
| | | display: none!important; |
| | | } |
| | | .refer-attr-crud > .el-card > .el-card__body > .avue-crud__menu { |
| | | display: none!important; |
| | | } |
| | | |
| | |
| | | style="height: 115vh; margin-top: -14vh; overflow-y: hidden"> |
| | | <div style="width: 100%; overflow-y: auto; height: 70vh"> |
| | | <el-row> |
| | | <avue-form ref="form" :option="formOption" v-model="form" class="referTypeForm"> |
| | | <avue-form :ref="formRefs[0]" :option="formOption" v-model="form" class="referTypeForm"> |
| | | <template #referTypeName="{disabled,size}"> |
| | | <el-input :disabled="disabled" |
| | | :size="size" |
| | |
| | | </template> |
| | | </avue-form> |
| | | </el-row> |
| | | <el-row v-show="form.type=='default' || form.type=='grid'"> |
| | | <avue-crud |
| | | ref="crudAttr" |
| | | class="crud-attr" |
| | | :option="attrOption" |
| | | @cell-click="clickAttrEdit" |
| | | :data="attrData"> |
| | | <!-- è¡¨æ ¼å
æä½æé® --> |
| | | <template slot="menu" slot-scope="scope"> |
| | | <el-button type="text" |
| | | size="small" |
| | | icon="el-icon-search" |
| | | plain |
| | | @click="scope.row.isquery=!scope.row.isquery"> |
| | | {{scope.row.isquery ? "åæ¶å¿«éæ¥è¯¢":"å¿«éæ¥è¯¢"}} |
| | | </el-button> |
| | | <el-button type="text" |
| | | size="small" |
| | | icon="el-icon-minus" |
| | | plain |
| | | @click="removeCurrentRow(scope.row,'removeAttr')">ç§»é¤ |
| | | </el-button> |
| | | </template> |
| | | <!-- è¡¨æ ¼å·¦ä¸æ¹æé®åºå --> |
| | | <template slot="menuLeft" slot-scope="scope"> |
| | | <el-button type="primary" |
| | | size="small" |
| | | icon="el-icon-plus" |
| | | @click="openSelectionTable('selectAttr')">鿩屿§ |
| | | </el-button> |
| | | <div class="tag-group" style="display: inline"> |
| | | <el-tag |
| | | v-for="item in attrData" |
| | | v-show="item.isquery && item.title!=''" |
| | | style="margin-left: 3px" |
| | | :key="item.title" |
| | | type="info" |
| | | size="small" |
| | | effect="dark"> |
| | | {{ item.title }} |
| | | </el-tag> |
| | | </div> |
| | | </template> |
| | | </avue-crud> |
| | | </el-row> |
| | | <el-row style="margin-top: 10px"> |
| | | <avue-crud |
| | | ref="crudAddCondition" |
| | | :option="addSearchCondtionOption" |
| | | @cell-click="clickAddSearchCondtionEdit" |
| | | :data="addSearchCondtionData"> |
| | | <!-- è¡¨æ ¼å
æä½æé® --> |
| | | <template slot="menu" slot-scope="scope"> |
| | | <el-button type="text" |
| | | size="small" |
| | | icon="el-icon-minus" |
| | | plain |
| | | @click="removeCurrentRow(scope.row,'removeaddSearchCondtion')">ç§»é¤ |
| | | </el-button> |
| | | </template> |
| | | <!-- è¡¨æ ¼å·¦ä¸æ¹æé®åºå --> |
| | | <template slot="menuLeft" slot-scope="scope"> |
| | | <el-button type="primary" |
| | | size="small" |
| | | icon="el-icon-plus" |
| | | @click="openSelectionTable('addSearchCondition')"> |
| | | æ·»å æ¥è¯¢æ¡ä»¶ |
| | | </el-button> |
| | | </template> |
| | | </avue-crud> |
| | | <el-row> |
| | | <el-tabs type="border-card" v-model="activeName"> |
| | | <el-tab-pane name="first" :disabled="isDisabledTabs"> |
| | | <span slot="label"><i class="el-icon-monitor"></i>æ¾ç¤ºç屿§ä¸å
¶ä»é
ç½®</span> |
| | | <el-row> |
| | | <avue-form :ref="formRefs[1]" :option="formOtherOption" v-model="form" class="referTypeForm"> |
| | | <template #sortField="{disabled,size}"> |
| | | <el-input :disabled="disabled" |
| | | :size="size" |
| | | v-model="form.sortField" |
| | | ref="sortField" |
| | | placeholder="è¯·éæ© æåºå段" |
| | | prefix-icon="el-icon-search" |
| | | readonly="true" |
| | | @focus="openSelectionTable('sortField')"> |
| | | <i slot="suffix" class="el-icon-circle-close" @click="clearSelectionTable('sortField')" style="margin-right: 5px;cursor: pointer;"></i> |
| | | </el-input> |
| | | </template> |
| | | </avue-form> |
| | | </el-row> |
| | | <el-row v-show="form.type=='default' || form.type=='grid'"> |
| | | <el-divider content-position="left" style="margin-bottom: -40px;">é
ç½®æ¾ç¤ºç屿§</el-divider> |
| | | <avue-crud |
| | | ref="crudAttr" |
| | | class="crud-attr" |
| | | :option="attrOption" |
| | | @cell-click="clickAttrEdit" |
| | | :data="codeShowFieldConfigVOS"> |
| | | <!-- è¡¨æ ¼å
æä½æé® --> |
| | | <template slot="menu" slot-scope="scope"> |
| | | <el-button type="text" |
| | | size="small" |
| | | icon="el-icon-search" |
| | | plain |
| | | @click="scope.row.isquery=!scope.row.isquery"> |
| | | {{scope.row.isquery ? "åæ¶å¿«éæ¥è¯¢":"å¿«éæ¥è¯¢"}} |
| | | </el-button> |
| | | <el-button type="text" |
| | | size="small" |
| | | icon="el-icon-minus" |
| | | plain |
| | | @click="removeCurrentRow(scope.row,'removeAttr')">ç§»é¤ |
| | | </el-button> |
| | | </template> |
| | | <!-- è¡¨æ ¼å·¦ä¸æ¹æé®åºå --> |
| | | <template slot="menuLeft" slot-scope="scope"> |
| | | <el-button type="primary" |
| | | size="small" |
| | | icon="el-icon-plus" |
| | | @click="openSelectionTable('selectAttr')">鿩屿§ |
| | | </el-button> |
| | | <div class="tag-group" style="display: inline"> |
| | | <el-tag |
| | | v-for="item in codeShowFieldConfigVOS" |
| | | v-show="item.isquery && item.title!=''" |
| | | style="margin-left: 3px" |
| | | :key="item.title" |
| | | type="info" |
| | | size="small" |
| | | effect="dark"> |
| | | {{ item.title }} |
| | | </el-tag> |
| | | </div> |
| | | </template> |
| | | </avue-crud> |
| | | </el-row> |
| | | </el-tab-pane> |
| | | <el-tab-pane name="second"> |
| | | <span slot="label"><i class="el-icon-search"></i>æ·»å æ¥è¯¢æ¡ä»¶</span> |
| | | <avue-crud |
| | | ref="crudAddCondition" |
| | | :option="addSearchCondtionOption" |
| | | @cell-click="clickAddSearchCondtionEdit" |
| | | :data="form.codeSrchCondConfigVOS"> |
| | | <!-- è¡¨æ ¼å
æä½æé® --> |
| | | <template slot="menu" slot-scope="scope"> |
| | | <el-button type="text" |
| | | size="small" |
| | | icon="el-icon-minus" |
| | | plain |
| | | @click="removeCurrentRow(scope.row,'removeaddSearchCondtion')">ç§»é¤ |
| | | </el-button> |
| | | </template> |
| | | <!-- è¡¨æ ¼å·¦ä¸æ¹æé®åºå --> |
| | | <template slot="menuLeft" slot-scope="scope"> |
| | | <el-button type="primary" |
| | | size="small" |
| | | icon="el-icon-plus" |
| | | @click="openSelectionTable('addSearchCondition')"> |
| | | æ·»å æ¥è¯¢æ¡ä»¶ |
| | | </el-button> |
| | | </template> |
| | | </avue-crud> |
| | | </el-tab-pane> |
| | | </el-tabs> |
| | | </el-row> |
| | | </div> |
| | | |
| | |
| | | let element = ''; |
| | | return { |
| | | |
| | | activeName: 'first', //å½åæ´»å¨çtabs |
| | | labelWidth: '150', // æ é¢å®½åº¦ |
| | | isShowReferConfigForm: false, // 第ä¸å±å¯¹è¯æ¡æ¾ç¤ºéèæ§å¶ |
| | | referTypeIsReadOnly: false, |
| | |
| | | paramForFormKey: '', |
| | | isMuti: false, |
| | | mapFields: '', |
| | | isOpenGlobal: true, //æ¯å¦å¼å¯å
¨å± |
| | | codeSrchCondConfigVOS: [], |
| | | isPersistence: true, // æ¯å¦æä¹
å |
| | | id: '', |
| | | name: '', |
| | | // æ¥è¯¢æ¡ä»¶å表 |
| | | // limit: '15', |
| | | // sortField: '', |
| | |
| | | // loadType: 'all', |
| | | // onlyLeaf: false, |
| | | }, |
| | | attrData: [], |
| | | // type忢æ¶å¯¹form表å屿§è¿è¡ç§»é¤ |
| | | removeFormAttr: [ |
| | | 'limit', |
| | | 'sortField', |
| | | 'sortType', |
| | | 'parentFieldName', |
| | | 'parentUsedField', |
| | | 'parentValue', |
| | | 'loadType', |
| | | 'onlyLeaf', |
| | | 'sortType', |
| | | 'referContent', |
| | | 'displayTable', |
| | | ], |
| | | codeShowFieldConfigVOS: [], |
| | | attrOption: { |
| | | height:'180', |
| | | tip: false, |
| | |
| | | columnBtn: false, |
| | | dialogClickModal: false, |
| | | highlightCurrentRow: true, |
| | | indexFixed: false, |
| | | menuFixed: false, |
| | | column: [ |
| | | { |
| | | label: "ååæ®µ(*)", |
| | |
| | | blur: (value) => this.updateAttrBlur(value), |
| | | },{ |
| | | label: "æåºå段", |
| | | prop: "sortField", |
| | | prop: "attrSortField", |
| | | cell: true, |
| | | clearable: false, |
| | | blur: (value) => this.updateAttrBlur(value), |
| | |
| | | blur: (value) => this.updateAttrBlur(value), |
| | | },{ |
| | | label: "ååºå®ä½ç½®", |
| | | prop: "fixedText", |
| | | prop: "fixedPosition", |
| | | cell: true, |
| | | type:"select", |
| | | clearable: false, |
| | |
| | | }, |
| | | ] |
| | | }, |
| | | addSearchCondtionData: [], |
| | | // addSearchCondtionData: [], |
| | | addSearchCondtionOption: { |
| | | height:'150', |
| | | tip: false, |
| | |
| | | } |
| | | ] |
| | | }, |
| | | // 两个表åçref |
| | | formRefs: ['form','otherForm'], |
| | | |
| | | // tabsæ§å¶ |
| | | isDisabledTabs: false, |
| | | activeName: 'first', //å½åæ´»å¨çtabs |
| | | |
| | | |
| | | //为ãåç
§çä¸å¡ç±»åãéåå¼å¯¹è¯æ¡ |
| | | selectionReferBtmTypeOption: { |
| | |
| | | submitBtn: false, |
| | | emptyBtn: false, |
| | | labelWidth: '145', //é»è®¤æ ç¾å®½åº¦ |
| | | // åºç¡è¡¨åä¿¡æ¯å±ç¤ºåºå |
| | | column: [ |
| | | { |
| | | label: 'åç
§çä¸å¡ç±»å', |
| | | prop: 'referTypeName', |
| | | span: 7, |
| | | disabled: this.referTypeIsReadOnly, |
| | | clearable: !this.referTypeIsReadOnly, |
| | | tip: 'åç
§æ°æ®æ¥è¯¢çä¸å¡ç±»åã', |
| | | tipPlacement: 'right', |
| | | rules: [{ |
| | | required: true, |
| | | message: "(åç
§çä¸å¡ç±»å)å¿
填项ä¸è½ä¸ºç©º", |
| | | trigger: ["blur","change"], |
| | | }], |
| | | },{ |
| | | label: 'æ¾ç¤ºç屿§', |
| | | prop: 'textField', |
| | | tip: 'éæ©æ°æ®åï¼æ¾ç¤ºå°å段ä¸çä¿¡æ¯æå±ç屿§ï¼ä¸è¬é½æ¯name,妿æ¯å¤ä¸ªå±æ§ä½¿ç¨éå·åå²ï¼å¦id,nameã', |
| | | tipPlacement: 'right', |
| | | span: 7, |
| | | value: 'name', |
| | | rules: [{ |
| | | required: true, |
| | | message: "(æ¾ç¤ºç屿§)å¿
填项ä¸è½ä¸ºç©º", |
| | | trigger: "blur", |
| | | }], |
| | | },{ |
| | | label: 'åå¨å¼ç屿§', |
| | | prop: 'valueField', |
| | | tip: 'éæ©æ°æ®åï¼ä¿åå°æ°æ®åºéç屿§ï¼ä¸è¬é½æ¯oidæè
idï¼å¦ææ¯å¤ä¸ªå±æ§ä½¿ç¨éå·åå²ï¼å¦oid ,id', |
| | | value: 'oid', |
| | | tipPlacement: 'right', |
| | | span: 7, |
| | | rules: [{ |
| | | required: true, |
| | | message: "(åå¨å¼ç屿§)å¿
填项ä¸è½ä¸ºç©º", |
| | | trigger: "blur", |
| | | }], |
| | | },{ |
| | | label: 'åç
§çªå£ç±»å', |
| | | prop: 'type', |
| | | tip: 'default:é»è®¤çåç
§çªå£æ ·å¼; stand:UIä¸ä¸æé
ç½®çæ¹å¼; classify:åç±»+æ¡£æ¡çæ¾ç¤º; èªå®ä¹çåç
§ç´æ¥åjsçç»ä»¶è·¯å¾ï¼tree:æ å½¢å±ç¤º;grid:å表å±ç¤º', |
| | | tipPlacement: 'right', |
| | | span: 7, |
| | | value: 'default', |
| | | type: 'select', |
| | | dicData: [{ |
| | | label: 'é»è®¤æ ·å¼', |
| | | value: 'default' |
| | | }, { |
| | | label: 'å¹³å°é
ç½®', |
| | | value: 'stand' |
| | | }, { |
| | | label: 'æ å½¢', |
| | | value: 'tree' |
| | | }, { |
| | | label: 'å表', |
| | | value: 'grid' |
| | | }, { |
| | | label: 'é¨é¨æ ', |
| | | value: 'refer/OrgDepartmentRefer' |
| | | }, { |
| | | label: 'é¨é¨å表', |
| | | value: 'refer/OrgDepartmentGridRefers' |
| | | }, { |
| | | label: 'ç¨æ·', |
| | | value: 'refer/SmUserRefer' |
| | | }, { |
| | | label: 'ç¨æ·å表', |
| | | value: 'refer/SmUserGridRefer' |
| | | }, { |
| | | label: 'è§è²å表', |
| | | value: 'refer/SmRoleRefer' |
| | | }, { |
| | | label: 'èå¡', |
| | | value: 'refer/OrgDutyRefer' |
| | | }, { |
| | | label: 'å·¥ç§', |
| | | value: 'refer/SmWorkTypeRefer' |
| | | }, { |
| | | label: 'æµç¨æ¨¡æ¿', |
| | | value: 'refer/WfProcessTemplateRefer' |
| | | }], |
| | | rules: [{ |
| | | required: true, |
| | | message: "(åç
§çªå£ç±»å)å¿
填项ä¸è½ä¸ºç©º", |
| | | trigger: "blur", |
| | | }], |
| | | change: ({ value, column }) => { |
| | | // å¤å表å,å 为å
¶ä»åç»ä¸å¦æåå¨å¼ï¼å¨åæ¢æ¶,ä¼ä¿çè¾å
¥çåæ®µå¼æä»¥éè¦è¿å |
| | | let oldForm = this.form; |
| | | this.form = {}; // 表å对象èµç©º |
| | | this.form.referType = oldForm.referType |
| | | this.form.textField = oldForm.textField |
| | | this.form.valueField = oldForm.valueField |
| | | this.form.type = oldForm.type //åç
§çªå£ç±»å |
| | | this.form.url = oldForm.url |
| | | this.form.backPath = oldForm.backPath |
| | | this.form.method = oldForm.method |
| | | this.form.height = oldForm.height |
| | | this.form.useFormKey = oldForm.useFormKey |
| | | this.form.paramForFormKey = oldForm.paramForFormKey |
| | | this.form.isMuti = oldForm.isMuti |
| | | this.form.mapFields = oldForm.mapFields |
| | | let addFrom = {}; //æ ¹æ®ç±»åéè¦æ·»å çä¸å屿§ |
| | | if(value == 'stand'){ |
| | | addFrom = { |
| | | referContent: '', |
| | | displayTable: '', |
| | | } |
| | | } else if(value == 'default' || value == 'grid'){ |
| | | addFrom = { |
| | | limit: '15', |
| | | sortField: '', |
| | | sortType: 'asc', |
| | | } |
| | | } else if(value == 'tree'){ |
| | | addFrom = { |
| | | parentFieldName: '', |
| | | parentUsedField: 'oid', |
| | | parentValue: '', |
| | | loadType: 'all', |
| | | onlyLeaf: false, |
| | | sortField: '', |
| | | sortType: 'asc', |
| | | } |
| | | group: [ |
| | | { |
| | | // åºç¡è¡¨åä¿¡æ¯å±ç¤ºåºå |
| | | //display: this.form.type=='default'||this.form.type=='grid', |
| | | icon: 'el-icon-info', |
| | | label: 'å¿
å¡«çåç
§é
ç½®', |
| | | collapse: true, |
| | | labelWidth: '115', |
| | | prop: 'groupDdefaultOrGrid', |
| | | column: [ |
| | | { |
| | | label: 'åç
§çä¸å¡ç±»å', |
| | | prop: 'referTypeName', |
| | | span: 6, |
| | | labelWidth: '130', |
| | | disabled: this.referTypeIsReadOnly, |
| | | clearable: !this.referTypeIsReadOnly, |
| | | tip: 'åç
§æ°æ®æ¥è¯¢çä¸å¡ç±»åã', |
| | | tipPlacement: 'bottom', |
| | | rules: [{ |
| | | required: true, |
| | | message: "(åç
§çä¸å¡ç±»å)å¿
填项ä¸è½ä¸ºç©º", |
| | | trigger: ["blur","change"], |
| | | }], |
| | | },{ |
| | | label: 'æ¾ç¤ºç屿§', |
| | | prop: 'textField', |
| | | tip: 'éæ©æ°æ®åï¼æ¾ç¤ºå°å段ä¸çä¿¡æ¯æå±ç屿§ï¼ä¸è¬é½æ¯name,妿æ¯å¤ä¸ªå±æ§ä½¿ç¨éå·åå²ï¼å¦id,nameã', |
| | | tipPlacement: 'bottom', |
| | | span: 6, |
| | | value: 'name', |
| | | rules: [{ |
| | | required: true, |
| | | message: "(æ¾ç¤ºç屿§)å¿
填项ä¸è½ä¸ºç©º", |
| | | trigger: "blur", |
| | | }], |
| | | },{ |
| | | label: 'åå¨å¼ç屿§', |
| | | prop: 'valueField', |
| | | tip: 'éæ©æ°æ®åï¼ä¿åå°æ°æ®åºéç屿§ï¼ä¸è¬é½æ¯oidæè
idï¼å¦ææ¯å¤ä¸ªå±æ§ä½¿ç¨éå·åå²ï¼å¦oid ,id', |
| | | value: 'oid', |
| | | tipPlacement: 'bottom', |
| | | span: 6, |
| | | rules: [{ |
| | | required: true, |
| | | message: "(åå¨å¼ç屿§)å¿
填项ä¸è½ä¸ºç©º", |
| | | trigger: "blur", |
| | | }], |
| | | },{ |
| | | label: 'åç
§çªå£ç±»å', |
| | | prop: 'type', |
| | | tip: 'default:é»è®¤çåç
§çªå£æ ·å¼; stand:UIä¸ä¸æé
ç½®çæ¹å¼; classify:åç±»+æ¡£æ¡çæ¾ç¤º; èªå®ä¹çåç
§ç´æ¥åjsçç»ä»¶è·¯å¾ï¼tree:æ å½¢å±ç¤º;grid:å表å±ç¤º', |
| | | tipPlacement: 'bottom', |
| | | span: 6, |
| | | value: 'default', |
| | | type: 'select', |
| | | dicData: [{ |
| | | label: 'é»è®¤æ ·å¼', |
| | | value: 'default' |
| | | }, { |
| | | label: 'å¹³å°é
ç½®', |
| | | value: 'stand' |
| | | }, { |
| | | label: 'æ å½¢', |
| | | value: 'tree' |
| | | }, { |
| | | label: 'å表', |
| | | value: 'grid' |
| | | }, { |
| | | label: 'é¨é¨æ ', |
| | | value: 'refer/OrgDepartmentRefer' |
| | | }, { |
| | | label: 'é¨é¨å表', |
| | | value: 'refer/OrgDepartmentGridRefers' |
| | | }, { |
| | | label: 'ç¨æ·', |
| | | value: 'refer/SmUserRefer' |
| | | }, { |
| | | label: 'ç¨æ·å表', |
| | | value: 'refer/SmUserGridRefer' |
| | | }, { |
| | | label: 'è§è²å表', |
| | | value: 'refer/SmRoleRefer' |
| | | }, { |
| | | label: 'èå¡', |
| | | value: 'refer/OrgDutyRefer' |
| | | }, { |
| | | label: 'å·¥ç§', |
| | | value: 'refer/SmWorkTypeRefer' |
| | | }, { |
| | | label: 'æµç¨æ¨¡æ¿', |
| | | value: 'refer/WfProcessTemplateRefer' |
| | | }], |
| | | rules: [{ |
| | | required: true, |
| | | message: "(åç
§çªå£ç±»å)å¿
填项ä¸è½ä¸ºç©º", |
| | | trigger: "blur", |
| | | }], |
| | | change: ({ value, column }) => { |
| | | // console.log("start",value); |
| | | // å¤å表å,å 为å
¶ä»åç»ä¸å¦æåå¨å¼ï¼å¨åæ¢æ¶,ä¼ä¿çè¾å
¥çåæ®µå¼æä»¥éè¦è¿å |
| | | let addFrom = {}; |
| | | this.activeName = 'first'; // é»è®¤åæ¢è³ç¬¬ä¸ä¸ªtab |
| | | //æ ¹æ®ç±»å对form表å屿§è¿è¡è°æ´ |
| | | if(value == 'stand'){ |
| | | addFrom = { |
| | | referContent: '', |
| | | displayTable: '', |
| | | }; |
| | | this.isDisabledTabs = false; |
| | | } else if(value == 'default' || value == 'grid'){ |
| | | addFrom = { |
| | | limit: '15', |
| | | sortField: '', |
| | | sortType: 'asc', |
| | | }; |
| | | this.isDisabledTabs = false; |
| | | } else if(value == 'tree'){ |
| | | addFrom = { |
| | | parentFieldName: '', |
| | | parentUsedField: 'oid', |
| | | parentValue: '', |
| | | loadType: 'all', |
| | | onlyLeaf: false, |
| | | sortField: '', |
| | | sortType: 'asc', |
| | | }; |
| | | // ä¸ç¥é为ä»ä¹type为treeçæ¶åä¼è§¦å两次changeäºä»¶ |
| | | // 导è´typeåæ¢å¤±è´¥ |
| | | this.form.type = 'tree'; |
| | | this.isDisabledTabs = false; |
| | | }else { |
| | | this.isDisabledTabs = true; |
| | | this.activeName = 'second'; |
| | | } |
| | | // ç±»å忢æ¶ï¼å¯¹ä¸éè¦ç屿§è¿è¡çé¤ |
| | | this.removeFormAttr.forEach(attr=>{ |
| | | // console.log(attr); |
| | | this.$delete(this.form,attr) |
| | | }) |
| | | // å并两个表å |
| | | this.form = Object.assign(addFrom,this.form); |
| | | // console.log("endFilter",this.form.type); |
| | | //console.log(this.form); |
| | | }, |
| | | },{ |
| | | label: 'æ¯å¦å¼å¯æä¹
å', |
| | | prop: 'isPersistence', |
| | | tip: 'true:å¼å¯æä¹
åï¼å¯¹å½åå®ä¹çåç
§é
ç½®è¿è¡æä¹
ååå¨ï¼ä¸æ¬¡å¯ç´æ¥éåï¼false:ä»
对å½åæ¬¡ç æ®µæ°å¢çæã', |
| | | tipPlacement: 'bottom', |
| | | span: 6, |
| | | type: 'switch', |
| | | },{ |
| | | display: this.form.isPersistence | this.form.isPersistence=='true', |
| | | label: 'ç¼å·', |
| | | prop: 'id', |
| | | rules: [{ |
| | | required: true, |
| | | message: "(å¼å§æä¹
åæ¶ç¼å·)å¿
填项ä¸è½ä¸ºç©º", |
| | | trigger: "blur", |
| | | }], |
| | | span: 6, |
| | | },{ |
| | | display: this.form.isPersistence | this.form.isPersistence=='true', |
| | | label: 'åç§°', |
| | | prop: 'name', |
| | | rules: [{ |
| | | required: true, |
| | | message: "(å¼å§æä¹
åæ¶åç§°)å¿
填项ä¸è½ä¸ºç©º", |
| | | trigger: "blur", |
| | | }], |
| | | span: 6, |
| | | } |
| | | // å并两个表å |
| | | this.form = Object.assign(addFrom,this.form); |
| | | //console.log(this.form); |
| | | }, |
| | | },{ |
| | | label: 'èªå®ä¹çåå°è·¯å¾', |
| | | prop: 'url', |
| | | tip: 'é常为空;妿æ¯å表ï¼åå°å¿
é¡»è¿åDataGridï¼å¦ææ¯æ ï¼åå°å¿
é¡»è¿åList<Tree>', |
| | | tipPlacement: 'right', |
| | | span: 7, |
| | | },{ |
| | | label: 'æå¡çå°å', |
| | | prop: 'backPath', |
| | | tip: 'é常为空ï¼å¨æ¯æå¾®æå¡æè
åå¸å¼é¨ç½²çæ¶åæé
ç½®', |
| | | tipPlacement: 'right', |
| | | span: 7, |
| | | },{ |
| | | label: '请æ±åå°çåè®®æ¹å¼', |
| | | prop: 'method', |
| | | tip: 'HTTPçåè®®æ¹å¼ï¼æ¯æPOST,PUT,GETï¼ä¸è¬é½æ¯GET', |
| | | tipPlacement: 'right', |
| | | span: 7, |
| | | value: 'GET', |
| | | type: 'select', |
| | | dicData: [{ |
| | | label:'GET',value: "GET" |
| | | },{ |
| | | label:'PUT',value: "PUT" |
| | | }, |
| | | { |
| | | label:'POST',value: "POST" |
| | | }], |
| | | },{ |
| | | label: 'çªå£æ¾ç¤ºçé«åº¦', |
| | | prop: 'height', |
| | | tip: 'é»è®¤ç©ºçï¼è®¾ç½®åè¡¨ç¤ºå¼ºå¶æ¾ç¤ºè¿æ ·çé«åº¦', |
| | | tipPlacement: 'right', |
| | | span: 7, |
| | | rules:[{ |
| | | validator: validateNumber, |
| | | message: "çªå£æ¾ç¤ºçé«åº¦å¿
须为æ°å¼ç±»å", |
| | | trigger: "blur", |
| | | }] |
| | | },{ |
| | | label: 'è¿æ»¤(级è)屿§', |
| | | prop: 'useFormKey', |
| | | tip: 'è·å表åä¸çå
¶ä»å±æ§ç屿§ç弿¥è¿æ»¤,æè
ä½¿ç¨æä¸ªå±æ§æ¥çº§èéæ©', |
| | | tipPlacement: 'right', |
| | | span: 7, |
| | | },{ |
| | | label: 'è¿æ»¤å±æ§è¯·æ±åæ°', |
| | | prop: 'paramForFormKey', |
| | | tip: '使ç¨è¿æ»¤å±æ§æ¶ï¼åéç»åå°ç请æ±åæ°', |
| | | tipPlacement: 'right', |
| | | span: 7, |
| | | },{ |
| | | label: 'æ¯å¦å¤é', |
| | | type: 'switch', |
| | | prop: 'isMuti', |
| | | value: false, |
| | | span: 7, |
| | | row: true, |
| | | },{ |
| | | label: 'æ å°å
¶ä»å±æ§', |
| | | prop: 'mapFields', |
| | | tip: 'éæ©æ°æ®åï¼å°éæ©çæ°æ®æ·è´å°è¡¨åéçå
¶ä»å±æ§ï¼ä¹¦åæ ¼å¼ä¸º{å½å表åä¸ç屿§:éæ©æ°æ®éç屿§,XXXXx:yyyy}', |
| | | tipPlacement: 'right', |
| | | span: 18, |
| | | } |
| | | ], |
| | | |
| | | ] |
| | | }, |
| | | { |
| | | icon: 'el-icon-info', |
| | | label: '页é¢åæ°é
ç½®', |
| | | collapse: false, |
| | | prop: 'webConfig', |
| | | column: [ |
| | | { |
| | | label: 'çªå£æ¾ç¤ºçé«åº¦', |
| | | prop: 'height', |
| | | tip: 'é»è®¤ç©ºçï¼è®¾ç½®åè¡¨ç¤ºå¼ºå¶æ¾ç¤ºè¿æ ·çé«åº¦', |
| | | tipPlacement: 'right', |
| | | span: 7, |
| | | rules:[{ |
| | | validator: validateNumber, |
| | | message: "çªå£æ¾ç¤ºçé«åº¦å¿
须为æ°å¼ç±»å", |
| | | trigger: "blur", |
| | | }] |
| | | },{ |
| | | label: 'è¿æ»¤(级è)屿§', |
| | | prop: 'useFormKey', |
| | | tip: 'è·å表åä¸çå
¶ä»å±æ§ç屿§ç弿¥è¿æ»¤,æè
ä½¿ç¨æä¸ªå±æ§æ¥çº§èéæ©', |
| | | tipPlacement: 'right', |
| | | span: 7, |
| | | },{ |
| | | label: 'è¿æ»¤å±æ§è¯·æ±åæ°', |
| | | prop: 'paramForFormKey', |
| | | tip: '使ç¨è¿æ»¤å±æ§æ¶ï¼åéç»åå°ç请æ±åæ°', |
| | | tipPlacement: 'right', |
| | | span: 7, |
| | | },{ |
| | | label: 'æ å°å
¶ä»å±æ§', |
| | | prop: 'mapFields', |
| | | tip: 'éæ©æ°æ®åï¼å°éæ©çæ°æ®æ·è´å°è¡¨åéçå
¶ä»å±æ§ï¼ä¹¦åæ ¼å¼ä¸º{å½å表åä¸ç屿§:éæ©æ°æ®éç屿§,XXXXx:yyyy}', |
| | | tipPlacement: 'right', |
| | | span: 7, |
| | | },{ |
| | | label: 'æ¯å¦å¼å¯å
¨å±', |
| | | prop: 'isOpenGlobal', |
| | | tip: 'å¼å¯å
¨å±ä¹å对å
¨é¨åç
§é
ç½®æ°æ®è¿è¡æ¥è¯¢ï¼é»è®¤æ ¹æ®ç§æ·è¿è¡æ¥è¯¢ã', |
| | | tipPlacement: 'right', |
| | | type: 'switch', |
| | | span: 7, |
| | | },{ |
| | | label: 'æ¯å¦å¤é', |
| | | type: 'switch', |
| | | prop: 'isMuti', |
| | | value: false, |
| | | span: 7, |
| | | row: true, |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | icon: 'el-icon-info', |
| | | label: 'åå°åæ°é
ç½®', |
| | | collapse: false, |
| | | prop: 'backstageConfig', |
| | | column: [ |
| | | { |
| | | label: 'èªå®ä¹çåå°è·¯å¾', |
| | | prop: 'url', |
| | | tip: 'é常为空;妿æ¯å表ï¼åå°å¿
é¡»è¿åDataGridï¼å¦ææ¯æ ï¼åå°å¿
é¡»è¿åList<Tree>', |
| | | tipPlacement: 'right', |
| | | span: 7, |
| | | },{ |
| | | label: 'æå¡çå°å', |
| | | prop: 'backPath', |
| | | tip: 'é常为空ï¼å¨æ¯æå¾®æå¡æè
åå¸å¼é¨ç½²çæ¶åæé
ç½®', |
| | | tipPlacement: 'right', |
| | | span: 7, |
| | | },{ |
| | | label: '请æ±åå°çåè®®æ¹å¼', |
| | | prop: 'method', |
| | | tip: 'HTTPçåè®®æ¹å¼ï¼æ¯æPOST,PUT,GETï¼ä¸è¬é½æ¯GET', |
| | | tipPlacement: 'right', |
| | | span: 7, |
| | | value: 'GET', |
| | | type: 'select', |
| | | dicData: [{ |
| | | label:'GET',value: "GET" |
| | | },{ |
| | | label:'PUT',value: "PUT" |
| | | }, |
| | | { |
| | | label:'POST',value: "POST" |
| | | }], |
| | | }, |
| | | ] |
| | | }, |
| | | ] |
| | | } |
| | | }, |
| | | formOtherOption(){ |
| | | return { |
| | | // åå¨ç表ååºå |
| | | submitBtn: false, |
| | | emptyBtn: false, |
| | | labelWidth: '145', //é»è®¤æ ç¾å®½åº¦ |
| | | group: [ |
| | | { |
| | | display: this.form.type=='default'||this.form.type=='grid', |
| | |
| | | { |
| | | label: 'æ¯é¡µæ¾ç¤ºæ¡æ°', |
| | | prop: 'limit', |
| | | span: 7, |
| | | span: 8, |
| | | tip: 'åé¡µæ¶æ¯é¡µæ¾ç¤ºçæ°éï¼ä¸å页填-1', |
| | | //value: 15, |
| | | tipPlacement: 'right', |
| | | },{ |
| | | label: 'æåºå段', |
| | | prop: 'sortField', |
| | | span: 7, |
| | | span: 8, |
| | | tip: 'æ¥è¯¢æ°æ®æ¶çæåºå段', |
| | | //clearable: false, |
| | | tipPlacement: 'right', |
| | | },{ |
| | | label: 'æåºç±»å', |
| | | prop: 'sortType', |
| | | span: 7, |
| | | span: 8, |
| | | dicData: [{ |
| | | label: 'ååº', value: 'asc' |
| | | }, { |
| | |
| | | { |
| | | label: 'åèçUIä¸ä¸æ', |
| | | prop: 'referContent', |
| | | span: 7, |
| | | span: 8, |
| | | tip: 'åªæåç
§çªå£ç±»åæ¯standæ¶æå¿
须设置,ä¸å¨standç±»å䏿è½çæ', |
| | | tipPlacement: 'right', |
| | | }, |
| | | { |
| | | label: 'å¹³å°çè¡¨æ ¼ç¼å·', |
| | | prop: 'displayTable', |
| | | span: 7, |
| | | span: 8, |
| | | tip: 'ä¸åç
§çUIä¸ä¸æäºæ¥ï¼åªæåç
§çªå£ç±»åæ¯standæ¶æå¿
须设置ï¼ä¸å¨standç±»å䏿è½çæ', |
| | | tipPlacement: 'right', |
| | | }, |
| | |
| | | }], |
| | | type: 'select', |
| | | },{ |
| | | label: 'æ¯å¦åªè½éæ©å¶åèç¹', |
| | | prop: 'onlyLeaf', |
| | | span: 7, |
| | | value: false, |
| | | type: 'switch', |
| | | },{ |
| | | label: 'æåºå段', |
| | | prop: 'sortField', |
| | | span: 7, |
| | |
| | | }, { |
| | | label: 'éåº', value: 'desc' |
| | | }], |
| | | }, |
| | | },{ |
| | | label: 'æ¯å¦åªè½éæ©å¶åèç¹', |
| | | prop: 'onlyLeaf', |
| | | span: 7, |
| | | value: false, |
| | | type: 'switch', |
| | | } |
| | | ] |
| | | }, |
| | | ] |
| | | ], |
| | | } |
| | | }, |
| | | }, |
| | |
| | | }, |
| | | watch: { |
| | | // è´¼åï¼åæ¢ç±»åæ¶è¡¨æ ¼ï¼éèåæ¾ç¤ºå°±ä¼åºç°è¡¨æ ¼éä½é®é¢ï¼ |
| | | 'form.type'(val) { |
| | | //console.log(val); |
| | | 'form.type'(value) { |
| | | this.onloadAttrData(); |
| | | } |
| | | }, |
| | |
| | | // åå»è¡¨æ ¼å®ç°è¡¨æ ¼è¡ç¼è¾ |
| | | clickAttrEdit(row, column, event){ |
| | | if(this.preClickAttrRow && this.preClickAttrRow != row){ |
| | | //console.log(this.attrData[this.preClickAttrRow.$index]); |
| | | this.attrData[this.preClickAttrRow.$index].$cellEdit = false; |
| | | //console.log(this.codeShowFieldConfigVOS[this.preClickAttrRow.$index]); |
| | | this.codeShowFieldConfigVOS[this.preClickAttrRow.$index].$cellEdit = false; |
| | | } |
| | | row.$cellEdit = true; |
| | | this.preClickAttrRow = row; |
| | | }, |
| | | // 屿§è¡¨æ ¼è¡ç¼è¾å¤±å»ç¦ç¹æ¶ä¿åæ¹æ³ |
| | | // updateAttrBlur(value){ |
| | | //console.log(this.attrData[0]); |
| | | //console.log(this.codeShowFieldConfigVOS[0]); |
| | | |
| | | // }, |
| | | |
| | | // åå»è¡¨æ ¼å®ç°è¡¨æ ¼è¡ç¼è¾ |
| | | clickAddSearchCondtionEdit(row, column, event){ |
| | | if(this.preClickAddSearchConditionRow && this.preClickAddSearchConditionRow != row){ |
| | | //console.log(this.attrData[this.preClickAttrRow.$index]); |
| | | this.addSearchCondtionData[this.preClickAddSearchConditionRow.$index].$cellEdit = false; |
| | | //console.log(this.codeShowFieldConfigVOS[this.preClickAttrRow.$index]); |
| | | this.form.codeSrchCondConfigVOS[this.preClickAddSearchConditionRow.$index].$cellEdit = false; |
| | | } |
| | | row.$cellEdit = true; |
| | | this.preClickAddSearchConditionRow = row; |
| | |
| | | //console.log(val); |
| | | if(func.notEmpty(val.referConfig)){ |
| | | this.form = JSON.parse(val.referConfig); |
| | | //console.log(val); |
| | | // console.log(this.form); |
| | | this.form.isPersistence = this.form.isPersistence == 'true' ? true:false; |
| | | // åç
§å¼ç¨çä¸å¡ç±»åä¸å¯é |
| | | this.referTypeIsReadOnly = true; |
| | | if((this.form.type == 'default' || this.form.type == 'grid') && (this.form.codeShowFieldConfigVOS != undefined && this.form.codeShowFieldConfigVOS.length > 0)){ |
| | | this.codeShowFieldConfigVOS = this.form.codeShowFieldConfigVOS; |
| | | } |
| | | return; |
| | | } |
| | | if(func.notEmpty(val.referType)){ |
| | |
| | | //console.log(localStorage.getItem("userId")); |
| | | }, |
| | | // éæ©å®åç
§é
ç½®ä¹åç¹å»ä¿åæé®è§¦å |
| | | selectedListReferConfig(){ |
| | | //表åéªè¯ |
| | | this.$refs.form.validate((valid, done, msg) => { |
| | | if (valid) { |
| | | // æ ¹æ®ç±»å对form表åä¸çåæ°è¿è¡è¿æ»¤ï¼åªä¿çé空ä¸éè¦ç屿§ |
| | | let submitForm = this.filterForm(); |
| | | //console.log(submitForm); |
| | | this.$emit('echoReferConfig', submitForm) // 触åupdate:dataå°åç»ä»¶å¼ä¼ éç»ç¶ç»ä»¶ |
| | | this.isShowReferConfigForm = false; |
| | | done() |
| | | } else { |
| | | for(let attr in msg) { |
| | | //console.log(msg[attr][0].message); |
| | | this.$message.warning(msg[attr][0].message); |
| | | break; |
| | | } |
| | | return false; |
| | | } |
| | | async selectedListReferConfig(){ |
| | | // æ è®°ææè¡¨åæ¯å¦éè¿æ ¡éªçåé |
| | | let isValid = true; |
| | | // éåè¡¨åæ°ç»ï¼ä¾æ¬¡å¯¹æ¯ä¸ªè¡¨åè¿è¡æ ¡éª |
| | | await this.formRefs.forEach(ref => { |
| | | this.$refs[ref].validate((valid, done, msg) => { |
| | | if (!valid) { |
| | | for(let attr in msg) { |
| | | this.$message.warning(msg[attr][0].message); |
| | | break; |
| | | } |
| | | isValid = false; |
| | | //console.log(valid); |
| | | } |
| | | done(); |
| | | }) |
| | | }) |
| | | // 妿ææè¡¨å齿 ¡éªéè¿ï¼æ§è¡æäº¤æä½ |
| | | if (isValid) { |
| | | // æ ¹æ®ç±»å对form表åä¸çåæ°è¿è¡è¿æ»¤ï¼åªä¿çé空ä¸éè¦ç屿§ |
| | | let submitForm = this.filterForm(); |
| | | // console.log(submitForm); |
| | | this.$emit('echoReferConfig', submitForm) // 触åupdate:dataå°åç»ä»¶å¼ä¼ éç»ç¶ç»ä»¶ |
| | | this.isShowReferConfigForm = false; |
| | | } |
| | | }, |
| | | /** å
¶å®éå屿§è¡¨æ ¼çé»è®¤æ°æ®ä¸éè¦å è½½ï¼ |
| | | 使¯å¼¹çªæå¼ä¼æè¡¨æ ¼éè¡é®é¢æä»¥éè¦å¨è¿è°ç¨doLayoutæ¹æ³*/ |
| | | onloadAttrData(){ |
| | | this.attrData = [ |
| | | this.codeShowFieldConfigVOS = [ |
| | | { |
| | | field: 'id', |
| | | title: 'ç¼å·', |
| | | fieldType: 'text', |
| | | fieldTypeText: 'ææ¬æ¡', |
| | | sort: true, |
| | | sortField: 'id', |
| | | attrSortField: 'id', |
| | | width: '150', |
| | | isquery: true, |
| | | $cellEdit: false |
| | |
| | | fieldType: 'text', |
| | | fieldTypeText: 'ææ¬æ¡', |
| | | sort: true, |
| | | sortField: 'name', |
| | | attrSortField: 'name', |
| | | width: '180', |
| | | isquery: true, |
| | | $cellEdit: false |
| | |
| | | // 屿§éæ©è¡¨æ ¼ä¸çç§»é¤æé®åè½ |
| | | removeCurrentRow(row,condition){ |
| | | if(condition=='removeAttr'){ |
| | | this.$delete(this.attrData, row.$index); |
| | | this.$delete(this.codeShowFieldConfigVOS, row.$index); |
| | | return; |
| | | } |
| | | this.$delete(this.addSearchCondtionData, row.$index); |
| | | this.$delete(this.form.codeSrchCondConfigVOS, row.$index); |
| | | }, |
| | | // 该çé¢çæ°æ®è¿è¡åå§åå¤å |
| | | recoveryDataAndForm(condition){ |
| | |
| | | 'paramForFormKey', |
| | | 'isMuti', |
| | | 'mapFields', |
| | | 'searchCondition', |
| | | 'codeSrchCondConfigVOS', |
| | | 'isOpenGlobal', //æ¯å¦å¼å¯å
¨å± |
| | | 'isPersistence', |
| | | ]; |
| | | let addArray = []; |
| | | let newForm ={}; |
| | |
| | | 'sortType' |
| | | ]; |
| | | } |
| | | // å¼å¯æä¹
ååç
§é
ç½® |
| | | if(oldForm.isPersistence=='true' | oldForm.isPersistence){ |
| | | submittDefaultForm = submittDefaultForm.concat(['id','name']) |
| | | } |
| | | submittDefaultForm = submittDefaultForm.concat(addArray); |
| | | if(!this.checkArrayIsUndefined(this.addSearchCondtionData)){ |
| | | if(!this.checkArrayIsUndefined(this.form.codeSrchCondConfigVOS)){ |
| | | newForm = { |
| | | searchCondition: this.addSearchCondtionData, |
| | | codeSrchCondConfigVOS: this.form.codeSrchCondConfigVOS, |
| | | } |
| | | } |
| | | if((oldForm.type == 'default' || oldForm.type == 'grid') && (this.attrData.length >= 0 && !this.checkArrayIsUndefined(this.addSearchCondtionData))){ |
| | | newForm = Object.assign(newForm,{attrData:this.attrData}); |
| | | if((oldForm.type == 'default' || oldForm.type == 'grid') && (this.codeShowFieldConfigVOS.length >= 0 && !this.checkArrayIsUndefined(this.codeShowFieldConfigVOS))){ |
| | | newForm = Object.assign(newForm,{codeShowFieldConfigVOS:this.codeShowFieldConfigVOS}); |
| | | } |
| | | // è¿æ»¤åºç©ºå¼å±æ§åä¸éè¦ç屿§ |
| | | submittDefaultForm.forEach(item=>{ |
| | |
| | | newForm = Object.assign(newForm,{[item]:oldForm[item]}); |
| | | } |
| | | }); |
| | | // console.log(newForm); |
| | | //console.log(newForm); |
| | | return newForm; |
| | | }, |
| | | /** |
| | |
| | | } |
| | | //this.showFieldSelectList; |
| | | this.showFieldSelectList.forEach(item => { |
| | | this.attrData.push( |
| | | this.codeShowFieldConfigVOS.push( |
| | | { |
| | | field: item.id, |
| | | title: item.id, |
| | | fieldType: item.attrType, |
| | | fieldTypeText: item.attrTypeText, |
| | | sort: false, |
| | | sortField: item.id, |
| | | attrSortField: item.id, |
| | | width: item.attrLength, |
| | | isquery: false, |
| | | $cellEdit: false |
| | |
| | | this.sortFieldOnLoad(); |
| | | }, |
| | | selectedSearchCondition(){ |
| | | console.log(this.searchConditionSelectList); |
| | | // console.log(this.searchConditionSelectList); |
| | | if(this.searchConditionSelectList.length <= 0) { |
| | | this.$message.warning("请è³å°éæ©ä¸æ¡æ°æ®"); |
| | | return; |
| | | } |
| | | this.searchConditionSelectList.forEach(item => { |
| | | this.addSearchCondtionData.push( |
| | | this.form.codeSrchCondConfigVOS.push( |
| | | { |
| | | filterField: item.id, |
| | | filterType: '=', |
| | | filterTypeText: item.name, |
| | | filterValue: '', |
| | | $cellEdit: false |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <vciWebReferTree v-if="refertype=='tree'" :defaultValue="defaultValue" :options="referConfig"></vciWebReferTree> |
| | | </template> |
| | | |
| | | <script> |
| | | import vciWebReferTree from "./vciWebReferTree.vue"; |
| | | export default { |
| | | name: "vciWebRefer", |
| | | props:["options"], |
| | | components: { vciWebReferTree}, |
| | | data() { |
| | | return { |
| | | referConfig:this.options.referConfig, |
| | | refertype:this.options.referConfig.type, |
| | | defaultValue:this.options.defaultValue |
| | | }; |
| | | }, |
| | | created() { |
| | | if(this.refertype=='tree'){ |
| | | console.log('referConfig:') |
| | | console.log(this.options) |
| | | } |
| | | |
| | | }, |
| | | mounted() { |
| | | |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style scoped> |
| | | |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <avue-input-tree default-expand-all v-model="defaultValue" :placeholder="placeholder" :dic="dicData"></avue-input-tree> |
| | | </template> |
| | | |
| | | <script> |
| | | export default { |
| | | name: "vciWebReferTree", |
| | | props:["options","defaultValue"], |
| | | data() { |
| | | return { |
| | | placeholder:'è¯·éæ©å
容', |
| | | dicData:[{ |
| | | label:'é项1', |
| | | value:0, |
| | | children:[{ |
| | | label:'é项3', |
| | | value:2 |
| | | },{ |
| | | label:'é项4', |
| | | value:3 |
| | | }] |
| | | },{ |
| | | label:'é项2', |
| | | value:1 |
| | | }] |
| | | }; |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style scoped> |
| | | |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <div class="el-transfer"> |
| | | <transfer-panel v-bind="$props" ref="leftPanel" :data="sourceData" :title="titles[0] || t('el.transfer.titles.0')" |
| | | :default-checked="leftDefaultChecked" :placeholder="filterPlaceholder || t('el.transfer.filterPlaceholder')" |
| | | @checked-change="onSourceCheckedChange"> |
| | | <slot name="left-footer"></slot> |
| | | </transfer-panel> |
| | | <div class="el-transfer__buttons"> |
| | | <el-button type="primary" :class="['el-transfer__button', hasButtonTexts ? 'is-with-texts' : '']" |
| | | @click.native="addToLeft" :disabled="rightChecked.length === 0"> |
| | | <i class="el-icon-arrow-left"></i> |
| | | <span v-if="buttonTexts[0] !== undefined">{{ buttonTexts[0] }}</span> |
| | | </el-button> |
| | | <el-button type="primary" :class="['el-transfer__button', hasButtonTexts ? 'is-with-texts' : '']" |
| | | @click.native="addToRight" :disabled="leftChecked.length === 0"> |
| | | <span v-if="buttonTexts[1] !== undefined">{{ buttonTexts[1] }}</span> |
| | | <i class="el-icon-arrow-right"></i> |
| | | </el-button> |
| | | </div> |
| | | <transfer-panel v-bind="$props" ref="rightPanel" :data="targetData" :title="titles[1] || t('el.transfer.titles.1')" |
| | | :default-checked="rightDefaultChecked" :placeholder="filterPlaceholder || t('el.transfer.filterPlaceholder')" |
| | | @checked-change="onTargetCheckedChange"> |
| | | <slot name="right-footer"></slot> |
| | | </transfer-panel> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import ElButton from 'element-ui/packages/button'; |
| | | import Emitter from 'element-ui/src/mixins/emitter'; |
| | | import Locale from 'element-ui/src/mixins/locale'; |
| | | import TransferPanel from './transfer-panel.vue'; |
| | | // import TransferPanel from './transfer-panel2.vue'; |
| | | import Migrating from 'element-ui/src/mixins/migrating'; |
| | | |
| | | export default { |
| | | name: 'ElTransfer', |
| | | |
| | | mixins: [Emitter, Locale, Migrating], |
| | | |
| | | components: { |
| | | TransferPanel, |
| | | ElButton |
| | | }, |
| | | |
| | | props: { |
| | | data: { |
| | | type: Array, |
| | | default() { |
| | | return []; |
| | | } |
| | | }, |
| | | titles: { |
| | | type: Array, |
| | | default() { |
| | | return []; |
| | | } |
| | | }, |
| | | buttonTexts: { |
| | | type: Array, |
| | | default() { |
| | | return []; |
| | | } |
| | | }, |
| | | filterPlaceholder: { |
| | | type: String, |
| | | default: '' |
| | | }, |
| | | filterMethod: Function, |
| | | leftDefaultChecked: { |
| | | type: Array, |
| | | default() { |
| | | return []; |
| | | } |
| | | }, |
| | | rightDefaultChecked: { |
| | | type: Array, |
| | | default() { |
| | | return []; |
| | | } |
| | | }, |
| | | renderContent: Function, |
| | | value: { |
| | | type: Array, |
| | | default() { |
| | | return []; |
| | | } |
| | | }, |
| | | format: { |
| | | type: Object, |
| | | default() { |
| | | return {}; |
| | | } |
| | | }, |
| | | filterable: Boolean, |
| | | props: { |
| | | type: Object, |
| | | default() { |
| | | return { |
| | | label: 'label', |
| | | key: 'key', |
| | | disabled: 'disabled' |
| | | }; |
| | | } |
| | | }, |
| | | targetOrder: { |
| | | type: String, |
| | | default: 'original' |
| | | } |
| | | }, |
| | | |
| | | data() { |
| | | return { |
| | | leftChecked: [], |
| | | rightChecked: [] |
| | | }; |
| | | }, |
| | | |
| | | computed: { |
| | | dataObj() { |
| | | const key = this.props.key; |
| | | return this.data.reduce((o, cur) => (o[cur[key]] = cur) && o, {}); |
| | | }, |
| | | |
| | | sourceData() { |
| | | return this.data.filter(item => this.value.indexOf(item[this.props.key]) === -1); |
| | | }, |
| | | |
| | | targetData() { |
| | | if (this.targetOrder === 'original') { |
| | | return this.data.filter(item => this.value.indexOf(item[this.props.key]) > -1); |
| | | } else { |
| | | return this.value.reduce((arr, cur) => { |
| | | const val = this.dataObj[cur]; |
| | | if (val) { |
| | | arr.push(val); |
| | | } |
| | | return arr; |
| | | }, []); |
| | | } |
| | | }, |
| | | |
| | | hasButtonTexts() { |
| | | return this.buttonTexts.length === 2; |
| | | } |
| | | }, |
| | | |
| | | watch: { |
| | | value:{ |
| | | handler(val) { |
| | | this.dispatch('ElFormItem', 'el.form.change', val); |
| | | }, |
| | | immediate:true, |
| | | deep:true |
| | | } |
| | | }, |
| | | |
| | | methods: { |
| | | getMigratingConfig() { |
| | | return { |
| | | props: { |
| | | 'footer-format': 'footer-format is renamed to format.' |
| | | } |
| | | }; |
| | | }, |
| | | |
| | | onSourceCheckedChange(val, movedKeys) { |
| | | this.leftChecked = val; |
| | | if (movedKeys === undefined) return; |
| | | this.$emit('left-check-change', val, movedKeys); |
| | | }, |
| | | |
| | | onTargetCheckedChange(val, movedKeys) { |
| | | this.rightChecked = val; |
| | | if (movedKeys === undefined) return; |
| | | this.$emit('right-check-change', val, movedKeys); |
| | | }, |
| | | |
| | | addToLeft() { |
| | | let currentValue = this.value.slice(); |
| | | this.rightChecked.forEach(item => { |
| | | const index = currentValue.indexOf(item); |
| | | if (index > -1) { |
| | | currentValue.splice(index, 1); |
| | | } |
| | | }); |
| | | this.$emit('input', currentValue); |
| | | this.$emit('change', currentValue, 'left', this.rightChecked); |
| | | }, |
| | | |
| | | addToRight() { |
| | | let currentValue = this.value.slice(); |
| | | let itemsToBeMoved = []; |
| | | const key = this.props.key; |
| | | this.data.forEach(item => { |
| | | const itemKey = item[key]; |
| | | if ( |
| | | this.leftChecked.indexOf(itemKey) > -1 && |
| | | this.value.indexOf(itemKey) === -1 |
| | | ) { |
| | | // itemsToBeMoved.push(itemKey) |
| | | itemsToBeMoved = [itemKey] |
| | | console.log(itemsToBeMoved) |
| | | } |
| | | }); |
| | | // currentValue = this.targetOrder === 'unshift' |
| | | // ? itemsToBeMoved.concat(currentValue) |
| | | // : currentValue.concat(itemsToBeMoved); |
| | | currentValue = itemsToBeMoved |
| | | this.$emit('input', currentValue); |
| | | this.$emit('change', currentValue, 'right', this.leftChecked); |
| | | }, |
| | | |
| | | clearQuery(which) { |
| | | if (which === 'left') { |
| | | this.$refs.leftPanel.query = ''; |
| | | } else if (which === 'right') { |
| | | this.$refs.rightPanel.query = ''; |
| | | } |
| | | } |
| | | } |
| | | }; |
| | | </script> |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <div class="el-transfer-panel"> |
| | | <p class="el-transfer-panel__header"> |
| | | {{ title }} |
| | | </p> |
| | | |
| | | <div :class="['el-transfer-panel__body', hasFooter ? 'is-with-footer' : '']"> |
| | | <el-input class="el-transfer-panel__filter" v-model="query" size="small" :placeholder="placeholder" |
| | | @mouseenter.native="inputHover = true" @mouseleave.native="inputHover = false" v-if="filterable"> |
| | | <i slot="prefix" :class="['el-input__icon', 'el-icon-' + inputIcon]" @click="clearQuery"></i> |
| | | </el-input> |
| | | |
| | | <el-radio-group v-model="checked" v-show="!hasNoMatch && data.length > 0" |
| | | :class="{ 'is-filterable': filterable }" class="el-transfer-panel__list"> |
| | | <el-radio class="el-transfer-panel__item" :label="item[keyProp]" :disabled="item[disabledProp]" |
| | | :key="item[keyProp]" v-for="item in filteredData"><option-content |
| | | :option="item"></option-content></el-radio> |
| | | </el-radio-group> |
| | | <p class="el-transfer-panel__empty" v-show="hasNoMatch">{{ t('el.transfer.noMatch') }}</p> |
| | | <p class="el-transfer-panel__empty" v-show="data.length === 0 && !hasNoMatch">{{ t('el.transfer.noData') }}</p> |
| | | </div> |
| | | <p class="el-transfer-panel__footer" v-if="hasFooter"> |
| | | <slot></slot> |
| | | </p> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import ElCheckboxGroup from 'element-ui/packages/checkbox-group'; |
| | | import ElCheckbox from 'element-ui/packages/checkbox'; |
| | | import ElInput from 'element-ui/packages/input'; |
| | | import Locale from 'element-ui/src/mixins/locale'; |
| | | |
| | | export default { |
| | | mixins: [Locale], |
| | | |
| | | name: 'ElTransferPanel', |
| | | |
| | | componentName: 'ElTransferPanel', |
| | | |
| | | components: { |
| | | ElCheckboxGroup, |
| | | ElCheckbox, |
| | | ElInput, |
| | | OptionContent: { |
| | | props: { |
| | | option: Object |
| | | }, |
| | | render(h) { |
| | | const getParent = vm => { |
| | | if (vm.$options.componentName === 'ElTransferPanel') { |
| | | return vm; |
| | | } else if (vm.$parent) { |
| | | return getParent(vm.$parent); |
| | | } else { |
| | | return vm; |
| | | } |
| | | }; |
| | | const panel = getParent(this); |
| | | const transfer = panel.$parent || panel; |
| | | return panel.renderContent |
| | | ? panel.renderContent(h, this.option) |
| | | : transfer.$scopedSlots.default |
| | | ? transfer.$scopedSlots.default({ option: this.option }) |
| | | : <span>{this.option[panel.labelProp] || this.option[panel.keyProp]}</span>; |
| | | } |
| | | } |
| | | }, |
| | | |
| | | props: { |
| | | data: { |
| | | type: Array, |
| | | default() { |
| | | return []; |
| | | } |
| | | }, |
| | | renderContent: Function, |
| | | placeholder: String, |
| | | title: String, |
| | | filterable: Boolean, |
| | | format: Object, |
| | | filterMethod: Function, |
| | | defaultChecked: Array, |
| | | props: Object |
| | | }, |
| | | |
| | | data() { |
| | | return { |
| | | checked: [], |
| | | allChecked: false, |
| | | query: '', |
| | | inputHover: false, |
| | | checkChangeByUser: true |
| | | }; |
| | | }, |
| | | |
| | | watch: { |
| | | checked(val, oldVal) { |
| | | this.updateAllChecked(); |
| | | let vals = Array.isArray(val)? val:[val] |
| | | let oldVals = Array.isArray(oldVal)? oldVal:[oldVal] |
| | | if (this.checkChangeByUser) { |
| | | const movedKeys = vals.concat(oldVals) |
| | | .filter(v => vals.indexOf(v) === -1 || oldVals.indexOf(v) === -1); |
| | | this.$emit('checked-change', vals,movedKeys); |
| | | } else { |
| | | this.$emit('checked-change', vals); |
| | | this.checkChangeByUser = true; |
| | | } |
| | | }, |
| | | |
| | | data() { |
| | | const checked = []; |
| | | const filteredDataKeys = this.filteredData.map(item => item[this.keyProp]); |
| | | let checkeds = Array.isArray(this.checked)? this.checked:[this.checked] |
| | | checkeds.forEach(item => { |
| | | if (filteredDataKeys.indexOf(item) > -1) { |
| | | checked.push(item); |
| | | } |
| | | }); |
| | | this.checkChangeByUser = false; |
| | | this.checked = checked; |
| | | }, |
| | | |
| | | checkableData() { |
| | | this.updateAllChecked(); |
| | | }, |
| | | |
| | | defaultChecked: { |
| | | immediate: true, |
| | | handler(val, oldVal) { |
| | | if (oldVal && val.length === oldVal.length && |
| | | val.every(item => oldVal.indexOf(item) > -1)) return; |
| | | const checked = []; |
| | | const checkableDataKeys = this.checkableData.map(item => item[this.keyProp]); |
| | | val.forEach(item => { |
| | | if (checkableDataKeys.indexOf(item) > -1) { |
| | | checked.push(item); |
| | | } |
| | | }); |
| | | this.checkChangeByUser = false; |
| | | this.checked = checked; |
| | | } |
| | | } |
| | | }, |
| | | |
| | | computed: { |
| | | filteredData() { |
| | | return this.data.filter(item => { |
| | | console.log(item) |
| | | if (typeof this.filterMethod === 'function') { |
| | | return this.filterMethod(this.query, item); |
| | | } else { |
| | | const label = item[this.labelProp] || item[this.keyProp].toString(); |
| | | return label.toLowerCase().indexOf(this.query.toLowerCase()) > -1; |
| | | } |
| | | }); |
| | | }, |
| | | |
| | | checkableData() { |
| | | return this.filteredData.filter(item => !item[this.disabledProp]); |
| | | }, |
| | | |
| | | checkedSummary() { |
| | | const checkedLength = this.checked.length; |
| | | const dataLength = this.data.length; |
| | | const { noChecked, hasChecked } = this.format; |
| | | if (noChecked && hasChecked) { |
| | | return checkedLength > 0 |
| | | ? hasChecked.replace(/\${checked}/g, checkedLength).replace(/\${total}/g, dataLength) |
| | | : noChecked.replace(/\${total}/g, dataLength); |
| | | } else { |
| | | return `${checkedLength}/${dataLength}`; |
| | | } |
| | | }, |
| | | |
| | | isIndeterminate() { |
| | | const checkedLength = this.checked.length; |
| | | return checkedLength > 0 && checkedLength < this.checkableData.length; |
| | | }, |
| | | |
| | | hasNoMatch() { |
| | | return this.query.length > 0 && this.filteredData.length === 0; |
| | | }, |
| | | |
| | | inputIcon() { |
| | | return this.query.length > 0 && this.inputHover |
| | | ? 'circle-close' |
| | | : 'search'; |
| | | }, |
| | | |
| | | labelProp() { |
| | | return this.props.label || 'label'; |
| | | }, |
| | | |
| | | keyProp() { |
| | | return this.props.key || 'key'; |
| | | }, |
| | | |
| | | disabledProp() { |
| | | return this.props.disabled || 'disabled'; |
| | | }, |
| | | |
| | | hasFooter() { |
| | | return !!this.$slots.default; |
| | | } |
| | | }, |
| | | |
| | | methods: { |
| | | updateAllChecked() { |
| | | |
| | | const checkableDataKeys = this.checkableData.map(item => item[this.keyProp]); |
| | | |
| | | this.allChecked = checkableDataKeys.length > 0 && |
| | | checkableDataKeys.every(item => this.checked===item); |
| | | }, |
| | | |
| | | handleAllCheckedChange(value) { |
| | | this.checked = value |
| | | ? this.checkableData.map(item => item[this.keyProp]) |
| | | : []; |
| | | }, |
| | | |
| | | clearQuery() { |
| | | if (this.inputIcon === 'circle-close') { |
| | | this.query = ''; |
| | | } |
| | | } |
| | | } |
| | | }; |
| | | </script> |
| | | |
| | |
| | | viewBtn: false, |
| | | selection: true, |
| | | menu: false, |
| | | columnBtn: false, |
| | | searchShowBtn: false, // è¡¨æ ¼æç´¢æ¾éæé® |
| | | dialogClickModal: false, |
| | | highlightCurrentRow: true, |
| | | column: [ |
| | |
| | | }, |
| | | { |
| | | label: "屿§é¿åº¦", |
| | | prop: "attrLength", |
| | | prop: "attrlength", |
| | | search: false, |
| | | }, |
| | | { |
| | | label: "屿§ç±»å", |
| | | prop: "attributeDataTypeText", |
| | | prop: "attributedatatypetext", |
| | | search: false, |
| | | } |
| | | ] |
| | |
| | | import referConfigCrudDialog from "@/components/code-dialog-page/referConfigCrudDialog" |
| | | import referConfigFormDialog from "@/components/code-dialog-page/referConfigFormDialog" |
| | | import businessAdd from "@/views/modeling/BusinessAdd" |
| | | import TableCrud from "@/components/Crud/Crud" |
| | | import originalAdd from "@/views/modeling/originalAdd" |
| | | |
| | | // å°å·¥å
·å½æ°æ·»å å°å
¨å± |
| | | import utilFunc from './util/func' |
| | | Vue.prototype.$utilFunc = utilFunc |
| | | // 注åå
¨å±crudé©±å¨ |
| | | window.$crudCommon = crudCommon; |
| | | // å è½½Vueæå± |
| | |
| | | Vue.component('referConfigFormDialog',referConfigFormDialog) |
| | | Vue.component('businessAdd',businessAdd) |
| | | Vue.component('attrCrud',attrCrud) |
| | | |
| | | Vue.component('TableCrud',TableCrud) |
| | | Vue.component('originalAdd',originalAdd) |
| | | |
| | | |
| | | // å è½½ç¸å
³urlå°å |
| | |
| | | } |
| | | return str; |
| | | } |
| | | /** |
| | | * 夿æ¯å¦ä¸ºå¯¹è±¡å¹¶ä¸ä¸ºç©ºå¯¹è±¡ |
| | | * @param value |
| | | * @returns {Boolean} |
| | | */ |
| | | static isValuableObj(value) { |
| | | return typeof value === 'object' && value !== null && Object.keys(value).length > 0; |
| | | } |
| | | } |
| | |
| | | <template>
|
| | | <div></div>
|
| | | </template>
|
| | | <div>
|
| | | <el-button @click="visible = true">æµè¯</el-button>
|
| | | <FormTemplate :visible.sync="visible" templateOid="78B8C7C5-A042-0B96-FE6D-65421451782A" codeClassifyOid="4524E801-6CC6-92E8-1AC3-2AB9604E8F96"></FormTemplate>
|
| | | </div>
|
| | | </template>codeClassifyOid
|
| | |
|
| | | <script>
|
| | |
|
| | | import FormTemplate from "../../components/FormTemplate/index";
|
| | | export default {
|
| | | name: "FormTempalteTest",
|
| | | components: { FormTemplate },
|
| | | data() {
|
| | | return {
|
| | | visible: false,
|
| | | };
|
| | | },
|
| | | };
|
| | | </script>
|
| | |
|
| | | <style lang='less' scoped>
|
| | |
|
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <el-container> |
| | | <el-aside> |
| | | <basic-container style="height: 85vh; max-height: 155vh; overflow-y: scroll;"> |
| | | <avue-tree :option="option" :data="data" v-model="form" style="height: 80.5vh;padding-top: 5px;padding-bottom: 30px"></avue-tree> |
| | | </basic-container> |
| | | </el-aside> |
| | | <el-main> |
| | | <TableCrud></TableCrud> |
| | | </el-main> |
| | | </el-container> |
| | | </template> |
| | | |
| | | <script> |
| | | export default { |
| | | name: "items.vue", |
| | | data(){ |
| | | return{ |
| | | form:{}, |
| | | data:[ |
| | | { |
| | | value:0, |
| | | label:'ä¸çº§é¨é¨', |
| | | children:[ |
| | | { |
| | | value:1, |
| | | label:'ä¸çº§é¨é¨1', |
| | | },{ |
| | | value:2, |
| | | label:'ä¸çº§é¨é¨2', |
| | | } |
| | | ] |
| | | },{ |
| | | value:3, |
| | | label:'äºçº§é¨é¨', |
| | | children:[ |
| | | { |
| | | value:4, |
| | | label:'äºçº§é¨é¨1', |
| | | },{ |
| | | value:5, |
| | | label:'äºçº§é¨é¨2', |
| | | } |
| | | ] |
| | | } |
| | | ], |
| | | option:{ |
| | | title:'ææ¯æ é¢', |
| | | filterText:"æç´¢å
³é®åèªå®ä¹", |
| | | defaultExpandAll:true, |
| | | addBtnText:'æ°å¢èªå®ä¹ææ¡', |
| | | editBtnText:'ä¿®æ¹èªå®ä¹ææ¡', |
| | | delBtnText:'å é¤èªå®ä¹ææ¡', |
| | | defaultExpandedKeys:[1], |
| | | height:900, |
| | | formOption:{ |
| | | labelWidth:100, |
| | | column:[{ |
| | | label:'èªå®ä¹é¡¹', |
| | | prop:'label' |
| | | }], |
| | | }, |
| | | props:{ |
| | | labelText:'æ é¢', |
| | | label:'label', |
| | | value:'value', |
| | | children:'children' |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style scoped> |
| | | |
| | | </style> |
| | |
| | | size="small" |
| | | icon="el-icon-plus" |
| | | :disabled="selectionList.length <= 0" |
| | | @click="addBasicCodeSec"> |
| | | @click="openAddBasicCodeSec"> |
| | | æ° å¢ |
| | | </el-button> |
| | | <el-button type="danger" |
| | |
| | | :option="attrOption" |
| | | :table-loading="selectAttrOptionLoading" |
| | | ref="selectionAttrCrud" |
| | | @search-change="selectAttrOptionSearchChange" |
| | | @search-change="selectAttrSearchChange" |
| | | @search-reset="searchAttrReset" |
| | | @row-click="selectionAttrRowClick" |
| | | @selection-change="selectionChangeAttr"> |
| | |
| | | <!-- 第äºå±å¯¹è¯æ¡,èªå®ä¹åç
§é
ç½®Formç»ä»¶ --> |
| | | <refer-config-form-dialog |
| | | ref="referConfigFormDialog" |
| | | @echoReferConfig="echoReferConfig" > |
| | | @echoReferConfig="echoReferConfig"> |
| | | </refer-config-form-dialog> |
| | | <!-- 第äºå±å¯¹è¯æ¡,ç´æ¥éæ©åç
§é
ç½®curdç»ä»¶ --> |
| | | <!-- 第äºå±å¯¹è¯æ¡,ç´æ¥éæ©åç
§é
ç½®crudç»ä»¶ --> |
| | | <refer-config-crud-dialog |
| | | ref="referConfigCrudDialog"> |
| | | ref="referConfigCrudDialog" |
| | | @openReconfigInterFace="openReconfigInterFace" |
| | | @echoReferConfig="echoReferConfig"> |
| | | </refer-config-crud-dialog> |
| | | |
| | | </el-dialog> |
| | |
| | | |
| | | /* å¼ç¨ç 段åç
§é
ç½®,åç»ä»¶å¡«å®åç
§é
ç½®ä¹åå
容忾æ¶è°ç¨ */ |
| | | echoReferConfig(content){ |
| | | // console.log(content.referTypeName); |
| | | this.form.referBtmId = content.referType; |
| | | this.form.referBtmName = content.referTypeName; |
| | | //è½¬æ¢æJSONå符串è¿è¡ç¶ç»ä»¶åæ¾ |
| | |
| | | //è¿å¿è¿éè¦å®å |
| | | this.selectAttrOptionLoading = true; |
| | | listClassifyLinkAttr({"page": 1,"limit": -1,'conditionMap[codeClassifyOid]':this.currentSelectTreeData.oid}).then(res=>{ |
| | | //console.log(res.data.data); |
| | | //é åæ°æ® |
| | | let dataInfo =[ |
| | | {"id":"address","name":"ä¼è®®å®¤å°å","oid":"058D840D-1010-A7DE-7C52-B39C03CE89C1","attrLength":"150","description":"","attributeDataTypeText":"å符串"}, |
| | | {"id":"businesslicensetype","name":"è¥ä¸æ§ç
§ç±»å","oid":"BDAC6D3E-1827-35A0-F3CA-0E58A43F6A07","attrLength":"255","description":"è¥ä¸æ§ç
§ç±»å","attributeDataTypeText":"å符串"}, |
| | | {"id":"certificatenumber","name":"ä¿å¯è¯ç¼å·","oid":"E2BC8332-A721-3713-26C3-C9F6340C2C1D","attrLength":"255","description":"ä¿å¯è¯ç¼å·","attributeDataTypeText":"å符串"}, |
| | | ] |
| | | this.selectattrData = dataInfo; |
| | | this.selectAttrOptionLoading = false; |
| | | console.log(res.data.data); |
| | | this.selectattrData = res.data.data; |
| | | this.selectAttrOptionLoading = false; |
| | | }) |
| | | }, |
| | | // ç¹å»æç´¢å触å该äºä»¶ |
| | | selectAttrOptionSearchChange(params, done) { |
| | | selectAttrSearchChange(params, done) { |
| | | this.query = params; |
| | | //console.log(params); //è¿å¿éè¦æ¹ |
| | | this.loadlistClassifyLinkAttr(Object.assign(params,{'conditionMap[codeClassifyOid]':this.currentSelectTreeData.oid})); |
| | |
| | | // this.changeSectypeFormItems(null); |
| | | }, |
| | | // æå¼æ°å¢çªå£ |
| | | addBasicCodeSec(){ |
| | | openAddBasicCodeSec(){ |
| | | if(!this.tipsMessage(this.selectionList)){ |
| | | return; |
| | | } |
| | |
| | | if(this.form.oid == '' || this.form.oid == null){ |
| | | if(this.checkForm()){ |
| | | addSave(this.form).then(() => { |
| | | this.$message({ |
| | | type: "success", |
| | | message: "æä½æå!" |
| | | }); |
| | | this.$message({ |
| | | type: "success", |
| | | message: "æä½æå!" |
| | | }); |
| | | }, error => { |
| | | window.console.log(error); |
| | | }); |
| | |
| | | }); |
| | | }, |
| | | |
| | | |
| | | /** 第ä¸å±å¯¹è¯æ¡ç¸å
³æ¹æ³ */ |
| | | // æå¼äºå±å¯¹è¯æ¡æ¹æ³ |
| | | openAttrSelectOrGetValue(condition){ |
| | |
| | | this.refreshReferBtmDataChange(); |
| | | }else if(condition === 'referConfig'){ |
| | | if(func.notEmpty(this.form.referConfig) || func.notEmpty(this.form.referBtmName)){ |
| | | this.$refs.referConfigFormDialog.isShowReferConfig = true; |
| | | let value = { |
| | | referTypeName: this.form.referBtmName, |
| | | referType: this.form.referBtmId, |
| | | referConfig: this.form.referConfig, |
| | | } |
| | | this.$refs.referConfigFormDialog.initPageData(value); |
| | | this.openReconfigInterFace(this.form); |
| | | }else{ |
| | | this.openTipsChooseOrCust(); |
| | | } |
| | | //this.$refs.referConfigFormDialog.onloadAttrData(); |
| | | } |
| | | }, |
| | | // æå¼èªå®ä¹åç
§é
ç½®æç´æ¥éæ©åç
§é
ç½®çé¢ |
| | | |
| | | // å½åå·²åå¨ç¼è¾è¿çåå±é
ç½®ï¼æä»¥ç´æ¥æå¼åç
§é
ç½®çé¢ |
| | | openReconfigInterFace(preReferConfigForm){ |
| | | // console.log(preReferConfigForm); |
| | | this.$refs.referConfigFormDialog.isShowReferConfigForm = true; |
| | | let value = { |
| | | referTypeName: preReferConfigForm.referBtmName, |
| | | referType: preReferConfigForm.referBtmId, |
| | | referConfig: preReferConfigForm.referConfig, |
| | | } |
| | | this.$refs.referConfigFormDialog.initPageData(value); |
| | | }, |
| | | // æå¼èªå®ä¹åç
§é
ç½®æç´æ¥éæ©åç
§é
ç½®çæç¤ºæ¡ |
| | | openTipsChooseOrCust(){ |
| | | this.$confirm('è¯·éæ©åç
§é
ç½®çå®ä¹æ¹å¼ï¼','åç
§é
ç½®çæ¹å¼', { |
| | | distinguishCancelAndClose: true, |
| | |
| | | this.form.parentClassifySecOid = ''; |
| | | }else if(condition === 'referBtmId'){ |
| | | this.form.referBtmId = ''; |
| | | this.form.referBtmName = ''; |
| | | this.form.referConfig = ''; |
| | | }else if(condition === 'referConfig'){ |
| | | this.form.referConfig = ''; |
| | |
| | | serialStart: row!=null&&row.serialStart != '' ? row.serialStart:1, //æµæ°´å·èµ·å§å¼ |
| | | serialStep: row!=null&&row.serialStep != '' ? row.serialStep:1, //æµæ°´çæ¥é¿ |
| | | codeFillType: row!=null&&row.codeFillType != '' ? row.codeFillType:'code_fill_right', //ç¼ç è¡¥ä½æ¹å¼ |
| | | codeFillSeparatorSelect: row!=null&&row.codeFillSeparatorSelect != '' ? row.codeFillSeparatorSelect:0, //è¡¥ä½æ¶çå符ï¼éä¸ç䏿æ¡ç䏿 |
| | | codeFillSeparatorSelect: row!=null&&row.codeFillSeparator != '' ? row.codeFillSeparatorSelect:0, //è¡¥ä½æ¶çå符ï¼éä¸ç䏿æ¡ç䏿 |
| | | codeFillSeparator: row!=null&&row.codeFillSeparator != '' ? row.codeFillSeparator:0, //è¡¥ä½æ¶çå符 |
| | | codeFillLength: row!=null&&row.codeFillLength != '' ? row.codeFillLength:'', //å¡«å
é¿åº¦ |
| | | codeFillLimit: row!=null&&row.codeFillLimit != '' ? row.codeFillLimit:'', //æµæ°´ä¸é |
| | |
| | | }, |
| | | //æä¸¾åå¯è¾å¯éå
容æ¥è¯¢ |
| | | loadCodeSecType(){ |
| | | getDictionary({code: "codeBasicSecType"}).then(res=>{ |
| | | getDictionary({code: "codeSecType"}).then(res=>{ |
| | | this.sectypeList = res.data.data; |
| | | }) |
| | | this.loadCodeSecLength(); |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <div> |
| | | <el-button @click="outerVisible = true">æµç¨æµè¯</el-button> |
| | | <el-dialog :title="`æ§è¡${title}`" width="90%" append-to-body="true" :visible.sync="outerVisible"> |
| | | <div class="dialogwarp"> |
| | | <div class="dialogwarp_tab"> |
| | | <el-card class="dialogwarp_tab_card"> |
| | | <el-tabs v-model="activeName" @tab-click="handleClick"> |
| | | <el-tab-pane label="ä¸å¡æ°æ®ä¿¡æ¯" name="first"> |
| | | |
| | | </el-tab-pane> |
| | | <el-tab-pane label="æµç¨è·è¸ª" name="second"> |
| | | <avue-crud :data="data" :option="option" ref="crud"> |
| | | </avue-crud> |
| | | <div style="padding: 10px 0; width: 100%; height: 100% "> |
| | | <el-image :src="url" flt="fill"></el-image> |
| | | </div> |
| | | |
| | | </el-tab-pane> |
| | | </el-tabs> |
| | | </el-card> |
| | | </div> |
| | | <div class="dialogwarp_card"> |
| | | <el-card class="box-card"> |
| | | <div slot="header" class="clearfix"> |
| | | <span>å½åä»»å¡ï¼</span> |
| | | <span>{{ title }}</span> |
| | | </div> |
| | | <div style="width: 100%;"> |
| | | <p>请å¨ä¸æ¹è¾å
¥æ¨çå®¡æ¹æè§ï¼</p> |
| | | <el-input type="textarea" :rows="4" placeholder="请è¾å
¥å
容" show-word-limit v-model="opinionVal"> |
| | | </el-input> |
| | | </div> |
| | | <div style="width: 100%;"> |
| | | <p>å®¡æ¹æè§éä»¶ï¼</p> |
| | | <el-upload drag action="https://jsonplaceholder.typicode.com/posts/" multiple |
| | | style="width: 100%;"> |
| | | <i class="el-icon-upload"></i> |
| | | <div class="el-upload__text">å°æä»¶æå°æ¤å¤ï¼æ<em>ç¹å»ä¸ä¼ </em></div> |
| | | </el-upload> |
| | | </div> |
| | | <div style="width: 100%;"> |
| | | <p>å·²ä¸ä¼ å®¡æ¹æä»¶ï¼</p> |
| | | <el-card class="box-card"> |
| | | <el-table :data="tableData" stripe style="width: 100%"> |
| | | <el-table-column prop="date" label="æä»¶å"> |
| | | </el-table-column> |
| | | <el-table-column prop="name" label="ä¸ä¼ 人 "> |
| | | </el-table-column> |
| | | <el-table-column prop="address" label="æä½"> |
| | | </el-table-column> |
| | | </el-table> |
| | | </el-card> |
| | | </div> |
| | | <div style="margin-top: 20px;"> |
| | | <el-button v-if="!isRefuse" type="primary" size="mini" @click="handelAgree">åæ</el-button> |
| | | <el-button v-if="!isAgree" type="primary" size="mini" @click="handelRefuse">ä¸åæ</el-button> |
| | | <el-button v-if="isAgree && !isRefuse" type="primary" size="mini" @click="handelRevert" |
| | | v-for="item in btnList" :key="item">{{ item }}</el-button> |
| | | <el-button v-if="isRefuse" type="primary" size="mini" @click="handelExecute">æ§è¡</el-button> |
| | | </div> |
| | | </el-card> |
| | | </div> |
| | | </div> |
| | | </el-dialog> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | export default { |
| | | data() { |
| | | return { |
| | | outerVisible: false, |
| | | destroyClose: true, |
| | | activeName: 'first', |
| | | fits: ['fill', 'contain', 'cover', 'none', 'scale-down'], |
| | | url: 'https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg', |
| | | title: 'ä¸å¡æµè¯-ç³è¯·-ç©å-å®¡æ ¸', |
| | | data: [ |
| | | { |
| | | name: 'å¼ ä¸', |
| | | sex: 'ç·' |
| | | }, { |
| | | name: 'æå', |
| | | sex: '女' |
| | | }, { |
| | | name: 'æå', |
| | | sex: '女' |
| | | }, { |
| | | name: 'æå', |
| | | sex: '女' |
| | | } |
| | | ], |
| | | btnList: ['è¿å1', 'è¿å1', 'è¿å1'], |
| | | isAgree: false, |
| | | isRefuse: false, |
| | | opinionVal: '', |
| | | option: { |
| | | menu: false, |
| | | addBtn: false, |
| | | refreshBtn: false, |
| | | columnBtn: false, |
| | | index: true, |
| | | header: false, |
| | | stripe: true, |
| | | indexLabelClassName: 'åºå·', |
| | | column: [ |
| | | { label: 'ä»»å¡åç§°', prop: 'name', minWidth: 120 }, |
| | | { label: 'æ§è¡æä½', prop: 'sex', minWidth: 80 }, |
| | | { label: 'ä»»å¡å¼å§æ¶é´', prop: 'sex', minWidth: 140 }, |
| | | { label: 'å®¡æ¹æè§', prop: 'sex', minWidth: 220, overHidden: true }, |
| | | { label: 'æ§è¡äºº', prop: 'sex', minWidth: 80 }, |
| | | { label: 'ä»»å¡å®ææ¶é´', prop: 'sex', minWidth: 140 }, |
| | | { label: 'å·²ä¸ä¼ å®¡æ¹æä»¶', prop: 'sex', minWidth: 220, overHidden: true }, |
| | | ] |
| | | }, |
| | | } |
| | | }, |
| | | methods: { |
| | | closeDialog() { |
| | | this.destroyClose = true |
| | | this.outerVisible = false |
| | | }, |
| | | handleClick(tab, event) { |
| | | console.log(event) |
| | | }, |
| | | handelAgree() { |
| | | this.isAgree = !this.isAgree |
| | | this.outerVisible = false |
| | | console.log(this.isAgree) |
| | | }, |
| | | handelRefuse() { |
| | | if (!this.opinionVal) { |
| | | this.$alert('å½å¤çæ¹å¼ä¸ºä¸åææ¶ï¼éè¦å¡«åå®¡æ¹æè§', 'æç¤ºä¿¡æ¯', { |
| | | confirmButtonText: 'ç¡®å®', |
| | | }).then(() => { |
| | | |
| | | }); |
| | | } else { |
| | | this.isRefuse = true |
| | | this.isAgree = true |
| | | this.outerVisible = false |
| | | this.opinionVal = '' |
| | | } |
| | | }, |
| | | handelExecute() { |
| | | this.outerVisible = false |
| | | this.isAgree = false |
| | | this.isRefuse = false |
| | | }, |
| | | handelRevert() { |
| | | this.outerVisible = false |
| | | this.isAgree = false |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | <style lang="scss" scoped> |
| | | .dialogwarp { |
| | | display: -webkit-box; |
| | | display: -ms-flexbox; |
| | | display: flex; |
| | | justify-content: space-between; |
| | | height: 70vh; |
| | | |
| | | &_tab { |
| | | width: 79%; |
| | | |
| | | |
| | | &_card { |
| | | width: 100%; |
| | | height: 100%; |
| | | } |
| | | } |
| | | |
| | | &_card { |
| | | // margin-left: 20px; |
| | | width: 20%; |
| | | } |
| | | } |
| | | |
| | | /deep/ .el-upload, |
| | | /deep/ .el-upload-dragger { |
| | | width: 100%; |
| | | height: 120px; |
| | | } |
| | | |
| | | /deep/ .el-upload-dragger .el-icon-upload { |
| | | margin: 15px 0 16px; |
| | | } |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <div> |
| | | <el-container style="height: 100%; border: 1px solid #fff"> |
| | | <el-card :style="{ marginRight: '10px' }"> |
| | | <el-aside width="300px" style="background-color: #fff"> |
| | | <el-input placeholder="è¾å
¥å
³é®åè¿è¡è¿æ»¤" v-model="filterText"> |
| | | </el-input> |
| | | <el-menu :default-openeds="['1', '3']"> |
| | | <el-tree class="filter-tree" :data="treeData" :props="defaultProps" default-expand-all |
| | | :filter-node-method="filterNode" ref="tree"> |
| | | </el-tree> |
| | | </el-menu> |
| | | </el-aside> |
| | | </el-card> |
| | | <el-main> |
| | | <el-card> |
| | | <avue-crud :data="tableData" :option="option" ref="crud" @row-update="addUpdate" @row-save="rowSave" |
| | | @row-click="handleRowClick"> |
| | | <template slot="menuLeft"> |
| | | <el-button icon="el-icon-plus" size="small" type="primary" @click="dialogPush = true">æ° å¢ |
| | | </el-button> |
| | | <el-button icon="el-icon-check" size="small" type="primary" @click="handleSave">ä¿ å |
| | | </el-button> |
| | | <el-button icon="el-icon-connection" size="small" type="primary" @click="handleSync">åæ¥æ¨¡å |
| | | </el-button> |
| | | </template> |
| | | </avue-crud> |
| | | <el-card :style="{ marginTop: '20px' }"> |
| | | <avue-crud :data="tableData" :option="optinos" ref="crud" @row-update="addUpdate" |
| | | @row-save="rowSave" @row-click="handleRowClick"> |
| | | </avue-crud> |
| | | </el-card> |
| | | </el-card> |
| | | <el-dialog title="ç¼ç 屿§" :visible.sync="dialogPush" destroy-on-close append-to-body="true" width="30%" |
| | | :before-close="handleClose"> |
| | | <el-form :model="form"> |
| | | <el-form-item label="æ¥è¯¢æ¡ä»¶" label-width="70px" size="small"> |
| | | <el-input v-model="form.name" autocomplete="off" @change="handleQuery"></el-input> |
| | | </el-form-item> |
| | | </el-form> |
| | | <p class="text_tip">*éæ©åç±»è¿è¡å±æ§è¿æ»¤, æè
è¾å
¥å±æ§çå
¨æ¼æè
ç®æ¼è¿è¡æ¥è¯¢! å¦: å§å (å¯è¾å
¥xmæxinming )</p> |
| | | <transfer v-model="transferValue" :data="transferData" :filter-method="filterMethod" |
| | | filter-placeholder="请è¾å
¥å±æ§æ¼é³å
¨æ¼æè
æ¼é³ç¼©å" @left-check-change="handelLeftCheck"></transfer> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-button @click="dialogPush = false">å æ¶</el-button> |
| | | <el-button type="primary" @click="dialogVisible = false">ä¿ å</el-button> |
| | | </span> |
| | | </el-dialog> |
| | | </el-main> |
| | | </el-container> |
| | | </div> |
| | | </template> |
| | | <script> |
| | | import transfer from '@/components/transfer/index' |
| | | import pinyin from 'js-pinyin' |
| | | export default { |
| | | components: { |
| | | transfer |
| | | }, |
| | | data() { |
| | | const generateData = () => { |
| | | pinyin.setOptions({ checkPolyphone: false, charCase: 1 }); |
| | | const data = []; |
| | | const cities = ['䏿µ·', 'å京', '广å·', 'æ·±å³', 'å京', '西å®', 'æé½']; |
| | | cities.forEach((city, index) => { |
| | | data.push({ |
| | | label: city, |
| | | key: index, |
| | | pinyin: pinyin.getFullChars(city), |
| | | pinyins: pinyin.getCamelChars(city), |
| | | }); |
| | | }); |
| | | return data; |
| | | }; |
| | | return { |
| | | form: { |
| | | name: '', |
| | | }, |
| | | transferData: generateData(), |
| | | transferValue: [], |
| | | dialogPush: false, |
| | | tableData: [ |
| | | { |
| | | id: 1, |
| | | groupTypeName: '人å', |
| | | codeView: 'ç¼ç è§å¾', |
| | | sex: 'æ§å«', |
| | | typeName: 'èºæ ', |
| | | attributeName: '', |
| | | defaultValue: '', |
| | | }, |
| | | { |
| | | id: 2, |
| | | groupTypeName: '人å', |
| | | codeView: 'ç¼ç è§å¾', |
| | | sex: 'æ§å«', |
| | | typeName: 'èºæ ', |
| | | attributeName: '', |
| | | defaultValue: '', |
| | | }, |
| | | { |
| | | id: 3, |
| | | groupTypeName: '人å', |
| | | codeView: 'ç¼ç è§å¾', |
| | | sex: 'æ§å«', |
| | | typeName: 'èºæ ', |
| | | attributeName: '', |
| | | defaultValue: '', |
| | | }, |
| | | { |
| | | id: 3, |
| | | groupTypeName: '人å', |
| | | codeView: 'ç¼ç è§å¾', |
| | | sex: 'æ§å«', |
| | | typeName: 'èºæ ', |
| | | attributeName: '', |
| | | defaultValue: '', |
| | | }, |
| | | { |
| | | id: 3, |
| | | groupTypeName: '人å', |
| | | codeView: 'ç¼ç è§å¾', |
| | | sex: 'æ§å«', |
| | | typeName: 'èºæ ', |
| | | attributeName: '', |
| | | defaultValue: '', |
| | | }, |
| | | { |
| | | id: 3, |
| | | groupTypeName: '人å', |
| | | codeView: 'ç¼ç è§å¾', |
| | | sex: 'æ§å«', |
| | | typeName: 'èºæ ', |
| | | attributeName: '', |
| | | defaultValue: '', |
| | | }, |
| | | { |
| | | id: 3, |
| | | groupTypeName: '人å', |
| | | codeView: 'ç¼ç è§å¾', |
| | | sex: 'æ§å«', |
| | | typeName: 'èºæ ', |
| | | attributeName: '', |
| | | defaultValue: '', |
| | | }, |
| | | { |
| | | id: 3, |
| | | groupTypeName: '人å', |
| | | codeView: 'ç¼ç è§å¾', |
| | | sex: 'æ§å«', |
| | | typeName: 'èºæ ', |
| | | attributeName: '', |
| | | defaultValue: '', |
| | | }, |
| | | { |
| | | id: 3, |
| | | groupTypeName: '人å', |
| | | codeView: 'ç¼ç è§å¾', |
| | | sex: 'æ§å«', |
| | | typeName: 'èºæ ', |
| | | attributeName: '', |
| | | defaultValue: '', |
| | | } |
| | | ], |
| | | filterText: '', |
| | | optinos: { |
| | | title: 'éå¢å±æ§', |
| | | maxHeight: '300px', |
| | | menu: true, |
| | | delBtn: false, |
| | | addBtn: false, |
| | | index: true, |
| | | header: false, |
| | | columnBtn: false, |
| | | searchShow: true, |
| | | emptyBtn: false, |
| | | searchBtn: false, |
| | | searchShowBtn: false, |
| | | cellBtn: true, |
| | | border: true, |
| | | searchMenuSpan: 8, |
| | | column: [ |
| | | { label: '屿§é墿䏾å¼', prop: 'groupTypeName', minWidth: 80, }, |
| | | { label: 'éå¢å±æ§æä¸¾æ¾ç¤ºåç§°', prop: 'codeView', minWidth: 80 }, |
| | | { label: 'MDMæä¸¾å¼', prop: 'sex', minWidth: 80 }, |
| | | { label: 'MDMæä¸¾æ¾ç¤ºåç§°', prop: 'typeName', minWidth: 80, overHidden: true }, |
| | | ] |
| | | }, |
| | | option: { |
| | | maxHeight: '500px', |
| | | menu: true, |
| | | delBtn: false, |
| | | addBtn: false, |
| | | index: true, |
| | | header: true, |
| | | columnBtn: false, |
| | | searchShow: true, |
| | | emptyBtn: false, |
| | | searchBtn: false, |
| | | searchShowBtn: false, |
| | | cellBtn: true, |
| | | border: true, |
| | | searchMenuSpan: 8, |
| | | column: [ |
| | | { |
| | | label: 'éå¢åç±»', |
| | | prop: 'groupTypeName', |
| | | minWidth: 80, |
| | | type: "select", |
| | | dicUrl: "/api/ubcs-system/dict/dictionary?code=org_category", |
| | | props: { |
| | | label: "dictValue", |
| | | value: "dictKey" |
| | | }, |
| | | slot: true, |
| | | search: true, |
| | | rules: [{ |
| | | message: "请è¾å
¥éå¢åç±»åç§°" |
| | | }] |
| | | }, |
| | | { label: 'æå±è§å¾', prop: 'codeView', minWidth: 80 }, |
| | | { label: 'éå¢å±æ§', prop: 'sex', minWidth: 80 }, |
| | | { label: 'åç±»åç§°', prop: 'typeName', minWidth: 80, overHidden: true }, |
| | | { label: '屿§åç§°', prop: 'attributeName', minWidth: 80, cell: true }, |
| | | { label: 'é»è®¤å¼', prop: 'defaultValue', minWidth: 140, cell: true }, |
| | | ] |
| | | }, |
| | | treeData: [{ |
| | | id: 1, |
| | | label: 'ä¸çº§ 1', |
| | | children: [{ |
| | | id: 4, |
| | | label: 'äºçº§ 1-1', |
| | | children: [{ |
| | | id: 9, |
| | | label: 'ä¸çº§ 1-1-1' |
| | | }, { |
| | | id: 10, |
| | | label: 'ä¸çº§ 1-1-2' |
| | | }] |
| | | }] |
| | | }, { |
| | | id: 2, |
| | | label: 'ä¸çº§ 2', |
| | | children: [{ |
| | | id: 5, |
| | | label: 'äºçº§ 2-1' |
| | | }, { |
| | | id: 6, |
| | | label: 'äºçº§ 2-2' |
| | | }] |
| | | }, { |
| | | id: 3, |
| | | label: 'ä¸çº§ 3', |
| | | children: [{ |
| | | id: 7, |
| | | label: 'äºçº§ 3-1' |
| | | }, { |
| | | id: 8, |
| | | label: 'äºçº§ 3-2' |
| | | }] |
| | | }], |
| | | defaultProps: { |
| | | children: 'children', |
| | | label: 'label' |
| | | } |
| | | } |
| | | }, |
| | | watch: { |
| | | filterText(val) { |
| | | this.$refs.tree.filter(val); |
| | | } |
| | | }, |
| | | created() { |
| | | pinyin.setOptions({ checkPolyphone: false, charCase: 1 }); |
| | | console.log(pinyin.getFullChars('管çå')) |
| | | console.log(pinyin.getCamelChars('管çå')) |
| | | |
| | | }, |
| | | methods: { |
| | | filterNode(value, data) { |
| | | if (!value) return true; |
| | | return data.label.indexOf(value) !== -1; |
| | | }, |
| | | handleSave() { |
| | | |
| | | }, |
| | | handlePush() { |
| | | |
| | | }, |
| | | handelLeftCheck(event) { |
| | | console.log(event) |
| | | }, |
| | | addUpdate(event, done) { |
| | | console.log(event) |
| | | done() |
| | | }, |
| | | rowSave(event, done) { |
| | | console.log(event) |
| | | done() |
| | | }, |
| | | handleRowClick(row, event, column) { |
| | | console.log(row) |
| | | console.log(event) |
| | | console.log(column) |
| | | }, |
| | | handleQuery(event) { |
| | | console.log(event) |
| | | this.form.name = event |
| | | }, |
| | | filterMethod(query, item) { |
| | | return item.pinyins.indexOf(this.form.name) > -1; |
| | | }, |
| | | } |
| | | } |
| | | </script> |
| | | <style lang="scss" scoped> |
| | | .text_tip { |
| | | padding: 10px 0; |
| | | color: #F56C6C; |
| | | } |
| | | |
| | | /deep/ .el-transfer-panel__list { |
| | | width: 100%; |
| | | } |
| | | |
| | | /deep/ .el-input { |
| | | width: auto; |
| | | } |
| | | |
| | | /deep/ .el-transfer-panel { |
| | | width: 270px; |
| | | } |
| | | |
| | | /deep/ .el-transfer-panel__list { |
| | | height: 370px; |
| | | } |
| | | |
| | | /deep/ .el-transfer-panel__body { |
| | | height: 370px; |
| | | } |
| | | </style> |
| | |
| | | crudTreeOption: { |
| | | index: true, |
| | | border: true, |
| | | height:180, |
| | | column: [ |
| | | { |
| | | label: "模æ¿ç¼å·", |
| | |
| | | <el-container> |
| | | <el-main> |
| | | <basic-container> |
| | | <avue-crud v-model="form" :option="option" :data="data" ref="crud" @on-load="onLoad" @row-save="rowSave" |
| | | @row-update="rowUpdate" :before-open="beforeOpen" @row-del="rowDel" :page.sync="page" |
| | | @refresh-change="refreshChange" @row-click="rowClick" |
| | | @selection-change="selectChange"> |
| | | <template slot-scope="{row,index,type}" slot="selInputForm"> |
| | | <div style="margin-left: 75px"> |
| | | <el-input v-model="form.text" :size="size" style="width: 210px" :readonly="true" @focus="selectBtmType" :disabled="referType.disable"></el-input> |
| | | </div> |
| | | </template> |
| | | <template slot="radio" |
| | | slot-scope="{row}"> |
| | | <el-radio v-model="selectRow" |
| | | :label="row.$index"> |
| | | </el-radio> |
| | | <avue-crud v-model="form" |
| | | ref="crud" |
| | | :option="option" |
| | | :data="data" |
| | | @on-load="onLoad" |
| | | :page.sync="page" |
| | | @refresh-change="refreshChange" |
| | | @row-click="rowClick"> |
| | | <template slot="radio" |
| | | slot-scope="{row}"> |
| | | <el-radio v-model="selectRow" |
| | | :label="row.$index"> |
| | | </el-radio> |
| | | </template> |
| | | <template slot="menu"> |
| | | <el-button icon="el-icon-edit" size="small" type="text" @click="updateSave">ç¼è¾</el-button> |
| | | <el-button icon="el-icon-delete" size="small" type="text" @click="deleteSave">å é¤</el-button> |
| | | </template> |
| | | <template slot="menuLeft"> |
| | | <el-button size="small" |
| | | type="primary" |
| | | icon="el-icon-plus" |
| | | @click="addSave">æ° å¢ |
| | | </el-button> |
| | | <el-button size="small" |
| | | plain |
| | | type="primary" |
| | |
| | | <avue-crud v-model="applyRange.model" :option="applyRange.option" :data="applyRange.data" class="applyRangeTable" |
| | | ></avue-crud> |
| | | </el-dialog> |
| | | <el-dialog :visible.sync="referType.display" append-to-body :title="referType.title" width="1000px"> |
| | | <original-range @rowchange="rowchange"></original-range> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-button @click="dialoghandelfalse">å æ¶</el-button> |
| | | <el-button type="primary" @click="dialoghandeltrue">ç¡® å®</el-button> |
| | | </span> |
| | | </el-dialog> |
| | | <!-- <el-dialog :visible.sync="packageLinkBox" append-to-body title="æ¥ç龿¥ç±»å" width="1000px"> |
| | | <original-link @rowLinkchange="rowLinkchange"></original-link> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-button @click="Linkdialoghandelfalse">å æ¶</el-button> |
| | | <el-button type="primary" @click="Linkdialoghandeltrue">ç¡® å®</el-button> |
| | | </span> |
| | | </el-dialog> --> |
| | | </basic-container> |
| | | </el-main> |
| | | <el-aside> |
| | | <basic-container class="itemForm"> |
| | | <el-tabs v-model="activeName" @tab-click="handleClick"> |
| | | <el-tab-pane label="屿§é¡¹" name="attrTab"> |
| | | <el-form ref="form" :model="itemData" label-width="80px" style="height: 656px;"> |
| | | <el-form-item label="屿§ç¼ç "> |
| | | <el-input v-model="itemData.id" :disabled="true"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="屿§åç§°"> |
| | | <el-input v-model="itemData.name" :disabled="true"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="屿§ç±»å"> |
| | | <el-input v-model="itemData.typeValue" :disabled="true"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="æ ç¾"> |
| | | <el-input v-model="itemData.hashtag" :disabled="true"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="é»è®¤å¼"> |
| | | <el-input v-model="itemData.defaultValue" :disabled="true"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="å
许为空"> |
| | | <el-switch v-model="itemData.nullable" :disabled="true"></el-switch> |
| | | </el-form-item> |
| | | <el-form-item label="é¿åº¦"> |
| | | <el-input v-model="itemData.maxLength" :disabled="true"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="æè¿°"> |
| | | <el-input v-model="itemData.description" :disabled="true"></el-input> |
| | | </el-form-item> |
| | | </el-form> |
| | | </el-tab-pane> |
| | | <el-tab-pane label="åç
§" name="valueTab"> |
| | | <el-form ref="form" :model="itemData" label-width="80px" style="height: 656px;"> |
| | | <el-form-item label="åç
§ç±»å"> |
| | | <el-input v-model="itemData.referTypeValue" :disabled="true"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="åç
§åç§°"> |
| | | <el-input v-model="itemData.referToName" :disabled="true"></el-input> |
| | | </el-form-item> |
| | | </el-form> |
| | | <el-descriptions class="margin-top" :column="1" size="medium" border title="屿§é¡¹"> |
| | | <el-descriptions-item> |
| | | <template slot="label"> |
| | | 屿§ç¼å· |
| | | </template> |
| | | {{ itemForm.itemData.id }} |
| | | </el-descriptions-item> |
| | | <el-descriptions-item> |
| | | <template slot="label"> |
| | | 屿§åç§° |
| | | </template> |
| | | {{ itemForm.itemData.name }} |
| | | </el-descriptions-item> |
| | | <el-descriptions-item> |
| | | <template slot="label"> |
| | | 屿§ç±»å |
| | | </template> |
| | | {{ itemForm.itemData.typeValue }} |
| | | </el-descriptions-item> |
| | | <el-descriptions-item> |
| | | <template slot="label"> |
| | | æ ç¾ |
| | | </template> |
| | | {{ itemForm.itemData.hashtag }} |
| | | </el-descriptions-item> |
| | | <el-descriptions-item> |
| | | <template slot="label"> |
| | | é»è®¤å¼ |
| | | </template> |
| | | {{ itemForm.itemData.defaultValue }} |
| | | </el-descriptions-item> |
| | | <el-descriptions-item> |
| | | <template slot="label"> |
| | | å
许为空 |
| | | </template> |
| | | {{ itemForm.itemData.nullable }} |
| | | </el-descriptions-item> |
| | | <el-descriptions-item> |
| | | <template slot="label"> |
| | | é¿åº¦ |
| | | </template> |
| | | {{ itemForm.itemData.maxLength }} |
| | | </el-descriptions-item> |
| | | <el-descriptions-item> |
| | | <template slot="label"> |
| | | æè¿° |
| | | </template> |
| | | {{ itemForm.itemData.description }} |
| | | </el-descriptions-item> |
| | | </el-descriptions> |
| | | <div style="height:15px"></div> |
| | | <el-descriptions class="margin-top" :column="1" size="medium" border title="屿§é
ç½®"></el-descriptions> |
| | | <el-tabs v-model="itemForm.activeName" @tab-click="handleClick" stretch="true" style="height:235px"> |
| | | <el-tab-pane label="åç
§" name="referTab"> |
| | | <el-descriptions class="margin-top" :column="1" size="medium" border> |
| | | <el-descriptions-item> |
| | | <template slot="label"> |
| | | 使ç¨åç
§ |
| | | </template> |
| | | {{ itemForm.itemData.referTypeValue ? 'æ¯' : 'å¦' }} |
| | | </el-descriptions-item> |
| | | <el-descriptions-item> |
| | | <template slot="label"> |
| | | åç
§ç±»å |
| | | </template> |
| | | {{ itemForm.itemData.referTypeValue }} |
| | | </el-descriptions-item> |
| | | <el-descriptions-item> |
| | | <template slot="label"> |
| | | åç
§åç§° |
| | | </template> |
| | | {{ itemForm.itemData.referToName }} |
| | | </el-descriptions-item> |
| | | </el-descriptions> |
| | | </el-tab-pane> |
| | | <el-tab-pane label="æä¸¾" name="enumTab"> |
| | | <el-form ref="form" :model="itemData" label-width="80px" style="height: 656px;"> |
| | | <el-form-item label="ä½¿ç¨æä¸¾"> |
| | | <el-switch v-model="itemData.usingDict" :disabled="true"></el-switch> |
| | | </el-form-item> |
| | | <el-form-item label="æä¸¾ç±»å"> |
| | | <el-input v-model="form.dictCode" :disabled="true"></el-input> |
| | | </el-form-item> |
| | | </el-form> |
| | | <el-descriptions class="margin-top" :column="1" :size="small" border> |
| | | <el-descriptions-item> |
| | | <template slot="label"> |
| | | ä½¿ç¨æä¸¾ |
| | | </template> |
| | | {{ itemForm.itemData.usingDict ? 'æ¯' : 'å¦' }} |
| | | </el-descriptions-item> |
| | | <el-descriptions-item> |
| | | <template slot="label"> |
| | | æä¸¾ç±»å |
| | | </template> |
| | | {{ itemForm.itemData.dictCode }} |
| | | </el-descriptions-item> |
| | | </el-descriptions> |
| | | </el-tab-pane> |
| | | </el-tabs> |
| | | </basic-container> |
| | | </el-aside> |
| | | <originalAdd ref="originalAdd" :attribute="attribute" @refreshTable="refreshChange"></originalAdd> |
| | | </el-container> |
| | | </template> |
| | | |
| | |
| | | update, getPage, getApplyRange |
| | | } from "@/api/omd/OmdAttribute"; |
| | | |
| | | import { getDictionary } from "@/api/omd/enum"; |
| | | |
| | | export default { |
| | | name: "original", |
| | | data() { |
| | | return { |
| | | datas: [], |
| | | itemData: {}, |
| | | activeName: 'attrTab', |
| | | formAtrr: {}, |
| | | rouname: "", |
| | | referType: { |
| | | code: 'referType', |
| | | key: '', |
| | | value: '', |
| | | display: false, |
| | | title: '', |
| | | disable: true |
| | | }, |
| | | //å¼åä¸ææ¡æ°æ® |
| | | Typelist: [], |
| | | //çæ¬æ°æ® |
| | | banList: [], |
| | | // 屿§ç±»åä¸ææ¡æ°æ® |
| | | typeSelectList: [ |
| | | { |
| | | label: "ååå", |
| | | value: 0 |
| | | },], |
| | | // æ¯å¦ä¸ºç©º |
| | | nullable: [], |
| | | form: { |
| | | text: "" |
| | | }, |
| | | detailForm: { |
| | | text: "" |
| | | }, |
| | | return { |
| | | page: { |
| | | pageSize: 10, |
| | | currentPage: 1, |
| | | total: 100 |
| | | }, |
| | | selectRow: '', |
| | | data: [ |
| | | |
| | | ], |
| | | data: [], |
| | | form:{}, |
| | | attribute: { |
| | | nullable: true |
| | | }, |
| | | option: { |
| | | height: "550px", |
| | | headerAlign: 'center', |
| | |
| | | index: true, |
| | | rowKey: 'id', |
| | | tabs: true, |
| | | stripe:true, |
| | | indexFixed: false, |
| | | menuWidth: 150, |
| | | highlightCurrentRow: true, |
| | | addBtn:false, |
| | | editBtn:false, |
| | | delBtn:false, |
| | | column: [{ |
| | | label: 'éæ©', |
| | | prop: 'radio', |
| | |
| | | prop: 'id', |
| | | align: 'left', |
| | | display: false, |
| | | width: 200 |
| | | width: 200, |
| | | required: true |
| | | }, { |
| | | label: '屿§åç§°', |
| | | prop: 'name', |
| | |
| | | display: false, |
| | | dicData: [{ |
| | | label: 'æ¯', |
| | | value: 0 |
| | | value: 'true' |
| | | }, { |
| | | label: 'å¦', |
| | | value: 1 |
| | | value: 'false' |
| | | }] |
| | | }, |
| | | { |
| | |
| | | labelWidth: 132, |
| | | dicData: [{ |
| | | label: 'å¦', |
| | | value: 1 |
| | | value: 'false' |
| | | }, { |
| | | label: 'æ¯', |
| | | value: 0 |
| | | value: 'true' |
| | | }] |
| | | }, |
| | | { |
| | |
| | | type: "textarea", |
| | | display: false |
| | | }, |
| | | ], |
| | | group: [ |
| | | { |
| | | label: '屿§é¡¹', |
| | | prop: "index", |
| | | column: [ |
| | | { |
| | | label: '屿§ç¼å·', |
| | | prop: 'id', |
| | | align: 'left', |
| | | }, |
| | | { |
| | | label: '屿§åç§°', |
| | | prop: 'name', |
| | | align: 'left', |
| | | }, |
| | | { |
| | | label: 'æ ç¾', |
| | | prop: 'hashtag', |
| | | hide: true |
| | | }, { |
| | | label: '屿§ç±»ååå
¸ç ', |
| | | prop: 'typeCode', |
| | | display: false, |
| | | value: 'attributeType' |
| | | }, |
| | | { |
| | | label: '屿§ç±»å', |
| | | prop: 'typeKey', |
| | | type: "select", |
| | | dicUrl: '/api/ubcs-omd/dict-biz/dictionary?code=attributeType', |
| | | dicType: 'String', |
| | | props: { |
| | | label: 'dictValue', |
| | | value: 'dictKey' |
| | | }, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: "è¯·éæ©å±æ§ç±»å", |
| | | trigger: "click" |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | label: 'é»è®¤å¼', |
| | | prop: 'defaultValue', |
| | | }, |
| | | { |
| | | label: 'å
许为空', |
| | | prop: 'nullable', |
| | | type: 'switch', |
| | | hide: true, |
| | | labelWidth: 132, |
| | | dicData: [{ |
| | | label: 'å¦', |
| | | value: 1 |
| | | }, { |
| | | label: 'æ¯', |
| | | value: 0 |
| | | }] |
| | | }, |
| | | { |
| | | label: "é¿åº¦", |
| | | prop: "maxLength", |
| | | hide: true |
| | | }, |
| | | { |
| | | label: 'æè¿°', |
| | | prop: 'description', |
| | | type: "textarea" |
| | | }, |
| | | ] |
| | | }, |
| | | { |
| | | label: 'åç
§', |
| | | column: [ |
| | | { |
| | | label: 'åç
§ç±»å«', |
| | | prop: 'referTypeCode', |
| | | display: false, |
| | | hide: true |
| | | },{ |
| | | span: 12, |
| | | label: 'åç
§ç±»å«', |
| | | prop: 'referTypeKey', |
| | | type: "select", |
| | | change: this.selectChange, |
| | | dicUrl: '/api/ubcs-omd/dict-biz/dictionary?code=referType', |
| | | dicType: 'String', |
| | | props: { |
| | | label: 'dictValue', |
| | | value: 'dictKey' |
| | | }, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: "è¯·éæ©åç
§ç±»å«", |
| | | trigger: "click" |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | prop: "selInput", |
| | | placeholder: false, |
| | | readonly: true, |
| | | display: true, |
| | | formslot: true, |
| | | }, |
| | | // { |
| | | // label: "éæ©çæ¬", |
| | | // prop: "banben", |
| | | // type: 'select', |
| | | // value: 0, |
| | | // change: this.selchange, |
| | | // display: true, |
| | | // dicData: [ |
| | | // { |
| | | // label: 'å½åçæ¬æ¬¡', |
| | | // value: 0 |
| | | // }, |
| | | // { |
| | | // label: 'ææ°çæ¬æ¬¡', |
| | | // value: 1 |
| | | // } |
| | | // ] |
| | | // }, |
| | | { |
| | | //é»è®¤è¡¨æ ¼ææ§½ |
| | | prop: "default", |
| | | span: 24, |
| | | display: false |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | label: 'æä¸¾', |
| | | column: [ |
| | | { |
| | | label: 'æ¯å¦ä½¿ç¨æä¸¾', |
| | | prop: 'isnot', |
| | | type: 'switch', |
| | | hide: true, |
| | | labelWidth: 132, |
| | | span: 8, |
| | | dicData: [{ |
| | | label: 'å¦', |
| | | value: 1 |
| | | }, { |
| | | label: 'æ¯', |
| | | value: 0 |
| | | }] |
| | | }, |
| | | { |
| | | prop: 'text', |
| | | type: 'input', |
| | | placeholder: '请è¾å
¥å
容', |
| | | hide: true, |
| | | display: false |
| | | }, |
| | | { |
| | | prop: 'enumerationSelect', |
| | | type: 'select', |
| | | placeholder: 'è¯·éæ©', |
| | | hide: true, |
| | | span: 12, |
| | | dicData: [ |
| | | { |
| | | label: 'a', |
| | | value: 0 |
| | | }, |
| | | { |
| | | label: 'b', |
| | | value: 1 |
| | | }, |
| | | { |
| | | label: 'c', |
| | | value: 2 |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | label: 'æè¿°', |
| | | prop: 'endesc', |
| | | type: "textarea", |
| | | labelWidth: 132, |
| | | }, |
| | | ] |
| | | } |
| | | ] |
| | | }, |
| | | applyRange: { |
| | |
| | | }, |
| | | data: [], |
| | | display: false, |
| | | }, |
| | | itemForm:{ |
| | | itemData: {}, |
| | | activeName: 'referTab', |
| | | form:{} |
| | | } |
| | | } |
| | | }, |
| | | |
| | | |
| | | created() { |
| | | const column =this.findObject(this.option.group,"referTypeKey") |
| | | console.log(column); |
| | | |
| | | }, |
| | | methods: { |
| | | rowLinkchange(row) { |
| | | this.form.text = row.name |
| | | }, |
| | | rowchange(row) { |
| | | this.form.text = row.name |
| | | }, |
| | | //å¼åç±»åéæ© |
| | | addHandle() { |
| | | this.packageBox = true |
| | | if (this.Typelist.value == 0) { |
| | | this.packageBox = true |
| | | this.packageLinkBox = false |
| | | } else if (this.Typelist.value == 1) { |
| | | this.packageBox = false |
| | | this.packageLinkBox = true |
| | | } |
| | | }, |
| | | // å¼åä¸å¡ç±»åå¯¹è¯æ¡åæ¶ |
| | | dialoghandelfalse() { |
| | | this.packageBox = false; |
| | | this.form.text = "" |
| | | }, |
| | | //å¼åä¸å¡ç±»åå¯¹è¯æ¡ç¡®å® |
| | | dialoghandeltrue() { |
| | | this.packageBox = false |
| | | }, |
| | | // å¼å龿¥ç±»åå¯¹è¯æ¡åæ¶ |
| | | Linkdialoghandelfalse() { |
| | | this.packageLinkBox = false; |
| | | this.form.text = "" |
| | | }, |
| | | //å¼å龿¥ç±»åå¯¹è¯æ¡ç¡®å® |
| | | Linkdialoghandeltrue() { |
| | | this.packageLinkBox = false |
| | | }, |
| | | selectChange(val) { |
| | | this.referType.key = val.value |
| | | if (val.value == 'businessType'){ |
| | | this.referType.value = 'ä¸å¡ç±»å' |
| | | } |
| | | if (val.value == 'linkType'){ |
| | | this.referType.value = '龿¥ç±»å' |
| | | } |
| | | if(val.value){ |
| | | this.referType.disable = false |
| | | } |
| | | }, |
| | | selchange(val) { |
| | | this.banList = val |
| | | console.log(val); |
| | | }, |
| | | refreshChange() { |
| | | this.onLoad(this.pageParent, this.query); |
| | | }, |
| | | beforeOpen(done, type) { |
| | | |
| | | done(); |
| | | |
| | | addSave(){ |
| | | this.$refs.originalAdd.showSubmitDialog = true; |
| | | this.$refs.originalAdd.attribute = {}; |
| | | }, |
| | | rowDel(row) { |
| | | this.$confirm("ç¡®å®å°éæ©æ°æ®å é¤?", { |
| | | confirmButtonText: "ç¡®å®", |
| | | cancelButtonText: "åæ¶", |
| | | type: "warning" |
| | | }) |
| | | .then(() => { |
| | | return remove(row.id); |
| | | }) |
| | | .then(() => { |
| | | this.$message({ |
| | | type: "success", |
| | | message: "æä½æå!" |
| | | }); |
| | | this.onLoad(); |
| | | }); |
| | | updateSave(){ |
| | | this.$refs.originalAdd.showSubmitDialog = true; |
| | | this.$refs.originalAdd.attribute = this.attribute; |
| | | }, |
| | | rowSave(row, done) { |
| | | add(row).then(() => { |
| | | this.$message({ |
| | | type: "success", |
| | | message: "æä½æå!" |
| | | }); |
| | | done(row) |
| | | this.onLoad() |
| | | }).catch((res) => { |
| | | this.$message({ |
| | | type: "success", |
| | | message: res |
| | | }); |
| | | }) |
| | | }, |
| | | rowUpdate(row, index, done) { |
| | | update(row).then(() => { |
| | | this.onLoad() |
| | | this.$message({ |
| | | type: "success", |
| | | message: "ä¿®æ¹æå!" |
| | | }); |
| | | done(row) |
| | | deleteSave(){ |
| | | remove(this.itemForm.itemData).then(res => { |
| | | this.$message.success("å 餿å"); |
| | | }) |
| | | }, |
| | | onLoad(page, params = {}) { |
| | |
| | | }) |
| | | }, |
| | | rowClick(row) { |
| | | this.itemData = row; |
| | | this.itemForm.itemData = row; |
| | | this.selectRow = row.$index; |
| | | |
| | | this.attribute = row; |
| | | } |
| | | ,selectBtmType(){ |
| | | this.referType.display = true; |
| | |
| | | }) |
| | | } |
| | | var oid = this.data[this.selectRow].oid; |
| | | console.log(oid); |
| | | getApplyRange(oid).then(res => { |
| | | this.applyRange.data = res.data.data; |
| | | }) |
| | | console.log("success"); |
| | | this.applyRange.display = true; |
| | | }, |
| | | applyRangeClose(){ |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <el-container> |
| | | <el-dialog title="å
æ°æ®" :visible.sync="showSubmitDialog" append-to-body @close="closeSubmitDialog" width="700px" |
| | | style="height: 115vh;"> |
| | | <!-- å
æ°æ®ç墿¹å¼¹çª --> |
| | | <el-form ref="form" :model="attribute" show-message="true" inline size="medium" label-suffix=":" |
| | | class="attributeForm" :rules="rules" @resetFields="resetAttributeForm" status-icon="true"> |
| | | <el-form-item label="屿§ç¼å·" label-width="100px" prop="id"> |
| | | <el-input v-model="attribute.id" maxlength="15" show-word-limit type="text"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="屿§åç§°" label-width="100px" prop="name"> |
| | | <el-input v-model="attribute.name"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="屿§ç±»å" label-width="100px" prop="typeValue"> |
| | | <el-select v-model="attribute.typeValue" placeholder="è¯·éæ©å±æ§ç±»å" @change="typeSelectChange"> |
| | | <el-option v-for="item in typeList" :key="item.value" :label="item.label" :value="item.value"> |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="æ ç¾" label-width="100px"> |
| | | <el-input v-model="attribute.hashtag"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="é»è®¤å¼" label-width="100px"> |
| | | <el-input v-model="attribute.defaultValue"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="å
许为空" label-width="100px"> |
| | | <el-switch v-model="attribute.nullable" active-text="å
许" inactive-text="ä¸å
许"></el-switch> |
| | | </el-form-item> |
| | | <el-form-item label="é¿åº¦" label-width="100px" prop="maxLength"> |
| | | <el-input-number v-model="attribute.maxLength" :min="1" :max="4000" :step="1" controls-position="right"></el-input-number> |
| | | </el-form-item> |
| | | <el-form-item label="精度" label-width="100px" v-if="attribute.typeValue == 'VTDouble'"> |
| | | <el-input-number v-model="attribute.precision" :min="1" :max="20" :step="1" controls-position="right" @change="changeNumber"></el-input-number> |
| | | </el-form-item> |
| | | <el-form-item label="æè¿°" label-width="100px"> |
| | | <el-input v-model="attribute.description" type="text"></el-input> |
| | | </el-form-item> |
| | | |
| | | <el-tabs v-model="activeName" @tab-click="handleClick" stretch="true"> |
| | | <el-tab-pane label="åç
§" name="referTab"> |
| | | <el-form-item label="åç
§ç±»å" label-width="100px"> |
| | | <el-select v-model="attribute.referTypeKey" @change="referTypeSelectChange"> |
| | | <el-option v-for="item in btmRefer.referTypeList" :key="item.value" :label="item.label" |
| | | :value="item.value"> |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="åç
§åç§°" label-width="100px"> |
| | | <el-input v-model="attribute.referToName" @focus="openReferConfig" clearable="true" |
| | | :disabled="referToFlag" @clear="clearReferTo"> |
| | | <i slot="suffix" class="el-input__icon el-icon-search"></i> |
| | | </el-input> |
| | | </el-form-item> |
| | | </el-tab-pane> |
| | | <el-tab-pane label="æä¸¾" name="enumTab"> |
| | | <el-form-item label="æä¸¾" label-width="100px"> |
| | | <el-input v-model="attribute.dictValue" @focus="openEnumConfig" clearable="true"> |
| | | <i slot="suffix" class="el-input__icon el-icon-search"></i> |
| | | </el-input> |
| | | </el-form-item> |
| | | <el-form-item label="æä¸¾é¡¹" label-width="100px"> |
| | | |
| | | </el-form-item> |
| | | </el-tab-pane> |
| | | </el-tabs> |
| | | </el-form> |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button type="primary" @click="submitAttribute">ç¡®å®</el-button> |
| | | <el-button @click="cancleSubmit">åæ¶</el-button> |
| | | </div> |
| | | <!-- éæ©åç
§æ¶çå¼¹çª --> |
| | | <el-dialog title="åç
§å表" :visible.sync="btmRefer.show" append-to-body @close="closeReferDialog" width="80%" |
| | | style="height: 115vh;"> |
| | | <el-container> |
| | | <el-aside> |
| | | <basic-container> |
| | | <span class="el-dialog__title"> {{ domain.treeOption.title }} </span> |
| | | <div style="height:20px;"></div> |
| | | <avue-tree id="domain" :data="domain.data" :option="domain.treeOption" @node-click="nodeClick" |
| | | class="businessTree" style="height: 418px"> |
| | | <span class="el-tree-node__label" slot-scope="{ node, data }"> |
| | | <span> |
| | | <i class="el-icon-star-on"></i> |
| | | {{ (node || {}).label }} |
| | | </span> |
| | | </span> |
| | | </avue-tree> |
| | | </basic-container> |
| | | </el-aside> |
| | | <el-main> |
| | | <basic-container> |
| | | <avue-crud ref="btmTable" :option="btmRefer.option" :data="btmRefer.data" class="btmTable" @row-click="btmReferClick"> |
| | | <template slot="radio" slot-scope="{row}"> |
| | | <el-radio v-model="btmRefer.selectRow" :label="row.$index"> |
| | | </el-radio> |
| | | </template> |
| | | </avue-crud> |
| | | </basic-container> |
| | | </el-main> |
| | | |
| | | </el-container> |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button type="primary" @click="confirmBtm" size="small">ç¡®å®</el-button> |
| | | <el-button @click="cancleBtm" size="small">åæ¶</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | <!-- éæ©æä¸¾æ¶çå¼¹çª --> |
| | | <el-dialog title="æä¸¾å表" :visible.sync="enumRefer.show" append-to-body @close="closeEnumDialog" width="70%" |
| | | style="height: 115vh;"> |
| | | <avue-crud ref="eunmTable" :option="enumRefer.option" :data="enumRefer.data" class="enumTable" @row-click="enumReferClick" :page.sync="enumRefer.enumPage"> |
| | | <template slot="radio" slot-scope="{row}"> |
| | | <el-radio v-model="enumRefer.selectRow" :label="row.$index"> |
| | | </el-radio> |
| | | </template> |
| | | </avue-crud> |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button type="primary" @click="confirmEnum" size="small">ç¡®å®</el-button> |
| | | <el-button @click="cancleEnum" size="small">åæ¶</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | </el-dialog> |
| | | |
| | | </el-container> |
| | | </template> |
| | | |
| | | <script> |
| | | import { getDictionary,getParentList } from '@/api/omd/enum' |
| | | import { initTree,btmPage } from '@/api/omd/btmType' |
| | | import { add} from '@/api/omd/OmdAttribute' |
| | | export default { |
| | | name: 'originalAdd', |
| | | props: { |
| | | attribute: { |
| | | type: Object |
| | | }, |
| | | }, |
| | | data() { |
| | | return { |
| | | showSubmitDialog: false, |
| | | // é»è®¤çé¡µç¾ |
| | | activeName: 'referTab', |
| | | // 屿§ç±»åä¸ææ¡æ°æ® |
| | | typeList: [], |
| | | // åç
§ä¸ææ¡æ¯å¦å¯ç¨ |
| | | referToFlag: true, |
| | | // è¡¨åæ ¡éªè§å |
| | | rules: { |
| | | id: [ |
| | | { required: true, message: '请è¾å
¥å±æ§ç¼å·', trigger: 'blur' }, |
| | | { pattern: /^[A-Za-z]+$/, message: '屿§ç¼å·åªè½ä¸ºè±æ', trigger: 'blur' }, |
| | | { min: 2, max: 15, message: 'é¿åº¦å¨2å°15个å符', trigger: 'blur' } |
| | | ], |
| | | name: [ |
| | | { required: true, message: '请è¾å
¥å±æ§åç§°', trigger: 'blur' } |
| | | ], |
| | | typeValue: [ |
| | | { required: true, message: 'è¯·éæ©å±æ§ç±»å', trigger: 'change' } |
| | | ], |
| | | maxLength: [ |
| | | { required: true, message: 'éè¦æå®é¿åº¦', trigger: 'blur' } |
| | | ] |
| | | }, |
| | | // åç
§é¡µé¢è¡¨æ ¼é
ç½® |
| | | btmRefer: { |
| | | show: false, |
| | | btmPage: { |
| | | pageSize: 10, |
| | | currentPage: 1, |
| | | total: 100 |
| | | }, |
| | | option: { |
| | | height: 405, |
| | | addBtn: false, |
| | | refreshBtn: false, |
| | | columnBtn: false, |
| | | menu: false, |
| | | border: true, |
| | | reserveSelection: true, |
| | | searchMenuSpan: 32, |
| | | searchShowBtn: false, |
| | | highlightCurrentRow: true, |
| | | column: [ |
| | | { |
| | | label: '', |
| | | prop: 'radio', |
| | | width: 60, |
| | | hide: false |
| | | }, |
| | | { |
| | | label: 'è±æåç§°', |
| | | prop: 'id', |
| | | align: 'center', |
| | | searchSpan:8, |
| | | search: true, |
| | | }, { |
| | | label: '䏿åç§°', |
| | | prop: 'name', |
| | | align: 'center', |
| | | searchSpan:8, |
| | | search: true, |
| | | }] |
| | | }, |
| | | // åç
§é¡µé¢è¡¨æ ¼æ°æ® |
| | | data: [], |
| | | selectRow: '', |
| | | selectItem: {}, |
| | | referTypeList: [] |
| | | }, |
| | | // æä¸¾åç
§è¡¨æ ¼é
ç½® |
| | | enumRefer: { |
| | | show: false, |
| | | enumPage: { |
| | | pageSize: 10, |
| | | currentPage: 1, |
| | | total: 100 |
| | | }, |
| | | option: { |
| | | height: 360, |
| | | addBtn: false, |
| | | refreshBtn: false, |
| | | columnBtn: false, |
| | | selection: true, |
| | | menu: false, |
| | | border: true, |
| | | reserveSelection: true, |
| | | searchMenuSpan: 32, |
| | | searchShowBtn: false, |
| | | highlightCurrentRow: true, |
| | | column: [{ |
| | | label: '', |
| | | prop: 'radio', |
| | | width: 60, |
| | | hide: false |
| | | },{ |
| | | label: 'æä¸¾ä»£å·', |
| | | prop: 'name', |
| | | align: 'center', |
| | | searchSpan:8, |
| | | search: true, |
| | | }, { |
| | | label: 'æä¸¾åç§°', |
| | | prop: 'label', |
| | | align: 'center', |
| | | searchSpan:8, |
| | | search: true, |
| | | }] |
| | | }, |
| | | // æä¸¾åç
§è¡¨æ ¼æ°æ® |
| | | data: [], |
| | | enumDictionary: [], |
| | | // éå®è¡ |
| | | selectRow: '', |
| | | selectItem: {} |
| | | }, |
| | | domain: { |
| | | data: [], |
| | | treeOption: { |
| | | defaultExpandAll: true, |
| | | title: 'é¢åæå¡æ ', |
| | | props: { |
| | | labelText: '', |
| | | label: 'name', |
| | | value: 'oid', |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | created() { |
| | | this.initAttributeTypeList(); |
| | | this.initAttributeReferTypeList(); |
| | | }, |
| | | methods: { |
| | | closeSubmitDialog() { |
| | | this.resetAttributeForm(); |
| | | this.showSubmitDialog = false; |
| | | }, |
| | | resetAttributeForm() { |
| | | this.attribute = { |
| | | nullable: true, |
| | | referTypeKey: '', |
| | | }; |
| | | this.referToFlag = true; |
| | | this.$refs.form.resetFields(); |
| | | }, |
| | | submitAttribute() { |
| | | add(this.attribute).then(res => { |
| | | this.$message.success("ä¿åæå"); |
| | | this.showSubmitDialog = false; |
| | | this.attribute = {}; |
| | | this.$emit('refreshTable'); |
| | | }); |
| | | |
| | | }, |
| | | cancleSubmit() { |
| | | this.closeSubmitDialog(); |
| | | }, |
| | | closeEnumDialog() { |
| | | this.cancleEnum(); |
| | | }, |
| | | closeReferDialog() { |
| | | this.cancleBtm(); |
| | | }, |
| | | confirmBtm() { |
| | | this.attribute.referToId = this.btmRefer.selectItem.oid; |
| | | this.attribute.referToName = this.btmRefer.selectItem.name; |
| | | this.btmRefer.show = false; |
| | | }, |
| | | cancleBtm() { |
| | | this.btmRefer.selectItem = {}; |
| | | this.btmRefer.show = false; |
| | | this.btmRefer.selectRow = ''; |
| | | }, |
| | | confirmEnum() { |
| | | this.attribute.usingDict = true; |
| | | this.attribute.dictCode = this.enumRefer.selectItem.name; |
| | | this.attribute.dictValue = this.enumRefer.selectItem.label; |
| | | this.enumRefer.show = false; |
| | | }, |
| | | cancleEnum() { |
| | | this.enumRefer.selectItem = {}; |
| | | this.enumRefer.show = false; |
| | | this.enumRefer.selectRow = ''; |
| | | }, |
| | | // åç
§åç§°è¾å
¥æ¡è·åç¦ç¹æ¶çäºä»¶ |
| | | openReferConfig() { |
| | | if (!this.attribute.referTypeKey) { |
| | | this.$message.warning('请å
éæ©åç
§çç±»å'); |
| | | this.referToFlag = true; |
| | | return; |
| | | } |
| | | this.domain.data = []; |
| | | this.btmRefer.data = []; |
| | | initTree().then(res => { |
| | | this.domain.data = res.data.data; |
| | | }) |
| | | this.btmRefer.show = true; |
| | | |
| | | }, |
| | | // åç
§ç±»åæ çç¹å»äºä»¶ |
| | | nodeClick(data) { |
| | | // åºåä¸å¡ç±»åçæ¥è¯¢å龿¥ç±»åçæ¥è¯¢ |
| | | if(this.attribute.referTypeKey == 'btmType'){ |
| | | btmPage(this.btmRefer.btmPage.currentPage,this.btmRefer.btmPage.pageSize,{domain:data.id}).then(res => { |
| | | this.btmRefer.data = res.data.data.records; |
| | | this.btmRefer.btmPage.total = res.data.data.total; |
| | | }) |
| | | } |
| | | if(this.attribute.referTypeKey == 'linkType'){ |
| | | |
| | | } |
| | | }, |
| | | // æä¸¾ç±»åè¾å
¥æ¡è·å¾ç¦ç¹æ¶çäºä»¶ |
| | | openEnumConfig() { |
| | | getParentList(this.enumRefer.enumPage.currentPage,this.enumRefer.enumPage.pageSize).then(res => { |
| | | this.enumRefer.enumPage.total = res.data.data.total; |
| | | this.enumRefer.data = res.data.data.records; |
| | | }) |
| | | this.enumRefer.show = true; |
| | | }, |
| | | // 屿§ç±»å䏿æ¡éæ©äºä»¶ |
| | | typeSelectChange(value) { |
| | | if (value == 'VTString') { |
| | | this.$set(this.attribute,"maxLength",150) |
| | | } else if (value == 'VTInteger') { |
| | | this.$set(this.attribute,"maxLength",50) |
| | | } else if (value == 'VTBoolean') { |
| | | this.$set(this.attribute,"maxLength",5) |
| | | } else if (value == 'VTDouble') { |
| | | this.$set(this.attribute,"maxLength",26) |
| | | this.$set(this.attribute,"precision",8) |
| | | } else if (value == 'VTLong') { |
| | | this.$set(this.attribute,"maxLength",150) |
| | | } else if (value == 'VTDate' || value == 'VTTime' || value == 'VTDateTime') { |
| | | this.$set(this.attribute,"maxLength",6) |
| | | } else { |
| | | this.$set(this.attribute,"maxLength",50) |
| | | } |
| | | this.attribute.typeCode = 'attributeType'; |
| | | this.attribute.typeKey = value; |
| | | }, |
| | | referTypeSelectChange(value) { |
| | | this.attribute.referTypeCode = 'attributeReferType'; |
| | | this.attribute.referTypeKey = value; |
| | | this.referToFlag = false; |
| | | }, |
| | | initAttributeTypeList() { |
| | | getDictionary({ code: 'attributeType' }).then(res => { |
| | | res.data.data.forEach(element => { |
| | | this.typeList.push( |
| | | { value: element.itemValue, label: element.itemName } |
| | | ) |
| | | }); |
| | | }).catch(() => { |
| | | this.$message.error('屿§ç±»å没æ¾å°æè
æªå®ä¹') |
| | | }) |
| | | }, |
| | | initAttributeReferTypeList(){ |
| | | getDictionary({ code: 'attributeReferType' }).then(res => { |
| | | res.data.data.forEach(element => { |
| | | this.btmRefer.referTypeList.push( |
| | | { value: element.itemValue, label: element.itemName } |
| | | ) |
| | | }); |
| | | }).catch(() => { |
| | | this.$message.error('åç
§ç±»å没æ¾å°æè
æªå®ä¹') |
| | | }) |
| | | }, |
| | | btmReferClick(row){ |
| | | this.btmRefer.selectItem = row; |
| | | this.btmRefer.selectRow = row.$index; |
| | | }, |
| | | enumReferClick(row){ |
| | | this.enumRefer.selectItem = row; |
| | | this.enumRefer.selectRow = row.$index; |
| | | }, |
| | | // åç
§åç§°ç¹å»æ¸
餿°æ® |
| | | clearReferTo(){ |
| | | this.$delete(this.attribute,'referToId'); |
| | | this.$delete(this.attribute,'referToName'); |
| | | this.btmRefer.selectItem = {}; |
| | | this.btmRefer.selectRow = ''; |
| | | }, |
| | | handleClick(tab){ |
| | | // å 为åªè½åç
§åæä¸¾äºéä¸ãæä»¥å¨åæ¢çæ¶åæå±æ§ç»æ¸
空ã |
| | | this.$delete(this.attribute,'referTypeCode'); |
| | | this.$delete(this.attribute,'referTypeKey'); |
| | | this.$delete(this.attribute,'referTypeValue'); |
| | | this.$delete(this.attribute,'referToId'); |
| | | this.$delete(this.attribute,'referToName'); |
| | | this.$delete(this.attribute,'dictCode'); |
| | | this.$delete(this.attribute,'dictKey'); |
| | | this.$delete(this.attribute,'dictValue'); |
| | | this.$delete(this.attribute,'usingDict'); |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style> |
| | | .btmTable>.el-card:nth-of-type(2)>.el-card__body>.avue-crud__menu { |
| | | display: none !important; |
| | | } |
| | | |
| | | .enumTable>.el-card:nth-of-type(2)>.el-card__body>.avue-crud__menu { |
| | | display: none !important; |
| | | } |
| | | |
| | | .attributeForm>.el-form-item>.el-form-item__content>.el-input>.el-input__inner { |
| | | width: 200px; |
| | | } |
| | | |
| | | .attributeForm>.el-form-item>.el-form-item__content> .el-select>.el-input>.el-input__inner { |
| | | width: 200px; |
| | | } |
| | | </style> |
| | |
| | | proxy: { |
| | | '/api': { |
| | | //æ¬å°æå¡æ¥å£å°å |
| | | // target: 'http://localhost:37000', |
| | | //target: 'http://192.168.3.7:37000', |
| | | target: 'http://dev.vci-tech.com:37000', |
| | | target: 'http://localhost:37000', |
| | | // target: 'http://192.168.3.7:37000', |
| | | //target: 'http://dev.vci-tech.com:37000', |
| | | //target: 'http://192.168.1.51:37000/', |
| | | //è¿ç¨æ¼ç¤ºæå¡å°å,å¯ç¨äºç´æ¥å¯å¨é¡¹ç® |
| | | // target: 'https://saber.bladex.vip/api', |
| | | ws: true, |
| | |
| | | * nacos dev å°å |
| | | */ |
| | | //String NACOS_DEV_ADDR = "dev.vci-tech.com:38848"; |
| | | String NACOS_DEV_ADDR = "localhost:8848"; |
| | | String NACOS_DEV_ADDR = "127.0.0.1:8848"; |
| | | |
| | | /** |
| | | * nacos prod å°å |
| | |
| | | <module>ubcs-omd-api</module> |
| | | <module>ubcs-util-api</module> |
| | | <module>ubcs-ddl-api</module> |
| | | <module>ubcs-webservice-api</module> |
| | | </modules> |
| | | |
| | | <dependencies> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.dto; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.github.yulichang.annotation.EntityMapping; |
| | | import com.vci.ubcs.code.entity.CodeReferConfig; |
| | | import com.vci.ubcs.code.entity.CodeShowFieldConfig; |
| | | import com.vci.ubcs.code.entity.CodeSrchCondConfig; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @author ludc |
| | | * @date 2023/5/24 11:31 |
| | | */ |
| | | public class CodeReferConfigDTO extends CodeReferConfig { |
| | | |
| | | /** |
| | | * æ¾ç¤ºç屿§-æ¾ç¤ºå¯¹è±¡ |
| | | */ |
| | | private List<CodeShowFieldConfig> codeShowFieldConfigs; |
| | | |
| | | /** |
| | | * æ¥è¯¢æ¡ä»¶æ¾ç¤ºå¯¹è±¡ |
| | | */ |
| | | private List<CodeSrchCondConfig> codeSrchCondConfigs; |
| | | |
| | | } |
| | |
| | | @ApiModelProperty(value = "åå¼èå´") |
| | | private String range; |
| | | |
| | | |
| | | } |
| | |
| | | */ |
| | | private static final long serialVersionUID = -4431848943790920077L; |
| | | |
| | | |
| | | @JsonSerialize( |
| | | using = ToStringSerializer.class |
| | | ) |
| | |
| | | package com.vci.ubcs.code.entity; |
| | | |
| | | import com.alibaba.fastjson.annotation.JSONField; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.fasterxml.jackson.annotation.JsonFilter; |
| | | import com.fasterxml.jackson.annotation.JsonInclude; |
| | | import com.github.yulichang.annotation.EntityMapping; |
| | | import com.vci.ubcs.code.vo.CodeShowFieldConfigVO; |
| | | import com.vci.ubcs.code.vo.CodeSrchCondConfigVO; |
| | | import com.vci.ubcs.starter.revision.model.BaseModel; |
| | |
| | | @Data |
| | | @TableName("PL_CODE_REFERCONFIG") |
| | | @ApiModel(value = "CodeReferConfig对象", description = "ç¼ç è§å管ç-å¼ç¨ç 段-åç
§é
ç½®") |
| | | @JsonInclude(JsonInclude.Include.NON_EMPTY) //ä¸è¾åºæç©ºå段 |
| | | public class CodeReferConfig extends BaseModel { |
| | | |
| | | /** |
| | |
| | | /** |
| | | * ç§æ·ID |
| | | */ |
| | | @JSONField() |
| | | private String tenantId; |
| | | |
| | | /** |
| | |
| | | private String onlyLeaf; |
| | | |
| | | /** |
| | | * åç
§çä¸å¡ç±»å-æ¾ç¤ºææ¬ |
| | | */ |
| | | private String referTypeName; |
| | | |
| | | /** |
| | | * æ¯å¦å¼å¯å
¨å± |
| | | */ |
| | | private String isOpenGlobal; |
| | | |
| | | /** |
| | | * æåº |
| | | */ |
| | | private Integer orderNum; |
| | | |
| | | /** |
| | | * æ¯å¦å¼å¯æä¹
å |
| | | */ |
| | | private String isPersistence; |
| | | |
| | | /** |
| | | * æ¾ç¤ºç屿§-æ¾ç¤ºå¯¹è±¡ |
| | | */ |
| | | @TableField(exist = false) |
| | | @EntityMapping(thisField = "oid", joinField = "referConfigOid") |
| | | @JsonInclude(JsonInclude.Include.NON_NULL) |
| | | private List<CodeShowFieldConfig> codeShowFieldConfigs; |
| | | |
| | | /** |
| | | * æ¥è¯¢æ¡ä»¶æ¾ç¤ºå¯¹è±¡ |
| | | */ |
| | | @TableField(exist = false) |
| | | @EntityMapping(thisField = "oid", joinField = "referConfigOid") |
| | | @JsonInclude(JsonInclude.Include.NON_NULL) |
| | | private List<CodeSrchCondConfig> codeSrchCondConfigs; |
| | | |
| | | } |
| | |
| | | package com.vci.ubcs.code.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.github.yulichang.annotation.EntityMapping; |
| | | import com.vci.ubcs.starter.revision.model.BaseModel; |
| | | import io.swagger.annotations.ApiModel; |
| | | import lombok.Data; |
| | | |
| | | import java.io.Serializable; |
| | | |
| | | /** |
| | | * ç¼ç è§å管ç-å¼ç¨ç 段-åç
§é
ç½®-æ¾ç¤ºå±æ§é
ç½® |
| | |
| | | @Data |
| | | @TableName("PL_CODE_SHOWFIELDCONFIG") |
| | | @ApiModel(value = "CodeShowFieldConfig对象", description = "ç¼ç è§å管ç-å¼ç¨ç 段-åç
§é
ç½®-æ¾ç¤ºå±æ§é
ç½®") |
| | | public class CodeShowFieldConfig extends BaseModel { |
| | | public class CodeShowFieldConfig implements Serializable { |
| | | |
| | | private static final long serialVersionUID = -71135592796848692L; |
| | | |
| | | /** |
| | | * ä¸»é® |
| | | */ |
| | | @TableId(value = "OID",type = IdType.ASSIGN_UUID) |
| | | private String oid; |
| | | |
| | | /** |
| | | * ååæ®µ |
| | |
| | | private String sort; |
| | | |
| | | /** |
| | | * æåºå段 |
| | | * æ¾ç¤ºç屿§ä¸ç-æåºå段 |
| | | */ |
| | | private String sortField; |
| | | private String attrSortField; |
| | | |
| | | /** |
| | | * åæ®µå®½åº¦ |
| | |
| | | private String templet; |
| | | |
| | | /** |
| | | * æ¯å¦å¿«éæ¥è¯¢ |
| | | */ |
| | | private String isQuery; |
| | | |
| | | /** |
| | | * å
³èçåç
§é
ç½®ä¸»é® |
| | | */ |
| | | private String referConfigOid; |
| | |
| | | package com.vci.ubcs.code.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.vci.ubcs.starter.revision.model.BaseModel; |
| | | import io.swagger.annotations.ApiModel; |
| | |
| | | @Data |
| | | @TableName("PL_CODE_SRCHCONDCONFIG") |
| | | @ApiModel(value = "CodeSrchCondConfig对象", description = "ç¼ç è§å管ç-å¼ç¨ç 段-åç
§é
ç½®-æç´¢æ¡ä»¶é
ç½®") |
| | | public class CodeSrchCondConfig extends BaseModel { |
| | | public class CodeSrchCondConfig { |
| | | |
| | | private static final long serialVersionUID = -51655155561881523L; |
| | | |
| | | /** |
| | | * ä¸»é® |
| | | */ |
| | | @TableId(value = "OID",type = IdType.ASSIGN_UUID) |
| | | private String oid; |
| | | |
| | | /** |
| | | * çéåæ®µ |
| | | */ |
| | | private String filterField; |
ÎļþÃû´Ó Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/feign/ICodeClassifyClient.java ÐÞ¸Ä |
| | |
| | | package com.vci.ubcs.code.feign; |
| | | |
| | | import com.vci.ubcs.code.entity.CodeClassify; |
| | | import com.vci.ubcs.code.entity.CodeClassifyTemplateAttr; |
| | | import com.vci.ubcs.code.vo.pagemodel.CodeClassifyTemplateAttrVO; |
| | | import com.vci.ubcs.starter.revision.model.TreeQueryObject; |
| | | import com.vci.ubcs.starter.web.pagemodel.Tree; |
| | | import org.springblade.core.mp.support.BladePage; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 主é¢åºå®ä¹è¡¨ Feignæ¥å£ç±» |
| | |
| | | |
| | | String API_PREFIX = "/codeClass"; |
| | | String TOP = API_PREFIX + "/top"; |
| | | String CODE_CLASSIFY_TREE=API_PREFIX+"/referCodeClassifyTree"; |
| | | String CODE_ATTRIBUTE_LIST=API_PREFIX+"/listCodeAttributeByClassId"; |
| | | |
| | | /** |
| | | * è·å主é¢åºå®ä¹è¡¨å表 |
| | |
| | | @GetMapping(TOP) |
| | | BladePage<CodeClassify> top(@RequestParam("current") Integer current, @RequestParam("size") Integer size); |
| | | |
| | | /*** |
| | | * è·å主é¢åºåç±»å±çº§æ |
| | | * @param treeQueryObject |
| | | * @return 主é¢åºåç±» |
| | | */ |
| | | @PostMapping(CODE_CLASSIFY_TREE) |
| | | public List<Tree> referCodeClassifyTree(@RequestBody TreeQueryObject treeQueryObject); |
| | | |
| | | /*** |
| | | * è·åä¸»æ°æ®æ¨¡æ¿å±æ§ä¿¡æ¯ |
| | | * @param codeClassifyId |
| | | * reutn è¿åä¸»æ°æ®æ¨¡æ¿å±æ§ä¿¡æ¯ |
| | | */ |
| | | @GetMapping(CODE_ATTRIBUTE_LIST) |
| | | public List<CodeClassifyTemplateAttrVO> listCodeAttributeByClassId(@RequestParam("codeClassifyId") String codeClassifyId); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
| | | * |
| | | * Redistribution and use in source and binary forms, with or without |
| | | * modification, are permitted provided that the following conditions are met: |
| | | * |
| | | * Redistributions of source code must retain the above copyright notice, |
| | | * this list of conditions and the following disclaimer. |
| | | * Redistributions in binary form must reproduce the above copyright |
| | | * notice, this list of conditions and the following disclaimer in the |
| | | * documentation and/or other materials provided with the distribution. |
| | | * Neither the name of the dreamlu.net developer nor the names of its |
| | | * contributors may be used to endorse or promote products derived from |
| | | * this software without specific prior written permission. |
| | | * Author: Chill åºéª (smallchill@163.com) |
| | | */ |
| | | package com.vci.ubcs.code.feign; |
| | | |
| | | import com.vci.ubcs.starter.revision.model.BaseModel; |
| | | import org.springblade.core.launch.constant.AppConstant; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * ç¼ç ä¿¡æ¯ Feignæ¥å£ç±» |
| | | * |
| | | * @author yuxc |
| | | * @since 2023-05-05 |
| | | */ |
| | | @FeignClient( |
| | | value = AppConstant.APPLICATION_NAME_CODE, |
| | | fallback = IMdmEngineFallback.class |
| | | ) |
| | | public interface IMdmEngineClient { |
| | | |
| | | String API_PREFIX = "/mdmEngineClient"; |
| | | String SELECT_BY_TYPE_OID = API_PREFIX + "/selectByTypeAndOid"; |
| | | String INSERT_BATCH_BY_TYPE = API_PREFIX + "/insertBatchByType"; |
| | | |
| | | /** |
| | | * ä¼ å
¥ä¸å¡ç±»å以åç¸oidéåæ¥è¯¢æ°æ®è¿è¡è¿å |
| | | * |
| | | * @param btmType ä¸å¡ç±»å |
| | | * @param oids éè¦æ¥è¯¢çoidéå éå·åå¼ |
| | | * @return æ¥è¯¢åºçæ°æ® |
| | | */ |
| | | @GetMapping(SELECT_BY_TYPE_OID) |
| | | R<List<BaseModel>> selectByTypeAndOid(@RequestParam("btmType") String btmType, @RequestParam("oids") String oids); |
| | | |
| | | |
| | | /** |
| | | * ä¼ å
¥ä¸å¡ç±»å以åç¸å
³æ°æ®è¿è¡æ¹éæå
¥æä½ |
| | | * |
| | | * @param btmType ä¸å¡ç±»å |
| | | * @param baseModels å¤çæ°æ® |
| | | * @return å¤çæåæ°æ®æ¡æ° |
| | | */ |
| | | @PostMapping(INSERT_BATCH_BY_TYPE) |
| | | R<Integer> insertBatchByType(@RequestParam("btmType")String btmType,@RequestBody List<BaseModel> baseModels); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
| | | * |
| | | * Redistribution and use in source and binary forms, with or without |
| | | * modification, are permitted provided that the following conditions are met: |
| | | * |
| | | * Redistributions of source code must retain the above copyright notice, |
| | | * this list of conditions and the following disclaimer. |
| | | * Redistributions in binary form must reproduce the above copyright |
| | | * notice, this list of conditions and the following disclaimer in the |
| | | * documentation and/or other materials provided with the distribution. |
| | | * Neither the name of the dreamlu.net developer nor the names of its |
| | | * contributors may be used to endorse or promote products derived from |
| | | * this software without specific prior written permission. |
| | | * Author: Chill åºéª (smallchill@163.com) |
| | | */ |
| | | package com.vci.ubcs.code.feign; |
| | | |
| | | import com.vci.ubcs.starter.revision.model.BaseModel; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springframework.stereotype.Component; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * Feign失败é
ç½® |
| | | * |
| | | * @author Chill |
| | | */ |
| | | @Component |
| | | public class IMdmEngineFallback implements IMdmEngineClient { |
| | | |
| | | @Override |
| | | public R<List<BaseModel>> selectByTypeAndOid(String btmType, String oids) { |
| | | return R.fail("è·åæ°æ®å¤±è´¥"); |
| | | } |
| | | |
| | | @Override |
| | | public R<Integer> insertBatchByType(String btmType, List<BaseModel> baseModels){ |
| | | return R.fail("è·åæ°æ®å¤±è´¥"); |
| | | } |
| | | } |
| | |
| | | private static final long serialVersionUID = 957685333614390234L; |
| | | |
| | | /** |
| | | * åç
§çä¸å¡ç±»å-æ¾ç¤ºææ¬ |
| | | */ |
| | | private String referTypeText; |
| | | |
| | | /** |
| | | * åç
§çªå£ç±»å-æ¾ç¤ºææ¬ |
| | | * åç
§çªå£ç±»å-æ¾ç¤ºå±æ§ |
| | | */ |
| | | private String typeText; |
| | | |
| | | /** |
| | | * 请æ±åå°çåè®®æ¹å¼ |
| | | */ |
| | | private String method; |
| | | |
| | | |
| | | /** |
| | | * åèçUIä¸ä¸æ |
| | | */ |
| | | private String referContent; |
| | | |
| | | /** |
| | | * å¹³å°çè¡¨æ ¼ç¼å· |
| | | */ |
| | | private String displayTable; |
| | | |
| | | /** |
| | | * æ¯é¡µæ¾ç¤ºæ¡æ° |
| | | */ |
| | | private String limit; |
| | | |
| | | /** |
| | | * æåºå段 |
| | | */ |
| | | private String sortField; |
| | | |
| | | /** |
| | | * æåºç±»å |
| | | */ |
| | | private String sortType; |
| | | |
| | | /** |
| | | * æ å½¢çä¸çº§å±æ§ |
| | | */ |
| | | private String parentFieldName; |
| | | |
| | | /** |
| | | * ä¸çº§å±æ§å¼å¯¹åºå±æ§ |
| | | */ |
| | | private String parentUsedField; |
| | | |
| | | /** |
| | | * æ ¹èç¹çå¼ |
| | | */ |
| | | private String parentValue; |
| | | |
| | | /** |
| | | * æ å è½½æ¹å¼ |
| | | */ |
| | | private String loadType; |
| | | |
| | | /** |
| | | * æ¯å¦åªè½éæ©å¶åèç¹ |
| | | */ |
| | | private String onlyLeaf; |
| | | |
| | | /** |
| | | * æ¾ç¤ºç屿§-æ¾ç¤ºå¯¹è±¡ |
| | |
| | | private static final long serialVersionUID = -71135592796848692L; |
| | | |
| | | /** |
| | | * å
³èçåç
§é
ç½®id |
| | | */ |
| | | private String configOid; |
| | | |
| | | /** |
| | | * åæ®µç±»å-æ¾ç¤ºææ¬ |
| | | */ |
| | | private String fieldTypeText; |
| | |
| | | private static final long serialVersionUID = -51655155561881523L; |
| | | |
| | | /** |
| | | * å
³èçåç
§é
ç½®id |
| | | */ |
| | | private String configOid; |
| | | |
| | | /** |
| | | * çéç±»å |
| | | */ |
| | | private String filterTypeText; |
| | |
| | | */ |
| | | private String parentQueryAttr; |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "CodeClassifyTemplateAttrVO{" + |
| | | "classifyTemplateOid='" + classifyTemplateOid + '\'' + |
| | | ", classifyTemplateOidName='" + classifyTemplateOidName + '\'' + |
| | | ", classifyAttributeOid='" + classifyAttributeOid + '\'' + |
| | | ", classifyAttributeOidName='" + classifyAttributeOidName + '\'' + |
| | | ", attributeDataType='" + attributeDataType + '\'' + |
| | | ", attributeDataTypeText='" + attributeDataTypeText + '\'' + |
| | | ", keyAttrFlag='" + keyAttrFlag + '\'' + |
| | | ", queryAttrFlag='" + queryAttrFlag + '\'' + |
| | | ", seniorQueryAttrFlag='" + seniorQueryAttrFlag + '\'' + |
| | | ", sameRepeatAttrFlag='" + sameRepeatAttrFlag + '\'' + |
| | | ", sortAttrFlag='" + sortAttrFlag + '\'' + |
| | | ", qrcodeFlag='" + qrcodeFlag + '\'' + |
| | | ", barcodeFlag='" + barcodeFlag + '\'' + |
| | | ", componentRule='" + componentRule + '\'' + |
| | | ", verifyRule='" + verifyRule + '\'' + |
| | | ", classifyInvokeLevel='" + classifyInvokeLevel + '\'' + |
| | | ", classifyInvokeAttr='" + classifyInvokeAttr + '\'' + |
| | | ", classifyInvokeAttrName='" + classifyInvokeAttrName + '\'' + |
| | | ", classifyInvokeEditFlag='" + classifyInvokeEditFlag + '\'' + |
| | | ", orderNum=" + orderNum + |
| | | ", formDisplayFlag='" + formDisplayFlag + '\'' + |
| | | ", tableDisplayFlag='" + tableDisplayFlag + '\'' + |
| | | ", attributeGroup='" + attributeGroup + '\'' + |
| | | ", enumId='" + enumId + '\'' + |
| | | ", enumName='" + enumName + '\'' + |
| | | ", enumEditFlag='" + enumEditFlag + '\'' + |
| | | ", referBtmId='" + referBtmId + '\'' + |
| | | ", referBtmName='" + referBtmName + '\'' + |
| | | ", referConfig='" + referConfig + '\'' + |
| | | ", requireFlag='" + requireFlag + '\'' + |
| | | ", readOnlyFlag='" + readOnlyFlag + '\'' + |
| | | ", controlLength=" + controlLength + |
| | | ", formDisplayStyle='" + formDisplayStyle + '\'' + |
| | | ", tableDisplayStyle='" + tableDisplayStyle + '\'' + |
| | | ", formHref='" + formHref + '\'' + |
| | | ", tableHref='" + tableHref + '\'' + |
| | | ", precisionLength=" + precisionLength + |
| | | ", scaleLength=" + scaleLength + |
| | | ", valueArea='" + valueArea + '\'' + |
| | | ", codeDateFormat='" + codeDateFormat + '\'' + |
| | | ", tableDisplayJs='" + tableDisplayJs + '\'' + |
| | | ", textAreaFlag='" + textAreaFlag + '\'' + |
| | | ", imageFlag='" + imageFlag + '\'' + |
| | | ", defaultValue='" + defaultValue + '\'' + |
| | | ", prefixValue='" + prefixValue + '\'' + |
| | | ", suffixValue='" + suffixValue + '\'' + |
| | | ", filterSourceAttr='" + filterSourceAttr + '\'' + |
| | | ", filterSourceAttrName='" + filterSourceAttrName + '\'' + |
| | | ", enumString='" + enumString + '\'' + |
| | | ", attrTableWidth=" + attrTableWidth + |
| | | ", explain='" + explain + '\'' + |
| | | ", libraryIdentification='" + libraryIdentification + '\'' + |
| | | ", parentCode='" + parentCode + '\'' + |
| | | ", parentName='" + parentName + '\'' + |
| | | ", parentQueryAttr='" + parentQueryAttr + '\'' + |
| | | '}'; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.vo.webserviceModel.coderule; |
| | | |
| | | import com.thoughtworks.xstream.annotations.XStreamAlias; |
| | | import com.thoughtworks.xstream.annotations.XStreamAsAttribute; |
| | | |
| | | @XStreamAlias("classify") |
| | | public class ClassifyVO { |
| | | /** |
| | | * åç±»id |
| | | */ |
| | | @XStreamAsAttribute |
| | | private String id; |
| | | /*** |
| | | * åç±»åç§° |
| | | */ |
| | | @XStreamAsAttribute |
| | | private String name; |
| | | /*** |
| | | * ç¶èç¹id |
| | | */ |
| | | @XStreamAsAttribute |
| | | private String pid; |
| | | /*** |
| | | * åç±»ä»£å· |
| | | */ |
| | | @XStreamAsAttribute |
| | | private String classCode; |
| | | /*** |
| | | * æè¿° |
| | | */ |
| | | @XStreamAsAttribute |
| | | private String description; |
| | | /*** |
| | | * åç±»é¾æ¥è·¯å¾ |
| | | */ |
| | | @XStreamAsAttribute |
| | | private String fullPathName; |
| | | /*** |
| | | * åç±»ç¶æ |
| | | */ |
| | | @XStreamAsAttribute |
| | | private String lcStatus; |
| | | /*** |
| | | * è§åid |
| | | */ |
| | | @XStreamAsAttribute |
| | | private String codeRuleId; |
| | | |
| | | /*** |
| | | * æ¯å¦ä¸ºå¶åèç¹ |
| | | */ |
| | | @XStreamAsAttribute |
| | | private boolean isLeaf; |
| | | |
| | | public String getId() { |
| | | return id; |
| | | } |
| | | |
| | | public void setId(String id) { |
| | | this.id = id; |
| | | } |
| | | |
| | | public String getName() { |
| | | return name; |
| | | } |
| | | |
| | | public void setName(String name) { |
| | | this.name = name; |
| | | } |
| | | |
| | | public String getPid() { |
| | | return pid; |
| | | } |
| | | |
| | | public void setPid(String pid) { |
| | | this.pid = pid; |
| | | } |
| | | |
| | | public String getClassCode() { |
| | | return classCode; |
| | | } |
| | | |
| | | public void setClassCode(String classCode) { |
| | | this.classCode = classCode; |
| | | } |
| | | |
| | | public String getDescription() { |
| | | return description; |
| | | } |
| | | |
| | | public void setDescription(String description) { |
| | | this.description = description; |
| | | } |
| | | |
| | | public String getFullPathName() { |
| | | return fullPathName; |
| | | } |
| | | |
| | | public void setFullPathName(String fullPathName) { |
| | | this.fullPathName = fullPathName; |
| | | } |
| | | |
| | | public String getLcStatus() { |
| | | return lcStatus; |
| | | } |
| | | |
| | | public void setLcStatus(String lcStatus) { |
| | | this.lcStatus = lcStatus; |
| | | } |
| | | |
| | | public String getCodeRuleId() { |
| | | return codeRuleId; |
| | | } |
| | | |
| | | public void setCodeRuleId(String codeRuleId) { |
| | | this.codeRuleId = codeRuleId; |
| | | } |
| | | |
| | | public boolean isLeaf() { |
| | | return isLeaf; |
| | | } |
| | | |
| | | public void setLeaf(boolean leaf) { |
| | | isLeaf = leaf; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "ClassifyVO{" + |
| | | "id='" + id + '\'' + |
| | | ", name='" + name + '\'' + |
| | | ", pid='" + pid + '\'' + |
| | | ", classCode='" + classCode + '\'' + |
| | | ", description='" + description + '\'' + |
| | | ", fullPathName='" + fullPathName + '\'' + |
| | | ", lcStatus='" + lcStatus + '\'' + |
| | | ", codeRuleId='" + codeRuleId + '\'' + |
| | | ", isLeaf=" + isLeaf + |
| | | '}'; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.vo.webserviceModel.coderule; |
| | | |
| | | public class CodeRuleVO { |
| | | // private String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.vo.webserviceModel.coderule; |
| | | |
| | | import com.thoughtworks.xstream.annotations.XStreamAlias; |
| | | import com.thoughtworks.xstream.annotations.XStreamAsAttribute; |
| | | import com.thoughtworks.xstream.annotations.XStreamImplicit; |
| | | |
| | | import java.util.List; |
| | | |
| | | @XStreamAlias("library ") |
| | | public class LibraryVO { |
| | | @XStreamAsAttribute |
| | | private String id; |
| | | @XStreamAsAttribute |
| | | private String name; |
| | | @XStreamImplicit |
| | | private List<ClassifyVO>classify; |
| | | |
| | | private List<CodeRuleVO> coderule; |
| | | |
| | | public String getId() { |
| | | return id; |
| | | } |
| | | |
| | | public void setId(String id) { |
| | | this.id = id; |
| | | } |
| | | |
| | | public String getName() { |
| | | return name; |
| | | } |
| | | |
| | | public void setName(String name) { |
| | | this.name = name; |
| | | } |
| | | |
| | | public List<ClassifyVO> getClassify() { |
| | | return classify; |
| | | } |
| | | |
| | | public void setClassify(List<ClassifyVO> classify) { |
| | | this.classify = classify; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "LibraryVO{" + |
| | | "id='" + id + '\'' + |
| | | ", name='" + name + '\'' + |
| | | ", classify=" + classify + |
| | | '}'; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.vo.webserviceModel.coderule; |
| | | |
| | | public class QueryClassifyVO { |
| | | /*** |
| | | * |
| | | */ |
| | | private QueryData data; |
| | | |
| | | public QueryData getData() { |
| | | return data; |
| | | } |
| | | |
| | | public void setData(QueryData data) { |
| | | this.data = data; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "QueryClassifyVO{" + |
| | | "data=" + data + |
| | | '}'; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.vo.webserviceModel.coderule; |
| | | |
| | | import com.thoughtworks.xstream.annotations.XStreamAlias; |
| | | import com.thoughtworks.xstream.annotations.XStreamAsAttribute; |
| | | import com.vci.ubcs.code.vo.webserviceModel.apply.UserVO; |
| | | |
| | | @XStreamAlias("data") |
| | | public class QueryData { |
| | | @XStreamAsAttribute |
| | | private String systemId; |
| | | private UserVO user; |
| | | private QueryLibraryVO library ; |
| | | public QueryLibraryVO getLibrary() { |
| | | return library; |
| | | } |
| | | |
| | | public void setLibrary(QueryLibraryVO library) { |
| | | this.library = library; |
| | | } |
| | | |
| | | public String getSystemId() { |
| | | return systemId; |
| | | } |
| | | |
| | | public void setSystemId(String systemId) { |
| | | this.systemId = systemId; |
| | | } |
| | | |
| | | public UserVO getUser() { |
| | | return user; |
| | | } |
| | | |
| | | public void setUser(UserVO user) { |
| | | this.user = user; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "QueryData{" + |
| | | "systemId='" + systemId + '\'' + |
| | | ", library=" + library + |
| | | '}'; |
| | | } |
| | | } |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.vo.webserviceModel.coderule; |
| | | |
| | | import com.thoughtworks.xstream.annotations.XStreamAlias; |
| | | import com.thoughtworks.xstream.annotations.XStreamAsAttribute; |
| | | import com.thoughtworks.xstream.annotations.XStreamImplicit; |
| | | |
| | | import java.util.List; |
| | | |
| | | @XStreamAlias("library") |
| | | public class QueryLibraryVO { |
| | | @XStreamAsAttribute |
| | | private String id; |
| | | @XStreamImplicit |
| | | private List<String> classifyid; |
| | | |
| | | public String getId() { |
| | | return id; |
| | | } |
| | | |
| | | public void setId(String id) { |
| | | this.id = id; |
| | | } |
| | | |
| | | public List<String> getClassifyid() { |
| | | return classifyid; |
| | | } |
| | | |
| | | public void setClassifyid(List<String> classifyid) { |
| | | this.classifyid = classifyid; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "LibraryVO{" + |
| | | "id='" + id + '\'' + |
| | | ", classifyid=" + classifyid + |
| | | '}'; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.vo.webserviceModel.coderule; |
| | | |
| | | public class ResultClassifyVO { |
| | | |
| | | private ResultData resultData; |
| | | |
| | | public ResultData getResultData() { |
| | | return resultData; |
| | | } |
| | | |
| | | public void setResultData(ResultData resultData) { |
| | | this.resultData = resultData; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "ResultClassifyVO{" + |
| | | "resultData=" + resultData + |
| | | '}'; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.vo.webserviceModel.coderule; |
| | | |
| | | import com.thoughtworks.xstream.annotations.XStreamAlias; |
| | | |
| | | @XStreamAlias("data") |
| | | public class ResultData { |
| | | @XStreamAlias("errorid") |
| | | private String errorid; |
| | | @XStreamAlias("msg") |
| | | private String msg; |
| | | private LibraryVO library ; |
| | | |
| | | public LibraryVO getLibrary() { |
| | | return library; |
| | | } |
| | | |
| | | public void setLibrary(LibraryVO library) { |
| | | this.library = library; |
| | | } |
| | | |
| | | public String getErrorid() { |
| | | return errorid; |
| | | } |
| | | |
| | | public void setErrorid(String errorid) { |
| | | this.errorid = errorid; |
| | | } |
| | | |
| | | public String getMsg() { |
| | | return msg; |
| | | } |
| | | |
| | | public void setMsg(String msg) { |
| | | this.msg = msg; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "ResultData{" + |
| | | "code='" + errorid + '\'' + |
| | | ", msg='" + msg + '\'' + |
| | | ", library=" + library + |
| | | '}'; |
| | | } |
| | | } |
| | |
| | | import org.springblade.core.tool.utils.Func; |
| | | import org.springblade.core.tool.utils.SpringUtil; |
| | | import org.springblade.core.tool.utils.StringPool; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.Collection; |
| | | import java.util.List; |
| | |
| | | return getValue(name.getName(), nameChild); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * è·ååå
¸å¼ |
| | | * |
| | |
| | | package com.vci.ubcs.omd.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.fasterxml.jackson.databind.annotation.JsonSerialize; |
| | | import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; |
| | |
| | | */ |
| | | @ApiModelProperty(value = "主é®") |
| | | @NotNull |
| | | @TableId |
| | | private String oid; |
| | | |
| | | /** |
| | |
| | | package com.vci.ubcs.omd.entity; |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import io.swagger.annotations.ApiModel; |
| | | import lombok.Data; |
| | |
| | | /** |
| | | * ä¸»é® |
| | | */ |
| | | @TableId |
| | | private String oid; |
| | | |
| | | /** |
| | |
| | | package com.vci.ubcs.omd.entity; |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import io.swagger.annotations.ApiModel; |
| | | import lombok.Data; |
| | |
| | | /** |
| | | * ä¸»é® |
| | | */ |
| | | @TableId |
| | | private String oid; |
| | | |
| | | /** |
| | |
| | | package com.vci.ubcs.omd.entity; |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import io.swagger.annotations.ApiModel; |
| | | import lombok.Data; |
| | |
| | | /** |
| | | * ä¸»é® |
| | | */ |
| | | @TableId |
| | | private String oid; |
| | | |
| | | /** |
| | |
| | | package com.vci.ubcs.omd.entity; |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import io.swagger.annotations.ApiModel; |
| | | import lombok.Data; |
| | |
| | | /** |
| | | * ä¸»é® |
| | | */ |
| | | @TableId |
| | | private String oid; |
| | | |
| | | /** |
| | | * ä¸å¡ç±»ååç§° |
| | | */ |
| | | private String btmname; |
| | | private String btmName; |
| | | |
| | | /** |
| | | * æ¥æè
|
| | |
| | | package com.vci.ubcs.omd.entity; |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import io.swagger.annotations.ApiModel; |
| | | import lombok.Data; |
| | |
| | | /** |
| | | * ä¸»é® |
| | | */ |
| | | @TableId |
| | | private String oid; |
| | | |
| | | /** |
| | |
| | | package com.vci.ubcs.omd.entity; |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import io.swagger.annotations.ApiModel; |
| | | import lombok.Data; |
| | |
| | | /** |
| | | * ä¸»é® |
| | | */ |
| | | @TableId |
| | | private String oid; |
| | | |
| | | /** |
| | |
| | | package com.vci.ubcs.omd.entity; |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import io.swagger.annotations.ApiModel; |
| | | import lombok.Data; |
| | |
| | | /** |
| | | * ä¸»é® |
| | | */ |
| | | @TableId |
| | | private String oid; |
| | | |
| | | /** |
| | |
| | | package com.vci.ubcs.omd.entity; |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import io.swagger.annotations.ApiModel; |
| | | import lombok.Data; |
| | |
| | | /** |
| | | * ä¸»é® |
| | | */ |
| | | @TableId |
| | | private String oid; |
| | | |
| | | /** |
| | |
| | | package com.vci.ubcs.omd.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import io.swagger.annotations.ApiModel; |
| | | import lombok.Data; |
| | |
| | | /** |
| | | * ä¸»é® |
| | | */ |
| | | @TableId |
| | | private String oid; |
| | | |
| | | /** |
| | |
| | | package com.vci.ubcs.omd.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import io.swagger.annotations.ApiModel; |
| | | import lombok.Data; |
| | |
| | | /** |
| | | * ä¸»é® |
| | | */ |
| | | @TableId |
| | | private String oid; |
| | | |
| | | /** |
| | |
| | | package com.vci.ubcs.omd.entity; |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import io.swagger.annotations.ApiModel; |
| | | import lombok.Data; |
| | |
| | | /** |
| | | * ä¸»é® |
| | | */ |
| | | @TableId |
| | | private String oid; |
| | | |
| | | /** |
| | |
| | | * ç¨æ·å¹³å° |
| | | */ |
| | | USER_TYPE("user_type"), |
| | | /** |
| | | * codeSecType ç å¼ç±»å |
| | | */ |
| | | CODE_SEC_TYPE("codeSecType"), |
| | | /** |
| | | * å±çº§ç 段çå±çº§ç±»å |
| | | */ |
| | | CODE_LEVEL_TYPE("codeLevelType"), |
| | | /** |
| | | * ç æ®µé¿åº¦ç±»å |
| | | */ |
| | | CODE_SEC_LENGTH("codeSecLength"), |
| | | /** |
| | | * 弿ªåç±»å |
| | | */ |
| | | CODE_CUT_TYPE("codeCutType"), |
| | | /** |
| | | * 弿ªåç±»å |
| | | */ |
| | | CODE_GET_VALUE_TYPE("codeGetValueType"), |
| | | /** |
| | | * åç±»ä¸çæµç¨æ¨¡æ¿ç¨é |
| | | */ |
| | | CODE_CLASSIFY_PROCESS_USE("codeClassifyProcessUse"), |
| | | /** |
| | | * 屿§ç±»å |
| | | */ |
| | | VCO_FIELD_TYPE("vciFieldType"), |
| | | /** |
| | | * çªå£ç±»å |
| | | */ |
| | | CODE_REFER_CONFIG_TYPE("codeReferConfigType"), |
| | | /** |
| | | * ç¼ç è§åççå½å¨æ |
| | | */ |
| | | CODE_RULE_LC("codeRuleLC"), |
| | | /** |
| | | * åç
§é
ç½®ä¸ç¨å°çåæ®µç±»å |
| | | */ |
| | | CODE_REFER_CONFIG_FIELD_TYPE("codeReferConfigFieldType"), |
| | | /** |
| | | * åç
§é
ç½®ä¸ç¨å°çååºå®ä½ç½® |
| | | */ |
| | | CODE_REFER_CONFIG_FIXED("codeReferConfigFixed"), |
| | | /** |
| | | * çéç±»å |
| | | */ |
| | | CODE_REFER_CONFIG_FILTER_TYPE("codeReferConfigFilterType"), |
| | | /** |
| | | * 模æ¿çæé®ç¨é |
| | | */ |
| | | CODE_TEMPLATE_BUTTON_USE("codeTemplateButtonUse"), |
| | | |
| | | ; |
| | | |
| | | final String name; |
| | |
| | | import com.vci.ubcs.starter.web.pagemodel.BaseQueryObject; |
| | | import org.springblade.core.mp.support.Query; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import java.util.Collection; |
| | | import java.util.List; |
| | |
| | | * @author LiHang |
| | | * @date 2023/5/22 |
| | | */ |
| | | @Component |
| | | public class IRevisionRuleFallback implements IRevisionRuleClient{ |
| | | /** |
| | | * è·åçæ¬è§å详æ
ä¿¡æ¯ |
| | |
| | | /** |
| | | * ç¼ç è§åï¼æå¡å¯å¨å |
| | | */ |
| | | APPLICATION_NAME_CODE(AppConstant.APPLICATION_NAME_CODE,"ç¼ç è§åæå¡"), |
| | | APPLICATION_NAME_CODE(AppConstant.APPLICATION_NAME_CODE,"ä¸»æ°æ®"), |
| | | ; |
| | | |
| | | /** |
| | |
| | | private String id; |
| | | |
| | | private String name; |
| | | //éå¢ç |
| | | //private String groupcode; |
| | | |
| | | private String description; |
| | | |
| | |
| | | this.lctid = lctid; |
| | | } |
| | | |
| | | /* public String getGroupcode() { |
| | | return this.groupcode; |
| | | } |
| | | |
| | | public void setGroupcode(String groupcode) { |
| | | this.groupcode = groupcode; |
| | | }*/ |
| | | |
| | | public Map<String, String> getData() { |
| | | return this.data; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.starter.util; |
| | | |
| | | /** |
| | | * ä¸»æ°æ®ç¸å
³çä¸å¡ç±»åç¼å· |
| | | */ |
| | | public class MdmBtmTypeConstant { |
| | | |
| | | |
| | | /** |
| | | * ç¶æ |
| | | */ |
| | | public static final String CODE_STATUS_FILED = "lcstatus"; |
| | | |
| | | /** |
| | | * éå¢ç çåæ®µ |
| | | */ |
| | | public static final String CODE_GROUP_FIELD = "groupcode"; |
| | | |
| | | /** |
| | | * åç±»ç主é®å段 |
| | | */ |
| | | public static final String CODE_CLASSIFY_OID_FIELD = "codeclsfid"; |
| | | /** |
| | | * 主é¢åºåç±» |
| | | */ |
| | | public static final String CODE_CLASSIFY = "codeclassify"; |
| | | /** |
| | | * 主é¢åºåç±»å
å«çæ¨¡æ¿ |
| | | */ |
| | | public static final String CODE_CLASSIFY_TEMPLATE = "codeclstemplate"; |
| | | /** |
| | | * 主é¢åºåç±»æ¨¡æ¿ å
å«ç屿§ |
| | | */ |
| | | public static final String CODE_CLASSIFY_TEMPLATE_ATTR = "codeclstempattr"; |
| | | |
| | | /** |
| | | * ä¸»æ°æ®ä¸çæé®æ©å± |
| | | */ |
| | | public static final String CODE_BUTTON = "codebutton"; |
| | | /** |
| | | * ä¸»æ°æ®ä¸ç模æ¿å
³èçæé® |
| | | */ |
| | | public static final String CODE_TEMPLATE_BUTTON = "codetempbutton"; |
| | | /** |
| | | * ä¸»æ°æ®ä¸çç¼ç è§å |
| | | */ |
| | | public static final String CODE_RULE = "coderule"; |
| | | |
| | | |
| | | /** |
| | | * å
³é®å±æ§å¤æéå¤ |
| | | */ |
| | | public static final String CODE_KEY_ATTR_REPEAT_RULE = "codekeyattrrepeat"; |
| | | |
| | | /** |
| | | * ç¸ä¼¼æ¥è¯¢è§å |
| | | */ |
| | | public static final String CODE_RESEMBLE_RULE = "coderesemblerule"; |
| | | /** |
| | | * 模æ¿é¶æ®µ |
| | | */ |
| | | public static final String CODE_TEMPLATE_PHASE = "codetempphase"; |
| | | /** |
| | | * é¶æ®µç屿§ |
| | | */ |
| | | public static final String CODE_PHASE_ATTR = "codephaseattr"; |
| | | /** |
| | | * é¶æ®µç屿§ |
| | | */ |
| | | public static final String CODE_PHASE_ATTR_TABLENAME = "code_phaseattr"; |
| | | |
| | | /** |
| | | * ä¸»æ°æ®å类使ç¨çæµç¨æ¨¡æ¿ |
| | | */ |
| | | public static final String CODE_CLASSIFY_PROCESS_TEMPLATE = "codeclsflowtemp"; |
| | | |
| | | /** |
| | | *åç±»çæ¨¡æ¿å¯¹åºæµç¨ä¸çé¶æ®µé
ç½® |
| | | */ |
| | | public static final String CODE_CLASSIFY_PROCESS_PHASE = "codeclsflowphase" ; |
| | | |
| | | /** |
| | | * åºå®ç çç å¼ |
| | | */ |
| | | public static final String CODE_FIXED_VALUE = "codefixedvalue"; |
| | | |
| | | /** |
| | | * åç±»ç çç å¼ |
| | | */ |
| | | public static final String CODE_CLASSIFY_VALUE = "codeclassifyvalue"; |
| | | |
| | | /** |
| | | * æ å°è§å |
| | | */ |
| | | public static final String CODE_TEMPLATE_MAP = "codetempmap"; |
| | | /** |
| | | * æ å°è§åæç» |
| | | */ |
| | | public static final String CODE_TEMPLATE_MAP_ITEM = "codetempmapitem"; |
| | | /** |
| | | * ç æ®µåºç¡ä¿¡æ¯ |
| | | */ |
| | | public static final String CODE_BASIC_SEC = "codebasicsec"; |
| | | |
| | | /** |
| | | * åä¹è¯é
ç½® |
| | | */ |
| | | public static final String CODE_SYNONYM = "codesynonym"; |
| | | /** |
| | | * å
¨é¨çç å¼ |
| | | */ |
| | | public static final String CODE_ALL_CODE = "codeallcode"; |
| | | |
| | | /** |
| | | * ç¼ç è§åçæµæ°´å¼ |
| | | */ |
| | | public static final String CODE_SERIAL_VALUE = "codeserialvalue" ; |
| | | |
| | | /** |
| | | * èµæºå¯¹æ¥éç¥ãæ¥è¯¢æ¥å£æ¥å¿ |
| | | */ |
| | | public static final String DOCKING_LOGE = "codedockinglog"; |
| | | |
| | | /** |
| | | * èµæºå¯¹æ¥è§¦å卿å
¥è¦æ¨éçæ°æ® |
| | | */ |
| | | public static final String DOCKING_DATA = "codedockingdata"; |
| | | |
| | | /** |
| | | * èµæºå¯¹æ¥è§¦å卿å
¥è¦æ¨éçæ°æ®åç³»ç»ä¿¡æ¯ |
| | | */ |
| | | public static final String DOCKING_TASK = "codedockingtask"; |
| | | |
| | | /** |
| | | * é¢ç³è¯·æ°æ® |
| | | */ |
| | | public static final String DOCKING_PRE_APPLY_DATA = "dockingpadata"; |
| | | |
| | | /** |
| | | * é¢ç³è¯·æ°æ®ä¿¡æ¯ |
| | | */ |
| | | public static final String DOCKING_PRE_APPLY_DATA_INFO = "dockingpadatainfo"; |
| | | |
| | | /** |
| | | * ç³»ç»éæçç³»ç» |
| | | */ |
| | | public static final String SYS_INT_BASE = "sysintbase"; |
| | | /** |
| | | * ç³»ç»éææ¥å£çåºç¡ä¿¡æ¯ |
| | | */ |
| | | public static final String SYS_INT_INFO = "sysintinfo"; |
| | | |
| | | /** |
| | | * ç³»ç»éææ¥å£çè®¤è¯æ¹å¼ |
| | | */ |
| | | public static final String SYS_INT_AUTHORITY = "sysintauthority"; |
| | | |
| | | /** |
| | | * ç³»ç»éææ¥å£çåæ°,http对åºçparamter |
| | | */ |
| | | public static final String SYS_INT_PARAMTERY = "sysintparemter"; |
| | | |
| | | /** |
| | | * ç³»ç»éææ¥å£ç认è¯ä¿¡æ¯,http对åºçheader,webserver对åºçè´¦å·å¯ç çä¿¡æ¯ |
| | | */ |
| | | public static final String SYS_INT_HEADER = "sysintheader"; |
| | | |
| | | |
| | | /** |
| | | * éæå±æ§æ å°å
³ç³»ä¸å¡ç±»å |
| | | */ |
| | | public static final String DOCKING_PRE_JINTEGMAPCONFIG = "jintegmapconfig"; |
| | | |
| | | /** |
| | | * éæéå¢åç±»ä¸å¡ç±»å |
| | | */ |
| | | public static final String DOCKING_PRE_JCLASSIFY = "jclassify"; |
| | | /** |
| | | * éæé墿¨¡å屿§ä¸å¡ç±»å |
| | | */ |
| | | public static final String DOCKING_PRE_JMETAATRR = "jmetaattr"; |
| | | |
| | | /** |
| | | * éæå±æ§åå¼èå´å
³ç³»ä¸å¡ç±»å |
| | | */ |
| | | public static final String DOCKING_PRE_JRANGE = "jrange"; |
| | | |
| | | |
| | | /** |
| | | * éæéå¢ç³è¯·åä¸å¡ç±»å |
| | | */ |
| | | public static final String DOCKING_PRE_JAPPLYFORM = "japplyform"; |
| | | |
| | | |
| | | |
| | | /** |
| | | * éæé墿¨¡å屿§ä¸å¡ç±»å |
| | | */ |
| | | public static final String DOCKING_PRE_JVIEWMODEL = "jviewmodel"; |
| | | |
| | | } |
| | |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.alibaba.fastjson.serializer.SerializerFeature; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.core.toolkit.StringUtils; |
| | | import com.vci.ubcs.starter.exception.VciBaseException; |
| | | import com.vci.ubcs.starter.web.enumpck.BooleanEnum; |
| | |
| | | import org.springframework.util.CollectionUtils; |
| | | import org.springframework.util.ResourceUtils; |
| | | |
| | | import java.beans.BeanInfo; |
| | | import java.beans.IntrospectionException; |
| | | import java.beans.Introspector; |
| | | import java.beans.PropertyDescriptor; |
| | | import java.io.File; |
| | | import java.io.IOException; |
| | |
| | | import java.math.BigInteger; |
| | | import java.net.InetAddress; |
| | | import java.net.NetworkInterface; |
| | | import java.sql.Timestamp; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.*; |
| | | import java.util.regex.Matcher; |
| | | import java.util.regex.Pattern; |
| | |
| | | |
| | | } |
| | | |
| | | /** |
| | | * å° JavaBean对象转å为 Map |
| | | * @author wyply115 |
| | | * @param bean è¦è½¬åçç±»å |
| | | * @return Map对象 |
| | | * @version 2016å¹´3æ20æ¥ 11:03:01 |
| | | */ |
| | | public static Map convertBean2Map(Object bean) throws Exception { |
| | | Class type = bean.getClass(); |
| | | Map returnMap = new HashMap(); |
| | | BeanInfo beanInfo = Introspector.getBeanInfo(type); |
| | | PropertyDescriptor[] propertyDescriptors = beanInfo |
| | | .getPropertyDescriptors(); |
| | | Field[] declaredFields = type.getDeclaredFields(); |
| | | String existField = ""; |
| | | for (Field declaredField : declaredFields) { |
| | | declaredField.setAccessible(true); |
| | | |
| | | // è·ååæ®µçå¼ |
| | | boolean isTableField = declaredField.isAnnotationPresent(TableField.class); |
| | | if (isTableField) { |
| | | TableField tableField = declaredField.getAnnotation(TableField.class); |
| | | Boolean fieldValue = tableField.exist(); |
| | | if(fieldValue == false){ |
| | | existField += declaredField.getName().toLowerCase()+","; |
| | | } |
| | | } |
| | | } |
| | | |
| | | for (int i = 0, n = propertyDescriptors.length; i <n ; i++) { |
| | | PropertyDescriptor descriptor = propertyDescriptors[i]; |
| | | String propertyName = descriptor.getName(); |
| | | |
| | | if (!propertyName.equals("class") && |
| | | ((!"".equals(existField) && !existField.contains(propertyName.toLowerCase()+","))||"data".equals(propertyName))) { |
| | | Method readMethod = descriptor.getReadMethod(); |
| | | Object result = readMethod.invoke(bean, new Object[0]); |
| | | |
| | | if (result != null) { |
| | | if ("data".equals(propertyName)){ |
| | | returnMap.putAll((Map) result); |
| | | }else { |
| | | returnMap.put(propertyName, result); |
| | | } |
| | | } else { |
| | | returnMap.put(propertyName, ""); |
| | | } |
| | | } |
| | | } |
| | | return returnMap; |
| | | } |
| | | |
| | | public static <T> List<T> mapToBean(List<Map> maps, Class<T> tClass) { |
| | | List<T> beanList = new ArrayList<>(); |
| | | try { |
| | | for (Map map : maps) { |
| | | T t = tClass.newInstance(); |
| | | BeanInfo beanInfo = Introspector.getBeanInfo(tClass); |
| | | PropertyDescriptor[] propertyDescriptors = beanInfo.getPropertyDescriptors(); |
| | | |
| | | for (PropertyDescriptor property : propertyDescriptors) { |
| | | |
| | | String key = property.getName(); |
| | | if ("class".equals(key)) { |
| | | continue; |
| | | } |
| | | |
| | | // String sqlField = camelToUnderscore(key); |
| | | |
| | | |
| | | if (map.containsKey(key.toUpperCase())) { |
| | | try { |
| | | Object value = map.get(key.toUpperCase()); |
| | | // å¾å°property对åºçsetteræ¹æ³ |
| | | Method setter = property.getWriteMethod(); |
| | | Class<?> type = property.getPropertyType(); |
| | | // å¼ºè½¬ä¸ºåæ®µçç±»åï¼ä¸éè¦æ¶å¯ä»¥å»é¤ï¼ä¾èµcommons-beanutilss-beanutils |
| | | //Object convert = ConvertUtils.convert(String.valueOf(value), type); |
| | | //setter.invoke(t, convert); |
| | | setter.invoke(t, value); |
| | | } catch (Exception e) { |
| | | throw new RuntimeException("ãèµå¼å¼å¸¸ã", e); |
| | | } |
| | | } |
| | | |
| | | } |
| | | beanList.add(t); |
| | | } |
| | | } catch (Exception e) { |
| | | throw new RuntimeException("ãMap转æ¢å®ä½å¼å¸¸ã", e); |
| | | } |
| | | return beanList; |
| | | } |
| | | |
| | | public static String camelToUnderscore(String name) { |
| | | if (name == null && name.length() <= 0) { |
| | | return name; |
| | | } |
| | | StringBuilder sb = new StringBuilder(); |
| | | String lowerName = name.toLowerCase(); |
| | | for (int i = 0; i < lowerName.length(); i++) { |
| | | String nameChar = name.substring(i, i + 1); |
| | | String lowerChar = lowerName.substring(i, i + 1); |
| | | if (!nameChar.equals(lowerChar)) { |
| | | sb.append("_").append(lowerChar); |
| | | } else { |
| | | sb.append(nameChar); |
| | | } |
| | | } |
| | | |
| | | return sb.toString(); |
| | | } |
| | | |
| | | } |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <project xmlns="http://maven.apache.org/POM/4.0.0" |
| | | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| | | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| | | <parent> |
| | | <artifactId>ubcs-service-api</artifactId> |
| | | <groupId>com.vci.ubcs</groupId> |
| | | <version>3.0.1.RELEASE</version> |
| | | </parent> |
| | | <modelVersion>4.0.0</modelVersion> |
| | | |
| | | <artifactId>ubcs-webservice-api</artifactId> |
| | | <name>${project.artifactId}</name> |
| | | <version>3.0.1.RELEASE</version> |
| | | <packaging>jar</packaging> |
| | | |
| | | <dependencies> |
| | | <dependency> |
| | | <groupId>com.vci.ubcs</groupId> |
| | | <artifactId>ubcs-util-api</artifactId> |
| | | <version>3.0.1.RELEASE</version> |
| | | </dependency> |
| | | <dependency> |
| | | <groupId>com.vci.ubcs</groupId> |
| | | <artifactId>ubcs-code-api</artifactId> |
| | | <version>3.0.1.RELEASE</version> |
| | | </dependency> |
| | | <dependency> |
| | | <groupId>com.vci.ubcs</groupId> |
| | | <artifactId>ubcs-util-api</artifactId> |
| | | <version>3.0.1.RELEASE</version> |
| | | <scope>compile</scope> |
| | | </dependency> |
| | | <dependency> |
| | | <groupId>com.thoughtworks.xstream</groupId> |
| | | <artifactId>xstream</artifactId> |
| | | </dependency> |
| | | </dependencies> |
| | | |
| | | </project> |
ÎļþÃû´Ó Source/UBCS/ubcs-service-api/ubcs-code-api/src/main/java/com/vci/ubcs/code/dto/DockingPreApplyFormDTO.java ÐÞ¸Ä |
| | |
| | | package com.vci.ubcs.code.dto; |
| | | package com.vci.ubcs.code.webservice.dto; |
| | | |
| | | import com.vci.ubcs.code.vo.pagemodel.BaseModelVO; |
| | | |
| | | import com.vci.ubcs.code.webservice.vo.BaseModelVO; |
| | | |
| | | /** |
| | | * è®°å½éæå±æ°æ®ç³è¯·id |
| | |
| | | /*** |
| | | * éå¢ç¼ç |
| | | */ |
| | | private String groupCode; |
| | | /*** |
| | | * é误æ è¯ç |
| | | */ |
| | | |
| | | private String code; |
| | | |
| | | /*** |
| | |
| | | * æ¶æ¯ |
| | | */ |
| | | private String msg; |
| | | |
| | | /** |
| | | * ç³è¯·åç±»å1:ç³è¯·ï¼2ï¼æ´æ¹ |
| | | */ |
| | | private String operationType; |
| | | |
| | | public String getCode() { |
| | | return code; |
| | |
| | | this.msg = msg; |
| | | } |
| | | |
| | | public String getOperationType() { |
| | | return operationType; |
| | | } |
| | | |
| | | public void setOperationType(String operationType) { |
| | | this.operationType = operationType; |
| | | } |
| | | |
| | | public String getGroupCode() { |
| | | return groupCode; |
| | | } |
| | | |
| | | public void setGroupCode(String groupCode) { |
| | | this.groupCode = groupCode; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "DockingPreApplyCodeFormVO{" + |
| | | "code='" + code + '\'' + |
| | | return "DockingPreApplyFormDTO{" + |
| | | "groupCode='" + groupCode + '\'' + |
| | | ", code='" + code + '\'' + |
| | | ", content='" + content + '\'' + |
| | | ", dataOid='" + dataOid + '\'' + |
| | | ", dataBtmName='" + dataBtmName + '\'' + |
| | | ", msg='" + msg + '\'' + |
| | | ", operationType='" + operationType + '\'' + |
| | | '}'; |
| | | } |
| | | } |
ÎļþÃû´Ó Source/UBCS/ubcs-service-api/ubcs-code-api/src/main/java/com/vci/ubcs/code/dto/DockingPreAttrMappingDTO.java ÐÞ¸Ä |
| | |
| | | package com.vci.ubcs.code.dto; |
| | | package com.vci.ubcs.code.webservice.dto; |
| | | |
| | | |
| | | import com.vci.ubcs.code.vo.pagemodel.BaseModelVO; |
| | | import com.vci.ubcs.code.vo.pagemodel.DockingPreAttrRangeVO; |
| | | import com.vci.ubcs.code.webservice.vo.BaseModelVO; |
| | | import com.vci.ubcs.code.webservice.vo.DockingPreAttrRangeVO; |
| | | |
| | | import java.util.List; |
| | | |
ÎļþÃû´Ó Source/UBCS/ubcs-service-api/ubcs-code-api/src/main/java/com/vci/ubcs/code/dto/DockingPreAttrRangeDTO.java ÐÞ¸Ä |
| | |
| | | package com.vci.ubcs.code.dto; |
| | | package com.vci.ubcs.code.webservice.dto; |
| | | |
| | | import com.vci.ubcs.code.vo.pagemodel.BaseModelVO; |
| | | import com.vci.ubcs.code.webservice.vo.BaseModelVO; |
| | | |
| | | /** |
| | | * è®°å½éæå±æ§åå¼èå´é
ç½® |
ÎļþÃû´Ó Source/UBCS/ubcs-service-api/ubcs-code-api/src/main/java/com/vci/ubcs/code/dto/DockingPreClassifyDTO.java ÐÞ¸Ä |
| | |
| | | package com.vci.ubcs.code.dto; |
| | | package com.vci.ubcs.code.webservice.dto; |
| | | |
| | | import com.vci.ubcs.code.vo.pagemodel.BaseModelVO; |
| | | import com.vci.ubcs.code.webservice.vo.BaseModelVO; |
| | | |
| | | import java.util.List; |
| | | |
| | | /*** |
| | | * è®°å½éå¢åç±»ä¿¡æ¯ |
| | |
| | | * ç¶çº§èç¹ |
| | | */ |
| | | private String pid; |
| | | /** |
| | | * éå¢åç±»å
å«ç模åè§å¾ |
| | | */ |
| | | List<DockingPreViewModelDTO> dockingPreViewModelDTOList; |
| | | |
| | | public String getClassName() { |
| | | return className; |
| | |
| | | this.pid = pid; |
| | | } |
| | | |
| | | public List<DockingPreViewModelDTO> getDockingPreViewModelDTOList() { |
| | | return dockingPreViewModelDTOList; |
| | | } |
| | | |
| | | public void setDockingPreViewModelDTOList(List<DockingPreViewModelDTO> dockingPreViewModelDTOList) { |
| | | this.dockingPreViewModelDTOList = dockingPreViewModelDTOList; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "DockingPreClassifyDTO{" + |
| | |
| | | ", nodeLink='" + nodeLink + '\'' + |
| | | ", getNodeLinkName='" + getNodeLinkName + '\'' + |
| | | ", pid='" + pid + '\'' + |
| | | ", dockingPreViewModelDTOList=" + dockingPreViewModelDTOList + |
| | | '}'; |
| | | } |
| | | } |
ÎļþÃû´Ó Source/UBCS/ubcs-service-api/ubcs-code-api/src/main/java/com/vci/ubcs/code/dto/DockingPreMetaAttrDTO.java ÐÞ¸Ä |
| | |
| | | package com.vci.ubcs.code.dto; |
| | | package com.vci.ubcs.code.webservice.dto; |
| | | |
| | | import com.vci.ubcs.code.vo.pagemodel.BaseModelVO; |
| | | |
| | | import com.vci.ubcs.code.webservice.vo.BaseModelVO; |
| | | public class DockingPreMetaAttrDTO extends BaseModelVO { |
| | | |
| | | /** |
ÎļþÃû´Ó Source/UBCS/ubcs-service-api/ubcs-code-api/src/main/java/com/vci/ubcs/code/dto/DockingPreViewModelDTO.java ÐÞ¸Ä |
| | |
| | | package com.vci.ubcs.code.dto; |
| | | package com.vci.ubcs.code.webservice.dto; |
| | | |
| | | import com.vci.ubcs.code.vo.pagemodel.BaseModelVO; |
| | | import com.vci.ubcs.code.webservice.vo.BaseModelVO; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * è®°å½éæéå¢åç±»è§å¾ä¿¡æ¯ |
| | |
| | | * æ°æ®xinx |
| | | */ |
| | | private String impactList; |
| | | |
| | | /*** |
| | | * 模åè§å¾å
å«ç屿§ |
| | | */ |
| | | private List<DockingPreMetaAttrDTO> dockingPreMetaAttrDTOList; |
| | | |
| | | public String getViewName() { |
| | | return viewName; |
| | |
| | | this.impactList = impactList; |
| | | } |
| | | |
| | | public List<DockingPreMetaAttrDTO> getDockingPreMetaAttrDTOList() { |
| | | return dockingPreMetaAttrDTOList; |
| | | } |
| | | |
| | | public void setDockingPreMetaAttrDTOList(List<DockingPreMetaAttrDTO> dockingPreMetaAttrDTOList) { |
| | | this.dockingPreMetaAttrDTOList = dockingPreMetaAttrDTOList; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "DockingPreViewModelVO{" + |
| | | return "DockingPreViewModelDTO{" + |
| | | "viewName='" + viewName + '\'' + |
| | | ", sourceClassifyId='" + sourceClassifyId + '\'' + |
| | | ", impactList='" + impactList + '\'' + |
| | | ", dockingPreMetaAttrDTOList=" + dockingPreMetaAttrDTOList + |
| | | '}'; |
| | | } |
| | | } |
ÎļþÃû´Ó Source/UBCS/ubcs-service-api/ubcs-code-api/src/main/java/com/vci/ubcs/code/entity/DockingPreApplyForm.java ÐÞ¸Ä |
| | |
| | | package com.vci.ubcs.code.entity; |
| | | package com.vci.ubcs.code.webservice.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.vci.ubcs.starter.revision.model.BaseModel; |
| | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | |
| | | /** |
| | | * éå¢ç¼ç ç³è¯·åè®°å½å¯¹è±¡ |
| | | * @author xiejun |
| | | * @date 2023-05-22 |
| | | */ |
| | | @Data |
| | | @TableName("PL_CODE_JINTEGMAPCONFIG") |
| | | @TableName("PL_CODE_JAPPLYCODEFORM") |
| | | @ApiModel(value = "DockingPreApplyForm", description = "éå¢ç¼ç ç³è¯·åè®°å½å¯¹è±¡") |
| | | @EqualsAndHashCode |
| | | public class DockingPreApplyForm extends BaseModel { |
| | | |
| | | /*** |
| | | * éå¢ç¼ç |
| | | */ |
| | | @ApiModelProperty(value = "éå¢ç¼ç ") |
| | | private String groupCode; |
| | | /*** |
| | | * é误æ è¯ç |
| | | */ |
| | | @ApiModelProperty(value = "é误æ è¯ç ") |
| | | private String code; |
| | | |
| | | /*** |
| | |
| | | */ |
| | | @ApiModelProperty(value = "æ¶æ¯") |
| | | private String msg; |
| | | /** |
| | | * ç³è¯·åç±»å1:ç³è¯·ï¼2ï¼æ´æ¹ |
| | | */ |
| | | @ApiModelProperty(value = "æ¶æ¯") |
| | | private String operationType; |
| | | } |
ÎļþÃû´Ó Source/UBCS/ubcs-service-api/ubcs-code-api/src/main/java/com/vci/ubcs/code/entity/DockingPreAttrMapping.java ÐÞ¸Ä |
| | |
| | | package com.vci.ubcs.code.entity; |
| | | package com.vci.ubcs.code.webservice.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * è®°å½éæå±æ§ä¸ä¸»æ°æ®å±æ§æ å°å
³ç³»å¯¹è±¡ |
ÎļþÃû´Ó Source/UBCS/ubcs-service-api/ubcs-code-api/src/main/java/com/vci/ubcs/code/entity/DockingPreAttrRange.java ÐÞ¸Ä |
| | |
| | | package com.vci.ubcs.code.entity; |
| | | package com.vci.ubcs.code.webservice.entity; |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
ÎļþÃû´Ó Source/UBCS/ubcs-service-api/ubcs-code-api/src/main/java/com/vci/ubcs/code/entity/DockingPreClassify.java ÐÞ¸Ä |
| | |
| | | package com.vci.ubcs.code.entity; |
| | | package com.vci.ubcs.code.webservice.entity; |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | |
| | | /** |
| | | * è®°å½éæéå¢åç±»ä¿¡æ¯ |
| | | * @author xiejun |
| | | * @date 2023-05-22 |
| | | */ |
| | | @Data |
| | | @TableName("PL_CODE_CLASSIFY") |
| | | @TableName("PL_CODE_JCLASSIFY") |
| | | @ApiModel(value = "DockingPreClassify", description = "éæéå¢å类信æ¯") |
| | | @EqualsAndHashCode |
| | | public class DockingPreClassify extends BaseModel { |
ÎļþÃû´Ó Source/UBCS/ubcs-service-api/ubcs-code-api/src/main/java/com/vci/ubcs/code/entity/DockingPreMetaAttr.java ÐÞ¸Ä |
| | |
| | | package com.vci.ubcs.code.entity; |
| | | package com.vci.ubcs.code.webservice.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | |
| | | import lombok.EqualsAndHashCode; |
| | | |
| | | @Data |
| | | @TableName("PL_CODE_JVIEWMODE") |
| | | @TableName("PL_CODE_JMETAATTR") |
| | | @ApiModel(value = "DockingPreViewModel", description = "éå¢å类模åè§å¾ä¿¡æ¯") |
| | | @EqualsAndHashCode |
| | | public class DockingPreMetaAttr extends BaseModel { |
| | |
| | | * è§å¾æ¨¡åid |
| | | */ |
| | | @ApiModelProperty(value = "è§å¾æ¨¡å主é®") |
| | | @TableField(value = "viewModeId") |
| | | private String viewModelId; |
| | | /*** |
| | | * é»è®¤å¼ |
ÎļþÃû´Ó Source/UBCS/ubcs-service-api/ubcs-code-api/src/main/java/com/vci/ubcs/code/entity/DockingPreViewModel.java ÐÞ¸Ä |
| | |
| | | package com.vci.ubcs.code.entity; |
| | | package com.vci.ubcs.code.webservice.entity; |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.webservice.feign; |
| | | |
| | | |
| | | import com.vci.ubcs.code.webservice.vo.DockingClassifyModelAttrVO; |
| | | import com.vci.ubcs.code.webservice.vo.DockingResultVO; |
| | | import com.vci.ubcs.code.webservice.vo.DockingReturnStoreVO; |
| | | import com.vci.ubcs.starter.exception.VciBaseException; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | |
| | | import javax.validation.constraints.NotNull; |
| | | |
| | | |
| | | /**** |
| | | * éå¢ç ç³è¯·æä¾ç»å¤é¨è°ç¨æ¥å£ |
| | | * @author xiejun |
| | | * @date 2023-05-26 |
| | | */ |
| | | @FeignClient( |
| | | value = "ubcs-code" |
| | | ) |
| | | public interface IMdmInterJtClient { |
| | | |
| | | String API_PREFIX = "/mdmInterService"; |
| | | String RETURNGROUPCODE = API_PREFIX + "/getApplyGroupCode"; |
| | | |
| | | String PUBMDMMODEL = API_PREFIX + "/pubMdmModel"; |
| | | |
| | | |
| | | |
| | | /*** |
| | | * å°éå¢ç³è¯·æåçç¼ç åå
¥ç¸å
³æ°æ®ä¹ä¸ |
| | | * @param dockingResultVO |
| | | * @return è¿åå卿¯å¦æåä¿¡æ¯ |
| | | */ |
| | | @GetMapping(RETURNGROUPCODE) |
| | | public R getApplyGroupCode( @RequestParam("dockingResultVO") DockingReturnStoreVO dockingResultVO); |
| | | |
| | | /*** |
| | | * ä¸»æ°æ®æ¨¡åè§å¾åå¸ |
| | | * @param dockingClassifyModelAttrVO |
| | | * @return |
| | | */ |
| | | @PostMapping(PUBMDMMODEL) |
| | | R pubMdmModel(@RequestParam("dockingClassifyModelAttrVO") DockingClassifyModelAttrVO dockingClassifyModelAttrVO); |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.webservice.feign; |
| | | |
| | | /*** |
| | | * @author xiejun |
| | | * @date 2023-05-26 |
| | | */ |
| | | |
| | | import com.vci.ubcs.code.webservice.vo.*; |
| | | import com.vci.ubcs.starter.exception.VciBaseException; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | |
| | | import javax.validation.constraints.NotNull; |
| | | |
| | | /**** |
| | | * éå¢ç ç³è¯·æä¾ç»å¤é¨è°ç¨æ¥å£ |
| | | * @author xiejun |
| | | * @date 2023-05-26 |
| | | */ |
| | | @FeignClient(name = "qmsIntegration", |
| | | url = "${docking.apply.jtInterUrl:http://116.205.176.185:8099}", |
| | | path = "") |
| | | public interface MdmApplyGroupCodeProvider { |
| | | |
| | | /** |
| | | * mdmåéå¢ç³è¯·éå¢ç æ¥å£ |
| | | * @param dockingGroupDataVO AO/TOçä¿¡æ¯ |
| | | * @return æ§è¡ç»æ |
| | | */ |
| | | @PostMapping("/externalMainData/receiveAddApply") |
| | | DockingResultVO receiveAddApply(@NotNull @RequestBody DockingGroupDataVO dockingGroupDataVO)throws VciBaseException; |
| | | /** |
| | | * mdmåé墿´æ°éå¢ç æ¥å£ |
| | | * @param dockingGroupDataVO AO/TOçä¿¡æ¯ |
| | | * @return æ§è¡ç»æ |
| | | */ |
| | | |
| | | @PostMapping("/externalMainData/receiveAddApply") |
| | | DockingResultVO receiveEditApply(@NotNull @RequestBody DockingGroupDataVO dockingGroupDataVO)throws VciBaseException; |
| | | |
| | | /*** |
| | | * æ¥è¯¢ä¸»å类模å |
| | | * @param dockingModelQueryVO |
| | | * @return æ§è¡ç»æ |
| | | */ |
| | | @PostMapping("/externalMainData/queryMdmModel") |
| | | DockingQueryModelVO queryMdmModel(@NotNull @RequestBody DockingModelQueryVO dockingModelQueryVO); |
| | | |
| | | /*** |
| | | * æ¥è¯¢åç±»è¯¦ç»æ¨¡åè§å¾ |
| | | * @param dockingModelQueryVO |
| | | * @return æ§è¡ç»æ |
| | | */ |
| | | @PostMapping("/externalMainData/queryClassModel") |
| | | DockingQueryClassModelVO queryClassModel(@NotNull @RequestBody DockingModelQueryVO dockingModelQueryVO); |
| | | /*** |
| | | * æ¥è¯¢ç³è¯·åç¶æ |
| | | * @param dockingModelQueryVO |
| | | * @return æ§è¡ç»æ |
| | | */ |
| | | @PostMapping("/externalMainData/queryApplyState") |
| | | DockingApplyFormStatusVO queryApplyState(@NotNull @RequestBody DockingModelQueryVO dockingModelQueryVO); |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | // |
| | | // Source code recreated from a .class file by IntelliJ IDEA |
| | | // (powered by FernFlower decompiler) |
| | | // |
| | | package com.vci.ubcs.code.webservice.vo; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.springframework.data.annotation.Transient; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | import java.util.Map; |
| | | |
| | | public class BaseModelVO implements Serializable { |
| | | private String oid; |
| | | private String id; |
| | | private String name; |
| | | private String description; |
| | | private String revisionOid; |
| | | private String nameOid; |
| | | private String btmname; |
| | | private String lastR; |
| | | private String firstR; |
| | | private String lastV; |
| | | private String firstV; |
| | | private String creator; |
| | | private Date createTime; |
| | | private String lastModifier; |
| | | private Date lastModifyTime; |
| | | private String revisionRule; |
| | | private Integer revisionSeq; |
| | | private String revisionValue; |
| | | private String versionRule; |
| | | private Integer versionSeq; |
| | | private String versionValue; |
| | | private String lcStatus; |
| | | private String lcStatusText; |
| | | @JsonFormat( |
| | | pattern = "yyyy-MM-dd HH:mm:ss.SSS" |
| | | ) |
| | | private Date ts; |
| | | private String owner; |
| | | // private String checkInBy; |
| | | // private Date checkInTime; |
| | | // private String checkOutBy; |
| | | // private Date checkOutTime; |
| | | private String copyFromVersion; |
| | | private Integer secretGrade; |
| | | private String secretGradeText; |
| | | private String lctid; |
| | | @Transient |
| | | private Map<String, String> data; |
| | | |
| | | public BaseModelVO() { |
| | | } |
| | | |
| | | public String getOid() { |
| | | return this.oid; |
| | | } |
| | | |
| | | public void setOid(String oid) { |
| | | this.oid = oid; |
| | | } |
| | | |
| | | public String getId() { |
| | | return this.id; |
| | | } |
| | | |
| | | public void setId(String id) { |
| | | this.id = id; |
| | | } |
| | | |
| | | public String getName() { |
| | | return this.name; |
| | | } |
| | | |
| | | public void setName(String name) { |
| | | this.name = name; |
| | | } |
| | | |
| | | public String getDescription() { |
| | | return this.description; |
| | | } |
| | | |
| | | public void setDescription(String description) { |
| | | this.description = description; |
| | | } |
| | | |
| | | public String getRevisionOid() { |
| | | return this.revisionOid; |
| | | } |
| | | |
| | | public void setRevisionOid(String revisionOid) { |
| | | this.revisionOid = revisionOid; |
| | | } |
| | | |
| | | public String getNameOid() { |
| | | return this.nameOid; |
| | | } |
| | | |
| | | public void setNameOid(String nameOid) { |
| | | this.nameOid = nameOid; |
| | | } |
| | | |
| | | public String getBtmname() { |
| | | return this.btmname; |
| | | } |
| | | |
| | | public void setBtmname(String btmname) { |
| | | this.btmname = btmname; |
| | | } |
| | | |
| | | public String getLastR() { |
| | | return this.lastR; |
| | | } |
| | | |
| | | public void setLastR(String lastR) { |
| | | this.lastR = lastR; |
| | | } |
| | | |
| | | public String getFirstR() { |
| | | return this.firstR; |
| | | } |
| | | |
| | | public void setFirstR(String firstR) { |
| | | this.firstR = firstR; |
| | | } |
| | | |
| | | public String getLastV() { |
| | | return this.lastV; |
| | | } |
| | | |
| | | public void setLastV(String lastV) { |
| | | this.lastV = lastV; |
| | | } |
| | | |
| | | public String getFirstV() { |
| | | return this.firstV; |
| | | } |
| | | |
| | | public void setFirstV(String firstV) { |
| | | this.firstV = firstV; |
| | | } |
| | | |
| | | public String getCreator() { |
| | | return this.creator; |
| | | } |
| | | |
| | | public void setCreator(String creator) { |
| | | this.creator = creator; |
| | | } |
| | | |
| | | public String getLastModifier() { |
| | | return this.lastModifier; |
| | | } |
| | | |
| | | public void setLastModifier(String lastModifier) { |
| | | this.lastModifier = lastModifier; |
| | | } |
| | | |
| | | public Date getLastModifyTime() { |
| | | return this.lastModifyTime; |
| | | } |
| | | |
| | | public void setLastModifyTime(Date lastModifyTime) { |
| | | this.lastModifyTime = lastModifyTime; |
| | | } |
| | | |
| | | public String getRevisionRule() { |
| | | return this.revisionRule; |
| | | } |
| | | |
| | | public void setRevisionRule(String revisionRule) { |
| | | this.revisionRule = revisionRule; |
| | | } |
| | | |
| | | public String getVersionRule() { |
| | | return this.versionRule; |
| | | } |
| | | |
| | | public void setVersionRule(String versionRule) { |
| | | this.versionRule = versionRule; |
| | | } |
| | | |
| | | public Integer getRevisionSeq() { |
| | | return this.revisionSeq; |
| | | } |
| | | |
| | | public void setRevisionSeq(Integer revisionSeq) { |
| | | this.revisionSeq = revisionSeq; |
| | | } |
| | | |
| | | public String getRevisionValue() { |
| | | return this.revisionValue; |
| | | } |
| | | |
| | | public void setRevisionValue(String revisionValue) { |
| | | this.revisionValue = revisionValue; |
| | | } |
| | | |
| | | public Integer getVersionSeq() { |
| | | return this.versionSeq; |
| | | } |
| | | |
| | | public void setVersionSeq(Integer versionSeq) { |
| | | this.versionSeq = versionSeq; |
| | | } |
| | | |
| | | public String getVersionValue() { |
| | | return this.versionValue; |
| | | } |
| | | |
| | | public void setVersionValue(String versionValue) { |
| | | this.versionValue = versionValue; |
| | | } |
| | | |
| | | public String getLcStatus() { |
| | | return this.lcStatus; |
| | | } |
| | | |
| | | public void setLcStatus(String lcStatus) { |
| | | this.lcStatus = lcStatus; |
| | | } |
| | | |
| | | public Date getTs() { |
| | | return this.ts; |
| | | } |
| | | |
| | | public void setTs(Date ts) { |
| | | this.ts = ts; |
| | | } |
| | | |
| | | public String getOwner() { |
| | | return this.owner; |
| | | } |
| | | |
| | | public void setOwner(String owner) { |
| | | this.owner = owner; |
| | | } |
| | | |
| | | /*public String getCheckInBy() { |
| | | return this.checkInBy; |
| | | } |
| | | |
| | | public void setCheckInBy(String checkInBy) { |
| | | this.checkInBy = checkInBy; |
| | | } |
| | | |
| | | public Date getCheckInTime() { |
| | | return this.checkInTime; |
| | | } |
| | | |
| | | public void setCheckInTime(Date checkInTime) { |
| | | this.checkInTime = checkInTime; |
| | | } |
| | | |
| | | public String getCheckOutBy() { |
| | | return this.checkOutBy; |
| | | } |
| | | |
| | | public void setCheckOutBy(String checkOutBy) { |
| | | this.checkOutBy = checkOutBy; |
| | | } |
| | | |
| | | public Date getCheckOutTime() { |
| | | return this.checkOutTime; |
| | | } |
| | | |
| | | public void setCheckOutTime(Date checkOutTime) { |
| | | this.checkOutTime = checkOutTime; |
| | | }*/ |
| | | |
| | | public String getCopyFromVersion() { |
| | | return this.copyFromVersion; |
| | | } |
| | | |
| | | public void setCopyFromVersion(String copyFromVersion) { |
| | | this.copyFromVersion = copyFromVersion; |
| | | } |
| | | |
| | | public String getLcStatusText() { |
| | | return this.lcStatusText; |
| | | } |
| | | |
| | | public void setLcStatusText(String lcStatusText) { |
| | | this.lcStatusText = lcStatusText; |
| | | } |
| | | |
| | | public Date getCreateTime() { |
| | | return this.createTime; |
| | | } |
| | | |
| | | public void setCreateTime(Date createTime) { |
| | | this.createTime = createTime; |
| | | } |
| | | |
| | | public Integer getSecretGrade() { |
| | | return this.secretGrade; |
| | | } |
| | | |
| | | public void setSecretGrade(Integer secretGrade) { |
| | | this.secretGrade = secretGrade; |
| | | } |
| | | |
| | | public String getSecretGradeText() { |
| | | return this.secretGradeText; |
| | | } |
| | | |
| | | public void setSecretGradeText(String secretGradeText) { |
| | | this.secretGradeText = secretGradeText; |
| | | } |
| | | |
| | | public String getLctid() { |
| | | return this.lctid; |
| | | } |
| | | |
| | | public void setLctid(String lctid) { |
| | | this.lctid = lctid; |
| | | } |
| | | |
| | | public Map<String, String> getData() { |
| | | return this.data; |
| | | } |
| | | |
| | | public void setData(Map<String, String> data) { |
| | | this.data = data; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "BaseModelVO{oid='" + this.oid + '\'' + ", id='" + this.id + '\'' + ", name='" + this.name + '\'' + ", description='" + this.description + '\'' + ", revisionOid='" + this.revisionOid + '\'' + ", nameOid='" + this.nameOid + '\'' + ", btmname='" + this.btmname + '\'' + ", lastR='" + this.lastR + '\'' + ", firstR='" + this.firstR + '\'' + ", lastV='" + this.lastV + '\'' + ", firstV='" + this.firstV + '\'' + ", creator='" + this.creator + '\'' + ", createTime=" + this.createTime + ", lastModifier='" + this.lastModifier + '\'' + ", lastModifyTime=" + this.lastModifyTime + ", revisionRule='" + this.revisionRule + '\'' + ", revisionSeq=" + this.revisionSeq + ", revisionValue='" + this.revisionValue + '\'' + ", versionRule='" + this.versionRule + '\'' + ", versionSeq=" + this.versionSeq + ", versionValue='" + this.versionValue + '\'' + ", lcStatus='" + this.lcStatus + '\'' + ", lcStatusText='" + this.lcStatusText + '\'' + ", ts=" + this.ts + ", owner='" + this.owner + '\'' + ", checkInBy='" + ", copyFromVersion='" + this.copyFromVersion + '\'' + ", secretGrade=" + this.secretGrade + ", secretGradeText='" + this.secretGradeText + '\'' + ", lctid='" + this.lctid + '\'' + ", data=" + this.data + '}'; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.webservice.vo; |
| | | |
| | | /*** |
| | | * ç³è¯·åç¶æå¯¹è±¡ |
| | | * @author xiejun |
| | | * @date 2023-05-29 |
| | | */ |
| | | public class DockingApplyFormStatusVO { |
| | | |
| | | /*** |
| | | * ç³è¯·åå· |
| | | */ |
| | | private String applyNum; |
| | | /*** |
| | | * ç³è¯·åç¶æ |
| | | */ |
| | | private String formState; |
| | | /** |
| | | * å®¡æ ¸æè§ |
| | | */ |
| | | private String examineOpinion; |
| | | |
| | | public String getApplyNum() { |
| | | return applyNum; |
| | | } |
| | | |
| | | public void setApplyNum(String applyNum) { |
| | | this.applyNum = applyNum; |
| | | } |
| | | |
| | | public String getFormState() { |
| | | return formState; |
| | | } |
| | | |
| | | public void setFormState(String formState) { |
| | | this.formState = formState; |
| | | } |
| | | |
| | | public String getExamineOpinion() { |
| | | return examineOpinion; |
| | | } |
| | | |
| | | public void setExamineOpinion(String examineOpinion) { |
| | | this.examineOpinion = examineOpinion; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "DockingApplyFormStatusVO{" + |
| | | "applyNum='" + applyNum + '\'' + |
| | | ", formState='" + formState + '\'' + |
| | | ", examineOpinion='" + examineOpinion + '\'' + |
| | | '}'; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.webservice.vo; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /*** |
| | | * å类信æ¯ï¼åå
¶æ¨¡åè§å¾å¯¹è±¡ |
| | | * @author xiejun |
| | | * @date 2023-05-26 |
| | | */ |
| | | public class DockingClassifyMainVO { |
| | | |
| | | /** |
| | | * åç±»å¯¹è±¡çæ¨¡åè§å¾ |
| | | */ |
| | | private Map<String,List<DockingClassifyViewVO>>classInfos; |
| | | /*** |
| | | * åç±»éå |
| | | */ |
| | | private List<DockingClassifyVO> classList; |
| | | |
| | | public Map<String, List<DockingClassifyViewVO>> getClassInfos() { |
| | | return classInfos; |
| | | } |
| | | public void setClassInfos(Map<String, List<DockingClassifyViewVO>> classInfos) { |
| | | this.classInfos = classInfos; |
| | | } |
| | | public List<DockingClassifyVO> getClassList() { |
| | | return classList; |
| | | } |
| | | public void setClassList(List<DockingClassifyVO> classList) { |
| | | this.classList = classList; |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.webservice.vo; |
| | | |
| | | import java.util.Map; |
| | | |
| | | /*** |
| | | * éå¢åç±»å±æ§ä¿¡æ¯ |
| | | * @author xiejun |
| | | * @date 2023-05-26 |
| | | */ |
| | | public class DockingClassifyMetaAttrVO { |
| | | |
| | | /*** |
| | | * 䏿åç§° |
| | | */ |
| | | private String chineseName; |
| | | /*** |
| | | * è±æåç§° |
| | | */ |
| | | private String englishName; |
| | | /*** |
| | | * ç±»å |
| | | */ |
| | | private Integer metadataType; |
| | | /*** |
| | | * æ¯å¦å¿
å¡« |
| | | */ |
| | | private Integer necessaryConf; |
| | | /** |
| | | * é»è®¤å¼ |
| | | */ |
| | | private String defaultValue; |
| | | /*** |
| | | * ä¸å±å¯¹è±¡ |
| | | */ |
| | | private DockingClassifyMetaAttrVO compositeMeta; |
| | | |
| | | /** |
| | | * å¼å |
| | | */ |
| | | private Map<String,String> range; |
| | | |
| | | |
| | | public String getChineseName() { |
| | | return chineseName; |
| | | } |
| | | |
| | | |
| | | public void setChineseName(String chineseName) { |
| | | this.chineseName = chineseName; |
| | | } |
| | | |
| | | |
| | | public String getEnglishName() { |
| | | return englishName; |
| | | } |
| | | |
| | | |
| | | public void setEnglishName(String englishName) { |
| | | this.englishName = englishName; |
| | | } |
| | | |
| | | |
| | | public Integer getMetadataType() { |
| | | return metadataType; |
| | | } |
| | | |
| | | |
| | | public void setMetadataType(Integer metadataType) { |
| | | this.metadataType = metadataType; |
| | | } |
| | | |
| | | |
| | | public Integer getNecessaryConf() { |
| | | return necessaryConf; |
| | | } |
| | | |
| | | |
| | | public void setNecessaryConf(Integer necessaryConf) { |
| | | this.necessaryConf = necessaryConf; |
| | | } |
| | | |
| | | |
| | | public String getDefaultValue() { |
| | | return defaultValue; |
| | | } |
| | | |
| | | |
| | | public void setDefaultValue(String defaultValue) { |
| | | this.defaultValue = defaultValue; |
| | | } |
| | | |
| | | |
| | | public Map<String, String> getRange() { |
| | | return range; |
| | | } |
| | | |
| | | |
| | | public void setRange(Map<String, String> range) { |
| | | this.range = range; |
| | | } |
| | | |
| | | |
| | | public DockingClassifyMetaAttrVO getCompositeMeta() { |
| | | return compositeMeta; |
| | | } |
| | | |
| | | |
| | | public void setCompositeMeta(DockingClassifyMetaAttrVO compositeMeta) { |
| | | this.compositeMeta = compositeMeta; |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.webservice.vo; |
| | | |
| | | /*** |
| | | * æ¥å£ä¼ é对象 |
| | | * @author xiejun |
| | | * @date 2023-05-26 |
| | | */ |
| | | public class DockingClassifyModelAttrVO { |
| | | /*** |
| | | * ç³»ç»æ è¯ |
| | | */ |
| | | private String sysName; |
| | | /*** |
| | | * æ°æ®é |
| | | */ |
| | | private DockingClassifyMainVO mainData; |
| | | private String applyEntId; |
| | | /*** |
| | | * æ°æ®é |
| | | */ |
| | | private DockingClassifyMainVO dataStructure; |
| | | |
| | | public String getSysName() { |
| | | return sysName; |
| | | } |
| | | public void setSysName(String sysName) { |
| | | this.sysName = sysName; |
| | | } |
| | | public String getApplyEntId() { |
| | | return applyEntId; |
| | | } |
| | | public void setApplyEntId(String applyEntId) { |
| | | this.applyEntId = applyEntId; |
| | | } |
| | | public DockingClassifyMainVO getDataStructure() { |
| | | return dataStructure; |
| | | } |
| | | public void setDataStructure(DockingClassifyMainVO dataStructure) { |
| | | this.dataStructure = dataStructure; |
| | | } |
| | | public DockingClassifyMainVO getMainData() { |
| | | return mainData; |
| | | } |
| | | public void setMainData(DockingClassifyMainVO mainData) { |
| | | this.mainData = mainData; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.webservice.vo; |
| | | |
| | | /*** |
| | | * éå¢åç±»ä¿¡æ¯ |
| | | * @author xiejun |
| | | * @date 2023-05-26 |
| | | */ |
| | | public class DockingClassifyVO { |
| | | |
| | | /** |
| | | * 主é®ID |
| | | */ |
| | | private String id; |
| | | |
| | | |
| | | /** |
| | | * åç±»åç§° |
| | | */ |
| | | private String className; |
| | | |
| | | /*** |
| | | * åç±»ä»£å· |
| | | */ |
| | | private String classNumber; |
| | | |
| | | |
| | | private String version; |
| | | |
| | | /** |
| | | * ç¶ID |
| | | */ |
| | | private String pid ; |
| | | |
| | | /*** |
| | | * èç¹åç±»é¾è·¯ |
| | | */ |
| | | private String nodeLink; |
| | | /** |
| | | * èç¹åç±»é¾è·¯ |
| | | */ |
| | | private String nodeLinkName; |
| | | public String getId() { |
| | | return id; |
| | | } |
| | | public void setId(String id) { |
| | | this.id = id; |
| | | } |
| | | public String getClassName() { |
| | | return className; |
| | | } |
| | | public void setClassName(String className) { |
| | | this.className = className; |
| | | } |
| | | public String getPid() { |
| | | return pid; |
| | | } |
| | | public void setPid(String pid) { |
| | | this.pid = pid; |
| | | } |
| | | public String getNodeLink() { |
| | | return nodeLink; |
| | | } |
| | | public void setNodeLink(String nodeLink) { |
| | | this.nodeLink = nodeLink; |
| | | } |
| | | public String getNodeLinkName() { |
| | | return nodeLinkName; |
| | | } |
| | | public void setNodeLinkName(String nodeLinkName) { |
| | | this.nodeLinkName = nodeLinkName; |
| | | } |
| | | public String getClassNumber() { |
| | | return classNumber; |
| | | } |
| | | public void setClassNumber(String classNumber) { |
| | | this.classNumber = classNumber; |
| | | } |
| | | public String getVersion() { |
| | | return version; |
| | | } |
| | | public void setVersion(String version) { |
| | | this.version = version; |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.webservice.vo; |
| | | |
| | | import java.util.List; |
| | | |
| | | /*** |
| | | * è§å¾æ¨¡å对象 |
| | | * @author xj |
| | | * @date 2023-05-26 |
| | | */ |
| | | public class DockingClassifyViewVO { |
| | | |
| | | /** |
| | | * 模åè§å¾åç§° |
| | | */ |
| | | private String viewName; |
| | | |
| | | /*** |
| | | * å½±åç¼ç é¡¹çæ°æ® |
| | | */ |
| | | private String impactList; |
| | | |
| | | /** |
| | | * 模åè§å¾å±æ§éå |
| | | */ |
| | | private List<DockingClassifyMetaAttrVO> metaList; |
| | | public String getViewName() { |
| | | return viewName; |
| | | } |
| | | public void setViewName(String viewName) { |
| | | this.viewName = viewName; |
| | | } |
| | | public List<DockingClassifyMetaAttrVO> getMetaList() { |
| | | return metaList; |
| | | } |
| | | public void setMetaList(List<DockingClassifyMetaAttrVO> metaList) { |
| | | this.metaList = metaList; |
| | | } |
| | | public String getImpactList() { |
| | | return impactList; |
| | | } |
| | | public void setImpactList(String impactList) { |
| | | this.impactList = impactList; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.webservice.vo; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /*** |
| | | * éå¢åç±»ä¿¡æ¯ |
| | | * @author xiejun |
| | | * @date 2023-05-26 |
| | | */ |
| | | public class DockingClassifysVO { |
| | | |
| | | private Map<String,List<DockingClassifyViewVO>> classInfos; |
| | | |
| | | public Map<String, List<DockingClassifyViewVO>> getClassInfos() { |
| | | return classInfos; |
| | | } |
| | | |
| | | public void setClassInfos(Map<String, List<DockingClassifyViewVO>> classInfos) { |
| | | this.classInfos = classInfos; |
| | | } |
| | | |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.webservice.vo; |
| | | |
| | | |
| | | /*** |
| | | * è¿åå¯¹è±¡ä¿¡æ¯ |
| | | * @author xiejun |
| | | * @date 2023-05-26 |
| | | */ |
| | | public class DockingDataVO { |
| | | |
| | | private String msg; |
| | | |
| | | private String code; |
| | | |
| | | private DockingMainDataVO data; |
| | | |
| | | public String getMsg() { |
| | | return msg; |
| | | } |
| | | |
| | | public void setMsg(String msg) { |
| | | this.msg = msg; |
| | | } |
| | | |
| | | public String getCode() { |
| | | return code; |
| | | } |
| | | |
| | | public void setCode(String code) { |
| | | this.code = code; |
| | | } |
| | | |
| | | public DockingMainDataVO getData() { |
| | | return data; |
| | | } |
| | | |
| | | public void setData(DockingMainDataVO data) { |
| | | this.data = data; |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.webservice.vo; |
| | | |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | | |
| | | /*** |
| | | * éå¢ç³è¯·æ¥å£åæ°ä¿¡æ¯ |
| | | */ |
| | | @Data |
| | | public class DockingGroupDataVO { |
| | | |
| | | /*** |
| | | * ç³»ç»æ è¯ |
| | | */ |
| | | |
| | | private String sysName; |
| | | /** |
| | | * ä¸å¡æ°æ® |
| | | */ |
| | | private List<DockingMainData> mainData; |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "DockingGroupDataVO{" + |
| | | "sysName='" + sysName + '\'' + |
| | | ", mainData=" + mainData + |
| | | '}'; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.webservice.vo; |
| | | |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | | |
| | | @Data |
| | | public class DockingMainData { |
| | | /** |
| | | * ç³è¯·åå· |
| | | */ |
| | | private String applyId; |
| | | /*** |
| | | * å¯çº§ |
| | | */ |
| | | private String secretLevel; |
| | | |
| | | /*** |
| | | * ç³è¯·åä½ä»£ç ï¼å¦131460ï¼ |
| | | */ |
| | | private String applyEntId; |
| | | /*** |
| | | * ç³è¯·äººåç¼ç ï¼ç¨æ·åï¼å¦85645824ï¼ |
| | | */ |
| | | private String createBy; |
| | | /*** |
| | | * åç±»åç§° |
| | | */ |
| | | private String className; |
| | | /*** |
| | | * 模åè§å¾ä¿¡æ¯ |
| | | */ |
| | | private List<DockingViewVO> viewInfos; |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "DockingMainData{" + |
| | | "applyId='" + applyId + '\'' + |
| | | ", secretLevel='" + secretLevel + '\'' + |
| | | ", applyEntId='" + applyEntId + '\'' + |
| | | ", createBy='" + createBy + '\'' + |
| | | ", className='" + className + '\'' + |
| | | ", viewInfos=" + viewInfos + |
| | | '}'; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.webservice.vo; |
| | | |
| | | public class DockingMainDataVO { |
| | | |
| | | private String applyId; |
| | | private String customCoding; |
| | | private String formState; |
| | | public String getApplyId() { |
| | | return applyId; |
| | | } |
| | | public void setApplyId(String applyId) { |
| | | this.applyId = applyId; |
| | | } |
| | | public String getCustomCoding() { |
| | | return customCoding; |
| | | } |
| | | public void setCustomCoding(String customCoding) { |
| | | this.customCoding = customCoding; |
| | | } |
| | | public String getFormState() { |
| | | return formState; |
| | | } |
| | | public void setFormState(String formState) { |
| | | this.formState = formState; |
| | | } |
| | | |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.webservice.vo; |
| | | |
| | | public class DockingModelQueryVO { |
| | | private String sysName; |
| | | |
| | | private String classId; |
| | | |
| | | private String applyNums; |
| | | |
| | | public String getSysName() { |
| | | return sysName; |
| | | } |
| | | |
| | | public void setSysName(String sysName) { |
| | | this.sysName = sysName; |
| | | } |
| | | |
| | | public String getClassId() { |
| | | return classId; |
| | | } |
| | | |
| | | public void setClassId(String classId) { |
| | | this.classId = classId; |
| | | } |
| | | |
| | | public String getApplyNums() { |
| | | return applyNums; |
| | | } |
| | | |
| | | public void setApplyNums(String applyNums) { |
| | | this.applyNums = applyNums; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "DockingModelQueryVO{" + |
| | | "sysName='" + sysName + '\'' + |
| | | ", classId='" + classId + '\'' + |
| | | ", applyNums='" + applyNums + '\'' + |
| | | '}'; |
| | | } |
| | | } |
ÎļþÃû´Ó Source/UBCS/ubcs-service-api/ubcs-code-api/src/main/java/com/vci/ubcs/code/vo/pagemodel/DockingPreApplyFormVO.java ÐÞ¸Ä |
| | |
| | | package com.vci.ubcs.code.vo.pagemodel; |
| | | |
| | | package com.vci.ubcs.code.webservice.vo; |
| | | |
| | | /** |
| | | * è®°å½éæå±æ°æ®ç³è¯·id |
| | |
| | | /*** |
| | | * éå¢ç¼ç |
| | | */ |
| | | private String groupCode; |
| | | /*** |
| | | * é误æ è¯ç |
| | | */ |
| | | private String code; |
| | | |
| | | /*** |
ÎļþÃû´Ó Source/UBCS/ubcs-service-api/ubcs-code-api/src/main/java/com/vci/ubcs/code/vo/pagemodel/DockingPreAttrMappingVO.java ÐÞ¸Ä |
| | |
| | | package com.vci.ubcs.code.vo.pagemodel; |
| | | |
| | | |
| | | import com.vci.ubcs.code.dto.DockingPreAttrRangeDTO; |
| | | import com.vci.ubcs.code.vo.pagemodel.BaseModelVO; |
| | | package com.vci.ubcs.code.webservice.vo; |
| | | |
| | | import java.util.List; |
| | | |
ÎļþÃû´Ó Source/UBCS/ubcs-service-api/ubcs-code-api/src/main/java/com/vci/ubcs/code/vo/pagemodel/DockingPreAttrRangeVO.java ÐÞ¸Ä |
| | |
| | | package com.vci.ubcs.code.vo.pagemodel; |
| | | |
| | | import com.vci.ubcs.code.vo.pagemodel.BaseModelVO; |
| | | package com.vci.ubcs.code.webservice.vo; |
| | | |
| | | /** |
| | | * è®°å½éæå±æ§åå¼èå´é
ç½® |
ÎļþÃû´Ó Source/UBCS/ubcs-service-api/ubcs-code-api/src/main/java/com/vci/ubcs/code/vo/pagemodel/DockingPreClassifyVO.java ÐÞ¸Ä |
| | |
| | | package com.vci.ubcs.code.vo.pagemodel; |
| | | package com.vci.ubcs.code.webservice.vo; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * è®°å½éæéå¢åç±»ä¿¡æ¯ |
| | |
| | | * ç¶çº§èç¹ |
| | | */ |
| | | private String pid; |
| | | /*** |
| | | * å类模åè§å¾ |
| | | */ |
| | | private List<DockingPreViewModelVO> dockingPreViewModelVOList; |
| | | |
| | | public String getClassName() { |
| | | return className; |
| | |
| | | this.pid = pid; |
| | | } |
| | | |
| | | public List<DockingPreViewModelVO> getDockingPreViewModelVOList() { |
| | | return dockingPreViewModelVOList; |
| | | } |
| | | |
| | | public void setDockingPreViewModelVOList(List<DockingPreViewModelVO> dockingPreViewModelVOList) { |
| | | this.dockingPreViewModelVOList = dockingPreViewModelVOList; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "DockingPreClassifyDTO{" + |
| | | return "DockingPreClassifyVO{" + |
| | | "className='" + className + '\'' + |
| | | ", nodeLink='" + nodeLink + '\'' + |
| | | ", getNodeLinkName='" + getNodeLinkName + '\'' + |
| | | ", pid='" + pid + '\'' + |
| | | ", dockingPreViewModelVOList=" + dockingPreViewModelVOList + |
| | | '}'; |
| | | } |
| | | } |
ÎļþÃû´Ó Source/UBCS/ubcs-service-api/ubcs-code-api/src/main/java/com/vci/ubcs/code/vo/pagemodel/DockingPreMetaAttrVO.java ÐÞ¸Ä |
| | |
| | | package com.vci.ubcs.code.vo.pagemodel; |
| | | package com.vci.ubcs.code.webservice.vo; |
| | | /** |
| | | * è®°å½éæéå¢åç±»ä¿¡æ¯ |
| | | * @author xiejun |
ÎļþÃû´Ó Source/UBCS/ubcs-service-api/ubcs-code-api/src/main/java/com/vci/ubcs/code/vo/pagemodel/DockingPreViewModelVO.java ÐÞ¸Ä |
| | |
| | | package com.vci.ubcs.code.vo.pagemodel; |
| | | package com.vci.ubcs.code.webservice.vo; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * è®°å½éæéå¢åç±»è§å¾ä¿¡æ¯ |
| | | * @author xiejun |
| | |
| | | * æ°æ®xinx |
| | | */ |
| | | private String impactList; |
| | | |
| | | |
| | | /*** |
| | | * 模åè§å¾å
å«ç屿§ |
| | | */ |
| | | private List<DockingPreMetaAttrVO> dockingPreMetaAttrVOList; |
| | | public String getViewName() { |
| | | return viewName; |
| | | } |
| | |
| | | this.impactList = impactList; |
| | | } |
| | | |
| | | public List<DockingPreMetaAttrVO> getDockingPreMetaAttrVOList() { |
| | | return dockingPreMetaAttrVOList; |
| | | } |
| | | |
| | | public void setDockingPreMetaAttrVOList(List<DockingPreMetaAttrVO> dockingPreMetaAttrVOList) { |
| | | this.dockingPreMetaAttrVOList = dockingPreMetaAttrVOList; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "DockingPreViewModelVO{" + |
| | | "viewName='" + viewName + '\'' + |
| | | ", sourceClassifyId='" + sourceClassifyId + '\'' + |
| | | ", impactList='" + impactList + '\'' + |
| | | ", dockingPreMetaAttrVOList=" + dockingPreMetaAttrVOList + |
| | | '}'; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.webservice.vo; |
| | | |
| | | import java.util.List; |
| | | |
| | | /*** |
| | | * éå¢åç±»ä¿¡æ¯ |
| | | * @author xiejun |
| | | * @date 2023-05-26 |
| | | */ |
| | | |
| | | public class DockingQueryClassModelVO { |
| | | /*** |
| | | * è¿åç¼ç |
| | | */ |
| | | private int code=1; |
| | | /*** |
| | | * è¿åä¿¡æ¯ |
| | | */ |
| | | private String msg="æ¥å£è°ç¨æå"; |
| | | |
| | | /*** |
| | | * ç³»ç»æ è¯ |
| | | */ |
| | | private String sysName; |
| | | /*** |
| | | * æ°æ®é |
| | | */ |
| | | private DockingClassifyMainVO mainData; |
| | | /*** |
| | | * æ°æ®é |
| | | */ |
| | | private DockingClassifyMainVO data; |
| | | |
| | | private String applyEntId; |
| | | /*** |
| | | * æ°æ®é |
| | | */ |
| | | private DockingClassifyMainVO dataStructure; |
| | | |
| | | public String getSysName() { |
| | | return sysName; |
| | | } |
| | | |
| | | public void setSysName(String sysName) { |
| | | this.sysName = sysName; |
| | | } |
| | | |
| | | |
| | | public String getApplyEntId() { |
| | | return applyEntId; |
| | | } |
| | | |
| | | public void setApplyEntId(String applyEntId) { |
| | | this.applyEntId = applyEntId; |
| | | } |
| | | |
| | | public void setMainData(DockingClassifyMainVO mainData) { |
| | | this.mainData = mainData; |
| | | } |
| | | |
| | | public DockingClassifyMainVO getDataStructure() { |
| | | return dataStructure; |
| | | } |
| | | |
| | | public DockingClassifyMainVO getMainData() { |
| | | return mainData; |
| | | } |
| | | |
| | | public DockingClassifyMainVO getData() { |
| | | return data; |
| | | } |
| | | |
| | | public void setData(DockingClassifyMainVO data) { |
| | | this.data = data; |
| | | } |
| | | |
| | | public void setDataStructure(DockingClassifyMainVO dataStructure) { |
| | | this.dataStructure = dataStructure; |
| | | } |
| | | |
| | | public int getCode() { |
| | | return code; |
| | | } |
| | | |
| | | public void setCode(int code) { |
| | | this.code = code; |
| | | } |
| | | |
| | | public String getMsg() { |
| | | return msg; |
| | | } |
| | | |
| | | public void setMsg(String msg) { |
| | | this.msg = msg; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "DockingQueryClassModelVO{" + |
| | | "code=" + code + |
| | | ", msg='" + msg + '\'' + |
| | | ", sysName='" + sysName + '\'' + |
| | | ", mainData=" + mainData + |
| | | ", data=" + data + |
| | | ", applyEntId='" + applyEntId + '\'' + |
| | | ", dataStructure=" + dataStructure + |
| | | '}'; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.webservice.vo; |
| | | |
| | | import java.util.List; |
| | | |
| | | public class DockingQueryModelVO { |
| | | |
| | | private int code; |
| | | private String msg; |
| | | private List<DockingClassifyVO> data; |
| | | public int getCode() { |
| | | return code; |
| | | } |
| | | public void setCode(int code) { |
| | | this.code = code; |
| | | } |
| | | public String getMsg() { |
| | | return msg; |
| | | } |
| | | public void setMsg(String msg) { |
| | | this.msg = msg; |
| | | } |
| | | public List<DockingClassifyVO> getData() { |
| | | return data; |
| | | } |
| | | public void setData(List<DockingClassifyVO> data) { |
| | | this.data = data; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.webservice.vo; |
| | | |
| | | import lombok.Data; |
| | | |
| | | @Data |
| | | public class DockingResultDataVO<T> { |
| | | /*** |
| | | * æ¶æ¯ |
| | | */ |
| | | private String code; |
| | | |
| | | private String msg; |
| | | |
| | | private T data; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.webservice.vo; |
| | | |
| | | |
| | | |
| | | import java.util.List; |
| | | |
| | | /*** |
| | | * è¿åå¯¹è±¡ä¿¡æ¯ |
| | | * @author xiejun |
| | | * @date 2023-05-26 |
| | | */ |
| | | public class DockingResultVO { |
| | | /** |
| | | * ç¶æç 1ï¼æåï¼2ï¼å¤±è´¥ |
| | | */ |
| | | private String code; |
| | | /** |
| | | * æ¥å£è°ç¨ç»æ æåï¼å¤±è´¥åå |
| | | */ |
| | | private String msg; |
| | | /*** |
| | | * æ°æ®å¯¹è±¡ |
| | | */ |
| | | private List<DockingDataVO> data; |
| | | public String getCode() { |
| | | return code; |
| | | } |
| | | public void setCode(String code) { |
| | | this.code = code; |
| | | } |
| | | public String getMsg() { |
| | | return msg; |
| | | } |
| | | public void setMsg(String msg) { |
| | | this.msg = msg; |
| | | } |
| | | |
| | | public List<DockingDataVO> getData() { |
| | | return data; |
| | | } |
| | | |
| | | public void setData(List<DockingDataVO> data) { |
| | | this.data = data; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "ResultDataObject{" + |
| | | "code='" + code + '\'' + |
| | | ", msg='" + msg + '\'' + |
| | | ", data=" + data + |
| | | '}'; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.webservice.vo; |
| | | |
| | | import java.util.List; |
| | | |
| | | /*** |
| | | * éå¢ç ç³è¯·è¿åéå¢ç 对象 |
| | | * @author xiejun |
| | | * @date 2023-5-26 |
| | | */ |
| | | public class DockingReturnStoreVO { |
| | | /** |
| | | * åç±»id |
| | | */ |
| | | private String classId; |
| | | /** |
| | | * æºç³»ç»åç§° |
| | | */ |
| | | private String sysName; |
| | | |
| | | /*** |
| | | * ç³è¯·åèµç ç»æ |
| | | */ |
| | | private List<MainData>mainData; |
| | | |
| | | public String getClassId() { |
| | | return classId; |
| | | } |
| | | |
| | | public void setClassId(String classId) { |
| | | this.classId = classId; |
| | | } |
| | | |
| | | public String getSysName() { |
| | | return sysName; |
| | | } |
| | | |
| | | public void setSysName(String sysName) { |
| | | this.sysName = sysName; |
| | | } |
| | | |
| | | public List<MainData> getMainData() { |
| | | return mainData; |
| | | } |
| | | |
| | | public void setMainData(List<MainData> mainData) { |
| | | this.mainData = mainData; |
| | | } |
| | | |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.webservice.vo; |
| | | |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /*** |
| | | * 模åè§å¾ä¿¡æ¯ |
| | | */ |
| | | @Data |
| | | public class DockingViewVO { |
| | | /** |
| | | * 模åè§å¾åç§° |
| | | */ |
| | | private String viewName; |
| | | /** |
| | | * 屿§å¯¹è±¡ä¿¡æ¯ |
| | | */ |
| | | private List<Map<String,Object>> viewValue; |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "DockingViewVO{" + |
| | | "viewName='" + viewName + '\'' + |
| | | ", viewValue=" + viewValue + |
| | | '}'; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.webservice.vo; |
| | | |
| | | import com.vci.ubcs.code.vo.pagemodel.CodeClassifyTemplateAttrVO; |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | | @Data |
| | | public class DokingAttributeSerchVO { |
| | | |
| | | private String classifyId; |
| | | private String searchValue; |
| | | private boolean flag; |
| | | private List<CodeClassifyTemplateAttrVO> rightAttributes; |
| | | private List<CodeClassifyTemplateAttrVO> leftAttributes; |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "DokingAttributeSerchVO{" + |
| | | "classifyId='" + classifyId + '\'' + |
| | | ", searchValue='" + searchValue + '\'' + |
| | | ", flag=" + flag + |
| | | ", rightAttributes=" + rightAttributes + |
| | | ", leftAttributes=" + leftAttributes + |
| | | '}'; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.webservice.vo; |
| | | |
| | | import java.util.List; |
| | | |
| | | |
| | | public class MainData { |
| | | /** |
| | | * ç³è¯·åå· |
| | | */ |
| | | private String applyId; |
| | | /** |
| | | * ç³è¯·åç¶æï¼1 éå¢å®¡æ ¸ä¸,2éå¢å®¡æ ¸ä¸, 3 éå¢å®¡æ ¸ä¸,4 å®¡æ ¸ç»æï¼èµç 失败,5å®¡æ ¸ç»æï¼èµç æå 6ï¼å¾
301èµç 7:å·²èµç 8ï¼å·²èµç ï¼æ²¿ç¨ï¼9ï¼å®¡æ ¸ä¸ï¼ |
| | | */ |
| | | private String formState; |
| | | /** |
| | | * ä¸»æ°æ®ç¼ç |
| | | */ |
| | | private String customCoding; |
| | | /** |
| | | * ç³è¯·åä¸ç¼ç è§å¾ä¿¡æ¯ |
| | | */ |
| | | private List<DockingViewVO> viewInfos; |
| | | public String getApplyId() { |
| | | return applyId; |
| | | } |
| | | public void setApplyId(String applyId) { |
| | | this.applyId = applyId; |
| | | } |
| | | public String getFormState() { |
| | | return formState; |
| | | } |
| | | public void setFormState(String formState) { |
| | | this.formState = formState; |
| | | } |
| | | public String getCustomCoding() { |
| | | return customCoding; |
| | | } |
| | | public void setCustomCoding(String customCoding) { |
| | | this.customCoding = customCoding; |
| | | } |
| | | public List<DockingViewVO> getViewInfos() { |
| | | return viewInfos; |
| | | } |
| | | public void setViewInfos(List<DockingViewVO> viewInfos) { |
| | | this.viewInfos = viewInfos; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "MainData{" + |
| | | "applyId='" + applyId + '\'' + |
| | | ", formState='" + formState + '\'' + |
| | | ", customCoding='" + customCoding + '\'' + |
| | | ", viewInfos=" + viewInfos + |
| | | '}'; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | { |
| | | "parentOid":"XJ-FC9B6-FE27-241F-5FCA-ED4DC17CF95B", |
| | | "parentBtmName":"jclass", |
| | | "valueField":"oid", |
| | | "textField":"name", |
| | | "parentFieldName":"id", |
| | | "conditionMap":[{ |
| | | "codeclsfid": "XJ-FC9B6-FE27-241F-5FCA-ED4DC17CF95B" |
| | | }] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | { |
| | | "code": 200, |
| | | "success": true, |
| | | "data": [ |
| | | { |
| | | "oid": "2023022114229", |
| | | "id": "", |
| | | "name": "", |
| | | "description": "", |
| | | "revisionOid": "C73079D0-3BEB-E887-5210-87D8A792D3ED", |
| | | "nameOid": "98669FD3-AE76-659B-1583-7F5C28519B89", |
| | | "btmname": "jintegmapconifg", |
| | | "lastR": "1", |
| | | "firstR": "1", |
| | | "lastV": "1", |
| | | "firstV": "1", |
| | | "creator": "1", |
| | | "createTime": "2023-03-30 23:35:13", |
| | | "lastModifier": "1", |
| | | "lastModifyTime": "2023-04-01 15:08:55", |
| | | "revisionRule": "", |
| | | "revisionSeq": 1, |
| | | "revisionValue": "", |
| | | "versionRule": "0", |
| | | "versionSeq": 1, |
| | | "versionValue": "1", |
| | | "lcStatus": "Exist", |
| | | "lcStatusText": "", |
| | | "ts": "2023-04-01 15:08:55.343", |
| | | "owner": "1", |
| | | "copyFromVersion": "", |
| | | "secretGrade": -1, |
| | | "secretGradeText": "", |
| | | "lctid": "defaultLC", |
| | | "data": {}, |
| | | "defaultValue": "", |
| | | "metaListId": "XJ-B5416-4928-CFB8-84F5-1955AA890762", |
| | | "sourceClassifyId": "XJ-FC9B6-FE27-241F-5FCA-ED4DC17CF95B", |
| | | "sourceClassifyName": "产å", |
| | | "targetAttrId": "8EAB5416-4928-CFB8-84F5-1955AA890762", |
| | | "targetClassifyId": "535FC9B6-FE27-241F-5FCA-ED4DC17CF95B", |
| | | "viewModeId": "XJ-B5416-4928-CFB8-84F5-1955AA890762", |
| | | "viewModeName": "", |
| | | "targetAttrKey": "lastmodifytime", |
| | | "targetAttrName": "æåä¿®æ¹æ¶é´", |
| | | "sourceAttrKey": "lastmodifytime", |
| | | "sourceAttrName": "æåä¿®æ¹æ¶é´", |
| | | "viewModelName": "åºæ¬è§å¾", |
| | | "viewName": "åºæ¬è§å¾", |
| | | "targetClassifyName": "产å", |
| | | "dockingPreAttrRangeVoList": [] |
| | | }, |
| | | { |
| | | "oid": "2023022114230", |
| | | "id": "", |
| | | "name": "", |
| | | "description": "", |
| | | "revisionOid": "E46AA8DD-FFC7-BCA0-76F2-AA959AEE8D0A", |
| | | "nameOid": "FBE012CC-0CBE-5D86-9685-BDF01F086342", |
| | | "btmname": "jintegmapconifg", |
| | | "lastR": "1", |
| | | "firstR": "1", |
| | | "lastV": "1", |
| | | "firstV": "1", |
| | | "creator": "1", |
| | | "createTime": "2023-03-30 23:35:13", |
| | | "lastModifier": "1", |
| | | "lastModifyTime": "2023-04-01 15:08:55", |
| | | "revisionRule": "", |
| | | "revisionSeq": 1, |
| | | "revisionValue": "", |
| | | "versionRule": "0", |
| | | "versionSeq": 1, |
| | | "versionValue": "1", |
| | | "lcStatus": "Exist", |
| | | "lcStatusText": "", |
| | | "ts": "2023-04-01 15:08:55.343", |
| | | "owner": "1", |
| | | "copyFromVersion": "", |
| | | "secretGrade": -1, |
| | | "secretGradeText": "", |
| | | "lctid": "defaultLC", |
| | | "data": {}, |
| | | "defaultValue": "", |
| | | "metaListId": "XJ-0FED7-90B6-BAF8-B558-2A4693CAAD83", |
| | | "sourceClassifyId": "XJ-FC9B6-FE27-241F-5FCA-ED4DC17CF95B", |
| | | "sourceClassifyName": "产å", |
| | | "targetAttrId": "2810FED7-90B6-BAF8-B558-2A4693CAAD83", |
| | | "targetClassifyId": "535FC9B6-FE27-241F-5FCA-ED4DC17CF95B", |
| | | "viewModeId": "XJ-B5416-4928-CFB8-84F5-1955AA890762", |
| | | "viewModeName": "", |
| | | "targetAttrKey": "createcompany", |
| | | "targetAttrName": "å建å
¬å¸", |
| | | "sourceAttrKey": "createcompany", |
| | | "sourceAttrName": "å建å
¬å¸", |
| | | "viewModelName": "åºæ¬è§å¾", |
| | | "viewName": "åºæ¬è§å¾", |
| | | "targetClassifyName": "产å", |
| | | "dockingPreAttrRangeVoList": [] |
| | | }, |
| | | { |
| | | "oid": "2023022114231", |
| | | "id": "", |
| | | "name": "", |
| | | "description": "", |
| | | "revisionOid": "8A71CDE9-11A7-1095-4603-A7E9D1FB66B6", |
| | | "nameOid": "9F59B1E2-2268-885B-07AC-F34C4972FE86", |
| | | "btmname": "jintegmapconifg", |
| | | "lastR": "1", |
| | | "firstR": "1", |
| | | "lastV": "1", |
| | | "firstV": "1", |
| | | "creator": "1", |
| | | "createTime": "2023-03-30 23:35:13", |
| | | "lastModifier": "1", |
| | | "lastModifyTime": "2023-04-01 15:08:55", |
| | | "revisionRule": "", |
| | | "revisionSeq": 1, |
| | | "revisionValue": "", |
| | | "versionRule": "0", |
| | | "versionSeq": 1, |
| | | "versionValue": "1", |
| | | "lcStatus": "Exist", |
| | | "lcStatusText": "", |
| | | "ts": "2023-04-01 15:08:55.343", |
| | | "owner": "1", |
| | | "copyFromVersion": "", |
| | | "secretGrade": -1, |
| | | "secretGradeText": "", |
| | | "lctid": "defaultLC", |
| | | "data": {}, |
| | | "defaultValue": "", |
| | | "metaListId": "XJ-1469D-F1E9-6A31-21B9-E5FF7A03BBEA", |
| | | "sourceClassifyId": "XJ-FC9B6-FE27-241F-5FCA-ED4DC17CF95B", |
| | | "sourceClassifyName": "产å", |
| | | "targetAttrId": "0131469D-F1E9-6A31-21B9-E5FF7A03BBEA", |
| | | "targetClassifyId": "535FC9B6-FE27-241F-5FCA-ED4DC17CF95B", |
| | | "viewModeId": "XJ-B5416-4928-CFB8-84F5-1955AA890762", |
| | | "viewModeName": "", |
| | | "targetAttrKey": "kucunwl", |
| | | "targetAttrName": "åºåç©æ", |
| | | "sourceAttrKey": "kucunwl", |
| | | "sourceAttrName": "åºåç©æ", |
| | | "viewModelName": "åºæ¬è§å¾", |
| | | "viewName": "åºæ¬è§å¾", |
| | | "targetClassifyName": "产å", |
| | | "dockingPreAttrRangeVoList": [] |
| | | }, |
| | | { |
| | | "oid": "2023022114204", |
| | | "id": "", |
| | | "name": "", |
| | | "description": "", |
| | | "revisionOid": "5F17F832-DAE2-08D5-792D-0B6CBF0199F4", |
| | | "nameOid": "85F86261-18E4-4978-BFAE-BBFF0C75F7C1", |
| | | "btmname": "jintegmapconifg", |
| | | "lastR": "1", |
| | | "firstR": "1", |
| | | "lastV": "1", |
| | | "firstV": "1", |
| | | "creator": "1", |
| | | "createTime": "2023-03-30 23:35:13", |
| | | "lastModifier": "1", |
| | | "lastModifyTime": "2023-04-01 15:08:55", |
| | | "revisionRule": "", |
| | | "revisionSeq": 1, |
| | | "revisionValue": "", |
| | | "versionRule": "0", |
| | | "versionSeq": 1, |
| | | "versionValue": "1", |
| | | "lcStatus": "Exist", |
| | | "lcStatusText": "", |
| | | "ts": "2023-04-01 15:08:55.343", |
| | | "owner": "1", |
| | | "copyFromVersion": "", |
| | | "secretGrade": -1, |
| | | "secretGradeText": "", |
| | | "lctid": "defaultLC", |
| | | "data": {}, |
| | | "defaultValue": "", |
| | | "metaListId": "XJ-07512-3fff-4ff0-bf25-f13fcd2a4acf", |
| | | "sourceClassifyId": "XJ-FC9B6-FE27-241F-5FCA-ED4DC17CF95B", |
| | | "sourceClassifyName": "产å", |
| | | "targetAttrId": "a2307512-3fff-4ff0-bf25-f13fcd2a4acf", |
| | | "targetClassifyId": "535FC9B6-FE27-241F-5FCA-ED4DC17CF95B", |
| | | "viewModeId": "XJ-B5416-4928-CFB8-84F5-1955AA890762", |
| | | "viewModeName": "", |
| | | "targetAttrKey": "id", |
| | | "targetAttrName": "ç¼ç ", |
| | | "sourceAttrKey": "id", |
| | | "sourceAttrName": "ç¼ç ", |
| | | "viewModelName": "åºæ¬è§å¾", |
| | | "viewName": "åºæ¬è§å¾", |
| | | "targetClassifyName": "产å", |
| | | "dockingPreAttrRangeVoList": [] |
| | | }, |
| | | { |
| | | "oid": "2023022114206", |
| | | "id": "", |
| | | "name": "", |
| | | "description": "", |
| | | "revisionOid": "D9D48ED4-4481-60B6-582E-6A9910F3D907", |
| | | "nameOid": "0BAF9BDA-A707-DC18-96A0-FEA0D68D9036", |
| | | "btmname": "jintegmapconifg", |
| | | "lastR": "1", |
| | | "firstR": "1", |
| | | "lastV": "1", |
| | | "firstV": "1", |
| | | "creator": "1", |
| | | "createTime": "2023-03-30 23:35:13", |
| | | "lastModifier": "1", |
| | | "lastModifyTime": "2023-04-01 15:08:55", |
| | | "revisionRule": "", |
| | | "revisionSeq": 1, |
| | | "revisionValue": "", |
| | | "versionRule": "0", |
| | | "versionSeq": 1, |
| | | "versionValue": "1", |
| | | "lcStatus": "Exist", |
| | | "lcStatusText": "", |
| | | "ts": "2023-04-01 15:08:55.343", |
| | | "owner": "1", |
| | | "copyFromVersion": "", |
| | | "secretGrade": -1, |
| | | "secretGradeText": "", |
| | | "lctid": "defaultLC", |
| | | "data": {}, |
| | | "defaultValue": "", |
| | | "metaListId": "XJ-1fe09-da6f-4412-b92f-f411d341e92d", |
| | | "sourceClassifyId": "XJ-FC9B6-FE27-241F-5FCA-ED4DC17CF95B", |
| | | "sourceClassifyName": "产å", |
| | | "targetAttrId": "3b11fe09-da6f-4412-b92f-f411d341e92d", |
| | | "targetClassifyId": "535FC9B6-FE27-241F-5FCA-ED4DC17CF95B", |
| | | "viewModeId": "XJ-B5416-4928-CFB8-84F5-1955AA890762", |
| | | "viewModeName": "", |
| | | "targetAttrKey": "lcstatus", |
| | | "targetAttrName": "ç¶æ", |
| | | "sourceAttrKey": "lcstatus", |
| | | "sourceAttrName": "ç¶æ", |
| | | "viewModelName": "åºæ¬è§å¾", |
| | | "viewName": "åºæ¬è§å¾", |
| | | "targetClassifyName": "产å", |
| | | "dockingPreAttrRangeVoList": [] |
| | | }, |
| | | { |
| | | "oid": "2023022114208", |
| | | "id": "", |
| | | "name": "", |
| | | "description": "", |
| | | "revisionOid": "2A28E3E8-BB25-9652-804E-A1185F52E1D9", |
| | | "nameOid": "F385803E-8EA2-7F2B-B22D-63FF527FCB1C", |
| | | "btmname": "jintegmapconifg", |
| | | "lastR": "1", |
| | | "firstR": "1", |
| | | "lastV": "1", |
| | | "firstV": "1", |
| | | "creator": "1", |
| | | "createTime": "2023-03-30 23:35:13", |
| | | "lastModifier": "1", |
| | | "lastModifyTime": "2023-04-01 15:08:55", |
| | | "revisionRule": "", |
| | | "revisionSeq": 1, |
| | | "revisionValue": "", |
| | | "versionRule": "0", |
| | | "versionSeq": 1, |
| | | "versionValue": "1", |
| | | "lcStatus": "Exist", |
| | | "lcStatusText": "", |
| | | "ts": "2023-04-01 15:08:55.342", |
| | | "owner": "1", |
| | | "copyFromVersion": "", |
| | | "secretGrade": -1, |
| | | "secretGradeText": "", |
| | | "lctid": "defaultLC", |
| | | "data": {}, |
| | | "defaultValue": "", |
| | | "metaListId": "XJ-F8C09-A123-391B-E119-748B70028952", |
| | | "sourceClassifyId": "XJ-FC9B6-FE27-241F-5FCA-ED4DC17CF95B", |
| | | "sourceClassifyName": "产å", |
| | | "targetAttrId": "264F8C09-A123-391B-E119-748B70028952", |
| | | "targetClassifyId": "535FC9B6-FE27-241F-5FCA-ED4DC17CF95B", |
| | | "viewModeId": "XJ-B5416-4928-CFB8-84F5-1955AA890762", |
| | | "viewModeName": "", |
| | | "targetAttrKey": "oldcode", |
| | | "targetAttrName": "åå²ç¼å·", |
| | | "sourceAttrKey": "oldcode", |
| | | "sourceAttrName": "åå²ç¼å·", |
| | | "viewModelName": "åºæ¬è§å¾", |
| | | "viewName": "åºæ¬è§å¾", |
| | | "targetClassifyName": "产å", |
| | | "dockingPreAttrRangeVoList": [] |
| | | }, |
| | | { |
| | | "oid": "2023022114210", |
| | | "id": "", |
| | | "name": "", |
| | | "description": "", |
| | | "revisionOid": "3C3ACABB-E692-FED2-ADD9-F04532A43D00", |
| | | "nameOid": "1AB942E6-E956-E44B-B140-AA75222FAF4F", |
| | | "btmname": "jintegmapconifg", |
| | | "lastR": "1", |
| | | "firstR": "1", |
| | | "lastV": "1", |
| | | "firstV": "1", |
| | | "creator": "1", |
| | | "createTime": "2023-03-30 23:35:13", |
| | | "lastModifier": "1", |
| | | "lastModifyTime": "2023-04-01 15:08:55", |
| | | "revisionRule": "", |
| | | "revisionSeq": 1, |
| | | "revisionValue": "", |
| | | "versionRule": "0", |
| | | "versionSeq": 1, |
| | | "versionValue": "1", |
| | | "lcStatus": "Exist", |
| | | "lcStatusText": "", |
| | | "ts": "2023-04-01 15:08:55.342", |
| | | "owner": "1", |
| | | "copyFromVersion": "", |
| | | "secretGrade": -1, |
| | | "secretGradeText": "", |
| | | "lctid": "defaultLC", |
| | | "data": {}, |
| | | "defaultValue": "", |
| | | "metaListId": "XJ-9ab10-a3bf-4b51-b8c5-337132018f1d", |
| | | "sourceClassifyId": "XJ-FC9B6-FE27-241F-5FCA-ED4DC17CF95B", |
| | | "sourceClassifyName": "产å", |
| | | "targetAttrId": "5469ab10-a3bf-4b51-b8c5-337132018f1d", |
| | | "targetClassifyId": "535FC9B6-FE27-241F-5FCA-ED4DC17CF95B", |
| | | "viewModeId": "XJ-B5416-4928-CFB8-84F5-1955AA890762", |
| | | "viewModeName": "", |
| | | "targetAttrKey": "name", |
| | | "targetAttrName": "ç©æåç§°", |
| | | "sourceAttrKey": "name", |
| | | "sourceAttrName": "ç©æåç§°", |
| | | "viewModelName": "åºæ¬è§å¾", |
| | | "viewName": "åºæ¬è§å¾", |
| | | "targetClassifyName": "产å", |
| | | "dockingPreAttrRangeVoList": [] |
| | | }, |
| | | { |
| | | "oid": "2023022114212", |
| | | "id": "", |
| | | "name": "", |
| | | "description": "", |
| | | "revisionOid": "CAF4CC4C-D2BD-CE2C-7BB1-30799A124EBB", |
| | | "nameOid": "939A13F3-814A-1CD3-0896-429C1D2F803D", |
| | | "btmname": "jintegmapconifg", |
| | | "lastR": "1", |
| | | "firstR": "1", |
| | | "lastV": "1", |
| | | "firstV": "1", |
| | | "creator": "1", |
| | | "createTime": "2023-03-30 23:35:13", |
| | | "lastModifier": "1", |
| | | "lastModifyTime": "2023-04-01 15:08:55", |
| | | "revisionRule": "", |
| | | "revisionSeq": 1, |
| | | "revisionValue": "", |
| | | "versionRule": "0", |
| | | "versionSeq": 1, |
| | | "versionValue": "1", |
| | | "lcStatus": "Exist", |
| | | "lcStatusText": "", |
| | | "ts": "2023-04-01 15:08:55.342", |
| | | "owner": "1", |
| | | "copyFromVersion": "", |
| | | "secretGrade": -1, |
| | | "secretGradeText": "", |
| | | "lctid": "defaultLC", |
| | | "data": {}, |
| | | "defaultValue": "", |
| | | "metaListId": "XJ-F0DDF-C5DB-8616-D752-20360970AFB6", |
| | | "sourceClassifyId": "XJ-FC9B6-FE27-241F-5FCA-ED4DC17CF95B", |
| | | "sourceClassifyName": "产å", |
| | | "targetAttrId": "0FAF0DDF-C5DB-8616-D752-20360970AFB6", |
| | | "targetClassifyId": "535FC9B6-FE27-241F-5FCA-ED4DC17CF95B", |
| | | "viewModeId": "XJ-B5416-4928-CFB8-84F5-1955AA890763", |
| | | "viewModeName": "", |
| | | "targetAttrKey": "materialclassify", |
| | | "targetAttrName": "ç©æåç±»", |
| | | "sourceAttrKey": "materialclassify", |
| | | "sourceAttrName": "ç©æåç±»", |
| | | "viewModelName": "éè´è§å¾", |
| | | "viewName": "éè´è§å¾", |
| | | "targetClassifyName": "产å", |
| | | "dockingPreAttrRangeVoList": [] |
| | | }, |
| | | { |
| | | "oid": "2023022114213", |
| | | "id": "", |
| | | "name": "", |
| | | "description": "", |
| | | "revisionOid": "43AFA453-AD02-958C-413D-EDC58EFF27B3", |
| | | "nameOid": "E41F372D-60FD-2462-E6B1-DF33D5C787E2", |
| | | "btmname": "jintegmapconifg", |
| | | "lastR": "1", |
| | | "firstR": "1", |
| | | "lastV": "1", |
| | | "firstV": "1", |
| | | "creator": "1", |
| | | "createTime": "2023-03-30 23:35:13", |
| | | "lastModifier": "1", |
| | | "lastModifyTime": "2023-04-01 15:08:55", |
| | | "revisionRule": "", |
| | | "revisionSeq": 1, |
| | | "revisionValue": "", |
| | | "versionRule": "0", |
| | | "versionSeq": 1, |
| | | "versionValue": "1", |
| | | "lcStatus": "Exist", |
| | | "lcStatusText": "", |
| | | "ts": "2023-04-01 15:08:55.342", |
| | | "owner": "1", |
| | | "copyFromVersion": "", |
| | | "secretGrade": -1, |
| | | "secretGradeText": "", |
| | | "lctid": "defaultLC", |
| | | "data": {}, |
| | | "defaultValue": "", |
| | | "metaListId": "XJ-329e5-b881-4128-aea4-f1b8f67eb5e7", |
| | | "sourceClassifyId": "XJ-FC9B6-FE27-241F-5FCA-ED4DC17CF95B", |
| | | "sourceClassifyName": "产å", |
| | | "targetAttrId": "3d7329e5-b881-4128-aea4-f1b8f67eb5e7", |
| | | "targetClassifyId": "535FC9B6-FE27-241F-5FCA-ED4DC17CF95B", |
| | | "viewModeId": "XJ-B5416-4928-CFB8-84F5-1955AA890763", |
| | | "viewModeName": "", |
| | | "targetAttrKey": "firstfl", |
| | | "targetAttrName": "ä¸çº§ç®¡çåç±»", |
| | | "sourceAttrKey": "firstfl", |
| | | "sourceAttrName": "ä¸çº§ç®¡çåç±»", |
| | | "viewModelName": "éè´è§å¾", |
| | | "viewName": "éè´è§å¾", |
| | | "targetClassifyName": "产å", |
| | | "dockingPreAttrRangeVoList": [] |
| | | }, |
| | | { |
| | | "oid": "2023022114214", |
| | | "id": "", |
| | | "name": "", |
| | | "description": "", |
| | | "revisionOid": "BCBAE106-DD94-5B6C-C4AF-3AD50F513E93", |
| | | "nameOid": "B52551C4-E35F-9E18-AD63-AD42FC89A15A", |
| | | "btmname": "jintegmapconifg", |
| | | "lastR": "1", |
| | | "firstR": "1", |
| | | "lastV": "1", |
| | | "firstV": "1", |
| | | "creator": "1", |
| | | "createTime": "2023-03-30 23:35:13", |
| | | "lastModifier": "1", |
| | | "lastModifyTime": "2023-04-01 15:08:55", |
| | | "revisionRule": "", |
| | | "revisionSeq": 1, |
| | | "revisionValue": "", |
| | | "versionRule": "0", |
| | | "versionSeq": 1, |
| | | "versionValue": "1", |
| | | "lcStatus": "Exist", |
| | | "lcStatusText": "", |
| | | "ts": "2023-04-01 15:08:55.338", |
| | | "owner": "1", |
| | | "copyFromVersion": "", |
| | | "secretGrade": -1, |
| | | "secretGradeText": "", |
| | | "lctid": "defaultLC", |
| | | "data": {}, |
| | | "defaultValue": "", |
| | | "metaListId": "XJ-43fc3-a604-4fd8-a2c9-482712301285", |
| | | "sourceClassifyId": "XJ-FC9B6-FE27-241F-5FCA-ED4DC17CF95B", |
| | | "sourceClassifyName": "产å", |
| | | "targetAttrId": "00a43fc3-a604-4fd8-a2c9-482712301285", |
| | | "targetClassifyId": "535FC9B6-FE27-241F-5FCA-ED4DC17CF95B", |
| | | "viewModeId": "XJ-B5416-4928-CFB8-84F5-1955AA890763", |
| | | "viewModeName": "", |
| | | "targetAttrKey": "secondfl", |
| | | "targetAttrName": "äºçº§ç®¡çåç±»", |
| | | "sourceAttrKey": "secondfl", |
| | | "sourceAttrName": "äºçº§ç®¡çåç±»", |
| | | "viewModelName": "éè´è§å¾", |
| | | "viewName": "éè´è§å¾", |
| | | "targetClassifyName": "产å", |
| | | "dockingPreAttrRangeVoList": [] |
| | | }, |
| | | { |
| | | "oid": "2023022114215", |
| | | "id": "", |
| | | "name": "", |
| | | "description": "", |
| | | "revisionOid": "1E5B2974-DEAF-7489-0EEA-1E6EB5AEC7E8", |
| | | "nameOid": "CC456D46-7D32-1E39-05EE-2CF8F9D3754E", |
| | | "btmname": "jintegmapconifg", |
| | | "lastR": "1", |
| | | "firstR": "1", |
| | | "lastV": "1", |
| | | "firstV": "1", |
| | | "creator": "1", |
| | | "createTime": "2023-03-30 23:35:13", |
| | | "lastModifier": "1", |
| | | "lastModifyTime": "2023-04-01 15:08:55", |
| | | "revisionRule": "", |
| | | "revisionSeq": 1, |
| | | "revisionValue": "", |
| | | "versionRule": "0", |
| | | "versionSeq": 1, |
| | | "versionValue": "1", |
| | | "lcStatus": "Exist", |
| | | "lcStatusText": "", |
| | | "ts": "2023-04-01 15:08:55.342", |
| | | "owner": "1", |
| | | "copyFromVersion": "", |
| | | "secretGrade": -1, |
| | | "secretGradeText": "", |
| | | "lctid": "defaultLC", |
| | | "data": {}, |
| | | "defaultValue": "", |
| | | "metaListId": "XJ-8e06b-b297-4738-ad6d-0b1b0064ae3e", |
| | | "sourceClassifyId": "XJ-FC9B6-FE27-241F-5FCA-ED4DC17CF95B", |
| | | "sourceClassifyName": "产å", |
| | | "targetAttrId": "53d8e06b-b297-4738-ad6d-0b1b0064ae3e", |
| | | "targetClassifyId": "535FC9B6-FE27-241F-5FCA-ED4DC17CF95B", |
| | | "viewModeId": "XJ-B5416-4928-CFB8-84F5-1955AA890763", |
| | | "viewModeName": "", |
| | | "targetAttrKey": "thrifl", |
| | | "targetAttrName": "ä¸çº§ç®¡çåç±»", |
| | | "sourceAttrKey": "thrifl", |
| | | "sourceAttrName": "ä¸çº§ç®¡çåç±»", |
| | | "viewModelName": "éè´è§å¾", |
| | | "viewName": "éè´è§å¾", |
| | | "targetClassifyName": "产å", |
| | | "dockingPreAttrRangeVoList": [] |
| | | }, |
| | | { |
| | | "oid": "2023022114216", |
| | | "id": "", |
| | | "name": "", |
| | | "description": "", |
| | | "revisionOid": "14C8547F-B31A-E007-170F-9953B57AC003", |
| | | "nameOid": "C3C87FAB-5F9F-3E6E-F433-5DAA335A35DB", |
| | | "btmname": "jintegmapconifg", |
| | | "lastR": "1", |
| | | "firstR": "1", |
| | | "lastV": "1", |
| | | "firstV": "1", |
| | | "creator": "1", |
| | | "createTime": "2023-03-30 23:35:13", |
| | | "lastModifier": "1", |
| | | "lastModifyTime": "2023-04-01 15:08:55", |
| | | "revisionRule": "", |
| | | "revisionSeq": 1, |
| | | "revisionValue": "", |
| | | "versionRule": "0", |
| | | "versionSeq": 1, |
| | | "versionValue": "1", |
| | | "lcStatus": "Exist", |
| | | "lcStatusText": "", |
| | | "ts": "2023-04-01 15:08:55.342", |
| | | "owner": "1", |
| | | "copyFromVersion": "", |
| | | "secretGrade": -1, |
| | | "secretGradeText": "", |
| | | "lctid": "defaultLC", |
| | | "data": {}, |
| | | "defaultValue": "", |
| | | "metaListId": "XJ-618cd-475b-4235-8783-20fd3e19e397", |
| | | "sourceClassifyId": "XJ-FC9B6-FE27-241F-5FCA-ED4DC17CF95B", |
| | | "sourceClassifyName": "产å", |
| | | "targetAttrId": "e7b618cd-475b-4235-8783-20fd3e19e397", |
| | | "targetClassifyId": "535FC9B6-FE27-241F-5FCA-ED4DC17CF95B", |
| | | "viewModeId": "XJ-B5416-4928-CFB8-84F5-1955AA890763", |
| | | "viewModeName": "", |
| | | "targetAttrKey": "xiaoshouwl", |
| | | "targetAttrName": "éå®ç©æ", |
| | | "sourceAttrKey": "xiaoshouwl", |
| | | "sourceAttrName": "éå®ç©æ", |
| | | "viewModelName": "éè´è§å¾", |
| | | "viewName": "éè´è§å¾", |
| | | "targetClassifyName": "产å", |
| | | "dockingPreAttrRangeVoList": [] |
| | | }, |
| | | { |
| | | "oid": "2023022114217", |
| | | "id": "", |
| | | "name": "", |
| | | "description": "", |
| | | "revisionOid": "880DCB14-8FA6-26FE-796F-1896A8DEFD63", |
| | | "nameOid": "F40FB67E-ED46-F375-F302-EE991F98FAEC", |
| | | "btmname": "jintegmapconifg", |
| | | "lastR": "1", |
| | | "firstR": "1", |
| | | "lastV": "1", |
| | | "firstV": "1", |
| | | "creator": "1", |
| | | "createTime": "2023-03-30 23:35:13", |
| | | "lastModifier": "1", |
| | | "lastModifyTime": "2023-04-01 15:08:55", |
| | | "revisionRule": "", |
| | | "revisionSeq": 1, |
| | | "revisionValue": "", |
| | | "versionRule": "0", |
| | | "versionSeq": 1, |
| | | "versionValue": "1", |
| | | "lcStatus": "Exist", |
| | | "lcStatusText": "", |
| | | "ts": "2023-04-01 15:08:55.342", |
| | | "owner": "1", |
| | | "copyFromVersion": "", |
| | | "secretGrade": -1, |
| | | "secretGradeText": "", |
| | | "lctid": "defaultLC", |
| | | "data": {}, |
| | | "defaultValue": "", |
| | | "metaListId": "XJ-3de12-01e3-4a96-9323-ee025f57fe75", |
| | | "sourceClassifyId": "XJ-FC9B6-FE27-241F-5FCA-ED4DC17CF95B", |
| | | "sourceClassifyName": "产å", |
| | | "targetAttrId": "4ad3de12-01e3-4a96-9323-ee025f57fe75", |
| | | "targetClassifyId": "535FC9B6-FE27-241F-5FCA-ED4DC17CF95B", |
| | | "viewModeId": "XJ-B5416-4928-CFB8-84F5-1955AA890763", |
| | | "viewModeName": "", |
| | | "targetAttrKey": "xinghaoguige", |
| | | "targetAttrName": "è§æ ¼åå·", |
| | | "sourceAttrKey": "xinghaoguige", |
| | | "sourceAttrName": "è§æ ¼åå·", |
| | | "viewModelName": "éè´è§å¾", |
| | | "viewName": "éè´è§å¾", |
| | | "targetClassifyName": "产å", |
| | | "dockingPreAttrRangeVoList": [] |
| | | }, |
| | | { |
| | | "oid": "2023022114218", |
| | | "id": "", |
| | | "name": "", |
| | | "description": "", |
| | | "revisionOid": "1F491FBC-B16C-A715-231D-57825F3FDBBF", |
| | | "nameOid": "63DD90E9-716C-DB3C-E4B3-3CB59425228F", |
| | | "btmname": "jintegmapconifg", |
| | | "lastR": "1", |
| | | "firstR": "1", |
| | | "lastV": "1", |
| | | "firstV": "1", |
| | | "creator": "1", |
| | | "createTime": "2023-03-30 23:35:13", |
| | | "lastModifier": "1", |
| | | "lastModifyTime": "2023-04-01 15:08:55", |
| | | "revisionRule": "", |
| | | "revisionSeq": 1, |
| | | "revisionValue": "", |
| | | "versionRule": "0", |
| | | "versionSeq": 1, |
| | | "versionValue": "1", |
| | | "lcStatus": "Exist", |
| | | "lcStatusText": "", |
| | | "ts": "2023-04-01 15:08:55.342", |
| | | "owner": "1", |
| | | "copyFromVersion": "", |
| | | "secretGrade": -1, |
| | | "secretGradeText": "", |
| | | "lctid": "defaultLC", |
| | | "data": {}, |
| | | "defaultValue": "", |
| | | "metaListId": "XJ-059FA-B513-114A-318C-9D7FB3E06736", |
| | | "sourceClassifyId": "XJ-FC9B6-FE27-241F-5FCA-ED4DC17CF95B", |
| | | "sourceClassifyName": "产å", |
| | | "targetAttrId": "894059FA-B513-114A-318C-9D7FB3E06736", |
| | | "targetClassifyId": "535FC9B6-FE27-241F-5FCA-ED4DC17CF95B", |
| | | "viewModeId": "XJ-B5416-4928-CFB8-84F5-1955AA890763", |
| | | "viewModeName": "", |
| | | "targetAttrKey": "jiliangdw", |
| | | "targetAttrName": "计éåä½", |
| | | "sourceAttrKey": "jiliangdw", |
| | | "sourceAttrName": "计éåä½", |
| | | "viewModelName": "éè´è§å¾", |
| | | "viewName": "éè´è§å¾", |
| | | "targetClassifyName": "产å", |
| | | "dockingPreAttrRangeVoList": [] |
| | | }, |
| | | { |
| | | "oid": "2023022114219", |
| | | "id": "", |
| | | "name": "", |
| | | "description": "", |
| | | "revisionOid": "E1EAE8B0-2C14-3E39-87F2-D2139D116446", |
| | | "nameOid": "DA491C02-DB3E-1FCA-9896-D9BF8D60699F", |
| | | "btmname": "jintegmapconifg", |
| | | "lastR": "1", |
| | | "firstR": "1", |
| | | "lastV": "1", |
| | | "firstV": "1", |
| | | "creator": "1", |
| | | "createTime": "2023-03-30 23:35:13", |
| | | "lastModifier": "1", |
| | | "lastModifyTime": "2023-04-01 15:08:55", |
| | | "revisionRule": "", |
| | | "revisionSeq": 1, |
| | | "revisionValue": "", |
| | | "versionRule": "0", |
| | | "versionSeq": 1, |
| | | "versionValue": "1", |
| | | "lcStatus": "Exist", |
| | | "lcStatusText": "", |
| | | "ts": "2023-04-01 15:08:55.343", |
| | | "owner": "1", |
| | | "copyFromVersion": "", |
| | | "secretGrade": -1, |
| | | "secretGradeText": "", |
| | | "lctid": "defaultLC", |
| | | "data": {}, |
| | | "defaultValue": "", |
| | | "metaListId": "XJ-4C611-FC2A-C4EB-D85E-74B008515EAB", |
| | | "sourceClassifyId": "XJ-FC9B6-FE27-241F-5FCA-ED4DC17CF95B", |
| | | "sourceClassifyName": "产å", |
| | | "targetAttrId": "1894C611-FC2A-C4EB-D85E-74B008515EAB", |
| | | "targetClassifyId": "535FC9B6-FE27-241F-5FCA-ED4DC17CF95B", |
| | | "viewModeId": "XJ-B5416-4928-CFB8-84F5-1955AA890763", |
| | | "viewModeName": "", |
| | | "targetAttrKey": "chukufangshi", |
| | | "targetAttrName": "åºåºæ¹å¼", |
| | | "sourceAttrKey": "chukufangshi", |
| | | "sourceAttrName": "åºåºæ¹å¼", |
| | | "viewModelName": "éè´è§å¾", |
| | | "viewName": "éè´è§å¾", |
| | | "targetClassifyName": "产å", |
| | | "dockingPreAttrRangeVoList": [] |
| | | }, |
| | | { |
| | | "oid": "2023022114220", |
| | | "id": "", |
| | | "name": "", |
| | | "description": "", |
| | | "revisionOid": "6295A1BB-95B4-8D25-B508-663CDE89C6B8", |
| | | "nameOid": "0246385E-5435-3859-F5E1-BC1C6B4246F9", |
| | | "btmname": "jintegmapconifg", |
| | | "lastR": "1", |
| | | "firstR": "1", |
| | | "lastV": "1", |
| | | "firstV": "1", |
| | | "creator": "1", |
| | | "createTime": "2023-03-30 23:35:13", |
| | | "lastModifier": "1", |
| | | "lastModifyTime": "2023-04-01 15:08:55", |
| | | "revisionRule": "", |
| | | "revisionSeq": 1, |
| | | "revisionValue": "", |
| | | "versionRule": "0", |
| | | "versionSeq": 1, |
| | | "versionValue": "1", |
| | | "lcStatus": "Exist", |
| | | "lcStatusText": "", |
| | | "ts": "2023-04-01 15:08:55.342", |
| | | "owner": "1", |
| | | "copyFromVersion": "", |
| | | "secretGrade": -1, |
| | | "secretGradeText": "", |
| | | "lctid": "defaultLC", |
| | | "data": {}, |
| | | "defaultValue": "", |
| | | "metaListId": "XJ-43953-2216-4171-b1a6-139244e63a95", |
| | | "sourceClassifyId": "XJ-FC9B6-FE27-241F-5FCA-ED4DC17CF95B", |
| | | "sourceClassifyName": "产å", |
| | | "targetAttrId": "e3d43953-2216-4171-b1a6-139244e63a95", |
| | | "targetClassifyId": "535FC9B6-FE27-241F-5FCA-ED4DC17CF95B", |
| | | "viewModeId": "XJ-B5416-4928-CFB8-84F5-1955AA890763", |
| | | "viewModeName": "", |
| | | "targetAttrKey": "description", |
| | | "targetAttrName": "夿³¨è¯´æ", |
| | | "sourceAttrKey": "description", |
| | | "sourceAttrName": "夿³¨è¯´æ", |
| | | "viewModelName": "éè´è§å¾", |
| | | "viewName": "éè´è§å¾", |
| | | "targetClassifyName": "产å", |
| | | "dockingPreAttrRangeVoList": [] |
| | | }, |
| | | { |
| | | "oid": "2023022114221", |
| | | "id": "", |
| | | "name": "", |
| | | "description": "", |
| | | "revisionOid": "3E0811EF-B738-27DD-AA77-FBA44CE55A01", |
| | | "nameOid": "113BB469-ECED-8393-D6F2-7F9B85B4060F", |
| | | "btmname": "jintegmapconifg", |
| | | "lastR": "1", |
| | | "firstR": "1", |
| | | "lastV": "1", |
| | | "firstV": "1", |
| | | "creator": "1", |
| | | "createTime": "2023-03-30 23:35:13", |
| | | "lastModifier": "1", |
| | | "lastModifyTime": "2023-04-01 15:08:55", |
| | | "revisionRule": "", |
| | | "revisionSeq": 1, |
| | | "revisionValue": "", |
| | | "versionRule": "0", |
| | | "versionSeq": 1, |
| | | "versionValue": "1", |
| | | "lcStatus": "Exist", |
| | | "lcStatusText": "", |
| | | "ts": "2023-04-01 15:08:55.342", |
| | | "owner": "1", |
| | | "copyFromVersion": "", |
| | | "secretGrade": -1, |
| | | "secretGradeText": "", |
| | | "lctid": "defaultLC", |
| | | "data": {}, |
| | | "defaultValue": "", |
| | | "metaListId": "XJ-D6882-1BA9-BBA6-2344-B433A6FDCA39", |
| | | "sourceClassifyId": "XJ-FC9B6-FE27-241F-5FCA-ED4DC17CF95B", |
| | | "sourceClassifyName": "产å", |
| | | "targetAttrId": "902D6882-1BA9-BBA6-2344-B433A6FDCA39", |
| | | "targetClassifyId": "535FC9B6-FE27-241F-5FCA-ED4DC17CF95B", |
| | | "viewModeId": "XJ-B5416-4928-CFB8-84F5-1955AA890763", |
| | | "viewModeName": "", |
| | | "targetAttrKey": "hesuanfenlei", |
| | | "targetAttrName": "æ ¸ç®åç±»", |
| | | "sourceAttrKey": "hesuanfenlei", |
| | | "sourceAttrName": "æ ¸ç®åç±»", |
| | | "viewModelName": "éè´è§å¾", |
| | | "viewName": "éè´è§å¾", |
| | | "targetClassifyName": "产å", |
| | | "dockingPreAttrRangeVoList": [] |
| | | }, |
| | | { |
| | | "oid": "2023022114222", |
| | | "id": "", |
| | | "name": "", |
| | | "description": "", |
| | | "revisionOid": "E2CF6A7E-AFEA-5474-A8E7-EAD9C6BEE06C", |
| | | "nameOid": "DE77BF7D-DC65-7E3F-C369-2E17217ADE96", |
| | | "btmname": "jintegmapconifg", |
| | | "lastR": "1", |
| | | "firstR": "1", |
| | | "lastV": "1", |
| | | "firstV": "1", |
| | | "creator": "1", |
| | | "createTime": "2023-03-30 23:35:13", |
| | | "lastModifier": "1", |
| | | "lastModifyTime": "2023-04-01 15:08:55", |
| | | "revisionRule": "", |
| | | "revisionSeq": 1, |
| | | "revisionValue": "", |
| | | "versionRule": "0", |
| | | "versionSeq": 1, |
| | | "versionValue": "1", |
| | | "lcStatus": "Exist", |
| | | "lcStatusText": "", |
| | | "ts": "2023-04-01 15:08:55.343", |
| | | "owner": "1", |
| | | "copyFromVersion": "", |
| | | "secretGrade": -1, |
| | | "secretGradeText": "", |
| | | "lctid": "defaultLC", |
| | | "data": {}, |
| | | "defaultValue": "", |
| | | "metaListId": "XJ-E34DA-ABF6-9813-8AB0-7651E4B2D54B", |
| | | "sourceClassifyId": "XJ-FC9B6-FE27-241F-5FCA-ED4DC17CF95B", |
| | | "sourceClassifyName": "产å", |
| | | "targetAttrId": "01CE34DA-ABF6-9813-8AB0-7651E4B2D54B", |
| | | "targetClassifyId": "535FC9B6-FE27-241F-5FCA-ED4DC17CF95B", |
| | | "viewModeId": "XJ-B5416-4928-CFB8-84F5-1955AA890764", |
| | | "viewModeName": "", |
| | | "targetAttrKey": "materialtype", |
| | | "targetAttrName": "ç©æç±»å", |
| | | "sourceAttrKey": "materialtype", |
| | | "sourceAttrName": "ç©æç±»å", |
| | | "viewModelName": "éå®è§å¾", |
| | | "viewName": "éå®è§å¾", |
| | | "targetClassifyName": "产å", |
| | | "dockingPreAttrRangeVoList": [] |
| | | }, |
| | | { |
| | | "oid": "2023022114223", |
| | | "id": "", |
| | | "name": "", |
| | | "description": "", |
| | | "revisionOid": "84F730D2-EEA9-DFC4-FFED-10457C35FB0E", |
| | | "nameOid": "4285DCED-27F9-5CF9-3965-8D2EBF4F6328", |
| | | "btmname": "jintegmapconifg", |
| | | "lastR": "1", |
| | | "firstR": "1", |
| | | "lastV": "1", |
| | | "firstV": "1", |
| | | "creator": "1", |
| | | "createTime": "2023-03-30 23:35:13", |
| | | "lastModifier": "1", |
| | | "lastModifyTime": "2023-04-01 15:08:55", |
| | | "revisionRule": "", |
| | | "revisionSeq": 1, |
| | | "revisionValue": "", |
| | | "versionRule": "0", |
| | | "versionSeq": 1, |
| | | "versionValue": "1", |
| | | "lcStatus": "Exist", |
| | | "lcStatusText": "", |
| | | "ts": "2023-04-01 15:08:55.343", |
| | | "owner": "1", |
| | | "copyFromVersion": "", |
| | | "secretGrade": -1, |
| | | "secretGradeText": "", |
| | | "lctid": "defaultLC", |
| | | "data": {}, |
| | | "defaultValue": "", |
| | | "metaListId": "XJ-38D7E-E51A-81B3-558D-FF1212DFC757", |
| | | "sourceClassifyId": "XJ-FC9B6-FE27-241F-5FCA-ED4DC17CF95B", |
| | | "sourceClassifyName": "产å", |
| | | "targetAttrId": "2FA38D7E-E51A-81B3-558D-FF1212DFC757", |
| | | "targetClassifyId": "535FC9B6-FE27-241F-5FCA-ED4DC17CF95B", |
| | | "viewModeId": "XJ-B5416-4928-CFB8-84F5-1955AA890764", |
| | | "viewModeName": "", |
| | | "targetAttrKey": "tuhao", |
| | | "targetAttrName": "å¾å·", |
| | | "sourceAttrKey": "tuhao", |
| | | "sourceAttrName": "å¾å·", |
| | | "viewModelName": "éå®è§å¾", |
| | | "viewName": "éå®è§å¾", |
| | | "targetClassifyName": "产å", |
| | | "dockingPreAttrRangeVoList": [] |
| | | }, |
| | | { |
| | | "oid": "2023022114224", |
| | | "id": "", |
| | | "name": "", |
| | | "description": "", |
| | | "revisionOid": "48381EB2-4674-6B49-79FF-191BFB17B855", |
| | | "nameOid": "613951FA-9935-4FEB-E729-4F3CCD884515", |
| | | "btmname": "jintegmapconifg", |
| | | "lastR": "1", |
| | | "firstR": "1", |
| | | "lastV": "1", |
| | | "firstV": "1", |
| | | "creator": "1", |
| | | "createTime": "2023-03-30 23:35:13", |
| | | "lastModifier": "1", |
| | | "lastModifyTime": "2023-04-01 15:08:55", |
| | | "revisionRule": "", |
| | | "revisionSeq": 1, |
| | | "revisionValue": "", |
| | | "versionRule": "0", |
| | | "versionSeq": 1, |
| | | "versionValue": "1", |
| | | "lcStatus": "Exist", |
| | | "lcStatusText": "", |
| | | "ts": "2023-04-01 15:08:55.343", |
| | | "owner": "1", |
| | | "copyFromVersion": "", |
| | | "secretGrade": -1, |
| | | "secretGradeText": "", |
| | | "lctid": "defaultLC", |
| | | "data": {}, |
| | | "defaultValue": "", |
| | | "metaListId": "XJ-BF978-7354-CE66-415B-16ABD3ED036D", |
| | | "sourceClassifyId": "XJ-FC9B6-FE27-241F-5FCA-ED4DC17CF95B", |
| | | "sourceClassifyName": "产å", |
| | | "targetAttrId": "B23BF978-7354-CE66-415B-16ABD3ED036D", |
| | | "targetClassifyId": "535FC9B6-FE27-241F-5FCA-ED4DC17CF95B", |
| | | "viewModeId": "XJ-B5416-4928-CFB8-84F5-1955AA890764", |
| | | "viewModeName": "", |
| | | "targetAttrKey": "zhibaoqi", |
| | | "targetAttrName": "è´¨ä¿æ", |
| | | "sourceAttrKey": "zhibaoqi", |
| | | "sourceAttrName": "è´¨ä¿æ", |
| | | "viewModelName": "éå®è§å¾", |
| | | "viewName": "éå®è§å¾", |
| | | "targetClassifyName": "产å", |
| | | "dockingPreAttrRangeVoList": [] |
| | | }, |
| | | { |
| | | "oid": "2023022114225", |
| | | "id": "", |
| | | "name": "", |
| | | "description": "", |
| | | "revisionOid": "0A731F1F-B033-A068-CE37-4BB00BF222EE", |
| | | "nameOid": "4D08AE69-BFF1-71E9-0532-D76A2DD30BAF", |
| | | "btmname": "jintegmapconifg", |
| | | "lastR": "1", |
| | | "firstR": "1", |
| | | "lastV": "1", |
| | | "firstV": "1", |
| | | "creator": "1", |
| | | "createTime": "2023-03-30 23:35:13", |
| | | "lastModifier": "1", |
| | | "lastModifyTime": "2023-04-01 15:08:55", |
| | | "revisionRule": "", |
| | | "revisionSeq": 1, |
| | | "revisionValue": "", |
| | | "versionRule": "0", |
| | | "versionSeq": 1, |
| | | "versionValue": "1", |
| | | "lcStatus": "Exist", |
| | | "lcStatusText": "", |
| | | "ts": "2023-04-01 15:08:55.343", |
| | | "owner": "1", |
| | | "copyFromVersion": "", |
| | | "secretGrade": -1, |
| | | "secretGradeText": "", |
| | | "lctid": "defaultLC", |
| | | "data": {}, |
| | | "defaultValue": "", |
| | | "metaListId": "XJ-46119-D74B-4818-9A89-6235E2234395", |
| | | "sourceClassifyId": "XJ-FC9B6-FE27-241F-5FCA-ED4DC17CF95B", |
| | | "sourceClassifyName": "产å", |
| | | "targetAttrId": "26D46119-D74B-4818-9A89-6235E2234395", |
| | | "targetClassifyId": "535FC9B6-FE27-241F-5FCA-ED4DC17CF95B", |
| | | "viewModeId": "XJ-B5416-4928-CFB8-84F5-1955AA890764", |
| | | "viewModeName": "", |
| | | "targetAttrKey": "revisionvalue", |
| | | "targetAttrName": "çæ¬", |
| | | "sourceAttrKey": "revisionvalue", |
| | | "sourceAttrName": "çæ¬", |
| | | "viewModelName": "éå®è§å¾", |
| | | "viewName": "éå®è§å¾", |
| | | "targetClassifyName": "产å", |
| | | "dockingPreAttrRangeVoList": [] |
| | | }, |
| | | { |
| | | "oid": "2023022114226", |
| | | "id": "", |
| | | "name": "", |
| | | "description": "", |
| | | "revisionOid": "1B4C043F-E464-5DDC-5BCD-2FCC9D3C1EBF", |
| | | "nameOid": "655623AA-9BAA-ECED-2366-C3AEDAC5CAE5", |
| | | "btmname": "jintegmapconifg", |
| | | "lastR": "1", |
| | | "firstR": "1", |
| | | "lastV": "1", |
| | | "firstV": "1", |
| | | "creator": "1", |
| | | "createTime": "2023-03-30 23:35:13", |
| | | "lastModifier": "1", |
| | | "lastModifyTime": "2023-04-01 15:08:55", |
| | | "revisionRule": "", |
| | | "revisionSeq": 1, |
| | | "revisionValue": "", |
| | | "versionRule": "0", |
| | | "versionSeq": 1, |
| | | "versionValue": "1", |
| | | "lcStatus": "Exist", |
| | | "lcStatusText": "", |
| | | "ts": "2023-04-01 15:08:55.343", |
| | | "owner": "1", |
| | | "copyFromVersion": "", |
| | | "secretGrade": -1, |
| | | "secretGradeText": "", |
| | | "lctid": "defaultLC", |
| | | "data": {}, |
| | | "defaultValue": "", |
| | | "metaListId": "XJ-752FC-DC6E-361E-B960-607D7FF908E6", |
| | | "sourceClassifyId": "XJ-FC9B6-FE27-241F-5FCA-ED4DC17CF95B", |
| | | "sourceClassifyName": "产å", |
| | | "targetAttrId": "52A752FC-DC6E-361E-B960-607D7FF908E6", |
| | | "targetClassifyId": "535FC9B6-FE27-241F-5FCA-ED4DC17CF95B", |
| | | "viewModeId": "XJ-B5416-4928-CFB8-84F5-1955AA890764", |
| | | "viewModeName": "", |
| | | "targetAttrKey": "creator", |
| | | "targetAttrName": "å建人", |
| | | "sourceAttrKey": "creator", |
| | | "sourceAttrName": "å建人", |
| | | "viewModelName": "éå®è§å¾", |
| | | "viewName": "éå®è§å¾", |
| | | "targetClassifyName": "产å", |
| | | "dockingPreAttrRangeVoList": [] |
| | | }, |
| | | { |
| | | "oid": "2023022114227", |
| | | "id": "", |
| | | "name": "", |
| | | "description": "", |
| | | "revisionOid": "14672EF9-7686-8FF6-2ACB-C45ECC0B49E9", |
| | | "nameOid": "2D575115-E4E0-A68B-5463-E8D416AF1CF6", |
| | | "btmname": "jintegmapconifg", |
| | | "lastR": "1", |
| | | "firstR": "1", |
| | | "lastV": "1", |
| | | "firstV": "1", |
| | | "creator": "1", |
| | | "createTime": "2023-03-30 23:35:13", |
| | | "lastModifier": "1", |
| | | "lastModifyTime": "2023-04-01 15:08:55", |
| | | "revisionRule": "", |
| | | "revisionSeq": 1, |
| | | "revisionValue": "", |
| | | "versionRule": "0", |
| | | "versionSeq": 1, |
| | | "versionValue": "1", |
| | | "lcStatus": "Exist", |
| | | "lcStatusText": "", |
| | | "ts": "2023-04-01 15:08:55.343", |
| | | "owner": "1", |
| | | "copyFromVersion": "", |
| | | "secretGrade": -1, |
| | | "secretGradeText": "", |
| | | "lctid": "defaultLC", |
| | | "data": {}, |
| | | "defaultValue": "", |
| | | "metaListId": "XJ-799D8-6721-3D79-8EE3-75DAF0680B7E", |
| | | "sourceClassifyId": "XJ-FC9B6-FE27-241F-5FCA-ED4DC17CF95B", |
| | | "sourceClassifyName": "产å", |
| | | "targetAttrId": "518799D8-6721-3D79-8EE3-75DAF0680B7E", |
| | | "targetClassifyId": "535FC9B6-FE27-241F-5FCA-ED4DC17CF95B", |
| | | "viewModeId": "XJ-B5416-4928-CFB8-84F5-1955AA890764", |
| | | "viewModeName": "", |
| | | "targetAttrKey": "createtime", |
| | | "targetAttrName": "å建æ¶é´", |
| | | "sourceAttrKey": "createtime", |
| | | "sourceAttrName": "å建æ¶é´", |
| | | "viewModelName": "éå®è§å¾", |
| | | "viewName": "éå®è§å¾", |
| | | "targetClassifyName": "产å", |
| | | "dockingPreAttrRangeVoList": [] |
| | | }, |
| | | { |
| | | "oid": "2023022114228", |
| | | "id": "", |
| | | "name": "", |
| | | "description": "", |
| | | "revisionOid": "F5C2A81C-1105-7DB7-574F-EF46C8199F4A", |
| | | "nameOid": "390CEE14-E838-3496-7B7C-336A0912BF79", |
| | | "btmname": "jintegmapconifg", |
| | | "lastR": "1", |
| | | "firstR": "1", |
| | | "lastV": "1", |
| | | "firstV": "1", |
| | | "creator": "1", |
| | | "createTime": "2023-03-30 23:35:13", |
| | | "lastModifier": "1", |
| | | "lastModifyTime": "2023-04-01 15:08:55", |
| | | "revisionRule": "", |
| | | "revisionSeq": 1, |
| | | "revisionValue": "", |
| | | "versionRule": "0", |
| | | "versionSeq": 1, |
| | | "versionValue": "1", |
| | | "lcStatus": "Exist", |
| | | "lcStatusText": "", |
| | | "ts": "2023-04-01 15:08:55.343", |
| | | "owner": "1", |
| | | "copyFromVersion": "", |
| | | "secretGrade": -1, |
| | | "secretGradeText": "", |
| | | "lctid": "defaultLC", |
| | | "data": {}, |
| | | "defaultValue": "", |
| | | "metaListId": "XJ-9368E-9BA8-38E8-73F3-7D0531A22009", |
| | | "sourceClassifyId": "XJ-FC9B6-FE27-241F-5FCA-ED4DC17CF95B", |
| | | "sourceClassifyName": "产å", |
| | | "targetAttrId": "4049368E-9BA8-38E8-73F3-7D0531A22009", |
| | | "targetClassifyId": "535FC9B6-FE27-241F-5FCA-ED4DC17CF95B", |
| | | "viewModeId": "XJ-B5416-4928-CFB8-84F5-1955AA890764", |
| | | "viewModeName": "", |
| | | "targetAttrKey": "lastmodifier", |
| | | "targetAttrName": "æåä¿®æ¹äºº", |
| | | "sourceAttrKey": "lastmodifier", |
| | | "sourceAttrName": "æåä¿®æ¹äºº", |
| | | "viewModelName": "éå®è§å¾", |
| | | "viewName": "éå®è§å¾", |
| | | "targetClassifyName": "产å", |
| | | "dockingPreAttrRangeVoList": [] |
| | | } |
| | | ], |
| | | "msg": "æä½æå" |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | { |
| | | "code": 200, |
| | | "success": true, |
| | | "data": [ |
| | | { |
| | | "oid": "2023022114232", |
| | | "id": "", |
| | | "name": "", |
| | | "description": "", |
| | | "revisionOid": "097DC30F-CC8F-595D-0530-7C86C176FC61", |
| | | "nameOid": "D3FB491C-0571-3BB2-604E-563CC579CCAC", |
| | | "btmname": "jrange", |
| | | "lastR": "1", |
| | | "firstR": "1", |
| | | "lastV": "1", |
| | | "firstV": "1", |
| | | "creator": "1", |
| | | "createTime": "2023-03-30 23:35:13", |
| | | "lastModifier": "1", |
| | | "lastModifyTime": "2023-03-30 23:35:13", |
| | | "revisionRule": "", |
| | | "revisionSeq": 1, |
| | | "revisionValue": "", |
| | | "versionRule": "0", |
| | | "versionSeq": 1, |
| | | "versionValue": "1", |
| | | "lcStatus": "Exist", |
| | | "lcStatusText": "", |
| | | "ts": "2023-03-30 23:35:13.027", |
| | | "owner": "1", |
| | | "copyFromVersion": "", |
| | | "secretGrade": -1, |
| | | "secretGradeText": "", |
| | | "lctid": "defaultLC", |
| | | "data": {}, |
| | | "metaListId": "XJ-E34DA-ABF6-9813-8AB0-7651E4B2D54B", |
| | | "numText": "ææ", |
| | | "numTextValue": "1001", |
| | | "targetNumText": "ææ", |
| | | "targetNumTextValue": "7" |
| | | }, |
| | | { |
| | | "oid": "2023022114233", |
| | | "id": "", |
| | | "name": "", |
| | | "description": "", |
| | | "revisionOid": "ABFFA8CA-2BD0-D894-1B2C-2294CBADCBAD", |
| | | "nameOid": "667D8ACC-FA79-521D-9B37-9EFAB338E06A", |
| | | "btmname": "jrange", |
| | | "lastR": "1", |
| | | "firstR": "1", |
| | | "lastV": "1", |
| | | "firstV": "1", |
| | | "creator": "1", |
| | | "createTime": "2023-03-30 23:35:13", |
| | | "lastModifier": "1", |
| | | "lastModifyTime": "2023-03-30 23:35:13", |
| | | "revisionRule": "", |
| | | "revisionSeq": 1, |
| | | "revisionValue": "", |
| | | "versionRule": "0", |
| | | "versionSeq": 1, |
| | | "versionValue": "1", |
| | | "lcStatus": "Exist", |
| | | "lcStatusText": "", |
| | | "ts": "2023-03-30 23:35:13.027", |
| | | "owner": "1", |
| | | "copyFromVersion": "", |
| | | "secretGrade": -1, |
| | | "secretGradeText": "", |
| | | "lctid": "defaultLC", |
| | | "data": {}, |
| | | "metaListId": "XJ-E34DA-ABF6-9813-8AB0-7651E4B2D54B", |
| | | "numText": "æå", |
| | | "numTextValue": "1002", |
| | | "targetNumText": "æå", |
| | | "targetNumTextValue": "5" |
| | | }, |
| | | { |
| | | "oid": "2023022114234", |
| | | "id": "", |
| | | "name": "", |
| | | "description": "", |
| | | "revisionOid": "471212E1-CF4D-1899-C692-FBC3183F2A84", |
| | | "nameOid": "A886A5B0-8617-7FB7-562C-AE3DBBF373EA", |
| | | "btmname": "jrange", |
| | | "lastR": "1", |
| | | "firstR": "1", |
| | | "lastV": "1", |
| | | "firstV": "1", |
| | | "creator": "1", |
| | | "createTime": "2023-03-30 23:35:13", |
| | | "lastModifier": "1", |
| | | "lastModifyTime": "2023-03-30 23:35:13", |
| | | "revisionRule": "", |
| | | "revisionSeq": 1, |
| | | "revisionValue": "", |
| | | "versionRule": "0", |
| | | "versionSeq": 1, |
| | | "versionValue": "1", |
| | | "lcStatus": "Exist", |
| | | "lcStatusText": "", |
| | | "ts": "2023-03-30 23:35:13.027", |
| | | "owner": "1", |
| | | "copyFromVersion": "", |
| | | "secretGrade": -1, |
| | | "secretGradeText": "", |
| | | "lctid": "defaultLC", |
| | | "data": {}, |
| | | "metaListId": "XJ-E34DA-ABF6-9813-8AB0-7651E4B2D54B", |
| | | "numText": "æºç©æ", |
| | | "numTextValue": "1003", |
| | | "targetNumText": "æºç©æ", |
| | | "targetNumTextValue": "6" |
| | | }, |
| | | { |
| | | "oid": "2023022114235", |
| | | "id": "", |
| | | "name": "", |
| | | "description": "", |
| | | "revisionOid": "E08263A0-A7C8-8DBB-3CF0-63EE863A669A", |
| | | "nameOid": "B8CC570A-0448-3E54-9686-0A4EB0004638", |
| | | "btmname": "jrange", |
| | | "lastR": "1", |
| | | "firstR": "1", |
| | | "lastV": "1", |
| | | "firstV": "1", |
| | | "creator": "1", |
| | | "createTime": "2023-03-30 23:35:13", |
| | | "lastModifier": "1", |
| | | "lastModifyTime": "2023-03-30 23:35:13", |
| | | "revisionRule": "", |
| | | "revisionSeq": 1, |
| | | "revisionValue": "", |
| | | "versionRule": "0", |
| | | "versionSeq": 1, |
| | | "versionValue": "1", |
| | | "lcStatus": "Exist", |
| | | "lcStatusText": "", |
| | | "ts": "2023-03-30 23:35:13.027", |
| | | "owner": "1", |
| | | "copyFromVersion": "", |
| | | "secretGrade": -1, |
| | | "secretGradeText": "", |
| | | "lctid": "defaultLC", |
| | | "data": {}, |
| | | "metaListId": "XJ-E34DA-ABF6-9813-8AB0-7651E4B2D54B", |
| | | "numText": "综ä¿", |
| | | "numTextValue": "1004", |
| | | "targetNumText": "综ä¿", |
| | | "targetNumTextValue": "2" |
| | | }, |
| | | { |
| | | "oid": "2023022114236", |
| | | "id": "", |
| | | "name": "", |
| | | "description": "", |
| | | "revisionOid": "C641A4DE-9675-2172-A5AF-C313E6C2A36D", |
| | | "nameOid": "DBB71651-D31D-C8BC-15FB-23A9D28A1325", |
| | | "btmname": "jrange", |
| | | "lastR": "1", |
| | | "firstR": "1", |
| | | "lastV": "1", |
| | | "firstV": "1", |
| | | "creator": "1", |
| | | "createTime": "2023-03-30 23:35:13", |
| | | "lastModifier": "1", |
| | | "lastModifyTime": "2023-03-30 23:35:13", |
| | | "revisionRule": "", |
| | | "revisionSeq": 1, |
| | | "revisionValue": "", |
| | | "versionRule": "0", |
| | | "versionSeq": 1, |
| | | "versionValue": "1", |
| | | "lcStatus": "Exist", |
| | | "lcStatusText": "", |
| | | "ts": "2023-03-30 23:35:13.027", |
| | | "owner": "1", |
| | | "copyFromVersion": "", |
| | | "secretGrade": -1, |
| | | "secretGradeText": "", |
| | | "lctid": "defaultLC", |
| | | "data": {}, |
| | | "metaListId": "XJ-E34DA-ABF6-9813-8AB0-7651E4B2D54B", |
| | | "numText": "èµäº§", |
| | | "numTextValue": "1005", |
| | | "targetNumText": "èµäº§", |
| | | "targetNumTextValue": "4" |
| | | } |
| | | ], |
| | | "msg": "æä½æå" |
| | | } |
| | |
| | | <version>${mybatisplus.join.version}</version> |
| | | </dependency> |
| | | <dependency> |
| | | <groupId>org.apache.cxf</groupId> |
| | | <artifactId>cxf-spring-boot-starter-jaxws</artifactId> |
| | | <version>3.3.1</version> |
| | | <exclusions> |
| | | <exclusion> |
| | | <groupId>org.springframework.boot</groupId> |
| | | <artifactId>spring-boot-starter-logging</artifactId> |
| | | </exclusion> |
| | | <exclusion> |
| | | <groupId>org.springframework.boot</groupId> |
| | | <artifactId>spring-boot-starter</artifactId> |
| | | </exclusion> |
| | | <exclusion> |
| | | <groupId>javax.validation</groupId> |
| | | <artifactId>validation-api</artifactId> |
| | | </exclusion> |
| | | <exclusion> |
| | | <groupId>org.springframework.boot</groupId> |
| | | <artifactId>spring-boot-starter-web</artifactId> |
| | | </exclusion> |
| | | </exclusions> |
| | | </dependency> |
| | | <!--<dependency> |
| | | <groupId>com.vci.ubcs</groupId> |
| | | <artifactId>ubcs-webservice</artifactId> |
| | | <version>3.0.1.RELEASE</version> |
| | | <scope>compile</scope> |
| | | </dependency> |
| | | </dependency>--> |
| | | </dependencies> |
| | | <build> |
| | | <plugins> |
| | |
| | | */ |
| | | public class MdmBtmTypeConstant { |
| | | |
| | | |
| | | /** |
| | | * ç¶æ |
| | | */ |
| | | public static final String CODE_STATUS_FILED = "lcstatus"; |
| | | |
| | | /** |
| | | * éå¢ç çåæ®µ |
| | | */ |
| | | public static final String CODE_GROUP_FIELD = "groupcode"; |
| | | |
| | | /** |
| | | * åç±»ç主é®å段 |
| | | */ |
| | | public static final String CODE_CLASSIFY_OID_FIELD = "codeclsfid"; |
| | | /** |
| | | * 主é¢åºåç±» |
| | | */ |
| | |
| | | * å
³é®å±æ§å¤æéå¤ |
| | | */ |
| | | public static final String CODE_KEY_ATTR_REPEAT_RULE = "codekeyattrrepeat"; |
| | | |
| | | /** |
| | | * åç
§é
ç½® |
| | | */ |
| | | public static final String CODE_REFER_CONFIG = "codereferconfig"; |
| | | |
| | | /** |
| | | * ç¸ä¼¼æ¥è¯¢è§å |
| | |
| | | public static final String SYS_INT_HEADER = "sysintheader"; |
| | | |
| | | |
| | | /** |
| | | * éæå±æ§æ å°å
³ç³»ä¸å¡ç±»å |
| | | */ |
| | | public static final String DOCKING_PRE_JINTEGMAPCONFIG = "jintegmapconifg"; |
| | | /** |
| | | * éæå±æ§æ å°å
³ç³»ä¸å¡ç±»å |
| | | */ |
| | | public static final String DOCKING_PRE_JINTEGMAPCONFIG = "jintegmapconfig"; |
| | | |
| | | /** |
| | | * éæå±æ§æ å°å
³ç³»ä¸å¡ç±»å |
| | | */ |
| | | public static final String DOCKING_PRE_JCLASS = "jclass"; |
| | | /** |
| | | * éæå±æ§æ å°å
³ç³»ä¸å¡ç±»å |
| | | */ |
| | | public static final String DOCKING_PRE_JMETAATRR = "jmetaattr"; |
| | | /** |
| | | * éæéå¢åç±»ä¸å¡ç±»å |
| | | */ |
| | | public static final String DOCKING_PRE_JCLASSIFY = "jclassify"; |
| | | /** |
| | | * éæé墿¨¡å屿§ä¸å¡ç±»å |
| | | */ |
| | | public static final String DOCKING_PRE_JMETAATRR = "jmetaattr"; |
| | | |
| | | /** |
| | | * éæå±æ§æ å°å
³ç³»ä¸å¡ç±»å |
| | | */ |
| | | public static final String DOCKING_PRE_JRANGE = "jrange"; |
| | | /** |
| | | * éæå±æ§åå¼èå´å
³ç³»ä¸å¡ç±»å |
| | | */ |
| | | public static final String DOCKING_PRE_JRANGE = "jrange"; |
| | | |
| | | |
| | | /** |
| | | * éæéå¢ç³è¯·åä¸å¡ç±»å |
| | | */ |
| | | public static final String DOCKING_PRE_JAPPLYFORM = "japplyform"; |
| | | |
| | | |
| | | |
| | | /** |
| | | * éæé墿¨¡å屿§ä¸å¡ç±»å |
| | | */ |
| | | public static final String DOCKING_PRE_JVIEWMODEL = "jviewmodel"; |
| | | |
| | | } |
| | |
| | | package com.vci.ubcs.code.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.vci.ubcs.code.entity.CodeReferConfig; |
| | | import com.vci.ubcs.code.service.CodeReferConfigService; |
| | | import com.vci.ubcs.code.dto.CodeReferConfigDTO; |
| | | import com.vci.ubcs.code.service.ICodeReferConfigService; |
| | | import com.vci.ubcs.code.vo.CodeReferConfigVO; |
| | | import com.vci.ubcs.starter.web.pagemodel.BaseQueryObject; |
| | | import com.vci.ubcs.starter.web.pagemodel.BladeQueryObject; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.springblade.core.mp.support.Query; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springframework.data.domain.Page; |
| | | import org.springframework.data.domain.PageRequest; |
| | | import org.springframework.http.ResponseEntity; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * åç
§é
置表(CodeReferConfig)表æ§å¶å± |
| | |
| | | * æå¡å¯¹è±¡ |
| | | */ |
| | | @Resource |
| | | private CodeReferConfigService codeReferconfigService; |
| | | private ICodeReferConfigService codeReferconfigService; |
| | | |
| | | /** |
| | | * å页æ¥è¯¢ |
| | |
| | | */ |
| | | @GetMapping("getReferConfigPage") |
| | | public R<IPage<CodeReferConfigVO>> queryByPage(BladeQueryObject bladeQueryObject) { |
| | | return R.data(this.codeReferconfigService.queryByPage(bladeQueryObject)); |
| | | return R.data(this.codeReferconfigService.queryByJoinPage(bladeQueryObject)); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢å表 |
| | | * @param codeReferConfigVO ç鿡件 |
| | | * @return æ¥è¯¢ç»æ |
| | | */ |
| | | @GetMapping("getReferConfigList") |
| | | public R<List<CodeReferConfigVO>> queryByList(CodeReferConfigVO codeReferConfigVO) { |
| | | return R.data(this.codeReferconfigService.queryByList(codeReferConfigVO)); |
| | | } |
| | | |
| | | /** |
| | | * éè¿ä¸»é®æ¥è¯¢åæ¡æ°æ® |
| | |
| | | * @return åæ¡æ°æ® |
| | | */ |
| | | @GetMapping("getByOid") |
| | | public R<CodeReferConfig> queryById(@RequestParam("oid") String oid) { |
| | | public R<CodeReferConfigVO> queryById(@RequestParam("oid") String oid) { |
| | | return R.data(this.codeReferconfigService.queryById(oid)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢æ°æ® |
| | | * |
| | | * @param codeReferConfig å®ä½ |
| | | * @param codeReferConfigVO å®ä½ |
| | | * @return æ°å¢ç»æ |
| | | */ |
| | | @PostMapping("/save") |
| | | public R<CodeReferConfig> add(CodeReferConfig codeReferConfig) { |
| | | return R.data(this.codeReferconfigService.insert(codeReferConfig)); |
| | | @PostMapping("/addSave") |
| | | public R<CodeReferConfigVO> add(CodeReferConfigVO codeReferConfigVO) { |
| | | return this.codeReferconfigService.insert(codeReferConfigVO); |
| | | } |
| | | |
| | | /** |
| | | * ç¼è¾æ°æ® |
| | | * |
| | | * @param codeReferConfig å®ä½ |
| | | * @param codeReferConfigVO å®ä½ |
| | | * @return ç¼è¾ç»æ |
| | | */ |
| | | @PutMapping("/edit") |
| | | public R<CodeReferConfig> edit(CodeReferConfig codeReferConfig) { |
| | | return R.data(this.codeReferconfigService.update(codeReferConfig)); |
| | | public R<CodeReferConfigVO> edit(CodeReferConfigVO codeReferConfigVO) { |
| | | return this.codeReferconfigService.update(codeReferConfigVO); |
| | | } |
| | | |
| | | /** |
| | | * å 餿°æ® |
| | | * |
| | | * @param id ä¸»é® |
| | | * @param codeReferConfigDTO ä¸»é® |
| | | * @return å 餿¯å¦æå |
| | | */ |
| | | @DeleteMapping("/del") |
| | | public R<Boolean> deleteById(String id) { |
| | | return R.data(this.codeReferconfigService.deleteById(id)); |
| | | public R<Boolean> deleteById(CodeReferConfigDTO codeReferConfigDTO) { |
| | | return this.codeReferconfigService.deleteById(codeReferConfigDTO); |
| | | } |
| | | |
| | | } |
| | |
| | | import com.vci.ubcs.code.service.MdmIOService; |
| | | import com.vci.ubcs.code.vo.pagemodel.*; |
| | | import com.vci.ubcs.starter.annotation.VciBusinessLog; |
| | | import com.vci.ubcs.starter.revision.model.BaseModel; |
| | | import com.vci.ubcs.starter.util.LocalFileUtil; |
| | | import com.vci.ubcs.starter.web.pagemodel.BaseQueryObject; |
| | | import com.vci.ubcs.starter.web.pagemodel.DataGrid; |
| | |
| | | import com.vci.ubcs.starter.web.util.LangBaseUtil; |
| | | import com.vci.ubcs.starter.web.util.VciBaseUtil; |
| | | import io.swagger.annotations.Api; |
| | | import lombok.AllArgsConstructor; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springblade.core.tool.api.R; |
| | |
| | | import java.io.File; |
| | | import java.io.IOException; |
| | | import java.nio.charset.StandardCharsets; |
| | | import java.util.Collections; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | |
| | | */ |
| | | @PostMapping("/addSaveCode") |
| | | @VciBusinessLog(operateName = "ç³è¯·å个ç¼ç ") |
| | | public R addSaveCode(@RequestBody CodeOrderDTO orderDTO){ |
| | | public R addSaveCode(@RequestBody CodeOrderDTO orderDTO) throws Exception { |
| | | return R.success(engineService.addSaveCode(orderDTO)); |
| | | } |
| | | |
| | |
| | | public MdmUIInfoVO getUIInfoByClassifyOid(String codeClassifyOid,String functionId){ |
| | | return engineService.getUIInfoByClassifyOid(codeClassifyOid,functionId); |
| | | } |
| | | |
| | | |
| | | @GetMapping("/thisistest") |
| | | @ResponseBody |
| | | public List<BaseModel> thisistest(String codeClassifyOid, String functionId) throws Exception { |
| | | return engineService.selectByTypeAndOid("wupin", "b1511bb3-a773-43e2-ac85-a7fde7314a0f,3e08970024835e69f6c2b2ecd90c48c3,582ff205-0dfb-43e0-8223-e772ff1851ab,db0400fe-cc90-4d9d-8da7-1edf06b1481b"); |
| | | // return engineService.getUIInfoByClassifyOid(codeClassifyOid,functionId); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.enumpack; |
| | | |
| | | import com.vci.ubcs.starter.web.enumpck.BaseEnum; |
| | | |
| | | /** |
| | | * åç
§é
ç½®ä¸ç¨å°çââåæ®µç±»å |
| | | * @author ludc |
| | | * @date 2023/5/24 14:09 |
| | | */ |
| | | public enum CodeReferConfigFieldTypeEnum implements BaseEnum { |
| | | |
| | | /** |
| | | * ææ¬æ¡ |
| | | */ |
| | | TEXT("text","ææ¬æ¡"), |
| | | |
| | | /** |
| | | * 䏿èå |
| | | */ |
| | | MODIFY("combox","䏿èå"), |
| | | |
| | | /** |
| | | * åé |
| | | */ |
| | | RADIO("radio","åé"), |
| | | |
| | | /** |
| | | * å¼å
³ |
| | | */ |
| | | SWTICH("swtich","å¼å
³"), |
| | | |
| | | /** |
| | | * æ¶é´ |
| | | */ |
| | | DATE("date","æ¶é´"), |
| | | |
| | | /** |
| | | * ææ¬å |
| | | */ |
| | | TEXTAREA("textarea","ææ¬å"); |
| | | |
| | | /** |
| | | * æä¸¾çå¼ |
| | | */ |
| | | private String value; |
| | | |
| | | /** |
| | | * æä¸¾æ¾ç¤ºææ¬ |
| | | */ |
| | | private String text; |
| | | |
| | | /** |
| | | * è·åæä¸¾å¼ |
| | | * |
| | | * @return æä¸¾å¼ |
| | | */ |
| | | @Override |
| | | public String getValue() { |
| | | return value; |
| | | } |
| | | |
| | | /** |
| | | * 设置æä¸¾å¼ |
| | | * |
| | | * @param value æä¸¾å¼ |
| | | */ |
| | | public void setValue(String value) { |
| | | this.value = value; |
| | | } |
| | | |
| | | /** |
| | | * è·åæä¸¾æ¾ç¤ºææ¬ |
| | | * |
| | | * @return æ¾ç¤ºææ¬ |
| | | */ |
| | | @Override |
| | | public String getText() { |
| | | return text; |
| | | } |
| | | |
| | | /** |
| | | * 设置æ¾ç¤ºææ¬ |
| | | * |
| | | * @param text æ¾ç¤ºææ¬ |
| | | */ |
| | | public void setText(String text) { |
| | | this.text = text; |
| | | } |
| | | |
| | | /** |
| | | * æé 彿° |
| | | * |
| | | * @param value å¼ |
| | | * @param text æ¾ç¤ºææ¬ |
| | | */ |
| | | private CodeReferConfigFieldTypeEnum(String value, String text) { |
| | | this.value = value; |
| | | this.text = text; |
| | | } |
| | | |
| | | /** |
| | | * æ ¹æ®åç§°è·å对åºçæä¸¾å¼ |
| | | * |
| | | * @param text åç§° |
| | | * @return æä¸¾å¼ |
| | | */ |
| | | public static String getValueByText(String text) { |
| | | for (CodeReferConfigFieldTypeEnum wenum : CodeReferConfigFieldTypeEnum.values()) { |
| | | if (wenum.getText().equalsIgnoreCase(text)) { |
| | | return wenum.getValue(); |
| | | } |
| | | } |
| | | return ""; |
| | | } |
| | | |
| | | /** |
| | | * æ ¹æ®æä¸¾å¼è·ååç§° |
| | | * |
| | | * @param value æä¸¾å¼ |
| | | * @return åç§° |
| | | */ |
| | | public static String getTextByValue(String value) { |
| | | for (CodeReferConfigFieldTypeEnum wenum : CodeReferConfigFieldTypeEnum.values()) { |
| | | if (wenum.getValue().equalsIgnoreCase(value)) { |
| | | return wenum.getText(); |
| | | } |
| | | } |
| | | return ""; |
| | | } |
| | | |
| | | /** |
| | | * æ ¹æ®æä¸¾å¼è·åæä¸¾å¯¹è±¡ |
| | | * |
| | | * @param value æä¸¾å¼ |
| | | * @return æä¸¾å¯¹è±¡ï¼ä¸å卿¶åè¿ånull |
| | | */ |
| | | public static CodeReferConfigFieldTypeEnum forValue(String value) { |
| | | for (CodeReferConfigFieldTypeEnum wenum : CodeReferConfigFieldTypeEnum.values()) { |
| | | if (wenum.getValue().equalsIgnoreCase(value)) { |
| | | return wenum; |
| | | } |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.enumpack; |
| | | |
| | | import com.vci.ubcs.starter.web.enumpck.BaseEnum; |
| | | |
| | | /** |
| | | * çéç±»å |
| | | * @author ludc |
| | | * @date 2023/5/24 15:01 |
| | | */ |
| | | public enum CodeReferConfigFilterTypeEnum implements BaseEnum { |
| | | |
| | | /** |
| | | * ååº |
| | | */ |
| | | LIKE("like","å
å«"), |
| | | |
| | | /** |
| | | * éåº |
| | | */ |
| | | EQUAL("=","çäº"), |
| | | |
| | | /** |
| | | * éåº |
| | | */ |
| | | GREATER(">","大äº"), |
| | | |
| | | /** |
| | | * éåº |
| | | */ |
| | | LESS("<","å°äº"), |
| | | |
| | | /** |
| | | * éåº |
| | | */ |
| | | NOTEQUAL("!=","ä¸çäº"), |
| | | |
| | | /** |
| | | * éåº |
| | | */ |
| | | GREATEREQUAL(">=","大äºçäº"), |
| | | |
| | | /** |
| | | * éåº |
| | | */ |
| | | LESSEQUAL("<=","å°äºçäº"); |
| | | |
| | | /** |
| | | * æä¸¾çå¼ |
| | | */ |
| | | private String value; |
| | | |
| | | /** |
| | | * æä¸¾æ¾ç¤ºææ¬ |
| | | */ |
| | | private String text; |
| | | |
| | | /** |
| | | * è·åæä¸¾å¼ |
| | | * |
| | | * @return æä¸¾å¼ |
| | | */ |
| | | @Override |
| | | public String getValue() { |
| | | return value; |
| | | } |
| | | |
| | | /** |
| | | * 设置æä¸¾å¼ |
| | | * |
| | | * @param value æä¸¾å¼ |
| | | */ |
| | | public void setValue(String value) { |
| | | this.value = value; |
| | | } |
| | | |
| | | /** |
| | | * è·åæä¸¾æ¾ç¤ºææ¬ |
| | | * |
| | | * @return æ¾ç¤ºææ¬ |
| | | */ |
| | | @Override |
| | | public String getText() { |
| | | return text; |
| | | } |
| | | |
| | | /** |
| | | * 设置æ¾ç¤ºææ¬ |
| | | * |
| | | * @param text æ¾ç¤ºææ¬ |
| | | */ |
| | | public void setText(String text) { |
| | | this.text = text; |
| | | } |
| | | |
| | | /** |
| | | * æé 彿° |
| | | * |
| | | * @param value å¼ |
| | | * @param text æ¾ç¤ºææ¬ |
| | | */ |
| | | private CodeReferConfigFilterTypeEnum(String value, String text) { |
| | | this.value = value; |
| | | this.text = text; |
| | | } |
| | | |
| | | /** |
| | | * æ ¹æ®åç§°è·å对åºçæä¸¾å¼ |
| | | * |
| | | * @param text åç§° |
| | | * @return æä¸¾å¼ |
| | | */ |
| | | public static String getValueByText(String text) { |
| | | for (CodeReferConfigFilterTypeEnum wenum : CodeReferConfigFilterTypeEnum.values()) { |
| | | if (wenum.getText().equalsIgnoreCase(text)) { |
| | | return wenum.getValue(); |
| | | } |
| | | } |
| | | return ""; |
| | | } |
| | | |
| | | /** |
| | | * æ ¹æ®æä¸¾å¼è·ååç§° |
| | | * |
| | | * @param value æä¸¾å¼ |
| | | * @return åç§° |
| | | */ |
| | | public static String getTextByValue(String value) { |
| | | for (CodeReferConfigFilterTypeEnum wenum : CodeReferConfigFilterTypeEnum.values()) { |
| | | if (wenum.getValue().equalsIgnoreCase(value)) { |
| | | return wenum.getText(); |
| | | } |
| | | } |
| | | return ""; |
| | | } |
| | | |
| | | /** |
| | | * æ ¹æ®æä¸¾å¼è·åæä¸¾å¯¹è±¡ |
| | | * |
| | | * @param value æä¸¾å¼ |
| | | * @return æä¸¾å¯¹è±¡ï¼ä¸å卿¶åè¿ånull |
| | | */ |
| | | public static CodeReferConfigFilterTypeEnum forValue(String value) { |
| | | for (CodeReferConfigFilterTypeEnum wenum : CodeReferConfigFilterTypeEnum.values()) { |
| | | if (wenum.getValue().equalsIgnoreCase(value)) { |
| | | return wenum; |
| | | } |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.enumpack; |
| | | |
| | | import com.vci.ubcs.starter.web.enumpck.BaseEnum; |
| | | |
| | | /** |
| | | * åç
§é
ç½®ä¸ç¨å°çââååºå®ä½ç½® |
| | | * @author ludc |
| | | * @date 2023/5/24 14:38 |
| | | */ |
| | | public enum CodeReferConfigFixedEnum implements BaseEnum{ |
| | | |
| | | /** |
| | | * ä¸åºå® |
| | | */ |
| | | NOFIXED("noFixed","ä¸åºå®"), |
| | | |
| | | /** |
| | | * 䏿èå |
| | | */ |
| | | LEFT("left","左边"), |
| | | |
| | | /** |
| | | * åé |
| | | */ |
| | | RIGHT("right","å³è¾¹"); |
| | | |
| | | /** |
| | | * æä¸¾çå¼ |
| | | */ |
| | | private String value; |
| | | |
| | | /** |
| | | * æä¸¾æ¾ç¤ºææ¬ |
| | | */ |
| | | private String text; |
| | | |
| | | /** |
| | | * è·åæä¸¾å¼ |
| | | * |
| | | * @return æä¸¾å¼ |
| | | */ |
| | | @Override |
| | | public String getValue() { |
| | | return value; |
| | | } |
| | | |
| | | /** |
| | | * 设置æä¸¾å¼ |
| | | * |
| | | * @param value æä¸¾å¼ |
| | | */ |
| | | public void setValue(String value) { |
| | | this.value = value; |
| | | } |
| | | |
| | | /** |
| | | * è·åæä¸¾æ¾ç¤ºææ¬ |
| | | * |
| | | * @return æ¾ç¤ºææ¬ |
| | | */ |
| | | @Override |
| | | public String getText() { |
| | | return text; |
| | | } |
| | | |
| | | /** |
| | | * 设置æ¾ç¤ºææ¬ |
| | | * |
| | | * @param text æ¾ç¤ºææ¬ |
| | | */ |
| | | public void setText(String text) { |
| | | this.text = text; |
| | | } |
| | | |
| | | /** |
| | | * æé 彿° |
| | | * |
| | | * @param value å¼ |
| | | * @param text æ¾ç¤ºææ¬ |
| | | */ |
| | | private CodeReferConfigFixedEnum(String value, String text) { |
| | | this.value = value; |
| | | this.text = text; |
| | | } |
| | | |
| | | /** |
| | | * æ ¹æ®åç§°è·å对åºçæä¸¾å¼ |
| | | * |
| | | * @param text åç§° |
| | | * @return æä¸¾å¼ |
| | | */ |
| | | public static String getValueByText(String text) { |
| | | for (CodeReferConfigFixedEnum wenum : CodeReferConfigFixedEnum.values()) { |
| | | if (wenum.getText().equalsIgnoreCase(text)) { |
| | | return wenum.getValue(); |
| | | } |
| | | } |
| | | return ""; |
| | | } |
| | | |
| | | /** |
| | | * æ ¹æ®æä¸¾å¼è·ååç§° |
| | | * |
| | | * @param value æä¸¾å¼ |
| | | * @return åç§° |
| | | */ |
| | | public static String getTextByValue(String value) { |
| | | for (CodeReferConfigFixedEnum wenum : CodeReferConfigFixedEnum.values()) { |
| | | if (wenum.getValue().equalsIgnoreCase(value)) { |
| | | return wenum.getText(); |
| | | } |
| | | } |
| | | return ""; |
| | | } |
| | | |
| | | /** |
| | | * æ ¹æ®æä¸¾å¼è·åæä¸¾å¯¹è±¡ |
| | | * |
| | | * @param value æä¸¾å¼ |
| | | * @return æä¸¾å¯¹è±¡ï¼ä¸å卿¶åè¿ånull |
| | | */ |
| | | public static CodeReferConfigFixedEnum forValue(String value) { |
| | | for (CodeReferConfigFixedEnum wenum : CodeReferConfigFixedEnum.values()) { |
| | | if (wenum.getValue().equalsIgnoreCase(value)) { |
| | | return wenum; |
| | | } |
| | | } |
| | | return null; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.enumpack; |
| | | |
| | | import com.vci.ubcs.starter.web.enumpck.BaseEnum; |
| | | |
| | | /** |
| | | * åç
§é
ç½®ä¸ç¨å°çââçªå£ç±»å |
| | | * @author ludc |
| | | * @date 2023/5/24 14:09 |
| | | */ |
| | | public enum CodeReferConfigTypeEnum implements BaseEnum { |
| | | |
| | | /** |
| | | * é»è®¤æ ·å¼ |
| | | */ |
| | | DEFAULT("default","é»è®¤æ ·å¼"), |
| | | |
| | | /** |
| | | * å¹³å°é
ç½® |
| | | */ |
| | | STAND("stand","å¹³å°é
ç½®"), |
| | | |
| | | /** |
| | | * æ å½¢ |
| | | */ |
| | | TREE("tree","æ å½¢"), |
| | | |
| | | /** |
| | | * æ å½¢ |
| | | */ |
| | | GRID("grid","å表"), |
| | | |
| | | /** |
| | | * é¨é¨æ |
| | | */ |
| | | ORGDEPARTMENTREFER("refer/OrgDepartmentRefer","é¨é¨æ "), |
| | | |
| | | /** |
| | | * é¨é¨å表 |
| | | */ |
| | | ORGDEPARTMENTGRIDREFERS("refer/OrgDepartmentGridRefers","é¨é¨å表"), |
| | | |
| | | /** |
| | | * ç¨æ· |
| | | */ |
| | | SMUSERREFER("refer/SmUserRefer","ç¨æ·"), |
| | | |
| | | /** |
| | | * ç¨æ·å表 |
| | | */ |
| | | SMUSERGRIDREFER("refer/SmUserGridRefer","ç¨æ·å表"), |
| | | |
| | | /** |
| | | * è§è²å表 |
| | | */ |
| | | SMROLEREFER("refer/SmRoleRefer","è§è²å表"), |
| | | |
| | | /** |
| | | * èå¡ |
| | | */ |
| | | ORGDUTYREFER("refer/OrgDutyRefer","èå¡"), |
| | | |
| | | /** |
| | | * å·¥ç§ |
| | | */ |
| | | SMWORKTYPEREFER("refer/SmWorkTypeRefer","å·¥ç§"), |
| | | |
| | | /** |
| | | * æµç¨æ¨¡æ¿ |
| | | */ |
| | | WFPROCESSTEMPLATEREFER("refer/WfProcessTemplateRefer","æµç¨æ¨¡æ¿"); |
| | | |
| | | /** |
| | | * æä¸¾çå¼ |
| | | */ |
| | | private String value; |
| | | |
| | | /** |
| | | * æä¸¾æ¾ç¤ºææ¬ |
| | | */ |
| | | private String text; |
| | | |
| | | /** |
| | | * è·åæä¸¾å¼ |
| | | * |
| | | * @return æä¸¾å¼ |
| | | */ |
| | | @Override |
| | | public String getValue() { |
| | | return value; |
| | | } |
| | | |
| | | /** |
| | | * 设置æä¸¾å¼ |
| | | * |
| | | * @param value æä¸¾å¼ |
| | | */ |
| | | public void setValue(String value) { |
| | | this.value = value; |
| | | } |
| | | |
| | | /** |
| | | * è·åæä¸¾æ¾ç¤ºææ¬ |
| | | * |
| | | * @return æ¾ç¤ºææ¬ |
| | | */ |
| | | @Override |
| | | public String getText() { |
| | | return text; |
| | | } |
| | | |
| | | /** |
| | | * 设置æ¾ç¤ºææ¬ |
| | | * |
| | | * @param text æ¾ç¤ºææ¬ |
| | | */ |
| | | public void setText(String text) { |
| | | this.text = text; |
| | | } |
| | | |
| | | /** |
| | | * æé 彿° |
| | | * |
| | | * @param value å¼ |
| | | * @param text æ¾ç¤ºææ¬ |
| | | */ |
| | | private CodeReferConfigTypeEnum(String value, String text) { |
| | | this.value = value; |
| | | this.text = text; |
| | | } |
| | | |
| | | /** |
| | | * æ ¹æ®åç§°è·å对åºçæä¸¾å¼ |
| | | * |
| | | * @param text åç§° |
| | | * @return æä¸¾å¼ |
| | | */ |
| | | public static String getValueByText(String text) { |
| | | for (CodeReferConfigTypeEnum wenum : CodeReferConfigTypeEnum.values()) { |
| | | if (wenum.getText().equalsIgnoreCase(text)) { |
| | | return wenum.getValue(); |
| | | } |
| | | } |
| | | return ""; |
| | | } |
| | | |
| | | /** |
| | | * æ ¹æ®æä¸¾å¼è·ååç§° |
| | | * |
| | | * @param value æä¸¾å¼ |
| | | * @return åç§° |
| | | */ |
| | | public static String getTextByValue(String value) { |
| | | for (CodeReferConfigTypeEnum wenum : CodeReferConfigTypeEnum.values()) { |
| | | if (wenum.getValue().equalsIgnoreCase(value)) { |
| | | return wenum.getText(); |
| | | } |
| | | } |
| | | return ""; |
| | | } |
| | | |
| | | /** |
| | | * æ ¹æ®æä¸¾å¼è·åæä¸¾å¯¹è±¡ |
| | | * |
| | | * @param value æä¸¾å¼ |
| | | * @return æä¸¾å¯¹è±¡ï¼ä¸å卿¶åè¿ånull |
| | | */ |
| | | public static CodeReferConfigTypeEnum forValue(String value) { |
| | | for (CodeReferConfigTypeEnum wenum : CodeReferConfigTypeEnum.values()) { |
| | | if (wenum.getValue().equalsIgnoreCase(value)) { |
| | | return wenum; |
| | | } |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | } |
| | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.vci.ubcs.code.entity.CodeClassify; |
| | | import com.vci.ubcs.code.entity.CodeClassifyTemplateAttr; |
| | | import com.vci.ubcs.code.mapper.CodeClassifyMapper; |
| | | import com.vci.ubcs.code.service.ICodeClassifyTemplateAttrService; |
| | | import com.vci.ubcs.code.service.MdmEngineService; |
| | | import com.vci.ubcs.code.vo.pagemodel.CodeClassifyTemplateAttrVO; |
| | | import com.vci.ubcs.code.vo.pagemodel.CodeClassifyTemplateVO; |
| | | import com.vci.ubcs.starter.revision.model.TreeQueryObject; |
| | | import com.vci.ubcs.starter.web.pagemodel.Tree; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springblade.core.mp.support.BladePage; |
| | | import org.springblade.core.mp.support.Condition; |
| | | import org.springblade.core.mp.support.Query; |
| | | import com.vci.ubcs.code.service.ICodeClassifyService; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import springfox.documentation.annotations.ApiIgnore; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 主é¢åºå®ä¹è¡¨ Feignå®ç°ç±» |
| | |
| | | public class CodeClassifyClient implements ICodeClassifyClient { |
| | | |
| | | private final ICodeClassifyService plCodeClassifyService; |
| | | private final ICodeClassifyTemplateAttrService codeClassifyTemplateAttrService; |
| | | |
| | | private final MdmEngineService engineService; |
| | | CodeClassifyMapper codeClassifyMapper; |
| | | |
| | | @Override |
| | |
| | | return BladePage.of(page); |
| | | } |
| | | |
| | | /*** |
| | | * è·å主é¢åºåç±»å±çº§æ |
| | | * @param treeQueryObject |
| | | * @return 主é¢åºåç±» |
| | | */ |
| | | @Override |
| | | @PostMapping(CODE_CLASSIFY_TREE) |
| | | public List<Tree> referCodeClassifyTree(TreeQueryObject treeQueryObject) { |
| | | return plCodeClassifyService.referTree(treeQueryObject); |
| | | } |
| | | |
| | | @Override |
| | | @GetMapping(CODE_ATTRIBUTE_LIST) |
| | | public List<CodeClassifyTemplateAttrVO> listCodeAttributeByClassId(String codeClassifyId) { |
| | | CodeClassifyTemplateVO codeClassifyTemplateVO=engineService.getUsedTemplateByClassifyOid(codeClassifyId,true); |
| | | return codeClassifyTemplateVO.getAttributes(); |
| | | } |
| | | |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
| | | * |
| | | * Redistribution and use in source and binary forms, with or without |
| | | * modification, are permitted provided that the following conditions are met: |
| | | * |
| | | * Redistributions of source code must retain the above copyright notice, |
| | | * this list of conditions and the following disclaimer. |
| | | * Redistributions in binary form must reproduce the above copyright |
| | | * notice, this list of conditions and the following disclaimer in the |
| | | * documentation and/or other materials provided with the distribution. |
| | | * Neither the name of the dreamlu.net developer nor the names of its |
| | | * contributors may be used to endorse or promote products derived from |
| | | * this software without specific prior written permission. |
| | | * Author: Chill åºéª (smallchill@163.com) |
| | | */ |
| | | package com.vci.ubcs.code.feign; |
| | | |
| | | |
| | | import com.vci.ubcs.code.service.MdmEngineService; |
| | | import com.vci.ubcs.starter.revision.model.BaseModel; |
| | | import lombok.AllArgsConstructor; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import springfox.documentation.annotations.ApiIgnore; |
| | | |
| | | import java.beans.IntrospectionException; |
| | | import java.lang.reflect.InvocationTargetException; |
| | | import java.sql.SQLException; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * ç¼ç ä¿¡æ¯ Feignå®ç°ç±» |
| | | * |
| | | * @author yuxc |
| | | * @since 2023-05-05 |
| | | */ |
| | | @ApiIgnore() |
| | | @RestController |
| | | @AllArgsConstructor |
| | | public class MdmEngineClient implements IMdmEngineClient { |
| | | private final MdmEngineService mdmEngineService; |
| | | /** |
| | | * ä¼ å
¥ä¸å¡ç±»å以åç¸oidéåæ¥è¯¢æ°æ®è¿è¡è¿å |
| | | * |
| | | * @param btmType ä¸å¡ç±»å |
| | | * @param oids éè¦æ¥è¯¢çoidéå éå·åå¼ |
| | | * @return æ¥è¯¢åºçæ°æ® |
| | | */ |
| | | @Override |
| | | @GetMapping(SELECT_BY_TYPE_OID) |
| | | public R<List<BaseModel>> selectByTypeAndOid(String btmType, String oids) { |
| | | try { |
| | | return R.data(mdmEngineService.selectByTypeAndOid(btmType, oids)); |
| | | } catch (Exception e) { |
| | | throw new RuntimeException(e); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * ä¼ å
¥ä¸å¡ç±»å以åç¸å
³æ°æ®è¿è¡æ¹éæå
¥æä½ |
| | | * |
| | | * @param btmType ä¸å¡ç±»å |
| | | * @param baseModels å¤çæ°æ® |
| | | * @return å¤çæåæ°æ®æ¡æ° |
| | | */ |
| | | @Override |
| | | @PostMapping(INSERT_BATCH_BY_TYPE) |
| | | public R<Integer> insertBatchByType(String btmType, List<BaseModel> baseModels) { |
| | | try { |
| | | return R.data(mdmEngineService.insertBatchByType(btmType,baseModels)); |
| | | } catch (Exception e) { |
| | | throw new RuntimeException(e); |
| | | } |
| | | } |
| | | |
| | | } |
| | |
| | | |
| | | /** |
| | | * æ¹éæå
¥ |
| | | * @param codeBasicSecList |
| | | //* @param codeBasicSecList |
| | | * @return |
| | | */ |
| | | Long insertBatch(@Param("entities") List<CodeBasicSec> codeBasicSecList); |
| | | // Long insertBatch(@Param("entities") List<CodeBasicSec> codeBasicSecList); |
| | | |
| | | List<String> getOidByCodeclassifysecOid(@Param("codeClassifySecOid") String codeClassifySecOid); |
| | | |
| | |
| | | package com.vci.ubcs.code.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.github.yulichang.base.MPJBaseMapper; |
| | | import com.vci.ubcs.code.dto.CodeReferConfigDTO; |
| | | import com.vci.ubcs.code.entity.CodeReferConfig; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.springframework.data.domain.Pageable; |
| | |
| | | /** |
| | | * åç
§é
置表(CodeReferConfig)è¡¨æ°æ®åºè®¿é®å± |
| | | * |
| | | * @author makejava |
| | | * @author ludc |
| | | * @since 2023-05-19 17:47:51 |
| | | */ |
| | | public interface CodeReferConfigMapper extends BaseMapper<CodeReferConfig> { |
| | | public interface CodeReferConfigMapper extends MPJBaseMapper<CodeReferConfig> { |
| | | |
| | | /** |
| | | * éè¿IDæ¥è¯¢åæ¡æ°æ® |
| | |
| | | * æ¥è¯¢æå®è¡æ°æ® |
| | | * |
| | | * @param codeReferConfig æ¥è¯¢æ¡ä»¶ |
| | | * @param pageable å页对象 |
| | | * @param page å页对象 |
| | | * @return 对象å表 |
| | | */ |
| | | List<CodeReferConfig> queryAllByPage(CodeReferConfig codeReferConfig, @Param("pageable") Pageable pageable); |
| | | IPage<CodeReferConfig> selectJoinPage(@Param("codeReferConfig") CodeReferConfig codeReferConfig, IPage page); |
| | | |
| | | } |
| | | |
| | |
| | | /** |
| | | * å¼ç¨ç 段ï¼åç
§é
ç½®çé¢ï¼æ¾ç¤ºç屿§é
置表(CodeShowFieldConfig)è¡¨æ°æ®åºè®¿é®å± |
| | | * |
| | | * @author makejava |
| | | * @author ludc |
| | | * @since 2023-05-19 17:58:55 |
| | | */ |
| | | public interface CodeShowFieldConfigMapper extends BaseMapper<CodeShowFieldConfig> { |
| | | |
| | | /** |
| | | * éè¿IDæ¥è¯¢åæ¡æ°æ® |
| | | * |
| | | * @param oid ä¸»é® |
| | | * @return å®ä¾å¯¹è±¡ |
| | | */ |
| | | CodeShowFieldConfig queryById(String oid); |
| | | |
| | | /** |
| | | * æ¥è¯¢æå®è¡æ°æ® |
| | | * |
| | | * @param plCodeShowfieldconfig æ¥è¯¢æ¡ä»¶ |
| | | * @param pageable å页对象 |
| | | * @return 对象å表 |
| | | */ |
| | | List<CodeShowFieldConfig> queryAllByLimit(CodeShowFieldConfig plCodeShowfieldconfig, @Param("pageable") Pageable pageable); |
| | | |
| | | /** |
| | | * ç»è®¡æ»è¡æ° |
| | | * |
| | | * @param plCodeShowfieldconfig æ¥è¯¢æ¡ä»¶ |
| | | * @return æ»è¡æ° |
| | | */ |
| | | long count(CodeShowFieldConfig plCodeShowfieldconfig); |
| | | |
| | | /** |
| | | * æ°å¢æ°æ® |
| | | * |
| | | * @param plCodeShowfieldconfig å®ä¾å¯¹è±¡ |
| | | * @return å½±åè¡æ° |
| | | */ |
| | | int insert(CodeShowFieldConfig plCodeShowfieldconfig); |
| | | |
| | | /** |
| | | * æ¹éæ°å¢æ°æ®ï¼MyBatisåçforeachæ¹æ³ï¼ |
| | | * |
| | | * @param entities List<CodeShowFieldConfig> å®ä¾å¯¹è±¡å表 |
| | | * @return å½±åè¡æ° |
| | | */ |
| | | int insertBatch(@Param("entities") List<CodeShowFieldConfig> entities); |
| | | |
| | | /** |
| | | * æ¹éæ°å¢ææä¸»é®æ´æ°æ°æ®ï¼MyBatisåçforeachæ¹æ³ï¼ |
| | | * |
| | | * @param entities List<CodeShowFieldConfig> å®ä¾å¯¹è±¡å表 |
| | | * @return å½±åè¡æ° |
| | | * @throws org.springframework.jdbc.BadSqlGrammarException å
¥åæ¯ç©ºListçæ¶å伿SQLè¯å¥é误çå¼å¸¸ï¼è¯·èªè¡æ ¡éªå
¥å |
| | | */ |
| | | int insertOrUpdateBatch(@Param("entities") List<CodeShowFieldConfig> entities); |
| | | |
| | | /** |
| | | * ä¿®æ¹æ°æ® |
| | | * |
| | | * @param plCodeShowfieldconfig å®ä¾å¯¹è±¡ |
| | | * @return å½±åè¡æ° |
| | | */ |
| | | int update(CodeShowFieldConfig plCodeShowfieldconfig); |
| | | |
| | | /** |
| | | * éè¿ä¸»é®å 餿°æ® |
| | | * |
| | | * @param oid ä¸»é® |
| | | * @return å½±åè¡æ° |
| | | */ |
| | | int deleteById(String oid); |
| | | |
| | | } |
| | | |
| | |
| | | /** |
| | | * å¼ç¨ç 段ï¼åç
§é
ç½®çé¢ï¼æ¥è¯¢æ¡ä»¶é
置表(CodeSrchCondConfig)è¡¨æ°æ®åºè®¿é®å± |
| | | * |
| | | * @author makejava |
| | | * @author ludc |
| | | * @since 2023-05-19 17:58:56 |
| | | */ |
| | | public interface CodeSrchCondConfigMapper extends BaseMapper<CodeSrchCondConfig> { |
| | | |
| | | /** |
| | | * éè¿IDæ¥è¯¢åæ¡æ°æ® |
| | | * |
| | | * @param oid ä¸»é® |
| | | * @return å®ä¾å¯¹è±¡ |
| | | */ |
| | | CodeSrchCondConfig queryById(String oid); |
| | | |
| | | /** |
| | | * æ¥è¯¢æå®è¡æ°æ® |
| | | * |
| | | * @param plCodeSrchcondconfig æ¥è¯¢æ¡ä»¶ |
| | | * @param pageable å页对象 |
| | | * @return 对象å表 |
| | | */ |
| | | List<CodeSrchCondConfig> queryAllByLimit(CodeSrchCondConfig plCodeSrchcondconfig, @Param("pageable") Pageable pageable); |
| | | |
| | | /** |
| | | * ç»è®¡æ»è¡æ° |
| | | * |
| | | * @param plCodeSrchcondconfig æ¥è¯¢æ¡ä»¶ |
| | | * @return æ»è¡æ° |
| | | */ |
| | | long count(CodeSrchCondConfig plCodeSrchcondconfig); |
| | | |
| | | /** |
| | | * æ°å¢æ°æ® |
| | | * |
| | | * @param plCodeSrchcondconfig å®ä¾å¯¹è±¡ |
| | | * @return å½±åè¡æ° |
| | | */ |
| | | int insert(CodeSrchCondConfig plCodeSrchcondconfig); |
| | | |
| | | /** |
| | | * æ¹éæ°å¢æ°æ®ï¼MyBatisåçforeachæ¹æ³ï¼ |
| | | * |
| | | * @param entities List<CodeSrchCondConfig> å®ä¾å¯¹è±¡å表 |
| | | * @return å½±åè¡æ° |
| | | */ |
| | | int insertBatch(@Param("entities") List<CodeSrchCondConfig> entities); |
| | | |
| | | /** |
| | | * æ¹éæ°å¢ææä¸»é®æ´æ°æ°æ®ï¼MyBatisåçforeachæ¹æ³ï¼ |
| | | * |
| | | * @param entities List<CodeSrchCondConfig> å®ä¾å¯¹è±¡å表 |
| | | * @return å½±åè¡æ° |
| | | * @throws org.springframework.jdbc.BadSqlGrammarException å
¥åæ¯ç©ºListçæ¶å伿SQLè¯å¥é误çå¼å¸¸ï¼è¯·èªè¡æ ¡éªå
¥å |
| | | */ |
| | | int insertOrUpdateBatch(@Param("entities") List<CodeSrchCondConfig> entities); |
| | | |
| | | /** |
| | | * ä¿®æ¹æ°æ® |
| | | * |
| | | * @param plCodeSrchcondconfig å®ä¾å¯¹è±¡ |
| | | * @return å½±åè¡æ° |
| | | */ |
| | | int update(CodeSrchCondConfig plCodeSrchcondconfig); |
| | | |
| | | /** |
| | | * éè¿ä¸»é®å 餿°æ® |
| | | * |
| | | * @param oid ä¸»é® |
| | | * @return å½±åè¡æ° |
| | | */ |
| | | int deleteById(String oid); |
| | | |
| | | } |
| | | |
| | |
| | | |
| | | List<Map> selectBySql(@Param("inSql") String inSql); |
| | | |
| | | /** |
| | | * ä¼ å
¥è¡¨æï¼mapï¼list<map>宿æ¹éæ´æ°æä½ |
| | | * @param tableName 表å |
| | | * @param columnMap åæ¡mapç¨äºè·åkeyä½ä¸ºå段 |
| | | * @param mapList éè¦æå
¥çææè®°å½ |
| | | * @return æå
¥æåçæ¡æ° |
| | | */ |
| | | Integer insertByBaseModel(String tableName,Map<String,String> columnMap,List<Map<String,String>> mapList); |
| | | |
| | | } |
| | |
| | | List<CodeBasicSecVO> codeBasicSecDO2VOs(Collection<CodeBasicSec> codeBasicSecDOs, boolean hasFixedValue) throws VciBaseException; |
| | | |
| | | /** |
| | | * æ¹éæ°æ®å¯¹è±¡è½¬æ¢ä¸ºæ¾ç¤ºå¯¹è±¡ |
| | | * @param codeBasicSecDOs æ°æ®å¯¹è±¡å表 |
| | | * @return æ¾ç¤ºå¯¹è±¡ |
| | | * @throws VciBaseException åæ°ä¸ºç©ºæè
ä¸åå¨çæ¶å伿åºå¼å¸¸ |
| | | */ |
| | | List<CodeBasicSecVO> codeBasicSecDO2VOs(Collection<CodeBasicSec> codeBasicSecDOs) throws VciBaseException; |
| | | |
| | | /** |
| | | * æ°æ®å¯¹è±¡è½¬æ¢ä¸ºæ¾ç¤ºå¯¹è±¡ |
| | | * @param codeBasicSecDO æ°æ®å¯¹è±¡ |
| | | * @return æ¾ç¤ºå¯¹è±¡ |
| | |
| | | */ |
| | | IPage<CodeOsattributeVO> selectCodeOsattributePage(IPage<CodeOsattributeVO> page, CodeOsattributeVO CodeOsattribute); |
| | | |
| | | |
| | | boolean isDefaultAttr(String selectKey); |
| | | |
| | | Map<String, CodeOsattributeVO> getDefaultAttributeVOMap(); |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.service; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.github.yulichang.base.MPJBaseService; |
| | | import com.vci.ubcs.code.dto.CodeReferConfigDTO; |
| | | import com.vci.ubcs.code.entity.CodeReferConfig; |
| | | import com.vci.ubcs.code.vo.CodeReferConfigVO; |
| | | import com.vci.ubcs.starter.web.pagemodel.BladeQueryObject; |
| | | import org.springblade.core.tool.api.R; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * åç
§é
置表(CodeReferConfig)表æå¡æ¥å£ |
| | | * |
| | | * @author ludc |
| | | * @since 2023-05-19 17:47:59 |
| | | */ |
| | | public interface ICodeReferConfigService extends MPJBaseService<CodeReferConfig> { |
| | | |
| | | /** |
| | | * éè¿IDæ¥è¯¢åæ¡æ°æ® |
| | | * |
| | | * @param oid ä¸»é® |
| | | * @return å®ä¾å¯¹è±¡ |
| | | */ |
| | | CodeReferConfigVO queryById(String oid); |
| | | |
| | | /** |
| | | * å页æ¥è¯¢ |
| | | * |
| | | * @param bladeQueryObject ç鿡件 |
| | | * @return æ¥è¯¢ç»æ |
| | | */ |
| | | IPage<CodeReferConfigVO> queryByJoinPage(BladeQueryObject bladeQueryObject); |
| | | |
| | | /** |
| | | * å页æ¥è¯¢ |
| | | * |
| | | * @param codeReferConfigVO ç鿡件 |
| | | * @return æ¥è¯¢ç»æ |
| | | */ |
| | | List<CodeReferConfigVO> queryByList(CodeReferConfigVO codeReferConfigVO); |
| | | |
| | | /** |
| | | * æ°å¢æ°æ® |
| | | * |
| | | * @param codeReferConfigVO å®ä¾å¯¹è±¡ |
| | | * @return å®ä¾å¯¹è±¡ |
| | | */ |
| | | R insert(CodeReferConfigVO codeReferConfigVO); |
| | | |
| | | /** |
| | | * ä¿®æ¹æ°æ® |
| | | * |
| | | * @param codeReferConfigVO å®ä¾å¯¹è±¡ |
| | | * @return å®ä¾å¯¹è±¡ |
| | | */ |
| | | R update(CodeReferConfigVO codeReferConfigVO); |
| | | |
| | | /** |
| | | * éè¿ä¸»é®å 餿°æ® |
| | | * |
| | | * @param codeReferConfigDTO |
| | | * @return æ¯å¦æå |
| | | */ |
| | | R deleteById(CodeReferConfigDTO codeReferConfigDTO); |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.vci.ubcs.code.entity.CodeShowFieldConfig; |
| | | import com.vci.ubcs.code.vo.CodeShowFieldConfigVO; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * å¼ç¨ç 段ï¼åç
§é
ç½®çé¢ï¼æ¾ç¤ºç屿§é
置表(CodeShowFieldConfig)表æå¡æ¥å£ |
| | | * |
| | | * @author ludc |
| | | * @since 2023-05-19 17:58:56 |
| | | */ |
| | | public interface ICodeShowFieldConfigService extends IService<CodeShowFieldConfig> { |
| | | |
| | | /** |
| | | * æ°å¢æ°æ® |
| | | * |
| | | * @param codeShowFieldConfig å®ä¾å¯¹è±¡ |
| | | * @return å®ä¾å¯¹è±¡ |
| | | */ |
| | | boolean insert(CodeShowFieldConfig codeShowFieldConfig); |
| | | |
| | | /** |
| | | * æ¹éæ°å¢æ°æ® |
| | | * |
| | | * @param codeShowFieldConfigVOS å®ä¾å¯¹è±¡ |
| | | * @return å®ä¾å¯¹è±¡ |
| | | */ |
| | | boolean insertBatch(List<CodeShowFieldConfigVO> codeShowFieldConfigVOS, String oid); |
| | | |
| | | /** |
| | | * æ¹éä¿®æ¹æ°æ® |
| | | * |
| | | * @param codeShowFieldConfigVOS å®ä¾å¯¹è±¡ |
| | | * @return å®ä¾å¯¹è±¡ |
| | | */ |
| | | boolean updateBatch(List<CodeShowFieldConfigVO> codeShowFieldConfigVOS); |
| | | |
| | | /** |
| | | * éè¿ä¸»é®å 餿°æ® |
| | | * |
| | | * @param oid ä¸»é® |
| | | * @return æ¯å¦æå |
| | | */ |
| | | boolean deleteById(String oid); |
| | | |
| | | /** |
| | | * éè¿å
³èçåç
§é
置主é®å 餿°æ® |
| | | * |
| | | * @param oid |
| | | * @return æ¯å¦æå |
| | | */ |
| | | boolean deleteByReferConfigOid(String oid); |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.vci.ubcs.code.entity.CodeSrchCondConfig; |
| | | import com.vci.ubcs.code.vo.CodeSrchCondConfigVO; |
| | | import org.springframework.data.domain.Page; |
| | | import org.springframework.data.domain.PageRequest; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * å¼ç¨ç 段ï¼åç
§é
ç½®çé¢ï¼æ¥è¯¢æ¡ä»¶é
置表(CodeSrchCondConfig)表æå¡æ¥å£ |
| | | * |
| | | * @author ludc |
| | | * @since 2023-05-19 17:58:56 |
| | | */ |
| | | public interface ICodeSrchCondConfigService extends IService<CodeSrchCondConfig> { |
| | | |
| | | /** |
| | | * æ°å¢æ°æ® |
| | | * |
| | | * @param codeSrchCondConfig å®ä¾å¯¹è±¡ |
| | | * @return å®ä¾å¯¹è±¡ |
| | | */ |
| | | boolean insert(CodeSrchCondConfig codeSrchCondConfig); |
| | | |
| | | /** |
| | | * æ¹éæ°å¢æ°æ® |
| | | * |
| | | * @param codeSrchCondConfigVOS å®ä¾å¯¹è±¡ |
| | | * @return å®ä¾å¯¹è±¡ |
| | | */ |
| | | boolean insertBatch(List<CodeSrchCondConfigVO> codeSrchCondConfigVOS, String oid); |
| | | |
| | | /** |
| | | * æ¹éââä¿®æ¹æ°æ® |
| | | * |
| | | * @param codeSrchCondConfigVOS å®ä¾å¯¹è±¡ |
| | | * @return å®ä¾å¯¹è±¡ |
| | | */ |
| | | boolean updateBatch(List<CodeSrchCondConfigVO> codeSrchCondConfigVOS); |
| | | |
| | | /** |
| | | * éè¿ä¸»é®å 餿°æ® |
| | | * |
| | | * @param oid ä¸»é® |
| | | * @return æ¯å¦æå |
| | | */ |
| | | boolean deleteById(String oid); |
| | | |
| | | /** |
| | | * éè¿å
³èçåç
§é
ç½®idå 餿°æ® |
| | | * |
| | | * @param oid åç
§é
ç½®ä¸»é® |
| | | * @return æ¯å¦æå |
| | | */ |
| | | boolean deleteByReferConfigOid(String oid); |
| | | |
| | | } |
| | |
| | | import com.vci.ubcs.code.dto.datapush.BaseModelDTO; |
| | | import com.vci.ubcs.code.entity.CodeWupin; |
| | | import com.vci.ubcs.code.vo.CodeKeyAttrRepeatVO; |
| | | import com.vci.ubcs.code.vo.pagemodel.*; |
| | | import com.vci.ubcs.code.vo.pagemodel.UITableFieldVO; |
| | | import com.vci.ubcs.code.vo.pagemodel.*; |
| | | import com.vci.ubcs.starter.revision.model.BaseModel; |
| | | import com.vci.ubcs.starter.web.pagemodel.*; |
| | | import org.springblade.core.tool.api.R; |
| | | |
| | | import java.util.*; |
| | | import java.beans.IntrospectionException; |
| | | import java.lang.reflect.InvocationTargetException; |
| | | import java.sql.SQLException; |
| | | import java.util.Collection; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * ä¸»æ°æ®å¼ææå¡ |
| | |
| | | * @param orderDTO ç³è¯·çä¿¡æ¯ï¼éè¦å
å«å±æ§çå
容åç æ®µç¸å
³çå
容 |
| | | * @return è¿åç¼ç çå
容 |
| | | */ |
| | | String addSaveCode(CodeOrderDTO orderDTO); |
| | | String addSaveCode(CodeOrderDTO orderDTO) throws Exception; |
| | | |
| | | /** |
| | | * 夿ç¼ç çç æ®µæ¯å¦è¾å
¥æè
éæ©äºç å¼ |
| | |
| | | * åå§åä¸å¡ç±»å |
| | | * --å建人é»è®¤ä¸ºå½åç¨æ·ï¼å¦æéè¦ä¿®æ¹ï¼å¯ä»¥å¨è·ååèªè¡å¤ç |
| | | * @param btmName ä¸å¡ç±»åçåç§°ï¼ä¼èªå¨åæå°å |
| | | * @return CodeWupinEntity |
| | | * @return BaseModel |
| | | */ |
| | | CodeWupin createCBOByBtmName(String btmName); |
| | | BaseModel createCBOByBtmName(String btmName); |
| | | |
| | | /** |
| | | * ä¿åå¯è¾å¯éçä¿¡æ¯ |
| | |
| | | * @return UIç¸å
³çå
容 |
| | | */ |
| | | MdmUIInfoVO getUIInfoByClassifyOid(String codeClassifyOid, String functionId); |
| | | |
| | | /** |
| | | * ä¼ å
¥ä¸å¡ç±»å以åç¸å
³æ°æ®è¿è¡æ¹éæå
¥æä½ |
| | | * |
| | | * @param btmType ä¸å¡ç±»å |
| | | * @param baseModels å¤çæ°æ® |
| | | * @return å¤çæåæ°æ®æ¡æ° |
| | | */ |
| | | Integer insertBatchByType(String btmType, List<BaseModel> baseModels) throws Exception; |
| | | /** |
| | | * ä¼ å
¥ä¸å¡ç±»å以åç¸oidéåæ¥è¯¢æ°æ®è¿è¡è¿å |
| | | * |
| | | * @param btmType ä¸å¡ç±»å |
| | | * @param oids éè¦æ¥è¯¢çoidéå éå·åå¼ |
| | | * @return æ¥è¯¢åºçæ°æ® |
| | | */ |
| | | List<BaseModel> selectByTypeAndOid(String btmType, String oids) throws IllegalAccessException, NoSuchFieldException, InstantiationException, InvocationTargetException, IntrospectionException, SQLException; |
| | | } |
| | |
| | | |
| | | import com.vci.ubcs.code.bo.CodeClassifyFullInfoBO; |
| | | import com.vci.ubcs.code.dto.CodeOrderSecDTO; |
| | | import com.vci.ubcs.code.entity.CodeWupin; |
| | | import com.vci.ubcs.code.vo.pagemodel.CodeClassifyTemplateVO; |
| | | import com.vci.ubcs.code.vo.pagemodel.CodeRuleVO; |
| | | import com.vci.ubcs.starter.revision.model.BaseModel; |
| | | |
| | | import java.util.Collection; |
| | | import java.util.List; |
| | |
| | | * @param dataCBOList ä¸å¡æ°æ® |
| | | */ |
| | | List<String> productCodeAndSaveData(CodeClassifyFullInfoBO classifyFullInfoBO, CodeClassifyTemplateVO templateVO, |
| | | CodeRuleVO ruleVO, List<CodeOrderSecDTO> secDTOList, List<CodeWupin> dataCBOList); |
| | | CodeRuleVO ruleVO, List<CodeOrderSecDTO> secDTOList, List<BaseModel> dataCBOList) throws Exception; |
| | | |
| | | /** |
| | | * åæ¶ç å¼ |
| | |
| | | import com.vci.ubcs.code.mapper.CodeBasicSecMapper; |
| | | import com.vci.ubcs.code.mapper.CodeClassifyValueMapper; |
| | | import com.vci.ubcs.code.mapper.CodeFixedValueMapper; |
| | | import com.vci.ubcs.code.service.ICodeBasicSecService; |
| | | import com.vci.ubcs.code.service.ICodeClassifyValueService; |
| | | import com.vci.ubcs.code.service.ICodeFixedValueService; |
| | | import com.vci.ubcs.code.service.ICodeRuleService; |
| | | import com.vci.ubcs.code.service.*; |
| | | import com.vci.ubcs.code.vo.CodeReferConfigVO; |
| | | import com.vci.ubcs.code.vo.pagemodel.CodeBasicSecVO; |
| | | import com.vci.ubcs.code.vo.pagemodel.CodeFixedValueVO; |
| | | import com.vci.ubcs.code.vo.pagemodel.CodeRuleVO; |
| | |
| | | |
| | | @Resource |
| | | private ICodeClassifyValueService codeClassifyValueService; |
| | | |
| | | @Resource |
| | | private ICodeReferConfigService codeReferConfigService; |
| | | |
| | | @Resource |
| | | private IDictBizClient iDictBizClient; |
| | |
| | | && StringUtils.isBlank(codeBasicSecDO.getCodeFillSeparator())){ |
| | | throw new VciBaseException("å½è¡¥ä½æ¹å¼ä¸ºå·¦è¡¥ä½æè
å³è¡¥ä½çæ¶åï¼è¡¥ä½å符ä¸è½ä¸ºç©º"); |
| | | } |
| | | CodeReferConfigVO codeReferConfigVO = null; |
| | | //å¼ç¨ç æ®µçæ¶åï¼éè¦å¤æåç
§çä¿¡æ¯æ¯å¦æ£ç¡® |
| | | if(CodeSecTypeEnum.CODE_REFER_SEC.getValue().equalsIgnoreCase(codeBasicSecDO.getSecType())){ |
| | | if(StringUtils.isBlank(codeBasicSecDO.getReferConfig())){ |
| | | throw new VciBaseException("å¼ç¨ç æ®µçæ¶åï¼éè¦å¡«å åç
§é
ç½® çå
容"); |
| | | } |
| | | try{ |
| | | JSONObject.parseObject(codeBasicSecDO.getReferConfig(), UIFormReferVO.class); |
| | | //JSONObject.parseObject(codeBasicSecDO.getReferConfig(), UIFormReferVO.class); |
| | | codeReferConfigVO = JSONObject.parseObject(codeBasicSecDO.getReferConfig(), CodeReferConfigVO.class); |
| | | // å°åç
§é
ç½®è¿è¡æä¹
åï¼ç»ç¨æ·æä¾å¯å¯éæ©åç
§é
ç½®çæ¹å¼ |
| | | |
| | | }catch (Throwable e){ |
| | | throw new VciBaseException("å¼ç¨ç æ®µçæ¶åï¼åç
§é
ç½®çå
å®¹çæ ¼å¼ä¸æ£ç¡®,",new String[0],e); |
| | | } |
| | | if(codeReferConfigVO.getIsPersistence()=="true"){ |
| | | codeReferConfigService.insert(codeReferConfigVO); |
| | | } |
| | | } |
| | | boolean resBoolean = codeBasicSecMapper.insert(codeBasicSecDO) > 0; |
| | |
| | | } |
| | | |
| | | /** |
| | | * æ¹éæ°æ®å¯¹è±¡è½¬æ¢ä¸ºæ¾ç¤ºå¯¹è±¡ |
| | | * |
| | | * @param codeBasicSecDOs æ°æ®å¯¹è±¡å表 |
| | | * @return æ¾ç¤ºå¯¹è±¡ |
| | | * @throws VciBaseException åæ°ä¸ºç©ºæè
ä¸åå¨çæ¶å伿åºå¼å¸¸ |
| | | */ |
| | | @Override |
| | | public List<CodeBasicSecVO> codeBasicSecDO2VOs(Collection<CodeBasicSec> codeBasicSecDOs) throws VciBaseException { |
| | | List<CodeBasicSecVO> voList = new ArrayList<CodeBasicSecVO>(); |
| | | if (!CollectionUtils.isEmpty(codeBasicSecDOs)) { |
| | | for (CodeBasicSec s : codeBasicSecDOs) { |
| | | CodeBasicSecVO vo = codeBasicSecDO2VO(s); |
| | | if (vo != null) { |
| | | voList.add(vo); |
| | | } |
| | | } |
| | | } |
| | | return voList; |
| | | } |
| | | |
| | | /** |
| | | * æ°æ®å¯¹è±¡è½¬æ¢ä¸ºæ¾ç¤ºå¯¹è±¡ |
| | | * |
| | | * @param codeBasicSecDO æ°æ®å¯¹è±¡ |
| | |
| | | */ |
| | | @Override |
| | | public CodeBasicSecVO codeBasicSecDO2VO(CodeBasicSec codeBasicSecDO) throws VciBaseException { |
| | | CodeBasicSecVO vo = new CodeBasicSecVO(); |
| | | CodeBasicSecVO codeBasicSecVO = new CodeBasicSecVO(); |
| | | if (codeBasicSecDO != null) { |
| | | BeanUtilForVCI.copyPropertiesIgnoreCase(codeBasicSecDO, vo); |
| | | BeanUtilForVCI.copyPropertiesIgnoreCase(codeBasicSecVO, codeBasicSecVO); |
| | | codeBasicSecVO.setSecTypeText(CodeSecTypeEnum.getTextByValue(codeBasicSecVO.getSecType())); |
| | | codeBasicSecVO.setCodeLevelTypeText(CodeLevelTypeEnum.getTextByValue(codeBasicSecVO.getCodeLevelType())); |
| | | codeBasicSecVO.setCodeSecLengthTypeText(CodeSecLengthTypeEnum.getTextByValue(codeBasicSecVO.getCodeSecLengthType())); |
| | | codeBasicSecVO.setValueCutTypeText(CodeCutTypeEnum.getValueByText(codeBasicSecVO.getValueCutType())); |
| | | codeBasicSecVO.setCodeGetValueTypeText(CodeGetValueTypeEnum.getValueByText(codeBasicSecVO.getCodeGetValueType())); |
| | | // 妿æ¯åç±»ç æ®µéè¦æ¥è¯¢æå±åç±»ç䏿åç§° |
| | | if(codeBasicSecDO.getSecType().equals("codeclassifysec") && Func.isNotEmpty(codeBasicSecDO.getParentClassifySecOid())){ |
| | | CodeBasicSec codeBasicSec = codeBasicSecMapper.selectOne(Wrappers.<CodeBasicSec>query().lambda() |
| | | .eq(CodeBasicSec::getOid, codeBasicSecDO.getParentClassifySecOid()) |
| | | .eq(CodeBasicSec::getSecType, codeBasicSecDO.getSecType())); |
| | | codeBasicSecVO.setParentClassifySecText(codeBasicSec.getName()); |
| | | } |
| | | //妿ælcstatusçç±»çè¯ |
| | | if (true) { |
| | | //vo.setLcStatusText({lcStatusFullClassName}.getTextByValue(vo.getLcStatus())); |
| | | } |
| | | } |
| | | return vo; |
| | | return codeBasicSecVO; |
| | | } |
| | | } |
| | |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.github.yulichang.wrapper.MPJLambdaWrapper; |
| | | import com.vci.ubcs.code.constant.MdmBtmTypeConstant; |
| | | import com.vci.ubcs.code.dto.CodeClassifyProcessTempDTO; |
| | | import com.vci.ubcs.code.entity.CodeClassifyProcessTemp; |
| | |
| | | import java.util.stream.Collectors; |
| | | |
| | | import static com.vci.ubcs.code.constant.FrameWorkLangCodeConstant.*; |
| | | import static jodd.util.StringUtil.isBlank; |
| | | |
| | | /** |
| | | * å类使ç¨çæµç¨æ¨¡æ¿æå¡æ¥å£ |
| | |
| | | return false; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 䏻鮿¥è¯¢æ°æ®å¯¹è±¡ |
| | | * @param oid ä¸»é® |
| | |
| | | @Override |
| | | public int codeTemplateDeleteTrigger(String classifyTemplateOid) { |
| | | int updateCount = 0; |
| | | if(com.alibaba.nacos.api.utils.StringUtils.isBlank(classifyTemplateOid)){ |
| | | if(isBlank(classifyTemplateOid)){ |
| | | Map<String,Object> conditionMap = new HashMap<>(); |
| | | conditionMap.put("classifyTemplateOid",classifyTemplateOid); |
| | | List<CodeClassifyProcessTemp> codeClsflowtempEntities = baseMapper.selectByMap(conditionMap); |
| | |
| | | import com.vci.ubcs.code.po.CodeClassifyPO; |
| | | import com.vci.ubcs.code.service.ICodeClassifyService; |
| | | import com.vci.ubcs.code.service.ICodeKeyAttrRepeatService; |
| | | import com.vci.ubcs.code.service.ICodeOsattributeService; |
| | | import com.vci.ubcs.code.service.ICodeRuleService; |
| | | import com.vci.ubcs.code.vo.CodeOsattributeVO; |
| | | import com.vci.ubcs.code.vo.CodeOsbtmtypeVO; |
| | | import com.vci.ubcs.code.vo.pagemodel.CodeClassifyVO; |
| | | import com.vci.ubcs.code.vo.pagemodel.CodeKeyAttrRepeatRuleVO; |
| | | import com.vci.ubcs.code.vo.pagemodel.CodeRuleVO; |
| | | import com.vci.ubcs.core.log.exception.ServiceException; |
| | | import com.vci.ubcs.omd.feign.IBtmTypeClient; |
| | | import com.vci.ubcs.omd.vo.BtmTypeVO; |
| | | import com.vci.ubcs.starter.bo.WriteExcelData; |
| | | import com.vci.ubcs.starter.exception.VciBaseException; |
| | | import com.vci.ubcs.starter.poi.bo.ReadExcelOption; |
| | |
| | | import com.vci.ubcs.starter.revision.model.TreeQueryObject; |
| | | import com.vci.ubcs.starter.revision.model.TreeWrapperOptions; |
| | | import com.vci.ubcs.starter.revision.service.RevisionModelUtil; |
| | | import com.vci.ubcs.starter.util.BladeTreeQueryObject; |
| | | import com.vci.ubcs.starter.util.LocalFileUtil; |
| | | import com.vci.ubcs.starter.web.pagemodel.BaseQueryObject; |
| | | import com.vci.ubcs.starter.web.pagemodel.DataGrid; |
| | |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springblade.core.cache.utils.CacheUtil; |
| | | import org.springblade.core.launch.constant.AppConstant; |
| | | import org.springblade.core.log.exception.ServiceException; |
| | | import org.springblade.core.mp.support.Condition; |
| | | import org.springblade.core.secure.utils.AuthUtil; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springblade.core.tool.utils.Func; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.util.CollectionUtils; |
| | | |
| | |
| | | |
| | | @Resource |
| | | private CodeOsbtmtypeMapper codeOsbtmtypeMapper; |
| | | |
| | | @Resource |
| | | CodeOsbtmtypeattributeMapper codeOsbtmtypeattributeMapper; |
| | | private CodeOsbtmtypeattributeMapper codeOsbtmtypeattributeMapper; |
| | | |
| | | @Resource |
| | | ICodeRuleService ICodeRuleService; |
| | | private IBtmTypeClient btmTypeClient; |
| | | |
| | | /** |
| | | * 屿§æå¡ |
| | | */ |
| | | // @Autowired |
| | | // private OsAttributeServiceI attributeService; |
| | | |
| | | /** |
| | | * æ¥å¿ |
| | |
| | | return codeClassifyMapper.checkHasChild(oid.trim()); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * å é¤ä¸»é¢åºåç±» |
| | | * @param codeClassify 主é¢åºåç±»æ°æ®ä¼ è¾å¯¹è±¡ï¼oidåtséè¦ä¼ è¾ |
| | |
| | | return codeClassifyDO2VOs(codeClassifyDOList); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 使ç¨ä¸»é®éåæ¥è¯¢æ°æ®å¯¹è±¡ |
| | | * @param oidCollections 主é®çéå |
| | |
| | | } |
| | | return codeClassifyList; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * æ¹éæ°æ®å¯¹è±¡è½¬æ¢ä¸ºæ¾ç¤ºå¯¹è±¡ |
| | |
| | | return null; |
| | | } |
| | | |
| | | |
| | | // /** |
| | | // /** |
| | | // * æ ¹æ®æ å½¢æ¥è¯¢å¯¹è±¡æ¥æ¥è¯¢æ°æ®å¯¹è±¡ |
| | | // * |
| | | // * @param treeQueryObject æ å½¢æ¥è¯¢å¯¹è±¡ |
| | |
| | | condition.put("pkbtmtype",topClassifyVO.getBtmtypeid()); |
| | | |
| | | List<CodeOsbtmtypeattributeEntity> unDefaultAttributes = codeOsbtmtypeattributeMapper.selectByMap(condition); |
| | | // List<OsBtmTypeAttributeVO> unDefaultAttributes = btmService. (topClassifyVO.getBtmtypeid()); |
| | | // List<OsBtmTypeAttributeVO> unDefaultAttributes = btmService. (topClassifyVO.getBtmtypeid()); |
| | | List<CodeOsattributeVO> attributeVOS = new ArrayList<>(); |
| | | if(!CollectionUtils.isEmpty(unDefaultAttributes)){ |
| | | unDefaultAttributes.stream().forEach(attr->{ |
| | |
| | | attributeVO.setAttrlength(Short.valueOf(attr.getAttributelength())); |
| | | attributeVO.setBtmtypeid(attr.getReferbtmtypeid()); |
| | | attributeVO.setBtmtypename(attr.getReferbtmtypename()); |
| | | attributeVO.setAttributedatatypetext(attr.getReferbtmtypename()); |
| | | boolean add = true; |
| | | if(StringUtils.isNotBlank(id) && !attributeVO.getId().contains(id.replace("*",""))){ |
| | | add = false; |
| | |
| | | } |
| | | }); |
| | | } |
| | | // if(!CollectionUtils.isEmpty(attributeService.getDefaultAttributeVOs())){ |
| | | // attributeService.getDefaultAttributeVOs().stream().forEach(attr->{ |
| | | // if(!CollectionUtils.isEmpty(codeOsattributeService.getDefaultAttributeVOs())){ |
| | | // codeOsattributeService.getDefaultAttributeVOs().stream().forEach(attr->{ |
| | | // boolean add = true; |
| | | // if(StringUtils.isNotBlank(id) && !attr.getId().contains(id.replace("*",""))){ |
| | | // add = false; |
| | |
| | | * @throws VciBaseException åæ°ä¸ºç©ºï¼æ°æ®ä¸å卿¶ä¼æåºå¼å¸¸ |
| | | */ |
| | | @Override |
| | | public CodeClassifyVO getObjectByOid(String oid) throws VciBaseException{ |
| | | public CodeClassifyVO getObjectByOid(String oid) throws VciBaseException{ |
| | | return codeClassifyDO2VO(selectByOid(oid)); |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | /** |
| | | * 主é¢åºçæ |
| | | * 主é¢åºçæ ,å·²ç»èè°ä¸å¡ç±»åæ¥è¯¢ |
| | | * |
| | | * @param treeQueryObject æ å½¢æ¥è¯¢å¯¹è±¡ |
| | | * @return 主é¢åºæ¾ç¤ºæ |
| | |
| | | treeQueryObject = new TreeQueryObject(); |
| | | } |
| | | if(treeQueryObject.getConditionMap() == null){ |
| | | treeQueryObject.setConditionMap(new HashMap<>()); |
| | | treeQueryObject.setConditionMap(new HashMap<String,String>()); |
| | | } |
| | | treeQueryObject.getConditionMap().put(PARENT_FIELD_NAME, "=null"); |
| | | return treeCodeClassify(treeQueryObject); |
| | | List<Tree> trees = treeCodeClassify(treeQueryObject); |
| | | treeQueryObject.getConditionMap().put("domain", AppConstant.APPLICATION_NAME_CODE); |
| | | BaseQueryObject baseQueryObject = new BaseQueryObject(); |
| | | baseQueryObject.setConditionMap(treeQueryObject.getConditionMap()); |
| | | List<BtmTypeVO> btmTypeVOS = btmTypeClient.getRef(baseQueryObject).getData(); |
| | | if(Func.isEmpty(btmTypeVOS) || Func.isEmpty(trees)){ |
| | | return null; |
| | | } |
| | | List<Tree> treeList = trees.stream().filter(tree -> btmTypeVOS.stream(). |
| | | anyMatch(btmType -> Objects.equals(tree.getAttributes().get("id"), btmType.getId()))).collect(Collectors.toList()); |
| | | return treeList; |
| | | } |
| | | |
| | | /** |
| | |
| | | return fullInfo; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * ç»è®¡åèç¹çä¸ªæ° |
| | | * |
| | |
| | | wrapper.eq("parentCodeClassifyOid",codeClassifyOid); |
| | | return codeClassifyMapper.selectCount(wrapper).intValue(); |
| | | } |
| | | |
| | | } |
| | |
| | | package com.vci.ubcs.code.service.impl; |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.alibaba.cloud.commons.lang.StringUtils; |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.github.yulichang.base.MPJBaseServiceImpl; |
| | | import com.github.yulichang.wrapper.MPJLambdaWrapper; |
| | | import com.vci.ubcs.code.entity.CodeReferConfig; |
| | | import com.vci.ubcs.code.entity.CodeShowFieldConfig; |
| | | import com.vci.ubcs.code.entity.CodeSrchCondConfig; |
| | | import com.vci.ubcs.code.constant.MdmBtmTypeConstant; |
| | | import com.vci.ubcs.code.dto.CodeReferConfigDTO; |
| | | import com.vci.ubcs.code.entity.*; |
| | | import com.vci.ubcs.code.mapper.CodeReferConfigMapper; |
| | | import com.vci.ubcs.code.service.CodeReferConfigService; |
| | | import com.vci.ubcs.code.service.ICodeReferConfigService; |
| | | import com.vci.ubcs.code.service.ICodeShowFieldConfigService; |
| | | import com.vci.ubcs.code.service.ICodeSrchCondConfigService; |
| | | import com.vci.ubcs.code.vo.CodeReferConfigVO; |
| | | import com.vci.ubcs.code.wrapper.CodeReferConfigWraper; |
| | | import com.vci.ubcs.starter.util.Map2MPJLambdaUtil; |
| | | import com.vci.ubcs.starter.web.pagemodel.BaseQueryObject; |
| | | import com.vci.ubcs.starter.exception.VciBaseException; |
| | | import com.vci.ubcs.starter.util.DefaultAttrAssimtUtil; |
| | | import com.vci.ubcs.starter.web.pagemodel.BladeQueryObject; |
| | | import com.vci.ubcs.starter.web.util.VciBaseUtil; |
| | | import org.springblade.core.mp.support.Condition; |
| | | import org.springblade.core.mp.support.Query; |
| | | import org.springblade.core.secure.utils.AuthUtil; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springblade.core.tool.utils.BeanUtil; |
| | | import org.springblade.core.tool.utils.Func; |
| | | import org.springframework.cglib.beans.BeanMap; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.data.domain.Page; |
| | | import org.springframework.data.domain.PageImpl; |
| | | import org.springframework.data.domain.PageRequest; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | import static com.vci.ubcs.code.constant.FrameWorkLangCodeConstant.TS_NOT_PROCESS; |
| | | |
| | | /** |
| | | * åç
§é
置表(CodeReferconfig)表æå¡å®ç°ç±» |
| | |
| | | * @since 2023-05-19 17:48:02 |
| | | */ |
| | | @Service("CodeReferconfigService") |
| | | public class CodeReferConfigServiceImpl extends ServiceImpl<CodeReferConfigMapper,CodeReferConfig> implements CodeReferConfigService { |
| | | public class CodeReferConfigServiceImpl extends MPJBaseServiceImpl<CodeReferConfigMapper,CodeReferConfig> implements ICodeReferConfigService { |
| | | |
| | | @Resource |
| | | private CodeReferConfigMapper codeReferconfigMapper; |
| | | |
| | | @Resource |
| | | private ICodeShowFieldConfigService ICodeShowFieldConfigService; |
| | | |
| | | @Resource |
| | | private ICodeSrchCondConfigService ICodeSrchCondConfigService; |
| | | |
| | | /** |
| | | * éè¿IDæ¥è¯¢åæ¡æ°æ® |
| | |
| | | * @return å®ä¾å¯¹è±¡ |
| | | */ |
| | | @Override |
| | | public CodeReferConfig queryById(String oid) { |
| | | return this.codeReferconfigMapper.queryById(oid); |
| | | public CodeReferConfigVO queryById(String oid) { |
| | | CodeReferConfig codeReferConfig = this.codeReferconfigMapper.selectJoinOne(CodeReferConfig.class, this.getMPJLambdaWrapper().eq(CodeReferConfig::getOid, oid)); |
| | | return CodeReferConfigWraper.build().entityVO(codeReferConfig); |
| | | } |
| | | |
| | | /** |
| | | * å页æ¥è¯¢ |
| | | * |
| | | * @param bladeQueryObject ç鿡件 |
| | | * @return æ¥è¯¢ç»æ |
| | | */ |
| | | /** |
| | | * å页æ¥è¯¢ |
| | | * |
| | | * @param bladeQueryObject ç鿡件 |
| | | * @return æ¥è¯¢ç»æ |
| | | */ |
| | | @Override |
| | | public IPage<CodeReferConfigVO> queryByJoinPage(BladeQueryObject bladeQueryObject) { |
| | | CodeReferConfig codeReferConfig = new CodeReferConfig(); |
| | | // æ ¹æ®ç§æ·è¿è¡åºå对åºçåç
§é
ç½® |
| | | Map<String, Object> conditionMap = bladeQueryObject.getConditionMap(); |
| | | // æ¥è¯¢æå±ç§æ·ä¸çåå¼å¯å
¨å±çåç
§é
ç½®ä¿¡æ¯ |
| | | conditionMap.put("tenantId",AuthUtil.getTenantId()); |
| | | conditionMap.put("isOpenGlobal","true"); |
| | | BeanMap beanMap = BeanMap.create(codeReferConfig); |
| | | beanMap.putAll(conditionMap); |
| | | // æ·»å é»è®¤æåºå段,æ ¹æ®æ¶é´è¿è¡æåº |
| | | Query query = bladeQueryObject.getQuery(); |
| | | query.setAscs("CREATETIME"); |
| | | IPage<CodeReferConfig> codeReferConfigs = codeReferconfigMapper.selectJoinPage(codeReferConfig, Condition.getPage(query)); |
| | | return CodeReferConfigWraper.build().pageVO(codeReferConfigs); |
| | | } |
| | | |
| | | @Override |
| | | public IPage<CodeReferConfigVO> queryByPage(BladeQueryObject bladeQueryObject) { |
| | | MPJLambdaWrapper<CodeReferConfig> mpjLambdaWrapper = Map2MPJLambdaUtil.getMPJLambdaWrapper(bladeQueryObject.getConditionMap(), CodeReferConfig.class) |
| | | .selectAll(CodeReferConfig.class) |
| | | .selectCollection("PCS",CodeShowFieldConfig.class, CodeReferConfig::getCodeShowFieldConfigs) |
| | | .selectCollection("PCSR",CodeSrchCondConfig.class, CodeReferConfig::getCodeSrchCondConfigs) |
| | | .leftJoin(CodeShowFieldConfig.class, CodeShowFieldConfig::getReferConfigOid,CodeReferConfig::getOid) |
| | | .leftJoin(CodeSrchCondConfig.class, CodeSrchCondConfig::getReferConfigOid, CodeReferConfig::getOid) |
| | | public List<CodeReferConfigVO> queryByList(CodeReferConfigVO codeReferConfigVO) { |
| | | codeReferConfigVO.setTenantId(AuthUtil.getTenantId()); |
| | | //MPJLambdaWrapper<CodeReferConfig> mpjLambdaWrapper = Map2MPJLambdaUtil.getMPJLambdaWrapper(bladeQueryObject.getConditionMap(), CodeReferConfig.class) |
| | | MPJLambdaWrapper<CodeReferConfig> mpjLambdaWrapper = getMPJLambdaWrapper() |
| | | .setEntity(codeReferConfigVO) |
| | | .orderBy(true, true, CodeReferConfig::getCreateTime); |
| | | IPage<CodeReferConfig> codeReferConfigIPage = this.codeReferconfigMapper.selectPage(Condition.getPage(bladeQueryObject.getQuery()), mpjLambdaWrapper); |
| | | return CodeReferConfigWraper.build().pageVO(codeReferConfigIPage); |
| | | List<CodeReferConfig> codeReferConfigList = codeReferconfigMapper.selectJoinList(CodeReferConfig.class, mpjLambdaWrapper); |
| | | return CodeReferConfigWraper.build().listVO(codeReferConfigList); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢æ°æ® |
| | | * |
| | | * @param codeReferConfig å®ä¾å¯¹è±¡ |
| | | * @param codeReferConfigVO å®ä¾å¯¹è±¡ |
| | | * @return å®ä¾å¯¹è±¡ |
| | | */ |
| | | @Override |
| | | public CodeReferConfig insert(CodeReferConfig codeReferConfig) { |
| | | this.codeReferconfigMapper.insert(codeReferConfig); |
| | | return codeReferConfig; |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public R insert(CodeReferConfigVO codeReferConfigVO) { |
| | | VciBaseUtil.alertNotNull(codeReferConfigVO,"éè¦æ·»å çæ°æ®å¯¹è±¡"); |
| | | if (StringUtils.isBlank(codeReferConfigVO.getReferType())){ |
| | | throw new VciBaseException("åç
§é
ç½®ä¸è½ä¸ºç©º"); |
| | | } |
| | | // Long count = countCodeReferConfig(codeReferConfigVO); |
| | | // if(count > 0){ |
| | | // throw new VciBaseException("å·²åå¨ç¸åçåç
§é
ç½®"); |
| | | // } |
| | | CodeReferConfig codeReferConfig = CodeReferConfigWraper.build().entityDO(codeReferConfigVO); |
| | | codeReferConfig.setOid(VciBaseUtil.getPk().toUpperCase()); |
| | | DefaultAttrAssimtUtil.addDefaultAttrAssimt(codeReferConfig, MdmBtmTypeConstant.CODE_REFER_CONFIG); |
| | | codeReferConfig.setTenantId(AuthUtil.getTenantId()); |
| | | boolean resInsertReferConfig = this.codeReferconfigMapper.insert(codeReferConfig) > 0; |
| | | if (!resInsertReferConfig) { |
| | | return R.fail("æ°å¢åç
§é
置失败ï¼"); |
| | | } |
| | | // 主é®åå¡« |
| | | if(Func.isNotEmpty(codeReferConfig.getCodeShowFieldConfigs())){ |
| | | ICodeShowFieldConfigService.insertBatch(codeReferConfigVO.getCodeShowFieldConfigVOS(),codeReferConfig.getOid()); |
| | | } |
| | | if(Func.isNotEmpty(codeReferConfig.getCodeSrchCondConfigs())){ |
| | | ICodeSrchCondConfigService.insertBatch(codeReferConfigVO.getCodeSrchCondConfigVOS(),codeReferConfig.getOid()); |
| | | } |
| | | return R.data(codeReferConfigVO); |
| | | } |
| | | |
| | | /** |
| | | * è·åå·²åå¨çåç
§é
ç½® |
| | | * @param codeReferConfigVO |
| | | * @return ä¸ªæ° |
| | | */ |
| | | private Long countCodeReferConfig(CodeReferConfigVO codeReferConfigVO) { |
| | | String templateName = codeReferConfigVO.getName(); |
| | | String templateId = codeReferConfigVO.getId(); |
| | | if (StringUtils.isBlank(templateName) && StringUtils.isBlank(templateId)){ |
| | | throw new VciBaseException("åç
§é
ç½®ç¼å·ååç§°ä¸è½ä¸ºç©º"); |
| | | } |
| | | LambdaQueryWrapper<CodeReferConfig> wrapper = Wrappers.<CodeReferConfig>query() |
| | | .lambda().eq(CodeReferConfig::getId, codeReferConfigVO.getId()) |
| | | .eq(CodeReferConfig::getTenantId, codeReferConfigVO.getTenantId()) |
| | | .or(true) |
| | | .eq(CodeReferConfig::getIsOpenGlobal,"true") // æ¥è¯¢å¼å¯å
¨å±çåç
§é
ç½® |
| | | .eq(CodeReferConfig::getId,templateId) |
| | | .eq(CodeReferConfig::getName,templateName); |
| | | Long count = codeReferconfigMapper.selectCount(wrapper); |
| | | return count; |
| | | } |
| | | |
| | | /** |
| | | * è¿è¡¨æ¥è¯¢Wrapper对象è·å |
| | | * @return |
| | | */ |
| | | private MPJLambdaWrapper<CodeReferConfig> getMPJLambdaWrapper(){ |
| | | MPJLambdaWrapper<CodeReferConfig> mpjLambdaWrapper = new MPJLambdaWrapper<>(CodeReferConfig.class) |
| | | .selectAll(CodeReferConfig.class) |
| | | // .select(CodeShowFieldConfig::getField |
| | | // ,CodeShowFieldConfig::getTitle |
| | | // ,CodeShowFieldConfig::getFieldType |
| | | // ,CodeShowFieldConfig::getSort |
| | | // ,CodeShowFieldConfig::getAttrSortField |
| | | // ,CodeShowFieldConfig::getWidth |
| | | // ,CodeShowFieldConfig::getFixedPosition |
| | | // ,CodeShowFieldConfig::getTemplet) |
| | | // .select( |
| | | // CodeSrchCondConfig::getFilterType, |
| | | // CodeSrchCondConfig::getFilterField, |
| | | // CodeSrchCondConfig::getFilterValue) |
| | | .selectCollection(CodeShowFieldConfig.class, CodeReferConfig::getCodeShowFieldConfigs) |
| | | .selectCollection(CodeSrchCondConfig.class, CodeReferConfig::getCodeSrchCondConfigs) |
| | | .leftJoin(CodeShowFieldConfig.class, CodeShowFieldConfig::getReferConfigOid,CodeReferConfig::getOid) |
| | | .leftJoin(CodeSrchCondConfig.class, CodeSrchCondConfig::getReferConfigOid, CodeReferConfig::getOid); |
| | | return mpjLambdaWrapper; |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹æ°æ® |
| | | * |
| | | * @param codeReferConfig å®ä¾å¯¹è±¡ |
| | | * @param codeReferConfigVO å®ä¾å¯¹è±¡ |
| | | * @return å®ä¾å¯¹è±¡ |
| | | */ |
| | | @Override |
| | | public CodeReferConfig update(CodeReferConfig codeReferConfig) { |
| | | this.codeReferconfigMapper.updateById(codeReferConfig); |
| | | return this.queryById(codeReferConfig.getOid()); |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public R update(CodeReferConfigVO codeReferConfigVO) { |
| | | boolean resUpdateReferConfig = this.codeReferconfigMapper.updateById(codeReferConfigVO) > 0; |
| | | if (!resUpdateReferConfig) { |
| | | return R.fail("åç
§é
置修æ¹å¤±è´¥ï¼"); |
| | | } |
| | | this.ICodeShowFieldConfigService.updateBatch(codeReferConfigVO.getCodeShowFieldConfigVOS()); |
| | | this.ICodeSrchCondConfigService.updateBatch(codeReferConfigVO.getCodeSrchCondConfigVOS()); |
| | | return R.data(codeReferConfigVO); |
| | | } |
| | | |
| | | /** |
| | | * éè¿ä¸»é®å 餿°æ® |
| | | * |
| | | * @param oid ä¸»é® |
| | | * @param codeReferConfigDTO |
| | | * @return æ¯å¦æå |
| | | */ |
| | | @Override |
| | | public boolean deleteById(String oid) { |
| | | return this.codeReferconfigMapper.deleteById(oid) > 0; |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public R deleteById(CodeReferConfigDTO codeReferConfigDTO) { |
| | | CodeReferConfig tsDO = new CodeReferConfig(); |
| | | BeanUtil.copyProperties(tsDO,codeReferConfigDTO); |
| | | CodeReferConfig codeReferConfig = codeReferconfigMapper.queryById(codeReferConfigDTO.getOid()); |
| | | // æ£æ¥tsåæ®µæ¯å¦ä¸è´ |
| | | if (!checkTs(tsDO,codeReferConfig)) { |
| | | return R.fail(TS_NOT_PROCESS); |
| | | } |
| | | boolean resDeleteReferConfig = this.codeReferconfigMapper.deleteById(codeReferConfigDTO.getOid()) > 0; |
| | | if (!resDeleteReferConfig) { |
| | | return R.fail("åç
§é
ç½®å é¤å¤±è´¥ï¼"); |
| | | } |
| | | this.ICodeShowFieldConfigService.deleteByReferConfigOid(codeReferConfigDTO.getOid()); |
| | | this.ICodeSrchCondConfigService.deleteByReferConfigOid(codeReferConfigDTO.getOid()); |
| | | return R.status(resDeleteReferConfig); |
| | | } |
| | | |
| | | /** |
| | | * æ£æ¥ts |
| | | * @param tempDO |
| | | * @param codeReferConfig |
| | | * @return |
| | | */ |
| | | private boolean checkTs(CodeReferConfig tempDO, CodeReferConfig codeReferConfig){ |
| | | Date dbTs = codeReferConfig.getTs(); |
| | | Date currentTs = tempDO.getTs(); |
| | | if(currentTs == null ? dbTs == null:currentTs.compareTo(dbTs)==0){ |
| | | return true; |
| | | } |
| | | return false; |
| | | } |
| | | |
| | | } |
| | |
| | | package com.vci.ubcs.code.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.vci.ubcs.code.entity.CodeShowFieldConfig; |
| | | import com.vci.ubcs.code.mapper.CodeShowFieldConfigMapper; |
| | | import com.vci.ubcs.code.service.CodeShowFieldConfigService; |
| | | import com.vci.ubcs.code.service.ICodeShowFieldConfigService; |
| | | import com.vci.ubcs.code.vo.CodeShowFieldConfigVO; |
| | | import com.vci.ubcs.code.wrapper.CodeShowFieldConfigWraper; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.data.domain.Page; |
| | | import org.springframework.data.domain.PageImpl; |
| | | import org.springframework.data.domain.PageRequest; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * å¼ç¨ç 段ï¼åç
§é
ç½®çé¢ï¼æ¾ç¤ºç屿§é
置表(CodeShowFieldConfigService)表æå¡å®ç°ç±» |
| | |
| | | * @since 2023-05-19 17:58:56 |
| | | */ |
| | | @Service("CodeShowFieldConfigService") |
| | | public class CodeShowFieldConfigServiceImpl implements CodeShowFieldConfigService { |
| | | public class CodeShowFieldConfigServiceImpl extends ServiceImpl<CodeShowFieldConfigMapper,CodeShowFieldConfig> implements ICodeShowFieldConfigService { |
| | | |
| | | @Resource |
| | | private CodeShowFieldConfigMapper codeShowFieldConfigMapper; |
| | | |
| | | /** |
| | | * éè¿IDæ¥è¯¢åæ¡æ°æ® |
| | | * |
| | | * @param oid ä¸»é® |
| | | * @return å®ä¾å¯¹è±¡ |
| | | */ |
| | | @Override |
| | | public CodeShowFieldConfig queryById(String oid) { |
| | | return this.codeShowFieldConfigMapper.queryById(oid); |
| | | } |
| | | |
| | | /** |
| | | * å页æ¥è¯¢ |
| | | * |
| | | * @param codeShowFieldConfig ç鿡件 |
| | | * @param pageRequest å页对象 |
| | | * @return æ¥è¯¢ç»æ |
| | | */ |
| | | @Override |
| | | public Page<CodeShowFieldConfig> queryByPage(CodeShowFieldConfig codeShowFieldConfig, PageRequest pageRequest) { |
| | | long total = this.codeShowFieldConfigMapper.count(codeShowFieldConfig); |
| | | return new PageImpl<>(this.codeShowFieldConfigMapper.queryAllByLimit(codeShowFieldConfig, pageRequest), pageRequest, total); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢æ°æ® |
| | |
| | | * @return å®ä¾å¯¹è±¡ |
| | | */ |
| | | @Override |
| | | public CodeShowFieldConfig insert(CodeShowFieldConfig codeShowFieldConfig) { |
| | | this.codeShowFieldConfigMapper.insert(codeShowFieldConfig); |
| | | return codeShowFieldConfig; |
| | | public boolean insert(CodeShowFieldConfig codeShowFieldConfig) { |
| | | return this.codeShowFieldConfigMapper.insert(codeShowFieldConfig)>0; |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹æ°æ® |
| | | * |
| | | * @param codeShowFieldConfig å®ä¾å¯¹è±¡ |
| | | * @return å®ä¾å¯¹è±¡ |
| | | */ |
| | | @Override |
| | | public CodeShowFieldConfig update(CodeShowFieldConfig codeShowFieldConfig) { |
| | | this.codeShowFieldConfigMapper.update(codeShowFieldConfig); |
| | | return this.queryById(codeShowFieldConfig.getOid()); |
| | | } |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public boolean insertBatch(List<CodeShowFieldConfigVO> codeShowFieldConfigVOS, String oid) { |
| | | List<CodeShowFieldConfig> codeShowFieldConfigs = CodeShowFieldConfigWraper.build().listDO(codeShowFieldConfigVOS,oid); |
| | | boolean b = this.saveOrUpdateBatch(codeShowFieldConfigs); |
| | | return b; |
| | | } |
| | | |
| | | /** |
| | | @Override |
| | | public boolean updateBatch(List<CodeShowFieldConfigVO> codeShowFieldConfigVOS) { |
| | | List<CodeShowFieldConfig> codeShowFieldConfigs = CodeShowFieldConfigWraper.build().listDO(codeShowFieldConfigVOS); |
| | | return this.saveOrUpdateBatch(codeShowFieldConfigs); |
| | | } |
| | | |
| | | /** |
| | | * éè¿ä¸»é®å 餿°æ® |
| | | * |
| | | * @param oid ä¸»é® |
| | |
| | | public boolean deleteById(String oid) { |
| | | return this.codeShowFieldConfigMapper.deleteById(oid) > 0; |
| | | } |
| | | |
| | | @Override |
| | | public boolean deleteByReferConfigOid(String oid) { |
| | | LambdaQueryWrapper<CodeShowFieldConfig> lambdaQueryWrapper = Wrappers.<CodeShowFieldConfig>query() |
| | | .lambda() |
| | | .eq(CodeShowFieldConfig::getReferConfigOid, oid); |
| | | return this.codeShowFieldConfigMapper.delete(lambdaQueryWrapper) > 0; |
| | | } |
| | | |
| | | } |
| | |
| | | package com.vci.ubcs.code.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.vci.ubcs.code.entity.CodeSrchCondConfig; |
| | | import com.vci.ubcs.code.mapper.CodeSrchCondConfigMapper; |
| | | import com.vci.ubcs.code.service.CodeSrchCondConfigService; |
| | | import com.vci.ubcs.code.service.ICodeSrchCondConfigService; |
| | | import com.vci.ubcs.code.vo.CodeSrchCondConfigVO; |
| | | import com.vci.ubcs.code.wrapper.CodeSrchCondConfigWraper; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.data.domain.Page; |
| | | import org.springframework.data.domain.PageImpl; |
| | | import org.springframework.data.domain.PageRequest; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * å¼ç¨ç 段ï¼åç
§é
ç½®çé¢ï¼æ¥è¯¢æ¡ä»¶é
置表(CodeSrchCondConfigService)表æå¡å®ç°ç±» |
| | |
| | | * @since 2023-05-19 17:58:56 |
| | | */ |
| | | @Service("CodeSrchCondConfigService") |
| | | public class CodeSrchCondConfigServiceImpl implements CodeSrchCondConfigService { |
| | | public class CodeSrchCondConfigServiceImpl extends ServiceImpl<CodeSrchCondConfigMapper, CodeSrchCondConfig> implements ICodeSrchCondConfigService { |
| | | |
| | | @Resource |
| | | private CodeSrchCondConfigMapper codeSrchcondconfigMapper; |
| | | |
| | | /** |
| | | * éè¿IDæ¥è¯¢åæ¡æ°æ® |
| | | * codeSrchcondconfig |
| | | * @param oid ä¸»é® |
| | | * @return å®ä¾å¯¹è±¡ |
| | | */ |
| | | @Override |
| | | public CodeSrchCondConfig queryById(String oid) { |
| | | return this.codeSrchcondconfigMapper.queryById(oid); |
| | | } |
| | | |
| | | /** |
| | | * å页æ¥è¯¢ |
| | | * |
| | | * @param codeSrchcondconfig ç鿡件 |
| | | * @param pageRequest å页对象 |
| | | * @return æ¥è¯¢ç»æ |
| | | */ |
| | | @Override |
| | | public Page<CodeSrchCondConfig> queryByPage(CodeSrchCondConfig codeSrchcondconfig, PageRequest pageRequest) { |
| | | long total = this.codeSrchcondconfigMapper.count(codeSrchcondconfig); |
| | | return new PageImpl<>(this.codeSrchcondconfigMapper.queryAllByLimit(codeSrchcondconfig, pageRequest), pageRequest, total); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢æ°æ® |
| | |
| | | * @return å®ä¾å¯¹è±¡ |
| | | */ |
| | | @Override |
| | | public CodeSrchCondConfig insert(CodeSrchCondConfig codeSrchcondconfig) { |
| | | this.codeSrchcondconfigMapper.insert(codeSrchcondconfig); |
| | | return codeSrchcondconfig; |
| | | public boolean insert(CodeSrchCondConfig codeSrchcondconfig) { |
| | | return this.codeSrchcondconfigMapper.insert(codeSrchcondconfig)>0; |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹æ°æ® |
| | | * |
| | | * @param codeSrchcondconfig å®ä¾å¯¹è±¡ |
| | | * @return å®ä¾å¯¹è±¡ |
| | | */ |
| | | @Override |
| | | public CodeSrchCondConfig update(CodeSrchCondConfig codeSrchcondconfig) { |
| | | this.codeSrchcondconfigMapper.update(codeSrchcondconfig); |
| | | return this.queryById(codeSrchcondconfig.getOid()); |
| | | } |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public boolean insertBatch(List<CodeSrchCondConfigVO> codeSrchCondConfigVOS, String oid) { |
| | | List<CodeSrchCondConfig> codeSrchCondConfigs = CodeSrchCondConfigWraper.build().listDO(codeSrchCondConfigVOS,oid); |
| | | return this.saveOrUpdateBatch(codeSrchCondConfigs); |
| | | } |
| | | |
| | | /** |
| | | @Override |
| | | public boolean updateBatch(List<CodeSrchCondConfigVO> codeSrchCondConfigVOS) { |
| | | List<CodeSrchCondConfig> codeSrchCondConfigs = CodeSrchCondConfigWraper.build().listDO(codeSrchCondConfigVOS); |
| | | return this.saveOrUpdateBatch(codeSrchCondConfigs); |
| | | } |
| | | |
| | | /** |
| | | * éè¿ä¸»é®å 餿°æ® |
| | | * |
| | | * @param oid ä¸»é® |
| | |
| | | public boolean deleteById(String oid) { |
| | | return this.codeSrchcondconfigMapper.deleteById(oid) > 0; |
| | | } |
| | | |
| | | @Override |
| | | public boolean deleteByReferConfigOid(String oid) { |
| | | LambdaQueryWrapper<CodeSrchCondConfig> lambdaQueryWrapper = Wrappers.<CodeSrchCondConfig>query() |
| | | .lambda() |
| | | .eq(CodeSrchCondConfig::getReferConfigOid, oid); |
| | | return this.codeSrchcondconfigMapper.delete(lambdaQueryWrapper) > 0; |
| | | } |
| | | |
| | | } |
| | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.baomidou.mybatisplus.extension.toolkit.SqlHelper; |
| | | import com.fasterxml.jackson.databind.ObjectMapper; |
| | | import com.vci.ubcs.code.bo.CodeClassifyFullInfoBO; |
| | | import com.vci.ubcs.code.bo.CodeTemplateAttrSqlBO; |
| | | import com.vci.ubcs.code.constant.FrameWorkDefaultValueConstant; |
| | | import com.vci.ubcs.code.constant.MdmBtmTypeConstant; |
| | | import com.vci.ubcs.code.dto.CodeDeleteBatchDTO; |
| | | import com.vci.ubcs.code.dto.CodeOrderDTO; |
| | | import com.vci.ubcs.code.dto.datapush.BaseModelDTO; |
| | |
| | | import com.vci.ubcs.code.mapper.CommonsMapper; |
| | | import com.vci.ubcs.code.service.*; |
| | | import com.vci.ubcs.code.vo.CodeKeyAttrRepeatVO; |
| | | import com.vci.ubcs.code.vo.pagemodel.*; |
| | | import com.vci.ubcs.code.vo.pagemodel.UITableFieldVO; |
| | | import com.vci.ubcs.code.vo.pagemodel.UITablePageVO; |
| | | import com.vci.ubcs.code.vo.pagemodel.*; |
| | | import com.vci.ubcs.omd.feign.IBtmTypeClient; |
| | | import com.vci.ubcs.omd.feign.IEnumClient; |
| | | import com.vci.ubcs.omd.feign.IEnumItemClient; |
| | | import com.vci.ubcs.omd.feign.IRevisionRuleClient; |
| | | import com.vci.ubcs.omd.vo.BtmTypeVO; |
| | | import com.vci.ubcs.omd.vo.EnumVO; |
| | | import com.vci.ubcs.omd.vo.RevisionRuleVO; |
| | | import com.vci.ubcs.starter.exception.VciBaseException; |
| | | import com.vci.ubcs.starter.revision.model.BaseModel; |
| | | import com.vci.ubcs.starter.revision.model.TreeWrapperOptions; |
| | | import com.vci.ubcs.starter.revision.service.RevisionModelUtil; |
| | | import com.vci.ubcs.starter.web.constant.QueryOptionConstant; |
| | |
| | | import com.vci.ubcs.starter.web.util.*; |
| | | import com.vci.ubcs.system.entity.DictBiz; |
| | | import com.vci.ubcs.system.feign.IDictBizClient; |
| | | import net.logstash.logback.encoder.org.apache.commons.lang3.ObjectUtils; |
| | | import net.logstash.logback.encoder.org.apache.commons.lang3.StringUtils; |
| | | import oracle.sql.TIMESTAMP; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springblade.core.cache.utils.CacheUtil; |
| | | import org.springblade.core.secure.utils.AuthUtil; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springblade.core.tool.utils.StringPool; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.cglib.beans.BeanMap; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.util.CollectionUtils; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.beans.BeanInfo; |
| | | import java.beans.IntrospectionException; |
| | | import java.beans.Introspector; |
| | | import java.beans.PropertyDescriptor; |
| | | import java.lang.reflect.Field; |
| | | import java.lang.reflect.InvocationTargetException; |
| | | import java.lang.reflect.Method; |
| | | import java.math.BigDecimal; |
| | | import java.sql.SQLException; |
| | | import java.sql.Timestamp; |
| | | import java.time.LocalDateTime; |
| | | import java.time.ZoneId; |
| | | import java.time.ZonedDateTime; |
| | | import java.util.*; |
| | | import java.util.concurrent.ConcurrentHashMap; |
| | | import java.util.stream.Collectors; |
| | |
| | | */ |
| | | @Autowired |
| | | private ICodePhaseAttrService phaseAttrService; |
| | | /** |
| | | * ä¸å¡ç±»åçæå¡ |
| | | */ |
| | | @Autowired |
| | | private IBtmTypeClient btmTypeClient; |
| | | /** |
| | | * çæ¬è§åçæå¡ |
| | | */ |
| | | @Resource |
| | | private IRevisionRuleClient revisionRuleClient; |
| | | // |
| | | /** |
| | | * éç¨æ¥è¯¢ |
| | |
| | | * ç©ºæ ¼ |
| | | */ |
| | | public static final String SPACE = " "; |
| | | /** |
| | | * ç¼åï½ï½
ï½ |
| | | */ |
| | | public static final String BTM_INIT_CACHE = "ubcs-code:btm"; |
| | | /** |
| | | * |
| | | */ |
| | | public static final String BTM_NAME = "btm:name"; |
| | | |
| | | /** |
| | | * å¯çº§çåæ®µ |
| | |
| | | * @return è¿åç¼ç çå
容 |
| | | */ |
| | | @Override |
| | | public String addSaveCode(CodeOrderDTO orderDTO) { |
| | | public String addSaveCode(CodeOrderDTO orderDTO) throws Exception { |
| | | VciBaseUtil.alertNotNull(orderDTO, "ç¼ç ç³è¯·ç¸å
³ç屿§åç æ®µçå
容é½ä¸ºç©º", orderDTO.getCodeClassifyOid(), "主é¢åºåç±»ç主é®", |
| | | orderDTO.getTemplateOid(), "模æ¿ç主é®", orderDTO.getCodeRuleOid(), "ç¼ç è§åç主é®"); |
| | | CodeClassifyFullInfoBO classifyFullInfo = classifyService.getClassifyFullInfo(orderDTO.getCodeClassifyOid()); |
| | |
| | | switchDateAttrOnOrder(templateVO, orderDTO); |
| | | //9.çæç¼ç çä¿¡æ¯ |
| | | // ClientBusinessObject cbo = boService.createCBOByBtmName(classifyFullInfo.getTopClassifyVO().getBtmtypeid()); |
| | | CodeWupin cbo = createCBOByBtmName(classifyFullInfo.getTopClassifyVO().getBtmtypeid()); |
| | | BaseModel cbo = createCBOByBtmName(classifyFullInfo.getTopClassifyVO().getBtmtypeid()); |
| | | // //é»è®¤ç屿§é½ä¸ç¨ä»å端æ·è´ |
| | | // //设置ç¼ç éè¦çé»è®¤å±æ§çå
容 |
| | | copyValueToCBO(classifyFullInfo, cbo, orderDTO, templateVO, false); |
| | | // //TODO:å 为é»è®¤ç屿§é½ä¸æ·è´ï¼ç®åéå¢ç å«nameï¼å¹¶æ²¡æä»DTOæ·è´å°cboéãå¢å ä¸ä¸ªåç¬å¤çï¼ä»¥ååçè¦ä¸è¦è°æ´ |
| | | cbo.setName(orderDTO.getName() == null ? "" : orderDTO.getName()); |
| | | // //end -- modify by lihang @20220407 |
| | | List<CodeWupin> cboList = new ArrayList<>(); |
| | | List<BaseModel> cboList = new ArrayList<>(); |
| | | |
| | | //夿³¨ |
| | | cbo.setDescription(orderDTO.getDescription()); |
| | |
| | | |
| | | |
| | | List<String> charList = new ArrayList<>(); |
| | | for (CodeWupin wupinEntity : cboList) { |
| | | charList.add(wupinEntity.getId()); |
| | | for (BaseModel baseModel : cboList) { |
| | | charList.add(baseModel.getId()); |
| | | } |
| | | batchSaveSelectChar(templateVO, charList); |
| | | return codeList.size() > 0 ? codeList.get(0) : ""; |
| | |
| | | * @param templateVO 模æ¿çæ¾ç¤ºå¯¹è±¡ |
| | | * @param edit æ¯å¦ä¸ºä¿®æ¹ |
| | | */ |
| | | private void copyValueToCBO(CodeClassifyFullInfoBO classifyFullInfo, CodeWupin cbo, |
| | | private void copyValueToCBO(CodeClassifyFullInfoBO classifyFullInfo, BaseModel cbo, |
| | | CodeOrderDTO orderDTO, CodeClassifyTemplateVO templateVO, |
| | | boolean edit) { |
| | | String fullPath = ""; |
| | |
| | | |
| | | try { |
| | | |
| | | BeanUtilForVCI.copyPropertiesIgnoreNull(BeanUtilForVCI.convertMap(CodeWupin.class,orderDTO.getData()),cbo); |
| | | |
| | | cbo.setCodeclsfid(classifyFullInfo.getCurrentClassifyVO().getOid()); |
| | | cbo.setCodetemplateoid(templateVO.getOid()); |
| | | cbo.setCodeclsfpath(fullPath); |
| | | BeanUtilForVCI.copyPropertiesIgnoreNull(BeanUtilForVCI.convertMap(BaseModel.class,orderDTO.getData()),cbo); |
| | | Map<String,String> data = new HashMap<>(); |
| | | data.put(CODE_CLASSIFY_OID_FIELD,classifyFullInfo.getCurrentClassifyVO().getOid()); |
| | | data.put(CODE_TEMPLATE_OID_FIELD,templateVO.getOid()); |
| | | data.put(CODE_FULL_PATH_FILED,fullPath); |
| | | cbo.setData(data); |
| | | // cbo.setCodeclsfid(classifyFullInfo.getCurrentClassifyVO().getOid()); |
| | | // cbo.setTemplateOid(templateVO.getOid()); |
| | | // cbo.setCodeclsfpath(fullPath); |
| | | cbo.setTs(new Date()); |
| | | if (!edit && StringUtils.isBlank(orderDTO.getLcStatus())) { |
| | | //æ¾çå½å¨æçèµ·å§ç¶æï¼æä¸ªç¹ï¼çå½å¨ææ¯å¦éè¦å建 |
| | | //å
ååºå®ï¼åé¢çå½å¨æå¥½äºå¨ç¼å |
| | | if (StringUtils.isNotBlank(cbo.getLctid())) { |
| | | // OsLifeCycleVO lifeCycleVO = lifeCycleService.getLifeCycleById(cbo.getLctid()); |
| | | // if (lifeCycleVO != null) { |
| | |
| | | * @throws VciBaseException åå§ååºéçæ¯ä¼æåºå¼å¸¸ |
| | | */ |
| | | @Override |
| | | public CodeWupin createCBOByBtmName(String btmName) |
| | | public BaseModel createCBOByBtmName(String btmName) |
| | | throws VciBaseException { |
| | | if(btmName!=null){ |
| | | btmName = btmName.trim().toLowerCase(); |
| | | } |
| | | String userid = AuthUtil.getUser().getUserName(); |
| | | // if(!hasCreatedCbos.containsKey(btmName)){ |
| | | // if(StringUtils.isEmpty(userid)){ |
| | | // throw new VciBaseException(msgCodePrefix +"noHasUserid"); |
| | | // } |
| | | // try { |
| | | // hasCreatedCbos.put(btmName, createBusinessObject(btmName)); |
| | | // } catch (Exception e) { |
| | | // logger.error("å建ä¸å¡ç±»å对象",e); |
| | | // throw new VciBaseException(msgCodePrefix + "initBoError",new String[]{btmName}); |
| | | // } |
| | | // } |
| | | // ClientBusinessObject cbo = cloneClientBusinessObject(hasCreatedCbos.get(btmName)); |
| | | |
| | | // QueryWrapper<CodeOsbtmtypeEntity> btmWrapper = new QueryWrapper<>(); |
| | | // btmWrapper.eq("ID",btmName); |
| | | // CodeOsbtmtypeEntity btmTypeVO = codeOsbtmtypeMapper.selectOne(btmWrapper); |
| | | // OsBtmTypeVO btmTypeVO = btmService.getBtmById(boName); |
| | | String userName = AuthUtil.getUser().getUserName(); |
| | | CodeWupin wupinEntity = new CodeWupin(); |
| | | wupinEntity.setOid(VciBaseUtil.getPk()); |
| | | // bo.setRevisionid((new ObjectUtility()).getNewObjectID36()); |
| | | // bo.setNameoid((new ObjectUtility()).getNewObjectID36()); |
| | | wupinEntity.setBtmname(btmName); |
| | | wupinEntity.setLastR(String.valueOf(1)); |
| | | wupinEntity.setFirstR(String.valueOf(1)); |
| | | wupinEntity.setFirstV(String.valueOf(1)); |
| | | wupinEntity.setLastV(String.valueOf(1)); |
| | | wupinEntity.setCreator(userName); |
| | | wupinEntity.setCreateTime(new Date()); |
| | | wupinEntity.setLastModifier(userName); |
| | | wupinEntity.setLastModifyTime(new Date()); |
| | | wupinEntity.setRevisionRule("numberversionrule"); |
| | | wupinEntity.setVersionRule("0"); |
| | | // if(StringUtils.isNotBlank(btmTypeVO.getRevisionruleid())){ |
| | | // |
| | | // OsRevisionRuleVO revisionRuleVO = revisionRuleService.getRevisionRuleById(btmTypeVO.getRevisionruleid()); |
| | | wupinEntity.setRevisionValue("1"); |
| | | // } |
| | | |
| | | wupinEntity.setRevisionSeq(1); |
| | | wupinEntity.setVersionSeq(1); |
| | | //æä¸ªç¹ï¼éè¦é®åå¥çæ¬é®é¢ï¼å±ç¤ºé»è®¤ä¸º1 |
| | | wupinEntity.setVersionValue("1"); |
| | | wupinEntity.setLctid("wupinLC"); |
| | | wupinEntity.setLcStatus("Editing"); |
| | | wupinEntity.setId(""); |
| | | wupinEntity.setName(""); |
| | | wupinEntity.setDescription(""); |
| | | wupinEntity.setOwner(userName); |
| | | wupinEntity.setCheckinby(userName); |
| | | wupinEntity.setCopyFromVersion(""); |
| | | wupinEntity.setMaterialtype(1001); |
| | | wupinEntity.setCaigouwl("true"); |
| | | wupinEntity.setShifoupihaoguanli("true"); |
| | | wupinEntity.setKucunwl("true"); |
| | | wupinEntity.setXiaoshouwl("false"); |
| | | wupinEntity.setPassing("true"); |
| | | try { |
| | | String keyPrefix = BTM_NAME.concat(StringPool.DASH).concat(AuthUtil.getTenantId()).concat(StringPool.COLON); |
| | | String finalBtmName = btmName; |
| | | return CacheUtil.get(BTM_INIT_CACHE, keyPrefix, btmName, () -> { |
| | | BaseModel baseModel = createBaseModel(finalBtmName); |
| | | return baseModel; |
| | | }); |
| | | } catch (Exception e) { |
| | | logger.error("å建ä¸å¡ç±»å对象",e); |
| | | throw new VciBaseException("initBtmError",new String[]{btmName}); |
| | | } |
| | | // String userName = AuthUtil.getUser().getUserName(); |
| | | // CodeWupin wupinEntity = new CodeWupin(); |
| | | // wupinEntity.setOid(VciBaseUtil.getPk()); |
| | | //// bo.setRevisionid((new ObjectUtility()).getNewObjectID36()); |
| | | //// bo.setNameoid((new ObjectUtility()).getNewObjectID36()); |
| | | // wupinEntity.setBtmname(btmName); |
| | | // wupinEntity.setLastR(String.valueOf(1)); |
| | | // wupinEntity.setFirstR(String.valueOf(1)); |
| | | // wupinEntity.setFirstV(String.valueOf(1)); |
| | | // wupinEntity.setLastV(String.valueOf(1)); |
| | | // wupinEntity.setCreator(userName); |
| | | // wupinEntity.setCreateTime(new Date()); |
| | | // wupinEntity.setLastModifier(userName); |
| | | // wupinEntity.setLastModifyTime(new Date()); |
| | | // wupinEntity.setRevisionRule("numberversionrule"); |
| | | // wupinEntity.setVersionRule("0"); |
| | | //// if(StringUtils.isNotBlank(btmTypeVO.getRevisionruleid())){ |
| | | // // |
| | | //// OsRevisionRuleVO revisionRuleVO = revisionRuleService.getRevisionRuleById(btmTypeVO.getRevisionruleid()); |
| | | // wupinEntity.setRevisionValue("1"); |
| | | //// } |
| | | // |
| | | // wupinEntity.setRevisionSeq(1); |
| | | // wupinEntity.setVersionSeq(1); |
| | | // //æä¸ªç¹ï¼éè¦é®åå¥çæ¬é®é¢ï¼å±ç¤ºé»è®¤ä¸º1 |
| | | // wupinEntity.setVersionValue("1"); |
| | | // wupinEntity.setLctid("wupinLC"); |
| | | // wupinEntity.setLcStatus("Editing"); |
| | | // wupinEntity.setId(""); |
| | | // wupinEntity.setName(""); |
| | | // wupinEntity.setDescription(""); |
| | | // wupinEntity.setOwner(userName); |
| | | // wupinEntity.setCheckinby(userName); |
| | | // wupinEntity.setCopyFromVersion(""); |
| | | // wupinEntity.setMaterialtype(1001); |
| | | // wupinEntity.setCaigouwl("true"); |
| | | // wupinEntity.setShifoupihaoguanli("true"); |
| | | // wupinEntity.setKucunwl("true"); |
| | | // wupinEntity.setXiaoshouwl("false"); |
| | | // wupinEntity.setPassing("true"); |
| | | |
| | | // this.initTypeAttributeValue(wupinEntity,btmTypeVO); |
| | | return wupinEntity; |
| | | // return wupinEntity; |
| | | |
| | | |
| | | // return cbo; |
| | |
| | | //没æéå¶åç±»ï¼ä½æ¯ä¸ä¸ªæ¨¡æ¿åªå¯è½å¨ä¸ä¸ªä¸å¡ç±»åéé¢ï¼æä»¥ç´æ¥æ¥è¯¢è¿ä¸ªä¸å¡ç±»åå³å¯ |
| | | if (!CollectionUtils.isEmpty(conditionMap)) { |
| | | Map<String, String> andConditionMap = new HashMap<>(); |
| | | andConditionMap.put("islastr", "1"); |
| | | andConditionMap.put("islastv", "1"); |
| | | andConditionMap.put("lastr", "1"); |
| | | andConditionMap.put("lastv", "1"); |
| | | if (StringUtils.isNotBlank(orderDTO.getOid())) { |
| | | andConditionMap.put("oid", QueryOptionConstant.NOTEQUAL + orderDTO.getOid()); |
| | | } |
| | |
| | | } else { |
| | | //表éè¦æ¹ |
| | | // conditionMap.put(CODE_CLASSIFY_OID_FIELD, QueryOptionConstant.IN + "(select oid from " + VciBaseUtil.getTableName(MdmBtmTypeConstant.CODE_CLASSIFY) |
| | | conditionMap.put(CODE_CLASSIFY_OID_FIELD, QueryOptionConstant.IN + "(select oid from pl_code_wupin where lcstatus='" + FrameWorkDefaultValueConstant.FRAMEWORK_DATA_ENABLED + |
| | | conditionMap.put(CODE_CLASSIFY_OID_FIELD, QueryOptionConstant.IN + "(select oid from pl_code_classify where lcstatus='" + FrameWorkDefaultValueConstant.FRAMEWORK_DATA_ENABLED + |
| | | "' start with parentCodeClassifyOid = '" + codeClassifyOid + "' CONNECT BY PRIOR OID = parentCodeClassifyOid )"); |
| | | } |
| | | conditionMap.put("lastr", "1"); |
| | |
| | | } |
| | | return buttonVOList; |
| | | } |
| | | |
| | | /** |
| | | * ä¼ å
¥ä¸å¡ç±»å以åç¸å
³æ°æ®è¿è¡æ¹éæå
¥æä½ |
| | | * |
| | | * @param btmType ä¸å¡ç±»å |
| | | * @param baseModels å¤çæ°æ® |
| | | * @return å¤çæåæ°æ®æ¡æ° |
| | | */ |
| | | @Override |
| | | public Integer insertBatchByType(String btmType, List<BaseModel> baseModels) throws Exception { |
| | | //使ç¨ä¼ å
¥çä¸å¡ç±»åæ¥è¯¢è¡¨ |
| | | R<List<BtmTypeVO>> listR = btmTypeClient.selectByIdCollection(Collections.singletonList(btmType)); |
| | | if(listR.getData().size() == 0){ |
| | | throw new VciBaseException("ä¼ å
¥ä¸å¡ç±»åæªæ¥è¯¢å°ç¸åºè¡¨åï¼è¯·æ£æ¥ï¼"); |
| | | } |
| | | //å°bean转为map,mybatisç»ä¸å¤ç |
| | | List<Map<String,String>> maps = new ArrayList<>(); |
| | | baseModels.stream().forEach(model-> { |
| | | try { |
| | | maps.add(VciBaseUtil.convertBean2Map(model)); |
| | | } catch (Exception e) { |
| | | throw new VciBaseException("ç±»å转æ¢é误ï¼" + e.toString()); |
| | | } |
| | | }); |
| | | return commonsMapper.insertByBaseModel(listR.getData().get(0).getTableName(), maps.get(0), maps); |
| | | } |
| | | |
| | | /** |
| | | * ä¼ å
¥ä¸å¡ç±»å以åç¸oidéåæ¥è¯¢æ°æ®è¿è¡è¿å |
| | | * |
| | | * @param btmType ä¸å¡ç±»å |
| | | * @param oids éè¦æ¥è¯¢çoidéå éå·åå¼ |
| | | * @return æ¥è¯¢åºçæ°æ® |
| | | */ |
| | | @Override |
| | | public List<BaseModel> selectByTypeAndOid(String btmType, String oids) throws IllegalAccessException, NoSuchFieldException, InstantiationException, InvocationTargetException, IntrospectionException, SQLException { |
| | | |
| | | //使ç¨ä¼ å
¥çä¸å¡ç±»åæ¥è¯¢è¡¨ |
| | | R<List<BtmTypeVO>> listR = btmTypeClient.selectByIdCollection(Collections.singletonList(btmType)); |
| | | if(listR.getData().size() == 0){ |
| | | throw new VciBaseException("ä¼ å
¥ä¸å¡ç±»åæªæ¥è¯¢å°ç¸åºè¡¨åï¼è¯·æ£æ¥ï¼"); |
| | | } |
| | | //æ¥è¯¢æ°æ® |
| | | List<Map> maps = commonsMapper.selectBySql("select * from " + listR.getData().get(0).getTableName() + " where oid in (" |
| | | + VciBaseUtil.toInSql(oids.toString()) + ")"); |
| | | |
| | | List<BaseModel> baseModels = new ArrayList<>(); |
| | | //å°æ¥è¯¢å°çæ°æ®è½¬æ¢ä¸ºbasemodelï¼ä½¿ç¨çåå°æ¹å¼æ¥è¿è¡å建ç |
| | | for (Map map : maps) { |
| | | Object obj = BaseModel.class.newInstance(); |
| | | BeanInfo beanInfo = Introspector.getBeanInfo(obj.getClass()); |
| | | PropertyDescriptor[] propertyDescriptors = beanInfo.getPropertyDescriptors(); |
| | | for (PropertyDescriptor property : propertyDescriptors) { |
| | | Method setter = property.getWriteMethod(); |
| | | if (setter != null) { |
| | | //oracleçæ¶é´ä¸ºTIMESTAMPçï¼éè¦è¿è¡è½¬æ¢ædataï¼å¦åå°æ¥é |
| | | if(map.get(property.getName().toUpperCase()) instanceof TIMESTAMP){ |
| | | LocalDateTime localDateTime = ((TIMESTAMP) map.get(property.getName().toUpperCase())).toLocalDateTime(); |
| | | ZoneId zoneId = ZoneId.systemDefault(); |
| | | ZonedDateTime zdt = localDateTime.atZone(zoneId); |
| | | Date date = Date.from(zdt.toInstant()); |
| | | setter.invoke(obj,date); |
| | | map.remove(property.getName().toUpperCase()); |
| | | } //oracleçæ°å为BigDecimalçï¼éè¦è¿è¡è½¬æ¢æIntegerï¼å¦åå°æ¥é |
| | | else if (map.get(property.getName().toUpperCase()) instanceof BigDecimal |
| | | && ("Integer").equals(setter.getParameterTypes()[0].getSimpleName())){ |
| | | setter.invoke(obj, ((BigDecimal)map.get(property.getName().toUpperCase())).intValue()); |
| | | map.remove(property.getName().toUpperCase()); |
| | | }else if(map.get(property.getName().toUpperCase()) != null){ |
| | | setter.invoke(obj, map.get(property.getName().toUpperCase())); |
| | | map.remove(property.getName().toUpperCase()); |
| | | } |
| | | } |
| | | } |
| | | for (Object key : map.keySet()) { |
| | | map.put(key,String.valueOf(map.get(key))); |
| | | } |
| | | |
| | | ((BaseModel) obj).setData(map); |
| | | baseModels.add((BaseModel) obj); |
| | | } |
| | | return baseModels; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * æ ¹æ®ä¸å¡ç±»ååç§°å建ä¸å¡æ°æ®æºå¯¹è±¡ |
| | | * @param boName ä¸å¡ç±»ååç§° |
| | | * @return ä¸å¡æ°æ®å¯¹è±¡ |
| | | */ |
| | | public BaseModel createBaseModel(String boName) { |
| | | R<List<BtmTypeVO>> listR = btmTypeClient.selectByIdCollection(Collections.singletonList(boName)); |
| | | String userName = AuthUtil.getUser().getUserName(); |
| | | BaseModel bo = new BaseModel(); |
| | | bo.setOid(VciBaseUtil.getPk()); |
| | | // bo.setRevisionid(VciBaseUtil.getPk()); |
| | | // bo.setNameoid(VciBaseUtil.getPk()); |
| | | bo.setBtmname(boName); |
| | | bo.setLastR("1"); |
| | | bo.setFirstR("1"); |
| | | bo.setFirstV("1"); |
| | | bo.setLastV("1"); |
| | | bo.setCreator(userName); |
| | | bo.setCreateTime(new Date()); |
| | | bo.setLastModifier(userName); |
| | | bo.setLastModifyTime(new Date()); |
| | | bo.setRevisionRule(listR.getData().get(0).getRevisionRuleId()); |
| | | bo.setVersionRule(String.valueOf(listR.getData().get(0).getVersionRule())); |
| | | if(StringUtils.isNotBlank(listR.getData().get(0).getRevisionRuleId())){ |
| | | R<List<RevisionRuleVO>> revisionRuleVO = revisionRuleClient |
| | | .selectByIdCollection(Collections.singletonList(listR.getData().get(0).getRevisionRuleId())); |
| | | bo.setRevisionValue(revisionRuleVO.getData().get(0).getStartCode()); |
| | | } |
| | | bo.setRevisionSeq(1); |
| | | bo.setVersionSeq(1); |
| | | bo.setVersionValue(getVersionValue(WebUtil.getInt(listR.getData().get(0).getVersionRule()))); |
| | | bo.setLctid(listR.getData().get(0).getLifeCycleId()); |
| | | // if(StringUtils.isNotBlank(listR.getData().get(0).getLifeCycleId())){ |
| | | // OsLifeCycleVO lifeCycleVO = lifeService.getLifeCycleById(listR.getData().get(0).getLifeCycleId()); |
| | | bo.setLcStatus("Editing"); |
| | | // } |
| | | bo.setId(""); |
| | | bo.setName(""); |
| | | bo.setDescription(""); |
| | | bo.setOwner(userName); |
| | | // bo.setCheckinby(userName); |
| | | bo.setCopyFromVersion(""); |
| | | // this.initTypeAttributeValue(bo,btmTypeVO); |
| | | return bo; |
| | | } |
| | | |
| | | /** |
| | | * è·åçæ¬¡çå¼ |
| | | * @param verRuleName çæ¬¡çè§å |
| | | * @return çæ¬¡çå¼ï¼æ²¡æè§åå为空 |
| | | */ |
| | | private String getVersionValue(int verRuleName) { |
| | | if (verRuleName == 0) { |
| | | return "1"; |
| | | } else if (verRuleName == 1) { |
| | | return "a"; |
| | | } else if (verRuleName == 2) { |
| | | return "0"; |
| | | } |
| | | return ""; |
| | | } |
| | | } |
| | |
| | | |
| | | import com.alibaba.nacos.common.utils.StringUtils; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.toolkit.BeanUtils; |
| | | import com.vci.ubcs.code.bo.CodeClassifyFullInfoBO; |
| | | import com.vci.ubcs.code.dto.CodeOrderSecDTO; |
| | | import com.vci.ubcs.code.entity.CodeAllCode; |
| | | import com.vci.ubcs.code.entity.CodeSerialValue; |
| | | import com.vci.ubcs.code.entity.CodeWupin; |
| | | import com.vci.ubcs.code.enumpack.CodeCutTypeEnum; |
| | | import com.vci.ubcs.code.enumpack.CodeGetValueTypeEnum; |
| | | import com.vci.ubcs.code.enumpack.CodeLevelTypeEnum; |
| | |
| | | import com.vci.ubcs.code.lifecycle.CodeAllCodeLC; |
| | | import com.vci.ubcs.code.mapper.CodeSerialValueMapper; |
| | | import com.vci.ubcs.code.service.ICodeWupinService; |
| | | import com.vci.ubcs.code.service.MdmEngineService; |
| | | import com.vci.ubcs.code.service.MdmProductCodeService; |
| | | import com.vci.ubcs.code.vo.pagemodel.CodeBasicSecVO; |
| | | import com.vci.ubcs.code.vo.pagemodel.CodeClassifyTemplateVO; |
| | | import com.vci.ubcs.code.vo.pagemodel.CodeClassifyVO; |
| | | import com.vci.ubcs.code.vo.pagemodel.CodeRuleVO; |
| | | import com.vci.ubcs.starter.exception.VciBaseException; |
| | | import com.vci.ubcs.starter.revision.model.BaseModel; |
| | | import com.vci.ubcs.starter.util.DefaultAttrAssimtUtil; |
| | | import com.vci.ubcs.starter.web.constant.QueryOptionConstant; |
| | | import com.vci.ubcs.starter.web.constant.RegExpConstant; |
| | | import com.vci.ubcs.starter.web.enumpck.OsCodeFillTypeEnum; |
| | | import com.vci.ubcs.starter.web.util.VciBaseUtil; |
| | | import com.vci.ubcs.starter.web.util.VciDateUtil; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.context.annotation.Lazy; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.util.CollectionUtils; |
| | | |
| | |
| | | */ |
| | | @Resource |
| | | private ICodeWupinService iCodeWupinService; |
| | | /** |
| | | * ææçç¼ç çå
容 |
| | | */ |
| | | @Resource |
| | | @Lazy |
| | | private MdmEngineService mdmEngineService; |
| | | |
| | | /** |
| | | * å
¬å¼çæå¡ |
| | | */ |
| | | @Autowired |
| | | private FormulaServiceImpl formulaService; |
| | | |
| | | @Override |
| | | public List<String> productCodeAndSaveData(CodeClassifyFullInfoBO classifyFullInfoBO, CodeClassifyTemplateVO templateVO, CodeRuleVO ruleVO, List<CodeOrderSecDTO> secDTOList, List<CodeWupin> dataCBOList) { |
| | | public List<String> productCodeAndSaveData(CodeClassifyFullInfoBO classifyFullInfoBO, CodeClassifyTemplateVO templateVO, CodeRuleVO ruleVO, List<CodeOrderSecDTO> secDTOList, List<BaseModel> dataCBOList) throws Exception { |
| | | // BatchCBO batchCBO = new BatchCBO(); |
| | | // WebUtil.setPersistence(false); |
| | | // dataCBOList = dataCBOList.stream().sorted(((o1, o2) -> o1.getCreateTime().compareTo(o2.getCreateTime()))).collect(Collectors.toList()); |
| | | dataCBOList = dataCBOList.stream().sorted(((o1, o2) -> o1.getCreateTime().compareTo(o2.getCreateTime()))).collect(Collectors.toList()); |
| | | // batchCBO.getCreateCbos().addAll(dataCBOList); |
| | | List<String> codeList = new ArrayList<>(); |
| | | |
| | |
| | | // VciBaseUtil.setCurrentUserSessionInfo(sessionInfo); |
| | | String code = cbo.getId(); |
| | | List<String> serialUnitList = new ArrayList<>(); |
| | | String[] secLengths = cbo.getCodeSecLengthField().split("#"); |
| | | String[] secLengths = cbo.getData().get(CODE_SEC_LENGTH_FIELD).split("#"); |
| | | List<CodeBasicSecVO> secVOList = ruleVO.getSecVOList().stream().sorted(((o1, o2) -> o1.getOrderNum().compareTo(o2.getOrderNum()))).collect(Collectors.toList()); |
| | | Map<String/**ç æ®µç主é®**/,String/**ç æ®µçå¼**/> serialValueMap = new HashMap<>(); |
| | | Map<String, CodeBasicSecVO> secVOMap = secVOList.stream().collect(Collectors.toMap(s -> s.getOid(), t -> t)); |
| | |
| | | Map<String/**ç æ®µç主é®**/, Map<String, CodeSerialValue>> maxSerialValueMap = new HashMap<>(); |
| | | |
| | | for (int i = 0; i < dataCBOList.size(); i++) { |
| | | CodeWupin cbo = dataCBOList.get(i); |
| | | BaseModel cbo = dataCBOList.get(i); |
| | | List<String> thisSecValueList = new LinkedList<>(); |
| | | for (int j = 0; j < secValueList.size(); j++) { |
| | | thisSecValueList.add(secValueList.get(j)); |
| | |
| | | Map<String, String> statusMap = allCodeDOList.stream().collect(Collectors.toMap(s -> s.getOid(), s -> s.getLcStatus())); |
| | | allCodeDOList.stream().filter(s -> StringUtils.equalsIgnoreCase("codeallcode",s.getBtmname())).forEach(s -> { |
| | | s.setLcStatus(statusMap.get(s.getOid())); |
| | | |
| | | }); |
| | | |
| | | |
| | | allCodeDOList.stream().forEach( |
| | | allCode -> {DefaultAttrAssimtUtil.addDefaultAttrAssimt(allCode,"codeallcode");allCode.setLctid("codeAllCodeLC");} |
| | | ); |
| | | |
| | | codeAllCodeService.saveBatch(allCodeDOList); |
| | | iCodeWupinService.saveBatch(dataCBOList); |
| | | // iCodeWupinService.saveBatch(dataCBOList); |
| | | mdmEngineService.insertBatchByType(dataCBOList.get(0).getBtmname(),dataCBOList); |
| | | |
| | | // batchCBO.getCreateCbos().stream().filter(s -> StringUtils.equalsIgnoreCase("codeallcode",s.getBtmName())).forEach(s -> { |
| | | // s.setLcStatus(statusMap.get(s.getOid())); |
| | | // try { |
| | |
| | | * @param serialUnitList æµæ°´ä¾æ®çå
容 |
| | | * è¿éè¦åç»çä¸ä¸ªç§»æ¤å°ä¼æ¶åå°å
¶ä»çæå¡ |
| | | */ |
| | | private void switchAttrSecValue(List<CodeBasicSecVO> attrSecVOList, CodeWupin cbo, |
| | | private void switchAttrSecValue(List<CodeBasicSecVO> attrSecVOList, BaseModel cbo, |
| | | List<String> thisSecValueList, boolean attrSevIsSerialDepend, |
| | | List<String> serialUnitList){ |
| | | if (!CollectionUtils.isEmpty(attrSecVOList)) { |
| | |
| | | String value = ""; |
| | | if (StringUtils.isNotBlank(attrSevVO.getGetValueClass())) { |
| | | //使ç¨ç»åè§åæ¥å¤çç |
| | | // value = getValueByFormulaForCBO(cbo, attrSevVO.getGetValueClass()); |
| | | value = getValueByFormulaForCBO(cbo, attrSevVO.getGetValueClass()); |
| | | } else { |
| | | // value = cbo.getAttributeValue(attrSevVO.getReferAttributeId()); |
| | | value = cbo.getData().get(attrSevVO.getReferAttributeId()); |
| | | } |
| | | if (value == null) { |
| | | value = ""; |
| | |
| | | * @param allCodeDOList ææçç å¼ç对象å表 |
| | | */ |
| | | private void wrapperAllCode(CodeClassifyFullInfoBO classifyFullInfoBO, CodeRuleVO ruleVO, |
| | | CodeWupin cbo, CodeClassifyTemplateVO templateVO, |
| | | BaseModel cbo, CodeClassifyTemplateVO templateVO, |
| | | List<CodeAllCode> allCodeDOList, String serialUnitString, String serialValueString){ |
| | | CodeAllCode allCodeDO = new CodeAllCode(); |
| | | allCodeDO.setCodeClassifyOid(classifyFullInfoBO.getCurrentClassifyVO().getOid()); |
| | |
| | | // WebUtil.setPersistence(oldPersistence); |
| | | return updateFlag.get(); |
| | | } |
| | | |
| | | /** |
| | | * 使ç¨CBOå¤çç»åè§åçå
容 |
| | | * @param cbo æ°æ®çå
容 |
| | | * @param rule è§åçå
容 |
| | | * @return 转æ¢åç |
| | | */ |
| | | private String getValueByFormulaForCBO(BaseModel cbo,String rule){ |
| | | Map<String, Object> dataMap = BeanUtils.beanToMap(cbo); |
| | | Map<String, String> map = new HashMap<String, String>(); |
| | | for (String i : dataMap.keySet()) { |
| | | map.put(i, String.valueOf(dataMap.get(i))); |
| | | } |
| | | // WebUtil.copyValueToMapFromCbos(cbo,dataMap); |
| | | return formulaService.getValueByFormula(map,rule); |
| | | } |
| | | } |
| | |
| | | import com.vci.ubcs.code.vo.webserviceModel.result.xml.XMLResultClassfyVO; |
| | | import com.vci.ubcs.code.vo.webserviceModel.result.xml.XMLResultDataObjectDetailDO; |
| | | import com.vci.ubcs.code.vo.webserviceModel.result.xml.XMLResultSystemVO; |
| | | import com.vci.ubcs.code.webService.annotation.VciWebservice; |
| | | import com.vci.ubcs.code.webService.config.AttributeMapConfig; |
| | | import com.vci.ubcs.starter.revision.model.TreeQueryObject; |
| | | import com.vci.ubcs.starter.web.pagemodel.SessionInfo; |
| | | import com.vci.ubcs.starter.web.util.BeanUtilForVCI; |
| | | import com.vci.ubcs.starter.web.util.VciBaseUtil; |
| | | import com.vci.ubcs.webservice.annotation.VciWebservice; |
| | | import com.vci.ubcs.webservice.config.AttributeMapConfig; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | |
| | | import com.thoughtworks.xstream.XStream; |
| | | import com.thoughtworks.xstream.io.xml.DomDriver; |
| | | import com.vci.ubcs.code.vo.webserviceModel.attrmap.LibraryDO; |
| | | import com.vci.ubcs.code.webService.config.AttributeMapConfig; |
| | | import com.vci.ubcs.starter.util.LocalFileUtil; |
| | | import com.vci.ubcs.webservice.config.AttributeMapConfig; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | |
| | | import java.util.Map; |
ÎļþÃû´Ó Source/UBCS/ubcs-service/ubcs-webservice/src/main/java/com/vci/ubcs/webservice/WsClientUtil.java ÐÞ¸Ä |
| | |
| | | /* |
| | | package com.vci.ubcs.code.webService;/* |
| | | package com.vci.ubcs.webservice; |
| | | |
| | | import org.apache.axiom.om.OMAbstractFactory; |
ÎļþÃû´Ó Source/UBCS/ubcs-service/ubcs-webservice/src/main/java/com/vci/ubcs/webservice/annotation/VciWebservice.java ÐÞ¸Ä |
| | |
| | | package com.vci.ubcs.webservice.annotation; |
| | | package com.vci.ubcs.code.webService.annotation; |
| | | |
| | | import org.springframework.core.annotation.AliasFor; |
| | | import org.springframework.stereotype.Component; |
ÎļþÃû´Ó Source/UBCS/ubcs-service/ubcs-webservice/src/main/java/com/vci/ubcs/webservice/config/AttributeMapConfig.java ÐÞ¸Ä |
| | |
| | | package com.vci.ubcs.webservice.config; |
| | | package com.vci.ubcs.code.webService.config; |
| | | |
| | | import org.springframework.boot.context.properties.ConfigurationProperties; |
| | | import org.springframework.stereotype.Component; |
ÎļþÃû´Ó Source/UBCS/ubcs-service/ubcs-webservice/src/main/java/com/vci/ubcs/webservice/config/VciCxfPublishConfig.java ÐÞ¸Ä |
| | |
| | | package com.vci.ubcs.webservice.config; |
| | | package com.vci.ubcs.code.webService.config; |
| | | |
| | | import com.alibaba.cloud.commons.lang.StringUtils; |
| | | import com.vci.ubcs.code.webService.annotation.VciWebservice; |
| | | import com.vci.ubcs.starter.web.util.ApplicationContextProvider; |
| | | import com.vci.ubcs.starter.web.util.VciBaseUtil; |
| | | import com.vci.ubcs.webservice.annotation.VciWebservice; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.cxf.Bus; |
| | | import org.apache.cxf.jaxws.EndpointImpl; |
| | |
| | | * Author: Chill åºéª (smallchill@163.com) |
| | | */ |
| | | |
| | | import com.baomidou.mybatisplus.core.toolkit.StringUtils; |
| | | import com.vci.ubcs.code.entity.CodeBasicSec; |
| | | import com.vci.ubcs.code.enumpack.*; |
| | | import com.vci.ubcs.code.vo.pagemodel.CodeBasicSecVO; |
| | | import com.vci.ubcs.omd.cache.EnumCache; |
| | | import com.vci.ubcs.omd.enums.EnumEnum; |
| | | import org.springblade.core.mp.support.BaseEntityWrapper; |
| | | import org.springblade.core.tool.utils.BeanUtil; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | | import java.util.Objects; |
| | | import java.util.stream.Collectors; |
| | |
| | | } |
| | | |
| | | @Override |
| | | public CodeBasicSecVO entityVO(CodeBasicSec codeBasicSec) { |
| | | CodeBasicSecVO codeBasicSecVO = Objects.requireNonNull(BeanUtil.copy(codeBasicSec, CodeBasicSecVO.class)); |
| | | |
| | | //codeBasicSecVO.setLcStatusText(CodeRuleLC.getTextByValue(codeBasicSec.getLcStatus())); |
| | | codeBasicSecVO.setSecTypeText(CodeSecTypeEnum.getTextByValue(codeBasicSec.getSecType())); |
| | | codeBasicSecVO.setCodeLevelTypeText(CodeLevelTypeEnum.getTextByValue(codeBasicSec.getCodeLevelType())); |
| | | codeBasicSecVO.setCodeSecLengthTypeText(CodeSecLengthTypeEnum.getTextByValue(codeBasicSec.getCodeSecLengthType())); |
| | | codeBasicSecVO.setValueCutTypeText(CodeCutTypeEnum.getValueByText(codeBasicSec.getValueCutType())); |
| | | codeBasicSecVO.setCodeGetValueTypeText(CodeGetValueTypeEnum.getValueByText(codeBasicSec.getCodeGetValueType())); |
| | | public CodeBasicSecVO entityVO(CodeBasicSec codeBasicSecDO) { |
| | | CodeBasicSecVO codeBasicSecVO = Objects.requireNonNull(BeanUtil.copy(codeBasicSecDO, CodeBasicSecVO.class)); |
| | | if(StringUtils.isNotBlank(codeBasicSecDO.getSecType())){ |
| | | codeBasicSecVO.setSecTypeText(EnumCache.getValue(EnumEnum.CODE_SEC_TYPE,codeBasicSecDO.getSecType())); |
| | | } |
| | | if(StringUtils.isNotBlank(codeBasicSecDO.getCodeLevelType())){ |
| | | codeBasicSecVO.setCodeLevelTypeText(EnumCache.getValue(EnumEnum.CODE_LEVEL_TYPE,codeBasicSecDO.getCodeLevelType())); |
| | | } |
| | | if(StringUtils.isNotBlank(codeBasicSecDO.getCodeSecLengthType())){ |
| | | codeBasicSecVO.setCodeSecLengthTypeText(EnumCache.getValue(EnumEnum.CODE_SEC_LENGTH,codeBasicSecDO.getCodeSecLengthType())); |
| | | } |
| | | if(StringUtils.isNotBlank(codeBasicSecDO.getValueCutType())){ |
| | | codeBasicSecVO.setValueCutTypeText(EnumCache.getValue(EnumEnum.CODE_CUT_TYPE,codeBasicSecDO.getValueCutType())); |
| | | } |
| | | if(StringUtils.isNotBlank(codeBasicSecDO.getCodeGetValueType())){ |
| | | codeBasicSecVO.setCodeGetValueTypeText(EnumCache.getValue(EnumEnum.CODE_GET_VALUE_TYPE,codeBasicSecDO.getCodeGetValueType())); |
| | | } |
| | | //codeBasicSecVO.setParentClassifySecText(); |
| | | //codeBasicSecVO.setSecretGradeText(); |
| | | return codeBasicSecVO; |
| | |
| | | package com.vci.ubcs.code.wrapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.toolkit.StringUtils; |
| | | import com.vci.ubcs.code.entity.CodeClassifyProcessTemp; |
| | | import com.vci.ubcs.code.enumpack.CodeClassifyProcessUseEnum; |
| | | import com.vci.ubcs.code.vo.pagemodel.CodeClassifyProcessTempVO; |
| | | import com.vci.ubcs.omd.cache.EnumCache; |
| | | import com.vci.ubcs.omd.enums.EnumEnum; |
| | | import org.springblade.core.mp.support.BaseEntityWrapper; |
| | | import org.springblade.core.tool.utils.BeanUtil; |
| | | |
| | |
| | | @Override |
| | | public CodeClassifyProcessTempVO entityVO(CodeClassifyProcessTemp codeClassifyProcessTemp) { |
| | | CodeClassifyProcessTempVO codeClassifyProcessTempVO = Objects.requireNonNull(BeanUtil.copy(codeClassifyProcessTemp, CodeClassifyProcessTempVO.class)); |
| | | codeClassifyProcessTempVO.setCodeProcessUseText(CodeClassifyProcessUseEnum.getTextByValue(codeClassifyProcessTemp.getCodeProcessUse())); |
| | | |
| | | |
| | | if(StringUtils.isNotBlank(codeClassifyProcessTemp.getCodeProcessUse())){ |
| | | codeClassifyProcessTempVO.setCodeProcessUseText(EnumCache.getValue(EnumEnum.CODE_CLASSIFY_PROCESS_USE,codeClassifyProcessTemp.getCodeProcessUse())); |
| | | } |
| | | return codeClassifyProcessTempVO; |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| | |
| | | */ |
| | | package com.vci.ubcs.code.wrapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.toolkit.StringUtils; |
| | | import com.vci.ubcs.code.entity.CodeClassifyTemplateAttr; |
| | | import com.vci.ubcs.code.vo.pagemodel.CodeClassifyTemplateAttrVO; |
| | | import com.vci.ubcs.omd.cache.EnumCache; |
| | | import com.vci.ubcs.omd.enums.EnumEnum; |
| | | import com.vci.ubcs.starter.web.enumpck.VciFieldTypeEnum; |
| | | import org.springblade.core.mp.support.BaseEntityWrapper; |
| | | import org.springblade.core.tool.utils.BeanUtil; |
| | |
| | | @Override |
| | | public CodeClassifyTemplateAttrVO entityVO(CodeClassifyTemplateAttr CodeClstempattr) { |
| | | CodeClassifyTemplateAttrVO codeClassifyTemplateAttrVO = Objects.requireNonNull(BeanUtil.copy(CodeClstempattr, CodeClassifyTemplateAttrVO.class)); |
| | | |
| | | codeClassifyTemplateAttrVO.setAttributeDataTypeText(VciFieldTypeEnum.getTextByValue(CodeClstempattr.getAttributeDataType())); |
| | | |
| | | if(StringUtils.isNotBlank(CodeClstempattr.getAttributeDataType())){ |
| | | codeClassifyTemplateAttrVO.setAttributeDataTypeText( EnumCache.getValue(EnumEnum.VCO_FIELD_TYPE,CodeClstempattr.getAttributeDataType())); |
| | | } |
| | | return codeClassifyTemplateAttrVO; |
| | | } |
| | | |
| | |
| | | @Override |
| | | public CodeClassifyTemplateVO entityVO(CodeClassifyTemplate plCodeClstemplate) { |
| | | CodeClassifyTemplateVO plCodeClstemplateVO = Objects.requireNonNull(BeanUtil.copy(plCodeClstemplate, CodeClassifyTemplateVO.class)); |
| | | |
| | | //User createUser = UserCache.getUser(plCodeClstemplate.getCreateUser()); |
| | | //User updateUser = UserCache.getUser(plCodeClstemplate.getUpdateUser()); |
| | | //plCodeClstemplateVO.setCreateUserName(createUser.getName()); |
| | | //plCodeClstemplateVO.setUpdateUserName(updateUser.getName()); |
| | | |
| | | return plCodeClstemplateVO; |
| | | } |
| | | |
| | |
| | | package com.vci.ubcs.code.wrapper; |
| | | |
| | | import com.vci.ubcs.code.entity.CodePhaseAttr; |
| | | import com.baomidou.mybatisplus.core.toolkit.StringUtils; |
| | | import com.vci.ubcs.code.entity.CodeReferConfig; |
| | | import com.vci.ubcs.code.enumpack.CodeReferConfigTypeEnum; |
| | | import com.vci.ubcs.code.vo.CodeReferConfigVO; |
| | | import com.vci.ubcs.code.vo.pagemodel.CodePhaseAttrVO; |
| | | import com.vci.ubcs.omd.cache.EnumCache; |
| | | import com.vci.ubcs.omd.enums.EnumEnum; |
| | | import org.springblade.core.mp.support.BaseEntityWrapper; |
| | | import org.springblade.core.tool.utils.BeanUtil; |
| | | import org.springblade.core.tool.utils.Func; |
| | | |
| | | import java.util.List; |
| | | import java.util.Objects; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | | * åç
§é
ç½®-å
è£
ç±»,è¿åè§å¾å±æéçåæ®µ |
| | |
| | | */ |
| | | public class CodeReferConfigWraper extends BaseEntityWrapper<CodeReferConfig, CodeReferConfigVO> { |
| | | |
| | | |
| | | public static CodeReferConfigWraper build() { |
| | | return new CodeReferConfigWraper(); |
| | | } |
| | |
| | | @Override |
| | | public CodeReferConfigVO entityVO(CodeReferConfig codeReferConfig) { |
| | | CodeReferConfigVO codeReferConfigVO = Objects.requireNonNull(BeanUtil.copy(codeReferConfig, CodeReferConfigVO.class)); |
| | | |
| | | |
| | | if(StringUtils.isNotBlank(codeReferConfig.getType())){ |
| | | codeReferConfigVO.setTypeText(EnumCache.getValue(EnumEnum.CODE_REFER_CONFIG_TYPE,codeReferConfig.getType())); |
| | | } |
| | | if(Func.isNotEmpty(codeReferConfig.getCodeSrchCondConfigs())){ |
| | | codeReferConfigVO.setCodeSrchCondConfigVOS(CodeSrchCondConfigWraper.build().listVO(codeReferConfig.getCodeSrchCondConfigs())); |
| | | } |
| | | if(Func.isNotEmpty(codeReferConfig.getCodeShowFieldConfigs())){ |
| | | codeReferConfigVO.setCodeShowFieldConfigVOS(CodeShowFieldConfigWraper.build().listVO(codeReferConfig.getCodeShowFieldConfigs())); |
| | | } |
| | | codeReferConfigVO.setCodeShowFieldConfigs(null); |
| | | codeReferConfigVO.setCodeSrchCondConfigs(null); |
| | | return codeReferConfigVO; |
| | | } |
| | | |
| | | |
| | | public CodeReferConfig entityDO(CodeReferConfigVO codeReferConfigVO) { |
| | | CodeReferConfig codeReferConfig = Objects.requireNonNull(BeanUtil.copy(codeReferConfigVO, CodeReferConfig.class)); |
| | | //codeReferConfig.setType(CodeReferConfigTypeEnum.getValueByText(codeReferConfigVO.getTypeText())); |
| | | if(Func.isNotEmpty(codeReferConfigVO.getCodeSrchCondConfigVOS())){ |
| | | codeReferConfig.setCodeSrchCondConfigs(CodeSrchCondConfigWraper.build().listDO(codeReferConfigVO.getCodeSrchCondConfigVOS())); |
| | | } |
| | | if(Func.isNotEmpty(codeReferConfigVO.getCodeShowFieldConfigVOS())){ |
| | | codeReferConfig.setCodeShowFieldConfigs(CodeShowFieldConfigWraper.build().listDO(codeReferConfigVO.getCodeShowFieldConfigVOS())); |
| | | } |
| | | // codeReferConfigVO.setCodeSrchCondConfigVOS(null); |
| | | // codeReferConfigVO.setCodeShowFieldConfigVOS(null); |
| | | return codeReferConfig; |
| | | } |
| | | |
| | | } |
| | |
| | | */ |
| | | package com.vci.ubcs.code.wrapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.toolkit.StringUtils; |
| | | import com.vci.ubcs.code.entity.CodeRule; |
| | | import com.vci.ubcs.code.lifecycle.CodeRuleLC; |
| | | import com.vci.ubcs.code.vo.pagemodel.CodeRuleVO; |
| | | import com.vci.ubcs.omd.cache.EnumCache; |
| | | import com.vci.ubcs.omd.enums.EnumEnum; |
| | | import org.springblade.core.mp.support.BaseEntityWrapper; |
| | | import org.springblade.core.tool.utils.BeanUtil; |
| | | |
| | |
| | | @Override |
| | | public CodeRuleVO entityVO(CodeRule codeRule) { |
| | | CodeRuleVO codeRuleVO = Objects.requireNonNull(BeanUtil.copy(codeRule, CodeRuleVO.class)); |
| | | codeRuleVO.setLcStatusText(CodeRuleLC.getTextByValue(codeRuleVO.getLcStatus())); |
| | | if(StringUtils.isNotBlank(codeRuleVO.getLcStatus())){ |
| | | codeRuleVO.setLcStatusText(EnumCache.getValue(EnumEnum.CODE_RULE_LC,codeRuleVO.getLcStatus())); |
| | | } |
| | | return codeRuleVO; |
| | | } |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.wrapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.toolkit.StringUtils; |
| | | import com.vci.ubcs.code.entity.CodeShowFieldConfig; |
| | | import com.vci.ubcs.code.entity.CodeSrchCondConfig; |
| | | import com.vci.ubcs.code.enumpack.CodeReferConfigFieldTypeEnum; |
| | | import com.vci.ubcs.code.enumpack.CodeReferConfigFixedEnum; |
| | | import com.vci.ubcs.code.vo.CodeReferConfigVO; |
| | | import com.vci.ubcs.code.vo.CodeShowFieldConfigVO; |
| | | import com.vci.ubcs.code.vo.CodeSrchCondConfigVO; |
| | | import com.vci.ubcs.omd.cache.EnumCache; |
| | | import com.vci.ubcs.omd.enums.EnumEnum; |
| | | import org.springblade.core.mp.support.BaseEntityWrapper; |
| | | import org.springblade.core.tool.utils.BeanUtil; |
| | | |
| | | import java.util.List; |
| | | import java.util.Objects; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | | * @author ludc |
| | | * @date 2023/5/24 13:13 |
| | | */ |
| | | public class CodeShowFieldConfigWraper extends BaseEntityWrapper<CodeShowFieldConfig, CodeShowFieldConfigVO>{ |
| | | |
| | | public static CodeShowFieldConfigWraper build() { |
| | | return new CodeShowFieldConfigWraper(); |
| | | } |
| | | |
| | | @Override |
| | | public CodeShowFieldConfigVO entityVO(CodeShowFieldConfig codeShowFieldConfig) { |
| | | CodeShowFieldConfigVO codeShowFieldConfigVO = Objects.requireNonNull(BeanUtil.copy(codeShowFieldConfig, CodeShowFieldConfigVO.class)); |
| | | if(StringUtils.isNotBlank(codeShowFieldConfig.getFixedPosition())){ |
| | | codeShowFieldConfigVO.setFixedPositionText(EnumCache.getValue(EnumEnum.CODE_REFER_CONFIG_FIXED,codeShowFieldConfig.getFixedPosition())); |
| | | } |
| | | if(StringUtils.isNotBlank(codeShowFieldConfig.getFieldType())){ |
| | | codeShowFieldConfigVO.setFieldTypeText(EnumCache.getValue(EnumEnum.CODE_REFER_CONFIG_FIELD_TYPE,codeShowFieldConfig.getFieldType())); |
| | | } |
| | | return codeShowFieldConfigVO; |
| | | } |
| | | |
| | | public CodeShowFieldConfig entityDOsetReferConfigOid(CodeShowFieldConfigVO codeShowFieldConfigVO,String oid) { |
| | | CodeShowFieldConfig codeShowFieldConfig = entityDO(codeShowFieldConfigVO); |
| | | codeShowFieldConfig.setReferConfigOid(oid); |
| | | return codeShowFieldConfig; |
| | | } |
| | | |
| | | public CodeShowFieldConfig entityDO(CodeShowFieldConfigVO codeShowFieldConfigVO) { |
| | | CodeShowFieldConfig codeShowFieldConfig = Objects.requireNonNull(BeanUtil.copy(codeShowFieldConfigVO, CodeShowFieldConfig.class)); |
| | | if(StringUtils.isNotBlank(codeShowFieldConfigVO.getFieldTypeText())){ |
| | | codeShowFieldConfig.setFieldType(CodeReferConfigFieldTypeEnum.getTextByValue(codeShowFieldConfigVO.getFieldTypeText())); |
| | | } |
| | | if(StringUtils.isNotBlank(codeShowFieldConfigVO.getFixedPositionText())){ |
| | | codeShowFieldConfig.setFixedPosition(CodeReferConfigFieldTypeEnum.getTextByValue(codeShowFieldConfigVO.getFixedPositionText())); |
| | | } |
| | | if(StringUtils.isNotBlank(codeShowFieldConfigVO.getFieldTypeText())){ |
| | | codeShowFieldConfig.setFieldType(CodeReferConfigFieldTypeEnum.getValueByText(codeShowFieldConfigVO.getFieldTypeText())); |
| | | } |
| | | return codeShowFieldConfig; |
| | | } |
| | | |
| | | public List<CodeShowFieldConfig> listDO(List<CodeShowFieldConfigVO> codeShowFieldConfigVOS,String oid) { |
| | | return (List)codeShowFieldConfigVOS.stream().map(item->entityDOsetReferConfigOid(item,oid)).collect(Collectors.toList()); |
| | | } |
| | | |
| | | public List<CodeShowFieldConfig> listDO(List<CodeShowFieldConfigVO> codeShowFieldConfigVOS) { |
| | | return (List)codeShowFieldConfigVOS.stream().map(this::entityDO).collect(Collectors.toList()); |
| | | } |
| | | |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.wrapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.toolkit.StringUtils; |
| | | import com.vci.ubcs.code.entity.CodeReferConfig; |
| | | import com.vci.ubcs.code.entity.CodeShowFieldConfig; |
| | | import com.vci.ubcs.code.entity.CodeSrchCondConfig; |
| | | import com.vci.ubcs.code.enumpack.CodeReferConfigFieldTypeEnum; |
| | | import com.vci.ubcs.code.enumpack.CodeReferConfigFilterTypeEnum; |
| | | import com.vci.ubcs.code.vo.CodeReferConfigVO; |
| | | import com.vci.ubcs.code.vo.CodeShowFieldConfigVO; |
| | | import com.vci.ubcs.code.vo.CodeSrchCondConfigVO; |
| | | import com.vci.ubcs.omd.cache.EnumCache; |
| | | import com.vci.ubcs.omd.enums.EnumEnum; |
| | | import org.springblade.core.mp.support.BaseEntityWrapper; |
| | | import org.springblade.core.tool.utils.BeanUtil; |
| | | |
| | | import java.util.List; |
| | | import java.util.Objects; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | | * @author ludc |
| | | * @date 2023/5/24 13:13 |
| | | */ |
| | | public class CodeSrchCondConfigWraper extends BaseEntityWrapper<CodeSrchCondConfig, CodeSrchCondConfigVO> { |
| | | |
| | | public static CodeSrchCondConfigWraper build() { |
| | | return new CodeSrchCondConfigWraper(); |
| | | } |
| | | |
| | | @Override |
| | | public CodeSrchCondConfigVO entityVO(CodeSrchCondConfig codeSrchCondConfig) { |
| | | CodeSrchCondConfigVO codeSrchCondConfigVO = Objects.requireNonNull(BeanUtil.copy(codeSrchCondConfig, CodeSrchCondConfigVO.class)); |
| | | if(StringUtils.isNotBlank(codeSrchCondConfigVO.getFilterType())){ |
| | | codeSrchCondConfigVO.setFilterTypeText(EnumCache.getValue(EnumEnum.CODE_REFER_CONFIG_FILTER_TYPE,codeSrchCondConfig.getFilterType())); |
| | | } |
| | | return codeSrchCondConfigVO; |
| | | } |
| | | |
| | | public CodeSrchCondConfig entityDOsetReferConfigOid(CodeSrchCondConfigVO codeSrchCondConfigVO,String oid) { |
| | | CodeSrchCondConfig codeSrchCondConfig = entityDO(codeSrchCondConfigVO); |
| | | codeSrchCondConfig.setReferConfigOid(oid); |
| | | return codeSrchCondConfig; |
| | | } |
| | | |
| | | public CodeSrchCondConfig entityDO(CodeSrchCondConfigVO codeSrchCondConfigVO) { |
| | | CodeSrchCondConfig codeSrchCondConfig = Objects.requireNonNull(BeanUtil.copy(codeSrchCondConfigVO, CodeSrchCondConfig.class)); |
| | | if(StringUtils.isNotBlank(codeSrchCondConfigVO.getFilterTypeText())){ |
| | | codeSrchCondConfig.setFilterType(CodeReferConfigFieldTypeEnum.getTextByValue(codeSrchCondConfigVO.getFilterTypeText())); |
| | | } |
| | | codeSrchCondConfig.setReferConfigOid(codeSrchCondConfigVO.getOid()); |
| | | return codeSrchCondConfig; |
| | | } |
| | | |
| | | public List<CodeSrchCondConfig> listDO(List<CodeSrchCondConfigVO> codeSrchCondConfigVOS) { |
| | | return (List)codeSrchCondConfigVOS.stream().map(this::entityDO).collect(Collectors.toList()); |
| | | } |
| | | |
| | | public List<CodeSrchCondConfig> listDO(List<CodeSrchCondConfigVO> codeSrchCondConfigVOS,String oid) { |
| | | return (List)codeSrchCondConfigVOS.stream().map(item->entityDOsetReferConfigOid(item,oid)).collect(Collectors.toList()); |
| | | } |
| | | |
| | | } |
| | |
| | | */ |
| | | package com.vci.ubcs.code.wrapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.toolkit.StringUtils; |
| | | import com.vci.ubcs.code.entity.CodeClassifyTemplateButton; |
| | | import com.vci.ubcs.code.enumpack.CodeButtonUseEnum; |
| | | import com.vci.ubcs.code.vo.pagemodel.CodeClassifyTemplateButtonVO; |
| | | import com.vci.ubcs.omd.cache.EnumCache; |
| | | import com.vci.ubcs.omd.enums.EnumEnum; |
| | | import org.springblade.core.mp.support.BaseEntityWrapper; |
| | | import org.springblade.core.tool.utils.BeanUtil; |
| | | import java.util.Objects; |
| | |
| | | public CodeClassifyTemplateButtonVO entityVO(CodeClassifyTemplateButton CodeTempbuttonDO) { |
| | | CodeClassifyTemplateButtonVO codeClassifyTemplateButtonVO = Objects.requireNonNull(BeanUtil.copy(CodeTempbuttonDO, CodeClassifyTemplateButtonVO.class)); |
| | | |
| | | codeClassifyTemplateButtonVO.setButtonUseText(CodeButtonUseEnum.getTextByValue(CodeTempbuttonDO.getButtonUse())); |
| | | if(StringUtils.isNotBlank(CodeTempbuttonDO.getButtonUse())){ |
| | | codeClassifyTemplateButtonVO.setButtonUseText(EnumCache.getValue(EnumEnum.CODE_TEMPLATE_BUTTON_USE,CodeTempbuttonDO.getButtonUse())); |
| | | } |
| | | |
| | | return codeClassifyTemplateButtonVO; |
| | | } |
| | |
| | | package com.vci.ubcs.code.wrapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.toolkit.CollectionUtils; |
| | | import com.vci.ubcs.code.entity.DockingLog; |
| | | import com.vci.ubcs.code.vo.pagemodel.DockingLogeVO; |
| | | import org.springblade.core.mp.support.BaseEntityWrapper; |
| | | import org.springblade.core.tool.utils.BeanUtil; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.Collection; |
| | | import java.util.List; |
| | | import java.util.Objects; |
| | | |
| | | public class DockingLogeWrapper extends BaseEntityWrapper<DockingLog, DockingLogeVO> { |
| | | public static DockingLogeWrapper build() { |
| | | return new DockingLogeWrapper(); |
| | | } |
| | | |
| | | @Override |
| | | public DockingLogeVO entityVO(DockingLog entity) { |
| | | DockingLogeVO dockingLogeVO = Objects.requireNonNull(BeanUtil.copy(entity, DockingLogeVO.class)); |
| | | return dockingLogeVO; |
| | | } |
| | | |
| | | |
| | | /*** |
| | | * æ°ç»å¯¹è±¡è½¬æ¢ |
| | | * @param entitys |
| | | * @return |
| | | */ |
| | | public List<DockingLogeVO> entityVOs(Collection<DockingLog> entitys) { |
| | | if(CollectionUtils.isEmpty(entitys)) {return new ArrayList<>();} |
| | | List<DockingLogeVO> vos=new ArrayList<>(); |
| | | if(!CollectionUtils.isEmpty(entitys)) { |
| | | entitys.stream().forEach(vo -> { |
| | | vos.add(entityVO(vo)); |
| | | }); |
| | | } |
| | | return vos; |
| | | } |
| | | |
| | | /*** |
| | | * æ°ç»å¯¹è±¡è½¬æ¢ |
| | | * @param vos |
| | | * @return |
| | | */ |
| | | public List<DockingLog> voentitys(Collection<DockingLogeVO> vos) { |
| | | if(CollectionUtils.isEmpty(vos)) {return new ArrayList<>();} |
| | | List<DockingLog>entitys =new ArrayList<>(); |
| | | if(!CollectionUtils.isEmpty(vos)) { |
| | | vos.stream().forEach(entity -> { |
| | | entitys.add(voentity(entity)); |
| | | }); |
| | | } |
| | | return entitys; |
| | | } |
| | | |
| | | /*** |
| | | * æ°ç»å¯¹è±¡è½¬æ¢ |
| | | * @param vo |
| | | * @return |
| | | */ |
| | | public DockingLog voentity( DockingLogeVO vo) { |
| | | DockingLog entity = Objects.requireNonNull(BeanUtil.copy(vo, DockingLog.class)); |
| | | return entity; |
| | | } |
| | | } |
| | |
| | | <result property="customCodeSerialClass" column="CUSTOMCODESERIALCLASS" jdbcType="VARCHAR"/> |
| | | <result property="matchClassifyValueFlag" column="MATCHCLASSIFYVALUEFLAG" jdbcType="VARCHAR"/> |
| | | <result property="parentClassifySecOid" column="PARENTCLASSIFYSECOID" jdbcType="VARCHAR"/> |
| | | <result property="parentClassifySecText" column="b__name" jdbcType="VARCHAR"/> |
| | | <result property="nullableFlag" column="NULLABLEFLAG" jdbcType="VARCHAR"/> |
| | | <result property="componentCodeFlag" column="COMPONENTCODEFLAG" jdbcType="VARCHAR"/> |
| | | <result property="serialDependFlag" column="SERIALDEPENDFLAG" jdbcType="VARCHAR"/> |
| | |
| | | </resultMap> |
| | | |
| | | <select id="selectCodeBasicSecPage" resultMap="CodeBasicsecMap"> |
| | | select PL_CODE_BASICSEC.oid, |
| | | PL_CODE_BASICSEC.revisionoid, |
| | | PL_CODE_BASICSEC.nameoid, |
| | | PL_CODE_BASICSEC.btmname, |
| | | PL_CODE_BASICSEC.lastr, |
| | | PL_CODE_BASICSEC.firstr, |
| | | PL_CODE_BASICSEC.lastv, |
| | | PL_CODE_BASICSEC.firstv, |
| | | PL_CODE_BASICSEC.creator, |
| | | PL_CODE_BASICSEC.createtime, |
| | | PL_CODE_BASICSEC.lastmodifier, |
| | | PL_CODE_BASICSEC.lastmodifytime, |
| | | PL_CODE_BASICSEC.revisionrule, |
| | | PL_CODE_BASICSEC.versionrule, |
| | | PL_CODE_BASICSEC.revisionseq, |
| | | PL_CODE_BASICSEC.revisionvalue, |
| | | PL_CODE_BASICSEC.versionseq, |
| | | PL_CODE_BASICSEC.versionvalue, |
| | | PL_CODE_BASICSEC.lctid, |
| | | PL_CODE_BASICSEC.lcstatus, |
| | | PL_CODE_BASICSEC.ts, |
| | | PL_CODE_BASICSEC.id, |
| | | PL_CODE_BASICSEC.name, |
| | | PL_CODE_BASICSEC.description, |
| | | PL_CODE_BASICSEC.owner, |
| | | PL_CODE_BASICSEC.copyfromversion, |
| | | PL_CODE_BASICSEC.codefillseparator, |
| | | PL_CODE_BASICSEC.codeseclength, |
| | | PL_CODE_BASICSEC.valuecuttype, |
| | | PL_CODE_BASICSEC.codefilltype, |
| | | PL_CODE_BASICSEC.refervalueinfo, |
| | | PL_CODE_BASICSEC.referattributeid, |
| | | PL_CODE_BASICSEC.getvalueclass, |
| | | PL_CODE_BASICSEC.displayflag, |
| | | PL_CODE_BASICSEC.parentclassifysecoid, |
| | | PL_CODE_BASICSEC.serialstep, |
| | | PL_CODE_BASICSEC.serialdependflag, |
| | | PL_CODE_BASICSEC.filtersql, |
| | | PL_CODE_BASICSEC.codedateformatstr, |
| | | PL_CODE_BASICSEC.refercodeclassifyoid, |
| | | PL_CODE_BASICSEC.codeleveltype, |
| | | PL_CODE_BASICSEC.codeseclengthtype, |
| | | PL_CODE_BASICSEC.referattributename, |
| | | PL_CODE_BASICSEC.referbtmname, |
| | | PL_CODE_BASICSEC.codefillflag, |
| | | PL_CODE_BASICSEC.valuecutlength, |
| | | PL_CODE_BASICSEC.codegetvaluetype, |
| | | PL_CODE_BASICSEC.referbtmid, |
| | | PL_CODE_BASICSEC.codefilltypetext, |
| | | PL_CODE_BASICSEC.codelevelvalue, |
| | | PL_CODE_BASICSEC.codefilllength, |
| | | PL_CODE_BASICSEC.customcodeserialclass, |
| | | PL_CODE_BASICSEC.matchclassifyvalueflag, |
| | | PL_CODE_BASICSEC.sectype, |
| | | PL_CODE_BASICSEC.pkcoderule, |
| | | PL_CODE_BASICSEC.ordernum, |
| | | PL_CODE_BASICSEC.referconfig, |
| | | PL_CODE_BASICSEC.serialstart, |
| | | PL_CODE_BASICSEC.componentcodeflag, |
| | | PL_CODE_BASICSEC.serialdependorder, |
| | | PL_CODE_BASICSEC.nullableflag, |
| | | PL_CODE_BASICSEC.codefilllimit, |
| | | btm_codebasicsec_1.name as b__name, |
| | | platformbtm_codeclassify.name as c__name, |
| | | COUNT(*) OVER () "##VCI_COUNT_VCI##" |
| | | SELECT PL_CODE_BASICSEC.oid, |
| | | PL_CODE_BASICSEC.revisionoid, |
| | | PL_CODE_BASICSEC.nameoid, |
| | | PL_CODE_BASICSEC.btmname, |
| | | PL_CODE_BASICSEC.lastr, |
| | | PL_CODE_BASICSEC.firstr, |
| | | PL_CODE_BASICSEC.lastv, |
| | | PL_CODE_BASICSEC.firstv, |
| | | PL_CODE_BASICSEC.creator, |
| | | PL_CODE_BASICSEC.createtime, |
| | | PL_CODE_BASICSEC.lastmodifier, |
| | | PL_CODE_BASICSEC.lastmodifytime, |
| | | PL_CODE_BASICSEC.revisionrule, |
| | | PL_CODE_BASICSEC.versionrule, |
| | | PL_CODE_BASICSEC.revisionseq, |
| | | PL_CODE_BASICSEC.revisionvalue, |
| | | PL_CODE_BASICSEC.versionseq, |
| | | PL_CODE_BASICSEC.versionvalue, |
| | | PL_CODE_BASICSEC.lctid, |
| | | PL_CODE_BASICSEC.lcstatus, |
| | | PL_CODE_BASICSEC.ts, |
| | | PL_CODE_BASICSEC.id, |
| | | PL_CODE_BASICSEC.name, |
| | | PL_CODE_BASICSEC.description, |
| | | PL_CODE_BASICSEC.owner, |
| | | PL_CODE_BASICSEC.copyfromversion, |
| | | PL_CODE_BASICSEC.codefillseparator, |
| | | PL_CODE_BASICSEC.codeseclength, |
| | | PL_CODE_BASICSEC.valuecuttype, |
| | | PL_CODE_BASICSEC.codefilltype, |
| | | PL_CODE_BASICSEC.refervalueinfo, |
| | | PL_CODE_BASICSEC.referattributeid, |
| | | PL_CODE_BASICSEC.getvalueclass, |
| | | PL_CODE_BASICSEC.displayflag, |
| | | PL_CODE_BASICSEC.parentclassifysecoid, |
| | | PL_CODE_BASICSEC.serialstep, |
| | | PL_CODE_BASICSEC.serialdependflag, |
| | | PL_CODE_BASICSEC.filtersql, |
| | | PL_CODE_BASICSEC.codedateformatstr, |
| | | PL_CODE_BASICSEC.refercodeclassifyoid, |
| | | PL_CODE_BASICSEC.codeleveltype, |
| | | PL_CODE_BASICSEC.codeseclengthtype, |
| | | PL_CODE_BASICSEC.referattributename, |
| | | PL_CODE_BASICSEC.referbtmname, |
| | | PL_CODE_BASICSEC.codefillflag, |
| | | PL_CODE_BASICSEC.valuecutlength, |
| | | PL_CODE_BASICSEC.codegetvaluetype, |
| | | PL_CODE_BASICSEC.referbtmid, |
| | | PL_CODE_BASICSEC.codefilltypetext, |
| | | PL_CODE_BASICSEC.codelevelvalue, |
| | | PL_CODE_BASICSEC.codefilllength, |
| | | PL_CODE_BASICSEC.customcodeserialclass, |
| | | PL_CODE_BASICSEC.matchclassifyvalueflag, |
| | | PL_CODE_BASICSEC.sectype, |
| | | PL_CODE_BASICSEC.pkcoderule, |
| | | PL_CODE_BASICSEC.ordernum, |
| | | PL_CODE_BASICSEC.referconfig, |
| | | PL_CODE_BASICSEC.serialstart, |
| | | PL_CODE_BASICSEC.componentcodeflag, |
| | | PL_CODE_BASICSEC.serialdependorder, |
| | | PL_CODE_BASICSEC.nullableflag, |
| | | PL_CODE_BASICSEC.codefilllimit, |
| | | btm_codebasicsec_1.name as b__name, |
| | | platformbtm_codeclassify.name as c__name, |
| | | COUNT(*) OVER () "##VCI_COUNT_VCI##" |
| | | from PL_CODE_BASICSEC |
| | | left join pl_code_basicsec btm_codebasicsec_1 |
| | | on btm_codebasicsec_1.oid = PL_CODE_BASICSEC.parentclassifysecoid |
| | |
| | | |
| | | </select> |
| | | |
| | | <insert id="insertBatch" keyProperty="oid" useGeneratedKeys="true"> |
| | | <!-- <insert id="insertBatch" keyProperty="oid" useGeneratedKeys="true"> |
| | | insert into PL_CODE_BASICSEC(REVISIONOID, NAMEOID, BTMNAME, LASTR, FIRSTR, LASTV, FIRSTV, CREATOR, CREATETIME, |
| | | LASTMODIFIER, LASTMODIFYTIME, REVISIONRULE, VERSIONRULE, REVISIONSEQ, REVISIONVALUE, VERSIONSEQ, VERSIONVALUE, |
| | | LCTID, LCSTATUS, TS, ID, NAME, DESCRIPTION, OWNER, COPYFROMVERSION, SECTYPE, PKCODERULE, ORDERNUM, |
| | |
| | | #{entity.referattributename}, #{entity.referattributeid}, #{entity.referbtmname}, #{entity.referbtmid} |
| | | from dual |
| | | </foreach> |
| | | </insert> |
| | | |
| | | <select id="countByCondition" resultType="java.lang.Long"> |
| | | |
| | | |
| | | </select> |
| | | </insert>--> |
| | | |
| | | <select id="getOidByCodeclassifysecOid" resultType="java.lang.String"> |
| | | SELECT OID |
| | |
| | | <result property="parentValue" column="PARENTVALUE" jdbcType="VARCHAR"/> |
| | | <result property="loadType" column="LOADTYPE" jdbcType="VARCHAR"/> |
| | | <result property="onlyLeaf" column="ONLYLEAF" jdbcType="VARCHAR"/> |
| | | <collection property="codeShowFieldConfigs" select="selectShowFieldByReferConfigOid" column="OID" javaType="java.util.ArrayList" ofType="com.vci.ubcs.code.entity.CodeShowFieldConfig"> |
| | | <result property="field" column="FIELD"/> |
| | | <result property="title" column="TITLE"/> |
| | | <result property="fieldType" column="FIELDTYPE"/> |
| | | <result property="sort" column="SORT"/> |
| | | <result property="attrSortField" column="ATTRSORTFIELD"/> |
| | | <result property="width" column="WIDTH"/> |
| | | <result property="fixedPosition" column="FIXEDPOSITION"/> |
| | | <result property="templet" column="TEMPLET"/> |
| | | </collection> |
| | | <collection property="codeSrchCondConfigs" select="selectSrchCondByReferConfigOid" column="OID" javaType="java.util.ArrayList" ofType="com.vci.ubcs.code.entity.CodeSrchCondConfig"> |
| | | <result property="filterField" column="FILTERFIELD"/> |
| | | <result property="filterType" column="FILTERTYPE"/> |
| | | <result property="filterValue" column="FILTERVALUE"/> |
| | | </collection> |
| | | </resultMap> |
| | | |
| | | <!--æ¥è¯¢å个--> |
| | | <select id="queryById" resultMap="CodeReferconfigMap"> |
| | | select |
| | | OID, REVISIONOID, NAMEOID, BTMNAME, LASTR, FIRSTR, LASTV, FIRSTV, CREATOR, CREATETIME, REVISIONSEQ, REVISIONVALUE, VERSIONSEQ, VERSIONVALUE, LCTID, LCSTATUS, TS, NAME, DESCRIPTION, OWNER, COPYFROMVERSION, ORDERNUM, REFERTYPE, TEXTFIELD, VALUEFIELD, TYPE, URL, BACKPATH, METHOD, HEIGHT, PARAMFORFORMKEY, ISMUTI, MAPFIELDS, REFERCONTENT, DISPLAYTABLE, LIMIT, SORTFIELD, SORTTYPE, PARENTFIELDNAME, PARENTUSEDFIELD, PARENTVALUE, LOADTYPE, ONLYLEAF |
| | | select OID, |
| | | REVISIONOID, |
| | | NAMEOID, |
| | | BTMNAME, |
| | | LASTR, |
| | | FIRSTR, |
| | | LASTV, |
| | | FIRSTV, |
| | | CREATOR, |
| | | CREATETIME, |
| | | REVISIONSEQ, |
| | | REVISIONVALUE, |
| | | VERSIONSEQ, |
| | | VERSIONVALUE, |
| | | LCTID, |
| | | LCSTATUS, |
| | | TS, |
| | | NAME, |
| | | DESCRIPTION, |
| | | OWNER, |
| | | COPYFROMVERSION, |
| | | ORDERNUM, |
| | | REFERTYPE, |
| | | TEXTFIELD, |
| | | VALUEFIELD, |
| | | TYPE, |
| | | URL, |
| | | BACKPATH, |
| | | METHOD, |
| | | HEIGHT, |
| | | PARAMFORFORMKEY, |
| | | ISMUTI, |
| | | MAPFIELDS, |
| | | REFERCONTENT, |
| | | DISPLAYTABLE, |
| | | LIMIT, |
| | | SORTFIELD, |
| | | SORTTYPE, |
| | | PARENTFIELDNAME, |
| | | PARENTUSEDFIELD, |
| | | PARENTVALUE, |
| | | LOADTYPE, |
| | | ONLYLEAF |
| | | from PL_CODE_REFERCONFIG |
| | | where OID = #{oid} |
| | | </select> |
| | | |
| | | <!--æ¥è¯¢æå®è¡æ°æ®--> |
| | | <select id="queryAllByPage" resultMap="CodeReferconfigMap"> |
| | | select |
| | | OID, REVISIONOID, NAMEOID, BTMNAME, LASTR, FIRSTR, LASTV, FIRSTV, CREATOR, CREATETIME, REVISIONSEQ, REVISIONVALUE, VERSIONSEQ, VERSIONVALUE, LCTID, LCSTATUS, TS, NAME, DESCRIPTION, OWNER, COPYFROMVERSION, ORDERNUM, REFERTYPE, TEXTFIELD, VALUEFIELD, TYPE, URL, BACKPATH, METHOD, HEIGHT, PARAMFORFORMKEY, ISMUTI, MAPFIELDS, REFERCONTENT, DISPLAYTABLE, LIMIT, SORTFIELD, SORTTYPE, PARENTFIELDNAME, PARENTUSEDFIELD, PARENTVALUE, LOADTYPE, ONLYLEAF |
| | | from PL_CODE_REFERCONFIG |
| | | <select id="selectJoinPage" resultMap="CodeReferconfigMap"> |
| | | SELECT |
| | | PCR.* |
| | | FROM PL_CODE_REFERCONFIG PCR |
| | | <where> |
| | | <if test="oid != null and oid != ''"> |
| | | and OID = #{oid} |
| | | <if test="codeReferConfig.tenantId != null and codeReferConfig.tenantId != ''"> |
| | | PCR.TENANTID = #{codeReferConfig.tenantId} |
| | | </if> |
| | | <if test="revisionoid != null and revisionoid != ''"> |
| | | and REVISIONOID = #{revisionoid} |
| | | <if test="codeReferConfig.isOpenGlobal != null and codeReferConfig.isOpenGlobal != ''"> |
| | | OR PCR.ISOPENGLOBAL = #{codeReferConfig.isOpenGlobal} |
| | | </if> |
| | | <if test="nameoid != null and nameoid != ''"> |
| | | and NAMEOID = #{nameoid} |
| | | <if test="codeReferConfig.name != null and codeReferConfig.name != ''"> |
| | | and NAME like CONCAT(CONCAT('%', #{codeReferConfig.name}), '%') |
| | | </if> |
| | | <if test="btmname != null and btmname != ''"> |
| | | and BTMNAME = #{btmname} |
| | | </if> |
| | | <if test="lastr != null and lastr != ''"> |
| | | and LASTR = #{lastr} |
| | | </if> |
| | | <if test="firstr != null and firstr != ''"> |
| | | and FIRSTR = #{firstr} |
| | | </if> |
| | | <if test="lastv != null and lastv != ''"> |
| | | and LASTV = #{lastv} |
| | | </if> |
| | | <if test="firstv != null and firstv != ''"> |
| | | and FIRSTV = #{firstv} |
| | | </if> |
| | | <if test="creator != null and creator != ''"> |
| | | and CREATOR = #{creator} |
| | | </if> |
| | | <if test="createtime != null and createtime != ''"> |
| | | and CREATETIME = #{createtime} |
| | | </if> |
| | | <if test="revisionseq != null"> |
| | | and REVISIONSEQ = #{revisionseq} |
| | | </if> |
| | | <if test="revisionvalue != null and revisionvalue != ''"> |
| | | and REVISIONVALUE = #{revisionvalue} |
| | | </if> |
| | | <if test="versionseq != null"> |
| | | and VERSIONSEQ = #{versionseq} |
| | | </if> |
| | | <if test="versionvalue != null and versionvalue != ''"> |
| | | and VERSIONVALUE = #{versionvalue} |
| | | </if> |
| | | <if test="lctid != null and lctid != ''"> |
| | | and LCTID = #{lctid} |
| | | </if> |
| | | <if test="lcstatus != null and lcstatus != ''"> |
| | | and LCSTATUS = #{lcstatus} |
| | | </if> |
| | | <if test="ts != null and ts != ''"> |
| | | and TS = #{ts} |
| | | </if> |
| | | <if test="name != null and name != ''"> |
| | | and NAME = #{name} |
| | | </if> |
| | | <if test="description != null and description != ''"> |
| | | and DESCRIPTION = #{description} |
| | | </if> |
| | | <if test="owner != null and owner != ''"> |
| | | and OWNER = #{owner} |
| | | </if> |
| | | <if test="copyfromversion != null and copyfromversion != ''"> |
| | | and COPYFROMVERSION = #{copyfromversion} |
| | | </if> |
| | | <if test="ordernum != null"> |
| | | and ORDERNUM = #{ordernum} |
| | | </if> |
| | | <if test="refertype != null and refertype != ''"> |
| | | and REFERTYPE = #{refertype} |
| | | </if> |
| | | <if test="textfield != null and textfield != ''"> |
| | | and TEXTFIELD = #{textfield} |
| | | </if> |
| | | <if test="valuefield != null and valuefield != ''"> |
| | | and VALUEFIELD = #{valuefield} |
| | | </if> |
| | | <if test="type != null and type != ''"> |
| | | and TYPE = #{type} |
| | | </if> |
| | | <if test="url != null and url != ''"> |
| | | and URL = #{url} |
| | | </if> |
| | | <if test="backpath != null and backpath != ''"> |
| | | and BACKPATH = #{backpath} |
| | | </if> |
| | | <if test="method != null and method != ''"> |
| | | and METHOD = #{method} |
| | | </if> |
| | | <if test="height != null"> |
| | | and HEIGHT = #{height} |
| | | </if> |
| | | <if test="paramforformkey != null and paramforformkey != ''"> |
| | | and PARAMFORFORMKEY = #{paramforformkey} |
| | | </if> |
| | | <if test="ismuti != null and ismuti != ''"> |
| | | and ISMUTI = #{ismuti} |
| | | </if> |
| | | <if test="mapfields != null and mapfields != ''"> |
| | | and MAPFIELDS = #{mapfields} |
| | | </if> |
| | | <if test="refercontent != null and refercontent != ''"> |
| | | and REFERCONTENT = #{refercontent} |
| | | </if> |
| | | <if test="displaytable != null and displaytable != ''"> |
| | | and DISPLAYTABLE = #{displaytable} |
| | | </if> |
| | | <if test="limit != null and limit != ''"> |
| | | and LIMIT = #{limit} |
| | | </if> |
| | | <if test="sortfield != null and sortfield != ''"> |
| | | and SORTFIELD = #{sortfield} |
| | | </if> |
| | | <if test="sorttype != null and sorttype != ''"> |
| | | and SORTTYPE = #{sorttype} |
| | | </if> |
| | | <if test="parentfieldname != null and parentfieldname != ''"> |
| | | and PARENTFIELDNAME = #{parentfieldname} |
| | | </if> |
| | | <if test="parentusedfield != null and parentusedfield != ''"> |
| | | and PARENTUSEDFIELD = #{parentusedfield} |
| | | </if> |
| | | <if test="parentvalue != null and parentvalue != ''"> |
| | | and PARENTVALUE = #{parentvalue} |
| | | </if> |
| | | <if test="loadtype != null and loadtype != ''"> |
| | | and LOADTYPE = #{loadtype} |
| | | </if> |
| | | <if test="onlyleaf != null and onlyleaf != ''"> |
| | | and ONLYLEAF = #{onlyleaf} |
| | | <if test="codeReferConfig.id != null and codeReferConfig.id != ''"> |
| | | and ID like CONCAT(CONCAT('%', #{codeReferConfig.id}), '%') |
| | | </if> |
| | | </where> |
| | | limit #{pageable.offset}, #{pageable.pageSize} |
| | | </select> |
| | | |
| | | <select id="selectShowFieldByReferConfigOid" resultType="com.vci.ubcs.code.entity.CodeShowFieldConfig"> |
| | | SELECT temp.* FROM ( |
| | | SELECT |
| | | PCS.REFERCONFIGOID, |
| | | PCS.FIELD, |
| | | PCS.TITLE, |
| | | PCS.FIELDTYPE, |
| | | PCS.SORT, |
| | | PCS.ATTRSORTFIELD, |
| | | PCS.WIDTH, |
| | | PCS.FIXEDPOSITION, |
| | | PCS.TEMPLET, |
| | | PCS.ISQUERY |
| | | FROM PL_CODE_REFERCONFIG PCR |
| | | LEFT JOIN PL_CODE_SHOWFIELDCONFIG PCS ON PCS.REFERCONFIGOID = PCR.OID) |
| | | temp WHERE temp.REFERCONFIGOID = #{oid} |
| | | </select> |
| | | |
| | | <select id="selectSrchCondByReferConfigOid" resultType="com.vci.ubcs.code.entity.CodeSrchCondConfig"> |
| | | SELECT temp.* |
| | | FROM |
| | | (SELECT |
| | | PCSR.FILTERFIELD, |
| | | PCSR.FILTERTYPE, |
| | | PCSR.FILTERVALUE, |
| | | PCSR.REFERCONFIGOID |
| | | FROM PL_CODE_REFERCONFIG PCR |
| | | LEFT JOIN PL_CODE_SRCHCONDCONFIG PCSR ON PCSR.REFERCONFIGOID = PCR.OID) |
| | | temp WHERE temp.REFERCONFIGOID = #{oid} |
| | | </select> |
| | | |
| | | </mapper> |
| | |
| | | <mapper namespace="com.vci.ubcs.code.mapper.CodeShowFieldConfigMapper"> |
| | | |
| | | <resultMap type="com.vci.ubcs.code.entity.CodeShowFieldConfig" id="PlCodeShowfieldconfigMap"> |
| | | <result property="oid" column="OID" jdbcType="VARCHAR"/> |
| | | <result property="revisionOid" column="REVISIONOID" jdbcType="VARCHAR"/> |
| | | <result property="nameOid" column="NAMEOID" jdbcType="VARCHAR"/> |
| | | <result property="btmname" column="BTMNAME" jdbcType="VARCHAR"/> |
| | | <result property="lastR" column="LASTR" jdbcType="VARCHAR"/> |
| | | <result property="firstR" column="FIRSTR" jdbcType="VARCHAR"/> |
| | | <result property="lastV" column="LASTV" jdbcType="VARCHAR"/> |
| | | <result property="firstV" column="FIRSTV" jdbcType="VARCHAR"/> |
| | | <result property="creator" column="CREATOR" jdbcType="VARCHAR"/> |
| | | <result property="createTime" column="CREATETIME" jdbcType="VARCHAR"/> |
| | | <result property="revisionSeq" column="REVISIONSEQ" jdbcType="INTEGER"/> |
| | | <result property="revisionValue" column="REVISIONVALUE" jdbcType="VARCHAR"/> |
| | | <result property="versionSeq" column="VERSIONSEQ" jdbcType="INTEGER"/> |
| | | <result property="versionValue" column="VERSIONVALUE" jdbcType="VARCHAR"/> |
| | | <result property="lctid" column="LCTID" jdbcType="VARCHAR"/> |
| | | <result property="lcStatus" column="LCSTATUS" jdbcType="VARCHAR"/> |
| | | <result property="ts" column="TS" jdbcType="VARCHAR"/> |
| | | <result property="name" column="NAME" jdbcType="VARCHAR"/> |
| | | <result property="description" column="DESCRIPTION" jdbcType="VARCHAR"/> |
| | | <result property="owner" column="OWNER" jdbcType="VARCHAR"/> |
| | | <result property="copyFromVersion" column="COPYFROMVERSION" jdbcType="VARCHAR"/> |
| | | <id column="OID" property="oid"/> |
| | | <result property="orderNum" column="ORDERNUM" jdbcType="INTEGER"/> |
| | | <result property="field" column="FIELD" jdbcType="VARCHAR"/> |
| | | <result property="title" column="TITLE" jdbcType="VARCHAR"/> |
| | | <result property="fieldType" column="FIELDTYPE" jdbcType="VARCHAR"/> |
| | | <result property="sort" column="SORT" jdbcType="VARCHAR"/> |
| | | <result property="sortField" column="SORTFIELD" jdbcType="VARCHAR"/> |
| | | <result property="attrSortField" column="ATTRSORTFIELD" jdbcType="VARCHAR"/> |
| | | <result property="width" column="WIDTH" jdbcType="INTEGER"/> |
| | | <result property="fixedText" column="FIXEDTEXT" jdbcType="VARCHAR"/> |
| | | <result property="fixedPosition" column="FIXEDPOSITION" jdbcType="VARCHAR"/> |
| | | <result property="templet" column="TEMPLET" jdbcType="VARCHAR"/> |
| | | <result property="isQuery" column="ISQUERY" jdbcType="VARCHAR"/> |
| | | </resultMap> |
| | | |
| | | <!--æ¥è¯¢å个--> |
| | | <select id="queryById" resultMap="PlCodeShowfieldconfigMap"> |
| | | select |
| | | OID, REVISIONOID, NAMEOID, BTMNAME, LASTR, FIRSTR, LASTV, FIRSTV, CREATOR, CREATETIME, REVISIONSEQ, REVISIONVALUE, VERSIONSEQ, VERSIONVALUE, LCTID, LCSTATUS, TS, NAME, DESCRIPTION, OWNER, COPYFROMVERSION, ORDERNUM, FIELD, TITLE, FIELDTYPE, SORT, SORTFIELD, WIDTH, FIXEDTEXT, TEMPLET |
| | | from PL_CODE_SHOWFIELDCONFIG |
| | | where OID = #{oid} |
| | | </select> |
| | | |
| | | <!--æ¥è¯¢æå®è¡æ°æ®--> |
| | | <select id="queryAllByLimit" resultMap="PlCodeShowfieldconfigMap"> |
| | | select |
| | | OID, REVISIONOID, NAMEOID, BTMNAME, LASTR, FIRSTR, LASTV, FIRSTV, CREATOR, CREATETIME, REVISIONSEQ, REVISIONVALUE, VERSIONSEQ, VERSIONVALUE, LCTID, LCSTATUS, TS, NAME, DESCRIPTION, OWNER, COPYFROMVERSION, ORDERNUM, FIELD, TITLE, FIELDTYPE, SORT, SORTFIELD, WIDTH, FIXEDTEXT, TEMPLET |
| | | from PL_CODE_SHOWFIELDCONFIG |
| | | <where> |
| | | <if test="oid != null and oid != ''"> |
| | | and OID = #{oid} |
| | | </if> |
| | | <if test="revisionoid != null and revisionoid != ''"> |
| | | and REVISIONOID = #{revisionoid} |
| | | </if> |
| | | <if test="nameoid != null and nameoid != ''"> |
| | | and NAMEOID = #{nameoid} |
| | | </if> |
| | | <if test="btmname != null and btmname != ''"> |
| | | and BTMNAME = #{btmname} |
| | | </if> |
| | | <if test="lastr != null and lastr != ''"> |
| | | and LASTR = #{lastr} |
| | | </if> |
| | | <if test="firstr != null and firstr != ''"> |
| | | and FIRSTR = #{firstr} |
| | | </if> |
| | | <if test="lastv != null and lastv != ''"> |
| | | and LASTV = #{lastv} |
| | | </if> |
| | | <if test="firstv != null and firstv != ''"> |
| | | and FIRSTV = #{firstv} |
| | | </if> |
| | | <if test="creator != null and creator != ''"> |
| | | and CREATOR = #{creator} |
| | | </if> |
| | | <if test="createtime != null and createtime != ''"> |
| | | and CREATETIME = #{createtime} |
| | | </if> |
| | | <if test="revisionseq != null"> |
| | | and REVISIONSEQ = #{revisionseq} |
| | | </if> |
| | | <if test="revisionvalue != null and revisionvalue != ''"> |
| | | and REVISIONVALUE = #{revisionvalue} |
| | | </if> |
| | | <if test="versionseq != null"> |
| | | and VERSIONSEQ = #{versionseq} |
| | | </if> |
| | | <if test="versionvalue != null and versionvalue != ''"> |
| | | and VERSIONVALUE = #{versionvalue} |
| | | </if> |
| | | <if test="lctid != null and lctid != ''"> |
| | | and LCTID = #{lctid} |
| | | </if> |
| | | <if test="lcstatus != null and lcstatus != ''"> |
| | | and LCSTATUS = #{lcstatus} |
| | | </if> |
| | | <if test="ts != null and ts != ''"> |
| | | and TS = #{ts} |
| | | </if> |
| | | <if test="name != null and name != ''"> |
| | | and NAME = #{name} |
| | | </if> |
| | | <if test="description != null and description != ''"> |
| | | and DESCRIPTION = #{description} |
| | | </if> |
| | | <if test="owner != null and owner != ''"> |
| | | and OWNER = #{owner} |
| | | </if> |
| | | <if test="copyfromversion != null and copyfromversion != ''"> |
| | | and COPYFROMVERSION = #{copyfromversion} |
| | | </if> |
| | | <if test="ordernum != null"> |
| | | and ORDERNUM = #{ordernum} |
| | | </if> |
| | | <if test="field != null and field != ''"> |
| | | and FIELD = #{field} |
| | | </if> |
| | | <if test="title != null and title != ''"> |
| | | and TITLE = #{title} |
| | | </if> |
| | | <if test="fieldtype != null and fieldtype != ''"> |
| | | and FIELDTYPE = #{fieldtype} |
| | | </if> |
| | | <if test="sort != null and sort != ''"> |
| | | and SORT = #{sort} |
| | | </if> |
| | | <if test="sortfield != null and sortfield != ''"> |
| | | and SORTFIELD = #{sortfield} |
| | | </if> |
| | | <if test="width != null"> |
| | | and WIDTH = #{width} |
| | | </if> |
| | | <if test="fixedtext != null and fixedtext != ''"> |
| | | and FIXEDTEXT = #{fixedtext} |
| | | </if> |
| | | <if test="templet != null and templet != ''"> |
| | | and TEMPLET = #{templet} |
| | | </if> |
| | | </where> |
| | | limit #{pageable.offset}, #{pageable.pageSize} |
| | | </select> |
| | | |
| | | <!--ç»è®¡æ»è¡æ°--> |
| | | <select id="count" resultType="java.lang.Long"> |
| | | select count(1) |
| | | from PL_CODE_SHOWFIELDCONFIG |
| | | <where> |
| | | <if test="oid != null and oid != ''"> |
| | | and OID = #{oid} |
| | | </if> |
| | | <if test="revisionoid != null and revisionoid != ''"> |
| | | and REVISIONOID = #{revisionoid} |
| | | </if> |
| | | <if test="nameoid != null and nameoid != ''"> |
| | | and NAMEOID = #{nameoid} |
| | | </if> |
| | | <if test="btmname != null and btmname != ''"> |
| | | and BTMNAME = #{btmname} |
| | | </if> |
| | | <if test="lastr != null and lastr != ''"> |
| | | and LASTR = #{lastr} |
| | | </if> |
| | | <if test="firstr != null and firstr != ''"> |
| | | and FIRSTR = #{firstr} |
| | | </if> |
| | | <if test="lastv != null and lastv != ''"> |
| | | and LASTV = #{lastv} |
| | | </if> |
| | | <if test="firstv != null and firstv != ''"> |
| | | and FIRSTV = #{firstv} |
| | | </if> |
| | | <if test="creator != null and creator != ''"> |
| | | and CREATOR = #{creator} |
| | | </if> |
| | | <if test="createtime != null and createtime != ''"> |
| | | and CREATETIME = #{createtime} |
| | | </if> |
| | | <if test="revisionseq != null"> |
| | | and REVISIONSEQ = #{revisionseq} |
| | | </if> |
| | | <if test="revisionvalue != null and revisionvalue != ''"> |
| | | and REVISIONVALUE = #{revisionvalue} |
| | | </if> |
| | | <if test="versionseq != null"> |
| | | and VERSIONSEQ = #{versionseq} |
| | | </if> |
| | | <if test="versionvalue != null and versionvalue != ''"> |
| | | and VERSIONVALUE = #{versionvalue} |
| | | </if> |
| | | <if test="lctid != null and lctid != ''"> |
| | | and LCTID = #{lctid} |
| | | </if> |
| | | <if test="lcstatus != null and lcstatus != ''"> |
| | | and LCSTATUS = #{lcstatus} |
| | | </if> |
| | | <if test="ts != null and ts != ''"> |
| | | and TS = #{ts} |
| | | </if> |
| | | <if test="name != null and name != ''"> |
| | | and NAME = #{name} |
| | | </if> |
| | | <if test="description != null and description != ''"> |
| | | and DESCRIPTION = #{description} |
| | | </if> |
| | | <if test="owner != null and owner != ''"> |
| | | and OWNER = #{owner} |
| | | </if> |
| | | <if test="copyfromversion != null and copyfromversion != ''"> |
| | | and COPYFROMVERSION = #{copyfromversion} |
| | | </if> |
| | | <if test="ordernum != null"> |
| | | and ORDERNUM = #{ordernum} |
| | | </if> |
| | | <if test="field != null and field != ''"> |
| | | and FIELD = #{field} |
| | | </if> |
| | | <if test="title != null and title != ''"> |
| | | and TITLE = #{title} |
| | | </if> |
| | | <if test="fieldtype != null and fieldtype != ''"> |
| | | and FIELDTYPE = #{fieldtype} |
| | | </if> |
| | | <if test="sort != null and sort != ''"> |
| | | and SORT = #{sort} |
| | | </if> |
| | | <if test="sortfield != null and sortfield != ''"> |
| | | and SORTFIELD = #{sortfield} |
| | | </if> |
| | | <if test="width != null"> |
| | | and WIDTH = #{width} |
| | | </if> |
| | | <if test="fixedtext != null and fixedtext != ''"> |
| | | and FIXEDTEXT = #{fixedtext} |
| | | </if> |
| | | <if test="templet != null and templet != ''"> |
| | | and TEMPLET = #{templet} |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | | <!--æ°å¢ææå--> |
| | | <insert id="insert" keyProperty="oid" useGeneratedKeys="true"> |
| | | insert into PL_CODE_SHOWFIELDCONFIG(REVISIONOID, NAMEOID, BTMNAME, LASTR, FIRSTR, LASTV, FIRSTV, CREATOR, CREATETIME, REVISIONSEQ, REVISIONVALUE, VERSIONSEQ, VERSIONVALUE, LCTID, LCSTATUS, TS, NAME, DESCRIPTION, OWNER, COPYFROMVERSION, ORDERNUM, FIELD, TITLE, FIELDTYPE, SORT, SORTFIELD, WIDTH, FIXEDTEXT, TEMPLET) |
| | | values (#{revisionoid}, #{nameoid}, #{btmname}, #{lastr}, #{firstr}, #{lastv}, #{firstv}, #{creator}, #{createtime}, #{revisionseq}, #{revisionvalue}, #{versionseq}, #{versionvalue}, #{lctid}, #{lcstatus}, #{ts}, #{name}, #{description}, #{owner}, #{copyfromversion}, #{ordernum}, #{field}, #{title}, #{fieldtype}, #{sort}, #{sortfield}, #{width}, #{fixedtext}, #{templet}) |
| | | </insert> |
| | | |
| | | <insert id="insertBatch" keyProperty="oid" useGeneratedKeys="true"> |
| | | insert into PL_CODE_SHOWFIELDCONFIG(REVISIONOID, NAMEOID, BTMNAME, LASTR, FIRSTR, LASTV, FIRSTV, CREATOR, CREATETIME, REVISIONSEQ, REVISIONVALUE, VERSIONSEQ, VERSIONVALUE, LCTID, LCSTATUS, TS, NAME, DESCRIPTION, OWNER, COPYFROMVERSION, ORDERNUM, FIELD, TITLE, FIELDTYPE, SORT, SORTFIELD, WIDTH, FIXEDTEXT, TEMPLET) |
| | | values |
| | | <foreach collection="entities" item="entity" separator=","> |
| | | (#{entity.revisionoid}, #{entity.nameoid}, #{entity.btmname}, #{entity.lastr}, #{entity.firstr}, #{entity.lastv}, #{entity.firstv}, #{entity.creator}, #{entity.createtime}, #{entity.revisionseq}, #{entity.revisionvalue}, #{entity.versionseq}, #{entity.versionvalue}, #{entity.lctid}, #{entity.lcstatus}, #{entity.ts}, #{entity.name}, #{entity.description}, #{entity.owner}, #{entity.copyfromversion}, #{entity.ordernum}, #{entity.field}, #{entity.title}, #{entity.fieldtype}, #{entity.sort}, #{entity.sortfield}, #{entity.width}, #{entity.fixedtext}, #{entity.templet}) |
| | | </foreach> |
| | | </insert> |
| | | |
| | | <insert id="insertOrUpdateBatch" keyProperty="oid" useGeneratedKeys="true"> |
| | | insert into PL_CODE_SHOWFIELDCONFIG(REVISIONOID, NAMEOID, BTMNAME, LASTR, FIRSTR, LASTV, FIRSTV, CREATOR, CREATETIME, REVISIONSEQ, REVISIONVALUE, VERSIONSEQ, VERSIONVALUE, LCTID, LCSTATUS, TS, NAME, DESCRIPTION, OWNER, COPYFROMVERSION, ORDERNUM, FIELD, TITLE, FIELDTYPE, SORT, SORTFIELD, WIDTH, FIXEDTEXT, TEMPLET) |
| | | values |
| | | <foreach collection="entities" item="entity" separator=","> |
| | | (#{entity.revisionoid}, #{entity.nameoid}, #{entity.btmname}, #{entity.lastr}, #{entity.firstr}, #{entity.lastv}, #{entity.firstv}, #{entity.creator}, #{entity.createtime}, #{entity.revisionseq}, #{entity.revisionvalue}, #{entity.versionseq}, #{entity.versionvalue}, #{entity.lctid}, #{entity.lcstatus}, #{entity.ts}, #{entity.name}, #{entity.description}, #{entity.owner}, #{entity.copyfromversion}, #{entity.ordernum}, #{entity.field}, #{entity.title}, #{entity.fieldtype}, #{entity.sort}, #{entity.sortfield}, #{entity.width}, #{entity.fixedtext}, #{entity.templet}) |
| | | </foreach> |
| | | on duplicate key update |
| | | REVISIONOID = values(REVISIONOID), |
| | | NAMEOID = values(NAMEOID), |
| | | BTMNAME = values(BTMNAME), |
| | | LASTR = values(LASTR), |
| | | FIRSTR = values(FIRSTR), |
| | | LASTV = values(LASTV), |
| | | FIRSTV = values(FIRSTV), |
| | | CREATOR = values(CREATOR), |
| | | CREATETIME = values(CREATETIME), |
| | | REVISIONSEQ = values(REVISIONSEQ), |
| | | REVISIONVALUE = values(REVISIONVALUE), |
| | | VERSIONSEQ = values(VERSIONSEQ), |
| | | VERSIONVALUE = values(VERSIONVALUE), |
| | | LCTID = values(LCTID), |
| | | LCSTATUS = values(LCSTATUS), |
| | | TS = values(TS), |
| | | NAME = values(NAME), |
| | | DESCRIPTION = values(DESCRIPTION), |
| | | OWNER = values(OWNER), |
| | | COPYFROMVERSION = values(COPYFROMVERSION), |
| | | ORDERNUM = values(ORDERNUM), |
| | | FIELD = values(FIELD), |
| | | TITLE = values(TITLE), |
| | | FIELDTYPE = values(FIELDTYPE), |
| | | SORT = values(SORT), |
| | | SORTFIELD = values(SORTFIELD), |
| | | WIDTH = values(WIDTH), |
| | | FIXEDTEXT = values(FIXEDTEXT), |
| | | TEMPLET = values(TEMPLET) |
| | | </insert> |
| | | |
| | | <!--éè¿ä¸»é®ä¿®æ¹æ°æ®--> |
| | | <update id="update"> |
| | | update PL_CODE_SHOWFIELDCONFIG |
| | | <set> |
| | | <if test="revisionoid != null and revisionoid != ''"> |
| | | REVISIONOID = #{revisionoid}, |
| | | </if> |
| | | <if test="nameoid != null and nameoid != ''"> |
| | | NAMEOID = #{nameoid}, |
| | | </if> |
| | | <if test="btmname != null and btmname != ''"> |
| | | BTMNAME = #{btmname}, |
| | | </if> |
| | | <if test="lastr != null and lastr != ''"> |
| | | LASTR = #{lastr}, |
| | | </if> |
| | | <if test="firstr != null and firstr != ''"> |
| | | FIRSTR = #{firstr}, |
| | | </if> |
| | | <if test="lastv != null and lastv != ''"> |
| | | LASTV = #{lastv}, |
| | | </if> |
| | | <if test="firstv != null and firstv != ''"> |
| | | FIRSTV = #{firstv}, |
| | | </if> |
| | | <if test="creator != null and creator != ''"> |
| | | CREATOR = #{creator}, |
| | | </if> |
| | | <if test="createtime != null and createtime != ''"> |
| | | CREATETIME = #{createtime}, |
| | | </if> |
| | | <if test="revisionseq != null"> |
| | | REVISIONSEQ = #{revisionseq}, |
| | | </if> |
| | | <if test="revisionvalue != null and revisionvalue != ''"> |
| | | REVISIONVALUE = #{revisionvalue}, |
| | | </if> |
| | | <if test="versionseq != null"> |
| | | VERSIONSEQ = #{versionseq}, |
| | | </if> |
| | | <if test="versionvalue != null and versionvalue != ''"> |
| | | VERSIONVALUE = #{versionvalue}, |
| | | </if> |
| | | <if test="lctid != null and lctid != ''"> |
| | | LCTID = #{lctid}, |
| | | </if> |
| | | <if test="lcstatus != null and lcstatus != ''"> |
| | | LCSTATUS = #{lcstatus}, |
| | | </if> |
| | | <if test="ts != null and ts != ''"> |
| | | TS = #{ts}, |
| | | </if> |
| | | <if test="name != null and name != ''"> |
| | | NAME = #{name}, |
| | | </if> |
| | | <if test="description != null and description != ''"> |
| | | DESCRIPTION = #{description}, |
| | | </if> |
| | | <if test="owner != null and owner != ''"> |
| | | OWNER = #{owner}, |
| | | </if> |
| | | <if test="copyfromversion != null and copyfromversion != ''"> |
| | | COPYFROMVERSION = #{copyfromversion}, |
| | | </if> |
| | | <if test="ordernum != null"> |
| | | ORDERNUM = #{ordernum}, |
| | | </if> |
| | | <if test="field != null and field != ''"> |
| | | FIELD = #{field}, |
| | | </if> |
| | | <if test="title != null and title != ''"> |
| | | TITLE = #{title}, |
| | | </if> |
| | | <if test="fieldtype != null and fieldtype != ''"> |
| | | FIELDTYPE = #{fieldtype}, |
| | | </if> |
| | | <if test="sort != null and sort != ''"> |
| | | SORT = #{sort}, |
| | | </if> |
| | | <if test="sortfield != null and sortfield != ''"> |
| | | SORTFIELD = #{sortfield}, |
| | | </if> |
| | | <if test="width != null"> |
| | | WIDTH = #{width}, |
| | | </if> |
| | | <if test="fixedtext != null and fixedtext != ''"> |
| | | FIXEDTEXT = #{fixedtext}, |
| | | </if> |
| | | <if test="templet != null and templet != ''"> |
| | | TEMPLET = #{templet}, |
| | | </if> |
| | | </set> |
| | | where OID = #{oid} |
| | | </update> |
| | | |
| | | <!--éè¿ä¸»é®å é¤--> |
| | | <delete id="deleteById"> |
| | | delete from PL_CODE_SHOWFIELDCONFIG where OID = #{oid} |
| | | </delete> |
| | | |
| | | </mapper> |
| | | |
| | |
| | | <mapper namespace="com.vci.ubcs.code.mapper.CodeSrchCondConfigMapper"> |
| | | |
| | | <resultMap type="com.vci.ubcs.code.entity.CodeSrchCondConfig" id="PlCodeSrchcondconfigMap"> |
| | | <result property="oid" column="OID" jdbcType="VARCHAR"/> |
| | | <result property="revisionOid" column="REVISIONOID" jdbcType="VARCHAR"/> |
| | | <result property="nameOid" column="NAMEOID" jdbcType="VARCHAR"/> |
| | | <result property="btmname" column="BTMNAME" jdbcType="VARCHAR"/> |
| | | <result property="lastR" column="LASTR" jdbcType="VARCHAR"/> |
| | | <result property="firstR" column="FIRSTR" jdbcType="VARCHAR"/> |
| | | <result property="lastV" column="LASTV" jdbcType="VARCHAR"/> |
| | | <result property="firstV" column="FIRSTV" jdbcType="VARCHAR"/> |
| | | <result property="creator" column="CREATOR" jdbcType="VARCHAR"/> |
| | | <result property="createTime" column="CREATETIME" jdbcType="VARCHAR"/> |
| | | <result property="revisionSeq" column="REVISIONSEQ" jdbcType="INTEGER"/> |
| | | <result property="revisionValue" column="REVISIONVALUE" jdbcType="VARCHAR"/> |
| | | <result property="versionSeq" column="VERSIONSEQ" jdbcType="INTEGER"/> |
| | | <result property="versionValue" column="VERSIONVALUE" jdbcType="VARCHAR"/> |
| | | <result property="lctid" column="LCTID" jdbcType="VARCHAR"/> |
| | | <result property="lcStatus" column="LCSTATUS" jdbcType="VARCHAR"/> |
| | | <result property="ts" column="TS" jdbcType="VARCHAR"/> |
| | | <result property="name" column="NAME" jdbcType="VARCHAR"/> |
| | | <result property="description" column="DESCRIPTION" jdbcType="VARCHAR"/> |
| | | <result property="owner" column="OWNER" jdbcType="VARCHAR"/> |
| | | <result property="copyFromVersion" column="COPYFROMVERSION" jdbcType="VARCHAR"/> |
| | | <id column="OID" property="oid"/> |
| | | <result property="orderNum" column="ORDERNUM" jdbcType="INTEGER"/> |
| | | <result property="filterField" column="FILTERFIELD" jdbcType="VARCHAR"/> |
| | | <result property="filterType" column="FILTERTYPE" jdbcType="VARCHAR"/> |
| | | <result property="filterValue" column="FILTERVALUE" jdbcType="VARCHAR"/> |
| | | </resultMap> |
| | | |
| | | <!--æ¥è¯¢å个--> |
| | | <select id="queryById" resultMap="PlCodeSrchcondconfigMap"> |
| | | select |
| | | OID, REVISIONOID, NAMEOID, BTMNAME, LASTR, FIRSTR, LASTV, FIRSTV, CREATOR, CREATETIME, REVISIONSEQ, REVISIONVALUE, VERSIONSEQ, VERSIONVALUE, LCTID, LCSTATUS, TS, NAME, DESCRIPTION, OWNER, COPYFROMVERSION, ORDERNUM, FILTERFIELD, FILTERTYPE, FILTERVALUE |
| | | from PL_CODE_SRCHCONDCONFIG |
| | | where OID = #{oid} |
| | | </select> |
| | | |
| | | <!--æ¥è¯¢æå®è¡æ°æ®--> |
| | | <select id="queryAllByLimit" resultMap="PlCodeSrchcondconfigMap"> |
| | | select |
| | | OID, REVISIONOID, NAMEOID, BTMNAME, LASTR, FIRSTR, LASTV, FIRSTV, CREATOR, CREATETIME, REVISIONSEQ, REVISIONVALUE, VERSIONSEQ, VERSIONVALUE, LCTID, LCSTATUS, TS, NAME, DESCRIPTION, OWNER, COPYFROMVERSION, ORDERNUM, FILTERFIELD, FILTERTYPE, FILTERVALUE |
| | | from PL_CODE_SRCHCONDCONFIG |
| | | <where> |
| | | <if test="oid != null and oid != ''"> |
| | | and OID = #{oid} |
| | | </if> |
| | | <if test="revisionoid != null and revisionoid != ''"> |
| | | and REVISIONOID = #{revisionoid} |
| | | </if> |
| | | <if test="nameoid != null and nameoid != ''"> |
| | | and NAMEOID = #{nameoid} |
| | | </if> |
| | | <if test="btmname != null and btmname != ''"> |
| | | and BTMNAME = #{btmname} |
| | | </if> |
| | | <if test="lastr != null and lastr != ''"> |
| | | and LASTR = #{lastr} |
| | | </if> |
| | | <if test="firstr != null and firstr != ''"> |
| | | and FIRSTR = #{firstr} |
| | | </if> |
| | | <if test="lastv != null and lastv != ''"> |
| | | and LASTV = #{lastv} |
| | | </if> |
| | | <if test="firstv != null and firstv != ''"> |
| | | and FIRSTV = #{firstv} |
| | | </if> |
| | | <if test="creator != null and creator != ''"> |
| | | and CREATOR = #{creator} |
| | | </if> |
| | | <if test="createtime != null and createtime != ''"> |
| | | and CREATETIME = #{createtime} |
| | | </if> |
| | | <if test="revisionseq != null"> |
| | | and REVISIONSEQ = #{revisionseq} |
| | | </if> |
| | | <if test="revisionvalue != null and revisionvalue != ''"> |
| | | and REVISIONVALUE = #{revisionvalue} |
| | | </if> |
| | | <if test="versionseq != null"> |
| | | and VERSIONSEQ = #{versionseq} |
| | | </if> |
| | | <if test="versionvalue != null and versionvalue != ''"> |
| | | and VERSIONVALUE = #{versionvalue} |
| | | </if> |
| | | <if test="lctid != null and lctid != ''"> |
| | | and LCTID = #{lctid} |
| | | </if> |
| | | <if test="lcstatus != null and lcstatus != ''"> |
| | | and LCSTATUS = #{lcstatus} |
| | | </if> |
| | | <if test="ts != null and ts != ''"> |
| | | and TS = #{ts} |
| | | </if> |
| | | <if test="name != null and name != ''"> |
| | | and NAME = #{name} |
| | | </if> |
| | | <if test="description != null and description != ''"> |
| | | and DESCRIPTION = #{description} |
| | | </if> |
| | | <if test="owner != null and owner != ''"> |
| | | and OWNER = #{owner} |
| | | </if> |
| | | <if test="copyfromversion != null and copyfromversion != ''"> |
| | | and COPYFROMVERSION = #{copyfromversion} |
| | | </if> |
| | | <if test="ordernum != null"> |
| | | and ORDERNUM = #{ordernum} |
| | | </if> |
| | | <if test="filterfield != null and filterfield != ''"> |
| | | and FILTERFIELD = #{filterfield} |
| | | </if> |
| | | <if test="filtertype != null and filtertype != ''"> |
| | | and FILTERTYPE = #{filtertype} |
| | | </if> |
| | | <if test="filtervalue != null and filtervalue != ''"> |
| | | and FILTERVALUE = #{filtervalue} |
| | | </if> |
| | | </where> |
| | | limit #{pageable.offset}, #{pageable.pageSize} |
| | | </select> |
| | | |
| | | <!--ç»è®¡æ»è¡æ°--> |
| | | <select id="count" resultType="java.lang.Long"> |
| | | select count(1) |
| | | from PL_CODE_SRCHCONDCONFIG |
| | | <where> |
| | | <if test="oid != null and oid != ''"> |
| | | and OID = #{oid} |
| | | </if> |
| | | <if test="revisionoid != null and revisionoid != ''"> |
| | | and REVISIONOID = #{revisionoid} |
| | | </if> |
| | | <if test="nameoid != null and nameoid != ''"> |
| | | and NAMEOID = #{nameoid} |
| | | </if> |
| | | <if test="btmname != null and btmname != ''"> |
| | | and BTMNAME = #{btmname} |
| | | </if> |
| | | <if test="lastr != null and lastr != ''"> |
| | | and LASTR = #{lastr} |
| | | </if> |
| | | <if test="firstr != null and firstr != ''"> |
| | | and FIRSTR = #{firstr} |
| | | </if> |
| | | <if test="lastv != null and lastv != ''"> |
| | | and LASTV = #{lastv} |
| | | </if> |
| | | <if test="firstv != null and firstv != ''"> |
| | | and FIRSTV = #{firstv} |
| | | </if> |
| | | <if test="creator != null and creator != ''"> |
| | | and CREATOR = #{creator} |
| | | </if> |
| | | <if test="createtime != null and createtime != ''"> |
| | | and CREATETIME = #{createtime} |
| | | </if> |
| | | <if test="revisionseq != null"> |
| | | and REVISIONSEQ = #{revisionseq} |
| | | </if> |
| | | <if test="revisionvalue != null and revisionvalue != ''"> |
| | | and REVISIONVALUE = #{revisionvalue} |
| | | </if> |
| | | <if test="versionseq != null"> |
| | | and VERSIONSEQ = #{versionseq} |
| | | </if> |
| | | <if test="versionvalue != null and versionvalue != ''"> |
| | | and VERSIONVALUE = #{versionvalue} |
| | | </if> |
| | | <if test="lctid != null and lctid != ''"> |
| | | and LCTID = #{lctid} |
| | | </if> |
| | | <if test="lcstatus != null and lcstatus != ''"> |
| | | and LCSTATUS = #{lcstatus} |
| | | </if> |
| | | <if test="ts != null and ts != ''"> |
| | | and TS = #{ts} |
| | | </if> |
| | | <if test="name != null and name != ''"> |
| | | and NAME = #{name} |
| | | </if> |
| | | <if test="description != null and description != ''"> |
| | | and DESCRIPTION = #{description} |
| | | </if> |
| | | <if test="owner != null and owner != ''"> |
| | | and OWNER = #{owner} |
| | | </if> |
| | | <if test="copyfromversion != null and copyfromversion != ''"> |
| | | and COPYFROMVERSION = #{copyfromversion} |
| | | </if> |
| | | <if test="ordernum != null"> |
| | | and ORDERNUM = #{ordernum} |
| | | </if> |
| | | <if test="filterfield != null and filterfield != ''"> |
| | | and FILTERFIELD = #{filterfield} |
| | | </if> |
| | | <if test="filtertype != null and filtertype != ''"> |
| | | and FILTERTYPE = #{filtertype} |
| | | </if> |
| | | <if test="filtervalue != null and filtervalue != ''"> |
| | | and FILTERVALUE = #{filtervalue} |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | | <!--æ°å¢ææå--> |
| | | <insert id="insert" keyProperty="oid" useGeneratedKeys="true"> |
| | | insert into PL_CODE_SRCHCONDCONFIG(REVISIONOID, NAMEOID, BTMNAME, LASTR, FIRSTR, LASTV, FIRSTV, CREATOR, CREATETIME, REVISIONSEQ, REVISIONVALUE, VERSIONSEQ, VERSIONVALUE, LCTID, LCSTATUS, TS, NAME, DESCRIPTION, OWNER, COPYFROMVERSION, ORDERNUM, FILTERFIELD, FILTERTYPE, FILTERVALUE) |
| | | values (#{revisionoid}, #{nameoid}, #{btmname}, #{lastr}, #{firstr}, #{lastv}, #{firstv}, #{creator}, #{createtime}, #{revisionseq}, #{revisionvalue}, #{versionseq}, #{versionvalue}, #{lctid}, #{lcstatus}, #{ts}, #{name}, #{description}, #{owner}, #{copyfromversion}, #{ordernum}, #{filterfield}, #{filtertype}, #{filtervalue}) |
| | | </insert> |
| | | |
| | | <insert id="insertBatch" keyProperty="oid" useGeneratedKeys="true"> |
| | | insert into PL_CODE_SRCHCONDCONFIG(REVISIONOID, NAMEOID, BTMNAME, LASTR, FIRSTR, LASTV, FIRSTV, CREATOR, CREATETIME, REVISIONSEQ, REVISIONVALUE, VERSIONSEQ, VERSIONVALUE, LCTID, LCSTATUS, TS, NAME, DESCRIPTION, OWNER, COPYFROMVERSION, ORDERNUM, FILTERFIELD, FILTERTYPE, FILTERVALUE) |
| | | values |
| | | <foreach collection="entities" item="entity" separator=","> |
| | | (#{entity.revisionoid}, #{entity.nameoid}, #{entity.btmname}, #{entity.lastr}, #{entity.firstr}, #{entity.lastv}, #{entity.firstv}, #{entity.creator}, #{entity.createtime}, #{entity.revisionseq}, #{entity.revisionvalue}, #{entity.versionseq}, #{entity.versionvalue}, #{entity.lctid}, #{entity.lcstatus}, #{entity.ts}, #{entity.name}, #{entity.description}, #{entity.owner}, #{entity.copyfromversion}, #{entity.ordernum}, #{entity.filterfield}, #{entity.filtertype}, #{entity.filtervalue}) |
| | | </foreach> |
| | | </insert> |
| | | |
| | | <insert id="insertOrUpdateBatch" keyProperty="oid" useGeneratedKeys="true"> |
| | | insert into PL_CODE_SRCHCONDCONFIG(REVISIONOID, NAMEOID, BTMNAME, LASTR, FIRSTR, LASTV, FIRSTV, CREATOR, CREATETIME, REVISIONSEQ, REVISIONVALUE, VERSIONSEQ, VERSIONVALUE, LCTID, LCSTATUS, TS, NAME, DESCRIPTION, OWNER, COPYFROMVERSION, ORDERNUM, FILTERFIELD, FILTERTYPE, FILTERVALUE) |
| | | values |
| | | <foreach collection="entities" item="entity" separator=","> |
| | | (#{entity.revisionoid}, #{entity.nameoid}, #{entity.btmname}, #{entity.lastr}, #{entity.firstr}, #{entity.lastv}, #{entity.firstv}, #{entity.creator}, #{entity.createtime}, #{entity.revisionseq}, #{entity.revisionvalue}, #{entity.versionseq}, #{entity.versionvalue}, #{entity.lctid}, #{entity.lcstatus}, #{entity.ts}, #{entity.name}, #{entity.description}, #{entity.owner}, #{entity.copyfromversion}, #{entity.ordernum}, #{entity.filterfield}, #{entity.filtertype}, #{entity.filtervalue}) |
| | | </foreach> |
| | | on duplicate key update |
| | | REVISIONOID = values(REVISIONOID), |
| | | NAMEOID = values(NAMEOID), |
| | | BTMNAME = values(BTMNAME), |
| | | LASTR = values(LASTR), |
| | | FIRSTR = values(FIRSTR), |
| | | LASTV = values(LASTV), |
| | | FIRSTV = values(FIRSTV), |
| | | CREATOR = values(CREATOR), |
| | | CREATETIME = values(CREATETIME), |
| | | REVISIONSEQ = values(REVISIONSEQ), |
| | | REVISIONVALUE = values(REVISIONVALUE), |
| | | VERSIONSEQ = values(VERSIONSEQ), |
| | | VERSIONVALUE = values(VERSIONVALUE), |
| | | LCTID = values(LCTID), |
| | | LCSTATUS = values(LCSTATUS), |
| | | TS = values(TS), |
| | | NAME = values(NAME), |
| | | DESCRIPTION = values(DESCRIPTION), |
| | | OWNER = values(OWNER), |
| | | COPYFROMVERSION = values(COPYFROMVERSION), |
| | | ORDERNUM = values(ORDERNUM), |
| | | FILTERFIELD = values(FILTERFIELD), |
| | | FILTERTYPE = values(FILTERTYPE), |
| | | FILTERVALUE = values(FILTERVALUE) |
| | | </insert> |
| | | |
| | | <!--éè¿ä¸»é®ä¿®æ¹æ°æ®--> |
| | | <update id="update"> |
| | | update PL_CODE_SRCHCONDCONFIG |
| | | <set> |
| | | <if test="revisionoid != null and revisionoid != ''"> |
| | | REVISIONOID = #{revisionoid}, |
| | | </if> |
| | | <if test="nameoid != null and nameoid != ''"> |
| | | NAMEOID = #{nameoid}, |
| | | </if> |
| | | <if test="btmname != null and btmname != ''"> |
| | | BTMNAME = #{btmname}, |
| | | </if> |
| | | <if test="lastr != null and lastr != ''"> |
| | | LASTR = #{lastr}, |
| | | </if> |
| | | <if test="firstr != null and firstr != ''"> |
| | | FIRSTR = #{firstr}, |
| | | </if> |
| | | <if test="lastv != null and lastv != ''"> |
| | | LASTV = #{lastv}, |
| | | </if> |
| | | <if test="firstv != null and firstv != ''"> |
| | | FIRSTV = #{firstv}, |
| | | </if> |
| | | <if test="creator != null and creator != ''"> |
| | | CREATOR = #{creator}, |
| | | </if> |
| | | <if test="createtime != null and createtime != ''"> |
| | | CREATETIME = #{createtime}, |
| | | </if> |
| | | <if test="revisionseq != null"> |
| | | REVISIONSEQ = #{revisionseq}, |
| | | </if> |
| | | <if test="revisionvalue != null and revisionvalue != ''"> |
| | | REVISIONVALUE = #{revisionvalue}, |
| | | </if> |
| | | <if test="versionseq != null"> |
| | | VERSIONSEQ = #{versionseq}, |
| | | </if> |
| | | <if test="versionvalue != null and versionvalue != ''"> |
| | | VERSIONVALUE = #{versionvalue}, |
| | | </if> |
| | | <if test="lctid != null and lctid != ''"> |
| | | LCTID = #{lctid}, |
| | | </if> |
| | | <if test="lcstatus != null and lcstatus != ''"> |
| | | LCSTATUS = #{lcstatus}, |
| | | </if> |
| | | <if test="ts != null and ts != ''"> |
| | | TS = #{ts}, |
| | | </if> |
| | | <if test="name != null and name != ''"> |
| | | NAME = #{name}, |
| | | </if> |
| | | <if test="description != null and description != ''"> |
| | | DESCRIPTION = #{description}, |
| | | </if> |
| | | <if test="owner != null and owner != ''"> |
| | | OWNER = #{owner}, |
| | | </if> |
| | | <if test="copyfromversion != null and copyfromversion != ''"> |
| | | COPYFROMVERSION = #{copyfromversion}, |
| | | </if> |
| | | <if test="ordernum != null"> |
| | | ORDERNUM = #{ordernum}, |
| | | </if> |
| | | <if test="filterfield != null and filterfield != ''"> |
| | | FILTERFIELD = #{filterfield}, |
| | | </if> |
| | | <if test="filtertype != null and filtertype != ''"> |
| | | FILTERTYPE = #{filtertype}, |
| | | </if> |
| | | <if test="filtervalue != null and filtervalue != ''"> |
| | | FILTERVALUE = #{filtervalue}, |
| | | </if> |
| | | </set> |
| | | where OID = #{oid} |
| | | </update> |
| | | |
| | | <!--éè¿ä¸»é®å é¤--> |
| | | <delete id="deleteById"> |
| | | delete from PL_CODE_SRCHCONDCONFIG where OID = #{oid} |
| | | </delete> |
| | | |
| | | </mapper> |
| | | |
| | |
| | | ${inSql} |
| | | </select> |
| | | |
| | | <insert id="insertByBaseModel" parameterType="java.util.Map"> |
| | | insert into ${tableName} |
| | | ( |
| | | <foreach collection="columnMap" item="value" index="key" separator=","> |
| | | ${key} |
| | | </foreach> |
| | | ) |
| | | <foreach collection="mapList" item="columnMap" separator=" union all "> |
| | | select <foreach collection="columnMap" item="value" index="key" separator=","> |
| | | #{value} |
| | | </foreach> |
| | | from dual |
| | | </foreach> |
| | | </insert> |
| | | |
| | | </mapper> |
| | |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.vci.ubcs.code.mapper.DockingLogeMapper"> |
| | | <!-- éç¨æ¥è¯¢æ å°ç»æ --> |
| | | <resultMap id="DockingPreAttrMappingResultMap" type="com.vci.ubcs.code.entity.DockingLog"> |
| | | <resultMap id="plDockingLogResultMap" type="com.vci.ubcs.code.entity.DockingLog"> |
| | | <result column="OID" property="oid"/> |
| | | <result column="REVISIONOID" property="revisionOid"/> |
| | | <result column="NAMEOID" property="nameOid"/> |
| | |
| | | @PostMapping("/submit") |
| | | @ApiOperationSupport(order = 3) |
| | | @ApiOperation(value = "æ°å¢æä¿®æ¹", notes = "ä¼ å
¥å
æ°æ®å¯¹è±¡") |
| | | public R submit(@Valid @RequestBody AttributeDTO dto) { |
| | | public R submit(@RequestBody AttributeDTO dto) { |
| | | CacheUtil.clear(OmdCacheConstant.ATTR_CACHE); |
| | | return R.status(attributeService.submit(dto)); |
| | | } |
| | |
| | | |
| | | private final String REGEXP = "^[A-Za-z]+$"; |
| | | |
| | | @Resource |
| | | private BtmTypeMapper btmTypeMapper; |
| | | |
| | | @Override |
| | | public boolean deleteLogic(@NotEmpty List<Long> ids) { |
| | | return false; |
| | |
| | | */ |
| | | @Override |
| | | public boolean submit(AttributeDTO dto) { |
| | | if (Pattern.compile(REGEXP).matcher(dto.getId()).matches()){ |
| | | if (!Pattern.compile(REGEXP).matcher(dto.getId()).matches()){ |
| | | throw new VciBaseException("屿§åç§°{0}åªè½æ¯è±æ",new Object[]{dto.getId()}); |
| | | } |
| | | LambdaQueryWrapper<Attribute> wrapper = Wrappers.<Attribute>query().lambda().eq(Attribute::getId, dto.getId()); |
| | | Long count = baseMapper.selectCount((Func.isEmpty(dto.getId())) ? wrapper : wrapper.notIn(Attribute::getId, dto.getId())); |
| | | Long count = baseMapper.selectCount((Func.isEmpty(dto.getOid())) ? wrapper : wrapper.notIn(Attribute::getOid, dto.getOid())); |
| | | if (count > 0L) { |
| | | throw new ServiceException("屿§åå·²åå¨!"); |
| | | } |
| | | Attribute omdAttribute = BeanUtil.copy(dto, Attribute.class); |
| | | Attribute attribute = AttributeWrapper.build().copyBeforeSave(dto); |
| | | CacheUtil.clear(OmdCacheConstant.ATTR_CACHE); |
| | | return saveOrUpdate(omdAttribute); |
| | | return saveOrUpdate(attribute); |
| | | } |
| | | |
| | | /** |
| | |
| | | package com.vci.ubcs.omd.wrapper; |
| | | |
| | | import com.vci.ubcs.omd.cache.EnumCache; |
| | | import com.vci.ubcs.omd.constant.BtmTypeConstant; |
| | | import com.vci.ubcs.omd.dto.AttributeDTO; |
| | | import com.vci.ubcs.omd.entity.Attribute; |
| | | import com.vci.ubcs.omd.vo.*; |
| | | import com.vci.ubcs.starter.web.util.VciBaseUtil; |
| | | import com.vci.ubcs.system.cache.DictBizCache; |
| | | import org.springblade.core.mp.support.BaseEntityWrapper; |
| | | import org.springblade.core.secure.utils.AuthUtil; |
| | | import org.springblade.core.tool.utils.BeanUtil; |
| | | import org.springblade.core.tool.utils.StringUtil; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.util.Objects; |
| | | import java.util.stream.Collectors; |
| | |
| | | @Override |
| | | public AttributeVO entityVO(Attribute entity) { |
| | | AttributeVO vo = Objects.requireNonNull(BeanUtil.copy(entity, AttributeVO.class)); |
| | | vo.setTypeValue(DictBizCache.getValue(vo.getTypeCode(),vo.getTypeKey())); |
| | | vo.setTypeValue(EnumCache.getValue(vo.getTypeCode(),vo.getTypeKey())); |
| | | if (StringUtil.isNotBlank(vo.getReferTypeCode())){ |
| | | vo.setReferTypeValue(DictBizCache.getValue(vo.getReferTypeCode(),vo.getReferTypeKey())); |
| | | vo.setReferTypeValue(EnumCache.getValue(vo.getReferTypeCode(),vo.getReferTypeKey())); |
| | | } |
| | | vo.setDictValue(vo.getDictKey()); |
| | | vo.setTypeValue(vo.getTypeKey()); |
| | | if (StringUtil.isNotBlank(vo.getDictCode())) { |
| | | vo.setDictValue(EnumCache.getValue(vo.getDictCode(),vo.getDictKey())); |
| | | } |
| | | return vo; |
| | | } |
| | | |
| | |
| | | public List<AttributeVO> listEntityVO(List<Attribute> list) { |
| | | return list.stream().map(this::entityVO).collect(Collectors.toList()); |
| | | } |
| | | |
| | | /** |
| | | * å¨ä¿åä¹åè¦è®¾ç½®é»è®¤å±æ§ |
| | | * @param dto |
| | | * @return |
| | | */ |
| | | public Attribute copyBeforeSave(AttributeDTO dto) { |
| | | Attribute attribute = BeanUtil.copy(dto, Attribute.class); |
| | | Objects.requireNonNull(attribute); |
| | | String currentUser = AuthUtil.getUserAccount(); |
| | | Date now = new Date(); |
| | | if (StringUtil.isBlank(dto.getOid())) { |
| | | attribute.setBtmName(BtmTypeConstant.ATTRIBUTE); |
| | | attribute.setCreator(currentUser); |
| | | attribute.setCreateTime(now); |
| | | attribute.setOwner(currentUser); |
| | | attribute.setOid(VciBaseUtil.getPk()); |
| | | } |
| | | attribute.setLastModifier(currentUser); |
| | | attribute.setLastModifyTime(now); |
| | | attribute.setTs(now); |
| | | return attribute; |
| | | } |
| | | |
| | | } |
| | |
| | | } |
| | | return enumItemVO; |
| | | } |
| | | |
| | | public List<EnumVO> listNodeVO(List<EnumItem> list) { |
| | | List<EnumItem> collect = list.stream().map(omdEnumItem -> BeanUtil.copy(omdEnumItem, EnumItem.class)).collect(Collectors.toList()); |
| | | return ForestNodeMerger.merge((List)collect); |
| | |
| | | <modelVersion>4.0.0</modelVersion> |
| | | <dependencies> |
| | | <dependency> |
| | | <groupId>org.apache.cxf</groupId> |
| | | <artifactId>cxf-spring-boot-starter-jaxws</artifactId> |
| | | <version>3.3.1</version> |
| | | <exclusions> |
| | | <exclusion> |
| | | <groupId>org.springframework.boot</groupId> |
| | | <artifactId>spring-boot-starter-logging</artifactId> |
| | | </exclusion> |
| | | <exclusion> |
| | | <groupId>org.springframework.boot</groupId> |
| | | <artifactId>spring-boot-starter</artifactId> |
| | | </exclusion> |
| | | <exclusion> |
| | | <groupId>javax.validation</groupId> |
| | | <artifactId>validation-api</artifactId> |
| | | </exclusion> |
| | | <exclusion> |
| | | <groupId>org.springframework.boot</groupId> |
| | | <artifactId>spring-boot-starter-web</artifactId> |
| | | </exclusion> |
| | | </exclusions> |
| | | <groupId>com.vci.ubcs</groupId> |
| | | <artifactId>ubcs-util-api</artifactId> |
| | | <version>3.0.1.RELEASE</version> |
| | | <scope>compile</scope> |
| | | </dependency> |
| | | <dependency> |
| | | <groupId>cn.easyproject</groupId> |
| | | <artifactId>orai18n</artifactId> |
| | | <version>${orai18n.version}</version> |
| | | </dependency> |
| | | <dependency> |
| | | <groupId>com.oracle.database.jdbc</groupId> |
| | | <artifactId>ojdbc8</artifactId> |
| | | </dependency> |
| | | <dependency> |
| | | <groupId>org.springblade</groupId> |
| | | <artifactId>blade-core-boot</artifactId> |
| | | </dependency> |
| | | <dependency> |
| | | <groupId>com.github.xiaoymin</groupId> |
| | | <artifactId>knife4j-annotations</artifactId> |
| | | <version>2.0.9</version> |
| | | <scope>compile</scope> |
| | | </dependency> |
| | | <dependency> |
| | | <groupId>com.vci.ubcs</groupId> |
| | | <artifactId>ubcs-util-api</artifactId> |
| | | <artifactId>ubcs-webservice-api</artifactId> |
| | | <version>3.0.1.RELEASE</version> |
| | | <scope>compile</scope> |
| | | </dependency> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | import org.springblade.core.cloud.client.UbcsCloudApplication; |
| | | import org.springblade.core.launch.UbcsApplication; |
| | | import org.springblade.core.launch.constant.AppConstant; |
| | | import org.springframework.context.annotation.ComponentScan; |
| | | |
| | | /** |
| | | * éå¢ç ç³è¯·æ¥å£å¯å¨å¨ |
| | | * |
| | | * @author |
| | | * ludc |
| | | */ |
| | | @UbcsCloudApplication |
| | | public class GroupCodeApplyApplication { |
| | | public static void main(String[] args) { |
| | | UbcsApplication.run(AppConstant.APPLICATION_NAME_PREFIX+"applyjtcodeservice", GroupCodeApplyApplication.class, args); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.webservice.controller; |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; |
| | | import com.vci.ubcs.code.feign.ICodeClassifyClient; |
| | | import com.vci.ubcs.code.vo.pagemodel.CodeClassifyTemplateAttrVO; |
| | | import com.vci.ubcs.code.webservice.service.*; |
| | | import com.vci.ubcs.code.webservice.vo.*; |
| | | import com.vci.ubcs.code.webservice.wrapper.DockingPreApplyFormWrapper; |
| | | import com.vci.ubcs.starter.exception.VciBaseException; |
| | | import com.vci.ubcs.starter.revision.model.TreeQueryObject; |
| | | import com.vci.ubcs.starter.web.pagemodel.Tree; |
| | | import com.vci.ubcs.code.webservice.entity.DockingPreApplyForm; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springblade.core.mp.support.Condition; |
| | | import org.springblade.core.mp.support.Query; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import javax.validation.Valid; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * ç¼ç ä¿¡æ¯ æ§å¶å¨ |
| | | * |
| | | * @author xiejun |
| | | * @since 2023-05-23 |
| | | */ |
| | | @RestController |
| | | @AllArgsConstructor |
| | | @RequestMapping("/DockingPreApplyCode") |
| | | @Api(value = "éå¢å±æ§æ å°é
ç½®", tags = "éå¢å±æ§æ å°é
ç½®æ¥å£") |
| | | public class DockingPreApplyCodeController { |
| | | /** |
| | | * éå¢å±æ§æ å°é
ç½®å±æ§ |
| | | */ |
| | | private final IDockingPreAttrMappingService dockingPreAttrMappingService; |
| | | |
| | | /** |
| | | * éå¢å±æ§æ å°é
ç½®å±æ§ |
| | | */ |
| | | private final IGroupMdmInterService groupMdmInterService; |
| | | |
| | | /*** |
| | | * 屿§æä¸¾èå´æå¡ |
| | | */ |
| | | |
| | | private final IDockingPreAttrRangeService dockingPreAttrRangeService; |
| | | |
| | | /*** |
| | | * åç±»å±æ§æä¸¾èå´æå¡ |
| | | */ |
| | | |
| | | private final IDockingPreClassifyService dockingPreClassifyService; |
| | | |
| | | /*** |
| | | * 屿§æä¸¾èå´æå¡ |
| | | */ |
| | | |
| | | private final IDockingPreApplyFormService dockingPreApplyFormService; |
| | | |
| | | |
| | | /*** |
| | | * 屿§æä¸¾èå´æå¡ |
| | | */ |
| | | |
| | | private final ICodeClassifyClient codeClassifyClient; |
| | | |
| | | /** |
| | | * æ ¹æ®ä¸»æ°æ®ç¼ç oidè·åéå¢å±æ§æ å°ä¿¡æ¯ |
| | | * @param codeClassifyId ä¸»é® |
| | | * @return ä¸»æ°æ®ç¼ç è§åæ¾ç¤ºå¯¹è±¡ |
| | | */ |
| | | @GetMapping("/gridAttrMapping") |
| | | @ApiOperationSupport(order = 8) |
| | | @ApiOperation(value = "å类主é®è·åä¸é墿¨¡å屿§æ å°å
³ç³»", notes = "ä¼ å
¥ä¸»æ°æ®:codeClassifyId,éå¢åç±»:sourceClassifyId") |
| | | public R getDockingAttrMappingsByCodeClassId(String codeClassifyId,String sourceClassifyId){ |
| | | List<DockingPreAttrMappingVO> dockingPreAttrMappingVOList=dockingPreAttrMappingService.getDockingAttrMappingsByCodeClassifyId(codeClassifyId,sourceClassifyId); |
| | | return R.data(dockingPreAttrMappingVOList); |
| | | } |
| | | |
| | | /** |
| | | * æ ¹æ®éå¢å±æ§idè·å屿§æä¸¾èå´ |
| | | * @param meatId ä¸»é® |
| | | * @return |
| | | */ |
| | | @GetMapping("/gridAttrRanges") |
| | | @ApiOperationSupport(order = 8) |
| | | @ApiOperation(value = "æ ¹æ®å±æ§idè·å屿§æä¸¾èå´", notes = "ä¼ å
¥") |
| | | public R getDockingPreAttrRangesByMetaId(String meatId){ |
| | | List<DockingPreAttrRangeVO> dockingPreAttrRangeVOList=dockingPreAttrRangeService.getDockingPreAttrRangesByMetaId(meatId); |
| | | return R.data(dockingPreAttrRangeVOList); |
| | | } |
| | | |
| | | /** |
| | | * ç³è¯·åæ¥è¯¢ èªå®ä¹å页 |
| | | */ |
| | | @GetMapping("/page") |
| | | @ApiOperationSupport(order = 3) |
| | | @ApiOperation(value = "å页", notes = "ä¼ å
¥dockingPreApplyForm") |
| | | public R<IPage<DockingPreApplyFormVO>> page(DockingPreApplyForm dockingPreApplyForm, Query query) { |
| | | IPage<DockingPreApplyForm> pages = dockingPreApplyFormService.page(Condition.getPage(query), Condition.getQueryWrapper(dockingPreApplyForm)); |
| | | return R.data(DockingPreApplyFormWrapper.build().pageVO(pages)); |
| | | } |
| | | /** |
| | | * ä¿å屿§æ å°é
ç½®ç»ä»¶ |
| | | * @param dockingPreAttrMappingVOList 屿§æ å°é
ç½®æ°æ®ä¼ è¾å¯¹è±¡ |
| | | * @return æ§è¡ç»æï¼success为true表示æåï¼msgæ¯å¤±è´¥çæç¤ºä¿¡æ¯ï¼objæ¯æ·»å 宿åçæ¾ç¤ºå¯¹è±¡ |
| | | */ |
| | | @PostMapping( "/batchAddSave") |
| | | @ApiOperationSupport(order = 2) |
| | | @ApiOperation(value = "ä¿å屿§æ å°é
ç½®", notes = "dockingPreAttrMappingVOList") |
| | | public R batchSave(@Valid @RequestBody List<DockingPreAttrMappingVO> dockingPreAttrMappingVOList){ |
| | | List<DockingPreAttrMappingVO> dockingPreAttrRangeVOS=new ArrayList<>(); |
| | | try { |
| | | dockingPreAttrRangeVOS = dockingPreAttrMappingService.batchAddSave(dockingPreAttrMappingVOList); |
| | | }catch (Exception e){ |
| | | return R.fail("éå¢éæå±æ§æ å°é
ç½®ä¿å失败ï¼"+e.getMessage()); |
| | | } |
| | | return R.data(dockingPreAttrRangeVOS); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * åç
§æ éå¢åç±»ï¼æ¯å¦å
å«å±æ§ï¼ |
| | | * @param treeQueryObject æ å½¢æ¥è¯¢å¯¹è±¡ conditionMap åä¸ codeclsfid=ä¸»æ°æ®çåç±»oid |
| | | * @return éå¢åç±»æ¾ç¤ºæ |
| | | */ |
| | | @GetMapping("/referTree") |
| | | public List<Tree> referTree(@RequestBody TreeQueryObject treeQueryObject) { |
| | | return dockingPreClassifyService.treeCompanyGroupClassify(treeQueryObject); |
| | | } |
| | | |
| | | /** |
| | | * åç
§æ ä¸»æ°æ®åç±» |
| | | * @param treeQueryObject æ å½¢æ¥è¯¢å¯¹è±¡ conditionMap åä¸ codeclsfid=ä¸»æ°æ®çåç±»oid |
| | | * @return 主é¢åºåç±»æ¾ç¤ºæ |
| | | */ |
| | | @GetMapping("/referCodeClassifyTree") |
| | | public List<Tree> referCodeClassifyTree(@RequestBody TreeQueryObject treeQueryObject) { |
| | | return codeClassifyClient.referCodeClassifyTree(treeQueryObject); |
| | | } |
| | | |
| | | /** |
| | | * åç
§æ ä¸»æ°æ®æ¨¡æ¿å±æ§ä¿¡æ¯ |
| | | * @param codeClassifyId ä¸»æ°æ®åç±»ä¸»é® |
| | | * @return 主é¢åºå类模æ¿å±æ§ |
| | | */ |
| | | @GetMapping("/referCodeClassifyTree") |
| | | public List<CodeClassifyTemplateAttrVO> listCodeAttributeByClassId(String codeClassifyId) { |
| | | return codeClassifyClient.listCodeAttributeByClassId(codeClassifyId); |
| | | } |
| | | |
| | | |
| | | /*** |
| | | * ç³è¯·éå¢ç¼ç |
| | | * @return |
| | | */ |
| | | @PostMapping( "/applyGroupCode") |
| | | @ApiOperationSupport(order = 2) |
| | | @ApiOperation(value = "éå¢ç ç³è¯·", notes = "dockingPreAttrMappingVOList") |
| | | public R applyGroupCode(String oids,String btmName){ |
| | | List<BaseModelVO> BaseModelVOs=new ArrayList<>(); |
| | | try { |
| | | return groupMdmInterService.applyGroupCode(oids,btmName); |
| | | }catch (Throwable e){ |
| | | return R.fail("éå¢ç ç³è¯·å¤±è´¥ï¼"+e.getMessage()); |
| | | } |
| | | } |
| | | |
| | | /*** |
| | | * 忥é墿¨¡åè§å¾ |
| | | * @return è¿åæ§è¡ç»æä¿¡æ¯ |
| | | */ |
| | | @PostMapping( "/syncClassifyModel") |
| | | @ApiOperationSupport(order = 2) |
| | | @ApiOperation(value = "忥é墿¨¡åè§å¾", notes = "忥é墿¨¡åè§å¾->all:忥éå¢ä¸»æ¨¡å,one:忥é墿¨¡å详ç»ä¿¡æ¯") |
| | | public R syncClassifyModel(String classifyId,String operationType){ |
| | | try { |
| | | return groupMdmInterService.syncClassifyModel(classifyId,operationType); |
| | | }catch (VciBaseException e){ |
| | | return R.fail("忥é墿¨¡åè§å¾å¤±è´¥ï¼"+e.getMessage()); |
| | | } |
| | | |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.webservice.feigh; |
| | | |
| | | import com.alibaba.cloud.commons.lang.StringUtils; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.vci.ubcs.code.webservice.entity.*; |
| | | import com.vci.ubcs.code.webservice.feign.IMdmInterJtClient; |
| | | import com.vci.ubcs.code.webservice.service.*; |
| | | import com.vci.ubcs.code.webservice.vo.*; |
| | | import com.vci.ubcs.starter.revision.model.BaseModel; |
| | | import com.vci.ubcs.starter.util.DefaultAttrAssimtUtil; |
| | | import com.vci.ubcs.starter.util.MdmBtmTypeConstant; |
| | | import com.vci.ubcs.starter.web.constant.MdmEnumIdConstant; |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springblade.core.tenant.annotation.NonDS; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.util.CollectionUtils; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import springfox.documentation.annotations.ApiIgnore; |
| | | |
| | | import java.util.*; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /*** |
| | | * æä¾ä¸éå¢ç³è¯·feigh |
| | | */ |
| | | @NonDS |
| | | @ApiIgnore |
| | | @RestController |
| | | @AllArgsConstructor |
| | | @Slf4j |
| | | public class MdmInterJtClient implements IMdmInterJtClient { |
| | | /** |
| | | * éå¢ç³è¯·åæå¡ |
| | | */ |
| | | private final IDockingPreApplyFormService dockingPreApplyFormService; |
| | | |
| | | /** |
| | | * éå¢å类模åè§å¾æå¡ |
| | | */ |
| | | private final IDockingPreViewModelService dockingPreViewModelService; |
| | | |
| | | /** |
| | | * éå¢åç±»å±æ§æå¡ |
| | | */ |
| | | private final IDockingPreMetaAttrService dockingPreMetaAttrService; |
| | | |
| | | /** |
| | | * éå¢ç³è¯·åæå¡ |
| | | */ |
| | | private final IDockingPreClassifyService dockingPreClassifyService; |
| | | |
| | | |
| | | /** |
| | | * éå¢ç³è¯·åæå¡ |
| | | */ |
| | | private final IDockingPreAttrRangeService dockingPreAttrRangeService; |
| | | |
| | | |
| | | /* |
| | | * ä¸»æ°æ®ä¸å¡æå¡ |
| | | */ |
| | | |
| | | /** |
| | | * è·åéå¢éå¢ç ï¼èµå¼å°ä¸»æ°æ® |
| | | * @param dockingReturnStoreVO |
| | | * @return è¿åéæç»æä¿¡æ¯ |
| | | */ |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public R getApplyGroupCode(DockingReturnStoreVO dockingReturnStoreVO) { |
| | | log.info("è·åéå¢éå¢ç ï¼èµå¼å°ä¸»æ°æ® start"); |
| | | try { |
| | | List<BaseModel> editObjectList = new ArrayList(); |
| | | |
| | | List<DockingPreApplyForm> dockingPreApplyFormList = new ArrayList(); |
| | | //String classId = javaObject.getClassId(); |
| | | //String sysName = javaObject.getSysName(); |
| | | List<MainData> mainDataList = dockingReturnStoreVO.getMainData(); |
| | | for (MainData mainData : mainDataList) { |
| | | JSONObject jcontent = new JSONObject(); |
| | | //ç¼ç ç¶æ |
| | | String formState = mainData.getFormState(); |
| | | //ç³è¯·å |
| | | String applyId = mainData.getApplyId(); |
| | | String customCoding = StringUtils.isBlank(mainData.getCustomCoding()) ? "" : mainData.getCustomCoding();//éå¢ç |
| | | String msg = ""; |
| | | log.info("ç³è¯·å:"+applyId+",éå¢ç ï¼"+customCoding); |
| | | boolean res = false; |
| | | if ("1".equals(formState)) { |
| | | msg = "éå¢å®¡æ ¸ä¸"; |
| | | } else if ("2".equals(formState)) { |
| | | msg = "驳å"; |
| | | } else if ("3".equals(formState)) { |
| | | msg = "éå¢å®¡æ ¸ä¸"; |
| | | } else if ("4".equals(formState)) { |
| | | msg = "å®¡æ ¸ç»æï¼èµç 失败"; |
| | | } else if ("5".equals(formState)) { |
| | | res = true; |
| | | msg = "å®¡æ ¸ç»æï¼èµç æå"; |
| | | } else if ("6".equals(formState)) { |
| | | msg = "å¾
301èµç "; |
| | | } else if ("7".equals(formState)) { |
| | | res = true; |
| | | msg = "å·²èµç "; |
| | | } else if ("8".equals(formState)) { |
| | | res = true; |
| | | msg = "å·²èµç ï¼æ²¿ç¨ï¼"; |
| | | } else if ("9".equals(formState)) { |
| | | msg = "å®¡æ ¸ä¸"; |
| | | } |
| | | jcontent.put("applyId", applyId); |
| | | jcontent.put("formState", formState); |
| | | jcontent.put("customCoding", customCoding); |
| | | jcontent.put("msg", msg); |
| | | List<DockingPreApplyForm> oldDockingPreApplyFormList = dockingPreApplyFormService.list(Wrappers.<DockingPreApplyForm>query().lambda() |
| | | .eq(DockingPreApplyForm::getId, applyId)); |
| | | if (CollectionUtils.isEmpty(oldDockingPreApplyFormList)) { |
| | | continue; //// return false; |
| | | } |
| | | DockingPreApplyForm dockingPreApplyForm = oldDockingPreApplyFormList.get(0); |
| | | dockingPreApplyForm.setMsg(msg); |
| | | dockingPreApplyForm.setCode("1"); |
| | | if (res) { |
| | | dockingPreApplyForm.setGroupCode(customCoding); |
| | | } |
| | | //è¿åç»æä¿¡æ¯ |
| | | dockingPreApplyForm.setContent(jcontent.toJSONString()); |
| | | dockingPreApplyFormList.add(dockingPreApplyForm); |
| | | if (res) { |
| | | String jdataid = dockingPreApplyForm.getDataOid(); |
| | | String jdatabtmname = dockingPreApplyForm.getDataBtmName(); |
| | | //æ¤å¤éè¦æ¥è¯¢ä¸å¡æ°æ®ï¼å»æ´æ¹ |
| | | BaseModel baseModel = new BaseModel(); |
| | | baseModel.setId(customCoding); |
| | | log.info("ç³è¯·å:"+applyId+",éå¢ç ï¼"+customCoding+"ç¼ç ï¼"+baseModel.getId()); |
| | | editObjectList.add(baseModel); |
| | | } |
| | | } |
| | | dockingPreApplyFormService.saveOrUpdateBatch(dockingPreApplyFormList); |
| | | //è°ç¨ä¸»æ°æ®æå¡æ¹éä¿åæ¥å£ |
| | | }catch (Throwable e){ |
| | | e.printStackTrace(); |
| | | return R.fail("éå¢ç éæèµå¼å¤±è´¥"+e); |
| | | } |
| | | log.info("è·åéå¢éå¢ç ï¼èµå¼å°ä¸»æ°æ® end"); |
| | | return R.success("éå¢ç èµå¼æå"); |
| | | } |
| | | |
| | | /*** |
| | | * æ¥åéå¢åç±»ä¸»æ¨¡åæ°æ® |
| | | * @param dockingClassifyModelAttrVO |
| | | * @return |
| | | */ |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public R pubMdmModel(DockingClassifyModelAttrVO dockingClassifyModelAttrVO) { |
| | | log.info(""); |
| | | try { |
| | | this.saveDatas(dockingClassifyModelAttrVO); |
| | | }catch (Throwable e){ |
| | | e.printStackTrace(); |
| | | return R.fail("æ¥åéå¢åç±»ä¸»æ¨¡åæ°æ®å¤±è´¥"+e); |
| | | } |
| | | log.info("æ¥åéå¢åç±»ä¸»æ¨¡åæ°æ® end"); |
| | | return R.success("æ¥åéå¢åç±»ä¸»æ¨¡åæ°æ®æå"); |
| | | } |
| | | |
| | | /*** |
| | | * ç»ç» ä¿åæ°æ®æ¹æ³ |
| | | * @param dockingClassifyModelAttrVO |
| | | * @throws Throwable |
| | | */ |
| | | private boolean saveDatas(DockingClassifyModelAttrVO dockingClassifyModelAttrVO) throws Throwable { |
| | | List<DockingPreClassify> dockingPreClassifyArrayList=new ArrayList<>(); |
| | | try { |
| | | DockingClassifyMainVO mainData = dockingClassifyModelAttrVO.getDataStructure(); |
| | | List<DockingClassifyVO> classList = mainData.getClassList(); |
| | | Map<String, List<DockingClassifyViewVO>> classInfoMap = mainData.getClassInfos(); |
| | | for (DockingClassifyVO jclassObject : classList) { |
| | | String id =StringUtils.isBlank(jclassObject.getId())?"":jclassObject.getId(); |
| | | String className = StringUtils.isBlank(jclassObject.getClassName())?"":jclassObject.getClassName(); |
| | | String pid = StringUtils.isBlank(jclassObject.getPid())?"":jclassObject.getPid(); |
| | | String nodeLink = StringUtils.isBlank(jclassObject.getNodeLink())?"":jclassObject.getNodeLink(); |
| | | String nodeLinkName = StringUtils.isBlank(jclassObject.getNodeLinkName())?"":jclassObject.getNodeLinkName(); |
| | | String classNumber = StringUtils.isBlank(jclassObject.getClassNumber())?"":jclassObject.getClassNumber(); |
| | | //ClientBusinessObject classObject = objectOperation.readBusinessObjectById(id, "jclass");// è·ååç±»ä¿¡æ¯ |
| | | DockingPreClassify dockingPreClassify=dockingPreClassifyService.getById(id); |
| | | log.info("classify:-------------->éå¢å类主æº:"+id); |
| | | log.info("classify:-------------->éå¢åç±»åç§°:"+className); |
| | | log.info("classify:--------------> éå¢åç±»ç¶èç¹:"+pid); |
| | | log.info("classify:-------------->龿¥:"+nodeLink); |
| | | log.info("classify:-------------->龿¥åç§°:"+nodeLinkName); |
| | | |
| | | if (dockingPreClassify == null|| StringUtils.isBlank(dockingPreClassify.getOid())) { |
| | | dockingPreClassify = new DockingPreClassify(); |
| | | DefaultAttrAssimtUtil.addDefaultAttrAssimt(dockingPreClassify, MdmBtmTypeConstant.DOCKING_PRE_JCLASSIFY); |
| | | } else { |
| | | DefaultAttrAssimtUtil.updateDefaultAttrAssimt(dockingPreClassify); |
| | | } |
| | | dockingPreClassify.setOid(id); |
| | | dockingPreClassify.setName(className); |
| | | dockingPreClassify.setPid(pid); |
| | | dockingPreClassify.setId(classNumber); |
| | | dockingPreClassify.setNodeLink(nodeLink); |
| | | dockingPreClassify.setGetNodeLinkName(nodeLinkName); |
| | | dockingPreClassify.setClassName(className); |
| | | dockingPreClassifyArrayList.add(dockingPreClassify); |
| | | // è·å对åºçåç±»è§å¾æ¨¡å |
| | | if (classInfoMap.containsKey(id)) { |
| | | List<DockingClassifyViewVO> list = classInfoMap.get(id); |
| | | getVilewMode(jclassObject, list); |
| | | } |
| | | } |
| | | boolean res= dockingPreClassifyService.saveOrUpdateBatch(dockingPreClassifyArrayList); |
| | | return res; |
| | | } catch (Throwable e) { |
| | | e.printStackTrace(); |
| | | throw new Throwable("åå¨è§å¾æ¨¡ååºç°é®é¢"); |
| | | } |
| | | } |
| | | /*** |
| | | * è·ååç±»è§å¾ |
| | | * |
| | | * @param jclassObject |
| | | * @throws Throwable |
| | | */ |
| | | private void getVilewMode(DockingClassifyVO jclassObject, List<DockingClassifyViewVO> list) |
| | | throws Throwable { |
| | | String nodeLinkName = jclassObject.getNodeLinkName(); |
| | | try { |
| | | String jclassId =StringUtils.isBlank(jclassObject.getId())?"":jclassObject.getId(); |
| | | Map<String, DockingPreViewModel> jviewmodelMap = new HashMap<String, DockingPreViewModel>(); |
| | | //Map<String, String> condtionMa = new HashMap<String, String>(); |
| | | // condtionMa.put("jsourceclsfid", jclassId); |
| | | List<DockingPreViewModel> dockingPreViewModelList= dockingPreViewModelService.list(Wrappers.<DockingPreViewModel>query().lambda().eq(DockingPreViewModel::getSourceClassifyId,false));// æ ¹æ®åç±»æ¥è¯¢æ¨¡åè§å¾å¯¹è±¡ |
| | | for (DockingPreViewModel dockingPreViewModel : dockingPreViewModelList) { |
| | | jviewmodelMap.put(dockingPreViewModel.getViewName(),dockingPreViewModel); |
| | | } |
| | | |
| | | for (DockingClassifyViewVO viewInfo : list) { |
| | | String viewName =StringUtils.isBlank(viewInfo.getViewName())?"":viewInfo.getViewName(); |
| | | String impactList = StringUtils.isBlank(viewInfo.getImpactList())?"":viewInfo.getImpactList(); |
| | | log.info("VilewMode:-------------->è§å¾åç§°:"+viewName); |
| | | log.info("VilewMode:-------------->å½±åç¼ç 项:"+impactList); |
| | | log.info("VilewMode:--------------> éå¢å类主é®:"+jclassId); |
| | | List<DockingClassifyMetaAttrVO> metaList = viewInfo.getMetaList(); |
| | | DockingPreViewModel jviewModelObject = null; |
| | | if (jviewmodelMap.containsKey(viewName)) { |
| | | jviewModelObject = jviewmodelMap.get(viewName); |
| | | //å½±åç¼ç é¡¹çæ°æ® |
| | | jviewModelObject.setImpactList(impactList); |
| | | DefaultAttrAssimtUtil.updateDefaultAttrAssimt(jviewModelObject); |
| | | } else { |
| | | jviewModelObject =new DockingPreViewModel(); |
| | | DefaultAttrAssimtUtil.addDefaultAttrAssimt(jviewModelObject,MdmBtmTypeConstant.DOCKING_PRE_JVIEWMODEL); |
| | | jviewModelObject.setSourceClassifyId(jclassId);// éå¢åç±»id |
| | | jviewModelObject.setViewName(viewName);// éå¢è§å¾åç§° |
| | | //å½±åç¼ç é¡¹çæ°æ® |
| | | jviewModelObject.setImpactList(impactList); |
| | | dockingPreViewModelList.add(jviewModelObject); |
| | | } |
| | | // è·å模åè§å¾ä¸ç屿§é |
| | | // String oid = jviewModelObject.getOid(); |
| | | List<DockingPreMetaAttr>allDockingPreMetaAttrList=new ArrayList<>(); |
| | | getMetaAttrObject(metaList, jclassId, jviewModelObject, "root",allDockingPreMetaAttrList); |
| | | //ä¿å模åè§å¾å±æ§ |
| | | dockingPreMetaAttrService.saveOrUpdateBatch(allDockingPreMetaAttrList); |
| | | //ä¿å模åè§å¾ |
| | | dockingPreViewModelService.saveOrUpdateBatch(dockingPreViewModelList); |
| | | } |
| | | } catch (Throwable e) { |
| | | e.printStackTrace(); |
| | | throw new Throwable("ç»ç»åç±»" + nodeLinkName + "模åè§å¾åå¨åºç°é®é¢"); |
| | | } |
| | | } |
| | | |
| | | |
| | | /*** |
| | | * è·å模åè§å¾å±æ§ |
| | | * @throws Throwable |
| | | */ |
| | | private void getMetaAttrObject(List<DockingClassifyMetaAttrVO> metaList, |
| | | String jclassId, DockingPreViewModel jviewModelObject, String pid,List<DockingPreMetaAttr>allDockingPreMetaAttrList)throws Throwable { |
| | | try { |
| | | //// æ ¹æ®åç±»æ¥è¯¢æ¨¡åè§å¾å¯¹è±¡ |
| | | List<DockingPreMetaAttr> dockingPreMetaAttrList = dockingPreMetaAttrService.selectByWrapper(Wrappers.<DockingPreMetaAttr>query().lambda() |
| | | .eq(DockingPreMetaAttr::getSourceClassifyId,jclassId).eq(DockingPreMetaAttr::getViewModelId,jviewModelObject.getOid()) |
| | | .eq(DockingPreMetaAttr:: getPid,pid)); |
| | | Map<String,DockingPreMetaAttr> jmetaattrMap = dockingPreMetaAttrList.stream().filter( |
| | | s -> StringUtils.isNotBlank(s.getEnglishName())).collect(Collectors.toMap(s -> s.getEnglishName().toLowerCase(Locale.ROOT), t -> t)); |
| | | |
| | | for (DockingClassifyMetaAttrVO dockingClassifyMetaAttrVO : metaList) { |
| | | String chineseName =StringUtils.isBlank(dockingClassifyMetaAttrVO.getChineseName())?"":dockingClassifyMetaAttrVO.getChineseName();// 屿§åç§° |
| | | String englishName = StringUtils.isBlank(dockingClassifyMetaAttrVO.getEnglishName())?"":dockingClassifyMetaAttrVO.getEnglishName();// è±æåç§° |
| | | String defaultValue = StringUtils.isBlank(dockingClassifyMetaAttrVO.getDefaultValue())?"":dockingClassifyMetaAttrVO.getDefaultValue(); |
| | | Integer metadataType =dockingClassifyMetaAttrVO.getMetadataType();// ç±»å |
| | | Integer necessaryConf = dockingClassifyMetaAttrVO.getNecessaryConf();// æ¯å¦å¿
å¡« |
| | | Map<String, String> range = dockingClassifyMetaAttrVO.getRange()==null?new HashMap<String, String>():dockingClassifyMetaAttrVO.getRange();// åå¼èå´ |
| | | |
| | | log.info("metaAttr:-------------->屿§åç§°:"+chineseName); |
| | | log.info("metaAttr:-------------->è±æåç§°:"+englishName); |
| | | log.info("metaAttr:-------------->é»è®¤å¼:"+defaultValue); |
| | | log.info("metaAttr:--------------> ç±»å:"+metadataType); |
| | | log.info("metaAttr:--------------> æ¯å¦å¿
å¡«:"+necessaryConf); |
| | | DockingPreMetaAttr dockingPreMetaAttr = new DockingPreMetaAttr(); |
| | | if (jmetaattrMap.containsKey(englishName)) { |
| | | dockingPreMetaAttr = jmetaattrMap.get(englishName); |
| | | dockingPreMetaAttr.setChineseName(chineseName); |
| | | dockingPreMetaAttr.setDefaultValue(defaultValue); |
| | | DefaultAttrAssimtUtil.updateDefaultAttrAssimt(dockingPreMetaAttr); |
| | | } else { |
| | | DefaultAttrAssimtUtil.addDefaultAttrAssimt(dockingPreMetaAttr,MdmBtmTypeConstant.DOCKING_PRE_JMETAATRR); |
| | | dockingPreMetaAttr.setSourceClassifyId(jclassId);// éå¢åç±»id |
| | | dockingPreMetaAttr.setViewModelId(jviewModelObject.getOid());// éå¢è§å¾æ¨¡åid |
| | | dockingPreMetaAttr.setChineseName(chineseName);// 屿§åç§° |
| | | dockingPreMetaAttr.setEnglishName(englishName);// 屿§å段 |
| | | dockingPreMetaAttr.setDefaultValue(defaultValue);// 屿§åç§° |
| | | dockingPreMetaAttr.setMetaDataType(metadataType);// 屿§ç±»å |
| | | dockingPreMetaAttr.setNecesSaryConf(necessaryConf);// 屿§å¿
填项 |
| | | dockingPreMetaAttr.setPid(pid);// ç¶èç¹id |
| | | } |
| | | if(range!=null&&range.size()>0){ |
| | | // è·å屿§å¼å |
| | | getRange(dockingPreMetaAttr, range); |
| | | } |
| | | /*** |
| | | * è·ååèç¹ |
| | | */ |
| | | DockingClassifyMetaAttrVO compositeMeta = dockingClassifyMetaAttrVO.getCompositeMeta(); |
| | | if (compositeMeta != null) { |
| | | pid = StringUtils.isBlank(dockingPreMetaAttr.getOid())?"":dockingPreMetaAttr.getOid();// å½åoid |
| | | List<DockingClassifyMetaAttrVO> childMetaList = new ArrayList<>(); |
| | | childMetaList.add(compositeMeta); |
| | | getMetaAttrObject(childMetaList, jclassId,jviewModelObject, pid,allDockingPreMetaAttrList); |
| | | } |
| | | |
| | | } |
| | | |
| | | } catch (Throwable e) { |
| | | e.printStackTrace(); |
| | | log.error("ç»ç»æ¨¡åè§å¾"+ jviewModelObject.getViewName() |
| | | + "屿§åå¨åºç°é®é¢" + e); |
| | | throw new Throwable("ç»ç»æ¨¡åè§å¾"+ jviewModelObject.getViewName() |
| | | + "屿§åå¨åºç°é®é¢" + e); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * @throws Throwable |
| | | * * è·åå¼å |
| | | * @param metaAttrObject |
| | | * @param range |
| | | * @throws |
| | | */ |
| | | private void getRange(DockingPreMetaAttr metaAttrObject,Map<String, String> range) throws Throwable { |
| | | String metaAttrOid =StringUtils.isBlank(metaAttrObject.getOid())?"":metaAttrObject.getOid();// 屿§çoid |
| | | String jchinesename = StringUtils.isBlank(metaAttrObject.getChineseName())?"":metaAttrObject.getChineseName(); |
| | | Map<String, DockingPreAttrRange> rangeMap = new HashMap<>(); |
| | | try { |
| | | Map<String, String> condtionMa = new HashMap<String, String>(); |
| | | condtionMa.put("jmetalistid", metaAttrOid); |
| | | List<DockingPreAttrRange> jmetaattrList = dockingPreAttrRangeService.selectByWrapper(Wrappers.<DockingPreAttrRange>query().lambda() |
| | | .eq(DockingPreAttrRange::getMetaListId,metaAttrOid));// æ ¹æ®åç±»æ¥è¯¢æ¨¡åè§å¾å¯¹è±¡ |
| | | rangeMap= jmetaattrList.stream().collect(Collectors.toMap(s -> StringUtils.isNotBlank(s.getNumText().toLowerCase(Locale.ROOT))?"":s.getNumText().toLowerCase(Locale.ROOT), t -> t)); |
| | | |
| | | for (String rangeKey : range.keySet()) { |
| | | DockingPreAttrRange rangeObject = new DockingPreAttrRange(); |
| | | String keyValue = StringUtils.isBlank(range.get(rangeKey))?"":range.get(rangeKey); |
| | | log.info("range:-------------->æ¾ç¤ºå¼"+rangeKey+",å
é¨å¼"+keyValue); |
| | | if (rangeMap.containsKey(rangeKey)) { |
| | | rangeObject = rangeMap.get(rangeKey); |
| | | rangeObject.setNumTextValue(keyValue); |
| | | rangeObject.setNumText(rangeKey); |
| | | DefaultAttrAssimtUtil.updateDefaultAttrAssimt(rangeObject); |
| | | } else { |
| | | DefaultAttrAssimtUtil.addDefaultAttrAssimt(rangeObject,MdmBtmTypeConstant.DOCKING_PRE_JRANGE); |
| | | rangeObject.setNumTextValue(keyValue); |
| | | rangeObject.setNumText(rangeKey); |
| | | rangeObject.setTs(rangeObject.getLastModifyTime()); |
| | | rangeObject.setMetaListId(metaAttrOid); |
| | | log.info("range:-------------->屿§å
é¨å¼:"+metaAttrOid); |
| | | log.info("range:-------------->æ¶é´:"+rangeObject.getLastModifyTime()); |
| | | jmetaattrList.add(rangeObject); |
| | | } |
| | | } |
| | | dockingPreAttrRangeService.saveOrUpdateBatch(jmetaattrList); |
| | | } catch (Throwable e) { |
| | | e.printStackTrace(); |
| | | log.info("ç»ç»å±æ§ï¼ã" + jchinesename + "ãå¼ååºç°é®é¢"+ e); |
| | | throw new Throwable("ç»ç»å±æ§ï¼ã" + jchinesename + "ãå¼ååºç°é®é¢"+ e); |
| | | } |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.webservice.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.vci.ubcs.code.webservice.entity.DockingPreApplyForm; |
| | | |
| | | public interface DockingPreApplyFormMapper extends BaseMapper<DockingPreApplyForm> { |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.webservice.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.vci.ubcs.code.webservice.entity.DockingPreAttrMapping; |
| | | |
| | | public interface DockingPreAttrMappingMapper extends BaseMapper<DockingPreAttrMapping> { |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.webservice.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.vci.ubcs.code.webservice.entity.DockingPreAttrRange; |
| | | |
| | | public interface DockingPreAttrRangeMapper extends BaseMapper<DockingPreAttrRange> { |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.webservice.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.vci.ubcs.code.webservice.entity.DockingPreClassify; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.List; |
| | | |
| | | public interface DockingPreClassifyMapper extends BaseMapper<DockingPreClassify> { |
| | | |
| | | |
| | | /** |
| | | * æ¥æ¾æ å½¢ç»æ |
| | | * |
| | | * @param oid åç±»çä¸»é® |
| | | * @return æ°æ®éå |
| | | */ |
| | | List<DockingPreClassify> selectCompanyGroupClassifyVOByTree(@Param("oid") String oid); |
| | | |
| | | |
| | | /** |
| | | * æ ¡éªæ¯å¦å
å«åèç¹ |
| | | * |
| | | * @param oid åç±»çä¸»é® |
| | | * @return true 表示å
å« |
| | | */ |
| | | Boolean checkHasChild(@Param("oid") String oid); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.webservice.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.vci.ubcs.code.webservice.entity.DockingPreMetaAttr; |
| | | |
| | | public interface DockingPreMetaAttrMapper extends BaseMapper<DockingPreMetaAttr> { |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.webservice.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.vci.ubcs.code.webservice.entity.DockingPreViewModel; |
| | | |
| | | public interface DockingPreViewModelMapper extends BaseMapper<DockingPreViewModel> { |
| | | } |
ÎļþÃû´Ó Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/IDockingPreApplyFormService.java ÐÞ¸Ä |
| | |
| | | package com.vci.ubcs.code.service; |
| | | package com.vci.ubcs.code.webservice.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.vci.ubcs.code.entity.DockingPreApplyForm; |
| | | import com.vci.ubcs.code.webservice.entity.DockingPreApplyForm; |
| | | |
| | | /*** |
| | | * éå¢ç³è¯·åæå¡ |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.webservice.service; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.Wrapper; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.vci.ubcs.code.webservice.entity.DockingPreAttrMapping; |
| | | import com.vci.ubcs.code.webservice.vo.DockingPreAttrMappingVO; |
| | | import com.vci.ubcs.code.webservice.vo.DokingAttributeSerchVO; |
| | | import com.vci.ubcs.starter.exception.VciBaseException; |
| | | import org.springblade.core.tool.api.R; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * éå¢éæé
ç½®æå¡ |
| | | * @author xiej |
| | | * @date 2023-05-17 |
| | | */ |
| | | public interface IDockingPreAttrMappingService extends IService<DockingPreAttrMapping> { |
| | | |
| | | /*** |
| | | * æ ¹æ®ä¸»æ°æ®å类主é®è·åå类信æ¯é
ç½® |
| | | * @param codeClassifyId |
| | | * @return |
| | | */ |
| | | List<DockingPreAttrMappingVO> getDockingAttrMappingsByCodeClassifyId(String codeClassifyId, String sourceClassifyId); |
| | | |
| | | /** |
| | | * ä½¿ç¨æ¥è¯¢å°è£
卿¥æ¥è¯¢ |
| | | * @param wrapper æ¥è¯¢å°è£
å¨ |
| | | * @return æ°æ®å¯¹è±¡ |
| | | */ |
| | | List<DockingPreAttrMapping> selectByWrapper(Wrapper wrapper); |
| | | |
| | | /** |
| | | * ä¿å屿§æ å°é
ç½®ç»ä»¶ |
| | | * @param dockingPreAttrMappingDTOS 屿§æ å°é
ç½®æ°æ®ä¼ è¾å¯¹è±¡ |
| | | * @return æ§è¡ç»æï¼success为true表示æåï¼msgæ¯å¤±è´¥çæç¤ºä¿¡æ¯ï¼objæ¯æ·»å 宿åçæ¾ç¤ºå¯¹è±¡ |
| | | */ |
| | | public List<DockingPreAttrMappingVO> batchAddSave(List<DockingPreAttrMappingVO> dockingPreAttrMappingDTOS)throws Exception; |
| | | |
| | | /*** |
| | | *æ ¡éªå±æ§æ å°æ¯å¦é
ç½®è¿ |
| | | * @param targetClassifyId |
| | | * @param sourceClassifyId |
| | | * @return |
| | | */ |
| | | boolean checkHasConfigByTragetCodeclassifyId(String targetClassifyId,String sourceClassifyId); |
| | | |
| | | /*** |
| | | * 屿§æ¥è¯¢ |
| | | * @return |
| | | */ |
| | | public R search(DokingAttributeSerchVO dokingAttributeSerchVO); |
| | | } |
ÎļþÃû´Ó Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/IDockingPreAttrRangeService.java ÐÞ¸Ä |
| | |
| | | package com.vci.ubcs.code.service; |
| | | package com.vci.ubcs.code.webservice.service; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.Wrapper; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.vci.ubcs.code.entity.DockingPreAttrRange; |
| | | import com.vci.ubcs.code.vo.pagemodel.DockingPreAttrRangeVO; |
| | | import com.vci.ubcs.code.webservice.entity.DockingPreAttrRange; |
| | | import com.vci.ubcs.code.webservice.vo.DockingPreAttrRangeVO; |
| | | |
| | | import java.util.List; |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.webservice.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.vci.ubcs.starter.revision.model.TreeQueryObject; |
| | | import com.vci.ubcs.starter.web.pagemodel.Tree; |
| | | import com.vci.ubcs.code.webservice.entity.DockingPreClassify; |
| | | |
| | | import java.util.List; |
| | | |
| | | /*** |
| | | * éå¢åç±»æå¡ |
| | | * @author xiejun |
| | | * @date 2022-05-23 |
| | | */ |
| | | public interface IDockingPreClassifyService extends IService<DockingPreClassify> { |
| | | |
| | | |
| | | |
| | | /** |
| | | * æ¥è¯¢ä¸»é¢åºåç±» æ |
| | | * @param treeQueryObject æ æ¥è¯¢å¯¹è±¡ |
| | | * @return 主é¢åºåç±» æ¾ç¤ºæ |
| | | */ |
| | | List<Tree> treeCompanyGroupClassify(TreeQueryObject treeQueryObject); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.webservice.service; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.Wrapper; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.vci.ubcs.code.webservice.entity.DockingPreMetaAttr; |
| | | import com.vci.ubcs.code.webservice.vo.DockingPreMetaAttrVO; |
| | | |
| | | import java.util.List; |
| | | |
| | | /*** |
| | | * éå¢å±æ§æå¡ |
| | | * @author xiejun |
| | | * @date 2023-05-23 |
| | | */ |
| | | public interface IDockingPreMetaAttrService extends IService<DockingPreMetaAttr> { |
| | | |
| | | |
| | | |
| | | /*** |
| | | * æé 卿¥è¯¢æ¹å¼ |
| | | * @param wrapper æ¥è¯¢å°è£
å¨ |
| | | * @return |
| | | */ |
| | | |
| | | public List<DockingPreMetaAttr> selectByWrapper(Wrapper wrapper); |
| | | /*** |
| | | * æ ¹æ®viewModelæ¥è¯¢æ¨¡åè§å¾å±æ§ |
| | | */ |
| | | List<DockingPreMetaAttrVO> selectDockingPreMetaAttrByViewModelId(String viewModelId); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.webservice.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.vci.ubcs.code.webservice.entity.DockingPreViewModel; |
| | | import com.vci.ubcs.code.webservice.vo.DockingPreViewModelVO; |
| | | |
| | | import java.util.List; |
| | | |
| | | /*** |
| | | * éå¢å类模åæå¡ |
| | | * @author xiejun |
| | | * @date 2023-05-23 |
| | | */ |
| | | public interface IDockingPreViewModelService extends IService<DockingPreViewModel> { |
| | | /** |
| | | * æ ¹æ®åç±»idæ¥è¯¢åç±»è§å¾ |
| | | * @param classifyId éå¢åç±»id |
| | | * @param isContainAttr æ¯å¦æ¥è¯¢å±æ§ï¼trueï¼ æ¯ï¼falseï¼å¦ |
| | | * @return è¿åå类模åè§å¾éå对象 |
| | | */ |
| | | List<DockingPreViewModelVO> selectDockingPreViewModelByClassId(String classifyId, boolean isContainAttr); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.webservice.service; |
| | | |
| | | |
| | | import com.vci.ubcs.starter.exception.VciBaseException; |
| | | import org.springblade.core.tool.api.R; |
| | | |
| | | /*** |
| | | * ä¸éå¢éææå¡ |
| | | * @author xiejun |
| | | */ |
| | | public interface IGroupMdmInterService { |
| | | /*** |
| | | * ä¸»æ°æ®åéå¢ç³è¯·ç¼ç |
| | | * @param oids |
| | | * @param btmName |
| | | * @return è¿åç»æä¿¡æ¯ |
| | | * @throws Throwable |
| | | */ |
| | | public R applyGroupCode(String oids, String btmName)throws Throwable; |
| | | |
| | | /*** |
| | | * ä¸»æ°æ®åé墿´æ¹ç¼ç |
| | | * @param oids éè¦ä¿®æ¹çæ°æ®ä¸»é®æ°ç» |
| | | * @param btmName ä¸å¡ç±»å |
| | | * @return è¿åç»æä¿¡æ¯ |
| | | * @throws Throwable |
| | | */ |
| | | |
| | | public R receiveEditApply(String oids, String btmName)throws Throwable; |
| | | |
| | | /*** |
| | | * æ¥è¯¢åç±»è¯¦ç»æ¨¡åè§å¾ |
| | | * @param jtclsfIdï¼éå¢åç±»oid |
| | | * @return è¿åç»æä¿¡æ¯ |
| | | * @throws Throwable |
| | | */ |
| | | public R queryClassModel(String jtclsfId)throws Throwable; |
| | | |
| | | |
| | | /*** |
| | | * æ¥è¯¢åç±»è¯¦ç»æ¨¡åè§å¾ |
| | | * @return è¿åç»æä¿¡æ¯ |
| | | * @throws Throwable |
| | | */ |
| | | public R queryMdmModel()throws Throwable; |
| | | /*** |
| | | *忥é墿¨¡åè§å¾ |
| | | * @param classifyId |
| | | * @param operationType |
| | | * @return |
| | | */ |
| | | R syncClassifyModel(String classifyId, String operationType)throws VciBaseException; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.webservice.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.vci.ubcs.code.webservice.mapper.DockingPreApplyFormMapper; |
| | | import com.vci.ubcs.code.webservice.entity.DockingPreApplyForm; |
| | | import com.vci.ubcs.code.webservice.service.IDockingPreApplyFormService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /*** |
| | | *éå¢å±æ§æ å°æå¡ |
| | | * @author xiejun |
| | | * @date 2023-05-22 |
| | | */ |
| | | @Service |
| | | public class DockingPreApplyFormServiceImpl extends ServiceImpl<DockingPreApplyFormMapper, DockingPreApplyForm> implements IDockingPreApplyFormService { |
| | | } |
ÎļþÃû´Ó Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/impl/DockingPreAttrMappingServiceImpl.java ÐÞ¸Ä |
| | |
| | | package com.vci.ubcs.code.service.impl; |
| | | package com.vci.ubcs.code.webservice.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.Wrapper; |
| | | import com.baomidou.mybatisplus.core.toolkit.CollectionUtils; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.vci.ubcs.code.entity.DockingPreAttrMapping; |
| | | import com.vci.ubcs.code.entity.DockingPreAttrRange; |
| | | import com.vci.ubcs.code.entity.DockingPreMetaAttr; |
| | | import com.vci.ubcs.code.mapper.DockingPreAttrMappingMapper; |
| | | import com.vci.ubcs.code.service.IDockingPreAttrMappingService; |
| | | import com.vci.ubcs.code.service.IDockingPreAttrRangeService; |
| | | import com.vci.ubcs.code.service.IDockingPreMetaAttrService; |
| | | import com.vci.ubcs.code.vo.pagemodel.DockingPreAttrMappingVO; |
| | | import com.vci.ubcs.code.vo.pagemodel.DockingPreAttrRangeVO; |
| | | import com.vci.ubcs.code.wrapper.DockingPreAttrMappingWrapper; |
| | | import com.vci.ubcs.code.wrapper.DockingPreAttrRangeWrapper; |
| | | import com.vci.ubcs.code.webservice.mapper.DockingPreAttrMappingMapper; |
| | | import com.vci.ubcs.code.webservice.service.IDockingPreAttrMappingService; |
| | | import com.vci.ubcs.code.webservice.service.IDockingPreAttrRangeService; |
| | | import com.vci.ubcs.code.webservice.service.IDockingPreMetaAttrService; |
| | | import com.vci.ubcs.code.webservice.vo.DokingAttributeSerchVO; |
| | | import com.vci.ubcs.code.webservice.wrapper.DockingPreAttrMappingWrapper; |
| | | import com.vci.ubcs.code.webservice.wrapper.DockingPreAttrRangeWrapper; |
| | | import com.vci.ubcs.starter.exception.VciBaseException; |
| | | import com.vci.ubcs.starter.util.DefaultAttrAssimtUtil; |
| | | import com.vci.ubcs.starter.util.MdmBtmTypeConstant; |
| | | import com.vci.ubcs.starter.web.util.VciBaseUtil; |
| | | import com.vci.ubcs.code.webservice.entity.DockingPreAttrMapping; |
| | | import com.vci.ubcs.code.webservice.entity.DockingPreAttrRange; |
| | | import com.vci.ubcs.code.webservice.entity.DockingPreMetaAttr; |
| | | import com.vci.ubcs.code.webservice.vo.DockingPreAttrMappingVO; |
| | | import com.vci.ubcs.code.webservice.vo.DockingPreAttrRangeVO; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | |
| | | */ |
| | | @Service |
| | | public class DockingPreAttrMappingServiceImpl extends ServiceImpl<DockingPreAttrMappingMapper, DockingPreAttrMapping> implements IDockingPreAttrMappingService { |
| | | |
| | | /*** |
| | | * éå¢åç±»å±æ§å±æ§æ å°é
ç½®æå¡ |
| | | */ |
| | | @Autowired(required = false) |
| | | DockingPreAttrMappingMapper dockingPreAttrMappingMapper; |
| | | private DockingPreAttrMappingMapper dockingPreAttrMappingMapper; |
| | | |
| | | /*** |
| | | * ä¸å¡æ°æ®å±æ§æå¡ |
| | | */ |
| | | //@Autowired(required = false) |
| | | //private MdmEngineService mdmEngineService; |
| | | |
| | | /*** |
| | | * éå¢å±æ§æå¡ |
| | | */ |
| | | @Autowired(required = false) |
| | | IDockingPreMetaAttrService dockingPreMetaAttrService; |
| | | private IDockingPreMetaAttrService dockingPreMetaAttrService; |
| | | /*** |
| | | * 屿§åå¼èå´æå¡ |
| | | */ |
| | | @Autowired(required = false) |
| | | IDockingPreAttrRangeService dockingPreAttrRangeService; |
| | | private IDockingPreAttrRangeService dockingPreAttrRangeService; |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /*** |
| | | * æ ¹æ®ä¸»æ°æ®å类主é®è·åå类信æ¯é
ç½® |
| | | * @param codeClassifyId |
| | | * @return |
| | | */ |
| | | @Override |
| | | public List<DockingPreAttrMappingVO> getdockingAttrMappingsByCodeclassId(String codeClassifyId) { |
| | | public List<DockingPreAttrMappingVO> getDockingAttrMappingsByCodeClassifyId(String codeClassifyId,String sourceClassifyId) { |
| | | VciBaseUtil.alertNotNull(codeClassifyId,"ä¸»æ°æ®å类主é®"); |
| | | VciBaseUtil.alertNotNull(sourceClassifyId,"éå¢å类主é®"); |
| | | //é¦å
è·åå类模æ¿å±æ§ï¼ç¶åä¸å±æ§é
ç½®åæ¯è¾ï¼ä»¥é²è¢«æå¢å 屿§çå¯è½ |
| | | List<DockingPreMetaAttr> dockingPreMetaAttrList= dockingPreMetaAttrService.selectByWrapper(Wrappers.<DockingPreMetaAttr>query().lambda().eq(DockingPreMetaAttr::getSourceClassifyId,codeClassifyId)); |
| | | List<DockingPreAttrMapping> dockingPreAttrMappings=this.selectByWrapper(Wrappers.<DockingPreAttrMapping>query().lambda().eq(DockingPreAttrMapping::getSourceClassifyId, codeClassifyId)); |
| | | List<DockingPreMetaAttr> dockingPreMetaAttrList= dockingPreMetaAttrService.selectByWrapper(Wrappers.<DockingPreMetaAttr>query().lambda().eq(DockingPreMetaAttr::getSourceClassifyId,sourceClassifyId)); |
| | | List<DockingPreAttrMapping> dockingPreAttrMappings=this.selectByWrapper(Wrappers.<DockingPreAttrMapping>query().lambda().eq(DockingPreAttrMapping::getSourceClassifyId, sourceClassifyId).eq(DockingPreAttrMapping::getTargetClassifyId, codeClassifyId)); |
| | | Map<String/**屿§ä¸»é®**/, DockingPreAttrMapping> dockingPreAttrMappingMap = dockingPreAttrMappings.stream().filter(cbo -> cbo != null).collect(Collectors.toList()).stream().collect(Collectors.toMap(s -> s.getMetaListId(), t -> t)); |
| | | |
| | | List<DockingPreAttrMapping> newDockingPreAttrMappingList=new ArrayList<>(); |
| | |
| | | if(dockingPreAttrMappingMap.containsKey(attrOid)){ |
| | | dockingPreAttrMapping= dockingPreAttrMappingMap.get(attrOid); |
| | | }else{ |
| | | DefaultAttrAssimtUtil.addDefaultAttrAssimt(dockingPreAttrMapping, MdmBtmTypeConstant.DOCKING_PRE_JAPPLYFORM); |
| | | dockingPreAttrMapping.setMetaListId(dockingPreMetaAttr.getOid());//屿§ä¸»é® |
| | | dockingPreAttrMapping.setSourceAttrKey(dockingPreMetaAttr.getEnglishName());//è±æåç§° |
| | | dockingPreAttrMapping.setSourceAttrName(dockingPreMetaAttr.getChineseName());//䏿åç§° |
| | |
| | | } |
| | | }); |
| | | //å°å±æ§åå¼èå´è½¬ææ°æ®æä¹
å±å¯¹è±¡ |
| | | newDockingPreAttrRangeList=DockingPreAttrRangeWrapper.build().voentitys(newDockingPreAttrRangeVOList); |
| | | newDockingPreAttrRangeList= DockingPreAttrRangeWrapper.build().voentitys(newDockingPreAttrRangeVOList); |
| | | //å°å±æ§æ å°é
置信æ¯è½¬æ¢ä¸ºéè¦æ°æ®æä¹
å±ä¿åç对象 |
| | | newDockingPreAttrMapping=DockingPreAttrMappingWrapper.build().voentitys(dockingPreAttrMappingVOList); |
| | | newDockingPreAttrMapping= DockingPreAttrMappingWrapper.build().voentitys(dockingPreAttrMappingVOList); |
| | | |
| | | List<DockingPreAttrRange> oldDockingPreAttrRangeList=new ArrayList<>(); |
| | | if(!org.springframework.util.CollectionUtils.isEmpty(attrIdList)) { |
| | |
| | | } |
| | | |
| | | /*** |
| | | * æ ¹æ®ä¸»æ°æ®oidæ£æµæ¯å¦å±æ§æ å°é
ç½® |
| | | * @param targetClassifyId |
| | | * @param sourceClassifyId |
| | | * @return |
| | | * @throws Exception |
| | | */ |
| | | @Override |
| | | public boolean checkHasConfigByTragetCodeclassifyId(String targetClassifyId,String sourceClassifyId){ |
| | | Long count =0L; |
| | | try { |
| | | count = dockingPreAttrMappingMapper.selectCount(Wrappers.<DockingPreAttrMapping>query().lambda().eq(DockingPreAttrMapping::getTargetClassifyId, targetClassifyId).eq(DockingPreAttrMapping::getSourceClassifyId,sourceClassifyId)); |
| | | }catch (Throwable e){ |
| | | e.printStackTrace();; |
| | | } finally { |
| | | return count>0?true:false; |
| | | } |
| | | } |
| | | |
| | | @Override |
| | | public R search(DokingAttributeSerchVO dokingAttributeSerchVO) { |
| | | return null; |
| | | } |
| | | |
| | | |
| | | /*** |
| | | * å¯¹è±¡è½¬æ¢ |
| | | * @param dockingPreAttrMappings |
| | | * @return |
| | |
| | | } |
| | | return dockingPreAttrMappingVOList; |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.webservice.service.impl; |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.Wrapper; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.vci.ubcs.code.webservice.mapper.DockingPreAttrRangeMapper; |
| | | import com.vci.ubcs.code.webservice.service.IDockingPreAttrRangeService; |
| | | import com.vci.ubcs.code.webservice.wrapper.DockingPreAttrRangeWrapper; |
| | | import com.vci.ubcs.code.webservice.entity.DockingPreAttrRange; |
| | | import com.vci.ubcs.code.webservice.vo.DockingPreAttrRangeVO; |
| | | import com.vci.ubcs.starter.web.util.VciBaseUtil; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | |
| | | /*** |
| | | *éå¢å±æ§åå¼èå´æå¡ |
| | | * @author xiejun |
| | | * @date 2023-05-22 |
| | | */ |
| | | @Service |
| | | @Slf4j |
| | | public class DockingPreAttrRangeServiceImpl extends ServiceImpl<DockingPreAttrRangeMapper, DockingPreAttrRange> implements IDockingPreAttrRangeService { |
| | | @Autowired(required = false) |
| | | DockingPreAttrRangeMapper dockingPreAttrRangeMapper; |
| | | |
| | | /*** |
| | | * æ ¹æ®éå¢å±æ§ä¸»é®æ¥è¯¢å
¶åå¼èå´ |
| | | * @param meatId |
| | | * @return |
| | | */ |
| | | @Override |
| | | public List<DockingPreAttrRangeVO> getDockingPreAttrRangesByMetaId(String meatId) { |
| | | log.info("æ¥è¯¢éå¢å±æ§->"+meatId+"åå¼èå´start"); |
| | | VciBaseUtil.alertNotNull(meatId,"屿§ä¸»é®"); |
| | | List<DockingPreAttrRange> dockingPreAttrMappings=this.selectByWrapper(Wrappers.<DockingPreAttrRange>query().lambda().eq(DockingPreAttrRange::getMetaListId, meatId)); |
| | | log.info("æ¥è¯¢éå¢å±æ§->"+meatId+"åå¼èå´end"); |
| | | return DockingPreAttrRangeWrapper.build().entityVOs(dockingPreAttrMappings); |
| | | |
| | | } |
| | | |
| | | /**** |
| | | * æé 卿¥è¯¢æ¹å¼ |
| | | * @param wrapper æ¥è¯¢å°è£
å¨ |
| | | * @return |
| | | */ |
| | | @Override |
| | | public List<DockingPreAttrRange> selectByWrapper(Wrapper wrapper) { |
| | | return dockingPreAttrRangeMapper.selectList(wrapper); |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.webservice.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.vci.ubcs.code.webservice.mapper.DockingPreClassifyMapper; |
| | | import com.vci.ubcs.code.webservice.service.IDockingPreApplyFormService; |
| | | import com.vci.ubcs.code.webservice.service.IDockingPreAttrMappingService; |
| | | import com.vci.ubcs.code.webservice.service.IDockingPreClassifyService; |
| | | import com.vci.ubcs.code.webservice.service.IDockingPreViewModelService; |
| | | import com.vci.ubcs.code.webservice.wrapper.DockingPreClassifyWrapper; |
| | | import com.vci.ubcs.starter.revision.model.TreeQueryObject; |
| | | import com.vci.ubcs.starter.revision.model.TreeWrapperOptions; |
| | | import com.vci.ubcs.starter.revision.service.RevisionModelUtil; |
| | | import com.vci.ubcs.starter.util.MdmBtmTypeConstant; |
| | | import com.vci.ubcs.starter.web.pagemodel.Tree; |
| | | import com.vci.ubcs.code.webservice.entity.DockingPreClassify; |
| | | import com.vci.ubcs.code.webservice.vo.DockingPreClassifyVO; |
| | | import com.vci.ubcs.code.webservice.vo.DockingPreViewModelVO; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.*; |
| | | |
| | | |
| | | /** |
| | | * éå¢åç±»ä¸å¡æå¡ |
| | | * @author xiejun |
| | | * @date 2023-05-23 |
| | | */ |
| | | @Service |
| | | @Slf4j |
| | | public class DockingPreClassifyServiceImpl extends ServiceImpl<DockingPreClassifyMapper, DockingPreClassify> implements IDockingPreClassifyService { |
| | | /** |
| | | * ä¸çº§èç¹ç屿§åç§° |
| | | */ |
| | | public static final String PARENT_FIELD_NAME = "pid"; |
| | | /*** |
| | | * éå¢åç±»å±æ§ |
| | | */ |
| | | @Resource |
| | | private DockingPreClassifyMapper dockingPreClassifyMapper; |
| | | |
| | | /*** |
| | | * éå¢åç±»å±æ§ |
| | | */ |
| | | @Resource |
| | | private IDockingPreViewModelService dockingPreViewModelService; |
| | | |
| | | |
| | | /*** |
| | | *éå¢éæé
ç½®æå¡ |
| | | */ |
| | | @Resource |
| | | private IDockingPreAttrMappingService dockingPreAttrMappingService; |
| | | |
| | | |
| | | /** |
| | | * 对象çæä½ |
| | | */ |
| | | @Resource |
| | | private RevisionModelUtil revisionModelUtil; |
| | | /*** |
| | | * éå¢åç±»æ å¯¹è±¡æ¥ |
| | | *@param treeQueryObject éå¢åç±»æ¥è¯¢å¯¹è±¡ |
| | | *@return è¿ååç±»æ 对象 |
| | | */ |
| | | @Override |
| | | public List<Tree> treeCompanyGroupClassify(TreeQueryObject treeQueryObject) { |
| | | log.info("è·åéå¢åç±»æ start..."); |
| | | |
| | | Map<String,String> conditionMap= treeQueryObject.getConditionMap(); |
| | | if(conditionMap==null){ |
| | | conditionMap=new HashMap<>(); |
| | | } |
| | | TreeWrapperOptions treeWrapperOptions = new TreeWrapperOptions(PARENT_FIELD_NAME.toLowerCase(Locale.ROOT)); |
| | | treeWrapperOptions.copyFromTreeQuery(treeQueryObject); |
| | | List<DockingPreClassifyVO> dockingPreClassifyVOS= getCompanyGourpClassByParentId(treeQueryObject.getParentOid(),true); |
| | | List<Tree> tree= revisionModelUtil.doList2Trees(dockingPreClassifyVOS,treeWrapperOptions,(DockingPreClassifyVO s) ->{ |
| | | //å¯ä»¥å¨è¿éå¤çæ èç¹çæ¾ç¤º |
| | | return s.getId() + " " + s.getName();//(FrameworkDataLCStatus.DISABLED.getValue().equalsIgnoreCase(s.getLcStatus()) ? (" ãåç¨ã ") : ""); |
| | | }); |
| | | |
| | | setTreeConig(tree,conditionMap); |
| | | log.info("è·åéå¢åç±»æ end..."); |
| | | return tree; |
| | | } |
| | | private void setTreeConig(List<Tree> tree,Map<String,String >conditionMap){ |
| | | boolean checkHasChild=false; |
| | | Iterator var6 = tree.listIterator(); |
| | | while(var6.hasNext()){ |
| | | Tree trees = (Tree) var6.next(); |
| | | List<Tree> childrenList=trees.getChildren(); |
| | | if(childrenList.size()>0){ |
| | | checkHasChild=true; |
| | | } |
| | | boolean checkHas=false; |
| | | //妿䏿¡ä»¶ä¼ è¿æ¥çå¼å¹é
çä¸å设置为éä¸ |
| | | if(conditionMap.containsKey(MdmBtmTypeConstant.CODE_CLASSIFY_OID_FIELD)){ |
| | | String codeClassifyId=conditionMap.get(MdmBtmTypeConstant.CODE_CLASSIFY_OID_FIELD); |
| | | checkHas = dockingPreAttrMappingService.checkHasConfigByTragetCodeclassifyId(codeClassifyId, trees.getOid()); |
| | | } |
| | | if (checkHas) { |
| | | trees.setChecked(true); |
| | | } |
| | | if(checkHasChild){ |
| | | trees.setLeaf(false); |
| | | }else{ |
| | | trees.setLeaf(true); |
| | | } |
| | | if(checkHasChild) { |
| | | setTreeConig(childrenList,conditionMap); |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | /*** |
| | | * æ ¹æ®ç¶åç±»idæ¥è¯¢å±çº§æ æ°æ®å¯¹è±¡éå |
| | | * @param pid éå¢åç±»çoid |
| | | * @return è¿åå±çº§æ æ°æ®å¯¹è±¡éå |
| | | */ |
| | | private List<DockingPreClassifyVO> getCompanyGourpClassByParentId(String pid,boolean isContainView){ |
| | | log.info("æ ¹æ®ç¶åç±»pid->"+pid+"æ¥è¯¢å±çº§æ æ°æ®å¯¹è±¡éåstart..."); |
| | | List<DockingPreClassify> doList =dockingPreClassifyMapper.selectCompanyGroupClassifyVOByTree(pid); |
| | | List<DockingPreClassifyVO>dockingPreClassifyVOS= DockingPreClassifyWrapper.build().entityVOs(doList); |
| | | if(isContainView){ |
| | | dockingPreClassifyVOS.stream().forEach(dockingPreClassifyVO -> { |
| | | List<DockingPreViewModelVO> dockingViewVOS= dockingPreViewModelService.selectDockingPreViewModelByClassId(dockingPreClassifyVO.getOid(),isContainView); |
| | | dockingPreClassifyVO.setDockingPreViewModelVOList(dockingViewVOS); |
| | | }); |
| | | } |
| | | log.info("æ ¹æ®ç¶åç±»pid->"+pid+"æ¥è¯¢å±çº§æ æ°æ®å¯¹è±¡éåend..."); |
| | | return dockingPreClassifyVOS; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.webservice.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.Wrapper; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.vci.ubcs.code.webservice.mapper.DockingPreMetaAttrMapper; |
| | | import com.vci.ubcs.code.webservice.service.IDockingPreMetaAttrService; |
| | | import com.vci.ubcs.code.webservice.wrapper.DockingPreMetaAttrWrapper; |
| | | import com.vci.ubcs.code.webservice.entity.DockingPreMetaAttr; |
| | | import com.vci.ubcs.code.webservice.vo.DockingPreMetaAttrVO; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | |
| | | /*** |
| | | * éå¢å±æ§æå¡ |
| | | * @author xiejun |
| | | * @date 2023-05-23 |
| | | */ |
| | | @Service |
| | | @Slf4j |
| | | public class DockingPreMetaAttrServiceImpl extends ServiceImpl<DockingPreMetaAttrMapper, DockingPreMetaAttr> implements IDockingPreMetaAttrService { |
| | | |
| | | @Autowired(required = false) |
| | | DockingPreMetaAttrMapper dockingPreMetaAttrMapper; |
| | | |
| | | @Override |
| | | public List<DockingPreMetaAttr> selectByWrapper(Wrapper wrapper) { |
| | | return dockingPreMetaAttrMapper.selectList(wrapper); |
| | | } |
| | | |
| | | /*** |
| | | * æ ¹æ®æ¨¡åè§å¾oidæ¥è¯¢æ°æ® |
| | | * @param viewModelId |
| | | * @return è¿å屿§å¯¹è±¡ |
| | | */ |
| | | @Override |
| | | public List<DockingPreMetaAttrVO> selectDockingPreMetaAttrByViewModelId(String viewModelId) { |
| | | log.info("æ ¹æ®æ¨¡åè§å¾oid"+viewModelId+"æ¥è¯¢æ°æ® star"); |
| | | List<DockingPreMetaAttr> dockingPreMetaAttrList= selectByWrapper(Wrappers.<DockingPreMetaAttr>query().lambda().eq(DockingPreMetaAttr::getViewModelId,viewModelId)); |
| | | List<DockingPreMetaAttrVO> dockingPreMetaAttrVOList= DockingPreMetaAttrWrapper.build().entityVOs(dockingPreMetaAttrList); |
| | | log.info("æ ¹æ®æ¨¡åè§å¾oid"+viewModelId+"æ¥è¯¢æ°æ® end"); |
| | | return dockingPreMetaAttrVOList; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.webservice.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.toolkit.CollectionUtils; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.vci.ubcs.code.webservice.mapper.DockingPreViewModelMapper; |
| | | import com.vci.ubcs.code.webservice.service.IDockingPreMetaAttrService; |
| | | import com.vci.ubcs.code.webservice.service.IDockingPreViewModelService; |
| | | import com.vci.ubcs.code.webservice.wrapper.DockingPreMetaAttrWrapper; |
| | | import com.vci.ubcs.code.webservice.wrapper.DockingPreViewWrapper; |
| | | import com.vci.ubcs.starter.web.util.VciBaseUtil; |
| | | import com.vci.ubcs.code.webservice.entity.DockingPreMetaAttr; |
| | | import com.vci.ubcs.code.webservice.entity.DockingPreViewModel; |
| | | import com.vci.ubcs.code.webservice.vo.DockingPreMetaAttrVO; |
| | | import com.vci.ubcs.code.webservice.vo.DockingPreViewModelVO; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | | |
| | | /*** |
| | | * é墿¨¡åæå¡ |
| | | * @author xiejun |
| | | * @date 2023-05-23 |
| | | */ |
| | | @Service |
| | | @Slf4j |
| | | public class DockingPreViewModelServiceImpl extends ServiceImpl<DockingPreViewModelMapper,DockingPreViewModel> implements IDockingPreViewModelService { |
| | | |
| | | /*** |
| | | * éå¢åç±»å±æ§ |
| | | */ |
| | | @Resource |
| | | private DockingPreViewModelMapper dockingPreViewModelMapper; |
| | | |
| | | |
| | | /*** |
| | | * éå¢åç±»å±æ§æ¥è¯¢æå¡ |
| | | */ |
| | | @Resource |
| | | private IDockingPreMetaAttrService dockingPreMetaAttrService; |
| | | |
| | | /** |
| | | * æ ¹æ®åç±»idæ¥è¯¢åç±»è§å¾ |
| | | * @param classifyId éå¢åç±»id |
| | | * @param isContainAttr æ¯å¦æ¥è¯¢å±æ§ï¼trueï¼ æ¯ï¼falseï¼å¦ |
| | | * @return è¿åå类模åè§å¾éå对象 |
| | | */ |
| | | @Override |
| | | public List<DockingPreViewModelVO> selectDockingPreViewModelByClassId(String classifyId, boolean isContainAttr) { |
| | | log.info("æ ¹æ®åç±»id->"+classifyId+",æ¥è¯¢åç±»è§å¾statr"); |
| | | VciBaseUtil.alertNotNull(classifyId,"éå¢å类主é®"); |
| | | List<DockingPreViewModel> dockingPreViewModels= dockingPreViewModelMapper.selectList(Wrappers.<DockingPreViewModel>query().lambda().eq(DockingPreViewModel::getSourceClassifyId,classifyId)); |
| | | List<DockingPreViewModelVO> dockingPreViewModelVOS= DockingPreViewWrapper.build().entityVOs(dockingPreViewModels); |
| | | if(isContainAttr) { |
| | | dockingPreViewModelVOS.stream().forEach(dockingPreViewModelVO -> { |
| | | String viewModelVOOid=dockingPreViewModelVO.getOid(); |
| | | String sourceClassifyId=dockingPreViewModelVO.getSourceClassifyId(); |
| | | List<DockingPreMetaAttr> dockingPreMetaAttrList=dockingPreMetaAttrService.selectByWrapper(Wrappers.<DockingPreMetaAttr>query().lambda().eq(DockingPreMetaAttr::getSourceClassifyId,sourceClassifyId).eq(DockingPreMetaAttr::getViewModelId,viewModelVOOid)); |
| | | List<DockingPreMetaAttrVO> dockingPreMetaAttrVOList= DockingPreMetaAttrWrapper.build().entityVOs(dockingPreMetaAttrList); |
| | | if(!CollectionUtils.isEmpty(dockingPreMetaAttrVOList)) { |
| | | dockingPreViewModelVO.setDockingPreMetaAttrVOList(dockingPreMetaAttrVOList); |
| | | } |
| | | }); |
| | | } |
| | | log.info("æ ¹æ®åç±»id->"+classifyId+",æ¥è¯¢åç±»è§å¾end"); |
| | | return dockingPreViewModelVOS; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.webservice.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.toolkit.CollectionUtils; |
| | | import com.baomidou.mybatisplus.core.toolkit.StringUtils; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.fasterxml.jackson.core.JsonProcessingException; |
| | | import com.fasterxml.jackson.databind.ObjectMapper; |
| | | import com.vci.ubcs.code.webservice.entity.*; |
| | | import com.vci.ubcs.code.webservice.vo.*; |
| | | import com.vci.ubcs.starter.util.MdmBtmTypeConstant; |
| | | import com.vci.ubcs.code.webservice.feign.MdmApplyGroupCodeProvider; |
| | | import com.vci.ubcs.code.webservice.mapper.DockingPreAttrMappingMapper; |
| | | import com.vci.ubcs.code.webservice.service.*; |
| | | import com.vci.ubcs.starter.exception.VciBaseException; |
| | | import com.vci.ubcs.starter.revision.model.BaseModel; |
| | | import com.vci.ubcs.starter.util.DefaultAttrAssimtUtil; |
| | | import com.vci.ubcs.starter.web.util.BeanUtilForVCI; |
| | | import com.vci.ubcs.starter.web.util.VciBaseUtil; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springblade.core.secure.utils.AuthUtil; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import java.text.ParseException; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.*; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /*** |
| | | * ä¸éå¢éææå¡ |
| | | * @author xiejun |
| | | * @date 2023-05-26 |
| | | */ |
| | | @Service |
| | | @Slf4j |
| | | public class GroupMdmInterServiceImpl implements IGroupMdmInterService { |
| | | |
| | | private String code=""; |
| | | |
| | | private String msg=""; |
| | | |
| | | |
| | | @Value("${docking.apply.unitCode:41000}") |
| | | public String dockingApplyUnitCode; |
| | | |
| | | @Value("${docking.apply.sysName:410-MDM}") |
| | | public String dockingApplySysName; |
| | | |
| | | @Autowired(required = false) |
| | | private MdmApplyGroupCodeProvider mdmApplyGroupCodeProvider; |
| | | /*** |
| | | * éå¢åç±»æå¡ |
| | | */ |
| | | @Autowired(required = false) |
| | | private IDockingPreClassifyService dockingPreClassifyService; |
| | | |
| | | /*** |
| | | * ç³è¯·åæå¡ |
| | | */ |
| | | @Autowired(required = false) |
| | | private IDockingPreApplyFormService dockingPreApplyFormService; |
| | | |
| | | |
| | | /*** |
| | | * 模åè§å¾åæå¡ |
| | | */ |
| | | @Autowired(required = false) |
| | | private IDockingPreViewModelService dockingPreViewModelService; |
| | | |
| | | |
| | | /*** |
| | | * éå¢åç±»å±æ§å±æ§æ å°é
ç½®æå¡ |
| | | */ |
| | | @Autowired(required = false) |
| | | private DockingPreAttrMappingMapper dockingPreAttrMappingMapper; |
| | | /*** |
| | | * 屿§åå¼èå´æå¡ |
| | | */ |
| | | @Autowired(required = false) |
| | | private IDockingPreAttrRangeService dockingPreAttrRangeService; |
| | | |
| | | |
| | | /*** |
| | | * éå¢å±æ§æå¡ |
| | | */ |
| | | @Autowired(required = false) |
| | | private IDockingPreMetaAttrService dockingPreMetaAttrService; |
| | | /*** |
| | | * ä¸»æ°æ®åéå¢ç³è¯·ç¼ç |
| | | * @param oids éè¦ç³è¯·çæ°æ®ä¸»é®æ°ç» |
| | | * @param btmName ä¸å¡ç±»å |
| | | * @return è¿åç»æä¿¡æ¯ |
| | | * @throws Exception |
| | | */ |
| | | @Transactional(rollbackFor = VciBaseException.class) |
| | | @Override |
| | | public R applyGroupCode(String oids, String btmName) throws VciBaseException { |
| | | try { |
| | | List<BaseModel> updateCbos = new ArrayList<BaseModel>(); |
| | | |
| | | List<DockingPreApplyForm> dockingPreAttrMappings = new ArrayList<>(); |
| | | VciBaseUtil.alertNotNull(oids, "éæ©çæ°æ®"); |
| | | VciBaseUtil.alertNotNull(btmName, "ä¸å¡ç±»å"); |
| | | //List<BaseModelVO> codeWupins=mdmEngineService.listByIds(VciBaseUtil.str2List(oids)); |
| | | List<BaseModelVO> dataModelList = new ArrayList<>(); |
| | | if (!CollectionUtils.isEmpty(dataModelList)) { |
| | | DockingGroupDataVO dockingGroupDataVO = new DockingGroupDataVO(); |
| | | //ç³è¯·ååç³è¯·å对象å
³ç³» |
| | | Map<String, DockingPreApplyForm> addDockingPreApplyFormMap = new HashMap<String, DockingPreApplyForm>(); |
| | | Map<String, DockingPreApplyForm> editDockingPreApplyFormMap = new HashMap<String, DockingPreApplyForm>(); |
| | | Map<String, BaseModelVO> baseModelVOMap = new HashMap<String, BaseModelVO>(); |
| | | //ç»ç»æ°æ® |
| | | dockingGroupDataVO = queryApplycodeDataObjects(1, dataModelList, addDockingPreApplyFormMap, editDockingPreApplyFormMap, baseModelVOMap); |
| | | DockingResultVO resultDataObject = mdmApplyGroupCodeProvider.receiveAddApply(dockingGroupDataVO); |
| | | code = resultDataObject.getCode(); |
| | | msg = resultDataObject.getMsg(); |
| | | if ("1".equals(resultDataObject.getCode())) {//ç»ææ£ç¡®çæ
åµ |
| | | List<DockingDataVO> dataObjectVOList = resultDataObject.getData(); |
| | | dataObjectVOList.stream().forEach(dataObject -> { |
| | | boolean isEditDatas = false; |
| | | String code2 = dataObject.getCode(); |
| | | DockingMainDataVO data2 = dataObject.getData(); |
| | | String applyId = data2.getApplyId();//ç³è¯·åid |
| | | String customCoding = StringUtils.isBlank(data2.getCustomCoding()) ? "" : data2.getCustomCoding();//éå¢ç 段 |
| | | msg = dataObject.getMsg(); |
| | | if (code2.equals("1")) {//ç»ææ£ç¡®çæ
åµ |
| | | if (!"".equals(customCoding)) { |
| | | isEditDatas = true; |
| | | } |
| | | } |
| | | //éè¦ä¿®æ¹çç³è¯·åæ°æ® |
| | | if (editDockingPreApplyFormMap.containsKey(applyId)) { |
| | | DockingPreApplyForm dockingPreApplyForm = editDockingPreApplyFormMap.get(applyId); |
| | | dockingPreApplyForm.setCode(code2); |
| | | dockingPreApplyForm.setMsg("ç³è¯·ï¼" + msg); |
| | | dockingPreApplyForm.setGroupCode(customCoding); |
| | | ObjectMapper mp = new ObjectMapper(); |
| | | String writeValueAsString = null; |
| | | try { |
| | | writeValueAsString = mp.writeValueAsString(dataObject); |
| | | dockingPreApplyForm.setContent(writeValueAsString); |
| | | } catch (JsonProcessingException e) { |
| | | } |
| | | } |
| | | //æ°å¢çç³è¯·åæ°æ® |
| | | if (addDockingPreApplyFormMap.containsKey(applyId)) { |
| | | DockingPreApplyForm dockingPreApplyForm = addDockingPreApplyFormMap.get(applyId); |
| | | dockingPreApplyForm.setCode(code2); |
| | | dockingPreApplyForm.setMsg("ç³è¯·ï¼" + msg); |
| | | dockingPreApplyForm.setGroupCode(customCoding); |
| | | ObjectMapper mp = new ObjectMapper(); |
| | | String writeValueAsString = null; |
| | | try { |
| | | writeValueAsString = mp.writeValueAsString(dataObject); |
| | | dockingPreApplyForm.setContent(writeValueAsString); |
| | | } catch (JsonProcessingException e) { |
| | | } |
| | | } |
| | | //妿æéå¢ç åæ´æ°æ°æ® |
| | | if (isEditDatas) { |
| | | if (baseModelVOMap.containsKey(applyId)) { |
| | | BaseModelVO baseModelVO = baseModelVOMap.get(applyId); |
| | | BaseModel baseModel = new BaseModel(); |
| | | BeanUtilForVCI.copyDeclaredIgnoreCase(baseModelVO, baseModel); |
| | | DefaultAttrAssimtUtil.updateDefaultAttrAssimt(baseModel); |
| | | DefaultAttrAssimtUtil.updateDefaultAttrAssimt(baseModel); |
| | | baseModelVO.setId(customCoding); |
| | | updateCbos.add(baseModel);//æ´æ°æ°æ®éå¢code |
| | | } |
| | | } |
| | | }); |
| | | } else { |
| | | editDockingPreApplyFormMap.forEach((key, dockingPreApplyForm) -> { |
| | | dockingPreApplyForm.setCode("2"); |
| | | dockingPreApplyForm.setMsg("ç³è¯·ï¼" + msg); |
| | | dockingPreApplyForm.setContent(""); |
| | | dockingPreApplyForm.setGroupCode(""); |
| | | DefaultAttrAssimtUtil.updateDefaultAttrAssimt(dockingPreApplyForm); |
| | | }); |
| | | addDockingPreApplyFormMap.forEach((key, dockingPreApplyForm) -> { |
| | | dockingPreApplyForm.setCode("2"); |
| | | dockingPreApplyForm.setMsg("ç³è¯·ï¼" + msg); |
| | | dockingPreApplyForm.setContent(""); |
| | | dockingPreApplyForm.setGroupCode(""); |
| | | DefaultAttrAssimtUtil.addDefaultAttrAssimt(dockingPreApplyForm, MdmBtmTypeConstant.DOCKING_PRE_JAPPLYFORM); |
| | | }); |
| | | } |
| | | if (editDockingPreApplyFormMap.size() > 0) { |
| | | dockingPreAttrMappings.addAll(editDockingPreApplyFormMap.values());//æ·»å ç³è¯·åæ°æ® |
| | | } |
| | | if (addDockingPreApplyFormMap.size() > 0) { |
| | | dockingPreAttrMappings.addAll(addDockingPreApplyFormMap.values());//éè¦ä¿®æ¹çç³è¯·åæ°æ® |
| | | } |
| | | //ä¿åè¡¨åæ°æ® |
| | | dockingPreApplyFormService.saveOrUpdateBatch(dockingPreAttrMappings); |
| | | //mdmEngineService.saveBatch(updateCbos);//ä¿åæ°æ® |
| | | } |
| | | return R.success("ç³è¯·æ¥å£è°ç¨æå"); |
| | | }catch (VciBaseException e){ |
| | | return R.success("ç³è¯·æ¥å£è°ç¨æå"+e); |
| | | } |
| | | } |
| | | |
| | | /*** |
| | | * ä¸»æ°æ®åé墿´æ¹ç¼ç |
| | | * @param oids éè¦ä¿®æ¹çæ°æ®ä¸»é®æ°ç» |
| | | * @param btmName ä¸å¡ç±»å |
| | | * @return è¿åç»æä¿¡æ¯ |
| | | * @throws Throwable |
| | | */ |
| | | @Transactional(rollbackFor = VciBaseException.class) |
| | | @Override |
| | | public R receiveEditApply(String oids, String btmName) throws VciBaseException { |
| | | List<BaseModel> updateCbos=new ArrayList<BaseModel>(); |
| | | List<DockingPreApplyForm> dockingPreAttrMappings=new ArrayList<>(); |
| | | VciBaseUtil.alertNotNull(oids,"éæ©çæ°æ®"); |
| | | VciBaseUtil.alertNotNull(btmName,"ä¸å¡ç±»å"); |
| | | //List<BaseModelVO> codeWupins=mdmEngineService.listByIds(VciBaseUtil.str2List(oids)); |
| | | List<BaseModelVO> dataModelList = new ArrayList<>(); |
| | | try { |
| | | if (!CollectionUtils.isEmpty(dataModelList)) { |
| | | DockingGroupDataVO dockingGroupDataVO = new DockingGroupDataVO(); |
| | | //ç³è¯·ååç³è¯·å对象å
³ç³» |
| | | Map<String, DockingPreApplyForm> addDockingPreApplyFormMap = new HashMap<String, DockingPreApplyForm>(); |
| | | Map<String, DockingPreApplyForm> editDockingPreApplyFormMap = new HashMap<String, DockingPreApplyForm>(); |
| | | Map<String, BaseModelVO> baseModelVOMap = new HashMap<String, BaseModelVO>(); |
| | | //ç»ç»æ°æ® |
| | | dockingGroupDataVO = queryApplycodeDataObjects(2, dataModelList, addDockingPreApplyFormMap, editDockingPreApplyFormMap, baseModelVOMap); |
| | | DockingResultVO resultDataObject = mdmApplyGroupCodeProvider.receiveEditApply(dockingGroupDataVO); |
| | | code = resultDataObject.getCode(); |
| | | msg = resultDataObject.getMsg(); |
| | | if ("1".equals(resultDataObject.getCode())) {//ç»ææ£ç¡®çæ
åµ |
| | | List<DockingDataVO> dataObjectVOList = resultDataObject.getData(); |
| | | dataObjectVOList.stream().forEach(dataObject -> { |
| | | boolean isEditDatas = false; |
| | | String code2 = dataObject.getCode(); |
| | | DockingMainDataVO data2 = dataObject.getData(); |
| | | String applyId = data2.getApplyId();//ç³è¯·åid |
| | | String customCoding = StringUtils.isBlank(data2.getCustomCoding()) ? "" : data2.getCustomCoding();//éå¢ç 段 |
| | | msg = dataObject.getMsg(); |
| | | if (code2.equals("1")) {//ç»ææ£ç¡®çæ
åµ |
| | | if (!"".equals(customCoding)) { |
| | | isEditDatas = true; |
| | | } |
| | | } |
| | | //éè¦ä¿®æ¹çç³è¯·åæ°æ® |
| | | if (editDockingPreApplyFormMap.containsKey(applyId)) { |
| | | DockingPreApplyForm dockingPreApplyForm = editDockingPreApplyFormMap.get(applyId); |
| | | dockingPreApplyForm.setCode(code2); |
| | | dockingPreApplyForm.setMsg("ä¿®æ¹ï¼" + msg); |
| | | dockingPreApplyForm.setGroupCode(customCoding); |
| | | ObjectMapper mp = new ObjectMapper(); |
| | | String writeValueAsString = null; |
| | | try { |
| | | writeValueAsString = mp.writeValueAsString(dataObject); |
| | | dockingPreApplyForm.setContent(writeValueAsString); |
| | | } catch (JsonProcessingException e) { |
| | | } |
| | | } |
| | | //æ°å¢çç³è¯·åæ°æ® |
| | | if (addDockingPreApplyFormMap.containsKey(applyId)) { |
| | | DockingPreApplyForm dockingPreApplyForm = addDockingPreApplyFormMap.get(applyId); |
| | | dockingPreApplyForm.setCode(code2); |
| | | dockingPreApplyForm.setMsg("ä¿®æ¹ï¼" + msg); |
| | | dockingPreApplyForm.setGroupCode(customCoding); |
| | | ObjectMapper mp = new ObjectMapper(); |
| | | String writeValueAsString = null; |
| | | try { |
| | | writeValueAsString = mp.writeValueAsString(dataObject); |
| | | dockingPreApplyForm.setContent(writeValueAsString); |
| | | } catch (JsonProcessingException e) { |
| | | } |
| | | } |
| | | //妿æéå¢ç åæ´æ°æ°æ® |
| | | if (isEditDatas) { |
| | | if (baseModelVOMap.containsKey(applyId)) { |
| | | BaseModelVO baseModelVO = baseModelVOMap.get(applyId); |
| | | BaseModel baseModel = new BaseModel(); |
| | | BeanUtilForVCI.copyDeclaredIgnoreCase(baseModelVO, baseModel); |
| | | DefaultAttrAssimtUtil.updateDefaultAttrAssimt(baseModel); |
| | | DefaultAttrAssimtUtil.updateDefaultAttrAssimt(baseModel); |
| | | baseModelVO.setId(customCoding); |
| | | updateCbos.add(baseModel);//æ´æ°æ°æ®éå¢code |
| | | } |
| | | } |
| | | }); |
| | | } else { |
| | | editDockingPreApplyFormMap.forEach((key, dockingPreApplyForm) -> { |
| | | dockingPreApplyForm.setCode("2"); |
| | | dockingPreApplyForm.setMsg("ä¿®æ¹ï¼" + msg); |
| | | dockingPreApplyForm.setContent(""); |
| | | dockingPreApplyForm.setGroupCode(""); |
| | | DefaultAttrAssimtUtil.updateDefaultAttrAssimt(dockingPreApplyForm); |
| | | }); |
| | | addDockingPreApplyFormMap.forEach((key, dockingPreApplyForm) -> { |
| | | dockingPreApplyForm.setCode("2"); |
| | | dockingPreApplyForm.setMsg("ä¿®æ¹ï¼" + msg); |
| | | dockingPreApplyForm.setContent(""); |
| | | dockingPreApplyForm.setGroupCode(""); |
| | | DefaultAttrAssimtUtil.addDefaultAttrAssimt(dockingPreApplyForm, MdmBtmTypeConstant.DOCKING_PRE_JAPPLYFORM); |
| | | }); |
| | | } |
| | | if (editDockingPreApplyFormMap.size() > 0) { |
| | | dockingPreAttrMappings.addAll(editDockingPreApplyFormMap.values());//æ·»å ç³è¯·åæ°æ® |
| | | } |
| | | if (addDockingPreApplyFormMap.size() > 0) { |
| | | dockingPreAttrMappings.addAll(addDockingPreApplyFormMap.values());//éè¦ä¿®æ¹çç³è¯·åæ°æ® |
| | | } |
| | | //ä¿åè¡¨åæ°æ® |
| | | dockingPreApplyFormService.saveOrUpdateBatch(dockingPreAttrMappings); |
| | | //mdmEngineService.saveBatch(updateCbos);//ä¿åæ°æ® |
| | | } |
| | | return R.success("ç³è¯·æ¥å£è°ç¨æå"); |
| | | }catch (VciBaseException e){ |
| | | return R.fail("ç³è¯·æ¥å£è°ç¨å¤±è´¥"+e.getMessage()); |
| | | } |
| | | } |
| | | |
| | | /*** |
| | | * è·åé墿¨¡å详ç»ä¿¡æ¯æ§è¡ä¿å |
| | | * @param groupClassifyId |
| | | * @return |
| | | * @throws VciBaseException |
| | | */ |
| | | @Override |
| | | public R queryClassModel(String groupClassifyId) throws Throwable { |
| | | log.info("è·åé墿¨¡å详ç»ä¿¡æ¯æ§è¡ä¿åstart"); |
| | | String message="æ§è¡æåï¼"; |
| | | try { |
| | | if (StringUtils.isBlank(groupClassifyId)) { |
| | | message = "åæ°ï¼éå¢å类主é®ï¼ä¸ºç©º!"; |
| | | log.info(message); |
| | | throw new Throwable(message); |
| | | } |
| | | if (StringUtils.isBlank(dockingApplySysName)) { |
| | | message = "è·åç³»ç»æ è¯" + dockingApplySysName + "为空ï¼è¯·æ¥çé
ç½®ï¼"; |
| | | log.info(message); |
| | | throw new Throwable(message); |
| | | } |
| | | DockingModelQueryVO dockingModelQueryVO = new DockingModelQueryVO(); |
| | | dockingModelQueryVO.setClassId(groupClassifyId); |
| | | dockingModelQueryVO.setSysName(dockingApplySysName); |
| | | DockingQueryClassModelVO dockingQueryClassifyModelVO = mdmApplyGroupCodeProvider.queryClassModel(dockingModelQueryVO); |
| | | if (dockingQueryClassifyModelVO != null) { |
| | | int code = dockingQueryClassifyModelVO.getCode(); |
| | | message = dockingQueryClassifyModelVO.getMsg(); |
| | | if (code == 1) { |
| | | this.saveDatas(dockingQueryClassifyModelVO); |
| | | } else { |
| | | log.info(message); |
| | | throw new Throwable(message); |
| | | } |
| | | }else{ |
| | | message="æªè·ä»éå¢è·åå°ä»»ä½æ¨¡åä¿¡æ¯"; |
| | | log.info(message); |
| | | throw new Throwable(message); |
| | | } |
| | | return R.success(message); |
| | | }catch (Throwable e){ |
| | | e.printStackTrace();; |
| | | log.error("è·åæ°æ®æ¨¡å详ç»ä¿¡æ¯å¤±è´¥"+e); |
| | | R.fail(message); |
| | | } |
| | | log.info("è·åé墿¨¡å详ç»ä¿¡æ¯æ§è¡ä¿åend"); |
| | | return R.success(message); |
| | | } |
| | | |
| | | /*** |
| | | * ä»éå¢è·å主模åä¿¡æ¯æ§è¡ä¿å |
| | | * @return |
| | | * @throws Throwable |
| | | */ |
| | | @Override |
| | | public R queryMdmModel() throws Throwable { |
| | | String message="æ§è¡æåï¼"; |
| | | log.info("ä»éå¢è·å主模åä¿¡æ¯æ§è¡ä¿åæ¥å£statr"); |
| | | try { |
| | | if (StringUtils.isBlank(dockingApplySysName)) { |
| | | message = "è·åç³»ç»æ è¯" + dockingApplySysName + "为空ï¼è¯·æ¥çé
ç½®ï¼"; |
| | | log.info(message); |
| | | throw new Throwable(message); |
| | | } |
| | | |
| | | DockingModelQueryVO dockingModelQueryVO = new DockingModelQueryVO(); |
| | | dockingModelQueryVO.setSysName(dockingApplySysName); |
| | | DockingQueryModelVO dockingQueryModelVO= mdmApplyGroupCodeProvider.queryMdmModel(dockingModelQueryVO); |
| | | if (dockingQueryModelVO != null) { |
| | | int code = dockingQueryModelVO.getCode(); |
| | | message = dockingQueryModelVO.getMsg(); |
| | | if (code == 1) { |
| | | List<DockingClassifyVO> dockingClassifyVOList=dockingQueryModelVO.getData(); |
| | | List<DockingPreClassify>dockingPreClassifyList=new ArrayList<>(); |
| | | dockingClassifyVOList.stream().forEach(dockingClassifyVO -> { |
| | | String id = StringUtils.isBlank(dockingClassifyVO.getId())?"":dockingClassifyVO.getId(); |
| | | String className = StringUtils.isBlank(dockingClassifyVO.getClassName())?"":dockingClassifyVO.getClassName(); |
| | | String classNumber = StringUtils.isBlank(dockingClassifyVO.getClassNumber())?"":dockingClassifyVO.getClassNumber(); |
| | | String nodeLink = StringUtils.isBlank(dockingClassifyVO.getNodeLink())?"":dockingClassifyVO.getNodeLink(); |
| | | String nodeLinkName = StringUtils.isBlank(dockingClassifyVO.getNodeLinkName())?"":dockingClassifyVO.getNodeLinkName(); |
| | | String pid = StringUtils.isBlank(dockingClassifyVO.getPid())?"":dockingClassifyVO.getPid(); |
| | | String version = StringUtils.isBlank(dockingClassifyVO.getVersion())?"":dockingClassifyVO.getVersion(); |
| | | DockingPreClassify dockingPreClassify= this.dockingPreClassifyService.getById(id); |
| | | |
| | | log.info("classify:-------------->éå¢å类主æº:"+id); |
| | | log.info("classify:-------------->éå¢åç±»åç§°:"+className); |
| | | log.info("classify:--------------> éå¢åç±»ç¶èç¹:"+pid); |
| | | log.info("classify:-------------->龿¥:"+nodeLink); |
| | | log.info("classify:-------------->éå¢å类代å·:"+classNumber); |
| | | log.info("classify:-------------->龿¥åç§°:"+nodeLinkName); |
| | | log.info("classify:-------------->龿¥çæ¬:"+version); |
| | | if (dockingPreClassify == null || StringUtils.isBlank(dockingPreClassify.getOid())) { |
| | | DefaultAttrAssimtUtil.addDefaultAttrAssimt(dockingPreClassify,MdmBtmTypeConstant.DOCKING_PRE_JCLASSIFY); |
| | | } else { |
| | | DefaultAttrAssimtUtil.updateDefaultAttrAssimt(dockingPreClassify); |
| | | } |
| | | dockingPreClassify.setOid(id); |
| | | dockingPreClassify.setName(className); |
| | | dockingPreClassify.setPid(pid); |
| | | dockingPreClassify.setId(classNumber); |
| | | dockingPreClassify.setNodeLink(nodeLink); |
| | | dockingPreClassify.setGetNodeLinkName(nodeLinkName); |
| | | dockingPreClassify.setClassName(className); |
| | | dockingPreClassify.setVersionValue(version); |
| | | dockingPreClassifyList.add(dockingPreClassify); |
| | | }); |
| | | boolean res= dockingPreClassifyService.saveOrUpdateBatch(dockingPreClassifyList); |
| | | if(res){ |
| | | R.success(message); |
| | | }else{ |
| | | message="ä¿åå类主模å失败"; |
| | | throw new Throwable(message); |
| | | } |
| | | } else { |
| | | log.info(message); |
| | | throw new Throwable(message); |
| | | } |
| | | }else{ |
| | | message="æªè·ä»éå¢è·åå°ä»»ä½æ¨¡åä¿¡æ¯"; |
| | | log.info(message); |
| | | throw new Throwable(message); |
| | | } |
| | | return R.success(message); |
| | | }catch (Throwable e){ |
| | | e.printStackTrace();; |
| | | log.error("è·åæ°æ®æ¨¡å失败"+e); |
| | | R.fail(message); |
| | | } |
| | | log.info("ä»éå¢è·å主模åä¿¡æ¯æ§è¡ä¿åæ¥å£end"); |
| | | return R.success(message); |
| | | } |
| | | |
| | | |
| | | |
| | | /*** |
| | | * æ¥è¯¢ç³è¯·åç¶æ |
| | | * @param dataOids |
| | | * @return æ§è¡ç»æ |
| | | */ |
| | | public R queryApplyState(String dataOids) { |
| | | |
| | | String message="æ§è¡æåï¼"; |
| | | log.info("æ¥è¯¢ç³è¯·åç¶ææ¥å£statr"); |
| | | try { |
| | | VciBaseUtil.alertNotNull(dataOids,"ææ¥ç³è¯·åæ°æ®ä¸»é®"); |
| | | VciBaseUtil.alertNotNull(dockingApplySysName,"ç³»ç»æ è¯é
ç½®ï¼docking.apply.unitCode"); |
| | | |
| | | List<DockingPreApplyForm> dockingPreApplyFormList= this.dockingPreApplyFormService.list(Wrappers.<DockingPreApplyForm>query().lambda().in(DockingPreApplyForm::getDataOid, VciBaseUtil.str2List(dataOids))); |
| | | dockingPreApplyFormList.stream().forEach(dockingPreApplyForm -> { |
| | | dockingPreApplyForm.getId(); |
| | | |
| | | }); |
| | | |
| | | }catch (Throwable e){ |
| | | e.printStackTrace();; |
| | | log.error("è·åæ°æ®æ¨¡å失败"+e); |
| | | R.fail(message); |
| | | } |
| | | log.info("æ¥è¯¢ç³è¯·åç¶ææ¥å£end"); |
| | | return R.success(message); |
| | | } |
| | | |
| | | /*** |
| | | * 忥é墿¨¡åä¿¡æ¯ |
| | | * @param classifyId |
| | | * @param operationType |
| | | * @return è¿åæ§è¡ç»æ |
| | | * @throws VciBaseException |
| | | */ |
| | | @Override |
| | | public R syncClassifyModel(String classifyId, String operationType) throws VciBaseException { |
| | | VciBaseUtil.alertNotNull(operationType,"éææä½ç±»å"); |
| | | try { |
| | | if(operationType.equals("all")){ |
| | | return queryMdmModel(); |
| | | }else{ |
| | | VciBaseUtil.alertNotNull(classifyId,"éå¢å类主é®"); |
| | | return queryClassModel(classifyId); |
| | | } |
| | | } catch (Throwable e) { |
| | | throw new VciBaseException(e.getMessage()); |
| | | } |
| | | } |
| | | |
| | | // /** |
| | | // * åæ¥ä¸»æ¨¡å |
| | | // * @return |
| | | // */ |
| | | // private String queryMdmModel() throws VciBaseException { |
| | | // String message="æ§è¡æåï¼"; |
| | | // try { |
| | | // |
| | | // |
| | | // }catch (VciBaseException e){ |
| | | // message=e.getMessage(); |
| | | // throw new VciBaseException(message); |
| | | // }finally { |
| | | // return message; |
| | | // } |
| | | // |
| | | // |
| | | // } |
| | | // |
| | | // /*** |
| | | // * åæ¥æ¨¡å详ç»ä¿¡æ¯ |
| | | // * @param classifyId |
| | | // * @return |
| | | // */ |
| | | // private String queryClassModel(String classifyId)throws VciBaseException{ |
| | | // String message="æ§è¡æåï¼"; |
| | | // try { |
| | | // |
| | | // }catch (VciBaseException e){ |
| | | // message=e.getMessage(); |
| | | // throw new VciBaseException(message); |
| | | // }finally { |
| | | // return message; |
| | | // } |
| | | // |
| | | // } |
| | | |
| | | |
| | | /*** |
| | | * ç»ç» ä¿åæ°æ®æ¹æ³ |
| | | * |
| | | * @param dockingQueryClassifyModelVO |
| | | * @return |
| | | * @throws Throwable |
| | | * @throws |
| | | * @throws Throwable |
| | | */ |
| | | private boolean saveDatas(DockingQueryClassModelVO dockingQueryClassifyModelVO) throws Throwable { |
| | | try { |
| | | DockingClassifyMainVO mainData = dockingQueryClassifyModelVO.getMainData(); |
| | | List<DockingClassifyVO> classList = mainData.getClassList(); |
| | | Map<String,List<DockingClassifyViewVO>>classInfoMap = mainData.getClassInfos(); |
| | | ////initVCIInvocationInfo("1"); |
| | | List<DockingPreClassify> dockingPreClassifyArrayList=new ArrayList<>(); |
| | | for (DockingClassifyVO jclassObject : classList) { |
| | | String id =StringUtils.isBlank(jclassObject.getId())?"":jclassObject.getId(); |
| | | String className = StringUtils.isBlank(jclassObject.getClassName())?"":jclassObject.getClassName(); |
| | | String pid = StringUtils.isBlank(jclassObject.getPid())?"":jclassObject.getPid(); |
| | | String nodeLink = StringUtils.isBlank(jclassObject.getNodeLink())?"":jclassObject.getNodeLink(); |
| | | String nodeLinkName = StringUtils.isBlank(jclassObject.getNodeLinkName())?"":jclassObject.getNodeLinkName(); |
| | | String classNumber = StringUtils.isBlank(jclassObject.getClassNumber())?"":jclassObject.getClassNumber(); |
| | | //æ ¹æ®åç±»æ¥è¯¢æ¨¡åè§å¾å¯¹è±¡ |
| | | DockingPreClassify dockingPreClassify = dockingPreClassifyService.getById(id); |
| | | log.info("classify:-------------->éå¢å类主æº:"+id); |
| | | log.info("classify:-------------->éå¢åç±»åç§°:"+className); |
| | | log.info("classify:--------------> éå¢åç±»ç¶èç¹:"+pid); |
| | | log.info("classify:-------------->龿¥:"+nodeLink); |
| | | log.info("classify:-------------->龿¥åç§°:"+nodeLinkName); |
| | | |
| | | if (dockingPreClassify == null || StringUtils.isBlank(dockingPreClassify.getOid())) { |
| | | DefaultAttrAssimtUtil.addDefaultAttrAssimt(dockingPreClassify,MdmBtmTypeConstant.DOCKING_PRE_JCLASSIFY); |
| | | } else { |
| | | DefaultAttrAssimtUtil.updateDefaultAttrAssimt(dockingPreClassify); |
| | | } |
| | | dockingPreClassify.setOid(id); |
| | | dockingPreClassify.setName(className); |
| | | dockingPreClassify.setPid(pid); |
| | | dockingPreClassify.setId(classNumber); |
| | | dockingPreClassify.setNodeLink(nodeLink); |
| | | dockingPreClassify.setGetNodeLinkName(nodeLinkName); |
| | | dockingPreClassify.setClassName(className); |
| | | dockingPreClassifyArrayList.add(dockingPreClassify); |
| | | // è·å对åºçåç±»è§å¾æ¨¡å |
| | | if (classInfoMap.containsKey(id)) { |
| | | List<DockingClassifyViewVO> list = classInfoMap.get(id); |
| | | getVilewMode(jclassObject,list); |
| | | } |
| | | } |
| | | boolean res= dockingPreClassifyService.saveOrUpdateBatch(dockingPreClassifyArrayList); |
| | | return res; |
| | | } catch (Throwable e) { |
| | | e.printStackTrace(); |
| | | throw new Throwable("åå¨è§å¾æ¨¡ååºç°é®é¢"); |
| | | } |
| | | } |
| | | |
| | | /*** |
| | | * è·ååç±»è§å¾ |
| | | * |
| | | * @param jclassObject |
| | | * @throws Throwable |
| | | */ |
| | | private void getVilewMode(DockingClassifyVO jclassObject, List<DockingClassifyViewVO> list) |
| | | throws Throwable { |
| | | String nodeLinkName = jclassObject.getNodeLinkName(); |
| | | try { |
| | | String jclassId = com.alibaba.cloud.commons.lang.StringUtils.isBlank(jclassObject.getId())?"":jclassObject.getId(); |
| | | Map<String, DockingPreViewModel> jviewmodelMap = new HashMap<String, DockingPreViewModel>(); |
| | | //Map<String, String> condtionMa = new HashMap<String, String>(); |
| | | // condtionMa.put("jsourceclsfid", jclassId); |
| | | List<DockingPreViewModel> dockingPreViewModelList= dockingPreViewModelService.list(Wrappers.<DockingPreViewModel>query().lambda().eq(DockingPreViewModel::getSourceClassifyId,false));// æ ¹æ®åç±»æ¥è¯¢æ¨¡åè§å¾å¯¹è±¡ |
| | | for (DockingPreViewModel dockingPreViewModel : dockingPreViewModelList) { |
| | | jviewmodelMap.put(dockingPreViewModel.getViewName(),dockingPreViewModel); |
| | | } |
| | | |
| | | for (DockingClassifyViewVO viewInfo : list) { |
| | | String viewName = com.alibaba.cloud.commons.lang.StringUtils.isBlank(viewInfo.getViewName())?"":viewInfo.getViewName(); |
| | | String impactList = com.alibaba.cloud.commons.lang.StringUtils.isBlank(viewInfo.getImpactList())?"":viewInfo.getImpactList(); |
| | | log.info("VilewMode:-------------->è§å¾åç§°:"+viewName); |
| | | log.info("VilewMode:-------------->å½±åç¼ç 项:"+impactList); |
| | | log.info("VilewMode:--------------> éå¢å类主é®:"+jclassId); |
| | | List<DockingClassifyMetaAttrVO> metaList = viewInfo.getMetaList(); |
| | | DockingPreViewModel jviewModelObject = null; |
| | | if (jviewmodelMap.containsKey(viewName)) { |
| | | jviewModelObject = jviewmodelMap.get(viewName); |
| | | //å½±åç¼ç é¡¹çæ°æ® |
| | | jviewModelObject.setImpactList(impactList); |
| | | DefaultAttrAssimtUtil.updateDefaultAttrAssimt(jviewModelObject); |
| | | } else { |
| | | jviewModelObject =new DockingPreViewModel(); |
| | | DefaultAttrAssimtUtil.addDefaultAttrAssimt(jviewModelObject,MdmBtmTypeConstant.DOCKING_PRE_JVIEWMODEL); |
| | | jviewModelObject.setSourceClassifyId(jclassId);// éå¢åç±»id |
| | | jviewModelObject.setViewName(viewName);// éå¢è§å¾åç§° |
| | | //å½±åç¼ç é¡¹çæ°æ® |
| | | jviewModelObject.setImpactList(impactList); |
| | | dockingPreViewModelList.add(jviewModelObject); |
| | | } |
| | | // è·å模åè§å¾ä¸ç屿§é |
| | | // String oid = jviewModelObject.getOid(); |
| | | List<DockingPreMetaAttr>allDockingPreMetaAttrList=new ArrayList<>(); |
| | | getMetaAttrObject(metaList, jclassId, jviewModelObject, "root",allDockingPreMetaAttrList); |
| | | //ä¿å模åè§å¾å±æ§ |
| | | dockingPreMetaAttrService.saveOrUpdateBatch(allDockingPreMetaAttrList); |
| | | //ä¿å模åè§å¾ |
| | | dockingPreViewModelService.saveOrUpdateBatch(dockingPreViewModelList); |
| | | } |
| | | } catch (Throwable e) { |
| | | e.printStackTrace(); |
| | | throw new Throwable("ç»ç»åç±»" + nodeLinkName + "模åè§å¾åå¨åºç°é®é¢"); |
| | | } |
| | | } |
| | | |
| | | |
| | | /*** |
| | | * è·å模åè§å¾å±æ§ |
| | | * @throws Throwable |
| | | */ |
| | | private void getMetaAttrObject(List<DockingClassifyMetaAttrVO> metaList, |
| | | String jclassId, DockingPreViewModel jviewModelObject, String pid,List<DockingPreMetaAttr>allDockingPreMetaAttrList)throws Throwable { |
| | | try { |
| | | //// æ ¹æ®åç±»æ¥è¯¢æ¨¡åè§å¾å¯¹è±¡ |
| | | List<DockingPreMetaAttr> dockingPreMetaAttrList = dockingPreMetaAttrService.selectByWrapper(Wrappers.<DockingPreMetaAttr>query().lambda() |
| | | .eq(DockingPreMetaAttr::getSourceClassifyId,jclassId).eq(DockingPreMetaAttr::getViewModelId,jviewModelObject.getOid()) |
| | | .eq(DockingPreMetaAttr:: getPid,pid)); |
| | | Map<String,DockingPreMetaAttr> jmetaattrMap = dockingPreMetaAttrList.stream().filter( |
| | | s -> com.alibaba.cloud.commons.lang.StringUtils.isNotBlank(s.getEnglishName())).collect(Collectors.toMap(s -> s.getEnglishName().toLowerCase(Locale.ROOT), t -> t)); |
| | | |
| | | for (DockingClassifyMetaAttrVO dockingClassifyMetaAttrVO : metaList) { |
| | | String chineseName = com.alibaba.cloud.commons.lang.StringUtils.isBlank(dockingClassifyMetaAttrVO.getChineseName())?"":dockingClassifyMetaAttrVO.getChineseName();// 屿§åç§° |
| | | String englishName = com.alibaba.cloud.commons.lang.StringUtils.isBlank(dockingClassifyMetaAttrVO.getEnglishName())?"":dockingClassifyMetaAttrVO.getEnglishName();// è±æåç§° |
| | | String defaultValue = com.alibaba.cloud.commons.lang.StringUtils.isBlank(dockingClassifyMetaAttrVO.getDefaultValue())?"":dockingClassifyMetaAttrVO.getDefaultValue(); |
| | | Integer metadataType =dockingClassifyMetaAttrVO.getMetadataType();// ç±»å |
| | | Integer necessaryConf = dockingClassifyMetaAttrVO.getNecessaryConf();// æ¯å¦å¿
å¡« |
| | | Map<String, String> range = dockingClassifyMetaAttrVO.getRange()==null?new HashMap<String, String>():dockingClassifyMetaAttrVO.getRange();// åå¼èå´ |
| | | |
| | | log.info("metaAttr:-------------->屿§åç§°:"+chineseName); |
| | | log.info("metaAttr:-------------->è±æåç§°:"+englishName); |
| | | log.info("metaAttr:-------------->é»è®¤å¼:"+defaultValue); |
| | | log.info("metaAttr:--------------> ç±»å:"+metadataType); |
| | | log.info("metaAttr:--------------> æ¯å¦å¿
å¡«:"+necessaryConf); |
| | | DockingPreMetaAttr dockingPreMetaAttr = new DockingPreMetaAttr(); |
| | | if (jmetaattrMap.containsKey(englishName)) { |
| | | dockingPreMetaAttr = jmetaattrMap.get(englishName); |
| | | dockingPreMetaAttr.setChineseName(chineseName); |
| | | dockingPreMetaAttr.setDefaultValue(defaultValue); |
| | | DefaultAttrAssimtUtil.updateDefaultAttrAssimt(dockingPreMetaAttr); |
| | | } else { |
| | | DefaultAttrAssimtUtil.addDefaultAttrAssimt(dockingPreMetaAttr,MdmBtmTypeConstant.DOCKING_PRE_JMETAATRR); |
| | | dockingPreMetaAttr.setSourceClassifyId(jclassId);// éå¢åç±»id |
| | | dockingPreMetaAttr.setViewModelId(jviewModelObject.getOid());// éå¢è§å¾æ¨¡åid |
| | | dockingPreMetaAttr.setChineseName(chineseName);// 屿§åç§° |
| | | dockingPreMetaAttr.setEnglishName(englishName);// 屿§å段 |
| | | dockingPreMetaAttr.setDefaultValue(defaultValue);// 屿§åç§° |
| | | dockingPreMetaAttr.setMetaDataType(metadataType);// 屿§ç±»å |
| | | dockingPreMetaAttr.setNecesSaryConf(necessaryConf);// 屿§å¿
填项 |
| | | dockingPreMetaAttr.setPid(pid);// ç¶èç¹id |
| | | } |
| | | if(range!=null&&range.size()>0){ |
| | | // è·å屿§å¼å |
| | | getRange(dockingPreMetaAttr, range); |
| | | } |
| | | /*** |
| | | * è·ååèç¹ |
| | | */ |
| | | DockingClassifyMetaAttrVO compositeMeta = dockingClassifyMetaAttrVO.getCompositeMeta(); |
| | | if (compositeMeta != null) { |
| | | pid = com.alibaba.cloud.commons.lang.StringUtils.isBlank(dockingPreMetaAttr.getOid())?"":dockingPreMetaAttr.getOid();// å½åoid |
| | | List<DockingClassifyMetaAttrVO> childMetaList = new ArrayList<>(); |
| | | childMetaList.add(compositeMeta); |
| | | getMetaAttrObject(childMetaList, jclassId,jviewModelObject, pid,allDockingPreMetaAttrList); |
| | | } |
| | | |
| | | } |
| | | |
| | | } catch (Throwable e) { |
| | | e.printStackTrace(); |
| | | log.error("ç»ç»æ¨¡åè§å¾"+ jviewModelObject.getViewName() |
| | | + "屿§åå¨åºç°é®é¢" + e); |
| | | throw new Throwable("ç»ç»æ¨¡åè§å¾"+ jviewModelObject.getViewName() |
| | | + "屿§åå¨åºç°é®é¢" + e); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * @throws Throwable |
| | | * * è·åå¼å |
| | | * @param metaAttrObject |
| | | * @param range |
| | | * @throws |
| | | */ |
| | | private void getRange(DockingPreMetaAttr metaAttrObject,Map<String, String> range) throws Throwable { |
| | | String metaAttrOid = com.alibaba.cloud.commons.lang.StringUtils.isBlank(metaAttrObject.getOid())?"":metaAttrObject.getOid();// 屿§çoid |
| | | String jchinesename = com.alibaba.cloud.commons.lang.StringUtils.isBlank(metaAttrObject.getChineseName())?"":metaAttrObject.getChineseName(); |
| | | Map<String, DockingPreAttrRange> rangeMap = new HashMap<>(); |
| | | try { |
| | | Map<String, String> condtionMa = new HashMap<String, String>(); |
| | | condtionMa.put("jmetalistid", metaAttrOid); |
| | | List<DockingPreAttrRange> jmetaattrList = dockingPreAttrRangeService.selectByWrapper(Wrappers.<DockingPreAttrRange>query().lambda() |
| | | .eq(DockingPreAttrRange::getMetaListId,metaAttrOid));// æ ¹æ®åç±»æ¥è¯¢æ¨¡åè§å¾å¯¹è±¡ |
| | | rangeMap= jmetaattrList.stream().collect(Collectors.toMap(s -> com.alibaba.cloud.commons.lang.StringUtils.isNotBlank(s.getNumText().toLowerCase(Locale.ROOT))?"":s.getNumText().toLowerCase(Locale.ROOT), t -> t)); |
| | | |
| | | for (String rangeKey : range.keySet()) { |
| | | DockingPreAttrRange rangeObject = new DockingPreAttrRange(); |
| | | String keyValue = com.alibaba.cloud.commons.lang.StringUtils.isBlank(range.get(rangeKey))?"":range.get(rangeKey); |
| | | log.info("range:-------------->æ¾ç¤ºå¼"+rangeKey+",å
é¨å¼"+keyValue); |
| | | if (rangeMap.containsKey(rangeKey)) { |
| | | rangeObject = rangeMap.get(rangeKey); |
| | | rangeObject.setNumTextValue(keyValue); |
| | | rangeObject.setNumText(rangeKey); |
| | | DefaultAttrAssimtUtil.updateDefaultAttrAssimt(rangeObject); |
| | | } else { |
| | | DefaultAttrAssimtUtil.addDefaultAttrAssimt(rangeObject,MdmBtmTypeConstant.DOCKING_PRE_JRANGE); |
| | | rangeObject.setNumTextValue(keyValue); |
| | | rangeObject.setNumText(rangeKey); |
| | | rangeObject.setTs(rangeObject.getLastModifyTime()); |
| | | rangeObject.setMetaListId(metaAttrOid); |
| | | log.info("range:-------------->屿§å
é¨å¼:"+metaAttrOid); |
| | | log.info("range:-------------->æ¶é´:"+rangeObject.getLastModifyTime()); |
| | | jmetaattrList.add(rangeObject); |
| | | } |
| | | } |
| | | dockingPreAttrRangeService.saveOrUpdateBatch(jmetaattrList); |
| | | } catch (Throwable e) { |
| | | e.printStackTrace(); |
| | | log.info("ç»ç»å±æ§ï¼ã" + jchinesename + "ãå¼ååºç°é®é¢"+ e); |
| | | throw new Throwable("ç»ç»å±æ§ï¼ã" + jchinesename + "ãå¼ååºç°é®é¢"+ e); |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * ç»ç»æ°æ® |
| | | * */ |
| | | private DockingGroupDataVO queryApplycodeDataObjects(int optationtype,List<BaseModelVO> codeWupins,Map<String,DockingPreApplyForm> addDockingPreApplyFormMap,Map<String,DockingPreApplyForm> editDockingPreApplyFormMap,Map<String,BaseModelVO> codeWupinMap) throws VciBaseException{ |
| | | try { |
| | | String curUserName = AuthUtil.getUser().getUserName(); |
| | | //ç³è¯·çæ°æ® |
| | | List<DockingMainData> mainDataList=new ArrayList<DockingMainData>(); |
| | | for (BaseModelVO dataBusinessObject : codeWupins) { |
| | | String format = new SimpleDateFormat("yyyyMMddHHmmssSSS").format(new Date()); |
| | | String codeclsfid = dataBusinessObject.getData().getOrDefault("codeclsfid",""); |
| | | String btmName = dataBusinessObject.getBtmname(); |
| | | String oid = dataBusinessObject.getOid(); |
| | | |
| | | DockingPreApplyForm dockingPreApplyForm = new DockingPreApplyForm(); |
| | | |
| | | String dataOid = dataBusinessObject.getOid(); |
| | | Map<String, String> conditionsMap = new HashMap<String, String>(); |
| | | List<DockingPreApplyForm> applyFormObjects = dockingPreApplyFormService.list(Wrappers.<DockingPreApplyForm>query().lambda().eq(DockingPreApplyForm::getDataOid, dataOid).eq(DockingPreApplyForm::getOperationType, optationtype)); |
| | | String apllyCode = ""; |
| | | if (!CollectionUtils.isEmpty(applyFormObjects)) { |
| | | dockingPreApplyForm = applyFormObjects.get(0); |
| | | apllyCode = dockingPreApplyForm.getId(); |
| | | editDockingPreApplyFormMap.put(apllyCode, dockingPreApplyForm);//ç³è¯·ååç³è¯·å对象å
³ç³» |
| | | } else { |
| | | apllyCode = dockingApplyUnitCode + "-" + format; |
| | | dockingPreApplyForm.setId(apllyCode); |
| | | dockingPreApplyForm.setName(""); |
| | | dockingPreApplyForm.setOperationType(optationtype+""); |
| | | dockingPreApplyForm.setDescription(dataBusinessObject.getDescription());//è·åæ°æ®æè¿°ä¿¡æ¯ |
| | | dockingPreApplyForm.setDataOid(oid); |
| | | dockingPreApplyForm.setDataBtmName(btmName); |
| | | addDockingPreApplyFormMap.put(apllyCode, dockingPreApplyForm);//ç³è¯·ååç³è¯·å对象å
³ç³» |
| | | } |
| | | |
| | | codeWupinMap.put(apllyCode, dataBusinessObject);//ç³è¯·ååå¯¹åºæ°æ®å
³ç³» |
| | | conditionsMap = new HashMap<String, String>(); |
| | | conditionsMap.put("jtargetclsfid", codeclsfid);//è§å¾oid |
| | | |
| | | List<DockingPreAttrMapping> dockingPreAttrMappingList = dockingPreAttrMappingMapper.selectList(Wrappers.<DockingPreAttrMapping>query().lambda().eq(DockingPreAttrMapping::getTargetClassifyId, codeclsfid)); |
| | | if (CollectionUtils.isEmpty(dockingPreAttrMappingList)) { |
| | | throw new Exception("æ ¹æ®æéçæ°æ®ï¼æ²¡ææ¾å°å¯¹åºçéå¢å类设置ï¼è¯·æ ¸å¯¹!"); |
| | | } |
| | | String jsourceclsfid = dockingPreAttrMappingList.get(0).getSourceClassifyId(); |
| | | //è·åæ°æ®æ¨¡ååç±»ä¿¡æ¯ |
| | | DockingPreClassify dockingPreClassify = dockingPreClassifyService.getById(jsourceclsfid); |
| | | DockingMainData mainData = new DockingMainData(); |
| | | mainData.setApplyEntId(dockingApplyUnitCode);//ç³è¯·åä½ä»£ç |
| | | mainData.setApplyId(apllyCode);//ç³è¯·åå· |
| | | mainData.setClassName(dockingPreClassify.getGetNodeLinkName());//åç±»åç§° |
| | | mainData.setCreateBy(curUserName);// |
| | | mainData.setSecretLevel("å
é¨");//å¯çº§ï¼é»è®¤ä¸ºå
é¨ |
| | | mainData.setViewInfos(getviewInfos(optationtype,dockingPreClassify, dataBusinessObject));//è·åè§å¾æ¨¡å |
| | | mainDataList.add(mainData); |
| | | } |
| | | //æ ¹æ®æ°æ®æ¨¡åï¼ç»ç»æéè¦æ°æ® |
| | | DockingGroupDataVO postParameters=new DockingGroupDataVO(); |
| | | postParameters.setSysName(dockingApplySysName);//ç³»ç»æ è¯ |
| | | postParameters.setMainData(mainDataList);// |
| | | return postParameters; |
| | | } catch (Throwable e) { |
| | | // TODO Auto-generated catch block |
| | | throw new VciBaseException("æ¥è¯¢æ°æ®åºé"+e); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * è·å模åè§å¾ |
| | | * @param dockingPreClassify |
| | | * @param dataBusinessObject |
| | | * @throws VciBaseException |
| | | */ |
| | | private List<DockingViewVO>getviewInfos(int type, DockingPreClassify dockingPreClassify, BaseModelVO dataBusinessObject) throws Throwable{ |
| | | List<DockingViewVO> viewInfoList=new ArrayList<>(); |
| | | String jclassOid= dockingPreClassify.getOid(); |
| | | List<DockingPreViewModel> dockingPreViewModels=new ArrayList<>(); |
| | | if(type==1) { |
| | | //æ ¹æ®åç±»æ¥è¯¢æ¨¡åè§å¾å¯¹è±¡ |
| | | dockingPreViewModels= dockingPreViewModelService.list(Wrappers.<DockingPreViewModel>query().lambda().eq(DockingPreViewModel::getSourceClassifyId,jclassOid).eq(DockingPreViewModel::getViewName,"ç¼ç è§å¾")); |
| | | }else{ |
| | | //æ ¹æ®åç±»æ¥è¯¢æ¨¡åè§å¾å¯¹è±¡ |
| | | dockingPreViewModels= dockingPreViewModelService.list(Wrappers.<DockingPreViewModel>query().lambda().eq(DockingPreViewModel::getSourceClassifyId,jclassOid)); |
| | | } |
| | | for (DockingPreViewModel dockingPreViewModel : dockingPreViewModels) { |
| | | //ç»ç»æ°æ®å±æ§ä¿¡æ¯ |
| | | DockingViewVO viewInfo=new DockingViewVO(); |
| | | viewInfo.setViewName(dockingPreViewModel.getViewName());//è§å¾åç§° |
| | | viewInfo.setViewValue(getViewValueList(dockingPreViewModel,jclassOid,dataBusinessObject));//è§å¾ |
| | | viewInfoList.add(viewInfo); |
| | | } |
| | | return viewInfoList; |
| | | } |
| | | |
| | | /*** |
| | | * è·åé
ç½®ä¿¡æ¯ |
| | | * @param dockingPreViewModel |
| | | * @param jclassOid |
| | | * @param dataBusinessObject |
| | | * @return |
| | | * @throws VciBaseException |
| | | */ |
| | | private List<Map<String, Object>> getViewValueList(DockingPreViewModel dockingPreViewModel,String jclassOid,BaseModelVO dataBusinessObject) throws Throwable{ |
| | | //æé 模åè§å¾æ°æ® |
| | | List<Map<String, Object>> viewValueList=new ArrayList<Map<String,Object>>(); |
| | | String oid = dockingPreViewModel.getOid(); |
| | | Map<String,String> dataValueMap=dataBusinessObject.getData(); |
| | | String codeClassifyId=dataValueMap.get("codeclsfid"); |
| | | Map<String,String>conditionsMap=new HashMap<String, String>(); |
| | | |
| | | |
| | | |
| | | List<DockingPreAttrMapping> dockingPreAttrMappingList = dockingPreAttrMappingMapper.selectList(Wrappers.<DockingPreAttrMapping>query().lambda() |
| | | .eq(DockingPreAttrMapping::getSourceClassifyId, jclassOid).eq(DockingPreAttrMapping::getTargetClassifyId, codeClassifyId)); |
| | | if(CollectionUtils.isEmpty(dockingPreAttrMappingList)) { |
| | | return viewValueList; |
| | | } |
| | | |
| | | Map<String,DockingPreAttrMapping> jintegmappconfigMap=new HashMap<String, DockingPreAttrMapping>(); |
| | | for (DockingPreAttrMapping businessObject : dockingPreAttrMappingList) { |
| | | jintegmappconfigMap.put(businessObject.getSourceAttrKey(), businessObject); |
| | | } |
| | | List<DockingPreMetaAttr> dockingPreMetaAttrList= dockingPreMetaAttrService.selectByWrapper( |
| | | Wrappers.<DockingPreMetaAttr>query().lambda().eq(DockingPreMetaAttr::getViewModelId,dockingPreViewModel.getOid()) |
| | | .eq(DockingPreMetaAttr::getSourceClassifyId,dockingPreViewModel.getSourceClassifyId())); |
| | | |
| | | Map<String,Object> viewValueMap=new HashMap<String,Object>(); |
| | | for (DockingPreMetaAttr dockingPreMetaAttr : dockingPreMetaAttrList) { |
| | | String jenglishname=dockingPreMetaAttr.getEnglishName();////éå¢é
ç½®å±æ§ |
| | | if(jintegmappconfigMap.containsKey(jenglishname)){ |
| | | DockingPreAttrMapping dockingPreAttrMapping=jintegmappconfigMap.get(jenglishname); |
| | | String attrId = dockingPreAttrMapping.getTargetAttrId();//ç¼ç 屿§id |
| | | String jtargetattrkey = dockingPreAttrMapping.getTargetAttrKey();//ç¼ç 屿§id |
| | | Object newVaue=null; |
| | | if(StringUtils.isNotBlank(jtargetattrkey)){ |
| | | getAttrRange(dockingPreMetaAttr);//è·ååæ®µåå¼èå´ |
| | | String value=dataValueMap.get(jtargetattrkey)==null?"":dataValueMap.getOrDefault(jtargetattrkey,""); |
| | | newVaue = getVaue(dockingPreMetaAttr, value); |
| | | }else{ |
| | | newVaue = getVaue(dockingPreMetaAttr, ""); |
| | | } |
| | | if(newVaue==null||"".equals(newVaue)){ |
| | | newVaue= dockingPreMetaAttr.getDefaultValue(); |
| | | } |
| | | viewValueMap.put(jenglishname, newVaue); |
| | | } |
| | | } |
| | | |
| | | viewValueList.add(viewValueMap); |
| | | return viewValueList; |
| | | } |
| | | |
| | | /*** |
| | | * è·å屿§æä¸¾æ å°é
ç½® |
| | | */ |
| | | Map<String,Map<String, DockingPreAttrRange>> attrRangeMap=new HashMap<String, Map<String,DockingPreAttrRange>>(); |
| | | private void getAttrRange(DockingPreMetaAttr jmetaatter) throws Throwable{ |
| | | |
| | | String jmetalistoid = jmetaatter.getOid(); |
| | | if(attrRangeMap.containsKey(jmetalistoid)) { |
| | | return; |
| | | } |
| | | Map<String,String>conditionsMap=new HashMap<String, String>(); |
| | | conditionsMap.put("jmetalistid", jmetalistoid);//è§å¾oid |
| | | List<DockingPreAttrRange> dockingPreAttrRangeList = dockingPreAttrRangeService.selectByWrapper(Wrappers.<DockingPreAttrRange>query().lambda().eq(DockingPreAttrRange::getMetaListId, jmetalistoid)); |
| | | if (CollectionUtils.isEmpty(dockingPreAttrRangeList)) { |
| | | return; |
| | | } |
| | | Map<String, DockingPreAttrRange> rangeMap = new HashMap<String, DockingPreAttrRange>(); |
| | | rangeMap = dockingPreAttrRangeList.stream().collect(Collectors.toMap(s -> s.getNumTextValue(), t -> t, (o1, o2) -> o2)); |
| | | attrRangeMap.put(jmetalistoid, rangeMap); |
| | | |
| | | } |
| | | /**** |
| | | * å¼ç±»åè½¬æ¢ |
| | | * @param jmetaatter |
| | | * @param value |
| | | * @return |
| | | * @throws Throwable |
| | | */ |
| | | private Object getVaue(DockingPreMetaAttr jmetaatter,String value) throws Throwable{ |
| | | //jmetadatatype å
æ°æ®ç±»åï¼1 å符å, 2 æ´å, 3 é¿æ´å, 4 å精度, 5 å精度,6 æ¥æå, 7 æ¶é´å, 8 å¸å°å, 9 æä»¶, 10å¤ååï¼ |
| | | int jmetadatatype = jmetaatter.getMetaDataType(); |
| | | String jmetalistoid = jmetaatter.getOid(); |
| | | Map<String, DockingPreAttrRange> rangeMap=new HashMap<String, DockingPreAttrRange>(); |
| | | if(attrRangeMap.containsKey(jmetalistoid)){ |
| | | rangeMap = attrRangeMap.get(jmetalistoid); |
| | | if(rangeMap.containsKey(value)){ |
| | | DockingPreAttrRange dockingPreAttrRange = rangeMap.get(value); |
| | | value=dockingPreAttrRange.getNumText();//å°ç¼ç 屿§åå¼è½¬æ¢æéå¢å¯¹åºçåå¼ |
| | | } |
| | | } |
| | | |
| | | if(jmetadatatype==1){//1 å符å |
| | | return StringUtils.isBlank(value)?"":value; |
| | | }else if(jmetadatatype==2){//2 æ´å |
| | | return StringUtils.isBlank(value)?null:Integer.parseInt(value); |
| | | }else if(jmetadatatype==3){//3 é¿æ´å |
| | | return StringUtils.isBlank(value)?null:Long.parseLong(value); |
| | | }else if(jmetadatatype==4){//4 å精度, |
| | | return StringUtils.isBlank(value)?null:Float.parseFloat(value); |
| | | }else if(jmetadatatype==5){// 5 å精度 |
| | | return StringUtils.isBlank(value)?null:Double.parseDouble(value); |
| | | }else if(jmetadatatype==6){//6 æ¥æå |
| | | SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-mm-dd"); |
| | | if(StringUtils.isBlank(value)) { |
| | | return null; |
| | | }else { |
| | | try { |
| | | return simpleDateFormat.parse(value); |
| | | } catch (ParseException e) { |
| | | throw new VciBaseException("date", new String[]{"æ¥ææ ¼å¼è½¬æ¢é误"}); |
| | | } |
| | | } |
| | | }else if(jmetadatatype==7){//7 æ¶é´å |
| | | SimpleDateFormat simpleDateFormat = new SimpleDateFormat("HH:mm:ss"); |
| | | if(StringUtils.isBlank(value)) { |
| | | return null; |
| | | }else{ |
| | | try { |
| | | return simpleDateFormat.parse(value); |
| | | } catch (ParseException e) { |
| | | throw new VciBaseException("date", new String[]{"æ¥ææ ¼å¼è½¬æ¢é误"}); |
| | | } |
| | | } |
| | | }else if(jmetadatatype==8){//8 å¸å°å |
| | | return value; |
| | | }else if(jmetadatatype==9){//9 æä»¶, |
| | | return value; |
| | | }else if(jmetadatatype==10){//10å¤åå |
| | | return value;//符å忝ä»ä¹ä¸ä¸å¦ä½å¤ç |
| | | } |
| | | return value; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.webservice.wrapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.toolkit.CollectionUtils; |
| | | import com.vci.ubcs.code.webservice.entity.DockingPreApplyForm; |
| | | import com.vci.ubcs.code.webservice.vo.DockingPreApplyFormVO; |
| | | import org.springblade.core.mp.support.BaseEntityWrapper; |
| | | import org.springblade.core.tool.utils.BeanUtil; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.Collection; |
| | | import java.util.List; |
| | | import java.util.Objects; |
| | | |
| | | /*** |
| | | * ç³è¯·åå
è£
ç±» |
| | | * @author xiejun |
| | | * @date 2023-05-23 |
| | | */ |
| | | public class DockingPreApplyFormWrapper extends BaseEntityWrapper<DockingPreApplyForm, DockingPreApplyFormVO> { |
| | | public static DockingPreApplyFormWrapper build() { |
| | | return new DockingPreApplyFormWrapper(); |
| | | } |
| | | @Override |
| | | public DockingPreApplyFormVO entityVO(DockingPreApplyForm entity) { |
| | | DockingPreApplyFormVO dockingPreApplyFormVO = Objects.requireNonNull(BeanUtil.copy(entity, DockingPreApplyFormVO.class)); |
| | | return dockingPreApplyFormVO; |
| | | } |
| | | |
| | | /*** |
| | | * æ°ç»å¯¹è±¡è½¬æ¢ |
| | | * @param entitys |
| | | * @return |
| | | */ |
| | | public List<DockingPreApplyFormVO> entityVOs(Collection<DockingPreApplyForm> entitys) { |
| | | if(CollectionUtils.isEmpty(entitys)) {return new ArrayList<>();} |
| | | List<DockingPreApplyFormVO> vos=new ArrayList<>(); |
| | | if(!CollectionUtils.isEmpty(entitys)) { |
| | | entitys.stream().forEach(vo -> { |
| | | vos.add(entityVO(vo)); |
| | | }); |
| | | } |
| | | return vos; |
| | | } |
| | | |
| | | /*** |
| | | * æ°ç»å¯¹è±¡è½¬æ¢ |
| | | * @param vos |
| | | * @return |
| | | */ |
| | | public List<DockingPreApplyForm> voentitys(Collection<DockingPreApplyFormVO> vos) { |
| | | if(CollectionUtils.isEmpty(vos)) {return new ArrayList<>();} |
| | | List<DockingPreApplyForm>entitys =new ArrayList<>(); |
| | | if(!CollectionUtils.isEmpty(vos)) { |
| | | vos.stream().forEach(entity -> { |
| | | entitys.add(voentity(entity)); |
| | | }); |
| | | } |
| | | return entitys; |
| | | } |
| | | |
| | | /*** |
| | | * æ°ç»å¯¹è±¡è½¬æ¢ |
| | | * @param vo |
| | | * @return |
| | | */ |
| | | public DockingPreApplyForm voentity( DockingPreApplyFormVO vo) { |
| | | DockingPreApplyForm entity = Objects.requireNonNull(BeanUtil.copy(vo, DockingPreApplyForm.class)); |
| | | return entity; |
| | | } |
| | | } |
ÎļþÃû´Ó Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/wrapper/DockingPreAttrMappingWrapper.java ÐÞ¸Ä |
| | |
| | | package com.vci.ubcs.code.wrapper; |
| | | package com.vci.ubcs.code.webservice.wrapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.toolkit.CollectionUtils; |
| | | import com.vci.ubcs.code.entity.DockingPreAttrMapping; |
| | | import com.vci.ubcs.code.entity.DockingPreAttrRange; |
| | | import com.vci.ubcs.code.vo.pagemodel.DockingPreAttrMappingVO; |
| | | import com.vci.ubcs.code.vo.pagemodel.DockingPreAttrRangeVO; |
| | | import com.vci.ubcs.code.webservice.entity.DockingPreAttrMapping; |
| | | import com.vci.ubcs.code.webservice.vo.DockingPreAttrMappingVO; |
| | | import org.springblade.core.mp.support.BaseEntityWrapper; |
| | | import org.springblade.core.tool.utils.BeanUtil; |
| | | |
| | |
| | | import java.util.Collection; |
| | | import java.util.List; |
| | | import java.util.Objects; |
| | | |
| | | /** |
| | | *éå¢ç¼ç éæå±æ§æ å°é
ç½®å
è£
ç±» |
| | | * |
| | |
| | | |
| | | /*** |
| | | * æ°ç»å¯¹è±¡è½¬æ¢ |
| | | * @param dockingPreAttrMappings |
| | | * @param entitys |
| | | * @return |
| | | */ |
| | | public List<DockingPreAttrMappingVO> entityVOs(Collection<DockingPreAttrMapping> dockingPreAttrMappings) { |
| | | public List<DockingPreAttrMappingVO> entityVOs(Collection<DockingPreAttrMapping> entitys) { |
| | | if(CollectionUtils.isEmpty(entitys)) {return new ArrayList<>();} |
| | | List<DockingPreAttrMappingVO> dockingPreAttrMappingVOList=new ArrayList<>(); |
| | | if(!CollectionUtils.isEmpty(dockingPreAttrMappings)) { |
| | | dockingPreAttrMappings.stream().forEach(dockingPreAttrMapping -> { |
| | | dockingPreAttrMappingVOList.add(entityVO(dockingPreAttrMapping)); |
| | | if(!CollectionUtils.isEmpty(entitys)) { |
| | | entitys.stream().forEach(entity -> { |
| | | dockingPreAttrMappingVOList.add(entityVO(entity)); |
| | | }); |
| | | } |
| | | return dockingPreAttrMappingVOList; |
| | |
| | | |
| | | /*** |
| | | * æ°ç»å¯¹è±¡è½¬æ¢ |
| | | * @param dockingPreAttrMappingVOS |
| | | * @param vos |
| | | * @return |
| | | */ |
| | | public List<DockingPreAttrMapping> voentitys(Collection<DockingPreAttrMappingVO> dockingPreAttrMappingVOS) { |
| | | public List<DockingPreAttrMapping> voentitys(Collection<DockingPreAttrMappingVO> vos) { |
| | | if(CollectionUtils.isEmpty(vos)) {return new ArrayList<>();} |
| | | List<DockingPreAttrMapping> dockingPreAttrMappingList=new ArrayList<>(); |
| | | if(!CollectionUtils.isEmpty(dockingPreAttrMappingVOS)) { |
| | | dockingPreAttrMappingVOS.stream().forEach(dockingPreAttrMappingVO -> { |
| | | dockingPreAttrMappingList.add(voentity(dockingPreAttrMappingVO)); |
| | | if(!CollectionUtils.isEmpty(vos)) { |
| | | vos.stream().forEach(vo -> { |
| | | dockingPreAttrMappingList.add(voentity(vo)); |
| | | }); |
| | | } |
| | | return dockingPreAttrMappingList; |
ÎļþÃû´Ó Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/wrapper/DockingPreAttrRangeWrapper.java ÐÞ¸Ä |
| | |
| | | package com.vci.ubcs.code.wrapper; |
| | | package com.vci.ubcs.code.webservice.wrapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.toolkit.CollectionUtils; |
| | | import com.vci.ubcs.code.entity.DockingPreAttrMapping; |
| | | import com.vci.ubcs.code.entity.DockingPreAttrRange; |
| | | import com.vci.ubcs.code.vo.pagemodel.DockingPreAttrMappingVO; |
| | | import com.vci.ubcs.code.vo.pagemodel.DockingPreAttrRangeVO; |
| | | import com.vci.ubcs.code.vo.pagemodel.DockingPreClassifyVO; |
| | | import com.vci.ubcs.code.webservice.entity.DockingPreAttrRange; |
| | | import com.vci.ubcs.code.webservice.vo.DockingPreAttrRangeVO; |
| | | import org.springblade.core.mp.support.BaseEntityWrapper; |
| | | import org.springblade.core.tool.utils.BeanUtil; |
| | | |
| | |
| | | import java.util.Collection; |
| | | import java.util.List; |
| | | import java.util.Objects; |
| | | |
| | | /** |
| | | *éå¢ç¼ç å类模åè§å¾å±æ§åå¼èå´å
è£
ç±» |
| | | * |
| | |
| | | |
| | | /*** |
| | | * æ°ç»å¯¹è±¡è½¬æ¢ |
| | | * @param dockingPreAttrRanges |
| | | * @param entitys |
| | | * @return |
| | | */ |
| | | public List<DockingPreAttrRangeVO> entityVOs(Collection<DockingPreAttrRange> dockingPreAttrRanges) { |
| | | public List<DockingPreAttrRangeVO> entityVOs(Collection<DockingPreAttrRange> entitys) { |
| | | if(CollectionUtils.isEmpty(entitys)) {return new ArrayList<>();} |
| | | List<DockingPreAttrRangeVO> dockingPreAttrRangeVOList=new ArrayList<>(); |
| | | if(!CollectionUtils.isEmpty(dockingPreAttrRanges)) { |
| | | dockingPreAttrRanges.stream().forEach(dockingPreAttrRange -> { |
| | | dockingPreAttrRangeVOList.add(entityVO(dockingPreAttrRange)); |
| | | |
| | | if(!CollectionUtils.isEmpty(entitys)) { |
| | | entitys.stream().forEach(entity -> { |
| | | dockingPreAttrRangeVOList.add(entityVO(entity)); |
| | | }); |
| | | } |
| | | return dockingPreAttrRangeVOList; |
| | |
| | | |
| | | /*** |
| | | * æ°ç»å¯¹è±¡è½¬æ¢ |
| | | * @param dockingPreAttrRangeVos |
| | | * @param vos |
| | | * @return |
| | | */ |
| | | public List<DockingPreAttrRange> voentitys(Collection<DockingPreAttrRangeVO> dockingPreAttrRangeVos) { |
| | | public List<DockingPreAttrRange> voentitys(Collection<DockingPreAttrRangeVO> vos) { |
| | | if(CollectionUtils.isEmpty(vos)) {return new ArrayList<>();} |
| | | List<DockingPreAttrRange> dockingPreAttrRangeList=new ArrayList<>(); |
| | | if(!CollectionUtils.isEmpty(dockingPreAttrRangeVos)) { |
| | | dockingPreAttrRangeVos.stream().forEach(dockingPreAttrRangeVO -> { |
| | | dockingPreAttrRangeList.add(voentity(dockingPreAttrRangeVO)); |
| | | if(!CollectionUtils.isEmpty(vos)) { |
| | | vos.stream().forEach(vo -> { |
| | | dockingPreAttrRangeList.add(voentity(vo)); |
| | | }); |
| | | } |
| | | return dockingPreAttrRangeList; |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.webservice.wrapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.toolkit.CollectionUtils; |
| | | import com.vci.ubcs.code.webservice.entity.DockingPreClassify; |
| | | import com.vci.ubcs.code.webservice.vo.DockingPreClassifyVO; |
| | | import org.springblade.core.mp.support.BaseEntityWrapper; |
| | | import org.springblade.core.tool.utils.BeanUtil; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.Collection; |
| | | import java.util.List; |
| | | import java.util.Objects; |
| | | |
| | | /** |
| | | *éå¢ç¼ç åç±»å
è£
ç±» |
| | | * |
| | | * @author xiejun |
| | | * @since 2023-05-23 |
| | | */ |
| | | public class DockingPreClassifyWrapper extends BaseEntityWrapper<DockingPreClassify, DockingPreClassifyVO> { |
| | | public static DockingPreClassifyWrapper build() { |
| | | return new DockingPreClassifyWrapper(); |
| | | } |
| | | @Override |
| | | public DockingPreClassifyVO entityVO(DockingPreClassify entity) { |
| | | DockingPreClassifyVO dockingPreClassifyVO = Objects.requireNonNull(BeanUtil.copy(entity, DockingPreClassifyVO.class)); |
| | | return dockingPreClassifyVO; |
| | | } |
| | | |
| | | /*** |
| | | * æ°ç»å¯¹è±¡è½¬æ¢ |
| | | * @param entitys |
| | | * @return |
| | | */ |
| | | public List<DockingPreClassifyVO> entityVOs(Collection<DockingPreClassify> entitys) { |
| | | if(CollectionUtils.isEmpty(entitys)) {return new ArrayList<>();} |
| | | List<DockingPreClassifyVO> vos=new ArrayList<>(); |
| | | if(!CollectionUtils.isEmpty(entitys)) { |
| | | entitys.stream().forEach(vo -> { |
| | | vos.add(entityVO(vo)); |
| | | }); |
| | | } |
| | | return vos; |
| | | } |
| | | |
| | | /*** |
| | | * æ°ç»å¯¹è±¡è½¬æ¢ |
| | | * @param vos |
| | | * @return |
| | | */ |
| | | public List<DockingPreClassify> voentitys(Collection<DockingPreClassifyVO> vos) { |
| | | if(CollectionUtils.isEmpty(vos)) {return new ArrayList<>();} |
| | | List<DockingPreClassify>entitys =new ArrayList<>(); |
| | | if(!CollectionUtils.isEmpty(vos)) { |
| | | vos.stream().forEach(entity -> { |
| | | entitys.add(voentity(entity)); |
| | | }); |
| | | } |
| | | return entitys; |
| | | } |
| | | |
| | | /*** |
| | | * æ°ç»å¯¹è±¡è½¬æ¢ |
| | | * @param vo |
| | | * @return |
| | | */ |
| | | public DockingPreClassify voentity( DockingPreClassifyVO vo) { |
| | | DockingPreClassify entity = Objects.requireNonNull(BeanUtil.copy(vo, DockingPreClassify.class)); |
| | | return entity; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.webservice.wrapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.toolkit.CollectionUtils; |
| | | import com.vci.ubcs.code.webservice.entity.DockingPreMetaAttr; |
| | | import com.vci.ubcs.code.webservice.vo.DockingPreMetaAttrVO; |
| | | import org.springblade.core.mp.support.BaseEntityWrapper; |
| | | import org.springblade.core.tool.utils.BeanUtil; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.Collection; |
| | | import java.util.List; |
| | | import java.util.Objects; |
| | | |
| | | /** |
| | | *éå¢ç¼ç ç³è¯·æ¨¡å屿§å
è£
ç±» |
| | | * |
| | | * @author xiejun |
| | | * @since 2023-05-23 |
| | | */ |
| | | public class DockingPreMetaAttrWrapper extends BaseEntityWrapper<DockingPreMetaAttr, DockingPreMetaAttrVO> { |
| | | |
| | | public static DockingPreMetaAttrWrapper build() { |
| | | return new DockingPreMetaAttrWrapper(); |
| | | } |
| | | |
| | | @Override |
| | | public DockingPreMetaAttrVO entityVO(DockingPreMetaAttr entity) { |
| | | DockingPreMetaAttrVO dockingPreMetaAttrVO = Objects.requireNonNull(BeanUtil.copy(entity, DockingPreMetaAttrVO.class)); |
| | | return dockingPreMetaAttrVO; |
| | | } |
| | | |
| | | |
| | | |
| | | /*** |
| | | * æ°ç»å¯¹è±¡è½¬æ¢ |
| | | * @param entitys |
| | | * @return |
| | | */ |
| | | public List<DockingPreMetaAttrVO> entityVOs(Collection<DockingPreMetaAttr> entitys) { |
| | | if(CollectionUtils.isEmpty(entitys)) {return new ArrayList<>();} |
| | | List<DockingPreMetaAttrVO> vos=new ArrayList<>(); |
| | | if(!CollectionUtils.isEmpty(entitys)) { |
| | | entitys.stream().forEach(vo -> { |
| | | vos.add(entityVO(vo)); |
| | | }); |
| | | } |
| | | return vos; |
| | | } |
| | | |
| | | /*** |
| | | * æ°ç»å¯¹è±¡è½¬æ¢ |
| | | * @param vos |
| | | * @return |
| | | */ |
| | | public List<DockingPreMetaAttr> voentitys(Collection<DockingPreMetaAttrVO> vos) { |
| | | if(CollectionUtils.isEmpty(vos)) {return new ArrayList<>();} |
| | | List<DockingPreMetaAttr>entitys =new ArrayList<>(); |
| | | if(!CollectionUtils.isEmpty(vos)) { |
| | | vos.stream().forEach(entity -> { |
| | | entitys.add(voentity(entity)); |
| | | }); |
| | | } |
| | | return entitys; |
| | | } |
| | | |
| | | /*** |
| | | * æ°ç»å¯¹è±¡è½¬æ¢ |
| | | * @param vo |
| | | * @return |
| | | */ |
| | | public DockingPreMetaAttr voentity( DockingPreMetaAttrVO vo) { |
| | | DockingPreMetaAttr entity = Objects.requireNonNull(BeanUtil.copy(vo, DockingPreMetaAttr.class)); |
| | | return entity; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.webservice.wrapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.toolkit.CollectionUtils; |
| | | import com.vci.ubcs.code.webservice.entity.DockingPreViewModel; |
| | | import com.vci.ubcs.code.webservice.vo.DockingPreViewModelVO; |
| | | import org.springblade.core.mp.support.BaseEntityWrapper; |
| | | import org.springblade.core.tool.utils.BeanUtil; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.Collection; |
| | | import java.util.List; |
| | | import java.util.Objects; |
| | | |
| | | /** |
| | | *éå¢ç¼ç ç³è¯·è§å¾å
è£
ç±» |
| | | * |
| | | * @author xiejun |
| | | * @since 2023-05-23 |
| | | */ |
| | | public class DockingPreViewWrapper extends BaseEntityWrapper<DockingPreViewModel, DockingPreViewModelVO> { |
| | | public static DockingPreViewWrapper build() { |
| | | return new DockingPreViewWrapper(); |
| | | } |
| | | @Override |
| | | public DockingPreViewModelVO entityVO(DockingPreViewModel entity) { |
| | | DockingPreViewModelVO dockingPreViewModelVO = Objects.requireNonNull(BeanUtil.copy(entity, DockingPreViewModelVO.class)); |
| | | return dockingPreViewModelVO; |
| | | } |
| | | |
| | | /*** |
| | | * æ°ç»å¯¹è±¡è½¬æ¢ |
| | | * @param entitys |
| | | * @return |
| | | */ |
| | | public List<DockingPreViewModelVO> entityVOs(Collection<DockingPreViewModel> entitys) { |
| | | if(CollectionUtils.isEmpty(entitys)) {return new ArrayList<>();} |
| | | List<DockingPreViewModelVO> vos=new ArrayList<>(); |
| | | if(!CollectionUtils.isEmpty(entitys)) { |
| | | entitys.stream().forEach(dockingPreAttrRange -> { |
| | | vos.add(entityVO(dockingPreAttrRange)); |
| | | }); |
| | | } |
| | | return vos; |
| | | } |
| | | |
| | | /*** |
| | | * æ°ç»å¯¹è±¡è½¬æ¢ |
| | | * @param vos |
| | | * @return |
| | | */ |
| | | public List<DockingPreViewModel> voentitys(Collection<DockingPreViewModelVO> vos) { |
| | | if(CollectionUtils.isEmpty(vos)) {return new ArrayList<>();} |
| | | List<DockingPreViewModel>entitys =new ArrayList<>(); |
| | | if(!CollectionUtils.isEmpty(vos)) { |
| | | vos.stream().forEach(entity -> { |
| | | entitys.add(voentity(entity)); |
| | | }); |
| | | } |
| | | return entitys; |
| | | } |
| | | |
| | | /*** |
| | | * æ°ç»å¯¹è±¡è½¬æ¢ |
| | | * @param vo |
| | | * @return |
| | | */ |
| | | public DockingPreViewModel voentity( DockingPreViewModelVO vo) { |
| | | DockingPreViewModel entity = Objects.requireNonNull(BeanUtil.copy(vo, DockingPreViewModel.class)); |
| | | return entity; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | #æå¡å¨ç«¯å£ |
| | | server: |
| | | port: 36016 |
| | | |
| | | #æ°æ®æºé
ç½® |
| | | spring: |
| | | datasource: |
| | | url: ${ubcs.datasource.mdm.dev.url} |
| | | username: ${ubcs.datasource.mdm.dev.username} |
| | | password: ${ubcs.datasource.mdm.dev.password} |
| | | #å
³é驼峰å½åæ å° |
| | | mybatis-plus: |
| | | configuration: |
| | | map-underscore-to-camel-case: false |
| | | #éå¢éæé
ç½®ä¿¡æ¯ |
| | | docking: |
| | | apply: |
| | | #é墿ä¾çæ¥å£å°å |
| | | jtInterUrl: http://116.205.176.185:8099 |
| | | #ç³»ç»åå®¶åä½ä»£ç |
| | | unitCode: 131460 |
| | | #ç³»ç»æ è¯ |
| | | sysName: 410-MDM |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | #æå¡å¨ç«¯å£ |
| | | server: |
| | | port: 8107 |
| | | |
| | | #æ°æ®æºé
ç½® |
| | | spring: |
| | | datasource: |
| | | url: ${ubcs.datasource.mdm.dev.url} |
| | | username: ${ubcs.datasource.mdm.dev.username} |
| | | password: ${ubcs.datasource.mdm.dev.password} |
¶Ô±ÈÐÂÎļþ |
| | |
| | | #æå¡å¨ç«¯å£ |
| | | server: |
| | | port: 8107 |
| | | |
| | | #æ°æ®æºé
ç½® |
| | | spring: |
| | | datasource: |
| | | url: ${ubcs.datasource.mdm.dev.url} |
| | | username: ${ubcs.datasource.mdm.dev.username} |
| | | password: ${ubcs.datasource.mdm.dev.password} |
ÎļþÃû´Ó Source/UBCS/ubcs-service/ubcs-code/src/main/resources/mapper/DockingPreApplyFormMapper.xml ÐÞ¸Ä |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.vci.ubcs.code.mapper.DockingPreApplyFormMapper"> |
| | | <mapper namespace="com.vci.ubcs.code.webservice.mapper.DockingPreApplyFormMapper"> |
| | | <!-- éç¨æ¥è¯¢æ å°ç»æ --> |
| | | <resultMap id="DockingPreAttrMappingResultMap" type="com.vci.ubcs.code.entity.DockingPreApplyForm"> |
| | | <resultMap id="DockingPreAttrMappingResultMap" type="com.vci.ubcs.code.webservice.entity.DockingPreApplyForm"> |
| | | <result column="OID" property="oid"/> |
| | | <result column="REVISIONOID" property="revisionOid"/> |
| | | <result column="NAMEOID" property="nameOid"/> |
| | |
| | | <result column="CONTENT" property="content"/> |
| | | <result column="DATAOID" property="dataOid"/> |
| | | <result column="DATABTMNAME" property="dataBtmName"/> |
| | | <result column="MSG" property="msg"/> |
| | | <result column="MSG" property="msg" /> |
| | | <result column="OPERATIONTYPE" property="operationType" /> |
| | | <result column="GROUPCODE" property="groupCode" /> |
| | | </resultMap> |
| | | |
| | | |
| | | </mapper> |
ÎļþÃû´Ó Source/UBCS/ubcs-service/ubcs-code/src/main/resources/mapper/DockingPreAttrMappingMapper.xml ÐÞ¸Ä |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.vci.ubcs.code.mapper.DockingPreAttrMappingMapper"> |
| | | <mapper namespace="com.vci.ubcs.code.webservice.mapper.DockingPreAttrMappingMapper"> |
| | | <!-- éç¨æ¥è¯¢æ å°ç»æ --> |
| | | <resultMap id="DockingPreAttrMappingResultMap" type="com.vci.ubcs.code.entity.DockingPreAttrMapping"> |
| | | <resultMap id="plDockingPreAttrMappingResultMap" type="com.vci.ubcs.code.webservice.entity.DockingPreAttrMapping"> |
| | | <result column="OID" property="oid"/> |
| | | <result column="REVISIONOID" property="revisionOid"/> |
| | | <result column="NAMEOID" property="nameOid"/> |
| | |
| | | <result column="TARGETATTRID" property="targetAttrId"/> |
| | | <result column="TARGETCLSFID" property="targetClassifyId"/> |
| | | <result column="VIEWMODEID" property="viewModeId"/> |
| | | <result column="VIEWMODENAME" property="viewModeName"/> |
| | | <result column="VIEWMODENAME" property="viewModelName"/> |
| | | <result column="TARGETATTRKEY" property="targetAttrKey"/> |
| | | <result column="TARGETATTRNAME" property="targetAttrName"/> |
| | | <result column="SOURCEATTRKEY" property="sourceAttrKey"/> |
ÎļþÃû´Ó Source/UBCS/ubcs-service/ubcs-code/src/main/resources/mapper/DockingPreAttrRangeMapper.xml ÐÞ¸Ä |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.vci.ubcs.code.mapper.DockingPreAttrRangeMapper"> |
| | | <mapper namespace="com.vci.ubcs.code.webservice.mapper.DockingPreAttrRangeMapper"> |
| | | <!-- éç¨æ¥è¯¢æ å°ç»æ --> |
| | | <resultMap id="DockingPreAttrMappingResultMap" type="com.vci.ubcs.code.entity.DockingPreAttrRange"> |
| | | <resultMap id="plDockingPreAttrRangeResultMap" type="com.vci.ubcs.code.webservice.entity.DockingPreAttrRange"> |
| | | <result column="OID" property="oid"/> |
| | | <result column="REVISIONOID" property="revisionOid"/> |
| | | <result column="NAMEOID" property="nameOid"/> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.vci.ubcs.code.webservice.mapper.DockingPreClassifyMapper"> |
| | | <!-- éç¨æ¥è¯¢æ å°ç»æ --> |
| | | <resultMap id="plDockingClassifyResultMap" type="com.vci.ubcs.code.webservice.entity.DockingPreClassify"> |
| | | <result column="OID" property="oid"/> |
| | | <result column="REVISIONOID" property="revisionOid"/> |
| | | <result column="NAMEOID" property="nameOid"/> |
| | | <result column="BTMNAME" property="btmname"/> |
| | | <result column="LASTR" property="lastR"/> |
| | | <result column="FIRSTR" property="firstR"/> |
| | | <result column="LASTV" property="lastV"/> |
| | | <result column="FIRSTV" property="firstV"/> |
| | | <result column="CREATOR" property="creator"/> |
| | | <result column="CREATETIME" property="createTime"/> |
| | | <result column="LASTMODIFIER" property="lastModifier"/> |
| | | <result column="LASTMODIFYTIME" property="lastModifyTime"/> |
| | | <result column="REVISIONRULE" property="revisionRule"/> |
| | | <result column="VERSIONRULE" property="versionRule"/> |
| | | <result column="REVISIONSEQ" property="revisionSeq"/> |
| | | <result column="REVISIONVALUE" property="revisionValue"/> |
| | | <result column="VERSIONSEQ" property="versionSeq"/> |
| | | <result column="VERSIONVALUE" property="versionValue"/> |
| | | <result column="LCTID" property="lctid"/> |
| | | <result column="LCSTATUS" property="lcStatus"/> |
| | | <result column="TS" property="ts"/> |
| | | <result column="ID" property="id"/> |
| | | <result column="NAME" property="name"/> |
| | | <result column="DESCRIPTION" property="description"/> |
| | | <result column="OWNER" property="owner"/> |
| | | <result column="COPYFROMVERSION" property="copyFromVersion"/> |
| | | <result column="CLASSNAME" property="className"/> |
| | | <result column="NODELINK" property="nodeLink"/> |
| | | <result column="NODELINKNAME" property="getNodeLinkName"/> |
| | | <result column="PID" property="pid"/> |
| | | </resultMap> |
| | | <select id="selectCompanyGroupClassifyVOByTree" resultMap="plDockingClassifyResultMap"> |
| | | select codeclassify0.OID as oid, |
| | | codeclassify0.REVISIONOID as revisionoid, |
| | | codeclassify0.NAMEOID as nameOid, |
| | | codeclassify0.BTMNAME as btmname, |
| | | codeclassify0.LASTR as lastr, |
| | | codeclassify0.FIRSTR as firstr, |
| | | codeclassify0.LASTV as lastv, |
| | | codeclassify0.FIRSTV as firstv, |
| | | codeclassify0.CREATOR as creator, |
| | | codeclassify0.CREATETIME as createtime, |
| | | codeclassify0.LASTMODIFIER as lastmodifier, |
| | | codeclassify0.LASTMODIFYTIME as lastmodifytime, |
| | | codeclassify0.REVISIONRULE as revisionrule, |
| | | codeclassify0.VERSIONRULE as versionrule, |
| | | codeclassify0.REVISIONSEQ as revisionseq, |
| | | codeclassify0.REVISIONVALUE as revisionvalue, |
| | | codeclassify0.VERSIONSEQ as versionseq, |
| | | codeclassify0.VERSIONVALUE as versionvalue, |
| | | codeclassify0.LCTID as lctid, |
| | | codeclassify0.LCSTATUS as lcstatus, |
| | | codeclassify0.OID as oid, |
| | | codeclassify0.TS as ts, |
| | | codeclassify0.DESCRIPTION as description, |
| | | codeclassify0.OWNER as owner, |
| | | codeclassify0.COPYFROMVERSION as copyfromversion, |
| | | codeclassify0.ID as id, |
| | | codeclassify0.NAME as name, |
| | | codeclassify0.CLASSNAME as classname, |
| | | codeclassify0.NODELINK as nodelink, |
| | | codeclassify0.NODELINKNAME as nodelinkname, |
| | | codeclassify0.PID as pid |
| | | from PL_CODE_JCLASSIFY codeclassify0 |
| | | <!--<where>--> |
| | | <if test="oid != null and oid != ''"> |
| | | start with |
| | | codeclassify0.pid = '${oid}' |
| | | connect by prior codeclassify0.oid =codeclassify0.pid |
| | | </if> |
| | | <!-- <if test="oid = null"> |
| | | codeclassify0.pid is null |
| | | </if>--> |
| | | <!--</where>--> |
| | | |
| | | order by id asc |
| | | </select> |
| | | |
| | | <select id="checkHasChild" resultType="java.lang.Boolean"> |
| | | select count(oid) from PL_CODE_JCLASSIFY where pid = #{oid} |
| | | </select> |
| | | </mapper> |
ÎļþÃû´Ó Source/UBCS/ubcs-service/ubcs-code/src/main/resources/mapper/DockingPreMetaAttrMapper.xml ÐÞ¸Ä |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.vci.ubcs.code.mapper.DockingPreMetaAttrMapper"> |
| | | <mapper namespace="com.vci.ubcs.code.webservice.mapper.DockingPreMetaAttrMapper"> |
| | | <!-- éç¨æ¥è¯¢æ å°ç»æ --> |
| | | <resultMap id="DockingPreAttrMappingResultMap" type="com.vci.ubcs.code.entity.DockingPreMetaAttr"> |
| | | <resultMap id="plDockingPreMetaAttrResultMap" type="com.vci.ubcs.code.webservice.entity.DockingPreMetaAttr"> |
| | | <result column="OID" property="oid"/> |
| | | <result column="REVISIONOID" property="revisionOid"/> |
| | | <result column="NAMEOID" property="nameOid"/> |
ÎļþÃû´Ó Source/UBCS/ubcs-service/ubcs-code/src/main/resources/mapper/DockingPreViewMapper.xml ÐÞ¸Ä |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.vci.ubcs.code.mapper.DockingPreViewModelMapper"> |
| | | <mapper namespace="com.vci.ubcs.code.webservice.mapper.DockingPreViewModelMapper"> |
| | | <!-- éç¨æ¥è¯¢æ å°ç»æ --> |
| | | <resultMap id="DockingPreAttrMappingResultMap" type="com.vci.ubcs.code.entity.DockingPreViewModel"> |
| | | <resultMap id="plDockingPreViewModelResultMap" type="com.vci.ubcs.code.webservice.entity.DockingPreViewModel"> |
| | | <result column="OID" property="oid"/> |
| | | <result column="REVISIONOID" property="revisionOid"/> |
| | | <result column="NAMEOID" property="nameOid"/> |
| | |
| | | 2023-05-20 00:08:12,304 INFO [nacos-grpc-client-executor-localhost-1081] c.alibaba.nacos.common.remote.client [LoggerUtils.java : 60] [3e635850-c2bd-4d08-b6fd-e5343c60783f] Receive server push request, request = ClientDetectionRequest, requestId = 140 |
| | | 2023-05-20 00:08:12,403 INFO [nacos-grpc-client-executor-localhost-1081] c.alibaba.nacos.common.remote.client [LoggerUtils.java : 60] [3e635850-c2bd-4d08-b6fd-e5343c60783f] Ack server push request, request = ClientDetectionRequest, requestId = 140 |
| | | 2023-05-20 00:48:54,086 WARN [XNIO-1 task-2] o.s.b.a.health.HealthEndpointSupport [HealthEndpointSupport.java : 181] Health contributor org.springframework.boot.actuate.autoconfigure.health.HealthEndpointConfiguration$AdaptedReactiveHealthContributors$1 (redis) took 336256ms to respond |
| | | 2023-05-20 00:48:54,145 INFO [lettuce-eventExecutorLoop-1-15] i.l.core.protocol.ConnectionWatchdog [AbstractInternalLogger.java : 171] Reconnecting, last destination was /1.12.225.193:6379 |
| | | 2023-05-20 00:48:54,382 INFO [lettuce-nioEventLoop-6-3] i.l.c.protocol.ReconnectionHandler [ReconnectionHandler.java : 174] Reconnected to 1.12.225.193:6379 |
| | | 2023-05-20 00:48:56,127 INFO [nacos-grpc-client-executor-localhost-1093] c.alibaba.nacos.common.remote.client [LoggerUtils.java : 60] [c279855f-5634-4159-84ec-09347150fd37_config-0] Receive server push request, request = ClientDetectionRequest, requestId = 172 |
| | | 2023-05-20 00:48:56,130 INFO [nacos-grpc-client-executor-localhost-1084] c.alibaba.nacos.common.remote.client [LoggerUtils.java : 60] [3e635850-c2bd-4d08-b6fd-e5343c60783f] Receive server push request, request = ClientDetectionRequest, requestId = 176 |
| | | 2023-05-20 00:48:56,130 INFO [nacos-grpc-client-executor-localhost-1084] c.alibaba.nacos.common.remote.client [LoggerUtils.java : 60] [3e635850-c2bd-4d08-b6fd-e5343c60783f] Ack server push request, request = ClientDetectionRequest, requestId = 176 |
| | | 2023-05-20 00:48:56,131 INFO [nacos-grpc-client-executor-localhost-1093] c.alibaba.nacos.common.remote.client [LoggerUtils.java : 60] [c279855f-5634-4159-84ec-09347150fd37_config-0] Ack server push request, request = ClientDetectionRequest, requestId = 172 |
| | | 2023-05-20 00:49:14,980 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | 2023-05-30 18:40:10,251 INFO [background-preinit] o.h.validator.internal.util.Version [Version.java : 21] HV000001: Hibernate Validator 6.2.3.Final |
| | | 2023-05-30 18:40:11,223 INFO [main] c.a.n.p.a.s.c.ClientAuthPluginManager [ClientAuthPluginManager.java : 56] [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.impl.NacosClientAuthServiceImpl success. |
| | | 2023-05-30 18:40:11,224 INFO [main] c.a.n.p.a.s.c.ClientAuthPluginManager [ClientAuthPluginManager.java : 56] [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.ram.RamClientAuthServiceImpl success. |
| | | 2023-05-30 18:40:16,558 WARN [main] c.a.c.n.c.NacosPropertySourceBuilder [NacosPropertySourceBuilder.java : 87] Ignore the empty nacos configuration and get it based on dataId[ubcs-xxljob] & group[DEFAULT_GROUP] |
| | | 2023-05-30 18:40:16,568 WARN [main] c.a.c.n.c.NacosPropertySourceBuilder [NacosPropertySourceBuilder.java : 87] Ignore the empty nacos configuration and get it based on dataId[ubcs-xxljob.yaml] & group[DEFAULT_GROUP] |
| | | 2023-05-30 18:40:16,576 WARN [main] c.a.c.n.c.NacosPropertySourceBuilder [NacosPropertySourceBuilder.java : 87] Ignore the empty nacos configuration and get it based on dataId[ubcs-xxljob-dev.yaml] & group[DEFAULT_GROUP] |
| | | 2023-05-30 18:40:16,579 INFO [main] o.s.c.b.c.PropertySourceBootstrapConfiguration [PropertySourceBootstrapConfiguration.java : 109] Located property source: [BootstrapPropertySource {name='bootstrapProperties-ubcs-xxljob-dev.yaml,DEFAULT_GROUP'}, BootstrapPropertySource {name='bootstrapProperties-ubcs-xxljob.yaml,DEFAULT_GROUP'}, BootstrapPropertySource {name='bootstrapProperties-ubcs-xxljob,DEFAULT_GROUP'}, BootstrapPropertySource {name='bootstrapProperties-ubcs-dev.yaml,DEFAULT_GROUP'}, BootstrapPropertySource {name='bootstrapProperties-ubcs.yaml,DEFAULT_GROUP'}] |
| | | 2023-05-30 18:40:16,616 INFO [main] c.v.ubcs.job.executor.JobApplication [SpringApplication.java : 640] The following 1 profile is active: "dev" |
| | | 2023-05-30 18:40:18,929 INFO [main] o.s.d.r.c.RepositoryConfigurationDelegate [RepositoryConfigurationDelegate.java : 262] Multiple Spring Data modules found, entering strict repository configuration mode |
| | | 2023-05-30 18:40:18,932 INFO [main] o.s.d.r.c.RepositoryConfigurationDelegate [RepositoryConfigurationDelegate.java : 132] Bootstrapping Spring Data Redis repositories in DEFAULT mode. |
| | | 2023-05-30 18:40:18,971 INFO [main] o.s.d.r.c.RepositoryConfigurationDelegate [RepositoryConfigurationDelegate.java : 201] Finished Spring Data repository scanning in 11 ms. Found 0 Redis repository interfaces. |
| | | 2023-05-30 18:40:19,425 INFO [main] o.s.cloud.context.scope.GenericScope [GenericScope.java : 283] BeanFactory id=8a87525c-4e09-336f-9e65-667cebc7cd92 |
| | | 2023-05-30 18:40:19,434 INFO [main] o.s.c.l.p.BladePropertySourcePostProcessor [BladePropertySourcePostProcessor.java : 150] BladePropertySourcePostProcessor init. |
| | | 2023-05-30 18:40:19,459 INFO [main] o.s.c.l.p.BladePropertySourcePostProcessor [BladePropertySourcePostProcessor.java : 62] BladePropertySourcePostProcessor process @BladePropertySource bean. |
| | | 2023-05-30 18:40:19,520 WARN [main] o.s.c.l.p.BladePropertySourcePostProcessor [BladePropertySourcePostProcessor.java : 67] Not found @BladePropertySource on spring bean class. |
| | | 2023-05-30 18:40:19,888 INFO [main] o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker [PostProcessorRegistrationDelegate.java : 376] Bean 'org.springframework.cloud.commons.config.CommonsConfigAutoConfiguration' of type [org.springframework.cloud.commons.config.CommonsConfigAutoConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) |
| | | 2023-05-30 18:40:19,893 INFO [main] o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker [PostProcessorRegistrationDelegate.java : 376] Bean 'org.springframework.cloud.client.loadbalancer.LoadBalancerDefaultMappingsProviderAutoConfiguration' of type [org.springframework.cloud.client.loadbalancer.LoadBalancerDefaultMappingsProviderAutoConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) |
| | | 2023-05-30 18:40:19,895 INFO [main] o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker [PostProcessorRegistrationDelegate.java : 376] Bean 'loadBalancerClientsDefaultsMappingsProvider' of type [org.springframework.cloud.client.loadbalancer.LoadBalancerDefaultMappingsProviderAutoConfiguration$$Lambda$490/425842522] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) |
| | | 2023-05-30 18:40:19,899 INFO [main] o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker [PostProcessorRegistrationDelegate.java : 376] Bean 'defaultsBindHandlerAdvisor' of type [org.springframework.cloud.commons.config.DefaultsBindHandlerAdvisor] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) |
| | | 2023-05-30 18:40:19,962 INFO [main] o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker [PostProcessorRegistrationDelegate.java : 376] Bean 'spring.cloud.sentinel-com.alibaba.cloud.sentinel.SentinelProperties' of type [com.alibaba.cloud.sentinel.SentinelProperties] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) |
| | | 2023-05-30 18:40:19,970 INFO [main] o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker [PostProcessorRegistrationDelegate.java : 376] Bean 'com.alibaba.cloud.sentinel.custom.SentinelAutoConfiguration' of type [com.alibaba.cloud.sentinel.custom.SentinelAutoConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) |
| | | 2023-05-30 18:40:20,334 WARN [main] io.undertow.websockets.jsr [Bootstrap.java : 68] UT026010: Buffer pool was not set on WebSocketDeploymentInfo, the default pool will be used |
| | | 2023-05-30 18:40:20,380 INFO [main] io.undertow.servlet [ServletContextImpl.java : 382] Initializing Spring embedded WebApplicationContext |
| | | 2023-05-30 18:40:20,381 INFO [main] o.s.b.w.s.c.ServletWebServerApplicationContext [ServletWebServerApplicationContext.java : 292] Root WebApplicationContext: initialization completed in 3723 ms |
| | | 2023-05-30 18:40:20,880 INFO [main] c.v.u.j.executor.config.XxlJobConfig [XxlJobConfig.java : 43] >>>>>>>>>>> xxl-job config init. |
| | | 2023-05-30 18:40:20,902 INFO [main] c.x.job.core.executor.XxlJobExecutor [XxlJobExecutor.java : 211] >>>>>>>>>>> xxl-job register jobhandler success, name:demoJobHandler, jobHandler:com.xxl.job.core.handler.impl.MethodJobHandler@111a7973[class com.vci.ubcs.job.executor.jobhandler.SampleXxlJob#demoJobHandler] |
| | | 2023-05-30 18:40:20,903 INFO [main] c.x.job.core.executor.XxlJobExecutor [XxlJobExecutor.java : 211] >>>>>>>>>>> xxl-job register jobhandler success, name:httpJobHandler, jobHandler:com.xxl.job.core.handler.impl.MethodJobHandler@1a2773a8[class com.vci.ubcs.job.executor.jobhandler.SampleXxlJob#httpJobHandler] |
| | | 2023-05-30 18:40:20,903 INFO [main] c.x.job.core.executor.XxlJobExecutor [XxlJobExecutor.java : 211] >>>>>>>>>>> xxl-job register jobhandler success, name:demoJobHandler2, jobHandler:com.xxl.job.core.handler.impl.MethodJobHandler@78b0ec3a[class com.vci.ubcs.job.executor.jobhandler.SampleXxlJob#demoJobHandler2] |
| | | 2023-05-30 18:40:20,903 INFO [main] c.x.job.core.executor.XxlJobExecutor [XxlJobExecutor.java : 211] >>>>>>>>>>> xxl-job register jobhandler success, name:shardingJobHandler, jobHandler:com.xxl.job.core.handler.impl.MethodJobHandler@46612bfc[class com.vci.ubcs.job.executor.jobhandler.SampleXxlJob#shardingJobHandler] |
| | | 2023-05-30 18:40:20,903 INFO [main] c.x.job.core.executor.XxlJobExecutor [XxlJobExecutor.java : 211] >>>>>>>>>>> xxl-job register jobhandler success, name:commandJobHandler, jobHandler:com.xxl.job.core.handler.impl.MethodJobHandler@4f213a2[class com.vci.ubcs.job.executor.jobhandler.SampleXxlJob#commandJobHandler] |
| | | 2023-05-30 18:40:21,573 INFO [main] c.a.c.s.SentinelWebMvcConfigurer [SentinelWebMvcConfigurer.java : 52] [Sentinel Starter] register SentinelWebInterceptor with urlPatterns: [/**]. |
| | | 2023-05-30 18:40:21,682 INFO [main] o.s.c.c.v.BladeRequestMappingHandlerMapping [BladeRequestMappingHandlerMapping.java : 99] Mapped "{ [/error], produces [text/html]}" onto org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController#errorHtml(HttpServletRequest, HttpServletResponse) |
| | | 2023-05-30 18:40:21,683 INFO [main] o.s.c.c.v.BladeRequestMappingHandlerMapping [BladeRequestMappingHandlerMapping.java : 99] Mapped "{ [/error]}" onto org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController#error(HttpServletRequest) |
| | | 2023-05-30 18:40:21,684 INFO [main] o.s.c.c.v.BladeRequestMappingHandlerMapping [BladeRequestMappingHandlerMapping.java : 99] Mapped "{GET [/test/testRequest]}" onto com.vci.ubcs.job.executor.controller.TestController#testRequest(String) |
| | | 2023-05-30 18:40:24,382 INFO [main] com.alibaba.nacos.client.naming [InitUtils.java : 62] initializer namespace from System Property : null |
| | | 2023-05-30 18:40:24,385 INFO [main] com.alibaba.nacos.client.naming [InitUtils.java : 66] initializer namespace from System Environment :null |
| | | 2023-05-30 18:40:24,388 INFO [main] com.alibaba.nacos.client.naming [InitUtils.java : 73] initializer namespace from System Property :null |
| | | 2023-05-30 18:40:24,418 INFO [main] c.a.n.p.a.s.c.ClientAuthPluginManager [ClientAuthPluginManager.java : 56] [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.impl.NacosClientAuthServiceImpl success. |
| | | 2023-05-30 18:40:24,420 INFO [main] c.a.n.p.a.s.c.ClientAuthPluginManager [ClientAuthPluginManager.java : 56] [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.ram.RamClientAuthServiceImpl success. |
| | | 2023-05-30 18:40:24,440 INFO [main] c.alibaba.nacos.common.remote.client [RpcClientFactory.java : 95] [RpcClientFactory] create a new rpc client of 8db2c736-5dfa-4c32-b8c9-fa6c3ddacbb9 |
| | | 2023-05-30 18:40:24,441 INFO [main] c.alibaba.nacos.common.remote.client [LoggerUtils.java : 60] [8db2c736-5dfa-4c32-b8c9-fa6c3ddacbb9] RpcClient init label, labels = {module=naming, source=sdk} |
| | | 2023-05-30 18:40:24,448 INFO [main] c.alibaba.nacos.common.remote.client [LoggerUtils.java : 60] [8db2c736-5dfa-4c32-b8c9-fa6c3ddacbb9] RpcClient init, ServerListFactory = com.alibaba.nacos.client.naming.core.ServerListManager |
| | | 2023-05-30 18:40:24,449 INFO [main] c.alibaba.nacos.common.remote.client [LoggerUtils.java : 60] [8db2c736-5dfa-4c32-b8c9-fa6c3ddacbb9] Registry connection listener to current client:com.alibaba.nacos.client.naming.remote.gprc.redo.NamingGrpcRedoService |
| | | 2023-05-30 18:40:24,451 INFO [main] c.alibaba.nacos.common.remote.client [LoggerUtils.java : 60] [8db2c736-5dfa-4c32-b8c9-fa6c3ddacbb9] Register server push request handler:com.alibaba.nacos.client.naming.remote.gprc.NamingPushRequestHandler |
| | | 2023-05-30 18:40:24,452 INFO [main] c.alibaba.nacos.common.remote.client [LoggerUtils.java : 60] [8db2c736-5dfa-4c32-b8c9-fa6c3ddacbb9] Try to connect to server on start up, server: {serverIp = '127.0.0.1', server main port = 8848} |
| | | 2023-05-30 18:40:24,593 INFO [main] c.alibaba.nacos.common.remote.client [LoggerUtils.java : 60] [8db2c736-5dfa-4c32-b8c9-fa6c3ddacbb9] Success to connect to server [127.0.0.1:8848] on start up, connectionId = 1685443224475_127.0.0.1_63184 |
| | | 2023-05-30 18:40:24,596 INFO [com.alibaba.nacos.client.remote.worker] c.alibaba.nacos.common.remote.client [LoggerUtils.java : 60] [8db2c736-5dfa-4c32-b8c9-fa6c3ddacbb9] Notify connected event to listeners. |
| | | 2023-05-30 18:40:24,596 INFO [main] c.alibaba.nacos.common.remote.client [LoggerUtils.java : 60] [8db2c736-5dfa-4c32-b8c9-fa6c3ddacbb9] Register server push request handler:com.alibaba.nacos.common.remote.client.RpcClient$ConnectResetRequestHandler |
| | | 2023-05-30 18:40:24,601 INFO [com.alibaba.nacos.client.remote.worker] com.alibaba.nacos.client.naming [NamingGrpcRedoService.java : 76] Grpc connection connect |
| | | 2023-05-30 18:40:24,602 INFO [main] c.alibaba.nacos.common.remote.client [LoggerUtils.java : 60] [8db2c736-5dfa-4c32-b8c9-fa6c3ddacbb9] Register server push request handler:com.alibaba.nacos.common.remote.client.RpcClient$$Lambda$376/700837405 |
| | | 2023-05-30 18:40:25,034 INFO [main] o.s.b.a.e.web.EndpointLinksResolver [EndpointLinksResolver.java : 58] Exposing 20 endpoint(s) beneath base path '/actuator' |
| | | 2023-05-30 18:40:27,551 INFO [main] o.s.b.f.a.AutowiredAnnotationBeanPostProcessor [AutowiredAnnotationBeanPostProcessor.java : 367] Inconsistent constructor declaration on bean with name 'org.springblade.core.launch.server.ServerInfo': single autowire-marked constructor flagged as optional - this constructor is effectively required since there is no default constructor to fall back to: public org.springblade.core.launch.server.ServerInfo(org.springframework.boot.autoconfigure.web.ServerProperties) |
| | | 2023-05-30 18:40:29,465 WARN [main] o.s.c.l.c.LoadBalancerCacheAutoConfiguration$LoadBalancerCaffeineWarnLogger [LoadBalancerCacheAutoConfiguration.java : 82] Spring Cloud LoadBalancer is currently working with the default cache. While this cache implementation is useful for development and tests, it's recommended to use Caffeine cache in production.You can switch to using Caffeine cache, by adding it and org.springframework.cache.caffeine.CaffeineCacheManager to the classpath. |
| | | 2023-05-30 18:40:29,562 INFO [main] c.x.r.r.p.XxlRpcProviderFactory [XxlRpcProviderFactory.java : 197] >>>>>>>>>>> xxl-rpc, provider factory add service success. serviceKey = com.xxl.job.core.biz.ExecutorBiz, serviceBean = class com.xxl.job.core.biz.impl.ExecutorBizImpl |
| | | 2023-05-30 18:40:30,731 INFO [main] com.alibaba.nacos.client.naming [NamingClientProxyDelegate.java : 141] [SUBSCRIBE-SERVICE] service:ubcs-xxljob, group:DEFAULT_GROUP, clusters:DEFAULT |
| | | 2023-05-30 18:40:30,761 INFO [main] com.alibaba.nacos.client.naming [ServiceInfoHolder.java : 181] init new ips(0) service: DEFAULT_GROUP@@ubcs-xxljob@@DEFAULT -> [] |
| | | 2023-05-30 18:40:30,784 INFO [main] com.alibaba.nacos.client.naming [ServiceInfoHolder.java : 166] current ips:(0) service: DEFAULT_GROUP@@ubcs-xxljob@@DEFAULT -> [] |
| | | 2023-05-30 18:40:30,794 INFO [Thread-51] com.xxl.rpc.remoting.net.Server [NettyHttpServer.java : 66] >>>>>>>>>>> xxl-rpc remoting server start success, nettype = com.xxl.rpc.remoting.net.impl.netty_http.server.NettyHttpServer, port = 7018 |
| | | 2023-05-30 18:40:30,822 INFO [main] io.undertow [Undertow.java : 120] starting server: Undertow - 2.2.18.Final |
| | | 2023-05-30 18:40:30,844 INFO [main] org.xnio [Xnio.java : 95] XNIO version 3.8.7.Final |
| | | 2023-05-30 18:40:30,881 INFO [main] org.xnio.nio [NioXnio.java : 58] XNIO NIO Implementation Version 3.8.7.Final |
| | | 2023-05-30 18:40:31,028 INFO [main] org.jboss.threads [Version.java : 52] JBoss Threads version 3.1.0.Final |
| | | 2023-05-30 18:40:31,159 INFO [main] o.s.b.w.e.undertow.UndertowWebServer [UndertowWebServer.java : 119] Undertow started on port(s) 36009 (http) |
| | | 2023-05-30 18:40:31,170 INFO [main] com.alibaba.nacos.client.naming [NamingGrpcClientProxy.java : 111] [REGISTER-SERVICE] public registering service ubcs-xxljob with instance Instance{instanceId='null', ip='192.168.237.1', port=36009, weight=1.0, healthy=true, enabled=true, ephemeral=true, clusterName='DEFAULT', serviceName='null', metadata={preserved.register.source=SPRING_CLOUD}} |
| | | 2023-05-30 18:40:31,187 INFO [main] c.a.c.n.r.NacosServiceRegistry [NacosServiceRegistry.java : 75] nacos registry, DEFAULT_GROUP ubcs-xxljob 192.168.237.1:36009 register finished |
| | | 2023-05-30 18:40:31,336 INFO [nacos-grpc-client-executor-127.0.0.1-10] c.alibaba.nacos.common.remote.client [LoggerUtils.java : 60] [8db2c736-5dfa-4c32-b8c9-fa6c3ddacbb9] Receive server push request, request = NotifySubscriberRequest, requestId = 1587 |
| | | 2023-05-30 18:40:31,343 INFO [nacos-grpc-client-executor-127.0.0.1-10] com.alibaba.nacos.client.naming [ServiceInfoHolder.java : 181] init new ips(1) service: DEFAULT_GROUP@@ubcs-xxljob -> [{"ip":"192.168.237.1","port":36009,"weight":1.0,"healthy":true,"enabled":true,"ephemeral":true,"clusterName":"DEFAULT","serviceName":"DEFAULT_GROUP@@ubcs-xxljob","metadata":{"preserved.register.source":"SPRING_CLOUD"},"instanceHeartBeatInterval":5000,"instanceHeartBeatTimeOut":15000,"ipDeleteTimeout":30000}] |
| | | 2023-05-30 18:40:31,344 INFO [nacos-grpc-client-executor-127.0.0.1-10] com.alibaba.nacos.client.naming [ServiceInfoHolder.java : 166] current ips:(1) service: DEFAULT_GROUP@@ubcs-xxljob -> [{"ip":"192.168.237.1","port":36009,"weight":1.0,"healthy":true,"enabled":true,"ephemeral":true,"clusterName":"DEFAULT","serviceName":"DEFAULT_GROUP@@ubcs-xxljob","metadata":{"preserved.register.source":"SPRING_CLOUD"},"instanceHeartBeatInterval":5000,"instanceHeartBeatTimeOut":15000,"ipDeleteTimeout":30000}] |
| | | 2023-05-30 18:40:31,346 INFO [nacos-grpc-client-executor-127.0.0.1-10] c.alibaba.nacos.common.remote.client [LoggerUtils.java : 60] [8db2c736-5dfa-4c32-b8c9-fa6c3ddacbb9] Ack server push request, request = NotifySubscriberRequest, requestId = 1587 |
| | | 2023-05-30 18:40:31,760 INFO [com.alibaba.nacos.client.naming.updater.0] com.alibaba.nacos.client.naming [ServiceInfoHolder.java : 234] new ips(1) service: DEFAULT_GROUP@@ubcs-xxljob@@DEFAULT -> [{"ip":"192.168.237.1","port":36009,"weight":1.0,"healthy":true,"enabled":true,"ephemeral":true,"clusterName":"DEFAULT","serviceName":"DEFAULT_GROUP@@ubcs-xxljob","metadata":{"preserved.register.source":"SPRING_CLOUD"},"instanceHeartBeatInterval":5000,"instanceHeartBeatTimeOut":15000,"ipDeleteTimeout":30000}] |
| | | 2023-05-30 18:40:31,762 INFO [com.alibaba.nacos.client.naming.updater.0] com.alibaba.nacos.client.naming [ServiceInfoHolder.java : 166] current ips:(1) service: DEFAULT_GROUP@@ubcs-xxljob@@DEFAULT -> [{"ip":"192.168.237.1","port":36009,"weight":1.0,"healthy":true,"enabled":true,"ephemeral":true,"clusterName":"DEFAULT","serviceName":"DEFAULT_GROUP@@ubcs-xxljob","metadata":{"preserved.register.source":"SPRING_CLOUD"},"instanceHeartBeatInterval":5000,"instanceHeartBeatTimeOut":15000,"ipDeleteTimeout":30000}] |
| | | 2023-05-30 18:40:32,070 INFO [main] o.s.core.launch.StartEventListener [StartEventListener.java : 45] ---[UBCS-XXLJOB]---å¯å¨å®æï¼å½å使ç¨ç端å£:[36009]ï¼ç¯å¢åé:[dev]--- |
| | | 2023-05-30 18:40:32,098 INFO [main] c.v.ubcs.job.executor.JobApplication [StartupInfoLogger.java : 61] Started JobApplication in 23.74 seconds (JVM running for 26.324) |
| | | 2023-05-30 18:40:32,110 INFO [main] c.a.n.client.config.impl.CacheData [CacheData.java : 65] nacos.cache.data.init.snapshot = true |
| | | 2023-05-30 18:40:32,113 INFO [main] c.a.n.c.config.impl.ClientWorker [ClientWorker.java : 373] [fixed-127.0.0.1_8848] [subscribe] ubcs-dev.yaml+DEFAULT_GROUP |
| | | 2023-05-30 18:40:32,115 INFO [main] c.a.n.client.config.impl.CacheData [CacheData.java : 180] [fixed-127.0.0.1_8848] [add-listener] ok, tenant=, dataId=ubcs-dev.yaml, group=DEFAULT_GROUP, cnt=1 |
| | | 2023-05-30 18:40:32,116 INFO [main] c.a.c.n.r.NacosContextRefresher [NacosContextRefresher.java : 105] listening config: dataId=ubcs-dev.yaml, group=DEFAULT_GROUP |
| | | 2023-05-30 18:40:32,117 INFO [main] c.a.n.c.config.impl.ClientWorker [ClientWorker.java : 373] [fixed-127.0.0.1_8848] [subscribe] ubcs-xxljob+DEFAULT_GROUP |
| | | 2023-05-30 18:40:32,117 INFO [main] c.a.n.client.config.impl.CacheData [CacheData.java : 180] [fixed-127.0.0.1_8848] [add-listener] ok, tenant=, dataId=ubcs-xxljob, group=DEFAULT_GROUP, cnt=1 |
| | | 2023-05-30 18:40:32,118 INFO [main] c.a.c.n.r.NacosContextRefresher [NacosContextRefresher.java : 105] listening config: dataId=ubcs-xxljob, group=DEFAULT_GROUP |
| | | 2023-05-30 18:40:32,120 INFO [main] c.a.n.c.config.impl.ClientWorker [ClientWorker.java : 373] [fixed-127.0.0.1_8848] [subscribe] ubcs.yaml+DEFAULT_GROUP |
| | | 2023-05-30 18:40:32,120 INFO [main] c.a.n.client.config.impl.CacheData [CacheData.java : 180] [fixed-127.0.0.1_8848] [add-listener] ok, tenant=, dataId=ubcs.yaml, group=DEFAULT_GROUP, cnt=1 |
| | | 2023-05-30 18:40:32,121 INFO [main] c.a.c.n.r.NacosContextRefresher [NacosContextRefresher.java : 105] listening config: dataId=ubcs.yaml, group=DEFAULT_GROUP |
| | | 2023-05-30 18:40:32,122 INFO [main] c.a.n.c.config.impl.ClientWorker [ClientWorker.java : 373] [fixed-127.0.0.1_8848] [subscribe] ubcs-xxljob.yaml+DEFAULT_GROUP |
| | | 2023-05-30 18:40:32,122 INFO [main] c.a.n.client.config.impl.CacheData [CacheData.java : 180] [fixed-127.0.0.1_8848] [add-listener] ok, tenant=, dataId=ubcs-xxljob.yaml, group=DEFAULT_GROUP, cnt=1 |
| | | 2023-05-30 18:40:32,122 INFO [main] c.a.c.n.r.NacosContextRefresher [NacosContextRefresher.java : 105] listening config: dataId=ubcs-xxljob.yaml, group=DEFAULT_GROUP |
| | | 2023-05-30 18:40:32,123 INFO [main] c.a.n.c.config.impl.ClientWorker [ClientWorker.java : 373] [fixed-127.0.0.1_8848] [subscribe] ubcs-xxljob-dev.yaml+DEFAULT_GROUP |
| | | 2023-05-30 18:40:32,124 INFO [main] c.a.n.client.config.impl.CacheData [CacheData.java : 180] [fixed-127.0.0.1_8848] [add-listener] ok, tenant=, dataId=ubcs-xxljob-dev.yaml, group=DEFAULT_GROUP, cnt=1 |
| | | 2023-05-30 18:40:32,124 INFO [main] c.a.c.n.r.NacosContextRefresher [NacosContextRefresher.java : 105] listening config: dataId=ubcs-xxljob-dev.yaml, group=DEFAULT_GROUP |
| | | 2023-05-30 18:40:32,857 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | java.net.ConnectException: Connection refused: connect |
| | | at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) |
| | | at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:81) |
| | |
| | | at com.xxl.job.core.biz.client.AdminBizClient.registry(AdminBizClient.java:41) |
| | | at com.xxl.job.core.thread.ExecutorRegistryThread$1.run(ExecutorRegistryThread.java:48) |
| | | at java.lang.Thread.run(Thread.java:748) |
| | | 2023-05-20 00:49:14,981 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-20 00:49:47,005 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | 2023-05-30 18:40:32,858 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-30 18:40:32,936 INFO [RMI TCP Connection(5)-192.168.1.46] io.undertow.servlet [ServletContextImpl.java : 382] Initializing Spring DispatcherServlet 'dispatcherServlet' |
| | | 2023-05-30 18:40:32,936 INFO [RMI TCP Connection(5)-192.168.1.46] o.s.web.servlet.DispatcherServlet [FrameworkServlet.java : 525] Initializing Servlet 'dispatcherServlet' |
| | | 2023-05-30 18:40:32,940 INFO [RMI TCP Connection(5)-192.168.1.46] o.s.web.servlet.DispatcherServlet [FrameworkServlet.java : 547] Completed initialization in 4 ms |
| | | 2023-05-30 18:41:04,927 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | java.net.ConnectException: Connection refused: connect |
| | | at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) |
| | | at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:81) |
| | |
| | | at com.xxl.job.core.biz.client.AdminBizClient.registry(AdminBizClient.java:41) |
| | | at com.xxl.job.core.thread.ExecutorRegistryThread$1.run(ExecutorRegistryThread.java:48) |
| | | at java.lang.Thread.run(Thread.java:748) |
| | | 2023-05-20 00:49:47,006 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-20 00:50:19,032 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | 2023-05-30 18:41:04,928 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-30 18:41:36,978 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | java.net.ConnectException: Connection refused: connect |
| | | at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) |
| | | at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:81) |
| | |
| | | at com.xxl.job.core.biz.client.AdminBizClient.registry(AdminBizClient.java:41) |
| | | at com.xxl.job.core.thread.ExecutorRegistryThread$1.run(ExecutorRegistryThread.java:48) |
| | | at java.lang.Thread.run(Thread.java:748) |
| | | 2023-05-20 00:50:19,032 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-20 00:50:51,094 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | 2023-05-30 18:41:36,979 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-30 18:42:09,008 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | java.net.ConnectException: Connection refused: connect |
| | | at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) |
| | | at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:81) |
| | |
| | | at com.xxl.job.core.biz.client.AdminBizClient.registry(AdminBizClient.java:41) |
| | | at com.xxl.job.core.thread.ExecutorRegistryThread$1.run(ExecutorRegistryThread.java:48) |
| | | at java.lang.Thread.run(Thread.java:748) |
| | | 2023-05-20 00:50:51,095 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-20 00:51:23,130 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | 2023-05-30 18:42:09,008 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-30 18:42:41,038 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | java.net.ConnectException: Connection refused: connect |
| | | at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) |
| | | at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:81) |
| | |
| | | at com.xxl.job.core.biz.client.AdminBizClient.registry(AdminBizClient.java:41) |
| | | at com.xxl.job.core.thread.ExecutorRegistryThread$1.run(ExecutorRegistryThread.java:48) |
| | | at java.lang.Thread.run(Thread.java:748) |
| | | 2023-05-20 00:51:23,133 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-20 00:51:55,163 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | 2023-05-30 18:42:41,038 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-30 18:43:13,081 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | java.net.ConnectException: Connection refused: connect |
| | | at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) |
| | | at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:81) |
| | |
| | | at com.xxl.job.core.biz.client.AdminBizClient.registry(AdminBizClient.java:41) |
| | | at com.xxl.job.core.thread.ExecutorRegistryThread$1.run(ExecutorRegistryThread.java:48) |
| | | at java.lang.Thread.run(Thread.java:748) |
| | | 2023-05-20 00:51:55,165 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-20 00:52:27,195 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | 2023-05-30 18:43:13,179 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-30 18:43:45,242 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | java.net.ConnectException: Connection refused: connect |
| | | at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) |
| | | at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:81) |
| | |
| | | at com.xxl.job.core.biz.client.AdminBizClient.registry(AdminBizClient.java:41) |
| | | at com.xxl.job.core.thread.ExecutorRegistryThread$1.run(ExecutorRegistryThread.java:48) |
| | | at java.lang.Thread.run(Thread.java:748) |
| | | 2023-05-20 00:52:27,196 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-20 00:52:59,238 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | 2023-05-30 18:43:45,243 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-30 18:44:17,289 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | java.net.ConnectException: Connection refused: connect |
| | | at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) |
| | | at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:81) |
| | |
| | | at com.xxl.job.core.biz.client.AdminBizClient.registry(AdminBizClient.java:41) |
| | | at com.xxl.job.core.thread.ExecutorRegistryThread$1.run(ExecutorRegistryThread.java:48) |
| | | at java.lang.Thread.run(Thread.java:748) |
| | | 2023-05-20 00:52:59,242 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-20 00:53:31,298 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | 2023-05-30 18:44:17,290 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-30 18:44:49,322 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | java.net.ConnectException: Connection refused: connect |
| | | at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) |
| | | at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:81) |
| | |
| | | at com.xxl.job.core.biz.client.AdminBizClient.registry(AdminBizClient.java:41) |
| | | at com.xxl.job.core.thread.ExecutorRegistryThread$1.run(ExecutorRegistryThread.java:48) |
| | | at java.lang.Thread.run(Thread.java:748) |
| | | 2023-05-20 00:53:31,299 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-20 00:54:03,322 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | 2023-05-30 18:44:49,323 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-30 18:45:21,341 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | java.net.ConnectException: Connection refused: connect |
| | | at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) |
| | | at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:81) |
| | |
| | | at com.xxl.job.core.biz.client.AdminBizClient.registry(AdminBizClient.java:41) |
| | | at com.xxl.job.core.thread.ExecutorRegistryThread$1.run(ExecutorRegistryThread.java:48) |
| | | at java.lang.Thread.run(Thread.java:748) |
| | | 2023-05-20 00:54:03,323 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-20 00:54:35,368 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | 2023-05-30 18:45:21,341 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-30 18:45:53,370 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | java.net.ConnectException: Connection refused: connect |
| | | at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) |
| | | at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:81) |
| | |
| | | at com.xxl.job.core.biz.client.AdminBizClient.registry(AdminBizClient.java:41) |
| | | at com.xxl.job.core.thread.ExecutorRegistryThread$1.run(ExecutorRegistryThread.java:48) |
| | | at java.lang.Thread.run(Thread.java:748) |
| | | 2023-05-20 00:54:35,369 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-20 00:55:07,411 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | 2023-05-30 18:45:53,371 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-30 18:46:25,389 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | java.net.ConnectException: Connection refused: connect |
| | | at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) |
| | | at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:81) |
| | |
| | | at com.xxl.job.core.biz.client.AdminBizClient.registry(AdminBizClient.java:41) |
| | | at com.xxl.job.core.thread.ExecutorRegistryThread$1.run(ExecutorRegistryThread.java:48) |
| | | at java.lang.Thread.run(Thread.java:748) |
| | | 2023-05-20 00:55:07,412 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-20 00:55:39,458 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | 2023-05-30 18:46:25,389 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-30 18:46:57,414 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | java.net.ConnectException: Connection refused: connect |
| | | at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) |
| | | at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:81) |
| | |
| | | at com.xxl.job.core.biz.client.AdminBizClient.registry(AdminBizClient.java:41) |
| | | at com.xxl.job.core.thread.ExecutorRegistryThread$1.run(ExecutorRegistryThread.java:48) |
| | | at java.lang.Thread.run(Thread.java:748) |
| | | 2023-05-20 00:55:39,462 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-20 00:56:11,496 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | 2023-05-30 18:46:57,415 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-30 18:47:29,468 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | java.net.ConnectException: Connection refused: connect |
| | | at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) |
| | | at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:81) |
| | |
| | | at com.xxl.job.core.biz.client.AdminBizClient.registry(AdminBizClient.java:41) |
| | | at com.xxl.job.core.thread.ExecutorRegistryThread$1.run(ExecutorRegistryThread.java:48) |
| | | at java.lang.Thread.run(Thread.java:748) |
| | | 2023-05-20 00:56:11,502 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-20 00:56:43,536 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | 2023-05-30 18:47:29,469 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-30 18:48:01,505 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | java.net.ConnectException: Connection refused: connect |
| | | at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) |
| | | at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:81) |
| | |
| | | at com.xxl.job.core.biz.client.AdminBizClient.registry(AdminBizClient.java:41) |
| | | at com.xxl.job.core.thread.ExecutorRegistryThread$1.run(ExecutorRegistryThread.java:48) |
| | | at java.lang.Thread.run(Thread.java:748) |
| | | 2023-05-20 00:56:43,537 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-20 00:57:15,582 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | 2023-05-30 18:48:01,508 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-30 18:48:33,522 WARN [Thread-2] c.a.n.c.http.HttpClientBeanHolder [HttpClientBeanHolder.java : 108] [HttpClientBeanHolder] Start destroying common HttpClient |
| | | 2023-05-30 18:48:33,523 WARN [Thread-8] c.a.nacos.common.notify.NotifyCenter [NotifyCenter.java : 136] [NotifyCenter] Start destroying Publisher |
| | | 2023-05-30 18:48:33,524 WARN [Thread-8] c.a.nacos.common.notify.NotifyCenter [NotifyCenter.java : 153] [NotifyCenter] Destruction of the end |
| | | 2023-05-30 18:48:33,549 WARN [Thread-2] c.a.n.c.http.HttpClientBeanHolder [HttpClientBeanHolder.java : 114] [HttpClientBeanHolder] Destruction of the end |
| | | 2023-05-30 18:48:33,546 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | java.net.ConnectException: Connection refused: connect |
| | | at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) |
| | | at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:81) |
| | |
| | | at com.xxl.job.core.biz.client.AdminBizClient.registry(AdminBizClient.java:41) |
| | | at com.xxl.job.core.thread.ExecutorRegistryThread$1.run(ExecutorRegistryThread.java:48) |
| | | at java.lang.Thread.run(Thread.java:748) |
| | | 2023-05-20 00:57:15,582 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-20 00:57:47,623 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | java.net.ConnectException: Connection refused: connect |
| | | at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) |
| | | at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:81) |
| | | at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:476) |
| | | at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:218) |
| | | at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:200) |
| | | at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:162) |
| | | at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:394) |
| | | at java.net.Socket.connect(Socket.java:606) |
| | | at sun.net.NetworkClient.doConnect(NetworkClient.java:175) |
| | | at sun.net.www.http.HttpClient.openServer(HttpClient.java:463) |
| | | at sun.net.www.http.HttpClient.openServer(HttpClient.java:558) |
| | | at sun.net.www.http.HttpClient.<init>(HttpClient.java:242) |
| | | at sun.net.www.http.HttpClient.New(HttpClient.java:339) |
| | | at sun.net.www.http.HttpClient.New(HttpClient.java:357) |
| | | at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1226) |
| | | at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1162) |
| | | at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1056) |
| | | at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:990) |
| | | at com.xxl.job.core.util.XxlJobRemotingUtil.postBody(XxlJobRemotingUtil.java:94) |
| | | at com.xxl.job.core.biz.client.AdminBizClient.registry(AdminBizClient.java:41) |
| | | at com.xxl.job.core.thread.ExecutorRegistryThread$1.run(ExecutorRegistryThread.java:48) |
| | | at java.lang.Thread.run(Thread.java:748) |
| | | 2023-05-20 00:57:47,625 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-20 00:58:19,669 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | java.net.ConnectException: Connection refused: connect |
| | | at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) |
| | | at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:81) |
| | | at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:476) |
| | | at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:218) |
| | | at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:200) |
| | | at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:162) |
| | | at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:394) |
| | | at java.net.Socket.connect(Socket.java:606) |
| | | at sun.net.NetworkClient.doConnect(NetworkClient.java:175) |
| | | at sun.net.www.http.HttpClient.openServer(HttpClient.java:463) |
| | | at sun.net.www.http.HttpClient.openServer(HttpClient.java:558) |
| | | at sun.net.www.http.HttpClient.<init>(HttpClient.java:242) |
| | | at sun.net.www.http.HttpClient.New(HttpClient.java:339) |
| | | at sun.net.www.http.HttpClient.New(HttpClient.java:357) |
| | | at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1226) |
| | | at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1162) |
| | | at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1056) |
| | | at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:990) |
| | | at com.xxl.job.core.util.XxlJobRemotingUtil.postBody(XxlJobRemotingUtil.java:94) |
| | | at com.xxl.job.core.biz.client.AdminBizClient.registry(AdminBizClient.java:41) |
| | | at com.xxl.job.core.thread.ExecutorRegistryThread$1.run(ExecutorRegistryThread.java:48) |
| | | at java.lang.Thread.run(Thread.java:748) |
| | | 2023-05-20 00:58:19,670 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-20 00:58:51,705 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | java.net.ConnectException: Connection refused: connect |
| | | at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) |
| | | at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:81) |
| | | at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:476) |
| | | at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:218) |
| | | at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:200) |
| | | at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:162) |
| | | at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:394) |
| | | at java.net.Socket.connect(Socket.java:606) |
| | | at sun.net.NetworkClient.doConnect(NetworkClient.java:175) |
| | | at sun.net.www.http.HttpClient.openServer(HttpClient.java:463) |
| | | at sun.net.www.http.HttpClient.openServer(HttpClient.java:558) |
| | | at sun.net.www.http.HttpClient.<init>(HttpClient.java:242) |
| | | at sun.net.www.http.HttpClient.New(HttpClient.java:339) |
| | | at sun.net.www.http.HttpClient.New(HttpClient.java:357) |
| | | at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1226) |
| | | at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1162) |
| | | at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1056) |
| | | at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:990) |
| | | at com.xxl.job.core.util.XxlJobRemotingUtil.postBody(XxlJobRemotingUtil.java:94) |
| | | at com.xxl.job.core.biz.client.AdminBizClient.registry(AdminBizClient.java:41) |
| | | at com.xxl.job.core.thread.ExecutorRegistryThread$1.run(ExecutorRegistryThread.java:48) |
| | | at java.lang.Thread.run(Thread.java:748) |
| | | 2023-05-20 00:58:51,707 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-20 00:59:23,734 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | java.net.ConnectException: Connection refused: connect |
| | | at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) |
| | | at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:81) |
| | | at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:476) |
| | | at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:218) |
| | | at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:200) |
| | | at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:162) |
| | | at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:394) |
| | | at java.net.Socket.connect(Socket.java:606) |
| | | at sun.net.NetworkClient.doConnect(NetworkClient.java:175) |
| | | at sun.net.www.http.HttpClient.openServer(HttpClient.java:463) |
| | | at sun.net.www.http.HttpClient.openServer(HttpClient.java:558) |
| | | at sun.net.www.http.HttpClient.<init>(HttpClient.java:242) |
| | | at sun.net.www.http.HttpClient.New(HttpClient.java:339) |
| | | at sun.net.www.http.HttpClient.New(HttpClient.java:357) |
| | | at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1226) |
| | | at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1162) |
| | | at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1056) |
| | | at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:990) |
| | | at com.xxl.job.core.util.XxlJobRemotingUtil.postBody(XxlJobRemotingUtil.java:94) |
| | | at com.xxl.job.core.biz.client.AdminBizClient.registry(AdminBizClient.java:41) |
| | | at com.xxl.job.core.thread.ExecutorRegistryThread$1.run(ExecutorRegistryThread.java:48) |
| | | at java.lang.Thread.run(Thread.java:748) |
| | | 2023-05-20 00:59:23,739 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-20 00:59:55,791 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | java.net.ConnectException: Connection refused: connect |
| | | at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) |
| | | at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:81) |
| | | at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:476) |
| | | at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:218) |
| | | at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:200) |
| | | at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:162) |
| | | at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:394) |
| | | at java.net.Socket.connect(Socket.java:606) |
| | | at sun.net.NetworkClient.doConnect(NetworkClient.java:175) |
| | | at sun.net.www.http.HttpClient.openServer(HttpClient.java:463) |
| | | at sun.net.www.http.HttpClient.openServer(HttpClient.java:558) |
| | | at sun.net.www.http.HttpClient.<init>(HttpClient.java:242) |
| | | at sun.net.www.http.HttpClient.New(HttpClient.java:339) |
| | | at sun.net.www.http.HttpClient.New(HttpClient.java:357) |
| | | at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1226) |
| | | at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1162) |
| | | at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1056) |
| | | at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:990) |
| | | at com.xxl.job.core.util.XxlJobRemotingUtil.postBody(XxlJobRemotingUtil.java:94) |
| | | at com.xxl.job.core.biz.client.AdminBizClient.registry(AdminBizClient.java:41) |
| | | at com.xxl.job.core.thread.ExecutorRegistryThread$1.run(ExecutorRegistryThread.java:48) |
| | | at java.lang.Thread.run(Thread.java:748) |
| | | 2023-05-20 00:59:55,792 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-20 01:00:27,825 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | java.net.ConnectException: Connection refused: connect |
| | | at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) |
| | | at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:81) |
| | | at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:476) |
| | | at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:218) |
| | | at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:200) |
| | | at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:162) |
| | | at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:394) |
| | | at java.net.Socket.connect(Socket.java:606) |
| | | at sun.net.NetworkClient.doConnect(NetworkClient.java:175) |
| | | at sun.net.www.http.HttpClient.openServer(HttpClient.java:463) |
| | | at sun.net.www.http.HttpClient.openServer(HttpClient.java:558) |
| | | at sun.net.www.http.HttpClient.<init>(HttpClient.java:242) |
| | | at sun.net.www.http.HttpClient.New(HttpClient.java:339) |
| | | at sun.net.www.http.HttpClient.New(HttpClient.java:357) |
| | | at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1226) |
| | | at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1162) |
| | | at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1056) |
| | | at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:990) |
| | | at com.xxl.job.core.util.XxlJobRemotingUtil.postBody(XxlJobRemotingUtil.java:94) |
| | | at com.xxl.job.core.biz.client.AdminBizClient.registry(AdminBizClient.java:41) |
| | | at com.xxl.job.core.thread.ExecutorRegistryThread$1.run(ExecutorRegistryThread.java:48) |
| | | at java.lang.Thread.run(Thread.java:748) |
| | | 2023-05-20 01:00:27,826 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-20 01:00:59,876 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | java.net.ConnectException: Connection refused: connect |
| | | at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) |
| | | at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:81) |
| | | at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:476) |
| | | at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:218) |
| | | at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:200) |
| | | at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:162) |
| | | at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:394) |
| | | at java.net.Socket.connect(Socket.java:606) |
| | | at sun.net.NetworkClient.doConnect(NetworkClient.java:175) |
| | | at sun.net.www.http.HttpClient.openServer(HttpClient.java:463) |
| | | at sun.net.www.http.HttpClient.openServer(HttpClient.java:558) |
| | | at sun.net.www.http.HttpClient.<init>(HttpClient.java:242) |
| | | at sun.net.www.http.HttpClient.New(HttpClient.java:339) |
| | | at sun.net.www.http.HttpClient.New(HttpClient.java:357) |
| | | at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1226) |
| | | at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1162) |
| | | at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1056) |
| | | at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:990) |
| | | at com.xxl.job.core.util.XxlJobRemotingUtil.postBody(XxlJobRemotingUtil.java:94) |
| | | at com.xxl.job.core.biz.client.AdminBizClient.registry(AdminBizClient.java:41) |
| | | at com.xxl.job.core.thread.ExecutorRegistryThread$1.run(ExecutorRegistryThread.java:48) |
| | | at java.lang.Thread.run(Thread.java:748) |
| | | 2023-05-20 01:00:59,881 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-20 01:01:31,905 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | java.net.ConnectException: Connection refused: connect |
| | | at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) |
| | | at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:81) |
| | | at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:476) |
| | | at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:218) |
| | | at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:200) |
| | | at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:162) |
| | | at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:394) |
| | | at java.net.Socket.connect(Socket.java:606) |
| | | at sun.net.NetworkClient.doConnect(NetworkClient.java:175) |
| | | at sun.net.www.http.HttpClient.openServer(HttpClient.java:463) |
| | | at sun.net.www.http.HttpClient.openServer(HttpClient.java:558) |
| | | at sun.net.www.http.HttpClient.<init>(HttpClient.java:242) |
| | | at sun.net.www.http.HttpClient.New(HttpClient.java:339) |
| | | at sun.net.www.http.HttpClient.New(HttpClient.java:357) |
| | | at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1226) |
| | | at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1162) |
| | | at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1056) |
| | | at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:990) |
| | | at com.xxl.job.core.util.XxlJobRemotingUtil.postBody(XxlJobRemotingUtil.java:94) |
| | | at com.xxl.job.core.biz.client.AdminBizClient.registry(AdminBizClient.java:41) |
| | | at com.xxl.job.core.thread.ExecutorRegistryThread$1.run(ExecutorRegistryThread.java:48) |
| | | at java.lang.Thread.run(Thread.java:748) |
| | | 2023-05-20 01:01:31,906 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-20 01:02:03,944 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | java.net.ConnectException: Connection refused: connect |
| | | at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) |
| | | at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:81) |
| | | at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:476) |
| | | at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:218) |
| | | at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:200) |
| | | at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:162) |
| | | at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:394) |
| | | at java.net.Socket.connect(Socket.java:606) |
| | | at sun.net.NetworkClient.doConnect(NetworkClient.java:175) |
| | | at sun.net.www.http.HttpClient.openServer(HttpClient.java:463) |
| | | at sun.net.www.http.HttpClient.openServer(HttpClient.java:558) |
| | | at sun.net.www.http.HttpClient.<init>(HttpClient.java:242) |
| | | at sun.net.www.http.HttpClient.New(HttpClient.java:339) |
| | | at sun.net.www.http.HttpClient.New(HttpClient.java:357) |
| | | at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1226) |
| | | at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1162) |
| | | at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1056) |
| | | at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:990) |
| | | at com.xxl.job.core.util.XxlJobRemotingUtil.postBody(XxlJobRemotingUtil.java:94) |
| | | at com.xxl.job.core.biz.client.AdminBizClient.registry(AdminBizClient.java:41) |
| | | at com.xxl.job.core.thread.ExecutorRegistryThread$1.run(ExecutorRegistryThread.java:48) |
| | | at java.lang.Thread.run(Thread.java:748) |
| | | 2023-05-20 01:02:03,946 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-20 01:02:35,966 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | java.net.ConnectException: Connection refused: connect |
| | | at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) |
| | | at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:81) |
| | | at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:476) |
| | | at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:218) |
| | | at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:200) |
| | | at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:162) |
| | | at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:394) |
| | | at java.net.Socket.connect(Socket.java:606) |
| | | at sun.net.NetworkClient.doConnect(NetworkClient.java:175) |
| | | at sun.net.www.http.HttpClient.openServer(HttpClient.java:463) |
| | | at sun.net.www.http.HttpClient.openServer(HttpClient.java:558) |
| | | at sun.net.www.http.HttpClient.<init>(HttpClient.java:242) |
| | | at sun.net.www.http.HttpClient.New(HttpClient.java:339) |
| | | at sun.net.www.http.HttpClient.New(HttpClient.java:357) |
| | | at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1226) |
| | | at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1162) |
| | | at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1056) |
| | | at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:990) |
| | | at com.xxl.job.core.util.XxlJobRemotingUtil.postBody(XxlJobRemotingUtil.java:94) |
| | | at com.xxl.job.core.biz.client.AdminBizClient.registry(AdminBizClient.java:41) |
| | | at com.xxl.job.core.thread.ExecutorRegistryThread$1.run(ExecutorRegistryThread.java:48) |
| | | at java.lang.Thread.run(Thread.java:748) |
| | | 2023-05-20 01:02:35,967 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-20 01:03:08,011 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | java.net.ConnectException: Connection refused: connect |
| | | at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) |
| | | at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:81) |
| | | at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:476) |
| | | at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:218) |
| | | at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:200) |
| | | at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:162) |
| | | at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:394) |
| | | at java.net.Socket.connect(Socket.java:606) |
| | | at sun.net.NetworkClient.doConnect(NetworkClient.java:175) |
| | | at sun.net.www.http.HttpClient.openServer(HttpClient.java:463) |
| | | at sun.net.www.http.HttpClient.openServer(HttpClient.java:558) |
| | | at sun.net.www.http.HttpClient.<init>(HttpClient.java:242) |
| | | at sun.net.www.http.HttpClient.New(HttpClient.java:339) |
| | | at sun.net.www.http.HttpClient.New(HttpClient.java:357) |
| | | at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1226) |
| | | at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1162) |
| | | at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1056) |
| | | at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:990) |
| | | at com.xxl.job.core.util.XxlJobRemotingUtil.postBody(XxlJobRemotingUtil.java:94) |
| | | at com.xxl.job.core.biz.client.AdminBizClient.registry(AdminBizClient.java:41) |
| | | at com.xxl.job.core.thread.ExecutorRegistryThread$1.run(ExecutorRegistryThread.java:48) |
| | | at java.lang.Thread.run(Thread.java:748) |
| | | 2023-05-20 01:03:08,012 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-20 01:03:40,042 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | java.net.ConnectException: Connection refused: connect |
| | | at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) |
| | | at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:81) |
| | | at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:476) |
| | | at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:218) |
| | | at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:200) |
| | | at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:162) |
| | | at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:394) |
| | | at java.net.Socket.connect(Socket.java:606) |
| | | at sun.net.NetworkClient.doConnect(NetworkClient.java:175) |
| | | at sun.net.www.http.HttpClient.openServer(HttpClient.java:463) |
| | | at sun.net.www.http.HttpClient.openServer(HttpClient.java:558) |
| | | at sun.net.www.http.HttpClient.<init>(HttpClient.java:242) |
| | | at sun.net.www.http.HttpClient.New(HttpClient.java:339) |
| | | at sun.net.www.http.HttpClient.New(HttpClient.java:357) |
| | | at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1226) |
| | | at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1162) |
| | | at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1056) |
| | | at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:990) |
| | | at com.xxl.job.core.util.XxlJobRemotingUtil.postBody(XxlJobRemotingUtil.java:94) |
| | | at com.xxl.job.core.biz.client.AdminBizClient.registry(AdminBizClient.java:41) |
| | | at com.xxl.job.core.thread.ExecutorRegistryThread$1.run(ExecutorRegistryThread.java:48) |
| | | at java.lang.Thread.run(Thread.java:748) |
| | | 2023-05-20 01:03:40,043 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-20 01:04:12,084 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | java.net.ConnectException: Connection refused: connect |
| | | at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) |
| | | at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:81) |
| | | at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:476) |
| | | at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:218) |
| | | at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:200) |
| | | at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:162) |
| | | at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:394) |
| | | at java.net.Socket.connect(Socket.java:606) |
| | | at sun.net.NetworkClient.doConnect(NetworkClient.java:175) |
| | | at sun.net.www.http.HttpClient.openServer(HttpClient.java:463) |
| | | at sun.net.www.http.HttpClient.openServer(HttpClient.java:558) |
| | | at sun.net.www.http.HttpClient.<init>(HttpClient.java:242) |
| | | at sun.net.www.http.HttpClient.New(HttpClient.java:339) |
| | | at sun.net.www.http.HttpClient.New(HttpClient.java:357) |
| | | at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1226) |
| | | at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1162) |
| | | at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1056) |
| | | at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:990) |
| | | at com.xxl.job.core.util.XxlJobRemotingUtil.postBody(XxlJobRemotingUtil.java:94) |
| | | at com.xxl.job.core.biz.client.AdminBizClient.registry(AdminBizClient.java:41) |
| | | at com.xxl.job.core.thread.ExecutorRegistryThread$1.run(ExecutorRegistryThread.java:48) |
| | | at java.lang.Thread.run(Thread.java:748) |
| | | 2023-05-20 01:04:12,085 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-20 01:04:26,066 WARN [Thread-11] c.a.nacos.common.notify.NotifyCenter [NotifyCenter.java : 136] [NotifyCenter] Start destroying Publisher |
| | | 2023-05-20 01:04:26,066 WARN [Thread-3] c.a.n.c.http.HttpClientBeanHolder [HttpClientBeanHolder.java : 108] [HttpClientBeanHolder] Start destroying common HttpClient |
| | | 2023-05-20 01:04:26,068 WARN [Thread-11] c.a.nacos.common.notify.NotifyCenter [NotifyCenter.java : 153] [NotifyCenter] Destruction of the end |
| | | 2023-05-20 01:04:26,074 WARN [Thread-3] c.a.n.c.http.HttpClientBeanHolder [HttpClientBeanHolder.java : 114] [HttpClientBeanHolder] Destruction of the end |
| | | 2023-05-20 01:04:26,353 INFO [SpringApplicationShutdownHook] io.undertow [Undertow.java : 259] stopping server: Undertow - 2.2.18.Final |
| | | 2023-05-20 01:04:26,453 INFO [SpringApplicationShutdownHook] io.undertow.servlet [ServletContextImpl.java : 382] Destroying Spring FrameworkServlet 'dispatcherServlet' |
| | | 2023-05-20 01:04:26,471 ERROR [SpringApplicationShutdownHook] c.a.cloud.nacos.discovery.NacosWatch [NacosWatch.java : 180] namingService unsubscribe failed, properties:NacosDiscoveryProperties{serverAddr='localhost:8848', username='', password='', endpoint='', namespace='', watchDelay=30000, logName='', service='ubcs-xxljob', weight=1.0, clusterName='DEFAULT', group='DEFAULT_GROUP', namingLoadCacheAtStart='false', metadata={preserved.register.source=SPRING_CLOUD}, registerEnabled=true, ip='192.168.237.1', networkInterface='', port=36009, secure=false, accessKey='', secretKey='', heartBeatInterval=null, heartBeatTimeout=null, ipDeleteTimeout=null, instanceEnabled=true, ephemeral=true, failureToleranceEnabled=false}, ipDeleteTimeout=null, failFast=true} |
| | | 2023-05-30 18:48:33,549 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 54] >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registry, content=null] |
| | | 2023-05-30 18:48:33,720 INFO [SpringApplicationShutdownHook] io.undertow [Undertow.java : 259] stopping server: Undertow - 2.2.18.Final |
| | | 2023-05-30 18:48:33,775 INFO [SpringApplicationShutdownHook] io.undertow.servlet [ServletContextImpl.java : 382] Destroying Spring FrameworkServlet 'dispatcherServlet' |
| | | 2023-05-30 18:48:33,788 ERROR [SpringApplicationShutdownHook] c.a.cloud.nacos.discovery.NacosWatch [NacosWatch.java : 180] namingService unsubscribe failed, properties:NacosDiscoveryProperties{serverAddr='127.0.0.1:8848', username='', password='', endpoint='', namespace='', watchDelay=30000, logName='', service='ubcs-xxljob', weight=1.0, clusterName='DEFAULT', group='DEFAULT_GROUP', namingLoadCacheAtStart='false', metadata={preserved.register.source=SPRING_CLOUD}, registerEnabled=true, ip='192.168.237.1', networkInterface='', port=36009, secure=false, accessKey='', secretKey='', heartBeatInterval=null, heartBeatTimeout=null, ipDeleteTimeout=null, instanceEnabled=true, ephemeral=true, failureToleranceEnabled=false}, ipDeleteTimeout=null, failFast=true} |
| | | java.lang.IllegalStateException: UT015023: This Context has been already destroyed |
| | | at io.undertow.servlet.spec.ServletContextImpl.getDeploymentInfo(ServletContextImpl.java:211) |
| | | at io.undertow.servlet.spec.ServletContextImpl.getInitParameterNames(ServletContextImpl.java:449) |
| | |
| | | at java.lang.Iterable.forEach(Iterable.java:75) |
| | | at org.springframework.boot.SpringApplicationShutdownHook.run(SpringApplicationShutdownHook.java:114) |
| | | at java.lang.Thread.run(Thread.java:748) |
| | | 2023-05-20 01:04:26,486 INFO [Thread-52] com.xxl.rpc.remoting.net.Server [NettyHttpServer.java : 74] >>>>>>>>>>> xxl-rpc remoting server stop. |
| | | 2023-05-20 01:04:28,532 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | 2023-05-30 18:48:33,796 INFO [Thread-51] com.xxl.rpc.remoting.net.Server [NettyHttpServer.java : 74] >>>>>>>>>>> xxl-rpc remoting server stop. |
| | | 2023-05-30 18:48:35,829 ERROR [xxl-job, executor ExecutorRegistryThread] c.x.job.core.util.XxlJobRemotingUtil [XxlJobRemotingUtil.java : 146] Connection refused: connect |
| | | java.net.ConnectException: Connection refused: connect |
| | | at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) |
| | | at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:81) |
| | |
| | | at com.xxl.job.core.biz.client.AdminBizClient.registryRemove(AdminBizClient.java:46) |
| | | at com.xxl.job.core.thread.ExecutorRegistryThread$1.run(ExecutorRegistryThread.java:84) |
| | | at java.lang.Thread.run(Thread.java:748) |
| | | 2023-05-20 01:04:28,533 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 90] >>>>>>>>>>> xxl-job registry-remove fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registryRemove, content=null] |
| | | 2023-05-20 01:04:28,533 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 105] >>>>>>>>>>> xxl-job, executor registry thread destory. |
| | | 2023-05-20 01:04:28,534 INFO [SpringApplicationShutdownHook] com.xxl.rpc.remoting.net.Server [NettyHttpServer.java : 110] >>>>>>>>>>> xxl-rpc remoting server destroy success. |
| | | 2023-05-20 01:04:28,539 INFO [xxl-job, executor TriggerCallbackThread] c.x.j.c.thread.TriggerCallbackThread [TriggerCallbackThread.java : 96] >>>>>>>>>>> xxl-job, executor callback thread destory. |
| | | 2023-05-20 01:04:28,539 INFO [Thread-51] c.x.j.c.thread.TriggerCallbackThread [TriggerCallbackThread.java : 126] >>>>>>>>>>> xxl-job, executor retry callback thread destory. |
| | | 2023-05-20 01:04:28,567 INFO [SpringApplicationShutdownHook] c.a.c.n.r.NacosServiceRegistry [NacosServiceRegistry.java : 94] De-registering from Nacos Server now... |
| | | 2023-05-20 01:04:28,572 WARN [SpringApplicationShutdownHook] o.s.c.a.CommonAnnotationBeanPostProcessor [InitDestroyAnnotationBeanPostProcessor.java : 185] Destroy method on bean with name 'nacosAutoServiceRegistration' threw an exception: java.lang.IllegalStateException: UT015023: This Context has been already destroyed |
| | | 2023-05-20 01:04:28,575 INFO [SpringApplicationShutdownHook] com.alibaba.nacos.client.naming [ServiceInfoHolder.java : 255] com.alibaba.nacos.client.naming.cache.ServiceInfoHolder do shutdown begin |
| | | 2023-05-20 01:04:28,576 INFO [SpringApplicationShutdownHook] com.alibaba.nacos.client.naming [FailoverReactor.java : 140] com.alibaba.nacos.client.naming.backups.FailoverReactor do shutdown begin |
| | | 2023-05-20 01:04:28,577 INFO [SpringApplicationShutdownHook] com.alibaba.nacos.client.naming [FailoverReactor.java : 142] com.alibaba.nacos.client.naming.backups.FailoverReactor do shutdown stop |
| | | 2023-05-20 01:04:28,577 INFO [SpringApplicationShutdownHook] com.alibaba.nacos.client.naming [ServiceInfoHolder.java : 257] com.alibaba.nacos.client.naming.cache.ServiceInfoHolder do shutdown stop |
| | | 2023-05-20 01:04:28,577 INFO [SpringApplicationShutdownHook] com.alibaba.nacos.client.naming [NamingClientProxyDelegate.java : 182] com.alibaba.nacos.client.naming.remote.NamingClientProxyDelegate do shutdown begin |
| | | 2023-05-20 01:04:28,578 INFO [SpringApplicationShutdownHook] com.alibaba.nacos.client.naming [ServiceInfoUpdateService.java : 130] com.alibaba.nacos.client.naming.core.ServiceInfoUpdateService do shutdown begin |
| | | 2023-05-20 01:04:28,911 INFO [SpringApplicationShutdownHook] com.alibaba.nacos.client.naming [ServiceInfoUpdateService.java : 132] com.alibaba.nacos.client.naming.core.ServiceInfoUpdateService do shutdown stop |
| | | 2023-05-20 01:04:28,912 INFO [SpringApplicationShutdownHook] com.alibaba.nacos.client.naming [ServerListManager.java : 192] com.alibaba.nacos.client.naming.core.ServerListManager do shutdown begin |
| | | 2023-05-20 01:04:28,913 WARN [SpringApplicationShutdownHook] com.alibaba.nacos.client.naming [NamingHttpClientManager.java : 74] [NamingHttpClientManager] Start destroying NacosRestTemplate |
| | | 2023-05-20 01:04:28,913 WARN [SpringApplicationShutdownHook] com.alibaba.nacos.client.naming [NamingHttpClientManager.java : 81] [NamingHttpClientManager] Destruction of the end |
| | | 2023-05-20 01:04:28,913 INFO [SpringApplicationShutdownHook] com.alibaba.nacos.client.naming [ServerListManager.java : 197] com.alibaba.nacos.client.naming.core.ServerListManager do shutdown stop |
| | | 2023-05-20 01:04:28,914 INFO [SpringApplicationShutdownHook] com.alibaba.nacos.client.naming [NamingHttpClientProxy.java : 527] com.alibaba.nacos.client.naming.remote.http.NamingHttpClientProxy do shutdown begin |
| | | 2023-05-20 01:04:28,914 INFO [SpringApplicationShutdownHook] com.alibaba.nacos.client.naming [BeatReactor.java : 162] com.alibaba.nacos.client.naming.beat.BeatReactor do shutdown begin |
| | | 2023-05-20 01:04:28,914 INFO [SpringApplicationShutdownHook] com.alibaba.nacos.client.naming [BeatReactor.java : 164] com.alibaba.nacos.client.naming.beat.BeatReactor do shutdown stop |
| | | 2023-05-20 01:04:28,914 WARN [SpringApplicationShutdownHook] com.alibaba.nacos.client.naming [NamingHttpClientManager.java : 74] [NamingHttpClientManager] Start destroying NacosRestTemplate |
| | | 2023-05-20 01:04:28,914 WARN [SpringApplicationShutdownHook] com.alibaba.nacos.client.naming [NamingHttpClientManager.java : 81] [NamingHttpClientManager] Destruction of the end |
| | | 2023-05-20 01:04:28,914 INFO [SpringApplicationShutdownHook] com.alibaba.nacos.client.naming [NamingHttpClientProxy.java : 530] com.alibaba.nacos.client.naming.remote.http.NamingHttpClientProxy do shutdown stop |
| | | 2023-05-20 01:04:28,915 INFO [SpringApplicationShutdownHook] c.alibaba.nacos.common.remote.client [RpcClient.java : 453] Shutdown rpc client, set status to shutdown |
| | | 2023-05-20 01:04:28,915 INFO [SpringApplicationShutdownHook] c.alibaba.nacos.common.remote.client [RpcClient.java : 455] Shutdown client event executor java.util.concurrent.ScheduledThreadPoolExecutor@20397823[Running, pool size = 2, active threads = 2, queued tasks = 0, completed tasks = 0] |
| | | 2023-05-20 01:04:28,916 INFO [SpringApplicationShutdownHook] c.alibaba.nacos.common.remote.client [RpcClient.java : 592] Close current connection 1684500039323_127.0.0.1_55961 |
| | | 2023-05-20 01:04:28,920 INFO [nacos-grpc-client-executor-localhost-1279] c.a.n.c.r.client.grpc.GrpcClient [LoggerUtils.java : 60] [1684500039323_127.0.0.1_55961]Ignore complete event,isRunning:false,isAbandon=false |
| | | 2023-05-20 01:04:28,934 INFO [SpringApplicationShutdownHook] c.a.n.c.r.client.grpc.GrpcClient [GrpcClient.java : 129] Shutdown grpc executor java.util.concurrent.ThreadPoolExecutor@389f1783[Running, pool size = 4, active threads = 0, queued tasks = 0, completed tasks = 1280] |
| | | 2023-05-20 01:04:28,935 INFO [SpringApplicationShutdownHook] com.alibaba.nacos.client.naming [NamingGrpcRedoService.java : 267] Shutdown grpc redo service executor java.util.concurrent.ScheduledThreadPoolExecutor@510facf0[Running, pool size = 1, active threads = 0, queued tasks = 1, completed tasks = 2052] |
| | | 2023-05-20 01:04:28,935 INFO [SpringApplicationShutdownHook] c.a.n.c.a.r.i.CredentialWatcher [CredentialWatcher.java : 105] [null] CredentialWatcher is stopped |
| | | 2023-05-20 01:04:28,936 INFO [SpringApplicationShutdownHook] c.a.n.c.a.r.i.CredentialService [CredentialService.java : 99] [null] CredentialService is freed |
| | | 2023-05-20 01:04:28,936 INFO [SpringApplicationShutdownHook] com.alibaba.nacos.client.naming [NamingClientProxyDelegate.java : 189] com.alibaba.nacos.client.naming.remote.NamingClientProxyDelegate do shutdown stop |
| | | 2023-05-30 18:48:35,831 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 90] >>>>>>>>>>> xxl-job registry-remove fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='blade-xxljob', registryValue='127.0.0.1:7018'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused: connect), for url : http://127.0.0.1:37012/xxl-job-admin/api/registryRemove, content=null] |
| | | 2023-05-30 18:48:35,831 INFO [xxl-job, executor ExecutorRegistryThread] c.x.j.c.t.ExecutorRegistryThread [ExecutorRegistryThread.java : 105] >>>>>>>>>>> xxl-job, executor registry thread destory. |
| | | 2023-05-30 18:48:35,831 INFO [SpringApplicationShutdownHook] com.xxl.rpc.remoting.net.Server [NettyHttpServer.java : 110] >>>>>>>>>>> xxl-rpc remoting server destroy success. |
| | | 2023-05-30 18:48:35,832 INFO [xxl-job, executor TriggerCallbackThread] c.x.j.c.thread.TriggerCallbackThread [TriggerCallbackThread.java : 96] >>>>>>>>>>> xxl-job, executor callback thread destory. |
| | | 2023-05-30 18:48:35,832 INFO [Thread-50] c.x.j.c.thread.TriggerCallbackThread [TriggerCallbackThread.java : 126] >>>>>>>>>>> xxl-job, executor retry callback thread destory. |
| | | 2023-05-30 18:48:35,846 INFO [SpringApplicationShutdownHook] c.a.c.n.r.NacosServiceRegistry [NacosServiceRegistry.java : 94] De-registering from Nacos Server now... |
| | | 2023-05-30 18:48:35,848 WARN [SpringApplicationShutdownHook] o.s.c.a.CommonAnnotationBeanPostProcessor [InitDestroyAnnotationBeanPostProcessor.java : 185] Destroy method on bean with name 'nacosAutoServiceRegistration' threw an exception: java.lang.IllegalStateException: UT015023: This Context has been already destroyed |
| | | 2023-05-30 18:48:35,849 INFO [SpringApplicationShutdownHook] com.alibaba.nacos.client.naming [ServiceInfoHolder.java : 255] com.alibaba.nacos.client.naming.cache.ServiceInfoHolder do shutdown begin |
| | | 2023-05-30 18:48:35,849 INFO [SpringApplicationShutdownHook] com.alibaba.nacos.client.naming [FailoverReactor.java : 140] com.alibaba.nacos.client.naming.backups.FailoverReactor do shutdown begin |
| | | 2023-05-30 18:48:35,850 INFO [SpringApplicationShutdownHook] com.alibaba.nacos.client.naming [FailoverReactor.java : 142] com.alibaba.nacos.client.naming.backups.FailoverReactor do shutdown stop |
| | | 2023-05-30 18:48:35,850 INFO [SpringApplicationShutdownHook] com.alibaba.nacos.client.naming [ServiceInfoHolder.java : 257] com.alibaba.nacos.client.naming.cache.ServiceInfoHolder do shutdown stop |
| | | 2023-05-30 18:48:35,850 INFO [SpringApplicationShutdownHook] com.alibaba.nacos.client.naming [NamingClientProxyDelegate.java : 182] com.alibaba.nacos.client.naming.remote.NamingClientProxyDelegate do shutdown begin |
| | | 2023-05-30 18:48:35,850 INFO [SpringApplicationShutdownHook] com.alibaba.nacos.client.naming [ServiceInfoUpdateService.java : 130] com.alibaba.nacos.client.naming.core.ServiceInfoUpdateService do shutdown begin |
| | | 2023-05-30 18:48:36,172 INFO [SpringApplicationShutdownHook] com.alibaba.nacos.client.naming [ServiceInfoUpdateService.java : 132] com.alibaba.nacos.client.naming.core.ServiceInfoUpdateService do shutdown stop |
| | | 2023-05-30 18:48:36,172 INFO [SpringApplicationShutdownHook] com.alibaba.nacos.client.naming [ServerListManager.java : 192] com.alibaba.nacos.client.naming.core.ServerListManager do shutdown begin |
| | | 2023-05-30 18:48:36,173 WARN [SpringApplicationShutdownHook] com.alibaba.nacos.client.naming [NamingHttpClientManager.java : 74] [NamingHttpClientManager] Start destroying NacosRestTemplate |
| | | 2023-05-30 18:48:36,173 WARN [SpringApplicationShutdownHook] com.alibaba.nacos.client.naming [NamingHttpClientManager.java : 81] [NamingHttpClientManager] Destruction of the end |
| | | 2023-05-30 18:48:36,173 INFO [SpringApplicationShutdownHook] com.alibaba.nacos.client.naming [ServerListManager.java : 197] com.alibaba.nacos.client.naming.core.ServerListManager do shutdown stop |
| | | 2023-05-30 18:48:36,173 INFO [SpringApplicationShutdownHook] com.alibaba.nacos.client.naming [NamingHttpClientProxy.java : 527] com.alibaba.nacos.client.naming.remote.http.NamingHttpClientProxy do shutdown begin |
| | | 2023-05-30 18:48:36,173 INFO [SpringApplicationShutdownHook] com.alibaba.nacos.client.naming [BeatReactor.java : 162] com.alibaba.nacos.client.naming.beat.BeatReactor do shutdown begin |
| | | 2023-05-30 18:48:36,173 INFO [SpringApplicationShutdownHook] com.alibaba.nacos.client.naming [BeatReactor.java : 164] com.alibaba.nacos.client.naming.beat.BeatReactor do shutdown stop |
| | | 2023-05-30 18:48:36,173 WARN [SpringApplicationShutdownHook] com.alibaba.nacos.client.naming [NamingHttpClientManager.java : 74] [NamingHttpClientManager] Start destroying NacosRestTemplate |
| | | 2023-05-30 18:48:36,173 WARN [SpringApplicationShutdownHook] com.alibaba.nacos.client.naming [NamingHttpClientManager.java : 81] [NamingHttpClientManager] Destruction of the end |
| | | 2023-05-30 18:48:36,174 INFO [SpringApplicationShutdownHook] com.alibaba.nacos.client.naming [NamingHttpClientProxy.java : 530] com.alibaba.nacos.client.naming.remote.http.NamingHttpClientProxy do shutdown stop |
| | | 2023-05-30 18:48:36,174 INFO [SpringApplicationShutdownHook] c.alibaba.nacos.common.remote.client [RpcClient.java : 453] Shutdown rpc client, set status to shutdown |
| | | 2023-05-30 18:48:36,175 INFO [SpringApplicationShutdownHook] c.alibaba.nacos.common.remote.client [RpcClient.java : 455] Shutdown client event executor java.util.concurrent.ScheduledThreadPoolExecutor@65207516[Running, pool size = 2, active threads = 2, queued tasks = 0, completed tasks = 0] |
| | | 2023-05-30 18:48:36,175 INFO [SpringApplicationShutdownHook] c.alibaba.nacos.common.remote.client [RpcClient.java : 592] Close current connection 1685443224475_127.0.0.1_63184 |
| | | 2023-05-30 18:48:36,176 INFO [nacos-grpc-client-executor-127.0.0.1-129] c.a.n.c.r.client.grpc.GrpcClient [LoggerUtils.java : 60] [1685443224475_127.0.0.1_63184]Ignore complete event,isRunning:false,isAbandon=false |
| | | 2023-05-30 18:48:36,183 INFO [SpringApplicationShutdownHook] c.a.n.c.r.client.grpc.GrpcClient [GrpcClient.java : 129] Shutdown grpc executor java.util.concurrent.ThreadPoolExecutor@16633451[Running, pool size = 3, active threads = 0, queued tasks = 0, completed tasks = 130] |
| | | 2023-05-30 18:48:36,183 INFO [SpringApplicationShutdownHook] com.alibaba.nacos.client.naming [NamingGrpcRedoService.java : 267] Shutdown grpc redo service executor java.util.concurrent.ScheduledThreadPoolExecutor@427b75af[Running, pool size = 1, active threads = 0, queued tasks = 1, completed tasks = 163] |
| | | 2023-05-30 18:48:36,184 INFO [SpringApplicationShutdownHook] c.a.n.c.a.r.i.CredentialWatcher [CredentialWatcher.java : 105] [null] CredentialWatcher is stopped |
| | | 2023-05-30 18:48:36,184 INFO [SpringApplicationShutdownHook] c.a.n.c.a.r.i.CredentialService [CredentialService.java : 99] [null] CredentialService is freed |
| | | 2023-05-30 18:48:36,184 INFO [SpringApplicationShutdownHook] com.alibaba.nacos.client.naming [NamingClientProxyDelegate.java : 189] com.alibaba.nacos.client.naming.remote.NamingClientProxyDelegate do shutdown stop |
Source/data/applogs/xxl-job/xxl-job-executor-sample-springboot.log.2023-05-20.zip
Source/data/applogs/xxl-job/xxl-job-executor-sample-springboot.log.2023-05-26.zip |