|
@@ -32,7 +32,7 @@ import javax.servlet.http.HttpServletRequest;
|
|
|
public class OrderSalesDetailController extends BaseController
|
|
public class OrderSalesDetailController extends BaseController
|
|
|
{
|
|
{
|
|
|
private String prefix = "order/orderSalesDetail";
|
|
private String prefix = "order/orderSalesDetail";
|
|
|
- final private static String queryUrl = "http://10.32.2.212:8010";
|
|
|
|
|
|
|
+ final private static String queryUrl = "http://192.168.0.41:8010";
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private RestTemplate restTemplate;
|
|
private RestTemplate restTemplate;
|
|
|
|
|
|
|
@@ -55,8 +55,8 @@ public class OrderSalesDetailController extends BaseController
|
|
|
{
|
|
{
|
|
|
//走网关
|
|
//走网关
|
|
|
String url = cloudPath+"order"+"/order/orderSalesDetail/list";
|
|
String url = cloudPath+"order"+"/order/orderSalesDetail/list";
|
|
|
- //不走网关
|
|
|
|
|
- //String url = queryUrl+request.getRequestURI();
|
|
|
|
|
|
|
+ //本地测试 不走网关
|
|
|
|
|
+ //String url = queryUrl + "/order/orderSalesDetail/list";
|
|
|
String str = "";
|
|
String str = "";
|
|
|
try {
|
|
try {
|
|
|
//设置为form方式
|
|
//设置为form方式
|
|
@@ -83,9 +83,9 @@ public class OrderSalesDetailController extends BaseController
|
|
|
public String info(@PathVariable("id") Long id, ModelMap mmap)
|
|
public String info(@PathVariable("id") Long id, ModelMap mmap)
|
|
|
{
|
|
{
|
|
|
//走网关
|
|
//走网关
|
|
|
- //String queryUrl = cloudPath+"order/order/orderSalesDetail/info/"+id;
|
|
|
|
|
- //不走网关
|
|
|
|
|
- String url = queryUrl + "/order/orderSalesDetail/info/"+id;
|
|
|
|
|
|
|
+ String url = cloudPath+"order/order/orderSalesDetail/info/"+id;
|
|
|
|
|
+ //本地测试 不走网关
|
|
|
|
|
+ //String url = queryUrl + "/order/orderSalesDetail/info/"+id;
|
|
|
try {
|
|
try {
|
|
|
String str = restTemplate.getForObject(url, String.class);
|
|
String str = restTemplate.getForObject(url, String.class);
|
|
|
OrderSalesDetail orderSalesDetail = JSONObject.toJavaObject(JSON.parseObject(str),OrderSalesDetail.class);
|
|
OrderSalesDetail orderSalesDetail = JSONObject.toJavaObject(JSON.parseObject(str),OrderSalesDetail.class);
|