From 4613099dca2d4e1c7b46a69a98bb4c210312ac57 Mon Sep 17 00:00:00 2001 From: liusheng <337615773@qq.com> Date: 星期三, 16 四月 2025 11:15:37 +0800 Subject: [PATCH] 代码提交 --- smartor/src/main/java/com/smartor/service/impl/PatMedInhospServiceImpl.java | 4 ++-- ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysUserServiceImpl.java | 1 + smartor/src/main/resources/mapper/smartor/SysUserDeptMapper.xml | 14 +++++++++----- smartor/src/main/resources/mapper/smartor/PatMedOuthospMapper.xml | 1 + ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/PatMedOuthospController.java | 2 ++ ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysUserController.java | 5 +++++ smartor/src/main/java/com/smartor/domain/ServiceSubtaskVO.java | 4 ++-- 7 files changed, 22 insertions(+), 9 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/PatMedOuthospController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/PatMedOuthospController.java index 567f815..d727111 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/PatMedOuthospController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/PatMedOuthospController.java @@ -51,6 +51,8 @@ @ApiOperation("鏌ヨ鎮h�呴棬璇婅褰曞垪琛�") public TableDataInfo selectPatMedOuthosplist(@RequestBody PatMedOuthosp patMedOuthosp) { PageUtils.startPageByPost(patMedOuthosp.getPageNum(), patMedOuthosp.getPageSize()); + SysUser user = getLoginUser().getUser(); + patMedOuthosp.setOrgid(user.getOrgid()); List<PatMedOuthosp> list = patMedOuthospService.selectPatMedOuthospList(patMedOuthosp); return getDataTable(list); } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysUserController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysUserController.java index bfe1a5b..cde3492 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysUserController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysUserController.java @@ -101,6 +101,7 @@ //@PreAuthorize("@ss.hasPermi('system:user:query')") @GetMapping("/getInfo/{userId}") public AjaxResult getInfo(@PathVariable(value = "userId", required = false) Long userId) { + log.error("--------userId鐨勫�间负锛歿}",userId); userService.checkUserDataScope(userId); AjaxResult ajax = AjaxResult.success(); List<SysRole> roles = roleService.selectRoleAll(); @@ -117,6 +118,10 @@ SysUserDept sysUserDept = new SysUserDept(); sysUserDept.setUserId(userId); sysUserDept.setDeptType("1"); + LoginUser loginUser = getLoginUser(); + SysUser user = loginUser.getUser(); + log.error("--------user鐨勫�间负锛歿}",user); + sysUserDept.setOrgid(user.getOrgid()); sysUserDeptKSs = sysUserDeptMapper.selectSysUserDeptList(sysUserDept); ajax.put("belongDepts", sysUserDeptKSs); diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysUserServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysUserServiceImpl.java index e05d76a..5fa94be 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysUserServiceImpl.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysUserServiceImpl.java @@ -181,6 +181,7 @@ SysUserDept sysUserDept = new SysUserDept(); sysUserDept.setUserId(sysUser.getUserId()); sysUserDept.setDeptType(sysUser.getSearchscope()); + sysUserDept.setOrgid(split[1]); List<SysUserDept> sysUserDeptKSs = null; List<SysUserDept> sysUserDeptBQs = null; if (StringUtils.isNotEmpty(sysUser.getSearchscope()) && sysUser.getSearchscope().equals("0")) { diff --git a/smartor/src/main/java/com/smartor/domain/ServiceSubtaskVO.java b/smartor/src/main/java/com/smartor/domain/ServiceSubtaskVO.java index 6f2e74b..38a85ce 100644 --- a/smartor/src/main/java/com/smartor/domain/ServiceSubtaskVO.java +++ b/smartor/src/main/java/com/smartor/domain/ServiceSubtaskVO.java @@ -73,8 +73,8 @@ /** * 鏈嶅姟绫诲瀷(1銆佺洃娴嬭瘎浼帮紱2銆佸嚭闄㈤殢璁匡紱3銆侀棬璇婇殢璁匡紱4銆佸鏁欏叧鎬�锛�5銆佸璇婇�氱煡锛�6銆佹弧鎰忓害璋冩煡锛�7銆佹偅鑰呮姤鍛婏紱 8銆佸叾浠栭�氱煡) */ - @Excel(name = "鏈嶅姟绫诲瀷(1銆佺洃娴嬭瘎浼帮紱2銆佸嚭闄㈤殢璁匡紱3銆侀棬璇婇殢璁匡紱4銆佸鏁欏叧鎬�锛�5銆佸璇婇�氱煡锛�6銆佹弧鎰忓害璋冩煡锛�7銆佹偅鑰呮姤鍛婏紱 8銆佸叾浠栭�氱煡)") - @ApiModelProperty(value = "鏈嶅姟绫诲瀷(1銆佺洃娴嬭瘎浼帮紱2銆佸嚭闄㈤殢璁匡紱3銆侀棬璇婇殢璁匡紱4銆佸鏁欏叧鎬�锛�5銆佸璇婇�氱煡锛�6銆佹弧鎰忓害璋冩煡锛�7銆佹偅鑰呮姤鍛婏紱 8銆佸叾浠栭�氱煡)") + @Excel(name = "鏈嶅姟绫诲瀷(1銆佺洃娴嬭瘎浼帮紱2銆佸嚭闄㈤殢璁匡紱3銆侀棬璇婇殢璁匡紱4銆佸鏁欏叧鎬�锛�5銆佸璇婄鐞嗭紱6銆佹弧鎰忓害璋冩煡锛�7銆佹偅鑰呮姤鍛婏紱 8銆佸叾浠栭�氱煡 9浣撴闅忚 10.鍖绘妧闅忚 11锛屽奖鍍忎笓绉戦殢璁� 12銆佸績鐢典笓绉戦殢璁匡紝 13涓撶闅忚)") + @ApiModelProperty(value = "鏈嶅姟绫诲瀷(1銆佺洃娴嬭瘎浼帮紱2銆佸嚭闄㈤殢璁匡紱3銆侀棬璇婇殢璁匡紱4銆佸鏁欏叧鎬�锛�5銆佸璇婄鐞嗭紱6銆佹弧鎰忓害璋冩煡锛�7銆佹偅鑰呮姤鍛婏紱 8銆佸叾浠栭�氱煡 9浣撴闅忚 10.鍖绘妧闅忚 11锛屽奖鍍忎笓绉戦殢璁� 12銆佸績鐢典笓绉戦殢璁匡紝 13涓撶闅忚)") private String serviceType; /** diff --git a/smartor/src/main/java/com/smartor/service/impl/PatMedInhospServiceImpl.java b/smartor/src/main/java/com/smartor/service/impl/PatMedInhospServiceImpl.java index a6bab80..0fa3131 100644 --- a/smartor/src/main/java/com/smartor/service/impl/PatMedInhospServiceImpl.java +++ b/smartor/src/main/java/com/smartor/service/impl/PatMedInhospServiceImpl.java @@ -256,7 +256,8 @@ } writeInSubTask(serviceTaskdepts.get(0).getTaskId(), true, patMedInhosp1, patArchive); - } else if (serviceChecks != null && serviceChecks.get(0).getCheckVisitFlag() == 2 || serviceChecks != null && serviceChecks.get(0).getCheckVisitFlag() == 3) { + } + if (serviceChecks != null && serviceChecks.get(0).getCheckVisitFlag() == 2 || serviceChecks != null && serviceChecks.get(0).getCheckVisitFlag() == 3) { //涓芥按闇�瑕佹牴鎹闄㈢柧鐥呭璇ョ梾浜虹敓鎴愪竴娆¢殢璁� String[] split = patMedInhosp1.getIcd10code().split(","); ServiceTaskdiag serviceTaskdiag = new ServiceTaskdiag(); @@ -282,7 +283,6 @@ } writeInSubTask(serviceTaskdiags.get(0).getTaskId(), false, patMedInhosp1, patArchive); } - } catch (Exception e) { e.printStackTrace(); diff --git a/smartor/src/main/resources/mapper/smartor/PatMedOuthospMapper.xml b/smartor/src/main/resources/mapper/smartor/PatMedOuthospMapper.xml index 50c55ef..87a12f9 100644 --- a/smartor/src/main/resources/mapper/smartor/PatMedOuthospMapper.xml +++ b/smartor/src/main/resources/mapper/smartor/PatMedOuthospMapper.xml @@ -106,6 +106,7 @@ from pat_med_outhosp pmo left join pat_archive pa on pmo.patid = pa.id <where> pmo.del_flag=0 + and pmo.orgid =#{orgid} <if test="hospitalname != null and hospitalname != ''">and pmo.hospitalname like concat('%', #{hospitalname}, '%') diff --git a/smartor/src/main/resources/mapper/smartor/SysUserDeptMapper.xml b/smartor/src/main/resources/mapper/smartor/SysUserDeptMapper.xml index 3cc633b..a9dbac8 100644 --- a/smartor/src/main/resources/mapper/smartor/SysUserDeptMapper.xml +++ b/smartor/src/main/resources/mapper/smartor/SysUserDeptMapper.xml @@ -46,6 +46,7 @@ <include refid="selectSysUserDeptVo"/> <where> del_flag=0 + and orgid=#{orgid} <if test="userId != null "> and user_id = #{userId} </if> @@ -101,8 +102,9 @@ </if> <if test="deptName != null "> dept_name, - </if> <if test="orgid != null "> - orgid, + </if> + <if test="orgid != null "> + orgid, </if> </trim> <trim prefix="values (" suffix=")" suffixOverrides=","> @@ -127,7 +129,8 @@ </if> <if test="deptName != null "> #{deptName}, - </if><if test="orgid != null "> + </if> + <if test="orgid != null "> #{orgid}, </if> </trim> @@ -159,8 +162,9 @@ </if> <if test="deptName != null "> dept_name = #{deptName}, - </if> <if test="orgid != null "> - orgid = #{orgid}, + </if> + <if test="orgid != null "> + orgid = #{orgid}, </if> </trim> where id = #{id} -- Gitblit v1.9.3