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
     //通知内容
36
     //通知内容
37
     private String noticecontent;
37
     private String noticecontent;
38
 
38
 
39
+    //通知内容纯文本
40
+    private String noticetxt;
41
+
39
     @Transient
42
     @Transient
40
     //班级id集合
43
     //班级id集合
41
     private List<ClassVo> classes;
44
     private List<ClassVo> classes;

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

85
             TNotice notice = new TNotice();
85
             TNotice notice = new TNotice();
86
             notice.setNoticetitle(research.getResearchname());
86
             notice.setNoticetitle(research.getResearchname());
87
             notice.setNoticecontent(research.getResearchcontent());
87
             notice.setNoticecontent(research.getResearchcontent());
88
+            notice.setNoticetxt(research.getResearchcontent());
88
             notice.setNoticetype(2);
89
             notice.setNoticetype(2);
89
             notice.setCreateid(research.getCreateid());
90
             notice.setCreateid(research.getCreateid());
90
             notice.setSchoolid(research.getSchoolid());
91
             notice.setSchoolid(research.getSchoolid());

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

13
     //通知内容
13
     //通知内容
14
     private String noticecontent;
14
     private String noticecontent;
15
 
15
 
16
+    //通知内容纯文本
17
+    private String noticetxt;
18
+
16
     //创建人
19
     //创建人
17
     private String createname;
20
     private String createname;
18
 
21
 

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

70
     </select>
70
     </select>
71
     <!--学生通知列表-->
71
     <!--学生通知列表-->
72
     <select id="listStudent" resultType="com.xhkjedu.sapi.vo.notice.NoticeVo">
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
         from t_notice n left join t_user u on n.createid=u.userid
74
         from t_notice n left join t_user u on n.createid=u.userid
75
         left join t_notice_class nc on n.noticeid = nc.noticeid
75
         left join t_notice_class nc on n.noticeid = nc.noticeid
76
         left join t_class_student cs on nc.classid=cs.classid
76
         left join t_class_student cs on nc.classid=cs.classid
84
     <!--//////////////////////////////////////////////学生WEB端//////////////////////////////////////////////-->
84
     <!--//////////////////////////////////////////////学生WEB端//////////////////////////////////////////////-->
85
     <!--学生通知列表-->
85
     <!--学生通知列表-->
86
     <select id="listNoticeForStuWeb" resultType="com.xhkjedu.sapi.vo.notice.NoticeVo">
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
         from t_notice n left join t_user u on n.createid=u.userid
88
         from t_notice n left join t_user u on n.createid=u.userid
89
         left join t_notice_class nc on n.noticeid = nc.noticeid
89
         left join t_notice_class nc on n.noticeid = nc.noticeid
90
         left join t_class_student cs on nc.classid=cs.classid
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
     //通知内容
35
     //通知内容
36
     private String noticecontent;
36
     private String noticecontent;
37
 
37
 
38
+    //通知内容纯文本
39
+    private String noticetxt;
40
+
38
     @Transient
41
     @Transient
39
     //班级id集合
42
     //班级id集合
40
     private List<ClassVo> classes;
43
     private List<ClassVo> classes;

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

163
             sb.append(")");
163
             sb.append(")");
164
             n.setNoticetitle(sb.toString());
164
             n.setNoticetitle(sb.toString());
165
             n.setNoticecontent(sbcomm.toString());
165
             n.setNoticecontent(sbcomm.toString());
166
+            n.setNoticetxt(sbcomm.toString());
166
             n.setNoticetype(1);
167
             n.setNoticetype(1);
167
 
168
 
168
             if(model.getCoursetype()==0){
169
             if(model.getCoursetype()==0){

Loading…
Cancel
Save