Commit 7ba87854ba4831b6cbef7a3630a08e2d018c41fb
1 parent
508a582a75
Exists in
master
数据逻辑调整
Showing
1 changed file
with
3 additions
and
0 deletions
Show diff stats
app/src/main/java/com/hjx/parent/HomeworkFeedbackActivity.java
... | ... | @@ -152,8 +152,10 @@ public class HomeworkFeedbackActivity extends BaseRxActivity<ActivityHomeworkFee |
152 | 152 | if (mList == null || mList.isEmpty()) return null; |
153 | 153 | List<CorrectionSer> maps = new ArrayList<>(); |
154 | 154 | for (HomeWork item: mList) { |
155 | + if (item.correction == 2) continue; | |
155 | 156 | maps.add(item.toSer()); |
156 | 157 | } |
158 | + if (maps.isEmpty()) return null; | |
157 | 159 | Gson gson = new Gson(); |
158 | 160 | return gson.toJson(maps); |
159 | 161 | } |
... | ... | @@ -168,6 +170,7 @@ public class HomeworkFeedbackActivity extends BaseRxActivity<ActivityHomeworkFee |
168 | 170 | Map<String, Integer> normalTimes = new HashMap<>(); |
169 | 171 | Gson gson = new Gson(); |
170 | 172 | for (HomeWork homeWork: mList) { |
173 | + if (homeWork.correction == 2) continue; | |
171 | 174 | homeWork.formatPoints(gson); |
172 | 175 | |
173 | 176 | set.addAll(homeWork.pointsObj); | ... | ... |