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,
@Body()
body: {
refIds: {
refId: string;
refIds: string[];
// refIds: {
// refId: string;
// commandAffectDate: Date | null;
// commandNo: string | null;
// commandYear: number;
@ -3529,11 +3530,11 @@ export class CommandController extends Controller {
// amount: Double | null;
// positionSalaryAmount: Double | null;
// mouthSalaryAmount: Double | null;
}[];
// }[];
},
) {
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) => ({
..._data,