Просмотр исходного кода

邀请注册营业执照增加默认值0的判断

hejq 7 лет назад
Родитель
Сommit
5f3e20059e

+ 5 - 4
src/main/java/com/uas/platform/b2b/publicapi/controller/InviteRecordController.java

@@ -25,8 +25,8 @@ import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RequestMethod;
 import org.springframework.web.bind.annotation.RestController;
 
-import java.io.UnsupportedEncodingException;
-import java.net.URLDecoder;
+import java.io.*;
+import java.net.*;
 import java.text.SimpleDateFormat;
 import java.util.Date;
 import java.util.List;
@@ -278,10 +278,11 @@ public class InviteRecordController {
      *
      * @param enUU 企业UU
      * @param businessCode 营业执照
-     * @return
+     * @return 企业UU
      */
     private Long checkByBusinessCode(Long enUU, String businessCode) {
-        if (null != businessCode) {
+        String defaultCode = "0";
+        if (null != businessCode && defaultCode != businessCode) {
             Enterprise enterprise = enterpriseService.findByenBussinessCode(businessCode);
             enUU = enterprise.getUu();
         }