From ab67460c896c92827b62956d679e02fc41963a09 Mon Sep 17 00:00:00 2001 From: Bright Date: Wed, 11 Jun 2025 11:50:23 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B8=9B=E0=B8=B5=E0=B8=97=E0=B8=B5=E0=B9=88?= =?UTF-8?q?=E0=B8=AD=E0=B8=AD=E0=B8=81=E0=B8=84=E0=B8=B3=E0=B8=AA=E0=B8=B1?= =?UTF-8?q?=E0=B9=88=E0=B8=87=E0=B8=9B=E0=B8=A3=E0=B8=B1=E0=B8=9A=E0=B8=AA?= =?UTF-8?q?=E0=B9=88=E0=B8=87=E0=B9=80=E0=B8=9B=E0=B9=87=E0=B8=99=E0=B8=9B?= =?UTF-8?q?=E0=B8=B5=E0=B8=9E.=E0=B8=A8.=20issue=20#1572?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/services/rabbitmq.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/services/rabbitmq.ts b/src/services/rabbitmq.ts index 23adf4ef..7a0afa53 100644 --- a/src/services/rabbitmq.ts +++ b/src/services/rabbitmq.ts @@ -149,7 +149,9 @@ async function handler(msg: amqp.ConsumeMessage): Promise { .map((x) => ({ refId: x.refId, commandNo: command.commandNo, - commandYear: command.commandYear, + commandYear: command.commandYear > 2500 + ? command.commandYear + : command.commandYear + 543, commandId: command.id, remark: command.positionDetail, amount: x.amount,