6-1 fix
parent
858306e9a1
commit
2f8b4b4df5
|
|
@ -52,15 +52,6 @@ public class TaskListQueryExe {
|
||||||
*/
|
*/
|
||||||
public PageResponse<TaskListCO> listPage(TaskListPageQry qry) {
|
public PageResponse<TaskListCO> listPage(TaskListPageQry qry) {
|
||||||
|
|
||||||
if (qry.getExecuteCorpId() == null) {
|
|
||||||
SSOUser ssoUser = AuthContext.getCurrentUser();
|
|
||||||
if (ssoUser == null) {
|
|
||||||
throw new BizException("请先未登录");
|
|
||||||
}
|
|
||||||
// 获取当前登录用户所属公司ID
|
|
||||||
qry.setExecuteCorpId(ssoUser.getTenantId());
|
|
||||||
}
|
|
||||||
|
|
||||||
Map<String, Object> params = PageQueryHelper.toHashMap(qry);
|
Map<String, Object> params = PageQueryHelper.toHashMap(qry);
|
||||||
PageResponse<TaskListDO> pageResponse = taskListRepository.listPage(params);
|
PageResponse<TaskListDO> pageResponse = taskListRepository.listPage(params);
|
||||||
List<TaskListCO> coList = taskListCoConvertor.converDOsToCOs(pageResponse.getData());
|
List<TaskListCO> coList = taskListCoConvertor.converDOsToCOs(pageResponse.getData());
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue