瀏覽代碼

教材优化

大数据与最优化研究所 1 年之前
父節點
當前提交
0796e10c9e

+ 4 - 0
src/main/java/com/xjrsoft/module/textbook/service/impl/WfTextbookSubscriptionServiceImpl.java

@@ -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());

+ 2 - 2
src/main/java/com/xjrsoft/module/textbook/vo/WfTextbookSubscriptionItemVo.java

@@ -117,8 +117,8 @@ public class WfTextbookSubscriptionItemVo {
     /**
     * 教师教参用书征订数量
     */
-    @ApiModelProperty("教师教参用书征订数量")
-    private Integer teacherReferenceNumber;
+    @ApiModelProperty("征订数量")
+    private Integer sumNumber;
     /**
     * 是否有配套教学资源(xjr_dictionary_item[judgment_method_1])
     */