LG88888888 há 3 anos atrás
pai
commit
bb4c559d3c

+ 48 - 0
src/main/java/net/chenlin/dp/modules/api/controller/SaleOrderController.java

@@ -0,0 +1,48 @@
+package net.chenlin.dp.modules.api.controller;
+
+import com.taobao.api.ApiException;
+import net.chenlin.dp.common.openapi4j.exception.OpenAPIException;
+import net.chenlin.dp.modules.api.service.SaleOrderService;
+import net.chenlin.dp.modules.api.vo.YonyouSaleOrder;
+
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+public class SaleOrderController {
+    private SaleOrderService service=new SaleOrderService();
+    private  DingdingOpenInterface dingdingOpenInterface=new DingdingOpenInterface();
+
+    /**
+     * 获取u8销售订单创建钉钉销售订单审批实列
+     * @throws OpenAPIException
+     * @throws ApiException
+     */
+    public void  dingSaleOrder() throws OpenAPIException, ApiException {
+        Map<String,String>map=new HashMap<>();
+        service.getToaccount();
+        List<YonyouSaleOrder> list = service.yonyouQuerySaleOrder(map);
+        if (list!=null){
+            for (YonyouSaleOrder saleOrder:list){
+                YonyouSaleOrder yonyouSaleOrder = service.yonyouGetSaleOrder(saleOrder.getCode());
+                if (yonyouSaleOrder!=null){
+                    service.createOrder("PROC-4B526252-017E-4531-91A0-4DEAC6883952",1306561711L,"manager5914",-1L,yonyouSaleOrder);
+                }
+            }
+        }
+
+    }
+
+
+    public void saleOrderShenhe(){
+        DingdingOpenInterface.getToken();
+        List<String> orderIdList = dingdingOpenInterface.getOrderIdList("PROC-4B526252-017E-4531-91A0-4DEAC6883952");
+        if (orderIdList!=null&&!orderIdList.equals("")){
+          for (String id:orderIdList){
+              Map<String, Object> orderDetails = dingdingOpenInterface.getOrderDetails(id);
+              Object form_component_values = orderDetails.get("form_component_values");
+          }
+        }
+    }
+
+}

+ 123 - 0
src/main/java/net/chenlin/dp/modules/api/service/CustomerService.java

@@ -0,0 +1,123 @@
+package net.chenlin.dp.modules.api.service;
+
+import com.alibaba.fastjson.JSON;
+import com.alibaba.fastjson.JSONObject;
+import com.fasterxml.jackson.databind.ObjectMapper;
+import net.chenlin.dp.common.openapi4j.exception.OpenAPIException;
+import net.chenlin.dp.common.openapi4j.platform.ResultService;
+import net.chenlin.dp.common.openapi4j.util.PropUtil;
+import net.chenlin.dp.modules.api.vo.Customer;
+import net.chenlin.dp.modules.api.vo.YonyouSaleOrder;
+
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.Properties;
+
+/**
+ * 客户接口
+ */
+public class CustomerService {
+        private net.chenlin.dp.common.openapi4j.service.CustomerService customerService=new net.chenlin.dp.common.openapi4j.service.CustomerService();
+
+    /**
+     * 客户新增接口
+     * @param customer
+     * @throws OpenAPIException
+     */
+    public void addCustomer(Customer customer) throws OpenAPIException {
+            Map<String,Object>map=new HashMap<>();
+            map.put("customer",customer);
+            String s = JSONObject.toJSONString(map);
+            try {
+                JSONObject add = customerService.add(s, getToaccount());
+                HashMap hashMap = JSONObject.parseObject(add.toString(), HashMap.class);
+                Object tradeid = hashMap.get("tradeid");
+                if (!tradeid.equals("")&&tradeid!=null){
+                    String result = ResultService.getResult(tradeid.toString());
+                    System.out.println(result);
+                }
+            }catch (Exception e){
+                throw new OpenAPIException(e.getMessage(), e);
+            }
+
+        }
+
+
+    /**
+     * 客户查询接口
+      * @param id
+     * @return
+     * @throws OpenAPIException
+     */
+    public Customer getCustomer(String id) throws OpenAPIException {
+        try {
+            JSONObject jsonObject = customerService.get(id, getToaccount());
+            HashMap hashMap = JSONObject.parseObject(jsonObject.toString(), HashMap.class);
+            if (hashMap.get("errcode").equals("0")){
+                ObjectMapper objectMapper = new ObjectMapper();
+                Customer so = objectMapper.convertValue(hashMap.get("customer"), Customer.class);
+                return so;
+            }else {
+                return null;
+            }
+        }catch (Exception e){
+            throw new OpenAPIException(e.getMessage(), e);
+        }
+    }
+
+
+    /**
+     * 客户批量查询
+     * @param map
+     * @return
+     * @throws OpenAPIException
+     */
+    public List<Customer>queryCustomer(Map<String,String>map) throws OpenAPIException {
+        map.put("to_account", getToaccount());
+        try {
+            JSONObject jsonObject = customerService.batchGet(map);
+            HashMap hashMap = JSONObject.parseObject(jsonObject.toString(), HashMap.class);
+            System.out.println(hashMap);
+            Object errcode = hashMap.get("errcode");
+            if (errcode.equals("0")){
+                Object row_count = hashMap.get("row_count");
+                map.put("rows_per_page",row_count.toString());
+                JSONObject jsonObjects = customerService.batchGet(map);
+                HashMap hashMaps = JSONObject.parseObject(jsonObjects.toString(), HashMap.class);
+                if (hashMaps.get("errcode").equals("0")){
+                    Object customer = hashMaps.get("customer");
+                    List<Customer> list= JSON.parseArray(JSON.toJSONString(customer), Customer.class);
+                    return list;
+                }else {
+                    return null;
+                }
+
+            }else {
+                return null;
+            }
+        }catch (Exception e){
+            throw new OpenAPIException(e.getMessage(), e);
+        }
+    }
+
+
+    /**
+     * 客户编辑接口
+     * @param map
+     * @throws OpenAPIException
+     */
+    public void editCustomer(Map<String,Object>map) throws OpenAPIException {
+        String s = JSONObject.toJSONString(map);
+        try {
+            JSONObject edit = customerService.edit(s, getToaccount());
+        }catch (Exception e){
+            throw new OpenAPIException(e.getMessage(), e);
+        }
+    }
+    //获取to_account
+    public String getToaccount(){
+        Properties prop = PropUtil.getProperties("/config.properties");
+        return prop.getProperty("to_account");
+    }
+}

+ 318 - 0
src/main/java/net/chenlin/dp/modules/api/service/PayrequestService.java

@@ -0,0 +1,318 @@
+package net.chenlin.dp.modules.api.service;
+
+import com.alibaba.fastjson.JSON;
+import com.alibaba.fastjson.JSONObject;
+import com.dingtalk.api.DefaultDingTalkClient;
+import com.dingtalk.api.DingTalkClient;
+import com.dingtalk.api.request.OapiProcessinstanceCreateRequest;
+import com.dingtalk.api.response.OapiProcessinstanceCreateResponse;
+import com.fasterxml.jackson.databind.ObjectMapper;
+import com.taobao.api.ApiException;
+import net.chenlin.dp.common.openapi4j.commons.TokenManager;
+import net.chenlin.dp.common.openapi4j.exception.OpenAPIException;
+import net.chenlin.dp.common.openapi4j.model.Record;
+import net.chenlin.dp.common.openapi4j.platform.TradeService;
+import net.chenlin.dp.common.openapi4j.service.BaseService;
+import net.chenlin.dp.common.openapi4j.service.CustomerService;
+import net.chenlin.dp.common.openapi4j.util.HttpUtil;
+import net.chenlin.dp.common.openapi4j.util.PropUtil;
+import net.chenlin.dp.modules.api.controller.DingdingOpenInterface;
+import net.chenlin.dp.modules.api.vo.*;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import java.math.BigDecimal;
+import java.util.*;
+
+public class PayrequestService extends BaseService {
+    final static Logger logger = LoggerFactory.getLogger(PayrequestService.class);
+
+    public PayrequestService() {
+
+        this.access_token = TokenManager.getToKenId();
+
+    }
+
+    public PayrequestService(String token) {
+        this.access_token = token;
+    }
+    private DingdingOpenInterface dingdingOpenInterface=new DingdingOpenInterface();
+
+    //
+    public   static  String getToaccount="";
+    /**
+     * 获取单个付款申请单
+     * @param id
+     * @param to_account
+     * @return
+     * @throws OpenAPIException
+     */
+    public JSONObject get(String id) throws OpenAPIException {
+        JSONObject record;
+        try {
+            Map<String, String> paramMap = new HashMap();
+            paramMap.put("to_account", getToaccount);
+            paramMap.put("id", id);
+            String url = this.createURL("payrequest/get", paramMap);
+            logger.info(url);
+            record = JSONObject.parseObject(HttpUtil.get(url));
+        } catch (Exception e) {
+            throw new OpenAPIException(e.getMessage(), e);
+        }
+        return record;
+    }
+
+
+    /**
+     * 申请单
+     * @param paramMap
+     * @return
+     * @throws OpenAPIException
+     */
+    public JSONObject batchGet(Map<String, String> paramMap) throws OpenAPIException {
+        JSONObject record;
+        try {
+            paramMap.put("to_account",getToaccount);
+            String url = this.createURL("payrequestlist/batch_get", paramMap);
+            logger.info(url);
+            record = JSONObject.parseObject(HttpUtil.get(url));
+
+        } catch (Exception e) {
+            // TODO Auto-generated catch block
+            throw new OpenAPIException(e.getMessage(), e);
+        }
+        return record;
+    }
+
+
+
+    /**
+     * 批量获取付款申请单
+     * @param map
+     * @return
+     * @throws OpenAPIException
+     */
+    public List<Payrequest> yonyouQueryPayrequest(Map<String,String>map) throws OpenAPIException {
+        map.put("to_account", getToaccount);
+        try {
+            JSONObject jsonObject = batchGet(map);
+            HashMap hashMap = JSONObject.parseObject(jsonObject.toString(), HashMap.class);
+            Object errcode = hashMap.get("errcode");
+            if (errcode.equals("0")){
+                Object row_count = hashMap.get("row_count");
+                map.put("rows_per_page",row_count.toString());
+                JSONObject jsonObjects = batchGet(map);
+                HashMap hashMaps = JSONObject.parseObject(jsonObjects.toString(), HashMap.class);
+                if (hashMaps.get("errcode").equals("0")){
+                    Object saleorderlist = hashMaps.get("payrequestlist");
+                    List<Payrequest> list= JSON.parseArray(JSON.toJSONString(saleorderlist), Payrequest.class);
+                    return list;
+                }else {
+                    return null;
+                }
+
+            }else {
+                return null;
+            }
+        }catch (Exception e){
+            throw new OpenAPIException(e.getMessage(), e);
+        }
+    }
+
+    /**
+     * 获取单张付款申请订单
+     * @param id
+     * @return
+     * @throws OpenAPIException
+     */
+    public Payrequest yonyouGetPayrequest(String id) throws OpenAPIException {
+        try {
+            JSONObject jsonObject = get(id);
+            HashMap hashMap = JSONObject.parseObject(jsonObject.toString(), HashMap.class);
+            if (hashMap.get("errcode").equals("0")){
+                Object payrequest = hashMap.get("payrequest");
+                ObjectMapper objectMapper = new ObjectMapper();
+                Payrequest zfsp = objectMapper.convertValue(payrequest, Payrequest.class);
+                return zfsp;
+            }else {
+                return null;
+            }
+        }catch (Exception e){
+            throw new OpenAPIException(e.getMessage(), e);
+        }
+    }
+
+    /**
+     * 付款申请单审核
+     * @param jsonboy
+     * @param to_account
+     * @return
+     * @throws OpenAPIException
+     */
+    public JSONObject shenghe(SaleOrderRest saleOrderRest) throws OpenAPIException {
+        JSONObject record;
+        try {
+            String s = JSONObject.toJSONString(saleOrderRest);
+            Map<String, String> paramMap = new HashMap();
+            paramMap.put("to_account", getToaccount);
+            String url = this.createURL("payrequestlist/audit", paramMap);
+            logger.debug(url);
+            String resultStr = HttpUtil.post(url, s);
+            logger.debug(resultStr);
+            JSONObject resultRecord = Record.parseObject(resultStr);
+            Thread.sleep(3000);
+            record = Record.parseObject(HttpUtil.get(resultRecord.getString("url")));
+        } catch (Exception e) {
+            throw new OpenAPIException(e.getMessage(), e);
+        }
+        return record;
+    }
+
+
+
+    /**
+     * 钉钉创建付款申请单审批实列
+     * @param processCode
+     * @param agentid
+     * @param userid 发起人
+     * @param deptid 部门
+     * @param map 数据
+     * @throws ApiException
+     */
+    public void createPayrequest(String processCode, Long agentid, String userid, Long deptid, Payrequest so) throws ApiException {
+        DingTalkClient client = new DefaultDingTalkClient("https://oapi.dingtalk.com/topapi/processinstance/create");
+        OapiProcessinstanceCreateRequest req = new OapiProcessinstanceCreateRequest();
+        req.setAgentId(agentid);
+        req.setProcessCode(processCode);
+        req.setOriginatorUserId(userid);
+        req.setDeptId(deptid);
+        req.setCcPosition("START");
+        if (so!=null){
+            List<OapiProcessinstanceCreateRequest.FormComponentValueVo> formComponentValueVoList = new ArrayList<OapiProcessinstanceCreateRequest.FormComponentValueVo>();
+            OapiProcessinstanceCreateRequest.FormComponentValueVo formComponentValueVo = new OapiProcessinstanceCreateRequest.FormComponentValueVo();
+            formComponentValueVo.setName("日期");
+            formComponentValueVo.setValue(so.getDvouchdate());
+            formComponentValueVoList.add(formComponentValueVo);
+
+            OapiProcessinstanceCreateRequest.FormComponentValueVo fc = new OapiProcessinstanceCreateRequest.FormComponentValueVo();
+            fc.setName("部门");
+            if (so.getCdepname()!=null&&!so.getCdepname().equals("")){
+                fc.setValue(so.getCdepname());
+            }else {
+                fc.setValue("暂无");
+            }
+
+            formComponentValueVoList.add(fc);
+
+            OapiProcessinstanceCreateRequest.FormComponentValueVo fc2 = new OapiProcessinstanceCreateRequest.FormComponentValueVo();
+            fc2.setName("供应商");
+            if (so.getCvenname()!=null&&!so.getCvenname().equals("")){
+                fc2.setValue(so.getCvenname());
+            }else {
+                fc2.setValue("暂无");
+            }
+
+            formComponentValueVoList.add(fc2);
+
+            OapiProcessinstanceCreateRequest.FormComponentValueVo fc3 = new OapiProcessinstanceCreateRequest.FormComponentValueVo();
+            fc3.setName("结算方式");
+            if (so.getCssname()!=null&&!so.getCssname().equals("")){
+                fc3.setValue(so.getCssname());
+            }else {
+                fc3.setValue("暂无");
+            }
+            formComponentValueVoList.add(fc3);
+
+            OapiProcessinstanceCreateRequest.FormComponentValueVo fc4 = new OapiProcessinstanceCreateRequest.FormComponentValueVo();
+            fc4.setName("申请人");
+            if (so.getCpersonname()!=null&&!so.getCpersonname().equals("")){
+                fc4.setValue(so.getCpersonname());
+            }else {
+                fc4.setValue("暂无");
+            }
+            formComponentValueVoList.add(fc4);
+
+            OapiProcessinstanceCreateRequest.FormComponentValueVo fc6 = new OapiProcessinstanceCreateRequest.FormComponentValueVo();
+            fc6.setName("付款日期");
+            if (so.getDgatheringdate()!=null&&!so.getDgatheringdate().equals("")){
+                fc6.setValue(so.getDgatheringdate());
+            }else {
+                fc6.setValue(so.getDvouchdate());
+            }
+            formComponentValueVoList.add(fc6);
+
+            List<List<OapiProcessinstanceCreateRequest.FormComponentValueVo>>ls=new ArrayList<>();
+            BigDecimal a =new BigDecimal("0");
+            for (PayrequestMin s:so.getEntry()){
+                List<OapiProcessinstanceCreateRequest.FormComponentValueVo>mingxilist=new ArrayList<>();
+                OapiProcessinstanceCreateRequest.FormComponentValueVo mingxi2 = new OapiProcessinstanceCreateRequest.FormComponentValueVo();
+                mingxi2.setName("来源单据号");
+                mingxi2.setValue(so.getCvouchid());
+                mingxilist.add(mingxi2);
+
+                OapiProcessinstanceCreateRequest.FormComponentValueVo fc7 = new OapiProcessinstanceCreateRequest.FormComponentValueVo();
+                fc7.setName("存货名称");
+                if (s.getCinvname()!=null&&!s.getCinvname().equals("")){
+                    fc7.setValue(s.getCinvname());
+                }else {
+                    fc7.setValue("暂无");
+                }
+                mingxilist.add(fc7);
+
+                OapiProcessinstanceCreateRequest.FormComponentValueVo fc8 = new OapiProcessinstanceCreateRequest.FormComponentValueVo();
+                fc8.setName("存货数量");
+                if (s.getIapplyamt_s()!=null&&!s.getIapplyamt_s().equals("")){
+                    fc8.setValue(s.getIapplyamt_s());
+                }else {
+                    fc8.setValue("0");
+                }
+                mingxilist.add(fc8);
+                OapiProcessinstanceCreateRequest.FormComponentValueVo fc9 = new OapiProcessinstanceCreateRequest.FormComponentValueVo();
+                fc9.setName("单价");
+                if (s.getInattaxprice()!=null&&!s.getInattaxprice().equals("")){
+                    fc9.setValue(s.getInattaxprice());
+                }else {
+                    fc9.setValue("0");
+                }
+                mingxilist.add(fc9);
+
+                OapiProcessinstanceCreateRequest.FormComponentValueVo fc10= new OapiProcessinstanceCreateRequest.FormComponentValueVo();
+                fc10.setName("金额");
+                if (s.getIapplyamt()!=null&&!s.getIapplyamt().equals("")){
+                    fc10.setValue(s.getIapplyamt());
+                    BigDecimal b=new BigDecimal(s.getIapplyamt());
+                    BigDecimal add = a.add(b);
+                    a=add;
+                }else {
+                    fc10.setValue("0");
+                }
+                mingxilist.add(fc10);
+                ls.add(mingxilist);
+            }
+            OapiProcessinstanceCreateRequest.FormComponentValueVo fc5 = new OapiProcessinstanceCreateRequest.FormComponentValueVo();
+            fc5.setName("申请金额(元)");
+            fc5.setValue(a.toString());
+//                fc5.setValue(so.getPersonname());
+            formComponentValueVoList.add(fc5);
+
+
+            OapiProcessinstanceCreateRequest.FormComponentValueVo obj7 = new OapiProcessinstanceCreateRequest.FormComponentValueVo();
+            obj7.setName("表格");
+            obj7.setValue(JSON.toJSONString(ls));
+            formComponentValueVoList.add(obj7);
+
+            req.setFormComponentValues(formComponentValueVoList);
+            dingdingOpenInterface.getToken();
+            OapiProcessinstanceCreateResponse rsp = client.execute(req, dingdingOpenInterface.gettoken);
+            System.out.println(rsp.getBody());
+        }
+    }
+
+
+    //获取to_account
+    public void getToaccount(){
+        Properties prop = PropUtil.getProperties("/config.properties");
+        getToaccount= prop.getProperty("to_account");
+
+    }
+}

