package com.yhy.module.core.convert.workbench;

import com.yhy.module.core.controller.admin.workbench.vo.WbBoqDivisionRespVO;
import com.yhy.module.core.controller.admin.workbench.vo.WbBoqDivisionSaveReqVO;
import com.yhy.module.core.dal.dataobject.workbench.WbBoqDivisionDO;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

/**
 * 工作台分部分项树 Convert
 *
 * @author yhy
 */
@Mapper
public interface WbBoqDivisionConvert {

    WbBoqDivisionConvert INSTANCE = Mappers.getMapper(WbBoqDivisionConvert.class);

    WbBoqDivisionDO convert(WbBoqDivisionSaveReqVO bean);

    @Mapping(source = "isSyncSource", target = "isSyncSource")
    WbBoqDivisionRespVO convert(WbBoqDivisionDO bean);

    java.util.List<WbBoqDivisionRespVO> convertList(java.util.List<WbBoqDivisionDO> list);
}
