WangHan
2025-04-02 a8ba678a3fe5a39da2c732014cebbb66e408e97c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
package com.consum.base.controller;
 
import java.util.List;
 
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
 
import com.consum.base.BaseController;
import com.consum.base.service.LWhFormInventoryGoodsService;
import com.consum.model.po.FinSysTenantUser;
import com.consum.model.po.LWhFormInventoryGoods;
import com.walker.web.ResponseValue;
 
/**
 * @Description 盘点单物品
 * @Author 卢庆阳
 * @Date 2023/10/31
 */
// @Api(value = "盘点", tags = "盘点")
@RestController
@RequestMapping("/pc/l/wh/form/inventory/goods")
public class LWhFormInventoryGoodsController extends BaseController {
 
    @Autowired
    private LWhFormInventoryGoodsService inventoryGoodsService;
 
    /**
     * @return
     * @Description 根据盘点单id查询盘点单物品(继续盘点)
     * @Author 卢庆阳
     * @Date 2023/10/31
     */
    // @ApiOperation(value = "查询盘点单物品(继续盘点)", notes = "查询盘点单物品(继续盘点)")
    @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 = inventoryGoodsService.getByInventoryId(id);
        return ResponseValue.success(list);
    }
 
 
}