|
@@ -4,6 +4,7 @@ import java.text.ParseException; |
|
@@ -4,6 +4,7 @@ import java.text.ParseException; |
4
|
import java.text.SimpleDateFormat;
|
4
|
import java.text.SimpleDateFormat;
|
5
|
import java.util.Date;
|
5
|
import java.util.Date;
|
6
|
|
6
|
|
|
|
7
|
+import org.apache.commons.lang3.StringUtils;
|
7
|
import org.slf4j.Logger;
|
8
|
import org.slf4j.Logger;
|
8
|
import org.slf4j.LoggerFactory;
|
9
|
import org.slf4j.LoggerFactory;
|
9
|
import org.springframework.beans.factory.annotation.Autowired;
|
10
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -39,6 +40,12 @@ public class BusinessLicenseController { |
|
@@ -39,6 +40,12 @@ public class BusinessLicenseController { |
39
|
@RequestParam(value = "license_copy_image", required = true) String licenseCopyImage,
|
40
|
@RequestParam(value = "license_copy_image", required = true) String licenseCopyImage,
|
40
|
@RequestParam(value = "cert_face_image", required = true) String certFaceImage,
|
41
|
@RequestParam(value = "cert_face_image", required = true) String certFaceImage,
|
41
|
@RequestParam(value = "cert_reverse_image", required = true) String certReverseImage) {
|
42
|
@RequestParam(value = "cert_reverse_image", required = true) String certReverseImage) {
|
|
|
43
|
+ if(StringUtils.isEmpty(businessName) || StringUtils.isEmpty(socialCreditCode) || StringUtils.isEmpty(certName) || StringUtils.isEmpty(certNo)
|
|
|
44
|
+ || StringUtils.isEmpty(startTime) || StringUtils.isEmpty(expireTime) || StringUtils.isEmpty(licenseOriginalImage)
|
|
|
45
|
+ || StringUtils.isEmpty(licenseCopyImage) || StringUtils.isEmpty(certFaceImage) || StringUtils.isEmpty(certReverseImage)
|
|
|
46
|
+ || null == uid || null == businessType) {
|
|
|
47
|
+ return new ApiResponse.ApiResponseBuilder().code(500).message("有参数为空").build();
|
|
|
48
|
+ }
|
42
|
BusinessLicense bl = new BusinessLicense();
|
49
|
BusinessLicense bl = new BusinessLicense();
|
43
|
bl.setUid(uid);
|
50
|
bl.setUid(uid);
|
44
|
bl.setBusinessType(businessType);
|
51
|
bl.setBusinessType(businessType);
|