//package com.prolog.cs.biz.inbound.service.impl;
//
//import com.fasterxml.jackson.databind.JsonNode;
//import com.fasterxml.jackson.databind.ObjectMapper;
//import com.prolog.cs.biz.inbound.model.SupervisionCode;
//import com.taobao.api.DefaultTaobaoClient;
//import com.taobao.api.TaobaoClient;
//import com.taobao.api.internal.util.StringUtils;
//import com.taobao.api.request.AlibabaAlihealthDrugKytUploadcircubillRequest;
//import com.taobao.api.response.AlibabaAlihealthDrugKytUploadcircubillResponse;
//import org.dom4j.Document;
//import org.dom4j.DocumentHelper;
//import org.dom4j.Element;
//import org.dom4j.io.OutputFormat;
//import org.dom4j.io.XMLWriter;
//
//import java.util.ArrayList;
//import java.util.List;
//
///**
// * 码上放心平台
// *
// * @author tianhl
// * @Date 2017/5/21 16:10
// */
////@Transactional //打开的话测试之后数据可自动回滚
//public class upLoadTestMain {
//
//    public static void main(String[] args)throws Exception {
//        String url = "http://gw.api.taobao.com/router/rest";
//        String appkey= "31829450";
//        String secret ="ec698ea2ac4accd88006cd8a390b4567";
//
//        TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
//        AlibabaAlihealthDrugKytUploadcircubillRequest req = new AlibabaAlihealthDrugKytUploadcircubillRequest();
//        req.setBillCode("bc001");
//        req.setBillTime(StringUtils.parseDateTime("2023-05-10 16:57:15"));
//        req.setBillType(201L);
//        req.setPhysicType(3L);
//        req.setRefUserId("fa3dfe7f41ce42c1b6b6f9505e530e32");
//        req.setFromUserId("fa3dfe7f41ce42c1b6b6f9505e530e32");
//        req.setToUserId("66677777780507433");
//        req.setDestUserId("66677777780507433");
//        req.setOperIcCode(appkey);
//        req.setOperIcName("张三");
//        req.setFileContent("添写单据文件xml的加密串，加密过程看文档。XmlUtil类的createFileZipContent方法生成");
//        req.setUploadFileName("单据文件00001.xml");
//        req.setClientType("2");
//        req.setFromAddress("发货地址XXX");
//        req.setToAddress("收货地址XXX");
//        req.setFromBillCode("123456");
//        req.setOrderCode("123456");
//        req.setFromPerson("张某");
//        req.setToPerson("李某");
//        req.setDisRefEntId("5069452c34b94a778abaa26c2b40b305");
//        req.setDisEntId("5069452c34b94a778abaa26c2b40b305");
//        req.setQuReceivable(10L);
//        req.setXtIsCheck("0");
//        req.setXtCheckCode("未验证通过原因");
//        req.setXtCheckCodeDesc("未通过原因描述");
//        req.setDrugListJson("[{\"codeCount\":100,\"commDrugId\":\"testCommDrugId0\",\"exprieDate\":1571131734945,\"physicInfo\":\"test0\",\"pkgSpec\":\"test0\",\"prepnCount\":10,\"produceBatchNo\":\"test0\",\"produceDate\":1571131734945},{\"codeCount\":100,\"commDrugId\":\"testCommDrugId1\",\"exprieDate\":1571131734945,\"physicInfo\":\"test1\",\"pkgSpec\":\"test1\",\"prepnCount\":10,\"produceBatchNo\":\"test1\",\"produceDate\":1571131734945}]");
//        req.setAssRefEntId("5069452c34b94a778abaa26c2b40b305");
//        req.setAssEntId("5069452c34b94a778abaa26c2b40b305");
//        AlibabaAlihealthDrugKytUploadcircubillResponse rsp = client.execute(req);
//        System.out.println(rsp.getBody());
//
//    }
//
//}
