| | |
| | | |
| | | import org.springblade.core.mp.support.BaseEntityWrapper; |
| | | import org.springblade.core.tool.utils.BeanUtil; |
| | | import org.sxkj.fw.device.dto.FwDeviceMaintainPlanDTO; |
| | | import org.sxkj.fw.device.entity.FwDeviceMaintainPlanEntity; |
| | | import org.sxkj.fw.device.vo.FwDeviceMaintainPlanVO; |
| | | import java.util.Objects; |
| | |
| | | /** |
| | | * 设备维护计划表 包装类,返回视图层所需的字段 |
| | | * |
| | | * @author lw |
| | | * @since 2026-01-08 |
| | | * @author Aix |
| | | * @since 2026-01-09 |
| | | */ |
| | | public class FwDeviceMaintainPlanWrapper extends BaseEntityWrapper<FwDeviceMaintainPlanEntity, FwDeviceMaintainPlanVO> { |
| | | |
| | |
| | | |
| | | @Override |
| | | public FwDeviceMaintainPlanVO entityVO(FwDeviceMaintainPlanEntity fwDeviceMaintainPlan) { |
| | | FwDeviceMaintainPlanVO fwDeviceMaintainPlanVO = Objects.requireNonNull(BeanUtil.copy(fwDeviceMaintainPlan, FwDeviceMaintainPlanVO.class)); |
| | | |
| | | //User createUser = UserCache.getUser(fwDeviceMaintainPlan.getCreateUser()); |
| | | //User updateUser = UserCache.getUser(fwDeviceMaintainPlan.getUpdateUser()); |
| | | //fwDeviceMaintainPlanVO.setCreateUserName(createUser.getName()); |
| | | //fwDeviceMaintainPlanVO.setUpdateUserName(updateUser.getName()); |
| | | return Objects.requireNonNull(BeanUtil.copy(fwDeviceMaintainPlan, FwDeviceMaintainPlanVO.class)); |
| | | } |
| | | |
| | | return fwDeviceMaintainPlanVO; |
| | | public FwDeviceMaintainPlanEntity entityDTO(FwDeviceMaintainPlanDTO fwDeviceMaintainPlan) { |
| | | |
| | | return Objects.requireNonNull(BeanUtil.copy(fwDeviceMaintainPlan, FwDeviceMaintainPlanEntity.class)); |
| | | } |
| | | |
| | | |