mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 19:15:35 +08:00
update 使占桩订单免费/修改订单金额
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除占桩订单
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user