
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.YsZbtsysyfyEntity;
import org.sky.scientific.pojo.vo.YsZbtsysyfyVO;
import java.util.Objects;

/**
 * 项目预算-装备调试费用与试验费用 包装类,返回视图层所需的字段
 *
 * @author Kd
 * @since 2025-06-29
 */
public class YsZbtsysyfyWrapper extends BaseEntityWrapper<YsZbtsysyfyEntity, YsZbtsysyfyVO> {

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

	@Override
	public YsZbtsysyfyVO entityVO(YsZbtsysyfyEntity ysZbtsysyfy) {
		YsZbtsysyfyVO ysZbtsysyfyVO = Objects.requireNonNull(BeanUtil.copyProperties(ysZbtsysyfy, YsZbtsysyfyVO.class));

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

		return ysZbtsysyfyVO;
	}


}
