| | |
| | | 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; |
| | | |
| | |
| | | */ |
| | | 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("btmTypeAttribute"); |
| | | entity.setOwner(creator); |
| | | entity.setCreator(creator); |
| | | entity.setCreateTime(now); |
| | | entity.setLastModifier(creator); |
| | | entity.setLastModifyTime(now); |
| | | entity.setTs(now); |
| | | entity.setPkBtmType(btmTypeOid); |
| | | // 在这进行通用字段处理 |
| | | return entity; |
| | | } |
| | | |
| | | } |