|
@@ -2,9 +2,13 @@ package com.dgtly.web.controller.common;
|
|
|
|
|
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
|
+
|
|
|
|
|
+import com.alibaba.fastjson.JSONObject;
|
|
|
|
|
+import com.dgtly.common.utils.http.HttpUtils;
|
|
|
import org.slf4j.Logger;
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
+import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.stereotype.Controller;
|
|
import org.springframework.stereotype.Controller;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
@@ -35,6 +39,9 @@ public class CommonController
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private ServerConfig serverConfig;
|
|
private ServerConfig serverConfig;
|
|
|
|
|
|
|
|
|
|
+ @Value(value = "${spring.web.sendCuibanInfoByManual}")
|
|
|
|
|
+ private String sendCuibanInfoByManualUrl;
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 通用下载请求
|
|
* 通用下载请求
|
|
|
*
|
|
*
|
|
@@ -136,4 +143,19 @@ public class CommonController
|
|
|
"attachment;fileName=" + FileUtils.setFileDownloadHeader(request, downloadName));
|
|
"attachment;fileName=" + FileUtils.setFileDownloadHeader(request, downloadName));
|
|
|
FileUtils.writeBytes(downloadPath, response.getOutputStream());
|
|
FileUtils.writeBytes(downloadPath, response.getOutputStream());
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 随身邦订单催办
|
|
|
|
|
+ */
|
|
|
|
|
+ @GetMapping("/common/sendCuibanInfoByManual")
|
|
|
|
|
+ @ResponseBody
|
|
|
|
|
+ public AjaxResult sendCuibanInfoByManual(String id, String reason)
|
|
|
|
|
+ {
|
|
|
|
|
+ String params = "openagent" + "&id=" + id + "&reason=" + reason;
|
|
|
|
|
+ String result = HttpUtils.sendGet(sendCuibanInfoByManualUrl,params);
|
|
|
|
|
+ JSONObject json = JSONObject.parseObject(result);
|
|
|
|
|
+ String msg = json.getString("msg");
|
|
|
|
|
+ return AjaxResult.success(msg);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|