Merge remote-tracking branch 'origin/master'
| | |
| | | /tests/e2e/videos/ |
| | | /tests/e2e/screenshots/ |
| | | |
| | | |
| | | # local env files |
| | | .env.local |
| | | .env.*.local |
| | |
| | | :type="edit" |
| | | :visible.sync="DataVisible"></FormTemplateDialog> |
| | | <!-- åå¸--> |
| | | <set-personnel :parameter="this.parameter" :visible.sync="visibleFlow"></set-personnel> |
| | | <set-personnel :parameter="this.parameter" :visible.sync="visibleFlow" :title="title"></set-personnel> |
| | | <!-- åç¨--> |
| | | <set-personnel :parameter="this.parameter" :visible.sync="visibleDeactivate" :title="title"></set-personnel> |
| | | <!-- å¯ç¨--> |
| | | <set-personnel :parameter="this.parameter" :visible.sync="visibleEnable" :title="title"></set-personnel> |
| | | <!-- åæ¶--> |
| | | <set-personnel :parameter="this.parameter" :visible.sync="visibleRecovery" :title="title"></set-personnel> |
| | | <!-- é«çº§æ¥è¯¢--> |
| | | <advanced-query :options="this.options" :visible.sync="findvisible" @echoContion="echoContion"></advanced-query> |
| | | |
| | | <integration-transfer :data="transferData" :props="transferProps" :visible.sync="dialogPush" |
| | | @save="handelTransferSave"></integration-transfer> |
| | | <!-- 导åº--> |
| | | <MasterTransfer :visible.sync="dialogPush" :tableHeadData="tableHeadFindData"></MasterTransfer> |
| | | <!-- ç¸ä¼¼é¡¹--> |
| | | <ResembleQueryDialog :codeClassifyOid="codeClassifyOid" :codeRuleOid="this.codeRuleOid" :rowOid="rowOid" |
| | | :templateOid="templateOid" :visible.sync="similarVisible"></ResembleQueryDialog> |
| | | |
| | | <div class="block" style="display: flex; justify-content: flex-end"> |
| | | <el-pagination :current-page="page.currentPage" :page-size="page.pageSizes" :page-sizes="page.pageSizes" |
| | | :total="page.total" layout="total, sizes, prev, pager, next, jumper" |
| | |
| | | parameter: { |
| | | ids: [], |
| | | code: "", |
| | | type: "PUBLIC", |
| | | type: '', |
| | | // this.visibleDeactivate ?'ENABLE':this.visibleEnable ? 'DISABLE' :this.visibleRecovery ? 'ROLLBACK' :'PUBLIC' |
| | | template: "", |
| | | vars: { |
| | | codeClassifyOid: "", |
| | |
| | | } |
| | | }, |
| | | visibleNames:[], |
| | | //åå¸ |
| | | visibleFlow: false, |
| | | //åç¨ |
| | | visibleDeactivate:false, |
| | | //å¯ç¨ |
| | | visibleEnable:false, |
| | | //åæ¶ |
| | | visibleRecovery:false, |
| | | title:'', |
| | | transferData: [], |
| | | transferProps: { |
| | | key: "oid", |
| | |
| | | this.$refs.dataTable.doLayout() |
| | | } |
| | | }, |
| | | // åå¸ |
| | | setHandler() { |
| | | if (this.selectRow.length <= 0) { |
| | | this.$message.warning("è¯·éæ©ä¸æ¡æ°æ®"); |
| | | } else { |
| | | this.userName = localStorage.getItem("username"); |
| | | this.parameter.template = this.userName + "-åå¸" + "[ç©å]"; |
| | | this.visibleFlow = true; |
| | | } |
| | | }, |
| | | openVis(visible) { |
| | | console.log(visible) |
| | | this[visible] = true |
| | |
| | | // if(uniqueFlag === 'CODEEDIT') return this.openBatchImport('batchApplyCode') |
| | | if (uniqueFlag === 'CODESTARTPROCESS') return this.setHandler() |
| | | if (uniqueFlag === 'CODEUPREVISION') return this.DataChange() |
| | | if (uniqueFlag === 'CODERECYCLE') return this.huishouHandler() |
| | | if (uniqueFlag === 'CODEEXPORT') return this.openD() |
| | | if (uniqueFlag === 'CODEQUERY') return this.findHandler() |
| | | //åç¨ |
| | | if (uniqueFlag === 'CODEDISABLE') return this.Deactivate() |
| | | //å¯ç¨ |
| | | if (uniqueFlag === 'CODEENABLE') return this.Enable() |
| | | //åæ¶ |
| | | if (uniqueFlag === 'CODERECYCLE') return this.Recovery() |
| | | // ç¸ä¼¼é¡¹æ¥è¯¢ |
| | | // if(uniqueFlag === 'CODEEDIT') return this.similarHandler() |
| | | }); |
| | |
| | | rend() { |
| | | this.tableData = this.tableHeadData; |
| | | }, |
| | | // åå¸ |
| | | setHandler() { |
| | | // let EditFlag1=false |
| | | // let EditFlag2=false |
| | | // if(EditFlag1){ |
| | | // this.$message.warning('åªæç¶ææ¯ãç¼è¾ä¸ãçæ°æ®æå¯ä»¥åèµ·æµç¨') |
| | | // }else if(EditFlag2){ |
| | | // this.$message.warning('æ¨éæ©çæ°æ®å
¨é¨ä¸ºãç¼è¾ä¸ãæå¯ä»¥åèµ·æµç¨') |
| | | // } |
| | | this.selectRow.forEach(item=>{ |
| | | if(this.selectRow.length === 1 && item.lcstatus !== "Editing"){ |
| | | this.$message.warning('åªæç¶ææ¯ãç¼è¾ä¸ãçæ°æ®æå¯ä»¥åèµ·æµç¨') |
| | | }else if(item.lcstatus !== 'Editing'){ |
| | | this.$message.warning('æ¨éæ©çæ°æ®å
¨é¨ä¸ºãç¼è¾ä¸ãæå¯ä»¥åèµ·æµç¨') |
| | | }else { |
| | | this.userName = localStorage.getItem("username"); |
| | | this.parameter.template = this.userName + "-åå¸" + "[ç©å]"; |
| | | this.parameter.type='PUBLIC' |
| | | this.title='æµç¨å®¡æ¹' |
| | | this.visibleFlow = true; |
| | | } |
| | | }) |
| | | // if (this.selectRow.length <= 0) { |
| | | // this.$message.warning("è¯·éæ©ä¸æ¡æ°æ®"); |
| | | // } else { |
| | | // this.userName = localStorage.getItem("username"); |
| | | // this.parameter.template = this.userName + "-åå¸" + "[ç©å]"; |
| | | // this.parameter.type='PUBLIC' |
| | | // this.title='æµç¨å®¡æ¹' |
| | | // this.visibleFlow = true; |
| | | // } |
| | | }, |
| | | //åç¨ |
| | | Deactivate(){ |
| | | if (this.selectRow.length <= 0) { |
| | | this.$message.warning("è¯·éæ©ä¸æ¡æ°æ®"); |
| | | } else { |
| | | this.userName = localStorage.getItem("username"); |
| | | this.parameter.template = this.userName + "-åå¸" + "[ç©å]"; |
| | | this.parameter.type='DISABLE' |
| | | this.title='åç¨ï¼å»ç»ï¼ç¼ç æ°æ®' |
| | | this.visibleDeactivate=true; |
| | | } |
| | | }, |
| | | //å¯ç¨ |
| | | Enable(){ |
| | | if (this.selectRow.length <= 0) { |
| | | this.$message.warning("è¯·éæ©ä¸æ¡æ°æ®"); |
| | | } else { |
| | | this.userName = localStorage.getItem("username"); |
| | | this.parameter.template = this.userName + "-åå¸" + "[ç©å]"; |
| | | this.parameter.type='ENABLE' |
| | | this.title='å¯ç¨ï¼è§£å»ï¼ç¼ç æ°æ®' |
| | | this.visibleEnable=true; |
| | | } |
| | | }, |
| | | //åæ¶ |
| | | Recovery(){ |
| | | if (this.selectRow.length <= 0) { |
| | | this.$message.warning("è¯·éæ©ä¸æ¡æ°æ®"); |
| | | } else { |
| | | this.userName = localStorage.getItem("username"); |
| | | this.parameter.template = this.userName + "-åå¸" + "[ç©å]"; |
| | | this.parameter.type='ROLLBACK' |
| | | this.title='åæ¶ç¼ç æ°æ®' |
| | | this.visibleRecovery=true; |
| | | } |
| | | }, |
| | | handleSizeChange(val) { |
| | | this.isLoading = true; |
| | | setTimeout(() => { |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <el-dialog :visible.sync="dialogPush" append-to-body :close-on-click-modal="false" @close="recoverPage" title="导åº"> |
| | | <div style="margin-bottom: 10px"> |
| | | <el-radio-group v-model="radio"> |
| | | <el-radio :label="0">éæ©</el-radio> |
| | | <el-radio :label="1">å
¨é¨</el-radio> |
| | | <el-radio :label="2">页ç </el-radio> |
| | | </el-radio-group> |
| | | </div> |
| | | <div style="text-align: center"> |
| | | <el-transfer |
| | | style="text-align: left; display: inline-block" |
| | | filterable |
| | | :filter-method="filterMethod" |
| | | filter-placeholder="请è¾å
¥å叿¼é³" |
| | | v-model="value" |
| | | :data="data"> |
| | | </el-transfer> |
| | | </div> |
| | | </el-dialog> |
| | | </template> |
| | | |
| | | <script> |
| | | export default { |
| | | name: "MasterTransfer", |
| | | props:['visible','tableHeadData'], |
| | | data(){ |
| | | const generateData = () => { |
| | | const data = []; |
| | | const cities = ['䏿µ·', 'å京', '广å·', 'æ·±å³', 'å京', '西å®', 'æé½']; |
| | | cities.forEach((city, index) => { |
| | | data.push({ |
| | | label: city, |
| | | key: index, |
| | | }); |
| | | }); |
| | | return data; |
| | | }; |
| | | return { |
| | | data: generateData(), |
| | | value: [], |
| | | filterMethod(query, item) { |
| | | return item.label.indexOf(query) > -1; |
| | | }, |
| | | dialogPush:this.visible, |
| | | radio:0, |
| | | tableHeadFindData:[] |
| | | }; |
| | | }, |
| | | watch:{ |
| | | //çå¬åå§å |
| | | visible (){ |
| | | this.dialogPush = this.visible; |
| | | }, |
| | | tableHeadData(){ |
| | | this.tableHeadFindData=this.tableHeadData; |
| | | |
| | | } |
| | | }, |
| | | computed:{ |
| | | |
| | | }, |
| | | mounted() { |
| | | console.log(this.tableHeadData) |
| | | }, |
| | | methods:{ |
| | | //å
³éé¡µé¢ |
| | | recoverPage(){ |
| | | this.$emit('update:visible', false); |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style scoped lang="scss"> |
| | | |
| | | </style> |
| | |
| | | codeClassifyOid: this.nodeClickList.oid, |
| | | functionId: 5, |
| | | }).then(res => { |
| | | console.log('1-', res.data) |
| | | console.log('123-', res.data.buttons) |
| | | const flagsToDeleteBtn = ["CODEIMPORTHISTORY", "CODEBATCHADD", "CODESTARTPROCESS", "CODEEXPORT", "CODEQUERY"]; |
| | | const flagsToDeleteBtn = ["CODEIMPORTHISTORY", "CODEEXPORT", "CODEQUERY","batchApplyCode"]; |
| | | //ä¸åèç¹æ¾ç¤ºä¸åæé® |
| | | if (!res.data.leaf) { |
| | | this.masterVrBtnList = res.data.buttons.filter(obj => flagsToDeleteBtn.includes(obj.uniqueFlag)); |
| | |
| | | </div> |
| | | <el-table :data="ProData" |
| | | style="width: 100%" |
| | | height="280" |
| | | height="750" |
| | | @cell-click="handleCellClicks" |
| | | @select="selectHandle" |
| | | @selection-change="selectionChange" |
| | |
| | | }, |
| | | //æä¸¾æ³¨å
¥ä¿å |
| | | enumAddHandle() { |
| | | if (this.enumRow.length < 1) { |
| | | this.$message.warning('请è³å°éæ©ä¸æ¡æ°æ®') |
| | | } else { |
| | | if(this.CurrentCell){ |
| | | this.$set(this.CurrentCell, 'enumString', JSON.stringify(this.enumRow)); |
| | | let hasError = false; // æ·»å ä¸ä¸ªåé |
| | | this.tableData.forEach((item, index) => { |
| | | if (item.key === '') { |
| | | this.$message.warning(`第${index + 1}è¡çé项å¼ä¸è½ä¸ºç©º`); |
| | | hasError = true; |
| | | return; |
| | | } else if (item.value === '') { |
| | | this.$message.warning(`第${index + 1}è¡çé项䏿æ ç¾ä¸è½ä¸ºç©º`); |
| | | hasError = true; |
| | | return; |
| | | } |
| | | }); |
| | | // ä¿åæ§è¡é»è¾ |
| | | if (!hasError) { |
| | | if (this.CurrentCell) { |
| | | this.$set(this.CurrentCell, 'enumString', JSON.stringify(this.tableData)); |
| | | this.enumVisible = false; |
| | | }else { |
| | | this.$set(this.attrSelectList[0], 'enumString', JSON.stringify(this.enumRow)); |
| | | this.tableData=[] |
| | | } else { |
| | | this.$set(this.attrSelectList[0], 'enumString', JSON.stringify(this.tableData)); |
| | | this.tableData=[]; |
| | | this.enumVisible = false; |
| | | } |
| | | } |
| | |
| | | }, |
| | | |
| | | mounted() { |
| | | console.log('---',this.parameter) |
| | | }, |
| | | created() { |
| | | console.log('parameter',this.parameter) |
| | | created() { |
| | | }, |
| | | methods: { |
| | | setSaveParam() { |
| | |
| | | import FlowPath from "@/components/template/FlowPath"; |
| | | import Stage from "@/components/template/Stage"; |
| | | import businesswork from "@/components/work/BusinessWork" |
| | | |
| | | import MasterTransfer from "@/components/Master/MasterTransfer"; |
| | | // å°å·¥å
·å½æ°æ·»å å°å
¨å± |
| | | import utilFunc from './util/func' |
| | | import flowPath from "@/views/flow/flowPath"; |
| | |
| | | Vue.component('Stage',Stage) |
| | | Vue.component('Divider', Divider) |
| | | Vue.component('businesswork', businesswork) |
| | | Vue.component('MasterTransfer', MasterTransfer) |
| | | |
| | | // å è½½ç¸å
³urlå°å |
| | | Object.keys(urls).forEach(key => { |
| | |
| | | proxy: { |
| | | '/api': { |
| | | //æ¬å°æå¡æ¥å£å°å |
| | | target: 'http://localhost:37000', |
| | | // target: 'http://localhost:37000', |
| | | // target: 'http://192.168.1.51:37000', |
| | | // target: 'http://192.168.1.46:37000', |
| | | target: 'http://192.168.1.46:37000', |
| | | // target: 'http://dev.vci-tech.com:37000', |
| | | // target: 'http://192.168.1.51:37000/', |
| | | // target: 'http://192.168.1.104:37000', |
| | |
| | | import com.vci.ubcs.code.bo.CodeTemplateAttrSqlBO; |
| | | import com.vci.ubcs.code.dto.CodeOrderDTO; |
| | | import com.vci.ubcs.code.entity.CodeAllCode; |
| | | import com.vci.ubcs.code.entity.CodeClassify; |
| | | import com.vci.ubcs.code.enumpack.CodeDefaultLC; |
| | | import com.vci.ubcs.code.enumpack.CodeLevelTypeEnum; |
| | | import com.vci.ubcs.code.lifecycle.CodeAllCodeLC; |
| | |
| | | import com.vci.ubcs.starter.revision.model.BaseModel; |
| | | import com.vci.ubcs.starter.util.DefaultAttrAssimtUtil; |
| | | import com.vci.ubcs.starter.util.LocalFileUtil; |
| | | import com.vci.ubcs.starter.util.MdmBtmTypeConstant; |
| | | import com.vci.ubcs.starter.web.constant.QueryOptionConstant; |
| | | import com.vci.ubcs.starter.web.enumpck.BooleanEnum; |
| | | import com.vci.ubcs.starter.web.enumpck.UserSecretEnum; |
| | |
| | | import com.vci.ubcs.starter.web.pagemodel.*; |
| | | import com.vci.ubcs.starter.web.toolmodel.DateConverter; |
| | | import com.vci.ubcs.starter.web.util.*; |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.RequiredArgsConstructor; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.collections4.map.HashedMap; |
| | |
| | | import org.apache.poi.ss.usermodel.Font; |
| | | import org.apache.poi.ss.usermodel.RichTextString; |
| | | import org.apache.poi.ss.usermodel.Workbook; |
| | | import org.springblade.core.cache.utils.CacheUtil; |
| | | import org.springblade.core.redis.cache.BladeRedis; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springframework.beans.BeanUtils; |
| | |
| | | import java.util.concurrent.ConcurrentHashMap; |
| | | import java.util.concurrent.CopyOnWriteArrayList; |
| | | import java.util.concurrent.CopyOnWriteArraySet; |
| | | import java.util.concurrent.atomic.AtomicBoolean; |
| | | import java.util.stream.Collectors; |
| | | |
| | | import static com.alibaba.druid.util.FnvHash.Constants.LIMIT; |
| | |
| | | |
| | | @Override |
| | | public R batchImportData(List<CodeImprotSaveDatVO> codeImprotSaveDatVOList, String classifyAttr, boolean isImprot) { |
| | | |
| | | boolean success=true; |
| | | WriteExcelOption eo = new WriteExcelOption(); |
| | | AtomicBoolean success= new AtomicBoolean(true); |
| | | codeImprotSaveDatVOList.stream().forEach(codeImprotSaveDatVO -> { |
| | | List<SheetRowData> rowDataList = new ArrayList<>(); |
| | | List<ClientBusinessObject>cboList=new ArrayList<>(); |
| | |
| | | log.error("æ¹é产çç¼ç çæ¶ååºéäº", e); |
| | | thisCbos.stream().forEach(cbo -> { |
| | | String rowIndex = cbo.getAttributeValue(IMPORT_ROW_INDEX); |
| | | errorMap.put(rowIndex, errorMap.getOrDefault(rowIndex, "") + ";ç³»ç»é误ï¼å卿°æ®çæ¶ååºéäº"); |
| | | errorMap.put(rowIndex, errorMap.getOrDefault(rowIndex, "") + ";ç³»ç»é误ï¼å卿°æ®çæ¶ååºéäº:"+e.getMessage()); |
| | | }); |
| | | } |
| | | } |
| | |
| | | try { |
| | | productCodeService.productCodeAndSaveData(classifyFullInfo, codeClassifyTemplateVO, ruleVO, orderDTO.getSecDTOList(), dataCBOList); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | log.error("æ¹é产çç¼ç çæ¶ååºéäº", e); |
| | | needSaveCboList.stream().forEach(cbo -> { |
| | | String rowIndex = cbo.getAttributeValue(IMPORT_ROW_INDEX); |
| | | errorMap.put(rowIndex, errorMap.getOrDefault(rowIndex, "") + ";ç³»ç»é误ï¼å卿°æ®çæ¶ååºéäº:"+e.getMessage()); |
| | | }); |
| | | } |
| | | //妿æ¯ç¼ç çæå¤±è´¥ï¼åç´æ¥å°±å¤±è´¥äºï¼å
¶ä»çå¤æåºæ¥æé误çæä»¬é½ç»ä¸è¿åå°exceléé¢ |
| | | engineService.batchSaveSelectChar(codeClassifyTemplateVO, dataCBOList); |
| | | } |
| | | } |
| | | if(errorMap.size()>0) { |
| | | success.set(false); |
| | | LinkedList<WriteExcelData> excelDataList = new LinkedList<>(); |
| | | excelDataList.add(new WriteExcelData(0, 0, "é误信æ¯")); |
| | | final int[] index = {1}; |
| | | errorMap.forEach((key,v)->{ |
| | | excelDataList.add(new WriteExcelData(index[0]++, 0, "第"+(Integer.parseInt(key)+1)+"è¡æ°æ®ï¼"+v)); |
| | | }); |
| | | eo.addSheetDataList(codeClassifyTemplateVO.getName() + "导å
¥æ¨¡æ¿", excelDataList); |
| | | } |
| | | }); |
| | | return R.success(isImprot?"æ¹éåå²å¯¼å
¥æå":"æ¹éç³è¯·æå"); |
| | | if(!success.get()){ |
| | | String excelName = LocalFileUtil.getDefaultTempFolder() + File.separator + (isImprot?"æ¹éåå²é误信æ¯.xls":"æ¹éç³è¯·é误信æ¯.xls"); |
| | | ExcelUtil.writeDataToFile(excelName,eo); |
| | | return R.fail(excelName); |
| | | }else { |
| | | return R.success(isImprot ? "æ¹éåå²å¯¼å
¥æå" : "æ¹éç³è¯·æå"); |
| | | } |
| | | } |
| | | |
| | | /*** |
| | |
| | | Integer userSecret = VciBaseUtil.getCurrentUserSecret(); |
| | | cbo.setAttributeValue(SECRET_FIELD,String.valueOf((userSecret==null || userSecret ==0)? UserSecretEnum.NONE.getValue():userSecret)); |
| | | } |
| | | cbo.setLcStatus(CodeDefaultLC.EDITING.getValue()); |
| | | }else{ |
| | | //æ¤æ¶è¿æ²¡æè½¬æ¢è·¯å¾ |
| | | //cbo.setAttributeValue(CODE_FULL_PATH_FILED, childOidPathMap.getOrDefault(rowData.getData().getOrDefault(CODE_CLASSIFY_OID_FIELD,""),fullPath)); |
| | |
| | | Integer userSecret = VciBaseUtil.getCurrentUserSecret(); |
| | | cbo.setAttributeValue(SECRET_FIELD,String.valueOf((userSecret==null || userSecret ==0)? UserSecretEnum.NONE.getValue():userSecret)); |
| | | } |
| | | cbo.setLcStatus(CodeDefaultLC.EDITING.getValue()); |
| | | }else{ |
| | | //æ¤æ¶è¿æ²¡æè½¬æ¢è·¯å¾ |
| | | //cbo.setAttributeValue(CODE_FULL_PATH_FILED, childOidPathMap.getOrDefault(rowData.getData().getOrDefault(CODE_CLASSIFY_OID_FIELD,""),fullPath)); |
| | |
| | | } |
| | | } |
| | | private List<ClientBusinessObject> ChangeMapTOClientBusinessObjects(List<Map<String,String>> oldDataMap){ |
| | | List<ClientBusinessObject> clientBusinessObjectList=new CopyOnWriteArrayList<>(); |
| | | oldDataMap.parallelStream().forEach(dataMap->{ |
| | | List<ClientBusinessObject> clientBusinessObjectList=new ArrayList<>(); |
| | | oldDataMap.stream().forEach(dataMap->{ |
| | | ClientBusinessObject clientBusinessObject=new ClientBusinessObject(); |
| | | DefaultAttrAssimtUtil.copplyDefaultAttrAssimt(dataMap,clientBusinessObject); |
| | | dataMap.forEach((key,value)->{ |
| | | clientBusinessObject.setAttributeValue(key,value); |
| | | }); |
| | | for (String key:dataMap.keySet()){ |
| | | Object value= dataMap.getOrDefault(key,""); |
| | | clientBusinessObject.setAttributeValue(key,value.toString()); |
| | | } |
| | | clientBusinessObjectList.add(clientBusinessObject); |
| | | }); |
| | | return clientBusinessObjectList; |
| | | } |
| | |
| | | String[] secLengths = cbo.getData().get(CODE_SEC_LENGTH_FIELD).split("#"); |
| | | cbo.getData().remove(CODE_SEC_LENGTH_FIELD);//å°æ¤keyé¤å» |
| | | cbo.getData().remove(IMPORT_ROW_INDEX);//å°æ¤keyé¤å» |
| | | cbo.getData().remove("codeclassifyid");//å°æ¤keyé¤å» |
| | | List<CodeBasicSecVO> secVOList = ruleVO.getSecVOList().stream().sorted(((o1, o2) -> o1.getOrderNum().compareTo(o2.getOrderNum()))).collect(Collectors.toList()); |
| | | Map<String/**ç æ®µç主é®**/,String/**ç æ®µçå¼**/> serialValueMap = new HashMap<>(); |
| | | Map<String, CodeBasicSecVO> secVOMap = secVOList.stream().collect(Collectors.toMap(s -> s.getOid(), t -> t)); |
| | |
| | | |
| | | for (int i = 0; i < dataCBOList.size(); i++) { |
| | | BaseModel cbo = dataCBOList.get(i); |
| | | cbo.getData().remove(CODE_SEC_LENGTH_FIELD);//å°æ¤keyé¤å» |
| | | cbo.getData().remove(IMPORT_ROW_INDEX);//å°æ¤keyé¤å» |
| | | cbo.getData().remove("codeclassifyid");//å°æ¤keyé¤å» |
| | | List<String> thisSecValueList = new LinkedList<>(); |
| | | for (int j = 0; j < secValueList.size(); j++) { |
| | | thisSecValueList.add(secValueList.get(j)); |
| | |
| | | } |
| | | saveSerialValue( ruleVO, lastMaxSerialValueMap, maxSerialValueMap); |
| | | |
| | | allCodeDOList.stream().forEach( |
| | | allCode -> {DefaultAttrAssimtUtil.addDefaultAttrAssimt(allCode,"codeallcode");allCode.setLctid("codeAllCodeLC");} |
| | | ); |
| | | |
| | | |
| | | Map<String, String> statusMap = allCodeDOList.stream().collect(Collectors.toMap(s -> s.getOid(), s -> s.getLcStatus())); |
| | | allCodeDOList.stream().filter(s -> StringUtils.equalsIgnoreCase("codeallcode",s.getBtmname())).forEach(s -> { |
| | | s.setLcStatus(statusMap.get(s.getOid())); |
| | | }); |
| | | |
| | | |
| | | allCodeDOList.stream().forEach( |
| | | allCode -> {DefaultAttrAssimtUtil.addDefaultAttrAssimt(allCode,"codeallcode");allCode.setLctid("codeAllCodeLC");} |
| | | ); |
| | | |
| | | codeAllCodeService.saveBatch(allCodeDOList); |
| | | // iCodeWupinService.saveBatch(dataCBOList); |
| | |
| | | @Slf4j |
| | | @VciWebservice(path = "/universalInterface") |
| | | public class UniversalInterfaceImpl<IDockingLogeServiceing> implements UniversalInterfaceI { |
| | | @Value("${code.checkConfig:true}") |
| | | @Value("${code.universalinterface.checkSystemConfig:true}") |
| | | public boolean CODE_CHECKCONFIG; |
| | | @Autowired(required = false) |
| | | private AttributeMapConfig attributeMapConfig; |
| | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | @ConfigurationProperties(prefix="attrconfig") |
| | | @ConfigurationProperties(prefix="code.universalinterface.attrconfig") |
| | | @Component |
| | | public class AttributeMapConfig { |
| | | private Map<String,String> system_attrmap; |