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
|
}
|