|
|
@@ -24,6 +24,8 @@ import org.jeecg.common.util.PmsUtil;
|
|
|
import org.jeecg.common.util.TokenUtils;
|
|
|
import org.jeecg.common.util.oConvertUtils;
|
|
|
import org.jeecg.modules.base.service.BaseCommonService;
|
|
|
+import org.jeecg.modules.business.entity.BusHotel;
|
|
|
+import org.jeecg.modules.business.service.IBusHotelService;
|
|
|
import org.jeecg.modules.system.entity.*;
|
|
|
import org.jeecg.modules.system.model.TreeModel;
|
|
|
import org.jeecg.modules.system.service.*;
|
|
|
@@ -86,6 +88,9 @@ public class SysRoleController {
|
|
|
@Autowired
|
|
|
private BaseCommonService baseCommonService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private IBusHotelService busHotelService;
|
|
|
+
|
|
|
/**
|
|
|
* 分页列表查询
|
|
|
* @param role
|
|
|
@@ -112,6 +117,12 @@ public class SysRoleController {
|
|
|
queryWrapper.isNull("tenant_id");
|
|
|
}
|
|
|
IPage<SysRole> pageList = sysRoleService.page(page, queryWrapper);
|
|
|
+ pageList.getRecords().forEach(item->{
|
|
|
+ BusHotel hotle = busHotelService.getById(item.getHotelId());
|
|
|
+ if (hotle != null) {
|
|
|
+ item.setHotelName(hotle.getName());
|
|
|
+ }
|
|
|
+ });
|
|
|
result.setSuccess(true);
|
|
|
result.setResult(pageList);
|
|
|
return result;
|