From e1f93a003390d0871b46d86056ca20829b80c692 Mon Sep 17 00:00:00 2001 From: zengwh <81383286@qq.com> Date: Wed, 13 Jan 2021 10:06:39 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=89=88=E6=9C=AC20200113?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/ipml/ArchiveOtherExtService.java | 35 ++++++++--------- .../mapper/ArchiveOtherExtMapper.xml | 35 ++++++++++++++--- .../resources/mapper/Archive_DetailMapper.xml | 2 +- .../resources/mapper/Archive_MasterMapper.xml | 2 +- src/main/resources/mapper/RecordMapper.xml | 2 +- .../views/beHospitaledDir/beHospList.jsp | 6 +-- src/main/webapp/WEB-INF/views/index.jsp | 33 ++++++++++++---- .../webapp/static/js/beHospList/beHospList.js | 13 ++++++- .../js/hospitalCommom/hospitalCommom.js | 39 ++++++++++++++----- src/main/webapp/static/js/menu.js | 7 +++- 10 files changed, 124 insertions(+), 50 deletions(-) diff --git a/src/main/java/com/emr/service/ipml/ArchiveOtherExtService.java b/src/main/java/com/emr/service/ipml/ArchiveOtherExtService.java index 4c65176..b168128 100644 --- a/src/main/java/com/emr/service/ipml/ArchiveOtherExtService.java +++ b/src/main/java/com/emr/service/ipml/ArchiveOtherExtService.java @@ -9,9 +9,7 @@ import com.emr.entity.ArchiveOtherExt; import com.emr.entity.ArchiveOtherExtSubmittime; import com.emr.vo.ArchiveOtherExtVo; import com.emr.vo.KeyValue; -import net.sf.json.JSONArray; import org.apache.commons.lang3.StringUtils; -import org.apache.ibatis.annotations.Param; import org.apache.shiro.util.CollectionUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @@ -45,31 +43,32 @@ public class ArchiveOtherExtService { * @throws Exception */ public List getArchiveExtInfo(HttpServletRequest request,ArchiveOtherExtVo archiveOtherExtVo) throws Exception{ + //读取系统标识json文件 + String fileNamePath = "static/json/dictionary.json"; + List statusAndSysFlagValues = readJsonData(request, fileNamePath); List list = archiveOtherExtMapper.getArchiveExtInfo(archiveOtherExtVo); - if(!CollectionUtils.isEmpty(list)){ - //读取系统标识json文件 - String fileNamePath = "static/json/dictionary.json"; - List statusAndSysFlagValues = readJsonData(request, fileNamePath); + if(!CollectionUtils.isEmpty(list)) { //查询护理的最新采集完成时间 String maxETime = archiveOtherExtMapper.selectMaxETimeByNursingAndJzh(archiveOtherExtVo.getJzh()); - for(ArchiveOtherExtVo vo : list){ - if(vo.getSysflag().equals(1)) { + archiveOtherExtVo.setNursingEndTime(maxETime); + for (ArchiveOtherExtVo vo : list) { + if (vo.getSysflag().equals(1)) { if (StringUtils.isNotBlank(maxETime)) { vo.setNursingEndTime(maxETime); } } //presulit为Done转换为完成 String presult = vo.getPresult(); - if(StringUtils.isNoneBlank(presult) && "done".equalsIgnoreCase(presult)){ + if (StringUtils.isNoneBlank(presult) && "done".equalsIgnoreCase(presult)) { vo.setPresult("完成"); } //转换采集状态 - if(!CollectionUtils.isEmpty(statusAndSysFlagValues)){ + if (!CollectionUtils.isEmpty(statusAndSysFlagValues)) { Integer statusflag = vo.getStatusflag(); - if(null != statusflag){ - for(KeyValue keyValue : statusAndSysFlagValues){ - if("otherExtStatusFlag".equals(keyValue.getType())){ - if(keyValue.getCode().equals(statusflag.toString())) { + if (null != statusflag) { + for (KeyValue keyValue : statusAndSysFlagValues) { + if ("otherExtStatusFlag".equals(keyValue.getType())) { + if (keyValue.getCode().equals(statusflag.toString())) { vo.setStatusFlagStr(keyValue.getName()); break; } @@ -78,11 +77,11 @@ public class ArchiveOtherExtService { } } //转换系统标识 - if(!CollectionUtils.isEmpty(statusAndSysFlagValues)){ + if (!CollectionUtils.isEmpty(statusAndSysFlagValues)) { Integer sysflag = vo.getSysflag(); - if(null != sysflag){ - for(KeyValue keyValue : statusAndSysFlagValues){ - if("otherExtSysFlag".equals(keyValue.getType())) { + if (null != sysflag) { + for (KeyValue keyValue : statusAndSysFlagValues) { + if ("otherExtSysFlag".equals(keyValue.getType())) { if (keyValue.getCode().equals(sysflag.toString())) { vo.setSysFlagStr(keyValue.getName()); break; diff --git a/src/main/resources/mapper/ArchiveOtherExtMapper.xml b/src/main/resources/mapper/ArchiveOtherExtMapper.xml index 4de2ed2..5b0d99e 100644 --- a/src/main/resources/mapper/ArchiveOtherExtMapper.xml +++ b/src/main/resources/mapper/ArchiveOtherExtMapper.xml @@ -434,7 +434,27 @@ + id="doctorInCharge" title="请输入主管医生" onchange="doctorOnChange(this)"> @@ -839,7 +839,7 @@ - - + + \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/views/index.jsp b/src/main/webapp/WEB-INF/views/index.jsp index a9c5216..85db56f 100644 --- a/src/main/webapp/WEB-INF/views/index.jsp +++ b/src/main/webapp/WEB-INF/views/index.jsp @@ -11,7 +11,7 @@ <%----%> <%@ include file="/WEB-INF/jspf/comm.jspf" %> - +