添加监管端查询企业列表接口用来修改密码和修改状态
This commit is contained in:
@@ -188,4 +188,17 @@ public class CompanyController extends BaseController
|
||||
return toAjax(companyService.companyUp(companyId));
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 管理员查询公司列表
|
||||
*/
|
||||
@ApiOperation("管理员查询公司列表")
|
||||
@PreAuthorize("@ss.hasPermi('cms:company:adminCompanyList')")
|
||||
@GetMapping("/adminCompanyList")
|
||||
public TableDataInfo adminCompanyList(CompanySearch company)
|
||||
{
|
||||
startPage();
|
||||
List<Company> list = companyService.selectAdminCompanyList(company);
|
||||
return getDataTable(list);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -33,4 +33,6 @@ public interface CompanyMapper extends BaseMapper<Company>
|
||||
Company selectCompanyByJobId(Long jobId);
|
||||
|
||||
int updateStatus(Company company);
|
||||
|
||||
List<Company> selectAdminCompanyList(Company company);
|
||||
}
|
||||
|
||||
@@ -85,4 +85,6 @@ public interface ICompanyService
|
||||
int companyDown(Long companyId);
|
||||
|
||||
int companyUp(Long companyId);
|
||||
|
||||
List<Company> selectAdminCompanyList(Company company);
|
||||
}
|
||||
|
||||
@@ -387,4 +387,9 @@ public class CompanyServiceImpl extends ServiceImpl<CompanyMapper, Company> impl
|
||||
}
|
||||
return i;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Company> selectAdminCompanyList(Company company) {
|
||||
return companyMapper.selectAdminCompanyList(company);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -39,6 +39,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<result property="legalPhone" column="legal_phone" />
|
||||
<result property="companyStatus" column="company_status" />
|
||||
<result property="isHrs" column="is_hrs" />
|
||||
<result property="lcUserid" column="lc_userid" />
|
||||
|
||||
</resultMap>
|
||||
|
||||
@@ -173,4 +174,27 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
update COMPANY set company_status=#{companyStatus},update_time=#{updateTime},update_by=#{updateBy} where company_id=#{companyId} and del_flag='0'
|
||||
</update>
|
||||
|
||||
<select id="selectAdminCompanyList" parameterType="CompanySearch" resultMap="CompanyResult">
|
||||
select t.company_id, t.name, t.location, t.industry, t.scale, t.del_flag, t.create_by, t.create_time, t.update_by, t.update_time, t.remark,t.code,t.description,
|
||||
t.nature,t.total_recruitment,t.registered_address,t.contact_person,t.contact_person_phone,t.is_abnormal,t.not_pass_reason,t.status,case when t.status='2'
|
||||
then t.update_time else null end reject_time,t.is_imp_company,t.imp_company_type,t.enterprise_type,t.legal_person,t.legal_id_card,t.legal_phone,t.is_hrs,
|
||||
su.lc_userid from company t
|
||||
left join sys_user su on t.code=su.id_card
|
||||
<where> t.del_flag = '0'
|
||||
<if test="name != null and name != ''"> and t.name like concat('%', cast(#{name, jdbcType=VARCHAR} as varchar), '%')</if>
|
||||
<if test="scale != null and scale != ''"> and t.scale = #{scale}</if>
|
||||
<if test="nature != null and nature != ''"> and t.nature = #{nature}</if>
|
||||
<if test="code != null and code != ''"> and t.code = #{code}</if>
|
||||
<if test="status != null and status != ''"> and t.status = #{status}</if>
|
||||
<if test="companyId != null and companyId != ''"> and t.company_id = #{companyId}</if>
|
||||
<if test="isHrs != null and isHrs != ''"> and t.is_hrs = #{isHrs}</if>
|
||||
<if test="startDate != null and startDate != ''">
|
||||
and t.create_time >= #{startDate}
|
||||
</if>
|
||||
<if test="endDate != null and endDate != ''">
|
||||
and t.create_time <= #{endDate}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
|
||||
@@ -136,5 +136,9 @@ public class Company extends BaseEntity
|
||||
@TableField(exist = false)
|
||||
private List<JobDTO> jobList;
|
||||
|
||||
|
||||
/**
|
||||
* 浪潮userid
|
||||
*/
|
||||
@TableField(exist = false)
|
||||
private Long lcUserid;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user