Merge branch 'master' of http://dev.vci-tech.com:1065/r/ubcs
| | |
| | | |
| | | export const MasterTable =(params)=>{ |
| | | return request({ |
| | | url: 'api/ubcs-code/ubcs-code//mdmEngineController/getUIInfoByClassifyOid', |
| | | url: 'api/ubcs-code/ubcs-code/mdmEngineController/getUIInfoByClassifyOid', |
| | | method: 'get', |
| | | params:{ |
| | | ...params |
| | |
| | | data:data |
| | | }) |
| | | } |
| | | //ä»ä¸å¡ç±»åä¸éæ©æ°æ® |
| | | export const AttrByBtm = (params) =>{ |
| | | return request({ |
| | | url:'/api/ubcs-code/codeClassifyTempAttrController/codeClassifyTemplateAttrByBtm', |
| | | method: 'get', |
| | | params:{ |
| | | ...params |
| | | } |
| | | }) |
| | | } |
| | |
| | | <FormTemplateDialog |
| | | :visible.sync="addvisible" |
| | | :type="add" |
| | | :templateOid="this.templateOids" |
| | | :codeClassifyOid="this.codeClassifyOids" |
| | | :templateOid="this.templateOid" |
| | | :codeClassifyOid="this.codeClassifyOid" |
| | | :codeRuleOid="this.codeRuleOid" |
| | | :disabledProp="disabledProp" |
| | | :rowOid="rowOid" |
| | | > |
| | | </FormTemplateDialog></el-button> |
| | | <el-button size="small" type="primary" plain @click="editvisible=true">ç¼è¾ |
| | |
| | | :visible.sync="editvisible" |
| | | :type="edit" |
| | | :templateOid="this.templateOids" |
| | | :codeClassifyOid="this.codeClassifyOids" |
| | | :codeClassifyOid="this.codeClassifyOid" |
| | | :codeRuleOid="this.codeRuleOid" |
| | | :disabledProp="disabledProp" |
| | | :rowOid="rowOid" |
| | |
| | | <el-button size="small" type="primary" plain>åå¸</el-button> |
| | | <el-button size="small" type="primary" plain>æ°æ®æ´æ¹</el-button> |
| | | <el-button size="small" type="primary" plain>åæ¶</el-button> |
| | | <el-button size="small" type="primary" plain>å¯¼åº |
| | | <transfer filter-placeholder="请è¾å
¥æ¼é³å
¨æ¼æè
æ¼é³ç¼©å" ></transfer> |
| | | <el-button size="small" type="primary" plain @click="openD">å¯¼åº |
| | | <integration-transfer :visible.sync="dialogPush" :data="transferData" |
| | | :props="transferProps" @save="handelTransferSave"></integration-transfer> |
| | | </el-button> |
| | | <el-button size="small" type="primary" plain @click="findvisible=true">æ¥è¯¢ |
| | | <advancedQuery :visible.sync="findvisible" :options="this.options"></advancedQuery> |
| | |
| | | </template> |
| | | <script> |
| | | import {MasterTable, TableData} from "@/api/GetItem"; |
| | | import {listCodeAttributeByClassId} from '@/api/integration/integration.js' |
| | | import integrationTransfer from '@/views/integration/integrationTransfer' |
| | | import pinyin from "js-pinyin"; |
| | | export default { |
| | | components: { |
| | | integrationTransfer |
| | | }, |
| | | name: "Crud.vue", |
| | | props:{ |
| | | page:{ |
| | |
| | | tableDataArray:{ |
| | | type:Array, |
| | | default:[] |
| | | }, |
| | | total:{ |
| | | type:String, |
| | | default:"" |
| | | }, |
| | | tableHeadDataFateher:{ |
| | | type:Array, |
| | | default:[] |
| | | } |
| | | }, |
| | | data() { |
| | | return { |
| | | transferData:[], |
| | | transferProps: { |
| | | key: 'oid', |
| | | label: 'name' |
| | | }, |
| | | templateOid:"", |
| | | addvisible:false, |
| | | editvisible:false, |
| | | findvisible:false, |
| | | templateOids: "78B8C7C5-A042-0B96-FE6D-65421451782A", |
| | | codeClassifyOids: "4524E801-6CC6-92E8-1AC3-2AB9604E8F96", |
| | | codeRuleOid: "B95872A6-9CEA-D490-8F1B-9D26548CAF96", |
| | | dialogPush:false, |
| | | rowOid: '6EF696C3-CD87-0E7C-1EA1-8DE3913A95C9', |
| | | disabledProp: ["id"], |
| | | editingRow:null, |
| | |
| | | }, |
| | | tableData:[], |
| | | tableHeadData:[], |
| | | tableHeadDataFateher:[], |
| | | items:{}, |
| | | aaa:"" |
| | | seniorQueryColumns:[] |
| | | } |
| | | }, |
| | | computed:{ |
| | | }, |
| | | created() { |
| | | this.CrudHeaderRend(); |
| | | this.$emit('tableData',this.tableData) |
| | | // this.CrudHeaderRend(); |
| | | // this.tableHeadHandle() |
| | | }, |
| | | mounted() { |
| | | |
| | |
| | | tableDataArray:{ |
| | | handler(newval,oldval){ |
| | | this.tableData=newval; |
| | | this.CrudRend() |
| | | // |
| | | } |
| | | }, |
| | | total:{ |
| | | handler(newval,oldval){ |
| | | this.page.total=newval; |
| | | } |
| | | }, |
| | | tableHeadData:{ |
| | | handler(newval,oldval){ |
| | | this.tableHeadDataFateher=newval |
| | | } |
| | | } |
| | | }, |
| | | methods: { |
| | | openD(){ |
| | | this.dialogPush=true; |
| | | this.getListCodeByClassId() |
| | | }, |
| | | async getListCodeByClassId() { |
| | | this.transferData = [] |
| | | const response = await listCodeAttributeByClassId({ codeClassifyId: this.codeClassifyOid }) |
| | | if (response.status === 200) { |
| | | const data = response.data.data |
| | | this.transferData = data |
| | | } |
| | | }, |
| | | rend(){ |
| | | this.tableData=this.tableHeadData |
| | | }, |
| | |
| | | this.page.pageSize=val |
| | | this.$emit('pageSize',val) |
| | | this.CrudRend() |
| | | console.log(this.tableData) |
| | | }, |
| | | handleCurrentChange(val){ |
| | | this.page.currentPage=val |
| | | this.$emit('currentPage',val) |
| | | this.CrudRend() |
| | | console.log(val) |
| | | console.log(this.tableData) |
| | | }, |
| | | // çå¬åå
æ ¼ç¹å»äºä»¶å¹¶å卿£å¨ç¼è¾çè¡ |
| | | handleCellClick(row, column) { |
| | | this.editingRow = row; |
| | | this.editShow = column.property; |
| | | console.log(row) |
| | | this.rowOid=row.oid |
| | | }, |
| | | //å é¤ |
| | | enumDeleteRow(row) { |
| | |
| | | this.$nextTick(() => { |
| | | this.$refs.crud.doLayout(); |
| | | }); |
| | | }, |
| | | tableHeadHandle(){ |
| | | this.options=this.tableHeadDataFateher.tableDefineVO.seniorQueryColumns |
| | | this.List = this.tableHeadDataFateher.tableDefineVO.cols[0]; |
| | | this.List.forEach(item => { |
| | | let columnItem = { |
| | | label: item.title, |
| | | prop: item.field, |
| | | type: this.columnType[item.type], |
| | | sortable: item.sort, |
| | | width: item.minWidth |
| | | }; |
| | | this.option.column.push(columnItem); |
| | | this.option.column=this.tableHeadData; |
| | | }) |
| | | }, |
| | | //è¡¨æ ¼å¤´æ¸²æ |
| | | CrudHeaderRend() { |
| | |
| | | this.option.column=this.tableHeadData; |
| | | this.templateOid=res.data.tableDefineVO.oid |
| | | this.$emit('templateOid',this.templateOid) |
| | | console.log(this.templateOid) |
| | | }) |
| | | }) |
| | | } |
| | |
| | | templateOid: this.templateOid, |
| | | codeClassifyOid: this.codeClassifyOid, |
| | | page: this.page.currentPage, |
| | | limit:this.page.pageSize, |
| | | limit: this.page.pageSize, |
| | | }).then(res => { |
| | | this.page.total = res.data.total; |
| | | this.data = res.data.data; |
| | |
| | | <script> |
| | | import {getTreeList} from "@/api/MasterData/master"; |
| | | import {mapMutations, mapState} from "vuex"; |
| | | import {TableData} from "@/api/GetItem"; |
| | | import {TableData,MasterTable} from "@/api/GetItem"; |
| | | |
| | | export default { |
| | | name: "MasterTree", |
| | |
| | | }, |
| | | data(){ |
| | | return{ |
| | | tableHeadDataFateher:[], |
| | | templateOids:"", |
| | | tableDataArray:[], |
| | | codeClassifyOid:"", |
| | | coderuleoid:"", |
| | |
| | | this.coderuleoid=res.data[0].attributes.coderuleoid; |
| | | this.$emit("codeClassifyOid", this.codeClassifyOid ) |
| | | this.$emit("coderuleoid", this.coderuleoid ) |
| | | this.TableHeadRends() |
| | | }).catch(res=>{ |
| | | console.log(res) |
| | | }) |
| | |
| | | } |
| | | } |
| | | }, |
| | | //æ ç¹å»äºä»¶ |
| | | nodeClick(data){ |
| | | this.nodeClickList = data; |
| | | console.log(this.currentPage,this.pageSize) |
| | | //è¡¨æ ¼å·æ° |
| | | TableRend(){ |
| | | TableData({ |
| | | templateOid: this.templateOid, |
| | | codeClassifyOid: this.codeClassifyOid, |
| | | page: this.pageSize, |
| | | limit:this.currentPage, |
| | | templateOid: this.templateOids, |
| | | codeClassifyOid: this.nodeClickList.oid, |
| | | page: this.currentPage, |
| | | limit: this.pageSize, |
| | | }).then(res => { |
| | | console.log(res) |
| | | // this.page.total = res.data.total; |
| | | // this.data = res.data.data; |
| | | this.tableDataArray=res.data.data; |
| | | this.$emit('tableDataArray',this.tableDataArray) |
| | | console.log(this.tableDataArray) |
| | | this.$emit('total',res.data.total) |
| | | }) |
| | | }, |
| | | //è¡¨æ ¼å¤´é¨ |
| | | TableHeadRend(){ |
| | | MasterTable({ |
| | | codeClassifyOid:this.nodeClickList.oid, |
| | | functionId: 5, |
| | | }).then(res=>{ |
| | | this.tableHeadDataFateher=res.data; |
| | | this.templateOids=res.data.tableDefineVO.oid |
| | | this.$emit("tableHeadDataFateher",this.tableHeadDataFateher) |
| | | console.log("123",res) |
| | | }) |
| | | }, |
| | | TableHeadRends(){ |
| | | MasterTable({ |
| | | codeClassifyOid:this.codeClassifyOid, |
| | | functionId: 5, |
| | | }).then(res=>{ |
| | | this.tableHeadDataFateher=res.data; |
| | | this.templateOids=res.data.tableDefineVO.oid |
| | | this.$emit("tableHeadDataFateher",this.tableHeadDataFateher) |
| | | console.log("123",res) |
| | | }) |
| | | }, |
| | | //æ ç¹å»äºä»¶ |
| | | nodeClick(data){ |
| | | this.nodeClickList = data; |
| | | this.TableHeadRend() |
| | | this.TableRend() |
| | | console.log('code',this.nodeClickList.oid) |
| | | console.log('teoid',this.templateOids) |
| | | console.log() |
| | | } |
| | | } |
| | | } |
| | |
| | | <basic-container> |
| | | <avue-tabs :option="Taboption" @change="handleChange"></avue-tabs> |
| | | <span v-if="type.prop==='tab1'"> |
| | | <attrCrud :ProData="ProData"></attrCrud> |
| | | <attrCrud :ProData="ProData" :crudOid="crudOid" :crudArray="crudArray" :Formlist="Formlist"></attrCrud> |
| | | </span> |
| | | <span v-else-if="type.prop==='tab2'">æ¨¡æ¿æµç¨</span> |
| | | <span v-else-if="type.prop==='tab3'">模æ¿é¶æ®µ</span> |
| | |
| | | <script> |
| | | export default { |
| | | name: "TemplatePro.vue", |
| | | props: ['ProData'], |
| | | props: ['ProData','crudOid','crudArray','Formlist'], |
| | | data: function () { |
| | | return { |
| | | type: {}, |
| | |
| | | <template> |
| | | <avue-crud :data="ProData" :option="option" @sort-change="sortChange" @row-update="addUpdate" |
| | | @cell-click="handleRowClick"> |
| | | @cell-click="handleRowClick" @select="selectHandle"> |
| | | <template slot="menuLeft"> |
| | | <el-button v-if="attrEditVisible == false" size="small" type="primary" @click="addVisible=true">ï¼ æ·»å {{msg}}</el-button> |
| | | <el-button v-if="attrEditVisible == false" size="small" type="primary" @click="busineHandle">ï¼ æ·»å {{msg}}</el-button> |
| | | <el-dialog :visible.sync="addVisible" append-to-body title="ä»ä¸å¡ç±»åä¸éæ©å±æ§"> |
| | | <avue-crud :data="businessData" :option="businessOption"></avue-crud> |
| | | <avue-crud :data="businessData" :option="businessOption"> |
| | | <template slot="menuLeft"> |
| | | <div style="display: flex;"> |
| | | <el-select> |
| | | <el-option>屿§è±æåç§°</el-option> |
| | | <el-option>屿§ä¸æåç§°</el-option> |
| | | </el-select> |
| | | <el-input style="width: 300px;margin-left: 20px"></el-input> |
| | | <el-button size="small" style="margin-left: 10px">æ¥è¯¢</el-button> |
| | | </div> |
| | | |
| | | </template> |
| | | </avue-crud> |
| | | <div style="display: flex;justify-content: flex-end;margin-top: 15px"> |
| | | <el-button size="small" type="primary">ä¿å</el-button> |
| | | <el-button size="small" type="primary">åæ¶</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | </template> |
| | | <!-- å
¨å±ç¼è¾--> |
| | |
| | | <el-dialog :visible.sync="attrEditVisible" append-to-body fullscreen="true"> |
| | | <attrCrud></attrCrud> |
| | | </el-dialog> |
| | | </template> |
| | | <!-- ç»åè§å--> |
| | | <template slot="menuLeft"> |
| | | <el-button size="small" @click="isShowformulaEdit=true">ç»åè§å</el-button> |
| | | <formula-editor :visible="isShowformulaEdit" :systemVariableTableData="systemVariableTableData" :thisSceneTableData="thisSceneTableData"></formula-editor> |
| | | |
| | | </template> |
| | | <!-- éªè¯è§å--> |
| | | <template slot="menuLeft"> |
| | |
| | | </template> |
| | | <!-- 级è屿§--> |
| | | <template slot="menuLeft"> |
| | | <el-button size="small" @click="CascadeVisible=true">级è屿§</el-button> |
| | | <el-button size="small" @click="CascadeHandle">级è屿§</el-button> |
| | | <el-dialog :visible.sync="CascadeVisible" append-to-body title="è¯·éæ©çº§è屿§"> |
| | | <avue-crud ref="crud" :data="CascadeData" :option="CascadeOption" @row-click="CascaderowClick"> |
| | | <template slot="radio" |
| | |
| | | </template> |
| | | <!-- 忥å°å
¶ä»æ¨¡æ¿--> |
| | | <template slot="menuLeft"> |
| | | <el-button size="small">忥å°å
¶ä»æ¨¡æ¿</el-button> |
| | | <el-button size="small" style="margin-top: 10px">忥å°å
¶ä»æ¨¡æ¿</el-button> |
| | | </template> |
| | | </avue-crud> |
| | | </template> |
| | | |
| | | <script> |
| | | import {AttrByBtm,gridCodeClassifyTemplateAttr} from '@/api/template/templateAttr' |
| | | export default { |
| | | name: "attrCrud .vue", |
| | | props: ['ProData'], |
| | | props: ['ProData','crudOid','crudArray','Formlist'], |
| | | data() { |
| | | return { |
| | | //è¡¨æ ¼åéæ°ç» |
| | | CrudSelect:[], |
| | | //è¡¨æ ¼oid |
| | | CrudOid:"", |
| | | //åºæ¯åé |
| | | thisSceneTableData:[ |
| | | { |
| | | formula: "lcstatus", |
| | | desc: "ç¶æ", |
| | | }, |
| | | { |
| | | formula: "name", |
| | | desc: "éå¢ç ", |
| | | }, |
| | | { |
| | | formula: "materialname", |
| | | desc: "é¨é¨åç§°", |
| | | }, |
| | | { |
| | | formula: "parentcode", |
| | | desc: "ä¸çº§é¨é¨ç¼å·", |
| | | }, |
| | | { |
| | | formula: "parentname", |
| | | desc: "ä¸çº§é¨é¨åç§°", |
| | | }, |
| | | { |
| | | formula: "description", |
| | | desc: "æè¿°", |
| | | }, |
| | | ], |
| | | // ç³»ç»åé |
| | | systemVariableTableData:[ |
| | | { |
| | | formula: "#CURRENTUSER.OID#", |
| | | desc: "å½åç¨æ·ç主é®", |
| | | }, |
| | | { |
| | | formula:"#CURRENTUSER.ID", |
| | | desc:"å½åç¨æ·çè´¦æ·" |
| | | }, |
| | | { |
| | | formula:"#CURRENTTIME#", |
| | | desc:"å½åæ¶é´" |
| | | }, |
| | | { |
| | | formula:"#CURRENTDATE#", |
| | | desc:"å½åæ¥æ" |
| | | }, |
| | | { |
| | | formula:"#CURRENTDATETIME#", |
| | | desc:"å½åæ¥ææ¶é´" |
| | | }, |
| | | { |
| | | formula:"#CURRENTUSER_NAME#", |
| | | desc:"å½åç¨æ·çå§å" |
| | | }, |
| | | { |
| | | formula:"#CURRENTUSER.SECRETGRADE#", |
| | | desc:"å½åç¨æ·å¯çº§" |
| | | }, |
| | | { |
| | | formula:"#CURRENTUSER.IPSECRET#", |
| | | desc:"å½åç¨æ·çIPå¯çº§" |
| | | }, |
| | | { |
| | | formula:"#CURRENTUSER.BUSINESSUNIT#", |
| | | desc:"å½åç¨æ·æå±ä¸å¡åå
" |
| | | }, |
| | | { |
| | | formula:"#CURRENTUSER.BUSINESSUNITNAME#", |
| | | desc:"å½åç¨æ·æå±ä¸å¡åå
åç§°" |
| | | }, |
| | | { |
| | | formula:"#CURRENTUSER.GROUPOID#", |
| | | desc:"å½åç¨æ·çé¨é¨ä¸»é®" |
| | | }, |
| | | { |
| | | formula:"#CURRENTUSER.GROUPNAME#", |
| | | desc:"å½åç¨æ·æå±é¨é¨åç§°" |
| | | }, |
| | | { |
| | | formula:"#CURRENTUSER.EMAIL#", |
| | | desc:"å½åç¨æ·é®ä»¶å°å" |
| | | }, |
| | | { |
| | | formula:"#CURRENTUSER.ROLENAME#", |
| | | desc:"å½åç¨æ·æå±è§è²åç§° " |
| | | }, |
| | | ], |
| | | CascadeVisible: false, |
| | | attrEditVisible: false, |
| | | isShowformulaEdit:false, |
| | | // 级èåé |
| | | selectRow: '', |
| | | // 级èdata |
| | | CascadeData: [{ |
| | | id: 1, |
| | | name: 'å¼ ä¸', |
| | | attrIn: 'æµè¯ä¸' |
| | | }, { |
| | | id: 2, |
| | | name: 'æå', |
| | | attrIn: 'æµè¯äº' |
| | | }], |
| | | CascadeData: [], |
| | | // 级èoption |
| | | CascadeOption: { |
| | | menu: false, |
| | |
| | | }, |
| | | { |
| | | label: '屿§è±æç¼å·', |
| | | prop: 'nid' |
| | | }, { |
| | | label: 'æ§å«', |
| | | prop: 'id' |
| | | }, |
| | | { |
| | | label: '屿§ä¸æåç§°', |
| | | prop: 'name' |
| | | }, |
| | | { |
| | | label: '屿§åç»', |
| | | prop: 'attrIn' |
| | | prop: 'attributeGroup' |
| | | }, |
| | | { |
| | | label: 'ç±»å', |
| | | prop: 'type' |
| | | prop: 'attributeDataTypeText' |
| | | }, |
| | | { |
| | | label: 'å表宽度', |
| | |
| | | }, |
| | | { |
| | | label: 'å
³é®å±æ§', |
| | | prop: 'keyattrflag' |
| | | prop: 'keyAttrFlag', |
| | | type:'text', |
| | | dicData:[ |
| | | { |
| | | label:"æ¯", |
| | | value:'true' |
| | | }, |
| | | { |
| | | label:"å¦", |
| | | value:'false' |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | label: 'æ¥è¯¢å±æ§', |
| | | prop: 'queryattrflag' |
| | | prop: 'queryAttrFlag', |
| | | type:'text', |
| | | dicData:[ |
| | | { |
| | | label:"æ¯", |
| | | value:'true' |
| | | }, |
| | | { |
| | | label:"å¦", |
| | | value:'false' |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | label: 'é«çº§æ¥è¯¢å±æ§', |
| | | prop: 'seniorqueryattrflag' |
| | | prop: 'seniorQueryAttrFlag', |
| | | type:'text', |
| | | dicData:[ |
| | | { |
| | | label:"æ¯", |
| | | value:'true' |
| | | }, |
| | | { |
| | | label:"å¦", |
| | | value:'false' |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | label: 'ç¸ä¼¼æ¥é屿§', |
| | | prop: 'samerepeatattrflag' |
| | | prop: 'sameRepeatAttrFlag', |
| | | type:'text', |
| | | dicData:[ |
| | | { |
| | | label:"æ¯", |
| | | value:'true' |
| | | }, |
| | | { |
| | | label:"å¦", |
| | | value:'false' |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | label: 'ä¸ç»´ç ', |
| | |
| | | { |
| | | label: 'äºç»´ç ', |
| | | prop: 'TwoDimensional' |
| | | }, |
| | | { |
| | | label: 'å¿
è¾', |
| | | prop: 'requireFlag', |
| | | type:'text', |
| | | dicData:[ |
| | | { |
| | | label:"æ¯", |
| | | value:'true' |
| | | }, |
| | | { |
| | | label:"å¦", |
| | | value:'false' |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | label: "è¡¨åæ¾ç¤º", |
| | | prop: "formDisplayFlag", |
| | | type:'text', |
| | | dicData:[ |
| | | { |
| | | label:"æ¯", |
| | | value:'true' |
| | | }, |
| | | { |
| | | label:"å¦", |
| | | value:'false' |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | label: "å表æ¾ç¤º", |
| | | prop: "tableDisplayFlag", |
| | | type:'text', |
| | | dicData:[ |
| | | { |
| | | label:"æ¯", |
| | | value:'true' |
| | | }, |
| | | { |
| | | label:"å¦", |
| | | value:'false' |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | label: "åªè¯»", |
| | | prop: "readonlyFlag", |
| | | }, |
| | | { |
| | | label: "å表æåº", |
| | | prop: "sortAttrFlag", |
| | | type:'text', |
| | | dicData:[ |
| | | { |
| | | label:"æ¯", |
| | | value:'true' |
| | | }, |
| | | { |
| | | label:"å¦", |
| | | value:'false' |
| | | } |
| | | ] |
| | | }, |
| | | |
| | | { |
| | | label: "å¤è¡ææ¬", |
| | | prop: "textAreaFlag", |
| | | type:'text', |
| | | dicData:[ |
| | | { |
| | | label:"æ¯", |
| | | value:'true' |
| | | }, |
| | | { |
| | | label:"å¦", |
| | | value:'false' |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | label: "é»è®¤å¼", |
| | | prop: "defaultValue", |
| | | }, |
| | | { |
| | | label: "åç¼", |
| | | prop: "prefixValue", |
| | | }, |
| | | { |
| | | label: "åç¼", |
| | | prop: "suffixValue", |
| | | }, |
| | | { |
| | | label: "ç»åè§å", |
| | | prop: "componentRule", |
| | | }, |
| | | { |
| | | label: "éªè¯è§å", |
| | | prop: "verifyRule", |
| | | }, |
| | | { |
| | | label: "æ¶é´æ ¼å¼", |
| | | prop: "codeDateFormat", |
| | | }, |
| | | { |
| | | label: "å类注å
¥", |
| | | prop: "classifyInvokeLevel", |
| | | }, |
| | | { |
| | | label: "æä¸¾æ³¨å
¥", |
| | | prop: "enumString", |
| | | }, |
| | | { |
| | | label: "级è屿§", |
| | | prop: "parentCode", |
| | | }, |
| | | { |
| | | label: "åç
§é
ç½®", |
| | | prop: "referConfig", |
| | | }, |
| | | { |
| | | label: "çº§èæ¥è¯¢å±æ§", |
| | | prop: "parentQueryAttr", |
| | | }, |
| | | { |
| | | label: "éæ©åºæ è¯", |
| | | prop: "libraryIdentification", |
| | | }, |
| | | { |
| | | label: "å¡«åæç¤º", |
| | | prop: "explain", |
| | | }, |
| | | { |
| | | label: "è¡¨åæ¾ç¤ºæ ·å¼", |
| | | prop: "formDisplayStyle", |
| | | }, |
| | | { |
| | | label: "è¡¨æ ¼æ¾ç¤ºæ ·å¼", |
| | | prop: "tableDisplayStyle", |
| | | }, |
| | | { |
| | | label: "表åè¶
龿¥", |
| | | prop: "formHref", |
| | | }, |
| | | { |
| | | label: "è¡¨æ ¼è¶
龿¥", |
| | | prop: "tableHref", |
| | | }, |
| | | { |
| | | label: "è¡¨æ ¼æ¾ç¤ºjs", |
| | | prop: "tableDisplayJs", |
| | | }, |
| | | { |
| | | label: "é¿åº¦", |
| | | prop: "controlLength", |
| | | }, |
| | | { |
| | | label: "å°æ°ç²¾åº¦", |
| | | prop: "precisionLength", |
| | | }, |
| | | { |
| | | label: "åå¼èå´", |
| | | prop: "valueArea", |
| | | }, |
| | | ] |
| | | }, |
| | |
| | | bds: "æµè¯ä¸", |
| | | shiyong: "æµè¯ä¸" |
| | | }, |
| | | { |
| | | bds: "æµè¯äº", |
| | | shiyong: "æµè¯äº" |
| | | }, |
| | | { |
| | | bds: "æµè¯äº", |
| | | shiyong: "æµè¯äº" |
| | | }, |
| | | { |
| | | bds: "æµè¯äº", |
| | | shiyong: "æµè¯äº" |
| | | }, |
| | | { |
| | | bds: "æµè¯äº", |
| | | shiyong: "æµè¯äº" |
| | | }, |
| | | { |
| | | bds: "æµè¯äº", |
| | | shiyong: "æµè¯äº" |
| | | }, |
| | | { |
| | | bds: "æµè¯äº", |
| | | shiyong: "æµè¯äº" |
| | | }, |
| | | { |
| | | bds: "æµè¯äº", |
| | | shiyong: "æµè¯äº" |
| | | }, |
| | | { |
| | | bds: "æµè¯äº", |
| | | shiyong: "æµè¯äº" |
| | | }, |
| | | { |
| | | bds: "æµè¯äº", |
| | | shiyong: "æµè¯äº" |
| | | }, |
| | | { |
| | | bds: "æµè¯äº", |
| | | shiyong: "æµè¯äº" |
| | | }, |
| | | { |
| | | bds: "æµè¯äº", |
| | | shiyong: "æµè¯äº" |
| | | }, |
| | | { |
| | | bds: "æµè¯äº", |
| | | shiyong: "æµè¯äº" |
| | | }, |
| | | { |
| | | bds: "æµè¯äº", |
| | | shiyong: "æµè¯äº" |
| | | } |
| | | ], |
| | | // æ°å¢ä¸å¡ç±»å |
| | | businessData: [ |
| | | { |
| | | id: "æµè¯ä¸", |
| | | name: "æµè¯ä¸", |
| | | attributeLength: "æµè¯ä¸", |
| | | attrDataType: "æµè¯ä¸" |
| | | }, |
| | | { |
| | | id: "æµè¯äº", |
| | | name: "æµè¯äº", |
| | | attributeLength: "æµè¯äº", |
| | | attrDataType: "æµè¯äº" |
| | | }, |
| | | { |
| | | id: "æµè¯ä¸", |
| | | name: "æµè¯ä¸", |
| | | attributeLength: "æµè¯ä¸", |
| | | attrDataType: "æµè¯ä¸", |
| | | }, |
| | | { |
| | | id: "æµè¯ä¸", |
| | | name: "æµè¯ä¸", |
| | | attributeLength: "æµè¯ä¸", |
| | | attrDataType: "æµè¯ä¸", |
| | | } |
| | | ], |
| | | businessData: [], |
| | | businessOption: { |
| | | index: true, |
| | | border: true, |
| | | addBtn: true, |
| | | addBtn: false, |
| | | menu:false, |
| | | column: [ |
| | | { |
| | | label: "屿§è±æåç§°", |
| | |
| | | index: true, |
| | | border: true, |
| | | editBtn: false, |
| | | selection:true, |
| | | labelWidth: 110, |
| | | cellBtn: true, |
| | | cancelBtn: false, |
| | |
| | | console.log(this.ProData) |
| | | }, |
| | | methods: { |
| | | // ä»ä¸å¡ç±»åä¸éæ©æ°æ® |
| | | busineHandle(){ |
| | | if(this.crudArray.length<1){ |
| | | this.$message.error('è¯·éæ©ä¸æ¡æ¨¡æ¿') |
| | | }else { |
| | | this.addVisible=true; |
| | | AttrByBtm({'conditionMap[oid]': this.crudOid}).then(res=>{ |
| | | this.businessData=res.data.data; |
| | | console.log(res.data) |
| | | }) |
| | | } |
| | | }, |
| | | // 级è屿§ |
| | | CascadeHandle(){ |
| | | if(this.CrudSelect.length >0){ |
| | | this.CascadeVisible=true; |
| | | gridCodeClassifyTemplateAttr({'conditionMap[classifyTemplateOid]': this.Formlist[0].oid, |
| | | 'conditionMap[oid_notequal]':this.CrudOid |
| | | }).then(res=>{ |
| | | this.CascadeData=res.data.data |
| | | }) |
| | | }else { |
| | | this.$message.warning('è¯·éæ©ä¸æ¡æ¨¡æ¿å±æ§') |
| | | } |
| | | }, |
| | | //è¡¨æ ¼åé |
| | | selectHandle(selection,row){ |
| | | this.CrudOid=row.oid; |
| | | this.CrudSelect=selection |
| | | }, |
| | | addsHandler(){ |
| | | |
| | | }, |
| | |
| | | option: { |
| | | submitBtn:false, |
| | | emptyBtn:false, |
| | | |
| | | column: [ |
| | | { |
| | | label: '主é¢åº/åç±»ç¼å·', |
| | |
| | | @row-del="CrudRowDel" |
| | | @row-update="CrudRowUpdata" |
| | | :before-close="beforeClose" |
| | | @select="selectHandle" |
| | | > |
| | | <template slot="menuLeft"> |
| | | <el-button plain size="small" type="primary" @click="FindFormVisible = true;">æ¥è¯¢</el-button> |
| | |
| | | </avue-crud> |
| | | |
| | | </basic-container> |
| | | <templatePro :ProData="this.ProData"></templatePro> |
| | | <templatePro :ProData="this.ProData" :crudOid="this.crudOid" :crudArray="this.crudArray" :Formlist="this.Formlist"></templatePro> |
| | | </span> |
| | | </basic-container> |
| | | </el-main> |
| | |
| | | //使ç¨injectæ¥æ¶åæ° |
| | | //Treeoptionå·¦ä¾§æ æ°å¢è¡¨å项 Treedata左侧æ èç¹ é
置项 crudTreeOptionå³ä¾§è¡¨æ ¼é
置项 crudTreeDataå³ä¾§è¡¨æ ¼æ¾ç¤ºå
容 |
| | | //Treeformå³ä¾§è¡¨åé
置项 |
| | | inject: ['crudTreeOption', "crudTreeData"], |
| | | inject: [, "crudTreeData"], |
| | | data() { |
| | | return { |
| | | //è¡¨æ ¼optioné
置项 |
| | | crudTreeOption: { |
| | | index: true, |
| | | border: true, |
| | | height:180, |
| | | selection:true, |
| | | addBtn:this.addFlag, |
| | | column: [ |
| | | { |
| | | label: "模æ¿ç¼å·", |
| | | prop: "id" |
| | | }, |
| | | { |
| | | label:"模æ¿åç§°", |
| | | prop:"name" |
| | | }, |
| | | { |
| | | label: "æ¨¡æ¿æè¿°", |
| | | prop:"description" |
| | | }, |
| | | { |
| | | label:"çæ¬å·", |
| | | prop:"revisionSeq" |
| | | }, |
| | | { |
| | | label:"ç¶æ", |
| | | prop:"lcStatusText" |
| | | } |
| | | ] |
| | | }, |
| | | addFlag:false, |
| | | // è¡¨æ ¼å½åè¡id |
| | | crudOid:"", |
| | | //è¡¨æ ¼å½åéæ©æ°ç» |
| | | crudArray:[], |
| | | //模æ¿å±æ§å±ç¤ºå
容 |
| | | ProData: [], |
| | | //åè½¦é®æç´¢ç»å®å¼ |
| | |
| | | this.getAttr(); |
| | | }, |
| | | methods: { |
| | | //è¡åéäºä»¶ |
| | | selectHandle(selection,row){ |
| | | this.crudOid=row.oid |
| | | this.crudArray=selection |
| | | }, |
| | | //åç±»æ æ°æ®å¤ç |
| | | getAttr() { |
| | | getAtrrList().then(res => { |
| | |
| | | return item.codeclassifyoid == this.nodeClickList.oid |
| | | } |
| | | }) |
| | | gridCodeClassifyTemplateAttr({'conditionMap[classifyTemplateOid]': this.Formlist[0].oid}).then(res => { |
| | | this.ProData = res.data.data |
| | | console.log(this.ProData) |
| | | }).catch(res => { |
| | | this.$message.error(res) |
| | | }) |
| | | if(this.Formlist.length >0){ |
| | | gridCodeClassifyTemplateAttr({'conditionMap[classifyTemplateOid]': this.Formlist[0].oid}).then(res => { |
| | | this.ProData = res.data.data; |
| | | console.log(this.ProData) |
| | | }).catch(res => { |
| | | this.$message.error(res) |
| | | }) |
| | | } |
| | | }).catch(res => { |
| | | console.log(res) |
| | | }) |
| | | // åºæ¬ä¿¡æ¯è¡¨åæ°æ® |
| | | await getObjectByOid(this.nodeClickList.oid).then(res => { |
| | | this.TreeList = res.data.data |
| | | // eslint-disable-next-line no-const-assig |
| | | this.TreeList = res.data.data; |
| | | }).catch(res => { |
| | | this.$message.error(res) |
| | | }) |
| | |
| | | :show-header="false" |
| | | style="width: 100%" |
| | | > |
| | | <el-table-column prop="formula" width="40"> |
| | | <el-table-column prop="formula" width="120"> |
| | | </el-table-column> |
| | | <el-table-column prop="desc" width="100"> </el-table-column> |
| | | <el-table-column prop="desc" width="200"> </el-table-column> |
| | | </el-table> |
| | | </el-tab-pane> |
| | | <el-tab-pane label="ç³»ç»åé" name="second"> |
| | |
| | | :show-header="false" |
| | | style="width: 100%" |
| | | > |
| | | <el-table-column prop="formula" width="150"> |
| | | <el-table-column prop="formula" width="200"> |
| | | </el-table-column> |
| | | <el-table-column prop="desc" width="150"> </el-table-column> |
| | | <el-table-column prop="desc" width="200"> </el-table-column> |
| | | </el-table> |
| | | </el-tab-pane> |
| | | </el-tabs> |
| | |
| | | |
| | | </el-dialog> |
| | | </template> |
| | | |
| | | |
| | | <script> |
| | | export default { |
| | | name: "formulaEditor", |
| | |
| | | } |
| | | //å
¬å¼å
容忾 |
| | | // 触åupdate:dataå°åç»ä»¶å¼ä¼ éç»ç¶ç»ä»¶ |
| | | this.$emit('updateFormulaContent', this.formulaContent) |
| | | this.isShowformulaEdit = false; |
| | | this.$emit('updateFormulaContent', this.formulaContent) |
| | | this.isShowformulaEdit = false; |
| | | }, |
| | | |
| | | }, |
| | | }; |
| | | </script> |
| | | |
| | | |
| | | <style scoped> |
| | | |
| | | .formula-box-card >>> .el-card__body { |
| | |
| | | height: 85%; |
| | | width: 100%; |
| | | } |
| | | |
| | | |
| | | .formula-editor-total { |
| | | /* margin-top: 3px; */ |
| | | height: 100%; |
| | |
| | | height: auto; |
| | | justify-content: space-between; |
| | | align-items: center; |
| | | } |
| | | } |
| | | |
| | | .formula-editor-btn-sm { |
| | | width: 4.5vw; |
| | |
| | | } |
| | | |
| | | </style> |
| | | |
| | |
| | | :currentPage="this.currentPage" |
| | | :templateOid="this.templateOid" |
| | | @tableDataArray="tableDataArrays" |
| | | |
| | | @tableHeadDataFateher="tableHeadDatas" |
| | | @total="totals" |
| | | ></master-tree> |
| | | </basic-container> |
| | | </el-aside> |
| | |
| | | @currentPage="currentPages" |
| | | @templateOid="templateOids" |
| | | :tableDataArray="tableDataArray" |
| | | :total="this.total" |
| | | :tableHeadDataFateher="this.tableHeadDataFateher" |
| | | ></TableCrud> |
| | | </el-main> |
| | | </el-container> |
| | |
| | | codeClassifyOid:"", |
| | | coderuleoid:"", |
| | | templateOid:"", |
| | | tableDataArray:[] |
| | | tableDataArray:[], |
| | | tableHeadDataFateher:[], |
| | | total:"" |
| | | } |
| | | }, |
| | | created() { |
| | |
| | | }, |
| | | tableDataArrays(val){ |
| | | this.tableDataArray=val |
| | | }, |
| | | totals(val){ |
| | | this.total=val |
| | | }, |
| | | tableHeadDatas(val){ |
| | | this.tableHeadDataFateher=val |
| | | } |
| | | } |
| | | } |
| | |
| | | <template> |
| | | <classifyTrees :crudData="crudTreeData" :crudoption="crudTreeOption" :data="Treedata" |
| | | :option="Treeoption" |
| | | <classifyTrees :crudData="crudTreeData" |
| | | ></classifyTrees> |
| | | </template> |
| | | |
| | |
| | | //ç¶ä¼ åæé®é¢ï¼ææ¶æ²¡è§£å³ï¼ç¨provide代æ¿ç¶ä¼ åï¼åä¼ ç¶è¿æ¯ç¨$emitä¼ éï¼æ³¨æï¼ï¼ï¼å
¶ä»ç»ä»¶ä¸è½ä½¿ç¨åæ ·çç±»åå¦å伿¥éã |
| | | provide() { |
| | | return { |
| | | crudTreeOption: { |
| | | index: true, |
| | | border: true, |
| | | height:180, |
| | | column: [ |
| | | { |
| | | label: "模æ¿ç¼å·", |
| | | prop: "id" |
| | | }, |
| | | { |
| | | label:"模æ¿åç§°", |
| | | prop:"name" |
| | | }, |
| | | { |
| | | label: "æ¨¡æ¿æè¿°", |
| | | prop:"description" |
| | | }, |
| | | { |
| | | label:"çæ¬å·", |
| | | prop:"revisionSeq" |
| | | }, |
| | | { |
| | | label:"ç¶æ", |
| | | prop:"lcStatusText" |
| | | } |
| | | ] |
| | | }, |
| | | crudTreeData: this.crudTreeData, |
| | | } |
| | | |
| | |
| | | '/api': { |
| | | //æ¬å°æå¡æ¥å£å°å |
| | | // target: 'http://localhost:37000', |
| | | //target: 'http://192.168.1.51:37000', |
| | | // target: 'http://localhost:37000', |
| | | // target: 'http://192.168.1.51:37000', |
| | | target: 'http://192.168.1.46:37000', |
| | | // target: 'http://dev.vci-tech.com:37000', |
| | | // target: 'http://192.168.1.51:37000/', |
| | | // target: 'http://localhost:37000', |
| | | // target: 'http://192.168.1.63:37000', |
| | | //target: 'http://192.168.3.7:37000', |
| | | target: 'http://dev.vci-tech.com:37000', |
| | | // target: 'http://dev.vci-tech.com:37000', |
| | | //target: 'http://192.168.1.51:37000/', |
| | | //è¿ç¨æ¼ç¤ºæå¡å°å,å¯ç¨äºç´æ¥å¯å¨é¡¹ç® |
| | | // target: 'https://saber.bladex.vip/api', |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.vci.ubcs.starter.annotation.Transient; |
| | | import com.vci.ubcs.starter.revision.model.BaseModel; |
| | | import io.swagger.annotations.ApiModel; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | |
| | | /** |
| | | * ç¸ä¼¼é¡¹ |
| | | * @author weidy |
| | | * @date 2022-1-14 |
| | | */ |
| | | //@VciBtmType(name = MdmBtmTypeConstant.CODE_CLASSIFY,text = "主é¢åºåç±»",lifeCycle = FrameWorkLcStatusConstant.FRAME_WORK_LIFE_CYCLE_NAME) |
| | | @Data |
| | | @TableName("PL_CODE_RESEMBLERULE") |
| | | @ApiModel(value = "CodeResemblerule对象", description = "ç¸ä¼¼é¡¹") |
| | | @EqualsAndHashCode(callSuper = true) |
| | | public class CodeResembleRule extends BaseModel { |
| | | |
| | | /** |
| | | * åºåå |
| | | */ |
| | | private static final long serialVersionUID = 7375719926432663351L; |
| | | |
| | | /** |
| | | * æ¯å¦å¿½ç¥å¤§å°å |
| | | */ |
| | | // @Column(columnDefinition = "æ¯å¦å¿½ç¥å¤§å°å") |
| | | private String ignoreCaseFlag; |
| | | |
| | | /** |
| | | * æ¯å¦å¿½ç¥ç©ºæ ¼ |
| | | */ |
| | | // @Column(columnDefinition = "æ¯å¦å¿½ç¥ç©ºæ ¼") |
| | | private String ignoreSpaceFlag; |
| | | |
| | | /** |
| | | * æ¯å¦å¿½ç¥å
¨é¨ç©ºæ ¼ |
| | | */ |
| | | // @Column(columnDefinition = "æ¯å¦å¿½ç¥å
¨é¨ç©ºæ ¼") |
| | | private String ignoreAllSpaceFlag; |
| | | |
| | | /** |
| | | * æ¯å¦å¿½ç¥å
¨åè§ |
| | | */ |
| | | // @Column(columnDefinition = "æ¯å¦å¿½ç¥å
¨åè§") |
| | | private String ignoreWidthFlag; |
| | | |
| | | /** |
| | | * è¿æ¥ç¬¦ |
| | | */ |
| | | // @Column(columnDefinition = "è¿æ¥ç¬¦",length = 200) |
| | | private String linkCharacter; |
| | | |
| | | public String getIgnoreWidthFlag() { |
| | | return ignoreWidthFlag; |
| | | } |
| | | |
| | | public void setIgnoreWidthFlag(String ignoreWidthFlag) { |
| | | this.ignoreWidthFlag = ignoreWidthFlag; |
| | | } |
| | | |
| | | public String getIgnoreCaseFlag() { |
| | | return ignoreCaseFlag; |
| | | } |
| | | |
| | | public void setIgnoreCaseFlag(String ignoreCaseFlag) { |
| | | this.ignoreCaseFlag = ignoreCaseFlag; |
| | | } |
| | | |
| | | public String getIgnoreSpaceFlag() { |
| | | return ignoreSpaceFlag; |
| | | } |
| | | |
| | | public void setIgnoreSpaceFlag(String ignoreSpaceFlag) { |
| | | this.ignoreSpaceFlag = ignoreSpaceFlag; |
| | | } |
| | | |
| | | public String getIgnoreAllSpaceFlag() { |
| | | return ignoreAllSpaceFlag; |
| | | } |
| | | |
| | | public void setIgnoreAllSpaceFlag(String ignoreAllSpaceFlag) { |
| | | this.ignoreAllSpaceFlag = ignoreAllSpaceFlag; |
| | | } |
| | | |
| | | |
| | | public String getLinkCharacter() { |
| | | return linkCharacter; |
| | | } |
| | | |
| | | public void setLinkCharacter(String linkCharacter) { |
| | | this.linkCharacter = linkCharacter; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "CodeResembleRuleDO{" + |
| | | " ignoreCaseFlag='" + ignoreCaseFlag + '\'' + |
| | | ", ignoreSpaceFlag='" + ignoreSpaceFlag + '\'' + |
| | | ", ignoreAllSpaceFlag='" + ignoreAllSpaceFlag + '\'' + |
| | | ", ignoreWidthFlag='" + ignoreWidthFlag + '\'' + |
| | | ", linkCharacter='" + linkCharacter + '\'' + |
| | | "} " + super.toString(); |
| | | } |
| | | |
| | | } |
| | |
| | | |
| | | String API_PREFIX = "/client"; |
| | | String MENU = API_PREFIX + "/menu"; |
| | | String MENU_BUTTON = API_PREFIX + "/menu-button"; |
| | | String DEPT = API_PREFIX + "/dept"; |
| | | String DEPT_IDS = API_PREFIX + "/dept-ids"; |
| | | String DEPT_IDS_FUZZY = API_PREFIX + "/dept-ids-fuzzy"; |
| | |
| | | R<Menu> getMenu(@RequestParam("id") Long id); |
| | | |
| | | /** |
| | | * è·åèåä¸é¢çæé® |
| | | * |
| | | * @param btmType ä¸å¡ç±»å |
| | | * @return List<Menu> |
| | | */ |
| | | @GetMapping(MENU_BUTTON) |
| | | R<List<Menu>> getMenuButtonByType(@RequestParam("btmType") String btmType); |
| | | |
| | | /** |
| | | * è·åé¨é¨ |
| | | * |
| | | * @param id ä¸»é® |
| | |
| | | } |
| | | |
| | | @Override |
| | | public R<List<Menu>> getMenuButtonByType(String btmType) { |
| | | return R.fail("è·åæ°æ®å¤±è´¥"); |
| | | } |
| | | |
| | | @Override |
| | | public R<Dept> getDept(Long id) { |
| | | return R.fail("è·åæ°æ®å¤±è´¥"); |
| | | } |
| | |
| | | </exclusion> |
| | | </exclusions> |
| | | </dependency> |
| | | <dependency> |
| | | <groupId>com.vci.ubcs</groupId> |
| | | <artifactId>ubcs-user-api</artifactId> |
| | | <version>3.0.1.RELEASE</version> |
| | | <scope>compile</scope> |
| | | </dependency> |
| | | <dependency> |
| | | <groupId>com.vci.ubcs</groupId> |
| | | <artifactId>ubcs-system-api</artifactId> |
| | | <version>3.0.1.RELEASE</version> |
| | | <scope>compile</scope> |
| | | </dependency> |
| | | <!--<dependency> |
| | | <groupId>com.vci.ubcs</groupId> |
| | | <artifactId>ubcs-webservice</artifactId> |
| | |
| | | import java.io.File; |
| | | import java.io.IOException; |
| | | import java.nio.charset.StandardCharsets; |
| | | import java.util.Collections; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.*; |
| | | |
| | | @RestController |
| | | //@AllArgsConstructor |
| | |
| | | String excelFileName = LocalFileUtil.getDefaultTempFolder() + File.separator + LocalFileUtil.getFileNameForIE(file.getOriginalFilename()); |
| | | File file1 = new File(excelFileName); |
| | | try { |
| | | // file.transferTo(new File(excelFileName)); |
| | | // CodeImProtRusultVO codeImProtRusultVO = mdmIOService.batchImportCode(orderDTO,file1); |
| | | // if(StringUtils.isNotBlank(codeImProtRusultVO.getFilePath())||StringUtils.isNotBlank(codeImProtRusultVO.getRedisUuid())){ |
| | | // //æ¾å°mapé |
| | | // R result = R.fail("导å
¥å¤±è´¥"); |
| | | // if(StringUtils.isNotBlank(codeImProtRusultVO.getFilePath())) { |
| | | // String filedUUid = ControllerUtil.putErrorFile(codeImProtRusultVO.getFilePath()); |
| | | // codeImProtRusultVO.setFileOid(filedUUid); |
| | | // } |
| | | // result.setData(codeImProtRusultVO); |
| | | // return result; |
| | | // }else { |
| | | // return R.success("æä½æåï¼"); |
| | | // } |
| | | file.transferTo(new File(excelFileName)); |
| | | CodeImProtRusultVO codeImProtRusultVO = mdmIOService.batchImportCode(orderDTO,file1); |
| | | if(StringUtils.isNotBlank(codeImProtRusultVO.getFilePath())||StringUtils.isNotBlank(codeImProtRusultVO.getRedisUuid())){ |
| | | //æ¾å°mapé |
| | | R result = R.fail("导å
¥å¤±è´¥"); |
| | | if(StringUtils.isNotBlank(codeImProtRusultVO.getFilePath())) { |
| | | String filedUUid = ControllerUtil.putErrorFile(codeImProtRusultVO.getFilePath()); |
| | | codeImProtRusultVO.setFileOid(filedUUid); |
| | | } |
| | | result.setData(codeImProtRusultVO); |
| | | return result; |
| | | }else { |
| | | return R.success("æä½æåï¼"); |
| | | } |
| | | }catch (Throwable e) { |
| | | logger.error("导å
¥é误",e); |
| | | String errorFile = LocalFileUtil.getDefaultTempFolder() + File.separator + "é误.txt"; |
| | |
| | | }finally { |
| | | file1.delete(); |
| | | } |
| | | return null; |
| | | // return null; |
| | | } |
| | | |
| | | |
| | |
| | | |
| | | @GetMapping("/thisistest") |
| | | @ResponseBody |
| | | public List<BaseModel> thisistest(String codeClassifyOid, String functionId) throws Exception { |
| | | return engineService.selectByTypeAndOid("wupin", "b1511bb3-a773-43e2-ac85-a7fde7314a0f,3e08970024835e69f6c2b2ecd90c48c3,582ff205-0dfb-43e0-8223-e772ff1851ab,db0400fe-cc90-4d9d-8da7-1edf06b1481b"); |
| | | public Integer thisistest(String codeClassifyOid, String functionId) throws Exception { |
| | | // return engineService.selectByTypeAndOid("wupin", "b1511bb3-a773-43e2-ac85-a7fde7314a0f,3e08970024835e69f6c2b2ecd90c48c3,582ff205-0dfb-43e0-8223-e772ff1851ab,db0400fe-cc90-4d9d-8da7-1edf06b1481b"); |
| | | |
| | | List<BaseModel> models = new ArrayList<>(); |
| | | BaseModel baseModel = new BaseModel(); |
| | | Map<String,String > map = new HashMap<>(); |
| | | map.put("JZL","6789"); |
| | | map.put("JZRXX","67891"); |
| | | map.put("JZXZB","67892"); |
| | | map.put("JSZGL","67893"); |
| | | map.put("JSSXT","67894"); |
| | | baseModel.setBtmname("djii"); |
| | | baseModel.setCreator("fjivis"); |
| | | baseModel.setId("vcia"); |
| | | baseModel.setOid("0d86b1ba-9e9e-4d3d-9ae4-f862c3684e74"); |
| | | baseModel.setCreateTime(new Date()); |
| | | baseModel.setTs(new Date()); |
| | | baseModel.setData(map); |
| | | models.add(baseModel); |
| | | |
| | | BaseModel baseModel1 = new BaseModel(); |
| | | Map<String,String > map1 = new HashMap<>(); |
| | | map1.put("JZL","6789z"); |
| | | map1.put("JZRXX","67891z"); |
| | | map1.put("JZXZB","67892z"); |
| | | map1.put("JSZGL","67893z"); |
| | | map1.put("JSSXT","67894z"); |
| | | baseModel1.setBtmname("djiiz"); |
| | | baseModel1.setCreator("fjivisz"); |
| | | baseModel1.setId("vciaz"); |
| | | baseModel1.setTs(new Date()); |
| | | baseModel1.setOid("4a00be07-f5a8-4a9b-88fb-d52a0d9cf546"); |
| | | baseModel1.setCreateTime(new Date()); |
| | | baseModel1.setData(map1); |
| | | models.add(baseModel1); |
| | | |
| | | BaseModel baseModel2 = new BaseModel(); |
| | | Map<String,String > map2 = new HashMap<>(); |
| | | map2.put("JZL","67892"); |
| | | map2.put("JZRXX","678912"); |
| | | map2.put("JZXZB","678922"); |
| | | map2.put("JSZGL","678932"); |
| | | map2.put("JSSXT","678942"); |
| | | baseModel2.setBtmname("djii2"); |
| | | baseModel2.setCreator("fjivis2"); |
| | | baseModel2.setTs(new Date()); |
| | | baseModel2.setId("vcia2"); |
| | | baseModel2.setOid("fa430ff9-f141-4dcf-8809-6f87905c1dea"); |
| | | baseModel2.setCreateTime(new Date()); |
| | | baseModel2.setData(map2); |
| | | models.add(baseModel2); |
| | | |
| | | return 0; |
| | | |
| | | |
| | | |
| | | // return engineService.updateBatchByBaseModel("wupin", models); |
| | | // return engineService.getUIInfoByClassifyOid(codeClassifyOid,functionId); |
| | | } |
| | | } |
| | |
| | | /** |
| | | * æ¥æ¾æ å½¢ç»æ |
| | | * |
| | | * @return æ°æ®éå |
| | | */ |
| | | List<CodeClassify> selectCodeClassifyDOByTree(@Param("id") String id,@Param("lcstatus") String lcstatus,@Param("parentcodeclassifyoid") String parentcodeclassifyoid); |
| | | |
| | | /** |
| | | * æ¥è¯¢æ°æ®ä¸PL_CODE_KEYATTRREPEATãPL_CODE_RESEMBLERULEãPL_CODE_RULEèæ¥ |
| | | * |
| | | * @param oids åç±»çä¸»é® |
| | | * @return æ°æ®éå |
| | | */ |
| | | List<CodeClassify> selectClassifyByKeyAndReseRel(@Param("oids") String oids); |
| | | |
| | | /** |
| | | * æ¥æ¾æ å½¢ç»æ |
| | | * |
| | | * @param oid åç±»çä¸»é® |
| | | * @return æ°æ®éå |
| | | */ |
| | |
| | | |
| | | List<CodeClassifyTemplateAttr> selectRefByOid(String oid); |
| | | |
| | | /** |
| | | * æ¡ä»¶,å
³èæ¥è¯¢æåº |
| | | * |
| | | * @param classifytemplateoids |
| | | * @return |
| | | */ |
| | | List<CodeClassifyTemplateAttr> selectByClassifytemplateoidRel(String classifytemplateoids); |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.github.yulichang.base.MPJBaseMapper; |
| | | import com.vci.ubcs.code.entity.CodeResembleRule; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * ä¸»æ°æ®ç¼ç è§åæ°æ®æä½å± |
| | | * |
| | | * @author ludc |
| | | * @date 2022-01-24 |
| | | */ |
| | | public interface CodeResembleRuleMapper extends BaseMapper<CodeResembleRule>, MPJBaseMapper<CodeResembleRule> { |
| | | |
| | | |
| | | } |
| | |
| | | |
| | | List<Map> selectBySql(@Param("inSql") String inSql); |
| | | |
| | | List<Map<String,String>> queryByOnlySqlForMap(@Param("inSql") String inSql); |
| | | |
| | | /** |
| | | * ä¼ å
¥è¡¨åï¼mapï¼list<map>宿æ¹éæ´æ°æä½ |
| | | * @param tableName 表å |
| | |
| | | package com.vci.ubcs.code.service; |
| | | |
| | | import com.github.yulichang.base.MPJBaseService; |
| | | import com.vci.ubcs.code.entity.CodeReferConfig; |
| | | import com.vci.ubcs.code.entity.CodeResembleRule; |
| | | import com.vci.ubcs.code.vo.pagemodel.CodeResembleRuleVO; |
| | | import com.vci.ubcs.starter.exception.VciBaseException; |
| | | |
| | | public interface ICodeResembleRuleService { |
| | | public interface ICodeResembleRuleService extends MPJBaseService<CodeResembleRule> { |
| | | CodeResembleRuleVO getObjectByOid(String codeResembleRuleOid); |
| | | } |
| | | |
| | | /** |
| | | * æ°æ®å¯¹è±¡è½¬æ¢ä¸ºæ¾ç¤ºå¯¹è±¡ |
| | | * @param codeResembleRuleDO æ°æ®å¯¹è±¡ |
| | | * @return æ¾ç¤ºå¯¹è±¡ |
| | | * @throws VciBaseException æ·è´å±æ§åºéçæ¶å伿åºå¼å¸¸ |
| | | */ |
| | | CodeResembleRuleVO codeResembleRuleDO2VO(CodeResembleRule codeResembleRuleDO) throws VciBaseException; |
| | | |
| | | } |
| | |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springblade.core.cache.utils.CacheUtil; |
| | | import org.springblade.core.launch.constant.AppConstant; |
| | | import org.springblade.core.log.exception.ServiceException; |
| | | import com.vci.ubcs.core.log.exception.ServiceException; |
| | | import org.springblade.core.mp.support.Condition; |
| | | import org.springblade.core.secure.utils.AuthUtil; |
| | | import org.springblade.core.tool.api.R; |
| | |
| | | } |
| | | |
| | | /** |
| | | * 䏻鮿¥è¯¢æ°æ®å¯¹è±¡,å
³èæ¥è¯¢ |
| | | * @param oid ä¸»é® |
| | | * @return æ°æ®å¯¹è±¡ |
| | | */ |
| | | private CodeClassify selectByOidRel(String oid){ |
| | | |
| | | List<CodeClassify> codeClassifyList = codeClassifyMapper.selectClassifyByKeyAndReseRel("'"+oid.trim()+"'"); |
| | | // CodeClassify codeClassifyEntity = (CodeClassify) codeClassifyList; |
| | | if(codeClassifyList.size() == 0 ){ |
| | | throw new ServiceException("dataNotExist");//æ ¹æ®ä¸»é®idæªæ¥å°ç¸å
³æ°æ® |
| | | } |
| | | // if(codeClassifyEntity == null || StringUtils.isBlank(codeClassifyEntity.getOid())){ |
| | | // throw new ServiceException("dataOidNotExist");//æ ¹æ®ä¸»é®idæªæ¥å°ç¸å
³æ°æ® |
| | | // } |
| | | return codeClassifyList.get(0); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢ä¸»é¢åºåç±» æ |
| | | * @param treeQueryObject æ æ¥è¯¢å¯¹è±¡ |
| | | * @return 主é¢åºåç±» æ¾ç¤ºæ |
| | | */ |
| | | @Override |
| | | public List<Tree> treeCodeClassify(TreeQueryObject treeQueryObject) { |
| | | List<CodeClassify> doList =codeClassifyMapper.selectCodeClassifyVOByTree(treeQueryObject.getParentOid()); |
| | | List<CodeClassify> doList =codeClassifyMapper |
| | | .selectCodeClassifyDOByTree(treeQueryObject.getConditionMap().get("id"),treeQueryObject.getConditionMap().get("lcStatus"),treeQueryObject.getParentOid()); |
| | | // List<CodeClassify> doList =codeClassifyMapper.selectCodeClassifyVOByTree(treeQueryObject.getParentOid()); |
| | | |
| | | List<CodeClassifyVO> voList = codeClassifyDO2VOs(doList); |
| | | TreeWrapperOptions treeWrapperOptions = new TreeWrapperOptions(PARENT_FIELD_NAME.toLowerCase(Locale.ROOT)); |
| | | treeWrapperOptions.copyFromTreeQuery(treeQueryObject); |
| | |
| | | } |
| | | |
| | | //使ç¨ä¸»é®æ¥è¯¢ä¸ä¸ |
| | | List<CodeClassify> classifyDOS = codeClassifyMapper.selectBatchIds(oidLevelMap.keySet()); |
| | | String oids = ""; |
| | | for (String s : oidLevelMap.keySet()) { |
| | | oids += "'"+s+"',"; |
| | | } |
| | | List<CodeClassify> classifyDOS = codeClassifyMapper.selectClassifyByKeyAndReseRel(oids.substring(0,oids.length()-1)); |
| | | if(!CollectionUtils.isEmpty(classifyDOS)){ |
| | | classifyDOS.stream().forEach(classifyDO->{ |
| | | classifyDO.setDataLevel(VciBaseUtil.getInt(oidLevelMap.getOrDefault(classifyDO.getOid(),"0"))); |
| | | classifyDO.setLcStatusText(EnumCache.getValue("codeLcstatus",classifyDO.getLcStatus())); |
| | | }); |
| | | } |
| | | return classifyDOS; |
| | |
| | | public CodeClassifyFullInfoBO getClassifyFullInfo(String codeClassifyOid) { |
| | | VciBaseUtil.alertNotNull(codeClassifyOid,"åç±»ç主é®"); |
| | | CodeClassifyFullInfoBO fullInfo = new CodeClassifyFullInfoBO(); |
| | | CodeClassify classifyDO = selectByOid(codeClassifyOid); |
| | | CodeClassify classifyDO = selectByOidRel(codeClassifyOid); |
| | | //æ¥è¯¢ä¸çº§ |
| | | fullInfo.setCurrentClassifyVO(codeClassifyDO2VO(classifyDO)); |
| | | // List<Map<String, Object>> maps = codeClassifyMapper.selectAllLevelParentByOid(codeClassifyOid); |
| | |
| | | // conditionMap.put("classifytemplateoid", QueryOptionConstant.IN + "(" + VciBaseUtil.toInSql(templateOids.toArray(new String[0])) + ")"); |
| | | // PageHelper pageHelper = new PageHelper(-1); |
| | | // pageHelper.addDefaultAsc("orderNum"); |
| | | QueryWrapper<CodeClassifyTemplateAttr> wrapper = new QueryWrapper<>(); |
| | | wrapper.in("classifytemplateoid",templateOids); |
| | | wrapper.orderByAsc("orderNum"); |
| | | List<CodeClassifyTemplateAttr> attrDOS = baseMapper.selectList(wrapper); |
| | | // QueryWrapper<CodeClassifyTemplateAttr> wrapper = new QueryWrapper<>(); |
| | | // wrapper.in("classifytemplateoid",templateOids); |
| | | // wrapper.orderByAsc("orderNum"); |
| | | List<CodeClassifyTemplateAttr> attrDOS = baseMapper.selectByClassifytemplateoidRel(VciBaseUtil.toInSql(templateOids.toArray(new String[0]))); |
| | | // baseMapper.selectByClassifytemplateoid(VciBaseUtil.toInSql(templateOids.toArray(new String[0]))); |
| | | |
| | | if(!CollectionUtils.isEmpty(attrDOS)){ |
| | |
| | | package com.vci.ubcs.code.service.impl; |
| | | |
| | | import com.github.yulichang.base.MPJBaseServiceImpl; |
| | | import com.vci.ubcs.code.entity.CodeReferConfig; |
| | | import com.vci.ubcs.code.entity.CodeResembleRule; |
| | | import com.vci.ubcs.code.enumpack.FrameworkDataLCStatus; |
| | | import com.vci.ubcs.code.mapper.CodeReferConfigMapper; |
| | | import com.vci.ubcs.code.mapper.CodeResembleRuleMapper; |
| | | import com.vci.ubcs.code.service.ICodeResembleRuleService; |
| | | import com.vci.ubcs.code.vo.pagemodel.CodeResembleRuleVO; |
| | | import com.vci.ubcs.starter.exception.VciBaseException; |
| | | import com.vci.ubcs.starter.web.util.BeanUtilForVCI; |
| | | import com.vci.ubcs.starter.web.util.VciBaseUtil; |
| | | import net.logstash.logback.encoder.org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import static com.vci.ubcs.code.constant.FrameWorkLangCodeConstant.DATA_OID_NOT_EXIST; |
| | | |
| | | /** |
| | | * ç¸ä¼¼æ¥è¯¢è§åæå¡ |
| | |
| | | * @date 2022-04-10 |
| | | */ |
| | | @Service |
| | | public class CodeResembleRuleServiceImpl implements ICodeResembleRuleService { |
| | | public class CodeResembleRuleServiceImpl extends MPJBaseServiceImpl<CodeResembleRuleMapper, CodeResembleRule> implements ICodeResembleRuleService { |
| | | @Override |
| | | public CodeResembleRuleVO getObjectByOid(String codeResembleRuleOid) { |
| | | return null; |
| | | public CodeResembleRuleVO getObjectByOid(String oid) { |
| | | return codeResembleRuleDO2VO(selectByOid(oid)); |
| | | } |
| | | |
| | | /** |
| | | * 䏻鮿¥è¯¢æ°æ®å¯¹è±¡ |
| | | * @param oid ä¸»é® |
| | | * @return æ°æ®å¯¹è±¡ |
| | | * @throws VciBaseException åæ°ä¸ºç©ºï¼å¹¶ä¸æ°æ®ä¸åå¨çæ¶å伿åºå¼å¸¸ |
| | | */ |
| | | private CodeResembleRule selectByOid(String oid) throws VciBaseException { |
| | | VciBaseUtil.alertNotNull(oid,"主é®"); |
| | | CodeResembleRule codeResembleRuleDO = baseMapper.selectById(oid.trim()); |
| | | // CodeResembleRule codeResembleRuleDO = codeResembleRuleMapper.selectByPrimaryKey(oid.trim()); |
| | | if(codeResembleRuleDO == null || StringUtils.isBlank(codeResembleRuleDO.getOid())){ |
| | | throw new VciBaseException(DATA_OID_NOT_EXIST); |
| | | } |
| | | return codeResembleRuleDO; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * æ°æ®å¯¹è±¡è½¬æ¢ä¸ºæ¾ç¤ºå¯¹è±¡ |
| | | * @param codeResembleRuleDO æ°æ®å¯¹è±¡ |
| | | * @return æ¾ç¤ºå¯¹è±¡ |
| | | * @throws VciBaseException æ·è´å±æ§åºéçæ¶å伿åºå¼å¸¸ |
| | | */ |
| | | @Override |
| | | public CodeResembleRuleVO codeResembleRuleDO2VO(CodeResembleRule codeResembleRuleDO) throws VciBaseException{ |
| | | CodeResembleRuleVO vo = new CodeResembleRuleVO(); |
| | | if(codeResembleRuleDO != null){ |
| | | BeanUtilForVCI.copyPropertiesIgnoreCase(codeResembleRuleDO,vo); |
| | | //妿ælcstatusçç±»çè¯ |
| | | vo.setLcStatusText(FrameworkDataLCStatus.getTextByValue(vo.getLcStatus())); |
| | | |
| | | } |
| | | return vo; |
| | | } |
| | | } |
| | |
| | | import com.vci.ubcs.omd.feign.IBtmTypeClient; |
| | | import com.vci.ubcs.omd.feign.IEnumClient; |
| | | import com.vci.ubcs.omd.feign.IRevisionRuleClient; |
| | | import com.vci.ubcs.omd.vo.BtmTypeAttributeVO; |
| | | import com.vci.ubcs.omd.vo.BtmTypeVO; |
| | | import com.vci.ubcs.omd.vo.EnumVO; |
| | | import com.vci.ubcs.omd.vo.RevisionRuleVO; |
| | |
| | | import com.vci.ubcs.starter.web.toolmodel.DateConverter; |
| | | import com.vci.ubcs.starter.web.util.*; |
| | | import com.vci.ubcs.system.entity.DictBiz; |
| | | import com.vci.ubcs.system.entity.Menu; |
| | | import com.vci.ubcs.system.feign.IDictBizClient; |
| | | import com.vci.ubcs.system.feign.ISysClient; |
| | | import com.vci.ubcs.system.user.entity.User; |
| | | import com.vci.ubcs.system.user.feign.IUserClient; |
| | | import net.logstash.logback.encoder.org.apache.commons.lang3.StringUtils; |
| | | import oracle.sql.TIMESTAMP; |
| | | import org.slf4j.Logger; |
| | |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springblade.core.tool.utils.StringPool; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.cache.Cache; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.util.CollectionUtils; |
| | | |
| | |
| | | import java.time.ZonedDateTime; |
| | | import java.util.*; |
| | | import java.util.concurrent.ConcurrentHashMap; |
| | | import java.util.function.Supplier; |
| | | import java.util.stream.Collectors; |
| | | |
| | | import static com.vci.ubcs.code.constant.FrameWorkLangCodeConstant.DATA_OID_NOT_EXIST; |
| | |
| | | */ |
| | | @Resource |
| | | IDictBizClient iDictBizClient; |
| | | |
| | | /** |
| | | * ç³»ç»çæå¡ |
| | | */ |
| | | @Resource |
| | | ISysClient iSysClient; |
| | | /** |
| | | * ç¨æ·æå¡ |
| | | */ |
| | | @Resource |
| | | IUserClient iUserClient; |
| | | /** |
| | | * åå
¸çæå¡ |
| | | */ |
| | |
| | | data.put(CODE_TEMPLATE_OID_FIELD,templateVO.getOid()); |
| | | data.put(CODE_FULL_PATH_FILED,fullPath); |
| | | cbo.setData(data); |
| | | cbo.setOid(VciBaseUtil.getPk()); |
| | | cbo.setCreateTime(new Date()); |
| | | cbo.setLastModifyTime(new Date()); |
| | | cbo.setCreator(AuthUtil.getUser().getUserName()); |
| | | cbo.setLastModifier(AuthUtil.getUser().getUserName()); |
| | | // cbo.setCodeclsfid(classifyFullInfo.getCurrentClassifyVO().getOid()); |
| | | // cbo.setTemplateOid(templateVO.getOid()); |
| | | // cbo.setCodeclsfpath(fullPath); |
| | |
| | | // cbo.setLcStatus("Editing"); |
| | | //// cbo.setLcStatus(lifeCycleVO.getStartStatus()); |
| | | // } else { |
| | | cbo.setLcStatus(CodeDefaultLC.EDITING.getValue()); |
| | | cbo.setLcStatus(CodeDefaultLC.EDITING.getValue()); |
| | | // } |
| | | } else { |
| | | cbo.setLcStatus(CodeDefaultLC.EDITING.getValue()); |
| | |
| | | } |
| | | |
| | | int secret = VciBaseUtil.getInt(String.valueOf(cbo.getSecretGrade())); |
| | | //æä¸ªç¹ï¼åç»çå¯çº§æå¡æ¯å¦å¯ç¨ |
| | | //åç»çå¯çº§æå¡æ¯å¦å¯ç¨ |
| | | // if (secret == 0 || !secretService.checkDataSecret(secret)) { |
| | | if (secret == 0 ) { |
| | | Integer userSecret = VciBaseUtil.getCurrentUserSecret(); |
| | |
| | | btmName = btmName.trim().toLowerCase(); |
| | | } |
| | | try { |
| | | String keyPrefix = BTM_NAME.concat(StringPool.DASH).concat(AuthUtil.getTenantId()).concat(StringPool.COLON); |
| | | String finalBtmName = btmName; |
| | | return CacheUtil.get(BTM_INIT_CACHE, keyPrefix, btmName, () -> { |
| | | BaseModel baseModel = createBaseModel(finalBtmName); |
| | | return baseModel; |
| | | }); |
| | | String keyPrefix = BTM_INIT_CACHE.concat(StringPool.COLON).concat(AuthUtil.getTenantId()).concat(StringPool.COLON); |
| | | // String finalBtmName = btmName; |
| | | Cache.ValueWrapper valueWrapper = CacheUtil.getCache(keyPrefix).get(keyPrefix.concat(String.valueOf(btmName))); |
| | | if(valueWrapper == null){ |
| | | CacheUtil.getCache(keyPrefix).put(keyPrefix.concat(String.valueOf(btmName)), createBaseModel(btmName)); |
| | | valueWrapper = CacheUtil.getCache(keyPrefix).get(keyPrefix.concat(String.valueOf(btmName))); |
| | | } |
| | | return (BaseModel) valueWrapper.get(); |
| | | } catch (Exception e) { |
| | | logger.error("å建ä¸å¡ç±»å对象",e); |
| | | throw new VciBaseException("initBtmError",new String[]{btmName}); |
| | |
| | | } |
| | | } |
| | | |
| | | @Override |
| | | public MdmUIInfoVO getFormDefineByTemplateOid(String templateOid, String codeClassifyOid) { |
| | | @Override |
| | | public MdmUIInfoVO getFormDefineByTemplateOid(String templateOid, String codeClassifyOid) { |
| | | CodeClassifyTemplateVO templateVO = templateService.getObjectHasAttrByOid(templateOid); |
| | | MdmUIInfoVO uiInfoVO = new MdmUIInfoVO(); |
| | | uiInfoVO.setTemplateVO(templateVO); |
| | | uiInfoVO.setFormDefineVO(wrapperFormDefineByTemplate(templateVO, codeClassifyOid)); |
| | | wrapperResemble(templateVO, uiInfoVO); |
| | | return uiInfoVO; |
| | | } |
| | | } |
| | | |
| | | |
| | | /** |
| | |
| | | //没æéå¶åç±»ï¼ä½æ¯ä¸ä¸ªæ¨¡æ¿åªå¯è½å¨ä¸ä¸ªä¸å¡ç±»åéé¢ï¼æä»¥ç´æ¥æ¥è¯¢è¿ä¸ªä¸å¡ç±»åå³å¯ |
| | | if (!CollectionUtils.isEmpty(conditionMap)) { |
| | | Map<String, String> andConditionMap = new HashMap<>(); |
| | | andConditionMap.put("lastr", "1"); |
| | | andConditionMap.put("lastv", "1"); |
| | | andConditionMap.put("t.lastr", "1"); |
| | | andConditionMap.put("t.lastv", "1"); |
| | | if (StringUtils.isNotBlank(orderDTO.getOid())) { |
| | | andConditionMap.put("oid", QueryOptionConstant.NOTEQUAL + orderDTO.getOid()); |
| | | andConditionMap.put("t.oid", QueryOptionConstant.NOTEQUAL + orderDTO.getOid()); |
| | | } |
| | | conditionMap.putAll(andConditionMap); |
| | | PageHelper pageHelper = new PageHelper(-1); |
| | |
| | | public DataGrid<Map<String, String>> queryGrid(String btmType, CodeClassifyTemplateVO templateVO, Map<String, String> conditionMap, PageHelper pageHelper) { |
| | | CodeTemplateAttrSqlBO sqlBO = getSqlByTemplateVO(btmType, templateVO, conditionMap, pageHelper); |
| | | // List<Map> maps = boService.queryByOnlySqlForMap(sqlBO.getSqlHasPage()); |
| | | List<Map> maps = commonsMapper.selectBySql(sqlBO.getSqlHasPage()); |
| | | List<Map<String,String>> maps = commonsMapper.queryByOnlySqlForMap(sqlBO.getSqlHasPage()); |
| | | |
| | | DataGrid<Map<String, String>> dataGrid = new DataGrid<>(); |
| | | List<Map<String, String>> dataList = new ArrayList<>(); |
| | | // if (!CollectionUtils.isEmpty(maps)) { |
| | | // maps.stream().forEach(map -> { |
| | | // Map<String, String> data = new HashMap<>(); |
| | | // map.forEach((key, value) -> { |
| | | // data.put(((String) key).toLowerCase(Locale.ROOT), String.valueOf(value)); |
| | | // }); |
| | | // dataList.add(data); |
| | | // }); |
| | | // } |
| | | // dataGrid.setData(dataList); |
| | | if (!CollectionUtils.isEmpty(maps)) { |
| | | wrapperData(maps, templateVO, sqlBO.getSelectFieldList(), false); |
| | | maps.stream().forEach(map -> { |
| | | Map<String, String> data = new HashMap<>(); |
| | | map.forEach((key, value) -> { |
| | | data.put(((String) key).toLowerCase(Locale.ROOT), String.valueOf(value)); |
| | | }); |
| | | // map.forEach((key, value) -> { |
| | | // data.put(((String) key).toLowerCase(Locale.ROOT), String.valueOf(value)); |
| | | // }); |
| | | for (String s : map.keySet()) { |
| | | data.put(((String) s).toLowerCase(Locale.ROOT), String.valueOf(map.get(s))); |
| | | } |
| | | dataList.add(data); |
| | | }); |
| | | } |
| | | dataGrid.setData(dataList); |
| | | if (!CollectionUtils.isEmpty(dataList)) { |
| | | wrapperData(dataGrid.getData(), templateVO, sqlBO.getSelectFieldList(), false); |
| | | dataGrid.setData(dataList); |
| | | dataGrid.setTotal(Long.parseLong(commonsMapper.selectBySql(sqlBO.getSqlCount()).get(0).values().toArray()[0].toString())); |
| | | } |
| | | return dataGrid; |
| | |
| | | } |
| | | }); |
| | | if (!CollectionUtils.isEmpty(userIds)) { |
| | | Map<String, User> userVOMap = new HashMap<>(); |
| | | for (String userId : userIds) { |
| | | if(!StringUtils.isNumeric(userId)){ |
| | | continue; |
| | | } |
| | | User data = iUserClient.userInfoById(Long.valueOf(userId)).getData(); |
| | | if(data != null){ |
| | | userVOMap.put(String.valueOf(data.getId()),data); |
| | | } |
| | | } |
| | | // Map<String, SmUserVO> userVOMap = Optional.ofNullable(userQueryService.listUserByUserIds(userIds)).orElseGet(() -> new ArrayList<>()).stream().collect(Collectors.toMap(s -> s.getId().toLowerCase(Locale.ROOT), t -> t)); |
| | | // dataMap.stream().forEach(data -> { |
| | | // String creator = data.getOrDefault("creator", null); |
| | | // if (StringUtils.isNotBlank(creator) && userVOMap.containsKey(creator.toLowerCase(Locale.ROOT))) { |
| | | // data.put("creator", creator + "(" + userVOMap.get(creator.toLowerCase(Locale.ROOT)).getName() + ")"); |
| | | // } |
| | | // String lastmodifier = data.getOrDefault("lastmodifier", null); |
| | | // if (StringUtils.isNotBlank(lastmodifier) && userVOMap.containsKey(lastmodifier.toLowerCase(Locale.ROOT))) { |
| | | // data.put("lastmodifier", lastmodifier + "(" + userVOMap.get(lastmodifier.toLowerCase(Locale.ROOT)).getName() + ")"); |
| | | // } |
| | | // }); |
| | | dataMap.stream().forEach(data -> { |
| | | String creator = data.getOrDefault("creator", null); |
| | | if (StringUtils.isNotBlank(creator) && userVOMap.containsKey(creator.toLowerCase(Locale.ROOT))) { |
| | | data.put("creator", creator + "(" + userVOMap.get(creator.toLowerCase(Locale.ROOT)).getRealName() + ")"); |
| | | } |
| | | String lastmodifier = data.getOrDefault("lastmodifier", null); |
| | | if (StringUtils.isNotBlank(lastmodifier) && userVOMap.containsKey(lastmodifier.toLowerCase(Locale.ROOT))) { |
| | | data.put("lastmodifier", lastmodifier + "(" + userVOMap.get(lastmodifier.toLowerCase(Locale.ROOT)).getRealName() + ")"); |
| | | } |
| | | }); |
| | | } |
| | | } |
| | | |
| | |
| | | //å¤çæä¸¾çå
容ï¼ä¸ºäºå
¼å®¹ä»¥åçæ°æ®,å¦ææ°æ®ä¸è½ä½¿ç¨æä¸¾è½¬æ¢çè¯ï¼é£è¿æ¯æ¾ç¤ºä»¥åçå¼ |
| | | if (!CollectionUtils.isEmpty(enumAttrVOs)) { |
| | | enumAttrVOs.stream().forEach(enumAttrVO -> { |
| | | // String attrId = enumAttrVO.getId().toUpperCase(Locale.ROOT); |
| | | String attrId = enumAttrVO.getId().toLowerCase(Locale.ROOT); |
| | | String oldValue = data.getOrDefault(attrId, null); |
| | | String oldValue = String.valueOf(data.getOrDefault(attrId, null)); |
| | | if (StringUtils.isNotBlank(oldValue)) { |
| | | List<KeyValue> comboxKVs = listComboboxItems(enumAttrVO); |
| | | String newValue = oldValue; |
| | |
| | | referVO.setValueField(VciQueryWrapperForDO.OID_FIELD); |
| | | referVO.setTextField("name"); |
| | | } |
| | | //表éè¦æ¹ |
| | | //使ç¨ä¼ å
¥çä¸å¡ç±»åæ¥è¯¢è¡¨ |
| | | R<List<BtmTypeVO>> listR = btmTypeClient.selectByIdCollection(Collections.singletonList(referVO.getReferType())); |
| | | // String referTable = VciBaseUtil.getTableName(referVO.getReferType()); |
| | | String referTable = "pl_code_wupin"; |
| | | String referTable = listR.getData().get(0).getTableName(); |
| | | // String referTable = "pl_code_classify"; |
| | | String referTableNick = attrVO.getId() + "0"; |
| | | String left = " left join " + referTable + " " + referTableNick + " on " + referTableNick + "." + referVO.getValueField() + " = t." + attrVO.getId(); |
| | | joinTableList.put(attrVO.getId(), left); |
| | |
| | | selectFieldList.add(referTableNick + "." + showFieldInSource + " as " + referShowField); |
| | | }); |
| | | } |
| | | // å¾
å®å |
| | | // Optional.ofNullable(attributeService.getDefaultAttributeVOMap()).orElseGet(() -> new HashMap<>()).keySet().stream().forEach(attrId -> { |
| | | // if (!selectFieldList.contains(attrId) && !"secretgrade".equalsIgnoreCase(attrId)) { |
| | | // selectFieldList.add(attrId); |
| | | R<BtmTypeVO> allAttributeByBtmId = btmTypeClient.getDefaultAttrByBtmId(btmType); |
| | | // Optional.ofNullable(allAttributeByBtmId.getData()).orElseGet(allAttributeByBtmId.getData().getAttributes()).stream().forEach(attrId -> { |
| | | // if (!selectFieldList.contains(attrId.getOid()) && !"secretgrade".equalsIgnoreCase(attrId.getOid())) { |
| | | // selectFieldList.add(attrId.getOid()); |
| | | // } |
| | | // }); |
| | | if(allAttributeByBtmId.getData() != null ){ |
| | | for (BtmTypeAttributeVO attribute : allAttributeByBtmId.getData().getAttributes()) { |
| | | if (!selectFieldList.contains(attribute.getId()) && !"secretgrade".equalsIgnoreCase(attribute.getId())) { |
| | | selectFieldList.add(attribute.getId()); |
| | | } |
| | | } |
| | | } |
| | | |
| | | if (!selectFieldList.contains(CODE_FIELD)) { |
| | | selectFieldList.add(CODE_FIELD); |
| | | } |
| | |
| | | } |
| | | //è¦æ¹ï¼è¡¨æè·åæé®é¢ |
| | | // String tableName = VciBaseUtil.getTableName(btmType); |
| | | String tableName = "pl_code_wupin"; |
| | | // String tableName = "pl_code_wupin"; |
| | | R<List<BtmTypeVO>> listR = btmTypeClient.selectByIdCollection(Collections.singletonList(btmType)); |
| | | // String referTable = VciBaseUtil.getTableName(referVO.getReferType()); |
| | | String tableName = listR.getData().get(0).getTableName(); |
| | | String sql = "select " + selectFieldList.stream().map(s -> (s.contains(".") ? s : ("t." + s))).collect(Collectors.joining(",")) |
| | | + " from " + tableName + SPACE + "t" + SPACE |
| | | + joinTableList.values().stream().collect(Collectors.joining(SPACE)) |
| | |
| | | */ |
| | | private String getSqlByValue(String selectKey, String value, Map<String, CodeClassifyTemplateAttrVO> attrVOMap) { |
| | | StringBuilder sql = new StringBuilder(); |
| | | // å¾
å®å |
| | | //å¾
å®å |
| | | // if (!selectKey.contains(".") && (attrVOMap.containsKey(selectKey.toLowerCase(Locale.ROOT)) || attributeService.isDefaultAttr(selectKey) || selectKey.matches(RegExpConstant.LETTER))) { |
| | | // sql.append("t."); |
| | | // } |
| | |
| | | CodeClassifyVO topClassifyVO = classifyService.getTopClassifyVO(templateVO.getCodeclassifyoid()); |
| | | String btmId = topClassifyVO.getBtmtypeid(); |
| | | //æ¥è¯¢æ°æ® |
| | | Map<String, String> conditionMap = WebUtil.getOidQuery(oid); |
| | | Map<String, String> conditionMap = new HashMap<>(); |
| | | conditionMap.put("t.oid",oid); |
| | | CodeTemplateAttrSqlBO sqlBO = getSqlByTemplateVO(btmId, templateVO, conditionMap, new PageHelper(-1)); |
| | | //æä»¬ä½¿ç¨åä¸å¡ç±»åçæ¥æ¥è¯¢ |
| | | List<Map> cbos = commonsMapper.selectBySql(sqlBO.getSqlUnPage()); |
| | | List<Map> cbosB = commonsMapper.selectBySql(sqlBO.getSqlUnPage()); |
| | | List<Map<String,String>> cbos = new ArrayList<>(); |
| | | cbosB.stream().forEach(map -> { |
| | | Map<String, String> data = new HashMap<>(); |
| | | for (Object o : map.keySet()) { |
| | | data.put(((String) o).toLowerCase(Locale.ROOT), String.valueOf(map.get(o))); |
| | | } |
| | | cbos.add(data); |
| | | }); |
| | | |
| | | // List<ClientBusinessObject> cbos = boService.queryByOnlySql(sqlBO.getSqlUnPage()); |
| | | if (CollectionUtils.isEmpty(cbos)) { |
| | | throw new VciBaseException("æ°æ®å¨ç³»ç»ä¸ä¸åå¨ï¼æ¯å¦å 为修æ¹è¿ä¸å¡ç±»åï¼"); |
| | |
| | | wrapperData(dataList, templateVO, sqlBO.getSelectFieldList(), true); |
| | | R<List<Map<String, String>>> result = R.data(Collections.singletonList(cbo)); |
| | | //æä»¬è¦çæ¯å¦ä¸æ¯åççï¼åççè¯ï¼éè¦å¯¹æ¯ä¸ç¸çç屿§ |
| | | String copy = String.valueOf(cbo.get("COPYFROMVERSION")); |
| | | String copy = cbo.get("copyfromversion"); |
| | | // if (StringUtils.isBlank(copy)) { |
| | | // copy = cbo.getAttributeValue("copyfromversion"); |
| | | // } |
| | |
| | | MdmUIInfoVO uiInfoVO = getTableDefineByTemplateVO(getUsedTemplateByClassifyOid(codeClassifyOid)); |
| | | uiInfoVO.setLeaf(classifyService.countChildrenByClassifyOid(codeClassifyOid) == 0); |
| | | if (StringUtils.isNotBlank(functionId) && !"~".equalsIgnoreCase(functionId)) { |
| | | List<Menu> buttonVOS = iSysClient.getMenuButtonByType(uiInfoVO.getTemplateVO().getBtmTypeId()).getData(); |
| | | |
| | | //åè½æé®æå¡è¿æªå®ç°ï¼çå®ç°äºï¼å¨è¿è¡è°ç¨ |
| | | //List<SmOperationVO> operationVOS = operationService.listButtonByFunctionId(functionId); |
| | | // List<SmOperationVO> operationVOS = operationService.listButtonByFunctionId(functionId); |
| | | // if (operationVOS == null) { |
| | | // operationVOS = new ArrayList<>(); |
| | | // } |
| | | //æ¥è¯¢æ©å±æé® |
| | | // //æ¥è¯¢æ©å±æé® |
| | | // List<CodeButtonVO> buttonVOS = listButtonInToolbarByClassifyOid(codeClassifyOid); |
| | | // if (!CollectionUtils.isEmpty(buttonVOS)) { |
| | | // for (int i = 0; i < buttonVOS.size(); i++) { |
| | | // CodeButtonVO buttonVO = buttonVOS.get(i); |
| | | // SmOperationVO operationVO = new SmOperationVO(); |
| | | // operationVO.setModuleNo(functionId); |
| | | // operationVO.setUniqueFlag(buttonVO.getId()); |
| | | // operationVO.setName(buttonVO.getName()); |
| | | // operationVO.setAlias(operationVO.getName()); |
| | | // operationVO.setExecuteJs(buttonVO.getExecutejs()); |
| | | // operationVO.setIconCls(buttonVO.getIconcls()); |
| | | // operationVOS.add(operationVO); |
| | | // } |
| | | // } |
| | | // uiInfoVO.setButtons(operationVOS); |
| | | List<SmOperationVO> operationVOS = new ArrayList<>(); |
| | | if (!CollectionUtils.isEmpty(buttonVOS)) { |
| | | for (int i = 0; i < buttonVOS.size(); i++) { |
| | | Menu buttonVO = buttonVOS.get(i); |
| | | SmOperationVO operationVO = new SmOperationVO(); |
| | | operationVO.setModuleNo(functionId); |
| | | operationVO.setUniqueFlag(buttonVO.getCode()); |
| | | operationVO.setName(buttonVO.getName()); |
| | | operationVO.setAlias(buttonVO.getAlias()); |
| | | operationVO.setOrderNo(String.valueOf(buttonVO.getSort())); |
| | | // operationVO.setExecuteJs(buttonVO.getExecuteJs()); |
| | | // operationVO.setIconCls(buttonVO.getIconCls()); |
| | | operationVOS.add(operationVO); |
| | | } |
| | | } |
| | | uiInfoVO.setButtons(operationVOS); |
| | | } |
| | | return uiInfoVO; |
| | | } |
| | |
| | | R<List<BtmTypeVO>> listR = btmTypeClient.selectByIdCollection(Collections.singletonList(boName)); |
| | | String userName = AuthUtil.getUser().getUserName(); |
| | | BaseModel bo = new BaseModel(); |
| | | bo.setOid(VciBaseUtil.getPk()); |
| | | // bo.setOid(VciBaseUtil.getPk()); |
| | | // bo.setRevisionid(VciBaseUtil.getPk()); |
| | | // bo.setNameoid(VciBaseUtil.getPk()); |
| | | bo.setBtmname(boName); |
| | |
| | | bo.setLctid(listR.getData().get(0).getLifeCycleId()); |
| | | // if(StringUtils.isNotBlank(listR.getData().get(0).getLifeCycleId())){ |
| | | // OsLifeCycleVO lifeCycleVO = lifeService.getLifeCycleById(listR.getData().get(0).getLifeCycleId()); |
| | | bo.setLcStatus("Editing"); |
| | | bo.setLcStatus("Editing"); |
| | | // } |
| | | bo.setId(""); |
| | | bo.setName(""); |
| | |
| | | import com.vci.ubcs.starter.web.enumpck.VciFieldTypeEnum; |
| | | import com.vci.ubcs.starter.web.pagemodel.DataGrid; |
| | | import com.vci.ubcs.starter.web.pagemodel.KeyValue; |
| | | import com.vci.ubcs.starter.web.util.LangBaseUtil; |
| | | import com.vci.ubcs.starter.web.util.VciBaseUtil; |
| | | import com.vci.ubcs.starter.web.util.VciDateUtil; |
| | | import lombok.AllArgsConstructor; |
| | |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.io.File; |
| | | import java.io.IOException; |
| | | import java.util.*; |
| | | import java.util.stream.Collectors; |
| | | |
| | |
| | | String redisUUid=batchImportCodes(orderDTO,templateVO,dataSet,errorMap,true); |
| | | CodeImProtRusultVO codeImProtRusultVO = new CodeImProtRusultVO(); |
| | | List<String> needRowIndexList = new ArrayList<>(); |
| | | // String filePath = returnErrorToExcel(dataSet.getRowData(), errorMap, needRowIndexList, dataSet.getColName()); |
| | | // if(StringUtils.isNotBlank(filePath)) { |
| | | // codeImProtRusultVO.setFilePath(filePath); |
| | | // } |
| | | // if(StringUtils.isNotBlank(redisUUid)){ |
| | | // codeImProtRusultVO.setRedisUuid(redisUUid); |
| | | // } |
| | | return null; |
| | | // return codeImProtRusultVO; |
| | | String filePath = returnErrorToExcel(dataSet.getRowData(), errorMap, needRowIndexList, dataSet.getColName()); |
| | | if(StringUtils.isNotBlank(filePath)) { |
| | | codeImProtRusultVO.setFilePath(filePath); |
| | | } |
| | | if(StringUtils.isNotBlank(redisUUid)){ |
| | | codeImProtRusultVO.setRedisUuid(redisUUid); |
| | | } |
| | | // return null; |
| | | return codeImProtRusultVO; |
| | | } |
| | | |
| | | /** |
| | | * é误信æ¯è¿åexcel |
| | | * @param rowDataList ææç导å
¥æ°æ® |
| | | * @param errorMap é误çä¿¡æ¯ |
| | | * @param needRowIndexList éè¦åå
¥çæ°æ®çè¡å· |
| | | * @param titleRowData æ é¢è¡ |
| | | * |
| | | * @return é误çexcelæä»¶ï¼æ²¡æé误ä¼è¿å空 |
| | | */ |
| | | private String returnErrorToExcel(Collection<SheetRowData> rowDataList, |
| | | Map<String,String> errorMap, |
| | | List<String> needRowIndexList,List<String> titleRowData){ |
| | | if(CollectionUtils.isEmpty(errorMap)){ |
| | | return ""; |
| | | } |
| | | Map<String, SheetRowData> rowIndexDataMap = rowDataList.stream().filter(s -> !needRowIndexList.contains(s.getRowIndex())).collect(Collectors.toMap(s -> s.getRowIndex(), t -> t)); |
| | | List<WriteExcelData> errorDataList = new ArrayList<>(); |
| | | errorDataList.add(new WriteExcelData(0,0,"é误信æ¯")); |
| | | for (int i = 0; i < titleRowData.size(); i++) { |
| | | //é误信æ¯å¨æå |
| | | errorDataList.add(new WriteExcelData(0,i+1,titleRowData.get(i))); |
| | | } |
| | | Integer[] newRowIndex = new Integer[]{1}; |
| | | errorMap.forEach((index,error)->{ |
| | | //é误信æ¯å
¨é¨ç»åå°ä¸èµ· |
| | | SheetRowData rowData = rowIndexDataMap.getOrDefault(index, null); |
| | | if(rowData!=null){ |
| | | errorDataList.add(new WriteExcelData(newRowIndex[0],0,error)); |
| | | rowData.getData().forEach((colIndex,value)->{ |
| | | errorDataList.add(new WriteExcelData(newRowIndex[0],colIndex+1,value)); |
| | | }); |
| | | newRowIndex[0]++; |
| | | } |
| | | }); |
| | | String excelFileName = LocalFileUtil.getDefaultTempFolder() + File.separator + "é误信æ¯.xls"; |
| | | WriteExcelOption eo = new WriteExcelOption(errorDataList); |
| | | try { |
| | | new File(excelFileName).createNewFile(); |
| | | } catch (IOException e) { |
| | | throw new VciBaseException(LangBaseUtil.getErrorMsg(e)); |
| | | } |
| | | ExcelUtil.writeDataToFile(excelFileName,eo); |
| | | return excelFileName; |
| | | } |
| | | |
| | | /** |
| | |
| | | order by id asc |
| | | </select> |
| | | |
| | | <select id="selectCodeClassifyDOByTree" resultMap="plCodeClassifyResultMap"> |
| | | select codeclassify0.OWNER as owner, |
| | | codeclassify0.BTMTYPEID as btmtypeid, |
| | | codeclassify0.CREATOR as creator, |
| | | codeclassify0.CREATETIME as createtime, |
| | | codeclassify0.LASTMODIFIER as lastmodifier, |
| | | codeclassify0.DESCRIPTION as description, |
| | | codeclassify0.ORDERNUM as ordernum, |
| | | codeclassify0.CODERULEOID as coderuleoid, |
| | | codeclassify0.OID as oid, |
| | | codeclassify0.BTMNAME as btmname, |
| | | codeclassify0.BTMTYPENAME as btmtypename, |
| | | codeclassify0.CODEKEYATTRREPEATOID as codekeyattrrepeatoid, |
| | | codeclassify0.PARENTCODECLASSIFYOID as parentcodeclassifyoid, |
| | | codeclassify0.NAME as name, |
| | | codeclassify0.LASTMODIFYTIME as lastmodifytime, |
| | | codeclassify0.ID as id, |
| | | codeclassify0.CODERESEMBLERULEOID as coderesembleruleoid, |
| | | codeclassify0.LCSTATUS as lcstatus, |
| | | codeclassify0.TS as ts, |
| | | coderuleoid.name as codeRuleOidName, |
| | | codekeyattrrepeatoid.name as codeKeyAttrRepeatOidName, |
| | | coderesembleruleoid.name as codeResembleRuleOidName |
| | | from pl_code_classify codeclassify0 |
| | | left join pl_code_rule coderuleoid |
| | | on codeclassify0.codeRuleOid = coderuleoid.oid |
| | | left join pl_code_keyattrrepeat codekeyattrrepeatoid |
| | | on codeclassify0.codeKeyAttrRepeatOid = codekeyattrrepeatoid.oid |
| | | left join pl_code_resemblerule coderesembleruleoid |
| | | on codeclassify0.codeResembleRuleOid = coderesembleruleoid.oid |
| | | where codeclassify0.lcstatus = #{lcstatus} |
| | | <if test="parentcodeclassifyoid != null and parentcodeclassifyoid != ''"> |
| | | and codeclassify0.parentcodeclassifyoid = #{parentcodeclassifyoid} |
| | | </if> |
| | | <if test="parentcodeclassifyoid == null or parentcodeclassifyoid == ''"> |
| | | and codeclassify0.parentcodeclassifyoid is null |
| | | and codeclassify0.id = #{id} |
| | | </if> |
| | | order by id asc |
| | | </select> |
| | | |
| | | <select id="selectClassifyByKeyAndReseRel" resultMap="plCodeClassifyResultMap"> |
| | | SELECT PCC.*, |
| | | PCK.NAME AS CODEKEYATTRREPEATOIDNAME, |
| | | PCR.NAME AS CODERESEMBLERULEOIDNAME, |
| | | PCE.NAME CODERULEOIDNAME |
| | | FROM PL_CODE_CLASSIFY PCC |
| | | LEFT JOIN PL_CODE_KEYATTRREPEAT PCK |
| | | ON PCC.CODEKEYATTRREPEATOID = PCK.OID |
| | | LEFT JOIN PL_CODE_RESEMBLERULE PCR |
| | | ON PCC.CODERESEMBLERULEOID = PCR.OID |
| | | LEFT JOIN PL_CODE_RULE PCE |
| | | ON PCC.CODERULEOID = PCE.OID |
| | | WHERE PCC.OID IN (${oids}) |
| | | </select> |
| | | |
| | | </mapper> |
| | |
| | | where codeclstempattr0.classifytemplateoid = #{oid} |
| | | </select> |
| | | |
| | | <select id="selectByClassifytemplateoidRel" resultMap="CodeClstempattrResultMap"> |
| | | select PCC.*, PLT.NAME classifyTemplateOidName |
| | | from PL_CODE_CLSTEMPATTR PCC, PL_CODE_CLSTEMPLATE PLT |
| | | where PCC.CLASSIFYTEMPLATEOID = PLT.OID |
| | | AND PCC.classifytemplateoid IN (${oid}) |
| | | ORDER BY PCC.ORDERNUM ASC |
| | | </select> |
| | | |
| | | |
| | | </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.CodeResembleRuleMapper"> |
| | | |
| | | <!-- éç¨æ¥è¯¢æ å°ç»æ --> |
| | | <resultMap id="CodeResembleRuleResultMap" type="com.vci.ubcs.code.entity.CodeResembleRule"> |
| | | <id property="oid" column="OID"/> |
| | | <result property="btmname" column="BTMNAME"/> |
| | | <result property="revisionOid" column="REVISIONOID"/> |
| | | <result property="nameOid" column="NAMEOID"/> |
| | | <result property="lastR" column="LASTR"/> |
| | | <result property="firstR" column="FIRSTR"/> |
| | | <result property="lastV" column="LASTV"/> |
| | | <result property="firstV" column="FIRSTV"/> |
| | | <result property="creator" column="CREATOR"/> |
| | | <result property="createTime" column="CREATETIME"/> |
| | | <result property="lastModifier" column="LASTMODIFIER"/> |
| | | <result property="lastModifyTime" column="LASTMODIFYTIME"/> |
| | | <result property="revisionRule" column="REVISIONVALUE"/> |
| | | <result property="versionRule" column="VISIONRULE"/> |
| | | <result property="revisionValue" column="REVISIONRULE"/> |
| | | <result property="versionValue" column="VERSIONVALUE"/> |
| | | <result property="revisionSeq" column="REVISIONSEQ"/> |
| | | <result property="versionSeq" column="VERSIONSEQ"/> |
| | | <result property="lctid" column="LCTID"/> |
| | | <result property="lcStatus" column="LCSTATUS"/> |
| | | <result property="ts" column="TS"/> |
| | | <result property="id" column="ID"/> |
| | | <result property="name" column="NAME"/> |
| | | <result property="description" column="DESCRIPTION"/> |
| | | <result property="owner" column="OWNER"/> |
| | | <result property="copyFromVersion" column="COPYFROMVERSION"/> |
| | | <result property="ignoreCaseFlag" column="IGNORECASEFLAG"/> |
| | | <result property="ignoreSpaceFlag" column="IGNORESPACEFLAG"/> |
| | | <result property="ignoreAllSpaceFlag" column="IGNOREALLSPACEFLAG"/> |
| | | <result property="ignoreWidthFlag" column="IGNOREWIDTHFLAG"/> |
| | | <result property="linkCharacter" column="LINKCHARACTER"/> |
| | | </resultMap> |
| | | |
| | | </mapper> |
| | |
| | | ${inSql} |
| | | </select> |
| | | |
| | | <select id="queryByOnlySqlForMap" resultType="java.util.Map"> |
| | | ${inSql} |
| | | </select> |
| | | |
| | | <insert id="insertByBaseModel" parameterType="java.util.Map"> |
| | | insert into ${tableName} |
| | | ( |
| | |
| | | <artifactId>orai18n</artifactId> |
| | | <version>${orai18n.version}</version> |
| | | </dependency> |
| | | <dependency> |
| | | <groupId>com.vci.ubcs</groupId> |
| | | <artifactId>ubcs-code-api</artifactId> |
| | | <version>3.0.1.RELEASE</version> |
| | | <scope>compile</scope> |
| | | </dependency> |
| | | </dependencies> |
| | | |
| | | <build> |
| | |
| | | import lombok.AllArgsConstructor; |
| | | import org.springblade.core.tenant.annotation.NonDS; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import springfox.documentation.annotations.ApiIgnore; |
| | | |
| | | import java.util.List; |
| | |
| | | public R<Menu> getMenu(Long id) { |
| | | return R.data(menuService.getById(id)); |
| | | } |
| | | @Override |
| | | @GetMapping(MENU_BUTTON) |
| | | public R<List<Menu>> getMenuButtonByType(String btmType) { |
| | | return R.data(menuService.getMenuButtonByType(btmType)); |
| | | } |
| | | |
| | | @Override |
| | | @GetMapping(DEPT) |
| | |
| | | * @return |
| | | */ |
| | | List<Menu> allMenu(); |
| | | /** |
| | | * æ ¹æ®ä¸å¡ç±»åæ¥è¯¢èåçåæé® |
| | | * |
| | | * @return |
| | | */ |
| | | List<Menu> selectMenuChildByBtnType(String btmType); |
| | | |
| | | /** |
| | | * æéé
ç½®èå |
| | |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import org.springblade.core.secure.BladeUser; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springblade.core.tool.node.TreeNode; |
| | | import org.springblade.core.tool.support.Kv; |
| | | import com.vci.ubcs.system.entity.Menu; |
| | |
| | | * @return |
| | | */ |
| | | boolean submit(Menu menu); |
| | | |
| | | /** |
| | | * è·åèåä¸é¢çæé® |
| | | * |
| | | * @param btmType ä¸å¡ç±»å |
| | | * @return List<Menu> |
| | | */ |
| | | List<Menu> getMenuButtonByType(String btmType); |
| | | } |
| | |
| | | import com.vci.ubcs.system.service.ITopMenuSettingService; |
| | | import com.vci.ubcs.system.wrapper.MenuWrapper; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springblade.core.log.exception.ServiceException; |
| | | import com.vci.ubcs.core.log.exception.ServiceException; |
| | | import org.springblade.core.secure.BladeUser; |
| | | import org.springblade.core.secure.utils.AuthUtil; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springblade.core.tool.constant.BladeConstant; |
| | | import org.springblade.core.tool.node.ForestNodeMerger; |
| | | import org.springblade.core.tool.node.TreeNode; |
| | |
| | | return saveOrUpdate(menu); |
| | | } |
| | | |
| | | @Override |
| | | public List<Menu> getMenuButtonByType(String btmType) { |
| | | return baseMapper.selectMenuChildByBtnType(btmType); |
| | | } |
| | | |
| | | } |
| | |
| | | GROUP BY m.path |
| | | </select> |
| | | |
| | | <select id="selectMenuChildByBtnType" resultMap="menuResultMap"> |
| | | select pm.* |
| | | from pl_sys_menu ps, pl_sys_menu pm |
| | | where ps.is_deleted = 0 |
| | | and ps.category = 1 |
| | | and ps.alias = #{btmType} |
| | | and ps.id = pm.parent_id order by pm.sort asc |
| | | </select> |
| | | |
| | | </mapper> |