Merge remote-tracking branch 'origin/master'
¶Ô±ÈÐÂÎļþ |
| | |
| | | import request from '@/router/axios'; |
| | | |
| | | export const getPage = (current,size,params) => { |
| | | return request({ |
| | | url: '/api/ubcs-omd/revision-rule/page', |
| | | method: 'get', |
| | | params: { |
| | | ...params, |
| | | current, |
| | | size, |
| | | } |
| | | }) |
| | | } |
| | | |
| | | export const getDetail = (oid) => { |
| | | return request({ |
| | | url: '/api/ubcs-omd/revision-rule/detail', |
| | | method: 'get', |
| | | params: { |
| | | oid: oid |
| | | } |
| | | }) |
| | | } |
| | | |
| | | export const add = (rule) => { |
| | | return request({ |
| | | url: '/api/ubcs-omd/revision-rule/submit', |
| | | method: 'post', |
| | | data: rule |
| | | }) |
| | | } |
| | | |
| | | export const batchAdd = (rules) => { |
| | | return request({ |
| | | url: '/api/ubcs-omd/revision-rule/batch-submit', |
| | | method: 'post', |
| | | data: rules |
| | | }) |
| | | } |
| | | |
| | | export const update = (rule) => { |
| | | return request({ |
| | | url: '/api/ubcs-omd/revision-rule/submit', |
| | | method: 'post', |
| | | data: rule |
| | | }) |
| | | } |
| | | |
| | | export const batchUpdate = (rules) => { |
| | | return request({ |
| | | url: '/api/ubcs-omd/revision-rule/batch-submit', |
| | | method: 'post', |
| | | data: rules |
| | | }) |
| | | } |
| | | |
| | | export const remove = (rule) => { |
| | | return request({ |
| | | url: '/api/ubcs-omd/revision-rule/remove', |
| | | method: 'post', |
| | | data: rule |
| | | }) |
| | | } |
| | | |
| | | export const refList = (currentPage,pageSize,params) => { |
| | | return request({ |
| | | url: '/api/ubcs-omd/revision-rule/ref', |
| | | method: 'get', |
| | | params: { |
| | | ...params, |
| | | currentPage, |
| | | pageSize |
| | | } |
| | | }) |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | import request from '@/router/axios'; |
| | | |
| | | export const getPage = (current,size,params) => { |
| | | return request({ |
| | | url: '/api/ubcs-omd/status/page', |
| | | method: 'get', |
| | | params: { |
| | | ...params, |
| | | current, |
| | | size, |
| | | } |
| | | }) |
| | | } |
| | | |
| | | export const getDetail = (oid) => { |
| | | return request({ |
| | | url: '/api/ubcs-omd/status/detail', |
| | | method: 'get', |
| | | params: { |
| | | oid: oid |
| | | } |
| | | }) |
| | | } |
| | | |
| | | export const add = (rule) => { |
| | | return request({ |
| | | url: '/api/ubcs-omd/status/submit', |
| | | method: 'post', |
| | | data: rule |
| | | }) |
| | | } |
| | | |
| | | export const batchAdd = (rules) => { |
| | | return request({ |
| | | url: '/api/ubcs-omd/status/batch-submit', |
| | | method: 'post', |
| | | data: rules |
| | | }) |
| | | } |
| | | |
| | | export const update = (rule) => { |
| | | return request({ |
| | | url: '/api/ubcs-omd/status/submit', |
| | | method: 'post', |
| | | data: rule |
| | | }) |
| | | } |
| | | |
| | | export const batchUpdate = (rules) => { |
| | | return request({ |
| | | url: '/api/ubcs-omd/status/batch-submit', |
| | | method: 'post', |
| | | data: rules |
| | | }) |
| | | } |
| | | |
| | | export const remove = (rule) => { |
| | | return request({ |
| | | url: '/api/ubcs-omd/status/remove', |
| | | method: 'post', |
| | | data: rule |
| | | }) |
| | | } |
| | | |
| | | export const refList = (currentPage,pageSize,params) => { |
| | | return request({ |
| | | url: '/api/ubcs-omd/status/ref', |
| | | method: 'get', |
| | | params: { |
| | | ...params, |
| | | currentPage, |
| | | pageSize |
| | | } |
| | | }) |
| | | } |
| | |
| | | </el-main> |
| | | <el-dialog :visible="ref.visible" title="仿°æ®åºä¸æ·»å " width="700px" append-to-body @close="dialoghandelfalse"> |
| | | éæ©é¢åï¼ |
| | | <el-select v-model="domain" placeholder="è¯·éæ©" @change="refOnLoad"> |
| | | <el-select v-model="domain" placeholder="è¯·éæ©" @change="refOnLoad" size="small"> |
| | | <el-option v-for="item in domainOptions" :key="item.value" :label="item.label" :value="item.value"> |
| | | </el-option> |
| | | </el-select> |
| | | <div class="sep" style="height:7px"> |
| | | |
| | | </div> |
| | | <avue-crud class="businessCrud" v-model="ref.form" :option="ref.option" :data="ref.data" @selection-change="selectionChange"> |
| | | </avue-crud> |
| | | <span slot="footer" class="dialog-footer"> |
| | |
| | | append-to-body |
| | | @close="closeSubmitDialog" |
| | | width="70%" |
| | | style="height: 115vh;" |
| | | > |
| | | <el-form ref="form" :model="btmType" show-message="true" inline size="medium" label-suffix=":" class="btmTypeForm"> |
| | | |
| | |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="çæ¬è§å" label-width="100px"> |
| | | <el-input v-model="btmType.revisionRuleId" :prefix-icon="icons.revisionRule" class="revisionRule"> |
| | | <el-input v-model="btmType.revisionRuleName" :prefix-icon="icons.revisionRule" class="revisionRule" |
| | | @focus="openRevision" clearable @clear="clearRevision"> |
| | | <i slot="suffix" class="el-input__icon el-icon-search"></i> |
| | | </el-input> |
| | | </el-form-item> |
| | |
| | | <el-input v-model="btmType.description" |
| | | :prefix-icon="icons.desc" |
| | | class="descClass" |
| | | id="descId" |
| | | ></el-input> |
| | | </el-form-item> |
| | | </el-form> |
| | |
| | | |
| | | </avue-crud> |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button @click="submitBtmType">ç¡®å®</el-button> |
| | | <el-button type="primary" @click="submitBtmType">ç¡®å®</el-button> |
| | | <el-button @click="cancleSubmitBtmType">åæ¶</el-button> |
| | | </div> |
| | | |
| | | |
| | | <!-- 屿§æ± çéæ© --> |
| | | <el-dialog title="屿§æ± " |
| | | :visible="attrRef.visible" |
| | | append-to-body |
| | |
| | | <el-button @click="cancleSelectAttr">åæ¶</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | <!-- çæ¬è§åçåç
§ --> |
| | | <el-dialog title="è¯·éæ©çæ¬è§å" |
| | | :visible.sync="revisionRef.visible" |
| | | append-to-body |
| | | width="80%"> |
| | | |
| | | <avue-crud class="revisionRef" |
| | | :option="revisionRef.option" |
| | | :data="revisionRef.data" |
| | | :page.sync="revisionRef.page" |
| | | ref="revisionRef" |
| | | @row-click="revisionClick"> |
| | | <template slot="radio" |
| | | slot-scope="{row}"> |
| | | <el-radio v-model="revisionRef.selectRow" |
| | | :label="row.$index"> |
| | | </el-radio> |
| | | </template> |
| | | </avue-crud> |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button type="primary" @click="confirmRevision">ç¡®å®</el-button> |
| | | <el-button @click="cancelRevision">åæ¶</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | </el-dialog> |
| | | </template> |
| | | |
| | |
| | | |
| | | import { add,update } from '@/api/omd/btmType'; |
| | | import { queryPage } from '@/api/omd/OmdAttribute'; |
| | | import { getPage } from '@/api/omd/revisionRule'; |
| | | export default { |
| | | name: 'BusinessAdd', |
| | | props: { |
| | |
| | | rowKey: 'id', |
| | | tabs: true, |
| | | menu: false, |
| | | addBtn:false, |
| | | highlightCurrentRow: true, |
| | | column: [ |
| | | { |
| | |
| | | { |
| | | label: "é»è®¤å¼", |
| | | prop: "defaultValue", |
| | | cell: 'true', |
| | | align: 'center', |
| | | cell: true |
| | | }, |
| | | { |
| | | label: "说æ", |
| | | prop: "description", |
| | | cell: 'true', |
| | | align: 'center', |
| | | cell:true |
| | | } |
| | |
| | | border: true, |
| | | reserveSelection: true, |
| | | searchMenuSpan:8, |
| | | highlightCurrentRow: true, |
| | | column: [ |
| | | { |
| | | label: 'è±æåç§°', |
| | |
| | | }, |
| | | data: [], |
| | | queryNotIn: null |
| | | } |
| | | }, |
| | | revisionRef: { |
| | | visible: false, |
| | | page: { |
| | | currentPage:1, |
| | | pageSize: 10 |
| | | }, |
| | | selectRow:'', |
| | | searchKey: null, |
| | | option:{ |
| | | height: 360, |
| | | addBtn: false, |
| | | refreshBtn: false, |
| | | columnBtn: false, |
| | | menu: false, |
| | | border: true, |
| | | reserveSelection: true, |
| | | searchMenuSpan:8, |
| | | searchShowBtn: false, |
| | | highlightCurrentRow: true, |
| | | column:[{ |
| | | label: 'éæ©', |
| | | prop: 'radio', |
| | | width: 60, |
| | | hide: false |
| | | }, |
| | | { |
| | | label:'è±æåç§°', |
| | | prop: 'id', |
| | | search:true |
| | | }, |
| | | { |
| | | label:"䏿åç§°", |
| | | prop:"name", |
| | | search:true, |
| | | }, |
| | | { |
| | | label:"è·³è·å符", |
| | | prop: "skipCode" |
| | | }, |
| | | { |
| | | label: "åå§å¼", |
| | | prop:"startCode" |
| | | }, |
| | | { |
| | | label: "æ¥é¿", |
| | | prop: "serialStep" |
| | | }, |
| | | { |
| | | label: "åç¼", |
| | | prop:"prefixCode" |
| | | }, |
| | | { |
| | | label: "åç¼", |
| | | prop: "suffixCode" |
| | | }, |
| | | { |
| | | label: "æè¿°", |
| | | prop:"description", |
| | | type:"textarea" |
| | | } |
| | | ] |
| | | }, |
| | | }, |
| | | } |
| | | }, |
| | | created() { |
| | | |
| | | }, |
| | | methods: { |
| | | // å
³éç»ä»¶å¼¹çª |
| | | closeSubmitDialog(){ |
| | | this.showSubmitDialog = false; |
| | | this.btmType.attributes = []; |
| | |
| | | this.attrRef.selectData = []; |
| | | this.attrRef.queryNotIn = null; |
| | | }, |
| | | // å
³é屿§æ± æ¥è¯¢å¼¹çª |
| | | closeAttrDialog(){ |
| | | this.attrRef.visible = false; |
| | | }, |
| | | // æ·»å |
| | | rowAdd(){ |
| | | this.attrRef.visible = true; |
| | | this.attrRefOnLoad(); |
| | | }, |
| | | // 屿§æ± å è½½ |
| | | attrRefOnLoad(){ |
| | | queryPage(this.attrRef.key,this.attrRef.queryNotIn,this.attrRef.page.currentPage, this.attrRef.page.pageSize).then(res => { |
| | | const data = res.data.data; |
| | |
| | | this.$refs.attrRef.refreshTable(); |
| | | }); |
| | | }, |
| | | // 屿§æ± æ£ç´¢ |
| | | attrRefSearch(form,done){ |
| | | this.attrRef.key = form.key; |
| | | this.attrRefOnLoad(); |
| | | done(); |
| | | this.attrRef.key = null; |
| | | }, |
| | | // 屿§æ± å¾éäºä»¶ |
| | | selectionChange(list){ |
| | | this.attrRef.selectData = list; |
| | | }, |
| | | // ç¡®è®¤å±æ§æ± å¾é |
| | | confirmSelectAttr(){ |
| | | this.btmType.attributes = []; |
| | | this.attrRef.queryNotIn = ""; |
| | |
| | | }); |
| | | this.closeAttrDialog(); |
| | | }, |
| | | // 忶屿§æ± å¾é |
| | | cancleSelectAttr(){ |
| | | this.attrRef.selectData = []; |
| | | this.closeAttrDialog(); |
| | | }, |
| | | // æ·»å ä¸å¡ç±»å |
| | | submitBtmType(){ |
| | | console.log(this.btmType); |
| | | add(this.btmType,true).then(res => { |
| | |
| | | this.$emit('refreshTable'); |
| | | }) |
| | | }, |
| | | // åæ¶æ·»å ä¸å¡ç±»å |
| | | cancleSubmitBtmType(){ |
| | | this.btmType = {}; |
| | | this.btmType.attributes = []; |
| | | this.showSubmitDialog = false; |
| | | }, |
| | | // å·æ°å±æ§å表 |
| | | refreshAttrTable(){ |
| | | this.$nextTick( () => { |
| | | this.$refs.attrTable.refreshTable(); |
| | | }) |
| | | }, |
| | | // |
| | | viewChange(){ |
| | | |
| | | }, |
| | | // å表ç¼è¾ |
| | | cellEditClick(cell){ |
| | | cell.$cellEdit = true; |
| | | }, |
| | | // å表ç¼è¾ä¿å |
| | | cellEditSave(row){ |
| | | this.btmType.attributes[row.$index].name = row.name |
| | | this.btmType.attributes[row.$index].defaultValue = row.defaultValue; |
| | | this.btmType.attributes[row.$index].description = row.description; |
| | | row.$cellEdit = false; |
| | | } |
| | | }, |
| | | // æå¼çæ¬è§ååç
§ |
| | | async openRevision(){ |
| | | await getPage().then(res => { |
| | | this.revisionRef.data = res.data.data.records; |
| | | }); |
| | | this.revisionRef.visible = true; |
| | | }, |
| | | // å
³éçæ¬è§ååç
§å¼¹çª |
| | | closeRevisionDialog(){ |
| | | this.revisionRef.visible = false; |
| | | }, |
| | | // çæ¬è§ååç
§å表æ£ç´¢ |
| | | revisionRefSearch(){ |
| | | |
| | | }, |
| | | // çæ¬è§åéä¸äºä»¶ |
| | | revisionChange(){}, |
| | | // 确认éä¸çæ¬è§å |
| | | confirmRevision(){ |
| | | this.btmType.revisionFlag = true; |
| | | this.btmType.revisionRuleId = this.revisionRef.selectData.id; |
| | | this.btmType.revisionRuleName = this.revisionRef.selectData.name; |
| | | this.btmType.inputRevisionFlag = false; |
| | | this.cancelRevision(); |
| | | }, |
| | | // åæ¶éä¸çæ¬è§å |
| | | cancelRevision(){ |
| | | this.revisionRef.selectRow = ''; |
| | | this.revisionRef.selectData = {}; |
| | | this.closeRevisionDialog(); |
| | | }, |
| | | // çæ¬è§ååé |
| | | revisionClick(row){ |
| | | this.revisionRef.selectRow = row.$index; |
| | | this.revisionRef.selectData = { |
| | | id: row.id, |
| | | name: row.name, |
| | | }; |
| | | }, |
| | | clearRevision(){ |
| | | this.$delete(this.btmType,'revisionFlag'); |
| | | this.$delete(this.btmType,'revisionRuleId'); |
| | | this.$delete(this.btmType,'revisionRuleName'); |
| | | this.$delete(this.btmType,'inputRevisionFlag'); |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | |
| | | <style> |
| | | /* 屿§æ± åç
§å表 */ |
| | | .attrRef > .el-card:nth-of-type(2) > .el-card__body > .avue-crud__menu{ |
| | | display: none !important; |
| | | } |
| | | |
| | | .revisionRef > .el-card:nth-of-type(2) > .el-card__body > .avue-crud__menu{ |
| | | display: none !important; |
| | | } |
| | | |
| | |
| | | .descClass > .el-input__inner { |
| | | width: 57vw |
| | | } |
| | | |
| | | #descId { |
| | | width: 57vw; |
| | | } |
| | | </style> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { getPage,add,update,remove } from '../../api/omd/revisionRule'; |
| | | export default { |
| | | name: "Version", |
| | | data(){ |
| | |
| | | total: 100 |
| | | }, |
| | | data:[ |
| | | { |
| | | name:"æµè¯1", |
| | | tag:"æµè¯", |
| | | char:"æµè¯", |
| | | Initial:"æµè¯", |
| | | Step:"æµè¯", |
| | | prefix:"æµè¯", |
| | | suffix:"æµè¯", |
| | | desc:"æµè¯" |
| | | }, |
| | | { |
| | | name:"æµè¯2", |
| | | tag:"æµè¯", |
| | | char:"æµè¯", |
| | | Initial:"æµè¯", |
| | | Step:"æµè¯", |
| | | prefix:"æµè¯", |
| | | suffix:"æµè¯", |
| | | desc:"æµè¯" |
| | | }, |
| | | { |
| | | name:"æµè¯3", |
| | | tag:"æµè¯", |
| | | char:"æµè¯", |
| | | Initial:"æµè¯", |
| | | Step:"æµè¯", |
| | | prefix:"æµè¯", |
| | | suffix:"æµè¯", |
| | | desc:"æµè¯" |
| | | } |
| | | ], |
| | | form:{}, |
| | | option:{ |
| | |
| | | searchMenuSpan:5, |
| | | column:[ |
| | | { |
| | | label:"åç§°", |
| | | label:'è±æåç§°', |
| | | prop: 'id' |
| | | }, |
| | | { |
| | | label:"䏿åç§°", |
| | | prop:"name", |
| | | search:true, |
| | | }, |
| | | { |
| | | label: "æ ç¾", |
| | | prop:"tag" |
| | | }, |
| | | { |
| | | label:"è·³è·å符", |
| | | prop:"char" |
| | | prop: "skipCode" |
| | | }, |
| | | { |
| | | label: "åå§å¼", |
| | | prop:"Initial" |
| | | prop:"startCode" |
| | | }, |
| | | { |
| | | label:"æ¥é¿", |
| | | prop:"Step" |
| | | label: "æ¥é¿", |
| | | prop: "serialStep" |
| | | }, |
| | | { |
| | | label: "åç¼", |
| | | prop:"prefix" |
| | | prop:"prefixCode" |
| | | }, |
| | | { |
| | | label: "åç¼", |
| | | prop: "suffix" |
| | | prop: "suffixCode" |
| | | }, |
| | | { |
| | | label: "æè¿°", |
| | | prop:"desc", |
| | | prop:"description", |
| | | type:"textarea" |
| | | } |
| | | ] |
| | |
| | | handleSearch(){ |
| | | this.packageSearchBox=true |
| | | }, |
| | | // getList() { |
| | | // this.loading = true; |
| | | // const data = Object.assign({ |
| | | // pageNum: this.page.currentPage, |
| | | // pageSize: this.page.pageSize, |
| | | // }, this.params) |
| | | // this.data = []; |
| | | // getList(data).then(res => { |
| | | // const data = res.data.data |
| | | // this.loading = false; |
| | | // this.page.total = data.total; |
| | | // const result = data.list; |
| | | // this.data = result; |
| | | // }) |
| | | // }, |
| | | getList() { |
| | | this.loading = true; |
| | | getPage(this.page.currentPage,this.page.pageSize,this.params).then(res => { |
| | | const data = res.data.data |
| | | this.loading = false; |
| | | this.page.total = data.total; |
| | | this.data = data.records; |
| | | }) |
| | | }, |
| | | rowSave(row, done, loading) { |
| | | add(Object.assign({ |
| | | createUser: this.userInfo.name |
| | | }, row)).then(() => { |
| | | add(row).then(() => { |
| | | this.$message.success('æ°å¢æå') |
| | | done(); |
| | | this.getList(); |
| | |
| | | }) |
| | | }, |
| | | rowUpdate(row, index, done, loading) { |
| | | update(Object.assign({ |
| | | updateUser: this.userInfo.name |
| | | }, row)).then(() => { |
| | | update(row).then(() => { |
| | | this.$message.success('ä¿®æ¹æå') |
| | | done() |
| | | this.getList(); |
| | |
| | | cancelButtonText: 'åæ¶', |
| | | type: 'warning' |
| | | }).then(() => { |
| | | return del(row.id) |
| | | console.log(row); |
| | | return remove({oid : row.oid}) |
| | | }).then(() => { |
| | | this.$message.success('å 餿å') |
| | | this.getList(); |
| | |
| | | <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"> |
| | | @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> |
| | | <!-- <el-button type="primary" style="margin-left: 10px" @click="addHandle">éæ©</el-button> --> |
| | | <!-- <el-button type="info">åæ¶</el-button> --> |
| | | </div> |
| | | </template> |
| | | <template slot="radio" |
| | | slot-scope="{row}"> |
| | | <el-radio v-model="selectRow" |
| | | :label="row.$index"> |
| | | </el-radio> |
| | | </template> |
| | | </avue-crud> |
| | | <el-dialog :visible.sync="referType.display" append-to-body :title="referType.title" width="1000px"> |
| | | <original-range @rowchange="rowchange"></original-range> |
| | |
| | | currentPage: 1, |
| | | total: 100 |
| | | }, |
| | | selectRow: '', |
| | | data: [ |
| | | |
| | | ], |
| | | option: { |
| | | height: "550px", |
| | | selection: true, |
| | | headerAlign: 'center', |
| | | border: true, |
| | | index: true, |
| | | rowKey: 'id', |
| | | tabs: true, |
| | | column: [ |
| | | highlightCurrentRow: true, |
| | | column: [{ |
| | | label: 'éæ©', |
| | | prop: 'radio', |
| | | width: 60, |
| | | hide: false |
| | | }, |
| | | { |
| | | label: '屿§ç¼å·', |
| | | prop: 'key', |
| | |
| | | }) |
| | | }, |
| | | rowClick(row) { |
| | | this.itemData = row |
| | | this.itemData = row; |
| | | this.selectRow = row.$index; |
| | | |
| | | } |
| | | ,selectBtmType(){ |
| | | this.referType.display = true; |
| | | this.referType.title = "è¯·éæ©" + this.referType.value |
| | | } |
| | | }, |
| | | }, |
| | | } |
| | | </script> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <basic-container> |
| | | <avue-crud ref="crud" |
| | | v-model="form" |
| | | :data="data" |
| | | :option="option" |
| | | :page.sync="page" |
| | | @on-load="getList" |
| | | @row-update="rowUpdate" |
| | | @row-save="rowSave" |
| | | @row-del="rowDel" |
| | | @refresh-change="refreshChange" |
| | | @search-reset="searchChange" |
| | | @search-change="searchChange"> |
| | | <template slot="menuLeft"> |
| | | <el-tooltip class="item" effect="dark" content="æ¥æ¾ç¶ææ± 使ç¨èå´" placement="top"> |
| | | <el-button size="small" |
| | | plain |
| | | type="primary" |
| | | icon="el-icon-zoom-in" |
| | | @click="handleSearch">æ¥ç使ç¨èå´ |
| | | </el-button> |
| | | </el-tooltip> |
| | | </template>> |
| | | </avue-crud> |
| | | <el-dialog title="æ¥ç使ç¨èå´" |
| | | append-to-body |
| | | :visible.sync="packageSearchBox" |
| | | width="1200px"> |
| | | <versionpackage></versionpackage> |
| | | </el-dialog> |
| | | </basic-container> |
| | | |
| | | </template> |
| | | |
| | | <script> |
| | | import { getPage,add,update,remove } from '../../api/omd/status'; |
| | | export default { |
| | | name: "status", |
| | | data(){ |
| | | return { |
| | | //æ¥ç使ç¨èå´ |
| | | packageSearchBox:false, |
| | | //åé¡µæ°æ® |
| | | page: { |
| | | pageSize: 10, |
| | | currentPage: 1, |
| | | total: 100 |
| | | }, |
| | | data:[ |
| | | ], |
| | | form:{}, |
| | | option:{ |
| | | headerAlign:'center', |
| | | align: 'center', |
| | | border: true, |
| | | index: true, |
| | | searchMenuSpan:5, |
| | | column:[ |
| | | { |
| | | label:'è±æåç§°', |
| | | prop: 'id', |
| | | search: true |
| | | }, |
| | | { |
| | | label:"䏿åç§°", |
| | | prop:"name", |
| | | search:true, |
| | | }, |
| | | { |
| | | label: "æè¿°", |
| | | prop:"description", |
| | | type:"textarea" |
| | | } |
| | | ] |
| | | } |
| | | } |
| | | }, |
| | | methods:{ |
| | | handleSearch(){ |
| | | this.packageSearchBox=true |
| | | }, |
| | | getList() { |
| | | this.loading = true; |
| | | getPage(this.page.currentPage,this.page.pageSize,this.params).then(res => { |
| | | const data = res.data.data |
| | | this.loading = false; |
| | | this.page.total = data.total; |
| | | this.data = data.records; |
| | | }) |
| | | }, |
| | | rowSave(row, done, loading) { |
| | | add(row).then(() => { |
| | | this.$message.success('æ°å¢æå') |
| | | done(); |
| | | this.getList(); |
| | | }).catch(() => { |
| | | loading() |
| | | }) |
| | | }, |
| | | rowUpdate(row, index, done, loading) { |
| | | update(row).then(() => { |
| | | this.$message.success('ä¿®æ¹æå') |
| | | done() |
| | | this.getList(); |
| | | }).catch(() => { |
| | | loading() |
| | | }) |
| | | }, |
| | | rowDel(row) { |
| | | this.$confirm('æ¤æä½å°æ°¸ä¹
å é¤, æ¯å¦ç»§ç»?', 'æç¤º', { |
| | | confirmButtonText: 'ç¡®å®', |
| | | cancelButtonText: 'åæ¶', |
| | | type: 'warning' |
| | | }).then(() => { |
| | | console.log(row); |
| | | return remove({oid : row.oid}) |
| | | }).then(() => { |
| | | this.$message.success('å 餿å') |
| | | this.getList(); |
| | | }) |
| | | }, |
| | | searchChange(params, done) { |
| | | if (done) done(); |
| | | this.params = params; |
| | | this.page.currentPage = 1; |
| | | this.getList(); |
| | | this.$message.success('æç´¢æå') |
| | | }, |
| | | refreshChange() { |
| | | this.getList(); |
| | | this.$message.success('å·æ°æå') |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style scoped> |
| | | |
| | | </style> |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.dto; |
| | | |
| | | import com.vci.ubcs.code.vo.pagemodel.BaseModelVO; |
| | | |
| | | /** |
| | | * è®°å½éæå±æ°æ®ç³è¯·id |
| | | * @author xiejun |
| | | * @date 2023-05-22 |
| | | */ |
| | | public class DockingPreApplyFormDTO extends BaseModelVO { |
| | | |
| | | /** |
| | | * ç¦æ¢ä¿®æ¹è¿ä¸ªå¼ |
| | | */ |
| | | private static final long serialVersionUID = 4615707120361431429L; |
| | | /*** |
| | | * éå¢ç¼ç |
| | | */ |
| | | private String code; |
| | | |
| | | /*** |
| | | * å
容 |
| | | */ |
| | | private String content; |
| | | /*** |
| | | *主é®oid |
| | | */ |
| | | private String dataOid; |
| | | /** |
| | | * ä¸å¡å¯¹è±¡ |
| | | */ |
| | | private String dataBtmName; |
| | | /*** |
| | | * æ¶æ¯ |
| | | */ |
| | | private String msg; |
| | | |
| | | public String getCode() { |
| | | return code; |
| | | } |
| | | |
| | | public void setCode(String code) { |
| | | this.code = code; |
| | | } |
| | | |
| | | public String getContent() { |
| | | return content; |
| | | } |
| | | |
| | | public void setContent(String content) { |
| | | this.content = content; |
| | | } |
| | | |
| | | public String getDataOid() { |
| | | return dataOid; |
| | | } |
| | | |
| | | public void setDataOid(String dataOid) { |
| | | this.dataOid = dataOid; |
| | | } |
| | | |
| | | public String getDataBtmName() { |
| | | return dataBtmName; |
| | | } |
| | | |
| | | public void setDataBtmName(String dataBtmName) { |
| | | this.dataBtmName = dataBtmName; |
| | | } |
| | | |
| | | public String getMsg() { |
| | | return msg; |
| | | } |
| | | |
| | | public void setMsg(String msg) { |
| | | this.msg = msg; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "DockingPreApplyCodeFormVO{" + |
| | | "code='" + code + '\'' + |
| | | ", content='" + content + '\'' + |
| | | ", dataOid='" + dataOid + '\'' + |
| | | ", dataBtmName='" + dataBtmName + '\'' + |
| | | ", msg='" + msg + '\'' + |
| | | '}'; |
| | | } |
| | | } |
| | |
| | | |
| | | |
| | | import com.vci.ubcs.code.vo.pagemodel.BaseModelVO; |
| | | import com.vci.ubcs.code.vo.pagemodel.DockingPreAttrRangeVO; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * è®°å½éæå±æ§ä¸ä¸»æ°æ®å±æ§æ å°å
³ç³»å¯¹è±¡ |
| | | * @author xiejun |
| | | * @date 2023-01-06 |
| | | * @date 2023-05-22 |
| | | */ |
| | | public class DockingPreAttrMappingDTO extends BaseModelVO { |
| | | /** |
| | | * åºåå |
| | | */ |
| | | private static final long serialVersionUID = 6020487634341415429L; |
| | | /*** |
| | | * é»è®¤å¼ |
| | | */ |
| | | private String jdefaultValue; |
| | | /*** |
| | | * é»è®¤å¼ |
| | | */ |
| | | private String defaultValue; |
| | | |
| | | /*** |
| | | * é»è®¤å¼ |
| | | */ |
| | | private String jmetaListId; |
| | | /** |
| | | * æºåç±»id |
| | | */ |
| | | private String jsourceClsfId; |
| | | /** |
| | | * æºåç±»åç§° |
| | | */ |
| | | private String jsourceClsfName; |
| | | /** |
| | | * æºå±æ§oid |
| | | */ |
| | | private String jtargetAttrId; |
| | | /*** |
| | | * é»è®¤å¼ |
| | | */ |
| | | private String metaListId; |
| | | /** |
| | | * æºåç±»id |
| | | */ |
| | | private String sourceClassifyId; |
| | | /** |
| | | * æºåç±»åç§° |
| | | */ |
| | | private String sourceClassifyName; |
| | | /** |
| | | * æºå±æ§oid |
| | | */ |
| | | private String targetAttrId; |
| | | |
| | | /** |
| | | * ç®æ 屿§oid |
| | | */ |
| | | private String jtargetClsfId; |
| | | /** |
| | | * ç®æ 屿§oid |
| | | */ |
| | | private String targetClassifyId; |
| | | |
| | | /*** |
| | | * 模æ¿Id |
| | | */ |
| | | private String jviewModeId; |
| | | /*** |
| | | * 模æ¿åç§° |
| | | */ |
| | | private String jviewModeName; |
| | | /*** |
| | | * 模æ¿Id |
| | | */ |
| | | private String viewModeId; |
| | | /*** |
| | | * 模æ¿åç§° |
| | | */ |
| | | private String viewModeName; |
| | | |
| | | /*** |
| | | * ç®æ 屿§å
é¨åç§° |
| | | */ |
| | | private String jtargetAttrKey; |
| | | /*** |
| | | * ç®æ 屿§å
é¨åç§° |
| | | */ |
| | | private String targetAttrKey; |
| | | |
| | | /*** |
| | | * ç®æ 屿§åç§° |
| | | */ |
| | | private String jtargetAttrName; |
| | | /*** |
| | | * ç®æ 屿§åç§° |
| | | */ |
| | | private String targetAttrName; |
| | | |
| | | /*** |
| | | * ç®æ 屿§å
é¨åç§° |
| | | */ |
| | | private String jsourceAttrKey; |
| | | /*** |
| | | * ç®æ 屿§å
é¨åç§° |
| | | */ |
| | | private String sourceAttrKey; |
| | | |
| | | /*** |
| | | * ç®æ 屿§åç§° |
| | | */ |
| | | private String jsourceAttrName; |
| | | /** |
| | | * 屿§åå¼èå´ |
| | | */ |
| | | private List<DockingPreAttrRangeDTO> dockingPreAttrRangeDTOS; |
| | | /*** |
| | | * ç®æ 屿§åç§° |
| | | */ |
| | | private String sourceAttrName; |
| | | /*** |
| | | * è§å¾åç§° |
| | | */ |
| | | private String viewModelName; |
| | | /*** |
| | | * è§å¾åç§° |
| | | */ |
| | | private String viewName; |
| | | /*** |
| | | * ç®æ åç±» |
| | | */ |
| | | private String targetClassifyName; |
| | | |
| | | public String getJdefaultValue() { |
| | | return jdefaultValue; |
| | | } |
| | | private List<DockingPreAttrRangeVO> dockingPreAttrRangeVoList; |
| | | |
| | | public void setJdefaultValue(String jdefaultValue) { |
| | | this.jdefaultValue = jdefaultValue; |
| | | } |
| | | public String getDefaultValue() { |
| | | |
| | | public String getJmetaListId() { |
| | | return jmetaListId; |
| | | } |
| | | return defaultValue; |
| | | } |
| | | |
| | | public void setJmetaListId(String jmetaListId) { |
| | | this.jmetaListId = jmetaListId; |
| | | } |
| | | public void setDefaultValue(String defaultValue) { |
| | | this.defaultValue = defaultValue; |
| | | } |
| | | |
| | | public String getJsourceClsfId() { |
| | | return jsourceClsfId; |
| | | } |
| | | public String getMetaListId() { |
| | | return metaListId; |
| | | } |
| | | |
| | | public void setJsourceClsfId(String jsourceClsfId) { |
| | | this.jsourceClsfId = jsourceClsfId; |
| | | } |
| | | public void setMetaListId(String metaListId) { |
| | | this.metaListId = metaListId; |
| | | } |
| | | |
| | | public String getJsourceClsfName() { |
| | | return jsourceClsfName; |
| | | } |
| | | public String getSourceClassifyId() { |
| | | return sourceClassifyId; |
| | | } |
| | | |
| | | public void setJsourceClsfName(String jsourceClsfName) { |
| | | this.jsourceClsfName = jsourceClsfName; |
| | | } |
| | | public void setSourceClassifyId(String sourceClassifyId) { |
| | | this.sourceClassifyId = sourceClassifyId; |
| | | } |
| | | |
| | | public String getJtargetAttrId() { |
| | | return jtargetAttrId; |
| | | } |
| | | public String getSourceClassifyName() { |
| | | return sourceClassifyName; |
| | | } |
| | | |
| | | public void setJtargetAttrId(String jtargetAttrId) { |
| | | this.jtargetAttrId = jtargetAttrId; |
| | | } |
| | | public void setSourceClassifyName(String sourceClassifyName) { |
| | | this.sourceClassifyName = sourceClassifyName; |
| | | } |
| | | |
| | | public String getJtargetClsfId() { |
| | | return jtargetClsfId; |
| | | } |
| | | public String getTargetAttrId() { |
| | | return targetAttrId; |
| | | } |
| | | |
| | | public void setJtargetClsfId(String jtargetClsfId) { |
| | | this.jtargetClsfId = jtargetClsfId; |
| | | } |
| | | public void setTargetAttrId(String targetAttrId) { |
| | | this.targetAttrId = targetAttrId; |
| | | } |
| | | |
| | | public String getJviewModeId() { |
| | | return jviewModeId; |
| | | } |
| | | public String getTargetClassifyId() { |
| | | return targetClassifyId; |
| | | } |
| | | |
| | | public void setJviewModeId(String jviewModeId) { |
| | | this.jviewModeId = jviewModeId; |
| | | } |
| | | public void setTargetClassifyId(String targetClassifyId) { |
| | | this.targetClassifyId = targetClassifyId; |
| | | } |
| | | |
| | | public String getJviewModeName() { |
| | | return jviewModeName; |
| | | } |
| | | public String getViewModeId() { |
| | | return viewModeId; |
| | | } |
| | | |
| | | public void setJviewModeName(String jviewModeName) { |
| | | this.jviewModeName = jviewModeName; |
| | | } |
| | | public void setViewModeId(String viewModeId) { |
| | | this.viewModeId = viewModeId; |
| | | } |
| | | |
| | | public String getJtargetAttrKey() { |
| | | return jtargetAttrKey; |
| | | } |
| | | public String getViewModeName() { |
| | | return viewModeName; |
| | | } |
| | | |
| | | public void setJtargetAttrKey(String jtargetAttrKey) { |
| | | this.jtargetAttrKey = jtargetAttrKey; |
| | | } |
| | | public void setViewModeName(String viewModeName) { |
| | | this.viewModeName = viewModeName; |
| | | } |
| | | |
| | | public String getJtargetAttrName() { |
| | | return jtargetAttrName; |
| | | } |
| | | public String getTargetAttrKey() { |
| | | return targetAttrKey; |
| | | } |
| | | |
| | | public void setJtargetAttrName(String jtargetAttrName) { |
| | | this.jtargetAttrName = jtargetAttrName; |
| | | } |
| | | public void setTargetAttrKey(String targetAttrKey) { |
| | | this.targetAttrKey = targetAttrKey; |
| | | } |
| | | |
| | | public String getJsourceAttrKey() { |
| | | return jsourceAttrKey; |
| | | } |
| | | public String getTargetAttrName() { |
| | | return targetAttrName; |
| | | } |
| | | |
| | | public void setJsourceAttrKey(String jsourceAttrKey) { |
| | | this.jsourceAttrKey = jsourceAttrKey; |
| | | } |
| | | public void setTargetAttrName(String targetAttrName) { |
| | | this.targetAttrName = targetAttrName; |
| | | } |
| | | |
| | | public String getJsourceAttrName() { |
| | | return jsourceAttrName; |
| | | } |
| | | public String getSourceAttrKey() { |
| | | return sourceAttrKey; |
| | | } |
| | | |
| | | public void setJsourceAttrName(String jsourceAttrName) { |
| | | this.jsourceAttrName = jsourceAttrName; |
| | | } |
| | | public void setSourceAttrKey(String sourceAttrKey) { |
| | | this.sourceAttrKey = sourceAttrKey; |
| | | } |
| | | |
| | | public List<DockingPreAttrRangeDTO> getDockingPreAttrRangeDTOS() { |
| | | return dockingPreAttrRangeDTOS; |
| | | } |
| | | public String getSourceAttrName() { |
| | | return sourceAttrName; |
| | | } |
| | | |
| | | public void setDockingPreAttrRangeDTOS(List<DockingPreAttrRangeDTO> dockingPreAttrRangeDTOS) { |
| | | this.dockingPreAttrRangeDTOS = dockingPreAttrRangeDTOS; |
| | | } |
| | | public void setSourceAttrName(String sourceAttrName) { |
| | | this.sourceAttrName = sourceAttrName; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "DockingPreAttrMappingDTO{" + |
| | | "jdefaultValue='" + jdefaultValue + '\'' + |
| | | ", jmetaListId='" + jmetaListId + '\'' + |
| | | ", jsourceClsfId='" + jsourceClsfId + '\'' + |
| | | ", jsourceClsfName='" + jsourceClsfName + '\'' + |
| | | ", jtargetAttrId='" + jtargetAttrId + '\'' + |
| | | ", jtargetClsfId='" + jtargetClsfId + '\'' + |
| | | ", jviewModeId='" + jviewModeId + '\'' + |
| | | ", jviewModeName='" + jviewModeName + '\'' + |
| | | ", jtargetAttrKey='" + jtargetAttrKey + '\'' + |
| | | ", jtargetAttrName='" + jtargetAttrName + '\'' + |
| | | ", jsourceAttrKey='" + jsourceAttrKey + '\'' + |
| | | ", jsourceAttrName='" + jsourceAttrName + '\'' + |
| | | ", dockingPreAttrRangeDTOS=" + dockingPreAttrRangeDTOS + |
| | | '}'; |
| | | } |
| | | public List<DockingPreAttrRangeVO> getDockingPreAttrRangeVoList() { |
| | | return dockingPreAttrRangeVoList; |
| | | } |
| | | |
| | | public void setDockingPreAttrRangeVoList(List<DockingPreAttrRangeVO> dockingPreAttrRangeVoList) { |
| | | this.dockingPreAttrRangeVoList = dockingPreAttrRangeVoList; |
| | | } |
| | | |
| | | public String getViewModelName() { |
| | | |
| | | return viewModelName; |
| | | } |
| | | |
| | | public void setViewModelName(String viewModelName) { |
| | | this.viewModelName = viewModelName; |
| | | } |
| | | |
| | | public String getViewName() { |
| | | return viewName; |
| | | } |
| | | |
| | | public void setViewName(String viewName) { |
| | | this.viewName = viewName; |
| | | } |
| | | |
| | | public String getTargetClassifyName() { |
| | | return targetClassifyName; |
| | | } |
| | | |
| | | public void setTargetClassifyName(String targetClassifyName) { |
| | | this.targetClassifyName = targetClassifyName; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "DockingPreAttrMappingDTO{" + |
| | | "defaultValue='" + defaultValue + '\'' + |
| | | ", metaListId='" + metaListId + '\'' + |
| | | ", sourceClassifyId='" + sourceClassifyId + '\'' + |
| | | ", sourceClassifyName='" + sourceClassifyName + '\'' + |
| | | ", targetAttrId='" + targetAttrId + '\'' + |
| | | ", targetClassifyId='" + targetClassifyId + '\'' + |
| | | ", viewModeId='" + viewModeId + '\'' + |
| | | ", viewModeName='" + viewModeName + '\'' + |
| | | ", targetAttrKey='" + targetAttrKey + '\'' + |
| | | ", targetAttrName='" + targetAttrName + '\'' + |
| | | ", sourceAttrKey='" + sourceAttrKey + '\'' + |
| | | ", sourceAttrName='" + sourceAttrName + '\'' + |
| | | ", viewModelName='" + viewModelName + '\'' + |
| | | ", viewName='" + viewName + '\'' + |
| | | ", targetClassifyName='" + targetClassifyName + '\'' + |
| | | ", dockingPreAttrRangeVoList=" + dockingPreAttrRangeVoList + |
| | | '}'; |
| | | } |
| | | } |
| | |
| | | |
| | | import com.vci.ubcs.code.vo.pagemodel.BaseModelVO; |
| | | |
| | | /** |
| | | * è®°å½éæå±æ§åå¼èå´é
ç½® |
| | | * @author xiejun |
| | | * @date 2023-05-22 |
| | | */ |
| | | public class DockingPreAttrRangeDTO extends BaseModelVO { |
| | | /** |
| | | * åºåå |
| | | */ |
| | | private static final long serialVersionUID = 6020487634341415410L; |
| | | /*** |
| | | *屿§id |
| | | */ |
| | | private String jmetaListId; |
| | | /** |
| | | * 屿§æä¸¾æ¾ç¤ºåç§° |
| | | */ |
| | | private String jnumText; |
| | | /** |
| | | * 屿§æä¸¾å
é¨åç§° |
| | | */ |
| | | private String jnumTextValue; |
| | | /*** |
| | | *屿§id |
| | | */ |
| | | private String metaListId; |
| | | |
| | | /** |
| | | * æºå±æ§æä¸¾æ¾ç¤ºåç§° |
| | | */ |
| | | private String jtargeNumText; |
| | | /** |
| | | * æºå±æ§æä¸¾å
é¨åç§° |
| | | */ |
| | | private String jtargeNumTextValue; |
| | | /** |
| | | * 屿§æä¸¾æ¾ç¤ºåç§° |
| | | */ |
| | | private String numText; |
| | | /** |
| | | * 屿§æä¸¾å
é¨åç§° |
| | | */ |
| | | private String numTextValue; |
| | | |
| | | public String getJnumText() { |
| | | return jnumText; |
| | | } |
| | | /** |
| | | * æºå±æ§æä¸¾æ¾ç¤ºåç§° |
| | | */ |
| | | private String targetNumText; |
| | | /** |
| | | * æºå±æ§æä¸¾å
é¨åç§° |
| | | */ |
| | | private String targetNumTextValue; |
| | | |
| | | public void setJnumText(String jnumText) { |
| | | this.jnumText = jnumText; |
| | | } |
| | | public String getMetaListId() { |
| | | return metaListId; |
| | | } |
| | | |
| | | public String getJnumTextValue() { |
| | | return jnumTextValue; |
| | | } |
| | | public void setMetaListId(String metaListId) { |
| | | this.metaListId = metaListId; |
| | | } |
| | | |
| | | public void setJnumTextValue(String jnumTextValue) { |
| | | this.jnumTextValue = jnumTextValue; |
| | | } |
| | | public String getNumText() { |
| | | return numText; |
| | | } |
| | | |
| | | public String getJtargeNumText() { |
| | | return jtargeNumText; |
| | | } |
| | | public void setNumText(String numText) { |
| | | this.numText = numText; |
| | | } |
| | | |
| | | public void setJtargeNumText(String jtargeNumText) { |
| | | this.jtargeNumText = jtargeNumText; |
| | | } |
| | | public String getNumTextValue() { |
| | | return numTextValue; |
| | | } |
| | | |
| | | public String getJtargeNumTextValue() { |
| | | return jtargeNumTextValue; |
| | | } |
| | | public void setNumTextValue(String numTextValue) { |
| | | this.numTextValue = numTextValue; |
| | | } |
| | | |
| | | public void setJtargeNumTextValue(String jtargeNumTextValue) { |
| | | this.jtargeNumTextValue = jtargeNumTextValue; |
| | | } |
| | | public String getTargetNumText() { |
| | | return targetNumText; |
| | | } |
| | | |
| | | public String getJmetaListId() { |
| | | return jmetaListId; |
| | | } |
| | | public void setTargetNumText(String targetNumText) { |
| | | this.targetNumText = targetNumText; |
| | | } |
| | | |
| | | public void setJmetaListId(String jmetaListId) { |
| | | this.jmetaListId = jmetaListId; |
| | | } |
| | | public String getTargetNumTextValue() { |
| | | return targetNumTextValue; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "DockingPreAttrRangeDTO{" + |
| | | "jmetaListId='" + jmetaListId + '\'' + |
| | | ", jnumText='" + jnumText + '\'' + |
| | | ", jnumTextValue='" + jnumTextValue + '\'' + |
| | | ", jtargeNumText='" + jtargeNumText + '\'' + |
| | | ", jtargeNumTextValue='" + jtargeNumTextValue + '\'' + |
| | | '}'; |
| | | } |
| | | public void setTargetNumTextValue(String targetNumTextValue) { |
| | | this.targetNumTextValue = targetNumTextValue; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "DockingPreAttrRangeDTO{" + |
| | | "metaListId='" + metaListId + '\'' + |
| | | ", numText='" + numText + '\'' + |
| | | ", numTextValue='" + numTextValue + '\'' + |
| | | ", targetNumText='" + targetNumText + '\'' + |
| | | ", targetNumTextValue='" + targetNumTextValue + '\'' + |
| | | '}'; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.dto; |
| | | |
| | | import com.vci.ubcs.code.vo.pagemodel.BaseModelVO; |
| | | |
| | | /*** |
| | | * è®°å½éå¢åç±»ä¿¡æ¯ |
| | | * @author xiejun |
| | | * @date 2021-05-22 |
| | | */ |
| | | public class DockingPreClassifyDTO extends BaseModelVO { |
| | | |
| | | /** |
| | | * åºåå |
| | | */ |
| | | private static final long serialVersionUID = 6020487634341415448L; |
| | | /*** |
| | | * åç±»åç§° |
| | | */ |
| | | private String className; |
| | | /*** |
| | | * åç±»é¾æ¥ |
| | | */ |
| | | private String nodeLink; |
| | | /**** |
| | | * åç±»é¾æ¥åç§° |
| | | */ |
| | | private String getNodeLinkName; |
| | | /*** |
| | | * ç¶çº§èç¹ |
| | | */ |
| | | private String pid; |
| | | |
| | | public String getClassName() { |
| | | return className; |
| | | } |
| | | |
| | | public void setClassName(String className) { |
| | | this.className = className; |
| | | } |
| | | |
| | | public String getNodeLink() { |
| | | return nodeLink; |
| | | } |
| | | |
| | | public void setNodeLink(String nodeLink) { |
| | | this.nodeLink = nodeLink; |
| | | } |
| | | |
| | | public String getGetNodeLinkName() { |
| | | return getNodeLinkName; |
| | | } |
| | | |
| | | public void setGetNodeLinkName(String getNodeLinkName) { |
| | | this.getNodeLinkName = getNodeLinkName; |
| | | } |
| | | |
| | | public String getPid() { |
| | | return pid; |
| | | } |
| | | |
| | | public void setPid(String pid) { |
| | | this.pid = pid; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "DockingPreClassifyDTO{" + |
| | | "className='" + className + '\'' + |
| | | ", nodeLink='" + nodeLink + '\'' + |
| | | ", getNodeLinkName='" + getNodeLinkName + '\'' + |
| | | ", pid='" + pid + '\'' + |
| | | '}'; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.dto; |
| | | |
| | | import com.vci.ubcs.code.vo.pagemodel.BaseModelVO; |
| | | |
| | | public class DockingPreMetaAttrDTO extends BaseModelVO { |
| | | |
| | | /** |
| | | * åºåå |
| | | */ |
| | | private static final long serialVersionUID = 6020487634341415550L; |
| | | |
| | | /** |
| | | * 䏿åç§° |
| | | */ |
| | | private String chineseName; |
| | | /*** |
| | | * è±æåç§° |
| | | */ |
| | | private String englishName; |
| | | /*** |
| | | * åæ®µç±»å |
| | | */ |
| | | private int metaDataType=1; |
| | | |
| | | private int necesSaryConf=1; |
| | | |
| | | /*** |
| | | * åå¼èå´ |
| | | */ |
| | | private String range; |
| | | /*** |
| | | * ç¶å±æ§ |
| | | */ |
| | | private String pid; |
| | | |
| | | /** |
| | | * éå¢åç±»id |
| | | */ |
| | | private String sourceClassifyId; |
| | | /** |
| | | * è§å¾æ¨¡åid |
| | | */ |
| | | private String viewModelId; |
| | | /*** |
| | | * é»è®¤å¼ |
| | | */ |
| | | private String defaultValue; |
| | | |
| | | 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 int getMetaDataType() { |
| | | return metaDataType; |
| | | } |
| | | |
| | | public void setMetaDataType(int metaDataType) { |
| | | this.metaDataType = metaDataType; |
| | | } |
| | | |
| | | public int getNecesSaryConf() { |
| | | return necesSaryConf; |
| | | } |
| | | |
| | | public void setNecesSaryConf(int necesSaryConf) { |
| | | this.necesSaryConf = necesSaryConf; |
| | | } |
| | | |
| | | public String getRange() { |
| | | return range; |
| | | } |
| | | |
| | | public void setRange(String range) { |
| | | this.range = range; |
| | | } |
| | | |
| | | public String getPid() { |
| | | return pid; |
| | | } |
| | | |
| | | public void setPid(String pid) { |
| | | this.pid = pid; |
| | | } |
| | | |
| | | public String getSourceClassifyId() { |
| | | return sourceClassifyId; |
| | | } |
| | | |
| | | public void setSourceClassifyId(String sourceClassifyId) { |
| | | this.sourceClassifyId = sourceClassifyId; |
| | | } |
| | | |
| | | public String getViewModelId() { |
| | | return viewModelId; |
| | | } |
| | | |
| | | public void setViewModelId(String viewModelId) { |
| | | this.viewModelId = viewModelId; |
| | | } |
| | | |
| | | public String getDefaultValue() { |
| | | return defaultValue; |
| | | } |
| | | |
| | | public void setDefaultValue(String defaultValue) { |
| | | this.defaultValue = defaultValue; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "DockingPreMetaAttrVO{" + |
| | | "chineseName='" + chineseName + '\'' + |
| | | ", englishName='" + englishName + '\'' + |
| | | ", metaDataType=" + metaDataType + |
| | | ", necessaryConf=" + necesSaryConf + |
| | | ", range='" + range + '\'' + |
| | | ", pid='" + pid + '\'' + |
| | | ", sourceClassifyId='" + sourceClassifyId + '\'' + |
| | | ", viewModelId='" + viewModelId + '\'' + |
| | | ", defaultValue='" + defaultValue + '\'' + |
| | | '}'; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.dto; |
| | | |
| | | import com.vci.ubcs.code.vo.pagemodel.BaseModelVO; |
| | | |
| | | /** |
| | | * è®°å½éæéå¢åç±»è§å¾ä¿¡æ¯ |
| | | * @author xiejun |
| | | * @date 2023-05-22 |
| | | */ |
| | | public class DockingPreViewModelDTO extends BaseModelVO { |
| | | |
| | | /** |
| | | * åºåå |
| | | */ |
| | | private static final long serialVersionUID = 6020487635341415538L; |
| | | |
| | | /*** |
| | | * 模åè§å¾åç§° |
| | | */ |
| | | private String viewName; |
| | | |
| | | /*** |
| | | * éå¢åç±»oid |
| | | */ |
| | | private String sourceClassifyId; |
| | | /*** |
| | | * æ°æ®xinx |
| | | */ |
| | | private String impactList; |
| | | |
| | | |
| | | public String getViewName() { |
| | | return viewName; |
| | | } |
| | | |
| | | public void setViewName(String viewName) { |
| | | this.viewName = viewName; |
| | | } |
| | | |
| | | public String getSourceClassifyId() { |
| | | return sourceClassifyId; |
| | | } |
| | | |
| | | public void setSourceClassifyId(String sourceClassifyId) { |
| | | this.sourceClassifyId = sourceClassifyId; |
| | | } |
| | | |
| | | public String getImpactList() { |
| | | return impactList; |
| | | } |
| | | |
| | | public void setImpactList(String impactList) { |
| | | this.impactList = impactList; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "DockingPreViewModelVO{" + |
| | | "viewName='" + viewName + '\'' + |
| | | ", sourceClassifyId='" + sourceClassifyId + '\'' + |
| | | ", impactList='" + impactList + '\'' + |
| | | '}'; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.vci.ubcs.starter.revision.model.BaseModel; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | /** |
| | | * éå¢ç¼ç ç³è¯·åè®°å½å¯¹è±¡ |
| | | * @author xiejun |
| | | * @date 2023-05-22 |
| | | */ |
| | | @Data |
| | | @TableName("PL_CODE_JINTEGMAPCONFIG") |
| | | @ApiModel(value = "DockingPreApplyForm", description = "éå¢ç¼ç ç³è¯·åè®°å½å¯¹è±¡") |
| | | @EqualsAndHashCode |
| | | public class DockingPreApplyForm extends BaseModel { |
| | | |
| | | /*** |
| | | * éå¢ç¼ç |
| | | */ |
| | | @ApiModelProperty(value = "éå¢ç¼ç ") |
| | | private String code; |
| | | |
| | | /*** |
| | | * å
容 |
| | | */ |
| | | @ApiModelProperty(value = "å
容") |
| | | private String content; |
| | | /*** |
| | | *主é®oid |
| | | */ |
| | | @ApiModelProperty(value = "æ°æ®ä¸»é®") |
| | | private String dataOid; |
| | | /** |
| | | * ä¸å¡å¯¹è±¡ |
| | | */ |
| | | @ApiModelProperty(value = "ä¸å¡å¯¹è±¡") |
| | | private String dataBtmName; |
| | | /*** |
| | | * æ¶æ¯ |
| | | */ |
| | | @ApiModelProperty(value = "æ¶æ¯") |
| | | private String msg; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.vci.ubcs.starter.revision.model.BaseModel; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * è®°å½éæå±æ§ä¸ä¸»æ°æ®å±æ§æ å°å
³ç³»å¯¹è±¡ |
| | | * @author xiejun |
| | | * @date 2023-05-22 |
| | | */ |
| | | @Data |
| | | @TableName("PL_CODE_JINTEGMAPCONFIG") |
| | | @ApiModel(value = "DockingPreAttrMapping", description = "éæå±æ§ä¸ä¸»æ°æ®å±æ§æ å°å
³ç³»å¯¹è±¡") |
| | | @EqualsAndHashCode |
| | | public class DockingPreAttrMapping extends BaseModel { |
| | | |
| | | /** |
| | | * åºåå |
| | | */ |
| | | private static final long serialVersionUID = 6020487634341415429L; |
| | | |
| | | /*** |
| | | * é»è®¤å¼ |
| | | */ |
| | | @ApiModelProperty(value = "é»è®¤å¼") |
| | | private String defaultValue; |
| | | |
| | | /*** |
| | | * é»è®¤å¼ |
| | | */ |
| | | @ApiModelProperty(value = "æºç³»ç»ç屿§oid") |
| | | private String metaListId; |
| | | /** |
| | | * æºåç±»id |
| | | */ |
| | | @ApiModelProperty(value = "æºç³»ç»çåç±»oid") |
| | | @TableField(value = "sourceClsfId") |
| | | private String sourceClassifyId; |
| | | /** |
| | | * æºåç±»åç§° |
| | | */ |
| | | @ApiModelProperty(value = "æºç³»ç»çåç±»åç§°") |
| | | @TableField(value = "sourceClsfName") |
| | | private String sourceClassifyName; |
| | | /** |
| | | * æºå±æ§oid |
| | | */ |
| | | @ApiModelProperty(value = "ç®æ ç³»ç»å±æ§ç³»id") |
| | | private String targetAttrId; |
| | | |
| | | /** |
| | | * ç®æ 屿§oid |
| | | */ |
| | | @ApiModelProperty(value = "ç®æ ç³»ç»åç±»oid") |
| | | @TableField(value = "targetClsfId") |
| | | private String targetClassifyId; |
| | | |
| | | /*** |
| | | * 模æ¿Id |
| | | */ |
| | | @ApiModelProperty(value = "模æ¿è§å¾çoid") |
| | | private String viewModeId; |
| | | /*** |
| | | * 模æ¿åç§° |
| | | */ |
| | | @ApiModelProperty(value = "模æ¿åç§°") |
| | | private String viewModeName; |
| | | |
| | | /*** |
| | | * ç®æ 屿§å
é¨åç§° |
| | | */ |
| | | @ApiModelProperty(value = "ç®æ ç³»ç»å±æ§å
é¨å¼") |
| | | private String targetAttrKey; |
| | | |
| | | /*** |
| | | * ç®æ 屿§åç§° |
| | | */ |
| | | @ApiModelProperty(value = "ç®æ ç³»ç»å±æ§åç§°") |
| | | private String targetAttrName; |
| | | |
| | | /*** |
| | | * ç®æ 屿§å
é¨åç§° |
| | | */ |
| | | @ApiModelProperty(value = "æºç³»ç»å±æ§å
é¨åç§°") |
| | | private String sourceAttrKey; |
| | | |
| | | /*** |
| | | * ç®æ 屿§åç§° |
| | | */ |
| | | @ApiModelProperty(value = "æºç³»ç»å±æ§åç§°") |
| | | private String sourceAttrName; |
| | | |
| | | |
| | | |
| | | /*** |
| | | * è§å¾åç§° |
| | | */ |
| | | @ApiModelProperty(value = "模åè§å¾åç§°") |
| | | private String viewModelName; |
| | | /*** |
| | | * è§å¾åç§° |
| | | */ |
| | | @ApiModelProperty(value = "模åè§å¾åç§°") |
| | | private String viewName; |
| | | /*** |
| | | * ç®æ 屿§åç§° |
| | | */ |
| | | @ApiModelProperty(value = "ç®æ 屿§åç§°") |
| | | @TableField(value = "targetClsfName") |
| | | private String targetClassifyName; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.entity; |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.vci.ubcs.starter.revision.model.BaseModel; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | |
| | | /** |
| | | * è®°å½éæå±æ§åå¼èå´é
ç½® |
| | | * @author xiejun |
| | | * @date 2023-05-22 |
| | | */ |
| | | @Data |
| | | @TableName("PL_CODE_JRANGE") |
| | | @ApiModel(value = "DockingPreAttrRange", description = "éæå±æ§åå¼èå´") |
| | | @EqualsAndHashCode |
| | | public class DockingPreAttrRange extends BaseModel { |
| | | /*** |
| | | *屿§id |
| | | */ |
| | | @ApiModelProperty(value = "屿§ä¸»é®") |
| | | private String metaListId; |
| | | |
| | | /** |
| | | * 屿§æä¸¾æ¾ç¤ºåç§° |
| | | */ |
| | | @ApiModelProperty(value = "屿§æä¸¾æ¾ç¤ºåç§°") |
| | | private String numText; |
| | | /** |
| | | * 屿§æä¸¾å
é¨åç§° |
| | | */ |
| | | @ApiModelProperty(value = "屿§æä¸¾å
é¨åç§°") |
| | | private String numTextValue; |
| | | |
| | | /** |
| | | * æºå±æ§æä¸¾æ¾ç¤ºåç§° |
| | | */ |
| | | @ApiModelProperty(value = "æºå±æ§æä¸¾æ¾ç¤ºåç§°") |
| | | private String targetNumText; |
| | | /** |
| | | * æºå±æ§æä¸¾å
é¨åç§° |
| | | */ |
| | | @ApiModelProperty(value = "æºå±æ§æä¸¾å
é¨åç§°") |
| | | private String targetNumTextValue; |
| | | |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.entity; |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.vci.ubcs.starter.revision.model.BaseModel; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | /** |
| | | * è®°å½éæéå¢åç±»ä¿¡æ¯ |
| | | * @author xiejun |
| | | * @date 2023-05-22 |
| | | */ |
| | | @Data |
| | | @TableName("PL_CODE_CLASSIFY") |
| | | @ApiModel(value = "DockingPreClassify", description = "éæéå¢å类信æ¯") |
| | | @EqualsAndHashCode |
| | | public class DockingPreClassify extends BaseModel { |
| | | |
| | | /** |
| | | * åºåå |
| | | */ |
| | | private static final long serialVersionUID = 6020487634340415438L; |
| | | /*** |
| | | * åç±»åç§° |
| | | */ |
| | | @ApiModelProperty(value = "åç±»åç§°") |
| | | private String className; |
| | | /*** |
| | | * åç±»é¾æ¥ |
| | | */ |
| | | @ApiModelProperty(value = "龿¥å°å") |
| | | private String nodeLink; |
| | | /**** |
| | | * åç±»é¾æ¥åç§° |
| | | */ |
| | | @ApiModelProperty(value = "龿¥åç§°") |
| | | private String getNodeLinkName; |
| | | /*** |
| | | * ç¶çº§èç¹ |
| | | */ |
| | | @ApiModelProperty(value = "ç¶èç¹") |
| | | private String pid; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.vci.ubcs.starter.revision.model.BaseModel; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | |
| | | @Data |
| | | @TableName("PL_CODE_JVIEWMODE") |
| | | @ApiModel(value = "DockingPreViewModel", description = "éå¢å类模åè§å¾ä¿¡æ¯") |
| | | @EqualsAndHashCode |
| | | public class DockingPreMetaAttr extends BaseModel { |
| | | |
| | | /** |
| | | * 䏿åç§° |
| | | */ |
| | | @ApiModelProperty(value = "䏿åç§°") |
| | | private String chineseName; |
| | | /*** |
| | | * è±æåç§° |
| | | */ |
| | | @ApiModelProperty(value = "éå¢å类主é®") |
| | | private String englishName; |
| | | /*** |
| | | * 屿§å段类å |
| | | */ |
| | | @ApiModelProperty(value = "屿§å段类å") |
| | | private int metaDataType=1; |
| | | |
| | | @ApiModelProperty(value = "éå¢å类主é®") |
| | | private int necesSaryConf=1; |
| | | |
| | | /*** |
| | | * åå¼èå´ |
| | | */ |
| | | @ApiModelProperty(value = "åå¼èå´") |
| | | private String range; |
| | | /*** |
| | | * ç¶å±æ§ |
| | | */ |
| | | @ApiModelProperty(value = "ç¶å±æ§") |
| | | private String pid; |
| | | |
| | | /** |
| | | * éå¢åç±»id |
| | | */ |
| | | @ApiModelProperty(value = "éå¢å类主é®") |
| | | @TableField(value = "sourceClsfId") |
| | | private String sourceClassifyId; |
| | | /** |
| | | * è§å¾æ¨¡åid |
| | | */ |
| | | @ApiModelProperty(value = "è§å¾æ¨¡å主é®") |
| | | private String viewModelId; |
| | | /*** |
| | | * é»è®¤å¼ |
| | | */ |
| | | @ApiModelProperty(value = "é»è®¤å¼") |
| | | private String defaultValue; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.entity; |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.vci.ubcs.starter.revision.model.BaseModel; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | |
| | | /** |
| | | * è®°å½éæéå¢å类模åè§å¾ä¿¡æ¯ |
| | | * @author xiejun |
| | | * @date 2023-05-22 |
| | | */ |
| | | @Data |
| | | @TableName("PL_CODE_JVIEWMODEL") |
| | | @ApiModel(value = "DockingPreViewModel", description = "éå¢å类模åè§å¾ä¿¡æ¯") |
| | | @EqualsAndHashCode |
| | | public class DockingPreViewModel extends BaseModel { |
| | | |
| | | /*** |
| | | * 模åè§å¾åç§° |
| | | */ |
| | | @ApiModelProperty(value = "模åè§å¾åç§°") |
| | | private String viewName; |
| | | |
| | | /*** |
| | | * éå¢åç±»oid |
| | | */ |
| | | @ApiModelProperty(value = "éå¢å类主é®") |
| | | @TableField(value = "sourceClsfId") |
| | | private String sourceClassifyId; |
| | | /*** |
| | | * æ°æ® |
| | | */ |
| | | @ApiModelProperty(value = "æ°æ®") |
| | | private String impactList; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.vo.pagemodel; |
| | | |
| | | import javax.xml.soap.SAAJResult; |
| | | |
| | | /** |
| | | * è®°å½éæå±æ°æ®ç³è¯·id |
| | | * @author xiejun |
| | | * @date 2023-05-22 |
| | | */ |
| | | public class DockingPreApplyFormVO extends BaseModelVO { |
| | | |
| | | /** |
| | | * ç¦æ¢ä¿®æ¹è¿ä¸ªå¼ |
| | | */ |
| | | private static final long serialVersionUID = 4615707120361431439L; |
| | | /*** |
| | | * éå¢ç¼ç |
| | | */ |
| | | private String code; |
| | | |
| | | /*** |
| | | * å
容 |
| | | */ |
| | | private String content; |
| | | /*** |
| | | *主é®oid |
| | | */ |
| | | private String dataOid; |
| | | /** |
| | | * ä¸å¡å¯¹è±¡ |
| | | */ |
| | | private String dataBtmName; |
| | | /*** |
| | | * æ¶æ¯ |
| | | */ |
| | | private String msg; |
| | | |
| | | public String getCode() { |
| | | return code; |
| | | } |
| | | |
| | | public void setCode(String code) { |
| | | this.code = code; |
| | | } |
| | | |
| | | public String getContent() { |
| | | return content; |
| | | } |
| | | |
| | | public void setContent(String content) { |
| | | this.content = content; |
| | | } |
| | | |
| | | public String getDataOid() { |
| | | return dataOid; |
| | | } |
| | | |
| | | public void setDataOid(String dataOid) { |
| | | this.dataOid = dataOid; |
| | | } |
| | | |
| | | public String getDataBtmName() { |
| | | return dataBtmName; |
| | | } |
| | | |
| | | public void setDataBtmName(String dataBtmName) { |
| | | this.dataBtmName = dataBtmName; |
| | | } |
| | | |
| | | public String getMsg() { |
| | | return msg; |
| | | } |
| | | |
| | | public void setMsg(String msg) { |
| | | this.msg = msg; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "DockingPreApplyCodeFormVO{" + |
| | | "code='" + code + '\'' + |
| | | ", content='" + content + '\'' + |
| | | ", dataOid='" + dataOid + '\'' + |
| | | ", dataBtmName='" + dataBtmName + '\'' + |
| | | ", msg='" + msg + '\'' + |
| | | '}'; |
| | | } |
| | | } |
| | |
| | | package com.vci.ubcs.code.vo.pagemodel; |
| | | |
| | | |
| | | import com.vci.ubcs.code.dto.DockingPreAttrRangeDTO; |
| | | import com.vci.ubcs.code.vo.pagemodel.BaseModelVO; |
| | | |
| | | import java.util.List; |
| | |
| | | /** |
| | | * è®°å½éæå±æ§ä¸ä¸»æ°æ®å±æ§æ å°å
³ç³»å¯¹è±¡ |
| | | * @author xiejun |
| | | * @date 2023-01-06 |
| | | * @date 2023-05-22 |
| | | */ |
| | | public class DockingPreAttrMappingVO extends BaseModelVO { |
| | | /** |
| | |
| | | /*** |
| | | * é»è®¤å¼ |
| | | */ |
| | | private String jdefaultValue; |
| | | private String defaultValue; |
| | | |
| | | /*** |
| | | * é»è®¤å¼ |
| | | */ |
| | | private String jmetaListId; |
| | | private String metaListId; |
| | | /** |
| | | * æºåç±»id |
| | | */ |
| | | private String jsourceClsfId; |
| | | private String sourceClassifyId; |
| | | /** |
| | | * æºåç±»åç§° |
| | | */ |
| | | private String jsourceClsfName; |
| | | private String sourceClassifyName; |
| | | /** |
| | | * æºå±æ§oid |
| | | */ |
| | | private String jtargetAttrId; |
| | | private String targetAttrId; |
| | | |
| | | /** |
| | | * ç®æ 屿§oid |
| | | */ |
| | | private String jtargetClsfId; |
| | | private String targetClassifyId; |
| | | |
| | | /*** |
| | | * 模æ¿Id |
| | | */ |
| | | private String jviewModeId; |
| | | private String viewModeId; |
| | | /*** |
| | | * 模æ¿åç§° |
| | | */ |
| | | private String jviewModeName; |
| | | private String viewModeName; |
| | | |
| | | /*** |
| | | * ç®æ 屿§å
é¨åç§° |
| | | */ |
| | | private String jtargetAttrKey; |
| | | private String targetAttrKey; |
| | | |
| | | /*** |
| | | * ç®æ 屿§åç§° |
| | | */ |
| | | private String jtargetAttrName; |
| | | private String targetAttrName; |
| | | |
| | | /*** |
| | | * ç®æ 屿§å
é¨åç§° |
| | | */ |
| | | private String jsourceAttrKey; |
| | | private String sourceAttrKey; |
| | | |
| | | /*** |
| | | * ç®æ 屿§åç§° |
| | | */ |
| | | private String jsourceAttrName; |
| | | |
| | | private List<DockingPreAttrRangeVO> dockingPreAttrRangeVOS; |
| | | private String sourceAttrName; |
| | | |
| | | |
| | | public String getJdefaultValue() { |
| | | return jdefaultValue; |
| | | } |
| | | |
| | | public void setJdefaultValue(String jdefaultValue) { |
| | | this.jdefaultValue = jdefaultValue; |
| | | } |
| | | /*** |
| | | * è§å¾åç§° |
| | | */ |
| | | private String viewModelName; |
| | | /*** |
| | | * è§å¾åç§° |
| | | */ |
| | | private String viewName; |
| | | /*** |
| | | * ç®æ åç±» |
| | | */ |
| | | private String targetClassifyName; |
| | | |
| | | public String getJmetaListId() { |
| | | return jmetaListId; |
| | | } |
| | | private List<DockingPreAttrRangeVO> dockingPreAttrRangeVoList; |
| | | |
| | | public void setJmetaListId(String jmetaListId) { |
| | | this.jmetaListId = jmetaListId; |
| | | } |
| | | |
| | | public String getJsourceClsfId() { |
| | | return jsourceClsfId; |
| | | } |
| | | public String getDefaultValue() { |
| | | return defaultValue; |
| | | } |
| | | |
| | | public void setJsourceClsfId(String jsourceClsfId) { |
| | | this.jsourceClsfId = jsourceClsfId; |
| | | } |
| | | public void setDefaultValue(String defaultValue) { |
| | | this.defaultValue = defaultValue; |
| | | } |
| | | |
| | | public String getJsourceClsfName() { |
| | | return jsourceClsfName; |
| | | } |
| | | public String getMetaListId() { |
| | | return metaListId; |
| | | } |
| | | |
| | | public void setJsourceClsfName(String jsourceClsfName) { |
| | | this.jsourceClsfName = jsourceClsfName; |
| | | } |
| | | public void setMetaListId(String metaListId) { |
| | | this.metaListId = metaListId; |
| | | } |
| | | |
| | | public String getJtargetAttrId() { |
| | | return jtargetAttrId; |
| | | } |
| | | public String getSourceClassifyId() { |
| | | return sourceClassifyId; |
| | | } |
| | | |
| | | public void setJtargetAttrId(String jtargetAttrId) { |
| | | this.jtargetAttrId = jtargetAttrId; |
| | | } |
| | | public void setSourceClassifyId(String sourceClassifyId) { |
| | | this.sourceClassifyId = sourceClassifyId; |
| | | } |
| | | |
| | | public String getJtargetClsfId() { |
| | | return jtargetClsfId; |
| | | } |
| | | public String getSourceClassifyName() { |
| | | return sourceClassifyName; |
| | | } |
| | | |
| | | public void setJtargetClsfId(String jtargetClsfId) { |
| | | this.jtargetClsfId = jtargetClsfId; |
| | | } |
| | | public void setSourceClassifyName(String sourceClassifyName) { |
| | | this.sourceClassifyName = sourceClassifyName; |
| | | } |
| | | |
| | | public String getJviewModeId() { |
| | | return jviewModeId; |
| | | } |
| | | public String getTargetAttrId() { |
| | | return targetAttrId; |
| | | } |
| | | |
| | | public void setJviewModeId(String jviewModeId) { |
| | | this.jviewModeId = jviewModeId; |
| | | } |
| | | public void setTargetAttrId(String targetAttrId) { |
| | | this.targetAttrId = targetAttrId; |
| | | } |
| | | |
| | | public String getJviewModeName() { |
| | | return jviewModeName; |
| | | } |
| | | public String getTargetClassifyId() { |
| | | return targetClassifyId; |
| | | } |
| | | |
| | | public void setJviewModeName(String jviewModeName) { |
| | | this.jviewModeName = jviewModeName; |
| | | } |
| | | public void setTargetClassifyId(String targetClassifyId) { |
| | | this.targetClassifyId = targetClassifyId; |
| | | } |
| | | |
| | | public String getJtargetAttrKey() { |
| | | return jtargetAttrKey; |
| | | } |
| | | public String getViewModeId() { |
| | | return viewModeId; |
| | | } |
| | | |
| | | public void setJtargetAttrKey(String jtargetAttrKey) { |
| | | this.jtargetAttrKey = jtargetAttrKey; |
| | | } |
| | | public void setViewModeId(String viewModeId) { |
| | | this.viewModeId = viewModeId; |
| | | } |
| | | |
| | | public String getJtargetAttrName() { |
| | | return jtargetAttrName; |
| | | } |
| | | public String getViewModeName() { |
| | | return viewModeName; |
| | | } |
| | | |
| | | public void setJtargetAttrName(String jtargetAttrName) { |
| | | this.jtargetAttrName = jtargetAttrName; |
| | | } |
| | | public void setViewModeName(String viewModeName) { |
| | | this.viewModeName = viewModeName; |
| | | } |
| | | |
| | | public String getJsourceAttrKey() { |
| | | return jsourceAttrKey; |
| | | } |
| | | public String getTargetAttrKey() { |
| | | return targetAttrKey; |
| | | } |
| | | |
| | | public void setJsourceAttrKey(String jsourceAttrKey) { |
| | | this.jsourceAttrKey = jsourceAttrKey; |
| | | } |
| | | public void setTargetAttrKey(String targetAttrKey) { |
| | | this.targetAttrKey = targetAttrKey; |
| | | } |
| | | |
| | | public String getJsourceAttrName() { |
| | | return jsourceAttrName; |
| | | } |
| | | public String getTargetAttrName() { |
| | | return targetAttrName; |
| | | } |
| | | |
| | | public void setJsourceAttrName(String jsourceAttrName) { |
| | | this.jsourceAttrName = jsourceAttrName; |
| | | } |
| | | public void setTargetAttrName(String targetAttrName) { |
| | | this.targetAttrName = targetAttrName; |
| | | } |
| | | |
| | | public List<DockingPreAttrRangeVO> getDockingPreAttrRangeVOS() { |
| | | return dockingPreAttrRangeVOS; |
| | | } |
| | | public String getSourceAttrKey() { |
| | | return sourceAttrKey; |
| | | } |
| | | |
| | | public void setDockingPreAttrRangeVOS(List<DockingPreAttrRangeVO> dockingPreAttrRangeVOS) { |
| | | this.dockingPreAttrRangeVOS = dockingPreAttrRangeVOS; |
| | | } |
| | | public void setSourceAttrKey(String sourceAttrKey) { |
| | | this.sourceAttrKey = sourceAttrKey; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "DockingPreAttrMappingVO{" + |
| | | "jdefaultValue='" + jdefaultValue + '\'' + |
| | | ", jmetaListId='" + jmetaListId + '\'' + |
| | | ", jsourceClsfId='" + jsourceClsfId + '\'' + |
| | | ", jsourceClsfName='" + jsourceClsfName + '\'' + |
| | | ", jtargetAttrId='" + jtargetAttrId + '\'' + |
| | | ", jtargetClsfId='" + jtargetClsfId + '\'' + |
| | | ", jviewModeId='" + jviewModeId + '\'' + |
| | | ", jviewModeName='" + jviewModeName + '\'' + |
| | | ", jtargetAttrKey='" + jtargetAttrKey + '\'' + |
| | | ", jtargetAttrName='" + jtargetAttrName + '\'' + |
| | | ", jsourceAttrKey='" + jsourceAttrKey + '\'' + |
| | | ", jsourceAttrName='" + jsourceAttrName + '\'' + |
| | | ", dockingPreAttrRangeVOS=" + dockingPreAttrRangeVOS + |
| | | '}'; |
| | | } |
| | | public String getSourceAttrName() { |
| | | return sourceAttrName; |
| | | } |
| | | |
| | | public void setSourceAttrName(String sourceAttrName) { |
| | | this.sourceAttrName = sourceAttrName; |
| | | } |
| | | |
| | | public List<DockingPreAttrRangeVO> getDockingPreAttrRangeVoList() { |
| | | return dockingPreAttrRangeVoList; |
| | | } |
| | | |
| | | public void setDockingPreAttrRangeVoList(List<DockingPreAttrRangeVO> dockingPreAttrRangeVoList) { |
| | | this.dockingPreAttrRangeVoList = dockingPreAttrRangeVoList; |
| | | } |
| | | |
| | | public String getViewModelName() { |
| | | |
| | | return viewModelName; |
| | | } |
| | | |
| | | public void setViewModelName(String viewModelName) { |
| | | this.viewModelName = viewModelName; |
| | | } |
| | | |
| | | public String getViewName() { |
| | | return viewName; |
| | | } |
| | | |
| | | public void setViewName(String viewName) { |
| | | this.viewName = viewName; |
| | | } |
| | | |
| | | public String getTargetClassifyName() { |
| | | return targetClassifyName; |
| | | } |
| | | |
| | | public void setTargetClassifyName(String targetClassifyName) { |
| | | this.targetClassifyName = targetClassifyName; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "DockingPreAttrMappingVO{" + |
| | | "defaultValue='" + defaultValue + '\'' + |
| | | ", metaListId='" + metaListId + '\'' + |
| | | ", sourceClassifyId='" + sourceClassifyId + '\'' + |
| | | ", sourceClassifyName='" + sourceClassifyName + '\'' + |
| | | ", targetAttrId='" + targetAttrId + '\'' + |
| | | ", targetClassifyId='" + targetClassifyId + '\'' + |
| | | ", viewModeId='" + viewModeId + '\'' + |
| | | ", viewModeName='" + viewModeName + '\'' + |
| | | ", targetAttrKey='" + targetAttrKey + '\'' + |
| | | ", targetAttrName='" + targetAttrName + '\'' + |
| | | ", sourceAttrKey='" + sourceAttrKey + '\'' + |
| | | ", sourceAttrName='" + sourceAttrName + '\'' + |
| | | ", viewModelName='" + viewModelName + '\'' + |
| | | ", viewName='" + viewName + '\'' + |
| | | ", targetClassifyName='" + targetClassifyName + '\'' + |
| | | ", dockingPreAttrRangeVoList=" + dockingPreAttrRangeVoList + |
| | | '}'; |
| | | } |
| | | } |
| | |
| | | |
| | | import com.vci.ubcs.code.vo.pagemodel.BaseModelVO; |
| | | |
| | | /** |
| | | * è®°å½éæå±æ§åå¼èå´é
ç½® |
| | | * @author xiejun |
| | | * @date 2023-05-22 |
| | | */ |
| | | public class DockingPreAttrRangeVO extends BaseModelVO { |
| | | /** |
| | | * åºåå |
| | | */ |
| | | private static final long serialVersionUID = 6020487634341415410L; |
| | | /*** |
| | | *屿§id |
| | | */ |
| | | private String jmetaListId; |
| | | /** |
| | | * åºåå |
| | | */ |
| | | private static final long serialVersionUID = 6020487634341415410L; |
| | | /*** |
| | | *屿§id |
| | | */ |
| | | private String metaListId; |
| | | |
| | | /** |
| | | * 屿§æä¸¾æ¾ç¤ºåç§° |
| | | */ |
| | | private String jnumText; |
| | | /** |
| | | * 屿§æä¸¾å
é¨åç§° |
| | | */ |
| | | private String jnumTextValue; |
| | | /** |
| | | * 屿§æä¸¾æ¾ç¤ºåç§° |
| | | */ |
| | | private String numText; |
| | | /** |
| | | * 屿§æä¸¾å
é¨åç§° |
| | | */ |
| | | private String numTextValue; |
| | | |
| | | /** |
| | | * æºå±æ§æä¸¾æ¾ç¤ºåç§° |
| | | */ |
| | | private String jtargeNumText; |
| | | /** |
| | | * æºå±æ§æä¸¾å
é¨åç§° |
| | | */ |
| | | private String jtargeNumTextValue; |
| | | /** |
| | | * æºå±æ§æä¸¾æ¾ç¤ºåç§° |
| | | */ |
| | | private String targetNumText; |
| | | /** |
| | | * æºå±æ§æä¸¾å
é¨åç§° |
| | | */ |
| | | private String targetNumTextValue; |
| | | |
| | | public String getJmetaListId() { |
| | | return jmetaListId; |
| | | } |
| | | |
| | | public void setJmetaListId(String jmetaListId) { |
| | | this.jmetaListId = jmetaListId; |
| | | } |
| | | public String getMetaListId() { |
| | | return metaListId; |
| | | } |
| | | |
| | | public String getJnumText() { |
| | | return jnumText; |
| | | } |
| | | public void setMetaListId(String metaListId) { |
| | | this.metaListId = metaListId; |
| | | } |
| | | |
| | | public void setJnumText(String jnumText) { |
| | | this.jnumText = jnumText; |
| | | } |
| | | public String getNumText() { |
| | | return numText; |
| | | } |
| | | |
| | | public String getJnumTextValue() { |
| | | return jnumTextValue; |
| | | } |
| | | public void setNumText(String numText) { |
| | | this.numText = numText; |
| | | } |
| | | |
| | | public void setJnumTextValue(String jnumTextValue) { |
| | | this.jnumTextValue = jnumTextValue; |
| | | } |
| | | public String getNumTextValue() { |
| | | return numTextValue; |
| | | } |
| | | |
| | | public String getJtargeNumText() { |
| | | return jtargeNumText; |
| | | } |
| | | public void setNumTextValue(String numTextValue) { |
| | | this.numTextValue = numTextValue; |
| | | } |
| | | |
| | | public void setJtargeNumText(String jtargeNumText) { |
| | | this.jtargeNumText = jtargeNumText; |
| | | } |
| | | public String getTargetNumText() { |
| | | return targetNumText; |
| | | } |
| | | |
| | | public String getJtargeNumTextValue() { |
| | | return jtargeNumTextValue; |
| | | } |
| | | public void setTargetNumText(String targetNumText) { |
| | | this.targetNumText = targetNumText; |
| | | } |
| | | |
| | | public void setJtargeNumTextValue(String jtargeNumTextValue) { |
| | | this.jtargeNumTextValue = jtargeNumTextValue; |
| | | } |
| | | public String getTargetNumTextValue() { |
| | | return targetNumTextValue; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "DockingPreAttrRangeVO{" + |
| | | "jmetaListId='" + jmetaListId + '\'' + |
| | | ", jnumText='" + jnumText + '\'' + |
| | | ", jnumTextValue='" + jnumTextValue + '\'' + |
| | | ", jtargeNumText='" + jtargeNumText + '\'' + |
| | | ", jtargeNumTextValue='" + jtargeNumTextValue + '\'' + |
| | | '}'; |
| | | } |
| | | public void setTargetNumTextValue(String targetNumTextValue) { |
| | | this.targetNumTextValue = targetNumTextValue; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "DockingPreAttrRangeVO{" + |
| | | "metaListId='" + metaListId + '\'' + |
| | | ", numText='" + numText + '\'' + |
| | | ", numTextValue='" + numTextValue + '\'' + |
| | | ", targetNumText='" + targetNumText + '\'' + |
| | | ", targetNumTextValue='" + targetNumTextValue + '\'' + |
| | | '}'; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.vo.pagemodel; |
| | | |
| | | /** |
| | | * è®°å½éæéå¢åç±»ä¿¡æ¯ |
| | | * @author xiejun |
| | | * @date 2023-05-22 |
| | | */ |
| | | public class DockingPreClassifyVO extends BaseModelVO{ |
| | | |
| | | /** |
| | | * åºåå |
| | | */ |
| | | private static final long serialVersionUID = 6020487634341415438L; |
| | | /*** |
| | | * åç±»åç§° |
| | | */ |
| | | private String className; |
| | | /*** |
| | | * åç±»é¾æ¥ |
| | | */ |
| | | private String nodeLink; |
| | | /**** |
| | | * åç±»é¾æ¥åç§° |
| | | */ |
| | | private String getNodeLinkName; |
| | | /*** |
| | | * ç¶çº§èç¹ |
| | | */ |
| | | private String pid; |
| | | |
| | | public String getClassName() { |
| | | return className; |
| | | } |
| | | |
| | | public void setClassName(String className) { |
| | | this.className = className; |
| | | } |
| | | |
| | | public String getNodeLink() { |
| | | return nodeLink; |
| | | } |
| | | |
| | | public void setNodeLink(String nodeLink) { |
| | | this.nodeLink = nodeLink; |
| | | } |
| | | |
| | | public String getGetNodeLinkName() { |
| | | return getNodeLinkName; |
| | | } |
| | | |
| | | public void setGetNodeLinkName(String getNodeLinkName) { |
| | | this.getNodeLinkName = getNodeLinkName; |
| | | } |
| | | |
| | | public String getPid() { |
| | | return pid; |
| | | } |
| | | |
| | | public void setPid(String pid) { |
| | | this.pid = pid; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "DockingPreClassifyDTO{" + |
| | | "className='" + className + '\'' + |
| | | ", nodeLink='" + nodeLink + '\'' + |
| | | ", getNodeLinkName='" + getNodeLinkName + '\'' + |
| | | ", pid='" + pid + '\'' + |
| | | '}'; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.vo.pagemodel; |
| | | /** |
| | | * è®°å½éæéå¢åç±»ä¿¡æ¯ |
| | | * @author xiejun |
| | | * @date 2023-05-22 |
| | | */ |
| | | public class DockingPreMetaAttrVO extends BaseModelVO{ |
| | | |
| | | /** |
| | | * åºåå |
| | | */ |
| | | private static final long serialVersionUID = 6020487634341415551L; |
| | | |
| | | /** |
| | | * 䏿åç§° |
| | | */ |
| | | private String chineseName; |
| | | /*** |
| | | * è±æåç§° |
| | | */ |
| | | private String englishName; |
| | | /*** |
| | | * åæ®µç±»å |
| | | */ |
| | | private int metaDataType=1; |
| | | |
| | | private int necesSaryConf=1; |
| | | |
| | | /*** |
| | | * åå¼èå´ |
| | | */ |
| | | private String range; |
| | | /*** |
| | | * ç¶å±æ§ |
| | | */ |
| | | private String pid; |
| | | |
| | | /** |
| | | * éå¢åç±»id |
| | | */ |
| | | private String sourceClassifyId; |
| | | /** |
| | | * è§å¾æ¨¡åid |
| | | */ |
| | | private String viewModelId; |
| | | /*** |
| | | * é»è®¤å¼ |
| | | */ |
| | | private String defaultValue; |
| | | |
| | | 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 int getMetaDataType() { |
| | | return metaDataType; |
| | | } |
| | | |
| | | public void setMetaDataType(int metaDataType) { |
| | | this.metaDataType = metaDataType; |
| | | } |
| | | |
| | | public int getNecesSaryConf() { |
| | | return necesSaryConf; |
| | | } |
| | | |
| | | public void setNecesSaryConf(int necesSaryConf) { |
| | | this.necesSaryConf = necesSaryConf; |
| | | } |
| | | |
| | | public String getRange() { |
| | | return range; |
| | | } |
| | | |
| | | public void setRange(String range) { |
| | | this.range = range; |
| | | } |
| | | |
| | | public String getPid() { |
| | | return pid; |
| | | } |
| | | |
| | | public void setPid(String pid) { |
| | | this.pid = pid; |
| | | } |
| | | |
| | | public String getSourceClassifyId() { |
| | | return sourceClassifyId; |
| | | } |
| | | |
| | | public void setSourceClassifyId(String sourceClassifyId) { |
| | | this.sourceClassifyId = sourceClassifyId; |
| | | } |
| | | |
| | | public String getViewModelId() { |
| | | return viewModelId; |
| | | } |
| | | |
| | | public void setViewModelId(String viewModelId) { |
| | | this.viewModelId = viewModelId; |
| | | } |
| | | |
| | | public String getDefaultValue() { |
| | | return defaultValue; |
| | | } |
| | | |
| | | public void setDefaultValue(String defaultValue) { |
| | | this.defaultValue = defaultValue; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "DockingPreMetaAttrVO{" + |
| | | "chineseName='" + chineseName + '\'' + |
| | | ", englishName='" + englishName + '\'' + |
| | | ", metaDataType=" + metaDataType + |
| | | ", necesSaryConf=" + necesSaryConf + |
| | | ", range='" + range + '\'' + |
| | | ", pid='" + pid + '\'' + |
| | | ", sourceClassifyId='" + sourceClassifyId + '\'' + |
| | | ", viewModelId='" + viewModelId + '\'' + |
| | | ", defaultValue='" + defaultValue + '\'' + |
| | | '}'; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.vo.pagemodel; |
| | | /** |
| | | * è®°å½éæéå¢åç±»è§å¾ä¿¡æ¯ |
| | | * @author xiejun |
| | | * @date 2023-05-22 |
| | | */ |
| | | public class DockingPreViewModelVO extends BaseModelVO{ |
| | | |
| | | /** |
| | | * åºåå |
| | | */ |
| | | private static final long serialVersionUID = 6020487634341415538L; |
| | | |
| | | /*** |
| | | * 模åè§å¾åç§° |
| | | */ |
| | | private String viewName; |
| | | |
| | | /*** |
| | | * éå¢åç±»oid |
| | | */ |
| | | private String sourceClassifyId; |
| | | /*** |
| | | * æ°æ®xinx |
| | | */ |
| | | private String impactList; |
| | | |
| | | |
| | | public String getViewName() { |
| | | return viewName; |
| | | } |
| | | |
| | | public void setViewName(String viewName) { |
| | | this.viewName = viewName; |
| | | } |
| | | |
| | | public String getSourceClassifyId() { |
| | | return sourceClassifyId; |
| | | } |
| | | |
| | | public void setSourceClassifyId(String sourceClassifyId) { |
| | | this.sourceClassifyId = sourceClassifyId; |
| | | } |
| | | |
| | | public String getImpactList() { |
| | | return impactList; |
| | | } |
| | | |
| | | public void setImpactList(String impactList) { |
| | | this.impactList = impactList; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "DockingPreViewModelVO{" + |
| | | "viewName='" + viewName + '\'' + |
| | | ", sourceClassifyId='" + sourceClassifyId + '\'' + |
| | | ", impactList='" + impactList + '\'' + |
| | | '}'; |
| | | } |
| | | } |
| | |
| | | * @date 2019/10/17 9:32 |
| | | */ |
| | | @Data |
| | | @TableName("pl_omd_lift_cycle_event") |
| | | @TableName("pl_omd_life_cycle_event") |
| | | @ApiModel(value = "çå½å¨æäºä»¶éå", description = "çå½å¨æäºä»¶éå") |
| | | public class LifeCycleEvent implements java.io.Serializable{ |
| | | |
| | |
| | | * @date 2019/10/10 6:56 PM |
| | | */ |
| | | @Data |
| | | @TableName("pl_omd_lift_cycle_line") |
| | | @TableName("pl_omd_life_cycle_line") |
| | | @ApiModel(value = "çå½å¨æç¶æè¿æ¥çº¿", description = "çå½å¨æç¶æè¿æ¥çº¿") |
| | | public class LifeCycleLine implements java.io.Serializable { |
| | | |
| | |
| | | * @date 2019/10/11 2:49 PM |
| | | */ |
| | | @Data |
| | | @TableName("pl_omd_lift_cycle_line_event") |
| | | @TableName("pl_omd_life_cycle_line_event") |
| | | @ApiModel(value = "çå½å¨æç¶æè¿æ¥çº¿", description = "çå½å¨æç¶æè¿æ¥çº¿") |
| | | public class LifeCycleLineEvent implements java.io.Serializable{ |
| | | |
| | |
| | | * @date 2019/10/10 5:59 PM |
| | | */ |
| | | @Data |
| | | @TableName("pl_omd_lift_cycle_rule") |
| | | @TableName("pl_omd_life_cycle_rule") |
| | | @ApiModel(value = "çå½å¨æè§å", description = "çå½å¨æè§å") |
| | | public class LifeCycleRule implements java.io.Serializable { |
| | | |
| | |
| | | /** |
| | | * ä¸å¡ç±»ååç§° |
| | | */ |
| | | private String btmname; |
| | | private String btmName; |
| | | |
| | | /** |
| | | * æ¥æè
|
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.omd.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import io.swagger.annotations.ApiModel; |
| | | import lombok.Data; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * Description: çæ¬è§å |
| | | * |
| | | * @author LiHang |
| | | * @date 2023/5/17 |
| | | */ |
| | | @Data |
| | | @TableName("pl_omd_revision_rule") |
| | | @ApiModel(value = "çæ¬è§å", description = "çæ¬è§å") |
| | | public class RevisionRule implements Serializable { |
| | | /** |
| | | * åºåå |
| | | */ |
| | | private static final long serialVersionUID = -8011164573572900457L; |
| | | /** |
| | | * ä¸»é® |
| | | */ |
| | | private String oid; |
| | | |
| | | /** |
| | | * è±æåç§° |
| | | */ |
| | | private String id; |
| | | |
| | | /** |
| | | * 䏿åç§° |
| | | */ |
| | | private String name; |
| | | |
| | | /** |
| | | * è·³è·å符 |
| | | */ |
| | | private String skipCode; |
| | | |
| | | /** |
| | | * åå§å¼ |
| | | */ |
| | | private String startCode; |
| | | |
| | | /** |
| | | * æ¥é¿ |
| | | */ |
| | | private Integer serialStep; |
| | | |
| | | /** |
| | | * åç¼ |
| | | */ |
| | | private String prefixCode; |
| | | |
| | | /** |
| | | * åç¼ |
| | | */ |
| | | private String suffixCode; |
| | | |
| | | /** |
| | | * æè¿° |
| | | */ |
| | | private String description; |
| | | |
| | | |
| | | /** |
| | | * ä¸å¡ç±»ååç§° |
| | | */ |
| | | private String btmName; |
| | | |
| | | /** |
| | | * æ¥æè
|
| | | */ |
| | | private String owner; |
| | | |
| | | /** |
| | | * å建人 |
| | | */ |
| | | private String creator; |
| | | |
| | | /** |
| | | * å建æ¶é´ |
| | | */ |
| | | private Date createTime; |
| | | |
| | | /** |
| | | * æåä¿®æ¹äºº |
| | | */ |
| | | private String lastModifier; |
| | | |
| | | /** |
| | | * æåä¿®æ¹æ¶é´ï¼æ ¼å¼æ¯yyyy-MM-dd HH:mm:ss |
| | | */ |
| | | private Date lastModifyTime; |
| | | |
| | | /** |
| | | * æ¶é´æ³ï¼æ ¼å¼æ¯yyyy-MM-dd HH:mm:ss.SSS |
| | | */ |
| | | private Date ts; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.omd.entity; |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import io.swagger.annotations.ApiModel; |
| | | import lombok.Data; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * Description:ç¶ææ± å¯¹è±¡ |
| | | * |
| | | * @author LiHang |
| | | * @date 2023/5/23 |
| | | */ |
| | | @Data |
| | | @TableName("pl_omd_status") |
| | | @ApiModel(value = "ç¶ææ± å¯¹è±¡", description = "ç¶ææ± å¯¹è±¡") |
| | | public class Status implements Serializable { |
| | | |
| | | /** |
| | | * åºåå |
| | | */ |
| | | private static final long serialVersionUID = 5914235157247110985L; |
| | | |
| | | /** |
| | | * ä¸»é® |
| | | */ |
| | | private String oid; |
| | | |
| | | /** |
| | | * ç¶æè±æåç§° |
| | | */ |
| | | private String id; |
| | | |
| | | /** |
| | | * ç¶æä¸æåç§° |
| | | */ |
| | | private String name; |
| | | |
| | | /** |
| | | * æè¿° |
| | | */ |
| | | private String description; |
| | | |
| | | /** |
| | | * ä¸å¡ç±»ååç§° |
| | | */ |
| | | private String btmName; |
| | | |
| | | /** |
| | | * æ¥æè
|
| | | */ |
| | | private String owner; |
| | | |
| | | /** |
| | | * å建人 |
| | | */ |
| | | private String creator; |
| | | |
| | | /** |
| | | * å建æ¶é´ |
| | | */ |
| | | private Date createTime; |
| | | |
| | | /** |
| | | * æåä¿®æ¹äºº |
| | | */ |
| | | private String lastModifier; |
| | | |
| | | /** |
| | | * æåä¿®æ¹æ¶é´ï¼æ ¼å¼æ¯yyyy-MM-dd HH:mm:ss |
| | | */ |
| | | private Date lastModifyTime; |
| | | |
| | | /** |
| | | * æ¶é´æ³ï¼æ ¼å¼æ¯yyyy-MM-dd HH:mm:ss.SSS |
| | | */ |
| | | private Date ts; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.omd.feign; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.vci.ubcs.omd.vo.RevisionRuleVO; |
| | | import com.vci.ubcs.starter.web.pagemodel.BaseQueryObject; |
| | | 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.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | |
| | | import java.util.Collection; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * Description:çæ¬è§åFeignæ¥å£ç±» |
| | | * |
| | | * @author LiHang |
| | | * @date 2023/5/22 |
| | | */ |
| | | @FeignClient( |
| | | value = AppConstant.APPLICATION_NAME_OMD, |
| | | fallback = IRevisionRuleFallback.class |
| | | ) |
| | | public interface IRevisionRuleClient { |
| | | |
| | | /** |
| | | * åç¼ |
| | | */ |
| | | String API_PREFIX = "/client"; |
| | | /** |
| | | * åç
§å表æ¥è¯¢ |
| | | */ |
| | | String GET_REF_PAGE = API_PREFIX + "/revision-rule/get-ref-page"; |
| | | /** |
| | | * åç
§å表æ¥è¯¢æ å页 |
| | | */ |
| | | String GET_REF = API_PREFIX + "/revision-rule/get-ref"; |
| | | /** |
| | | * åç
§æç» |
| | | */ |
| | | String GET_DETAIL = API_PREFIX + "/revision-rule/get-detail"; |
| | | /** |
| | | * è±æåç§°æ¹éæ¥è¯¢ |
| | | */ |
| | | String GET_BY_IDS = API_PREFIX + "/revision-rule/get-by-ids"; |
| | | /** |
| | | * 䏻鮿¹éæ¥è¯¢ |
| | | */ |
| | | String GET_BY_OIDS = API_PREFIX + "/revision-rule/get-by-oids"; |
| | | |
| | | /** |
| | | * è·åçæ¬è§å详æ
ä¿¡æ¯ |
| | | * |
| | | * @param oid ä¸»é® |
| | | * @return çæ¬è§å详æ
ä¿¡æ¯ |
| | | */ |
| | | @GetMapping(GET_DETAIL) |
| | | R<RevisionRuleVO> getDetail(@RequestParam("oid") String oid); |
| | | |
| | | /** |
| | | * åç
§å表æ¥è¯¢ |
| | | * @param baseQueryObject æ¥è¯¢æ¡ä»¶ |
| | | * @return æ¥è¯¢ç»æ |
| | | */ |
| | | @GetMapping(GET_REF_PAGE) |
| | | R<IPage<RevisionRuleVO>> getRefPage(@RequestParam("baseQueryObject") BaseQueryObject baseQueryObject); |
| | | |
| | | /** |
| | | * åç
§å表æ¥è¯¢ |
| | | * @param baseQueryObject æ¥è¯¢æ¡ä»¶ |
| | | * @return æ¥è¯¢ç»æ |
| | | */ |
| | | @GetMapping(GET_REF) |
| | | R<List<RevisionRuleVO>> getRef(@RequestParam("baseQueryObject")BaseQueryObject baseQueryObject); |
| | | |
| | | /** |
| | | * æ ¹æ®è±æåç§°æ¹éæ¥è¯¢å¯¹è±¡ |
| | | * @param ids å¯¹è±¡è±æåç§° 使¯ä¸è½è¶
è¿1000 |
| | | * @return ä¸å¡å¯¹è±¡ |
| | | */ |
| | | @GetMapping(GET_BY_IDS) |
| | | R<List<RevisionRuleVO>> selectByIdCollection(List<String> ids); |
| | | |
| | | /** |
| | | * æ¹éæ ¹æ®ä¸»é®è·åçæ¬è§å |
| | | * @param pkBtmTypeCollection çæ¬è§å主é®éå |
| | | * @return çæ¬è§åå表ï¼å¦ææä¸åå¨çä¸ä¼è¿åï¼å
¨é¨ä¸åå¨çåè¿å空å表 |
| | | */ |
| | | @GetMapping(GET_BY_OIDS) |
| | | R<List<RevisionRuleVO>> listBtmTypeByOidCollection(Collection<String> pkBtmTypeCollection); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.omd.feign; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.vci.ubcs.omd.vo.RevisionRuleVO; |
| | | import com.vci.ubcs.starter.web.pagemodel.BaseQueryObject; |
| | | import org.springblade.core.mp.support.Query; |
| | | import org.springblade.core.tool.api.R; |
| | | |
| | | import java.util.Collection; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * Description: Feign失败类 |
| | | * |
| | | * @author LiHang |
| | | * @date 2023/5/22 |
| | | */ |
| | | public class IRevisionRuleFallback implements IRevisionRuleClient{ |
| | | /** |
| | | * è·åçæ¬è§å详æ
ä¿¡æ¯ |
| | | * |
| | | * @param oid ä¸»é® |
| | | * @return çæ¬è§å详æ
ä¿¡æ¯ |
| | | */ |
| | | @Override |
| | | public R<RevisionRuleVO> getDetail(String oid) { |
| | | return R.fail("è·åæ°æ®å¤±è´¥"); |
| | | } |
| | | |
| | | /** |
| | | * åç
§å表æ¥è¯¢ |
| | | * |
| | | * @param baseQueryObject æ¥è¯¢æ¡ä»¶ |
| | | * @return æ¥è¯¢ç»æ |
| | | */ |
| | | @Override |
| | | public R<IPage<RevisionRuleVO>> getRefPage(BaseQueryObject baseQueryObject) { |
| | | return R.fail("è·åæ°æ®å¤±è´¥"); |
| | | } |
| | | |
| | | /** |
| | | * åç
§å表æ¥è¯¢ |
| | | * |
| | | * @param baseQueryObject æ¥è¯¢æ¡ä»¶ |
| | | * @return æ¥è¯¢ç»æ |
| | | */ |
| | | @Override |
| | | public R<List<RevisionRuleVO>> getRef(BaseQueryObject baseQueryObject) { |
| | | return R.fail("è·åæ°æ®å¤±è´¥"); |
| | | } |
| | | |
| | | /** |
| | | * æ ¹æ®è±æåç§°æ¹éæ¥è¯¢å¯¹è±¡ |
| | | * |
| | | * @param ids å¯¹è±¡è±æåç§° 使¯ä¸è½è¶
è¿1000 |
| | | * @return ä¸å¡å¯¹è±¡ |
| | | */ |
| | | @Override |
| | | public R<List<RevisionRuleVO>> selectByIdCollection(List<String> ids) { |
| | | return R.fail("è·åæ°æ®å¤±è´¥"); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éæ ¹æ®ä¸»é®è·åçæ¬è§å |
| | | * |
| | | * @param pkBtmTypeCollection çæ¬è§å主é®éå |
| | | * @return çæ¬è§åå表ï¼å¦ææä¸åå¨çä¸ä¼è¿åï¼å
¨é¨ä¸åå¨çåè¿å空å表 |
| | | */ |
| | | @Override |
| | | public R<List<RevisionRuleVO>> listBtmTypeByOidCollection(Collection<String> pkBtmTypeCollection) { |
| | | return R.fail("è·åæ°æ®å¤±è´¥"); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.omd.feign; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.vci.ubcs.omd.entity.Status; |
| | | import com.vci.ubcs.omd.vo.StatusVO; |
| | | import com.vci.ubcs.starter.web.pagemodel.BaseQueryObject; |
| | | import com.vci.ubcs.starter.web.pagemodel.KeyValue; |
| | | 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.GetMapping; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * Description: ç¶ææ± Feignæ¥å£ç±» |
| | | * |
| | | * @author LiHang |
| | | * @date 2023/5/23 |
| | | */ |
| | | @FeignClient( |
| | | value = AppConstant.APPLICATION_NAME_OMD, |
| | | fallback = IRevisionRuleFallback.class |
| | | ) |
| | | public interface IStatusClient { |
| | | /** |
| | | * åç¼ |
| | | */ |
| | | String API_PREFIX = "/client"; |
| | | /** |
| | | * åç
§å表æ¥è¯¢ |
| | | */ |
| | | String GET_REF_PAGE = API_PREFIX + "/status/get-ref-page"; |
| | | /** |
| | | * åç
§å表æ¥è¯¢æ å页 |
| | | */ |
| | | String GET_REF = API_PREFIX + "/status/get-ref"; |
| | | |
| | | /** |
| | | * è±æåç§°æ¹éæ¥è¯¢ |
| | | */ |
| | | String GET_NAME_BY_IDS = API_PREFIX + "/status/get-name-by-ids"; |
| | | |
| | | /** |
| | | * åç
§å表æ¥è¯¢ |
| | | * @param baseQueryObject æ¥è¯¢æ¡ä»¶å¯¹è±¡ |
| | | * @return æ§è¡ç»æ |
| | | */ |
| | | @GetMapping(GET_REF_PAGE) |
| | | R<IPage<StatusVO>> getRefPage(BaseQueryObject baseQueryObject); |
| | | |
| | | /** |
| | | * åç
§æ¥è¯¢ |
| | | * @param baseQueryObject æ¥è¯¢æ¡ä»¶å¯¹è±¡ |
| | | * @return æ§è¡ç»æ |
| | | */ |
| | | @GetMapping(GET_REF) |
| | | R<List<StatusVO>> getRef(BaseQueryObject baseQueryObject); |
| | | |
| | | /** |
| | | * è±ææ¥è¯¢ä¸æåç§° |
| | | * @param ids è±æ |
| | | * @return æ¥è¯¢ç»æ |
| | | */ |
| | | @GetMapping(GET_NAME_BY_IDS) |
| | | R<Map<String,String>> getNameByIds(String ids); |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.omd.feign; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.vci.ubcs.omd.vo.StatusVO; |
| | | import com.vci.ubcs.starter.web.pagemodel.BaseQueryObject; |
| | | import com.vci.ubcs.starter.web.pagemodel.KeyValue; |
| | | import org.springblade.core.tool.api.R; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * Description: |
| | | * |
| | | * @author LiHang |
| | | * @date 2023/5/23 |
| | | */ |
| | | public class IStatusFallback implements IStatusClient{ |
| | | /** |
| | | * åç
§å表æ¥è¯¢ |
| | | * |
| | | * @param baseQueryObject æ¥è¯¢æ¡ä»¶å¯¹è±¡ |
| | | * @return æ§è¡ç»æ |
| | | */ |
| | | @Override |
| | | public R<IPage<StatusVO>> getRefPage(BaseQueryObject baseQueryObject) { |
| | | return R.fail("è·åæ°æ®å¤±è´¥"); |
| | | } |
| | | |
| | | /** |
| | | * åç
§æ¥è¯¢ |
| | | * |
| | | * @param baseQueryObject æ¥è¯¢æ¡ä»¶å¯¹è±¡ |
| | | * @return æ§è¡ç»æ |
| | | */ |
| | | @Override |
| | | public R<List<StatusVO>> getRef(BaseQueryObject baseQueryObject) { |
| | | return R.fail("è·åæ°æ®å¤±è´¥"); |
| | | } |
| | | |
| | | /** |
| | | * è±ææ¥è¯¢ä¸æåç§° |
| | | * |
| | | * @param ids è±æ |
| | | * @return æ¥è¯¢ç»æ |
| | | */ |
| | | @Override |
| | | public R<Map<String,String>> getNameByIds(String ids) { |
| | | return R.fail("è·åæ°æ®å¤±è´¥"); |
| | | } |
| | | } |
| | |
| | | package com.vci.ubcs.omd.vo; |
| | | |
| | | import lombok.Data; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * çå½å¨æäºä»¶æ¾ç¤ºå¯¹è±¡ |
| | | * @author weidy |
| | | * @date 2019/10/17 9:46 |
| | | * @author LiHang |
| | | * @date 2023/4/3 |
| | | */ |
| | | @Data |
| | | public class LifeCycleEventVO implements java.io.Serializable{ |
| | | |
| | | /** |
| | |
| | | * æ¶é´æ³ï¼æ ¼å¼æ¯yyyy-MM-dd HH:mm:ss.SSS |
| | | */ |
| | | private Date ts; |
| | | |
| | | public String getEventFullName() { |
| | | return eventFullName; |
| | | } |
| | | |
| | | public void setEventFullName(String eventFullName) { |
| | | this.eventFullName = eventFullName; |
| | | } |
| | | |
| | | public String getEventShowName() { |
| | | return eventShowName; |
| | | } |
| | | |
| | | public void setEventShowName(String eventShowName) { |
| | | this.eventShowName = eventShowName; |
| | | } |
| | | |
| | | public String getDescription() { |
| | | return description; |
| | | } |
| | | |
| | | public void setDescription(String description) { |
| | | this.description = description; |
| | | } |
| | | |
| | | public String getCreator() { |
| | | return creator; |
| | | } |
| | | |
| | | public void setCreator(String creator) { |
| | | this.creator = creator; |
| | | } |
| | | |
| | | public Date getCreateTime() { |
| | | return createTime; |
| | | } |
| | | |
| | | public void setCreateTime(Date createTime) { |
| | | this.createTime = createTime; |
| | | } |
| | | |
| | | public String getLastModifier() { |
| | | return lastModifier; |
| | | } |
| | | |
| | | public void setLastModifier(String lastModifier) { |
| | | this.lastModifier = lastModifier; |
| | | } |
| | | |
| | | public Date getLastModifyTime() { |
| | | return lastModifyTime; |
| | | } |
| | | |
| | | public void setLastModifyTime(Date lastModifyTime) { |
| | | this.lastModifyTime = lastModifyTime; |
| | | } |
| | | |
| | | public Date getTs() { |
| | | return ts; |
| | | } |
| | | |
| | | public void setTs(Date ts) { |
| | | this.ts = ts; |
| | | } |
| | | |
| | | public String getOid() { |
| | | return oid; |
| | | } |
| | | |
| | | public void setOid(String oid) { |
| | | this.oid = oid; |
| | | } |
| | | |
| | | |
| | | public String getBtmname() { |
| | | return btmname; |
| | | } |
| | | |
| | | public void setBtmname(String btmname) { |
| | | this.btmname = btmname; |
| | | } |
| | | |
| | | public String getOwner() { |
| | | return owner; |
| | | } |
| | | |
| | | public void setOwner(String owner) { |
| | | this.owner = owner; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "OsLifeCycleEventVO{" + |
| | | "oid='" + oid + '\'' + |
| | | ", eventFullName='" + eventFullName + '\'' + |
| | | ", eventShowName='" + eventShowName + '\'' + |
| | | ", description='" + description + '\'' + |
| | | ", btmname='" + btmname + '\'' + |
| | | ", owner='" + owner + '\'' + |
| | | ", creator='" + creator + '\'' + |
| | | ", createTime=" + createTime + |
| | | ", lastModifier='" + lastModifier + '\'' + |
| | | ", lastModifyTime=" + lastModifyTime + |
| | | ", ts=" + ts + |
| | | '}'; |
| | | } |
| | | } |
| | |
| | | package com.vci.ubcs.omd.vo; |
| | | |
| | | |
| | | import lombok.Data; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * çå½å¨æè¿æ¥çº¿äºä»¶ |
| | | * @author weidy |
| | | * @date 2019/10/11 4:54 PM |
| | | * @author LiHang |
| | | * @date 2023/4/3 |
| | | */ |
| | | @Data |
| | | public class LifeCycleLineEventVO implements java.io.Serializable{ |
| | | |
| | | /** |
| | |
| | | * æ¶é´æ³ï¼æ ¼å¼æ¯yyyy-MM-dd HH:mm:ss.SSS |
| | | */ |
| | | private Date ts; |
| | | |
| | | public String getOid() { |
| | | return oid; |
| | | } |
| | | |
| | | public void setOid(String oid) { |
| | | this.oid = oid; |
| | | } |
| | | |
| | | public String getPkLifeCycleLine() { |
| | | return pkLifeCycleLine; |
| | | } |
| | | |
| | | public void setPkLifeCycleLine(String pkLifeCycleLine) { |
| | | this.pkLifeCycleLine = pkLifeCycleLine; |
| | | } |
| | | |
| | | public String getEventFullName() { |
| | | return eventFullName; |
| | | } |
| | | |
| | | public void setEventFullName(String eventFullName) { |
| | | this.eventFullName = eventFullName; |
| | | } |
| | | |
| | | public String getEventShowName() { |
| | | return eventShowName; |
| | | } |
| | | |
| | | public void setEventShowName(String eventShowName) { |
| | | this.eventShowName = eventShowName; |
| | | } |
| | | |
| | | public String getCreator() { |
| | | return creator; |
| | | } |
| | | |
| | | public void setCreator(String creator) { |
| | | this.creator = creator; |
| | | } |
| | | |
| | | public Date getCreateTime() { |
| | | return createTime; |
| | | } |
| | | |
| | | public void setCreateTime(Date createTime) { |
| | | this.createTime = createTime; |
| | | } |
| | | |
| | | public String getLastModifier() { |
| | | return lastModifier; |
| | | } |
| | | |
| | | public void setLastModifier(String lastModifier) { |
| | | this.lastModifier = lastModifier; |
| | | } |
| | | |
| | | public Date getLastModifyTime() { |
| | | return lastModifyTime; |
| | | } |
| | | |
| | | public void setLastModifyTime(Date lastModifyTime) { |
| | | this.lastModifyTime = lastModifyTime; |
| | | } |
| | | |
| | | public Date getTs() { |
| | | return ts; |
| | | } |
| | | |
| | | public void setTs(Date ts) { |
| | | this.ts = ts; |
| | | } |
| | | |
| | | public Integer getOrderNum() { |
| | | return orderNum; |
| | | } |
| | | |
| | | public void setOrderNum(Integer orderNum) { |
| | | this.orderNum = orderNum; |
| | | } |
| | | |
| | | |
| | | public String getBtmname() { |
| | | return btmname; |
| | | } |
| | | |
| | | public void setBtmname(String btmname) { |
| | | this.btmname = btmname; |
| | | } |
| | | |
| | | public String getOwner() { |
| | | return owner; |
| | | } |
| | | |
| | | public void setOwner(String owner) { |
| | | this.owner = owner; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "OsLifeCycleLineEventVO{" + |
| | | "oid='" + oid + '\'' + |
| | | ", pkLifeCycleLine='" + pkLifeCycleLine + '\'' + |
| | | ", eventFullName='" + eventFullName + '\'' + |
| | | ", eventShowName='" + eventShowName + '\'' + |
| | | ", orderNum=" + orderNum + |
| | | ", btmname='" + btmname + '\'' + |
| | | ", owner='" + owner + '\'' + |
| | | ", creator='" + creator + '\'' + |
| | | ", createTime=" + createTime + |
| | | ", lastModifier='" + lastModifier + '\'' + |
| | | ", lastModifyTime=" + lastModifyTime + |
| | | ", ts=" + ts + |
| | | '}'; |
| | | } |
| | | } |
| | |
| | | package com.vci.ubcs.omd.vo; |
| | | |
| | | import lombok.Data; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * çå½å¨æè¿æ¥çº¿ |
| | | * @author weidy |
| | | * @date 2019/10/11 4:48 PM |
| | | * @author LiHang |
| | | * @date 2023/4/3 |
| | | */ |
| | | @Data |
| | | public class LifeCycleLineVO implements java.io.Serializable { |
| | | |
| | | /** |
| | |
| | | * å
å«äºä»¶ |
| | | */ |
| | | private List<LifeCycleLineEventVO> events; |
| | | |
| | | public String getPkLifeCycle() { |
| | | return pkLifeCycle; |
| | | } |
| | | |
| | | public void setPkLifeCycle(String pkLifeCycle) { |
| | | this.pkLifeCycle = pkLifeCycle; |
| | | } |
| | | |
| | | public String getSourceLifeStatus() { |
| | | return sourceLifeStatus; |
| | | } |
| | | |
| | | public void setSourceLifeStatus(String sourceLifeStatus) { |
| | | this.sourceLifeStatus = sourceLifeStatus; |
| | | } |
| | | |
| | | public String getSourceLifeStatusName() { |
| | | return sourceLifeStatusName; |
| | | } |
| | | |
| | | public void setSourceLifeStatusName(String sourceLifeStatusName) { |
| | | this.sourceLifeStatusName = sourceLifeStatusName; |
| | | } |
| | | |
| | | public String getTargetLifeStatus() { |
| | | return targetLifeStatus; |
| | | } |
| | | |
| | | public void setTargetLifeStatus(String targetLifeStatus) { |
| | | this.targetLifeStatus = targetLifeStatus; |
| | | } |
| | | |
| | | public String getTargetLifeStatusName() { |
| | | return targetLifeStatusName; |
| | | } |
| | | |
| | | public void setTargetLifeStatusName(String targetLifeStatusName) { |
| | | this.targetLifeStatusName = targetLifeStatusName; |
| | | } |
| | | |
| | | public String getName() { |
| | | return name; |
| | | } |
| | | |
| | | public void setName(String name) { |
| | | this.name = name; |
| | | } |
| | | |
| | | public String getTransLineSiteInfo() { |
| | | return transLineSiteInfo; |
| | | } |
| | | |
| | | public void setTransLineSiteInfo(String transLineSiteInfo) { |
| | | this.transLineSiteInfo = transLineSiteInfo; |
| | | } |
| | | |
| | | public String getOid() { |
| | | return oid; |
| | | } |
| | | |
| | | public void setOid(String oid) { |
| | | this.oid = oid; |
| | | } |
| | | |
| | | public String getCreator() { |
| | | return creator; |
| | | } |
| | | |
| | | public void setCreator(String creator) { |
| | | this.creator = creator; |
| | | } |
| | | |
| | | public Date getCreateTime() { |
| | | return createTime; |
| | | } |
| | | |
| | | public void setCreateTime(Date createTime) { |
| | | this.createTime = createTime; |
| | | } |
| | | |
| | | public String getLastModifier() { |
| | | return lastModifier; |
| | | } |
| | | |
| | | public void setLastModifier(String lastModifier) { |
| | | this.lastModifier = lastModifier; |
| | | } |
| | | |
| | | public Date getLastModifyTime() { |
| | | return lastModifyTime; |
| | | } |
| | | |
| | | public void setLastModifyTime(Date lastModifyTime) { |
| | | this.lastModifyTime = lastModifyTime; |
| | | } |
| | | |
| | | public Date getTs() { |
| | | return ts; |
| | | } |
| | | |
| | | public void setTs(Date ts) { |
| | | this.ts = ts; |
| | | } |
| | | |
| | | public List<LifeCycleLineEventVO> getEvents() { |
| | | return events; |
| | | } |
| | | |
| | | public void setEvents(List<LifeCycleLineEventVO> events) { |
| | | this.events = events; |
| | | } |
| | | |
| | | |
| | | public String getBtmname() { |
| | | return btmname; |
| | | } |
| | | |
| | | public void setBtmname(String btmname) { |
| | | this.btmname = btmname; |
| | | } |
| | | |
| | | public String getOwner() { |
| | | return owner; |
| | | } |
| | | |
| | | public void setOwner(String owner) { |
| | | this.owner = owner; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "OsLifeCycleLineVO{" + |
| | | "pkLifeCycle='" + pkLifeCycle + '\'' + |
| | | ", sourceLifeStatus='" + sourceLifeStatus + '\'' + |
| | | ", sourceLifeStatusName='" + sourceLifeStatusName + '\'' + |
| | | ", targetLifeStatus='" + targetLifeStatus + '\'' + |
| | | ", targetLifeStatusName='" + targetLifeStatusName + '\'' + |
| | | ", name='" + name + '\'' + |
| | | ", transLineSiteInfo='" + transLineSiteInfo + '\'' + |
| | | ", oid='" + oid + '\'' + |
| | | ", btmname='" + btmname + '\'' + |
| | | ", owner='" + owner + '\'' + |
| | | ", creator='" + creator + '\'' + |
| | | ", createTime=" + createTime + |
| | | ", lastModifier='" + lastModifier + '\'' + |
| | | ", lastModifyTime=" + lastModifyTime + |
| | | ", ts=" + ts + |
| | | ", events=" + events + |
| | | '}'; |
| | | } |
| | | } |
| | |
| | | package com.vci.ubcs.omd.vo; |
| | | |
| | | import lombok.Data; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * çå½å¨ææ¾ç¤ºå¯¹è±¡ |
| | | * @author weidy |
| | | * @date 2019/10/11 4:45 PM |
| | | * @author LiHang |
| | | * @date 2023/4/3 |
| | | */ |
| | | @Data |
| | | public class LifeCycleVO implements java.io.Serializable{ |
| | | |
| | | /** |
| | |
| | | /** |
| | | * å
å«è¿æ¥çº¿ |
| | | */ |
| | | private List<LifeCycleLineVO> lines ; |
| | | |
| | | public String getClassFullName() { |
| | | return classFullName; |
| | | } |
| | | |
| | | public void setClassFullName(String classFullName) { |
| | | this.classFullName = classFullName; |
| | | } |
| | | |
| | | public String getBtmname() { |
| | | return btmname; |
| | | } |
| | | |
| | | public void setBtmname(String btmname) { |
| | | this.btmname = btmname; |
| | | } |
| | | |
| | | public String getOwner() { |
| | | return owner; |
| | | } |
| | | |
| | | public void setOwner(String owner) { |
| | | this.owner = owner; |
| | | } |
| | | |
| | | public String getOid() { |
| | | return oid; |
| | | } |
| | | |
| | | public void setOid(String oid) { |
| | | this.oid = oid; |
| | | } |
| | | |
| | | 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 getDescription() { |
| | | return description; |
| | | } |
| | | |
| | | public void setDescription(String description) { |
| | | this.description = description; |
| | | } |
| | | |
| | | public String getStartStatus() { |
| | | return startStatus; |
| | | } |
| | | |
| | | public void setStartStatus(String startStatus) { |
| | | this.startStatus = startStatus; |
| | | } |
| | | |
| | | public String getStartStatusName() { |
| | | return startStatusName; |
| | | } |
| | | |
| | | public void setStartStatusName(String startStatusName) { |
| | | this.startStatusName = startStatusName; |
| | | } |
| | | |
| | | public String getCreator() { |
| | | return creator; |
| | | } |
| | | |
| | | public void setCreator(String creator) { |
| | | this.creator = creator; |
| | | } |
| | | |
| | | public Date getCreateTime() { |
| | | return createTime; |
| | | } |
| | | |
| | | public void setCreateTime(Date createTime) { |
| | | this.createTime = createTime; |
| | | } |
| | | |
| | | public String getLastModifier() { |
| | | return lastModifier; |
| | | } |
| | | |
| | | public void setLastModifier(String lastModifier) { |
| | | this.lastModifier = lastModifier; |
| | | } |
| | | |
| | | public Date getLastModifyTime() { |
| | | return lastModifyTime; |
| | | } |
| | | |
| | | public void setLastModifyTime(Date lastModifyTime) { |
| | | this.lastModifyTime = lastModifyTime; |
| | | } |
| | | |
| | | public Date getTs() { |
| | | return ts; |
| | | } |
| | | |
| | | public void setTs(Date ts) { |
| | | this.ts = ts; |
| | | } |
| | | |
| | | public List<LifeCycleLineVO> getLines() { |
| | | return lines; |
| | | } |
| | | |
| | | public void setLines(List<LifeCycleLineVO> lines) { |
| | | this.lines = lines; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "OsLifeCycleVO{" + |
| | | "oid='" + oid + '\'' + |
| | | ", id='" + id + '\'' + |
| | | ", name='" + name + '\'' + |
| | | ", description='" + description + '\'' + |
| | | ", classFullName='" + classFullName + '\'' + |
| | | ", startStatus='" + startStatus + '\'' + |
| | | ", startStatusName='" + startStatusName + '\'' + |
| | | ", btmname='" + btmname + '\'' + |
| | | ", owner='" + owner + '\'' + |
| | | ", creator='" + creator + '\'' + |
| | | ", createTime=" + createTime + |
| | | ", lastModifier='" + lastModifier + '\'' + |
| | | ", lastModifyTime=" + lastModifyTime + |
| | | ", ts=" + ts + |
| | | ", lines=" + lines + |
| | | '}'; |
| | | } |
| | | private List<LifeCycleLineVO> lines; |
| | | } |
| | |
| | | |
| | | /** |
| | | * 龿¥ç±»åå
å«ç屿§ |
| | | * @author weidy |
| | | * @date 2019/10/11 6:16 PM |
| | | * @author LiHang |
| | | * @date 2023/4/3 |
| | | */ |
| | | public class LinkTypeAttributeVO implements java.io.Serializable{ |
| | | |
| | |
| | | /** |
| | | * |
| | | * 龿¥ç±»åæ¾ç¤ºå¯¹è±¡ |
| | | * @author weidy |
| | | * @date 2019/10/11 6:04 PM |
| | | * @author LiHang |
| | | * @date 2023/4/3 |
| | | */ |
| | | @Data |
| | | public class LinkTypeVO implements java.io.Serializable { |
| | |
| | | package com.vci.ubcs.omd.vo; |
| | | |
| | | import lombok.Data; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * éè¦ä¿®æ¹æ°æ®åºè¡¨ä¸å段çä¿¡æ¯ |
| | | * @author weidy |
| | | * @date 2019/10/18 11:48 |
| | | * @author LiHang |
| | | * @date 2023/4/3 |
| | | */ |
| | | @Data |
| | | public class ModifyAttributeInfoVO implements java.io.Serializable{ |
| | | |
| | | /** |
| | |
| | | /** |
| | | * ä¸å¡ç±»ååç§° |
| | | */ |
| | | private String btmname; |
| | | private String btmName; |
| | | |
| | | /** |
| | | * æ¥æè
|
| | |
| | | * æ¶é´æ³ï¼æ ¼å¼æ¯yyyy-MM-dd HH:mm:ss.SSS |
| | | */ |
| | | private Date ts; |
| | | |
| | | public String getBtmTypeId() { |
| | | return btmTypeId; |
| | | } |
| | | |
| | | public void setBtmTypeId(String btmTypeId) { |
| | | this.btmTypeId = btmTypeId; |
| | | } |
| | | |
| | | public String getBtmTypeName() { |
| | | return btmTypeName; |
| | | } |
| | | |
| | | public void setBtmTypeName(String btmTypeName) { |
| | | this.btmTypeName = btmTypeName; |
| | | } |
| | | |
| | | public String getLinkTypeFlag() { |
| | | return linkTypeFlag; |
| | | } |
| | | |
| | | public void setLinkTypeFlag(String linkTypeFlag) { |
| | | this.linkTypeFlag = linkTypeFlag; |
| | | } |
| | | |
| | | public String getTableName() { |
| | | return tableName; |
| | | } |
| | | |
| | | public void setTableName(String tableName) { |
| | | this.tableName = tableName; |
| | | } |
| | | |
| | | public String getModifyAttributeType() { |
| | | return modifyAttributeType; |
| | | } |
| | | |
| | | public void setModifyAttributeType(String modifyAttributeType) { |
| | | this.modifyAttributeType = modifyAttributeType; |
| | | } |
| | | |
| | | public String getModifyAttributeTypeText() { |
| | | return modifyAttributeTypeText; |
| | | } |
| | | |
| | | public void setModifyAttributeTypeText(String modifyAttributeTypeText) { |
| | | this.modifyAttributeTypeText = modifyAttributeTypeText; |
| | | } |
| | | |
| | | public String getColumnName() { |
| | | return columnName; |
| | | } |
| | | |
| | | public void setColumnName(String columnName) { |
| | | this.columnName = columnName; |
| | | } |
| | | |
| | | public String getModifyColumnReason() { |
| | | return modifyColumnReason; |
| | | } |
| | | |
| | | public void setModifyColumnReason(String modifyColumnReason) { |
| | | this.modifyColumnReason = modifyColumnReason; |
| | | } |
| | | |
| | | public String getOrderModifyUserName() { |
| | | return orderModifyUserName; |
| | | } |
| | | |
| | | public void setOrderModifyUserName(String orderModifyUserName) { |
| | | this.orderModifyUserName = orderModifyUserName; |
| | | } |
| | | |
| | | public Date getOrderModifyDate() { |
| | | return orderModifyDate; |
| | | } |
| | | |
| | | public void setOrderModifyDate(Date orderModifyDate) { |
| | | this.orderModifyDate = orderModifyDate; |
| | | } |
| | | |
| | | public String getAttributeDataTypeBefore() { |
| | | return attributeDataTypeBefore; |
| | | } |
| | | |
| | | public void setAttributeDataTypeBefore(String attributeDataTypeBefore) { |
| | | this.attributeDataTypeBefore = attributeDataTypeBefore; |
| | | } |
| | | |
| | | public String getAttributeDataTypeAfter() { |
| | | return attributeDataTypeAfter; |
| | | } |
| | | |
| | | public void setAttributeDataTypeAfter(String attributeDataTypeAfter) { |
| | | this.attributeDataTypeAfter = attributeDataTypeAfter; |
| | | } |
| | | |
| | | public String getDeleteColumnFlag() { |
| | | return deleteColumnFlag; |
| | | } |
| | | |
| | | public void setDeleteColumnFlag(String deleteColumnFlag) { |
| | | this.deleteColumnFlag = deleteColumnFlag; |
| | | } |
| | | |
| | | public boolean isHandleFinishFlag() { |
| | | return handleFinishFlag; |
| | | } |
| | | |
| | | public void setHandleFinishFlag(boolean handleFinishFlag) { |
| | | this.handleFinishFlag = handleFinishFlag; |
| | | } |
| | | |
| | | public String getHandleUserName() { |
| | | return handleUserName; |
| | | } |
| | | |
| | | public void setHandleUserName(String handleUserName) { |
| | | this.handleUserName = handleUserName; |
| | | } |
| | | |
| | | public Date getHandleDate() { |
| | | return handleDate; |
| | | } |
| | | |
| | | public void setHandleDate(Date handleDate) { |
| | | this.handleDate = handleDate; |
| | | } |
| | | |
| | | public String getHandleResult() { |
| | | return handleResult; |
| | | } |
| | | |
| | | public void setHandleResult(String handleResult) { |
| | | this.handleResult = handleResult; |
| | | } |
| | | |
| | | public String getOid() { |
| | | return oid; |
| | | } |
| | | |
| | | public void setOid(String oid) { |
| | | this.oid = oid; |
| | | } |
| | | |
| | | public String getCreator() { |
| | | return creator; |
| | | } |
| | | |
| | | public void setCreator(String creator) { |
| | | this.creator = creator; |
| | | } |
| | | |
| | | public Date getCreateTime() { |
| | | return createTime; |
| | | } |
| | | |
| | | public void setCreateTime(Date createTime) { |
| | | this.createTime = createTime; |
| | | } |
| | | |
| | | public String getLastModifier() { |
| | | return lastModifier; |
| | | } |
| | | |
| | | public void setLastModifier(String lastModifier) { |
| | | this.lastModifier = lastModifier; |
| | | } |
| | | |
| | | public Date getLastModifyTime() { |
| | | return lastModifyTime; |
| | | } |
| | | |
| | | public void setLastModifyTime(Date lastModifyTime) { |
| | | this.lastModifyTime = lastModifyTime; |
| | | } |
| | | |
| | | public Date getTs() { |
| | | return ts; |
| | | } |
| | | |
| | | public void setTs(Date ts) { |
| | | this.ts = ts; |
| | | } |
| | | |
| | | |
| | | public String getBtmname() { |
| | | return btmname; |
| | | } |
| | | |
| | | public void setBtmname(String btmname) { |
| | | this.btmname = btmname; |
| | | } |
| | | |
| | | public String getOwner() { |
| | | return owner; |
| | | } |
| | | |
| | | public void setOwner(String owner) { |
| | | this.owner = owner; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "OsModifyAttributeInfoVO{" + |
| | | "btmTypeId='" + btmTypeId + '\'' + |
| | | ", btmTypeName='" + btmTypeName + '\'' + |
| | | ", linkTypeFlag='" + linkTypeFlag + '\'' + |
| | | ", tableName='" + tableName + '\'' + |
| | | ", modifyAttributeType='" + modifyAttributeType + '\'' + |
| | | ", modifyAttributeTypeText='" + modifyAttributeTypeText + '\'' + |
| | | ", columnName='" + columnName + '\'' + |
| | | ", modifyColumnReason='" + modifyColumnReason + '\'' + |
| | | ", orderModifyUserName='" + orderModifyUserName + '\'' + |
| | | ", orderModifyDate=" + orderModifyDate + |
| | | ", attributeDataTypeBefore='" + attributeDataTypeBefore + '\'' + |
| | | ", attributeDataTypeAfter='" + attributeDataTypeAfter + '\'' + |
| | | ", deleteColumnFlag='" + deleteColumnFlag + '\'' + |
| | | ", handleFinishFlag=" + handleFinishFlag + |
| | | ", handleUserName='" + handleUserName + '\'' + |
| | | ", handleDate=" + handleDate + |
| | | ", handleResult='" + handleResult + '\'' + |
| | | ", oid='" + oid + '\'' + |
| | | ", btmname='" + btmname + '\'' + |
| | | ", owner='" + owner + '\'' + |
| | | ", creator='" + creator + '\'' + |
| | | ", createTime=" + createTime + |
| | | ", lastModifier='" + lastModifier + '\'' + |
| | | ", lastModifyTime=" + lastModifyTime + |
| | | ", ts=" + ts + |
| | | '}'; |
| | | } |
| | | } |
| | |
| | | package com.vci.ubcs.omd.vo; |
| | | |
| | | import lombok.Data; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | |
| | | * @author weidy |
| | | * @date 2019/10/11 5:19 PM |
| | | */ |
| | | @Data |
| | | public class RevisionRuleVO implements java.io.Serializable{ |
| | | |
| | | /** |
| | |
| | | /** |
| | | * ä¸å¡ç±»ååç§° |
| | | */ |
| | | private String btmname; |
| | | private String btmName; |
| | | |
| | | /** |
| | | * æ¥æè
|
| | |
| | | * æ¶é´æ³ï¼æ ¼å¼æ¯yyyy-MM-dd HH:mm:ss.SSS |
| | | */ |
| | | private Date ts; |
| | | |
| | | public String getOid() { |
| | | return oid; |
| | | } |
| | | |
| | | public void setOid(String oid) { |
| | | this.oid = oid; |
| | | } |
| | | |
| | | 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 getSkipCode() { |
| | | return skipCode; |
| | | } |
| | | |
| | | public void setSkipCode(String skipCode) { |
| | | this.skipCode = skipCode; |
| | | } |
| | | |
| | | public String getStartCode() { |
| | | return startCode; |
| | | } |
| | | |
| | | public void setStartCode(String startCode) { |
| | | this.startCode = startCode; |
| | | } |
| | | |
| | | public Integer getSerialStep() { |
| | | return serialStep; |
| | | } |
| | | |
| | | public void setSerialStep(Integer serialStep) { |
| | | this.serialStep = serialStep; |
| | | } |
| | | |
| | | public String getPrefixCode() { |
| | | return prefixCode; |
| | | } |
| | | |
| | | public void setPrefixCode(String prefixCode) { |
| | | this.prefixCode = prefixCode; |
| | | } |
| | | |
| | | public String getSuffixCode() { |
| | | return suffixCode; |
| | | } |
| | | |
| | | public void setSuffixCode(String suffixCode) { |
| | | this.suffixCode = suffixCode; |
| | | } |
| | | |
| | | public String getDescription() { |
| | | return description; |
| | | } |
| | | |
| | | public void setDescription(String description) { |
| | | this.description = description; |
| | | } |
| | | |
| | | public String getCreator() { |
| | | return creator; |
| | | } |
| | | |
| | | public void setCreator(String creator) { |
| | | this.creator = creator; |
| | | } |
| | | |
| | | public Date getCreateTime() { |
| | | return createTime; |
| | | } |
| | | |
| | | public void setCreateTime(Date createTime) { |
| | | this.createTime = createTime; |
| | | } |
| | | |
| | | public String getLastModifier() { |
| | | return lastModifier; |
| | | } |
| | | |
| | | public void setLastModifier(String lastModifier) { |
| | | this.lastModifier = lastModifier; |
| | | } |
| | | |
| | | public Date getLastModifyTime() { |
| | | return lastModifyTime; |
| | | } |
| | | |
| | | public void setLastModifyTime(Date lastModifyTime) { |
| | | this.lastModifyTime = lastModifyTime; |
| | | } |
| | | |
| | | public Date getTs() { |
| | | return ts; |
| | | } |
| | | |
| | | public void setTs(Date ts) { |
| | | this.ts = ts; |
| | | } |
| | | |
| | | public String getBtmname() { |
| | | return btmname; |
| | | } |
| | | |
| | | public void setBtmname(String btmname) { |
| | | this.btmname = btmname; |
| | | } |
| | | |
| | | public String getOwner() { |
| | | return owner; |
| | | } |
| | | |
| | | public void setOwner(String owner) { |
| | | this.owner = owner; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "OsRevisionRuleVO{" + |
| | | "oid='" + oid + '\'' + |
| | | ", id='" + id + '\'' + |
| | | ", name='" + name + '\'' + |
| | | ", skipCode='" + skipCode + '\'' + |
| | | ", startCode='" + startCode + '\'' + |
| | | ", serialStep=" + serialStep + |
| | | ", prefixCode='" + prefixCode + '\'' + |
| | | ", suffixCode='" + suffixCode + '\'' + |
| | | ", description='" + description + '\'' + |
| | | ", btmname='" + btmname + '\'' + |
| | | ", owner='" + owner + '\'' + |
| | | ", creator='" + creator + '\'' + |
| | | ", createTime=" + createTime + |
| | | ", lastModifier='" + lastModifier + '\'' + |
| | | ", lastModifyTime=" + lastModifyTime + |
| | | ", ts=" + ts + |
| | | '}'; |
| | | } |
| | | } |
| | | |
| | |
| | | package com.vci.ubcs.omd.vo; |
| | | |
| | | import lombok.Data; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * ç¶æ |
| | | * @author weidy |
| | | * @date 2019/10/11 4:40 PM |
| | | * ç¶ææ± |
| | | * @author lihang |
| | | * @date 2023/05/23 |
| | | */ |
| | | @Data |
| | | public class StatusVO implements java.io.Serializable { |
| | | |
| | | |
| | |
| | | /** |
| | | * ä¸å¡ç±»ååç§° |
| | | */ |
| | | private String btmname; |
| | | private String btmName; |
| | | |
| | | /** |
| | | * æ¥æè
|
| | |
| | | * æ¶é´æ³ï¼æ ¼å¼æ¯yyyy-MM-dd HH:mm:ss.SSS |
| | | */ |
| | | private Date ts; |
| | | |
| | | public String getOid() { |
| | | return oid; |
| | | } |
| | | |
| | | public void setOid(String oid) { |
| | | this.oid = oid; |
| | | } |
| | | |
| | | 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 getDescription() { |
| | | return description; |
| | | } |
| | | |
| | | public void setDescription(String description) { |
| | | this.description = description; |
| | | } |
| | | |
| | | public String getCreator() { |
| | | return creator; |
| | | } |
| | | |
| | | public void setCreator(String creator) { |
| | | this.creator = creator; |
| | | } |
| | | |
| | | public Date getCreateTime() { |
| | | return createTime; |
| | | } |
| | | |
| | | public void setCreateTime(Date createTime) { |
| | | this.createTime = createTime; |
| | | } |
| | | |
| | | public String getLastModifier() { |
| | | return lastModifier; |
| | | } |
| | | |
| | | public void setLastModifier(String lastModifier) { |
| | | this.lastModifier = lastModifier; |
| | | } |
| | | |
| | | public Date getLastModifyTime() { |
| | | return lastModifyTime; |
| | | } |
| | | |
| | | public void setLastModifyTime(Date lastModifyTime) { |
| | | this.lastModifyTime = lastModifyTime; |
| | | } |
| | | |
| | | public Date getTs() { |
| | | return ts; |
| | | } |
| | | |
| | | public void setTs(Date ts) { |
| | | this.ts = ts; |
| | | } |
| | | |
| | | |
| | | public String getBtmname() { |
| | | return btmname; |
| | | } |
| | | |
| | | public void setBtmname(String btmname) { |
| | | this.btmname = btmname; |
| | | } |
| | | |
| | | public String getOwner() { |
| | | return owner; |
| | | } |
| | | |
| | | public void setOwner(String owner) { |
| | | this.owner = owner; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "OsStatusVO{" + |
| | | "oid='" + oid + '\'' + |
| | | ", id='" + id + '\'' + |
| | | ", name='" + name + '\'' + |
| | | ", description='" + description + '\'' + |
| | | ", btmname='" + btmname + '\'' + |
| | | ", owner='" + owner + '\'' + |
| | | ", creator='" + creator + '\'' + |
| | | ", createTime=" + createTime + |
| | | ", lastModifier='" + lastModifier + '\'' + |
| | | ", lastModifyTime=" + lastModifyTime + |
| | | ", ts=" + ts + |
| | | '}'; |
| | | } |
| | | } |
| | |
| | | package com.vci.ubcs.code.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.vci.ubcs.code.entity.CodeWupinEntity; |
| | | 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.List; |
| | | import java.util.Objects; |
| | | |
| | | /** |
| | | * å
Œ
±æ¥è©¢mapper |
| | | * |
| | | * @author xiejun |
| | | * @date 2023-05-22 |
| | | */ |
| | | public interface DockingLogeMapper extends BaseMapper<DockingLog> { |
| | | |
| | | |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.vci.ubcs.code.entity.DockingPreApplyForm; |
| | | |
| | | public interface DockingPreApplyFormMapper extends BaseMapper<DockingPreApplyForm> { |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.vci.ubcs.code.entity.DockingPreAttrMapping; |
| | | |
| | | public interface DockingPreAttrMappingMapper extends BaseMapper<DockingPreAttrMapping> { |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.vci.ubcs.code.entity.DockingPreAttrRange; |
| | | |
| | | public interface DockingPreAttrRangeMapper extends BaseMapper<DockingPreAttrRange> { |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.vci.ubcs.code.entity.DockingPreClassify; |
| | | |
| | | public interface DockingPreClassifyMapper extends BaseMapper<DockingPreClassify> { |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.vci.ubcs.code.entity.DockingPreMetaAttr; |
| | | |
| | | public interface DockingPreMetaAttrMapper extends BaseMapper<DockingPreMetaAttr> { |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.vci.ubcs.code.entity.DockingPreViewModel; |
| | | |
| | | public interface DockingPreViewModelMapper extends BaseMapper<DockingPreViewModel> { |
| | | } |
| | |
| | | package com.vci.ubcs.code.service; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.Wrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapper; |
| | | import com.baomidou.mybatisplus.extension.conditions.query.QueryChainWrapper; |
| | | import com.baomidou.mybatisplus.extension.conditions.update.LambdaUpdateChainWrapper; |
| | | import com.baomidou.mybatisplus.extension.conditions.update.UpdateChainWrapper; |
| | | import com.baomidou.mybatisplus.extension.kotlin.KtQueryChainWrapper; |
| | | import com.baomidou.mybatisplus.extension.kotlin.KtUpdateChainWrapper; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.vci.ubcs.code.entity.CodeWupinEntity; |
| | | import com.vci.ubcs.code.entity.DockingLog; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.Collection; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.function.Function; |
| | | |
| | | /** |
| | | * ä¸»æ°æ®å¼ææå¡ |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.vci.ubcs.code.entity.DockingPreApplyForm; |
| | | |
| | | /*** |
| | | * éå¢ç³è¯·åæå¡ |
| | | * @author xiejun |
| | | * @since 2023-04-10 2023-05-23 |
| | | */ |
| | | public interface IDockingPreApplyFormService extends IService<DockingPreApplyForm> { |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.vci.ubcs.code.entity.DockingPreAttrMapping; |
| | | /** |
| | | * éå¢éæé
ç½®æå¡ |
| | | * @author xiej |
| | | * @date 2023-05-17 |
| | | */ |
| | | public interface IDockingPreAttrMappingService extends IService<DockingPreAttrMapping> { |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.vci.ubcs.code.entity.DockingPreAttrRange; |
| | | |
| | | public interface IDockingPreAttrRangeService extends IService<DockingPreAttrRange> { |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.vci.ubcs.code.entity.DockingPreClassify; |
| | | |
| | | /*** |
| | | * éå¢åç±»æå¡ |
| | | * @author xiejun |
| | | * @date 2022-05-23 |
| | | */ |
| | | public interface IDockingPreClassifyService extends IService<DockingPreClassify> { |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.vci.ubcs.code.entity.DockingPreMetaAttr; |
| | | |
| | | /*** |
| | | * éå¢å±æ§æå¡ |
| | | * @author xiejun |
| | | * @date 2023-05-23 |
| | | */ |
| | | public interface IDockingPreMetaAttrService extends IService<DockingPreMetaAttr> { |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.vci.ubcs.code.entity.DockingPreViewModel; |
| | | |
| | | /*** |
| | | * éå¢å类模åæå¡ |
| | | * @author xiejun |
| | | * @date 2023-05-23 |
| | | */ |
| | | public interface IDockingPreViewModelService extends IService<DockingPreViewModel> { |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.vci.ubcs.code.entity.DockingPreApplyForm; |
| | | import com.vci.ubcs.code.mapper.DockingPreApplyFormMapper; |
| | | import com.vci.ubcs.code.service.IDockingPreApplyFormService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /*** |
| | | *éå¢å±æ§æ å°æå¡ |
| | | * @author xiejun |
| | | * @date 2023-05-22 |
| | | */ |
| | | @Service |
| | | public class DockingPreApplyFormServiceImpl extends ServiceImpl<DockingPreApplyFormMapper, DockingPreApplyForm> implements IDockingPreApplyFormService { |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.vci.ubcs.code.entity.DockingPreAttrMapping; |
| | | import com.vci.ubcs.code.mapper.DockingPreAttrMappingMapper; |
| | | import com.vci.ubcs.code.service.IDockingPreAttrMappingService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /*** |
| | | *éå¢å±æ§æ å°æå¡ |
| | | * @author xiejun |
| | | * @date 2023-05-22 |
| | | */ |
| | | @Service |
| | | public class DockingPreAttrMappingServiceImpl extends ServiceImpl<DockingPreAttrMappingMapper, DockingPreAttrMapping> implements IDockingPreAttrMappingService { |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.service.impl; |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.vci.ubcs.code.entity.DockingPreAttrRange; |
| | | import com.vci.ubcs.code.mapper.DockingPreAttrRangeMapper; |
| | | import com.vci.ubcs.code.service.IDockingPreAttrRangeService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /*** |
| | | *éå¢å±æ§åå¼èå´æå¡ |
| | | * @author xiejun |
| | | * @date 2023-05-22 |
| | | */ |
| | | @Service |
| | | public class DockingPreAttrRangeServiceImpl extends ServiceImpl<DockingPreAttrRangeMapper, DockingPreAttrRange> implements IDockingPreAttrRangeService { |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.Wrapper; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.vci.ubcs.code.entity.DockingPreAttrRange; |
| | | import com.vci.ubcs.code.entity.DockingPreClassify; |
| | | import com.vci.ubcs.code.mapper.DockingPreClassifyMapper; |
| | | import com.vci.ubcs.code.service.IDockingPreClassifyService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.Collection; |
| | | import java.util.Map; |
| | | import java.util.function.Function; |
| | | |
| | | /** |
| | | * éå¢åç±»ä¸å¡æå¡ |
| | | * @author xiejun |
| | | * @date 2023-05-23 |
| | | */ |
| | | @Service |
| | | public class DockingPreClassifyServiceImpl extends ServiceImpl<DockingPreClassifyMapper, DockingPreClassify> implements IDockingPreClassifyService { |
| | | |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.vci.ubcs.code.entity.DockingPreMetaAttr; |
| | | import com.vci.ubcs.code.mapper.DockingPreMetaAttrMapper; |
| | | import com.vci.ubcs.code.service.IDockingPreMetaAttrService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /*** |
| | | * éå¢å±æ§æå¡ |
| | | * @author xiejun |
| | | * @date 2023-05-23 |
| | | */ |
| | | @Service |
| | | public class DockingPreMetaAttrServiceImpl extends ServiceImpl<DockingPreMetaAttrMapper, DockingPreMetaAttr> implements IDockingPreMetaAttrService { |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.vci.ubcs.code.entity.DockingPreViewModel; |
| | | import com.vci.ubcs.code.mapper.DockingPreViewModelMapper; |
| | | import com.vci.ubcs.code.service.IDockingPreViewModelService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /*** |
| | | * é墿¨¡åæå¡ |
| | | * @author xiejun |
| | | * @date 2023-05-23 |
| | | */ |
| | | @Service |
| | | public class DockingPreViewModelServiceImpl extends ServiceImpl<DockingPreViewModelMapper,DockingPreViewModel> implements IDockingPreViewModelService { |
| | | } |
| | |
| | | } |
| | | |
| | | @Override |
| | | public String queryClassifyRule(String data, String datatype) throws Throwable { |
| | | return null; |
| | | public String queryClassifyRule(String data, String dataType) throws Throwable { |
| | | |
| | | boolean issucess=false; |
| | | String resultStr = ""; |
| | | String errorid="0"; |
| | | msg="æå"; |
| | | String systemId=""; |
| | | log.info("æ¥è¯¢åç±»çæ°æ®åæ°:->"+data); |
| | | log.info("æ¥è¯¢åç±»çæ°æ®ç±»å:->"+dataType); |
| | | ResultClassifyVO resultClassifyVO =new ResultClassifyVO(); |
| | | List<ClassifyVO> classifyVOList=new ArrayList<>(); |
| | | try { |
| | | if (StringUtils.isBlank(data)) { |
| | | errorid = "101"; |
| | | throw new Throwable("æ¥å£åæ°ï¼ä¼ é为空"); |
| | | } |
| | | QueryClassifyVO queryClassifyVO = new QueryClassifyVO(); |
| | | //妿dataTypeæ¯xmlåï¼éè¿xmlåºååæå¯¹è±¡å½¢å¼ï¼å¦ææ¯jsonåéè¿jsonè½¬æ¢æå¯¹è±¡æ ¼å¼ |
| | | try { |
| | | if ("xml".equals(dataType)) { |
| | | XStream xStream = new XStream(new DomDriver()); |
| | | xStream.processAnnotations(QueryData.class); |
| | | xStream.autodetectAnnotations(true); |
| | | QueryData queryData = (QueryData) xStream.fromXML(data); |
| | | queryClassifyVO.setData(queryData); |
| | | } else { |
| | | queryClassifyVO = JSONObject.toJavaObject(JSONObject.parseObject(data), QueryClassifyVO.class); |
| | | } |
| | | } catch (Throwable e) { |
| | | errorid = "101"; |
| | | msg = "æ¥å£åæ°ï¼ä¼ å
¥æ°æ®åæ°è§£æå¤±è´¥"; |
| | | e.printStackTrace(); |
| | | throw new Throwable("æ¥å£åæ°ï¼ä¼ å
¥æ°æ®åæ°è§£æå¤±è´¥"); |
| | | } |
| | | QueryData queryData=queryClassifyVO.getData(); |
| | | UserVO userVo=queryData.getUser(); |
| | | systemId=queryData.getSystemId(); |
| | | QueryLibraryVO libraryVO= queryData.getLibrary(); |
| | | String libId= libraryVO.getId(); |
| | | List<String> classifyIdList= libraryVO.getClassifyid(); |
| | | List<CodeClassifyVO> codeClassifyVOS =new ArrayList<>(); |
| | | //è¿æ¯è´¦å·ä¿¡æ¯ |
| | | //è¿æ¯è´¦å·ä¿¡æ¯ |
| | | if(userVo!=null) { |
| | | SessionInfo sessionInfo = new SessionInfo(); |
| | | sessionInfo.setUserId(userVo.getUserName()); |
| | | sessionInfo.setUserName(userVo.getTrueName()); |
| | | sessionInfo.setIp(userVo.getIp()); |
| | | VciBaseUtil.setCurrentUserSessionInfo(sessionInfo); |
| | | }else{ |
| | | errorid = "101"; |
| | | throw new Throwable("æ¥å£åæ°ï¼è´¦å·ä¿¡æ¯è·å失败"); |
| | | } |
| | | if(!CollectionUtils.isEmpty(classifyIdList)){ |
| | | //å
ç®ç§°æ¯å¦æå
³è模æ¿ï¼ææ¨¡æ¿è¦å
å é¤ |
| | | List<CodeClassify> libIdDos = classifyService.selectByWrapper(Wrappers.<CodeClassify>query().lambda().in(CodeClassify::getId, classifyIdList)); |
| | | codeClassifyVOS=classifyService.codeClassifyDO2VOs(libIdDos); |
| | | }else { |
| | | List<CodeClassify> libIdDos = classifyService.selectByWrapper(Wrappers.<CodeClassify>query().lambda().eq(CodeClassify::getId, libId)); |
| | | String oid= libIdDos.get(0).getOid(); |
| | | TreeQueryObject treeQueryObject=new TreeQueryObject(); |
| | | treeQueryObject.setParentOid(oid); |
| | | treeQueryObject.setQueryAllLevel(true); |
| | | codeClassifyVOS=classifyService.selectCodeClassifyDOByTree(treeQueryObject); |
| | | } |
| | | |
| | | }catch (Throwable e){ |
| | | e.printStackTrace();; |
| | | msg="æ¥è¯¢å类失败:"+e.getMessage(); |
| | | }finally { |
| | | // resultData.setErrorid(errorid); |
| | | // resultData.setMsg(msg); |
| | | // resultClassifyVO.setResultData(resultData); |
| | | } |
| | | if(dataType.equals("xml")){ |
| | | //ç»ç»è¿åæ¥å£ä¿¡æ¯ |
| | | XStream xStream = new XStream(new DomDriver()); |
| | | xStream.processAnnotations(XMLResultSystemVO.class); |
| | | xStream.autodetectAnnotations(true); |
| | | //resultStr = "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n" + xStream.toXML(resultData); |
| | | |
| | | }else{ |
| | | Object object = JSONObject.toJSON(resultClassifyVO); |
| | | resultStr = object.toString(); |
| | | } |
| | | try { |
| | | //è®°å½æ¥å¿ |
| | | this.saveLogs(systemId, systemId, data, resultStr, issucess, msg, "queryClassify"); |
| | | }catch (Throwable e){ |
| | | e.printStackTrace(); |
| | | } |
| | | log.info("è¿ååæ°:"+resultStr); |
| | | return resultStr; |
| | | } |
| | | |
| | | /*** |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.wrapper; |
| | | |
| | | import com.vci.ubcs.code.entity.DockingPreApplyForm; |
| | | import com.vci.ubcs.code.vo.pagemodel.DockingPreApplyFormVO; |
| | | import org.springblade.core.mp.support.BaseEntityWrapper; |
| | | import org.springblade.core.tool.utils.BeanUtil; |
| | | |
| | | import java.util.Objects; |
| | | |
| | | /*** |
| | | * ç³è¯·åå
è£
ç±» |
| | | * @author xiejun |
| | | * @date 2023-05-23 |
| | | */ |
| | | public class DockingPreApplyFormWrapper extends BaseEntityWrapper<DockingPreApplyForm, DockingPreApplyFormVO> { |
| | | |
| | | @Override |
| | | public DockingPreApplyFormVO entityVO(DockingPreApplyForm entity) { |
| | | DockingPreApplyFormVO dockingPreApplyFormVO = Objects.requireNonNull(BeanUtil.copy(entity, DockingPreApplyFormVO.class)); |
| | | return dockingPreApplyFormVO; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.wrapper; |
| | | |
| | | import com.vci.ubcs.code.entity.DockingPreAttrMapping; |
| | | import com.vci.ubcs.code.vo.pagemodel.DockingLogeVO; |
| | | import com.vci.ubcs.code.vo.pagemodel.DockingPreAttrMappingVO; |
| | | import org.springblade.core.mp.support.BaseEntityWrapper; |
| | | import org.springblade.core.tool.utils.BeanUtil; |
| | | |
| | | import java.util.Objects; |
| | | /** |
| | | *éå¢ç¼ç éæå±æ§æ å°é
ç½®å
è£
ç±» |
| | | * |
| | | * @author xiejun |
| | | * @since 2023-05-23 |
| | | */ |
| | | public class DockingPreAttrMappingWrapper extends BaseEntityWrapper<DockingPreAttrMapping, DockingPreAttrMappingVO> { |
| | | @Override |
| | | public DockingPreAttrMappingVO entityVO(DockingPreAttrMapping entity) { |
| | | DockingPreAttrMappingVO dockingPreAttrMappingVO = Objects.requireNonNull(BeanUtil.copy(entity, DockingPreAttrMappingVO.class)); |
| | | return dockingPreAttrMappingVO; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.wrapper; |
| | | |
| | | 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 org.springblade.core.mp.support.BaseEntityWrapper; |
| | | import org.springblade.core.tool.utils.BeanUtil; |
| | | |
| | | import java.util.Objects; |
| | | /** |
| | | *éå¢ç¼ç å类模åè§å¾å±æ§åå¼èå´å
è£
ç±» |
| | | * |
| | | * @author xiejun |
| | | * @since 2023-05-23 |
| | | */ |
| | | public class DockingPreAttrRangeWrapper extends BaseEntityWrapper<DockingPreAttrRange, DockingPreAttrRangeVO> { |
| | | |
| | | @Override |
| | | public DockingPreAttrRangeVO entityVO(DockingPreAttrRange entity) { |
| | | DockingPreAttrRangeVO dockingPreAttrRangeVO = Objects.requireNonNull(BeanUtil.copy(entity, DockingPreAttrRangeVO.class)); |
| | | return dockingPreAttrRangeVO; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.wrapper; |
| | | |
| | | import com.vci.ubcs.code.entity.DockingPreClassify; |
| | | import com.vci.ubcs.code.vo.pagemodel.DockingPreAttrMappingVO; |
| | | import com.vci.ubcs.code.vo.pagemodel.DockingPreClassifyVO; |
| | | import org.springblade.core.mp.support.BaseEntityWrapper; |
| | | import org.springblade.core.tool.utils.BeanUtil; |
| | | |
| | | import java.util.Objects; |
| | | /** |
| | | *éå¢ç¼ç åç±»å
è£
ç±» |
| | | * |
| | | * @author xiejun |
| | | * @since 2023-05-23 |
| | | */ |
| | | public class DockingPreClassifyWrapper extends BaseEntityWrapper<DockingPreClassify, DockingPreClassifyVO> { |
| | | @Override |
| | | public DockingPreClassifyVO entityVO(DockingPreClassify entity) { |
| | | DockingPreClassifyVO dockingPreClassifyVO = Objects.requireNonNull(BeanUtil.copy(entity, DockingPreClassifyVO.class)); |
| | | return dockingPreClassifyVO; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.wrapper; |
| | | |
| | | import com.vci.ubcs.code.entity.DockingPreMetaAttr; |
| | | import com.vci.ubcs.code.entity.DockingPreViewModel; |
| | | import com.vci.ubcs.code.vo.pagemodel.DockingPreMetaAttrVO; |
| | | import com.vci.ubcs.code.vo.pagemodel.DockingPreViewModelVO; |
| | | import org.springblade.core.mp.support.BaseEntityWrapper; |
| | | import org.springblade.core.tool.utils.BeanUtil; |
| | | |
| | | import java.util.Objects; |
| | | /** |
| | | *éå¢ç¼ç ç³è¯·æ¨¡å屿§å
è£
ç±» |
| | | * |
| | | * @author xiejun |
| | | * @since 2023-05-23 |
| | | */ |
| | | public class DockingPreMetaAttrWrapper extends BaseEntityWrapper<DockingPreMetaAttr, DockingPreMetaAttrVO> { |
| | | @Override |
| | | public DockingPreMetaAttrVO entityVO(DockingPreMetaAttr entity) { |
| | | DockingPreMetaAttrVO dockingPreMetaAttrVO = Objects.requireNonNull(BeanUtil.copy(entity, DockingPreMetaAttrVO.class)); |
| | | return dockingPreMetaAttrVO; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.wrapper; |
| | | |
| | | import com.vci.ubcs.code.entity.DockingPreViewModel; |
| | | import com.vci.ubcs.code.vo.pagemodel.DockingPreClassifyVO; |
| | | import com.vci.ubcs.code.vo.pagemodel.DockingPreViewModelVO; |
| | | import org.springblade.core.mp.support.BaseEntityWrapper; |
| | | import org.springblade.core.tool.utils.BeanUtil; |
| | | |
| | | import java.util.Objects; |
| | | /** |
| | | *éå¢ç¼ç ç³è¯·è§å¾å
è£
ç±» |
| | | * |
| | | * @author xiejun |
| | | * @since 2023-05-23 |
| | | */ |
| | | public class DockingPreViewWrapper extends BaseEntityWrapper<DockingPreViewModel, DockingPreViewModelVO> { |
| | | @Override |
| | | public DockingPreViewModelVO entityVO(DockingPreViewModel entity) { |
| | | DockingPreViewModelVO dockingPreViewModelVO = Objects.requireNonNull(BeanUtil.copy(entity, DockingPreViewModelVO.class)); |
| | | return dockingPreViewModelVO; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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.DockingLogeMapper"> |
| | | <!-- éç¨æ¥è¯¢æ å°ç»æ --> |
| | | <resultMap id="DockingPreAttrMappingResultMap" type="com.vci.ubcs.code.entity.DockingLog"> |
| | | <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="SYSTEMOID" property="systemOid"/> |
| | | <result column="SYSTEMCODE" property="systemCode"/> |
| | | <result column="SYSTEMNAME" property="systemName"/> |
| | | <result column="CLASSIFYOID" property="classifyOid"/> |
| | | <result column="CLASSIFYID" property="classifyId"/> |
| | | <result column="CLASSIFYNAME" property="classifyName"/> |
| | | <result column="UNIQUECODE" property="uniqueCode"/> |
| | | <result column="TYPE" property="type"/> |
| | | <result column="MSG" property="msg"/> |
| | | <result column="PARAMSTRING" property="paramString"/> |
| | | <result column="SENDXML" property="sendXml"/> |
| | | <result column="RETURNSTRING" property="returnString"/> |
| | | <result column="INTERFACESTATUS" property="interfaceStatus"/> |
| | | </resultMap> |
| | | |
| | | |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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"> |
| | | <!-- éç¨æ¥è¯¢æ å°ç»æ --> |
| | | <resultMap id="DockingPreAttrMappingResultMap" type="com.vci.ubcs.code.entity.DockingPreApplyForm"> |
| | | <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="CODE" property="code"/> |
| | | <result column="CONTENT" property="content"/> |
| | | <result column="DATAOID" property="dataOid"/> |
| | | <result column="DATABTMNAME" property="dataBtmName"/> |
| | | <result column="MSG" property="msg"/> |
| | | </resultMap> |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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"> |
| | | <!-- éç¨æ¥è¯¢æ å°ç»æ --> |
| | | <resultMap id="DockingPreAttrMappingResultMap" type="com.vci.ubcs.code.entity.DockingPreAttrMapping"> |
| | | <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="DEFAULTVALUE" property="defaultValue"/> |
| | | <result column="METALISTID" property="metaListId"/> |
| | | <result column="SOURCECLSFID" property="sourceClassifyId"/> |
| | | <result column="SOURCECLSFNAME" property="sourceClassifyName"/> |
| | | <result column="TARGETATTRID" property="targetAttrId"/> |
| | | <result column="TARGETCLSFID" property="targetClassifyId"/> |
| | | <result column="VIEWMODEID" property="viewModeId"/> |
| | | <result column="VIEWMODENAME" property="viewModeName"/> |
| | | <result column="TARGETATTRKEY" property="targetAttrKey"/> |
| | | <result column="TARGETATTRNAME" property="targetAttrName"/> |
| | | <result column="SOURCEATTRKEY" property="sourceAttrKey"/> |
| | | <result column="SOURCEATTRNAME" property="sourceAttrName"/> |
| | | <result column="VIEWMODELNAME" property="viewModelName"/> |
| | | <result column="VIEWNAME" property="viewName"/> |
| | | <result column="SOURCEATTRNAME" property="targetClassifyName"/> |
| | | </resultMap> |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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"> |
| | | <!-- éç¨æ¥è¯¢æ å°ç»æ --> |
| | | <resultMap id="DockingPreAttrMappingResultMap" type="com.vci.ubcs.code.entity.DockingPreAttrRange"> |
| | | <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="METALISTID" property="metaListId"/> |
| | | <result column="NUMTEXT" property="numText"/> |
| | | <result column="NUMTEXTVALUE" property="numTextValue"/> |
| | | <result column="TARGETNUMTEXT" property="targetNumText"/> |
| | | <result column="TARGETNUMTEXTVALUE" property="targetNumTextValue"/> |
| | | </resultMap> |
| | | |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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.DockingPreClassifyMapper"> |
| | | <!-- éç¨æ¥è¯¢æ å°ç»æ --> |
| | | <resultMap id="DockingPreAttrMappingResultMap" type="com.vci.ubcs.code.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> |
| | | |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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"> |
| | | <!-- éç¨æ¥è¯¢æ å°ç»æ --> |
| | | <resultMap id="DockingPreAttrMappingResultMap" type="com.vci.ubcs.code.entity.DockingPreMetaAttr"> |
| | | <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="CHINESENAME" property="chineseName"/> |
| | | <result column="ENGLISHNAME" property="englishName"/> |
| | | <result column="METADATATYPE" property="metaDataType"/> |
| | | <result column="NECESSARYCONF" property="necesSaryConf"/> |
| | | <result column="RANGE" property="range"/> |
| | | <result column="PID" property="pid"/> |
| | | <result column="SOURCECLSFID" property="sourceClassifyId"/> |
| | | <result column="VIEWMODEID" property="viewModelId"/> |
| | | <result column="DEFAULTVALUE" property="defaultValue"/> |
| | | </resultMap> |
| | | |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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"> |
| | | <!-- éç¨æ¥è¯¢æ å°ç»æ --> |
| | | <resultMap id="DockingPreAttrMappingResultMap" type="com.vci.ubcs.code.entity.DockingPreViewModel"> |
| | | <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="VIEWNAME" property="viewName"/> |
| | | <result column="SOURCECLSFID" property="sourceClassifyId"/> |
| | | <result column="IMPACTLIST" property="impactList"/> |
| | | </resultMap> |
| | | |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | |
| | | |
| | | import com.vci.ubcs.code.service.ICodeClassifyService; |
| | | import com.vci.ubcs.code.vo.pagemodel.CodeClassifyVO; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.io.File; |
| | | import java.io.IOException; |
| | | |
| | | //ååºFileçä¸äºå¸¸ç¨æä½ |
| | | public class util { |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * éåæå®ç®å½ä¸ï¼å
æ¬å
¶åç®å½ï¼çæææä»¶ï¼å¹¶å é¤ä»¥ lastUpdated ç»å°¾çæä»¶ |
| | | * @param dir ç®å½çä½ç½® path |
| | | * @throws IOException |
| | | */ |
| | | public static void listDirectory(File dir) throws IOException { |
| | | if (!dir.exists()) |
| | | throw new IllegalArgumentException("ç®å½ï¼" + dir + "ä¸åå¨."); |
| | | if (!dir.isDirectory()) { |
| | | throw new IllegalArgumentException(dir + " 䏿¯ç®å½ã"); |
| | | } |
| | | File[] files = dir.listFiles(); |
| | | if (files != null && files.length > 0) { |
| | | for (File file : files) { |
| | | if (file.isDirectory()) |
| | | //éå½ |
| | | listDirectory(file); |
| | | else{ // å é¤ä»¥ lastUpdated ç»å°¾çæä»¶ |
| | | String fileName = file.getName(); |
| | | boolean isLastupdated = fileName.toLowerCase().endsWith("lastupdated"); |
| | | if (isLastupdated){ |
| | | boolean is_delete = file.delete(); |
| | | System.out.println("å é¤çæä»¶å => " + file.getName() + " || æ¯å¦å 餿åï¼ ==> " + is_delete); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.omd.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; |
| | | import com.vci.ubcs.omd.dto.RevisionRuleDTO; |
| | | import com.vci.ubcs.omd.entity.RevisionRule; |
| | | import com.vci.ubcs.omd.service.IRevisionRuleService; |
| | | import com.vci.ubcs.omd.vo.RevisionRuleVO; |
| | | import com.vci.ubcs.omd.wrapper.RevisionRuleWrapper; |
| | | import com.vci.ubcs.starter.web.pagemodel.BaseQueryObject; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springblade.core.mp.support.Condition; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springblade.core.tool.utils.BeanUtil; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * Description: çæ¬è§åæ§å¶å¨ |
| | | * |
| | | * @author LiHang |
| | | * @date 2023/5/17 |
| | | */ |
| | | @RestController |
| | | @AllArgsConstructor |
| | | @RequestMapping("/revision-rule") |
| | | @Api(value = "çæ¬è§åæ§å¶å¨", tags = "çæ¬è§åæ¥å£") |
| | | public class RevisionRuleController { |
| | | |
| | | private final IRevisionRuleService revisionRuleService; |
| | | |
| | | /** |
| | | * æ¥ç详æ
|
| | | */ |
| | | @GetMapping("/detail") |
| | | @ApiOperationSupport(order = 1) |
| | | @ApiOperation(value = "æ¥ç详æ
", notes = "çæ¬è§å") |
| | | public R<RevisionRuleVO> detail(RevisionRuleDTO ruleDTO){ |
| | | RevisionRule rule = revisionRuleService.getOne(Condition.getQueryWrapper(BeanUtil.copy(ruleDTO, RevisionRule.class))); |
| | | return R.data(RevisionRuleWrapper.build().entityVO(rule)); |
| | | } |
| | | |
| | | /** |
| | | * å页æ¥è¯¢ |
| | | */ |
| | | @GetMapping("page") |
| | | @ApiOperationSupport(order = 2) |
| | | @ApiOperation(value = "å页æ¥è¯¢çæ¬è§å",notes = "å页æ¥è¯¢çæ¬è§å") |
| | | public R<IPage<RevisionRuleVO>> page(BaseQueryObject baseQueryObject){ |
| | | return R.data(revisionRuleService.pageQueryVO(baseQueryObject)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢æä¿®æ¹ |
| | | */ |
| | | @PostMapping("/submit") |
| | | @ApiOperationSupport(order = 3) |
| | | @ApiOperation(value = "æ°å¢æä¿®æ¹",notes = "ä¼ å
¥çæ¬è§å页é¢å¯¹è±¡") |
| | | public R<RevisionRuleVO> submit(@RequestBody RevisionRuleDTO ruleDTO){ |
| | | return R.data(revisionRuleService.addSave(ruleDTO)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢æä¿®æ¹ |
| | | */ |
| | | @PostMapping("/batch-submit") |
| | | @ApiOperationSupport(order = 3) |
| | | @ApiOperation(value = "æ°å¢æä¿®æ¹",notes = "ä¼ å
¥çæ¬è§å页é¢å¯¹è±¡") |
| | | public R<List<RevisionRuleVO>> batchSubmit(@RequestBody List<RevisionRuleDTO> ruleDTOList){ |
| | | return R.data(revisionRuleService.batchAddSave(ruleDTOList)); |
| | | } |
| | | |
| | | /** |
| | | * å é¤ |
| | | */ |
| | | @PostMapping("/remove") |
| | | @ApiOperationSupport(order = 4) |
| | | @ApiOperation(value = "é»è¾å é¤", notes = "ä¼ å
¥ä¸»é®") |
| | | public R remove(@RequestBody RevisionRuleVO revisionRuleVO){ |
| | | revisionRuleService.delete(revisionRuleVO); |
| | | return R.status(true); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤ |
| | | */ |
| | | @PostMapping("/batch-remove") |
| | | @ApiOperationSupport(order = 5) |
| | | @ApiOperation(value = "æ¹éå é¤",notes = "ä¼ å
¥ä¸»é®") |
| | | public R batchRemove(@RequestBody List<RevisionRuleVO> revisionRuleVOList){ |
| | | revisionRuleService.batchDelete(revisionRuleVOList); |
| | | return R.status(true); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.omd.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; |
| | | import com.vci.ubcs.omd.entity.Status; |
| | | import com.vci.ubcs.omd.service.IStatusService; |
| | | import com.vci.ubcs.omd.vo.StatusVO; |
| | | import com.vci.ubcs.omd.wrapper.StatusWrapper; |
| | | import com.vci.ubcs.starter.web.pagemodel.BaseQueryObject; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springblade.core.mp.support.Condition; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springblade.core.tool.utils.BeanUtil; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * Description: ç¶ææ± æ§å¶å¨ |
| | | * |
| | | * @author LiHang |
| | | * @date 2023/5/23 |
| | | */ |
| | | @RestController |
| | | @AllArgsConstructor |
| | | @RequestMapping("/status") |
| | | @Api(value = "ç¶ææ± æ§å¶å¨", tags = "ç¶ææ± æ¥å£") |
| | | public class StatusController { |
| | | |
| | | private final IStatusService statusService; |
| | | |
| | | /** |
| | | * æ¥ç详æ
|
| | | */ |
| | | @GetMapping("/detail") |
| | | @ApiOperationSupport(order = 1) |
| | | @ApiOperation(value = "æ¥ç详æ
", notes = "ç¶ææ± ") |
| | | public R<StatusVO> detail(StatusVO statusVO){ |
| | | Status status = statusService.getOne(Condition.getQueryWrapper(BeanUtil.copy(statusVO, Status.class))); |
| | | return R.data(StatusWrapper.build().entityVO(status)); |
| | | } |
| | | |
| | | /** |
| | | * å页æ¥è¯¢ |
| | | */ |
| | | @GetMapping("page") |
| | | @ApiOperationSupport(order = 2) |
| | | @ApiOperation(value = "å页æ¥è¯¢ç¶ææ± ",notes = "å页æ¥è¯¢ç¶ææ± ") |
| | | public R<IPage<StatusVO>> page(BaseQueryObject baseQueryObject){ |
| | | Map<String, String> conditionMap = baseQueryObject.getConditionMap(); |
| | | if (conditionMap == null){ |
| | | conditionMap = new HashMap<>(); |
| | | } |
| | | return R.data(statusService.listStatus(conditionMap,baseQueryObject.getPageHelper())); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢æä¿®æ¹ |
| | | */ |
| | | @PostMapping("/submit") |
| | | @ApiOperationSupport(order = 3) |
| | | @ApiOperation(value = "æ°å¢æä¿®æ¹",notes = "ä¼ å
¥ç¶ææ± 页é¢å¯¹è±¡") |
| | | public R<StatusVO> submit(@RequestBody StatusVO statusVO){ |
| | | return R.data(statusService.addSave(statusVO)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢æä¿®æ¹ |
| | | */ |
| | | @PostMapping("/batch-submit") |
| | | @ApiOperationSupport(order = 3) |
| | | @ApiOperation(value = "æ°å¢æä¿®æ¹",notes = "ä¼ å
¥ç¶ææ± 页é¢å¯¹è±¡") |
| | | public R<List<StatusVO>> batchSubmit(@RequestBody List<StatusVO> statusVOList){ |
| | | return R.data(statusService.batchAddSave(statusVOList)); |
| | | } |
| | | |
| | | /** |
| | | * å é¤ |
| | | */ |
| | | @PostMapping("/remove") |
| | | @ApiOperationSupport(order = 4) |
| | | @ApiOperation(value = "é»è¾å é¤", notes = "ä¼ å
¥ä¸»é®") |
| | | public R remove(@RequestBody StatusVO StatusVO){ |
| | | statusService.delete(StatusVO); |
| | | return R.status(true); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤ |
| | | */ |
| | | @PostMapping("/batch-remove") |
| | | @ApiOperationSupport(order = 5) |
| | | @ApiOperation(value = "æ¹éå é¤",notes = "ä¼ å
¥ä¸»é®") |
| | | public R batchRemove(@RequestBody List<StatusVO> StatusVOList){ |
| | | statusService.batchDelete(StatusVOList); |
| | | return R.status(true); |
| | | } |
| | | } |
| | |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springblade.core.tool.utils.BeanUtil; |
| | | import org.springblade.core.tool.utils.Func; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import springfox.documentation.annotations.ApiIgnore; |
| | | |
| | |
| | | * @return ä¸å¡ç±»å详æ
ä¿¡æ¯ |
| | | */ |
| | | @Override |
| | | @GetMapping(GET_DETAIL) |
| | | public R<BtmTypeVO> getDetail(String oid) { |
| | | return R.data(btmTypeService.getBtmTypeByOid(oid)); |
| | | } |
| | |
| | | * @return æ¥è¯¢ç»æ |
| | | */ |
| | | @Override |
| | | @GetMapping(GET_REF_PAGE) |
| | | public R<IPage<BtmTypeVO>> getRefPage(Map<String, Object> condition, Query query, String domain) { |
| | | Func.requireNotNull(domain,"é¢åå¼"); |
| | | IPage<BtmType> page = btmTypeService.page(Condition.getPage(query), Condition.getQueryWrapper(condition, BtmType.class).lambda().eq(BtmType::getDomain, domain).orderByAsc(BtmType::getId)); |
| | |
| | | * @return æ¥è¯¢ç»æ |
| | | */ |
| | | @Override |
| | | @GetMapping(GET_REF) |
| | | public R<List<BtmTypeVO>> getRef(Map<String, Object> condition, String domain) { |
| | | Func.requireNotNull(domain,"é¢åå¼"); |
| | | List<BtmType> list = btmTypeService.list(Condition.getQueryWrapper(condition, BtmType.class).lambda().eq(BtmType::getDomain, domain).orderByAsc(BtmType::getId)); |
| | |
| | | * @return ä¸å¡å¯¹è±¡ |
| | | */ |
| | | @Override |
| | | @GetMapping(GET_BY_IDS) |
| | | public R<List<BtmTypeVO>> selectByIdCollection(List<String> ids) { |
| | | Func.requireNotNull(ids,"ä¸å¡ç±»åè±æåç§°"); |
| | | List<BtmTypeVO> voList = BtmTypeWrapper.build().listEntityVO( |
| | |
| | | * @return ä¸å¡ç±»åå表ï¼å¦ææä¸åå¨çä¸ä¼è¿åï¼å
¨é¨ä¸åå¨çåè¿å空å表 |
| | | */ |
| | | @Override |
| | | @GetMapping(GET_BY_OIDS) |
| | | public R<List<BtmTypeVO>> listBtmTypeByOidCollection(Collection<String> pkBtmTypeCollection) { |
| | | Func.requireNotNull(pkBtmTypeCollection,"ä¸å¡ç±»å主é®"); |
| | | List<BtmTypeVO> voList = BtmTypeWrapper.build().listEntityVO( |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.omd.feign; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.vci.ubcs.omd.entity.RevisionRule; |
| | | import com.vci.ubcs.omd.service.IRevisionRuleService; |
| | | import com.vci.ubcs.omd.vo.RevisionRuleVO; |
| | | import com.vci.ubcs.omd.wrapper.RevisionRuleWrapper; |
| | | import com.vci.ubcs.starter.web.pagemodel.BaseQueryObject; |
| | | import com.vci.ubcs.starter.web.pagemodel.PageHelper; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springblade.core.mp.support.Condition; |
| | | import org.springblade.core.mp.support.Query; |
| | | import org.springblade.core.tenant.annotation.NonDS; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springframework.cglib.beans.BeanMap; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import springfox.documentation.annotations.ApiIgnore; |
| | | |
| | | import java.util.*; |
| | | |
| | | /** |
| | | * Description: |
| | | * |
| | | * @author LiHang |
| | | * @date 2023/5/22 |
| | | */ |
| | | @NonDS |
| | | @ApiIgnore() |
| | | @RestController |
| | | @AllArgsConstructor |
| | | public class RevisionRuleClient implements IRevisionRuleClient{ |
| | | |
| | | private final IRevisionRuleService service; |
| | | /** |
| | | * è·åçæ¬è§å详æ
ä¿¡æ¯ |
| | | * |
| | | * @param oid ä¸»é® |
| | | * @return çæ¬è§å详æ
ä¿¡æ¯ |
| | | */ |
| | | @GetMapping(GET_DETAIL) |
| | | @Override |
| | | public R<RevisionRuleVO> getDetail(String oid) { |
| | | return R.data(RevisionRuleWrapper.build().entityVO(service.getOne(Wrappers.<RevisionRule>query().lambda().eq(RevisionRule::getOid,oid)))); |
| | | } |
| | | |
| | | /** |
| | | * åç
§å表æ¥è¯¢ |
| | | * |
| | | * @param baseQueryObject æ¥è¯¢æ¡ä»¶ |
| | | * @return æ¥è¯¢ç»æ |
| | | */ |
| | | @GetMapping(GET_REF_PAGE) |
| | | @Override |
| | | public R<IPage<RevisionRuleVO>> getRefPage(BaseQueryObject baseQueryObject) { |
| | | return R.data(service.pageQueryVO(baseQueryObject)); |
| | | } |
| | | |
| | | /** |
| | | * åç
§å表æ¥è¯¢ |
| | | * |
| | | * @param baseQueryObject æ¥è¯¢æ¡ä»¶ |
| | | * @return æ¥è¯¢ç»æ |
| | | */ |
| | | @Override |
| | | @GetMapping(GET_REF) |
| | | public R<List<RevisionRuleVO>> getRef(BaseQueryObject baseQueryObject) { |
| | | RevisionRule query = new RevisionRule(); |
| | | BeanMap.create(query).putAll(Optional.ofNullable(baseQueryObject.getConditionMap()).orElseGet(HashMap::new)); |
| | | return R.data(RevisionRuleWrapper.build().listEntityVO(service.list(Condition.getQueryWrapper(query)))); |
| | | } |
| | | |
| | | /** |
| | | * æ ¹æ®è±æåç§°æ¹éæ¥è¯¢å¯¹è±¡ |
| | | * |
| | | * @param ids å¯¹è±¡è±æåç§° 使¯ä¸è½è¶
è¿1000 |
| | | * @return ä¸å¡å¯¹è±¡ |
| | | */ |
| | | @Override |
| | | @GetMapping(GET_BY_IDS) |
| | | public R<List<RevisionRuleVO>> selectByIdCollection(List<String> ids) { |
| | | return R.data(service.listRevisionRuleByIdCollection(ids)); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éæ ¹æ®ä¸»é®è·åçæ¬è§å |
| | | * |
| | | * @param oidCollection çæ¬è§å主é®éå |
| | | * @return çæ¬è§åå表ï¼å¦ææä¸åå¨çä¸ä¼è¿åï¼å
¨é¨ä¸åå¨çåè¿å空å表 |
| | | */ |
| | | @Override |
| | | @GetMapping(GET_BY_OIDS) |
| | | public R<List<RevisionRuleVO>> listBtmTypeByOidCollection(Collection<String> oidCollection) { |
| | | return R.data(service.listRevisionRuleByOidCollection(oidCollection)); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.omd.feign; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.vci.ubcs.omd.entity.Status; |
| | | import com.vci.ubcs.omd.service.IStatusService; |
| | | import com.vci.ubcs.omd.vo.StatusVO; |
| | | import com.vci.ubcs.starter.web.pagemodel.BaseQueryObject; |
| | | import com.vci.ubcs.starter.web.util.VciBaseUtil; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springblade.core.tenant.annotation.NonDS; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springblade.core.tool.utils.Func; |
| | | import org.springblade.core.tool.utils.StringUtil; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import springfox.documentation.annotations.ApiIgnore; |
| | | |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * Description: ç¶ææ± çFeign |
| | | * |
| | | * @author LiHang |
| | | * @date 2023/5/23 |
| | | */ |
| | | @NonDS |
| | | @ApiIgnore |
| | | @RestController |
| | | @AllArgsConstructor |
| | | public class StatusClient implements IStatusClient{ |
| | | |
| | | private final IStatusService service; |
| | | /** |
| | | * åç
§å表æ¥è¯¢ |
| | | * |
| | | * @param baseQueryObject æ¥è¯¢æ¡ä»¶å¯¹è±¡ |
| | | * @return æ§è¡ç»æ |
| | | */ |
| | | @Override |
| | | public R<IPage<StatusVO>> getRefPage(BaseQueryObject baseQueryObject) { |
| | | Map<String, String> conditionMap = baseQueryObject.getConditionMap(); |
| | | if (conditionMap == null) { |
| | | conditionMap = new HashMap<>(16); |
| | | } |
| | | return R.data(service.listStatus(conditionMap,baseQueryObject.getPageHelper())); |
| | | } |
| | | |
| | | /** |
| | | * åç
§æ¥è¯¢ |
| | | * |
| | | * @param baseQueryObject æ¥è¯¢æ¡ä»¶å¯¹è±¡ |
| | | * @return æ§è¡ç»æ |
| | | */ |
| | | @Override |
| | | public R<List<StatusVO>> getRef(BaseQueryObject baseQueryObject) { |
| | | return R.data(service.listStatusNoPage(baseQueryObject.getConditionMap())); |
| | | } |
| | | |
| | | /** |
| | | * è±ææ¥è¯¢ä¸æåç§° |
| | | * |
| | | * @param ids è±æ |
| | | * @return æ¥è¯¢ç»æ |
| | | */ |
| | | @Override |
| | | public R<Map<String,String>> getNameByIds(String ids) { |
| | | VciBaseUtil.alertNotNull(ids,"è±æåç§°"); |
| | | List<String> idList = Func.toStrList(",", ids); |
| | | List<Status> list = service.list(Wrappers.<Status>query().lambda().in(Status::getId, idList)); |
| | | Map<String,String> map = new HashMap<>(16); |
| | | list.stream().peek(s -> { |
| | | String key = idList.stream().filter(id -> StringUtil.equals(id, s.getId())).findFirst().get(); |
| | | map.put(key,s.getName()); |
| | | }); |
| | | return R.data(map); |
| | | } |
| | | } |
| | |
| | | package com.vci.ubcs.omd.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.vci.ubcs.omd.entity.BtmTypeAttribute; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.springblade.core.mp.mapper.BladeMapper; |
| | |
| | | * @author LiHang |
| | | * @date 2023/4/23 |
| | | */ |
| | | public interface BtmTypeAttributeMapper extends BladeMapper<BtmTypeAttribute> { |
| | | public interface BtmTypeAttributeMapper extends BaseMapper<BtmTypeAttribute> { |
| | | |
| | | int batchDelete(@Param("records") List<String> records); |
| | | |
| | |
| | | package com.vci.ubcs.omd.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.InterceptorIgnore; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.vci.ubcs.omd.entity.BtmTypeAttribute; |
| | | import com.vci.ubcs.omd.entity.BtmType; |
| | | import org.apache.ibatis.annotations.Param; |
| | |
| | | import java.util.Collection; |
| | | import java.util.List; |
| | | |
| | | public interface BtmTypeMapper extends BladeMapper<BtmType> { |
| | | public interface BtmTypeMapper extends BaseMapper<BtmType> { |
| | | /** |
| | | * æ ¹æ®ä¸»é®å é¤å¯¹è±¡ |
| | | * @param oid çå½å¨æä¸»é® |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.omd.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.vci.ubcs.omd.entity.RevisionRule; |
| | | |
| | | /** |
| | | * Description: çæ¬è§åæ°æ®å± |
| | | * |
| | | * @author LiHang |
| | | * @date 2023/5/17 |
| | | */ |
| | | public interface RevisionRuleMapper extends BaseMapper<RevisionRule> { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.omd.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.vci.ubcs.omd.entity.Status; |
| | | |
| | | /** |
| | | * Description: ç¶ææ± æ°æ®å± |
| | | * |
| | | * @author LiHang |
| | | * @date 2023/5/23 |
| | | */ |
| | | public interface StatusMapper extends BaseMapper<Status> { |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.omd.service; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.vci.ubcs.omd.dto.RevisionRuleDTO; |
| | | import com.vci.ubcs.omd.entity.RevisionRule; |
| | | import com.vci.ubcs.omd.vo.BtmTypeVO; |
| | | import com.vci.ubcs.omd.vo.RevisionRuleVO; |
| | | import com.vci.ubcs.starter.exception.VciBaseException; |
| | | import com.vci.ubcs.starter.web.pagemodel.BaseQueryObject; |
| | | import org.springblade.core.mp.support.Query; |
| | | |
| | | import java.util.Collection; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * Description: çæ¬è§åæå¡å®ä¹ |
| | | * |
| | | * @author LiHang |
| | | * @date 2023/5/17 |
| | | */ |
| | | public interface IRevisionRuleService extends IService<RevisionRule> { |
| | | /** |
| | | * è·åçæ¬è§åå表 |
| | | * @param condition æ¥è¯¢æ¡ä»¶ |
| | | * @param query å页信æ¯åæåºä¿¡æ¯ï¼é»è®¤ä½¿ç¨idæåº |
| | | * @return çæ¬è§å对象å表 |
| | | * @throws VciBaseException æ¥è¯¢åºéæ¶ä¼æåºå¼å¸¸ |
| | | */ |
| | | IPage<RevisionRuleVO> listRevisionRule(Map<String, String> condition, Query query) throws VciBaseException; |
| | | |
| | | /** |
| | | * æ ¹æ®ä¸»é®è·åçæ¬è§å |
| | | * @param pkRevisionRule çæ¬è§åä¸»é® |
| | | * @return çæ¬è§åï¼å¦æä¸åå¨ä¼è¿ånull |
| | | * @throws VciBaseException åæ°ä¸ºç©ºæè
æ¥è¯¢åºéæ¶ä¼æåºé误 |
| | | */ |
| | | RevisionRuleVO getRevisionRuleByOid(String pkRevisionRule) throws VciBaseException; |
| | | |
| | | /** |
| | | * æ ¹æ®ä¸»é®æ¹éè·åçæ¬è§å |
| | | * @param pkRevisionRules çæ¬è§å主é®ï¼ç¨éå·åé |
| | | * @return çæ¬è§åå表ï¼å¦ææä¸åå¨çä¸ä¼è¿åï¼å
¨é¨ä¸åå¨çåè¿å空å表 |
| | | * @throws VciBaseException åæ°ä¸ºç©ºæè
æ¥è¯¢åºéæ¶ä¼æåºé误 |
| | | */ |
| | | List<RevisionRuleVO> listRevisionRuleByOids(String pkRevisionRules) throws VciBaseException; |
| | | |
| | | /** |
| | | * æ¹éæ ¹æ®ä¸»é®è·åçæ¬è§å |
| | | * @param pkRevisionRuleCollection çæ¬è§å主é®éå |
| | | * @return çæ¬è§åå表ï¼å¦ææä¸åå¨çä¸ä¼è¿åï¼å
¨é¨ä¸åå¨çåè¿å空å表 |
| | | * @throws VciBaseException åæ°ä¸ºç©ºæè
æ¥è¯¢åºéæ¶ä¼æåºé误 |
| | | */ |
| | | List<RevisionRuleVO> listRevisionRuleByOidCollection(Collection<String> pkRevisionRuleCollection) throws VciBaseException; |
| | | |
| | | /** |
| | | * æ ¹æ®è±æåç§°è·åçæ¬è§å |
| | | * @param id è±æåç§° |
| | | * @return çæ¬è§åï¼å¦æä¸åå¨ä¼è¿ånull |
| | | * @throws VciBaseException |
| | | */ |
| | | RevisionRuleVO getRevisionRuleById(String id) throws VciBaseException; |
| | | |
| | | /** |
| | | * æ ¹æ®è±æåç§°æ¹éè·åçæ¬è§å |
| | | * @param ids è±æåç§°ï¼ä½¿ç¨éå·åé |
| | | * @return çæ¬è§åå表ï¼å¦ææä¸åå¨çä¸ä¼è¿åï¼å
¨é¨ä¸åå¨çåè¿å空å表 |
| | | * @throws VciBaseException åæ°ä¸ºç©ºæè
æ¥è¯¢åºéæ¶ä¼æåºé误 |
| | | */ |
| | | List<RevisionRuleVO> listRevisionRuleByIds(String ids) throws VciBaseException; |
| | | |
| | | /** |
| | | * æ ¹æ®è±æåç§°éåæ¹éè·åçæ¬è§å |
| | | * @param revisionRuleIdCollection è±æåç§°éåï¼ä½¿ç¨éå·åé |
| | | * @return çæ¬è§åå表ï¼å¦ææä¸åå¨çä¸ä¼è¿åï¼å
¨é¨ä¸åå¨çåè¿å空å表 |
| | | * @throws VciBaseException åæ°ä¸ºç©ºæè
æ¥è¯¢åºéæ¶ä¼æåºé误 |
| | | */ |
| | | List<RevisionRuleVO> listRevisionRuleByIdCollection(Collection<String> revisionRuleIdCollection) throws VciBaseException; |
| | | |
| | | /** |
| | | * æ ¹æ®çæ¬è§å主é®è·å䏿åç§° |
| | | * @param oid çæ¬è§å主é®ï¼å¤ä¸ªä½¿ç¨éå·åé |
| | | * @return 䏿åç§°ï¼å¦æä¸åå¨ä¼è¿ånull;å¤ä¸ªä¼ä»¥éå·åé |
| | | * @throws VciBaseException åæ°ä¸ºç©ºæè
æ¥è¯¢åºéæ¶ä¼æåºé误 |
| | | */ |
| | | String getNameByOid(String oid) throws VciBaseException; |
| | | |
| | | /** |
| | | * æ ¹æ®çæ¬è§åè±æåç§°è·å䏿åç§° |
| | | * @param id çæ¬è§åè±æåç§° |
| | | * @return 䏿åç§°ï¼å¦æä¸åå¨ä¼è¿ånull;å¤ä¸ªä¼ä»¥éå·åé |
| | | * @throws VciBaseException åæ°ä¸ºç©ºæè
æ¥è¯¢åºéæ¶ä¼æåºé误 |
| | | */ |
| | | String getNameById(String id) throws VciBaseException; |
| | | /** |
| | | * æ·»å çæ¬è§å |
| | | * @param revisionRuleDTO çæ¬è§åæ¾ç¤ºå¯¹è±¡ï¼åDTOå
±ç¨ï¼ |
| | | * @return æ·»å åççæ¬è§å |
| | | * @throws VciBaseException æ·»å åºéçæ¶å伿åºå¼å¸¸ |
| | | */ |
| | | RevisionRuleVO addSave(RevisionRuleDTO revisionRuleDTO) throws VciBaseException; |
| | | |
| | | /** |
| | | * æ¹éæ·»å çæ¬è§å |
| | | * @param revisionRuleDTOList çæ¬è§åæ¾ç¤ºå¯¹è±¡å表(åDTOå
±ç¨) |
| | | * @return æ¹éæ·»å åççæ¬è§å |
| | | * @throws VciBaseException æ·»å åºéçæ¶å伿åºå¼å¸¸ |
| | | */ |
| | | List<RevisionRuleVO> batchAddSave(List<RevisionRuleDTO> revisionRuleDTOList) throws VciBaseException; |
| | | |
| | | |
| | | /** |
| | | * ä¿®æ¹çæ¬è§å |
| | | * @param revisionRuleDTO çæ¬è§åæ¾ç¤ºå¯¹è±¡ï¼åDTOå
±ç¨ï¼ |
| | | * @return ä¿®æ¹åççæ¬è§å |
| | | * @throws VciBaseException ä¿®æ¹åºéçæ¶å伿åºå¼å¸¸ |
| | | */ |
| | | RevisionRuleVO editSave(RevisionRuleDTO revisionRuleDTO) throws VciBaseException; |
| | | |
| | | /** |
| | | * æ¹éä¿®æ¹çæ¬è§å |
| | | * @param revisionRuleDTOList çæ¬è§åæ¾ç¤ºå¯¹è±¡å表ï¼åDTOå
±ç¨ï¼ |
| | | * @return æ¹éä¿®æ¹åççæ¬è§å |
| | | * @throws VciBaseException ä¿®æ¹åºéçæ¶å伿åºå¼å¸¸ |
| | | */ |
| | | List<RevisionRuleVO> batchEditSave(List<RevisionRuleDTO> revisionRuleDTOList) throws VciBaseException; |
| | | |
| | | /** |
| | | * å é¤çæ¬è§å |
| | | * @param revisionRuleVO çæ¬è§åæ¾ç¤ºå¯¹è±¡ |
| | | * @throws VciBaseException å¦æçæ¬è§å被å¼ç¨ï¼æè
å é¤åºéæ¶ä¼æåºå¼å¸¸ |
| | | */ |
| | | void delete(RevisionRuleVO revisionRuleVO) throws VciBaseException; |
| | | |
| | | /** |
| | | * æ¹éå é¤çæ¬è§å |
| | | * @param revisionRuleVOList è¦å é¤ççæ¬è§åæ¾ç¤ºå¯¹è±¡å表 |
| | | * @throws VciBaseException å¦æçæ¬è§å被å¼ç¨ï¼æè
å é¤åºéæ¶ä¼æåºå¼å¸¸ |
| | | */ |
| | | void batchDelete(List<RevisionRuleVO> revisionRuleVOList) throws VciBaseException; |
| | | |
| | | /** |
| | | * æ¹éæ ¡éªçæ¬è§åæ¯å¦è¢«ä½¿ç¨ |
| | | * @param oidCollection 主é®éå |
| | | * @return true表示被å¼ç¨ |
| | | */ |
| | | boolean batchCheckRevisionRuleUsed(Collection<String> oidCollection); |
| | | |
| | | /** |
| | | * è·å使ç¨çæ¬è§åçä¸å¡ç±»å |
| | | * @param pkRevisionRule çæ¬è§åçä¸»é® |
| | | * @return å¼ç¨çä¸å¡ç±»å |
| | | * @throws VciBaseException æ¥è¯¢åºéæ¶ä¼æåºå¼å¸¸ |
| | | */ |
| | | List<BtmTypeVO> listRevisionRuleUsedInfo(String pkRevisionRule) throws VciBaseException; |
| | | |
| | | /** |
| | | * æ ¡éªçæ¬è§åæ¯å¦è¢«å¼ç¨ |
| | | * @param pkRevisionRule çæ¬è§åçä¸»é® |
| | | * @return true表示被å¼ç¨ï¼ false表示没æè¢«å¼ç¨ |
| | | * @throws VciBaseException åæ°ä¸ºç©ºæè
æ¥è¯¢åºéæ¶ä¼æåºé误 |
| | | */ |
| | | boolean checkRevisionRuleUsed(String pkRevisionRule) throws VciBaseException; |
| | | |
| | | /** |
| | | * å¤æçæ¬è§åæ¯å¦åå¨ |
| | | * @param revisionRuleId çæ¬è§åçè±æåç§° |
| | | * @return true表示é½åå¨ï¼false表示ä¸åå¨ |
| | | * @throws VciBaseException åæ°é误æè
æ¥è¯¢åºé伿åºå¼å¸¸ |
| | | */ |
| | | boolean checkRevisionRuleExist(String revisionRuleId) throws VciBaseException; |
| | | |
| | | /** |
| | | * è·åä¸ä¸ä¸ªçæ¬çå¼ |
| | | * @param ruleId çæ¬çè§å |
| | | * @param currentRevisionValue å½åçæ¬çå¼ï¼ä¸ºç©ºçæ¶åï¼è¯´ææ¯æ°å¢ |
| | | * @return ä¸ä¸ä¸ªçæ¬å· |
| | | * @throws VciBaseException çæ¬è§åä¸åå¨çæ¶å伿åºå¼å¸¸ |
| | | */ |
| | | String getNextRevisionValue(String ruleId, String currentRevisionValue) throws VciBaseException; |
| | | |
| | | /** |
| | | * å页æ¥è¯¢ |
| | | * @param baseQueryObject æ¥è¯¢å¯¹è±¡ |
| | | * @return æ¥è¯¢ç»æ |
| | | * @throws VciBaseException æ¥è¯¢åºéæ¶æåºå¼å¸¸ |
| | | */ |
| | | IPage<RevisionRuleVO> pageQueryVO(BaseQueryObject baseQueryObject) throws VciBaseException; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.omd.service; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.vci.ubcs.omd.entity.Status; |
| | | import com.vci.ubcs.omd.vo.StatusVO; |
| | | import com.vci.ubcs.starter.exception.VciBaseException; |
| | | import com.vci.ubcs.starter.web.pagemodel.PageHelper; |
| | | |
| | | import java.util.Collection; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * Description: ç¶ææ± çæå¡ |
| | | * |
| | | * @author LiHang |
| | | * @date 2023/5/23 |
| | | */ |
| | | public interface IStatusService extends IService<Status> { |
| | | |
| | | /** |
| | | * è·åç¶æå表 |
| | | * @param conditionMap æ¥è¯¢æ¡ä»¶ |
| | | * @param pageHelper å页信æ¯åæåºä¿¡æ¯ï¼é»è®¤ä½¿ç¨idæåº |
| | | * @return ç¶æå¯¹è±¡å表 |
| | | * @throws VciBaseException æ¥è¯¢åºéæ¶ä¼æåºå¼å¸¸ |
| | | */ |
| | | IPage<StatusVO> listStatus(Map<String,String> conditionMap, PageHelper pageHelper) throws VciBaseException; |
| | | |
| | | /** |
| | | * è·åç¶æå表 |
| | | * @param conditionMap æ¥è¯¢æ¡ä»¶ |
| | | * @return ç¶æå¯¹è±¡å表 |
| | | * @throws VciBaseException æ¥è¯¢åºéæ¶ä¼æåºå¼å¸¸ |
| | | */ |
| | | List<StatusVO> listStatusNoPage(Map<String,String> conditionMap) throws VciBaseException; |
| | | |
| | | /** |
| | | * æ ¹æ®ä¸»é®è·åç¶æ |
| | | * @param pkStatus ç¶æä¸»é® |
| | | * @return ç¶æï¼å¦æä¸åå¨ä¼è¿ånull |
| | | * @throws VciBaseException åæ°ä¸ºç©ºæè
æ¥è¯¢åºéæ¶ä¼æåºé误 |
| | | */ |
| | | StatusVO getStatusByOid(String pkStatus) throws VciBaseException; |
| | | |
| | | /** |
| | | * æ ¹æ®ä¸»é®æ¹éè·åç¶æ |
| | | * @param primaryKeys ç¶æä¸»é®ï¼ç¨éå·åé |
| | | * @return ç¶æå表ï¼å¦ææä¸åå¨çä¸ä¼è¿åï¼å
¨é¨ä¸åå¨çåè¿å空å表 |
| | | * @throws VciBaseException åæ°ä¸ºç©ºæè
æ¥è¯¢åºéæ¶ä¼æåºé误 |
| | | */ |
| | | List<StatusVO> listStatusByOids(String primaryKeys) throws VciBaseException; |
| | | |
| | | /** |
| | | * æ¹éæ ¹æ®ä¸»é®è·åç¶æ |
| | | * @param pkStatusCollection ç¶æä¸»é®éå |
| | | * @return ç¶æå表ï¼å¦ææä¸åå¨çä¸ä¼è¿åï¼å
¨é¨ä¸åå¨çåè¿å空å表 |
| | | * @throws VciBaseException åæ°ä¸ºç©ºæè
æ¥è¯¢åºéæ¶ä¼æåºé误 |
| | | */ |
| | | List<StatusVO> listStatusByOidCollection(Collection<String> pkStatusCollection) throws VciBaseException; |
| | | |
| | | /** |
| | | * æ ¹æ®è±æåç§°è·åç¶æ |
| | | * @param id è±æåç§° |
| | | * @return ç¶æï¼å¦æä¸åå¨ä¼è¿ånull |
| | | * @throws VciBaseException æ¥è¯¢åºéæåºå¼å¸¸ |
| | | */ |
| | | StatusVO getStatusById(String id) throws VciBaseException; |
| | | |
| | | /** |
| | | * æ ¹æ®è±æåç§°æ¹éè·åç¶æ |
| | | * @param ids è±æåç§°ï¼ä½¿ç¨éå·åé |
| | | * @return ç¶æå表ï¼å¦ææä¸åå¨çä¸ä¼è¿åï¼å
¨é¨ä¸åå¨çåè¿å空å表 |
| | | * @throws VciBaseException åæ°ä¸ºç©ºæè
æ¥è¯¢åºéæ¶ä¼æåºé误 |
| | | */ |
| | | List<StatusVO> listStatusByIds(String ids) throws VciBaseException; |
| | | |
| | | /** |
| | | * æ ¹æ®è±æåç§°éåæ¹éè·åç¶æ |
| | | * @param idCollection è±æåç§°éå |
| | | * @return ç¶æå表ï¼å¦ææä¸åå¨çä¸ä¼è¿åï¼å
¨é¨ä¸åå¨çåè¿å空å表 |
| | | * @throws VciBaseException åæ°ä¸ºç©ºæè
æ¥è¯¢åºéæ¶ä¼æåºé误 |
| | | */ |
| | | List<StatusVO> listStatusByIdCollection(Collection<String> idCollection) throws VciBaseException; |
| | | |
| | | /** |
| | | * æ ¹æ®ç¶æä¸»é®è·å䏿åç§° |
| | | * @param oid ç¶æä¸»é®ï¼å¤ä¸ªä½¿ç¨éå·åé |
| | | * @return 䏿åç§°ï¼å¦æä¸åå¨ä¼è¿ånull |
| | | * @throws VciBaseException åæ°ä¸ºç©ºæè
æ¥è¯¢åºéæ¶ä¼æåºé误 |
| | | */ |
| | | String getNameByOid(String oid) throws VciBaseException; |
| | | |
| | | /** |
| | | * æ ¹æ®ç¶æè±æåç§°è·å䏿åç§° |
| | | * @param id ç¶æè±æåç§° |
| | | * @return 䏿åç§°ï¼å¦æä¸åå¨ä¼è¿ånull |
| | | * @throws VciBaseException åæ°ä¸ºç©ºæè
æ¥è¯¢åºéæ¶ä¼æåºé误 |
| | | */ |
| | | String getNameById(String id) throws VciBaseException; |
| | | /** |
| | | * æ·»å ç¶æ |
| | | * @param statusVO ç¶ææ¾ç¤ºå¯¹è±¡ï¼åDTOå
±ç¨ï¼ |
| | | * @return æ·»å åçç¶æ |
| | | * @throws VciBaseException æ·»å åºéçæ¶å伿åºå¼å¸¸ |
| | | */ |
| | | StatusVO addSave(StatusVO statusVO) throws VciBaseException; |
| | | |
| | | /** |
| | | * æ¹éæ·»å ç¶æ |
| | | * @param statusVOList ç¶ææ¾ç¤ºå¯¹è±¡å表(åDTOå
±ç¨) |
| | | * @return æ¹éæ·»å åçç¶æ |
| | | * @throws VciBaseException æ·»å åºéçæ¶å伿åºå¼å¸¸ |
| | | */ |
| | | List<StatusVO> batchAddSave(List<StatusVO> statusVOList) throws VciBaseException; |
| | | |
| | | |
| | | /** |
| | | * ä¿®æ¹ç¶æ |
| | | * @param statusVO ç¶ææ¾ç¤ºå¯¹è±¡ï¼åDTOå
±ç¨ï¼ |
| | | * @return ä¿®æ¹åçç¶æ |
| | | * @throws VciBaseException ä¿®æ¹åºéçæ¶å伿åºå¼å¸¸ |
| | | */ |
| | | StatusVO editSave(StatusVO statusVO) throws VciBaseException; |
| | | |
| | | /** |
| | | * æ¹éä¿®æ¹ç¶æ |
| | | * @param statusVOList ç¶ææ¾ç¤ºå¯¹è±¡å表ï¼åDTOå
±ç¨ï¼ |
| | | * @return æ¹éä¿®æ¹åçç¶æ |
| | | * @throws VciBaseException ä¿®æ¹åºéçæ¶å伿åºå¼å¸¸ |
| | | */ |
| | | List<StatusVO> batchEditSave(List<StatusVO> statusVOList) throws VciBaseException; |
| | | |
| | | /** |
| | | * å é¤ç¶æ |
| | | * @param statusVO ç¶ææ¾ç¤ºå¯¹è±¡ |
| | | * @throws VciBaseException å¦æç¶æè¢«å¼ç¨ï¼æè
å é¤åºéæ¶ä¼æåºå¼å¸¸ |
| | | */ |
| | | void delete(StatusVO statusVO) throws VciBaseException; |
| | | |
| | | /** |
| | | * æ¹éå é¤ç¶æ |
| | | * @param statusVOList è¦å é¤çç¶ææ¾ç¤ºå¯¹è±¡å表 |
| | | * @throws VciBaseException å¦æç¶æè¢«å¼ç¨ï¼æè
å é¤åºéæ¶ä¼æåºå¼å¸¸ |
| | | */ |
| | | void batchDelete(List<StatusVO> statusVOList) throws VciBaseException; |
| | | |
| | | /** |
| | | * æ¹éæ ¡éªç¶ææ¯å¦è¢«ä½¿ç¨ |
| | | * @param oidCollection 主é®éå |
| | | * @return true表示被å¼ç¨ |
| | | */ |
| | | boolean checkStatusUseds(Collection<String> oidCollection); |
| | | |
| | | /** |
| | | * æ ¡éªç¶ææ¯å¦è¢«å¼ç¨ |
| | | * @param pkStatus ç¶æçä¸»é® |
| | | * @return true表示被å¼ç¨ï¼ false表示没æè¢«å¼ç¨ |
| | | * @throws VciBaseException åæ°ä¸ºç©ºæè
æ¥è¯¢åºéæ¶ä¼æåºé误 |
| | | */ |
| | | boolean checkStatusUsed(String pkStatus) throws VciBaseException; |
| | | |
| | | } |
| | |
| | | import com.vci.ubcs.omd.dto.BtmAndLinkTypeDdlDTO; |
| | | import com.vci.ubcs.omd.entity.Attribute; |
| | | import com.vci.ubcs.omd.repeater.DomainRepeater; |
| | | import com.vci.ubcs.omd.service.IAttributeService; |
| | | import com.vci.ubcs.omd.service.IBtmTypeAttributeService; |
| | | import com.vci.ubcs.omd.service.IModifyAttributeService; |
| | | import com.vci.ubcs.omd.service.*; |
| | | import com.vci.ubcs.omd.vo.*; |
| | | import com.vci.ubcs.omd.wrapper.BtmTypeWrapper; |
| | | import com.vci.ubcs.omd.wrapper.ModifyAttributeWrapper; |
| | |
| | | import com.vci.ubcs.omd.entity.BtmTypeAttribute; |
| | | import com.vci.ubcs.omd.entity.ModifyAttributeInfo; |
| | | import com.vci.ubcs.omd.mapper.BtmTypeMapper; |
| | | import com.vci.ubcs.omd.service.IBtmTypeService; |
| | | import com.vci.ubcs.starter.exception.VciBaseException; |
| | | import com.vci.ubcs.starter.web.enumpck.BooleanEnum; |
| | | import com.vci.ubcs.starter.web.enumpck.VciFieldTypeEnum; |
| | |
| | | */ |
| | | @Autowired |
| | | private IModifyAttributeService modifyAttributeService; |
| | | |
| | | /** |
| | | * çæ¬è§åçæå¡ |
| | | */ |
| | | @Autowired |
| | | private IRevisionRuleService revisionRuleService; |
| | | |
| | | /** |
| | | * 屿§çæå¡ |
| | |
| | | if (btmTypeDTO.isRevisionFlag()){ |
| | | // éè¦æ§å¶çæ¬ |
| | | // æ£æ¥ä½¿ç¨ççæ¬è§åæ¯å¦åå¨ |
| | | // if (StringUtils.isNotBlank(btmTypeDTO.getRevisionRuleId())) { |
| | | // if (revisionRuleServiceI.checkRevisionRuleExist(btmTypeDTO.getRevisionRuleId())) { |
| | | // throw new VciBaseException("çæ¬è§å{0}[{1}]å¨ç³»ç»ä¸ä¸åå¨ï¼è¯·å
æ¥è¯", |
| | | // new Object[]{btmTypeDTO.getRevisionRuleId(), btmTypeDTO.getRevisionRuleName()}); |
| | | // } |
| | | // } |
| | | if (StringUtils.isNotBlank(btmTypeDTO.getRevisionRuleId())) { |
| | | if (revisionRuleService.checkRevisionRuleExist(btmTypeDTO.getRevisionRuleId())) { |
| | | throw new VciBaseException("çæ¬è§å{0}[{1}]å¨ç³»ç»ä¸ä¸åå¨ï¼è¯·å
æ¥è¯", |
| | | new Object[]{btmTypeDTO.getRevisionRuleId(), btmTypeDTO.getRevisionRuleName()}); |
| | | } |
| | | } |
| | | btmTypeDTO.setAttributes(addAttributeByFieldMap(btmTypeDTO.getAttributes(),BtmTypeFieldConstant.REVISION_MANAGE_FIELD_MAP)); |
| | | } |
| | | if (btmTypeDTO.isLifeCycleFlag()){ |
| | |
| | | attributeService.saveBatch(idAttrMap.values()); |
| | | }else { |
| | | List<Attribute> addList = idAttrMap.values().stream().filter(a -> existAttr.stream().noneMatch(b -> StringUtils.equals(a.getKey(), b.getKey()))).collect(Collectors.toList()); |
| | | if (CollectionUtils.isEmpty(addList)) { |
| | | if (!CollectionUtils.isEmpty(addList)) { |
| | | attributeService.saveBatch(addList); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.omd.service.impl; |
| | | |
| | | import com.alibaba.cloud.commons.lang.StringUtils; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | 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.omd.dto.RevisionRuleDTO; |
| | | import com.vci.ubcs.omd.entity.BtmType; |
| | | import com.vci.ubcs.omd.entity.RevisionRule; |
| | | import com.vci.ubcs.omd.mapper.BtmTypeMapper; |
| | | import com.vci.ubcs.omd.mapper.RevisionRuleMapper; |
| | | import com.vci.ubcs.omd.service.IRevisionRuleService; |
| | | import com.vci.ubcs.omd.vo.BtmTypeVO; |
| | | import com.vci.ubcs.omd.vo.RevisionRuleVO; |
| | | import com.vci.ubcs.omd.wrapper.BtmTypeWrapper; |
| | | import com.vci.ubcs.omd.wrapper.RevisionRuleWrapper; |
| | | import com.vci.ubcs.starter.exception.VciBaseException; |
| | | import com.vci.ubcs.starter.util.Map2MPJLambdaUtil; |
| | | import com.vci.ubcs.starter.util.MybatisParameterUtil; |
| | | import com.vci.ubcs.starter.web.constant.RegExpConstant; |
| | | import com.vci.ubcs.starter.web.pagemodel.BaseQueryObject; |
| | | import com.vci.ubcs.starter.web.pagemodel.PageHelper; |
| | | import com.vci.ubcs.starter.web.util.BeanUtil; |
| | | 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.utils.Func; |
| | | import org.springblade.core.tool.utils.StringUtil; |
| | | import org.springframework.cglib.beans.BeanMap; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.util.CollectionUtils; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.*; |
| | | import java.util.regex.Matcher; |
| | | import java.util.regex.Pattern; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | | * Description: çæ¬è§åçæå¡ |
| | | * |
| | | * @author LiHang |
| | | * @date 2023/5/17 |
| | | */ |
| | | @Service |
| | | public class RevisionRuleServiceImpl extends ServiceImpl<RevisionRuleMapper, RevisionRule> implements IRevisionRuleService { |
| | | |
| | | private final Pattern pattern = Pattern.compile("\\d+"); |
| | | |
| | | @Resource |
| | | private BtmTypeMapper btmTypeMapper; |
| | | |
| | | /** |
| | | * è·åçæ¬è§åå表 |
| | | * |
| | | * @param condition æ¥è¯¢æ¡ä»¶ |
| | | * @param query å页信æ¯åæåºä¿¡æ¯ï¼é»è®¤ä½¿ç¨idæåº |
| | | * @return çæ¬è§å对象å表 |
| | | * @throws VciBaseException æ¥è¯¢åºéæ¶ä¼æåºå¼å¸¸ |
| | | */ |
| | | @Override |
| | | public IPage<RevisionRuleVO> listRevisionRule(Map<String, String> condition, Query query) throws VciBaseException { |
| | | RevisionRule queryConditionObj = new RevisionRule(); |
| | | BeanMap beanMap = BeanMap.create(queryConditionObj); |
| | | beanMap.putAll(condition); |
| | | return RevisionRuleWrapper.build().pageVO(baseMapper.selectPage(Condition.getPage(query),Condition.getQueryWrapper(queryConditionObj).lambda().orderByAsc(RevisionRule::getId))); |
| | | } |
| | | |
| | | /** |
| | | * æ ¹æ®ä¸»é®è·åçæ¬è§å |
| | | * |
| | | * @param pkRevisionRule çæ¬è§åä¸»é® |
| | | * @return çæ¬è§åï¼å¦æä¸åå¨ä¼è¿ånull |
| | | * @throws VciBaseException åæ°ä¸ºç©ºæè
æ¥è¯¢åºéæ¶ä¼æåºé误 |
| | | */ |
| | | @Override |
| | | public RevisionRuleVO getRevisionRuleByOid(String pkRevisionRule) throws VciBaseException { |
| | | VciBaseUtil.alertNotNull(pkRevisionRule,"çæ¬è§å主é®"); |
| | | return RevisionRuleWrapper.build().entityVO(getOne(Wrappers.<RevisionRule>query().lambda().eq(RevisionRule::getOid,pkRevisionRule))); |
| | | } |
| | | |
| | | /** |
| | | * æ ¹æ®ä¸»é®æ¹éè·åçæ¬è§å |
| | | * |
| | | * @param pkRevisionRules çæ¬è§å主é®ï¼ç¨éå·åé |
| | | * @return çæ¬è§åå表ï¼å¦ææä¸åå¨çä¸ä¼è¿åï¼å
¨é¨ä¸åå¨çåè¿å空å表 |
| | | * @throws VciBaseException åæ°ä¸ºç©ºæè
æ¥è¯¢åºéæ¶ä¼æåºé误 |
| | | */ |
| | | @Override |
| | | public List<RevisionRuleVO> listRevisionRuleByOids(String pkRevisionRules) throws VciBaseException { |
| | | VciBaseUtil.alertNotNull(pkRevisionRules,"çæ¬è§å主é®"); |
| | | List<String> oidList = Func.toStrList(",", pkRevisionRules); |
| | | return RevisionRuleWrapper.build().listVO(list(MybatisParameterUtil.cutInParameter(Wrappers.<RevisionRule>query().lambda(),RevisionRule::getOid,oidList))); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éæ ¹æ®ä¸»é®è·åçæ¬è§å |
| | | * |
| | | * @param pkRevisionRuleCollection çæ¬è§å主é®éå |
| | | * @return çæ¬è§åå表ï¼å¦ææä¸åå¨çä¸ä¼è¿åï¼å
¨é¨ä¸åå¨çåè¿å空å表 |
| | | * @throws VciBaseException åæ°ä¸ºç©ºæè
æ¥è¯¢åºéæ¶ä¼æåºé误 |
| | | */ |
| | | @Override |
| | | public List<RevisionRuleVO> listRevisionRuleByOidCollection(Collection<String> pkRevisionRuleCollection) throws VciBaseException { |
| | | VciBaseUtil.alertNotNull(pkRevisionRuleCollection,"çæ¬è§å主é®éå"); |
| | | return RevisionRuleWrapper.build().listVO(list(MybatisParameterUtil.cutInParameter(Wrappers.<RevisionRule>query().lambda(),RevisionRule::getOid, Arrays.asList(pkRevisionRuleCollection.toArray())))); |
| | | } |
| | | |
| | | /** |
| | | * æ ¹æ®è±æåç§°è·åçæ¬è§å |
| | | * |
| | | * @param id è±æåç§° |
| | | * @return çæ¬è§åï¼å¦æä¸åå¨ä¼è¿ånull |
| | | * @throws VciBaseException åæ°ä¸ºç©ºæè
æ¥è¯¢åºéæ¶ä¼æåºé误 |
| | | */ |
| | | @Override |
| | | public RevisionRuleVO getRevisionRuleById(String id) throws VciBaseException { |
| | | VciBaseUtil.alertNotNull(id,"è±æåç§°"); |
| | | return RevisionRuleWrapper.build().entityVO(getOne(Wrappers.<RevisionRule>query().lambda().eq(RevisionRule::getId,id))); |
| | | } |
| | | |
| | | /** |
| | | * æ ¹æ®è±æåç§°æ¹éè·åçæ¬è§å |
| | | * |
| | | * @param ids è±æåç§°ï¼ä½¿ç¨éå·åé |
| | | * @return çæ¬è§åå表ï¼å¦ææä¸åå¨çä¸ä¼è¿åï¼å
¨é¨ä¸åå¨çåè¿å空å表 |
| | | * @throws VciBaseException åæ°ä¸ºç©ºæè
æ¥è¯¢åºéæ¶ä¼æåºé误 |
| | | */ |
| | | @Override |
| | | public List<RevisionRuleVO> listRevisionRuleByIds(String ids) throws VciBaseException { |
| | | VciBaseUtil.alertNotNull(ids,"è±æåç§°"); |
| | | List<String> idList = Func.toStrList(",", ids); |
| | | return RevisionRuleWrapper.build().listVO(baseMapper.selectList(Wrappers.<RevisionRule>query().lambda().in(RevisionRule::getId,idList))); |
| | | } |
| | | |
| | | /** |
| | | * æ ¹æ®è±æåç§°éåæ¹éè·åçæ¬è§å |
| | | * |
| | | * @param revisionRuleIdCollection è±æåç§°éåï¼ä½¿ç¨éå·åé |
| | | * @return çæ¬è§åå表ï¼å¦ææä¸åå¨çä¸ä¼è¿åï¼å
¨é¨ä¸åå¨çåè¿å空å表 |
| | | * @throws VciBaseException åæ°ä¸ºç©ºæè
æ¥è¯¢åºéæ¶ä¼æåºé误 |
| | | */ |
| | | @Override |
| | | public List<RevisionRuleVO> listRevisionRuleByIdCollection(Collection<String> revisionRuleIdCollection) throws VciBaseException { |
| | | VciBaseUtil.alertNotNull(revisionRuleIdCollection,"è±æåç§°éå"); |
| | | // return RevisionRuleWrapper.build().listVO(list(MybatisParameterUtil.cutInParameter(Wrappers.<RevisionRule>query().lambda(),RevisionRule::getId, Collections.singletonList(revisionRuleIdCollection)))); |
| | | List<RevisionRule> list = baseMapper.selectList(Wrappers.<RevisionRule>query().lambda().in(RevisionRule::getId, revisionRuleIdCollection)); |
| | | return RevisionRuleWrapper.build().listVO(list); |
| | | } |
| | | |
| | | /** |
| | | * æ ¹æ®çæ¬è§å主é®è·å䏿åç§° |
| | | * |
| | | * @param oid çæ¬è§å主é®ï¼å¤ä¸ªä½¿ç¨éå·åé |
| | | * @return 䏿åç§°ï¼å¦æä¸åå¨ä¼è¿ånull;å¤ä¸ªä¼ä»¥éå·åé |
| | | * @throws VciBaseException åæ°ä¸ºç©ºæè
æ¥è¯¢åºéæ¶ä¼æåºé误 |
| | | */ |
| | | @Override |
| | | public String getNameByOid(String oid) throws VciBaseException { |
| | | VciBaseUtil.alertNotNull(oid,"çæ¬è§å主é®"); |
| | | return getRevisionRuleByOid(oid).getName(); |
| | | } |
| | | |
| | | /** |
| | | * æ ¹æ®çæ¬è§åè±æåç§°è·å䏿åç§° |
| | | * |
| | | * @param id çæ¬è§åè±æåç§° |
| | | * @return 䏿åç§°ï¼å¦æä¸åå¨ä¼è¿ånull;å¤ä¸ªä¼ä»¥éå·åé |
| | | * @throws VciBaseException åæ°ä¸ºç©ºæè
æ¥è¯¢åºéæ¶ä¼æåºé误 |
| | | */ |
| | | @Override |
| | | public String getNameById(String id) throws VciBaseException { |
| | | VciBaseUtil.alertNotNull(id,"çæ¬è§åè±æåç§°"); |
| | | return getRevisionRuleById(id).getName(); |
| | | } |
| | | |
| | | /** |
| | | * æ·»å çæ¬è§å |
| | | * |
| | | * @param revisionRuleVO çæ¬è§åæ¾ç¤ºå¯¹è±¡ï¼åDTOå
±ç¨ï¼ |
| | | * @return æ·»å åççæ¬è§å |
| | | * @throws VciBaseException æ·»å åºéçæ¶å伿åºå¼å¸¸ |
| | | */ |
| | | @Override |
| | | public RevisionRuleVO addSave(RevisionRuleDTO revisionRuleVO) throws VciBaseException { |
| | | VciBaseUtil.alertNotNull(revisionRuleVO,"è¦æ·»å ççæ¬è§å",revisionRuleVO.getId(),"çæ¬è§åè±æåç§°",revisionRuleVO.getName(),"çæ¬è§å䏿åç§°"); |
| | | List<RevisionRuleVO> voList = batchAddSave(Collections.singletonList(revisionRuleVO)); |
| | | if (!CollectionUtils.isEmpty(voList)){ |
| | | return voList.get(0); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | /** |
| | | * æ¹éæ·»å çæ¬è§å |
| | | * |
| | | * @param revisionRuleDTOList çæ¬è§åæ¾ç¤ºå¯¹è±¡å表 |
| | | * @return æ¹éæ·»å åççæ¬è§å |
| | | * @throws VciBaseException æ·»å åºéçæ¶å伿åºå¼å¸¸ |
| | | */ |
| | | @Override |
| | | public List<RevisionRuleVO> batchAddSave(List<RevisionRuleDTO> revisionRuleDTOList) throws VciBaseException { |
| | | if(CollectionUtils.isEmpty(revisionRuleDTOList)){ |
| | | throw new VciBaseException("è¦æ·»å ççæ¬è§å对象ä¸è½ä¸ºç©º"); |
| | | } |
| | | //1. 夿åä¸ªå±æ§æ¯å¦å¿
è¾é¡¹é½è¾å
¥äº |
| | | //2. 夿çè±æåç§°æ¯å¦éå¤ |
| | | Set<String> idSet = new HashSet<>(); |
| | | String creator = AuthUtil.getUserAccount(); |
| | | Date now = new Date(); |
| | | String btmName = "revision-rule"; |
| | | List<RevisionRule> revisionRuleList = new ArrayList<>(); |
| | | revisionRuleDTOList.forEach(s -> { |
| | | //å¤æä¸ºç©º |
| | | VciBaseUtil.alertNotNull(s.getId(),"çæ¬è§åè±æåç§°",s.getName(),"çæ¬è§å䏿åç§°",s.getStartCode(),"èµ·å§å符",s.getSerialStep(),"æ¥é¿"); |
| | | //å¤ææ¬æ¬¡æ¯å¦åå¨ |
| | | if(idSet.contains(s.getId().toLowerCase().trim())){ |
| | | throw new VciBaseException("è±æå称为{0}çç¶æå·²ç»åå¨",new Object[]{s.getId()}); |
| | | }else{ |
| | | idSet.add(s.getId().toLowerCase().trim()); |
| | | } |
| | | RevisionRule ruleDO = org.springblade.core.tool.utils.BeanUtil.copy(s, RevisionRule.class); |
| | | if(StringUtils.isBlank(ruleDO.getOid())){ |
| | | ruleDO.setOid(VciBaseUtil.getPk()); |
| | | } |
| | | //夿屿§æ¯å¦ç¬¦åè¦æ± |
| | | ruleDO.setCreator(creator); |
| | | ruleDO.setCreateTime(now); |
| | | ruleDO.setOwner(creator); |
| | | ruleDO.setBtmName(btmName); |
| | | ruleDO.setTs(now); |
| | | ruleDO.setLastModifier(creator); |
| | | ruleDO.setLastModifyTime(now); |
| | | ruleDO.setTs(now); |
| | | revisionRuleList.add(ruleDO); |
| | | }); |
| | | //夿æ¯å¦åå¨ |
| | | List<RevisionRuleVO> checkExistList = listRevisionRuleByIdCollection(idSet); |
| | | if(!CollectionUtils.isEmpty(checkExistList)){ |
| | | String existIds = checkExistList.stream().map(RevisionRuleVO::getId).collect(Collectors.joining(",")); |
| | | throw new VciBaseException("è±æå称为{0}ççæ¬è§åçå·²ç»å¨ç³»ç»ä¸åå¨ï¼ä¸åºå大å°åï¼ï¼ä¸è½æ·»å ",new Object[]{existIds}); |
| | | } |
| | | VciBaseUtil.switchCollectionForOracleIn(revisionRuleList,1000).forEach(this::saveOrUpdateBatch); |
| | | return RevisionRuleWrapper.build().listEntityVO(revisionRuleList); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹çæ¬è§å |
| | | * |
| | | * @param revisionRuleDTO çæ¬è§åæ¾ç¤ºå¯¹è±¡ï¼åDTOå
±ç¨ï¼ |
| | | * @return ä¿®æ¹åççæ¬è§å |
| | | * @throws VciBaseException ä¿®æ¹åºéçæ¶å伿åºå¼å¸¸ |
| | | */ |
| | | @Override |
| | | public RevisionRuleVO editSave(RevisionRuleDTO revisionRuleDTO) throws VciBaseException { |
| | | VciBaseUtil.alertNotNull(revisionRuleDTO,"è¦ä¿®æ¹ççæ¬è§å对象",revisionRuleDTO.getOid(),"è¦ä¿®æ¹ççæ¬è§å对象ç主é®"); |
| | | List<RevisionRuleVO> voList = batchEditSave(Collections.singletonList(revisionRuleDTO)); |
| | | if (!CollectionUtils.isEmpty(voList)){ |
| | | return voList.get(0); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | /** |
| | | * æ¹éä¿®æ¹çæ¬è§å |
| | | * |
| | | * @param revisionRuleDTOList çæ¬è§åæ¾ç¤ºå¯¹è±¡å表ï¼åDTOå
±ç¨ï¼ |
| | | * @return æ¹éä¿®æ¹åççæ¬è§å |
| | | * @throws VciBaseException ä¿®æ¹åºéçæ¶å伿åºå¼å¸¸ |
| | | */ |
| | | @Override |
| | | public List<RevisionRuleVO> batchEditSave(List<RevisionRuleDTO> revisionRuleDTOList) throws VciBaseException { |
| | | if(CollectionUtils.isEmpty(revisionRuleDTOList)){ |
| | | throw new VciBaseException("è¦ä¿®æ¹ççæ¬è§å对象ä¸è½ä¸ºç©º"); |
| | | } |
| | | //1. 夿åä¸ªå±æ§æ¯å¦å¿
è¾é¡¹é½è¾å
¥äº |
| | | //2. 夿çè±æåç§°æ¯å¦éå¤ |
| | | Set<String> idSet = new HashSet<>(); |
| | | Map<String,RevisionRuleDTO> oidObjectMap = new HashMap<>(16); |
| | | String creator = AuthUtil.getUserAccount(); |
| | | Date now = new Date(); |
| | | List<RevisionRule> revisionRuleList = new ArrayList<>(); |
| | | revisionRuleDTOList.forEach(s -> { |
| | | //å¤æä¸ºç©º |
| | | VciBaseUtil.alertNotNull(s.getOid(),"çæ¬è§å主é®",s.getId(),"çæ¬è§åè±æåç§°",s.getName(),"çæ¬è§å䏿åç§°",s.getStartCode(),"èµ·å§å符",s.getSerialStep(),"æ¥é¿"); |
| | | //å¤ææ¬æ¬¡æ¯å¦åå¨ |
| | | if(idSet.contains(s.getId().toLowerCase().trim())){ |
| | | throw new VciBaseException("è±æå称为{0}ççæ¬è§åå·²ç»åå¨ï¼ä¸åºå大å°åï¼",new Object[]{s.getId()}); |
| | | }else{ |
| | | idSet.add(s.getId().toLowerCase().trim()); |
| | | } |
| | | oidObjectMap.put(s.getOid(),s); |
| | | RevisionRule ruleDO = org.springblade.core.tool.utils.BeanUtil.copy(s, RevisionRule.class); |
| | | ruleDO.setLastModifier(creator); |
| | | ruleDO.setLastModifyTime(now); |
| | | ruleDO.setTs(now); |
| | | revisionRuleList.add(ruleDO); |
| | | }); |
| | | //夿æ¯å¦åå¨ |
| | | List<RevisionRuleVO> checkExistList = listRevisionRuleByOidCollection(oidObjectMap.keySet()); |
| | | if(CollectionUtils.isEmpty(checkExistList)){ |
| | | throw new VciBaseException("è¿äºçæ¬è§åå¨ç³»ç»ä¸åä¸åå¨",new Object[]{}); |
| | | } |
| | | //夿屿§åç§°æ¯å¦ä¿®æ¹ |
| | | Set<String> oidInDbSet = new HashSet<>(); |
| | | checkExistList.forEach(s -> { |
| | | RevisionRuleDTO revisionRuleDTO = oidObjectMap.get(s.getOid()); |
| | | if(!revisionRuleDTO.getId().equalsIgnoreCase(s.getId())){ |
| | | throw new VciBaseException("çæ¬è§å[{0}]çè±æåç§°ä¸å
许修æ¹ï¼ååç§°{1},æ°åç§°{2}",new Object[]{s.getName(),s.getId(),revisionRuleDTO.getId()}); |
| | | } |
| | | BeanUtil.convert(revisionRuleDTO,s); |
| | | oidInDbSet.add(s.getOid()); |
| | | }); |
| | | //ççæ¯å¦æä¸å¨ç³»ç»ä¸åå¨ç |
| | | oidObjectMap.forEach( (k,v) ->{ |
| | | if(!oidInDbSet.contains(k)){ |
| | | throw new VciBaseException("çæ¬è§å{0}[{1}]å¨ç³»ç»ä¸ä¸åå¨",new Object[]{v.getId(),v.getName()}); |
| | | } |
| | | }); |
| | | VciBaseUtil.switchCollectionForOracleIn(revisionRuleList,1000).forEach(this::saveOrUpdateBatch); |
| | | return RevisionRuleWrapper.build().listEntityVO(revisionRuleList); |
| | | } |
| | | |
| | | /** |
| | | * å é¤çæ¬è§å |
| | | * |
| | | * @param revisionRuleVO çæ¬è§åæ¾ç¤ºå¯¹è±¡ |
| | | * @throws VciBaseException å¦æçæ¬è§å被å¼ç¨ï¼æè
å é¤åºéæ¶ä¼æåºå¼å¸¸ |
| | | */ |
| | | @Override |
| | | public void delete(RevisionRuleVO revisionRuleVO) throws VciBaseException { |
| | | VciBaseUtil.alertNotNull(revisionRuleVO,"è¦å é¤ççæ¬å¯¹è±¡",revisionRuleVO.getOid(),"è¦å é¤ççæ¬å¯¹è±¡ç主é®"); |
| | | batchDelete(Collections.singletonList(revisionRuleVO)); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤çæ¬è§å |
| | | * |
| | | * @param revisionRuleVOList è¦å é¤ççæ¬è§åæ¾ç¤ºå¯¹è±¡å表 |
| | | * @throws VciBaseException å¦æçæ¬è§å被å¼ç¨ï¼æè
å é¤åºéæ¶ä¼æåºå¼å¸¸ |
| | | */ |
| | | @Override |
| | | @Transactional(rollbackFor = VciBaseException.class) |
| | | public void batchDelete(List<RevisionRuleVO> revisionRuleVOList) throws VciBaseException { |
| | | VciBaseUtil.alertNotNull(revisionRuleVOList,"çæ¬è§å"); |
| | | Set<String> oidSet = revisionRuleVOList.stream().map(RevisionRuleVO::getOid).peek(s -> VciBaseUtil.alertNotNull(StringUtil.isBlank(s))).collect(Collectors.toSet()); |
| | | List<RevisionRuleVO> revisionRuleList = listRevisionRuleByOidCollection(oidSet); |
| | | if(CollectionUtils.isEmpty(revisionRuleList)){ |
| | | throw new VciBaseException("è¦å é¤ççæ¬è§åå¨ç³»ç»ä¸ä¸åå¨,å¯è½æ¨éè¦å·æ°ååè¯"); |
| | | } |
| | | Set<String> oidInDbSet = revisionRuleList.stream().map(RevisionRuleVO::getOid).collect(Collectors.toSet()); |
| | | oidSet.forEach( s -> { |
| | | if(!oidInDbSet.contains(s)){ |
| | | throw new VciBaseException("è¦å é¤ççæ¬è§åå¨ç³»ç»ä¸ä¸åå¨,å¯è½æ¨éè¦å·æ°ååè¯"); |
| | | } |
| | | }); |
| | | //æ£æ¥å±æ§æ¯å¦è¢«å¼ç¨ |
| | | if(batchCheckRevisionRuleUsed(oidSet)){ |
| | | throw new VciBaseException("è¦å é¤ççæ¬è§åå¨ä¸å¡ç±»åä¸è¢«ä½¿ç¨ï¼æ æ³å é¤"); |
| | | } |
| | | //æ§è¡æ¹éå é¤ |
| | | Collection<Collection<String>> oidCollections = VciBaseUtil.switchCollectionForOracleIn(oidInDbSet); |
| | | for(Collection<String> oidCollection : oidCollections){ |
| | | baseMapper.delete(Wrappers.<RevisionRule>query().lambda().in(RevisionRule::getOid,oidCollection)); |
| | | } |
| | | |
| | | } |
| | | |
| | | /** |
| | | * æ¹éæ ¡éªçæ¬è§åæ¯å¦è¢«ä½¿ç¨ |
| | | * |
| | | * @param oidCollection 主é®éå |
| | | * @return true表示被å¼ç¨ |
| | | */ |
| | | @Override |
| | | public boolean batchCheckRevisionRuleUsed(Collection<String> oidCollection) { |
| | | VciBaseUtil.alertNotNull("æ ¡éªæ¯å¦å¼ç¨ççæ¬è§åç主é®",oidCollection); |
| | | //æ£æ¥ä¸å¡ç±»å |
| | | Collection<Collection<String>> oidCollections = VciBaseUtil.switchCollectionForOracleIn(oidCollection); |
| | | for(Collection<String> oids : oidCollections) { |
| | | MPJLambdaWrapper<BtmType> join = Map2MPJLambdaUtil.getMPJLambdaWrapper(new BtmType()) |
| | | .join("join", RevisionRule.class, RevisionRule::getId, BtmType::getRevisionRuleId) |
| | | .in(RevisionRule::getOid, oids); |
| | | Long count = btmTypeMapper.selectCount(join); |
| | | if(count>0){ |
| | | return true; |
| | | } |
| | | } |
| | | return false; |
| | | } |
| | | |
| | | /** |
| | | * è·å使ç¨çæ¬è§åçä¸å¡ç±»å |
| | | * |
| | | * @param pkRevisionRule çæ¬è§åçä¸»é® |
| | | * @return å¼ç¨çä¸å¡ç±»å |
| | | * @throws VciBaseException æ¥è¯¢åºéæ¶ä¼æåºå¼å¸¸ |
| | | */ |
| | | @Override |
| | | public List<BtmTypeVO> listRevisionRuleUsedInfo(String pkRevisionRule) throws VciBaseException { |
| | | VciBaseUtil.alertNotNull(pkRevisionRule,"çæ¬è§å对象ç主é®"); |
| | | List<BtmType> result = btmTypeMapper.selectList( |
| | | Map2MPJLambdaUtil.getMPJLambdaWrapper(new BtmType()) |
| | | .join("join", RevisionRule.class, RevisionRule::getId, BtmType::getRevisionRuleId) |
| | | .eq(RevisionRule::getOid, pkRevisionRule)); |
| | | return BtmTypeWrapper.build().listEntityVO(result); |
| | | } |
| | | |
| | | /** |
| | | * æ ¡éªçæ¬è§åæ¯å¦è¢«å¼ç¨ |
| | | * |
| | | * @param pkRevisionRule çæ¬è§åçä¸»é® |
| | | * @return true表示被å¼ç¨ï¼ false表示没æè¢«å¼ç¨ |
| | | * @throws VciBaseException åæ°ä¸ºç©ºæè
æ¥è¯¢åºéæ¶ä¼æåºé误 |
| | | */ |
| | | @Override |
| | | public boolean checkRevisionRuleUsed(String pkRevisionRule) throws VciBaseException { |
| | | VciBaseUtil.alertNotNull(pkRevisionRule,"è¦æ ¡éªæ¯å¦å¼ç¨ççæ¬è§å对象ç主é®"); |
| | | return batchCheckRevisionRuleUsed(Func.toStrList(",",pkRevisionRule)); |
| | | } |
| | | |
| | | /** |
| | | * å¤æçæ¬è§åæ¯å¦åå¨ |
| | | * |
| | | * @param revisionRuleId çæ¬è§åçè±æåç§° |
| | | * @return true表示é½åå¨ï¼false表示ä¸åå¨ |
| | | * @throws VciBaseException åæ°é误æè
æ¥è¯¢åºé伿åºå¼å¸¸ |
| | | */ |
| | | @Override |
| | | public boolean checkRevisionRuleExist(String revisionRuleId) throws VciBaseException { |
| | | VciBaseUtil.alertNotNull(revisionRuleId,"çæ¬è§åçè±æåç§°"); |
| | | List<String> idList = Func.toStrList(",",revisionRuleId.toLowerCase(Locale.ROOT)); |
| | | List<RevisionRuleVO> revisionRuleDOList = listRevisionRuleByIdCollection(idList); |
| | | if(CollectionUtils.isEmpty(revisionRuleDOList)){ |
| | | return false; |
| | | }else{ |
| | | Set<String> existIdList = revisionRuleDOList.stream().map(RevisionRuleVO::getId) |
| | | .collect(Collectors.toList()).stream() |
| | | .map(String::toLowerCase).collect(Collectors.toSet()); |
| | | //䏿¹å·²ç»è½¬æ¢ä¸ºäºå°å |
| | | return idList.stream().allMatch(s -> existIdList.contains(s.toLowerCase().trim())); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * è·åä¸ä¸ä¸ªçæ¬çå¼ |
| | | * |
| | | * @param ruleId çæ¬çè§å |
| | | * @param currentRevisionValue å½åçæ¬çå¼ï¼ä¸ºç©ºçæ¶åï¼è¯´ææ¯æ°å¢ |
| | | * @return ä¸ä¸ä¸ªçæ¬å· |
| | | * @throws VciBaseException çæ¬è§åä¸åå¨çæ¶å伿åºå¼å¸¸ |
| | | */ |
| | | @Override |
| | | public String getNextRevisionValue(String ruleId, String currentRevisionValue) throws VciBaseException { |
| | | VciBaseUtil.alertNotNull(ruleId,"è§åçè±æåç§°"); |
| | | boolean isFirstRevision = StringUtils.isBlank(currentRevisionValue); |
| | | RevisionRuleVO revisionRuleVO = getRevisionRuleByOid(ruleId); |
| | | String ruleValue; |
| | | if(isFirstRevision){ |
| | | //åç¼+ èµ·å§ + åç¼ |
| | | return (StringUtils.isBlank(revisionRuleVO.getPrefixCode())?"":revisionRuleVO.getPrefixCode().trim()) + revisionRuleVO.getStartCode() + |
| | | (StringUtils.isBlank(revisionRuleVO.getSuffixCode())?"":revisionRuleVO.getSuffixCode().trim()); |
| | | }else{ |
| | | ruleValue = replacePrefixAndSubfix(currentRevisionValue, revisionRuleVO.getPrefixCode(), revisionRuleVO.getSuffixCode()); |
| | | String lastChar = ruleValue.substring(ruleValue.length()-1); |
| | | String unHasLastCharRule = ruleValue.substring(0,ruleValue.length()-1); |
| | | Integer step = revisionRuleVO.getSerialStep(); |
| | | if(step == null){ |
| | | step = 1; |
| | | } |
| | | if(lastChar.matches(RegExpConstant.LETTER)){ |
| | | //æ¯åæ¯çï¼å è¿å»å妿è¶
è¿äºZï¼é£å°±å¾å ä¸ä½ |
| | | //ç¨asciiç æ¥æ·»å |
| | | int ascInt = lastChar.toCharArray()[0]; |
| | | int ascForZ = "Z".toCharArray()[0]; |
| | | int ascForA = "A".toCharArray()[0]; |
| | | int newValueAsc; |
| | | |
| | | if((ascInt + step) > ascForZ){ |
| | | newValueAsc = (ascInt + step) - ascForZ + ascForA; |
| | | ruleValue = unHasLastCharRule + "A" + (char)newValueAsc; |
| | | }else { |
| | | ruleValue = unHasLastCharRule + (char)(ascInt + step); |
| | | } |
| | | }else{ |
| | | //æ¯æ°å |
| | | String lastNumberInString = getNumbers(ruleValue); |
| | | String nextNumber = String.valueOf(Integer.parseInt(lastNumberInString) + step); |
| | | if(ruleValue.length() > lastNumberInString.length()){ |
| | | ruleValue = ruleValue.substring(0,ruleValue.length() - lastNumberInString.length()-1) + nextNumber; |
| | | }else{ |
| | | ruleValue = nextNumber; |
| | | } |
| | | } |
| | | } |
| | | return ruleValue; |
| | | } |
| | | |
| | | /** |
| | | * è·åå符串ä¸çæ°åé¨å |
| | | * @param content å符串å
容 |
| | | * @return æ°åçé¨å,æåçé£é¨å |
| | | */ |
| | | private String getNumbers(String content) { |
| | | Matcher matcher = pattern.matcher(content); |
| | | while (matcher.find()) { |
| | | return matcher.group(matcher.groupCount()-1); |
| | | } |
| | | return ""; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * æ¿æ¢åç¼ååç¼ |
| | | * @param ruleValue å½åçæ¬çå¼ |
| | | * @param prefix åç¼ |
| | | * @param subfix åç¼ |
| | | * @return å»é¤åç¼ååç¼ççæ¬è§å |
| | | */ |
| | | private String replacePrefixAndSubfix(String ruleValue, String prefix, String subfix){ |
| | | if(prefix==null){ |
| | | prefix = ""; |
| | | } |
| | | if(subfix == null){ |
| | | subfix = ""; |
| | | } |
| | | if(StringUtils.isNotBlank(prefix) && ruleValue.startsWith(prefix)){ |
| | | ruleValue = ruleValue.substring(prefix.length()); |
| | | } |
| | | if(StringUtils.isNotBlank(subfix) && ruleValue.endsWith(subfix)){ |
| | | ruleValue = ruleValue.substring(0,ruleValue.length()-subfix.length()-1); |
| | | } |
| | | return ruleValue; |
| | | } |
| | | |
| | | /** |
| | | * å页æ¥è¯¢ |
| | | * |
| | | * @param baseQueryObject æ¥è¯¢å¯¹è±¡ |
| | | * @return æ¥è¯¢ç»æ |
| | | * @throws VciBaseException æ¥è¯¢åºéæ¶æåºå¼å¸¸ |
| | | */ |
| | | @Override |
| | | public IPage<RevisionRuleVO> pageQueryVO(BaseQueryObject baseQueryObject) throws VciBaseException { |
| | | Map<String, String> conditionMap = baseQueryObject.getConditionMap(); |
| | | if (conditionMap == null){ |
| | | conditionMap = new HashMap<>(); |
| | | } |
| | | PageHelper pageHelper = baseQueryObject.getPageHelper(); |
| | | Query query = new Query(); |
| | | query.setCurrent(pageHelper.getPage()); |
| | | query.setSize(pageHelper.getLimit()); |
| | | query.setAscs(pageHelper.getSort()); |
| | | RevisionRule queryConditionObj = new RevisionRule(); |
| | | BeanMap beanMap = BeanMap.create(queryConditionObj); |
| | | beanMap.putAll(conditionMap); |
| | | return RevisionRuleWrapper.build().pageVO(baseMapper.selectPage(Condition.getPage(query),Condition.getQueryWrapper(queryConditionObj).lambda().orderByAsc(RevisionRule::getId))); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.omd.service.impl; |
| | | |
| | | import com.alibaba.cloud.commons.lang.StringUtils; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.vci.ubcs.omd.entity.Status; |
| | | import com.vci.ubcs.omd.mapper.StatusMapper; |
| | | import com.vci.ubcs.omd.service.IStatusService; |
| | | import com.vci.ubcs.omd.vo.StatusVO; |
| | | import com.vci.ubcs.omd.wrapper.StatusWrapper; |
| | | import com.vci.ubcs.starter.exception.VciBaseException; |
| | | import com.vci.ubcs.starter.web.pagemodel.PageHelper; |
| | | import com.vci.ubcs.starter.web.util.BeanUtil; |
| | | 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.utils.Func; |
| | | import org.springframework.cglib.beans.BeanMap; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.util.CollectionUtils; |
| | | |
| | | import java.util.*; |
| | | import java.util.regex.Pattern; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | | * Description: ç¶ææ± çå®ç°ç±» |
| | | * |
| | | * @author LiHang |
| | | * @date 2023/5/23 |
| | | */ |
| | | @Service |
| | | public class StatusServiceImpl extends ServiceImpl<StatusMapper, Status> implements IStatusService { |
| | | |
| | | private final String REGEXP = "^[A-Za-z]+$"; |
| | | |
| | | /** |
| | | * è·åç¶æå表 |
| | | * |
| | | * @param conditionMap æ¥è¯¢æ¡ä»¶ |
| | | * @param pageHelper å页信æ¯åæåºä¿¡æ¯ï¼é»è®¤ä½¿ç¨idæåº |
| | | * @return ç¶æå¯¹è±¡å表 |
| | | * @throws VciBaseException æ¥è¯¢åºéæ¶ä¼æåºå¼å¸¸ |
| | | */ |
| | | @Override |
| | | public IPage<StatusVO> listStatus(Map<String, String> conditionMap, PageHelper pageHelper) throws VciBaseException { |
| | | Query query = new Query(); |
| | | query.setCurrent(pageHelper.getPage()); |
| | | query.setSize(pageHelper.getLimit()); |
| | | query.setAscs("id"); |
| | | Status queryVO = new Status(); |
| | | BeanMap.create(queryVO).putAll(conditionMap); |
| | | return StatusWrapper.build().pageVO(baseMapper.selectPage(Condition.getPage(query), Condition.getQueryWrapper(queryVO).lambda().orderByAsc(Status::getId))); |
| | | } |
| | | |
| | | /** |
| | | * è·åç¶æå表 |
| | | * |
| | | * @param conditionMap æ¥è¯¢æ¡ä»¶ |
| | | * @return ç¶æå¯¹è±¡å表 |
| | | * @throws VciBaseException æ¥è¯¢åºéæ¶ä¼æåºå¼å¸¸ |
| | | */ |
| | | @Override |
| | | public List<StatusVO> listStatusNoPage(Map<String, String> conditionMap) throws VciBaseException { |
| | | Status queryVO = new Status(); |
| | | BeanMap.create(queryVO).putAll(conditionMap); |
| | | return StatusWrapper.build().listEntityVO(baseMapper.selectList(Condition.getQueryWrapper(queryVO).lambda().orderByAsc(Status::getId))); |
| | | } |
| | | |
| | | /** |
| | | * æ ¹æ®ä¸»é®è·åç¶æ |
| | | * |
| | | * @param pkStatus ç¶æä¸»é® |
| | | * @return ç¶æï¼å¦æä¸åå¨ä¼è¿ånull |
| | | * @throws VciBaseException åæ°ä¸ºç©ºæè
æ¥è¯¢åºéæ¶ä¼æåºé误 |
| | | */ |
| | | @Override |
| | | public StatusVO getStatusByOid(String pkStatus) throws VciBaseException { |
| | | List<StatusVO> statusVOList = listStatusByOids(pkStatus); |
| | | if (!CollectionUtils.isEmpty(statusVOList)){ |
| | | return statusVOList.get(0); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | /** |
| | | * æ ¹æ®ä¸»é®æ¹éè·åç¶æ |
| | | * |
| | | * @param primaryKeys ç¶æä¸»é®ï¼ç¨éå·åé |
| | | * @return ç¶æå表ï¼å¦ææä¸åå¨çä¸ä¼è¿åï¼å
¨é¨ä¸åå¨çåè¿å空å表 |
| | | * @throws VciBaseException åæ°ä¸ºç©ºæè
æ¥è¯¢åºéæ¶ä¼æåºé误 |
| | | */ |
| | | @Override |
| | | public List<StatusVO> listStatusByOids(String primaryKeys) throws VciBaseException { |
| | | VciBaseUtil.alertNotNull(primaryKeys,"ç¶æç主é®"); |
| | | List<String> pkList = Func.toStrList(",", primaryKeys); |
| | | return listStatusByOidCollection(pkList); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éæ ¹æ®ä¸»é®è·åç¶æ |
| | | * |
| | | * @param pkStatusCollection ç¶æä¸»é®éå |
| | | * @return ç¶æå表ï¼å¦ææä¸åå¨çä¸ä¼è¿åï¼å
¨é¨ä¸åå¨çåè¿å空å表 |
| | | * @throws VciBaseException åæ°ä¸ºç©ºæè
æ¥è¯¢åºéæ¶ä¼æåºé误 |
| | | */ |
| | | @Override |
| | | public List<StatusVO> listStatusByOidCollection(Collection<String> pkStatusCollection) throws VciBaseException { |
| | | if(!CollectionUtils.isEmpty(pkStatusCollection)){ |
| | | List<Status> statusDOList = listStatusByOidCollectionDO(pkStatusCollection); |
| | | if(!CollectionUtils.isEmpty(statusDOList)) { |
| | | return StatusWrapper.build().listEntityVO(statusDOList); |
| | | } |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | /** |
| | | * æ ¹æ®ä¸»é®éåè·åæ°æ®å¯¹è±¡ |
| | | * @param oidCollection 主é®éå |
| | | * @return æ¥è¯¢åºæ¥çæ°æ®å¯¹è±¡ |
| | | * @throws VciBaseException mybatisæ§è¡åºéæ¶ä¼æåºå¼å¸¸ |
| | | */ |
| | | private List<Status> listStatusByOidCollectionDO(Collection<String> oidCollection) throws VciBaseException{ |
| | | if(!CollectionUtils.isEmpty(oidCollection)){ |
| | | List<Status> statusDOList = new ArrayList<>(); |
| | | Collection<Collection<String>> pksCollections = VciBaseUtil.switchCollectionForOracleIn(oidCollection); |
| | | if(!CollectionUtils.isEmpty(pksCollections)) { |
| | | pksCollections.forEach(s -> { |
| | | List<Status> queryResult = baseMapper.selectList(Wrappers.<Status>query().lambda().in(Status::getOid,s)); |
| | | if(!CollectionUtils.isEmpty(queryResult)){ |
| | | statusDOList.addAll(queryResult); |
| | | } |
| | | }); |
| | | } |
| | | return statusDOList; |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | /** |
| | | * æ ¹æ®è±æåç§°è·åç¶æ |
| | | * |
| | | * @param id è±æåç§° |
| | | * @return ç¶æï¼å¦æä¸åå¨ä¼è¿ånull |
| | | * @throws VciBaseException æ¥è¯¢åºéæåºå¼å¸¸ |
| | | */ |
| | | @Override |
| | | public StatusVO getStatusById(String id) throws VciBaseException { |
| | | List<StatusVO> statusVOList = listStatusByIds(id); |
| | | if(!CollectionUtils.isEmpty(statusVOList)){ |
| | | return statusVOList.get(0); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | /** |
| | | * æ ¹æ®è±æåç§°æ¹éè·åç¶æ |
| | | * |
| | | * @param ids è±æåç§°ï¼ä½¿ç¨éå·åé |
| | | * @return ç¶æå表ï¼å¦ææä¸åå¨çä¸ä¼è¿åï¼å
¨é¨ä¸åå¨çåè¿å空å表 |
| | | * @throws VciBaseException åæ°ä¸ºç©ºæè
æ¥è¯¢åºéæ¶ä¼æåºé误 |
| | | */ |
| | | @Override |
| | | public List<StatusVO> listStatusByIds(String ids) throws VciBaseException { |
| | | VciBaseUtil.alertNotNull(ids,"ç¶æçè±æåç§°"); |
| | | List<String> idList = Func.toStrList(",", ids); |
| | | return listStatusByIdCollection(idList); |
| | | } |
| | | |
| | | /** |
| | | * æ ¹æ®è±æåç§°éåæ¹éè·åç¶æ |
| | | * |
| | | * @param idCollection è±æåç§°éå |
| | | * @return ç¶æå表ï¼å¦ææä¸åå¨çä¸ä¼è¿åï¼å
¨é¨ä¸åå¨çåè¿å空å表 |
| | | * @throws VciBaseException åæ°ä¸ºç©ºæè
æ¥è¯¢åºéæ¶ä¼æåºé误 |
| | | */ |
| | | @Override |
| | | public List<StatusVO> listStatusByIdCollection(Collection<String> idCollection) throws VciBaseException { |
| | | if(!CollectionUtils.isEmpty(idCollection)){ |
| | | List<Status> statusDOList = listStatusByIdCollectionDO(idCollection); |
| | | if(!CollectionUtils.isEmpty(statusDOList)) { |
| | | return StatusWrapper.build().listEntityVO(statusDOList); |
| | | } |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | /** |
| | | * æ ¹æ®è±æåç§°éåè·åæ°æ®å¯¹è±¡ |
| | | * @param idCollection è±æåç§°éå |
| | | * @return æ°æ®å¯¹è±¡å表ï¼å¦ææä¸åå¨çä¸ä¼è¿åï¼å
¨é¨ä¸åå¨çåè¿å空å表 |
| | | * @throws VciBaseException mybatisæ¥è¯¢åºéçæ¶å伿åºå¼å¸¸ |
| | | */ |
| | | private List<Status> listStatusByIdCollectionDO(Collection<String> idCollection) throws VciBaseException { |
| | | if(CollectionUtils.isEmpty(idCollection)) { |
| | | return null; |
| | | } |
| | | List<Status> statusDOList = new ArrayList<>(); |
| | | Collection<Collection<String>> idCollections = VciBaseUtil.switchCollectionForOracleIn(idCollection); |
| | | if(!CollectionUtils.isEmpty(idCollections)) { |
| | | idCollections.forEach(s -> { |
| | | List<Status> queryResult = baseMapper.selectList(Wrappers.<Status>query().lambda().in(Status::getId,s)); |
| | | if(!CollectionUtils.isEmpty(queryResult)){ |
| | | statusDOList.addAll(queryResult); |
| | | } |
| | | }); |
| | | } |
| | | return statusDOList; |
| | | } |
| | | |
| | | /** |
| | | * æ ¹æ®ç¶æä¸»é®è·å䏿åç§° |
| | | * |
| | | * @param oid ç¶æä¸»é®ï¼å¤ä¸ªä½¿ç¨éå·åé |
| | | * @return 䏿åç§°ï¼å¦æä¸åå¨ä¼è¿ånull |
| | | * @throws VciBaseException åæ°ä¸ºç©ºæè
æ¥è¯¢åºéæ¶ä¼æåºé误 |
| | | */ |
| | | @Override |
| | | public String getNameByOid(String oid) throws VciBaseException { |
| | | VciBaseUtil.alertNotNull(oid,"ç¶æå¯¹è±¡ä¸»é®"); |
| | | return Optional.ofNullable(getStatusByOid(oid)).orElseGet(StatusVO::new).getName(); |
| | | } |
| | | |
| | | /** |
| | | * æ ¹æ®ç¶æè±æåç§°è·å䏿åç§° |
| | | * |
| | | * @param id ç¶æè±æåç§° |
| | | * @return 䏿åç§°ï¼å¦æä¸åå¨ä¼è¿ånull |
| | | * @throws VciBaseException åæ°ä¸ºç©ºæè
æ¥è¯¢åºéæ¶ä¼æåºé误 |
| | | */ |
| | | @Override |
| | | public String getNameById(String id) throws VciBaseException { |
| | | VciBaseUtil.alertNotNull(id,"ç¶æå¯¹è±¡ä¸»é®"); |
| | | return Optional.ofNullable(getStatusById(id)).orElseGet(StatusVO::new).getName(); |
| | | } |
| | | |
| | | /** |
| | | * æ·»å ç¶æ |
| | | * |
| | | * @param statusVO ç¶ææ¾ç¤ºå¯¹è±¡ï¼åDTOå
±ç¨ï¼ |
| | | * @return æ·»å åçç¶æ |
| | | * @throws VciBaseException æ·»å åºéçæ¶å伿åºå¼å¸¸ |
| | | */ |
| | | @Override |
| | | public StatusVO addSave(StatusVO statusVO) throws VciBaseException { |
| | | VciBaseUtil.alertNotNull(statusVO,"è¦æ·»å çç¶æ",statusVO.getId(),"ç¶æè±æåç§°",statusVO.getName(),"ç¶æä¸æåç§°"); |
| | | List<StatusVO> statusVOS = new ArrayList<>(); |
| | | statusVOS.add(statusVO); |
| | | List<StatusVO> statusVOList = batchAddSave(statusVOS); |
| | | if(CollectionUtils.isEmpty(statusVOList)){ |
| | | return null; |
| | | } |
| | | return statusVOList.get(0); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éæ·»å ç¶æ |
| | | * |
| | | * @param statusVOList ç¶ææ¾ç¤ºå¯¹è±¡å表(åDTOå
±ç¨) |
| | | * @return æ¹éæ·»å åçç¶æ |
| | | * @throws VciBaseException æ·»å åºéçæ¶å伿åºå¼å¸¸ |
| | | */ |
| | | @Override |
| | | public List<StatusVO> batchAddSave(List<StatusVO> statusVOList) throws VciBaseException { |
| | | if(CollectionUtils.isEmpty(statusVOList)){ |
| | | throw new VciBaseException("è¦æ·»å çç¶æå¯¹è±¡ä¸è½ä¸ºç©º"); |
| | | } |
| | | //1. 夿åä¸ªå±æ§æ¯å¦å¿
è¾é¡¹é½è¾å
¥äº |
| | | //2. å¤æè±æåç§°æ¯å¦éå¤ |
| | | Set<String> idSet = new HashSet<>(); |
| | | String creator = AuthUtil.getUserAccount(); |
| | | Date now = new Date(); |
| | | String btmName = "status"; |
| | | Pattern pattern = Pattern.compile(REGEXP); |
| | | statusVOList.forEach(s -> { |
| | | if (!pattern.matcher(s.getId()).matches()){ |
| | | throw new VciBaseException("è±æåç§°{0}åªè½æ¯è±æåæ¯",new Object[]{s.getId()}); |
| | | } |
| | | VciBaseUtil.alertNotNull(s.getId(),"ç¶æè±æåç§°",s.getName(),"ç¶æä¸æåç§°"); |
| | | if(idSet.contains(s.getId().toLowerCase().trim())){ |
| | | throw new VciBaseException("è±æå称为{0}çç¶æå·²ç»åå¨ï¼ä¸åºå大å°åï¼",new Object[]{s.getId()}); |
| | | }else{ |
| | | idSet.add(s.getId().toLowerCase().trim()); |
| | | } |
| | | if(StringUtils.isBlank(s.getOid())){ |
| | | s.setOid(VciBaseUtil.getPk()); |
| | | } |
| | | s.setBtmName(btmName); |
| | | s.setOwner(creator); |
| | | s.setCreator(creator); |
| | | s.setCreateTime(now); |
| | | s.setLastModifier(creator); |
| | | s.setLastModifyTime(now); |
| | | s.setTs(now); |
| | | }); |
| | | //夿æ¯å¦åå¨ |
| | | List<Status> checkExistStatusDOList = listStatusByIdCollectionDO(idSet); |
| | | if(!CollectionUtils.isEmpty(checkExistStatusDOList)){ |
| | | String existIds = checkExistStatusDOList.stream().map(Status::getId).collect(Collectors.joining(",")); |
| | | throw new VciBaseException("è±æå称为{0}çç¶æçå·²ç»å¨ç³»ç»ä¸åå¨ï¼ä¸åºå大å°åï¼ï¼ä¸è½æ·»å ",new Object[]{existIds}); |
| | | } |
| | | List<Status> statusDOList = StatusWrapper.build().batchCopyVO2DO(statusVOList); |
| | | VciBaseUtil.switchCollectionForOracleIn(statusDOList,1000).forEach(this::saveBatch); |
| | | return statusVOList; |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹ç¶æ |
| | | * |
| | | * @param statusVO ç¶ææ¾ç¤ºå¯¹è±¡ï¼åDTOå
±ç¨ï¼ |
| | | * @return ä¿®æ¹åçç¶æ |
| | | * @throws VciBaseException ä¿®æ¹åºéçæ¶å伿åºå¼å¸¸ |
| | | */ |
| | | @Override |
| | | public StatusVO editSave(StatusVO statusVO) throws VciBaseException { |
| | | VciBaseUtil.alertNotNull(statusVO,"è¦ä¿®æ¹çç¶æå¯¹è±¡",statusVO.getOid(),"è¦ä¿®æ¹çç¶æå¯¹è±¡ç主é®"); |
| | | List<StatusVO> needEditVOList = new ArrayList<>(); |
| | | needEditVOList.add(statusVO); |
| | | List<StatusVO> statusVOList = batchEditSave(needEditVOList); |
| | | if(!CollectionUtils.isEmpty(statusVOList)){ |
| | | return statusVOList.get(0); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | /** |
| | | * æ¹éä¿®æ¹ç¶æ |
| | | * |
| | | * @param statusVOList ç¶ææ¾ç¤ºå¯¹è±¡å表ï¼åDTOå
±ç¨ï¼ |
| | | * @return æ¹éä¿®æ¹åçç¶æ |
| | | * @throws VciBaseException ä¿®æ¹åºéçæ¶å伿åºå¼å¸¸ |
| | | */ |
| | | @Override |
| | | public List<StatusVO> batchEditSave(List<StatusVO> statusVOList) throws VciBaseException { |
| | | if(CollectionUtils.isEmpty(statusVOList)){ |
| | | throw new VciBaseException("è¦ä¿®æ¹çç¶æå¯¹è±¡ä¸è½ä¸ºç©º"); |
| | | } |
| | | //1. 夿åä¸ªå±æ§æ¯å¦å¿
è¾é¡¹é½è¾å
¥äº |
| | | //2. å¤æç¶æçè±æåç§°æ¯å¦éå¤ |
| | | Set<String> idSet = new HashSet<>(); |
| | | Map<String,StatusVO> oidObjectMap = new HashMap<>(); |
| | | String creator = AuthUtil.getUserAccount(); |
| | | Date now = new Date(); |
| | | statusVOList.forEach(s -> { |
| | | //å¤æä¸ºç©º |
| | | VciBaseUtil.alertNotNull(s.getOid(),"ç¶æä¸»é®",s.getId(),"ç¶æè±æåç§°",s.getName(),"ç¶æä¸æåç§°"); |
| | | //å¤ææ¬æ¬¡æ¯å¦åå¨ |
| | | if(idSet.contains(s.getId().toLowerCase().trim())){ |
| | | throw new VciBaseException("è±æå称为{0}çç¶æå·²ç»åå¨ï¼ä¸åºå大å°åï¼",new Object[]{s.getId()}); |
| | | }else{ |
| | | idSet.add(s.getId().toLowerCase().trim()); |
| | | } |
| | | oidObjectMap.put(s.getOid(),s); |
| | | s.setLastModifier(creator); |
| | | s.setLastModifyTime(now); |
| | | s.setTs(now); |
| | | }); |
| | | //夿æ¯å¦åå¨ |
| | | List<Status> statusDOList = listStatusByOidCollectionDO(oidObjectMap.keySet()); |
| | | if(CollectionUtils.isEmpty(statusDOList)){ |
| | | throw new VciBaseException("è¿äºç¶æå¨ç³»ç»ä¸åä¸åå¨",new Object[]{}); |
| | | } |
| | | //夿屿§åç§°æ¯å¦ä¿®æ¹ |
| | | Set<String> oidInDbSet = new HashSet<>(); |
| | | statusDOList.forEach(s -> { |
| | | StatusVO statusVO = oidObjectMap.get(s.getOid()); |
| | | if(!statusVO.getId().equalsIgnoreCase(s.getId())){ |
| | | throw new VciBaseException("ç¶æ[{0}]çè±æåç§°ä¸å
许修æ¹ï¼ååç§°{1},æ°åç§°{2}",new Object[]{s.getName(),s.getId(),statusVO.getId()}); |
| | | } |
| | | BeanUtil.convert(statusVO,s); |
| | | oidInDbSet.add(s.getOid()); |
| | | }); |
| | | oidObjectMap.forEach( (k,v) ->{ |
| | | if(!oidInDbSet.contains(k)){ |
| | | throw new VciBaseException("ç¶æ{0}[{1}]å¨ç³»ç»ä¸ä¸åå¨",new Object[]{v.getId(),v.getName()}); |
| | | } |
| | | }); |
| | | //ççæ¯å¦æä¸å¨ç³»ç»ä¸åå¨ç |
| | | VciBaseUtil.switchCollectionForOracleIn(statusDOList).forEach(this::saveOrUpdateBatch); |
| | | return statusVOList; |
| | | } |
| | | |
| | | /** |
| | | * å é¤ç¶æ |
| | | * |
| | | * @param statusVO ç¶ææ¾ç¤ºå¯¹è±¡ |
| | | * @throws VciBaseException å¦æç¶æè¢«å¼ç¨ï¼æè
å é¤åºéæ¶ä¼æåºå¼å¸¸ |
| | | */ |
| | | @Override |
| | | public void delete(StatusVO statusVO) throws VciBaseException { |
| | | VciBaseUtil.alertNotNull(statusVO,"è¦å é¤çç¶æå¯¹è±¡",statusVO.getOid(),"è¦å é¤çç¶æå¯¹è±¡ç主é®"); |
| | | List<StatusVO> needDeleteVOList = new ArrayList<>(); |
| | | needDeleteVOList.add(statusVO); |
| | | batchDelete(needDeleteVOList); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤ç¶æ |
| | | * |
| | | * @param statusVOList è¦å é¤çç¶ææ¾ç¤ºå¯¹è±¡å表 |
| | | * @throws VciBaseException å¦æç¶æè¢«å¼ç¨ï¼æè
å é¤åºéæ¶ä¼æåºå¼å¸¸ |
| | | */ |
| | | @Override |
| | | public void batchDelete(List<StatusVO> statusVOList) throws VciBaseException { |
| | | if(CollectionUtils.isEmpty(statusVOList)){ |
| | | throw new VciBaseException("è¦å é¤çç¶æå¯¹è±¡ä¸è½ä¸ºç©º"); |
| | | } |
| | | Set<String> oidSet= new HashSet<>(); |
| | | statusVOList.stream().forEach( s -> { |
| | | VciBaseUtil.alertNotNull(s.getOid(),"è¦å é¤çç¶æå¯¹è±¡ç主é®"); |
| | | oidSet.add(s.getOid()); |
| | | }); |
| | | //æ¥è¯¢ |
| | | List<Status> statusDOList = listStatusByOidCollectionDO(oidSet); |
| | | if(CollectionUtils.isEmpty(statusDOList)){ |
| | | throw new VciBaseException("è¦å é¤çç¶æå¨ç³»ç»ä¸ä¸åå¨,å¯è½æ¨éè¦å·æ°ååè¯"); |
| | | } |
| | | Set<String> oidInDbSet = statusDOList.stream().map(Status::getOid).collect(Collectors.toSet()); |
| | | oidSet.forEach( s -> { |
| | | if(!oidInDbSet.contains(s)){ |
| | | throw new VciBaseException("è¦å é¤çç¶æå¨ç³»ç»ä¸ä¸åå¨,å¯è½æ¨éè¦å·æ°ååè¯"); |
| | | } |
| | | }); |
| | | //æ£æ¥å±æ§æ¯å¦è¢«å¼ç¨ |
| | | if(checkStatusUseds(oidSet)){ |
| | | throw new VciBaseException("è¦å é¤çç¶æå¨çå½å¨æå¯¹è±¡ä¸è¢«ä½¿ç¨ï¼æ æ³å é¤"); |
| | | } |
| | | Collection<Collection<String>> oidCollections = VciBaseUtil.switchCollectionForOracleIn(oidInDbSet); |
| | | for(Collection<String> oidCollection : oidCollections){ |
| | | baseMapper.delete(Wrappers.<Status>query().lambda().in(Status::getOid,oidCollection)); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * æ¹éæ ¡éªç¶ææ¯å¦è¢«ä½¿ç¨ |
| | | * |
| | | * @param oidCollection 主é®éå |
| | | * @return true表示被å¼ç¨ |
| | | */ |
| | | @Override |
| | | public boolean checkStatusUseds(Collection<String> oidCollection) { |
| | | return false; |
| | | } |
| | | |
| | | /** |
| | | * æ ¡éªç¶ææ¯å¦è¢«å¼ç¨ |
| | | * |
| | | * @param pkStatus ç¶æçä¸»é® |
| | | * @return true表示被å¼ç¨ï¼ false表示没æè¢«å¼ç¨ |
| | | * @throws VciBaseException åæ°ä¸ºç©ºæè
æ¥è¯¢åºéæ¶ä¼æåºé误 |
| | | */ |
| | | @Override |
| | | public boolean checkStatusUsed(String pkStatus) throws VciBaseException { |
| | | return false; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.omd.wrapper; |
| | | |
| | | import com.vci.ubcs.omd.dto.RevisionRuleDTO; |
| | | import com.vci.ubcs.omd.entity.RevisionRule; |
| | | import com.vci.ubcs.omd.vo.RevisionRuleVO; |
| | | 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; |
| | | |
| | | /** |
| | | * Description: çæ¬è§åçå
è£
ç±» |
| | | * |
| | | * @author LiHang |
| | | * @date 2023/5/17 |
| | | */ |
| | | public class RevisionRuleWrapper extends BaseEntityWrapper<RevisionRule, RevisionRuleVO> { |
| | | |
| | | public static RevisionRuleWrapper build() { |
| | | return new RevisionRuleWrapper(); |
| | | } |
| | | |
| | | @Override |
| | | public RevisionRuleVO entityVO(RevisionRule entity) { |
| | | Objects.requireNonNull(entity); |
| | | RevisionRuleVO vo = BeanUtil.copy(entity, RevisionRuleVO.class); |
| | | // å¨è¿éå¤çæä¸¾å¼ç¸å
³çæ å° |
| | | return vo; |
| | | } |
| | | |
| | | public List<RevisionRuleVO> listEntityVO(List<RevisionRule> entityList){ |
| | | return entityList.stream().map(this::entityVO).collect(Collectors.toList()); |
| | | } |
| | | |
| | | public List<RevisionRule> batchCopyDTO2DO(List<RevisionRuleDTO> revisionRuleVOList) { |
| | | return revisionRuleVOList.stream().map(this::copyDTO2DO).collect(Collectors.toList()); |
| | | } |
| | | |
| | | public RevisionRule copyDTO2DO(RevisionRuleDTO vo){ |
| | | Objects.requireNonNull(vo); |
| | | RevisionRule rule = BeanUtil.copy(vo, RevisionRule.class); |
| | | return rule; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.omd.wrapper; |
| | | |
| | | import com.vci.ubcs.omd.entity.Status; |
| | | import com.vci.ubcs.omd.vo.StatusVO; |
| | | import org.springblade.core.mp.support.BaseEntityWrapper; |
| | | import org.springblade.core.tool.utils.BeanUtil; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import java.util.Optional; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | | * Description:ç¶ææ± çå
è£
ç±» |
| | | * |
| | | * @author LiHang |
| | | * @date 2023/5/23 |
| | | */ |
| | | public class StatusWrapper extends BaseEntityWrapper<Status, StatusVO> { |
| | | |
| | | public static StatusWrapper build() { |
| | | return new StatusWrapper(); |
| | | } |
| | | |
| | | @Override |
| | | public StatusVO entityVO(Status entity) { |
| | | StatusVO vo = BeanUtil.copy(entity, StatusVO.class); |
| | | //è¿éå¤çæä¸¾ç¸å
³ç |
| | | return vo; |
| | | } |
| | | |
| | | public List<StatusVO> listEntityVO(List<Status> statusList){ |
| | | return Optional.ofNullable(statusList).orElseGet(ArrayList::new).stream().map(this::entityVO).collect(Collectors.toList()); |
| | | } |
| | | |
| | | public List<Status> batchCopyVO2DO(List<StatusVO> statusVOList) { |
| | | return Optional.ofNullable(statusVOList).orElseGet(ArrayList::new).stream().map(this::copyVO2DO).collect(Collectors.toList()); |
| | | } |
| | | |
| | | private Status copyVO2DO(StatusVO statusVO) { |
| | | Status status = BeanUtil.copy(statusVO, Status.class); |
| | | return status; |
| | | } |
| | | |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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.omd.mapper.RevisionRuleMapper"> |
| | | <resultMap id="BaseResultMap" type="com.vci.ubcs.omd.entity.RevisionRule"> |
| | | <id column="oid" jdbcType="VARCHAR" property="oid" /> |
| | | <result column="id" jdbcType="VARCHAR" property="id" /> |
| | | <result column="name" jdbcType="VARCHAR" property="name" /> |
| | | <result column="description" jdbcType="VARCHAR" property="description" /> |
| | | <result column="skip_code" jdbcType="VARCHAR" property="skipCode" /> |
| | | <result column="start_code" jdbcType="VARCHAR" property="startCode" /> |
| | | <result column="serial_step" jdbcType="DECIMAL" property="serialStep" /> |
| | | <result column="prefix_code" jdbcType="VARCHAR" property="prefixCode" /> |
| | | <result column="suffix_code" jdbcType="VARCHAR" property="suffixCode" /> |
| | | <result column="btm_name" property="btmName" jdbcType="VARCHAR" /> |
| | | <result column="owner" property="owner" jdbcType="VARCHAR" /> |
| | | <result column="creator" jdbcType="VARCHAR" property="creator" /> |
| | | <result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> |
| | | <result column="last_modifier" jdbcType="VARCHAR" property="lastModifier" /> |
| | | <result column="last_modify_time" jdbcType="TIMESTAMP" property="lastModifyTime" /> |
| | | <result column="ts" jdbcType="TIMESTAMP" property="ts" /> |
| | | </resultMap> |
| | | |
| | | <sql id="base_query_column"> |
| | | oid, id, name, description, skip_code, start_code, serial_step, prefix_code, suffix_code, |
| | | btm_name, owner, creator, create_time, last_modifier, last_modify_time, ts |
| | | </sql> |
| | | |
| | | <sql id="tableName"> |
| | | pl_omd_revision_rule |
| | | </sql> |
| | | |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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.omd.mapper.StatusMapper"> |
| | | <resultMap id="BaseResultMap" type="com.vci.ubcs.omd.entity.Status"> |
| | | <id column="oid" jdbcType="VARCHAR" property="oid" /> |
| | | <result column="id" jdbcType="VARCHAR" property="id" /> |
| | | <result column="name" jdbcType="VARCHAR" property="name" /> |
| | | <result column="description" jdbcType="VARCHAR" property="description" /> |
| | | <result column="btm_name" property="btmname" jdbcType="VARCHAR" /> |
| | | <result column="owner" property="owner" jdbcType="VARCHAR" /> |
| | | <result column="creator" jdbcType="VARCHAR" property="creator" /> |
| | | <result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> |
| | | <result column="last_modifier" jdbcType="VARCHAR" property="lastModifier" /> |
| | | <result column="last_modify_time" jdbcType="TIMESTAMP" property="lastModifyTime" /> |
| | | <result column="ts" jdbcType="TIMESTAMP" property="ts" /> |
| | | </resultMap> |
| | | |
| | | <sql id="base_query_column"> |
| | | oid, id, name, description, btm_name, owner, creator, create_time, last_modifier, last_modify_time,ts |
| | | </sql> |
| | | |
| | | <sql id="tableName"> |
| | | pl_omd_status |
| | | </sql> |
| | | |
| | | </mapper> |