Browse Source

后台代码修改

mashengyi 3 years ago
parent
commit
a4b90e205a

+ 10 - 0
src/main/java/com/jkcredit/invoice/service/lowerservice/impl/CustomerLowerServiceImpl.java

@@ -95,6 +95,16 @@ public class CustomerLowerServiceImpl implements CustomeLowerService {
             }
 
 
+            if(org.apache.commons.lang3.StringUtils.isNotBlank(customerRec.getBase64Str())){
+
+                 int length = customerRec.getBase64Str().length() / 1024 / 1024;
+                 if(length >= 1){
+                     res.append("#"+customerRec.getCompanyName()+"备案信息协议文件不能大于1M;#");
+                     return;
+                 }
+            }
+
+
             if(StringUtils.isEmpty(customerRec.getCompanyName()) || StringUtils.isEmpty(customerRec.getCompanyReferencenum())){
                 res.append("企业备案名称或税号为空");
                 return;