|
@@ -2,19 +2,26 @@ package com.steerinfo.dil.service.impl;
|
|
|
|
|
|
import com.alibaba.druid.support.json.JSONUtils;
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
+import com.alibaba.fastjson.JSONObject;
|
|
|
+import com.steerinfo.dil.util.newFileTool;
|
|
|
import com.google.gson.JsonObject;
|
|
|
import com.steerinfo.dil.mapper.*;
|
|
|
import com.steerinfo.dil.model.*;
|
|
|
import com.steerinfo.dil.service.IAmsSaleOrderService;
|
|
|
import com.steerinfo.dil.util.DataChange;
|
|
|
import com.steerinfo.dil.util.MyException;
|
|
|
+import com.sun.org.apache.bcel.internal.generic.NEW;
|
|
|
import org.apache.ibatis.executor.loader.ResultLoader;
|
|
|
+import org.assertj.core.internal.bytebuddy.implementation.FieldAccessor;
|
|
|
+import org.slf4j.Logger;
|
|
|
+import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
import springfox.documentation.spring.web.json.Json;
|
|
|
|
|
|
import javax.xml.crypto.Data;
|
|
|
+import java.io.IOException;
|
|
|
import java.math.BigDecimal;
|
|
|
import java.text.ParseException;
|
|
|
import java.text.SimpleDateFormat;
|
|
@@ -60,6 +67,8 @@ public class AmsSaleOrderServiceImpl implements IAmsSaleOrderService {
|
|
|
@Autowired
|
|
|
OmstrainOrderMapper omstrainOrderMapper;
|
|
|
|
|
|
+ Logger logger = LoggerFactory.getLogger(getClass());
|
|
|
+
|
|
|
/**
|
|
|
* 查询销售订单
|
|
|
* @param saleOrderId
|
|
@@ -114,8 +123,14 @@ public class AmsSaleOrderServiceImpl implements IAmsSaleOrderService {
|
|
|
@Override
|
|
|
public int operationSaleOrder(Map<String, Object> mapVal) {
|
|
|
System.out.println("-----------------------------" + new Date() + "销售订单对接接口" + "-----------------------------");
|
|
|
- System.out.println(mapVal);
|
|
|
+ JSONObject jsonObject = new JSONObject(mapVal);
|
|
|
+ logger.info(jsonObject.toString());
|
|
|
System.out.println("-----------------------------" + new Date() + "销售订单对接接口" + "-----------------------------");
|
|
|
+ //try {
|
|
|
+ // newFileTool.newFile(jsonObject.toString(),"销售订单");
|
|
|
+ //} catch (IOException e) {
|
|
|
+ // e.printStackTrace();
|
|
|
+ //}
|
|
|
int result = 0;
|
|
|
// 审批状态
|
|
|
String orderStatus = (String) mapVal.get("orderStatus");
|