fix 83193 会员到期提醒没有精确到日

This commit is contained in:
lijiarao
2024-03-28 16:14:31 +08:00
parent d7b68090f7
commit 43de17cea9
@@ -44,7 +44,6 @@ public class MemberProjectJob implements Job{
private SendMessageService sendMessageService;
@Resource
private IPayContactsManagementService payContactsManagementService;
public static String FORMAT = "yyyy年MM月";
@Override
public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
@@ -71,7 +70,7 @@ public class MemberProjectJob implements Job{
sendMessageDTO.setToUser(PasswordUtil.decrypt(p.getPhone()));
}
HashMap<String,String> map = new HashMap<>();
map.put("expiredDay",offset.toString(FORMAT));
map.put("expiredDay",offset.toString(DatePattern.CHINESE_DATE_PATTERN));
sendMessageDTO.setFromUser(null);
sendMessageDTO.setTemplateCode(ManagementMessageEnums.MSG17.getCode());
sendMessageDTO.setTemplateParam(map);