田源
2024-04-18 3aae81075a18a11d6b605c7583eb03b75366b466
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;
@@ -57,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);
@@ -65,6 +68,8 @@
      entity.setLastModifier(creator);
      entity.setLastModifyTime(now);
      entity.setTs(now);
      entity.setPrecisionLength(0);
      entity.setScaleLength(0);
      entity.setPkBtmType(btmTypeOid);
      // 在这进行通用字段处理
      return entity;