浏览代码

修改部分问题

Pq 6 月之前
父节点
当前提交
f20c683b22

+ 2 - 1
student/src/main/java/com/cooleshow/student/ui/work/HomeWorkFragment.java

@@ -295,12 +295,13 @@ public class HomeWorkFragment extends BaseMVPFragment<FragmentHomeworkBinding, H
     private void reBuildFilter(Date date) {
     private void reBuildFilter(Date date) {
         currentSelectDate = date != null ? date : TimeUtils.getNowDate();
         currentSelectDate = date != null ? date : TimeUtils.getNowDate();
         String targetDateTimeStr = TimeUtils.date2String(currentSelectDate, TimeUtils.getSafeDateFormat("yyyy-MM"));
         String targetDateTimeStr = TimeUtils.date2String(currentSelectDate, TimeUtils.getSafeDateFormat("yyyy-MM"));
+        String targetDateTimeStr2 = TimeUtils.date2String(currentSelectDate, TimeUtils.getSafeDateFormat("yyyy年MM月"));
         if (TextUtils.equals(targetDateTimeStr, currentFilterDate)) {
         if (TextUtils.equals(targetDateTimeStr, currentFilterDate)) {
             //防止重复条件触发
             //防止重复条件触发
             return;
             return;
         }
         }
         currentFilterDate = targetDateTimeStr;
         currentFilterDate = targetDateTimeStr;
         currentPage = 1;
         currentPage = 1;
-        mViewBinding.tvDate.setText(currentFilterDate);
+        mViewBinding.tvDate.setText(targetDateTimeStr2);
     }
     }
 }
 }

+ 3 - 2
teacher/src/main/java/com/cooleshow/teacher/ui/comment/MineCourseCommentFragment.java

@@ -156,14 +156,15 @@ public class MineCourseCommentFragment extends BaseMVPFragment<FragmentCourseCom
      */
      */
     private void reBuildFilter(Date date, String targetStr) {
     private void reBuildFilter(Date date, String targetStr) {
         currentSelectDate = date != null ? date : TimeUtils.getNowDate();
         currentSelectDate = date != null ? date : TimeUtils.getNowDate();
-        String targetDateTimeStr = TimeUtils.date2String(currentSelectDate, TimeUtils.getSafeDateFormat("yyyy年MM月"));
+        String targetDateTimeStr = TimeUtils.date2String(currentSelectDate, TimeUtils.getSafeDateFormat("yyyy-MM"));
+        String targetDateTimeStr2 = TimeUtils.date2String(currentSelectDate, TimeUtils.getSafeDateFormat("yyyy年MM月"));
         if (TextUtils.equals(targetDateTimeStr, currentFilterDate) && TextUtils.equals(targetStr, currentStudentName)) {
         if (TextUtils.equals(targetDateTimeStr, currentFilterDate) && TextUtils.equals(targetStr, currentStudentName)) {
             //防止重复条件触发
             //防止重复条件触发
             return;
             return;
         }
         }
         currentStudentName = targetStr;
         currentStudentName = targetStr;
         currentFilterDate = targetDateTimeStr;
         currentFilterDate = targetDateTimeStr;
-        mViewBinding.tvTime.setText(currentFilterDate);
+        mViewBinding.tvTime.setText(targetDateTimeStr2);
     }
     }
 
 
     private void queryComment(boolean isShowLoading) {
     private void queryComment(boolean isShowLoading) {

+ 3 - 2
teacher/src/main/java/com/cooleshow/teacher/ui/comment/ReceivedCommentFragment.java

@@ -149,14 +149,15 @@ public class ReceivedCommentFragment extends BaseMVPFragment<FragmentCourseRecei
      */
      */
     private void reBuildFilter(Date date, String targetStr) {
     private void reBuildFilter(Date date, String targetStr) {
         currentSelectDate = date != null ? date : TimeUtils.getNowDate();
         currentSelectDate = date != null ? date : TimeUtils.getNowDate();
-        String targetDateTimeStr = TimeUtils.date2String(currentSelectDate, TimeUtils.getSafeDateFormat("yyyy年MM月"));
+        String targetDateTimeStr = TimeUtils.date2String(currentSelectDate, TimeUtils.getSafeDateFormat("yyyy-MM"));
+        String targetDateTimeStr2 = TimeUtils.date2String(currentSelectDate, TimeUtils.getSafeDateFormat("yyyy年MM月"));
         if (TextUtils.equals(targetDateTimeStr, currentFilterDate) && TextUtils.equals(targetStr, currentStudentName)) {
         if (TextUtils.equals(targetDateTimeStr, currentFilterDate) && TextUtils.equals(targetStr, currentStudentName)) {
             //防止重复条件触发
             //防止重复条件触发
             return;
             return;
         }
         }
         currentStudentName = targetStr;
         currentStudentName = targetStr;
         currentFilterDate = targetDateTimeStr;
         currentFilterDate = targetDateTimeStr;
-        mViewBinding.tvTime.setText(currentFilterDate);
+        mViewBinding.tvTime.setText(targetDateTimeStr2);
     }
     }
 
 
     private void queryComment(boolean isShowLoading) {
     private void queryComment(boolean isShowLoading) {

+ 3 - 2
teacher/src/main/java/com/cooleshow/teacher/ui/work/HomeWorkFragment.java

@@ -305,13 +305,14 @@ public class HomeWorkFragment extends BaseMVPFragment<FragmentHomeworkBinding, H
 
 
     private void reBuildFilter(Date date) {
     private void reBuildFilter(Date date) {
         currentSelectDate = date != null ? date : TimeUtils.getNowDate();
         currentSelectDate = date != null ? date : TimeUtils.getNowDate();
-        String targetDateTimeStr = TimeUtils.date2String(currentSelectDate, TimeUtils.getSafeDateFormat("yyyy年MM月"));
+        String targetDateTimeStr = TimeUtils.date2String(currentSelectDate, TimeUtils.getSafeDateFormat("yyyy-MM"));
+        String targetDateTimeStr2 = TimeUtils.date2String(currentSelectDate, TimeUtils.getSafeDateFormat("yyyy年MM月"));
         if (TextUtils.equals(targetDateTimeStr, currentFilterDate)) {
         if (TextUtils.equals(targetDateTimeStr, currentFilterDate)) {
             //防止重复条件触发
             //防止重复条件触发
             return;
             return;
         }
         }
         currentFilterDate = targetDateTimeStr;
         currentFilterDate = targetDateTimeStr;
         currentPage = 1;
         currentPage = 1;
-        mViewBinding.tvDate.setText(currentFilterDate);
+        mViewBinding.tvDate.setText(targetDateTimeStr2);
     }
     }
 }
 }