Эх сурвалжийг харах

1.重构短信发送模块代码
2.新加获取试卷结构接口
3.添加多学号支持
4.违纪列表添加学习中心字段
5.添加获取试卷结构信息的RPC接口

lideyin 6 жил өмнө
parent
commit
0e5ca39871

+ 12 - 0
src/main/java/cn/com/qmth/examcloud/support/cache/CacheHelper.java

@@ -2,6 +2,7 @@ package cn.com.qmth.examcloud.support.cache;
 
 import cn.com.qmth.examcloud.support.cache.bean.AppCacheBean;
 import cn.com.qmth.examcloud.support.cache.bean.ExamRecordPropertyCacheBean;
+import cn.com.qmth.examcloud.support.cache.bean.SmsAssemblyCacheBean;
 import cn.com.qmth.examcloud.support.cache.bean.SysPropertyCacheBean;
 import cn.com.qmth.examcloud.web.cache.ObjectRedisCacheProcessor;
 
@@ -51,4 +52,15 @@ public class CacheHelper {
 				"cn.com.qmth.examcloud.core.oe.common.cache.ExamRecordPropertyCache");
 	}
 
+	/**
+	 * 根据短信配置代码获取短信配置详情
+	 * @param smsAssemblyCode  短信配置代码
+	 * @return
+	 */
+	public static SmsAssemblyCacheBean getSmsAssembly(String smsAssemblyCode) {
+		return ObjectRedisCacheProcessor.get("SMS_ASSEMBLY_PROP:", new Object[]{smsAssemblyCode},
+				SmsAssemblyCacheBean.class, "EC-CORE-BASIC",
+				"cn.com.qmth.examcloud.core.basic.dao.cache.SmsAssemblyCache");
+	}
+
 }

+ 203 - 0
src/main/java/cn/com/qmth/examcloud/support/cache/bean/SmsAssemblyCacheBean.java

@@ -0,0 +1,203 @@
+package cn.com.qmth.examcloud.support.cache.bean;
+
+import cn.com.qmth.examcloud.web.cache.RandomCacheBean;
+
+/**
+ * 短信发送相关缓存实体
+ */
+public class SmsAssemblyCacheBean extends RandomCacheBean {
+	/**
+	 * 短信装配ID
+	 */
+	private Long id;
+
+	/**
+	 * 短信装配编码
+	 */
+	private String code;
+
+	/**
+	 * 短信装配名称
+	 */
+	private String name;
+
+	/**
+	 * 短信样例
+	 */
+	private String example;
+
+	/**
+	 * 短信模板
+	 */
+	private String template;
+
+	/**
+	 * 扩展属性1
+	 */
+	private String ext1;
+
+	/**
+	 * 扩展属性2
+	 */
+	private String ext2;
+
+	/**
+	 * 扩展属性3
+	 */
+	private String ext3;
+
+	/**
+	 * 扩展属性4
+	 */
+	private String ext4;
+
+	/**
+	 * 扩展属性5
+	 */
+	private String ext5;
+
+	/**
+	 * 扩展属性6
+	 */
+	private String ext6;
+
+	/**
+	 * 扩展属性7
+	 */
+	private String ext7;
+
+	/**
+	 * 扩展属性8
+	 */
+	private String ext8;
+
+	/**
+	 * 扩展属性9
+	 */
+	private String ext9;
+
+	/**
+	 * 扩展属性10
+	 */
+	private String ext10;
+
+	public Long getId() {
+		return id;
+	}
+
+	public void setId(Long id) {
+		this.id = id;
+	}
+
+	public String getCode() {
+		return code;
+	}
+
+	public void setCode(String code) {
+		this.code = code;
+	}
+
+	public String getName() {
+		return name;
+	}
+
+	public void setName(String name) {
+		this.name = name;
+	}
+
+	public String getExample() {
+		return example;
+	}
+
+	public void setExample(String example) {
+		this.example = example;
+	}
+
+	public String getTemplate() {
+		return template;
+	}
+
+	public void setTemplate(String template) {
+		this.template = template;
+	}
+
+	public String getExt1() {
+		return ext1;
+	}
+
+	public void setExt1(String ext1) {
+		this.ext1 = ext1;
+	}
+
+	public String getExt2() {
+		return ext2;
+	}
+
+	public void setExt2(String ext2) {
+		this.ext2 = ext2;
+	}
+
+	public String getExt3() {
+		return ext3;
+	}
+
+	public void setExt3(String ext3) {
+		this.ext3 = ext3;
+	}
+
+	public String getExt4() {
+		return ext4;
+	}
+
+	public void setExt4(String ext4) {
+		this.ext4 = ext4;
+	}
+
+	public String getExt5() {
+		return ext5;
+	}
+
+	public void setExt5(String ext5) {
+		this.ext5 = ext5;
+	}
+
+	public String getExt6() {
+		return ext6;
+	}
+
+	public void setExt6(String ext6) {
+		this.ext6 = ext6;
+	}
+
+	public String getExt7() {
+		return ext7;
+	}
+
+	public void setExt7(String ext7) {
+		this.ext7 = ext7;
+	}
+
+	public String getExt8() {
+		return ext8;
+	}
+
+	public void setExt8(String ext8) {
+		this.ext8 = ext8;
+	}
+
+	public String getExt9() {
+		return ext9;
+	}
+
+	public void setExt9(String ext9) {
+		this.ext9 = ext9;
+	}
+
+	public String getExt10() {
+		return ext10;
+	}
+
+	public void setExt10(String ext10) {
+		this.ext10 = ext10;
+	}
+}