Merge remote-tracking branch 'origin/master'
| | |
| | | codeOrderSecDTO.setSecValue(keyValue.getValue()); |
| | | secDTOList.add(codeOrderSecDTO); |
| | | }); |
| | | codeOrderDTO.setLcStatus("Released"); |
| | | codeOrderDTO.setSecDTOList(secDTOList); |
| | | codeOrderDTO.setData(dataMap); |
| | | Object object = JSONObject.toJSON(codeOrderDTO); |
| | | Map<String,String> headerMap=new HashMap<>(); |
| | | headerMap.put("content-type","application/json"); |
| | | headerMap.put("Blade-Auth",this.owner.getTokenUserObject().getAccess_token()); |
| | | R r= HttpUtil.sendPost(url+"/addSaveCode",object.toString(),headerMap); |
| | | //R r= HttpUtil.sendPost(url+"/addSaveCode",object.toString(),headerMap); |
| | | String code=""; |
| | | //æ ¡éªå
³é®å±æ§åå¨çæ°æ®ç´æ¥è¿åç¼ç |
| | | R checkKeyAttrOnOrderR= HttpUtil.sendPost(url+"/checkKeyAttrOnOrderFordatas",object.toString(),headerMap); |
| | | if(checkKeyAttrOnOrderR.isSuccess()){ |
| | | List<Map> list=(List)checkKeyAttrOnOrderR.getData(); |
| | | if(!CollectionUtils.isEmpty(list)) { |
| | | code=list.get(0).get("ID")!=null?list.get(0).get("ID").toString():""; |
| | | this.owner.setApplyCode(code); |
| | | this.owner.getApplyTxt().requestFocusInWindow(); |
| | | this.owner.getApplyTxt().selectAll(); |
| | | this.owner.setAttrNameAndValMap(attrNameAndValMap); |
| | | return; |
| | | } |
| | | } |
| | | R r= HttpUtil.sendPost(url+"/addSaveCode",object.toString(),headerMap); |
| | | if(r.isSuccess()){ |
| | | code=r.getData().toString(); |
| | | this.owner.setApplyCode(code); |
| | |
| | | value = "ubcs-code" |
| | | ) |
| | | public interface IMdmInterJtClient { |
| | | |
| | | String API_PREFIX = "/mdmInterService"; |
| | | String APPLYGROUPCODE = API_PREFIX + "/applyGroupCode"; |
| | | String RETURNGROUPCODE = API_PREFIX + "/getApplyGroupCode"; |
| | | |
| | | String PUBMDMMODEL = API_PREFIX + "/pubMdmModel"; |
| | | String RECEIVE_EDITAPPLY =API_PREFIX + "/receiveEditApply"; |
| | | |
| | | /*** |
| | | * å°éå¢ç³è¯·æåçç¼ç åå
¥ç¸å
³æ°æ®ä¹ä¸ |
| | | * @param oids |
| | | * @param btmName |
| | | * @return è¿åå卿¯å¦æåä¿¡æ¯ |
| | | */ |
| | | @GetMapping(APPLYGROUPCODE) |
| | | public R applyGroupCode(String oids,String btmName); |
| | | |
| | | |
| | | /*** |
| | | * éå¢ç¼ç æ°æ®ä¿®æ¹ |
| | | * @param oids |
| | | * @param btmName |
| | | * @return è¿åå卿¯å¦æåä¿¡æ¯ |
| | | */ |
| | | @PostMapping(RECEIVE_EDITAPPLY) |
| | | public R receiveEditApply(String oids,String btmName); |
| | | |
| | | /*** |
| | | * å°éå¢ç³è¯·æåçç¼ç åå
¥ç¸å
³æ°æ®ä¹ä¸ |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.applyjtcodeservice.vo; |
| | | |
| | | public class DockingApplyGroupCode { |
| | | |
| | | } |
| | |
| | | { |
| | | "parentOid":"XJ-FC9B6-FE27-241F-5FCA-ED4DC17CF95B", |
| | | "parentBtmName":"jclass", |
| | | "valueField":"oid", |
| | | "textField":"name", |
| | | "parentFieldName":"id", |
| | | "conditionMap":[{ |
| | | "codeclsfid": "XJ-FC9B6-FE27-241F-5FCA-ED4DC17CF95B" |
| | | }] |
| | | "data": { |
| | | "systemId": "MPM", |
| | | "user": { |
| | | "userName": "weidy", |
| | | "trueName": "é大å", |
| | | "ip": "127.0.0.1" |
| | | }, |
| | | "library": { |
| | | "id": "wupin", |
| | | "classifyid":[ |
| | | "020202" |
| | | ] |
| | | } |
| | | } |
| | | } |
| | |
| | | * headerä¿¡æ¯å¯¹è±¡ |
| | | */ |
| | | private List<DockingSysIntHeaderDTO> sysIntHeaderDTOS; |
| | | |
| | | /*** |
| | | * éå¢ç æ¯å¦åä¸ç³è¯·/æ´æ°/åé |
| | | */ |
| | | private String isGroupCodeFlag; |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "SysIntInfoDTO{" + |
| | | return "DockingSystemConfigDTO{" + |
| | | "authorityOid='" + authorityOid + '\'' + |
| | | ", authorityOidName='" + authorityOidName + '\'' + |
| | | ", authorityType='" + authorityType + '\'' + |
| | |
| | | ", classifyName='" + classifyName + '\'' + |
| | | ", sysIntParamDTOS=" + sysIntParamDTOS + |
| | | ", sysIntHeaderDTOS=" + sysIntHeaderDTOS + |
| | | ", isGroupCodeFlag=" + isGroupCodeFlag + |
| | | '}'; |
| | | } |
| | | } |
| | |
| | | */ |
| | | @ApiModelProperty(value = "åç±»åç§°") |
| | | private String classifyName; |
| | | |
| | | /*** |
| | | * éå¢ç æ¯å¦åä¸ç³è¯·/æ´æ°/åé |
| | | */ |
| | | /** |
| | | * åç±»åç§° |
| | | */ |
| | | @ApiModelProperty(value = "éå¢ç æ¯å¦åä¸ç³è¯·/æ´æ°/åé") |
| | | private String isGroupCodeFlag; |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "DockingSystemConfig{" + |
| | | "authorityOid='" + authorityOid + '\'' + |
| | | ", authorityOidName='" + authorityOidName + '\'' + |
| | | ", authorityType='" + authorityType + '\'' + |
| | | ", authorityTypeText='" + authorityTypeText + '\'' + |
| | | ", userAccount='" + userAccount + '\'' + |
| | | ", userCode='" + userCode + '\'' + |
| | | ", token='" + token + '\'' + |
| | | ", interfaceFunction='" + interfaceFunction + '\'' + |
| | | ", interfaceType='" + interfaceType + '\'' + |
| | | ", interfaceTypeText='" + interfaceTypeText + '\'' + |
| | | ", paramType='" + paramType + '\'' + |
| | | ", paramTypeText='" + paramTypeText + '\'' + |
| | | ", requestMethod='" + requestMethod + '\'' + |
| | | ", requestMethodText='" + requestMethodText + '\'' + |
| | | ", classifyOid='" + classifyOid + '\'' + |
| | | ", usedFlag='" + usedFlag + '\'' + |
| | | ", sysBaseOid='" + sysBaseOid + '\'' + |
| | | ", sysBaseId='" + sysBaseId + '\'' + |
| | | ", sysBaseName='" + sysBaseName + '\'' + |
| | | ", requestUrl='" + requestUrl + '\'' + |
| | | ", returnType='" + returnType + '\'' + |
| | | ", returnTypeText='" + returnTypeText + '\'' + |
| | | ", sourceSystemOid='" + sourceSystemOid + '\'' + |
| | | ", sourceSysName='" + sourceSysName + '\'' + |
| | | ", sourceSysId='" + sourceSysId + '\'' + |
| | | ", sourceSystemOidName='" + sourceSystemOidName + '\'' + |
| | | ", targetSystemOid='" + targetSystemOid + '\'' + |
| | | ", targetSysName='" + targetSysName + '\'' + |
| | | ", targetSysId='" + targetSysId + '\'' + |
| | | ", targetSystemOidName='" + targetSystemOidName + '\'' + |
| | | ", classPath='" + classPath + '\'' + |
| | | ", dataFlowType='" + dataFlowType + '\'' + |
| | | ", dataFlowTypeText='" + dataFlowTypeText + '\'' + |
| | | ", btmTypeId='" + btmTypeId + '\'' + |
| | | ", btmTypeName='" + btmTypeName + '\'' + |
| | | ", namespace='" + namespace + '\'' + |
| | | ", soapAction='" + soapAction + '\'' + |
| | | ", cxfAxis='" + cxfAxis + '\'' + |
| | | ", targetName='" + targetName + '\'' + |
| | | ", pushType='" + pushType + '\'' + |
| | | ", pushTypeText='" + pushTypeText + '\'' + |
| | | ", classifyId='" + classifyId + '\'' + |
| | | ", classifyName='" + classifyName + '\'' + |
| | | ", isGroupCodeFlag=" + isGroupCodeFlag + |
| | | '}'; |
| | | } |
| | | } |
| | |
| | | * åç±»åç§° |
| | | */ |
| | | private String classifyName; |
| | | |
| | | /*** |
| | | * éå¢ç æ¯å¦åä¸ç³è¯·/æ´æ°/åé |
| | | */ |
| | | private String isGroupCodeFlag; |
| | | /*** |
| | | * åæ°ä¿¡æ¯å¯¹è±¡ |
| | | */ |
| | |
| | | this.sysIntHeaderVOs = sysIntHeaderVOs; |
| | | } |
| | | |
| | | public String getIsGroupCodeFlag() { |
| | | return isGroupCodeFlag; |
| | | } |
| | | |
| | | public void setIsGroupCodeFlag(String isGroupCodeFlag) { |
| | | this.isGroupCodeFlag = isGroupCodeFlag; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "SysIntInfoVO{" + |
| | | return "DockingSystemConfigVO{" + |
| | | "authorityOid='" + authorityOid + '\'' + |
| | | ", authorityOidName='" + authorityOidName + '\'' + |
| | | ", authorityType='" + authorityType + '\'' + |
| | |
| | | ", pushTypeText='" + pushTypeText + '\'' + |
| | | ", classifyId='" + classifyId + '\'' + |
| | | ", classifyName='" + classifyName + '\'' + |
| | | ", isGroupCodeFlag=" + isGroupCodeFlag + |
| | | ", sysIntParamVOs=" + sysIntParamVOs + |
| | | ", sysIntHeaderVOs=" + sysIntHeaderVOs + |
| | | '}'; |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.applyjtcodeservice.Scheduling; |
| | | |
| | | import com.vci.ubcs.starter.web.enumpck.BooleanEnum; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.scheduling.annotation.Scheduled; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import javax.annotation.PostConstruct; |
| | | import javax.annotation.Resource; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * éæä»»å¡å®æ¶å¨ |
| | | * æå
¥dockingtaskä¸ |
| | | * ä»dockingtaskä¸ååºæ¥æ°æ®ï¼æ¨éåºå»çæä½ |
| | | */ |
| | | @Component |
| | | @Slf4j |
| | | public class DockingApplyGroupCodeSyncScheduling { |
| | | |
| | | @Resource |
| | | private IGroupCodeDuckingSyncService groupCodeDuckingSyncService; |
| | | |
| | | @Value("${apply.groupCode.isStart:false}") |
| | | public boolean APPLY_GRUPCODE_SYNC_ISSTARE; |
| | | |
| | | /** |
| | | * æ¯å¦åå§åå®æäº |
| | | */ |
| | | public static volatile String FINISH_INIT = "false"; |
| | | |
| | | /** |
| | | * å¨åå§åå®æåæ§è¡ |
| | | */ |
| | | @PostConstruct() |
| | | public void onInit(){ |
| | | FINISH_INIT = "true"; |
| | | } |
| | | |
| | | //é»è®¤æ¯åéæ§è¡æ¹æ³ |
| | | @Scheduled(cron = "${groupcode.cronTime:0 0/10 * * * ?}") |
| | | public void scheduled() { |
| | | log.info("æ§è¡è°ç¨éå¢ç¼ç ç³è¯·æ¥å£ç³è¯·éå¢ç¼ç start:"); |
| | | if(APPLY_GRUPCODE_SYNC_ISSTARE && BooleanEnum.TRUE.getValue().equalsIgnoreCase(FINISH_INIT)) { |
| | | //a codeDuckingSyncServiceI.DockingClassSyncScheduing(); |
| | | SimpleDateFormat formatter= new SimpleDateFormat("yyyy-MM-dd HH:mm:ss."); |
| | | String time = formatter.format(new Date()); |
| | | String outinfo = "============å¨ "+time+" æ§è¡äºåç±»éææ¨é"; |
| | | log.info(outinfo); |
| | | } |
| | | log.info("æ§è¡è°ç¨éå¢ç¼ç ç³è¯·æ¥å£ç³è¯·éå¢ç¼ç end: "+ "å¼å
³æ¯å¦å¼å¯:" +APPLY_GRUPCODE_SYNC_ISSTARE); |
| | | } |
| | | } |
| | |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; |
| | | import com.vci.ubcs.code.applyjtcodeservice.service.*; |
| | | import com.vci.ubcs.code.applyjtcodeservice.entity.DockingPreApplyForm; |
| | | import com.vci.ubcs.code.feign.ICodeClassifyClient; |
| | | import com.vci.ubcs.code.applyjtcodeservice.service.*; |
| | | import com.vci.ubcs.code.applyjtcodeservice.vo.*; |
| | | import com.vci.ubcs.code.applyjtcodeservice.vo.collection.DockingPreAttrMappingVOList; |
| | | import com.vci.ubcs.code.applyjtcodeservice.wrapper.DockingPreApplyFormWrapper; |
| | |
| | | import com.vci.ubcs.starter.revision.model.BaseModel; |
| | | import com.vci.ubcs.starter.util.DefaultAttrAssimtUtil; |
| | | import com.vci.ubcs.starter.util.MdmBtmTypeConstant; |
| | | import com.vci.ubcs.starter.web.constant.MdmEnumIdConstant; |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springblade.core.tenant.annotation.NonDS; |
| | |
| | | private final IDockingPreMetaAttrService dockingPreMetaAttrService; |
| | | |
| | | /** |
| | | * éå¢ç³è¯·åæå¡ |
| | | * éå¢åç±»ç³è¯·åæå¡ |
| | | */ |
| | | private final IDockingPreClassifyService dockingPreClassifyService; |
| | | |
| | | |
| | | /** |
| | | * éå¢ç³è¯·åæå¡ |
| | | * éå¢åå¼èå´ç³è¯·åæå¡ |
| | | */ |
| | | private final IDockingPreAttrRangeService dockingPreAttrRangeService; |
| | | |
| | | /** |
| | | * éå¢å±æ§æ å°é
ç½®å±æ§ |
| | | */ |
| | | private final IGroupMdmInterService groupMdmInterService; |
| | | |
| | | |
| | | /*** |
| | | * ç³è¯·éå¢ç¼ç |
| | | * @return |
| | | */ |
| | | public R applyGroupCode(String oids,String btmName){ |
| | | try { |
| | | return groupMdmInterService.applyGroupCode(oids,btmName); |
| | | }catch (Throwable e){ |
| | | return R.fail("éå¢ç ç³è¯·å¤±è´¥ï¼"+e.getMessage()); |
| | | } |
| | | } |
| | | /*** |
| | | * ç³è¯·éå¢ç¼ç æ°æ®ç»´æ¤ |
| | | * @return |
| | | */ |
| | | @Override |
| | | public R receiveEditApply(String oids, String btmName) { |
| | | try { |
| | | return groupMdmInterService.applyGroupCode(oids,btmName); |
| | | }catch (Throwable e){ |
| | | return R.fail("éå¢ç æ°æ®ä¿®æ¹å¤±è´¥ï¼"+e.getMessage()); |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | /* |
| | | * ä¸»æ°æ®ä¸å¡æå¡ |
| | |
| | | //é»è®¤æ¯åéæ§è¡æ¹æ³ |
| | | @Scheduled(cron = "${clsfSyncPush.cronTime:0 0/10 * * * ?}") |
| | | public void scheduled() { |
| | | log.info("æ§è¡åç±»éææ¨é start:"); |
| | | if(CLSF_SYNC_PUSH_ISSTARE && BooleanEnum.TRUE.getValue().equalsIgnoreCase(FINISH_INIT)) { |
| | | codeDuckingSyncServiceI.DockingClassSyncScheduing(); |
| | | SimpleDateFormat formatter= new SimpleDateFormat("yyyy-MM-dd HH:mm:ss."); |
| | |
| | | String outinfo = "============å¨ "+time+" æ§è¡äºåç±»éææ¨é"; |
| | | log.info(outinfo); |
| | | } |
| | | log.info("æ§è¡åç±»éææ¨é end: "+ "å¼å
³æ¯å¦å¼å¯:" +CLSF_SYNC_PUSH_ISSTARE); |
| | | } |
| | | } |
| | |
| | | |
| | | import com.vci.ubcs.code.service.ICodeDuckingSyncService; |
| | | import com.vci.ubcs.starter.web.enumpck.BooleanEnum; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | |
| | | * ä»dockingtaskä¸ååºæ¥æ°æ®ï¼æ¨éåºå»çæä½ |
| | | */ |
| | | @Component |
| | | @Slf4j |
| | | public class DockingDataSyncScheduling { |
| | | |
| | | private Logger logger = LoggerFactory.getLogger(getClass()); |
| | | // private Logger logger = LoggerFactory.getLogger(getClass()); |
| | | |
| | | @Resource |
| | | private ICodeDuckingSyncService codeDuckingSyncServiceI; |
| | |
| | | //é»è®¤æ¯åéæ§è¡æ¹æ³ |
| | | @Scheduled(cron = "${dataSyncPush.cronTime:0 0/10 * * * ?}") |
| | | public void scheduled() { |
| | | log.info("æ§è¡ä¸»æ°æ®éææ°æ®æ¨é start:"); |
| | | if(DATA_SYNC_PUSH_ISSTARE && BooleanEnum.TRUE.getValue().equalsIgnoreCase(FINISH_INIT)) { |
| | | codeDuckingSyncServiceI.DockingDataSyncScheduing(); |
| | | SimpleDateFormat formatter= new SimpleDateFormat("yyyy-MM-dd HH:mm:ss."); |
| | | String time = formatter.format(new Date()); |
| | | String outinfo = "============å¨ "+time+" æ§è¡äºä¸»æ°æ®éææ°æ®æ¨é"; |
| | | logger.info(outinfo); |
| | | String outinfo = "============ æ§è¡äºä¸»æ°æ®éææ°æ®æ¨é"; |
| | | log.info(outinfo); |
| | | } |
| | | log.info("æ§è¡ä¸»æ°æ®éææ°æ®æ¨é end: "+ "å¼å
³æ¯å¦å¼å¯:" +DATA_SYNC_PUSH_ISSTARE); |
| | | } |
| | | } |
| | |
| | | public R addSaveCode(@RequestBody CodeOrderDTO orderDTO) throws Exception { |
| | | return R.data(mdmEngineService.addSaveCode(orderDTO)); |
| | | } |
| | | |
| | | /** |
| | | * ç³è¯·ç¼ç ä¿å |
| | | * @param orderDTO ç¼ç ç³è¯·ç¸å
³çä¿¡æ¯ï¼éè¦æå±æ§åç æ®µç¸å
³çä¿¡æ¯ |
| | | * @return æ§è¡ç»æ |
| | | */ |
| | | @PostMapping("/checkKeyAttrOnOrderFordatas") |
| | | @VciBusinessLog(operateName = "ç³è¯·å个ç¼ç ") |
| | | public R checkKeyAttrOnOrderFordatas(@RequestBody CodeOrderDTO orderDTO) throws Exception { |
| | | return R.data(mdmEngineService.checkKeyAttrOnOrderFordatas(orderDTO)); |
| | | } |
| | | } |
| | |
| | | * @return |
| | | */ |
| | | R processChangeStatus(FlowStatusDTO flowDTO); |
| | | |
| | | /** |
| | | * æ ¡éªå
³é®å±æ§ |
| | | * @param orderDTO ç¼ç ç³è¯·çç¸å
³çä¿¡æ¯ |
| | | */ |
| | | public List<Map> checkKeyAttrOnOrderFordatas(CodeOrderDTO orderDTO) ; |
| | | |
| | | } |
| | |
| | | * @param resultDataObjectDetailDOs éè¯¯ä¿¡æ¯ |
| | | * @return æé误信æ¯çexcel |
| | | */ |
| | | void batchSyncApplyCode(CodeOrderDTO orderDTO, DataObjectVO dataObjectVO, LinkedList<XMLResultDataObjectDetailDO> resultDataObjectDetailDOs); |
| | | void batchSyncApplyCode(CodeOrderDTO orderDTO, DataObjectVO dataObjectVO, LinkedList<XMLResultDataObjectDetailDO> resultDataObjectDetailDOs,boolean isCodeOrGroupCode); |
| | | } |
| | |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * æ ¡éªå
³é®å±æ§ |
| | | * |
| | | * @param classifyFullInfo åç±»çå
¨é¨ä¿¡æ¯ |
| | | * @param templateVO 模æ¿çå
容ï¼å¿
é¡»å
嫿¨¡æ¿å±æ§ |
| | | * @param orderDTO ç¼ç ç³è¯·çç¸å
³çä¿¡æ¯ |
| | | */ |
| | | public List<Map> checkKeyAttrOnOrderFordatas(CodeOrderDTO orderDTO) { |
| | | List<Map>dataList=new ArrayList<>(); |
| | | CodeClassifyFullInfoBO classifyFullInfo = classifyService.getClassifyFullInfo(orderDTO.getCodeClassifyOid()); |
| | | CodeClassifyTemplateVO templateVO = templateService.getObjectHasAttrByOid(orderDTO.getTemplateOid()); |
| | | //å
è·åå
³é®å±æ§çè§åï¼ä¹å©ç¨ç»§æ¿çæ¹å¼ |
| | | CodeKeyAttrRepeatVO keyRuleVO = keyRuleService.getRuleByClassifyFullInfo(classifyFullInfo); |
| | | //注æçæ¯keyRuleVOå¯è½ä¸ºç©ºï¼è¡¨ç¤ºä¸ä½¿ç¨è§åæ§å¶ |
| | | //è·åææçå
³é®å±æ§ |
| | | Map<String, CodeClassifyTemplateAttrVO> ketAttrMap = templateVO.getAttributes().stream().filter(s -> VciBaseUtil.getBoolean(s.getKeyAttrFlag())).collect(Collectors.toMap(s -> s.getId().toLowerCase(Locale.ROOT), t -> t)); |
| | | Map<String, String> conditionMap = new HashMap<>(); |
| | | boolean trimAll = keyRuleVO == null ? false : VciBaseUtil.getBoolean(keyRuleVO.getIgnoreallspaceflag()); |
| | | //å
¨é¨å»ç©ºçä¼å
级大äºå»ç©º |
| | | boolean trim = keyRuleVO == null ? false : VciBaseUtil.getBoolean(keyRuleVO.getIgnorespaceflag()); |
| | | boolean ignoreCase = keyRuleVO == null ? false : VciBaseUtil.getBoolean(keyRuleVO.getIgnorecaseflag()); |
| | | boolean ignoreWidth = keyRuleVO == null ? false : VciBaseUtil.getBoolean(keyRuleVO.getIgnorewidthflag()); |
| | | ketAttrMap.forEach((attrId, attrVO) -> { |
| | | String value = getValueFromOrderDTO(orderDTO, attrId); |
| | | if (value == null) { |
| | | value = ""; |
| | | } |
| | | wrapperKeyAttrConditionMap(value, keyRuleVO, attrId, trim, ignoreCase, ignoreWidth, trimAll, conditionMap); |
| | | }); |
| | | |
| | | //没æéå¶åç±»ï¼ä½æ¯ä¸ä¸ªæ¨¡æ¿åªå¯è½å¨ä¸ä¸ªä¸å¡ç±»åéé¢ï¼æä»¥ç´æ¥æ¥è¯¢è¿ä¸ªä¸å¡ç±»åå³å¯ |
| | | if (!CollectionUtils.isEmpty(conditionMap)) { |
| | | conditionMap.put("CODETEMPLATEOID","'" + orderDTO.getTemplateOid() + "'"); |
| | | // final String[] sql = {"select count(*) from " + VciBaseUtil.getTableName(classifyFullInfo.getTopClassifyVO().getBtmtypeid()) + " t where 1 = 1 "}; |
| | | R<List<BtmTypeVO>> listR = btmTypeClient.selectByIdCollection(Collections.singletonList(classifyFullInfo.getTopClassifyVO().getBtmTypeId())); |
| | | // String referTable = VciBaseUtil.getTableName(referVO.getReferType()); |
| | | if (!listR.isSuccess() || listR.getData().size() == 0) { |
| | | throw new VciBaseException("ä¼ å
¥ä¸å¡ç±»åæªæ¥è¯¢å°ç¸åºè¡¨åï¼è¯·æ£æ¥ï¼"); |
| | | } |
| | | final String[] sql = {"select * from " + listR.getData().get(0).getTableName() + " t where 1 = 1 "}; |
| | | conditionMap.forEach((key, value) -> { |
| | | sql[0] += " and " + key + " = " + value; |
| | | }); |
| | | if (StringUtils.isNotBlank(orderDTO.getOid())) { |
| | | //ä¿®æ¹çæ¶åï¼éè¦æé¤èªå·± |
| | | sql[0] += " and oid != '" + orderDTO.getOid() + "'"; |
| | | } else if (StringUtils.isNotBlank(orderDTO.getCopyFromVersion())) { |
| | | sql[0] += " and oid != '" + orderDTO.getCopyFromVersion() + "'"; |
| | | } |
| | | sql[0] += " and lastR = '1' and lastV = '1' "; |
| | | // if (boService.queryCountBySql(sql[0], new HashMap<>()) > 0) { |
| | | dataList=commonsMapper.selectBySql(sql[0]); |
| | | if (!CollectionUtils.isEmpty(dataList)) { |
| | | // String ruleInfoMsg = keyRuleVO == null ? "" : "æ¥è¯¢è§åï¼å»é¤ç©ºæ ¼--{0},忽ç¥å¤§å°å--{1},忽ç¥å
¨åè§--{2},忽ç¥å
¨é¨ç©ºæ ¼--{3}"; |
| | | // String[] objs = new String[]{trim ? "æ¯" : "å¦", ignoreCase ? "æ¯" : "å¦", ignoreWidth ? "æ¯" : "å¦", trimAll ? "æ¯" : "å¦"}; |
| | | // throw new VciBaseException("æ ¹æ®æ¨å¡«åçå
³é®å±æ§çå
容ï¼ç»åå
³é®å±æ§æ¥è¯¢è§åï¼åç°è¿ä¸ªæ°æ®å·²ç»å¨ç³»ç»ä¸åå¨äºã请修æ£!ã" + ruleInfoMsg, objs); |
| | | return dataList; |
| | | } |
| | | } |
| | | return dataList; |
| | | } |
| | | |
| | | /** |
| | | * å°è£
å
³é®å±æ§çæ¥è¯¢è¯å¥ |
| | | * |
| | |
| | | <result column="NAMESPACE" property="namespace"/> |
| | | <result column="SOAPACTION" property="soapAction"/> |
| | | <result column="CXFAXIS" property="cxfAxis"/> |
| | | <result column="ISGROUPCODEFLAG" property="isGroupCodeFlag"/> |
| | | |
| | | </resultMap> |
| | | |