|
|
|
@ -12,6 +12,7 @@ import org.springframework.stereotype.Service;
|
|
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
|
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
|
import java.time.LocalDateTime;
|
|
|
|
|
import java.util.Collection;
|
|
|
|
|
import java.util.HashMap;
|
|
|
|
|
import java.util.List;
|
|
|
|
@ -37,7 +38,7 @@ public class NotifyMessageServiceImpl implements NotifyMessageService {
|
|
|
|
|
NotifyMessageDO message = new NotifyMessageDO().setUserId(userId).setUserType(userType)
|
|
|
|
|
.setTemplateId(template.getId()).setTemplateCode(template.getCode())
|
|
|
|
|
.setTemplateType(template.getType()).setTemplateNickname(template.getNickname())
|
|
|
|
|
.setTemplateContent(templateContent).setTemplateParams(templateParams).setReadStatus(false).setBillType(billType).setExtraData(extraData).setJumpFlag(jumpFlag);
|
|
|
|
|
.setTemplateContent(templateContent).setTemplateParams(templateParams).setReadStatus(false).setBillType(billType).setStartTime(LocalDateTime.now()).setExtraData(extraData).setJumpFlag(jumpFlag);
|
|
|
|
|
if (extraData.containsKey("billId")) {
|
|
|
|
|
message.setBillId(Long.valueOf(extraData.get("billId").toString()));
|
|
|
|
|
}
|
|
|
|
|