添加查询投诉和屏蔽列表查询
This commit is contained in:
@@ -61,9 +61,9 @@ public class CmsUserBlockCompanyController extends BaseController {
|
||||
* 获取当前用户屏蔽企业列表
|
||||
*/
|
||||
@ApiOperation("获取当前用户屏蔽企业列表")
|
||||
@PreAuthorize("@ss.hasPermi('cms:blockCompany:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(AppUserBlockCompany appUserBlockCompany){
|
||||
@PreAuthorize("@ss.hasPermi('cms:blockCompany:listByUserId')")
|
||||
@GetMapping("/listByUserId")
|
||||
public TableDataInfo listByUserId(AppUserBlockCompany appUserBlockCompany){
|
||||
if(!SecurityUtils.isLogin()){
|
||||
return getDataTable(new ArrayList<>());
|
||||
}
|
||||
@@ -75,6 +75,18 @@ public class CmsUserBlockCompanyController extends BaseController {
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取当前用户屏蔽企业列表
|
||||
*/
|
||||
@ApiOperation("获取屏蔽企业列表")
|
||||
@PreAuthorize("@ss.hasPermi('cms:blockCompany:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(AppUserBlockCompany appUserBlockCompany){
|
||||
startPage();
|
||||
List<AppUserBlockCompany> list=blockCompanyService.selectListByUserId(appUserBlockCompany);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询当前用户屏蔽的企业ID集合(用于过滤职位)
|
||||
*/
|
||||
|
||||
@@ -22,4 +22,9 @@ public class AppUserBlockCompany extends BaseEntity {
|
||||
|
||||
/** 被屏蔽企业ID */
|
||||
private Long companyId;
|
||||
|
||||
@TableField(exist = false)
|
||||
private String companyName;
|
||||
@TableField(exist = false)
|
||||
private String name;
|
||||
}
|
||||
@@ -65,4 +65,13 @@ public class AppUserJobComplaint extends BaseEntity {
|
||||
/** 处理时间 */
|
||||
@ApiModelProperty("处理时间")
|
||||
private LocalDateTime handleTime;
|
||||
|
||||
@TableField(exist = false)
|
||||
private Long companyId;
|
||||
@TableField(exist = false)
|
||||
private String companyName;
|
||||
@TableField(exist = false)
|
||||
private String jobTitle;
|
||||
@TableField(exist = false)
|
||||
private String name;
|
||||
}
|
||||
@@ -21,7 +21,7 @@ public interface AppUserBlockCompanyMapper extends BaseMapper<AppUserBlockCompan
|
||||
/**
|
||||
* 根据用户ID查询全部屏蔽记录
|
||||
*/
|
||||
List<AppUserBlockCompany> selectListByUserId(@Param("userId") Long userId);
|
||||
List<AppUserBlockCompany> selectListByUserId(AppUserBlockCompany appUserBlockCompany);
|
||||
|
||||
/**
|
||||
* 根据用户id查询屏蔽的企业及企业的岗位
|
||||
|
||||
@@ -34,5 +34,5 @@ public interface AppUserBlockCompanyService extends IService<AppUserBlockCompany
|
||||
|
||||
int batchCancelBlock(Long userId,List<Long> companyIdList);
|
||||
|
||||
List<AppUserBlockCompany> selectListByUserId(Long userId);
|
||||
List<AppUserBlockCompany> selectListByUserId(AppUserBlockCompany appUserBlockCompany);
|
||||
}
|
||||
@@ -64,7 +64,7 @@ public class AppUserBlockCompanyServiceImpl extends ServiceImpl<AppUserBlockComp
|
||||
return baseMapper.update(updateEntity, wrapper);
|
||||
}
|
||||
|
||||
public List<AppUserBlockCompany> selectListByUserId(Long userId){
|
||||
return appUserBlockCompanyMapper.selectListByUserId(userId);
|
||||
public List<AppUserBlockCompany> selectListByUserId(AppUserBlockCompany appUserBlockCompany){
|
||||
return appUserBlockCompanyMapper.selectListByUserId(appUserBlockCompany);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user