+ 325 - 0
src/main/java/net/chenlin/dp/modules/api/service/PurchaseOrderService.java

@@ -0,0 +1,325 @@
+package net.chenlin.dp.modules.api.service;
+
+import com.alibaba.fastjson.JSON;
+import com.alibaba.fastjson.JSONObject;
+import com.dingtalk.api.DefaultDingTalkClient;
+import com.dingtalk.api.DingTalkClient;
+import com.dingtalk.api.request.OapiProcessinstanceCreateRequest;
+import com.dingtalk.api.response.OapiProcessinstanceCreateResponse;
+import com.fasterxml.jackson.databind.ObjectMapper;
+import com.taobao.api.ApiException;
+import net.chenlin.dp.common.openapi4j.exception.OpenAPIException;
+import net.chenlin.dp.common.openapi4j.platform.ResultService;
+import net.chenlin.dp.common.openapi4j.util.PropUtil;
+import net.chenlin.dp.modules.api.controller.DingdingOpenInterface;
+import net.chenlin.dp.modules.api.vo.SaleOrderRest;
+import net.chenlin.dp.modules.api.vo.YonyouPurchaseMaterial;
+import net.chenlin.dp.modules.api.vo.YonyouPurchaseOrder;
+import net.chenlin.dp.modules.api.vo.YonyouSaleOrder;
+
+import java.util.*;
+
+public class PurchaseOrderService {
+
+    private net.chenlin.dp.common.openapi4j.service.PurchaseOrderService purchaseOrderService=new net.chenlin.dp.common.openapi4j.service.PurchaseOrderService();
+    private DingdingOpenInterface dingdingOpenInterface=new DingdingOpenInterface();
+
+
+    private  static  String getToaccount="";
+    /**
+     * 采购订单新增
+     * @param list
+     */
+    public void yonyouAddPurchaseOrder(List<YonyouPurchaseOrder> list) throws OpenAPIException {
+        try {
+            if (list.size()>0){
+                for (YonyouPurchaseOrder yonyouPurchaseOrder:list){
+                    Map<String,Object> map=new HashMap<>();
+                    map.put("purchaseorder",yonyouPurchaseOrder);
+                    String s = JSONObject.toJSONString(map);
+                    JSONObject add = purchaseOrderService.add(s, getToaccount);
+                    HashMap hashMap = JSONObject.parseObject(add.toString(), HashMap.class);
+                    if (!hashMap.get("tradeid").equals("")&&hashMap.get("tradeid")!=null){
+                        String result = ResultService.getResult(hashMap.get("tradeid").toString());
+                        System.out.println(result);
+                    }
+                }
+
+            }
+
+        }catch (Exception e){
+            throw new OpenAPIException(e.getMessage(), e);
+        }
+
+    }
+
+
+    /**
+     * 批量获取采购订单
+     * @param map
+     * @return
+     * @throws OpenAPIException
+     */
+    public List<YonyouPurchaseOrder> yonyouQueryPurchaseOrder(Map<String,String>map) throws OpenAPIException {
+        map.put("to_account", getToaccount);
+        try {
+            JSONObject jsonObject = purchaseOrderService.batchGet(map);
+            HashMap hashMap = JSONObject.parseObject(jsonObject.toString(), HashMap.class);
+            Object errcode = hashMap.get("errcode");
+            if (errcode.equals("0")){
+                Object row_count = hashMap.get("row_count");
+                map.put("rows_per_page",row_count.toString());
+                JSONObject jsonObjects = purchaseOrderService.batchGet(map);
+                HashMap hashMaps = JSONObject.parseObject(jsonObjects.toString(), HashMap.class);
+                if (hashMaps.get("errcode").equals("0")){
+                    Object saleorderlist = hashMaps.get("purchaseorderlist");
+                    List<YonyouPurchaseOrder> list= JSON.parseArray(JSON.toJSONString(saleorderlist), YonyouPurchaseOrder.class);
+                    return list;
+                }else {
+                    return null;
+                }
+
+            }else {
+                return null;
+            }
+        }catch (Exception e){
+            throw new OpenAPIException(e.getMessage(), e);
+        }
+    }
+
+
+    /**
+     * 获取单张采购订单
+     * @param id
+     * @return
+     * @throws OpenAPIException
+     */
+    public YonyouPurchaseOrder yonyouGetPurchaseOrder(String id) throws OpenAPIException {
+        try {
+            JSONObject jsonObject = purchaseOrderService.get(id, getToaccount);
+            HashMap hashMap = JSONObject.parseObject(jsonObject.toString(), HashMap.class);
+            if (hashMap.get("errcode").equals("0")){
+                Object purchaseorder = hashMap.get("purchaseorder");
+                ObjectMapper objectMapper = new ObjectMapper();
+                YonyouPurchaseOrder zfsp = objectMapper.convertValue(purchaseorder, YonyouPurchaseOrder.class);
+                return zfsp;
+            }else {
+                return null;
+            }
+        }catch (Exception e){
+            throw new OpenAPIException(e.getMessage(), e);
+        }
+    }
+
+
+    /**
+     * 采购订单审核
+     */
+    public void yonyouShenhePurchaseOrder(SaleOrderRest saleOrderRest) throws OpenAPIException {
+        Map<String,Object>map=new HashMap<>();
+        map.put("saleorder",saleOrderRest);
+        try {
+            String s = JSONObject.toJSONString(map);
+            JSONObject shenghe = purchaseOrderService.shenghe(s, getToaccount);
+        }catch (Exception e){
+            throw new OpenAPIException(e.getMessage(), e);
+        }
+
+    }
+
+    public void getToaccount(){
+        Properties prop = PropUtil.getProperties("/config.properties");
+        getToaccount= prop.getProperty("to_account");
+    }
+
+
+
+
+
+    /**
+     * 钉钉创建采购订单审批实列
+     * @param processCode
+     * @param agentid
+     * @param userid 发起人
+     * @param deptid 部门
+     * @param map 数据
+     * @throws ApiException
+     */
+    public void createPurchaseOrder(String processCode, Long agentid, String userid, Long deptid, YonyouPurchaseOrder so) throws ApiException {
+        DingTalkClient client = new DefaultDingTalkClient("https://oapi.dingtalk.com/topapi/processinstance/create");
+        OapiProcessinstanceCreateRequest req = new OapiProcessinstanceCreateRequest();
+        req.setAgentId(agentid);
+        req.setProcessCode(processCode);
+        req.setOriginatorUserId(userid);
+        req.setDeptId(deptid);
+        req.setCcPosition("START");
+        if (so!=null){
+            List<OapiProcessinstanceCreateRequest.FormComponentValueVo> formComponentValueVoList = new ArrayList<OapiProcessinstanceCreateRequest.FormComponentValueVo>();
+            OapiProcessinstanceCreateRequest.FormComponentValueVo formComponentValueVo = new OapiProcessinstanceCreateRequest.FormComponentValueVo();
+            formComponentValueVo.setName("业务类型");
+            if (so.getOperation_type_code()!=null&&!so.getOperation_type_code().equals("")){
+                formComponentValueVo.setValue(so.getOperation_type_code());
+            }else {
+                formComponentValueVo.setValue("暂无");
+            }
+            formComponentValueVoList.add(formComponentValueVo);
+
+            OapiProcessinstanceCreateRequest.FormComponentValueVo fc2 = new OapiProcessinstanceCreateRequest.FormComponentValueVo();
+            fc2.setName("单据编号");
+            fc2.setValue(so.getCode());
+            formComponentValueVoList.add(fc2);
+
+            OapiProcessinstanceCreateRequest.FormComponentValueVo fc = new OapiProcessinstanceCreateRequest.FormComponentValueVo();
+            fc.setName("单据日期");
+            fc.setValue(so.getDate());
+            formComponentValueVoList.add(fc);
+
+            OapiProcessinstanceCreateRequest.FormComponentValueVo fc3 = new OapiProcessinstanceCreateRequest.FormComponentValueVo();
+            fc3.setName("供应商名称");
+            if (so.getVendorname()!=null&&!so.getVendorname().equals("")){
+                fc3.setValue(so.getVendorname());
+            }else {
+                fc3.setValue("暂无");
+            }
+            formComponentValueVoList.add(fc3);
+
+            OapiProcessinstanceCreateRequest.FormComponentValueVo fv = new OapiProcessinstanceCreateRequest.FormComponentValueVo();
+            fv.setName("收货地址");
+            if (so.getDefine11()!=null&&!so.getDefine11().equals("")){
+                fv.setValue(so.getDefine11());
+            }else {
+                fv.setValue("暂无");
+            }
+            formComponentValueVoList.add(fv);
+
+            OapiProcessinstanceCreateRequest.FormComponentValueVo fc4 = new OapiProcessinstanceCreateRequest.FormComponentValueVo();
+            fc4.setName("部门");
+            if (so.getDeptname()!=null&&!so.getDeptname().equals("")){
+                fc4.setValue(so.getDeptname());
+            }else {
+                fc4.setValue("暂无");
+            }
+            formComponentValueVoList.add(fc4);
+
+            OapiProcessinstanceCreateRequest.FormComponentValueVo fc5 = new OapiProcessinstanceCreateRequest.FormComponentValueVo();
+            fc5.setName("业务员");
+            if (so.getPersonname()!=null&&!so.getPersonname().equals("")){
+                fc5.setValue(so.getPersonname());
+            }else {
+                fc5.setValue("暂无");
+            }
+            formComponentValueVoList.add(fc5);
+
+            OapiProcessinstanceCreateRequest.FormComponentValueVo fc6 = new OapiProcessinstanceCreateRequest.FormComponentValueVo();
+            fc6.setName("币种");
+            fc6.setValue("暂无");
+            formComponentValueVoList.add(fc6);
+
+            OapiProcessinstanceCreateRequest.FormComponentValueVo f= new OapiProcessinstanceCreateRequest.FormComponentValueVo();
+            f.setName("制单人");
+            if (so.getMaker()!=null&&!so.getMaker().equals("")){
+                f.setValue(so.getMaker());
+            }else {
+                f.setValue("暂无");
+            }
+            formComponentValueVoList.add(f);
+
+            List<List<OapiProcessinstanceCreateRequest.FormComponentValueVo>>ls=new ArrayList<>();
+
+            for (YonyouPurchaseMaterial s:so.getEntry()){
+                List<OapiProcessinstanceCreateRequest.FormComponentValueVo>mingxilist=new ArrayList<>();
+                OapiProcessinstanceCreateRequest.FormComponentValueVo mingxi2 = new OapiProcessinstanceCreateRequest.FormComponentValueVo();
+                mingxi2.setName("存货名称");
+                if (s.getInventoryname()!=null&&!s.getInventoryname().equals("")){
+                    mingxi2.setValue(s.getInventoryname());
+                }else {
+                    mingxi2.setValue("暂无");
+                }
+                mingxilist.add(mingxi2);
+
+                OapiProcessinstanceCreateRequest.FormComponentValueVo fo = new OapiProcessinstanceCreateRequest.FormComponentValueVo();
+                fo.setName("数量");
+                if (s.getQuantity()!=null&&!s.getQuantity().equals("")){
+                    fo.setValue(s.getQuantity());
+                }else {
+                    fo.setValue("0");
+                }
+                mingxilist.add(fo);
+
+                OapiProcessinstanceCreateRequest.FormComponentValueVo fc7 = new OapiProcessinstanceCreateRequest.FormComponentValueVo();
+                fc7.setName("含税单价");
+                if (s.getTax()!=null&&!s.getTax().equals("")){
+                    fc7.setValue(s.getTax());
+                }else {
+                    fc7.setValue("0");
+                }
+                mingxilist.add(fc7);
+
+                OapiProcessinstanceCreateRequest.FormComponentValueVo fc8 = new OapiProcessinstanceCreateRequest.FormComponentValueVo();
+                fc8.setName("无税单价");
+                if (s.getPrice()!=null&&!s.getPrice().equals("")){
+                    fc8.setValue(s.getPrice());
+                }else {
+                    fc8.setValue("0");
+                }
+                mingxilist.add(fc8);
+
+                OapiProcessinstanceCreateRequest.FormComponentValueVo fc9 = new OapiProcessinstanceCreateRequest.FormComponentValueVo();
+                fc9.setName("税率");
+                if (s.getTaxrate()!=null&&!s.getTaxrate().equals("")){
+                    fc9.setValue(s.getTaxrate());
+                }else {
+                    fc9.setValue("暂无");
+                }
+                mingxilist.add(fc9);
+
+                OapiProcessinstanceCreateRequest.FormComponentValueVo fc10= new OapiProcessinstanceCreateRequest.FormComponentValueVo();
+                fc10.setName("无税金额");
+                if (s.getMoney()!=null&&!s.getMoney().equals("")){
+                    fc10.setValue(s.getMoney());
+                }else {
+                    fc10.setValue("0");
+                }
+                mingxilist.add(fc10);
+
+                OapiProcessinstanceCreateRequest.FormComponentValueVo fc11= new OapiProcessinstanceCreateRequest.FormComponentValueVo();
+                fc11.setName("税额");
+                if (s.getNattax()!=null&&!s.getNattax().equals("")){
+                    fc11.setValue(s.getNattax());
+                }else {
+                    fc11.setValue("0");
+                }
+//                    fc11.setValue(s.getTax());
+                mingxilist.add(fc11);
+
+                OapiProcessinstanceCreateRequest.FormComponentValueVo fc12= new OapiProcessinstanceCreateRequest.FormComponentValueVo();
+                fc12.setName("价税合计");
+                if (s.getSum()!=null&&!s.getSum().equals("")){
+                    fc12.setValue(s.getSum());
+                }else {
+                    fc12.setValue("0");
+                }
+                mingxilist.add(fc12);
+
+
+                if (s.getArrivedate()!=null&&!s.getArrivedate().equals("")){
+                    OapiProcessinstanceCreateRequest.FormComponentValueVo fc13= new OapiProcessinstanceCreateRequest.FormComponentValueVo();
+                    fc13.setName("交期");
+                    fc13.setValue(s.getArrivedate());
+                    mingxilist.add(fc13);
+                }
+                ls.add(mingxilist);
+
+            }
+            OapiProcessinstanceCreateRequest.FormComponentValueVo obj7 = new OapiProcessinstanceCreateRequest.FormComponentValueVo();
+            obj7.setName("表格");
+            obj7.setValue(JSON.toJSONString(ls));
+            formComponentValueVoList.add(obj7);
+
+            req.setFormComponentValues(formComponentValueVoList);
+            dingdingOpenInterface.getToken();
+            OapiProcessinstanceCreateResponse rsp = client.execute(req, dingdingOpenInterface.gettoken);
+            System.out.println(rsp.getBody());
+        }
+    }
+}

