|  | @@ -529,50 +529,41 @@ public class WxProviderServiceImpl implements WxProviderService {
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -    private static void trace_waybill() {
 | 
	
		
			
				|  |  | -        TraceWaybill traceWaybill = new TraceWaybill();
 | 
	
		
			
				|  |  | -        traceWaybill.setOpenid("openid");
 | 
	
		
			
				|  |  | -        traceWaybill.setReceiverPhone("接收人电话");
 | 
	
		
			
				|  |  | -        traceWaybill.setDeliveryId("SF");
 | 
	
		
			
				|  |  | -        traceWaybill.setWaybillId("SF123456");
 | 
	
		
			
				|  |  | -        List<TraceWaybillGoodsInfo> goodsInfoList = Lists.newArrayList();
 | 
	
		
			
				|  |  | -        goodsInfoList.add(new TraceWaybillGoodsInfo("可口可乐","地址"));
 | 
	
		
			
				|  |  | -        traceWaybill.setGoodsInfo(new TraceWaybillDetail(goodsInfoList));
 | 
	
		
			
				|  |  | -        traceWaybill.setTransId("交易id");
 | 
	
		
			
				|  |  | -        System.out.println(new Gson().toJson(traceWaybill));
 | 
	
		
			
				|  |  | -    }
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      //测试
 | 
	
		
			
				|  |  | -    public static void serviceAddMerchant() {
 | 
	
		
			
				|  |  | +    public static void serviceAddMerchant(SubmitInfoForm form) {
 | 
	
		
			
				|  |  |          SubmitInfo submitInfo = new SubmitInfo();
 | 
	
		
			
				|  |  |          submitInfo.setBusinessCode("业务申请编号");
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          //超级管理员信息
 | 
	
		
			
				|  |  |          ContactInfo contactInfo = new ContactInfo();
 | 
	
		
			
				|  |  |          contactInfo.setContactType("LEGAL");
 | 
	
		
			
				|  |  | -        contactInfo.setContactName(rsaEncryptData("超级管理员姓名"));
 | 
	
		
			
				|  |  | -        contactInfo.setMobilePhone(rsaEncryptData("联系手机"));
 | 
	
		
			
				|  |  | -        contactInfo.setContactEmail(rsaEncryptData("联系邮箱"));
 | 
	
		
			
				|  |  | +        contactInfo.setContactName(rsaEncryptData(form.getContactName()));
 | 
	
		
			
				|  |  | +        contactInfo.setMobilePhone(rsaEncryptData(form.getMobilePhone()));
 | 
	
		
			
				|  |  | +        contactInfo.setContactEmail(rsaEncryptData(form.getContactEmail()));
 | 
	
		
			
				|  |  |          submitInfo.setContactInfo(contactInfo);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          //主体资料
 | 
	
		
			
				|  |  |          SubjectInfo subjectInfo = new SubjectInfo();
 | 
	
		
			
				|  |  | -        subjectInfo.setSubjectType("个体户/企业");
 | 
	
		
			
				|  |  | +        subjectInfo.setSubjectType(form.getSubjectType());
 | 
	
		
			
				|  |  |          subjectInfo.setFinanceInstitution(false);
 | 
	
		
			
				|  |  | -        BusinessLicense businessLicense = new BusinessLicense();
 | 
	
		
			
				|  |  | -        businessLicense.setLicenseCopy("营业执照照片");
 | 
	
		
			
				|  |  | -        businessLicense.setLicenseNumber("统一社会信用代码");
 | 
	
		
			
				|  |  | -        businessLicense.setMerchantName("商户名称");
 | 
	
		
			
				|  |  | -        businessLicense.setLegalPerson("个体户经营者/法定代表人姓名");
 | 
	
		
			
				|  |  | -        businessLicense.setLicenseAddress("注册地址");
 | 
	
		
			
				|  |  | -        businessLicense.setPeriodBegin("有效期限开始日期");
 | 
	
		
			
				|  |  | -        businessLicense.setPeriodEnd("有效期限结束日期");
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +        //营业执照
 | 
	
		
			
				|  |  | +        BusinessLicense businessLicense = new BusinessLicense();
 | 
	
		
			
				|  |  | +        businessLicense.setLicenseCopy(wxUploadImg(form.getLicenseCopy()));
 | 
	
		
			
				|  |  | +        businessLicense.setLicenseNumber(form.getLicenseNumber());
 | 
	
		
			
				|  |  | +        businessLicense.setMerchantName(form.getMerchantName());
 | 
	
		
			
				|  |  | +        businessLicense.setLegalPerson(form.getLegalPerson());
 | 
	
		
			
				|  |  | +        businessLicense.setLicenseAddress(form.getLicenseAddress());
 | 
	
		
			
				|  |  | +        businessLicense.setPeriodBegin(form.getPeriodBegin());
 | 
	
		
			
				|  |  | +        businessLicense.setPeriodEnd(form.getPeriodEnd());
 | 
	
		
			
				|  |  |          subjectInfo.setBusinessLicenseInfo(businessLicense);
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +        //经营者/法定代表人身份证件
 | 
	
		
			
				|  |  |          IdentityInfo identityInfo = new IdentityInfo();
 | 
	
		
			
				|  |  |          identityInfo.setIdDocType("IDENTIFICATION_TYPE_IDCARD");
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +        //身份证信息
 | 
	
		
			
				|  |  |          IdCardInfo idCardInfo = new IdCardInfo();
 | 
	
		
			
				|  |  |          idCardInfo.setIdCardCopy("身份证人像面照片");
 | 
	
		
			
				|  |  |          idCardInfo.setIdCardNational("身份证国徽面照片");
 | 
	
	
		
			
				|  | @@ -584,6 +575,8 @@ public class WxProviderServiceImpl implements WxProviderService {
 | 
	
		
			
				|  |  |          identityInfo.setIdCardInfo(idCardInfo);
 | 
	
		
			
				|  |  |          subjectInfo.setIdentityInfo(identityInfo);
 | 
	
		
			
				|  |  |          List<UBOInfoList> uboInfoList = Lists.newArrayList();
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +        //最终受益人信息列表(UBO) 主体类型为企业时,需填写
 | 
	
		
			
				|  |  |          UBOInfoList uboInfo = new UBOInfoList();
 | 
	
		
			
				|  |  |          uboInfo.setUboIdDocType("IDENTIFICATION_TYPE_IDCARD");
 | 
	
		
			
				|  |  |          uboInfo.setUboIdDocCopy("证件正面照片");
 | 
	
	
		
			
				|  | @@ -641,7 +634,10 @@ public class WxProviderServiceImpl implements WxProviderService {
 | 
	
		
			
				|  |  |          return data;
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +    private static String wxUploadImg(String data) {
 | 
	
		
			
				|  |  | +        return data;
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |      public static void main(String[] args) {
 | 
	
		
			
				|  |  | -        trace_waybill();
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  }
 |