|
|
@@ -4,9 +4,8 @@ import com.yunfeiyun.agmp.common.annotation.Log;
|
|
|
import com.yunfeiyun.agmp.common.core.controller.BaseController;
|
|
|
import com.yunfeiyun.agmp.common.core.domain.AjaxResult;
|
|
|
import com.yunfeiyun.agmp.common.core.domain.entity.PtsMsg;
|
|
|
+import com.yunfeiyun.agmp.common.core.domain.entity.SysRole;
|
|
|
import com.yunfeiyun.agmp.common.core.domain.entity.SysUser;
|
|
|
-import com.yunfeiyun.agmp.common.core.domain.model.IBaseRole;
|
|
|
-import com.yunfeiyun.agmp.common.core.domain.model.IBaseUser;
|
|
|
import com.yunfeiyun.agmp.common.core.page.TableDataInfo;
|
|
|
import com.yunfeiyun.agmp.common.enums.BusinessType;
|
|
|
import com.yunfeiyun.agmp.common.framework.web.service.ISysRoleService;
|
|
|
@@ -39,7 +38,7 @@ import java.util.List;
|
|
|
|
|
|
/**
|
|
|
* 预警记录Controller
|
|
|
- *
|
|
|
+ *
|
|
|
* @author 杨晓辉
|
|
|
* @date 2024-04-29
|
|
|
*/
|
|
|
@@ -117,10 +116,10 @@ public class IotWarnlogController extends BaseController
|
|
|
list = iotWarnlogService.selectIotWarnlogList(iotWarnlog);
|
|
|
|
|
|
//取角色名称列表
|
|
|
- List<IBaseRole> roleList = sysRoleService.selectRoleAll();
|
|
|
+ List<SysRole> roleList = sysRoleService.selectRoleAll();
|
|
|
|
|
|
//取用户名称列表
|
|
|
- List<IBaseUser> userList = sysUserService.selectUserList(new SysUser());
|
|
|
+ List<SysUser> userList = sysUserService.selectUserList(new SysUser());
|
|
|
|
|
|
//取绑定地块信息
|
|
|
HashMap<String,String> hmBlockInfo = new HashMap<>();
|
|
|
@@ -200,7 +199,7 @@ public class IotWarnlogController extends BaseController
|
|
|
* @param roleList
|
|
|
* @return
|
|
|
*/
|
|
|
- public static String getRolenameListByIds(String roleids, List<IBaseRole> roleList){
|
|
|
+ public static String getRolenameListByIds(String roleids, List<SysRole> roleList){
|
|
|
StringBuffer retSb = new StringBuffer();
|
|
|
|
|
|
if(!StringUtils.isEmpty(roleids)){
|
|
|
@@ -214,7 +213,7 @@ public class IotWarnlogController extends BaseController
|
|
|
}
|
|
|
|
|
|
String rolename = "";
|
|
|
- for (IBaseRole role:roleList
|
|
|
+ for (SysRole role:roleList
|
|
|
) {
|
|
|
|
|
|
if(role.getRoleId().equals(roleid)){
|
|
|
@@ -238,7 +237,7 @@ public class IotWarnlogController extends BaseController
|
|
|
return retSb.toString();
|
|
|
}
|
|
|
|
|
|
- public static String getUsernamesByIds(String userids,List<IBaseUser> userList){
|
|
|
+ public static String getUsernamesByIds(String userids,List<SysUser> userList){
|
|
|
|
|
|
|
|
|
StringBuffer retSb = new StringBuffer();
|
|
|
@@ -254,7 +253,7 @@ public class IotWarnlogController extends BaseController
|
|
|
}
|
|
|
|
|
|
String username = "";
|
|
|
- for (IBaseUser user:userList
|
|
|
+ for (SysUser user:userList
|
|
|
) {
|
|
|
|
|
|
if(user.getUserId().equals(userid)){
|
|
|
@@ -291,7 +290,7 @@ public class IotWarnlogController extends BaseController
|
|
|
List<IotWarnlogResVo> list = iotWarnlogService.selectIotWarnlogList(iotWarnlog);
|
|
|
|
|
|
//取用户名称列表
|
|
|
- List<IBaseUser> userList = sysUserService.selectUserList(new SysUser());
|
|
|
+ List<SysUser> userList = sysUserService.selectUserList(new SysUser());
|
|
|
|
|
|
//取绑定地块信息
|
|
|
HashMap<String,String> hmBlockInfo = new HashMap<>();
|
|
|
@@ -361,14 +360,14 @@ public class IotWarnlogController extends BaseController
|
|
|
IotWarnlogResVo iotWarnlogResVo = iotWarnlogService.selectIotWarnlogByBid(wlBid);
|
|
|
|
|
|
//取角色名称列表
|
|
|
- List<IBaseRole> roleList = sysRoleService.selectRoleAll();
|
|
|
+ List<SysRole> roleList = sysRoleService.selectRoleAll();
|
|
|
|
|
|
iotWarnlogResVo.setWcRevroleName(getRolenameListByIds(iotWarnlogResVo.getWcRevrole(),roleList));
|
|
|
|
|
|
|
|
|
|
|
|
//取用户名称列表
|
|
|
- List<IBaseUser> userList = sysUserService.selectUserList(new SysUser());
|
|
|
+ List<SysUser> userList = sysUserService.selectUserList(new SysUser());
|
|
|
|
|
|
iotWarnlogResVo.setWcRecvuserName(getUsernamesByIds(iotWarnlogResVo.getWcRecvuser(),userList));
|
|
|
|