+ 328 - 0
src/main/java/net/chenlin/dp/modules/api/service/SaleOrderService.java

@@ -0,0 +1,328 @@
+package net.chenlin.dp.modules.api.service;
+
+import com.alibaba.fastjson.JSON;
+import com.alibaba.fastjson.JSONObject;
+import com.dingtalk.api.DefaultDingTalkClient;
+import com.dingtalk.api.DingTalkClient;
+import com.dingtalk.api.request.OapiProcessinstanceCreateRequest;
+import com.dingtalk.api.response.OapiProcessinstanceCreateResponse;
+import com.fasterxml.jackson.databind.ObjectMapper;
+import com.taobao.api.ApiException;
+import net.chenlin.dp.common.openapi4j.exception.OpenAPIException;
+import net.chenlin.dp.common.openapi4j.platform.ResultService;
+import net.chenlin.dp.common.openapi4j.util.PropUtil;
+import net.chenlin.dp.modules.api.controller.DingdingOpenInterface;
+import net.chenlin.dp.modules.api.vo.Payrequest;
+import net.chenlin.dp.modules.api.vo.SaleOrderRest;
+import net.chenlin.dp.modules.api.vo.YonyouMaterial;
+import net.chenlin.dp.modules.api.vo.YonyouSaleOrder;
+
+import java.util.*;
+
+public class SaleOrderService {
+
+    private net.chenlin.dp.common.openapi4j.service.SaleOrderService saleOrderService=new net.chenlin.dp.common.openapi4j.service.SaleOrderService();
+    private DingdingOpenInterface dingdingOpenInterface=new DingdingOpenInterface();
+
+
+    private  static  String getToaccount="";
+
+    /**
+     * 新增销售订单接口
+     * @param list
+     * @throws OpenAPIException
+     */
+    public void yonyouAddSaleOrder(List<YonyouSaleOrder> list) throws OpenAPIException {
+
+        try {
+            if (list.size()>0){
+                for (YonyouSaleOrder yonyouSaleOrder:list){
+                    Map<String,Object> map=new HashMap<>();
+                    map.put("saleorder",yonyouSaleOrder);
+                    String s = JSONObject.toJSONString(map);
+                    JSONObject add = saleOrderService.add(s, getToaccount);
+                    HashMap hashMap = JSONObject.parseObject(add.toString(), HashMap.class);
+                    Object tradeid = hashMap.get("tradeid");
+                    if (!tradeid.equals("")&&tradeid!=null){
+                        String result = ResultService.getResult(tradeid.toString());
+                        System.out.println(result);
+                    }
+                }
+            }
+        }catch (Exception e){
+            throw new OpenAPIException(e.getMessage(), e);
+        }
+    }
+
+    /**
+     * u8批量获取销售订单
+     * @param map 查询参数
+     * @return
+     * @throws OpenAPIException
+     */
+    public List<YonyouSaleOrder> yonyouQuerySaleOrder(Map<String,String>map) throws OpenAPIException {
+        map.put("to_account", getToaccount);
+        try {
+            JSONObject jsonObject = saleOrderService.batchGet(map);
+            HashMap hashMap = JSONObject.parseObject(jsonObject.toString(), HashMap.class);
+            System.out.println(hashMap);
+            Object errcode = hashMap.get("errcode");
+            if (errcode.equals("0")){
+                Object row_count = hashMap.get("row_count");
+                map.put("rows_per_page",row_count.toString());
+                JSONObject jsonObjects = saleOrderService.batchGet(map);
+                HashMap hashMaps = JSONObject.parseObject(jsonObjects.toString(), HashMap.class);
+                if (hashMaps.get("errcode").equals("0")){
+                    Object saleorderlist = hashMaps.get("saleorderlist");
+                    List<YonyouSaleOrder> list= JSON.parseArray(JSON.toJSONString(saleorderlist), YonyouSaleOrder.class);
+                    return list;
+                }else {
+                    return null;
+                }
+
+            }else {
+                return null;
+            }
+        }catch (Exception e){
+            throw new OpenAPIException(e.getMessage(), e);
+        }
+    }
+
+    /**
+     * 获取单张销售订单
+     * @param id 订单编号
+     * @return
+     * @throws OpenAPIException
+     */
+    public  YonyouSaleOrder yonyouGetSaleOrder(String id) throws OpenAPIException {
+        try {
+            JSONObject jsonObject = saleOrderService.get(id, getToaccount);
+            HashMap hashMap = JSONObject.parseObject(jsonObject.toString(), HashMap.class);
+            if (hashMap.get("errcode").equals("0")){
+                Object saleorder = hashMap.get("saleorder");
+                ObjectMapper objectMapper = new ObjectMapper();
+                YonyouSaleOrder zfsp = objectMapper.convertValue(saleorder, YonyouSaleOrder.class);
+                return zfsp;
+            }else {
+                return null;
+            }
+        }catch (Exception e){
+            throw new OpenAPIException(e.getMessage(), e);
+        }
+
+    }
+
+    /**
+     * 销售订单审核
+     */
+    public void yonyouShenheSaleOrder(SaleOrderRest saleOrderRest) throws OpenAPIException {
+        Map<String,Object>map=new HashMap<>();
+        map.put("saleorder",saleOrderRest);
+        try {
+            String s = JSONObject.toJSONString(map);
+            JSONObject shenghe = saleOrderService.shenghe(s, getToaccount);
+            System.out.println(shenghe);
+        }catch (Exception e){
+            throw new OpenAPIException(e.getMessage(), e);
+        }
+
+    }
+
+
+
+
+    /**
+     * 钉钉创建销售订单审批实列
+     * @param processCode
+     * @param agentid
+     * @param userid 发起人
+     * @param deptid 部门
+     * @param map 数据
+     * @throws ApiException
+     */
+    public void createOrder(String processCode, Long agentid, String userid, Long deptid, YonyouSaleOrder so) throws ApiException {
+
+        DingTalkClient client = new DefaultDingTalkClient("https://oapi.dingtalk.com/topapi/processinstance/create");
+        OapiProcessinstanceCreateRequest req = new OapiProcessinstanceCreateRequest();
+        req.setAgentId(agentid);
+        req.setProcessCode(processCode);
+        req.setOriginatorUserId(userid);
+        req.setDeptId(deptid);
+        req.setCcPosition("START");
+        if (so!=null){
+            List<OapiProcessinstanceCreateRequest.FormComponentValueVo> formComponentValueVoList = new ArrayList<OapiProcessinstanceCreateRequest.FormComponentValueVo>();
+            OapiProcessinstanceCreateRequest.FormComponentValueVo formComponentValueVo = new OapiProcessinstanceCreateRequest.FormComponentValueVo();
+            formComponentValueVo.setName("业务类型");
+            if(so.getBusinesstype()!=null&&!so.getBusinesstype().equals("")){
+                formComponentValueVo.setValue(so.getBusinesstype());
+            }else {
+                formComponentValueVo.setValue("暂无");
+            }
+            formComponentValueVoList.add(formComponentValueVo);
+
+            OapiProcessinstanceCreateRequest.FormComponentValueVo fc = new OapiProcessinstanceCreateRequest.FormComponentValueVo();
+            fc.setName("单据日期");
+            fc.setValue(so.getDate());
+            formComponentValueVoList.add(fc);
+
+            OapiProcessinstanceCreateRequest.FormComponentValueVo fc2 = new OapiProcessinstanceCreateRequest.FormComponentValueVo();
+            fc2.setName("单据编号");
+            fc2.setValue(so.getCode());
+            formComponentValueVoList.add(fc2);
+
+            OapiProcessinstanceCreateRequest.FormComponentValueVo fc3 = new OapiProcessinstanceCreateRequest.FormComponentValueVo();
+            fc3.setName("客户名称");
+            if(so.getCusname()!=null&&!so.getCusname().equals("")){
+                fc3.setValue(so.getCusname());
+            }else {
+                fc3.setValue("暂无");
+            }
+            formComponentValueVoList.add(fc3);
+
+            OapiProcessinstanceCreateRequest.FormComponentValueVo fc4 = new OapiProcessinstanceCreateRequest.FormComponentValueVo();
+            fc4.setName("部门");
+            if(so.getDeptname()!=null&&!so.getDeptname().equals("")){
+                fc4.setValue(so.getDeptname());
+            }else {
+                fc4.setValue("暂无");
+            }
+            formComponentValueVoList.add(fc4);
+
+            OapiProcessinstanceCreateRequest.FormComponentValueVo fc5 = new OapiProcessinstanceCreateRequest.FormComponentValueVo();
+            fc5.setName("业务员");
+            if(so.getPersonname()!=null&&!so.getPersonname().equals("")){
+                fc5.setValue(so.getPersonname());
+            }else {
+                fc5.setValue("暂无");
+            }
+            formComponentValueVoList.add(fc5);
+            OapiProcessinstanceCreateRequest.FormComponentValueVo fc6 = new OapiProcessinstanceCreateRequest.FormComponentValueVo();
+            fc6.setName("币种");
+            if(so.getCurrency()!=null&&!so.getCurrency().equals("")){
+                fc6.setValue(so.getCurrency());
+            }else {
+                fc6.setValue("暂无");
+            }
+            formComponentValueVoList.add(fc6);
+
+            OapiProcessinstanceCreateRequest.FormComponentValueVo f= new OapiProcessinstanceCreateRequest.FormComponentValueVo();
+            f.setName("制单人");
+            if(so.getMaker()!=null&&!so.getMaker().equals("")){
+                f.setValue(so.getMaker());
+            }else {
+                f.setValue("暂无");
+            }
+            formComponentValueVoList.add(f);
+
+            List<List<OapiProcessinstanceCreateRequest.FormComponentValueVo>>ls=new ArrayList<>();
+
+            for (YonyouMaterial s:so.getentry()){
+                List<OapiProcessinstanceCreateRequest.FormComponentValueVo>mingxilist=new ArrayList<>();
+                OapiProcessinstanceCreateRequest.FormComponentValueVo mingxi2 = new OapiProcessinstanceCreateRequest.FormComponentValueVo();
+                mingxi2.setName("存货名称");
+                if(s.getInventoryname()!=null&&!s.getInventoryname().equals("")){
+                    mingxi2.setValue(s.getInventoryname());
+                }else {
+                    mingxi2.setValue("暂无");
+                }
+                mingxilist.add(mingxi2);
+
+                OapiProcessinstanceCreateRequest.FormComponentValueVo fc7 = new OapiProcessinstanceCreateRequest.FormComponentValueVo();
+                fc7.setName("含税单价");
+                if(s.getTaxunitprice()!=null&&!s.getTaxunitprice().equals("")){
+                    fc7.setValue(s.getTaxunitprice());
+                }else {
+                    fc7.setValue("0");
+                }
+                mingxilist.add(fc7);
+
+                OapiProcessinstanceCreateRequest.FormComponentValueVo fc8 = new OapiProcessinstanceCreateRequest.FormComponentValueVo();
+                fc8.setName("无税单价");
+                if(s.getUnitprice()!=null&&!s.getUnitprice().equals("")){
+                    fc8.setValue(s.getUnitprice());
+                }else {
+                    fc8.setValue("0");
+                }
+                mingxilist.add(fc8);
+
+                OapiProcessinstanceCreateRequest.FormComponentValueVo fc9 = new OapiProcessinstanceCreateRequest.FormComponentValueVo();
+                fc9.setName("税率(%)");
+                if(s.getTaxrate()!=null&&!s.getTaxrate().equals("")){
+                    fc9.setValue(s.getTaxrate());
+                }else {
+                    fc9.setValue("暂无");
+                }
+                mingxilist.add(fc9);
+
+                OapiProcessinstanceCreateRequest.FormComponentValueVo fc10= new OapiProcessinstanceCreateRequest.FormComponentValueVo();
+                fc10.setName("无税金额");
+                if(s.getMoney()!=null&&!s.getMoney().equals("")){
+                    fc10.setValue(s.getMoney());
+                }else {
+                    fc10.setValue("0");
+                }
+                mingxilist.add(fc10);
+
+                OapiProcessinstanceCreateRequest.FormComponentValueVo fc11= new OapiProcessinstanceCreateRequest.FormComponentValueVo();
+                fc11.setName("税额");
+                if (s.getTax()!=null&&!s.getTax().equals("")){
+                    fc11.setValue(s.getTax());
+                }else {
+                    fc11.setValue("0");
+                }
+                mingxilist.add(fc11);
+                OapiProcessinstanceCreateRequest.FormComponentValueVo fc12= new OapiProcessinstanceCreateRequest.FormComponentValueVo();
+                fc12.setName("价税合计");
+                if(s.getSum()!=null&&!s.getSum().equals("")){
+                    fc12.setValue(s.getSum());
+                }else {
+                    fc12.setValue("0");
+                }
+                mingxilist.add(fc12);
+
+                if(so.getDpredatebt()!=null&&!so.getDpredatebt().equals("")){
+                    OapiProcessinstanceCreateRequest.FormComponentValueVo fc13= new OapiProcessinstanceCreateRequest.FormComponentValueVo();
+                    fc13.setName("交期");
+                    fc13.setValue(so.getDpredatebt());
+                    mingxilist.add(fc13);
+                }
+
+
+                ls.add(mingxilist);
+
+            }
+            OapiProcessinstanceCreateRequest.FormComponentValueVo obj7 = new OapiProcessinstanceCreateRequest.FormComponentValueVo();
+            obj7.setName("表格");
+            obj7.setValue(JSON.toJSONString(ls));
+            formComponentValueVoList.add(obj7);
+
+            req.setFormComponentValues(formComponentValueVoList);
+            dingdingOpenInterface.getToken();
+            OapiProcessinstanceCreateResponse rsp = client.execute(req, dingdingOpenInterface.gettoken);
+            System.out.println(rsp.getBody());
+        }
+    }
+
+
+    //获取to_account
+    public void getToaccount(){
+        Properties prop = PropUtil.getProperties("/config.properties");
+        getToaccount= prop.getProperty("to_account");
+    }
+
+
+//    public static void main(String[] args) throws OpenAPIException {
+//        SaleOrderService service=new SaleOrderService();
+//        Map<String ,String>map=new HashMap<>();
+//        service.getToaccount();
+//        List<YonyouSaleOrder> list = service.yonyouQuerySaleOrder(map);
+//        YonyouSaleOrder yonyouSaleOrder = service.yonyouGetSaleOrder(list.get(0).getCode());
+//        SaleOrderRest saleOrderRest=new SaleOrderRest();
+//		saleOrderRest.setUser_id("demo");
+//		saleOrderRest.setAgree("1");
+//		saleOrderRest.setVoucher_code("XSDD210910004");
+//		service.yonyouShenheSaleOrder(saleOrderRest);
+//        System.out.println(yonyouSaleOrder);
+//
+//    }
+}

