| | |
| | | import com.jilongda.common.enums.WarehousingTypeEnum; |
| | | import com.jilongda.common.security.JwtTokenUtils; |
| | | import com.jilongda.common.utils.CodeGenerateUtils; |
| | | import com.jilongda.common.utils.UUIDUtil; |
| | | import com.jilongda.manage.dto.GetCurrentByParam; |
| | | import com.jilongda.manage.dto.GetCurrentByParamLens; |
| | | import com.jilongda.manage.dto.TWarehousingDTO; |
| | |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.text.SimpleDateFormat; |
| | | import java.time.LocalDateTime; |
| | | import java.util.ArrayList; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.util.stream.Collectors; |
| | | |
| | |
| | | public ApiResult<PageInfo<TLensGoodsVO>> lensReceiptList(@RequestBody TLensGoodsQuery query) { |
| | | return ApiResult.success(lensGoodsService.lensReceiptList(query)); |
| | | } |
| | | @ApiOperation(value = "镜片库存分页列表-启用禁用") |
| | | @PostMapping(value = "/updateStateLens") |
| | | public ApiResult updateStateLens(Integer id) { |
| | | TLensGoods byId = lensGoodsService.getById(id); |
| | | if (byId.getStatus()==1){ |
| | | byId.setStatus(2); |
| | | }else { |
| | | byId.setStatus(1); |
| | | } |
| | | return ApiResult.success(); |
| | | } |
| | | @ApiOperation(value = "镜架库存分页列表-启用禁用") |
| | | @PostMapping(value = "/updateStateFrame") |
| | | public ApiResult updateStateFrame(Integer id) { |
| | | TFrameGoods byId = frameGoodsService.getById(id); |
| | | if (byId.getStatus()==1){ |
| | | byId.setStatus(2); |
| | | }else { |
| | | byId.setStatus(1); |
| | | } |
| | | return ApiResult.success(); |
| | | } |
| | | /** |
| | | * 出入库单列表 |
| | | */ |