Showing
1 changed file
with
13 additions
and
16 deletions
@@ -27,18 +27,18 @@ public class BusinessLicenseController { | @@ -27,18 +27,18 @@ public class BusinessLicenseController { | ||
27 | 27 | ||
28 | @RequestMapping(params = "method=ufo.businessLicense.save") | 28 | @RequestMapping(params = "method=ufo.businessLicense.save") |
29 | @ResponseBody | 29 | @ResponseBody |
30 | - public ApiResponse save(@RequestParam("uid") Integer uid, | ||
31 | - @RequestParam("business_type") Integer businessType, | ||
32 | - @RequestParam("business_name") String businessName, | ||
33 | - @RequestParam("social_credit_code") String socialCreditCode, | ||
34 | - @RequestParam("cert_name") String certName, | ||
35 | - @RequestParam("cert_no") String certNo, | ||
36 | - @RequestParam("start_time") String startTime, | ||
37 | - @RequestParam("expire_time") String expireTime, | ||
38 | - @RequestParam("license_original_image") String licenseOriginalImage, | ||
39 | - @RequestParam("license_copy_image") String licenseCopyImage, | ||
40 | - @RequestParam("cert_face_image") String certFaceImage, | ||
41 | - @RequestParam("cert_reverse_image") String certReverseImage) { | 30 | + public ApiResponse save(@RequestParam(value = "uid", required = true) Integer uid, |
31 | + @RequestParam(value = "business_type", required = true) Integer businessType, | ||
32 | + @RequestParam(value = "business_name", required = true) String businessName, | ||
33 | + @RequestParam(value = "social_credit_code", required = true) String socialCreditCode, | ||
34 | + @RequestParam(value = "cert_name", required = true) String certName, | ||
35 | + @RequestParam(value = "cert_no", required = true) String certNo, | ||
36 | + @RequestParam(value = "start_time", required = true) String startTime, | ||
37 | + @RequestParam(value = "expire_time", required = true) String expireTime, | ||
38 | + @RequestParam(value = "license_original_image", required = true) String licenseOriginalImage, | ||
39 | + @RequestParam(value = "license_copy_image", required = true) String licenseCopyImage, | ||
40 | + @RequestParam(value = "cert_face_image", required = true) String certFaceImage, | ||
41 | + @RequestParam(value = "cert_reverse_image", required = true) String certReverseImage) { | ||
42 | BusinessLicense bl = new BusinessLicense(); | 42 | BusinessLicense bl = new BusinessLicense(); |
43 | bl.setUid(uid); | 43 | bl.setUid(uid); |
44 | bl.setBusinessType(businessType); | 44 | bl.setBusinessType(businessType); |
@@ -71,17 +71,14 @@ public class BusinessLicenseController { | @@ -71,17 +71,14 @@ public class BusinessLicenseController { | ||
71 | return new ApiResponse.ApiResponseBuilder().code(400).message("记录不存在").build(); | 71 | return new ApiResponse.ApiResponseBuilder().code(400).message("记录不存在").build(); |
72 | } | 72 | } |
73 | 73 | ||
74 | - String auditStatusStr = "审核中"; | ||
75 | String info = "您的资料已提交审核,认证成功后我们将会第一时间通知您。"; | 74 | String info = "您的资料已提交审核,认证成功后我们将会第一时间通知您。"; |
76 | if(bl.getAuditStatus().intValue() == 1) { | 75 | if(bl.getAuditStatus().intValue() == 1) { |
77 | - auditStatusStr = "审核通过"; | ||
78 | info = "您的资料已审核通过,现您可以进行商家入驻。"; | 76 | info = "您的资料已审核通过,现您可以进行商家入驻。"; |
79 | }else if(bl.getAuditStatus().intValue() == 2) { | 77 | }else if(bl.getAuditStatus().intValue() == 2) { |
80 | - auditStatusStr = "审核不通过"; | ||
81 | info = bl.getRejectReason(); | 78 | info = bl.getRejectReason(); |
82 | } | 79 | } |
83 | 80 | ||
84 | - return new ApiResponse.ApiResponseBuilder().code(200).message(info).data(auditStatusStr).build(); | 81 | + return new ApiResponse.ApiResponseBuilder().code(200).message(info).data(bl.getAuditStatus()).build(); |
85 | } | 82 | } |
86 | 83 | ||
87 | private long convertDateToLong(String date) { | 84 | private long convertDateToLong(String date) { |
-
Please register or login to post a comment