| | |
| | | package com.jilongda.manage.controller; |
| | | |
| | | |
| | | import com.jilongda.common.basic.ApiResult; |
| | | import com.jilongda.manage.model.TWarehousing; |
| | | import com.jilongda.manage.service.TWarehousingService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | /** |
| | |
| | | * @author 无关风月 |
| | | * @since 2024-12-09 |
| | | */ |
| | | @Api(tags = "镜架/镜片出库入库") |
| | | @RestController |
| | | @RequestMapping("/t-warehousing") |
| | | public class TWarehousingController { |
| | | |
| | | @Autowired |
| | | private TWarehousingService warehousingService; |
| | | |
| | | /** |
| | | * 获取镜架/镜片出库入库列表 |
| | | */ |
| | | // @ApiOperation(value = "获取镜架/镜片出库入库分页列表") |
| | | // @PostMapping(value = "/pageList") |
| | | // public ApiResult<PageInfo<TWarehousingVO>> pageList(@RequestBody TWarehousingQuery query) { |
| | | // return ApiResult.success(warehousingService.pageList(query)); |
| | | // } |
| | | |
| | | // /** |
| | | // * 获取镜架/镜片出库入库列表 |
| | | // */ |
| | | // @ApiOperation(value = "获取镜架/镜片出库入库列表") |
| | | // @PostMapping(value = "/list") |
| | | // public ApiResult<List<TWarehousing>> list(@RequestBody TWarehousingQuery query) { |
| | | // List<TWarehousing> list = warehousingService.list(Wrappers.lambdaQuery(TWarehousing.class) |
| | | // .eq(TWarehousing::getStatus, 1)); |
| | | // return ApiResult.success(list); |
| | | // } |
| | | |
| | | /** |
| | | * 添加镜架/镜片出库入库 |
| | | */ |
| | | @ApiOperation(value = "添加镜架/镜片出库入库") |
| | | @PostMapping(value = "/add") |
| | | public ApiResult<String> add(@Validated @RequestBody TWarehousing dto) { |
| | | warehousingService.save(dto); |
| | | return ApiResult.success(); |
| | | } |
| | | |
| | | } |
| | | |