|
|
@@ -246,15 +246,19 @@ public class WfTextbookSubscriptionServiceImpl extends MPJBaseServiceImpl<WfText
|
|
|
int stuSum = 0;
|
|
|
int teaSum = 0;
|
|
|
for (WfTextbookSubscriptionItemVo w : itemList) {
|
|
|
+ int sum = 0;
|
|
|
if (!classIdList.isEmpty()) {
|
|
|
w.setClassNum(classIdList.size());
|
|
|
}
|
|
|
if (w.getStudentSubscriptionNumber() != null) {
|
|
|
stuSum += w.getStudentSubscriptionNumber();
|
|
|
+ sum += w.getStudentSubscriptionNumber();
|
|
|
}
|
|
|
if (w.getTeacherSubscriptionNumber() != null) {
|
|
|
teaSum += w.getTeacherSubscriptionNumber();
|
|
|
+ sum += w.getTeacherSubscriptionNumber();
|
|
|
}
|
|
|
+ w.setSumNumber(sum);
|
|
|
}
|
|
|
|
|
|
wfTextbookSubscriptionVo.setClassIdsCn(sb.toString());
|