From f9a1b57d35529f8b8162e6dc7956d7b78375edd4 Mon Sep 17 00:00:00 2001 From: verou <857149855@qq.com> Date: 星期三, 19 三月 2025 16:17:20 +0800 Subject: [PATCH] fix:货位可多选 --- 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