+ 188 - 0
src/main/java/net/chenlin/dp/modules/api/vo/Customer.java

@@ -0,0 +1,188 @@
+package net.chenlin.dp.modules.api.vo;
+
+import java.util.ArrayList;
+import java.util.List;
+
+public class Customer {
+    private  String code;//客户编码 true
+    private  String name;//客户名称 true
+    private  String abbrname;//客户简称
+    private  String sort_code;//所属分类码
+    private  String domain_code;//所属地区码
+    private  String industry;//所属行业
+    private  String contact;//联系人
+    private  String phone;//电话
+    private  String fax;//传真
+    private  String mobile;//手机
+    private  String devliver_site;//发货地址
+    private  String end_date;//停用日期
+    private  String memo;//备注
+    private  String ccusexch_name;//币种
+    private  String bcusdomestic;//国内
+    private  String bcusoverseas;//国外
+    private  String bserviceattribute;//服务
+
+    private  CustomerAddress addresses=new CustomerAddress();//地址
+    private List<CustomerBanks> banks=new ArrayList<>();//银行
+    private  Invoicecustomers invoicecustomers=new Invoicecustomers();//开票
+
+    public String getCode() {
+        return code;
+    }
+
+    public void setCode(String code) {
+        this.code = code;
+    }
+
+    public String getName() {
+        return name;
+    }
+
+    public void setName(String name) {
+        this.name = name;
+    }
+
+    public String getAbbrname() {
+        return abbrname;
+    }
+
+    public void setAbbrname(String abbrname) {
+        this.abbrname = abbrname;
+    }
+
+    public String getSort_code() {
+        return sort_code;
+    }
+
+    public void setSort_code(String sort_code) {
+        this.sort_code = sort_code;
+    }
+
+    public String getDomain_code() {
+        return domain_code;
+    }
+
+    public void setDomain_code(String domain_code) {
+        this.domain_code = domain_code;
+    }
+
+    public String getIndustry() {
+        return industry;
+    }
+
+    public void setIndustry(String industry) {
+        this.industry = industry;
+    }
+
+    public String getContact() {
+        return contact;
+    }
+
+    public void setContact(String contact) {
+        this.contact = contact;
+    }
+
+    public String getPhone() {
+        return phone;
+    }
+
+    public void setPhone(String phone) {
+        this.phone = phone;
+    }
+
+    public String getFax() {
+        return fax;
+    }
+
+    public void setFax(String fax) {
+        this.fax = fax;
+    }
+
+    public String getMobile() {
+        return mobile;
+    }
+
+    public void setMobile(String mobile) {
+        this.mobile = mobile;
+    }
+
+    public String getDevliver_site() {
+        return devliver_site;
+    }
+
+    public void setDevliver_site(String devliver_site) {
+        this.devliver_site = devliver_site;
+    }
+
+    public String getEnd_date() {
+        return end_date;
+    }
+
+    public void setEnd_date(String end_date) {
+        this.end_date = end_date;
+    }
+
+    public String getMemo() {
+        return memo;
+    }
+
+    public void setMemo(String memo) {
+        this.memo = memo;
+    }
+
+    public String getCcusexch_name() {
+        return ccusexch_name;
+    }
+
+    public void setCcusexch_name(String ccusexch_name) {
+        this.ccusexch_name = ccusexch_name;
+    }
+
+    public String getBcusdomestic() {
+        return bcusdomestic;
+    }
+
+    public void setBcusdomestic(String bcusdomestic) {
+        this.bcusdomestic = bcusdomestic;
+    }
+
+    public String getBcusoverseas() {
+        return bcusoverseas;
+    }
+
+    public void setBcusoverseas(String bcusoverseas) {
+        this.bcusoverseas = bcusoverseas;
+    }
+
+    public String getBserviceattribute() {
+        return bserviceattribute;
+    }
+
+    public void setBserviceattribute(String bserviceattribute) {
+        this.bserviceattribute = bserviceattribute;
+    }
+
+    public CustomerAddress getAddresses() {
+        return addresses;
+    }
+
+    public void setAddresses(CustomerAddress addresses) {
+        this.addresses = addresses;
+    }
+
+    public List<CustomerBanks> getBanks() {
+        return banks;
+    }
+
+    public void setBanks(List<CustomerBanks> banks) {
+        this.banks = banks;
+    }
+
+    public Invoicecustomers getInvoicecustomers() {
+        return invoicecustomers;
+    }
+
+    public void setInvoicecustomers(Invoicecustomers invoicecustomers) {
+        this.invoicecustomers = invoicecustomers;
+    }
+}

+ 94 - 0
src/main/java/net/chenlin/dp/modules/api/vo/CustomerAddress.java

@@ -0,0 +1,94 @@
+package net.chenlin.dp.modules.api.vo;
+
+public class CustomerAddress {
+    private  String ccuscode;//客户编码
+    private  String caddcode;//收货地址编码
+    private  String bdefault;//默认值
+    private  String cdeliveradd;//收货地址
+    private  String cenglishadd;//英文地址
+    private  String cenglishadd2;//英文地址2
+    private  String cenglishadd3;//英文地址3
+    private  String cenglishadd4;//英文地址4
+    private  String cdeliverunit;//收货单位
+    private  String clinkperson;//联系人
+
+    public String getCcuscode() {
+        return ccuscode;
+    }
+
+    public void setCcuscode(String ccuscode) {
+        this.ccuscode = ccuscode;
+    }
+
+    public String getCaddcode() {
+        return caddcode;
+    }
+
+    public void setCaddcode(String caddcode) {
+        this.caddcode = caddcode;
+    }
+
+    public String getBdefault() {
+        return bdefault;
+    }
+
+    public void setBdefault(String bdefault) {
+        this.bdefault = bdefault;
+    }
+
+    public String getCdeliveradd() {
+        return cdeliveradd;
+    }
+
+    public void setCdeliveradd(String cdeliveradd) {
+        this.cdeliveradd = cdeliveradd;
+    }
+
+    public String getCenglishadd() {
+        return cenglishadd;
+    }
+
+    public void setCenglishadd(String cenglishadd) {
+        this.cenglishadd = cenglishadd;
+    }
+
+    public String getCenglishadd2() {
+        return cenglishadd2;
+    }
+
+    public void setCenglishadd2(String cenglishadd2) {
+        this.cenglishadd2 = cenglishadd2;
+    }
+
+    public String getCenglishadd3() {
+        return cenglishadd3;
+    }
+
+    public void setCenglishadd3(String cenglishadd3) {
+        this.cenglishadd3 = cenglishadd3;
+    }
+
+    public String getCenglishadd4() {
+        return cenglishadd4;
+    }
+
+    public void setCenglishadd4(String cenglishadd4) {
+        this.cenglishadd4 = cenglishadd4;
+    }
+
+    public String getCdeliverunit() {
+        return cdeliverunit;
+    }
+
+    public void setCdeliverunit(String cdeliverunit) {
+        this.cdeliverunit = cdeliverunit;
+    }
+
+    public String getClinkperson() {
+        return clinkperson;
+    }
+
+    public void setClinkperson(String clinkperson) {
+        this.clinkperson = clinkperson;
+    }
+}

+ 103 - 0
src/main/java/net/chenlin/dp/modules/api/vo/CustomerBanks.java

@@ -0,0 +1,103 @@
+package net.chenlin.dp.modules.api.vo;
+
+public class CustomerBanks {
+    private  String ccuscode;//客户编码
+    private  String caccountnum;//银行账号
+    private  String bdefault;//默认值
+    private  String cbank;//所属银行编码
+    private  String cbranch;//开户银行
+    private  String caccountname;//账户名称
+    private  String cCusPrinvince;//省
+    private  String cCusCity;//市
+    private  String cCusCBBDepId;//机构号
+    private  String cCusBranchId;//联行号
+    private  String cCusBranchIdSec;//联行号II
+
+    public String getCcuscode() {
+        return ccuscode;
+    }
+
+    public void setCcuscode(String ccuscode) {
+        this.ccuscode = ccuscode;
+    }
+
+    public String getCaccountnum() {
+        return caccountnum;
+    }
+
+    public void setCaccountnum(String caccountnum) {
+        this.caccountnum = caccountnum;
+    }
+
+    public String getBdefault() {
+        return bdefault;
+    }
+
+    public void setBdefault(String bdefault) {
+        this.bdefault = bdefault;
+    }
+
+    public String getCbank() {
+        return cbank;
+    }
+
+    public void setCbank(String cbank) {
+        this.cbank = cbank;
+    }
+
+    public String getCbranch() {
+        return cbranch;
+    }
+
+    public void setCbranch(String cbranch) {
+        this.cbranch = cbranch;
+    }
+
+    public String getCaccountname() {
+        return caccountname;
+    }
+
+    public void setCaccountname(String caccountname) {
+        this.caccountname = caccountname;
+    }
+
+    public String getcCusPrinvince() {
+        return cCusPrinvince;
+    }
+
+    public void setcCusPrinvince(String cCusPrinvince) {
+        this.cCusPrinvince = cCusPrinvince;
+    }
+
+    public String getcCusCity() {
+        return cCusCity;
+    }
+
+    public void setcCusCity(String cCusCity) {
+        this.cCusCity = cCusCity;
+    }
+
+    public String getcCusCBBDepId() {
+        return cCusCBBDepId;
+    }
+
+    public void setcCusCBBDepId(String cCusCBBDepId) {
+        this.cCusCBBDepId = cCusCBBDepId;
+    }
+
+    public String getcCusBranchId() {
+        return cCusBranchId;
+    }
+
+    public void setcCusBranchId(String cCusBranchId) {
+        this.cCusBranchId = cCusBranchId;
+    }
+
+    public String getcCusBranchIdSec() {
+        return cCusBranchIdSec;
+    }
+
+    public void setcCusBranchIdSec(String cCusBranchIdSec) {
+        this.cCusBranchIdSec = cCusBranchIdSec;
+    }
+}

