schangxiang@126.com
2025-09-09 3d8966ba2c81e7e0365c8b123e861d18ee4f94f5
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
import BaseController from "../baseController";
import { Prefix, Post } from "egg-shell-decorators";
import { IDXPickToLight } from "../../entity/outbound/manufacture/iDXPickToLight";
 
@Prefix("/client")
export default class ClientController extends BaseController {
  //#region 获取灯光数据
  @Post()
  public async getPickList() {
    let userInfo = await this.userInfo;
    let dataList = await this.dbRead.find(IDXPickToLight, {
      where: {
        userProduct_Id: userInfo.userProduct_Id
      }
    });
 
    this.info.result = true;
    this.info.data = dataList;
    this.ctx.body = this.info;
  }
  //#endregion
 
  //#region 更新灯光数据状态
  @Post()
  public async updatePickList() {
    let userInfo = await this.userInfo;
    let dataList = await this.dbRead.find(IDXPickToLight, {
      where: {
        userProduct_Id: userInfo.userProduct_Id
      }
    });
 
    this.info.result = true;
    this.info.data = dataList;
  }
  //#endregion
}