| | |
| | | package com.xcong.excoin.modules.contract.mapper; |
| | | |
| | | import com.xcong.excoin.modules.contract.entity.ContractEntrustOrderEntity; |
| | | import com.xcong.excoin.modules.contract.entity.ContractHoldOrderEntity; |
| | | import com.xcong.excoin.modules.contract.entity.ContractOrderEntity; |
| | | import com.xcong.excoin.modules.contract.parameter.dto.SubmitEntrustDto; |
| | | import com.xcong.excoin.modules.contract.parameter.vo.ContractEntrustVo; |
| | | import org.mapstruct.Mapper; |
| | | import org.mapstruct.Mapping; |
| | | import org.mapstruct.factory.Mappers; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @author wzy |
| | |
| | | |
| | | @Mapping(source = "entrustPrice", target = "entrustOpeningPrice") |
| | | @Mapping(source = "createTime", target = "entrustTime") |
| | | @Mapping(source = "entrustAmount", target = "prePaymentAmount") |
| | | @Mapping(source = "entrustType", target = "orderType") |
| | | public abstract ContractOrderEntity entrustOrderToOrder(ContractEntrustOrderEntity orderEntity); |
| | | |
| | | @Mapping(source = "createTime", target = "entrustTime") |
| | | @Mapping(source = "entrustType", target = "type") |
| | | public abstract ContractEntrustVo entityToContractEntrustVo(ContractEntrustOrderEntity orderEntity); |
| | | |
| | | public abstract List<ContractEntrustVo> entityListToVoList(List<ContractEntrustOrderEntity> list); |
| | | |
| | | @Mapping(source = "entrustAmount", target = "prePaymentAmount") |
| | | public abstract ContractHoldOrderEntity entrustOrderToHoldOrder(ContractEntrustOrderEntity entrustOrderEntity); |
| | | |
| | | } |