From 5ab9f45e55854a17b92df4eaee79ce824e1f847c Mon Sep 17 00:00:00 2001 From: ludc Date: 星期一, 10 七月 2023 11:02:27 +0800 Subject: [PATCH] 前端代码打包,按钮查询xml修改 --- Source/UBCS/ubcs-service/ubcs-omd/src/main/java/com/vci/ubcs/omd/wrapper/BtmTypeAttributeWrapper.java | 13 ++++++++++++- 1 files changed, 12 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..cb9f96d 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,11 @@ package com.vci.ubcs.omd.wrapper; +import com.vci.ubcs.omd.cache.EnumCache; +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; @@ -32,6 +35,9 @@ public BtmTypeAttributeVO entityVO(BtmTypeAttribute entity) { BtmTypeAttributeVO vo = Objects.requireNonNull(BeanUtil.copy(entity, BtmTypeAttributeVO.class)); // 鍦ㄨ繖閲岃缃灇涓炬樉绀哄�� + vo.setPrecisionLength(vo.getPrecisionLength() == -1 ? null : vo.getPrecisionLength()); + vo.setScaleLength(vo.getScaleLength() == -1 ? null : vo.getPrecisionLength()); + vo.setAttrDataTypeText(EnumCache.getValue("attributeType",vo.getAttrDataType())); return vo; } @@ -53,11 +59,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