瀏覽代碼

增加老师端点击注销账号流程限制

Pq 1 月之前
父節點
當前提交
00d9bc7a46

+ 1 - 0
teacher/src/main/java/com/cooleshow/teacher/bean/HomeworkListBean.java

@@ -47,6 +47,7 @@ public class HomeworkListBean {
         public Object decorateTime;
         public int homeworkId;
         public String type;
+        public boolean delFlag;
         /*
             "startTime": "2022-06-30 13:00:00",
 			"endTime": "2022-06-30 13:45:00",

+ 1 - 0
teacher/src/main/java/com/cooleshow/teacher/bean/PianoRoomCourseInfoBean.java

@@ -82,6 +82,7 @@ public class PianoRoomCourseInfoBean {
             public String studentName;
             public String subjectName;
             public int submitHomework;
+            public boolean delFlag;
         }
     }
 }

+ 4 - 0
teacher/src/main/java/com/cooleshow/teacher/ui/course/PianoRoomCourseDetailActivity.java

@@ -96,6 +96,10 @@ public class PianoRoomCourseDetailActivity extends BaseMVPActivity<ActivityPiano
             }
             if (position < mAdapter.getData().size()) {
                 PianoRoomCourseInfoBean.StudentHomeworkListBean.RecordsBean recordsBean = mAdapter.getData().get(position);
+                if(recordsBean.delFlag){
+                    //该账号已注销
+                    return;
+                }
                 ARouter.getInstance().build(RouterPath.WorkCenter.TEACHER_WORK_ASSIGN_HOMEWORK)
                         .withString(TeacherConfig.STUDENT_ID, recordsBean.studentId)
                         .withString(TeacherConfig.COURSE_ID, mCourseId)

+ 6 - 0
teacher/src/main/java/com/cooleshow/teacher/ui/work/HomeWorkFragment.java

@@ -19,6 +19,8 @@ import com.cooleshow.base.constanst.Constants;
 import com.cooleshow.base.router.RouterPath;
 import com.cooleshow.base.ui.fragment.BaseMVPFragment;
 import com.cooleshow.base.utils.TimeUtils;
+import com.cooleshow.base.utils.ToastUtil;
+import com.cooleshow.base.utils.ToastUtils;
 import com.cooleshow.chatmodule.utils.helper.ChatHelper;
 import com.cooleshow.teacher.R;
 import com.cooleshow.teacher.adapter.HomeworkAdapter;
@@ -98,6 +100,10 @@ public class HomeWorkFragment extends BaseMVPFragment<FragmentHomeworkBinding, H
                         .navigation();
             } else {
                 //陪练课
+                if(rowsBean.delFlag){
+                    //该账号已注销
+                    return;
+                }
                 ARouter.getInstance().build(RouterPath.WorkCenter.TEACHER_WORK_ASSIGN_HOMEWORK)
                         .withString(TeacherConfig.COURSE_ID, rowsBean.courseId)
                         .withString(TeacherConfig.STUDENT_ID, rowsBean.studentId)