demo修改

This commit is contained in:
Zhang.WH
2025-02-21 11:43:37 +08:00
parent a01d5185f7
commit dc6af9afa4
2 changed files with 5 additions and 4 deletions

View File

@@ -85,7 +85,7 @@ public class PurchaseInventoryController {
*
* @param inventoryDto 供应请求信息
*/
@PostMapping("/add-inventory-receipt")
@PostMapping("/inventory-receipt")
public R<?> addSupplyRequest(@Validated @RequestBody InventoryDto inventoryDto) {
// 生成待发送的入库单据supply_request
SupplyRequest supplyRequest = new SupplyRequest();
@@ -118,7 +118,7 @@ public class PurchaseInventoryController {
*
* @param saveInventoryReceiptDto 供应请求信息
*/
@PutMapping("/edit-inventory-receipt")
@PutMapping("/inventory-receipt")
public R<?> editSupplyRequest(@Validated @RequestBody SaveInventoryReceiptDto saveInventoryReceiptDto) {
// 更新supply_request信息
SupplyRequest saveRequest = new SupplyRequest();
@@ -138,10 +138,9 @@ public class PurchaseInventoryController {
*
* @param supplyRequestId 主表id
*/
@DeleteMapping("/delete-inventory-receipt")
@DeleteMapping("/inventory-receipt")
public R<?> deleteSupplyRequest(@RequestParam Long supplyRequestId) {
// 全都是逻辑删除
// todo:拓展mybatisplus :删除就是软删除 查询默认加上delFlag条件通过传参实现查看被删除的项目
boolean deleteSuccess = supplyRequestService.removeById(supplyRequestId);

View File

@@ -22,6 +22,8 @@ import lombok.experimental.Accessors;
@Accessors(chain = true)
public class InventoryReceiptInitDto {
//返回前台的应是dto 懒得定义请勿学习
/** 药房信息 */
private List<Location> location;