Selaa lähdekoodia

1.特审资料下载

liuhy 2 vuotta sitten
vanhempi
commit
2de8ba9d60

+ 42 - 0
tnc-sms/src/main/java/org/jeecg/modules/smscheck/configs/ObjectComparator.java

@@ -98,6 +98,48 @@ public class ObjectComparator {
         return urlDatas;
     }
 
+    /**
+     * 特审复开批量文件下载
+     * @param o
+     * @return
+     */
+    public static  List<UrlData> downLoadSpecial(Object o){
+        if (o==null){
+            return null;
+        }
+        List<UrlData> urlDatas = new ArrayList<>();
+        try {
+            Class<?> clazz =  o.getClass();
+            Field[] fields = clazz.getDeclaredFields();
+            for (Field field : fields) {
+                field.setAccessible(true);
+                if (field.isAnnotationPresent(MyCustomAnnotation.class)) {
+                    Object value = field.get(o);
+                    MyCustomAnnotation annotation = field.getAnnotation(MyCustomAnnotation.class);
+                    if (value!=null && !((String) value).isEmpty()){
+                        String[] dataStr = ((String) value).split(",");
+                        List<FileStaticUrl> urls =new ArrayList<>();
+                        for (String url : dataStr) {
+                            FileStaticUrl fileStaticUrl = new FileStaticUrl();
+                            String fileName = url.split("/")[url.split("/").length - 1];
+                            fileStaticUrl.setFileName(fileName);
+                            fileStaticUrl.setFileStaticUrl(url);
+                            urls.add(fileStaticUrl);
+                        }
+                        UrlData urlData = new  UrlData();
+                        urlData.setFileId(field.getAnnotation(ApiModelProperty.class).value());
+                        urlData.setFileStaticUrl(urls);
+                        urlDatas.add(urlData);
+                    }
+                }
+            }
+        } catch (Exception e) {
+            e.printStackTrace();
+        }
+        return urlDatas;
+    }
+
+
 
     static class UrlStrObj{
         private String urlBase;

Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 307 - 287
tnc-sms/src/main/java/org/jeecg/modules/smscheck/controller/SmsCheckCustomerInfoController.java


+ 13 - 13
tnc-sms/src/main/java/org/jeecg/modules/smscheck/entity/SpecialExamination.java

@@ -55,43 +55,43 @@ public class SpecialExamination implements Serializable {
 
     @ApiModelProperty(value = "用户标签")
     private Integer userLable;
-
-    @ApiModelProperty(value = "身份证照片/经办人证件")
+    @MyCustomAnnotation
+    @ApiModelProperty(value = "身份证照片-经办人证件")
     private String idCard;
     private String idCardRemark;
-
-    @ApiModelProperty(value = "手持身份证//经办人手持身份证")
+    @MyCustomAnnotation
+    @ApiModelProperty(value = "经办人-手持身份证")
     private String handCertificate;
     private String handCertificateRemark;
-
+    @MyCustomAnnotation
     @ApiModelProperty(value = "号卡")
     private String numberCard;
     private String numberCardRemark;
-
+    @MyCustomAnnotation
     @ApiModelProperty(value = "防诈骗承诺涵")
     private String letterCommitment;
     private String letterCommitmentRemark;
-
+    @MyCustomAnnotation
     @ApiModelProperty(value = "营业执照副本")
     private String businessLicense;
     private String businessLicenseRemark;
-
+    @MyCustomAnnotation
     @ApiModelProperty(value = "介绍信")
     private String letterIntroduction;
     private String letterIntroductionRemark;
-
+    @MyCustomAnnotation
     @ApiModelProperty(value = "使用人证件照")
     private String userCertificate;
     private String userCertificateRemark;
-
+    @MyCustomAnnotation
     @ApiModelProperty(value = "防诈骗承诺涵")
     private String fraudPrevention;
     private String fraudPreventionRemark;
-
+    @MyCustomAnnotation
     @ApiModelProperty(value = "消费凭证")
     private String consumptionVoucher;
     private String consumptionVoucherRemark;
-
+    @MyCustomAnnotation
     @ApiModelProperty(value = "承诺视频")
     private String commitmentVideo;
     private String commitmentVideoRemark;
@@ -129,7 +129,7 @@ public class SpecialExamination implements Serializable {
 
     @ApiModelProperty(value = "系统实名制截图备注")
     private String nameFindComplianceRemark;
-
+    @MyCustomAnnotation
     @ApiModelProperty(value = "特审单")
     private String specialReviewForm;
     private String specialReviewFormRemark;

Kaikkia tiedostoja ei voida näyttää, sillä liian monta tiedostoa muuttui tässä diffissä