Przeglądaj źródła

考级报名列表、导出

周箭河 5 lat temu
rodzic
commit
a73db75e40

+ 14 - 0
mec-biz/src/main/java/com/ym/mec/biz/dal/entity/DegreeRegistration.java

@@ -108,6 +108,12 @@ public class DegreeRegistration {
      */
     private Integer status;
 
+
+    /**
+     * 0-未支付 1-支付中 2-支付中
+     */
+    private String statusStr;
+
     /**
      *  是否重新支付
      */
@@ -265,4 +271,12 @@ public class DegreeRegistration {
     public void setTheoryCert(String theoryCert) {
         this.theoryCert = theoryCert;
     }
+
+    public String getStatusStr() {
+        return statusStr;
+    }
+
+    public void setStatusStr(String statusStr) {
+        this.statusStr = statusStr;
+    }
 }

+ 7 - 2
mec-web/src/main/java/com/ym/mec/web/controller/ExportController.java

@@ -1591,10 +1591,15 @@ public class ExportController extends BaseController {
                 } else {
                     row.setGender("女");
                 }
+                if(row.getStatus().equals(2)){
+                    row.setStatusStr("缴费");
+                } else {
+                    row.setStatusStr("报名");
+                }
             }
 
-            String[] header = {"名字", "性别", "身份证号", "城市", "学校", "乐器", "考试级别", "乐理级别", "乐理级别证书", "家长联系电话", "考级费用", "乐理费用", "备注"};
-            String[] body = {"name", "gender", "idcard", "city", "school", "subject", "level", "theoryLevel", "theoryCert", "mobile", "money", "theoryMoney", "memo"};
+            String[] header = {"名字", "性别", "身份证号", "城市", "学校", "乐器", "考试级别", "乐理级别", "乐理级别证书", "家长联系电话", "考级费用", "乐理费用", "备注","状态"};
+            String[] body = {"name", "gender", "idcard", "city", "school", "subject", "level", "theoryLevel", "theoryCert", "mobile", "money", "theoryMoney", "memo","statusStr"};
             HSSFWorkbook workbook = POIUtil.exportExcel(header, body, pageList.getRows());
             response.setContentType("application/octet-stream");
             response.setHeader("Content-Disposition", "attachment;filename=lender-" + DateUtil.getDate(new Date()) + ".xls");