PC质量查询数据问题
parent
756943b09e
commit
2c792fd100
|
@ -58,11 +58,11 @@ public class SmzSspProblemmodifyController extends BaseController
|
||||||
SysUser user = SecurityUtils.getLoginUser().getSysUser();
|
SysUser user = SecurityUtils.getLoginUser().getSysUser();
|
||||||
where.setProjectId(user.getActiveProjectId());
|
where.setProjectId(user.getActiveProjectId());
|
||||||
//where.setComId(user.getActiveComId());
|
//where.setComId(user.getActiveComId());
|
||||||
if(SecurityUtils.isAdmin(SecurityUtils.getUserId()) || SecurityUtils.isGSAdmin()) {
|
// if(SecurityUtils.isAdmin(SecurityUtils.getUserId()) || SecurityUtils.isGSAdmin()) {
|
||||||
where.setCurrentUserId(null);
|
// where.setCurrentUserId(null);
|
||||||
}else{
|
// }else{
|
||||||
where.setCurrentUserId(user.getUserId());
|
// where.setCurrentUserId(user.getUserId());
|
||||||
}
|
// }
|
||||||
startPage();
|
startPage();
|
||||||
List<SmzSspProblemmodify> list = smzSspProblemmodifyService.selectList(where);
|
List<SmzSspProblemmodify> list = smzSspProblemmodifyService.selectList(where);
|
||||||
return getDataTable(list);
|
return getDataTable(list);
|
||||||
|
@ -98,11 +98,11 @@ public class SmzSspProblemmodifyController extends BaseController
|
||||||
SysUser user=SecurityUtils.getLoginUser().getSysUser();
|
SysUser user=SecurityUtils.getLoginUser().getSysUser();
|
||||||
where.setProjectId(user.getActiveProjectId());
|
where.setProjectId(user.getActiveProjectId());
|
||||||
//where.setComId(user.getActiveComId());
|
//where.setComId(user.getActiveComId());
|
||||||
if(SecurityUtils.isAdmin(SecurityUtils.getUserId()) || SecurityUtils.isGSAdmin()) {
|
// if(SecurityUtils.isAdmin(SecurityUtils.getUserId()) || SecurityUtils.isGSAdmin()) {
|
||||||
where.setCurrentUserId(null);
|
// where.setCurrentUserId(null);
|
||||||
}else{
|
// }else{
|
||||||
where.setCurrentUserId(user.getUserId());
|
// where.setCurrentUserId(user.getUserId());
|
||||||
}
|
// }
|
||||||
List<SmzSspProblemmodify> result=smzSspProblemmodifyService.getListCount(where);
|
List<SmzSspProblemmodify> result=smzSspProblemmodifyService.getListCount(where);
|
||||||
return AjaxResult.success(result);
|
return AjaxResult.success(result);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue