儿童医院高拍仪跳转
parent
73c68e4fc2
commit
3156fa7515
@ -0,0 +1,53 @@
|
|||||||
|
package com.emr.controller;
|
||||||
|
|
||||||
|
import com.emr.annotation.OptionalLog;
|
||||||
|
import com.emr.service.browseRecordsService;
|
||||||
|
import com.emr.util.ExceptionPrintUtil;
|
||||||
|
import com.emr.vo.EmrPrintOrDownLoadInfo.EmrPrintOrDownLoadInfoVo;
|
||||||
|
import com.emr.vo.browseRecords;
|
||||||
|
import com.github.pagehelper.PageHelper;
|
||||||
|
import com.github.pagehelper.PageInfo;
|
||||||
|
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Controller;
|
||||||
|
import org.springframework.ui.Model;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.ResponseBody;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Controller
|
||||||
|
@RequestMapping("browseRecords/")
|
||||||
|
public class BrowseRecordsController {
|
||||||
|
@Autowired
|
||||||
|
private browseRecordsService browseRecordsService;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@RequestMapping(value="recordsList")
|
||||||
|
public String recordsList(Model model) {
|
||||||
|
return "otherManage/browseRecords";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@RequiresPermissions("/browseRecords/select")
|
||||||
|
@RequestMapping("selectBrowseRecords")
|
||||||
|
@ResponseBody
|
||||||
|
public PageInfo selectBrowseRecords(Integer page, Integer limit, browseRecords browseRecords){
|
||||||
|
if(null != page && null != limit){
|
||||||
|
PageHelper.startPage(page, limit);
|
||||||
|
}
|
||||||
|
try{
|
||||||
|
//查询
|
||||||
|
List<com.emr.vo.browseRecords> list = browseRecordsService.selectAll(browseRecords);
|
||||||
|
return new PageInfo<>(list);
|
||||||
|
}catch (Exception e){
|
||||||
|
ExceptionPrintUtil.printException(e);
|
||||||
|
e.printStackTrace();
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,12 @@
|
|||||||
|
package com.emr.dao;
|
||||||
|
|
||||||
|
import com.emr.vo.EmrPrintOrDownLoadInfo.EmrPrintOrDownLoadInfoVo;
|
||||||
|
import com.emr.vo.browseRecords;
|
||||||
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public interface browseRecordsMapper {
|
||||||
|
|
||||||
|
List<browseRecords> selectAll(browseRecords records);
|
||||||
|
}
|
||||||
@ -0,0 +1,31 @@
|
|||||||
|
package com.emr.service;
|
||||||
|
|
||||||
|
import com.alibaba.fastjson.JSON;
|
||||||
|
import com.emr.dao.browseRecordsMapper;
|
||||||
|
import com.emr.entity.Zd_Assort;
|
||||||
|
import com.emr.vo.EmrPrintOrDownLoadInfo.EmrPrintOrDownLoadInfoVo;
|
||||||
|
import com.emr.vo.browseRecords;
|
||||||
|
import org.apache.commons.lang3.StringUtils;
|
||||||
|
import org.apache.shiro.util.CollectionUtils;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
|
import java.util.LinkedHashMap;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
@Service
|
||||||
|
@Transactional
|
||||||
|
public class browseRecordsService {
|
||||||
|
@Autowired
|
||||||
|
private browseRecordsMapper browseRecordsMapper;
|
||||||
|
/**
|
||||||
|
*按条件查询
|
||||||
|
* */
|
||||||
|
public List<browseRecords> selectAll(browseRecords records){
|
||||||
|
List<browseRecords> browseRecords = browseRecordsMapper.selectAll(records);
|
||||||
|
return browseRecords;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,117 @@
|
|||||||
|
package com.emr.vo;
|
||||||
|
|
||||||
|
public class browseRecords {
|
||||||
|
private String patientId;
|
||||||
|
private String patientName;
|
||||||
|
private Short admissTimes;
|
||||||
|
private String disDate;;
|
||||||
|
private String disDept;
|
||||||
|
private String attending;
|
||||||
|
private String startTime1;
|
||||||
|
private String endTime1;
|
||||||
|
|
||||||
|
public String getStartTime1() {
|
||||||
|
return startTime1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setStartTime1(String startTime1) {
|
||||||
|
this.startTime1 = startTime1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getEndTime1() {
|
||||||
|
return endTime1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEndTime1(String endTime1) {
|
||||||
|
this.endTime1 = endTime1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAttending() {
|
||||||
|
return attending;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getIp() {
|
||||||
|
return ip;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setIp(String ip) {
|
||||||
|
this.ip = ip;
|
||||||
|
}
|
||||||
|
|
||||||
|
private String ip;
|
||||||
|
|
||||||
|
public void setAttending(String attending) {
|
||||||
|
this.attending = attending;
|
||||||
|
}
|
||||||
|
|
||||||
|
private String browseName;
|
||||||
|
private String browseTime;
|
||||||
|
|
||||||
|
public String getPatientId() {
|
||||||
|
return patientId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPatientId(String patientId) {
|
||||||
|
this.patientId = patientId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPatientName() {
|
||||||
|
return patientName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPatientName(String patientName) {
|
||||||
|
this.patientName = patientName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Short getAdmissTimes() {
|
||||||
|
return admissTimes;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAdmissTimes(Short admissTimes) {
|
||||||
|
this.admissTimes = admissTimes;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDisDate() {
|
||||||
|
return disDate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDisDate(String disDate) {
|
||||||
|
this.disDate = disDate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDisDept() {
|
||||||
|
return disDept;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDisDept(String disDept) {
|
||||||
|
this.disDept = disDept;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public String getBrowseName() {
|
||||||
|
return browseName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBrowseName(String browseName) {
|
||||||
|
this.browseName = browseName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBrowseTime() {
|
||||||
|
return browseTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBrowseTime(String browseTime) {
|
||||||
|
this.browseTime = browseTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAdmissId() {
|
||||||
|
return admissId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAdmissId(String admissId) {
|
||||||
|
this.admissId = admissId;
|
||||||
|
}
|
||||||
|
|
||||||
|
private String admissId;
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,26 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
||||||
|
<mapper namespace="com.emr.dao.browseRecordsMapper">
|
||||||
|
|
||||||
|
|
||||||
|
<select id="selectAll" resultType="com.emr.vo.browseRecords" parameterType="com.emr.vo.browseRecords">
|
||||||
|
select * from browseRecords
|
||||||
|
<where> 1=1
|
||||||
|
<if test="patientId != null and patientId != ''">
|
||||||
|
and patient_id=#{patientId}
|
||||||
|
</if>
|
||||||
|
<if test="patientName != null and patientName != ''">
|
||||||
|
AND patient_name=#{patientName}
|
||||||
|
</if>
|
||||||
|
<if test="browseName != null and browseName != ''">
|
||||||
|
AND browse_name=#{browseName}
|
||||||
|
</if>
|
||||||
|
<if test="startTime1 != null and startTime1 != ''">
|
||||||
|
AND browse_time > #{startTime1}
|
||||||
|
</if>
|
||||||
|
<if test="endTime1 != null and endTime1 != ''">
|
||||||
|
AND browse_time < #{endTime1}
|
||||||
|
</if>
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
</mapper>
|
||||||
Loading…
Reference in New Issue