From 89e69825afdc8fb7619444d6e0bbc808502920e5 Mon Sep 17 00:00:00 2001 From: skyouc Date: 星期五, 14 三月 2025 13:22:36 +0800 Subject: [PATCH] #修改 1. 字段优化 2. 添加物料查询收货通知单接口 --- rsf-server/src/main/java/com/vincent/rsf/server/api/controller/MobileController.java | 21 ++++++++++++++++----- 1 files changed, 16 insertions(+), 5 deletions(-) diff --git a/rsf-server/src/main/java/com/vincent/rsf/server/api/controller/MobileController.java b/rsf-server/src/main/java/com/vincent/rsf/server/api/controller/MobileController.java index 2cf4547..2181e8a 100644 --- a/rsf-server/src/main/java/com/vincent/rsf/server/api/controller/MobileController.java +++ b/rsf-server/src/main/java/com/vincent/rsf/server/api/controller/MobileController.java @@ -4,12 +4,10 @@ import com.vincent.rsf.framework.exception.CoolException; import com.vincent.rsf.server.api.controller.params.OtherReceiptParams; import com.vincent.rsf.server.api.controller.params.ReceiptParams; -import com.vincent.rsf.server.api.entity.dto.ReceiptDetlsDto; import com.vincent.rsf.server.api.service.MobileService; import com.vincent.rsf.server.system.controller.BaseController; import com.vincent.rsf.server.system.controller.param.LoginParam; import io.swagger.annotations.Api; -import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiOperation; import org.apache.tika.utils.StringUtils; import org.springframework.beans.factory.annotation.Autowired; @@ -17,7 +15,6 @@ import org.springframework.web.bind.annotation.*; import javax.servlet.http.HttpServletRequest; -import java.util.List; import java.util.Objects; /** @@ -79,7 +76,7 @@ * @param params * @return */ - @PreAuthorize("hasAuthority('manager:warehouseAreasItem:save')") + @PreAuthorize("hasAuthority('manager:warehouseAreas:save')") @PostMapping("/orders/confirm") @ApiOperation("纭鏀惰揣") public R confirmReceipt(@RequestBody ReceiptParams params) { @@ -97,8 +94,14 @@ if (Objects.isNull(params)) { throw new CoolException("鍙傛暟涓嶈兘涓虹┖锛侊紒"); } - return mobileService.otherReceipt(params); + } + + @PreAuthorize("hasAuthority('manager:warehouseAreas:list')") + @ApiOperation("鑾峰彇鏀惰揣鍖�") + @GetMapping("/areas/receipt") + public R getReceiptAreas() { + return mobileService.getReceiptAreas(); } @@ -110,4 +113,12 @@ } + @PreAuthorize("hasAuthority('manager:asnOrder:list')") + @GetMapping("/dynamic/fields") + @ApiOperation("鑾峰彇鍔ㄦ�佸瓧娈�") + public R getDynamicFields() { + return R.ok(mobileService.getDynamicFields()); + } + + } -- Gitblit v1.9.1