Merge remote-tracking branch 'origin/master'
# Conflicts:
# Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/controller/CodeSyncUniversalController.java
| | |
| | | params: params |
| | | }) |
| | | } |
| | | //åç±»æææ |
| | | export const sysInfoTree = (params) => { |
| | | return request({ |
| | | url: '/api/ubcs-code/codeApplyWebManagementController/getSystemClassifyRoleTree', |
| | | method: 'get', |
| | | params: params |
| | | }) |
| | | } |
| | |
| | | handler(newval,oldval){ |
| | | if(newval){ |
| | | this.TreeValueForm=newval; |
| | | // console.log(this.TreeValueForm) |
| | | } |
| | | }, |
| | | deep:true, |
| | |
| | | if (this.eventList) { |
| | | this.eventFlag= this.eventList.some(item => { |
| | | if (item.classifyInvokeEditFlag === 'true') { |
| | | console.log('even', item); |
| | | this.eventObject = item; |
| | | return true; |
| | | } |
| | | }); |
| | | // console.log('add',add) |
| | | } |
| | | // æ éåç»æ°æ® |
| | | let column = []; |
| | | let group = []; |
| | | let dictKeys = []; |
| | | let slotColumnList = []; |
| | | let value='' |
| | | formItemList.forEach((formItem) => { |
| | | formItem = this.resetFormConfig(formItem); |
| | | console.log(formItem) |
| | | // console.log('formItem.dicData.value',formItem.dicData) |
| | | if (formItem.type === "line") { |
| | | group.push({ |
| | | label: formItem.text, |
| | |
| | | value: "key", |
| | | }, |
| | | }; |
| | | // console.log('columnItem',columnItem) |
| | | slotColumnList.push(columnItem); |
| | | // console.log('slotColumnList',slotColumnList) |
| | | if (group.length === 0) { |
| | | column.push(columnItem); |
| | | } else { |
| | |
| | | }, |
| | | // 使ç¨ä¼ å
¥çè¡¨åæ°æ®é
ç½® |
| | | resetFormConfig(formItem) { |
| | | // console.log(this.selfColumnConfig) |
| | | for (const configType in this.selfColumnConfig) { |
| | | if (Object.hasOwnProperty.call(this.selfColumnConfig, configType)) { |
| | | const element = this.selfColumnConfig[configType]; |
| | |
| | | if (Object.hasOwnProperty.call(element, newAttr)) { |
| | | const oldAttr = element[newAttr]; |
| | | formItem[newAttr] = formItem[oldAttr]; |
| | | // console.log(formItem) |
| | | // console.log(newAttr,oldAttr) |
| | | // console.log(formItem[newAttr],formItem[oldAttr]) |
| | | } |
| | | } |
| | | } else if (configType === "directVoluation") { |
| | |
| | | ); |
| | | }, |
| | | setReferValue(data) { |
| | | // console.log(data) |
| | | debugger; |
| | | if (data.field) { |
| | | this.form[data.field] = data.value || ""; |
| | | this.form[data.showField] = data.text || ""; |
| | |
| | | if (!_item.attributes) { |
| | | _item.attributes = _item; |
| | | } |
| | | if (!_item.attributes.data) { |
| | | _item.attributes.data = {}; |
| | | } |
| | | if (mapFields.length == 1) { |
| | | var mapField = mapFields[0]; |
| | | if (mapField.indexOf("attribute.") > -1) { |
| | | temp = _item['attributes'][mapField.subString("attribute.".length)]; |
| | | temp = _item['attributes'][mapField.subString("attribute.".length)] || _item['attributes']['data'][mapField.subString("attribute.".length)]; |
| | | } else { |
| | | temp = _item['attributes'][mapField] || _item[mapField]; |
| | | temp = _item['attributes'][mapField] ||_item['attributes']['data'][mapField] || _item[mapField]; |
| | | } |
| | | } else { |
| | | //æå¤ä¸ª |
| | | var mutiTemp = []; |
| | | layui.each(mapFields, function (_indexField, _itemField) { |
| | | if (_itemField.indexOf("attribute.") > -1) { |
| | | mutiTemp.push(_item['attributes'][_itemField.subString("attribute.".length)]); |
| | | mutiTemp.push(_item['attributes'][_itemField.subString("attribute.".length)] || _item['attributes']['data'][_itemField.subString("attribute.".length)]); |
| | | } else { |
| | | mutiTemp.push(_item['attributes'][_itemField] || _item[_itemField]); |
| | | mutiTemp.push(_item['attributes'][_itemField] || _item['attributes']['data'][_itemField] || _item[_itemField]); |
| | | } |
| | | }); |
| | | temp = mutiTemp.join(' '); |
| | |
| | | } else { |
| | | this.showResembleQuery = false; |
| | | } |
| | | // console.log(this.hasResemble, "this.hasResemblethis.hasResemble"); |
| | | this.$nextTick(() => { |
| | | this.$refs.FormTemplate.templateRender( |
| | | res.data.formDefineVO.items |
| | |
| | | that.showCodeApply = false; |
| | | } |
| | | } |
| | | // console.log(' this.secVOList',that.secVOList) |
| | | // console.log(' res.data.data.secVOList',res.data.data.secVOList) |
| | | }); |
| | | }, |
| | | getFormData(form) { |
| | |
| | | } else if (item.secType == "coderefersec") { |
| | | //å¼ç¨ç 段 |
| | | params = JSON.parse(item.referValueInfo); |
| | | // console.log('item',item) |
| | | console.log('params',params) |
| | | } |
| | | return params; |
| | | }, |
| | |
| | | if (item.parentClassifySecOid === field) { |
| | | this.$refs.CodeApply.form[item.oid] = undefined; |
| | | this.$refs.CodeApply.form[item.name] = undefined; |
| | | item.readOnly = false; |
| | | item.referConfig.extraParams.parentClassifyValueOid = data.value; |
| | | } |
| | | return item; |
| | | }); |
| | |
| | | </el-dialog> |
| | | |
| | | <avue-input v-model="text" :disabled="disabled" :placeholder="title" @click="!disabled && (visible=true)"></avue-input> |
| | | <!--<avue-input-table ref="referTable" :props="props" :column="column" :on-load="onLoad" v-model="value" :placeholder="title" ></avue-input-table> |
| | | --> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | this.page.currentPage=this.referConfig.options.tableConfig.page.page || this.referConfig.options.tableConfig.page.currentPage; |
| | | }else if(!validatenull(this.referConfig.options.limit)){ |
| | | this.page.pageSize=this.referConfig.options.limit |
| | | }else if(!validatenull(this.referConfig.options.tableConfig.limit)){ |
| | | this.page.pageSize=this.referConfig.options.tableConfig.limit |
| | | } |
| | | }, |
| | | computed:{ |
| | |
| | | queryParams['referBo'] = this.options['referBo'] || this.options['referType']; |
| | | } |
| | | queryParams['referType'] = queryParams['referBo'] |
| | | if (this.options.remoteSort && this.options.initSort) { |
| | | if (this.options.initSort) { |
| | | queryParams['order'] = this.options.initSort.type;//æ¹æ³ |
| | | queryParams['sort'] = this.options.initSort.field;//åæ®µ |
| | | } |
| | |
| | | text.push(itemText); |
| | | } |
| | | }) |
| | | let mapFields; |
| | | if (this.options.mapFields == "") { |
| | | mapFields = this.referConfig.fieldMap; |
| | | } else { |
| | | |
| | | let mapFields =this.referConfig.fieldMap || {}; |
| | | try { |
| | | if(!validatenull(this.options.mapFields)){ |
| | | mapFields = Object.assign(this.referConfig.fieldMap, JSON.parse(this.options.mapFields)); |
| | | } |
| | | }catch (e) { |
| | | |
| | | } |
| | | this.value=value.join(','); |
| | | this.text=text.join(',') |
| | | this.$emit("setValue", {field:this.referConfig.field,showField:this.referConfig.showField,value:this.value,text:this.text,rawData:this.selectionList,fieldMap:mapFields}); |
| | |
| | | </el-dialog> |
| | | |
| | | <avue-input v-model="text" :disabled="disabled" :placeholder="title" @click="!disabled && (visible=true)"></avue-input> |
| | | <!--<avue-input-table ref="referTable" :props="props" :column="column" :on-load="onLoad" v-model="value" :placeholder="title" ></avue-input-table> |
| | | --> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | this.page.currentPage=this.referConfig.options.tableConfig.page.page || this.referConfig.options.tableConfig.page.currentPage; |
| | | }else if(!validatenull(this.referConfig.options.limit)){ |
| | | this.page.pageSize=this.referConfig.options.limit |
| | | }else if(!validatenull(this.referConfig.options.tableConfig.limit)){ |
| | | this.page.pageSize=this.referConfig.options.tableConfig.limit |
| | | } |
| | | this.$nextTick(() => { |
| | | this.$refs.referCrud.doLayout() |
| | |
| | | queryParams['referBo'] = this.options['referBo'] || this.options['referType']; |
| | | } |
| | | queryParams['referType']= queryParams['referBo'] |
| | | if (this.options.remoteSort && this.options.initSort) { |
| | | if (this.options.initSort) { |
| | | queryParams['order'] = this.options.initSort.type;//æ¹æ³ |
| | | queryParams['sort'] = this.options.initSort.field;//åæ®µ |
| | | } |
| | |
| | | text.push(itemText); |
| | | } |
| | | }) |
| | | let mapFields =Object.assign(this.referConfig.fieldMap,JSON.parse(this.options.mapFields)) ; |
| | | let mapFields =this.referConfig.fieldMap || {}; |
| | | try { |
| | | if(!validatenull(this.options.mapFields)){ |
| | | mapFields =Object.assign(this.referConfig.fieldMap,JSON.parse(this.options.mapFields)) ; |
| | | } |
| | | }catch (e) { |
| | | |
| | | } |
| | | this.value=value.join(','); |
| | | this.text=text.join(',') |
| | | this.$emit("setValue", {field:this.referConfig.field,showField:this.referConfig.showField,value:this.value,text:this.text,rawData:this.selectionList,fieldMap:mapFields}); |
| | |
| | | <template> |
| | | <avue-input-tree ref="referTree" :props="props" :disabled="disabled" :lazy="lazy" :tree-load="treeLoad" :node-click="nodeClick" :checked="checked" :leaf-only="referConfig.onlyLeaf" :multiple="isMuti" v-model="value" :placeholder="title" :dic="treeData"></avue-input-tree> |
| | | <avue-input-tree ref="referTree" :props="props" :disabled="disabled" :lazy="lazy" :tree-load="treeLoad" :node-click="nodeClick" :checked="checked" :blur="valueChange" :leaf-only="referConfig.onlyLeaf" :multiple="isMuti" v-model="value" :placeholder="title" :dic="treeData"></avue-input-tree> |
| | | </template> |
| | | |
| | | <script> |
| | |
| | | }, |
| | | treeUrl: this.referConfig.options.url || '/api/ubcs-code/mdmEngineController/defaultReferTree', |
| | | treeData: [], |
| | | selectionList: [], |
| | | checkedData:[], |
| | | currentNode:{}, |
| | | params: {}, |
| | | loadType: {'all': 'all', 'node': 'node'}, |
| | |
| | | }, |
| | | created() { |
| | | this.getParams(); |
| | | // console.log('referConfig:') |
| | | // console.log(this.referConfig) |
| | | }, |
| | | mounted() { |
| | | if(!this.lazy){ |
| | |
| | | queryParams['loadType'] = this.options.loadType; |
| | | queryParams['multipleSelect'] = this.isMuti; |
| | | queryParams['isMuti'] = queryParams['multipleSelect']; |
| | | if (this.options.remoteSort && this.options.initSort) { |
| | | if (this.options.initSort) { |
| | | queryParams['order'] = this.options.initSort.type;//æ¹æ³ |
| | | queryParams['sort'] = this.options.initSort.field;//åæ®µ |
| | | } |
| | | if (this.options.rootParams) { |
| | | for (var key in this.options.rootParams) { |
| | | queryParams[key] = this.options.rootParams[key]; |
| | | } |
| | | } |
| | | if(this.options.sortField){ |
| | | queryParams['sort'] = this.options.sortField;//åæ®µ |
| | | } |
| | | if(this.options.sortType){ |
| | | queryParams['order'] = this.options.sortType;//æ¹æ³ |
| | | } |
| | | if (this.options.rootParams) { |
| | | for (var key in this.options.rootParams) { |
| | | queryParams[key] = this.options.rootParams[key]; |
| | | } |
| | | } |
| | | if (this.options.conditionParams) { |
| | | //è¯´ææ¯æ©å±å±æ§ |
| | |
| | | queryParams['replaceMap["' + key + '"]'] = this.options.replaceParams[key];//æ°çæ¹å¼ |
| | | } |
| | | } |
| | | queryParams['parentValue']='\\IN(SELECT oid from PL_CODE_CLASSIFY where id =\'hesuanfenlei\')' |
| | | this.params=queryParams; |
| | | |
| | | }, |
| | |
| | | } |
| | | }, |
| | | checked(checkedNode, checkedData) { |
| | | this.setValue(checkedData) |
| | | this.checkedData=checkedData |
| | | }, |
| | | valueChange(){ |
| | | if(this.isMuti){ |
| | | // this.setValue(this.checkedData) |
| | | } |
| | | }, |
| | | setValue:function (checkedData){ |
| | | var value = []; |
| | |
| | | } |
| | | text.push(tempRaw.join(textSep)); |
| | | } |
| | | let mapFields =this.referConfig.fieldMap || {}; |
| | | try { |
| | | if(!validatenull(this.options.mapFields)){ |
| | | mapFields =Object.assign(this.referConfig.fieldMap,JSON.parse(this.options.mapFields)) ; |
| | | } |
| | | }catch (e) { |
| | | |
| | | } |
| | | this.value = value.join(','); |
| | | this.text = text.join(',') |
| | | this.text = text.join(','); |
| | | this.$emit("setValue", { |
| | | field: this.referConfig.field, |
| | | showField: this.referConfig.showField, |
| | |
| | | text: this.text || '', |
| | | isTreeMuti:this.isMuti, |
| | | rawData: checkedData.checkedNodes, |
| | | fieldMap:this.referConfig.fieldMap |
| | | fieldMap:mapFields |
| | | }); |
| | | } |
| | | }, |
| | |
| | | <template> |
| | | <p>æµè¯</p> |
| | | |
| | | </template> |
| | | |
| | | <script> |
| | |
| | | export default { |
| | | name: "sso", |
| | | data() { |
| | | return { |
| | | loginForm:{ |
| | | //ç§æ·ID |
| | | tenantId: "", |
| | | //é¨é¨ID |
| | | deptId: "", |
| | | //è§è²ID |
| | | roleId: "", |
| | | //ç¨æ·å |
| | | username: "", |
| | | //å¯ç |
| | | password: "", |
| | | selectInput: '', |
| | | //䏿inputæ°æ® |
| | | value: '管çç»', |
| | | //䏿èå |
| | | region: [], |
| | | //è´¦å·ç±»å |
| | | type: "account", |
| | | //éªè¯ç çç´¢å¼ |
| | | key: "", |
| | | //é¢å è½½ç½è²èæ¯ |
| | | image: "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7", |
| | | |
| | | return {} |
| | | }, |
| | | } |
| | | }, |
| | | computed: { |
| | | ...mapGetters(["tagWel", "userInfo"]) |
| | | }, |
| | | computed: {}, |
| | | created() { |
| | | |
| | | this.onLoad() |
| | | }, |
| | | methods: { |
| | | // Onload() { |
| | | // let name = 'pwdfree' |
| | | // oaSsos(name).then(res=>{ |
| | | // console.log(res) |
| | | // if(res.status === 200){ |
| | | // // this.loginForm.tenantId=res.data.tenant_id; |
| | | // // this.loginForm.username=res.data.user_name; |
| | | // this.$store.dispatch("LoginBySso").then((res) => { |
| | | // console.log('res',res) |
| | | // this.$router.push({path: this.tagWel.value}); |
| | | // }) |
| | | // // console.log(this.tagWel) |
| | | // // this.$router.push({path: this.tagWel.value}); |
| | | // } |
| | | // }) |
| | | // } |
| | | onLoad() { |
| | | const loading = this.$loading({ |
| | | lock: true, |
| | | text: 'Loading', |
| | | spinner: 'el-icon-loading', |
| | | background: 'rgba(0, 0, 0, 0.7)' |
| | | }); |
| | | setTimeout(() => { |
| | | loading.close(); |
| | | }, 2000); |
| | | |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | |
| | | props: [], |
| | | methods: { |
| | | ChandleLogin() { |
| | | this.$store.dispatch("LoginBySso").then((res) => { |
| | | console.log('res', res) |
| | | this.$router.push({path: this.tagWel.value}); |
| | | }) |
| | | // this.$store.dispatch("LoginBySso").then((res) => { |
| | | // console.log('res', res) |
| | | // this.$router.push({path: this.tagWel.value}); |
| | | // }) |
| | | this.$router.push({path:'/sso'}); |
| | | }, |
| | | closehandle() { |
| | | removeToken() |
| | |
| | | @clear="handleClear" @keyup.enter.native="handleEnter"></el-input> |
| | | </template> |
| | | <template #menu="{row,index,size}"> |
| | | <el-button type="text" icon="el-icon-menu" size="small" @click="classifyHandler">åç±»ææ</el-button> |
| | | <el-button icon="el-icon-menu" size="small" type="text" @click="classifyHandler(row)">åç±»ææ</el-button> |
| | | |
| | | </template> |
| | | </avue-crud> |
| | | <el-dialog :visible.sync="dialogVisible" append-to-body title="åç±»ææ"> |
| | | <el-dialog :visible.sync="dialogVisible" append-to-body class="avue-dialog avue-dialog--top" title="åç±»ææ" top="-10"> |
| | | |
| | | <el-row> |
| | | <el-col :span="10"> |
| | | <avue-tree ref="tree" |
| | | v-model="TreeForm" |
| | | :data="TreeData" |
| | | :option="TreeOption" |
| | | @check-change="checkChange"> |
| | | </avue-tree> |
| | | </el-col> |
| | | </el-row> |
| | | <div slot="footer" class="dialog-footer" style="height: 50px;line-height: 50px"> |
| | | <el-button type="primary" icon="el-icon-plus" size="small">æ æ</el-button> |
| | | <el-button icon="el-icon-close" size="small" type="danger">é ç½®</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | </basic-container> |
| | | </template> |
| | | <script> |
| | | import {getSysInfoList, sysInfoAdd, sysInfoEdit, sysInfoDel} from '@/api/integration/sysInfo.js' |
| | | import {getSysInfoList, sysInfoAdd, sysInfoEdit, sysInfoDel, sysInfoTree} from '@/api/integration/sysInfo.js' |
| | | |
| | | export default { |
| | | data() { |
| | | return { |
| | | //é¿å
ç¼å |
| | | reload: Math.random(), |
| | | TreeLoading: false, |
| | | TreeOption: { |
| | | defaultExpandAll: false, |
| | | multiple: true, |
| | | addBtn: false, |
| | | filter: false |
| | | }, |
| | | TreeData: [], |
| | | TreeForm: {}, |
| | | loading: false, |
| | | dialogVisible:false, |
| | | page: { |
| | |
| | | }, |
| | | } |
| | | }, |
| | | |
| | | methods: { |
| | | //åç±»ææå¤éåè° |
| | | checkChange(row,checked) { |
| | | // console.log(row) |
| | | // if(checked){ |
| | | // |
| | | // } |
| | | }, |
| | | //åç±»ææ |
| | | classifyHandler(){ |
| | | classifyHandler(row) { |
| | | this.loading = true; |
| | | sysInfoTree({systemOid: row.oid, systemId: row.id}).then(res => { |
| | | this.TreeData = res.data; |
| | | this.ModifyProperties(this.TreeData, 'text', 'label'); |
| | | // æ ¹æ® this.TreeData çé¿åº¦è®¡ç®å»¶è¿æ¶é´ |
| | | const delayTime = this.TreeData.length * 1; |
| | | setTimeout(() => { |
| | | this.loading = false; |
| | | this.reload = Math.random() |
| | | this.dialogVisible=true; |
| | | }, delayTime); |
| | | }); |
| | | }, |
| | | //å®ä¹ä¸ä¸ªä¿®æ¹æ°æ®å±æ§åçæ¹æ³ |
| | | ModifyProperties(obj, oldName, newName) { |
| | | for (let key in obj) { |
| | | if (key === oldName) { |
| | | obj[newName] = obj[key]; |
| | | delete obj[key]; |
| | | } |
| | | if (typeof obj[key] === 'object') { |
| | | this.ModifyProperties(obj[key], oldName, newName); |
| | | } |
| | | } |
| | | }, |
| | | async getDataList() { |
| | | this.loading = true; |
| | |
| | | }, |
| | | // å¤é |
| | | selectionChange(list) { |
| | | console.log(list) |
| | | let newData = list.map(item => { |
| | | const {oid} = item |
| | | return oid |
| | | }) |
| | | this.delIds = {oids: newData.toString()} |
| | | console.log(this.delIds) |
| | | // console.log(this.delIds) |
| | | }, |
| | | } |
| | | } |
| | |
| | | */ |
| | | @XStreamAlias("object") |
| | | public class ApplyDataVO { |
| | | |
| | | /*** |
| | | * è¾å
¥ä¸»é® |
| | | */ |
| | | @XStreamAsAttribute |
| | | private String id; |
| | | /** |
| | | * ç¼ç |
| | | * èµ·å§æä¿®è®¢ç¼å· |
| | | */ |
| | | @XStreamAsAttribute |
| | | private String code; |
| | |
| | | */ |
| | | @XStreamAsAttribute |
| | | private String editor; |
| | | |
| | | /*** |
| | | * æ¯å¦ä¿®è®¢ |
| | | */ |
| | | private boolean amendmentFlag; |
| | | /*** |
| | | *æ¯å¦æ¯ç³»åæ å |
| | | */ |
| | | private boolean seriesStandardFlag; |
| | | /** |
| | | * æ¯å¦ç»§ç»ç¼å· |
| | | */ |
| | | private boolean continueNumberFlag; |
| | | /*** |
| | | * å¹´ä»£å· |
| | | */ |
| | | private String yearNumber; |
| | | /*** |
| | | * æ°æ®å±æ§å¯¹è±¡ |
| | | */ |
| | |
| | | this.prop = prop; |
| | | } |
| | | |
| | | public boolean isAmendmentFlag() { |
| | | return amendmentFlag; |
| | | } |
| | | |
| | | public void setAmendmentFlag(boolean amendmentFlag) { |
| | | this.amendmentFlag = amendmentFlag; |
| | | } |
| | | |
| | | public boolean isSeriesStandardFlag() { |
| | | return seriesStandardFlag; |
| | | } |
| | | |
| | | public void setSeriesStandardFlag(boolean seriesStandardFlag) { |
| | | this.seriesStandardFlag = seriesStandardFlag; |
| | | } |
| | | |
| | | public boolean isContinueNumberFlag() { |
| | | return continueNumberFlag; |
| | | } |
| | | |
| | | public void setContinueNumberFlag(boolean continueNumberFlag) { |
| | | this.continueNumberFlag = continueNumberFlag; |
| | | } |
| | | |
| | | public String getYearNumber() { |
| | | return yearNumber; |
| | | } |
| | | |
| | | public void setYearNumber(String yearNumber) { |
| | | this.yearNumber = yearNumber; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "ApplyDataVO{" + |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.vo.webserviceModel.applybz; |
| | | |
| | | import com.thoughtworks.xstream.annotations.XStreamAlias; |
| | | import com.thoughtworks.xstream.annotations.XStreamAsAttribute; |
| | | import com.thoughtworks.xstream.annotations.XStreamImplicit; |
| | | import com.vci.ubcs.code.vo.webserviceModel.apply.ProppertyVO; |
| | | |
| | | import java.util.List; |
| | | |
| | | @XStreamAlias("object") |
| | | public class ApplyBZDataVO { |
| | | /*** |
| | | * è¾å
¥ä¸»é® |
| | | */ |
| | | @XStreamAsAttribute |
| | | private String id; |
| | | /** |
| | | * ç¼ç |
| | | */ |
| | | @XStreamAsAttribute |
| | | private String code; |
| | | /** |
| | | * ç¶æ |
| | | */ |
| | | @XStreamAsAttribute |
| | | private String status; |
| | | /*** |
| | | * å建è
|
| | | */ |
| | | @XStreamAsAttribute |
| | | private String creator; |
| | | |
| | | /** |
| | | * æ´æ¹è
|
| | | */ |
| | | @XStreamAsAttribute |
| | | private String editor; |
| | | /*** |
| | | * æ°æ®å±æ§å¯¹è±¡ |
| | | */ |
| | | @XStreamImplicit |
| | | private List<ProppertyVO> prop; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.vo.webserviceModel.applybz; |
| | | |
| | | import com.thoughtworks.xstream.annotations.XStreamAlias; |
| | | import com.thoughtworks.xstream.annotations.XStreamImplicit; |
| | | import com.vci.ubcs.code.vo.webserviceModel.apply.ApplyDataVO; |
| | | |
| | | import java.util.List; |
| | | |
| | | @XStreamAlias("objects") |
| | | public class ApplyBZDatasVO { |
| | | @XStreamImplicit |
| | | private List<ApplyBZDataVO> object; |
| | | |
| | | public List<ApplyBZDataVO> getObject() { |
| | | return object; |
| | | } |
| | | |
| | | public void setObject(List<ApplyBZDataVO> object) { |
| | | this.object = object; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "ApplyDatasVO{" + |
| | | "object=" + object + |
| | | '}'; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.vo.webserviceModel.applybz; |
| | | |
| | | public class ApplyBZParamVO { |
| | | private ApplyBZVO data; |
| | | public ApplyBZVO getData() { |
| | | return data; |
| | | } |
| | | public void setData(ApplyBZVO data) { |
| | | this.data = data; |
| | | } |
| | | @Override |
| | | public String toString() { |
| | | return "InterParameterVO{" + |
| | | "data=" + data + |
| | | '}'; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.vo.webserviceModel.applybz; |
| | | |
| | | import com.thoughtworks.xstream.annotations.XStreamAlias; |
| | | import com.thoughtworks.xstream.annotations.XStreamAsAttribute; |
| | | import com.vci.ubcs.code.vo.webserviceModel.apply.UserVO; |
| | | /** |
| | | *æ°æ®ä¿¡æ¯ |
| | | */ |
| | | @XStreamAlias("data") |
| | | public class ApplyBZVO { |
| | | /*** |
| | | * éæç³»ç»æ è¯ |
| | | */ |
| | | @XStreamAsAttribute |
| | | private String systemId; |
| | | /** |
| | | * æä½ç¨æ·ä¿¡æ¯ |
| | | */ |
| | | private UserVO user; |
| | | |
| | | private ClassfyBZVO classify; |
| | | |
| | | public String getSystemId() { |
| | | return systemId; |
| | | } |
| | | |
| | | public void setSystemId(String systemId) { |
| | | this.systemId = systemId; |
| | | } |
| | | |
| | | public UserVO getUser() { |
| | | return user; |
| | | } |
| | | |
| | | public void setUser(UserVO user) { |
| | | this.user = user; |
| | | } |
| | | |
| | | public ClassfyBZVO getClassify() { |
| | | return classify; |
| | | } |
| | | |
| | | public void setClassify(ClassfyBZVO classify) { |
| | | this.classify = classify; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "ApplyBZVO{" + |
| | | "systemId='" + systemId + '\'' + |
| | | ", user=" + user + |
| | | ", classify=" + classify + |
| | | '}'; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.vo.webserviceModel.applybz; |
| | | |
| | | import com.thoughtworks.xstream.annotations.XStreamAlias; |
| | | import com.thoughtworks.xstream.annotations.XStreamAsAttribute; |
| | | import com.vci.ubcs.code.vo.webserviceModel.apply.ApplyDatasVO; |
| | | |
| | | /** |
| | | * åç±»ä¿¡æ¯ |
| | | */ |
| | | @XStreamAlias("classify") |
| | | public class ClassfyBZVO { |
| | | /** |
| | | * åç±»ä»£å· |
| | | */ |
| | | @XStreamAsAttribute |
| | | private String classCode; |
| | | /** |
| | | * åºä»£å· |
| | | */ |
| | | @XStreamAsAttribute |
| | | private String library; |
| | | /** |
| | | * ç±»è·¯å¾ |
| | | */ |
| | | @XStreamAsAttribute |
| | | private String fullclsfNamePath; |
| | | /** |
| | | * æ°æ®éå |
| | | */ |
| | | private ApplyDatasVO objects; |
| | | |
| | | public String getClassCode() { |
| | | return classCode; |
| | | } |
| | | |
| | | public void setClassCode(String classCode) { |
| | | this.classCode = classCode; |
| | | } |
| | | |
| | | public String getLibrary() { |
| | | return library; |
| | | } |
| | | |
| | | public void setLibrary(String library) { |
| | | this.library = library; |
| | | } |
| | | |
| | | public String getFullclsfNamePath() { |
| | | return fullclsfNamePath; |
| | | } |
| | | |
| | | public void setFullclsfNamePath(String fullclsfNamePath) { |
| | | this.fullclsfNamePath = fullclsfNamePath; |
| | | } |
| | | |
| | | public ApplyDatasVO getObjects() { |
| | | return objects; |
| | | } |
| | | |
| | | public void setObjects(ApplyDatasVO objects) { |
| | | this.objects = objects; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "ClassfyBZVO{" + |
| | | "classCode='" + classCode + '\'' + |
| | | ", library='" + library + '\'' + |
| | | ", fullclsfNamePath='" + fullclsfNamePath + '\'' + |
| | | ", objects=" + objects + |
| | | '}'; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.vo.webserviceModel.applybz; |
| | | |
| | | import com.thoughtworks.xstream.annotations.XStreamAlias; |
| | | import com.thoughtworks.xstream.annotations.XStreamAsAttribute; |
| | | |
| | | @XStreamAlias("prop") |
| | | public class ProppertyBZVO { |
| | | /** |
| | | * 屿§å段 |
| | | */ |
| | | @XStreamAsAttribute |
| | | private String key; |
| | | /** |
| | | * 屿§æ¾ç¤ºåç§° |
| | | */ |
| | | @XStreamAsAttribute |
| | | private String text; |
| | | /** |
| | | * 屿§å¼ |
| | | */ |
| | | @XStreamAsAttribute |
| | | private String value; |
| | | |
| | | public String getKey() { |
| | | return key; |
| | | } |
| | | |
| | | public void setKey(String key) { |
| | | this.key = key; |
| | | } |
| | | |
| | | public String getText() { |
| | | return text; |
| | | } |
| | | |
| | | public void setText(String text) { |
| | | this.text = text; |
| | | } |
| | | |
| | | public String getValue() { |
| | | return value; |
| | | } |
| | | |
| | | public void setValue(String value) { |
| | | this.value = value; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "ProppertyVO{" + |
| | | "key='" + key + '\'' + |
| | | ", text='" + text + '\'' + |
| | | ", value='" + value + '\'' + |
| | | '}'; |
| | | } |
| | | } |
| | |
| | | |
| | | import java.util.List; |
| | | |
| | | @XStreamAlias("classfy") |
| | | @XStreamAlias("classify") |
| | | public class XMLResultClassfyVO { |
| | | @XStreamAsAttribute |
| | | private String classCode; |
| | |
| | | @PostMapping( "/batchAddSave") |
| | | public R batchAddSave(@RequestBody List<SystemClassifyRole> list,String systemOid,String systemId){ |
| | | return codeApplyWebManagementService.batchAddSave(list,systemOid,systemId); |
| | | // return R.success("dddd"); |
| | | } |
| | | |
| | | @GetMapping("/getSystemClassifyRoleTree") |
| | |
| | | public String applyCode(@RequestParam("dataString")String dataString, @RequestParam("dataType")String dataType, HttpServletRequest request) { |
| | | String result=""; |
| | | try { |
| | | this.setHttpToThreadLocal(request); |
| | | ThreadLocal<HttpServletRequest> threadLocal = new ThreadLocal<>(); |
| | | threadLocal.set(request); |
| | | universalInterfaceI.setThreadLocal(threadLocal); |
| | | result = universalInterfaceI.applyCode(dataString, dataType); |
| | | }catch (Throwable e){ |
| | | e.printStackTrace(); |
| | |
| | | * @throws Throwable |
| | | */ |
| | | @PostMapping("/syncData") |
| | | public String syncData(@RequestParam("dataString")String dataString,@RequestParam("dataType")String dataType, HttpServletRequest request) { |
| | | public String syncData(@RequestParam("dataString")String dataString,@RequestParam("dataType")String dataType) { |
| | | String result=""; |
| | | try { |
| | | this.setHttpToThreadLocal(request); |
| | | result= universalInterfaceI.syncEditData(dataString,dataType); |
| | | }catch (Throwable e){ |
| | | e.printStackTrace();; |
| | |
| | | * @throws Throwable |
| | | */ |
| | | @PostMapping("/queryClassify") |
| | | public String queryClassify(@RequestParam("dataString")String dataString,@RequestParam("dataType")String dataType, HttpServletRequest request) throws Throwable { |
| | | public String queryClassify(@RequestParam("dataString")String dataString,@RequestParam("dataType")String dataType) throws Throwable { |
| | | String result=""; |
| | | try { |
| | | this.setHttpToThreadLocal(request); |
| | | result = universalInterfaceI.queryClassify(dataString, dataType); |
| | | }catch (Throwable e){ |
| | | e.printStackTrace(); |
| | |
| | | * @throws Throwable |
| | | */ |
| | | @PostMapping("/queryData") |
| | | public String queryData(@RequestParam("dataString")String dataString,@RequestParam("dataType")String dataType, HttpServletRequest request) throws Throwable { |
| | | public String queryData(@RequestParam("dataString")String dataString,@RequestParam("dataType")String dataType) throws Throwable { |
| | | String result=""; |
| | | try { |
| | | this.setHttpToThreadLocal(request); |
| | | result= universalInterfaceI.queryData(dataString,dataType); |
| | | }catch (Throwable e){ |
| | | e.printStackTrace(); |
| | |
| | | * @throws Throwable |
| | | */ |
| | | @PostMapping("/queryClassifyRule") |
| | | public String queryClassifyRule(@RequestParam("dataString")String dataString,@RequestParam("dataType")String dataType, HttpServletRequest request) throws Throwable { |
| | | public String queryClassifyRule(@RequestParam("dataString")String dataString,@RequestParam("dataType")String dataType) throws Throwable { |
| | | String result=""; |
| | | try { |
| | | this.setHttpToThreadLocal(request); |
| | | result= universalInterfaceI.queryClassifyRule(dataString,dataType); |
| | | }catch (Throwable e){ |
| | | e.printStackTrace(); |
| | | logger.error("queryData->"+e.getMessage()); |
| | | } |
| | | return result; |
| | | } |
| | | |
| | | /** |
| | | * 设置requestï¼å°ThreadLocalä¸ |
| | | * @param request |
| | | */ |
| | | public void setHttpToThreadLocal(HttpServletRequest request){ |
| | | ThreadLocal<HttpServletRequest> threadLocal = new ThreadLocal<>(); |
| | | threadLocal.set(request); |
| | | universalInterfaceI.setThreadLocal(threadLocal); |
| | | } |
| | | |
| | | } |
| | |
| | | public interface UniversalInterfaceI { |
| | | /** |
| | | *ç»ä¸ç³è¯·ç¼ç æ¥å£ |
| | | * |
| | | * @param data ä¼ éçæ°æ®åæ° |
| | | * @param dataType æ è¯dataæ¯xmlæ ¼å¼è¿æ¯jsonæ ¼å¼ï¼æ¥å£è¿åæ°æ®ä¹æ¯æç
§è¿ä¸ªæ ¼å¼ï¼ä»¥ä¸æ¥å£ç±»å |
| | | * @return xmlæ ¼å¼/jsonæ ¼å¼ |
| | |
| | | * @throws Throwable |
| | | */ |
| | | public ResultOrgData syncDataForPerson(PersonData personData); |
| | | |
| | | /**** |
| | | * é¨é¨æ°æ®åæ¥ |
| | | * @param orgData |
| | |
| | | */ |
| | | public String queryClassifyRule(String data,String datatype)throws Throwable; |
| | | |
| | | /**** |
| | | * æ ååç³è¯·æ¥å£ |
| | | * @param data æ°æ®ä¿¡æ¯ |
| | | * @param dataType æ°æ®æ ¼å¼ç±»å |
| | | * @return |
| | | * @throws Throwable |
| | | */ |
| | | public String applyCodeForBZ(String data,String dataType) throws Throwable; |
| | | } |
| | |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.ArrayList; |
| | | import java.util.Date; |
| | | import java.util.Iterator; |
| | | import java.util.List; |
| | | import java.util.stream.Collectors; |
| | | |
| | | @Service |
| | | public class CodeApplyWebManagementServiceImpl extends ServiceImpl<SystemClassifyRoleMapper, SystemClassifyRole> implements ICodeApplyWebManagementService { |
| | |
| | | QueryWrapper<SystemClassifyRole> wrapper = new QueryWrapper<>(); |
| | | wrapper.eq("systemOid",systemOid); |
| | | wrapper.eq("systemId",systemId); |
| | | List<SystemClassifyRole> systemClassifyRoles = this.listByIds(roleList.stream().map(SystemClassifyRole ::getOid).collect(Collectors.toList()));; |
| | | this.remove(wrapper); |
| | | List<SystemClassifyRole> newSCRoles = new ArrayList<>(); |
| | | //æ°æ®å¤ç |
| | | systemClassifyRoles.stream().forEach(classifyRole ->{ |
| | | classifyRole.setCreator(String.valueOf(AuthUtil.getUser().getUserId())); |
| | | classifyRole.setCreateTime(new Date()); |
| | | classifyRole.setLastModifier(String.valueOf(AuthUtil.getUser().getUserId())); |
| | | classifyRole.setLastModifyTime(new Date()); |
| | | classifyRole.setTs(new Date()); |
| | | }); |
| | | newSCRoles.addAll(systemClassifyRoles); |
| | | //å¤çæ°éæ©çæ°æ® |
| | | roleList.stream().forEach(systemClassifyRole -> { |
| | | if(StringUtil.isBlank(systemClassifyRole.getOid())){ |
| | | DefaultAttrAssimtUtil.addDefaultAttrAssimt(systemClassifyRole,"systemClassifyRole"); |
| | | systemClassifyRole.setSystemId(systemId); |
| | | systemClassifyRole.setSystemOid(systemOid); |
| | | }else{ |
| | | systemClassifyRole.setCreator(String.valueOf(AuthUtil.getUser().getUserId())); |
| | | systemClassifyRole.setCreateTime(new Date()); |
| | | systemClassifyRole.setLastModifier(String.valueOf(AuthUtil.getUser().getUserId())); |
| | | systemClassifyRole.setLastModifyTime(new Date()); |
| | | systemClassifyRole.setTs(new Date()); |
| | | } |
| | | systemClassifyRole.setTenantId(AuthUtil.getTenantId()); |
| | | systemClassifyRole.setSelected(true); |
| | | newSCRoles.add(systemClassifyRole); |
| | | } |
| | | }); |
| | | //ä¿å |
| | | this.saveBatch(roleList); |
| | | this.saveBatch(newSCRoles); |
| | | return R.success("æä½æå"); |
| | | } |
| | | |
| | |
| | | import com.vci.ubcs.code.util.ClientBusinessObject; |
| | | import com.vci.ubcs.code.util.gennerAttrMapUtil; |
| | | import com.vci.ubcs.code.vo.pagemodel.*; |
| | | import com.vci.ubcs.code.vo.webserviceModel.applybz.ApplyBZParamVO; |
| | | import com.vci.ubcs.code.vo.webserviceModel.applybz.ApplyBZVO; |
| | | import com.vci.ubcs.code.vo.webserviceModel.person.*; |
| | | import com.vci.ubcs.code.vo.webserviceModel.apply.*; |
| | | import com.vci.ubcs.code.vo.webserviceModel.attrmap.*; |
| | |
| | | return resultStr; |
| | | } |
| | | |
| | | public String applyCodeForBZ(String data,String dataType){ |
| | | String resultStr = ""; |
| | | // log.info("æ¹æ³->applyCodeForBZ start"); |
| | | // |
| | | // final String[] errorid = {"0"}; |
| | | // msg="æå"; |
| | | // objerrorCode="0"; |
| | | // objerrorMsg="æå"; |
| | | // log.info("ç³è¯·ç¼ç çæ°æ®åæ°:->"+data); |
| | | // log.info("ç³è¯·ç¼ç çæ°æ®ç±»å:->"+dataType); |
| | | // String systemId=""; |
| | | // List<XMLResultClassfyVO> resultClassfyVOList = new ArrayList<>(); |
| | | // LinkedList<XMLResultDataObjectDetailDO> resultDataObjectDetailDOs = new LinkedList<>(); |
| | | // try{ |
| | | // try { |
| | | // if(StringUtils.isBlank(data)) { |
| | | // errorid[0] ="101"; |
| | | // throw new Throwable("æ¥å£åæ°ï¼ä¼ é为空"); |
| | | // } |
| | | // ApplyBZParamVO applyBZParamVO =new ApplyBZParamVO(); |
| | | // //妿dataTypeæ¯xmlåï¼éè¿xmlåºååæå¯¹è±¡å½¢å¼ï¼å¦ææ¯jsonåéè¿jsonè½¬æ¢æå¯¹è±¡æ ¼å¼ |
| | | // try { |
| | | // if ("xml".equals(dataType)) { |
| | | // XStream xStream = new XStream(new DomDriver()); |
| | | // xStream.processAnnotations(RootDataVO.class); |
| | | // xStream.autodetectAnnotations(true); |
| | | // ApplyBZVO rootDataVO = (ApplyBZVO) xStream.fromXML(data); |
| | | // applyBZParamVO.setData(rootDataVO); |
| | | // } else { |
| | | // applyBZParamVO = JSONObject.toJavaObject(JSONObject.parseObject(data), ApplyBZParamVO.class); |
| | | // } |
| | | // }catch (Throwable e){ |
| | | // errorid[0] ="101"; |
| | | // throw new Throwable("æ¥å£åæ°ï¼ä¼ å
¥æ°æ®åæ°è§£æå¤±è´¥"); |
| | | // } |
| | | // ClassfysVO classfysVO = interParameterVO.getData().getClassifys(); |
| | | // systemId = interParameterVO.getData().getSystemId(); |
| | | // UserVO userVo = interParameterVO.getData().getUser(); |
| | | // //å
å¯ç»å½ç³è¯·tokenï¼request䏿·»å ç¨æ·ä¿¡æ¯ |
| | | // passwordFreeLoginService.passwordFreeLogin(userVo.getUserName(),this.getRequest()); |
| | | // AuthUtil.getUser(); |
| | | // List<ClassfyVO> classVOList = classfysVO.getClassify(); |
| | | // InterParameterVO finalInterParameterVO = interParameterVO; |
| | | // //è¿æ¯è´¦å·ä¿¡æ¯ |
| | | // SessionInfo sessionInfo = new SessionInfo(); |
| | | // sessionInfo.setUserId(userVo.getUserName()); |
| | | // sessionInfo.setUserName(userVo.getTrueName()); |
| | | // sessionInfo.setIp(userVo.getIp()); |
| | | // VciBaseUtil.setCurrentUserSessionInfo(sessionInfo); |
| | | //// List<XMLResultDataObjectDetailDO> allResultDataObjectDetailDOS=new ArrayList<>(); |
| | | // String finalSystemId = systemId; |
| | | // } catch (Throwable e) { |
| | | // List<ApplyDataVO> applyDataVOList= classVO.getObjects().getObject(); |
| | | // objerrorCode="1"; |
| | | // if(!CollectionUtils.isEmpty(applyDataVOList)) { |
| | | // applyDataVOList.stream().forEach(applyDataVO -> { |
| | | // XMLResultDataObjectDetailDO xmlResultDataObjectDetailDO = new XMLResultDataObjectDetailDO(); |
| | | // xmlResultDataObjectDetailDO.setCode(""); |
| | | // xmlResultDataObjectDetailDO.setId(applyDataVO.getId()); |
| | | // xmlResultDataObjectDetailDO.setErrorid(objerrorCode); |
| | | // xmlResultDataObjectDetailDO.setMsg("ç¼ç ç³è¯·å¤±è´¥:" + e.getMessage()); |
| | | // resultDataObjectDetailDOs.add(xmlResultDataObjectDetailDO); |
| | | // }); |
| | | // }else{ |
| | | // XMLResultDataObjectDetailDO xmlResultDataObjectDetailDO = new XMLResultDataObjectDetailDO(); |
| | | // xmlResultDataObjectDetailDO.setCode(""); |
| | | // xmlResultDataObjectDetailDO.setId(""); |
| | | // xmlResultDataObjectDetailDO.setErrorid(objerrorCode); |
| | | // xmlResultDataObjectDetailDO.setMsg("ç¼ç ç³è¯·å¤±è´¥:" + e.getMessage()); |
| | | // resultDataObjectDetailDOs.add(xmlResultDataObjectDetailDO); |
| | | // } |
| | | // e.printStackTrace(); |
| | | // }finally { |
| | | // XMLResultClassfyVO resultClassfyVO = new XMLResultClassfyVO(); |
| | | // resultClassfyVO.setClassCode(classVO.getClassCode()); |
| | | // resultClassfyVO.setLibrary(classVO.getLibrary()); |
| | | // resultClassfyVO.setFullclsfNamePath(classVO.getFullclsfNamePath()); |
| | | // resultClassfyVO.setObjects(resultDataObjectDetailDOs); |
| | | // resultClassfyVOList.add(resultClassfyVO); |
| | | // } |
| | | // XMLResultSystemVO xmlResultSystemVO=new XMLResultSystemVO(); |
| | | // xmlResultSystemVO.setClassifys(resultClassfyVOList); |
| | | // xmlResultSystemVO.setMsg(msg); |
| | | // xmlResultSystemVO.setErrorid(errorid[0]); |
| | | // resultStr= transferResultXMl(xmlResultSystemVO,dataType); |
| | | // }catch (Throwable e){ |
| | | // e.printStackTrace(); |
| | | // msg="ç³è¯·ç¼ç 失败:"+e.getMessage(); |
| | | // /* XMLResultSystemVO XMLResultSystemVO=new XMLResultSystemVO(); |
| | | // XMLResultSystemVO.setErrorid(errorid); |
| | | // XMLResultSystemVO.setMsg("ç³è¯·ç¼ç 失败ï¼->"+e.getMessage()); |
| | | // XMLResultSystemVO.setClassifys(resultClassfyVOList); |
| | | // resultStr=transferResultXMl(XMLResultSystemVO,dataType); |
| | | // |
| | | // log.error("ç³è¯·ç¼ç 失败ï¼->"+e); |
| | | // return resultStr;*/ |
| | | // }finally { |
| | | // XMLResultSystemVO xmlResultSystemVO=new XMLResultSystemVO(); |
| | | // xmlResultSystemVO.setClassifys(resultClassfyVOList); |
| | | // xmlResultSystemVO.setMsg(msg); |
| | | // xmlResultSystemVO.setErrorid(errorid[0]); |
| | | // resultStr= transferResultXMl(xmlResultSystemVO,dataType); |
| | | // final boolean[] issucess = {true}; |
| | | // if(!errorid[0].equals("0")) { |
| | | // issucess[0] = false; |
| | | // }else { |
| | | // if(!CollectionUtils.isEmpty(resultClassfyVOList)) { |
| | | // resultClassfyVOList.stream().forEach(xMLResultClassfyVO -> { |
| | | // xMLResultClassfyVO.getObjects().stream().forEach(objec -> { |
| | | // if (!(objec.getErrorid().equals("0") || objec.getErrorid().equals("204"))) { |
| | | // issucess[0] = false; |
| | | // msg=objec.getMsg(); |
| | | // } |
| | | // }); |
| | | // }); |
| | | // } |
| | | // } |
| | | // try { |
| | | // //è®°å½æ¥å¿ |
| | | // this.saveLogs(systemId, systemId, data, resultStr, issucess[0], msg, "applyCodeForBZ"); |
| | | // }catch (Throwable e){ |
| | | // e.printStackTrace(); |
| | | // } |
| | | // } |
| | | // log.info("è¿ååæ°:"+resultStr); |
| | | //è°ç¨éå¢ç³è¯·æ¥å£ç³è¯·éå¢ç |
| | | return resultStr; |
| | | } |
| | | /*** |
| | | * æ¥è¯¢æ ¡éªåç±»ä¿¡æ¯ |
| | | * @param classfyVO |
| | |
| | | pc.SYSTEMID, |
| | | p.oid CLASSIFYOID, |
| | | p.id CLASSIFYID, |
| | | case when pc.selected is null then 'false' else pc.SELECTED end SELECTED, |
| | | case when pc.selected is null then false else pc.SELECTED end SELECTED, |
| | | p.PARENTCODECLASSIFYOID CLASSPARENTOID |
| | | from PL_CODE_CLASSIFY p , |
| | | PL_CODE_SYSTEM_CLASSIFY_ROLE pc |