|
|
|
@ -10,6 +10,7 @@ import com.alibaba.fastjson.JSONObject; |
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
import sun.net.httpserver.HttpsServerImpl; |
|
|
|
|
|
|
|
import javax.servlet.http.HttpServletRequest; |
|
|
|
import java.util.ArrayList; |
|
|
|
@ -96,16 +97,19 @@ public class AdminOrderController extends BaseController { |
|
|
|
|
|
|
|
/** |
|
|
|
* 订单信息 |
|
|
|
* @param batchcode |
|
|
|
* @param request |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
@PostMapping("/orderInfo") |
|
|
|
public JSONObject orderInfo(String batchcode){ |
|
|
|
public JSONObject orderInfo(@RequestBody String request){ |
|
|
|
// 请求来的字符串进行处理
|
|
|
|
JSONObject jsonreq=JSONObject.parseObject(request); |
|
|
|
String batchcode = jsonreq.getString("batchcode"); |
|
|
|
//罗列出订单信息,及其参数
|
|
|
|
List retlist = orderService.orderInfo(batchcode); |
|
|
|
|
|
|
|
Map mp= orderService.orderDetail(batchcode); |
|
|
|
jsonObject.put("code",200); |
|
|
|
jsonObject.put("data",retlist); |
|
|
|
jsonObject.put("data",mp); |
|
|
|
jsonObject.put("msg","成功"); |
|
|
|
return jsonObject; |
|
|
|
} |
|
|
|
|