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 |
| | | }) |
| | | } |
| | |
| | | }, |
| | | created() { |
| | | |
| | | }, |
| | | }, |
| | | computed: { |
| | | localTrendsSpan() { |
| | | if (this.trendsSpan) { |
| | |
| | | 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, |
| | |
| | | referConfig: |
| | | formItem.type == "refer" |
| | | ? { |
| | | title: formItem.text, |
| | | showField: formItem.showField || formItem.field, |
| | | field: formItem.field, |
| | | fieldMap:formItem.fieldMap || {fieldMapKey:'id'}, |
| | | placeholder: formItem.inputTip, |
| | | options: formItem.referConfig |
| | | } |
| | | title: formItem.text, |
| | | showField: formItem.showField || formItem.field, |
| | | field: formItem.field, |
| | | fieldMap:formItem.fieldMap || {fieldMapKey:'id'}, |
| | | placeholder: formItem.inputTip, |
| | | options: formItem.referConfig |
| | | } |
| | | : {}, |
| | | span: formItem.span |
| | | ? formItem.span |
| | | : formItem.type === "textarea" |
| | | ? 24 |
| | | : this.localTrendsSpan, |
| | | ? 24 |
| | | : this.localTrendsSpan, |
| | | rules: [ |
| | | { |
| | | required: formItem.required, |
| | |
| | | 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; |
| | | }, |
| | |
| | | <template> |
| | | <el-dialog title="æå¤§æµæ°´å·" width="30%" append-to-body="true" class="avue-dialog avue-dialog--top" top="-3%" :visible.sync="dialogVisible"> |
| | | <el-form :label-position="right" ref="ruleForm" label-width="80px" :model="formModel" :rules="rules"> |
| | | <el-form-item label="æµæ°´å·" prop="maxSecNum"> |
| | | <el-input v-model="formModel.maxSecNum"></el-input> |
| | | </el-form-item> |
| | | </el-form> |
| | | <el-tabs v-model="activeName" type="border-card" @tab-click="handleClick"> |
| | | <el-tab-pane label="æå¤§æµæ°´å·" name="codeApply"> |
| | | <form-template v-bind="$attrs" type="add" :selfColumnType="selfColumnType" :trendsSpan="24" |
| | | :selfColumnConfig="selfColumnConfig" ref="CodeApply" @getFormData="getCodeApplyFormData" |
| | | @referConfigDataUpdate="referConfigDataUpdate"></form-template> |
| | | </el-tab-pane> |
| | | </el-tabs> |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button @click="cancel">å æ¶</el-button> |
| | | <el-button type="primary" :loading="confirmLoadding" @click="comfirm">ç¡® å®</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | <el-dialog title="æå¤§æµæ°´å·" width="30%" append-to-body="true" class="avue-dialog avue-dialog--top" top="-3%" :visible.sync="dialogVisible"> |
| | | <el-form :label-position="right" ref="ruleForm" label-width="80px" :model="formModel" :rules="rules"> |
| | | <el-form-item label="æµæ°´å·" prop="maxSecNum"> |
| | | <el-input v-model="formModel.maxSecNum"></el-input> |
| | | </el-form-item> |
| | | </el-form> |
| | | <el-tabs v-model="activeName" type="border-card" @tab-click="handleClick"> |
| | | <el-tab-pane label="æå¤§æµæ°´å·" name="codeApply"> |
| | | <form-template v-bind="$attrs" type="add" :selfColumnType="selfColumnType" :trendsSpan="24" |
| | | :selfColumnConfig="selfColumnConfig" ref="CodeApply" @getFormData="getCodeApplyFormData" |
| | | @referConfigDataUpdate="referConfigDataUpdate"></form-template> |
| | | </el-tab-pane> |
| | | </el-tabs> |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button @click="cancel">å æ¶</el-button> |
| | | <el-button type="primary" :loading="confirmLoadding" @click="comfirm">ç¡® å®</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | </template> |
| | | <script> |
| | | import FormTemplate from "@/components/FormTemplate/FormTemplate"; |
| | | import { getCodePrice, saveMaxSerialNum } from "@/api/code/maxSerialNum.js" |
| | | export default { |
| | | name: 'maxSerialnumDialog', |
| | | components: { |
| | | FormTemplate |
| | | name: 'maxSerialnumDialog', |
| | | components: { |
| | | FormTemplate |
| | | }, |
| | | props: { |
| | | // æ¯å¦æå¼ |
| | | visible: { |
| | | typeof: Boolean, |
| | | default: false |
| | | }, |
| | | props: { |
| | | // æ¯å¦æå¼ |
| | | visible: { |
| | | typeof: Boolean, |
| | | default: false |
| | | }, |
| | | // ruleOid |
| | | ruleOid: { |
| | | typeof: String, |
| | | default: "" |
| | | } |
| | | }, |
| | | watch: { |
| | | visible(n) { |
| | | this.dialogVisible = n; |
| | | }, |
| | | dialogVisible(n) { |
| | | this.$emit('update:visible', n) |
| | | if (n) this.apiGetCode() |
| | | }, |
| | | selfColumnConfig: { |
| | | handler(newval) { |
| | | // console.log('selfColumnConfig', newval) |
| | | }, |
| | | immediate: true, |
| | | deep: true |
| | | } |
| | | }, |
| | | data() { |
| | | return { |
| | | dialogVisible: this.visible, |
| | | activeName: 'codePrice', |
| | | confirmLoadding: false, |
| | | codeApplyForm: {}, |
| | | secVOList: [], |
| | | formModel: { |
| | | maxSecNum: '', |
| | | codeRuleOid: '', |
| | | secDTOList: [] |
| | | }, |
| | | rules: { |
| | | maxSecNum: [ |
| | | { required: true, message: '请è¾å
¥æµæ°´å·', trigger: 'blur' } |
| | | ], |
| | | }, |
| | | selfColumnType: { |
| | | codefixedsec: "combox",//åºå®ç 段 |
| | | codeclassifysec: "refer",//åç±»ç æ®µ |
| | | codevariablesec: "text",//å¯åç æ®µ |
| | | coderefersec: "refer",//å¼ç¨ç 段 |
| | | codeattrsec: "text", |
| | | codelevelsec: "text", |
| | | codedatesec: "date" |
| | | }, |
| | | selfColumnConfig: { |
| | | function: { |
| | | required: this.isRequired, |
| | | dicData: this.getOptionList, |
| | | type: this.getType, |
| | | referConfig: this.getReferConfig, |
| | | readOnly: this.getDisabled, |
| | | }, |
| | | exchange: { |
| | | text: "name", |
| | | field: "oid", |
| | | prop: "oid", |
| | | showField: "name", |
| | | parentClassifySecOid: "parentClassifySecOid", |
| | | label: "name", |
| | | maxlength: "codeSecLength", |
| | | data: "fixedValueVOList", |
| | | dateFormate: "codeDateFormatStr" |
| | | }, |
| | | directVoluation: { |
| | | search: true, |
| | | props: { |
| | | label: "id", |
| | | value: "id", |
| | | }, |
| | | }, |
| | | }, |
| | | } |
| | | }, |
| | | methods: { |
| | | // è·åç æ®µ |
| | | async apiGetCode() { |
| | | this.activeName = "codeApply"; |
| | | const response = await getCodePrice({ ruleOid: this.ruleOid }) |
| | | const res = response.data |
| | | if (res.success && res.code === 200) { |
| | | const typeList = [ |
| | | "codefixedsec", |
| | | "codeclassifysec", |
| | | "codevariablesec", |
| | | "coderefersec", |
| | | "codeattrsec", |
| | | "codelevelsec", |
| | | "codedatesec" |
| | | ]; |
| | | this.secVOList = (res.data.secVOList || []).filter((item) => |
| | | typeList.includes(item.secType) |
| | | ); |
| | | if (this.secVOList.length > 0) { |
| | | this.$nextTick(() => { |
| | | this.$refs.CodeApply.templateRender(this.secVOList); |
| | | }); |
| | | } else { |
| | | this.$refs.CodeApply.loading = false; |
| | | } |
| | | } |
| | | }, |
| | | handleClick(tab, event) { |
| | | // console.log(event) |
| | | }, |
| | | getCodeApplyFormData(codeApplyForm) { |
| | | this.codeApplyForm = codeApplyForm; |
| | | }, |
| | | // åæ¶ |
| | | cancel() { |
| | | this.dialogVisible = false |
| | | this.formModel['secDTOList'] = [] |
| | | this.formModel['codeRuleOid'] = '' |
| | | this.formModel['maxSecNum'] = '' |
| | | this.$refs.ruleForm.clearValidate('maxSecNum') |
| | | |
| | | }, |
| | | // 确认 |
| | | async comfirm() { |
| | | const objcodekey = Object.keys(this.codeApplyForm) |
| | | const filteredObj = objcodekey.reduce((acc, key) => { |
| | | const pattern = /[\u4e00-\u9fa5]/; // å¹é
䏿åç¬¦çæ£åè¡¨è¾¾å¼ |
| | | const patterns = /\$/; |
| | | if (!pattern.test(key)&&!patterns.test(key)) { |
| | | acc[key] = this.codeApplyForm[key]; |
| | | } |
| | | return acc; |
| | | }, {}); |
| | | |
| | | const arrCode = Object.entries(filteredObj).map(([key, value]) => { |
| | | return { |
| | | secOid: key, |
| | | secValue: value |
| | | } |
| | | }) |
| | | this.formModel['secDTOList'] = arrCode |
| | | this.formModel['codeRuleOid'] = this.ruleOid |
| | | this.confirmLoadding = true |
| | | const rule = await this.$refs.CodeApply.validate() |
| | | this.$refs.ruleForm.validate(res => { |
| | | if (rule && res) { |
| | | saveMaxSerialNum(this.formModel).then(res => { |
| | | if (res.data.success) { |
| | | this.$message.success('æä½æåï¼'); |
| | | this.confirmLoadding = false |
| | | this.cancel() |
| | | } |
| | | }).catch(error=>{ |
| | | this.confirmLoadding = false |
| | | }) |
| | | } else { |
| | | this.confirmLoadding = false |
| | | } |
| | | }) |
| | | |
| | | }, |
| | | // åç
§ç»ä»¶æ°æ®åæ´ |
| | | referConfigDataUpdate(data) { |
| | | const { field } = data; |
| | | this.secVOList = this.secVOList.map((item) => { |
| | | if (item.parentClassifySecOid === field) { |
| | | this.$refs.CodeApply.form[item.oid] = undefined; |
| | | this.$refs.CodeApply.form[item.name] = undefined; |
| | | } |
| | | return item; |
| | | }); |
| | | this.$refs.CodeApply.templateRender(this.secVOList); |
| | | }, |
| | | isRequired(item) { |
| | | return item.nullableFlag != "true"; |
| | | }, |
| | | getType(item) { |
| | | return this.selfColumnType[item.secType]; |
| | | }, |
| | | getDisabled(item) { |
| | | if (item.secType === "codeclassifysec") { |
| | | if (item.parentClassifySecOid) { |
| | | if (!this.codeApplyForm[item.parentClassifySecOid]) { |
| | | return true; |
| | | } else { |
| | | return false; |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | getReferConfig(item) { |
| | | let params = {}; |
| | | if (item.secType == "codeclassifysec") { |
| | | params = { |
| | | isMuti: false, |
| | | valueField: 'id', |
| | | type: "grid", |
| | | tableConfig: { |
| | | limit: -1, |
| | | cols: [ |
| | | { |
| | | field: "id", |
| | | title: "è±æåç§°", |
| | | sort: true, |
| | | width: 150, |
| | | }, |
| | | { |
| | | field: "name", |
| | | title: "䏿åç§°", |
| | | sort: true, |
| | | width: 150, |
| | | }, |
| | | { |
| | | field: "description", |
| | | title: "æè¿°", |
| | | width: 250, |
| | | }, |
| | | ], |
| | | queryColumns: [ |
| | | { |
| | | field: "id", |
| | | title: "è±æåç§°", |
| | | }, |
| | | { |
| | | field: "name", |
| | | title: "䏿åç§°", |
| | | }, |
| | | ], |
| | | }, |
| | | url: "api/ubcs-code/ubcs-code/mdmEngineController/listCodeClassifyValueBySecOid", |
| | | extraParams: { |
| | | classifySecOid: item.oid, |
| | | parentClassifyValueOid: item.parentClassifySecOid |
| | | ? this.codeApplyForm[item.parentClassifySecOid] |
| | | : "", |
| | | }, |
| | | }; |
| | | } else if (item.secType == "coderefersec") { |
| | | params = JSON.parse(item.referValueInfo); |
| | | } |
| | | // console.log(params) |
| | | return params; |
| | | |
| | | }, |
| | | getOptionList(item) { |
| | | if ( |
| | | Array.isArray(item.fixedValueVOList) && |
| | | item.fixedValueVOList.length > 0 |
| | | ) { |
| | | const configAttr = { |
| | | key: "id", |
| | | value: "id", |
| | | }; |
| | | const optionList = item.fixedValueVOList.map((item) => { |
| | | for (const key in configAttr) { |
| | | if (Object.hasOwnProperty.call(configAttr, key)) { |
| | | const element = configAttr[key]; |
| | | item[key] = item[element]; |
| | | } |
| | | } |
| | | return item; |
| | | }); |
| | | return optionList; |
| | | } else { |
| | | return []; |
| | | } |
| | | }, |
| | | // ruleOid |
| | | ruleOid: { |
| | | typeof: String, |
| | | default: "" |
| | | } |
| | | }, |
| | | watch: { |
| | | visible(n) { |
| | | this.dialogVisible = n; |
| | | }, |
| | | dialogVisible(n) { |
| | | this.$emit('update:visible', n) |
| | | if (n) this.apiGetCode() |
| | | }, |
| | | selfColumnConfig: { |
| | | handler(newval) { |
| | | // console.log('selfColumnConfig', newval) |
| | | }, |
| | | immediate: true, |
| | | deep: true |
| | | } |
| | | }, |
| | | data() { |
| | | return { |
| | | dialogVisible: this.visible, |
| | | activeName: 'codePrice', |
| | | confirmLoadding: false, |
| | | codeApplyForm: {}, |
| | | secVOList: [], |
| | | formModel: { |
| | | maxSecNum: '', |
| | | codeRuleOid: '', |
| | | secDTOList: [] |
| | | }, |
| | | rules: { |
| | | maxSecNum: [ |
| | | { required: true, message: '请è¾å
¥æµæ°´å·', trigger: 'blur' } |
| | | ], |
| | | }, |
| | | selfColumnType: { |
| | | codefixedsec: "combox",//åºå®ç 段 |
| | | codeclassifysec: "refer",//åç±»ç æ®µ |
| | | codevariablesec: "text",//å¯åç æ®µ |
| | | coderefersec: "refer",//å¼ç¨ç 段 |
| | | codeattrsec: "text", |
| | | codelevelsec: "text", |
| | | codedatesec: "date" |
| | | }, |
| | | selfColumnConfig: { |
| | | function: { |
| | | required: this.isRequired, |
| | | dicData: this.getOptionList, |
| | | type: this.getType, |
| | | referConfig: this.getReferConfig, |
| | | readOnly: this.getDisabled, |
| | | }, |
| | | exchange: { |
| | | text: "name", |
| | | field: "oid", |
| | | prop: "oid", |
| | | showField: "name", |
| | | parentClassifySecOid: "parentClassifySecOid", |
| | | label: "name", |
| | | maxlength: "codeSecLength", |
| | | data: "fixedValueVOList", |
| | | dateFormate: "codeDateFormatStr" |
| | | }, |
| | | directVoluation: { |
| | | search: true, |
| | | props: { |
| | | label: "id", |
| | | value: "id", |
| | | }, |
| | | }, |
| | | }, |
| | | } |
| | | }, |
| | | methods: { |
| | | // è·åç æ®µ |
| | | async apiGetCode() { |
| | | this.activeName = "codeApply"; |
| | | const response = await getCodePrice({ ruleOid: this.ruleOid }) |
| | | const res = response.data |
| | | if (res.success && res.code === 200) { |
| | | const typeList = [ |
| | | "codefixedsec", |
| | | "codeclassifysec", |
| | | "codevariablesec", |
| | | "coderefersec", |
| | | "codeattrsec", |
| | | "codelevelsec", |
| | | "codedatesec" |
| | | ]; |
| | | this.secVOList = (res.data.secVOList || []).filter((item) => |
| | | typeList.includes(item.secType) |
| | | ); |
| | | if (this.secVOList.length > 0) { |
| | | this.$nextTick(() => { |
| | | this.$refs.CodeApply.templateRender(this.secVOList); |
| | | }); |
| | | } else { |
| | | this.$refs.CodeApply.loading = false; |
| | | } |
| | | } |
| | | }, |
| | | handleClick(tab, event) { |
| | | // console.log(event) |
| | | }, |
| | | getCodeApplyFormData(codeApplyForm) { |
| | | this.codeApplyForm = codeApplyForm; |
| | | }, |
| | | // åæ¶ |
| | | cancel() { |
| | | this.dialogVisible = false |
| | | this.formModel['secDTOList'] = [] |
| | | this.formModel['codeRuleOid'] = '' |
| | | this.formModel['maxSecNum'] = '' |
| | | this.$refs.ruleForm.clearValidate('maxSecNum') |
| | | |
| | | }, |
| | | // 确认 |
| | | async comfirm() { |
| | | const objcodekey = Object.keys(this.codeApplyForm) |
| | | const filteredObj = objcodekey.reduce((acc, key) => { |
| | | const pattern = /[\u4e00-\u9fa5]/; // å¹é
䏿åç¬¦çæ£åè¡¨è¾¾å¼ |
| | | const patterns = /\$/; |
| | | if (!pattern.test(key)&&!patterns.test(key)) { |
| | | acc[key] = this.codeApplyForm[key]; |
| | | } |
| | | return acc; |
| | | }, {}); |
| | | |
| | | const arrCode = Object.entries(filteredObj).map(([key, value]) => { |
| | | return { |
| | | secOid: key, |
| | | secValue: value |
| | | } |
| | | }) |
| | | this.formModel['secDTOList'] = arrCode |
| | | this.formModel['codeRuleOid'] = this.ruleOid |
| | | this.confirmLoadding = true |
| | | const rule = await this.$refs.CodeApply.validate() |
| | | this.$refs.ruleForm.validate(res => { |
| | | if (rule && res) { |
| | | saveMaxSerialNum(this.formModel).then(res => { |
| | | if (res.data.success) { |
| | | this.$message.success('æä½æåï¼'); |
| | | this.confirmLoadding = false |
| | | this.cancel() |
| | | } |
| | | }).catch(error=>{ |
| | | this.confirmLoadding = false |
| | | }) |
| | | } else { |
| | | this.confirmLoadding = false |
| | | } |
| | | }) |
| | | |
| | | }, |
| | | // åç
§ç»ä»¶æ°æ®åæ´ |
| | | referConfigDataUpdate(data) { |
| | | const {field} = data; |
| | | this.secVOList = this.secVOList.map((item) => { |
| | | 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; |
| | | }); |
| | | this.$refs.CodeApply.templateRender(this.secVOList); |
| | | }, |
| | | isRequired(item) { |
| | | return item.nullableFlag != "true"; |
| | | }, |
| | | getType(item) { |
| | | return this.selfColumnType[item.secType]; |
| | | }, |
| | | getDisabled(item) { |
| | | if (item.secType === "codeclassifysec") { |
| | | if (item.parentClassifySecOid) { |
| | | if (!this.codeApplyForm[item.parentClassifySecOid]) { |
| | | return true; |
| | | } else { |
| | | return false; |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | getReferConfig(item) { |
| | | let params = {}; |
| | | if (item.secType == "codeclassifysec") { |
| | | params = { |
| | | isMuti: false, |
| | | valueField: 'id', |
| | | type: "grid", |
| | | tableConfig: { |
| | | limit: -1, |
| | | cols: [ |
| | | { |
| | | field: "id", |
| | | title: "è±æåç§°", |
| | | sort: true, |
| | | width: 150, |
| | | }, |
| | | { |
| | | field: "name", |
| | | title: "䏿åç§°", |
| | | sort: true, |
| | | width: 150, |
| | | }, |
| | | { |
| | | field: "description", |
| | | title: "æè¿°", |
| | | width: 250, |
| | | }, |
| | | ], |
| | | queryColumns: [ |
| | | { |
| | | field: "id", |
| | | title: "è±æåç§°", |
| | | }, |
| | | { |
| | | field: "name", |
| | | title: "䏿åç§°", |
| | | }, |
| | | ], |
| | | }, |
| | | url: "api/ubcs-code/ubcs-code/mdmEngineController/listCodeClassifyValueBySecOid", |
| | | extraParams: { |
| | | classifySecOid: item.oid, |
| | | parentClassifyValueOid: item.parentClassifySecOid |
| | | ? this.codeApplyForm[item.parentClassifySecOid] |
| | | : "", |
| | | }, |
| | | }; |
| | | } else if (item.secType == "coderefersec") { |
| | | params = JSON.parse(item.referValueInfo); |
| | | } |
| | | // console.log(params) |
| | | return params; |
| | | |
| | | }, |
| | | getOptionList(item) { |
| | | if ( |
| | | Array.isArray(item.fixedValueVOList) && |
| | | item.fixedValueVOList.length > 0 |
| | | ) { |
| | | const configAttr = { |
| | | key: "id", |
| | | value: "id", |
| | | }; |
| | | const optionList = item.fixedValueVOList.map((item) => { |
| | | for (const key in configAttr) { |
| | | if (Object.hasOwnProperty.call(configAttr, key)) { |
| | | const element = configAttr[key]; |
| | | item[key] = item[element]; |
| | | } |
| | | } |
| | | return item; |
| | | }); |
| | | return optionList; |
| | | } else { |
| | | return []; |
| | | } |
| | | }, |
| | | } |
| | | } |
| | | </script> |
| | |
| | | </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 { |
| | | 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(',') |
| | |
| | | </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; |
| | | |
| | | }, |
| | |
| | | if(!this.isMuti) { |
| | | this.setValue({checkedNodes:[data]}) |
| | | } |
| | | }, |
| | | }, |
| | | 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, |
| | | dialogVisible: false, |
| | | page: { |
| | | currentPage: 1, |
| | | pageSize: 10, |
| | |
| | | }, |
| | | } |
| | | }, |
| | | |
| | | methods: { |
| | | //åç±»ææå¤éåè° |
| | | checkChange(row,checked) { |
| | | // console.log(row) |
| | | // if(checked){ |
| | | // |
| | | // } |
| | | }, |
| | | //åç±»ææ |
| | | classifyHandler(){ |
| | | this.dialogVisible=true; |
| | | 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; |
| | | console.log(this.search); |
| | | const { pageSize, currentPage } = this.page; |
| | | const {pageSize, currentPage} = this.page; |
| | | const conditions = {}; |
| | | if (Object.keys(this.search).length > 0) { |
| | | for (const key in this.search) { |
| | |
| | | }, |
| | | // å¤é |
| | | 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; |
| | | } |
| | | |
| | | @Override |
| | | 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{" + |
| | | "id='" + id + '\'' + |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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); |
| | | } |
| | | |
| | | } |
| | |
| | | |
| | | @WebService(targetNamespace = "http://code.ubcs.vci.com/",name = "universalInterface") |
| | | public interface UniversalInterfaceI { |
| | | /** |
| | | *ç»ä¸ç³è¯·ç¼ç æ¥å£ |
| | | * @param data ä¼ éçæ°æ®åæ° |
| | | * @param dataType æ è¯dataæ¯xmlæ ¼å¼è¿æ¯jsonæ ¼å¼ï¼æ¥å£è¿åæ°æ®ä¹æ¯æç
§è¿ä¸ªæ ¼å¼ï¼ä»¥ä¸æ¥å£ç±»å |
| | | * @return xmlæ ¼å¼/jsonæ ¼å¼ |
| | | * @throws Throwable |
| | | */ |
| | | public String applyCode(String data, String dataType)throws Throwable; |
| | | /** |
| | | * ç»ä¸ç³è¯·ç¼ç æ¥å£ |
| | | * |
| | | * @param data ä¼ éçæ°æ®åæ° |
| | | * @param dataType æ è¯dataæ¯xmlæ ¼å¼è¿æ¯jsonæ ¼å¼ï¼æ¥å£è¿åæ°æ®ä¹æ¯æç
§è¿ä¸ªæ ¼å¼ï¼ä»¥ä¸æ¥å£ç±»å |
| | | * @return xmlæ ¼å¼/jsonæ ¼å¼ |
| | | * @throws Throwable |
| | | */ |
| | | public String applyCode(String data, String dataType) throws Throwable; |
| | | |
| | | public void setThreadLocal(ThreadLocal<HttpServletRequest> threadLocal); |
| | | |
| | |
| | | * @throws Throwable |
| | | */ |
| | | public ResultOrgData syncDataForPerson(PersonData personData); |
| | | |
| | | /**** |
| | | * é¨é¨æ°æ®åæ¥ |
| | | * @param orgData |
| | |
| | | */ |
| | | public ResultOrgData syncDataForOrg(OrgData orgData); |
| | | |
| | | /*** |
| | | * ç»ä¸æ´æ°æ¥å£ |
| | | * @param data |
| | | * @param dataType |
| | | * @return |
| | | * @throws Throwable |
| | | */ |
| | | public String syncEditData(String data,String dataType)throws Throwable; |
| | | /*** |
| | | * ç»ä¸æ´æ°æ¥å£ |
| | | * @param data |
| | | * @param dataType |
| | | * @return |
| | | * @throws Throwable |
| | | */ |
| | | public String syncEditData(String data, String dataType) throws Throwable; |
| | | |
| | | /*** |
| | | * æ¥è¯¢åç±»å£ |
| | | * @param data |
| | | * @param dataType |
| | | * @throws Throwable |
| | | */ |
| | | public String queryClassify(String data,String dataType)throws Throwable; |
| | | /*** |
| | | * æ¥è¯¢åç±»å£ |
| | | * @param data |
| | | * @param dataType |
| | | * @throws Throwable |
| | | */ |
| | | public String queryClassify(String data, String dataType) throws Throwable; |
| | | |
| | | /*** |
| | | * æ¥è¯¢æ°æ® |
| | | * @param data |
| | | * @param dataType |
| | | * @throws Throwable |
| | | */ |
| | | public String queryData(String data,String dataType)throws Throwable; |
| | | /*** |
| | | * æ¥è¯¢æ°æ® |
| | | * @param data |
| | | * @param dataType |
| | | * @throws Throwable |
| | | */ |
| | | public String queryData(String data, String dataType) throws Throwable; |
| | | |
| | | /*** |
| | | * è¿åç¼ç è§åæ¥å£ |
| | | */ |
| | | public String queryClassifyRule(String data,String datatype)throws Throwable; |
| | | 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); |
| | | } |
| | | systemClassifyRole.setTenantId(AuthUtil.getTenantId()); |
| | | }); |
| | | //ä¿å |
| | | 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 |