publish
This commit is contained in:
@@ -18,6 +18,7 @@ import io.swagger.annotations.ApiParam;
|
|||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -126,4 +127,11 @@ public class AppCompanyController extends BaseController
|
|||||||
companyService.register(company);
|
companyService.register(company);
|
||||||
return AjaxResult.success();
|
return AjaxResult.success();
|
||||||
}
|
}
|
||||||
|
@GetMapping("/register/status")
|
||||||
|
@ApiOperation("招聘企业登记进度查询")
|
||||||
|
public AjaxResult registerStatus()
|
||||||
|
{
|
||||||
|
Company status = companyService.registerStatus();
|
||||||
|
return AjaxResult.success(status);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@@ -72,4 +72,6 @@ public class Company extends BaseEntity
|
|||||||
private String contactPersonPhone;
|
private String contactPersonPhone;
|
||||||
@ApiModelProperty("审核状态 0审核中 1审核通过 2审核未通过")
|
@ApiModelProperty("审核状态 0审核中 1审核通过 2审核未通过")
|
||||||
private Integer status;
|
private Integer status;
|
||||||
|
@ApiModelProperty("审核未通过原因")
|
||||||
|
private String notPassReason;
|
||||||
}
|
}
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
package com.ruoyi.cms.service;
|
package com.ruoyi.cms.service;
|
||||||
|
|
||||||
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import com.ruoyi.cms.domain.Company;
|
import com.ruoyi.cms.domain.Company;
|
||||||
import com.ruoyi.cms.domain.CompanyCard;
|
import com.ruoyi.cms.domain.CompanyCard;
|
||||||
@@ -70,4 +71,6 @@ public interface ICompanyService
|
|||||||
void importLabelBank();
|
void importLabelBank();
|
||||||
|
|
||||||
void register(Company company);
|
void register(Company company);
|
||||||
|
|
||||||
|
Company registerStatus();
|
||||||
}
|
}
|
||||||
|
@@ -3,10 +3,7 @@ package com.ruoyi.cms.service.impl;
|
|||||||
import java.io.FileInputStream;
|
import java.io.FileInputStream;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
import java.util.ArrayList;
|
import java.util.*;
|
||||||
import java.util.Collections;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Arrays;
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||||
import com.github.pagehelper.PageHelper;
|
import com.github.pagehelper.PageHelper;
|
||||||
@@ -225,4 +222,11 @@ public class CompanyServiceImpl extends ServiceImpl<CompanyMapper,Company> imple
|
|||||||
}
|
}
|
||||||
company.setStatus(0);
|
company.setStatus(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Company registerStatus() {
|
||||||
|
Long userId = SecurityUtils.getUserId();
|
||||||
|
Company company = companyMapper.selectOne(Wrappers.<Company>lambdaQuery().eq(Company::getUserId, userId).orderByDesc(Company::getUpdateTime));
|
||||||
|
return company;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@@ -28,6 +28,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<result property="contactPerson" column="contact_person" />
|
<result property="contactPerson" column="contact_person" />
|
||||||
<result property="contactPersonPhone" column="contact_person_phone" />
|
<result property="contactPersonPhone" column="contact_person_phone" />
|
||||||
<result property="status" column="status" />
|
<result property="status" column="status" />
|
||||||
|
<result property="notPassReason" column="not_pass_reason" />
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
<sql id="selectCompanyVo">
|
<sql id="selectCompanyVo">
|
||||||
|
Reference in New Issue
Block a user