|  | @@ -1,17 +1,18 @@
 | 
	
		
			
				|  |  |  package com.kmall.admin;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +import com.fasterxml.jackson.core.JsonProcessingException;
 | 
	
		
			
				|  |  |  import com.fasterxml.jackson.core.type.TypeReference;
 | 
	
		
			
				|  |  |  import com.kmall.admin.entity.GoodsEntity;
 | 
	
		
			
				|  |  | +import com.kmall.admin.entity.haikong.HaiKongSendOrderInfoRecordEntity;
 | 
	
		
			
				|  |  |  import com.kmall.admin.haikong.client.HaiKongMemberTemplate;
 | 
	
		
			
				|  |  |  import com.kmall.admin.haikong.constant.HaiKongMemberScoreChangeEventEnum;
 | 
	
		
			
				|  |  | -import com.kmall.admin.haikong.dto.MemberInfoDTO;
 | 
	
		
			
				|  |  | -import com.kmall.admin.haikong.dto.MemberScoreChangeDTO;
 | 
	
		
			
				|  |  | -import com.kmall.admin.haikong.dto.MemberScoreChangeResponseDTO;
 | 
	
		
			
				|  |  | +import com.kmall.admin.haikong.dto.*;
 | 
	
		
			
				|  |  |  import com.kmall.admin.haikong.task.MemberSysAccessTokenRefreshTask;
 | 
	
		
			
				|  |  |  import com.kmall.admin.haikong.utils.ListUtils;
 | 
	
		
			
				|  |  |  import com.kmall.admin.haikong.utils.Response;
 | 
	
		
			
				|  |  |  import com.kmall.admin.haikong.vo.QueryGoodsVO;
 | 
	
		
			
				|  |  |  import com.kmall.admin.service.GoodsService;
 | 
	
		
			
				|  |  | +import com.kmall.admin.service.haikong.HaiKongSendOrderInfoRecordService;
 | 
	
		
			
				|  |  |  import com.kmall.admin.utils.jackson.JacksonUtil;
 | 
	
		
			
				|  |  |  import org.junit.runner.RunWith;
 | 
	
		
			
				|  |  |  import org.springframework.beans.BeanUtils;
 | 
	
	
		
			
				|  | @@ -47,6 +48,9 @@ public class Test {
 | 
	
		
			
				|  |  |      @Autowired
 | 
	
		
			
				|  |  |      private MemberSysAccessTokenRefreshTask memberSysAccessTokenRefreshTask;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +    @Autowired
 | 
	
		
			
				|  |  | +    private HaiKongSendOrderInfoRecordService haiKongSendOrderInfoRecordService;
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |      @org.junit.Test
 | 
	
		
			
				|  |  |      public void addScore() throws Exception {
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -106,4 +110,35 @@ public class Test {
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +    @org.junit.Test
 | 
	
		
			
				|  |  | +    public void testXmlFormat() throws JsonProcessingException {
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +        HaiKongSendOrderInfoRecordEntity haiKongSendOrderInfoRecordEntity = haiKongSendOrderInfoRecordService.queryObject(76);
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +        SendOrderToVmcShopDTO sendOrderToVmcShopDTO = new SendOrderToVmcShopDTO();
 | 
	
		
			
				|  |  | +        SeaportInfoDTO seaportInfoDTO = new SeaportInfoDTO();
 | 
	
		
			
				|  |  | +        PayInfoDTO payInfoDTO = new PayInfoDTO();
 | 
	
		
			
				|  |  | +        OrderInfoDTO orderInfoDTO = new OrderInfoDTO();
 | 
	
		
			
				|  |  | +        BeanUtils.copyProperties(haiKongSendOrderInfoRecordEntity, orderInfoDTO);
 | 
	
		
			
				|  |  | +        BeanUtils.copyProperties(haiKongSendOrderInfoRecordEntity, payInfoDTO);
 | 
	
		
			
				|  |  | +        String response1 = payInfoDTO.getResponse();
 | 
	
		
			
				|  |  | +        response1 = response1.replaceAll("\r|\n", "");
 | 
	
		
			
				|  |  | +        payInfoDTO.setResponse(response1);
 | 
	
		
			
				|  |  | +        seaportInfoDTO.setSeaportCode(haiKongSendOrderInfoRecordEntity.getSeaportCode());
 | 
	
		
			
				|  |  | +        seaportInfoDTO.setPlatform(haiKongSendOrderInfoRecordEntity.getPlatform());
 | 
	
		
			
				|  |  | +        seaportInfoDTO.setIdentityCard(haiKongSendOrderInfoRecordEntity.getIdentityCard());
 | 
	
		
			
				|  |  | +        seaportInfoDTO.setIdentityMobile(haiKongSendOrderInfoRecordEntity.getIdentityMobile());
 | 
	
		
			
				|  |  | +        seaportInfoDTO.setIdentityName(haiKongSendOrderInfoRecordEntity.getIdentityName());
 | 
	
		
			
				|  |  | +        seaportInfoDTO.setOrderProductInfoList(JacksonUtil.fromListJson(haiKongSendOrderInfoRecordEntity.getOrderProductInfo(), new TypeReference<List<OrderProductInfoDTO>>() {}));
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +        sendOrderToVmcShopDTO.setPayInfo(payInfoDTO);
 | 
	
		
			
				|  |  | +        sendOrderToVmcShopDTO.setSeaportInfo(seaportInfoDTO);
 | 
	
		
			
				|  |  | +        sendOrderToVmcShopDTO.setOrderInfo(orderInfoDTO);
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +        String string = JacksonUtil.getObjectMapper().writeValueAsString(sendOrderToVmcShopDTO);
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +        System.out.println(string);
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |  }
 |