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);