"设备规格修改"
This commit is contained in:
parent
c56357adc0
commit
52650b7ae0
|
|
@ -0,0 +1,15 @@
|
||||||
|
package cn.pluss.platform.entity;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableField;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import lombok.Data;
|
||||||
|
@TableName("tb_pluss_merchant_lkl")
|
||||||
|
@Data
|
||||||
|
public class PlussMerchantLklEntity {
|
||||||
|
@TableField("merchantId")
|
||||||
|
private String merchantId;
|
||||||
|
@TableField("merchantlkl")
|
||||||
|
private String merchantlkl;
|
||||||
|
@TableField("type")
|
||||||
|
private String type;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,28 @@
|
||||||
|
package cn.pluss.platform.entity;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableField;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
@TableName("tb_lkl_region_bank_info")
|
||||||
|
@Data
|
||||||
|
public class TbLklRegionBankInfoEntity {
|
||||||
|
@TableField("s_code")
|
||||||
|
private String sCode;
|
||||||
|
@TableField("s_name")
|
||||||
|
private String sName;
|
||||||
|
@TableField("r_code")
|
||||||
|
private String rCode;
|
||||||
|
@TableField("r_name")
|
||||||
|
private String rName;
|
||||||
|
@TableField("clear_no")
|
||||||
|
private String clearNo;
|
||||||
|
@TableField("area_code")
|
||||||
|
private String areaCode;
|
||||||
|
@TableField("branch_bank_no")
|
||||||
|
private String branchBankNo;
|
||||||
|
@TableField("branch_bank_name")
|
||||||
|
private String branchBankName;
|
||||||
|
@TableField("bank_no")
|
||||||
|
private String bankNo;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,28 @@
|
||||||
|
package cn.pluss.platform.entity;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableField;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@TableName("tb_pluss_bank_branch_lkl")
|
||||||
|
public class TbPlussBankBranchLklEntity {
|
||||||
|
@TableField("id")
|
||||||
|
private String id;
|
||||||
|
@TableField("create_time")
|
||||||
|
private String createTime;
|
||||||
|
@TableField("optimistic")
|
||||||
|
private String optimistic;
|
||||||
|
@TableField("update_time")
|
||||||
|
private String updateTime;
|
||||||
|
@TableField("area_code")
|
||||||
|
private String areaCode;
|
||||||
|
@TableField("bank_no")
|
||||||
|
private String bankNo;
|
||||||
|
@TableField("branch_bank_name")
|
||||||
|
private String branchBankName;
|
||||||
|
@TableField("branch_bank_no")
|
||||||
|
private String branchBankNo;
|
||||||
|
@TableField("clear_no")
|
||||||
|
private String clearNo;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,24 @@
|
||||||
|
package cn.pluss.platform.entity;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableField;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@TableName("tb_pluss_bank_region_lkl")
|
||||||
|
public class TbPlussBankRegionLklEntity {
|
||||||
|
@TableField("id")
|
||||||
|
private String id;
|
||||||
|
@TableField("create_time")
|
||||||
|
private String createTime;
|
||||||
|
@TableField("optimistic")
|
||||||
|
private String optimistic;
|
||||||
|
@TableField("update_time")
|
||||||
|
private String updateTime;
|
||||||
|
@TableField("code")
|
||||||
|
private String code;
|
||||||
|
@TableField("name")
|
||||||
|
private String name;
|
||||||
|
@TableField("parent_code")
|
||||||
|
private String parentCode;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,23 @@
|
||||||
|
package cn.pluss.platform.entity;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableField;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import lombok.Data;
|
||||||
|
@TableName("tb_pluss_business_small_lkl")
|
||||||
|
@Data
|
||||||
|
public class TbPlussBusinessSmallLklEntity {
|
||||||
|
@TableField("id")
|
||||||
|
private String id;
|
||||||
|
@TableField("create_time")
|
||||||
|
private String createTime;
|
||||||
|
@TableField("optimistic")
|
||||||
|
private String optimistic;
|
||||||
|
@TableField("update_time")
|
||||||
|
private String updateTime;
|
||||||
|
@TableField("code")
|
||||||
|
private String code;
|
||||||
|
@TableField("name")
|
||||||
|
private String name;
|
||||||
|
@TableField("parent_code")
|
||||||
|
private String parentCode;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,24 @@
|
||||||
|
package cn.pluss.platform.entity;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableField;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@TableName("tb_pluss_region_lkl")
|
||||||
|
public class TbPlussRegionLklEntity {
|
||||||
|
@TableField("id")
|
||||||
|
private String id;
|
||||||
|
@TableField("create_time")
|
||||||
|
private String createTime;
|
||||||
|
@TableField("optimistic")
|
||||||
|
private String optimistic;
|
||||||
|
@TableField("update_time")
|
||||||
|
private String updateTime;
|
||||||
|
@TableField("code")
|
||||||
|
private String code;
|
||||||
|
@TableField("name")
|
||||||
|
private String name;
|
||||||
|
@TableField("parent_code")
|
||||||
|
private String parentCode;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,37 @@
|
||||||
|
package cn.pluss.platform.converter;
|
||||||
|
|
||||||
|
import cn.pluss.platform.dto.BankInfoDTO;
|
||||||
|
import cn.pluss.platform.entity.BankCard;
|
||||||
|
import javax.annotation.Generated;
|
||||||
|
|
||||||
|
@Generated(
|
||||||
|
value = "org.mapstruct.ap.MappingProcessor",
|
||||||
|
date = "2023-05-04T16:00:25+0800",
|
||||||
|
comments = "version: 1.4.2.Final, compiler: javac, environment: Java 1.8.0_191 (Oracle Corporation)"
|
||||||
|
)
|
||||||
|
public class BankCardConverterImpl implements BankCardConverter {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public BankCard dto2Domain(BankInfoDTO bankInfoDTO) {
|
||||||
|
if ( bankInfoDTO == null ) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
BankCard bankCard = new BankCard();
|
||||||
|
|
||||||
|
bankCard.setUserId( bankInfoDTO.getUserId() );
|
||||||
|
bankCard.setBankCardNo( bankInfoDTO.getBankCardNo() );
|
||||||
|
bankCard.setBankName( bankInfoDTO.getBankName() );
|
||||||
|
bankCard.setBranchName( bankInfoDTO.getBranchName() );
|
||||||
|
bankCard.setAccountType( bankInfoDTO.getAccountType() );
|
||||||
|
bankCard.setContactLine( bankInfoDTO.getContactLine() );
|
||||||
|
bankCard.setBranchProvince( bankInfoDTO.getBranchProvince() );
|
||||||
|
bankCard.setBranchCity( bankInfoDTO.getBranchCity() );
|
||||||
|
bankCard.setBranchArea( bankInfoDTO.getBranchArea() );
|
||||||
|
bankCard.setBankAddressNo( bankInfoDTO.getBankAddressNo() );
|
||||||
|
bankCard.setPhone( bankInfoDTO.getPhone() );
|
||||||
|
bankCard.setImgUrl( bankInfoDTO.getImgUrl() );
|
||||||
|
|
||||||
|
return bankCard;
|
||||||
|
}
|
||||||
|
}
|
||||||
File diff suppressed because it is too large
Load Diff
|
|
@ -0,0 +1,43 @@
|
||||||
|
package cn.pluss.platform.converter;
|
||||||
|
|
||||||
|
import cn.pluss.platform.entity.MerchantImage;
|
||||||
|
import javax.annotation.Generated;
|
||||||
|
|
||||||
|
@Generated(
|
||||||
|
value = "org.mapstruct.ap.MappingProcessor",
|
||||||
|
date = "2023-05-04T16:00:25+0800",
|
||||||
|
comments = "version: 1.4.2.Final, compiler: javac, environment: Java 1.8.0_191 (Oracle Corporation)"
|
||||||
|
)
|
||||||
|
public class ImgConverterImpl implements ImgConverter {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public MerchantImage imgCopy(MerchantImage merchantImage) {
|
||||||
|
if ( merchantImage == null ) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
MerchantImage merchantImage1 = new MerchantImage();
|
||||||
|
|
||||||
|
merchantImage1.setId( merchantImage.getId() );
|
||||||
|
merchantImage1.setMerchantCode( merchantImage.getMerchantCode() );
|
||||||
|
merchantImage1.setPhotoType( merchantImage.getPhotoType() );
|
||||||
|
merchantImage1.setPhotoUrl( merchantImage.getPhotoUrl() );
|
||||||
|
merchantImage1.setPicUrl( merchantImage.getPicUrl() );
|
||||||
|
merchantImage1.setPicUrl1( merchantImage.getPicUrl1() );
|
||||||
|
merchantImage1.setPicUrl2( merchantImage.getPicUrl2() );
|
||||||
|
merchantImage1.setPicUrl3( merchantImage.getPicUrl3() );
|
||||||
|
merchantImage1.setPicUrl6( merchantImage.getPicUrl6() );
|
||||||
|
merchantImage1.setPicUrl7( merchantImage.getPicUrl7() );
|
||||||
|
merchantImage1.setPicUrl8( merchantImage.getPicUrl8() );
|
||||||
|
merchantImage1.setPicUrl9( merchantImage.getPicUrl9() );
|
||||||
|
merchantImage1.setPicUrl999( merchantImage.getPicUrl999() );
|
||||||
|
merchantImage1.setPicUrl101( merchantImage.getPicUrl101() );
|
||||||
|
merchantImage1.setPicUrl102( merchantImage.getPicUrl102() );
|
||||||
|
merchantImage1.setPicUrl11( merchantImage.getPicUrl11() );
|
||||||
|
merchantImage1.setCreateDt( merchantImage.getCreateDt() );
|
||||||
|
merchantImage1.setUpdateDt( merchantImage.getUpdateDt() );
|
||||||
|
merchantImage1.setAisleSwitch( merchantImage.getAisleSwitch() );
|
||||||
|
|
||||||
|
return merchantImage1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,314 @@
|
||||||
|
package cn.pluss.platform.converter;
|
||||||
|
|
||||||
|
import cn.pluss.platform.dto.MerchantBaseInfoDTO;
|
||||||
|
import cn.pluss.platform.entity.MerchantBaseInfo;
|
||||||
|
import cn.pluss.platform.entity.MerchantStore;
|
||||||
|
import cn.pluss.platform.entity.UserApp;
|
||||||
|
import cn.pluss.platform.vo.MerchantBaseInfoVO;
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
import javax.annotation.Generated;
|
||||||
|
|
||||||
|
@Generated(
|
||||||
|
value = "org.mapstruct.ap.MappingProcessor",
|
||||||
|
date = "2023-05-04T16:00:26+0800",
|
||||||
|
comments = "version: 1.4.2.Final, compiler: javac, environment: Java 1.8.0_191 (Oracle Corporation)"
|
||||||
|
)
|
||||||
|
public class MerchantBaseInfoConverterImpl implements MerchantBaseInfoConverter {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public MerchantBaseInfoDTO domain2dto(MerchantBaseInfo entity) {
|
||||||
|
if ( entity == null ) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
MerchantBaseInfoDTO merchantBaseInfoDTO = new MerchantBaseInfoDTO();
|
||||||
|
|
||||||
|
merchantBaseInfoDTO.setId( entity.getId() );
|
||||||
|
merchantBaseInfoDTO.setUserId( entity.getUserId() );
|
||||||
|
merchantBaseInfoDTO.setMerchantName( entity.getMerchantName() );
|
||||||
|
merchantBaseInfoDTO.setMerchantType( entity.getMerchantType() );
|
||||||
|
merchantBaseInfoDTO.setAlias( entity.getAlias() );
|
||||||
|
merchantBaseInfoDTO.setMcc( entity.getMcc() );
|
||||||
|
merchantBaseInfoDTO.setMccName( entity.getMccName() );
|
||||||
|
merchantBaseInfoDTO.setAliAccount( entity.getAliAccount() );
|
||||||
|
merchantBaseInfoDTO.setProductDesc( entity.getProductDesc() );
|
||||||
|
merchantBaseInfoDTO.setAddressNo( entity.getAddressNo() );
|
||||||
|
merchantBaseInfoDTO.setMerchantAddress( entity.getMerchantAddress() );
|
||||||
|
merchantBaseInfoDTO.setAddress( entity.getAddress() );
|
||||||
|
merchantBaseInfoDTO.setContactMobile( entity.getContactMobile() );
|
||||||
|
merchantBaseInfoDTO.setContactName( entity.getContactName() );
|
||||||
|
merchantBaseInfoDTO.setEmail( entity.getEmail() );
|
||||||
|
merchantBaseInfoDTO.setStoreHeadPic( entity.getStoreHeadPic() );
|
||||||
|
merchantBaseInfoDTO.setStoreInsidePic( entity.getStoreInsidePic() );
|
||||||
|
merchantBaseInfoDTO.setCashPic( entity.getCashPic() );
|
||||||
|
merchantBaseInfoDTO.setUserPhone( entity.getUserPhone() );
|
||||||
|
|
||||||
|
return merchantBaseInfoDTO;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public MerchantBaseInfoVO domain2VO(MerchantBaseInfo entity) {
|
||||||
|
if ( entity == null ) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
MerchantBaseInfoVO merchantBaseInfoVO = new MerchantBaseInfoVO();
|
||||||
|
|
||||||
|
merchantBaseInfoVO.setId( entity.getId() );
|
||||||
|
merchantBaseInfoVO.setBindingCode( entity.getBindingCode() );
|
||||||
|
merchantBaseInfoVO.setUserId( entity.getUserId() );
|
||||||
|
merchantBaseInfoVO.setAliAccount( entity.getAliAccount() );
|
||||||
|
merchantBaseInfoVO.setMerchantCode( entity.getMerchantCode() );
|
||||||
|
merchantBaseInfoVO.setMerchantName( entity.getMerchantName() );
|
||||||
|
merchantBaseInfoVO.setMerchantType( entity.getMerchantType() );
|
||||||
|
merchantBaseInfoVO.setProductDesc( entity.getProductDesc() );
|
||||||
|
merchantBaseInfoVO.setAliMcc( entity.getAliMcc() );
|
||||||
|
merchantBaseInfoVO.setMcc( entity.getMcc() );
|
||||||
|
merchantBaseInfoVO.setMccName( entity.getMccName() );
|
||||||
|
merchantBaseInfoVO.setAlias( entity.getAlias() );
|
||||||
|
merchantBaseInfoVO.setContactMobile( entity.getContactMobile() );
|
||||||
|
merchantBaseInfoVO.setContactName( entity.getContactName() );
|
||||||
|
merchantBaseInfoVO.setAddressNo( entity.getAddressNo() );
|
||||||
|
merchantBaseInfoVO.setProvince( entity.getProvince() );
|
||||||
|
merchantBaseInfoVO.setCity( entity.getCity() );
|
||||||
|
merchantBaseInfoVO.setDistrict( entity.getDistrict() );
|
||||||
|
merchantBaseInfoVO.setAddress( entity.getAddress() );
|
||||||
|
merchantBaseInfoVO.setEmail( entity.getEmail() );
|
||||||
|
merchantBaseInfoVO.setPrincipalMobile( entity.getPrincipalMobile() );
|
||||||
|
merchantBaseInfoVO.setPrincipalCertType( entity.getPrincipalCertType() );
|
||||||
|
merchantBaseInfoVO.setPrincipalCertNo( entity.getPrincipalCertNo() );
|
||||||
|
merchantBaseInfoVO.setPrincipalPerson( entity.getPrincipalPerson() );
|
||||||
|
merchantBaseInfoVO.setBussAuthName( entity.getBussAuthName() );
|
||||||
|
merchantBaseInfoVO.setBussAuthNum( entity.getBussAuthNum() );
|
||||||
|
merchantBaseInfoVO.setBussAuthAddress( entity.getBussAuthAddress() );
|
||||||
|
merchantBaseInfoVO.setBussAuthStartTime( entity.getBussAuthStartTime() );
|
||||||
|
merchantBaseInfoVO.setBussAuthEndTime( entity.getBussAuthEndTime() );
|
||||||
|
merchantBaseInfoVO.setAllowBankLarge( entity.getAllowBankLarge() );
|
||||||
|
merchantBaseInfoVO.setWxCertStatus( entity.getWxCertStatus() );
|
||||||
|
merchantBaseInfoVO.setCreateDt( entity.getCreateDt() );
|
||||||
|
merchantBaseInfoVO.setUpdateDt( entity.getUpdateDt() );
|
||||||
|
merchantBaseInfoVO.setBuslicType( entity.getBuslicType() );
|
||||||
|
merchantBaseInfoVO.setIsVoice( entity.getIsVoice() );
|
||||||
|
merchantBaseInfoVO.setIsPushWxMessage( entity.getIsPushWxMessage() );
|
||||||
|
merchantBaseInfoVO.setIsUnionPay( entity.getIsUnionPay() );
|
||||||
|
merchantBaseInfoVO.setMd5Key( entity.getMd5Key() );
|
||||||
|
merchantBaseInfoVO.setLimitPay( entity.getLimitPay() );
|
||||||
|
merchantBaseInfoVO.setSubAppId( entity.getSubAppId() );
|
||||||
|
merchantBaseInfoVO.setAppid( entity.getAppid() );
|
||||||
|
merchantBaseInfoVO.setStatus( entity.getStatus() );
|
||||||
|
merchantBaseInfoVO.setMerchantAddress( entity.getMerchantAddress() );
|
||||||
|
merchantBaseInfoVO.setStoreHeadPic( entity.getStoreHeadPic() );
|
||||||
|
merchantBaseInfoVO.setStoreInsidePic( entity.getStoreInsidePic() );
|
||||||
|
merchantBaseInfoVO.setCashPic( entity.getCashPic() );
|
||||||
|
merchantBaseInfoVO.setLiteralPic( entity.getLiteralPic() );
|
||||||
|
merchantBaseInfoVO.setWarrantyPic( entity.getWarrantyPic() );
|
||||||
|
merchantBaseInfoVO.setDealPic( entity.getDealPic() );
|
||||||
|
merchantBaseInfoVO.setAffilatePic( entity.getAffilatePic() );
|
||||||
|
merchantBaseInfoVO.setHandPic( entity.getHandPic() );
|
||||||
|
merchantBaseInfoVO.setMerchantAuditStatus( entity.getMerchantAuditStatus() );
|
||||||
|
merchantBaseInfoVO.setStartTime( entity.getStartTime() );
|
||||||
|
merchantBaseInfoVO.setEndTime( entity.getEndTime() );
|
||||||
|
merchantBaseInfoVO.setImgUrl( entity.getImgUrl() );
|
||||||
|
merchantBaseInfoVO.setLoginName( entity.getLoginName() );
|
||||||
|
merchantBaseInfoVO.setPassword( entity.getPassword() );
|
||||||
|
merchantBaseInfoVO.setLogo( entity.getLogo() );
|
||||||
|
merchantBaseInfoVO.setUserPhone( entity.getUserPhone() );
|
||||||
|
merchantBaseInfoVO.setUserName( entity.getUserName() );
|
||||||
|
merchantBaseInfoVO.setBusinessLicensePic( entity.getBusinessLicensePic() );
|
||||||
|
merchantBaseInfoVO.setLocation( entity.getLocation() );
|
||||||
|
merchantBaseInfoVO.setFirstTradeTime( entity.getFirstTradeTime() );
|
||||||
|
merchantBaseInfoVO.setLastTradeTime( entity.getLastTradeTime() );
|
||||||
|
merchantBaseInfoVO.setSplitFlag( entity.getSplitFlag() );
|
||||||
|
merchantBaseInfoVO.setValidFlag( entity.getValidFlag() );
|
||||||
|
|
||||||
|
return merchantBaseInfoVO;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public MerchantBaseInfo vo2domain(MerchantBaseInfoVO entity) {
|
||||||
|
if ( entity == null ) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
MerchantBaseInfo merchantBaseInfo = new MerchantBaseInfo();
|
||||||
|
|
||||||
|
merchantBaseInfo.setId( entity.getId() );
|
||||||
|
merchantBaseInfo.setBindingCode( entity.getBindingCode() );
|
||||||
|
merchantBaseInfo.setUserId( entity.getUserId() );
|
||||||
|
merchantBaseInfo.setAliAccount( entity.getAliAccount() );
|
||||||
|
merchantBaseInfo.setMerchantCode( entity.getMerchantCode() );
|
||||||
|
merchantBaseInfo.setMerchantName( entity.getMerchantName() );
|
||||||
|
merchantBaseInfo.setMerchantType( entity.getMerchantType() );
|
||||||
|
merchantBaseInfo.setProductDesc( entity.getProductDesc() );
|
||||||
|
merchantBaseInfo.setAliMcc( entity.getAliMcc() );
|
||||||
|
merchantBaseInfo.setMcc( entity.getMcc() );
|
||||||
|
merchantBaseInfo.setMccName( entity.getMccName() );
|
||||||
|
merchantBaseInfo.setAlias( entity.getAlias() );
|
||||||
|
merchantBaseInfo.setContactMobile( entity.getContactMobile() );
|
||||||
|
merchantBaseInfo.setContactName( entity.getContactName() );
|
||||||
|
merchantBaseInfo.setAddressNo( entity.getAddressNo() );
|
||||||
|
merchantBaseInfo.setProvince( entity.getProvince() );
|
||||||
|
merchantBaseInfo.setCity( entity.getCity() );
|
||||||
|
merchantBaseInfo.setDistrict( entity.getDistrict() );
|
||||||
|
merchantBaseInfo.setAddress( entity.getAddress() );
|
||||||
|
merchantBaseInfo.setEmail( entity.getEmail() );
|
||||||
|
merchantBaseInfo.setPrincipalMobile( entity.getPrincipalMobile() );
|
||||||
|
merchantBaseInfo.setPrincipalCertType( entity.getPrincipalCertType() );
|
||||||
|
merchantBaseInfo.setPrincipalCertNo( entity.getPrincipalCertNo() );
|
||||||
|
merchantBaseInfo.setPrincipalPerson( entity.getPrincipalPerson() );
|
||||||
|
merchantBaseInfo.setBussAuthName( entity.getBussAuthName() );
|
||||||
|
merchantBaseInfo.setBussAuthNum( entity.getBussAuthNum() );
|
||||||
|
merchantBaseInfo.setBussAuthAddress( entity.getBussAuthAddress() );
|
||||||
|
merchantBaseInfo.setBussAuthStartTime( entity.getBussAuthStartTime() );
|
||||||
|
merchantBaseInfo.setBussAuthEndTime( entity.getBussAuthEndTime() );
|
||||||
|
merchantBaseInfo.setAllowBankLarge( entity.getAllowBankLarge() );
|
||||||
|
merchantBaseInfo.setWxCertStatus( entity.getWxCertStatus() );
|
||||||
|
merchantBaseInfo.setCreateDt( entity.getCreateDt() );
|
||||||
|
merchantBaseInfo.setUpdateDt( entity.getUpdateDt() );
|
||||||
|
merchantBaseInfo.setBuslicType( entity.getBuslicType() );
|
||||||
|
merchantBaseInfo.setIsVoice( entity.getIsVoice() );
|
||||||
|
merchantBaseInfo.setIsPushWxMessage( entity.getIsPushWxMessage() );
|
||||||
|
merchantBaseInfo.setIsUnionPay( entity.getIsUnionPay() );
|
||||||
|
merchantBaseInfo.setMd5Key( entity.getMd5Key() );
|
||||||
|
merchantBaseInfo.setLimitPay( entity.getLimitPay() );
|
||||||
|
merchantBaseInfo.setSubAppId( entity.getSubAppId() );
|
||||||
|
merchantBaseInfo.setAppid( entity.getAppid() );
|
||||||
|
merchantBaseInfo.setStatus( entity.getStatus() );
|
||||||
|
merchantBaseInfo.setMerchantAddress( entity.getMerchantAddress() );
|
||||||
|
merchantBaseInfo.setStoreHeadPic( entity.getStoreHeadPic() );
|
||||||
|
merchantBaseInfo.setStoreInsidePic( entity.getStoreInsidePic() );
|
||||||
|
merchantBaseInfo.setCashPic( entity.getCashPic() );
|
||||||
|
merchantBaseInfo.setLiteralPic( entity.getLiteralPic() );
|
||||||
|
merchantBaseInfo.setWarrantyPic( entity.getWarrantyPic() );
|
||||||
|
merchantBaseInfo.setDealPic( entity.getDealPic() );
|
||||||
|
merchantBaseInfo.setAffilatePic( entity.getAffilatePic() );
|
||||||
|
merchantBaseInfo.setHandPic( entity.getHandPic() );
|
||||||
|
merchantBaseInfo.setMerchantAuditStatus( entity.getMerchantAuditStatus() );
|
||||||
|
merchantBaseInfo.setStartTime( entity.getStartTime() );
|
||||||
|
merchantBaseInfo.setEndTime( entity.getEndTime() );
|
||||||
|
merchantBaseInfo.setImgUrl( entity.getImgUrl() );
|
||||||
|
merchantBaseInfo.setLoginName( entity.getLoginName() );
|
||||||
|
merchantBaseInfo.setPassword( entity.getPassword() );
|
||||||
|
merchantBaseInfo.setLogo( entity.getLogo() );
|
||||||
|
merchantBaseInfo.setUserPhone( entity.getUserPhone() );
|
||||||
|
merchantBaseInfo.setUserName( entity.getUserName() );
|
||||||
|
merchantBaseInfo.setBusinessLicensePic( entity.getBusinessLicensePic() );
|
||||||
|
merchantBaseInfo.setLocation( entity.getLocation() );
|
||||||
|
merchantBaseInfo.setFirstTradeTime( entity.getFirstTradeTime() );
|
||||||
|
merchantBaseInfo.setLastTradeTime( entity.getLastTradeTime() );
|
||||||
|
merchantBaseInfo.setSplitFlag( entity.getSplitFlag() );
|
||||||
|
merchantBaseInfo.setValidFlag( entity.getValidFlag() );
|
||||||
|
|
||||||
|
return merchantBaseInfo;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public MerchantBaseInfo dto2Domain(MerchantBaseInfoDTO dto) {
|
||||||
|
if ( dto == null ) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
MerchantBaseInfo merchantBaseInfo = new MerchantBaseInfo();
|
||||||
|
|
||||||
|
merchantBaseInfo.setId( dto.getId() );
|
||||||
|
merchantBaseInfo.setUserId( dto.getUserId() );
|
||||||
|
merchantBaseInfo.setAliAccount( dto.getAliAccount() );
|
||||||
|
merchantBaseInfo.setMerchantName( dto.getMerchantName() );
|
||||||
|
merchantBaseInfo.setMerchantType( dto.getMerchantType() );
|
||||||
|
merchantBaseInfo.setProductDesc( dto.getProductDesc() );
|
||||||
|
merchantBaseInfo.setMcc( dto.getMcc() );
|
||||||
|
merchantBaseInfo.setMccName( dto.getMccName() );
|
||||||
|
merchantBaseInfo.setAlias( dto.getAlias() );
|
||||||
|
merchantBaseInfo.setContactMobile( dto.getContactMobile() );
|
||||||
|
merchantBaseInfo.setContactName( dto.getContactName() );
|
||||||
|
merchantBaseInfo.setAddressNo( dto.getAddressNo() );
|
||||||
|
merchantBaseInfo.setAddress( dto.getAddress() );
|
||||||
|
merchantBaseInfo.setEmail( dto.getEmail() );
|
||||||
|
merchantBaseInfo.setMerchantAddress( dto.getMerchantAddress() );
|
||||||
|
merchantBaseInfo.setStoreHeadPic( dto.getStoreHeadPic() );
|
||||||
|
merchantBaseInfo.setStoreInsidePic( dto.getStoreInsidePic() );
|
||||||
|
merchantBaseInfo.setCashPic( dto.getCashPic() );
|
||||||
|
merchantBaseInfo.setUserPhone( dto.getUserPhone() );
|
||||||
|
|
||||||
|
return merchantBaseInfo;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public MerchantStore baseInfo2StoreInfo(MerchantBaseInfo entity) {
|
||||||
|
if ( entity == null ) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
MerchantStore merchantStore = new MerchantStore();
|
||||||
|
|
||||||
|
merchantStore.setStoreName( entity.getAlias() );
|
||||||
|
merchantStore.setMerchantName( entity.getAlias() );
|
||||||
|
if ( entity.getId() != null ) {
|
||||||
|
merchantStore.setId( entity.getId().intValue() );
|
||||||
|
}
|
||||||
|
merchantStore.setMerchantCode( entity.getMerchantCode() );
|
||||||
|
merchantStore.setCreateDt( entity.getCreateDt() );
|
||||||
|
merchantStore.setStatus( entity.getStatus() );
|
||||||
|
merchantStore.setEmail( entity.getEmail() );
|
||||||
|
merchantStore.setStoreHeadPic( entity.getStoreHeadPic() );
|
||||||
|
merchantStore.setStoreInsidePic( entity.getStoreInsidePic() );
|
||||||
|
merchantStore.setCashPic( entity.getCashPic() );
|
||||||
|
merchantStore.setProductDesc( entity.getProductDesc() );
|
||||||
|
merchantStore.setMerchantType( entity.getMerchantType() );
|
||||||
|
merchantStore.setStartTime( entity.getStartTime() );
|
||||||
|
merchantStore.setEndTime( entity.getEndTime() );
|
||||||
|
merchantStore.setAlias( entity.getAlias() );
|
||||||
|
|
||||||
|
return merchantStore;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public UserApp baseInfo2UserApp(MerchantBaseInfo entity) {
|
||||||
|
if ( entity == null ) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
UserApp userApp = new UserApp();
|
||||||
|
|
||||||
|
userApp.setId( entity.getId() );
|
||||||
|
userApp.setLoginName( entity.getLoginName() );
|
||||||
|
if ( entity.getUserId() != null ) {
|
||||||
|
userApp.setUserId( Long.parseLong( entity.getUserId() ) );
|
||||||
|
}
|
||||||
|
userApp.setUserName( entity.getUserName() );
|
||||||
|
userApp.setLogo( entity.getLogo() );
|
||||||
|
userApp.setCreateDt( entity.getCreateDt() );
|
||||||
|
userApp.setUpdateDt( entity.getUpdateDt() );
|
||||||
|
if ( entity.getStatus() != null ) {
|
||||||
|
userApp.setStatus( Integer.parseInt( entity.getStatus() ) );
|
||||||
|
}
|
||||||
|
userApp.setMerchantCode( entity.getMerchantCode() );
|
||||||
|
userApp.setMerchantName( entity.getMerchantName() );
|
||||||
|
userApp.setContactName( entity.getContactName() );
|
||||||
|
userApp.setProductDesc( entity.getProductDesc() );
|
||||||
|
userApp.setBussAuthNum( entity.getBussAuthNum() );
|
||||||
|
userApp.setIsVoice( entity.getIsVoice() );
|
||||||
|
userApp.setIsUnionPay( entity.getIsUnionPay() );
|
||||||
|
userApp.setPassword( entity.getPassword() );
|
||||||
|
userApp.setMerchantType( entity.getMerchantType() );
|
||||||
|
userApp.setAlias( entity.getAlias() );
|
||||||
|
userApp.setMerchantAuditStatus( entity.getMerchantAuditStatus() );
|
||||||
|
|
||||||
|
return userApp;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<MerchantBaseInfoDTO> domain2dto(List<MerchantBaseInfo> entityList) {
|
||||||
|
if ( entityList == null ) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
List<MerchantBaseInfoDTO> list = new ArrayList<MerchantBaseInfoDTO>( entityList.size() );
|
||||||
|
for ( MerchantBaseInfo merchantBaseInfo : entityList ) {
|
||||||
|
list.add( domain2dto( merchantBaseInfo ) );
|
||||||
|
}
|
||||||
|
|
||||||
|
return list;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,33 @@
|
||||||
|
package cn.pluss.platform.converter;
|
||||||
|
|
||||||
|
import cn.pluss.platform.entity.MerchantCashPlace;
|
||||||
|
import cn.pluss.platform.vo.MerchantCashPlaceVO;
|
||||||
|
import javax.annotation.Generated;
|
||||||
|
|
||||||
|
@Generated(
|
||||||
|
value = "org.mapstruct.ap.MappingProcessor",
|
||||||
|
date = "2023-05-04T16:00:25+0800",
|
||||||
|
comments = "version: 1.4.2.Final, compiler: javac, environment: Java 1.8.0_191 (Oracle Corporation)"
|
||||||
|
)
|
||||||
|
public class MerchantCashPlaceConverterImpl implements MerchantCashPlaceConverter {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public MerchantCashPlaceVO entity2VO(MerchantCashPlace merchantCashPlace) {
|
||||||
|
if ( merchantCashPlace == null ) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
MerchantCashPlaceVO merchantCashPlaceVO = new MerchantCashPlaceVO();
|
||||||
|
|
||||||
|
merchantCashPlaceVO.setId( merchantCashPlace.getId() );
|
||||||
|
merchantCashPlaceVO.setUserId( merchantCashPlace.getUserId() );
|
||||||
|
merchantCashPlaceVO.setName( merchantCashPlace.getName() );
|
||||||
|
merchantCashPlaceVO.setCode( merchantCashPlace.getCode() );
|
||||||
|
merchantCashPlaceVO.setAddress( merchantCashPlace.getAddress() );
|
||||||
|
merchantCashPlaceVO.setRemark( merchantCashPlace.getRemark() );
|
||||||
|
merchantCashPlaceVO.setCreateTime( merchantCashPlace.getCreateTime() );
|
||||||
|
merchantCashPlaceVO.setUpdateTime( merchantCashPlace.getUpdateTime() );
|
||||||
|
|
||||||
|
return merchantCashPlaceVO;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,30 @@
|
||||||
|
package cn.pluss.platform.converter;
|
||||||
|
|
||||||
|
import cn.pluss.platform.dto.MerchantStaffDTO;
|
||||||
|
import cn.pluss.platform.entity.UserInfo;
|
||||||
|
import javax.annotation.Generated;
|
||||||
|
|
||||||
|
@Generated(
|
||||||
|
value = "org.mapstruct.ap.MappingProcessor",
|
||||||
|
date = "2023-05-04T16:00:25+0800",
|
||||||
|
comments = "version: 1.4.2.Final, compiler: javac, environment: Java 1.8.0_191 (Oracle Corporation)"
|
||||||
|
)
|
||||||
|
public class MerchantStaffConverterImpl implements MerchantStaffConverter {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public UserInfo toUserInfo(MerchantStaffDTO merchantStaffDTO) {
|
||||||
|
if ( merchantStaffDTO == null ) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
UserInfo userInfo = new UserInfo();
|
||||||
|
|
||||||
|
userInfo.setId( merchantStaffDTO.getUserId() );
|
||||||
|
userInfo.setLoginName( merchantStaffDTO.getLoginName() );
|
||||||
|
userInfo.setPhone( merchantStaffDTO.getPhone() );
|
||||||
|
userInfo.setPassword( merchantStaffDTO.getPassword() );
|
||||||
|
userInfo.setMerchantCode( merchantStaffDTO.getMerchantCode() );
|
||||||
|
|
||||||
|
return userInfo;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,151 @@
|
||||||
|
package cn.pluss.platform.converter;
|
||||||
|
|
||||||
|
import cn.pluss.platform.entity.MerchantBaseInfo;
|
||||||
|
import cn.pluss.platform.entity.MerchantStore;
|
||||||
|
import cn.pluss.platform.entity.UserApp;
|
||||||
|
import cn.pluss.platform.entity.UserInfo;
|
||||||
|
import java.text.SimpleDateFormat;
|
||||||
|
import javax.annotation.Generated;
|
||||||
|
|
||||||
|
@Generated(
|
||||||
|
value = "org.mapstruct.ap.MappingProcessor",
|
||||||
|
date = "2023-05-04T16:00:25+0800",
|
||||||
|
comments = "version: 1.4.2.Final, compiler: javac, environment: Java 1.8.0_191 (Oracle Corporation)"
|
||||||
|
)
|
||||||
|
public class UserAppConverterImpl implements UserAppConverter {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void copyProperties(MerchantStore merchantStore, UserApp userApp) {
|
||||||
|
if ( merchantStore == null ) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( merchantStore.getId() != null ) {
|
||||||
|
userApp.setStoreId2( String.valueOf( merchantStore.getId() ) );
|
||||||
|
}
|
||||||
|
if ( merchantStore.getCreateDt() != null ) {
|
||||||
|
userApp.setCreateDt( merchantStore.getCreateDt() );
|
||||||
|
}
|
||||||
|
if ( merchantStore.getMerchantCode() != null ) {
|
||||||
|
userApp.setMerchantCode( merchantStore.getMerchantCode() );
|
||||||
|
}
|
||||||
|
if ( merchantStore.getMerchantName() != null ) {
|
||||||
|
userApp.setMerchantName( merchantStore.getMerchantName() );
|
||||||
|
}
|
||||||
|
if ( merchantStore.getStoreName() != null ) {
|
||||||
|
userApp.setStoreName( merchantStore.getStoreName() );
|
||||||
|
}
|
||||||
|
if ( merchantStore.getStoreId() != null ) {
|
||||||
|
userApp.setStoreId( merchantStore.getStoreId() );
|
||||||
|
}
|
||||||
|
if ( merchantStore.getProductDesc() != null ) {
|
||||||
|
userApp.setProductDesc( merchantStore.getProductDesc() );
|
||||||
|
}
|
||||||
|
if ( merchantStore.getPayEcdemicSwitch() != null ) {
|
||||||
|
userApp.setPayEcdemicSwitch( merchantStore.getPayEcdemicSwitch() );
|
||||||
|
}
|
||||||
|
if ( merchantStore.getIsMarket() != null ) {
|
||||||
|
userApp.setIsMarket( merchantStore.getIsMarket() );
|
||||||
|
}
|
||||||
|
if ( merchantStore.getMerchantType() != null ) {
|
||||||
|
userApp.setMerchantType( merchantStore.getMerchantType() );
|
||||||
|
}
|
||||||
|
if ( merchantStore.getAlias() != null ) {
|
||||||
|
userApp.setAlias( merchantStore.getAlias() );
|
||||||
|
}
|
||||||
|
if ( merchantStore.getMcsStatus() != null ) {
|
||||||
|
userApp.setMcsStatus( merchantStore.getMcsStatus() );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void copyProperties(MerchantBaseInfo merchantBaseInfo, UserApp userApp) {
|
||||||
|
if ( merchantBaseInfo == null ) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( merchantBaseInfo.getAlias() != null ) {
|
||||||
|
userApp.setMerchantName( merchantBaseInfo.getAlias() );
|
||||||
|
}
|
||||||
|
if ( merchantBaseInfo.getId() != null ) {
|
||||||
|
userApp.setMercId( merchantBaseInfo.getId() );
|
||||||
|
}
|
||||||
|
if ( merchantBaseInfo.getLoginName() != null ) {
|
||||||
|
userApp.setLoginName( merchantBaseInfo.getLoginName() );
|
||||||
|
}
|
||||||
|
if ( merchantBaseInfo.getUserId() != null ) {
|
||||||
|
userApp.setUserId( Long.parseLong( merchantBaseInfo.getUserId() ) );
|
||||||
|
}
|
||||||
|
if ( merchantBaseInfo.getUserName() != null ) {
|
||||||
|
userApp.setUserName( merchantBaseInfo.getUserName() );
|
||||||
|
}
|
||||||
|
if ( merchantBaseInfo.getLogo() != null ) {
|
||||||
|
userApp.setLogo( merchantBaseInfo.getLogo() );
|
||||||
|
}
|
||||||
|
if ( merchantBaseInfo.getCreateDt() != null ) {
|
||||||
|
userApp.setCreateDt( merchantBaseInfo.getCreateDt() );
|
||||||
|
}
|
||||||
|
if ( merchantBaseInfo.getUpdateDt() != null ) {
|
||||||
|
userApp.setUpdateDt( merchantBaseInfo.getUpdateDt() );
|
||||||
|
}
|
||||||
|
if ( merchantBaseInfo.getMerchantCode() != null ) {
|
||||||
|
userApp.setMerchantCode( merchantBaseInfo.getMerchantCode() );
|
||||||
|
}
|
||||||
|
if ( merchantBaseInfo.getContactName() != null ) {
|
||||||
|
userApp.setContactName( merchantBaseInfo.getContactName() );
|
||||||
|
}
|
||||||
|
if ( merchantBaseInfo.getProductDesc() != null ) {
|
||||||
|
userApp.setProductDesc( merchantBaseInfo.getProductDesc() );
|
||||||
|
}
|
||||||
|
if ( merchantBaseInfo.getBussAuthNum() != null ) {
|
||||||
|
userApp.setBussAuthNum( merchantBaseInfo.getBussAuthNum() );
|
||||||
|
}
|
||||||
|
if ( merchantBaseInfo.getIsVoice() != null ) {
|
||||||
|
userApp.setIsVoice( merchantBaseInfo.getIsVoice() );
|
||||||
|
}
|
||||||
|
if ( merchantBaseInfo.getIsUnionPay() != null ) {
|
||||||
|
userApp.setIsUnionPay( merchantBaseInfo.getIsUnionPay() );
|
||||||
|
}
|
||||||
|
if ( merchantBaseInfo.getPassword() != null ) {
|
||||||
|
userApp.setPassword( merchantBaseInfo.getPassword() );
|
||||||
|
}
|
||||||
|
if ( merchantBaseInfo.getMerchantType() != null ) {
|
||||||
|
userApp.setMerchantType( merchantBaseInfo.getMerchantType() );
|
||||||
|
}
|
||||||
|
if ( merchantBaseInfo.getAlias() != null ) {
|
||||||
|
userApp.setAlias( merchantBaseInfo.getAlias() );
|
||||||
|
}
|
||||||
|
if ( merchantBaseInfo.getMerchantAuditStatus() != null ) {
|
||||||
|
userApp.setMerchantAuditStatus( merchantBaseInfo.getMerchantAuditStatus() );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public UserApp toUserApp(UserInfo userInfo) {
|
||||||
|
if ( userInfo == null ) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
UserApp userApp = new UserApp();
|
||||||
|
|
||||||
|
userApp.setCreateDt( userInfo.getCreateTime() );
|
||||||
|
userApp.setUserId( userInfo.getId() );
|
||||||
|
userApp.setLoginName( userInfo.getLoginName() );
|
||||||
|
userApp.setStatus( userInfo.getStatus() );
|
||||||
|
if ( userInfo.getParentId() != null ) {
|
||||||
|
userApp.setParentId( userInfo.getParentId().longValue() );
|
||||||
|
}
|
||||||
|
userApp.setPhone( userInfo.getPhone() );
|
||||||
|
userApp.setMerchantCode( userInfo.getMerchantCode() );
|
||||||
|
userApp.setStoreId( userInfo.getStoreId() );
|
||||||
|
userApp.setPassword( userInfo.getPassword() );
|
||||||
|
if ( userInfo.getUpdateTime() != null ) {
|
||||||
|
userApp.setUpdateTime( new SimpleDateFormat().format( userInfo.getUpdateTime() ) );
|
||||||
|
}
|
||||||
|
userApp.setPayPassword( userInfo.getPayPassword() );
|
||||||
|
userApp.setFaceCert( userInfo.getFaceCert() );
|
||||||
|
userApp.setFaceCompare( userInfo.getFaceCompare() );
|
||||||
|
|
||||||
|
return userApp;
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue