package com.consum.base.controller;
|
|
import com.consum.base.BaseController;
|
import com.consum.base.pojo.LWhFormInventoryParam;
|
import com.consum.base.service.LWhFormInventoryGoodsServiceImpl;
|
import com.consum.base.service.LWhFormInventoryServiceImpl;
|
import com.consum.model.po.FinSysTenantUser;
|
import com.consum.model.po.LWhFormInventory;
|
import com.consum.model.po.LWhFormInventoryGoods;
|
import com.iplatform.model.po.S_user_core;
|
import com.walker.db.page.GenericPager;
|
import com.walker.web.ResponseValue;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.web.bind.annotation.*;
|
|
import java.util.List;
|
|
/**
|
* @Description 盘点单物品
|
* @Author 卢庆阳
|
* @Date 2023/10/31
|
*/
|
@RestController
|
@RequestMapping("/pc/l/wh/form/inventory/goods")
|
public class LWhFormInventoryGoodsController extends BaseController {
|
|
@Autowired
|
private LWhFormInventoryGoodsServiceImpl inventoryGoodsService;
|
|
/**
|
* @Description 根据盘点单id查询盘点单物品(继续盘点)
|
* @Author 卢庆阳
|
* @Date 2023/10/31
|
* @return
|
*/
|
@GetMapping("/list")
|
public ResponseValue queryList(Long id) {
|
FinSysTenantUser sysInfo = this.getSysInfo();
|
if (sysInfo == null) {
|
return ResponseValue.error("登录用户信息不存在");
|
}
|
if (id == null) {
|
ResponseValue.error("参数错误");
|
}
|
List<LWhFormInventoryGoods> list = this.inventoryGoodsService.getByInventoryId(id);
|
return ResponseValue.success(list);
|
}
|
|
|
}
|