| | |
| | | |
| | | import com.xcong.excoin.modules.contract.entity.ContractHoldOrderEntity; |
| | | import com.xcong.excoin.modules.contract.entity.ContractOrderEntity; |
| | | import com.xcong.excoin.modules.contract.parameter.vo.HoldOrderDetailVo; |
| | | import com.xcong.excoin.modules.contract.parameter.vo.HoldOrderListVo; |
| | | import org.mapstruct.Mapper; |
| | | import org.mapstruct.Mapping; |
| | | import org.mapstruct.factory.Mappers; |
| | |
| | | public static final ContractHoldOrderEntityMapper INSTANCE = Mappers.getMapper(ContractHoldOrderEntityMapper.class); |
| | | |
| | | @Mapping(target = "orderType", source = "openingType") |
| | | @Mapping(target = "openingTime", source = "createTime") |
| | | public abstract ContractOrderEntity holdOrderToOrder(ContractHoldOrderEntity holdOrderEntity); |
| | | |
| | | public abstract HoldOrderListVo holdOrderToDto(ContractHoldOrderEntity holdOrderEntity); |
| | | |
| | | @Mapping(target = "openingTime", source = "createTime") |
| | | public abstract HoldOrderDetailVo holdOrderToOrderDetailVo(ContractHoldOrderEntity holdOrderEntity); |
| | | } |