| | |
| | | //@RequiresPermissions("org.jeecg.modules:base_line_side_warehouse:add") |
| | | @PostMapping(value = "/add") |
| | | public Result<String> add(@RequestBody LineSideWarehouse lineSideWarehouse) { |
| | | lineSideWarehouse.setWarehouseStatus(CommonConstant.STATUS_1); |
| | | lineSideWarehouseService.save(lineSideWarehouse); |
| | | return Result.OK("添加成功!"); |
| | | } |
| | |
| | | return Result.ok("操作成功!"); |
| | | } |
| | | |
| | | |
| | | //@AutoLog(value = "线边仓库信息-通过id查询") |
| | | @ApiOperation(value="线边仓库信息-通过id查询", notes="线边仓库信息-通过id查询") |
| | | @GetMapping(value = "/queryByFactoryId") |
| | | public Result<LineSideWarehouse> queryByFactoryId(@RequestParam(name="factoryId") String factoryId) { |
| | | LineSideWarehouse lineSideWarehouse = lineSideWarehouseService.queryByFactoryId(factoryId); |
| | | if(lineSideWarehouse==null) { |
| | | return Result.error("未找到对应数据"); |
| | | } |
| | | return Result.OK(lineSideWarehouse); |
| | | } |
| | | |
| | | } |