+ 31 - 0
src/main/java/net/chenlin/dp/modules/api/vo/Invoicecustomers.java

@@ -0,0 +1,31 @@
+package net.chenlin.dp.modules.api.vo;
+
+public class Invoicecustomers {
+    private  String ccuscode; //客户编码
+    private  String cinvoicecompany;//开票单位编码
+    private  String bdefault;//默认值
+
+    public String getCcuscode() {
+        return ccuscode;
+    }
+
+    public void setCcuscode(String ccuscode) {
+        this.ccuscode = ccuscode;
+    }
+
+    public String getCinvoicecompany() {
+        return cinvoicecompany;
+    }
+
+    public void setCinvoicecompany(String cinvoicecompany) {
+        this.cinvoicecompany = cinvoicecompany;
+    }
+
+    public String getBdefault() {
+        return bdefault;
+    }
+
+    public void setBdefault(String bdefault) {
+        this.bdefault = bdefault;
+    }
+}

+ 458 - 0
src/main/java/net/chenlin/dp/modules/api/vo/Payrequest.java

@@ -0,0 +1,458 @@
+package net.chenlin.dp.modules.api.vo;
+
+import java.util.ArrayList;
+import java.util.List;
+
+public class Payrequest {
+    private  String cvouchid;//单据编号
+    private  String dvouchdate;//单据日期
+    private  String cdwcode;//供应商编码
+    private  String cvenabbname;//供应商简称
+    private  String cvenname;//供应商名称
+    private  String cdepcode;//部门编码
+    private  String cdepname;//部门名称
+    private  String cperson;//业务员编码
+    private  String cpersonname;//业务员名称
+    private  String csscode;//结算方式编码
+    private  String cssname;//结算方式名称
+    private  String ccode;//结算科目
+    private  String citemcode;//项目编码
+    private  String citemname;//项目名称
+    private  String citem_class;//项目大类编码
+    private  String citem_name;//项目大类名称
+    private  String cdigest;//备注
+    private  String cexch_name;//币种
+    private  String iexchrate;//汇率
+    private  String cflag;//应收应付标志
+    private  String ccheckman;//审核人
+    private  String coperator;//制单人
+    private  String cbank;//对方银行
+    private  String cbankaccount;//对方银行帐号
+    private  String cnatbank;//本单位开户银行
+    private  String cnatbankaccount;//本单位开户银行帐号
+    private  String dverifydate;//审核日期
+    private  String ccloser;//关闭人
+    private  String dclosedate;//关闭日期
+    private  String cgatheringplan;//收付款协议编码
+    private  String cgatheringplanname;//收付款协议
+    private  String dgatheringdate;//收付款协议日期
+    private  String csysbarcode;//单据条码
+    private  String cdefine1;
+    private  String cdefine2;
+    private  String cdefine3;
+    private  String cdefine4;
+    private  String cdefine5;
+    private  String cdefine6;
+    private  String cdefine7;
+    private  String cdefine8;
+    private  String cdefine9;
+    private  String cdefine10;
+    private  String cdefine12;
+    private  String cdefine11;
+    private  String cdefine13;
+    private  String cdefine14;
+    private  String cdefine15;
+    private  String cdefine16;
+
+    private List<PayrequestMin>entry=new ArrayList<>();
+
+    public String getCdefine1() {
+        return cdefine1;
+    }
+
+    public void setCdefine1(String cdefine1) {
+        this.cdefine1 = cdefine1;
+    }
+
+    public String getCdefine2() {
+        return cdefine2;
+    }
+
+    public void setCdefine2(String cdefine2) {
+        this.cdefine2 = cdefine2;
+    }
+
+    public String getCdefine3() {
+        return cdefine3;
+    }
+
+    public void setCdefine3(String cdefine3) {
+        this.cdefine3 = cdefine3;
+    }
+
+    public String getCdefine4() {
+        return cdefine4;
+    }
+
+    public void setCdefine4(String cdefine4) {
+        this.cdefine4 = cdefine4;
+    }
+
+    public String getCdefine5() {
+        return cdefine5;
+    }
+
+    public void setCdefine5(String cdefine5) {
+        this.cdefine5 = cdefine5;
+    }
+
+    public String getCdefine6() {
+        return cdefine6;
+    }
+
+    public void setCdefine6(String cdefine6) {
+        this.cdefine6 = cdefine6;
+    }
+
+    public String getCdefine7() {
+        return cdefine7;
+    }
+
+    public void setCdefine7(String cdefine7) {
+        this.cdefine7 = cdefine7;
+    }
+
+    public String getCdefine8() {
+        return cdefine8;
+    }
+
+    public void setCdefine8(String cdefine8) {
+        this.cdefine8 = cdefine8;
+    }
+
+    public String getCdefine9() {
+        return cdefine9;
+    }
+
+    public void setCdefine9(String cdefine9) {
+        this.cdefine9 = cdefine9;
+    }
+
+    public String getCdefine10() {
+        return cdefine10;
+    }
+
+    public void setCdefine10(String cdefine10) {
+        this.cdefine10 = cdefine10;
+    }
+
+    public String getCdefine12() {
+        return cdefine12;
+    }
+
+    public void setCdefine12(String cdefine12) {
+        this.cdefine12 = cdefine12;
+    }
+
+    public String getCdefine11() {
+        return cdefine11;
+    }
+
+    public void setCdefine11(String cdefine11) {
+        this.cdefine11 = cdefine11;
+    }
+
+    public String getCdefine13() {
+        return cdefine13;
+    }
+
+    public void setCdefine13(String cdefine13) {
+        this.cdefine13 = cdefine13;
+    }
+
+    public String getCdefine14() {
+        return cdefine14;
+    }
+
+    public void setCdefine14(String cdefine14) {
+        this.cdefine14 = cdefine14;
+    }
+
+    public String getCdefine15() {
+        return cdefine15;
+    }
+
+    public void setCdefine15(String cdefine15) {
+        this.cdefine15 = cdefine15;
+    }
+
+    public String getCdefine16() {
+        return cdefine16;
+    }
+
+    public void setCdefine16(String cdefine16) {
+        this.cdefine16 = cdefine16;
+    }
+
+    public String getCvouchid() {
+        return cvouchid;
+    }
+
+    public void setCvouchid(String cvouchid) {
+        this.cvouchid = cvouchid;
+    }
+
+    public String getDvouchdate() {
+        return dvouchdate;
+    }
+
+    public void setDvouchdate(String dvouchdate) {
+        this.dvouchdate = dvouchdate;
+    }
+
+    public String getCdwcode() {
+        return cdwcode;
+    }
+
+    public void setCdwcode(String cdwcode) {
+        this.cdwcode = cdwcode;
+    }
+
+    public String getCvenabbname() {
+        return cvenabbname;
+    }
+
+    public void setCvenabbname(String cvenabbname) {
+        this.cvenabbname = cvenabbname;
+    }
+
+    public String getCvenname() {
+        return cvenname;
+    }
+
+    public void setCvenname(String cvenname) {
+        this.cvenname = cvenname;
+    }
+
+    public String getCdepcode() {
+        return cdepcode;
+    }
+
+    public void setCdepcode(String cdepcode) {
+        this.cdepcode = cdepcode;
+    }
+
+    public String getCdepname() {
+        return cdepname;
+    }
+
+    public void setCdepname(String cdepname) {
+        this.cdepname = cdepname;
+    }
+
+    public String getCperson() {
+        return cperson;
+    }
+
+    public void setCperson(String cperson) {
+        this.cperson = cperson;
+    }
+
+    public String getCpersonname() {
+        return cpersonname;
+    }
+
+    public void setCpersonname(String cpersonname) {
+        this.cpersonname = cpersonname;
+    }
+
+    public String getCsscode() {
+        return csscode;
+    }
+
+    public void setCsscode(String csscode) {
+        this.csscode = csscode;
+    }
+
+    public String getCssname() {
+        return cssname;
+    }
+
+    public void setCssname(String cssname) {
+        this.cssname = cssname;
+    }
+
+    public String getCcode() {
+        return ccode;
+    }
+
+    public void setCcode(String ccode) {
+        this.ccode = ccode;
+    }
+
+    public String getCitemcode() {
+        return citemcode;
+    }
+
+    public void setCitemcode(String citemcode) {
+        this.citemcode = citemcode;
+    }
+
+    public String getCitemname() {
+        return citemname;
+    }
+
+    public void setCitemname(String citemname) {
+        this.citemname = citemname;
+    }
+
+    public String getCitem_class() {
+        return citem_class;
+    }
+
+    public void setCitem_class(String citem_class) {
+        this.citem_class = citem_class;
+    }
+
+    public String getCitem_name() {
+        return citem_name;
+    }
+
+    public void setCitem_name(String citem_name) {
+        this.citem_name = citem_name;
+    }
+
+    public String getCdigest() {
+        return cdigest;
+    }
+
+    public void setCdigest(String cdigest) {
+        this.cdigest = cdigest;
+    }
+
+    public String getCexch_name() {
+        return cexch_name;
+    }
+
+    public void setCexch_name(String cexch_name) {
+        this.cexch_name = cexch_name;
+    }
+
+    public String getIexchrate() {
+        return iexchrate;
+    }
+
+    public void setIexchrate(String iexchrate) {
+        this.iexchrate = iexchrate;
+    }
+
+    public String getCflag() {
+        return cflag;
+    }
+
+    public void setCflag(String cflag) {
+        this.cflag = cflag;
+    }
+
+    public String getCcheckman() {
+        return ccheckman;
+    }
+
+    public void setCcheckman(String ccheckman) {
+        this.ccheckman = ccheckman;
+    }
+
+    public String getCoperator() {
+        return coperator;
+    }
+
+    public void setCoperator(String coperator) {
+        this.coperator = coperator;
+    }
+
+    public String getCbank() {
+        return cbank;
+    }
+
+    public void setCbank(String cbank) {
+        this.cbank = cbank;
+    }
+
+    public String getCbankaccount() {
+        return cbankaccount;
+    }
+
+    public void setCbankaccount(String cbankaccount) {
+        this.cbankaccount = cbankaccount;
+    }
+
+    public String getCnatbank() {
+        return cnatbank;
+    }
+
+    public void setCnatbank(String cnatbank) {
+        this.cnatbank = cnatbank;
+    }
+
+    public String getCnatbankaccount() {
+        return cnatbankaccount;
+    }
+
+    public void setCnatbankaccount(String cnatbankaccount) {
+        this.cnatbankaccount = cnatbankaccount;
+    }
+
+    public String getDverifydate() {
+        return dverifydate;
+    }
+
+    public void setDverifydate(String dverifydate) {
+        this.dverifydate = dverifydate;
+    }
+
+    public String getCcloser() {
+        return ccloser;
+    }
+
+    public void setCcloser(String ccloser) {
+        this.ccloser = ccloser;
+    }
+
+    public String getDclosedate() {
+        return dclosedate;
+    }
+
+    public void setDclosedate(String dclosedate) {
+        this.dclosedate = dclosedate;
+    }
+
+    public String getCgatheringplan() {
+        return cgatheringplan;
+    }
+
+    public void setCgatheringplan(String cgatheringplan) {
+        this.cgatheringplan = cgatheringplan;
+    }
+
+    public String getCgatheringplanname() {
+        return cgatheringplanname;
+    }
+
+    public void setCgatheringplanname(String cgatheringplanname) {
+        this.cgatheringplanname = cgatheringplanname;
+    }
+
+    public String getDgatheringdate() {
+        return dgatheringdate;
+    }
+
+    public void setDgatheringdate(String dgatheringdate) {
+        this.dgatheringdate = dgatheringdate;
+    }
+
+    public String getCsysbarcode() {
+        return csysbarcode;
+    }
+
+    public void setCsysbarcode(String csysbarcode) {
+        this.csysbarcode = csysbarcode;
+    }
+
+    public List<PayrequestMin> getEntry() {
+        return entry;
+    }
+
+    public void setEntry(List<PayrequestMin> entry) {
+        this.entry = entry;
+    }
+}

+ 373 - 0
src/main/java/net/chenlin/dp/modules/api/vo/PayrequestMin.java

