158 lines
8.5 KiB
Java
158 lines
8.5 KiB
Java
package com.metalloop.modules.bussiness.converter;
|
|
|
|
import com.metalloop.modules.bussiness.model.po.BizSupplyInfo;
|
|
import com.metalloop.modules.bussiness.model.query.BizSupplyInfoQuery;
|
|
import com.metalloop.modules.bussiness.model.req.BizSupplyInfoQueryReqDto;
|
|
import com.metalloop.modules.bussiness.model.req.BizSupplyInfoReqDto;
|
|
import com.metalloop.modules.bussiness.model.resp.BizSupplyInfoRespDto;
|
|
import java.util.ArrayList;
|
|
import java.util.List;
|
|
import javax.annotation.processing.Generated;
|
|
|
|
@Generated(
|
|
value = "org.mapstruct.ap.MappingProcessor",
|
|
date = "2026-09-11T14:27:41+0800",
|
|
comments = "version: 1.6.3, compiler: javac, environment: Java 17.0.20.1 (Microsoft)"
|
|
)
|
|
public class BizSupplyInfoConverterImpl implements BizSupplyInfoConverter {
|
|
|
|
@Override
|
|
public BizSupplyInfoRespDto toRespDto(BizSupplyInfo bizSupplyInfo) {
|
|
if ( bizSupplyInfo == null ) {
|
|
return null;
|
|
}
|
|
|
|
BizSupplyInfoRespDto bizSupplyInfoRespDto = new BizSupplyInfoRespDto();
|
|
|
|
bizSupplyInfoRespDto.setId( bizSupplyInfo.getId() );
|
|
bizSupplyInfoRespDto.setCreateUserId( bizSupplyInfo.getCreateUserId() );
|
|
bizSupplyInfoRespDto.setEnterpriseId( bizSupplyInfo.getEnterpriseId() );
|
|
bizSupplyInfoRespDto.setElementType( bizSupplyInfo.getElementType() );
|
|
bizSupplyInfoRespDto.setProductCategory( bizSupplyInfo.getProductCategory() );
|
|
bizSupplyInfoRespDto.setMaterial( bizSupplyInfo.getMaterial() );
|
|
bizSupplyInfoRespDto.setTitle( bizSupplyInfo.getTitle() );
|
|
bizSupplyInfoRespDto.setDescription( bizSupplyInfo.getDescription() );
|
|
bizSupplyInfoRespDto.setQuantity( bizSupplyInfo.getQuantity() );
|
|
bizSupplyInfoRespDto.setUnitPrice( bizSupplyInfo.getUnitPrice() );
|
|
bizSupplyInfoRespDto.setContactPerson( bizSupplyInfo.getContactPerson() );
|
|
bizSupplyInfoRespDto.setContactPhone( bizSupplyInfo.getContactPhone() );
|
|
bizSupplyInfoRespDto.setDeliveryLocation( bizSupplyInfo.getDeliveryLocation() );
|
|
bizSupplyInfoRespDto.setImageUrl( bizSupplyInfo.getImageUrl() );
|
|
bizSupplyInfoRespDto.setAuditStatus( bizSupplyInfo.getAuditStatus() );
|
|
bizSupplyInfoRespDto.setPublishTime( bizSupplyInfo.getPublishTime() );
|
|
bizSupplyInfoRespDto.setExpireTime( bizSupplyInfo.getExpireTime() );
|
|
bizSupplyInfoRespDto.setAccountPeriodMode( bizSupplyInfo.getAccountPeriodMode() );
|
|
bizSupplyInfoRespDto.setDepositRatio( bizSupplyInfo.getDepositRatio() );
|
|
bizSupplyInfoRespDto.setFinalPaymentDeadline( bizSupplyInfo.getFinalPaymentDeadline() );
|
|
bizSupplyInfoRespDto.setStatus( bizSupplyInfo.getStatus() );
|
|
bizSupplyInfoRespDto.setRejectReason( bizSupplyInfo.getRejectReason() );
|
|
bizSupplyInfoRespDto.setUpdateUserId( bizSupplyInfo.getUpdateUserId() );
|
|
bizSupplyInfoRespDto.setCreateTime( bizSupplyInfo.getCreateTime() );
|
|
bizSupplyInfoRespDto.setUpdateTime( bizSupplyInfo.getUpdateTime() );
|
|
|
|
return bizSupplyInfoRespDto;
|
|
}
|
|
|
|
@Override
|
|
public List<BizSupplyInfoRespDto> toRespDto(List<BizSupplyInfo> bizSupplyInfos) {
|
|
if ( bizSupplyInfos == null ) {
|
|
return null;
|
|
}
|
|
|
|
List<BizSupplyInfoRespDto> list = new ArrayList<BizSupplyInfoRespDto>( bizSupplyInfos.size() );
|
|
for ( BizSupplyInfo bizSupplyInfo : bizSupplyInfos ) {
|
|
list.add( toRespDto( bizSupplyInfo ) );
|
|
}
|
|
|
|
return list;
|
|
}
|
|
|
|
@Override
|
|
public BizSupplyInfo fromReqDto(BizSupplyInfoReqDto bizSupplyInfoReqDto) {
|
|
if ( bizSupplyInfoReqDto == null ) {
|
|
return null;
|
|
}
|
|
|
|
BizSupplyInfo bizSupplyInfo = new BizSupplyInfo();
|
|
|
|
bizSupplyInfo.setId( bizSupplyInfoReqDto.getId() );
|
|
bizSupplyInfo.setCreateUserId( bizSupplyInfoReqDto.getCreateUserId() );
|
|
bizSupplyInfo.setEnterpriseId( bizSupplyInfoReqDto.getEnterpriseId() );
|
|
bizSupplyInfo.setElementType( bizSupplyInfoReqDto.getElementType() );
|
|
bizSupplyInfo.setProductCategory( bizSupplyInfoReqDto.getProductCategory() );
|
|
bizSupplyInfo.setMaterial( bizSupplyInfoReqDto.getMaterial() );
|
|
bizSupplyInfo.setTitle( bizSupplyInfoReqDto.getTitle() );
|
|
bizSupplyInfo.setDescription( bizSupplyInfoReqDto.getDescription() );
|
|
bizSupplyInfo.setQuantity( bizSupplyInfoReqDto.getQuantity() );
|
|
bizSupplyInfo.setUnitPrice( bizSupplyInfoReqDto.getUnitPrice() );
|
|
bizSupplyInfo.setContactPerson( bizSupplyInfoReqDto.getContactPerson() );
|
|
bizSupplyInfo.setContactPhone( bizSupplyInfoReqDto.getContactPhone() );
|
|
bizSupplyInfo.setDeliveryLocation( bizSupplyInfoReqDto.getDeliveryLocation() );
|
|
bizSupplyInfo.setImageUrl( bizSupplyInfoReqDto.getImageUrl() );
|
|
bizSupplyInfo.setAuditStatus( bizSupplyInfoReqDto.getAuditStatus() );
|
|
bizSupplyInfo.setPublishTime( bizSupplyInfoReqDto.getPublishTime() );
|
|
bizSupplyInfo.setExpireTime( bizSupplyInfoReqDto.getExpireTime() );
|
|
bizSupplyInfo.setAccountPeriodMode( bizSupplyInfoReqDto.getAccountPeriodMode() );
|
|
bizSupplyInfo.setDepositRatio( bizSupplyInfoReqDto.getDepositRatio() );
|
|
bizSupplyInfo.setFinalPaymentDeadline( bizSupplyInfoReqDto.getFinalPaymentDeadline() );
|
|
bizSupplyInfo.setStatus( bizSupplyInfoReqDto.getStatus() );
|
|
bizSupplyInfo.setRejectReason( bizSupplyInfoReqDto.getRejectReason() );
|
|
bizSupplyInfo.setUpdateUserId( bizSupplyInfoReqDto.getUpdateUserId() );
|
|
bizSupplyInfo.setCreateTime( bizSupplyInfoReqDto.getCreateTime() );
|
|
bizSupplyInfo.setUpdateTime( bizSupplyInfoReqDto.getUpdateTime() );
|
|
|
|
return bizSupplyInfo;
|
|
}
|
|
|
|
@Override
|
|
public List<BizSupplyInfo> fromReqDto(List<BizSupplyInfoReqDto> bizSupplyInfoReqDtos) {
|
|
if ( bizSupplyInfoReqDtos == null ) {
|
|
return null;
|
|
}
|
|
|
|
List<BizSupplyInfo> list = new ArrayList<BizSupplyInfo>( bizSupplyInfoReqDtos.size() );
|
|
for ( BizSupplyInfoReqDto bizSupplyInfoReqDto : bizSupplyInfoReqDtos ) {
|
|
list.add( fromReqDto( bizSupplyInfoReqDto ) );
|
|
}
|
|
|
|
return list;
|
|
}
|
|
|
|
@Override
|
|
public BizSupplyInfoQuery fromQueryReqDtoToQuery(BizSupplyInfoQueryReqDto bizSupplyInfoQueryReqDto) {
|
|
if ( bizSupplyInfoQueryReqDto == null ) {
|
|
return null;
|
|
}
|
|
|
|
BizSupplyInfoQuery bizSupplyInfoQuery = new BizSupplyInfoQuery();
|
|
|
|
bizSupplyInfoQuery.setId( bizSupplyInfoQueryReqDto.getId() );
|
|
bizSupplyInfoQuery.setCreateUserId( bizSupplyInfoQueryReqDto.getCreateUserId() );
|
|
bizSupplyInfoQuery.setEnterpriseId( bizSupplyInfoQueryReqDto.getEnterpriseId() );
|
|
bizSupplyInfoQuery.setElementType( bizSupplyInfoQueryReqDto.getElementType() );
|
|
bizSupplyInfoQuery.setProductCategory( bizSupplyInfoQueryReqDto.getProductCategory() );
|
|
bizSupplyInfoQuery.setMaterial( bizSupplyInfoQueryReqDto.getMaterial() );
|
|
bizSupplyInfoQuery.setTitle( bizSupplyInfoQueryReqDto.getTitle() );
|
|
bizSupplyInfoQuery.setDescription( bizSupplyInfoQueryReqDto.getDescription() );
|
|
bizSupplyInfoQuery.setQuantity( bizSupplyInfoQueryReqDto.getQuantity() );
|
|
bizSupplyInfoQuery.setUnitPrice( bizSupplyInfoQueryReqDto.getUnitPrice() );
|
|
bizSupplyInfoQuery.setContactPerson( bizSupplyInfoQueryReqDto.getContactPerson() );
|
|
bizSupplyInfoQuery.setContactPhone( bizSupplyInfoQueryReqDto.getContactPhone() );
|
|
bizSupplyInfoQuery.setDeliveryLocation( bizSupplyInfoQueryReqDto.getDeliveryLocation() );
|
|
bizSupplyInfoQuery.setImageUrl( bizSupplyInfoQueryReqDto.getImageUrl() );
|
|
bizSupplyInfoQuery.setAuditStatus( bizSupplyInfoQueryReqDto.getAuditStatus() );
|
|
bizSupplyInfoQuery.setPublishTime( bizSupplyInfoQueryReqDto.getPublishTime() );
|
|
bizSupplyInfoQuery.setExpireTime( bizSupplyInfoQueryReqDto.getExpireTime() );
|
|
bizSupplyInfoQuery.setAccountPeriodMode( bizSupplyInfoQueryReqDto.getAccountPeriodMode() );
|
|
bizSupplyInfoQuery.setDepositRatio( bizSupplyInfoQueryReqDto.getDepositRatio() );
|
|
bizSupplyInfoQuery.setFinalPaymentDeadline( bizSupplyInfoQueryReqDto.getFinalPaymentDeadline() );
|
|
bizSupplyInfoQuery.setStatus( bizSupplyInfoQueryReqDto.getStatus() );
|
|
bizSupplyInfoQuery.setRejectReason( bizSupplyInfoQueryReqDto.getRejectReason() );
|
|
bizSupplyInfoQuery.setUpdateUserId( bizSupplyInfoQueryReqDto.getUpdateUserId() );
|
|
bizSupplyInfoQuery.setCreateTime( bizSupplyInfoQueryReqDto.getCreateTime() );
|
|
bizSupplyInfoQuery.setUpdateTime( bizSupplyInfoQueryReqDto.getUpdateTime() );
|
|
|
|
return bizSupplyInfoQuery;
|
|
}
|
|
}
|