|
@@ -108,7 +108,7 @@ public class MenuService extends ServiceImpl<MenuMapper, Menu> implements IMenuS
|
|
|
List<Long> companyMenuIds = ProjectUtils.getAttrList(needDeleteCompanyMenuList, "id", null);
|
|
|
if (companyMenuIds.size() > 0) {
|
|
|
if(!companyMenuService.removeByIds(companyMenuIds)){
|
|
|
- return RestResponse.fail(ApiConstants.RESULT_ERROR, "操作失败");
|
|
|
+ return RestResponse.fail(ApiConstants.RESULT_ERROR, "删除公司菜单关联关系失败");
|
|
|
}
|
|
|
}
|
|
|
//获取菜单id列表
|
|
@@ -126,7 +126,7 @@ public class MenuService extends ServiceImpl<MenuMapper, Menu> implements IMenuS
|
|
|
if (needSaveCompanyMenuList.size() > 0) {
|
|
|
if(!companyMenuService.saveBatch(needSaveCompanyMenuList)){
|
|
|
TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();
|
|
|
- return RestResponse.fail(ApiConstants.RESULT_ERROR, "操作失败");
|
|
|
+ return RestResponse.fail(ApiConstants.RESULT_ERROR, "保存公司菜单关系失败");
|
|
|
}
|
|
|
}
|
|
|
return null;
|