@@ -0,0 +1,373 @@
+package net.chenlin.dp.modules.api.vo;
+
+public class PayrequestMin {
+    private  String cdepcode;//部门编号
+    private  String cdepname;//部门名称
+    private  String cperson;//业务员
+    private  String cpersonname;//人员名称
+    private  String citemcode;//项目
+    private  String citemname;//项目名称
+    private  String citem_class;//项目大类
+    private  String citem_name;//项目名称
+    private  String clinecloser;//行关闭人
+    private  String dlineclosedate;//行关闭日期
+    private  String cinvcode;//存货编码
+    private  String cinvname;//存货名称
+    private  String cinvstd;//规格型号
+    private  String iapplyamt_f;//申请金额
+    private  String iapplyamt;//申请金额(本币)
+    private  String iapplyamt_s;//数量
+    private  String csrcexchname;//源单币种
+    private  String isrcapplyamt_f;//源单申请金额
+    private  String isrcapplyamt;//源单申请金额(本币)
+    private  String cbsysbarcode;//单据表体条码
+    private  String isum;//源单本币金额
+    private  String iorisum;//源单金额
+    private  String ioritaxcost;//原币单价
+    private  String inattaxprice;//本币单价
+    private  String dprepaydate;
+    private  String cdefine22;
+    private  String cdefine23;
+    private  String cdefine24;
+    private  String cdefine25;
+    private  String cdefine26;
+    private  String cdefine27;
+    private  String cdefine28;
+    private  String cdefine29;
+    private  String cdefine30;
+    private  String cdefine31;
+    private  String cdefine32;
+    private  String cdefine33;
+    private  String cdefine34;
+    private  String cdefine35;
+    private  String cdefine36;
+    private  String cdefine37;
+
+    public String getCdefine22() {
+        return cdefine22;
+    }
+
+    public void setCdefine22(String cdefine22) {
+        this.cdefine22 = cdefine22;
+    }
+
+    public String getCdefine23() {
+        return cdefine23;
+    }
+
+    public void setCdefine23(String cdefine23) {
+        this.cdefine23 = cdefine23;
+    }
+
+    public String getCdefine24() {
+        return cdefine24;
+    }
+
+    public void setCdefine24(String cdefine24) {
+        this.cdefine24 = cdefine24;
+    }
+
+    public String getCdefine25() {
+        return cdefine25;
+    }
+
+    public void setCdefine25(String cdefine25) {
+        this.cdefine25 = cdefine25;
+    }
+
+    public String getCdefine26() {
+        return cdefine26;
+    }
+
+    public void setCdefine26(String cdefine26) {
+        this.cdefine26 = cdefine26;
+    }
+
+    public String getCdefine27() {
+        return cdefine27;
+    }
+
+    public void setCdefine27(String cdefine27) {
+        this.cdefine27 = cdefine27;
+    }
+
+    public String getCdefine28() {
+        return cdefine28;
+    }
+
+    public void setCdefine28(String cdefine28) {
+        this.cdefine28 = cdefine28;
+    }
+
+    public String getCdefine29() {
+        return cdefine29;
+    }
+
+    public void setCdefine29(String cdefine29) {
+        this.cdefine29 = cdefine29;
+    }
+
+    public String getCdefine30() {
+        return cdefine30;
+    }
+
+    public void setCdefine30(String cdefine30) {
+        this.cdefine30 = cdefine30;
+    }
+
+    public String getCdefine31() {
+        return cdefine31;
+    }
+
+    public void setCdefine31(String cdefine31) {
+        this.cdefine31 = cdefine31;
+    }
+
+    public String getCdefine32() {
+        return cdefine32;
+    }
+
+    public void setCdefine32(String cdefine32) {
+        this.cdefine32 = cdefine32;
+    }
+
+    public String getCdefine33() {
+        return cdefine33;
+    }
+
+    public void setCdefine33(String cdefine33) {
+        this.cdefine33 = cdefine33;
+    }
+
+    public String getCdefine34() {
+        return cdefine34;
+    }
+
+    public void setCdefine34(String cdefine34) {
+        this.cdefine34 = cdefine34;
+    }
+
+    public String getCdefine35() {
+        return cdefine35;
+    }
+
+    public void setCdefine35(String cdefine35) {
+        this.cdefine35 = cdefine35;
+    }
+
+    public String getCdefine36() {
+        return cdefine36;
+    }
+
+    public void setCdefine36(String cdefine36) {
+        this.cdefine36 = cdefine36;
+    }
+
+    public String getCdefine37() {
+        return cdefine37;
+    }
+
+    public void setCdefine37(String cdefine37) {
+        this.cdefine37 = cdefine37;
+    }
+
+    public String getDprepaydate() {
+        return dprepaydate;
+    }
+
+    public void setDprepaydate(String dprepaydate) {
+        this.dprepaydate = dprepaydate;
+    }
+
+    public String getCdepcode() {
+        return cdepcode;
+    }
+
+    public void setCdepcode(String cdepcode) {
+        this.cdepcode = cdepcode;
+    }
+
+    public String getCdepname() {
+        return cdepname;
+    }
+
+    public void setCdepname(String cdepname) {
+        this.cdepname = cdepname;
+    }
+
+    public String getCperson() {
+        return cperson;
+    }
+
+    public void setCperson(String cperson) {
+        this.cperson = cperson;
+    }
+
+    public String getCpersonname() {
+        return cpersonname;
+    }
+
+    public void setCpersonname(String cpersonname) {
+        this.cpersonname = cpersonname;
+    }
+
+    public String getCitemcode() {
+        return citemcode;
+    }
+
+    public void setCitemcode(String citemcode) {
+        this.citemcode = citemcode;
+    }
+
+    public String getCitemname() {
+        return citemname;
+    }
+
+    public void setCitemname(String citemname) {
+        this.citemname = citemname;
+    }
+
+    public String getCitem_class() {
+        return citem_class;
+    }
+
+    public void setCitem_class(String citem_class) {
+        this.citem_class = citem_class;
+    }
+
+    public String getCitem_name() {
+        return citem_name;
+    }
+
+    public void setCitem_name(String citem_name) {
+        this.citem_name = citem_name;
+    }
+
+    public String getClinecloser() {
+        return clinecloser;
+    }
+
+    public void setClinecloser(String clinecloser) {
+        this.clinecloser = clinecloser;
+    }
+
+    public String getDlineclosedate() {
+        return dlineclosedate;
+    }
+
+    public void setDlineclosedate(String dlineclosedate) {
+        this.dlineclosedate = dlineclosedate;
+    }
+
+    public String getCinvcode() {
+        return cinvcode;
+    }
+
+    public void setCinvcode(String cinvcode) {
+        this.cinvcode = cinvcode;
+    }
+
+    public String getCinvname() {
+        return cinvname;
+    }
+
+    public void setCinvname(String cinvname) {
+        this.cinvname = cinvname;
+    }
+
+    public String getCinvstd() {
+        return cinvstd;
+    }
+
+    public void setCinvstd(String cinvstd) {
+        this.cinvstd = cinvstd;
+    }
+
+    public String getIapplyamt_f() {
+        return iapplyamt_f;
+    }
+
+    public void setIapplyamt_f(String iapplyamt_f) {
+        this.iapplyamt_f = iapplyamt_f;
+    }
+
+    public String getIapplyamt() {
+        return iapplyamt;
+    }
+
+    public void setIapplyamt(String iapplyamt) {
+        this.iapplyamt = iapplyamt;
+    }
+
+    public String getIapplyamt_s() {
+        return iapplyamt_s;
+    }
+
+    public void setIapplyamt_s(String iapplyamt_s) {
+        this.iapplyamt_s = iapplyamt_s;
+    }
+
+    public String getCsrcexchname() {
+        return csrcexchname;
+    }
+
+    public void setCsrcexchname(String csrcexchname) {
+        this.csrcexchname = csrcexchname;
+    }
+
+    public String getIsrcapplyamt_f() {
+        return isrcapplyamt_f;
+    }
+
+    public void setIsrcapplyamt_f(String isrcapplyamt_f) {
+        this.isrcapplyamt_f = isrcapplyamt_f;
+    }
+
+    public String getIsrcapplyamt() {
+        return isrcapplyamt;
+    }
+
+    public void setIsrcapplyamt(String isrcapplyamt) {
+        this.isrcapplyamt = isrcapplyamt;
+    }
+
+    public String getCbsysbarcode() {
+        return cbsysbarcode;
+    }
+
+    public void setCbsysbarcode(String cbsysbarcode) {
+        this.cbsysbarcode = cbsysbarcode;
+    }
+
+    public String getIsum() {
+        return isum;
+    }
+
+    public void setIsum(String isum) {
+        this.isum = isum;
+    }
+
+    public String getIorisum() {
+        return iorisum;
+    }
+
+    public void setIorisum(String iorisum) {
+        this.iorisum = iorisum;
+    }
+
+    public String getIoritaxcost() {
+        return ioritaxcost;
+    }
+
+    public void setIoritaxcost(String ioritaxcost) {
+        this.ioritaxcost = ioritaxcost;
+    }
+
+    public String getInattaxprice() {
+        return inattaxprice;
+    }
+
+    public void setInattaxprice(String inattaxprice) {
+        this.inattaxprice = inattaxprice;
+    }
+}

+ 49 - 0
src/main/java/net/chenlin/dp/modules/api/vo/SaleOrderRest.java

@@ -0,0 +1,49 @@
+package net.chenlin.dp.modules.api.vo;
+
+public class SaleOrderRest {
+    private  String voucher_code;//单据编号
+    private  String person_code;//审批人(人员编码)
+    private  String user_id;
+    private  String opinion;//审批意见
+    private  String agree;//是否同意(1=同意;0=不同意)
+
+    public String getUser_id() {
+        return user_id;
+    }
+
+    public void setUser_id(String user_id) {
+        this.user_id = user_id;
+    }
+
+    public String getVoucher_code() {
+        return voucher_code;
+    }
+
+    public void setVoucher_code(String voucher_code) {
+        this.voucher_code = voucher_code;
+    }
+
+    public String getPerson_code() {
+        return person_code;
+    }
+
+    public void setPerson_code(String person_code) {
+        this.person_code = person_code;
+    }
+
+    public String getOpinion() {
+        return opinion;
+    }
+
+    public void setOpinion(String opinion) {
+        this.opinion = opinion;
+    }
+
+    public String getAgree() {
+        return agree;
+    }
+
+    public void setAgree(String agree) {
+        this.agree = agree;
+    }
+}

+ 481 - 0
src/main/java/net/chenlin/dp/modules/api/vo/YonyouMaterial.java

@@ -0,0 +1,481 @@
+package net.chenlin.dp.modules.api.vo;
+
+public class YonyouMaterial {
+    private  String inventorycode; //存货编码 true
+    private  String inventoryname;  //存货
+    private  String invstd;//规格型号
+    private  String unitcode;//销售单位编码
+    private  String unitname;//销售单位
+    private  String unitrate;//换算率
+    private  String quantity;//数量 true
+    private  String num;//件数
+    private  String unitprice;//单价
+    private  String quotedprice;//报价
+    private  String taxunitprice;//含税单价
+    private  String money;//无税金额
+    private  String taxrate;//税率
+    private  String sum;//价税合计
+    private  String discount;//	折扣额
+    private  String natdiscount;//本币折扣额
+    private  String discountrate;//扣率
+    private  String discountrate2;//扣率2
+    private  String natmoney;//本币金额
+    private  String natunitprice;//本币单价
+    private  String tax;//税额
+    private  String nattax;//本币税额
+    private  String natsum;//本币价税合计
+    private  String bgift;//是否赠品(0=非赠品;1=赠品) true
+    private  String rowno;//行号 true
+    private  String kl;
+    private  String kl2;
+    private  String free1;
+    private  String free2;
+    private  String free3;
+    private  String free4;
+    private  String free5;
+    private  String free6;
+    private  String free7;
+    private  String free8;
+    private  String free9;
+    private  String free10;
+    private  String define22;
+    private  String define23;
+    private  String define24;
+    private  String define25;
+    private  String define26;
+    private  String define27;
+    private  String define28;
+    private  String define29;
+    private  String define30;
+    private  String define31;
+    private  String define32;
+    private  String define33;
+    private  String define34;
+    private  String define35;
+    private  String define36;
+    private  String define37;
+
+    public String getFree1() {
+        return free1;
+    }
+
+    public void setFree1(String free1) {
+        this.free1 = free1;
+    }
+
+    public String getFree2() {
+        return free2;
+    }
+
+    public void setFree2(String free2) {
+        this.free2 = free2;
+    }
+
+    public String getFree3() {
+        return free3;
+    }
+
+    public void setFree3(String free3) {
+        this.free3 = free3;
+    }
+
+    public String getFree4() {
+        return free4;
+    }
+
+    public void setFree4(String free4) {
+        this.free4 = free4;
+    }
+
+    public String getFree5() {
+        return free5;
+    }
+
+    public void setFree5(String free5) {
+        this.free5 = free5;
+    }
+
+    public String getFree6() {
+        return free6;
+    }
+
+    public void setFree6(String free6) {
+        this.free6 = free6;
+    }
+
+    public String getFree7() {
+        return free7;
+    }
+
+    public void setFree7(String free7) {
+        this.free7 = free7;
+    }
+
+    public String getFree8() {
+        return free8;
+    }
+
+    public void setFree8(String free8) {
+        this.free8 = free8;
+    }
+
+    public String getFree9() {
+        return free9;
+    }
+
+    public void setFree9(String free9) {
+        this.free9 = free9;
+    }
+
+    public String getFree10() {
+        return free10;
+    }
+
+    public void setFree10(String free10) {
+        this.free10 = free10;
+    }
+
+    public String getDefine22() {
+        return define22;
+    }
+
+    public void setDefine22(String define22) {
+        this.define22 = define22;
+    }
+
+    public String getDefine23() {
+        return define23;
+    }
+
+    public void setDefine23(String define23) {
+        this.define23 = define23;
+    }
+
+    public String getDefine24() {
+        return define24;
+    }
+
+    public void setDefine24(String define24) {
+        this.define24 = define24;
+    }
+
+    public String getDefine25() {
+        return define25;
+    }
+
+    public void setDefine25(String define25) {
+        this.define25 = define25;
+    }
+
+    public String getDefine26() {
+        return define26;
+    }
+
+    public void setDefine26(String define26) {
+        this.define26 = define26;
+    }
+
+    public String getDefine27() {
+        return define27;
+    }
+
+    public void setDefine27(String define27) {
+        this.define27 = define27;
+    }
+
+    public String getDefine28() {
+        return define28;
+    }
+
+    public void setDefine28(String define28) {
+        this.define28 = define28;
+    }
+
+    public String getDefine29() {
+        return define29;
+    }
+
+    public void setDefine29(String define29) {
+        this.define29 = define29;
+    }
+
+    public String getDefine30() {
+        return define30;
+    }
+
+    public void setDefine30(String define30) {
+        this.define30 = define30;
+    }
+
+    public String getDefine31() {
+        return define31;
+    }
+
+    public void setDefine31(String define31) {
+        this.define31 = define31;
+    }
+
+    public String getDefine32() {
+        return define32;
+    }
+
+    public void setDefine32(String define32) {
+        this.define32 = define32;
+    }
+
+    public String getDefine33() {
+        return define33;
+    }
+
+    public void setDefine33(String define33) {
+        this.define33 = define33;
+    }
+
+    public String getDefine34() {
+        return define34;
+    }
+
+    public void setDefine34(String define34) {
+        this.define34 = define34;
+    }
+
+    public String getDefine35() {
+        return define35;
+    }
+
+    public void setDefine35(String define35) {
+        this.define35 = define35;
+    }
+
+    public String getDefine36() {
+        return define36;
+    }
+
+    public void setDefine36(String define36) {
+        this.define36 = define36;
+    }
+
+    public String getDefine37() {
+        return define37;
+    }
+
+    public void setDefine37(String define37) {
+        this.define37 = define37;
+    }
+
+    public String getKl2() {
+        return kl2;
+    }
+
+    public void setKl2(String kl2) {
+        this.kl2 = kl2;
+    }
+
+    public String getKl() {
+        return kl;
+    }
+
+    public void setKl(String kl) {
+        this.kl = kl;
+    }
+
+    public String getInventorycode() {
+        return inventorycode;
+    }
+
+    public void setInventorycode(String inventorycode) {
+        this.inventorycode = inventorycode;
+    }
+
+    public String getInventoryname() {
+        return inventoryname;
+    }
+
+    public void setInventoryname(String inventoryname) {
+        this.inventoryname = inventoryname;
+    }
+
+    public String getInvstd() {
+        return invstd;
+    }
+
+    public void setInvstd(String invstd) {
+        this.invstd = invstd;
+    }
+
+    public String getUnitcode() {
+        return unitcode;
+    }
+
+    public void setUnitcode(String unitcode) {
+        this.unitcode = unitcode;
+    }
+
+    public String getUnitname() {
+        return unitname;
+    }
+
+    public void setUnitname(String unitname) {
+        this.unitname = unitname;
+    }
+
+    public String getUnitrate() {
+        return unitrate;
+    }
+
+    public void setUnitrate(String unitrate) {
+        this.unitrate = unitrate;
+    }
+
+    public String getQuantity() {
+        return quantity;
+    }
+
+    public void setQuantity(String quantity) {
+        this.quantity = quantity;
+    }
+
+    public String getNum() {
+        return num;
+    }
+
+    public void setNum(String num) {
+        this.num = num;
+    }
+
+    public String getUnitprice() {
+        return unitprice;
+    }
+
+    public void setUnitprice(String unitprice) {
+        this.unitprice = unitprice;
+    }
+
+    public String getQuotedprice() {
+        return quotedprice;
+    }
+
+    public void setQuotedprice(String quotedprice) {
+        this.quotedprice = quotedprice;
+    }
+
+    public String getTaxunitprice() {
+        return taxunitprice;
+    }
+
+    public void setTaxunitprice(String taxunitprice) {
+        this.taxunitprice = taxunitprice;
+    }
+
+    public String getMoney() {
+        return money;
+    }
+
+    public void setMoney(String money) {
+        this.money = money;
+    }
+
+    public String getTaxrate() {
+        return taxrate;
+    }
+
+    public void setTaxrate(String taxrate) {
+        this.taxrate = taxrate;
+    }
+
+    public String getSum() {
+        return sum;
+    }
+
+    public void setSum(String sum) {
+        this.sum = sum;
+    }
+
+    public String getDiscount() {
+        return discount;
+    }
+
+    public void setDiscount(String discount) {
+        this.discount = discount;
+    }
+
+    public String getNatdiscount() {
+        return natdiscount;
+    }
+
+    public void setNatdiscount(String natdiscount) {
+        this.natdiscount = natdiscount;
+    }
+
+    public String getDiscountrate() {
+        return discountrate;
+    }
+
+    public void setDiscountrate(String discountrate) {
+        this.discountrate = discountrate;
+    }
+
+    public String getDiscountrate2() {
+        return discountrate2;
+    }
+
+    public void setDiscountrate2(String discountrate2) {
+        this.discountrate2 = discountrate2;
+    }
+
+    public String getNatmoney() {
+        return natmoney;
+    }
+
+    public void setNatmoney(String natmoney) {
+        this.natmoney = natmoney;
+    }
+
+    public String getNatunitprice() {
+        return natunitprice;
+    }
+
+    public void setNatunitprice(String natunitprice) {
+        this.natunitprice = natunitprice;
+    }
+
+    public String getTax() {
+        return tax;
+    }
+
+    public void setTax(String tax) {
+        this.tax = tax;
+    }
+
+    public String getNattax() {
+        return nattax;
+    }
+
+    public void setNattax(String nattax) {
+        this.nattax = nattax;
+    }
+
+    public String getNatsum() {
+        return natsum;
+    }
+
+    public void setNatsum(String natsum) {
+        this.natsum = natsum;
+    }
+
+    public String getBgift() {
+        return bgift;
+    }
+
+    public void setBgift(String bgift) {
+        this.bgift = bgift;
+    }
+
+    public String getRowno() {
+        return rowno;
+    }
+
+    public void setRowno(String rowno) {
+        this.rowno = rowno;
+    }
+}

