update 使占桩订单免费/修改订单金额

This commit is contained in:
Lemon
2023-09-08 15:51:16 +08:00
parent 43364537d3
commit a89d7e7ec0
6 changed files with 99 additions and 6 deletions

View File

@@ -3,13 +3,13 @@ package com.jsowell.web.controller.pile;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import com.jsowell.pile.dto.MakeOrderFreeDTO;
import com.jsowell.pile.service.OrderPileOccupyService;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
@@ -86,6 +86,18 @@ public class OrderPileOccupyController extends BaseController {
return toAjax(orderPileOccupyService.updateByPrimaryKey(orderPileOccupy));
}
/**
* 使某笔订单免费/修改订单金额
* http://localhost:8080/pile/occupy/updateOrderAmount
* @param dto
* @return
*/
@PreAuthorize("@ss.hasPermi('pile:occupy:edit')")
@PostMapping("/updateOrderAmount")
public AjaxResult updateOrderAmount(@RequestBody MakeOrderFreeDTO dto) {
return toAjax(orderPileOccupyService.updateOrderInfoForWeb(dto));
}
/**
* 删除占桩订单
*/