This commit is contained in:
Bright 2024-11-12 17:39:14 +07:00
parent 6e7f5f5af2
commit 87531f19ba

View file

@ -3520,8 +3520,9 @@ export class CommandController extends Controller {
@Request() req: RequestWithUser, @Request() req: RequestWithUser,
@Body() @Body()
body: { body: {
refIds: { refIds: string[];
refId: string; // refIds: {
// refId: string;
// commandAffectDate: Date | null; // commandAffectDate: Date | null;
// commandNo: string | null; // commandNo: string | null;
// commandYear: number; // commandYear: number;
@ -3529,11 +3530,11 @@ export class CommandController extends Controller {
// amount: Double | null; // amount: Double | null;
// positionSalaryAmount: Double | null; // positionSalaryAmount: Double | null;
// mouthSalaryAmount: Double | null; // mouthSalaryAmount: Double | null;
}[]; // }[];
}, },
) { ) {
const posMasters = await this.posMasterRepository.find({ const posMasters = await this.posMasterRepository.find({
where: { id: In(body.refIds.map((x) => x.refId)) }, where: { id: In(body.refIds/*.map((x) => x.refId)*/) },
}); });
const data = posMasters.map((_data) => ({ const data = posMasters.map((_data) => ({
..._data, ..._data,