移动查房权限

master
ALW 3 years ago
parent e2ec13e786
commit ce56df18ca

@ -3,6 +3,7 @@ package com.emr.controller;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.emr.dao.Emr_DictionaryMapper;
import com.emr.dao.RecordMapper;
import com.emr.dao.TPrintinfoMapper;
import com.emr.entity.*;
import com.emr.service.Archive_DetailService;
@ -41,6 +42,8 @@ import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.context.request.RequestContextHolder;
import org.springframework.web.context.request.ServletRequestAttributes;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@ -58,7 +61,7 @@ import java.util.*;
public class FontController {
@Value("${pdfWater}")
private String pdfWater;
@Value("${RoomDetailsUrl}")
@Value("${RoomDetailsUrl}")
private String RoomDetailsUrl;
@Value("${RoomDetailsUrlName}")
private String RoomDetailsUrlName;
@ -84,6 +87,8 @@ public class FontController {
private ArchiveOtherExtService archiveOtherExtService;
@Autowired
private TPrintinfoMapper tPrintinfoMapper;
@Autowired
private RecordMapper recordMapper;
@RequestMapping("selectIsPrintByPatienId")
@ResponseBody
@ -751,6 +756,10 @@ public class FontController {
@RequestMapping(value = "getMaster")
@ResponseBody
public OffsetLimitPage getMaster(Archive_Master_Vo archiveMasterVo, Integer offset, Integer limit) throws Exception {
HttpServletRequest request = ((ServletRequestAttributes) RequestContextHolder.getRequestAttributes()).getRequest();
Power_User user = (Power_User)request.getSession().getAttribute("CURRENT_USER");
String deptCode = user.getDeptCode();
archiveMasterVo.setDeptCode(deptCode);
return archiveMasterService.selectByCol(archiveMasterVo, offset, limit);
}
@ -888,7 +897,7 @@ public class FontController {
}
/* *//*
/* *//*
* <Request>
<Header>
<SourceSystem>HIS</SourceSystem>

@ -28,6 +28,8 @@ public class Archive_Master_Vo extends Archive_Master{
private String checkedName;
private String deptCode;
private String btns;//拼接按钮
private String status;//转换中文状态

@ -65,11 +65,41 @@ public class Power_User {
*
*/
private String remark;
/**
*
*/
private Set<String> menus;
public String getDeptName() {
return deptName;
}
public void setDeptName(String deptName) {
this.deptName = deptName;
}
public String getPowerDepts() {
return powerDepts;
}
public void setPowerDepts(String powerDepts) {
this.powerDepts = powerDepts;
}
private String deptName;
private String deptCode;
public String getDeptCode() {
return deptCode;
}
public void setDeptCode(String deptCode) {
this.deptCode = deptCode;
}
private String powerDepts;
public Integer getUserId() {
return userId;
}

@ -133,6 +133,12 @@
#{item}
</foreach>
</if>
<if test="deptCode!= null and deptCode!= ''">
and m.dept_name in
<foreach item="item" collection="deptCode.split(',')" open="(" separator="," close=")">
#{item}
</foreach>
</if>
<if test="dischargeDateTime != null">
and m.discharge_date_time = #{dischargeDateTime,jdbcType=NVARCHAR}
</if>

@ -373,7 +373,7 @@
</update>
<!--按父id查询编码和名称-->
<select id="selectAllByParentId" resultMap="BaseResultMap">
select emr_dictionary.CODE,emr_dictionary.NAME from emr_dictionary
select distinct emr_dictionary.CODE,emr_dictionary.NAME from emr_dictionary
<where>
<if test="parentId != null and parentId != ''">
and parent_id = #{parentId}

@ -216,6 +216,7 @@
}
}
};
debugger
ajaxJsonFun();
//取出历史选中并选中
//getBrowItem();

Loading…
Cancel
Save