| | |
| | | return Result.success(warehouseService.selectWarehouse()); |
| | | } |
| | | |
| | | @ValueClassify("样品管理") |
| | | @GetMapping("/selectWarehouseAll") |
| | | @ApiOperation("查询仓库---查询全部货架") |
| | | public Result selectWarehouseAll() { |
| | | return Result.success(warehouseService.selectWarehouseAll()); |
| | | } |
| | | |
| | | |
| | | @ValueClassify("样品管理") |
| | | @PostMapping("/addShelf") |
| | |
| | | public interface WarehouseMapper extends BaseMapper<Warehouse> { |
| | | |
| | | List<WarehouseDto> selectWarehouseList(); |
| | | List<WarehouseDto> selectWarehouseListAll(); |
| | | |
| | | } |
| | | |
| | |
| | | int addWarehouse(String name); |
| | | |
| | | List<WarehouseDto> selectWarehouse(); |
| | | List<WarehouseDto> selectWarehouseAll(); |
| | | |
| | | int addShelf(WarehouseShelf warehouseShelf); |
| | | |
| | |
| | | } |
| | | |
| | | @Override |
| | | public List<WarehouseDto> selectWarehouseAll() { |
| | | return warehouseMapper.selectWarehouseListAll(); |
| | | } |
| | | |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public int addShelf(WarehouseShelf warehouseShelf) { |
| | | warehouseShelfMapper.insert(warehouseShelf); |
| | |
| | | and state=1 |
| | | order by id, sId, crow, ccol |
| | | </select> |
| | | |
| | | <select id="selectWarehouseListAll" resultMap="Warehouse"> |
| | | select w.id, |
| | | w.name, |
| | | ws.id sId, |
| | | ws.name sName, |
| | | ws.row, |
| | | ws.col, |
| | | wc.id cId, |
| | | wc.row crow, |
| | | wc.col ccol |
| | | from warehouse w |
| | | left join warehouse_shelf ws on w.id = ws.warehouse_id |
| | | left join warehouse_cell wc on shelf_id = ws.id |
| | | where |
| | | state=1 |
| | | order by id, sId, crow, ccol |
| | | </select> |
| | | </mapper> |