From 5f0d9a00a1e0f27c2f8396dcd98fac5022aa40c7 Mon Sep 17 00:00:00 2001
From: ludc
Date: 星期六, 13 四月 2024 20:48:04 +0800
Subject: [PATCH] 内网开发环境代码合并

---
 Source/UBCS/ubcs-service/ubcs-applyjtcodeservice/src/main/java/com/vci/ubcs/code/applyjtcodeservice/feigh/MdmInterJtClient.java |   19 ++++++++++++-------
 1 files changed, 12 insertions(+), 7 deletions(-)

diff --git a/Source/UBCS/ubcs-service/ubcs-applyjtcodeservice/src/main/java/com/vci/ubcs/code/applyjtcodeservice/feigh/MdmInterJtClient.java b/Source/UBCS/ubcs-service/ubcs-applyjtcodeservice/src/main/java/com/vci/ubcs/code/applyjtcodeservice/feigh/MdmInterJtClient.java
index 344f981..bc5298e 100644
--- a/Source/UBCS/ubcs-service/ubcs-applyjtcodeservice/src/main/java/com/vci/ubcs/code/applyjtcodeservice/feigh/MdmInterJtClient.java
+++ b/Source/UBCS/ubcs-service/ubcs-applyjtcodeservice/src/main/java/com/vci/ubcs/code/applyjtcodeservice/feigh/MdmInterJtClient.java
@@ -1,6 +1,7 @@
 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;
@@ -12,12 +13,14 @@
 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;
@@ -79,6 +82,8 @@
 	@Autowired(required = false)
 	private IMdmEngineClient mdmEngineClient;
 
+	private final SaveLogUtil saveLogUtil;
+
 	/***
 	 * 鐢宠闆嗗洟缂栫爜
 	 * @return
@@ -119,9 +124,6 @@
 		}
 	}
 
-	/*
-	 * 涓绘暟鎹笟鍔℃湇鍔�
-	 */
 	/**
 	 * 鑾峰彇闆嗗洟闆嗗洟鐮侊紝璧嬪�煎埌涓绘暟鎹�
 	 * @param dockingReturnStoreVO
@@ -133,7 +135,6 @@
 		log.info("鑾峰彇闆嗗洟闆嗗洟鐮侊紝璧嬪�煎埌涓绘暟鎹� start");
 		try {
 			Map<String,List<BaseModel>> editObjectMap = new HashMap<>();
-
 			List<DockingPreApplyForm> dockingPreApplyFormList = new ArrayList();
 			//String classId = javaObject.getClassId();
 			//String sysName = javaObject.getSysName();
@@ -170,6 +171,8 @@
 				} else if ("9".equals(formState)) {
 					msg = "瀹℃牳涓�";
 				}
+				// 濡傛灉杩斿洖浜嗗鏌ユ剰瑙佸氨鐢ㄨ繑鍥炵殑
+				msg = Func.isNotBlank(mainData.getExamineOpinion()) ? msg+"锛屾剰瑙侊細"+mainData.getExamineOpinion():msg;
 				jcontent.put("applyId", applyId);
 				jcontent.put("formState", formState);
 				jcontent.put("customCoding", customCoding);
@@ -182,6 +185,7 @@
 				DockingPreApplyForm dockingPreApplyForm = oldDockingPreApplyFormList.get(0);
 				dockingPreApplyForm.setMsg(msg);
 				dockingPreApplyForm.setCode("1");
+				dockingPreApplyForm.setLastModifyTime(new Date());
 				if (res) {
 					dockingPreApplyForm.setGroupCode(customCoding);
 				}
@@ -220,9 +224,11 @@
 			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("闆嗗洟鐮佽祴鍊兼垚鍔�");
@@ -307,8 +313,7 @@
 	 * @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();

--
Gitblit v1.9.3