From e94e3e5b58f5eab424b0075019c0bbadaa2696d0 Mon Sep 17 00:00:00 2001 From: liguoyang Date: Tue, 23 Dec 2025 16:14:40 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E5=88=B8=E5=94=AF=E4=B8=80=E7=A0=81?= =?UTF-8?q?=E7=94=9F=E6=88=90=E9=80=BB=E8=BE=91=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Voucher/Services/Implements/BirthdayVoucherService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Src/Dlhis.Canteen/Voucher/Services/Implements/BirthdayVoucherService.cs b/Src/Dlhis.Canteen/Voucher/Services/Implements/BirthdayVoucherService.cs index 4da30554..f7f64a3d 100644 --- a/Src/Dlhis.Canteen/Voucher/Services/Implements/BirthdayVoucherService.cs +++ b/Src/Dlhis.Canteen/Voucher/Services/Implements/BirthdayVoucherService.cs @@ -77,7 +77,7 @@ public class BirthdayVoucherService : BaseVoucherService, IVoucherService //生日券金额固定100元 const decimal amount = 100; - var dayStr = year + "-" + gainfo.Birthday.Value.ToString("MM-dd"); + var dayStr = year.ToString();//按年区分,避免生日日期变更重复发放 //由数据类型+工号+生日组成唯一标识 var no = GenerateUniqueCode(VoucherEnumType.Birthday.ToString() + gainfo.Code + dayStr);