|
@@ -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) {
|