无关风月
2024-12-23 00f774816d4039bcc137af20efd66db1b1e6a8fa
代码
1个文件已修改
25 ■■■■■ 已修改文件
manage/src/main/java/com/jilongda/manage/controller/TWarehousingController.java 25 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
manage/src/main/java/com/jilongda/manage/controller/TWarehousingController.java
@@ -8,6 +8,7 @@
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;
@@ -26,8 +27,10 @@
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;
@@ -106,6 +109,28 @@
    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();
    }
    /**
     * 出入库单列表
     */