| | |
| | | @Slf4j |
| | | public class MdmInterJtClient implements IMdmInterJtClient { |
| | | |
| | | @Value("${docking.apply.partCoe:10}") |
| | | public String partCoe; |
| | | @Value("${docking.apply.partCode:10}") |
| | | public String partCode; |
| | | |
| | | /** |
| | | * 集团申请单服务 |
| | |
| | | log.info("获取集团集团码,赋值到主数据 start"); |
| | | try { |
| | | Map<String,List<BaseModel>> editObjectMap = new HashMap<>(); |
| | | |
| | | List<DockingPreApplyForm> dockingPreApplyFormList = new ArrayList(); |
| | | //String classId = javaObject.getClassId(); |
| | | //String sysName = javaObject.getSysName(); |
| | |
| | | } else if ("9".equals(formState)) { |
| | | msg = "审核中"; |
| | | } |
| | | msg = Func.isNotBlank(mainData.getExamineOpinion()) ? mainData.getExamineOpinion():msg; |
| | | // 如果返回了审查意见就用返回的 |
| | | msg = Func.isNotBlank(mainData.getExamineOpinion()) ? msg+",意见:"+mainData.getExamineOpinion():msg; |
| | | jcontent.put("applyId", applyId); |
| | | jcontent.put("formState", formState); |
| | | jcontent.put("customCoding", customCoding); |
| | |
| | | DockingPreApplyForm dockingPreApplyForm = oldDockingPreApplyFormList.get(0); |
| | | dockingPreApplyForm.setMsg(msg); |
| | | dockingPreApplyForm.setCode("1"); |
| | | dockingPreApplyForm.setLastModifyTime(new Date()); |
| | | if (res) { |
| | | dockingPreApplyForm.setGroupCode(customCoding); |
| | | } |
| | |
| | | if(!CollectionUtils.isEmpty(dockingPreApplyFormList)){ |
| | | dockingPreApplyFormService.saveOrUpdateBatch(dockingPreApplyFormList); |
| | | } |
| | | saveLogUtil.operateLog("申请单结果返回",false,JSON.toJSONString(dockingReturnStoreVO.getMainData())); |
| | | saveLogUtil.operateLog("申请单结果返回",false, JSON.toJSONString(dockingReturnStoreVO.getMainData())); |
| | | }catch (Throwable e){ |
| | | e.printStackTrace(); |
| | | saveLogUtil.operateLog("申请单结果返回",true,"错误信息:"+e.getMessage()+"\n"+ JSON.toJSONString(dockingReturnStoreVO.getMainData())); |
| | |
| | | try { |
| | | String jclassId =StringUtils.isBlank(jclassObject.getId())?"":jclassObject.getId(); |
| | | Map<String, DockingPreViewModel> jviewmodelMap = new HashMap<String, DockingPreViewModel>(); |
| | | //Map<String, String> condtionMa = new HashMap<String, String>(); |
| | | // condtionMa.put("jsourceclsfid", jclassId); |
| | | // Map<String, String> condtionMa = new HashMap<String, String>(); |
| | | // condtionMa.put("jsourceclsfid", jclassId); |
| | | List<DockingPreViewModel> dockingPreViewModelList= dockingPreViewModelService.list(Wrappers.<DockingPreViewModel>query().lambda().eq(DockingPreViewModel::getSourceClassifyId,false));// 根据分类查询模型视图对象 |
| | | for (DockingPreViewModel dockingPreViewModel : dockingPreViewModelList) { |
| | | jviewmodelMap.put(dockingPreViewModel.getViewName(),dockingPreViewModel); |