Bladeren bron

企业认证状态修改

yanliming 4 jaren geleden
bovenliggende
commit
9cd3de7b3b

+ 1 - 1
common/src/main/java/com/jpsoft/employment/modules/base/entity/Company.java

@@ -61,7 +61,7 @@ public class Company {
         @ApiModelProperty(value = "删除标示")
     private Boolean delFlag;
         @ApiModelProperty(value = "企业认证状态(0:未提交,1:审核中,2:已认证,3:认证失败)")
-    private Boolean isCertification;
+    private String isCertification;
         @ApiModelProperty(value = "信用代码")
     private String creditCode;
         @ApiModelProperty(value = "法人代表")

+ 2 - 2
common/src/main/java/com/jpsoft/employment/modules/base/service/impl/EnterpriseCertificationApproveServiceImpl.java

@@ -48,8 +48,8 @@ public class EnterpriseCertificationApproveServiceImpl implements EnterpriseCert
 		if(affectCount>0){
 			EnterpriseCertificationApprove item = new EnterpriseCertificationApprove();
 			item.setCompanyId(company.getId());
-			item.setCreateBy(company.getCreateBy());
-			item.setCreateTime(company.getCreateTime());
+			item.setCreateBy(company.getUpdateBy());
+			item.setCreateTime(company.getUpdateTime());
 
 			count = enterpriseCertificationApproveDAO.insert(item);
 		}

+ 1 - 1
common/src/main/java/com/jpsoft/employment/modules/job/entity/Recruitment.java

@@ -29,7 +29,7 @@ public class Recruitment {
     private String companyScaleN;
     private String companyIndustry;
     private String companyIndustryN;
-    private Boolean isCertification;//是否认证企业
+    private String isCertification;//是否认证企业
         @ApiModelProperty(value = "标题")
     private String title;
         @ApiModelProperty(value = "招聘所属地区")

+ 3 - 3
web/src/main/java/com/jpsoft/employment/modules/base/controller/EnterpriseCertificationApproveController.java

@@ -80,9 +80,9 @@ public class EnterpriseCertificationApproveController {
             company.setCreditCode(dto.getCreditCode());
             company.setLegalPerson(dto.getLegalPerson());
             company.setBusinessLicenseUrl(dto.getBusinessLicenseUrl());
-            company.setCreateBy(subject);
-            company.setCreateTime(new Date());
-            company.setIsCertification(false);
+            company.setUpdateBy(subject);
+            company.setUpdateTime(new Date());
+            company.setIsCertification("1");//改状态为正在审核
 
 
             int affectCount = enterpriseCertificationApproveService.updateCompany(company);