glj-代码提交

This commit is contained in:
glj 2023-05-08 13:59:01 +08:00
parent 9c12722c82
commit 7d24e80fa1
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ public class DisasterInfoController {
public R<IPage<CallForHelpVo>> list(CallForHelpVo CallForHelpVo, Query query) {
CallForHelpVo userRole = disasterInfoService.getByNameRole("admin");
Long chiefIdEquals = CallForHelpVo.getChiefIdEquals();
if (chiefIdEquals.equals(userRole.getRoleId())){
if (chiefIdEquals == null || chiefIdEquals.equals(userRole.getRoleId())){
CallForHelpVo.setChiefIdEquals(null);
}
IPage<CallForHelpVo> pages = disasterInfoService.page(Condition.getPage(query), CallForHelpVo);