|
@@ -2,22 +2,14 @@ package com.usky.dxtop.controller.web.business;
|
|
|
|
|
|
|
|
|
import com.usky.dxtop.common.annotation.RepeatSubmit;
|
|
|
-import com.usky.dxtop.common.constant.UserConstants;
|
|
|
import com.usky.dxtop.common.core.domain.ApiResult;
|
|
|
import com.usky.dxtop.common.core.page.CommonPage;
|
|
|
-import com.usky.dxtop.common.exception.CustomException;
|
|
|
-import com.usky.dxtop.model.Company;
|
|
|
import com.usky.dxtop.model.DreOrder;
|
|
|
-import com.usky.dxtop.service.CompanyService;
|
|
|
import com.usky.dxtop.service.DreOrderService;
|
|
|
import com.usky.dxtop.service.vo.DreOrderRequest;
|
|
|
-import io.swagger.annotations.ApiResponse;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.validation.annotation.Validated;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
-import org.springframework.stereotype.Controller;
|
|
|
-
|
|
|
/**
|
|
|
* 餐品订单
|
|
|
* @author yq
|
|
@@ -36,6 +28,7 @@ public class DreOrderController {
|
|
|
* @param dreOrder
|
|
|
* @return
|
|
|
*/
|
|
|
+ @RepeatSubmit
|
|
|
@PostMapping
|
|
|
public ApiResult<Void> add(@RequestBody DreOrder dreOrder){
|
|
|
dreOrderService.add(dreOrder);
|
|
@@ -45,6 +38,7 @@ public class DreOrderController {
|
|
|
/**
|
|
|
* 修改记录
|
|
|
*/
|
|
|
+ @RepeatSubmit
|
|
|
@PutMapping
|
|
|
public ApiResult<Void> edit(@RequestBody DreOrder dreOrder) {
|
|
|
dreOrderService.update(dreOrder);
|