提交 79a01263 编写于 作者: minghao.wu's avatar minghao.wu

fix: 角色列表页面

上级 39186f26
流水线 #42938 已取消 于阶段
...@@ -20,7 +20,7 @@ import org.springframework.web.bind.annotation.*; ...@@ -20,7 +20,7 @@ import org.springframework.web.bind.annotation.*;
* @Date 2022/3/1 15:54 * @Date 2022/3/1 15:54
*/ */
@Api(description = "机构saas角色资源") @Api(description = "机构saas角色资源")
@RestController("/saas") @RestController
public class HospitalSaasRoleController extends AccountBaseController { public class HospitalSaasRoleController extends AccountBaseController {
@Autowired @Autowired
HospitalSaasRoleService hospitalSaasRoleService; HospitalSaasRoleService hospitalSaasRoleService;
......
...@@ -66,7 +66,7 @@ public class HospitalSaasRoleServiceImpl implements HospitalSaasRoleService { ...@@ -66,7 +66,7 @@ public class HospitalSaasRoleServiceImpl implements HospitalSaasRoleService {
@Override @Override
public HospitalRoleResp listByPage(HospitalRoleListReq req) { public HospitalRoleResp listByPage(HospitalRoleListReq req) {
ArrayList<Object> list = new ArrayList<>(3); ArrayList<Object> list = new ArrayList<>(3);
Arrays.asList(3, 4); Arrays.asList(1, 2);
Map<String, Object> map = new HashMap(4); Map<String, Object> map = new HashMap(4);
map.put("list", list); map.put("list", list);
map.put("name", req.getName()); map.put("name", req.getName());
......
...@@ -144,7 +144,7 @@ ...@@ -144,7 +144,7 @@
<sql id="list_by_page"> <sql id="list_by_page">
<if test="list!=null and list.size>0"> <if test="list!=null and list.size>0">
and pr.id in ( and pr.id not in (
<foreach collection="list" item="item" separator=","> <foreach collection="list" item="item" separator=",">
#{item} #{item}
</foreach> </foreach>
...@@ -169,8 +169,8 @@ ...@@ -169,8 +169,8 @@
pr.id as roleId, pr.id as roleId,
pr.remark as remark, pr.remark as remark,
pr.created_id as createId, pr.created_id as createId,
pd.name as name pd.user_name as createName
from permission_role as pr join p_doctor as pd on pr.created_id=pd.id from permission_role as pr join p_admin pd on pd.id = pr.created_id
where pr.delete_flag = 1 where pr.delete_flag = 1
<include refid="list_by_page"></include> <include refid="list_by_page"></include>
ORDER BY pr.created_time ASC ORDER BY pr.created_time ASC
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册