From 85d10ebf08cb41fa3ec06272e6e991cdd0a534f9 Mon Sep 17 00:00:00 2001
From: xiejun <xj@2023>
Date: 星期四, 01 六月 2023 17:54:58 +0800
Subject: [PATCH] 集团集属性映射界面加载接口bug修复

---
 Source/UBCS/ubcs-service/ubcs-omd/src/main/java/com/vci/ubcs/omd/wrapper/BtmTypeAttributeWrapper.java |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/Source/UBCS/ubcs-service/ubcs-omd/src/main/java/com/vci/ubcs/omd/wrapper/BtmTypeAttributeWrapper.java b/Source/UBCS/ubcs-service/ubcs-omd/src/main/java/com/vci/ubcs/omd/wrapper/BtmTypeAttributeWrapper.java
index b917e31..f9574b3 100644
--- a/Source/UBCS/ubcs-service/ubcs-omd/src/main/java/com/vci/ubcs/omd/wrapper/BtmTypeAttributeWrapper.java
+++ b/Source/UBCS/ubcs-service/ubcs-omd/src/main/java/com/vci/ubcs/omd/wrapper/BtmTypeAttributeWrapper.java
@@ -1,8 +1,10 @@
 package com.vci.ubcs.omd.wrapper;
 
+import com.vci.ubcs.omd.constant.BtmTypeConstant;
 import com.vci.ubcs.omd.dto.BtmTypeLinkAttributesDTO;
 import com.vci.ubcs.omd.entity.BtmTypeAttribute;
 import com.vci.ubcs.omd.vo.BtmTypeAttributeVO;
+import com.vci.ubcs.starter.web.util.VciBaseUtil;
 import org.springblade.core.mp.support.BaseEntityWrapper;
 import org.springblade.core.tool.utils.BeanUtil;
 
@@ -53,11 +55,16 @@
 	 */
 	public BtmTypeAttribute copyBtmTypeAttributeDTO2Entity(BtmTypeLinkAttributesDTO dto, String btmTypeOid, String creator, Date now){
 		BtmTypeAttribute entity = Objects.requireNonNull(BeanUtil.copy(dto, BtmTypeAttribute.class));
+		entity.setOid(VciBaseUtil.getPk());
+		entity.setBtmName(BtmTypeConstant.BTM_TYPE_ATTRIBUTE);
+		entity.setOwner(creator);
+		entity.setCreator(creator);
+		entity.setCreateTime(now);
 		entity.setLastModifier(creator);
+		entity.setLastModifyTime(now);
 		entity.setTs(now);
 		entity.setPkBtmType(btmTypeOid);
 		// 鍦ㄨ繖杩涜閫氱敤瀛楁澶勭悊
 		return entity;
 	}
-
 }

--
Gitblit v1.9.3