Compare View
Commits (2)
Showing
3 changed files
Show diff stats
app/src/main/java/com/hjx/parent/fragment/TeacherFragment.java
| ... | ... | @@ -140,7 +140,7 @@ public class TeacherFragment extends BaseBindingFragment<FragmentTeacherBinding> |
| 140 | 140 | item.setText(R.id.tv_name, record.getStuName()); |
| 141 | 141 | item.setText(R.id.tv_date, "提问时间:" + new SimpleDateFormat("yyyy-MM-dd HH:mm").format(record.getAskTime())); |
| 142 | 142 | if (TextUtils.isEmpty(record.getPhoto())) { |
| 143 | - item.setImageResource(R.id.iv_student, record.getGender() == 0 ? R.mipmap.ic_avatar_male : R.mipmap.ic_avatar_female); | |
| 143 | + item.setImageResource(R.id.iv_student, "男".equals(record.getGender()) ? R.mipmap.ic_avatar_male : R.mipmap.ic_avatar_female); | |
| 144 | 144 | } else { |
| 145 | 145 | RoundedCorners roundedCorners = new RoundedCorners(ScreenUtils.dpToPx(getContext(), 45)); |
| 146 | 146 | RequestOptions options = RequestOptions.bitmapTransform(roundedCorners); | ... | ... |
libs/common/src/main/java/com/prws/common/bean/Record.java
| ... | ... | @@ -57,7 +57,7 @@ public class Record { |
| 57 | 57 | private String questionUrl; |
| 58 | 58 | @SerializedName("askTime") |
| 59 | 59 | private Date askTime; |
| 60 | - private int gender; | |
| 60 | + private String gender; | |
| 61 | 61 | |
| 62 | 62 | public static class KeyValue { |
| 63 | 63 | @SerializedName("Key") |
| ... | ... | @@ -82,11 +82,11 @@ public class Record { |
| 82 | 82 | } |
| 83 | 83 | } |
| 84 | 84 | |
| 85 | - public void setGender(int gender) { | |
| 85 | + public void setGender(String gender) { | |
| 86 | 86 | this.gender = gender; |
| 87 | 87 | } |
| 88 | 88 | |
| 89 | - public int getGender() { | |
| 89 | + public String getGender() { | |
| 90 | 90 | return gender; |
| 91 | 91 | } |
| 92 | 92 | ... | ... |
libs/common/src/main/java/com/prws/common/bean/Student.java
| ... | ... | @@ -8,24 +8,22 @@ public class Student implements Serializable { |
| 8 | 8 | |
| 9 | 9 | public String stuId; |
| 10 | 10 | public String stuName; |
| 11 | - public int gender; | |
| 11 | + public String gender; | |
| 12 | 12 | public String term; |
| 13 | 13 | public String account; |
| 14 | 14 | public String nickName; |
| 15 | 15 | public String address; |
| 16 | 16 | public String phone; |
| 17 | 17 | public String photo; |
| 18 | - public int fromType; | |
| 19 | - public int gradeId; | |
| 20 | 18 | public String oriSchool; |
| 21 | 19 | public String parentPhone; |
| 22 | 20 | public String parentIdentity; |
| 23 | 21 | public String teacherName; |
| 24 | - public int teacherId; | |
| 25 | - public String teacherAvatar; | |
| 26 | 22 | public String grade; |
| 27 | - public String teacherIdentity; | |
| 28 | - public int sex; | |
| 23 | + public int isIntention; | |
| 24 | + | |
| 25 | + // not exist | |
| 26 | + public String teacherAvatar; | |
| 29 | 27 | public Integer state; |
| 30 | 28 | |
| 31 | 29 | @NonNull | ... | ... |