futian.liu
2023-11-13 c3324e194441e601d474601bd0f7ac62c120c486
consum-base/src/main/java/com/consum/base/controller/LWhFormInventoryController.java
@@ -15,6 +15,7 @@
import org.springframework.web.bind.annotation.*;
import java.util.List;
import java.util.Map;
/**
 * @Description 盘点
@@ -135,10 +136,37 @@
        }
        int num = this.lWhFormInventoryService.temporaryStorage(dto);
        return num > 0 ? ResponseValue.success(1) : ResponseValue.error("修改失败!");
        return num > 0 ? ResponseValue.success(1) : ResponseValue.error("暂存失败!");
    }
    /**
     * 完成盘点
     * @author 卢庆阳
     * @date 2023/10/31
     */
    @PostMapping("/finish")
    public ResponseValue finishPd(@RequestBody LWhFormInventoryDto dto) {
        if (dto == null) {
            return ResponseValue.error("参数错误");
        }
        int num = this.lWhFormInventoryService.finishPd(dto);
        return num > 0 ? ResponseValue.success(1) : ResponseValue.error("暂存失败!");
    }
    /**
     * @Description 异常明细列表查询
     * @Author 卢庆阳
     * @Date 2023/11/1
     */
    @GetMapping("/list/PdDetail")
    public ResponseValue queryPdDetailList(LWhFormInventoryParam param) {
        FinSysTenantUser sysInfo = this.getSysInfo();
        if (sysInfo == null) {
            return ResponseValue.error("登录用户信息不存在");
        }
        GenericPager<Map<String, Object>> pager = this.lWhFormInventoryService.queryPdDetailList(param, sysInfo);
        return ResponseValue.success(pager);
    }
}