Authored by caoyan

营业执照

... ... @@ -27,18 +27,18 @@ public class BusinessLicenseController {
@RequestMapping(params = "method=ufo.businessLicense.save")
@ResponseBody
public ApiResponse save(@RequestParam("uid") Integer uid,
@RequestParam("business_type") Integer businessType,
@RequestParam("business_name") String businessName,
@RequestParam("social_credit_code") String socialCreditCode,
@RequestParam("cert_name") String certName,
@RequestParam("cert_no") String certNo,
@RequestParam("start_time") String startTime,
@RequestParam("expire_time") String expireTime,
@RequestParam("license_original_image") String licenseOriginalImage,
@RequestParam("license_copy_image") String licenseCopyImage,
@RequestParam("cert_face_image") String certFaceImage,
@RequestParam("cert_reverse_image") String certReverseImage) {
public ApiResponse save(@RequestParam(value = "uid", required = true) Integer uid,
@RequestParam(value = "business_type", required = true) Integer businessType,
@RequestParam(value = "business_name", required = true) String businessName,
@RequestParam(value = "social_credit_code", required = true) String socialCreditCode,
@RequestParam(value = "cert_name", required = true) String certName,
@RequestParam(value = "cert_no", required = true) String certNo,
@RequestParam(value = "start_time", required = true) String startTime,
@RequestParam(value = "expire_time", required = true) String expireTime,
@RequestParam(value = "license_original_image", required = true) String licenseOriginalImage,
@RequestParam(value = "license_copy_image", required = true) String licenseCopyImage,
@RequestParam(value = "cert_face_image", required = true) String certFaceImage,
@RequestParam(value = "cert_reverse_image", required = true) String certReverseImage) {
BusinessLicense bl = new BusinessLicense();
bl.setUid(uid);
bl.setBusinessType(businessType);
... ... @@ -71,17 +71,14 @@ public class BusinessLicenseController {
return new ApiResponse.ApiResponseBuilder().code(400).message("记录不存在").build();
}
String auditStatusStr = "审核中";
String info = "您的资料已提交审核,认证成功后我们将会第一时间通知您。";
if(bl.getAuditStatus().intValue() == 1) {
auditStatusStr = "审核通过";
info = "您的资料已审核通过,现您可以进行商家入驻。";
}else if(bl.getAuditStatus().intValue() == 2) {
auditStatusStr = "审核不通过";
info = bl.getRejectReason();
}
return new ApiResponse.ApiResponseBuilder().code(200).message(info).data(auditStatusStr).build();
return new ApiResponse.ApiResponseBuilder().code(200).message(info).data(bl.getAuditStatus()).build();
}
private long convertDateToLong(String date) {
... ...