| | |
| | | import io.swagger.annotations.ApiOperation; |
| | | import io.swagger.models.auth.In; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.context.annotation.Bean; |
| | | import org.springframework.util.StringUtils; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | tInventoryFrameDetail.setInventoryId(tInventory.getId()); |
| | | } |
| | | inventoryFrameDetailService.saveBatch(query.getList()); |
| | | return ApiResult.success(); |
| | | return ApiResult.success(tInventory.getId()); |
| | | } |
| | | @ApiOperation(value = "镜片添加盘点") |
| | | @PostMapping(value = "/addLensInventory") |
| | |
| | | tInventoryFrameDetail.setInventoryId(tInventory.getId()); |
| | | } |
| | | inventoryLensDetailService.saveBatch(query.getList()); |
| | | return ApiResult.success(); |
| | | return ApiResult.success(tInventory.getId()); |
| | | } |
| | | |
| | | @ApiOperation(value = "镜架-根据品牌id查询对应库存") |
| | |
| | | TInventoryInfoVO tInventoryInfoVO = new TInventoryInfoVO(); |
| | | |
| | | TInventory byId = inventoryService.getById(id); |
| | | BeanUtils.copyProperties(byId, tInventoryInfoVO); |
| | | switch (byId.getType()){ |
| | | case 1: |
| | | List<TInventoryFrameDetail> list = inventoryFrameDetailService.lambdaQuery().eq(TInventoryFrameDetail::getInventoryId, id).list(); |