Commit af5ff95a by 朱淼
parents 79cc9a4f 9a527dcf
......@@ -78,7 +78,7 @@ public class SaasPlatMenuController {
@Action(module = "saas端-租户资源管理(菜单)", name = "编辑", code = "saas:plat:menu:edit")
@ApiOperation("编辑")
@PostMapping("edit")
public ApiResponseEntity<?> edit(@Validated @RequestBody PlatMenuDTOVO dto){
public ApiResponseEntity<Void> edit(@Validated @RequestBody PlatMenuDTOVO dto){
platMenuService.edit(dto);
saasOperationLogService.add("saas端-租户资源管理-编辑", null);
......
......@@ -73,8 +73,8 @@ public class PlatElderRealTimeWechatController {
@ApiOperation("行为辐射")
@PostMapping("behaviorDistribution")
public ApiResponseEntity<List<PlatElderBehaviorDistributionVO>> behaviorDistribution(@RequestBody PlatElderIdDTO platElderIdDTO) {
return null;
public ApiResponseEntity<List<PlatElderBehaviorDistributionVO>> behaviorDistribution(@RequestBody PlatElderReportDTO platElderIdDTO) {
return ApiResponseUtils.success(platElderDayReportDayService.behaviorDistribution(platElderIdDTO));
}
......
......@@ -327,7 +327,7 @@ implements PlatRoleService {
List<PlatMenu> platMenuList = platMenuService.list(new QueryWrapper<PlatMenu>().lambda()
.in(StringUtils.isNotBlank(id), PlatMenu::getId, menuIdList)
//.orderByAsc(PlatMenu::getParentId)
.orderByAsc(PlatMenu::getSort)
.orderByDesc(PlatMenu::getSort)
.orderByAsc(PlatMenu::getCreateDate)
);
......
......@@ -475,7 +475,7 @@ public class PlatUserServiceImpl extends ServiceImpl<PlatUserMapper, PlatUser>
return platMenuService.list(new QueryWrapper<PlatMenu>().lambda()
.in(PlatMenu::getId, menuIdList)
.eq(PlatMenu::getStatus, CommonEnum.YES.getValue())
.orderByAsc(PlatMenu::getSort)
.orderByDesc(PlatMenu::getSort)
.orderByAsc(PlatMenu::getCreateDate)
);
}
......@@ -542,7 +542,7 @@ public class PlatUserServiceImpl extends ServiceImpl<PlatUserMapper, PlatUser>
List<PlatMenu> menuList = platMenuService.list(new QueryWrapper<PlatMenu>().lambda()
.in(PlatMenu::getId, menuIdList)
.eq(PlatMenu::getStatus, CommonEnum.YES.getValue())
.orderByAsc(PlatMenu::getSort)
.orderByDesc(PlatMenu::getSort)
.orderByAsc(PlatMenu::getCreateDate)
);
......
......@@ -543,6 +543,7 @@ public class PlatElderServiceImpl extends ServiceImpl<PlatElderMapper, PlatElder
private void addOrEditExt(PlatElderDTOVO dto) {
List<PlatElderSocialRelation> relationList = BeanDtoVoUtils.listVo(dto.getRelationList(), PlatElderSocialRelation.class);
relationList.forEach(e -> {
e.setId(null);
e.setElderId(dto.getId());
});
......
......@@ -70,7 +70,7 @@ public class PlatMenuServiceImpl extends ServiceImpl<PlatMenuMapper, PlatMenu>
.eq(StringUtils.isNotBlank(dto.getStatus()), PlatMenu::getStatus, dto.getStatus())
.in(StringUtils.isNotBlank(dto.getTenantId()), PlatMenu::getId, menuIdList)
//.orderByAsc(PlatMenu::getParentId)
.orderByAsc(PlatMenu::getSort)
.orderByDesc(PlatMenu::getSort)
.orderByAsc(PlatMenu::getCreateDate)
);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment