|
@@ -39,6 +39,7 @@ import org.springframework.web.bind.annotation.RestController;
|
|
import springfox.documentation.annotations.ApiIgnore;
|
|
import springfox.documentation.annotations.ApiIgnore;
|
|
|
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
|
+import java.math.BigDecimal;
|
|
import java.util.Objects;
|
|
import java.util.Objects;
|
|
|
|
|
|
import static com.yonge.cooleshow.common.entity.HttpResponseResult.failed;
|
|
import static com.yonge.cooleshow.common.entity.HttpResponseResult.failed;
|
|
@@ -84,6 +85,9 @@ public class UserOrderController {
|
|
if (Objects.isNull(tenantStaff)) {
|
|
if (Objects.isNull(tenantStaff)) {
|
|
throw BizException.from("用户信息不存在");
|
|
throw BizException.from("用户信息不存在");
|
|
}
|
|
}
|
|
|
|
+ if (orderReq.getPaymentCashAmount().compareTo(new BigDecimal(10000000))>0) {
|
|
|
|
+ throw new com.yonge.toolset.base.exception.BizException("下单金额不能超出10000000");
|
|
|
|
+ }
|
|
|
|
|
|
order.setTenantId(tenantStaff.getTenantId());
|
|
order.setTenantId(tenantStaff.getTenantId());
|
|
// 新增数据
|
|
// 新增数据
|