| | |
| | | import com.vincent.rsf.server.manager.service.LocService; |
| | | import com.vincent.rsf.server.manager.service.WarehouseAreasService; |
| | | import com.vincent.rsf.server.system.controller.BaseController; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.*; |
| | | |
| | | @Api(tags = "仓库库区") |
| | | @RestController |
| | | public class WarehouseAreasController extends BaseController { |
| | | |
| | |
| | | @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("数据错误:仓库库区不存在!!"); |
| | | } |