+ 436 - 0
src/main/java/net/chenlin/dp/modules/api/vo/YonyouPurchaseMaterial.java

@@ -0,0 +1,436 @@
+package net.chenlin.dp.modules.api.vo;
+
+public class YonyouPurchaseMaterial {
+    private  String inventorycode;//存货编码 true
+    private  String inventoryname;//存货名称
+    private  String inventorystd;//规格型号
+    private  String unitcode;//采购单位编码
+    private  String unitname;//采购单位
+    private  String quantity;//数量 true
+    private  String arrivedate;//计划到货日期
+    private  String price;//原币单价
+    private  String quotedprice;//报价
+    private  String taxprice;//含税单价
+    private  String money;//原币金额
+    private  String tax;//原币税额
+    private  String sum	;//原币价税合计
+    private  String discount;//折扣额
+    private  String natprice;//本币单价
+    private  String natmoney;//本币金额
+    private  String assistantunit;//辅计量单位编码
+    private  String nattax;//本币税额
+    private  String natsum;//本币价税合计
+    private  String natdiscount;//本币折扣额
+    private  String taxrate;//税率
+    private  String rowno;//行号 true
+    private  String free1;
+    private  String free2;
+    private  String free3;
+    private  String free4;
+    private  String free5;
+    private  String free6;
+    private  String free7;
+    private  String free8;
+    private  String free9;
+    private  String free10;
+    private  String define22;
+    private  String define23;
+    private  String define24;
+    private  String define25;
+    private  String define26;
+    private  String define27;
+    private  String define28;
+    private  String define29;
+    private  String define30;
+    private  String define31;
+    private  String define32;
+    private  String define33;
+    private  String define34;
+    private  String define35;
+    private  String define36;
+    private  String define37;
+
+    public String getFree1() {
+        return free1;
+    }
+
+    public void setFree1(String free1) {
+        this.free1 = free1;
+    }
+
+    public String getFree2() {
+        return free2;
+    }
+
+    public void setFree2(String free2) {
+        this.free2 = free2;
+    }
+
+    public String getFree3() {
+        return free3;
+    }
+
+    public void setFree3(String free3) {
+        this.free3 = free3;
+    }
+
+    public String getFree4() {
+        return free4;
+    }
+
+    public void setFree4(String free4) {
+        this.free4 = free4;
+    }
+
+    public String getFree5() {
+        return free5;
+    }
+
+    public void setFree5(String free5) {
+        this.free5 = free5;
+    }
+
+    public String getFree6() {
+        return free6;
+    }
+
+    public void setFree6(String free6) {
+        this.free6 = free6;
+    }
+
+    public String getFree7() {
+        return free7;
+    }
+
+    public void setFree7(String free7) {
+        this.free7 = free7;
+    }
+
+    public String getFree8() {
+        return free8;
+    }
+
+    public void setFree8(String free8) {
+        this.free8 = free8;
+    }
+
+    public String getFree9() {
+        return free9;
+    }
+
+    public void setFree9(String free9) {
+        this.free9 = free9;
+    }
+
+    public String getFree10() {
+        return free10;
+    }
+
+    public void setFree10(String free10) {
+        this.free10 = free10;
+    }
+
+    public String getDefine23() {
+        return define23;
+    }
+
+    public void setDefine23(String define23) {
+        this.define23 = define23;
+    }
+
+    public String getDefine24() {
+        return define24;
+    }
+
+    public void setDefine24(String define24) {
+        this.define24 = define24;
+    }
+
+    public String getDefine25() {
+        return define25;
+    }
+
+    public void setDefine25(String define25) {
+        this.define25 = define25;
+    }
+
+    public String getDefine27() {
+        return define27;
+    }
+
+    public void setDefine27(String define27) {
+        this.define27 = define27;
+    }
+
+    public String getDefine28() {
+        return define28;
+    }
+
+    public void setDefine28(String define28) {
+        this.define28 = define28;
+    }
+
+    public String getDefine29() {
+        return define29;
+    }
+
+    public void setDefine29(String define29) {
+        this.define29 = define29;
+    }
+
+    public String getDefine30() {
+        return define30;
+    }
+
+    public void setDefine30(String define30) {
+        this.define30 = define30;
+    }
+
+    public String getDefine31() {
+        return define31;
+    }
+
+    public void setDefine31(String define31) {
+        this.define31 = define31;
+    }
+
+    public String getDefine32() {
+        return define32;
+    }
+
+    public void setDefine32(String define32) {
+        this.define32 = define32;
+    }
+
+    public String getDefine33() {
+        return define33;
+    }
+
+    public void setDefine33(String define33) {
+        this.define33 = define33;
+    }
+
+    public String getDefine34() {
+        return define34;
+    }
+
+    public void setDefine34(String define34) {
+        this.define34 = define34;
+    }
+
+    public String getDefine35() {
+        return define35;
+    }
+
+    public void setDefine35(String define35) {
+        this.define35 = define35;
+    }
+
+    public String getDefine36() {
+        return define36;
+    }
+
+    public void setDefine36(String define36) {
+        this.define36 = define36;
+    }
+
+    public String getDefine37() {
+        return define37;
+    }
+
+    public void setDefine37(String define37) {
+        this.define37 = define37;
+    }
+
+    public String getDefine26() {
+        return define26;
+    }
+
+    public void setDefine26(String define26) {
+        this.define26 = define26;
+    }
+
+    public String getDefine22() {
+        return define22;
+    }
+
+    public void setDefine22(String define22) {
+        this.define22 = define22;
+    }
+
+    public String getRowno() {
+        return rowno;
+    }
+
+    public void setRowno(String rowno) {
+        this.rowno = rowno;
+    }
+
+    public String getInventorycode() {
+        return inventorycode;
+    }
+
+    public void setInventorycode(String inventorycode) {
+        this.inventorycode = inventorycode;
+    }
+
+    public String getInventoryname() {
+        return inventoryname;
+    }
+
+    public void setInventoryname(String inventoryname) {
+        this.inventoryname = inventoryname;
+    }
+
+    public String getInventorystd() {
+        return inventorystd;
+    }
+
+    public void setInventorystd(String inventorystd) {
+        this.inventorystd = inventorystd;
+    }
+
+    public String getUnitcode() {
+        return unitcode;
+    }
+
+    public void setUnitcode(String unitcode) {
+        this.unitcode = unitcode;
+    }
+
+    public String getUnitname() {
+        return unitname;
+    }
+
+    public void setUnitname(String unitname) {
+        this.unitname = unitname;
+    }
+
+    public String getQuantity() {
+        return quantity;
+    }
+
+    public void setQuantity(String quantity) {
+        this.quantity = quantity;
+    }
+
+    public String getArrivedate() {
+        return arrivedate;
+    }
+
+    public void setArrivedate(String arrivedate) {
+        this.arrivedate = arrivedate;
+    }
+
+    public String getPrice() {
+        return price;
+    }
+
+    public void setPrice(String price) {
+        this.price = price;
+    }
+
+    public String getQuotedprice() {
+        return quotedprice;
+    }
+
+    public void setQuotedprice(String quotedprice) {
+        this.quotedprice = quotedprice;
+    }
+
+    public String getTaxprice() {
+        return taxprice;
+    }
+
+    public void setTaxprice(String taxprice) {
+        this.taxprice = taxprice;
+    }
+
+    public String getMoney() {
+        return money;
+    }
+
+    public void setMoney(String money) {
+        this.money = money;
+    }
+
+    public String getTax() {
+        return tax;
+    }
+
+    public void setTax(String tax) {
+        this.tax = tax;
+    }
+
+    public String getSum() {
+        return sum;
+    }
+
+    public void setSum(String sum) {
+        this.sum = sum;
+    }
+
+    public String getDiscount() {
+        return discount;
+    }
+
+    public void setDiscount(String discount) {
+        this.discount = discount;
+    }
+
+    public String getNatprice() {
+        return natprice;
+    }
+
+    public void setNatprice(String natprice) {
+        this.natprice = natprice;
+    }
+
+    public String getNatmoney() {
+        return natmoney;
+    }
+
+    public void setNatmoney(String natmoney) {
+        this.natmoney = natmoney;
+    }
+
+    public String getAssistantunit() {
+        return assistantunit;
+    }
+
+    public void setAssistantunit(String assistantunit) {
+        this.assistantunit = assistantunit;
+    }
+
+    public String getNattax() {
+        return nattax;
+    }
+
+    public void setNattax(String nattax) {
+        this.nattax = nattax;
+    }
+
+    public String getNatsum() {
+        return natsum;
+    }
+
+    public void setNatsum(String natsum) {
+        this.natsum = natsum;
+    }
+
+    public String getNatdiscount() {
+        return natdiscount;
+    }
+
+    public void setNatdiscount(String natdiscount) {
+        this.natdiscount = natdiscount;
+    }
+
+    public String getTaxrate() {
+        return taxrate;
+    }
+
+    public void setTaxrate(String taxrate) {
+        this.taxrate = taxrate;
+    }
+}

+ 331 - 0
src/main/java/net/chenlin/dp/modules/api/vo/YonyouPurchaseOrder.java

