|
|
|
@ -4,11 +4,9 @@ import cn.chjyj.szwh.bean.Order; |
|
|
|
import cn.chjyj.szwh.controller.BaseController; |
|
|
|
import cn.chjyj.szwh.service.OrderService; |
|
|
|
import com.alibaba.fastjson2.JSONObject; |
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
|
import org.springframework.web.bind.annotation.RequestMethod; |
|
|
|
import org.springframework.web.bind.annotation.RequestParam; |
|
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
|
|
|
|
import java.util.HashMap; |
|
|
|
import java.util.List; |
|
|
|
@ -78,11 +76,15 @@ public class OrderController extends BaseController { |
|
|
|
|
|
|
|
/** |
|
|
|
* 创建订单 |
|
|
|
* |
|
|
|
* @param reqString 接收到的数据为json字符串 |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
@RequestMapping("/createOrder") |
|
|
|
public JSONObject createOrder() { |
|
|
|
public JSONObject createOrder(@RequestBody String reqString) { |
|
|
|
if(StringUtils.isBlank(reqString)){ |
|
|
|
JSONObject json = JSONObject.parseObject(reqString); |
|
|
|
|
|
|
|
} |
|
|
|
return jsonObject; |
|
|
|
} |
|
|
|
|
|
|
|
|