
package org.sky.scientific.wrapper;

import org.sky.core.mp.support.BaseEntityWrapper;
import org.sky.core.tool.utils.BeanUtil;
import org.sky.scientific.pojo.entity.YsWtwbyjkffyEntity;
import org.sky.scientific.pojo.vo.YsWtwbyjkffyVO;
import java.util.Objects;

/**
 * 项目预算-委托外部研究开发费 包装类,返回视图层所需的字段
 *
 * @author Kd
 * @since 2025-06-29
 */
public class YsWtwbyjkffyWrapper extends BaseEntityWrapper<YsWtwbyjkffyEntity, YsWtwbyjkffyVO> {

	public static YsWtwbyjkffyWrapper build() {
		return new YsWtwbyjkffyWrapper();
 	}

	@Override
	public YsWtwbyjkffyVO entityVO(YsWtwbyjkffyEntity ysWtwbyjkffy) {
		YsWtwbyjkffyVO ysWtwbyjkffyVO = Objects.requireNonNull(BeanUtil.copyProperties(ysWtwbyjkffy, YsWtwbyjkffyVO.class));

		//User createUser = UserCache.getUser(ysWtwbyjkffy.getCreateUser());
		//User updateUser = UserCache.getUser(ysWtwbyjkffy.getUpdateUser());
		//ysWtwbyjkffyVO.setCreateUserName(createUser.getName());
		//ysWtwbyjkffyVO.setUpdateUserName(updateUser.getName());

		return ysWtwbyjkffyVO;
	}


}
