Browse Source

优化提示

tags/正式3.2.0
王宁 2 years ago
parent
commit
be8e59936e

+ 14
- 6
slive/src/main/java/com/xhkjedu/slive/service/xz/XzService.java View File

@@ -248,11 +248,11 @@ public class XzService {
248 248
                 //保存完课程表之后修改当前步骤
249 249
                 xzMapper.updateCurstepByXzid(3,xz.getXzid());
250 250
 
251
-                return new ResultVo(0, "保存行政直播课程表成功");
251
+                return new ResultVo(0, "保存成功");
252 252
             }
253 253
         } catch (Exception e) {
254 254
             log.error("保存行政直播课程表出错:" + e.getMessage());
255
-            return new ResultVo(1,"保存行政直播课程表失败");
255
+            return new ResultVo(1,"保存失败");
256 256
         }
257 257
 
258 258
 
@@ -521,11 +521,11 @@ public class XzService {
521 521
                         }
522 522
                     }
523 523
                 }
524
-                return new ResultVo(0, "成功删除课程表单个课程");
524
+                return new ResultVo(0, "删除成功");
525 525
             }
526 526
         } catch (Exception e) {
527 527
             log.error("删除课程表单个课程出错:" + e.getMessage());
528
-            return new ResultVo(1, "删除课程表单个课程失败");
528
+            return new ResultVo(1, "删除失败");
529 529
         }
530 530
     }
531 531
 
@@ -596,10 +596,10 @@ public class XzService {
596 596
 
597 597
                 }
598 598
             }
599
-            return new ResultVo(0, "成功保存课程表单个课程",courseid);
599
+            return new ResultVo(0, "保存成功",courseid);
600 600
         } catch (Exception e) {
601 601
             log.error("保存课程表单个课程出错:" + e.getMessage());
602
-            return new ResultVo(1, "保存课程表单个课程失败");
602
+            return new ResultVo(1, "保存失败");
603 603
         }
604 604
     }
605 605
 
@@ -644,6 +644,14 @@ public class XzService {
644 644
                 courseid = ((XzService) applicationContext.getBean("xzService")).saveCourseAll(lst, course);
645 645
             } else {
646 646
                 courseid = courseVo.getCourseid();
647
+                //保存直播关联班级
648
+                LCourseClass courseClass = new LCourseClass();
649
+                courseClass.setCourseid(courseid);
650
+                courseClass.setClassid(kjTeaVo.getClassid());
651
+                courseClass.setCreateid(kjTeaVo.getTeacherid());
652
+                courseClass.setCreatetime(N_Utils.getSecondTimestamp());
653
+                courseClassMapper.insertUseGeneratedKeys(courseClass);
654
+
647 655
                 //说明该教师当前有其他直播课,则把班级加入课程,完成直播课学生数量
648 656
                 TClassStudent cs = new TClassStudent();
649 657
                 cs.setSchoolid(kjTeaVo.getSchoolid());

+ 1
- 1
slive/src/main/resources/mapper/liveplay/CourseSectionMapper.xml View File

@@ -383,7 +383,7 @@
383 383
     </update>
384 384
     <!--获取课程学生列表-->
385 385
     <select id="listStudent" resultType="java.util.Map">
386
-        select u.username studentname,u.loginname,cs.createtime
386
+        select u.username studentname,u.loginname,u.usersex,cs.createtime
387 387
         ,(select concat(c.gradeid,'_',c.classname) from t_class_student cs2 left join t_class c on cs2.classid=c.classid
388 388
         where cs2.studentid=cs.studentid and c.classtype=1 and c.classstate=1 and c.year=#{year} order by c.classid desc limit 1)classname
389 389
         from t_class_student cs left join t_user u on cs.studentid = u.userid

Loading…
Cancel
Save