publish
This commit is contained in:
@@ -111,12 +111,19 @@ public class AppCompanyController extends BaseController
|
||||
}
|
||||
@GetMapping("/label")
|
||||
@ApiOperation("公司标签下的公司")
|
||||
public TableDataInfo label(LabelQuery labelQuery)
|
||||
public TableDataInfo label(@RequestBody LabelQuery labelQuery)
|
||||
{
|
||||
CompanyCard companyCard = companyCardMapper.selectById(labelQuery.getCardId());
|
||||
startPage();
|
||||
List<Company> companyList = companyService.label(companyCard,labelQuery);
|
||||
return getDataTable(companyList);
|
||||
}
|
||||
|
||||
@PostMapping("/register")
|
||||
@ApiOperation("招聘企业登记")
|
||||
@BussinessLog(title = "招聘企业登记")
|
||||
public AjaxResult register(Company company)
|
||||
{
|
||||
companyService.register(company);
|
||||
return AjaxResult.success();
|
||||
}
|
||||
}
|
||||
|
@@ -26,22 +26,18 @@ public class Company extends BaseEntity
|
||||
@TableId(value = "company_id",type = IdType.AUTO)
|
||||
@ApiModelProperty("公司id")
|
||||
private Long companyId;
|
||||
|
||||
/** 单位名称 */
|
||||
@Excel(name = "单位名称")
|
||||
@ApiModelProperty("单位名称")
|
||||
private String name;
|
||||
|
||||
/** 单位地点 */
|
||||
@Excel(name = "单位地点")
|
||||
@ApiModelProperty("单位地点")
|
||||
private String location;
|
||||
|
||||
/** 主要行业 */
|
||||
@Excel(name = "主要行业")
|
||||
@ApiModelProperty("主要行业")
|
||||
private String industry;
|
||||
|
||||
/** 单位规模 对应字典scale */
|
||||
@Excel(name = "单位规模 对应字典scale")
|
||||
@ApiModelProperty("单位规模 对应字典scale")
|
||||
@@ -60,4 +56,20 @@ public class Company extends BaseEntity
|
||||
@TableField(exist = false)
|
||||
@ApiModelProperty("是否收藏")
|
||||
private Integer isCollection;
|
||||
@ApiModelProperty("所属用户id")
|
||||
private Long userId;
|
||||
@ApiModelProperty("营业执照Url")
|
||||
private String businessLicenseUrl;
|
||||
@ApiModelProperty("法人身份证复印件-正面")
|
||||
private String idCardPictureUrl;
|
||||
@ApiModelProperty("法人身份证复印件-反面")
|
||||
private String idCardPictureBackUrl;
|
||||
@ApiModelProperty("授权代理书")
|
||||
private String powerOfAttorneyUrl;
|
||||
@ApiModelProperty("联系人")
|
||||
private String contactPerson;
|
||||
@ApiModelProperty("联系人电话")
|
||||
private String contactPersonPhone;
|
||||
@ApiModelProperty("审核状态 0审核中 1审核通过 2审核未通过")
|
||||
private Integer status;
|
||||
}
|
||||
|
@@ -68,4 +68,6 @@ public interface ICompanyService
|
||||
void importLabel();
|
||||
|
||||
void importLabelBank();
|
||||
|
||||
void register(Company company);
|
||||
}
|
||||
|
@@ -215,4 +215,14 @@ public class CompanyServiceImpl extends ServiceImpl<CompanyMapper,Company> imple
|
||||
companyLabelMapper.insert(label);
|
||||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
public void register(Company company) {
|
||||
Long userId = SecurityUtils.getUserId();
|
||||
company.setUserId(userId);
|
||||
if(companyMapper.selectCount(Wrappers.<Company>lambdaQuery().eq(Company::getName, company.getName()).in(Company::getStatus,Arrays.asList(0,1)))>0){
|
||||
throw new ServiceException(company.getName()+"已经存在");
|
||||
}
|
||||
company.setStatus(0);
|
||||
}
|
||||
}
|
||||
|
@@ -20,6 +20,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<result property="description" column="description" />
|
||||
<result property="nature" column="nature" />
|
||||
<result property="totalRecruitment" column="total_recruitment" />
|
||||
<result property="userId" column="user_id" />
|
||||
<result property="businessLicenseUrl" column="business_license_url" />
|
||||
<result property="idCardPictureUrl" column="id_card_picture_url" />
|
||||
<result property="idCardPictureBackUrl" column="id_card_picture_back_url" />
|
||||
<result property="powerOfAttorneyUrl" column="power_of_attorneyUrl" />
|
||||
<result property="contactPerson" column="contact_person" />
|
||||
<result property="contactPersonPhone" column="contact_person_phone" />
|
||||
<result property="status" column="status" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectCompanyVo">
|
||||
|
Reference in New Issue
Block a user