#
zhou zhou
昨天 2ce6327ec49e7fe73cc1cd3bcc2b63b28d89d38f
rsf-server/src/main/java/com/vincent/rsf/server/manager/controller/WarehouseAreasController.java
@@ -22,7 +22,7 @@
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import jakarta.servlet.http.HttpServletResponse;
import java.util.*;
@Api(tags = "仓库库区")
@@ -115,7 +115,7 @@
    @PostMapping("/warehouseAreas/update")
    public R update(@RequestBody WarehouseAreas warehouseAreas) {
        warehouseAreas.setUpdateBy(getLoginUserId());
        WarehouseAreas areas = warehouseAreasService.getById(warehouseAreas.getWarehouseId());
        WarehouseAreas areas = warehouseAreasService.getById(warehouseAreas.getId());
        if (Objects.isNull(areas)) {
            throw new CoolException("数据错误:仓库库区不存在!!");
        }
@@ -132,6 +132,7 @@
            }
        }
        warehouseAreas.setUpdateTime(new Date());
        if (!warehouseAreasService.updateById(warehouseAreas)) {
            return R.error("Update Fail");
        }