瀏覽代碼

模板配置

wujunjie 7 年之前
父節點
當前提交
bc1ac8103e

+ 5 - 5
common/common-entity/src/main/java/com/yihu/wlyy/entity/wechat/WechatTemplateConfig.java

@ -14,7 +14,7 @@ import javax.persistence.Table;
@Table(name = "weixin_template_config")
public class WechatTemplateConfig extends IdEntity {
	private static final long serialVersionUID = -7399054549159698617L;
	private String templateId; //'模板ID
	private String templateName;//'自定义模板名称'
    private String scene;//使用场景值
    private String sceneDescription;//'使用场景描述'
    private String first;
@ -33,12 +33,12 @@ public class WechatTemplateConfig extends IdEntity {
        return serialVersionUID;
    }
    public String getTemplateId() {
        return templateId;
    public String getTemplateName() {
        return templateName;
    }
    public void setTemplateId(String templateId) {
        this.templateId = templateId;
    public void setTemplateName(String templateName) {
        this.templateName = templateName;
    }
    public String getScene() {

+ 5 - 5
common/common-entity/src/main/java/com/yihu/wlyy/entity/wechat/WeixinTemplate.java

@ -16,7 +16,7 @@ public class WeixinTemplate  extends IdEntity {
    private String accId;//'微信公众号原始ID'
    private String templateName;//'自定义模板名称'
    private String templateId;//'模板ID'
    private String templateTitle;//'模板标题'
    private Integer type;//'自定义模板类型'
    private String format;//'模板内容格式'
    private Integer status;//'模板状态 1:正常  0:删除'
@ -37,12 +37,12 @@ public class WeixinTemplate  extends IdEntity {
        this.templateName = templateName;
    }
    public String getTemplateId() {
        return templateId;
    public String getTemplateTitle() {
        return templateTitle;
    }
    public void setTemplateId(String templateId) {
        this.templateId = templateId;
    public void setTemplateTitle(String templateTitle) {
        this.templateTitle = templateTitle;
    }
    public Integer getType() {

+ 3 - 3
patient-co/patient-co-wlyy/src/main/java/com/yihu/wlyy/repository/wechat/WechatTemplateConfigDao.java

@ -12,7 +12,7 @@ import org.springframework.data.repository.PagingAndSortingRepository;
 */
public interface WechatTemplateConfigDao extends PagingAndSortingRepository<WechatTemplateConfig, Long>, JpaSpecificationExecutor<WechatTemplateConfig> {
    //根据模板id、场景值查询有效模板内容
    @Query("select t  from WechatTemplateConfig t where t.templateId=?1 and t.scene=?2 and t.status = 1 ")
    WechatTemplateConfig findByScene(String templateId,String scene);
    //根据自定义模板名称、场景值查询有效模板内容
    @Query("select t  from WechatTemplateConfig t where t.templateName=?1 and t.scene=?2 and t.status = 1 ")
    WechatTemplateConfig findByScene(String templateName,String scene);
}