移动端-添加人力资源机构列表查询

This commit is contained in:
chenshaohua
2026-07-11 21:04:36 +08:00
parent 52a528f118
commit 78ecff8435
4 changed files with 18 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
package com.ruoyi.cms.controller.app;
import com.ruoyi.cms.domain.query.CompanySearch;
import com.ruoyi.common.core.domain.entity.Company;
import com.ruoyi.cms.domain.CompanyCard;
import com.ruoyi.cms.domain.query.LabelQuery;
@@ -95,6 +96,16 @@ public class AppCompanyController extends BaseController
companyCardService.cardCollection(companyCardId);
return success();
}
@GetMapping("/hrsList")
@ApiOperation("查询人力资源机构列表")
public TableDataInfo hrsList(CompanySearch company)
{
company.setIsHrs("0");//查询人力资源机构
startPage();
return getDataTable(companyService.selectCompanyList(company));
}
@BussinessLog(title = "取消收藏企业卡片")
@DeleteMapping("/card/collection/{companyCardId}")
@ApiOperation("取消收藏公司卡片")

View File

@@ -38,11 +38,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="legalIdCard" column="legal_id_card" />
<result property="legalPhone" column="legal_phone" />
<result property="companyStatus" column="company_status" />
<result property="isHrs" column="is_hrs" />
</resultMap>
<sql id="selectCompanyVo">
select company_id, name, location, industry, scale, del_flag, create_by, create_time, update_by, update_time, remark,code,description,nature,total_recruitment,registered_address,contact_person,contact_person_phone,is_abnormal,not_pass_reason,status,case when status='2' then update_time else null end reject_time,is_imp_company,imp_company_type,enterprise_type,legal_person,legal_id_card,legal_phone from company
select company_id, name, location, industry, scale, del_flag, create_by, create_time, update_by, update_time, remark,code,description,nature,total_recruitment,registered_address,contact_person,contact_person_phone,is_abnormal,not_pass_reason,status,case when status='2' then update_time else null end reject_time,is_imp_company,imp_company_type,enterprise_type,legal_person,legal_id_card,legal_phone,is_hrs from company
</sql>
<sql id="companyIndustryFilter">
@@ -128,6 +129,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="code != null and code != ''"> and code = #{code}</if>
<if test="status != null and status != ''"> and status = #{status}</if>
<if test="companyId != null and companyId != ''"> and company_id = #{companyId}</if>
<if test="isHrs != null and isHrs != ''"> and is_hrs = #{isHrs}</if>
<if test="startDate != null and startDate != ''">
and create_time >= #{startDate}
</if>

View File

@@ -127,6 +127,9 @@ public class Company extends BaseEntity
@ApiModelProperty("是否下架(0上架1下架)")
private String companyStatus;
@ApiModelProperty("是否人力资源机构(0是,否)")
private String isHrs;
/**
* 岗位列表
*/

View File

@@ -297,6 +297,7 @@ public class SsoService {
company.setRegisteredAddress(object.getString("entRegisteredAddress"));
company.setNature(object.getString("entType"));
company.setDescription(object.getString("entIntro"));
// company.setIsHrs(object.getString("isServiceProvider").equals("Y")?"0":null);//是否是人力资源机构
// company.setScale(object.getString("entSize"));
companyService.insertCompany(company);
}