| | |
| | | package com.vci.ubcs.code.applyjtcodeservice.feigh; |
| | | |
| | | import com.alibaba.cloud.commons.lang.StringUtils; |
| | | import com.alibaba.fastjson.JSON; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.alibaba.nacos.shaded.com.google.protobuf.ServiceException; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | |
| | | 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.util.SaveLogUtil; |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.Data; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.jetbrains.annotations.NotNull; |
| | | import org.springblade.core.tenant.annotation.NonDS; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springblade.core.tool.utils.Func; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | |
| | | @Autowired(required = false) |
| | | private IMdmEngineClient mdmEngineClient; |
| | | |
| | | private final SaveLogUtil saveLogUtil; |
| | | |
| | | /*** |
| | | * 申请集团编码 |
| | | * @return |
| | |
| | | } |
| | | } |
| | | |
| | | /* |
| | | * 主数据业务服务 |
| | | */ |
| | | /** |
| | | * 获取集团集团码,赋值到主数据 |
| | | * @param dockingReturnStoreVO |
| | |
| | | } else if ("9".equals(formState)) { |
| | | msg = "审核中"; |
| | | } |
| | | msg = Func.isNotBlank(mainData.getExamineOpinion()) ? mainData.getExamineOpinion():msg; |
| | | jcontent.put("applyId", applyId); |
| | | jcontent.put("formState", formState); |
| | | jcontent.put("customCoding", customCoding); |
| | |
| | | if(!CollectionUtils.isEmpty(dockingPreApplyFormList)){ |
| | | dockingPreApplyFormService.saveOrUpdateBatch(dockingPreApplyFormList); |
| | | } |
| | | saveLogUtil.operateLog("申请单结果返回",false,JSON.toJSONString(dockingReturnStoreVO.getMainData())); |
| | | }catch (Throwable e){ |
| | | e.printStackTrace(); |
| | | return R.fail("集团码集成赋值失败,原因:"+e.getMessage()); |
| | | saveLogUtil.operateLog("申请单结果返回",true,"错误信息:"+e.getMessage()+"\n"+ JSON.toJSONString(dockingReturnStoreVO.getMainData())); |
| | | return R.fail("集团码集成赋值失败,原因:"+e.getMessage()); |
| | | } |
| | | log.info("获取集团集团码,赋值到主数据 end"); |
| | | return R.success("集团码赋值成功"); |
| | |
| | | * @param jclassObject |
| | | * @throws Throwable |
| | | */ |
| | | private void getVilewMode(@NotNull DockingClassifyVO jclassObject, List<DockingClassifyViewVO> list) |
| | | throws Throwable { |
| | | private void getVilewMode(@NotNull DockingClassifyVO jclassObject, List<DockingClassifyViewVO> list) throws Throwable { |
| | | String nodeLinkName = jclassObject.getNodeLinkName(); |
| | | try { |
| | | String jclassId =StringUtils.isBlank(jclassObject.getId())?"":jclassObject.getId(); |