Browse Source

核酸检测数据权限修改

origin/epidemic_user
zhangyuan 4 years ago
parent
commit
3b14049fda
  1. 2
      epdc-cloud-custom/src/main/java/com/elink/esua/epdc/modules/epidemic/service/impl/PersonTestingServiceImpl.java
  2. 14
      epdc-cloud-custom/src/main/resources/mapper/epidemic/PersonTestingDao.xml
  3. BIN
      epdc-cloud-vim-yushan/src/main/resources/excel/居民信息录入模板.xls
  4. 4
      epdc-cloud-vim-yushan/src/main/resources/mapper/epidemic/EpidemicUserInfoDao.xml
  5. 2
      epdc-cloud-vim-yushan/src/main/resources/mapper/house/HousingInformationDao.xml
  6. 2
      epdc-cloud-vim-yushan/src/main/resources/mapper/vim/VaccinationInfoDao.xml

2
epdc-cloud-custom/src/main/java/com/elink/esua/epdc/modules/epidemic/service/impl/PersonTestingServiceImpl.java

@ -83,7 +83,9 @@ public class PersonTestingServiceImpl extends BaseServiceImpl<PersonTestingDao,
// 街道和超管有权查看所有数据 // 街道和超管有权查看所有数据
if (NumConstant.ZERO == user.getSuperAdmin() && user.getDeptId() != 1258587398679126017L) { if (NumConstant.ZERO == user.getSuperAdmin() && user.getDeptId() != 1258587398679126017L) {
params.put("deptIdList", user.getDeptIdList()); params.put("deptIdList", user.getDeptIdList());
params.put("creatorId", user.getId());
} }
List<PersonTestingPageDTO> list = baseDao.getTestingPage(params); List<PersonTestingPageDTO> list = baseDao.getTestingPage(params);
return new PageData<>(list, page.getTotal()); return new PageData<>(list, page.getTotal());
} }

14
epdc-cloud-custom/src/main/resources/mapper/epidemic/PersonTestingDao.xml

@ -54,10 +54,16 @@
WHERE WHERE
t.DEL_FLAG = 0 t.DEL_FLAG = 0
<if test="deptIdList != null"> <if test="deptIdList != null">
and t2.grid_id in AND (
<foreach item="id" collection="deptIdList" open="(" separator="," close=")"> <if test="deptIdList.size() > 0">
#{id} t2.grid_id in
</foreach> <foreach item="id" collection="deptIdList" open="(" separator="," close=")">
#{id}
</foreach>
OR
</if>
CREATED_BY = #{creatorId}
)
</if> </if>
<if test="name != null and name != ''"> <if test="name != null and name != ''">
AND t.name like '%${name}%' AND t.name like '%${name}%'

BIN
epdc-cloud-vim-yushan/src/main/resources/excel/居民信息录入模板.xls

Binary file not shown.

4
epdc-cloud-vim-yushan/src/main/resources/mapper/epidemic/EpidemicUserInfoDao.xml

@ -115,7 +115,7 @@
and (hi.grid_id = #{gridId} and (hi.grid_id = #{gridId}
OR find_in_set(#{gridId},hi.ALL_DEPT_IDS)) OR find_in_set(#{gridId},hi.ALL_DEPT_IDS))
</if> </if>
<if test="deptIdList != null"> <if test="deptIdList != null and deptIdList.size() > 0">
and hi.grid_id in and hi.grid_id in
<foreach item="id" collection="deptIdList" open="(" separator="," close=")"> <foreach item="id" collection="deptIdList" open="(" separator="," close=")">
#{id} #{id}
@ -164,7 +164,7 @@
and (hi.grid_id = #{gridId} and (hi.grid_id = #{gridId}
OR find_in_set(#{gridId},hi.ALL_DEPT_IDS)) OR find_in_set(#{gridId},hi.ALL_DEPT_IDS))
</if> </if>
<if test="deptIdList != null"> <if test="deptIdList != null and deptIdList.size() > 0">
and hi.grid_id in and hi.grid_id in
<foreach item="id" collection="deptIdList" open="(" separator="," close=")"> <foreach item="id" collection="deptIdList" open="(" separator="," close=")">
#{id} #{id}

2
epdc-cloud-vim-yushan/src/main/resources/mapper/house/HousingInformationDao.xml

@ -64,7 +64,7 @@
and (t.grid_id = #{gridId} and (t.grid_id = #{gridId}
OR find_in_set(#{gridId},t.ALL_DEPT_IDS)) OR find_in_set(#{gridId},t.ALL_DEPT_IDS))
</if> </if>
<if test="deptIdList != null"> <if test="deptIdList != null and deptIdList.size() > 0">
and t.grid_id in and t.grid_id in
<foreach item="id" collection="deptIdList" open="(" separator="," close=")"> <foreach item="id" collection="deptIdList" open="(" separator="," close=")">
#{id} #{id}

2
epdc-cloud-vim-yushan/src/main/resources/mapper/vim/VaccinationInfoDao.xml

@ -72,7 +72,7 @@
and (v.grid_id = #{gridId} and (v.grid_id = #{gridId}
OR find_in_set(#{gridId},v.ALL_DEPT_IDS)) OR find_in_set(#{gridId},v.ALL_DEPT_IDS))
</if> </if>
<if test="deptIdList != null"> <if test="deptIdList != null and deptIdList.size() > 0">
and v.grid_id in and v.grid_id in
<foreach item="id" collection="deptIdList" open="(" separator="," close=")"> <foreach item="id" collection="deptIdList" open="(" separator="," close=")">
#{id} #{id}

Loading…
Cancel
Save