McIgnitionTemplate.java 1.11 KB
package com.chinagas.modules.schsf.domain.notice;

import com.chinagas.modules.schsf.domain.McIgnition;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

public class McIgnitionTemplate {
    private McIgnition mcIgnition;

    public McIgnitionTemplate(McIgnition mcIgnition) {
        this.mcIgnition = mcIgnition;
    }

    public String getNoticemarkdown() {
        return  "######  市场化收费-点火通知  \n  " +
                "用户信息:" + mcIgnition.getUserName()+"(" +mcIgnition.getUserPhone()+ ")  \n  " +
                "村/小区:" + mcIgnition.getVlgOrCmty() + "  \n  " +
                "当前状态:" + mcIgnition.getStatusName() + "(客服)  \n  " +
                "维护操作:点击链接进入维护页面:[https://schsf.chinagasholdings.com](https://schsf.chinagasholdings.com)  \n  " +
                "---" +
                "  \n  " +
                "通知日期: " + LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy/MM/dd HH:mm")) + "  \n  " +
                "温馨提醒: 请按时完成维护,保障业务顺畅。  \n  ";
    }

}