Browse Source

通知公告添加纯文本

tags/正式3.3.0
王宁 2 years ago
parent
commit
a113204793

+ 3
- 0
sapi/src/main/java/com/xhkjedu/sapi/model/notice/TNotice.java View File

@@ -36,6 +36,9 @@ public class TNotice extends BaseBean {
36 36
     //通知内容
37 37
     private String noticecontent;
38 38
 
39
+    //通知内容纯文本
40
+    private String noticetxt;
41
+
39 42
     @Transient
40 43
     //班级id集合
41 44
     private List<ClassVo> classes;

+ 1
- 0
sapi/src/main/java/com/xhkjedu/sapi/service/research/ResearchService.java View File

@@ -85,6 +85,7 @@ public class ResearchService {
85 85
             TNotice notice = new TNotice();
86 86
             notice.setNoticetitle(research.getResearchname());
87 87
             notice.setNoticecontent(research.getResearchcontent());
88
+            notice.setNoticetxt(research.getResearchcontent());
88 89
             notice.setNoticetype(2);
89 90
             notice.setCreateid(research.getCreateid());
90 91
             notice.setSchoolid(research.getSchoolid());

+ 3
- 0
sapi/src/main/java/com/xhkjedu/sapi/vo/notice/NoticeVo.java View File

@@ -13,6 +13,9 @@ public class NoticeVo {
13 13
     //通知内容
14 14
     private String noticecontent;
15 15
 
16
+    //通知内容纯文本
17
+    private String noticetxt;
18
+
16 19
     //创建人
17 20
     private String createname;
18 21
 

+ 2
- 2
sapi/src/main/resources/mapper/notice/NoticeMapper.xml View File

@@ -70,7 +70,7 @@
70 70
     </select>
71 71
     <!--学生通知列表-->
72 72
     <select id="listStudent" resultType="com.xhkjedu.sapi.vo.notice.NoticeVo">
73
-        select n.noticeid,n.noticetitle,n.createtime,u.username createname
73
+        select n.noticeid,n.noticetitle,n.noticetxt,n.createtime,u.username createname
74 74
         from t_notice n left join t_user u on n.createid=u.userid
75 75
         left join t_notice_class nc on n.noticeid = nc.noticeid
76 76
         left join t_class_student cs on nc.classid=cs.classid
@@ -84,7 +84,7 @@
84 84
     <!--//////////////////////////////////////////////学生WEB端//////////////////////////////////////////////-->
85 85
     <!--学生通知列表-->
86 86
     <select id="listNoticeForStuWeb" resultType="com.xhkjedu.sapi.vo.notice.NoticeVo">
87
-        select n.noticeid,n.noticetitle,n.noticecontent,n.createtime,u.username createname
87
+        select n.noticeid,n.noticetitle,n.noticecontent,n.noticetxt,n.createtime,u.username createname
88 88
         from t_notice n left join t_user u on n.createid=u.userid
89 89
         left join t_notice_class nc on n.noticeid = nc.noticeid
90 90
         left join t_class_student cs on nc.classid=cs.classid

+ 3
- 0
slive/src/main/java/com/xhkjedu/slive/model/notice/TNotice.java View File

@@ -35,6 +35,9 @@ public class TNotice extends BaseBean {
35 35
     //通知内容
36 36
     private String noticecontent;
37 37
 
38
+    //通知内容纯文本
39
+    private String noticetxt;
40
+
38 41
     @Transient
39 42
     //班级id集合
40 43
     private List<ClassVo> classes;

+ 1
- 0
slive/src/main/java/com/xhkjedu/slive/service/liveplay/CourseService.java View File

@@ -163,6 +163,7 @@ public class CourseService {
163 163
             sb.append(")");
164 164
             n.setNoticetitle(sb.toString());
165 165
             n.setNoticecontent(sbcomm.toString());
166
+            n.setNoticetxt(sbcomm.toString());
166 167
             n.setNoticetype(1);
167 168
 
168 169
             if(model.getCoursetype()==0){

Loading…
Cancel
Save