|
@@ -47,6 +47,7 @@ public class ResponsibilityServiceImpl extends ServiceImpl<ResponsibilityMapper,
|
|
|
List<Responsibility> list = this.list(
|
|
|
new LambdaQueryWrapper<Responsibility>()
|
|
|
.eq(Responsibility::getHospId, user.getHospId())
|
|
|
+ .orderByDesc(Responsibility::getCreateTime)
|
|
|
);
|
|
|
if (CollUtil.isEmpty(list)) {
|
|
|
return Collections.emptyList();
|
|
@@ -255,6 +256,7 @@ public class ResponsibilityServiceImpl extends ServiceImpl<ResponsibilityMapper,
|
|
|
new LambdaQueryWrapper<Responsibility>()
|
|
|
.eq(Responsibility::getHospId, user.getHospId())
|
|
|
.eq(Responsibility::getParentId, 0)
|
|
|
+ .orderByDesc(Responsibility::getCreateTime)
|
|
|
);
|
|
|
if (CollUtil.isEmpty(parentList)) {
|
|
|
throw new CostException(ErrorCodeEnum.DATA_NOT_EXIST);
|