From 9e9435a15d12e364d0a910434de0568e11bb273c Mon Sep 17 00:00:00 2001 From: yuxc <653031404@qq.com> Date: 星期四, 03 八月 2023 17:08:05 +0800 Subject: [PATCH] 1、处理lastr","firstr","lastv","firstv"字段在数据创建时为整形问题。 2、处理属性分组设置了一个属性,且配置表单中不显示。那么页面的表单应该不显示此分组。 --- Source/UBCS/ubcs-service/ubcs-omd/src/main/java/com/vci/ubcs/omd/wrapper/BtmTypeAttributeWrapper.java | 7 ++++--- 1 files changed, 4 insertions(+), 3 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 cb9f96d..391dd47 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 @@ -8,6 +8,7 @@ import com.vci.ubcs.starter.web.util.VciBaseUtil; import org.springblade.core.mp.support.BaseEntityWrapper; import org.springblade.core.tool.utils.BeanUtil; +import org.springblade.core.tool.utils.StringUtil; import java.util.Date; import java.util.List; @@ -35,8 +36,6 @@ 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; } @@ -59,7 +58,9 @@ */ public BtmTypeAttribute copyBtmTypeAttributeDTO2Entity(BtmTypeLinkAttributesDTO dto, String btmTypeOid, String creator, Date now){ BtmTypeAttribute entity = Objects.requireNonNull(BeanUtil.copy(dto, BtmTypeAttribute.class)); - entity.setOid(VciBaseUtil.getPk()); + if (StringUtil.isBlank(entity.getOid())) { + entity.setOid(VciBaseUtil.getPk()); + } entity.setBtmName(BtmTypeConstant.BTM_TYPE_ATTRIBUTE); entity.setOwner(creator); entity.setCreator(creator); -- Gitblit v1.9.3