@@ -0,0 +1,331 @@
+package net.chenlin.dp.modules.api.vo;
+
+import java.util.ArrayList;
+import java.util.List;
+
+public class YonyouPurchaseOrder {
+    private  String code;//订单编号
+    private  String date;//订单日期,默认取系统日期
+    private  String operation_type_code;//采购业务类型,默认普通采购 true
+    private  String state;//订单状态
+    private  String purchase_type_code	;//采购类型编码
+    private  String purchase_type_name;//采购类型
+    private  String vendorcode;//供应商编码 true
+    private  String vendorname;//供应商名称
+    private  String vendorabbname;//供应商简称
+    private  String deptcode;//部门编码
+    private  String deptname;//部门名称
+    private  String personcode;//业务员编码
+    private  String personname;//业务员
+    private  String maker;//制单人
+    private  String verifier;//审核人
+    private  String closer;//关闭人
+    private  String currency_name;//外币名称
+    private  String currency_rate;//汇率
+    private  String remark;//备注
+    private  String define1;
+    private  String define8;
+    private String define9;
+    private  String define13;
+    private  String define14;
+    private  String define11;
+    private List<YonyouPurchaseMaterial>entry=new ArrayList<>();
+    private  String define2;
+    private  String define3;
+    private  String define4;
+    private  String define5;
+    private  String define6;
+    private  String define7;
+    private  String define10;
+    private  String define12;
+    private  String define15;
+    private  String define16;
+
+    public String getDefine2() {
+        return define2;
+    }
+
+    public void setDefine2(String define2) {
+        this.define2 = define2;
+    }
+
+    public String getDefine3() {
+        return define3;
+    }
+
+    public void setDefine3(String define3) {
+        this.define3 = define3;
+    }
+
+    public String getDefine4() {
+        return define4;
+    }
+
+    public void setDefine4(String define4) {
+        this.define4 = define4;
+    }
+
+    public String getDefine5() {
+        return define5;
+    }
+
+    public void setDefine5(String define5) {
+        this.define5 = define5;
+    }
+
+    public String getDefine6() {
+        return define6;
+    }
+
+    public void setDefine6(String define6) {
+        this.define6 = define6;
+    }
+
+    public String getDefine7() {
+        return define7;
+    }
+
+    public void setDefine7(String define7) {
+        this.define7 = define7;
+    }
+
+    public String getDefine10() {
+        return define10;
+    }
+
+    public void setDefine10(String define10) {
+        this.define10 = define10;
+    }
+
+    public String getDefine12() {
+        return define12;
+    }
+
+    public void setDefine12(String define12) {
+        this.define12 = define12;
+    }
+
+    public String getDefine15() {
+        return define15;
+    }
+
+    public void setDefine15(String define15) {
+        this.define15 = define15;
+    }
+
+    public String getDefine16() {
+        return define16;
+    }
+
+    public void setDefine16(String define16) {
+        this.define16 = define16;
+    }
+
+    public String getDefine1() {
+        return define1;
+    }
+
+    public void setDefine1(String define1) {
+        this.define1 = define1;
+    }
+
+    public String getDefine8() {
+        return define8;
+    }
+
+    public void setDefine8(String define8) {
+        this.define8 = define8;
+    }
+
+    public String getDefine9() {
+        return define9;
+    }
+
+    public void setDefine9(String define9) {
+        this.define9 = define9;
+    }
+
+    public String getDefine13() {
+        return define13;
+    }
+
+    public void setDefine13(String define13) {
+        this.define13 = define13;
+    }
+
+    public String getDefine14() {
+        return define14;
+    }
+
+    public void setDefine14(String define14) {
+        this.define14 = define14;
+    }
+
+    public String getDefine11() {
+        return define11;
+    }
+
+    public void setDefine11(String define11) {
+        this.define11 = define11;
+    }
+
+    public String getCode() {
+        return code;
+    }
+
+    public void setCode(String code) {
+        this.code = code;
+    }
+
+    public String getDate() {
+        return date;
+    }
+
+    public void setDate(String date) {
+        this.date = date;
+    }
+
+    public String getOperation_type_code() {
+        return operation_type_code;
+    }
+
+    public void setOperation_type_code(String operation_type_code) {
+        this.operation_type_code = operation_type_code;
+    }
+
+    public String getState() {
+        return state;
+    }
+
+    public void setState(String state) {
+        this.state = state;
+    }
+
+    public String getPurchase_type_code() {
+        return purchase_type_code;
+    }
+
+    public void setPurchase_type_code(String purchase_type_code) {
+        this.purchase_type_code = purchase_type_code;
+    }
+
+    public String getPurchase_type_name() {
+        return purchase_type_name;
+    }
+
+    public void setPurchase_type_name(String purchase_type_name) {
+        this.purchase_type_name = purchase_type_name;
+    }
+
+    public String getVendorcode() {
+        return vendorcode;
+    }
+
+    public void setVendorcode(String vendorcode) {
+        this.vendorcode = vendorcode;
+    }
+
+    public String getVendorname() {
+        return vendorname;
+    }
+
+    public void setVendorname(String vendorname) {
+        this.vendorname = vendorname;
+    }
+
+    public String getVendorabbname() {
+        return vendorabbname;
+    }
+
+    public void setVendorabbname(String vendorabbname) {
+        this.vendorabbname = vendorabbname;
+    }
+
+    public String getDeptcode() {
+        return deptcode;
+    }
+
+    public void setDeptcode(String deptcode) {
+        this.deptcode = deptcode;
+    }
+
+    public String getDeptname() {
+        return deptname;
+    }
+
+    public void setDeptname(String deptname) {
+        this.deptname = deptname;
+    }
+
+    public String getPersoncode() {
+        return personcode;
+    }
+
+    public void setPersoncode(String personcode) {
+        this.personcode = personcode;
+    }
+
+    public String getPersonname() {
+        return personname;
+    }
+
+    public void setPersonname(String personname) {
+        this.personname = personname;
+    }
+
+    public String getMaker() {
+        return maker;
+    }
+
+    public void setMaker(String maker) {
+        this.maker = maker;
+    }
+
+    public String getVerifier() {
+        return verifier;
+    }
+
+    public void setVerifier(String verifier) {
+        this.verifier = verifier;
+    }
+
+    public String getCloser() {
+        return closer;
+    }
+
+    public void setCloser(String closer) {
+        this.closer = closer;
+    }
+
+    public String getCurrency_name() {
+        return currency_name;
+    }
+
+    public void setCurrency_name(String currency_name) {
+        this.currency_name = currency_name;
+    }
+
+    public String getCurrency_rate() {
+        return currency_rate;
+    }
+
+    public void setCurrency_rate(String currency_rate) {
+        this.currency_rate = currency_rate;
+    }
+
+    public String getRemark() {
+        return remark;
+    }
+
+    public void setRemark(String remark) {
+        this.remark = remark;
+    }
+
+    public List<YonyouPurchaseMaterial> getEntry() {
+        return entry;
+    }
+
+    public void setEntry(List<YonyouPurchaseMaterial> entry) {
+        this.entry = entry;
+    }
+}

+ 422 - 0
src/main/java/net/chenlin/dp/modules/api/vo/YonyouSaleOrder.java

@@ -0,0 +1,422 @@
+package net.chenlin.dp.modules.api.vo;
+
+import java.util.ArrayList;
+import java.util.List;
+
+public class YonyouSaleOrder {
+    private String code;//订单号
+    private  String date;//日期
+    private  String businesstype;//业务类型 true
+    private  String typecode;//销售类型编码 true
+    private  String typename;//销售类型
+    private  String state;//单据状态
+    private  String custcode;//客户编码 true
+    private  String cusname;//客户名称
+    private  String cusabbname;//客户简称
+    private  String  deptcode;//部门编码 true
+    private  String deptname;//部门名称
+    private  String personcode;//人员编码
+    private  String personname;//人员
+    private  String dpremodatebt;//预完工日期
+    private  String dpredatebt;//预发货日期
+    private  String sendaddress;//发货地址
+    private  String ccusperson;//联系人
+    private  String ccuspersoncode;//联系人编码
+    private  String caddcode;//收货地址编码
+    private  String taxrate;//税率
+    private  String memo;//备注
+    private  String maker;//制单人
+    private  String verifier;//审核人
+    private  String closer;//关闭人
+    private  String currencyrate;
+    private  String verifysystime;
+    private  String currency;//币种
+    private  String timestamp;
+    private  String createsystime;
+    private  String define1;
+    private  String define2;
+    private  String define3;
+    private  String define4;
+    private  String define5;
+    private  String define6;
+    private  String define7;
+    private  String define8;
+    private  String define9;
+    private  String define10;
+    private  String define11;
+    private  String define12;
+    private  String define13;
+    private  String define14;
+    private  String define15;
+    private  String define16;
+
+    public String getDefine1() {
+        return define1;
+    }
+
+    public void setDefine1(String define1) {
+        this.define1 = define1;
+    }
+
+    public String getDefine2() {
+        return define2;
+    }
+
+    public void setDefine2(String define2) {
+        this.define2 = define2;
+    }
+
+    public String getDefine3() {
+        return define3;
+    }
+
+    public void setDefine3(String define3) {
+        this.define3 = define3;
+    }
+
+    public String getDefine4() {
+        return define4;
+    }
+
+    public void setDefine4(String define4) {
+        this.define4 = define4;
+    }
+
+    public String getDefine5() {
+        return define5;
+    }
+
+    public void setDefine5(String define5) {
+        this.define5 = define5;
+    }
+
+    public String getDefine6() {
+        return define6;
+    }
+
+    public void setDefine6(String define6) {
+        this.define6 = define6;
+    }
+
+    public String getDefine8() {
+        return define8;
+    }
+
+    public void setDefine8(String define8) {
+        this.define8 = define8;
+    }
+
+    public String getDefine9() {
+        return define9;
+    }
+
+    public void setDefine9(String define9) {
+        this.define9 = define9;
+    }
+
+    public String getDefine10() {
+        return define10;
+    }
+
+    public void setDefine10(String define10) {
+        this.define10 = define10;
+    }
+
+    public String getDefine11() {
+        return define11;
+    }
+
+    public void setDefine11(String define11) {
+        this.define11 = define11;
+    }
+
+    public String getDefine12() {
+        return define12;
+    }
+
+    public void setDefine12(String define12) {
+        this.define12 = define12;
+    }
+
+    public String getDefine13() {
+        return define13;
+    }
+
+    public void setDefine13(String define13) {
+        this.define13 = define13;
+    }
+
+    public String getDefine14() {
+        return define14;
+    }
+
+    public void setDefine14(String define14) {
+        this.define14 = define14;
+    }
+
+    public String getDefine15() {
+        return define15;
+    }
+
+    public void setDefine15(String define15) {
+        this.define15 = define15;
+    }
+
+    public String getDefine16() {
+        return define16;
+    }
+
+    public void setDefine16(String define16) {
+        this.define16 = define16;
+    }
+
+    public String getDefine7() {
+        return define7;
+    }
+
+    public void setDefine7(String define7) {
+        this.define7 = define7;
+    }
+
+    public String getCreatesystime() {
+        return createsystime;
+    }
+
+    public void setCreatesystime(String createsystime) {
+        this.createsystime = createsystime;
+    }
+
+    public String getTimestamp() {
+        return timestamp;
+    }
+
+    public void setTimestamp(String timestamp) {
+        this.timestamp = timestamp;
+    }
+
+    public String getCurrency() {
+        return currency;
+    }
+
+    public void setCurrency(String currency) {
+        this.currency = currency;
+    }
+
+    public String getVerifysystime() {
+        return verifysystime;
+    }
+
+    public void setVerifysystime(String verifysystime) {
+        this.verifysystime = verifysystime;
+    }
+
+    public String getCurrencyrate() {
+        return currencyrate;
+    }
+
+    public void setCurrencyrate(String currencyrate) {
+        this.currencyrate = currencyrate;
+    }
+
+    private List<YonyouMaterial>entry=new ArrayList<>();//物料
+
+    public String getCode() {
+        return code;
+    }
+
+    public void setCode(String code) {
+        this.code = code;
+    }
+
+    public String getDate() {
+        return date;
+    }
+
+    public void setDate(String date) {
+        this.date = date;
+    }
+
+    public String getBusinesstype() {
+        return businesstype;
+    }
+
+    public void setBusinesstype(String businesstype) {
+        this.businesstype = businesstype;
+    }
+
+    public String getTypecode() {
+        return typecode;
+    }
+
+    public void setTypecode(String typecode) {
+        this.typecode = typecode;
+    }
+
+    public String getTypename() {
+        return typename;
+    }
+
+    public void setTypename(String typename) {
+        this.typename = typename;
+    }
+
+    public String getState() {
+        return state;
+    }
+
+    public void setState(String state) {
+        this.state = state;
+    }
+
+    public String getCustcode() {
+        return custcode;
+    }
+
+    public void setCustcode(String custcode) {
+        this.custcode = custcode;
+    }
+
+    public String getCusname() {
+        return cusname;
+    }
+
+    public void setCusname(String cusname) {
+        this.cusname = cusname;
+    }
+
+    public String getCusabbname() {
+        return cusabbname;
+    }
+
+    public void setCusabbname(String cusabbname) {
+        this.cusabbname = cusabbname;
+    }
+
+    public String getDeptcode() {
+        return deptcode;
+    }
+
+    public void setDeptcode(String deptcode) {
+        this.deptcode = deptcode;
+    }
+
+    public String getDeptname() {
+        return deptname;
+    }
+
+    public void setDeptname(String deptname) {
+        this.deptname = deptname;
+    }
+
+    public String getPersoncode() {
+        return personcode;
+    }
+
+    public void setPersoncode(String personcode) {
+        this.personcode = personcode;
+    }
+
+    public String getPersonname() {
+        return personname;
+    }
+
+    public void setPersonname(String personname) {
+        this.personname = personname;
+    }
+
+    public String getDpremodatebt() {
+        return dpremodatebt;
+    }
+
+    public void setDpremodatebt(String dpremodatebt) {
+        this.dpremodatebt = dpremodatebt;
+    }
+
+    public String getDpredatebt() {
+        return dpredatebt;
+    }
+
+    public void setDpredatebt(String dpredatebt) {
+        this.dpredatebt = dpredatebt;
+    }
+
+    public String getSendaddress() {
+        return sendaddress;
+    }
+
+    public void setSendaddress(String sendaddress) {
+        this.sendaddress = sendaddress;
+    }
+
+    public String getCcusperson() {
+        return ccusperson;
+    }
+
+    public void setCcusperson(String ccusperson) {
+        this.ccusperson = ccusperson;
+    }
+
+    public String getCcuspersoncode() {
+        return ccuspersoncode;
+    }
+
+    public void setCcuspersoncode(String ccuspersoncode) {
+        this.ccuspersoncode = ccuspersoncode;
+    }
+
+    public String getCaddcode() {
+        return caddcode;
+    }
+
+    public void setCaddcode(String caddcode) {
+        this.caddcode = caddcode;
+    }
+
+    public String getTaxrate() {
+        return taxrate;
+    }
+
+    public void setTaxrate(String taxrate) {
+        this.taxrate = taxrate;
+    }
+
+    public String getMemo() {
+        return memo;
+    }
+
+    public void setMemo(String memo) {
+        this.memo = memo;
+    }
+
+    public String getMaker() {
+        return maker;
+    }
+
+    public void setMaker(String maker) {
+        this.maker = maker;
+    }
+
+    public String getVerifier() {
+        return verifier;
+    }
+
+    public void setVerifier(String verifier) {
+        this.verifier = verifier;
+    }
+
+    public String getCloser() {
+        return closer;
+    }
+
+    public void setCloser(String closer) {
+        this.closer = closer;
+    }
+
+    public List<YonyouMaterial> getentry() {
+        return entry;
+    }
+
+    public void setentry(List<YonyouMaterial> entry) {
+        this.entry = entry;
+    }
+}