下单并生成主单

This commit is contained in:
clunt 2022-05-12 10:17:43 +08:00
parent 157c937423
commit 2f08e0be4d
1 changed files with 2 additions and 0 deletions

View File

@ -16,6 +16,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller; import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.util.Date; import java.util.Date;
@ -48,6 +49,7 @@ public class OrderController extends BaseController {
@PostMapping("/server/app") @PostMapping("/server/app")
@ResponseBody
public AjaxResult appOrder(AppOrderRequest appOrderRequest){ public AjaxResult appOrder(AppOrderRequest appOrderRequest){
// 校验用户信息 // 校验用户信息
Customer customer = customerService.selectByCustomerId(appOrderRequest.getCustomerId()); Customer customer = customerService.selectByCustomerId(appOrderRequest.getCustomerId());