初次提交
commit
c2e722b3be
@ -0,0 +1,4 @@
|
||||
/target/
|
||||
/.idea/
|
||||
/out/
|
||||
emr_medical_record.iml
|
@ -0,0 +1,12 @@
|
||||
package com.emr.annotation;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Target;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Target(ElementType.METHOD)
|
||||
public @interface DataSource {
|
||||
String dataSource() default "";
|
||||
}
|
@ -0,0 +1,36 @@
|
||||
package com.emr.annotation;
|
||||
|
||||
import org.aspectj.lang.JoinPoint;
|
||||
import org.aspectj.lang.Signature;
|
||||
import org.aspectj.lang.annotation.Aspect;
|
||||
import org.aspectj.lang.annotation.Before;
|
||||
import org.aspectj.lang.annotation.Pointcut;
|
||||
import org.aspectj.lang.reflect.MethodSignature;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.lang.reflect.Method;
|
||||
|
||||
@Aspect
|
||||
@Component
|
||||
public class DataSourceAspect {
|
||||
//配置接入点
|
||||
@Pointcut("@annotation(com.emr.annotation.DataSource)")
|
||||
private void controllerAspect(){}//定义一个切入点
|
||||
@Before("controllerAspect()")
|
||||
public void dataSwitch(JoinPoint joinPoint){
|
||||
Signature signature = joinPoint.getSignature();
|
||||
MethodSignature methodSignature =(MethodSignature) signature;
|
||||
Method method = methodSignature.getMethod();
|
||||
DataSource data = null;
|
||||
String dataSource = "";
|
||||
if(method != null){
|
||||
data = method.getAnnotation(DataSource.class);
|
||||
if(data != null){
|
||||
dataSource = data.dataSource();
|
||||
if(dataSource != null){
|
||||
DynamicDataSource.setDataSourceKey(dataSource);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
package com.emr.annotation;
|
||||
|
||||
import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;
|
||||
|
||||
public class DynamicDataSource extends AbstractRoutingDataSource {
|
||||
private static final ThreadLocal<String> dataSourceKey = new InheritableThreadLocal<String>();
|
||||
public static void setDataSourceKey(String dataSource){
|
||||
dataSourceKey.set(dataSource);
|
||||
}
|
||||
@Override
|
||||
protected Object determineCurrentLookupKey() {
|
||||
return dataSourceKey.get();
|
||||
}
|
||||
}
|
@ -0,0 +1,103 @@
|
||||
package com.emr.controller;
|
||||
|
||||
import com.emr.entity.Archive_Master_Vo;
|
||||
import com.emr.entity.OffsetLimitPage;
|
||||
import com.emr.service.ipml.ArchiveFlowInfoService;
|
||||
import com.emr.util.ExportExcelUtil1;
|
||||
import com.emr.vo.ArchiveFlowInfoVo;
|
||||
import com.github.pagehelper.Page;
|
||||
import com.github.pagehelper.PageHelper;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @ProjectName:
|
||||
* @Description:
|
||||
* @Param 传输参数
|
||||
* @Return
|
||||
* @Author: 曾文和
|
||||
* @CreateDate: 2020/5/25 16:18
|
||||
* @UpdateUser: 曾文和
|
||||
* @UpdateDate: 2020/5/25 16:18
|
||||
* @UpdateRemark: 更新说明
|
||||
* @Version: 1.0
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("flowInfo/")
|
||||
public class ArchiveFlowInfoController {
|
||||
@Autowired
|
||||
private ArchiveFlowInfoService flowInfoService;
|
||||
|
||||
/**
|
||||
* 跳转到流程明细页面
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping("list")
|
||||
public String toList(){
|
||||
return "flowInfo/flowInfoList";
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取流程明细列表
|
||||
* @param offset
|
||||
* @param limit
|
||||
* @param flowInfoVo
|
||||
* @param isSearch
|
||||
* @return
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping(value = "selectFlowInfoList")
|
||||
@ResponseBody
|
||||
public OffsetLimitPage selectFlowInfoList(Integer offset, Integer limit, ArchiveFlowInfoVo flowInfoVo,Integer isSearch) throws Exception{
|
||||
//判断是否是初始化查询,是初始化查询把开始结束时间置空
|
||||
if(isSearch == 0){
|
||||
flowInfoVo.setDisStartDate(null);
|
||||
flowInfoVo.setDisEndDate(null);
|
||||
flowInfoVo.setStartDate(null);
|
||||
flowInfoVo.setEndDate(null);
|
||||
}
|
||||
PageHelper.offsetPage(offset,limit);
|
||||
List<ArchiveFlowInfoVo> list = flowInfoService.selectFlowInfoList(flowInfoVo,null);
|
||||
return new OffsetLimitPage((Page) list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出流程明细
|
||||
* @param response
|
||||
* @param flowInfoVo
|
||||
* @param sql
|
||||
* @param isSearch
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping("exportExcel")
|
||||
@ResponseBody
|
||||
public void exportExcel(HttpServletResponse response, ArchiveFlowInfoVo flowInfoVo,String sql, Integer isSearch) throws Exception{
|
||||
//全部明细
|
||||
String tableThNames = "";
|
||||
String fieldCns = "";
|
||||
//流程明细
|
||||
tableThNames = "审核工号,审核姓名,当前操作,审核日期,下个审核节点,患者姓名,住院号,出院科室,出院日期,批注内容,审核用时";
|
||||
fieldCns = "userName,checkName,sumbitName,createTimeCn,targetStep,name,inpNo,deptName,dischargeDateTime,remark,useTime";
|
||||
//判断是否是初始化查询,是初始化查询把开始结束时间置空
|
||||
if(isSearch == 0){
|
||||
flowInfoVo.setDisStartDate(null);
|
||||
flowInfoVo.setDisEndDate(null);
|
||||
flowInfoVo.setStartDate(null);
|
||||
flowInfoVo.setEndDate(null);
|
||||
}
|
||||
List<ArchiveFlowInfoVo> list = flowInfoService.selectFlowInfoList(flowInfoVo,sql);
|
||||
//文件名
|
||||
String fileName = "审核流程明细(" + new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date()) + ").xls";
|
||||
//ExportExcelUtil
|
||||
ExportExcelUtil1 exportExcelUtil = new ExportExcelUtil1();
|
||||
//导出excel的操作
|
||||
exportExcelUtil.expordExcel(tableThNames,fieldCns,list,fileName,response);
|
||||
}
|
||||
}
|
@ -0,0 +1,33 @@
|
||||
package com.emr.controller;
|
||||
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @ProjectName:
|
||||
* @Description:
|
||||
* @Param 传输参数
|
||||
* @Return
|
||||
* @Author: 曾文和
|
||||
* @CreateDate: 2019/9/17 14:59
|
||||
* @UpdateUser: 曾文和
|
||||
* @UpdateDate: 2019/9/17 14:59
|
||||
* @UpdateRemark: 更新说明
|
||||
* @Version: 1.0
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("contant/")
|
||||
public class ContantController {
|
||||
@RequestMapping("getUuid")
|
||||
@ResponseBody
|
||||
public String getUuid(HttpServletRequest request){
|
||||
String formToken = UUID.randomUUID().toString();
|
||||
request.getSession().setAttribute("formToken",formToken);
|
||||
return JSON.toJSONString(formToken);
|
||||
}
|
||||
}
|
@ -0,0 +1,125 @@
|
||||
/**
|
||||
* Copyright (C), 2015-2019
|
||||
* Author: HJL
|
||||
* Date: 2019/8/9 16:12
|
||||
* Description:
|
||||
*/
|
||||
package com.emr.controller;
|
||||
|
||||
import com.emr.entity.Emr_Dictionary;
|
||||
import com.emr.service.Emr_DictionaryService;
|
||||
import org.apache.shiro.SecurityUtils;
|
||||
import org.apache.shiro.session.Session;
|
||||
import org.apache.shiro.subject.Subject;
|
||||
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.text.SimpleDateFormat;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
@Controller
|
||||
@RequestMapping("/dictionary")
|
||||
public class DictionaryController {
|
||||
@Autowired
|
||||
private Emr_DictionaryService emrDictionaryService;
|
||||
|
||||
@RequestMapping(value = "/dictionarys")
|
||||
public String inHospitals(Model model) {
|
||||
return "dictionaryDir/dictionary";
|
||||
}
|
||||
|
||||
@ResponseBody
|
||||
@RequestMapping(value = "/dicList")
|
||||
public List<Emr_Dictionary> dicList(Emr_Dictionary emrDictionary) {
|
||||
return emrDictionaryService.dicByClo(emrDictionary);
|
||||
}
|
||||
|
||||
@ResponseBody
|
||||
@RequestMapping(value = "/delById")
|
||||
public int delById(Integer id) {
|
||||
int bol = 0;
|
||||
if (id != null) {
|
||||
//删除
|
||||
bol = emrDictionaryService.delById(id);
|
||||
}
|
||||
return bol;
|
||||
}
|
||||
|
||||
@ResponseBody
|
||||
@RequestMapping(value = "/saveInfo")
|
||||
public String saveInfo(Emr_Dictionary emrDictionary) {
|
||||
String result="";
|
||||
int bol=0;
|
||||
Emr_Dictionary dic2 = new Emr_Dictionary();
|
||||
// 从session获取用户名
|
||||
Subject currentUser = SecurityUtils.getSubject();
|
||||
Session session = currentUser.getSession();
|
||||
String username = (String) session.getAttribute("userSession");//获取前面登录的用户名
|
||||
|
||||
SimpleDateFormat format1 = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
||||
String nowTime = format1.format(new Date());
|
||||
|
||||
if(emrDictionary.getId()!=null){
|
||||
//判断类别代码或代码是否已经存在
|
||||
//存在修改
|
||||
emrDictionary.setUpdater(username);
|
||||
emrDictionary.setUpdateTime(nowTime);
|
||||
try{
|
||||
bol=emrDictionaryService.updateCloById(emrDictionary);
|
||||
}catch (Exception e){
|
||||
e.printStackTrace();
|
||||
}
|
||||
if (bol == 1) {
|
||||
result = "修改成功!";
|
||||
} else {
|
||||
result = "修改失败!";
|
||||
}
|
||||
}else{
|
||||
emrDictionary.setCreater(username);
|
||||
emrDictionary.setCreateTime(nowTime);
|
||||
//判断类别代码或代码是否已经存在
|
||||
if(emrDictionary.getCode()!=null && emrDictionary.getCode()!=""){
|
||||
dic2.setCode(emrDictionary.getCode());
|
||||
dic2.setParentId(emrDictionary.getParentId());
|
||||
//根据代码查询该父类下是否存在是否已经存在
|
||||
List<Emr_Dictionary> list = emrDictionaryService.dicByClo(dic2);
|
||||
//添加叶子节点
|
||||
if(list.size()<=0){
|
||||
//添加叶子
|
||||
bol = emrDictionaryService.insertSel(emrDictionary);
|
||||
if(bol==1){
|
||||
result = "添加成功!";
|
||||
}else{
|
||||
result = "添加失败!";
|
||||
}
|
||||
}else{
|
||||
result="代码已存在!";
|
||||
}
|
||||
}else{
|
||||
dic2.setTypecode(emrDictionary.getTypecode());
|
||||
//根据代码查询是否已经存在
|
||||
List<Emr_Dictionary> list = emrDictionaryService.dicByClo(dic2);
|
||||
//添加叶子节点
|
||||
if (list.size() <= 0) {
|
||||
//emrDictionary.setEffective(1);
|
||||
//添加类别
|
||||
bol = emrDictionaryService.insertSel(emrDictionary);
|
||||
if (bol == 1) {
|
||||
result = "添加成功!";
|
||||
} else {
|
||||
result = "添加失败!";
|
||||
}
|
||||
} else {
|
||||
result = "代码已存在!";
|
||||
}
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -0,0 +1,31 @@
|
||||
package com.emr.controller;
|
||||
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpSession;
|
||||
|
||||
/**
|
||||
* @ProjectName:
|
||||
* @Description:
|
||||
* @Param 传输参数
|
||||
* @Return
|
||||
* @Author: 曾文和
|
||||
* @CreateDate: 2019/9/17 14:20
|
||||
* @UpdateUser: 曾文和
|
||||
* @UpdateDate: 2019/9/17 14:20
|
||||
* @UpdateRemark: 更新说明
|
||||
* @Version: 1.0
|
||||
*/
|
||||
public class FormTokenFlagUtil {
|
||||
public static boolean isFlag(HttpServletRequest request) {
|
||||
HttpSession session = request.getSession();
|
||||
String sesionToken = (String) session.getAttribute("formToken");
|
||||
String token = request.getParameter("formToken");
|
||||
if (StringUtils.isNoneBlank(token) && !(token.equals(sesionToken))) {
|
||||
return false;
|
||||
}
|
||||
session.removeAttribute("formToken");
|
||||
return true;
|
||||
}
|
||||
}
|
@ -0,0 +1,45 @@
|
||||
package com.emr.controller;
|
||||
|
||||
import com.emr.entity.EmrHolidaySetVo;
|
||||
import com.emr.entity.OffsetLimitPage;
|
||||
import com.emr.service.ipml.HolidaySetService;
|
||||
import com.emr.util.Msg;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
|
||||
@Controller
|
||||
@RequestMapping("holidaySet/")
|
||||
public class HolidaySetController {
|
||||
@Autowired
|
||||
private HolidaySetService holidaySetService;
|
||||
@RequestMapping("holidaySetList")
|
||||
public String holidaySetList(){
|
||||
return "holidaySetDir/holidaySetList";
|
||||
}
|
||||
|
||||
@ResponseBody
|
||||
@RequestMapping(value = "getHolidaySetList")
|
||||
public OffsetLimitPage getHolidaySetList(EmrHolidaySetVo holidaySetVo) {
|
||||
return holidaySetService.selectByColumn(holidaySetVo);
|
||||
}
|
||||
|
||||
@RequestMapping("save")
|
||||
@ResponseBody
|
||||
public Msg save(String startTime,String endTime,String checkBoxes,Integer flag) throws Exception{
|
||||
holidaySetService.update(startTime, endTime, checkBoxes, flag);
|
||||
return Msg.success();
|
||||
}
|
||||
|
||||
@RequestMapping("update")
|
||||
@ResponseBody
|
||||
public Msg update(Integer flag,Integer id) throws Exception{
|
||||
if(flag != null) {
|
||||
holidaySetService.update(flag, id);
|
||||
return Msg.success();
|
||||
}else{
|
||||
return Msg.fail("工作日状态不能为空!");
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,55 @@
|
||||
package com.emr.controller;
|
||||
|
||||
import org.apache.cxf.Bus;
|
||||
import org.apache.cxf.bus.CXFBusFactory;
|
||||
import org.apache.cxf.endpoint.EndpointImplFactory;
|
||||
import org.apache.cxf.endpoint.dynamic.DynamicClientFactory;
|
||||
import org.apache.cxf.jaxws.support.JaxWsEndpointImplFactory;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @ProjectName:
|
||||
* @Description:
|
||||
* @Param 传输参数
|
||||
* @Return
|
||||
* @Author: 曾文和
|
||||
* @CreateDate: 2019/9/11 16:15
|
||||
* @UpdateUser: 曾文和
|
||||
* @UpdateDate: 2019/9/11 16:15
|
||||
* @UpdateRemark: 更新说明
|
||||
* @Version: 1.0
|
||||
*/
|
||||
public class JAXDynamicClientFactory extends DynamicClientFactory {
|
||||
protected JAXDynamicClientFactory(Bus bus) {
|
||||
super(bus);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected EndpointImplFactory getEndpointImplFactory() {
|
||||
return JaxWsEndpointImplFactory.getSingleton();
|
||||
}
|
||||
@Override
|
||||
protected boolean allowWrapperOps() {
|
||||
return true;
|
||||
}
|
||||
|
||||
public static JAXDynamicClientFactory newInstance(Bus b) {
|
||||
return new JAXDynamicClientFactory(b);
|
||||
}
|
||||
|
||||
public static JAXDynamicClientFactory newInstance() {
|
||||
Bus bus = CXFBusFactory.getThreadDefaultBus();
|
||||
return new JAXDynamicClientFactory(bus);
|
||||
}
|
||||
@Override
|
||||
public boolean compileJavaSrc(String classPath, List srcList, String dest) {
|
||||
org.apache.cxf.common.util.Compiler javaCompiler
|
||||
= new org.apache.cxf.common.util.Compiler();
|
||||
javaCompiler.setEncoding("UTF-8");
|
||||
javaCompiler.setClassPath(classPath);
|
||||
javaCompiler.setOutputDir(dest);
|
||||
javaCompiler.setTarget("1.8");
|
||||
return javaCompiler.compileFiles(srcList);
|
||||
}
|
||||
}
|
@ -0,0 +1,72 @@
|
||||
package com.emr.controller;
|
||||
|
||||
import com.emr.entity.Power_User;
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.apache.cxf.endpoint.Client;
|
||||
import org.apache.shiro.SecurityUtils;
|
||||
import org.apache.shiro.authc.UsernamePasswordToken;
|
||||
import org.apache.shiro.subject.Subject;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.Model;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
|
||||
/**
|
||||
* @author HJL
|
||||
* @create 2019/4/29
|
||||
*/
|
||||
@Controller
|
||||
public class LoginController {
|
||||
|
||||
@Value("${POWER_URLHEAD}")
|
||||
private String POWER_URLHEAD;
|
||||
|
||||
@Value("${POWER_JSP}")
|
||||
private String POWER_JSP;
|
||||
|
||||
@Value("${powerUrl}")
|
||||
private String powerUrl;
|
||||
|
||||
@RequestMapping(value = "/toLogin")
|
||||
public String toLogin(Model model) {
|
||||
return "redirect:/login.jsp";
|
||||
}
|
||||
|
||||
//实现用户登录@PathVariable("username")
|
||||
@RequestMapping(value = "/login")
|
||||
public String login(Model model, HttpServletRequest request) throws Exception{
|
||||
String token = request.getParameter("token");
|
||||
if(StringUtils.isNoneBlank(token)){
|
||||
JAXDynamicClientFactory dcf = JAXDynamicClientFactory.newInstance();
|
||||
Client client = dcf.createClient(POWER_URLHEAD + "/WebService/PowerWebService?wsdl");
|
||||
Object[] objects = client.invoke("getInfosByUserId", token, "emr_medical_record");
|
||||
ObjectMapper mapper = new ObjectMapper();
|
||||
Power_User powerUser = mapper.readValue(objects[0].toString(), Power_User.class);
|
||||
//设置进session
|
||||
request.getSession().setAttribute("CURRENT_USER", powerUser);
|
||||
if (null == powerUser.getUserId()) {
|
||||
return "redirect:/emr_medical_record/error.jsp";
|
||||
}
|
||||
String userName = request.getParameter("userName");
|
||||
UsernamePasswordToken userToken = new UsernamePasswordToken(userName, "123456");
|
||||
Subject subject = SecurityUtils.getSubject();
|
||||
subject.login(userToken);
|
||||
model.addAttribute("POWER_URLHEAD", POWER_JSP);
|
||||
request.getSession().setAttribute("token", token);
|
||||
}else{
|
||||
return "redirect:"+POWER_URLHEAD+"/login";
|
||||
}
|
||||
return "index";
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/index")
|
||||
public String Login() {
|
||||
return "index";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
@ -0,0 +1,90 @@
|
||||
/**
|
||||
* Copyright (C), 2015-2019
|
||||
* Author: HJL
|
||||
* Date: 2019/7/19 14:39
|
||||
* Description:病案终审退回
|
||||
*/
|
||||
package com.emr.controller;
|
||||
|
||||
import com.emr.dao.Archive_MasterMapper;
|
||||
import com.emr.entity.*;
|
||||
import com.emr.service.Archive_MasterService;
|
||||
import com.emr.service.ipml.ArchiveCallbackInfoService;
|
||||
import com.emr.util.ExportExcelUtil;
|
||||
import com.emr.util.Msg;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.context.annotation.PropertySource;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
@PropertySource(value = "classpath:config/jdbc.properties", encoding = "UTF-8")
|
||||
@Controller
|
||||
@RequestMapping("/medicalRecall")
|
||||
public class MedicalRecallController {
|
||||
@Autowired
|
||||
private Archive_MasterMapper archiveMasterMapper;
|
||||
|
||||
@Autowired
|
||||
private Archive_MasterService archiveMasterService;
|
||||
|
||||
@Autowired
|
||||
private ArchiveCallbackInfoService callbackInfoService;
|
||||
|
||||
@Value("${recallReason}")
|
||||
private String recallReason;
|
||||
|
||||
@RequestMapping(value = "/recall")
|
||||
public String recall() {
|
||||
return "medicalRecallDir/medicalRecallList";
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 病案终审退回
|
||||
* */
|
||||
@ResponseBody
|
||||
@RequestMapping(value = "/recallList")
|
||||
public OffsetLimitPage recallList(Archive_Master_Vo master, Integer offset, Integer limit) {
|
||||
//查询已归档记录
|
||||
return archiveMasterService.selectFiled(master, offset, limit);
|
||||
}
|
||||
|
||||
@ResponseBody
|
||||
@RequestMapping(value = "/exportExcel")
|
||||
public void exportExcel(HttpServletResponse response, Archive_Master_Vo master) throws Exception {
|
||||
String tableThNames = "住院号,住院次数,名字,性别,入院科室,入院日期,出院科室,出院日期,上次召回状态,归档状态";
|
||||
String fieldCns = "inpNo,visitId,name,sex,deptAdmissionTo,admissionDateTime,deptName,dischargeDateTime,status,archivestate";
|
||||
List<Archive_Master_Vo> list = archiveMasterMapper.selectFiled(master);
|
||||
//文件名
|
||||
String fileName = "归档记录" + new SimpleDateFormat("yyyyMMddHHmmss").format(new Date()) + ".xls";
|
||||
//ExportExcelUtil
|
||||
ExportExcelUtil exportExcelUtil = new ExportExcelUtil();
|
||||
//导出excel的操作
|
||||
exportExcelUtil.expordExcel(tableThNames,fieldCns,list,fileName,response);
|
||||
}
|
||||
|
||||
@ResponseBody
|
||||
@RequestMapping(value = "/updateState")
|
||||
public Msg updateState(HttpServletRequest request,ArchiveCallbackInfo callbackInfo) throws Exception{
|
||||
boolean flag = FormTokenFlagUtil.isFlag(request);
|
||||
if (!flag) {
|
||||
return Msg.fail("请不要重复提交!");
|
||||
}
|
||||
if(StringUtils.isBlank(callbackInfo.getCallbackReason())){
|
||||
callbackInfo.setCallbackReason(recallReason);
|
||||
}
|
||||
callbackInfoService.insertCallbackInfoService(callbackInfo);
|
||||
return Msg.success();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -0,0 +1,310 @@
|
||||
package com.emr.controller;
|
||||
|
||||
import com.emr.entity.Archive_Master_Vo;
|
||||
import com.emr.entity.OffsetLimitPage;
|
||||
import com.emr.service.ipml.StatisticsService;
|
||||
import com.emr.util.ExportExcelUtil1;
|
||||
import com.emr.vo.FinalAndFirstStatistics;
|
||||
import com.emr.vo.TUuInfoVo;
|
||||
import com.emr.vo.TUuPrintSearch;
|
||||
import com.emr.vo.TUuPrintVo;
|
||||
import com.github.pagehelper.Page;
|
||||
import com.github.pagehelper.PageHelper;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @ProjectName:
|
||||
* @Description:
|
||||
* @Param 传输参数
|
||||
* @Return
|
||||
* @Author: 曾文和
|
||||
* @CreateDate: 2020/1/8 14:52
|
||||
* @UpdateUser: 曾文和
|
||||
* @UpdateDate: 2020/1/8 14:52
|
||||
* @UpdateRemark: 更新说明
|
||||
* @Version: 1.0
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("statistics/")
|
||||
public class StatisticsController {
|
||||
@Autowired
|
||||
private StatisticsService statisticsService;
|
||||
//终审按天统计
|
||||
@RequestMapping("finalStatistics")
|
||||
public String finalStatistics(){
|
||||
return "statistics/finalStatistics";
|
||||
}
|
||||
|
||||
//终审明细
|
||||
@RequestMapping("finalStatisticsDetail")
|
||||
public String finalStatisticsDetail(){
|
||||
return "statistics/finalStatisticsDetail";
|
||||
}
|
||||
|
||||
//初审按天统计
|
||||
@RequestMapping("firstStatistics")
|
||||
public String firstStatistics(){
|
||||
return "statistics/firstStatistics";
|
||||
}
|
||||
|
||||
//初审终审明细
|
||||
@RequestMapping("statisticsDetail")
|
||||
public String statisticsDetail(){
|
||||
return "statistics/statisticsDetail";
|
||||
}
|
||||
|
||||
//复印记录报表
|
||||
@RequestMapping("printCount")
|
||||
public String printCount(){
|
||||
return "statistics/printCount";
|
||||
}
|
||||
|
||||
//复印记录明细
|
||||
@RequestMapping("printInfo")
|
||||
public String printInfo(){
|
||||
return "statistics/printInfo";
|
||||
}
|
||||
|
||||
//扫描上传记录报表
|
||||
@RequestMapping("scanCount")
|
||||
public String scanCount(){
|
||||
return "statistics/scanCount";
|
||||
}
|
||||
|
||||
//扫描上传明细
|
||||
@RequestMapping("scanInfo")
|
||||
public String scanInfo(){
|
||||
return "statistics/scanInfo";
|
||||
}
|
||||
|
||||
//终审按天统计
|
||||
@RequestMapping("getFinalStatistics")
|
||||
@ResponseBody
|
||||
public OffsetLimitPage getFinalStatistics(HttpServletRequest request,Integer offset, Integer limit, String startDate, String endDate,Integer isSearch){
|
||||
//判断是否是初始化查询,是初始化查询把开始结束时间置空
|
||||
if(isSearch == 0){
|
||||
startDate = null;
|
||||
endDate = null;
|
||||
}
|
||||
List<FinalAndFirstStatistics> list = statisticsService.getFinalStatistics(offset, limit, startDate, endDate,null);
|
||||
return new OffsetLimitPage((Page)list);
|
||||
}
|
||||
|
||||
//初审按天统计
|
||||
@RequestMapping("getFirstStatistics")
|
||||
@ResponseBody
|
||||
public OffsetLimitPage getFirstStatistics(HttpServletRequest request,Integer offset, Integer limit, String startDate, String endDate,Integer isSearch){
|
||||
//判断是否是初始化查询,是初始化查询把开始结束时间置空
|
||||
if(isSearch == 0){
|
||||
startDate = null;
|
||||
endDate = null;
|
||||
}
|
||||
List<FinalAndFirstStatistics> list = statisticsService.getFirstStatistics(request, offset, limit, startDate, endDate,null);
|
||||
return new OffsetLimitPage((Page) list);
|
||||
}
|
||||
|
||||
|
||||
//审核明细
|
||||
@RequestMapping("getStatisticsDetail")
|
||||
@ResponseBody
|
||||
public OffsetLimitPage getStatisticsDetail(Integer offset, Integer limit,String disStartDate, String disEndDate, Archive_Master_Vo archiveMasterVo,Integer flag,Integer isSearch){
|
||||
//判断是否是初始化查询,是初始化查询把开始结束时间置空
|
||||
if(isSearch == 0){
|
||||
disStartDate = null;
|
||||
disEndDate = null;
|
||||
archiveMasterVo.setStartDate(null);
|
||||
archiveMasterVo.setEndDate(null);
|
||||
}
|
||||
return statisticsService.getStatisticsDetail(offset,limit,disStartDate,disEndDate,archiveMasterVo,flag);
|
||||
}
|
||||
|
||||
//导出终审统计
|
||||
@RequestMapping("exportExcelFinalStatistics")
|
||||
@ResponseBody
|
||||
public void exportExcelFinalStatistics(HttpServletResponse response,Integer offset, Integer limit, String startDate, String endDate,String sql,Integer isSearch) throws Exception{
|
||||
//全部明细
|
||||
String tableThNames = "工号,姓名,终审日期,终审数量";
|
||||
String fieldCns = "checkCode,checkName,createTime,count";
|
||||
//判断是否是初始化查询,是初始化查询把开始结束时间置空
|
||||
if(isSearch == 0){
|
||||
startDate = null;
|
||||
endDate = null;
|
||||
}
|
||||
List<FinalAndFirstStatistics> list = statisticsService.getFinalStatistics(offset, limit, startDate, endDate,sql);
|
||||
//文件名
|
||||
String fileName = "终审记录统计报表(" + new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date()) + ").xls";
|
||||
//ExportExcelUtil
|
||||
ExportExcelUtil1 exportExcelUtil = new ExportExcelUtil1();
|
||||
//导出excel的操作
|
||||
exportExcelUtil.expordExcel(tableThNames,fieldCns,list,fileName,response);
|
||||
}
|
||||
|
||||
//导出初审统计
|
||||
@RequestMapping("exportExcelFirstStatistics")
|
||||
@ResponseBody
|
||||
public void exportExcelFirstStatistics(HttpServletRequest request,HttpServletResponse response,Integer offset, Integer limit, String startDate, String endDate,String sql,Integer isSearch) throws Exception{
|
||||
//全部明细
|
||||
String tableThNames = "工号,姓名,审核日期,审核数量";
|
||||
String fieldCns = "checkCode,checkName,createTime,count";
|
||||
//判断是否是初始化查询,是初始化查询把开始结束时间置空
|
||||
if(isSearch == 0){
|
||||
startDate = null;
|
||||
endDate = null;
|
||||
}
|
||||
List<FinalAndFirstStatistics> list = statisticsService.getFirstStatistics(request, offset, limit, startDate, endDate,sql);
|
||||
//文件名
|
||||
String fileName = "病案室审核记录统计表(" + new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date()) + ").xls";
|
||||
//ExportExcelUtil
|
||||
ExportExcelUtil1 exportExcelUtil = new ExportExcelUtil1();
|
||||
//导出excel的操作
|
||||
exportExcelUtil.expordExcel(tableThNames,fieldCns,list,fileName,response);
|
||||
}
|
||||
|
||||
//导出审核明细
|
||||
@RequestMapping("exportExcelDetail")
|
||||
@ResponseBody
|
||||
public void exportExcelDetail(HttpServletResponse response,String disStartDate, String disEndDate, Archive_Master_Vo archiveMasterVo, Integer flag,String sql,Integer isSearch) throws Exception{
|
||||
//全部明细
|
||||
String tableThNames = "";
|
||||
String fieldCns = "";
|
||||
if(flag == 2){
|
||||
tableThNames = "初审工号,初审姓名,初审日期,终审工号,终审姓名,终审日期,患者姓名,住院号,出院科室,出院日期,入院科室,入院日期,住院天数";
|
||||
fieldCns = "checkDoctor,checkName,checkDatetime,checkedDoctor,checkedName,checkedDatetime,name,inpNo,deptName,dischargeDateTime,deptAdmissionTo,admissionDateTime,days";
|
||||
}else{
|
||||
//终审明细
|
||||
tableThNames = "终审工号,终审姓名,终审日期,患者姓名,住院号,出院科室,出院日期,入院科室,入院日期,住院天数";
|
||||
fieldCns = "checkedDoctor,checkedName,checkedDatetime,name,inpNo,deptName,dischargeDateTime,deptAdmissionTo,admissionDateTime,days";
|
||||
}
|
||||
//判断是否是初始化查询,是初始化查询把开始结束时间置空
|
||||
if(isSearch == 0){
|
||||
disStartDate = null;
|
||||
disEndDate = null;
|
||||
archiveMasterVo.setStartDate(null);
|
||||
archiveMasterVo.setEndDate(null);
|
||||
}
|
||||
List<Archive_Master_Vo> list = statisticsService.getDetailList(disStartDate, disEndDate, archiveMasterVo,flag,sql);
|
||||
//文件名
|
||||
String fileName = "病案室审核记录明细报表(" + new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date()) + ").xls";
|
||||
//ExportExcelUtil
|
||||
ExportExcelUtil1 exportExcelUtil = new ExportExcelUtil1();
|
||||
//导出excel的操作
|
||||
exportExcelUtil.expordExcel(tableThNames,fieldCns,list,fileName,response);
|
||||
}
|
||||
|
||||
//复印记录报表
|
||||
@RequestMapping("getPrintCount")
|
||||
@ResponseBody
|
||||
public OffsetLimitPage getPrintCount(Integer offset, Integer limit, TUuPrintSearch search){
|
||||
if(null != offset && null != limit){
|
||||
PageHelper.offsetPage(offset, limit);
|
||||
}
|
||||
List<TUuPrintVo> list = statisticsService.getPrintCount(search);
|
||||
return new OffsetLimitPage((Page)list);
|
||||
}
|
||||
|
||||
//复印记录明细
|
||||
@RequestMapping("getPrintInfo")
|
||||
@ResponseBody
|
||||
public OffsetLimitPage getPrintInfo(Integer offset, Integer limit,TUuPrintSearch search){
|
||||
if(null != offset && null != limit){
|
||||
PageHelper.offsetPage(offset, limit);
|
||||
}
|
||||
List<TUuPrintVo> list = statisticsService.getPrintInfo(search);
|
||||
return new OffsetLimitPage((Page)list);
|
||||
}
|
||||
|
||||
//扫描记录报表
|
||||
@RequestMapping("getScanCount")
|
||||
@ResponseBody
|
||||
public OffsetLimitPage getScanCount(Integer offset, Integer limit,TUuPrintSearch search){
|
||||
if(null != offset && null != limit){
|
||||
PageHelper.offsetPage(offset, limit);
|
||||
}
|
||||
List<TUuInfoVo> list = statisticsService.getScanCount(search);
|
||||
return new OffsetLimitPage((Page)list);
|
||||
}
|
||||
|
||||
//扫描记录明细
|
||||
@RequestMapping("getScanInfo")
|
||||
@ResponseBody
|
||||
public OffsetLimitPage getScanInfo(Integer offset, Integer limit,TUuPrintSearch search){
|
||||
if(null != offset && null != limit){
|
||||
PageHelper.offsetPage(offset, limit);
|
||||
}
|
||||
List<TUuInfoVo> list = statisticsService.getScanInfo(search);
|
||||
return new OffsetLimitPage((Page)list);
|
||||
}
|
||||
|
||||
//导出复印记录报表
|
||||
@RequestMapping("exportExcelPrintCount")
|
||||
@ResponseBody
|
||||
public void exportExcelPrintCount(HttpServletResponse response,TUuPrintSearch search) throws Exception{
|
||||
//全部明细
|
||||
String tableThNames = "记账号,住院号,住院次数,患者,复印日期,操作人,复印次数";
|
||||
String fieldCns = "patientId,inpNo,visitId,hzname,printTime,cpyuser,printCount";
|
||||
List<TUuPrintVo> list = statisticsService.getPrintCount(search);
|
||||
//文件名
|
||||
String fileName = "复印记录报表(" + new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date()) + ").xls";
|
||||
//ExportExcelUtil
|
||||
ExportExcelUtil1 exportExcelUtil = new ExportExcelUtil1();
|
||||
//导出excel的操作
|
||||
exportExcelUtil.expordExcel(tableThNames,fieldCns,list,fileName,response);
|
||||
}
|
||||
|
||||
//导出复印记录明细
|
||||
@RequestMapping("exportExcelPrintInfo")
|
||||
@ResponseBody
|
||||
public void exportExcelPrintInfo(HttpServletResponse response,TUuPrintSearch search) throws Exception{
|
||||
//全部明细
|
||||
String tableThNames = "记账号,住院号,住院次数,患者姓名,性别,入院时间,出院时间,出院科室,主管医生,复印内容,操作人,复印日期,修改标志";
|
||||
String fieldCns = "patientId,inpNo,visitId,hzname,sex,admissionDateTime,dischargeDateTime,name,doctorInCharge,filetitle,cpyuser,printTime,flagCn";
|
||||
List<TUuPrintVo> list = statisticsService.getPrintInfo(search);
|
||||
//文件名
|
||||
String fileName = "复印记录明细(" + new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date()) + ").xls";
|
||||
//ExportExcelUtil
|
||||
ExportExcelUtil1 exportExcelUtil = new ExportExcelUtil1();
|
||||
//导出excel的操作
|
||||
exportExcelUtil.expordExcel(tableThNames,fieldCns,list,fileName,response);
|
||||
}
|
||||
|
||||
//导出扫描记录报表
|
||||
@RequestMapping("exportExcelScanCount")
|
||||
@ResponseBody
|
||||
public void exportExcelScanCount(HttpServletResponse response,TUuPrintSearch search) throws Exception{
|
||||
//全部明细
|
||||
String tableThNames = "扫描人,扫描日期,扫描次数";
|
||||
String fieldCns = "uuname,uploaddatetime,scanCount";
|
||||
List<TUuInfoVo> list = statisticsService.getScanCount(search);
|
||||
//文件名
|
||||
String fileName = "扫描上传记录报表(" + new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date()) + ").xls";
|
||||
//ExportExcelUtil
|
||||
ExportExcelUtil1 exportExcelUtil = new ExportExcelUtil1();
|
||||
//导出excel的操作
|
||||
exportExcelUtil.expordExcel(tableThNames,fieldCns,list,fileName,response);
|
||||
}
|
||||
|
||||
//导出扫描记录明细
|
||||
@RequestMapping("exportExcelScanInfo")
|
||||
@ResponseBody
|
||||
public void exportExcelScanInfo(HttpServletResponse response,TUuPrintSearch search) throws Exception{
|
||||
//全部明细
|
||||
String tableThNames = "记账号,住院号,住院次数,患者姓名,性别,入院时间,出院时间,出院科室,主管医生,扫描人,扫描时间";
|
||||
String fieldCns = "patientId,inpNo,visitId,hzname,sex,admissionDateTime,dischargeDateTime,doctorDept,doctorInCharge,uuname,uploaddatetime";
|
||||
List<TUuInfoVo> list = statisticsService.getScanInfo(search);
|
||||
//文件名
|
||||
String fileName = "扫描上传记录明细(" + new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date()) + ").xls";
|
||||
//ExportExcelUtil
|
||||
ExportExcelUtil1 exportExcelUtil = new ExportExcelUtil1();
|
||||
//导出excel的操作
|
||||
exportExcelUtil.expordExcel(tableThNames,fieldCns,list,fileName,response);
|
||||
}
|
||||
}
|
@ -0,0 +1,118 @@
|
||||
/**
|
||||
* Copyright (C), 2015-2019
|
||||
* Author: HJL
|
||||
* Date: 2019/7/10 17:09
|
||||
* Description:
|
||||
*/
|
||||
package com.emr.controller;
|
||||
|
||||
import org.apache.log4j.Logger;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMethod;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.io.PrintWriter;
|
||||
|
||||
@Controller
|
||||
@RequestMapping(value = "/Upload")
|
||||
public class UploadFilesController {
|
||||
private Logger logger = Logger.getLogger(UploadFilesController.class);
|
||||
/**
|
||||
* app申请打印图片
|
||||
*
|
||||
* @param
|
||||
* @return
|
||||
* @throws IOException
|
||||
*/
|
||||
@RequestMapping(value = "/uploadImg", method = RequestMethod.POST)
|
||||
public void uploadImg(HttpServletResponse resp, HttpServletRequest request, @RequestParam(value = "file", required = false) MultipartFile file) throws IOException {
|
||||
resp.setContentType("text/json");
|
||||
resp.setCharacterEncoding("utf-8");
|
||||
PrintWriter pw = null;
|
||||
pw = resp.getWriter();
|
||||
if (!file.isEmpty()) {
|
||||
logger.info("成功获取照片");
|
||||
String fileName = file.getOriginalFilename();
|
||||
String path = null;
|
||||
String type = null;
|
||||
if (fileName != null) {
|
||||
type = fileName.contains(".") ? fileName.substring(fileName.lastIndexOf(".") + 1) : null;
|
||||
}
|
||||
logger.info("图片初始名称为:" + fileName + " 类型为:" + type);
|
||||
if (type != null) {
|
||||
if ("PDF".equals(type.toUpperCase())) {
|
||||
// 项目在容器中实际发布运行的根路径
|
||||
String realPath = request.getSession().getServletContext().getRealPath("/");
|
||||
// 自定义的文件名称
|
||||
String trueFileName = System.currentTimeMillis() + fileName;
|
||||
// 设置存放图片文件的路径
|
||||
path = realPath + "/static/img/uploads/" + trueFileName;
|
||||
logger.info("存放图片文件的路径:" + path);
|
||||
file.transferTo(new File(path));
|
||||
logger.info("文件成功上传到指定目录下");
|
||||
} else {
|
||||
logger.info("不是PDF文件类型,请按要求重新上传");
|
||||
pw.print("文件类型有误,请重新上传");
|
||||
}
|
||||
} else {
|
||||
logger.info("文件类型为空");
|
||||
pw.print("文件类型为空");
|
||||
}
|
||||
} else {
|
||||
logger.info("没有找到相对应的文件");
|
||||
pw.print("没有找到相对应的文件");
|
||||
}
|
||||
pw.flush();
|
||||
}
|
||||
|
||||
@ResponseBody
|
||||
@RequestMapping("upload")
|
||||
public String upload(HttpServletRequest request, @RequestParam(value = "file", required = false) MultipartFile file) throws IOException {
|
||||
request.setCharacterEncoding("UTF-8");
|
||||
logger.info("执行图片上传");
|
||||
String userId = request.getParameter("userId");
|
||||
logger.info("userId:" + userId);
|
||||
if (!file.isEmpty()) {
|
||||
logger.info("成功获取照片");
|
||||
String fileName = file.getOriginalFilename();
|
||||
String path = null;
|
||||
String type = null;
|
||||
if (fileName != null) {
|
||||
type = fileName.contains(".") ? fileName.substring(fileName.lastIndexOf(".") + 1) : null;
|
||||
}
|
||||
logger.info("图片初始名称为:" + fileName + " 类型为:" + type);
|
||||
if (type != null) {
|
||||
if ("GIF".equals(type.toUpperCase()) || "PNG".equals(type.toUpperCase()) || "JPG".equals(type.toUpperCase())) {
|
||||
// 项目在容器中实际发布运行的根路径
|
||||
String realPath = request.getSession().getServletContext().getRealPath("/");
|
||||
// 自定义的文件名称
|
||||
String trueFileName = System.currentTimeMillis() + fileName;
|
||||
// 设置存放图片文件的路径
|
||||
path = realPath + "/uploads/" + trueFileName;
|
||||
logger.info("存放图片文件的路径:" + path);
|
||||
file.transferTo(new File(path));
|
||||
logger.info("文件成功上传到指定目录下");
|
||||
} else {
|
||||
logger.info("不是我们想要的文件类型,请按要求重新上传");
|
||||
return "error";
|
||||
}
|
||||
} else {
|
||||
logger.info("文件类型为空");
|
||||
return "error";
|
||||
}
|
||||
} else {
|
||||
logger.info("没有找到相对应的文件");
|
||||
return "error";
|
||||
}
|
||||
return "success";
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -0,0 +1,57 @@
|
||||
/**
|
||||
* Copyright (C), 2015-2019
|
||||
* Author: HJL
|
||||
* Date: 2019/8/22 13:49
|
||||
* Description:
|
||||
*/
|
||||
package com.emr.controller;
|
||||
|
||||
import com.emr.entity.Power_User;
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.apache.cxf.endpoint.Client;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.web.servlet.HandlerInterceptor;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
public class UrlInterceptor implements HandlerInterceptor {
|
||||
@Value("${POWER_URLHEAD}")
|
||||
private String POWER_URLHEAD;
|
||||
|
||||
@Value("${powerUrl}")
|
||||
private String powerUrl;
|
||||
|
||||
@Override
|
||||
public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object o){
|
||||
String url = request.getServletPath();
|
||||
String token = (String) request.getSession().getAttribute("token");
|
||||
if (!"/login".equals(url) && StringUtils.isNoneBlank(token)) {
|
||||
try {
|
||||
JAXDynamicClientFactory dcf = JAXDynamicClientFactory.newInstance();
|
||||
Client client = dcf.createClient(POWER_URLHEAD + "/WebService/PowerWebService?wsdl");
|
||||
Object[] objects = client.invoke("getInfosByUserId", token, "emr_medical_record");
|
||||
ObjectMapper mapper = new ObjectMapper();
|
||||
Power_User powerUser = mapper.readValue(objects[0].toString(), Power_User.class);
|
||||
//设置进session
|
||||
request.getSession().setAttribute("CURRENT_USER", powerUser);
|
||||
if (null == powerUser.getUserId()) {
|
||||
response.sendRedirect( "/emr_medical_record/error.jsp");
|
||||
return false;
|
||||
}
|
||||
} catch (Exception e) {
|
||||
try {
|
||||
response.sendRedirect("/emr_medical_record/error.jsp");
|
||||
}catch (Exception e1){}
|
||||
e.printStackTrace();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
@ -0,0 +1,248 @@
|
||||
/**
|
||||
* Copyright (C), 2015-2019
|
||||
* Author: HJL
|
||||
* Date: 2019/7/19 14:39
|
||||
* Description:缺陷管理
|
||||
*/
|
||||
package com.emr.controller;
|
||||
|
||||
import com.emr.dao.Archive_MasterMapper;
|
||||
import com.emr.entity.*;
|
||||
import com.emr.service.*;
|
||||
import com.emr.util.ExportExcelUtil;
|
||||
import com.emr.util.ExportExcelUtil1;
|
||||
import com.emr.vo.DeptStatistics;
|
||||
import com.emr.vo.DoctorStatistics;
|
||||
import com.emr.vo.V_CountVo;
|
||||
import org.apache.shiro.util.CollectionUtils;
|
||||
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 javax.servlet.http.HttpServletResponse;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.*;
|
||||
|
||||
@Controller
|
||||
@RequestMapping("vCount")
|
||||
public class VCountController {
|
||||
@Autowired
|
||||
private V_CountService v_countService;
|
||||
|
||||
@Autowired
|
||||
private Archive_MasterService archiveMasterService;
|
||||
|
||||
@Autowired
|
||||
private Emr_DictionaryService emrDictionaryService;
|
||||
|
||||
@Autowired
|
||||
private Archive_MasterMapper archiveMasterMapper;
|
||||
|
||||
@RequestMapping(value = "/vCounts")
|
||||
public String faults(){
|
||||
return "vCountDir/vCountList";
|
||||
}
|
||||
|
||||
@ResponseBody
|
||||
@RequestMapping(value = "/vCountList")
|
||||
public OffsetLimitPage faultList(V_CountVo vCount, Integer offset, Integer limit) {
|
||||
return v_countService.selectPageByClo(vCount,offset, limit);
|
||||
}
|
||||
|
||||
@ResponseBody
|
||||
@RequestMapping(value = "/vCountNumList")
|
||||
public List<V_Count> medicalCountDayList(V_CountVo vCount){
|
||||
//统计列表
|
||||
return v_countService.selectByCol(vCount);
|
||||
}
|
||||
|
||||
|
||||
@ResponseBody
|
||||
@RequestMapping(value = "/exportExcel")
|
||||
public void exportExcel(HttpServletResponse response, V_CountVo vCount) throws Exception {
|
||||
String tableThNames = "科室代码,科室名称,出院人数,已归档,未归档,死亡人数,归档率(%),2日率(%),3日率(%),7日率(%)";
|
||||
String fieldCns = "deptCode,deptName,outNum,fileNum,unfileNum,deathNum,fileRate,day2Rate,day3Rate,day7Rate";
|
||||
//构造excel的数据
|
||||
List<V_Count> list = v_countService.selectByCol(vCount);
|
||||
if(null != list && !list.isEmpty()){
|
||||
for (V_Count count : list) {
|
||||
Double fileRate = Double.valueOf(count.getFileRate())*100;
|
||||
Double day2Rate = Double.valueOf(count.getDay2Rate())*100;
|
||||
Double day3Rate = Double.valueOf(count.getDay3Rate())*100;
|
||||
Double day7Rate = Double.valueOf(count.getDay7Rate())*100;
|
||||
count.setFileRate(fileRate.intValue()+"%");
|
||||
count.setDay2Rate(day2Rate.intValue()+"%");
|
||||
count.setDay3Rate(day3Rate.intValue()+"%");
|
||||
count.setDay7Rate(day7Rate.intValue()+"%");
|
||||
}
|
||||
}
|
||||
//文件名
|
||||
String fileName = "统计数据" + new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date()) + ".xls";
|
||||
//ExportExcelUtil
|
||||
ExportExcelUtil1 exportExcelUtil = new ExportExcelUtil1();
|
||||
//导出excel的操作
|
||||
exportExcelUtil.expordExcel(tableThNames, fieldCns, list, fileName, response);
|
||||
}
|
||||
|
||||
|
||||
@ResponseBody
|
||||
@RequestMapping(value = "/exportExcel2")
|
||||
public void exportExcel(HttpServletResponse response, Archive_Master_Vo archiveMasterVo) throws Exception {
|
||||
String tableThNames = "名字,入院科室,入院日期,出院科室,出院日期,主管医生";
|
||||
String fieldCns = "name,deptAdmissionTo,admissionDateTime,deptName,dischargeDateTime,doctorInCharge";
|
||||
//构造excel的数据
|
||||
List<Archive_Master_Vo> list = archiveMasterService.selectByUnfile(archiveMasterVo);
|
||||
Emr_Dictionary dic = new Emr_Dictionary();
|
||||
dic.setEffective(1);
|
||||
dic.setTypecode("dept_code");
|
||||
//科室列表
|
||||
List<Emr_Dictionary> dicList = emrDictionaryService.dicByTypeCode(dic);
|
||||
for (int i = 0; i < list.size(); i++) {
|
||||
//替换科室
|
||||
for (int k = 0; k < dicList.size(); k++) {
|
||||
String deptName = list.get(i).getDeptName();
|
||||
//入院科室dept_admission_to
|
||||
String dept2 = list.get(i).getDeptAdmissionTo();
|
||||
|
||||
if ((deptName != null && deptName.equals(dicList.get(k).getCode())) || (dept2 != null && dept2.equals(dicList.get(k).getCode()))) {
|
||||
//出院科室
|
||||
if(deptName != null) {
|
||||
deptName = deptName.replace(deptName, dicList.get(k).getName());
|
||||
list.get(i).setDeptName(deptName);
|
||||
}
|
||||
dept2 = dept2.replace(dept2, dicList.get(k).getName());
|
||||
list.get(i).setDeptAdmissionTo(dept2);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//文件名
|
||||
String fileName = "未归档病历列表" + new SimpleDateFormat("yyyyMMddHHmmss").format(new Date()) + ".xls";
|
||||
//ExportExcelUtil
|
||||
ExportExcelUtil exportExcelUtil = new ExportExcelUtil();
|
||||
response.setContentType("application/ms-excel;charset=gbk");
|
||||
//导出excel的操作
|
||||
exportExcelUtil.expordExcel(tableThNames, fieldCns, list, fileName, response);
|
||||
}
|
||||
|
||||
//跳转医生统计页面
|
||||
@RequestMapping("/doctorFileList")
|
||||
public String doctorFileList(){
|
||||
return "vCountDir/doctorFileList";
|
||||
}
|
||||
|
||||
//加载医生统计表格iframe
|
||||
@RequestMapping("/getDoctorFileInfoIframe")
|
||||
public String getDoctorFileInfoIframe(String deptCode,String doctor,String startTime,String endTime,Model model){
|
||||
//科室医师明细
|
||||
List<DoctorStatistics> list = archiveMasterMapper.getDoctorFileInfo(deptCode, doctor, startTime, endTime);
|
||||
//定义返回结果
|
||||
List<DeptStatistics> deptList = new ArrayList<>();
|
||||
if(null != list && !list.isEmpty()){
|
||||
//定义科室集合
|
||||
Map<String,String> deptMap = new LinkedHashMap<>();
|
||||
for (DoctorStatistics info:list) {
|
||||
deptMap.put(info.getDeptName(),info.getDeptName());
|
||||
}
|
||||
if(!CollectionUtils.isEmpty(deptMap)){
|
||||
for(Map.Entry<String,String> dept:deptMap.entrySet()){
|
||||
DeptStatistics deptStatistics = new DeptStatistics();
|
||||
//设置科室总住院天数
|
||||
int deptAdmissDay = 0;
|
||||
//设置科室总逾期天数
|
||||
int deptOverDays = 0;
|
||||
//设置科室总份数
|
||||
int deptCount = 0;
|
||||
//设置科室总逾期份数
|
||||
int deptOverCount = 0;
|
||||
//定义科室结合
|
||||
List<DoctorStatistics> deptDoctorList = new ArrayList<>();
|
||||
//定义不重复医生集合
|
||||
Map<String,String> doctorMap = new LinkedHashMap<>();
|
||||
for (DoctorStatistics info:list) {
|
||||
if(dept.getKey().equals(info.getDeptName())){
|
||||
//统计住院总天数
|
||||
deptAdmissDay += info.getAdmissDays();
|
||||
//统计逾期天数
|
||||
deptOverDays += info.getOverDays();
|
||||
//统计总份数
|
||||
deptCount++;
|
||||
//统计总逾期份数
|
||||
if(info.getOverDays() > 0){
|
||||
deptOverCount++;
|
||||
}
|
||||
deptDoctorList.add(info);
|
||||
doctorMap.put(info.getDoctor(),info.getDoctor());
|
||||
}
|
||||
}
|
||||
//定义医生集合
|
||||
List<DoctorStatistics> doctorList = new ArrayList<>();
|
||||
//组织统计医生归档情况
|
||||
if(!CollectionUtils.isEmpty(deptDoctorList)){
|
||||
if(!CollectionUtils.isEmpty(doctorMap)){
|
||||
for(Map.Entry<String,String> doctorKey:doctorMap.entrySet()){
|
||||
DoctorStatistics doctorStatistics = new DoctorStatistics();
|
||||
String deptName = "";
|
||||
//设置总住院天数
|
||||
int admissDay = 0;
|
||||
//设置总逾期天数
|
||||
int overDays = 0;
|
||||
//设置总份数
|
||||
int count = 0;
|
||||
//设置总逾期份数
|
||||
int overCount = 0;
|
||||
for (DoctorStatistics info:list) {
|
||||
if (doctorKey.getKey().equals(info.getDoctor())) {
|
||||
deptName = info.getDeptName();
|
||||
//统计总天数
|
||||
admissDay += info.getAdmissDays();
|
||||
//统计逾期天数
|
||||
overDays += info.getOverDays();
|
||||
//统计总份数
|
||||
count++;
|
||||
//统计总逾期份数
|
||||
if(info.getOverDays() > 0){
|
||||
overCount++;
|
||||
}
|
||||
}
|
||||
}
|
||||
//设置科室名称
|
||||
doctorStatistics.setDeptName(deptName);
|
||||
//设置医生名称
|
||||
doctorStatistics.setDoctor(doctorKey.getKey());
|
||||
//设置总住院天数
|
||||
doctorStatistics.setAdmissDays(admissDay);
|
||||
//设置总逾期天数
|
||||
doctorStatistics.setOverDays(overDays);
|
||||
//设置总份数
|
||||
doctorStatistics.setRecordCount(count);
|
||||
//设置总逾期份数
|
||||
doctorStatistics.setRecordOverCount(overCount);
|
||||
doctorList.add(doctorStatistics);
|
||||
}
|
||||
}
|
||||
}
|
||||
//设置科室名
|
||||
deptStatistics.setDeptName(dept.getValue());
|
||||
//设置科室总住院天数
|
||||
deptStatistics.setDeptAdmissDay(deptAdmissDay);
|
||||
//设置科室总逾期天数
|
||||
deptStatistics.setDeptOverDays(deptOverDays);
|
||||
//设置科室总份数
|
||||
deptStatistics.setDeptCount(deptCount);
|
||||
//设置科室总逾期份数
|
||||
deptStatistics.setDeptOverCount(deptOverCount);
|
||||
//设置医生集合
|
||||
deptStatistics.setDoctorData(doctorList);
|
||||
deptList.add(deptStatistics);
|
||||
}
|
||||
}
|
||||
}
|
||||
model.addAttribute("deptList",deptList);
|
||||
return "vCountDir/doctorFileListIframe";
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -0,0 +1,64 @@
|
||||
/**
|
||||
* Copyright (C), 2015-2019
|
||||
* Author: HJL
|
||||
* Date: 2019/7/19 14:39
|
||||
* Description:缺陷管理
|
||||
*/
|
||||
package com.emr.controller;
|
||||
|
||||
import com.emr.entity.*;
|
||||
import com.emr.service.Emr_Fault_DetailService;
|
||||
import com.emr.util.ExportExcelUtil;
|
||||
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 javax.servlet.http.HttpServletResponse;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
@Controller
|
||||
@RequestMapping("fault")
|
||||
public class faultController {
|
||||
@Autowired
|
||||
private Emr_Fault_DetailService emrFaultDetailService;
|
||||
@RequestMapping(value = "/faults")
|
||||
public String faults(){
|
||||
return "faultDir/faultList";
|
||||
}
|
||||
|
||||
@ResponseBody
|
||||
@RequestMapping(value = "/faultList")
|
||||
public OffsetLimitPage faultList(Integer isSearch, Emr_Fault_Vo emrFaultVo, Integer offset, Integer limit) {
|
||||
//判断是否是初始化查询,是初始化查询把开始结束时间置空
|
||||
if(isSearch == 0){
|
||||
emrFaultVo.setStartDate(null);
|
||||
emrFaultVo.setEndDate(null);
|
||||
}
|
||||
return emrFaultDetailService.selectByCol(emrFaultVo,offset, limit);
|
||||
}
|
||||
@ResponseBody
|
||||
@RequestMapping(value = "/exportExcel")
|
||||
public void exportExcel(HttpServletResponse response, Emr_Fault_Vo emrFaultVo,Integer isSearch) throws Exception{
|
||||
String tableThNames = "住院号,住院次数,姓名,出院科室,出院日期,归档状态,评分,回退内容,缺陷选项,缺陷内容,创建时间,创建人";
|
||||
String fieldCns = "inpNo,visitId,name,deptName,dischargeDateTime,archivestate,score,backContent,assortId,content,createTime,creater";
|
||||
//构造excel的数据
|
||||
//判断是否是初始化查询,是初始化查询把开始结束时间置空
|
||||
if(isSearch == 0){
|
||||
emrFaultVo.setStartDate(null);
|
||||
emrFaultVo.setEndDate(null);
|
||||
}
|
||||
List<Emr_Fault_Vo> list = emrFaultDetailService.selectByCol(emrFaultVo);
|
||||
//文件名
|
||||
String fileName = "缺陷信息数据" + new SimpleDateFormat("yyyyMMddHHmmss").format(new Date()) + ".xls";
|
||||
//ExportExcelUtil
|
||||
ExportExcelUtil exportExcelUtil = new ExportExcelUtil();
|
||||
//导出excel的操作
|
||||
exportExcelUtil.expordExcel(tableThNames, fieldCns, list, fileName, response);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -0,0 +1,66 @@
|
||||
/**
|
||||
* Copyright (C), 2015-2019
|
||||
* Author: HJL
|
||||
* Date: 2019/7/19 15:32
|
||||
* Description:缺陷分类
|
||||
*/
|
||||
package com.emr.controller;
|
||||
|
||||
import com.emr.entity.Emr_Fault_Type;
|
||||
import com.emr.service.Emr_Fault_TypeService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Controller
|
||||
@RequestMapping("/faultType")
|
||||
public class faultTypeController {
|
||||
@Autowired
|
||||
private Emr_Fault_TypeService emrFaultTypeService;
|
||||
|
||||
@RequestMapping(value = "/faultTypes")
|
||||
public String faultTypes() {
|
||||
return "faultTypeDir/faultTypeList";
|
||||
}
|
||||
|
||||
@ResponseBody
|
||||
@RequestMapping(value = "/faultTypeList")
|
||||
public List<Emr_Fault_Type> faultTypeList(Emr_Fault_Type emrFaultType) {
|
||||
return emrFaultTypeService.selectByCol(emrFaultType);
|
||||
}
|
||||
|
||||
@ResponseBody
|
||||
@RequestMapping(value = "/updateByClo")
|
||||
public int updateByClo(Emr_Fault_Type emrFaultType) {
|
||||
int bol=0;
|
||||
//判断id是否存在
|
||||
if(emrFaultType.getId()!=null){
|
||||
//判断是否存在记录
|
||||
if (emrFaultTypeService.selectById(emrFaultType.getId()) != null) {
|
||||
bol = emrFaultTypeService.updateByClo(emrFaultType);
|
||||
}
|
||||
}else{
|
||||
//不存在则添加缺陷类别记录
|
||||
bol= emrFaultTypeService.insertClo(emrFaultType);
|
||||
}
|
||||
return bol;
|
||||
}
|
||||
|
||||
|
||||
@ResponseBody
|
||||
@RequestMapping(value = "/delById")
|
||||
public int delById(Integer id) {
|
||||
int bol = 0;
|
||||
//判断id是否存在
|
||||
if (id!= null) {
|
||||
//判断是否存在记录
|
||||
bol = emrFaultTypeService.delById(id);
|
||||
}
|
||||
return bol;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -0,0 +1,159 @@
|
||||
/**
|
||||
* Copyright (C), 2015-2019
|
||||
* Author: HJL
|
||||
* Date: 2019/8/8 12:46
|
||||
* Description:
|
||||
*/
|
||||
package com.emr.controller;
|
||||
|
||||
import com.emr.entity.*;
|
||||
import com.emr.service.Archive_MasterService;
|
||||
import com.emr.service.Emr_Fault_DetailService;
|
||||
import com.emr.service.Emr_Fault_TypeService;
|
||||
import com.emr.util.ExportExcelUtil;
|
||||
import com.emr.util.Msg;
|
||||
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 javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
@Controller
|
||||
@RequestMapping("lastVerify")
|
||||
public class lastVerifyController {
|
||||
@Autowired
|
||||
private Archive_MasterService archiveMasterService;
|
||||
|
||||
@Autowired
|
||||
private Emr_Fault_TypeService emrFaultTypeService;
|
||||
|
||||
@Autowired
|
||||
private Emr_Fault_DetailService emrFaultDetailService;
|
||||
|
||||
@RequestMapping(value = "/lastVerifys")
|
||||
public String faults(Model model){
|
||||
return "lastVerifyDir/lastVerifyList";
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 终审列表
|
||||
* */
|
||||
@ResponseBody
|
||||
@RequestMapping(value = "/lastVerifyList")
|
||||
public OffsetLimitPage lastVerifyList(Archive_Master_Vo archiveMasterVo, Integer offset, Integer limit,Integer isSearch) {
|
||||
//判断是否是初始化查询,是初始化查询把开始结束时间置空
|
||||
if(isSearch == 0){
|
||||
archiveMasterVo.setStartDateTo(null);
|
||||
archiveMasterVo.setEndDateTo(null);
|
||||
}
|
||||
OffsetLimitPage result = archiveMasterService.selectByLast(archiveMasterVo, offset, limit);
|
||||
return result;
|
||||
}
|
||||
|
||||
@ResponseBody
|
||||
@RequestMapping(value = "/exportExcel")
|
||||
public void exportExcel(HttpServletResponse response, Archive_Master_Vo archiveMasterVo,Integer isSearch) throws Exception {
|
||||
//判断是否是初始化查询,是初始化查询把开始结束时间置空
|
||||
if(isSearch == 0){
|
||||
archiveMasterVo.setStartDateTo(null);
|
||||
archiveMasterVo.setEndDateTo(null);
|
||||
}
|
||||
String tableThNames = "住院号,住院次数,名字,性别,出院科室,出院日期,主管医生,状态";
|
||||
String fieldCns = "inpNo,visitId,name,sex,deptName,dischargeDateTime,doctorInCharge,status";
|
||||
//构造excel的数据
|
||||
List<Archive_Master_Vo> list = archiveMasterService.selectLastVerifyList(archiveMasterVo);
|
||||
|
||||
//文件名
|
||||
String fileName = "病案室终审" + new SimpleDateFormat("yyyyMMddHHmmss").format(new Date()) + ".xls";
|
||||
//ExportExcelUtil
|
||||
ExportExcelUtil exportExcelUtil = new ExportExcelUtil();
|
||||
response.setContentType("application/ms-excel;charset=gbk");
|
||||
//导出excel的操作
|
||||
exportExcelUtil.expordExcel(tableThNames, fieldCns, list, fileName, response);
|
||||
}
|
||||
|
||||
|
||||
@ResponseBody
|
||||
@RequestMapping(value = "/getFaultType")
|
||||
public List<Emr_Fault_Type> getFaultType(Emr_Fault_Type emrFaultType) {
|
||||
return emrFaultTypeService.selectByCol(emrFaultType);
|
||||
}
|
||||
|
||||
|
||||
@ResponseBody
|
||||
@RequestMapping(value = "/getDetailByArchId")
|
||||
public Emr_Fault_Detail getDetailByArchId(Emr_Fault_Detail emrFaultDetail) {
|
||||
return emrFaultDetailService.selectByArchiveDetailId(emrFaultDetail);
|
||||
}
|
||||
|
||||
/**
|
||||
* 退回提交方法
|
||||
* @param request
|
||||
* @param emrFaultDetail
|
||||
* @return
|
||||
* @throws Exception
|
||||
*/
|
||||
@ResponseBody
|
||||
@RequestMapping(value = "/updateDetailByArchivId")
|
||||
public Msg updateDetailByArchivId(HttpServletRequest request,Emr_Fault_Detail_Vo emrFaultDetail) throws Exception{
|
||||
boolean flag = FormTokenFlagUtil.isFlag(request);
|
||||
if (!flag) {
|
||||
return Msg.fail("请不要重复提交!");
|
||||
}
|
||||
archiveMasterService.updateReturn(emrFaultDetail);
|
||||
return Msg.success();
|
||||
}
|
||||
|
||||
/*
|
||||
@ResponseBody
|
||||
@RequestMapping(value = "/updateDetailByArchivId")
|
||||
public int updateDetailByArchivId(HttpServletRequest request, HttpServletResponse response, Emr_Fault_Detail emrFaultDetail) {
|
||||
|
||||
//修改病案归档状态:复审退回
|
||||
Archive_Master archiveMaster = new Archive_Master();
|
||||
archiveMaster.setId(emrFaultDetail.getArchiveDetailId());
|
||||
archiveMaster.setArchivestate("复审退回");
|
||||
int bol = archiveMasterService.updateByClo(archiveMaster);
|
||||
|
||||
//修改复审内容
|
||||
if (bol == 1) {
|
||||
// 从session获取用户名
|
||||
Subject currentUser = SecurityUtils.getSubject();
|
||||
Session session = currentUser.getSession();
|
||||
String username = (String) session.getAttribute("userSession");//获取前面登录的用户名
|
||||
|
||||
//参数输入
|
||||
SimpleDateFormat format1 = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
||||
String nowTime = format1.format(new Date());
|
||||
emrFaultDetail.setUpdater(username);
|
||||
emrFaultDetail.setUpdateTime(nowTime);
|
||||
//修改复审内容
|
||||
//1、查询出该病案的创建时间最近的缺陷记录
|
||||
Emr_Fault_Detail entity= emrFaultDetailService.selectByArchiveDetailId(emrFaultDetail);
|
||||
emrFaultDetail.setId(entity.getId());
|
||||
//2、修改缺陷记录
|
||||
bol = emrFaultDetailService.updateCloByPrimaryKey(emrFaultDetail);
|
||||
}
|
||||
return bol;
|
||||
}
|
||||
*/
|
||||
//终审
|
||||
@ResponseBody
|
||||
@RequestMapping(value = "/updateStateByArchivId")
|
||||
public Msg updateStateByArchivId(HttpServletRequest request,Archive_Master_Vo master) throws Exception{
|
||||
boolean flag = FormTokenFlagUtil.isFlag(request);
|
||||
if (!flag) {
|
||||
return Msg.fail("请不要重复提交!");
|
||||
}
|
||||
archiveMasterService.updateFiled(master);
|
||||
return Msg.success();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -0,0 +1,83 @@
|
||||
/**
|
||||
* Copyright (C), 2015-2019
|
||||
* Author: HJL
|
||||
* Date: 2019/7/19 14:39
|
||||
* Description:病案召回日期日志
|
||||
*/
|
||||
package com.emr.controller;
|
||||
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.emr.entity.OffsetLimitPage;
|
||||
import com.emr.service.ipml.ArchiveCallbackInfoService;
|
||||
import com.emr.util.ExportExcelUtil;
|
||||
import com.emr.vo.ArchiveCallbackInfoVo;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.util.CollectionUtils;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
@Controller
|
||||
@RequestMapping("/recallDate")
|
||||
public class medicalRecallDateController {
|
||||
@Autowired
|
||||
private ArchiveCallbackInfoService callbackInfoService;
|
||||
@RequestMapping(value = "/recallDates")
|
||||
public String recallDates() {
|
||||
return "medicalRecallDateDir/recallDateList";
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 召回日志列表
|
||||
* @param callbackInfo
|
||||
* @param offset
|
||||
* @param limit
|
||||
* @return
|
||||
*/
|
||||
@ResponseBody
|
||||
@RequestMapping(value = "/recallDateList")
|
||||
public OffsetLimitPage recallDateList(ArchiveCallbackInfoVo callbackInfo, Integer offset, Integer limit) {
|
||||
return callbackInfoService.selectAll(callbackInfo,offset,limit);
|
||||
}
|
||||
|
||||
@ResponseBody
|
||||
@RequestMapping(value = "/exportExcel")
|
||||
public void exportExcel(HttpServletResponse response,ArchiveCallbackInfoVo callbackInfo) throws Exception {
|
||||
String tableThNames = "住院号,住院次数,姓名,出院科室,召回人,召回时间,召回原因,状态,归档状态";
|
||||
String fieldCns = "inpNo,visitId,name,deptName,callbackUserName,startDate,callbackReason,status,archivestate";
|
||||
List<ArchiveCallbackInfoVo> list = callbackInfoService.selectCallBackInfo(callbackInfo);
|
||||
SimpleDateFormat fmt = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
||||
if(!CollectionUtils.isEmpty(list)){
|
||||
for(ArchiveCallbackInfoVo callbackInfoVo : list){
|
||||
Date callbackTime = callbackInfoVo.getCallbackTime();
|
||||
if(null != callbackTime){
|
||||
String date = fmt.format(callbackTime);
|
||||
callbackInfoVo.setStartDate(date);
|
||||
}
|
||||
}
|
||||
}
|
||||
//文件名
|
||||
String fileName = "召回记录" + new SimpleDateFormat("yyyyMMddHHmmss").format(new Date()) + ".xls";
|
||||
//ExportExcelUtil
|
||||
ExportExcelUtil exportExcelUtil = new ExportExcelUtil();
|
||||
//导出excel的操作
|
||||
exportExcelUtil.expordExcel(tableThNames,fieldCns,list,fileName,response);
|
||||
}
|
||||
|
||||
@ResponseBody
|
||||
@RequestMapping(value = "/lastBylogTitle")
|
||||
public String lastBylogTitle(String id) {
|
||||
ArchiveCallbackInfoVo vo = new ArchiveCallbackInfoVo();
|
||||
vo.setMasterId(id);
|
||||
List<ArchiveCallbackInfoVo> callbackInfoVos = callbackInfoService.selectCallBackInfo(vo);
|
||||
return JSON.toJSONString(callbackInfoVos.get(0));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -0,0 +1,66 @@
|
||||
/**
|
||||
* Copyright (C), 2015-2019
|
||||
* Author: HJL
|
||||
* Date: 2019/7/19 14:40
|
||||
* Description:未归档病历列表
|
||||
*/
|
||||
package com.emr.controller;
|
||||
|
||||
import com.emr.entity.Archive_Master_Vo;
|
||||
import com.emr.entity.OffsetLimitPage;
|
||||
import com.emr.service.Archive_MasterService;
|
||||
import com.emr.util.ExportExcelUtil;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
@Controller
|
||||
@RequestMapping("/unfile")
|
||||
public class unfileMedicalController {
|
||||
@Autowired
|
||||
private Archive_MasterService archiveMasterService;
|
||||
@RequestMapping(value = "/unfileMedicals")
|
||||
public String faults() {
|
||||
return "unfileMedicalDir/unfileMedicalList";
|
||||
}
|
||||
|
||||
@ResponseBody
|
||||
@RequestMapping(value = "/unfileList")
|
||||
public OffsetLimitPage unfileList(Archive_Master_Vo archiveMasterVo, Integer offset, Integer limit,Integer isSearch) {
|
||||
//判断是否是初始化查询,是初始化查询把开始结束时间置空
|
||||
if(isSearch == 0){
|
||||
archiveMasterVo.setStartDateTo(null);
|
||||
archiveMasterVo.setEndDateTo(null);
|
||||
}
|
||||
return archiveMasterService.selectByUnfile(archiveMasterVo, offset, limit);
|
||||
}
|
||||
|
||||
|
||||
@ResponseBody
|
||||
@RequestMapping(value = "/exportExcel")
|
||||
public void exportExcel(HttpServletResponse response, Archive_Master_Vo archiveMasterVo,Integer isSearch) throws Exception {
|
||||
String tableThNames = "住院号,住院次数,姓名,性别,入院科室,入院日期,出院科室,出院日期,主管医生,状态";
|
||||
String fieldCns = "inpNo,visitId,name,sex,deptAdmissionTo,admissionDateTime,deptName,dischargeDateTime,doctorInCharge,status";
|
||||
//构造excel的数据
|
||||
//判断是否是初始化查询,是初始化查询把开始结束时间置空
|
||||
if(isSearch == 0){
|
||||
archiveMasterVo.setStartDateTo(null);
|
||||
archiveMasterVo.setEndDateTo(null);
|
||||
}
|
||||
List<Archive_Master_Vo> list = archiveMasterService.selectByUnfile(archiveMasterVo);
|
||||
//文件名
|
||||
String fileName = "未归档病历列表" + new SimpleDateFormat("yyyyMMddHHmmss").format(new Date()) + ".xls";
|
||||
//ExportExcelUtil
|
||||
ExportExcelUtil exportExcelUtil = new ExportExcelUtil();
|
||||
//导出excel的操作
|
||||
exportExcelUtil.expordExcel(tableThNames, fieldCns, list, fileName, response);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -0,0 +1,20 @@
|
||||
package com.emr.dao;
|
||||
|
||||
import com.emr.entity.ArchiveCallbackInfo;
|
||||
import com.emr.vo.ArchiveCallbackInfoVo;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface ArchiveCallbackInfoMapper {
|
||||
int insert(ArchiveCallbackInfo record);
|
||||
|
||||
int insertSelective(ArchiveCallbackInfo record);
|
||||
|
||||
List<ArchiveCallbackInfoVo> selectAll(ArchiveCallbackInfoVo callbackInfoVo);
|
||||
|
||||
/**
|
||||
* 根据masterId查询最新一次召回记录
|
||||
* */
|
||||
ArchiveCallbackInfoVo lastBylogTitle(@Param("masterId")String masterId);
|
||||
}
|
@ -0,0 +1,26 @@
|
||||
package com.emr.dao;
|
||||
|
||||
import com.emr.entity.ArchiveFlowInfo;
|
||||
import com.emr.vo.ArchiveFlowInfoVo;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface ArchiveFlowInfoMapper {
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
int insert(ArchiveFlowInfo record);
|
||||
|
||||
int insertSelective(ArchiveFlowInfo record);
|
||||
|
||||
ArchiveFlowInfo selectByPrimaryKey(Integer id);
|
||||
|
||||
int updateByPrimaryKeySelective(ArchiveFlowInfo record);
|
||||
|
||||
int updateByPrimaryKey(ArchiveFlowInfo record);
|
||||
|
||||
List<ArchiveFlowInfo> selectPreInfo(@Param("masterId")String masterId,@Param("targetStep")String targetStep);
|
||||
|
||||
List<ArchiveFlowInfoVo> selectFlowInfoByMasterId(@Param("masterId")String masterId);
|
||||
List<ArchiveFlowInfoVo> selectFlowInfoList(@Param("record")ArchiveFlowInfo record,@Param("sql")String sql);
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
package com.emr.dao;
|
||||
|
||||
import com.emr.entity.ArchiveFlowRole;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface ArchiveFlowRoleMapper {
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
int insert(ArchiveFlowRole record);
|
||||
|
||||
int insertSelective(ArchiveFlowRole record);
|
||||
|
||||
ArchiveFlowRole selectByPrimaryKey(Integer id);
|
||||
|
||||
int updateByPrimaryKeySelective(ArchiveFlowRole record);
|
||||
|
||||
int updateByPrimaryKey(ArchiveFlowRole record);
|
||||
|
||||
List<ArchiveFlowRole> selectAll();
|
||||
}
|
@ -0,0 +1,37 @@
|
||||
package com.emr.dao;
|
||||
|
||||
import com.emr.entity.Archive_Detail;
|
||||
import com.emr.entity.Archive_Detail_Vo;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface Archive_DetailMapper {
|
||||
int deleteByPrimaryKey(String id);
|
||||
|
||||
int deleteByClo(Archive_Detail record);
|
||||
|
||||
int insert(Archive_Detail record);
|
||||
|
||||
int insertSel(Archive_Detail record);
|
||||
|
||||
Archive_Detail selectByid(String id);
|
||||
|
||||
int updateCloById(Archive_Detail record);
|
||||
|
||||
int updateByPrimaryKey(Archive_Detail record);
|
||||
|
||||
List<Archive_Detail> selectByColm(Archive_Detail record);
|
||||
|
||||
List<Archive_Detail> selectByCol(Archive_Detail record);
|
||||
|
||||
List<Archive_Detail_Vo> selectByClo(Archive_Detail_Vo record);
|
||||
|
||||
List<Archive_Detail_Vo> detailByClo(Archive_Detail_Vo record);
|
||||
|
||||
List<Archive_Detail> selectByIdStr(Archive_Detail record);
|
||||
|
||||
List<Archive_Detail> selectTypeTreeByPatientIdAndAssortIds(@Param("patientId")String patientId,@Param("assortIds")String assortIds);
|
||||
|
||||
List<Archive_Detail> selectPdfPathByIds(@Param("masterId")String masterId,@Param("detailIds")String detailIds);
|
||||
}
|
@ -0,0 +1,42 @@
|
||||
package com.emr.dao;
|
||||
|
||||
import com.emr.entity.Archive_Master;
|
||||
import com.emr.entity.Archive_Master_Vo;
|
||||
import com.emr.vo.DoctorStatistics;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface Archive_MasterMapper {
|
||||
int deleteByPrimaryKey(String id);
|
||||
|
||||
int insert(Archive_Master record);
|
||||
|
||||
int insertSelective(Archive_Master record);
|
||||
|
||||
Archive_Master selectByPrimaryKey(String id);
|
||||
|
||||
List<Archive_Master> selectByCol(Archive_Master_Vo record);
|
||||
|
||||
List<Archive_Master_Vo> selectByColumn(Archive_Master_Vo record);
|
||||
|
||||
List<Archive_Master_Vo> selectByLast(Archive_Master_Vo record);
|
||||
|
||||
List<Archive_Master_Vo> selectByUnfile(Archive_Master_Vo record);
|
||||
|
||||
int updateByClo(Archive_Master record);
|
||||
|
||||
int updateById(Archive_Master record);
|
||||
|
||||
List<DoctorStatistics> getDoctorFileInfo(@Param("deptCode")String deptCode,@Param("doctor")String doctor,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
|
||||
/**
|
||||
* 查询病案是否存在
|
||||
* */
|
||||
List<Archive_Master> selectByObject(Archive_Master master);
|
||||
|
||||
/**
|
||||
* 查询已归档记录
|
||||
* */
|
||||
List<Archive_Master_Vo> selectFiled(Archive_Master_Vo master);
|
||||
}
|
@ -0,0 +1,34 @@
|
||||
package com.emr.dao;
|
||||
|
||||
import com.emr.entity.EmrHolidaySet;
|
||||
import com.emr.entity.EmrHolidaySetVo;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
public interface EmrHolidaySetMapper {
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
int insert(EmrHolidaySet record);
|
||||
|
||||
int insertSelective(EmrHolidaySet record);
|
||||
|
||||
EmrHolidaySet selectByPrimaryKey(Integer id);
|
||||
|
||||
int updateByPrimaryKeySelective(EmrHolidaySet record);
|
||||
|
||||
int updateByPrimaryKey(EmrHolidaySet record);
|
||||
|
||||
List<EmrHolidaySet> selectAllByDates(@Param("startTime")String startTime, @Param("endTime")String endTime);
|
||||
|
||||
int SampleInsert(@Param("list")List<EmrHolidaySet> list);
|
||||
|
||||
int SampleUpdate(@Param("list")List<EmrHolidaySet> list);
|
||||
|
||||
List<EmrHolidaySetVo> selectByColumn(EmrHolidaySetVo record);
|
||||
|
||||
int selectColByTableName(@Param("tableName")String tableName);
|
||||
|
||||
int selectHolidayByDate(@Param("startDate") Date startDate);
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
package com.emr.dao;
|
||||
|
||||
import com.emr.entity.EmrOvertimeSet;
|
||||
|
||||
public interface EmrOvertimeSetMapper {
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
int insert(EmrOvertimeSet record);
|
||||
|
||||
int insertSelective(EmrOvertimeSet record);
|
||||
|
||||
EmrOvertimeSet selectByPrimaryKey(Integer id);
|
||||
|
||||
int updateByPrimaryKeySelective(EmrOvertimeSet record);
|
||||
|
||||
int updateByPrimaryKey(EmrOvertimeSet record);
|
||||
}
|
@ -0,0 +1,7 @@
|
||||
package com.emr.dao;
|
||||
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
public interface EmrPatientMapper {
|
||||
int selectExistByPatient(@Param("fpatno") String fpatno);
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
package com.emr.dao;
|
||||
|
||||
import com.emr.entity.Emr_Archive_Detail;
|
||||
|
||||
public interface Emr_Archive_DetailMapper {
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
int insert(Emr_Archive_Detail record);
|
||||
|
||||
int insertSelective(Emr_Archive_Detail record);
|
||||
|
||||
Emr_Archive_Detail selectByPrimaryKey(Integer id);
|
||||
|
||||
int updateByPrimaryKeySelective(Emr_Archive_Detail record);
|
||||
|
||||
int updateByPrimaryKey(Emr_Archive_Detail record);
|
||||
}
|
@ -0,0 +1,42 @@
|
||||
package com.emr.dao;
|
||||
|
||||
import com.emr.entity.Emr_Dictionary;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface Emr_DictionaryMapper {
|
||||
/**
|
||||
* 根据类型代码查找字典列表
|
||||
* @param emrDictionary
|
||||
* @return
|
||||
*/
|
||||
List<Emr_Dictionary> dicByTypeCode(Emr_Dictionary emrDictionary);
|
||||
|
||||
/**
|
||||
* 根据字段查找字典列表
|
||||
* @param emrDictionary
|
||||
* @return
|
||||
*/
|
||||
List<Emr_Dictionary> dicByClo(Emr_Dictionary emrDictionary);
|
||||
|
||||
/**
|
||||
* 根据字段查找记录
|
||||
* @param emrDictionary
|
||||
* @return
|
||||
*/
|
||||
int insertSel(Emr_Dictionary emrDictionary);
|
||||
|
||||
/**
|
||||
* 根据id删除记录
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
int delById(Integer id);
|
||||
|
||||
/**
|
||||
* 根据id修改记录
|
||||
* @param emrDictionary
|
||||
* @return
|
||||
*/
|
||||
int updateCloById(Emr_Dictionary emrDictionary);
|
||||
}
|
@ -0,0 +1,24 @@
|
||||
package com.emr.dao;
|
||||
|
||||
import com.emr.entity.Emr_Fault_Detail;
|
||||
import com.emr.entity.Emr_Fault_Vo;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface Emr_Fault_DetailMapper {
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
int insert(Emr_Fault_Detail record);
|
||||
|
||||
int insertSel(Emr_Fault_Detail record);
|
||||
|
||||
Emr_Fault_Detail selectByPrimaryKey(Integer id);
|
||||
|
||||
int updateCloByPrimaryKey(Emr_Fault_Detail record);
|
||||
|
||||
int updateByPrimaryKey(Emr_Fault_Detail record);
|
||||
|
||||
List<Emr_Fault_Vo> selectByCol(Emr_Fault_Vo record);
|
||||
|
||||
Emr_Fault_Detail selectByArchiveDetailId(Emr_Fault_Detail record);
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
package com.emr.dao;
|
||||
|
||||
import com.emr.entity.Emr_Fault_Type;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface Emr_Fault_TypeMapper {
|
||||
int delById(Integer id);
|
||||
|
||||
int insert(Emr_Fault_Type record);
|
||||
|
||||
int insertClo(Emr_Fault_Type record);
|
||||
|
||||
List<Emr_Fault_Type> selectByCol(Emr_Fault_Type record);
|
||||
|
||||
int updateByClo(Emr_Fault_Type record);
|
||||
|
||||
int updateByPrimaryKey(Emr_Fault_Type record);
|
||||
|
||||
Emr_Fault_Type selectById(Integer id);
|
||||
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
package com.emr.dao;
|
||||
|
||||
import com.emr.entity.Emr_Log;
|
||||
import com.emr.entity.Emr_Log_Vo;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface Emr_LogMapper {
|
||||
int deleteByPrimaryKey(Integer logId);
|
||||
|
||||
int insert(Emr_Log record);
|
||||
|
||||
int insertSelective(Emr_Log record);
|
||||
|
||||
Emr_Log lastBylogTitle(String logTitle);
|
||||
|
||||
int updateByPrimaryKeySelective(Emr_Log record);
|
||||
|
||||
int updateByPrimaryKey(Emr_Log record);
|
||||
|
||||
List<Emr_Log_Vo> selectByCol(Emr_Log_Vo record);
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
package com.emr.dao;
|
||||
|
||||
import com.emr.entity.Emr_Picture;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface Emr_PictureMapper {
|
||||
int deleteById(String id);
|
||||
|
||||
int insert(Emr_Picture record);
|
||||
|
||||
int insertSel(Emr_Picture record);
|
||||
|
||||
Emr_Picture selectByid(String id);
|
||||
|
||||
int updateCloByIdOrFlay(Emr_Picture record);
|
||||
|
||||
int updateByPrimaryKey(Emr_Picture record);
|
||||
|
||||
List<Emr_Picture> selectByClo(Emr_Picture record);
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
package com.emr.dao;
|
||||
|
||||
import com.emr.entity.Archive_Master_Vo;
|
||||
import com.emr.vo.FinalAndFirstStatistics;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface StatisticsMapper {
|
||||
//终审按天统计
|
||||
List<FinalAndFirstStatistics> finalStatistics(@Param("startDate")String startDate,@Param("endDate")String endDate,@Param("sql")String sql);
|
||||
|
||||
//初审按天统计
|
||||
List<FinalAndFirstStatistics> firstStatistics(@Param("startDate")String startDate,@Param("endDate")String endDate,@Param("sql")String sql);
|
||||
|
||||
//审核明细
|
||||
List<Archive_Master_Vo> statistics(@Param("disStartDate")String disStartDate,@Param("disEndDate")String disEndDate,@Param("record")Archive_Master_Vo record,@Param("flag")Integer flag,@Param("sql")String sql);
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
package com.emr.dao;
|
||||
|
||||
import com.emr.entity.TPrintinfo;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface TPrintinfoMapper {
|
||||
int insert(TPrintinfo record);
|
||||
|
||||
int insertSelective(TPrintinfo record);
|
||||
|
||||
List<TPrintinfo> selectIsPrintByPatienId(@Param("patientId")String patientId);
|
||||
|
||||
TPrintinfo selectLockByPatienId(@Param("patientId")String patientId);
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
package com.emr.dao;
|
||||
|
||||
import com.emr.entity.TUuInfo;
|
||||
import com.emr.vo.TUuInfoVo;
|
||||
import com.emr.vo.TUuPrintSearch;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface TUuInfoMapper {
|
||||
int insert(TUuInfo record);
|
||||
|
||||
int insertSelective(TUuInfo record);
|
||||
|
||||
List<TUuInfoVo> getScanCount(TUuPrintSearch record);
|
||||
|
||||
List<TUuInfoVo> getScanInfo(TUuPrintSearch record);
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
package com.emr.dao;
|
||||
|
||||
import com.emr.entity.TUuPrint;
|
||||
import com.emr.vo.TUuPrintSearch;
|
||||
import com.emr.vo.TUuPrintVo;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface TUuPrintMapper {
|
||||
int insert(TUuPrint record);
|
||||
|
||||
int insertSelective(TUuPrint record);
|
||||
|
||||
List<TUuPrintVo> getPrintCount(TUuPrintSearch record);
|
||||
|
||||
List<TUuPrintVo> getPrintInfo(TUuPrintSearch record);
|
||||
}
|
@ -0,0 +1,19 @@
|
||||
package com.emr.dao;
|
||||
|
||||
import com.emr.entity.V_Count;
|
||||
import com.emr.vo.V_CountVo;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface V_CountMapper {
|
||||
List<V_Count> selectByCol(V_CountVo record);
|
||||
|
||||
// /**
|
||||
// * 根据条件查找统计列表分页
|
||||
// *
|
||||
// * @param record
|
||||
// * @return
|
||||
// */
|
||||
// List<V_Count> selectPageByClo(V_Count record);
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
package com.emr.dao;
|
||||
|
||||
import com.emr.entity.Zd_Assort;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface Zd_AssortMapper {
|
||||
/**
|
||||
* 全查
|
||||
* */
|
||||
List<Zd_Assort> selectAll(@Param("record") Zd_Assort record);
|
||||
}
|
@ -0,0 +1,78 @@
|
||||
package com.emr.entity;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
public class ArchiveCallbackInfo implements Serializable {
|
||||
private String masterId;
|
||||
|
||||
private String callbackUserName;
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
|
||||
private Date callbackTime;
|
||||
|
||||
private String callbackReason;
|
||||
|
||||
private String ip;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public String getIp() {
|
||||
return ip;
|
||||
}
|
||||
|
||||
public void setIp(String ip) {
|
||||
this.ip = ip;
|
||||
}
|
||||
|
||||
public static long getSerialVersionUID() {
|
||||
return serialVersionUID;
|
||||
}
|
||||
|
||||
public String getMasterId() {
|
||||
return masterId;
|
||||
}
|
||||
|
||||
public void setMasterId(String masterId) {
|
||||
this.masterId = masterId == null ? null : masterId.trim();
|
||||
}
|
||||
|
||||
public String getCallbackUserName() {
|
||||
return callbackUserName;
|
||||
}
|
||||
|
||||
public void setCallbackUserName(String callbackUserName) {
|
||||
this.callbackUserName = callbackUserName == null ? null : callbackUserName.trim();
|
||||
}
|
||||
|
||||
public Date getCallbackTime() {
|
||||
return callbackTime;
|
||||
}
|
||||
|
||||
public void setCallbackTime(Date callbackTime) {
|
||||
this.callbackTime = callbackTime;
|
||||
}
|
||||
|
||||
public String getCallbackReason() {
|
||||
return callbackReason;
|
||||
}
|
||||
|
||||
public void setCallbackReason(String callbackReason) {
|
||||
this.callbackReason = callbackReason == null ? null : callbackReason.trim();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append(getClass().getSimpleName());
|
||||
sb.append(" [");
|
||||
sb.append("Hash = ").append(hashCode());
|
||||
sb.append(", masterId=").append(masterId);
|
||||
sb.append(", callbackUserName=").append(callbackUserName);
|
||||
sb.append(", callbackTime=").append(callbackTime);
|
||||
sb.append(", callbackReason=").append(callbackReason);
|
||||
sb.append("]");
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,172 @@
|
||||
package com.emr.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
public class ArchiveFlowInfo implements Serializable {
|
||||
private Integer id;
|
||||
|
||||
private String masterId;
|
||||
|
||||
private Integer stepIndex;
|
||||
|
||||
private Integer startStepId;
|
||||
|
||||
private String startStep;
|
||||
|
||||
private String sumbitName;
|
||||
|
||||
private Integer targetStepId;
|
||||
|
||||
private String targetStep;
|
||||
|
||||
private Short operRole;
|
||||
|
||||
private Long useSeconds;
|
||||
|
||||
private String remark;
|
||||
|
||||
private String userName;
|
||||
|
||||
private Date sumbitTime;
|
||||
|
||||
private Date createtime;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getMasterId() {
|
||||
return masterId;
|
||||
}
|
||||
|
||||
public void setMasterId(String masterId) {
|
||||
this.masterId = masterId == null ? null : masterId.trim();
|
||||
}
|
||||
|
||||
public Integer getStepIndex() {
|
||||
return stepIndex;
|
||||
}
|
||||
|
||||
public void setStepIndex(Integer stepIndex) {
|
||||
this.stepIndex = stepIndex;
|
||||
}
|
||||
|
||||
public Integer getStartStepId() {
|
||||
return startStepId;
|
||||
}
|
||||
|
||||
public void setStartStepId(Integer startStepId) {
|
||||
this.startStepId = startStepId;
|
||||
}
|
||||
|
||||
public String getStartStep() {
|
||||
return startStep;
|
||||
}
|
||||
|
||||
public void setStartStep(String startStep) {
|
||||
this.startStep = startStep == null ? null : startStep.trim();
|
||||
}
|
||||
|
||||
public String getSumbitName() {
|
||||
return sumbitName;
|
||||
}
|
||||
|
||||
public void setSumbitName(String sumbitName) {
|
||||
this.sumbitName = sumbitName == null ? null : sumbitName.trim();
|
||||
}
|
||||
|
||||
public Integer getTargetStepId() {
|
||||
return targetStepId;
|
||||
}
|
||||
|
||||
public void setTargetStepId(Integer targetStepId) {
|
||||
this.targetStepId = targetStepId;
|
||||
}
|
||||
|
||||
public String getTargetStep() {
|
||||
return targetStep;
|
||||
}
|
||||
|
||||
public void setTargetStep(String targetStep) {
|
||||
this.targetStep = targetStep == null ? null : targetStep.trim();
|
||||
}
|
||||
|
||||
public Short getOperRole() {
|
||||
return operRole;
|
||||
}
|
||||
|
||||
public void setOperRole(Short operRole) {
|
||||
this.operRole = operRole;
|
||||
}
|
||||
|
||||
public Long getUseSeconds() {
|
||||
return useSeconds;
|
||||
}
|
||||
|
||||
public void setUseSeconds(Long useSeconds) {
|
||||
this.useSeconds = useSeconds;
|
||||
}
|
||||
|
||||
public String getRemark() {
|
||||
return remark;
|
||||
}
|
||||
|
||||
public void setRemark(String remark) {
|
||||
this.remark = remark == null ? null : remark.trim();
|
||||
}
|
||||
|
||||
public String getUserName() {
|
||||
return userName;
|
||||
}
|
||||
|
||||
public void setUserName(String userName) {
|
||||
this.userName = userName == null ? null : userName.trim();
|
||||
}
|
||||
|
||||
public Date getSumbitTime() {
|
||||
return sumbitTime;
|
||||
}
|
||||
|
||||
public void setSumbitTime(Date sumbitTime) {
|
||||
this.sumbitTime = sumbitTime;
|
||||
}
|
||||
|
||||
public Date getCreatetime() {
|
||||
return createtime;
|
||||
}
|
||||
|
||||
public void setCreatetime(Date createtime) {
|
||||
this.createtime = createtime;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append(getClass().getSimpleName());
|
||||
sb.append(" [");
|
||||
sb.append("Hash = ").append(hashCode());
|
||||
sb.append(", id=").append(id);
|
||||
sb.append(", masterId=").append(masterId);
|
||||
sb.append(", stepIndex=").append(stepIndex);
|
||||
sb.append(", startStepId=").append(startStepId);
|
||||
sb.append(", startStep=").append(startStep);
|
||||
sb.append(", sumbitName=").append(sumbitName);
|
||||
sb.append(", targetStepId=").append(targetStepId);
|
||||
sb.append(", targetStep=").append(targetStep);
|
||||
sb.append(", operRole=").append(operRole);
|
||||
sb.append(", useSeconds=").append(useSeconds);
|
||||
sb.append(", remark=").append(remark);
|
||||
sb.append(", userName=").append(userName);
|
||||
sb.append(", sumbitTime=").append(sumbitTime);
|
||||
sb.append(", createtime=").append(createtime);
|
||||
sb.append("]");
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,94 @@
|
||||
package com.emr.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class ArchiveFlowRole implements Serializable {
|
||||
private Integer id;
|
||||
|
||||
private String code;
|
||||
|
||||
private String name;
|
||||
|
||||
private String sumbitName;
|
||||
|
||||
private Short effective;
|
||||
|
||||
private Integer stepIndex;
|
||||
|
||||
private Short role;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(String code) {
|
||||
this.code = code == null ? null : code.trim();
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name == null ? null : name.trim();
|
||||
}
|
||||
|
||||
public String getSumbitName() {
|
||||
return sumbitName;
|
||||
}
|
||||
|
||||
public void setSumbitName(String sumbitName) {
|
||||
this.sumbitName = sumbitName == null ? null : sumbitName.trim();
|
||||
}
|
||||
|
||||
public Short getEffective() {
|
||||
return effective;
|
||||
}
|
||||
|
||||
public void setEffective(Short effective) {
|
||||
this.effective = effective;
|
||||
}
|
||||
|
||||
public Integer getStepIndex() {
|
||||
return stepIndex;
|
||||
}
|
||||
|
||||
public void setStepIndex(Integer stepIndex) {
|
||||
this.stepIndex = stepIndex;
|
||||
}
|
||||
|
||||
public Short getRole() {
|
||||
return role;
|
||||
}
|
||||
|
||||
public void setRole(Short role) {
|
||||
this.role = role;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append(getClass().getSimpleName());
|
||||
sb.append(" [");
|
||||
sb.append("Hash = ").append(hashCode());
|
||||
sb.append(", id=").append(id);
|
||||
sb.append(", code=").append(code);
|
||||
sb.append(", name=").append(name);
|
||||
sb.append(", sumbitName=").append(sumbitName);
|
||||
sb.append(", effective=").append(effective);
|
||||
sb.append(", stepIndex=").append(stepIndex);
|
||||
sb.append(", role=").append(role);
|
||||
sb.append("]");
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,103 @@
|
||||
package com.emr.entity;
|
||||
|
||||
public class Archive_Detail {
|
||||
private String id;
|
||||
|
||||
private String pdfPath;
|
||||
|
||||
private String masterid;
|
||||
|
||||
private String uploaddatetime;
|
||||
|
||||
private String assortid;
|
||||
|
||||
private String source;
|
||||
|
||||
private String subassort;
|
||||
|
||||
private String title;
|
||||
|
||||
private String flag;
|
||||
|
||||
private String sys;
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id == null ? null : id.trim();
|
||||
}
|
||||
|
||||
public String getPdfPath() {
|
||||
return pdfPath;
|
||||
}
|
||||
|
||||
public void setPdfPath(String pdfPath) {
|
||||
this.pdfPath = pdfPath == null ? null : pdfPath.trim();
|
||||
}
|
||||
|
||||
public String getMasterid() {
|
||||
return masterid;
|
||||
}
|
||||
|
||||
public void setMasterid(String masterid) {
|
||||
this.masterid = masterid == null ? null : masterid.trim();
|
||||
}
|
||||
|
||||
public String getUploaddatetime() {
|
||||
return uploaddatetime;
|
||||
}
|
||||
|
||||
public void setUploaddatetime(String uploaddatetime) {
|
||||
this.uploaddatetime = uploaddatetime == null ? null : uploaddatetime.trim();
|
||||
}
|
||||
|
||||
public String getAssortid() {
|
||||
return assortid;
|
||||
}
|
||||
|
||||
public void setAssortid(String assortid) {
|
||||
this.assortid = assortid == null ? null : assortid.trim();
|
||||
}
|
||||
|
||||
public String getSource() {
|
||||
return source;
|
||||
}
|
||||
|
||||
public void setSource(String source) {
|
||||
this.source = source == null ? null : source.trim();
|
||||
}
|
||||
|
||||
public String getSubassort() {
|
||||
return subassort;
|
||||
}
|
||||
|
||||
public void setSubassort(String subassort) {
|
||||
this.subassort = subassort == null ? null : subassort.trim();
|
||||
}
|
||||
|
||||
public String getTitle() {
|
||||
return title;
|
||||
}
|
||||
|
||||
public void setTitle(String title) {
|
||||
this.title = title == null ? null : title.trim();
|
||||
}
|
||||
|
||||
public String getFlag() {
|
||||
return flag;
|
||||
}
|
||||
|
||||
public void setFlag(String flag) {
|
||||
this.flag = flag == null ? null : flag.trim();
|
||||
}
|
||||
|
||||
public String getSys() {
|
||||
return sys;
|
||||
}
|
||||
|
||||
public void setSys(String sys) {
|
||||
this.sys = sys == null ? null : sys.trim();
|
||||
}
|
||||
}
|
@ -0,0 +1,30 @@
|
||||
/**
|
||||
* Copyright (C), 2015-2019
|
||||
* Author: HJL
|
||||
* Date: 2019/7/29 15:02
|
||||
* Description:分段目录扩展
|
||||
*/
|
||||
package com.emr.entity;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class Archive_Detail_Vo extends Archive_Detail{
|
||||
private String assortName;
|
||||
|
||||
private Short assortSort;
|
||||
|
||||
private String printFlag;
|
||||
|
||||
private String patientId;
|
||||
|
||||
private String scanPage;
|
||||
|
||||
private int pageNum;
|
||||
|
||||
private Integer checker;
|
||||
|
||||
private String assortId;
|
||||
}
|
||||
|
||||
|
@ -0,0 +1,233 @@
|
||||
package com.emr.entity;
|
||||
|
||||
public class Archive_Master {
|
||||
private String id;
|
||||
|
||||
private String patientId;
|
||||
|
||||
private String inpNo;
|
||||
|
||||
private String visitId;
|
||||
|
||||
private String name;
|
||||
|
||||
private String sex;
|
||||
|
||||
private String deptName;
|
||||
|
||||
private String dischargeDateTime;
|
||||
|
||||
private String archivestate;
|
||||
|
||||
private String admissionDateTime;
|
||||
|
||||
private String deptAdmissionTo;
|
||||
|
||||
private String checkDoctor;
|
||||
|
||||
private String checkDatetime;
|
||||
|
||||
private String checkedDoctor;
|
||||
|
||||
private String checkedDatetime;
|
||||
|
||||
private String lockinfo;
|
||||
|
||||
private String doctorInCharge;
|
||||
|
||||
private String idNo;
|
||||
|
||||
private String dischargeDisposition;
|
||||
|
||||
private String deptCodeLend;
|
||||
|
||||
private String returntoRole;
|
||||
|
||||
private String returnOperUsername;
|
||||
|
||||
private String changeReason;
|
||||
|
||||
public String getChangeReason() {
|
||||
return changeReason;
|
||||
}
|
||||
|
||||
public void setChangeReason(String changeReason) {
|
||||
this.changeReason = changeReason;
|
||||
}
|
||||
|
||||
public String getReturntoRole() {
|
||||
return returntoRole;
|
||||
}
|
||||
|
||||
public void setReturntoRole(String returntoRole) {
|
||||
this.returntoRole = returntoRole;
|
||||
}
|
||||
|
||||
public String getReturnOperUsername() {
|
||||
return returnOperUsername;
|
||||
}
|
||||
|
||||
public void setReturnOperUsername(String returnOperUsername) {
|
||||
this.returnOperUsername = returnOperUsername;
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id == null ? null : id.trim();
|
||||
}
|
||||
|
||||
public String getPatientId() {
|
||||
return patientId;
|
||||
}
|
||||
|
||||
public void setPatientId(String patientId) {
|
||||
this.patientId = patientId == null ? null : patientId.trim();
|
||||
}
|
||||
|
||||
public String getInpNo() {
|
||||
return inpNo;
|
||||
}
|
||||
|
||||
public void setInpNo(String inpNo) {
|
||||
this.inpNo = inpNo == null ? null : inpNo.trim();
|
||||
}
|
||||
|
||||
public String getVisitId() {
|
||||
return visitId;
|
||||
}
|
||||
|
||||
public void setVisitId(String visitId) {
|
||||
this.visitId = visitId == null ? null : visitId.trim();
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name == null ? null : name.trim();
|
||||
}
|
||||
|
||||
public String getSex() {
|
||||
return sex;
|
||||
}
|
||||
|
||||
public void setSex(String sex) {
|
||||
this.sex = sex == null ? null : sex.trim();
|
||||
}
|
||||
|
||||
public String getDeptName() {
|
||||
return deptName;
|
||||
}
|
||||
|
||||
public void setDeptName(String deptName) {
|
||||
this.deptName = deptName == null ? null : deptName.trim();
|
||||
}
|
||||
|
||||
public String getDischargeDateTime() {
|
||||
return dischargeDateTime;
|
||||
}
|
||||
|
||||
public void setDischargeDateTime(String dischargeDateTime) {
|
||||
this.dischargeDateTime = dischargeDateTime == null ? null : dischargeDateTime.trim();
|
||||
}
|
||||
|
||||
public String getArchivestate() {
|
||||
return archivestate;
|
||||
}
|
||||
|
||||
public void setArchivestate(String archivestate) {
|
||||
this.archivestate = archivestate == null ? null : archivestate.trim();
|
||||
}
|
||||
|
||||
public String getAdmissionDateTime() {
|
||||
return admissionDateTime;
|
||||
}
|
||||
|
||||
public void setAdmissionDateTime(String admissionDateTime) {
|
||||
this.admissionDateTime = admissionDateTime == null ? null : admissionDateTime.trim();
|
||||
}
|
||||
|
||||
public String getDeptAdmissionTo() {
|
||||
return deptAdmissionTo;
|
||||
}
|
||||
|
||||
public void setDeptAdmissionTo(String deptAdmissionTo) {
|
||||
this.deptAdmissionTo = deptAdmissionTo == null ? null : deptAdmissionTo.trim();
|
||||
}
|
||||
|
||||
public String getCheckDoctor() {
|
||||
return checkDoctor;
|
||||
}
|
||||
|
||||
public void setCheckDoctor(String checkDoctor) {
|
||||
this.checkDoctor = checkDoctor == null ? null : checkDoctor.trim();
|
||||
}
|
||||
|
||||
public String getCheckDatetime() {
|
||||
return checkDatetime;
|
||||
}
|
||||
|
||||
public void setCheckDatetime(String checkDatetime) {
|
||||
this.checkDatetime = checkDatetime == null ? null : checkDatetime.trim();
|
||||
}
|
||||
|
||||
public String getCheckedDoctor() {
|
||||
return checkedDoctor;
|
||||
}
|
||||
|
||||
public void setCheckedDoctor(String checkedDoctor) {
|
||||
this.checkedDoctor = checkedDoctor == null ? null : checkedDoctor.trim();
|
||||
}
|
||||
|
||||
public String getCheckedDatetime() {
|
||||
return checkedDatetime;
|
||||
}
|
||||
|
||||
public void setCheckedDatetime(String checkedDatetime) {
|
||||
this.checkedDatetime = checkedDatetime == null ? null : checkedDatetime.trim();
|
||||
}
|
||||
|
||||
public String getLockinfo() {
|
||||
return lockinfo;
|
||||
}
|
||||
|
||||
public void setLockinfo(String lockinfo) {
|
||||
this.lockinfo = lockinfo == null ? null : lockinfo.trim();
|
||||
}
|
||||
|
||||
public String getDoctorInCharge() {
|
||||
return doctorInCharge;
|
||||
}
|
||||
|
||||
public void setDoctorInCharge(String doctorInCharge) {
|
||||
this.doctorInCharge = doctorInCharge == null ? null : doctorInCharge.trim();
|
||||
}
|
||||
|
||||
public String getIdNo() {
|
||||
return idNo;
|
||||
}
|
||||
|
||||
public void setIdNo(String idNo) {
|
||||
this.idNo = idNo == null ? null : idNo.trim();
|
||||
}
|
||||
|
||||
public String getDischargeDisposition() {
|
||||
return dischargeDisposition;
|
||||
}
|
||||
|
||||
public void setDischargeDisposition(String dischargeDisposition) {
|
||||
this.dischargeDisposition = dischargeDisposition == null ? null : dischargeDisposition.trim();
|
||||
}
|
||||
|
||||
public String getDeptCodeLend() {
|
||||
return deptCodeLend;
|
||||
}
|
||||
|
||||
public void setDeptCodeLend(String deptCodeLend) {
|
||||
this.deptCodeLend = deptCodeLend == null ? null : deptCodeLend.trim();
|
||||
}
|
||||
}
|
@ -0,0 +1,44 @@
|
||||
/**
|
||||
* Copyright (C), 2015-2019
|
||||
* Author: HJL
|
||||
* Date: 2019/7/26 17:51
|
||||
* Description:
|
||||
*/
|
||||
package com.emr.entity;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class Archive_Master_Vo extends Archive_Master{
|
||||
private String startDateTo;
|
||||
|
||||
private String endDateTo;
|
||||
|
||||
private String startDate;
|
||||
|
||||
private String endDate;
|
||||
|
||||
private List<String> deptList;
|
||||
|
||||
private Float days;
|
||||
|
||||
private String checkName;
|
||||
|
||||
private String checkedName;
|
||||
|
||||
private String btns;//拼接按钮
|
||||
|
||||
private String status;//转换中文状态
|
||||
|
||||
private String remark;//审核内容
|
||||
|
||||
private Integer roleCode;//审核角色stepIndex,步骤编码
|
||||
|
||||
private Integer role;//操作角色1,2,4
|
||||
|
||||
private Integer infoId;//流转流程的id
|
||||
}
|
||||
|
||||
|
@ -0,0 +1,28 @@
|
||||
package com.emr.entity;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @ProjectName:
|
||||
* @Description:
|
||||
* @Param 传输参数
|
||||
* @Return
|
||||
* @Author: 曾文和
|
||||
* @CreateDate: 2020/4/22 17:40
|
||||
* @UpdateUser: 曾文和
|
||||
* @UpdateDate: 2020/4/22 17:40
|
||||
* @UpdateRemark: 更新说明
|
||||
* @Version: 1.0
|
||||
*/
|
||||
@Data
|
||||
public class AssortTypeTree {
|
||||
private Integer id;
|
||||
|
||||
private Integer parentId;
|
||||
|
||||
private String name;
|
||||
|
||||
private String selfId;
|
||||
|
||||
private String checked;
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.emr.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class EmrHolidaySet implements Serializable {
|
||||
private Integer id;
|
||||
|
||||
private String date;
|
||||
|
||||
private Short flag;
|
||||
|
||||
private String updateTime;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getDate() {
|
||||
return date;
|
||||
}
|
||||
|
||||
public void setDate(String date) {
|
||||
this.date = date == null ? null : date.trim();
|
||||
}
|
||||
|
||||
public Short getFlag() {
|
||||
return flag;
|
||||
}
|
||||
|
||||
public void setFlag(Short flag) {
|
||||
this.flag = flag;
|
||||
}
|
||||
|
||||
public String getUpdateTime() {
|
||||
return updateTime;
|
||||
}
|
||||
|
||||
public void setUpdateTime(String updateTime) {
|
||||
this.updateTime = updateTime == null ? null : updateTime.trim();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append(getClass().getSimpleName());
|
||||
sb.append(" [");
|
||||
sb.append("Hash = ").append(hashCode());
|
||||
sb.append(", id=").append(id);
|
||||
sb.append(", date=").append(date);
|
||||
sb.append(", flag=").append(flag);
|
||||
sb.append(", updateTime=").append(updateTime);
|
||||
sb.append("]");
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,53 @@
|
||||
package com.emr.entity;
|
||||
|
||||
public class EmrHolidaySetVo extends EmrHolidaySet {
|
||||
private String startTime;
|
||||
|
||||
private String endTime;
|
||||
|
||||
private int offset;
|
||||
|
||||
private int limit;
|
||||
|
||||
private String flagCh;
|
||||
|
||||
public String getFlagCh() {
|
||||
return flagCh;
|
||||
}
|
||||
|
||||
public void setFlagCh(String flagCh) {
|
||||
this.flagCh = flagCh;
|
||||
}
|
||||
|
||||
public int getOffset() {
|
||||
return offset;
|
||||
}
|
||||
|
||||
public void setOffset(int offset) {
|
||||
this.offset = offset;
|
||||
}
|
||||
|
||||
public int getLimit() {
|
||||
return limit;
|
||||
}
|
||||
|
||||
public void setLimit(int limit) {
|
||||
this.limit = limit;
|
||||
}
|
||||
|
||||
public String getStartTime() {
|
||||
return startTime;
|
||||
}
|
||||
|
||||
public void setStartTime(String startTime) {
|
||||
this.startTime = startTime;
|
||||
}
|
||||
|
||||
public String getEndTime() {
|
||||
return endTime;
|
||||
}
|
||||
|
||||
public void setEndTime(String endTime) {
|
||||
this.endTime = endTime;
|
||||
}
|
||||
}
|
@ -0,0 +1,39 @@
|
||||
package com.emr.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class EmrOvertimeSet implements Serializable {
|
||||
private Integer id;
|
||||
|
||||
private Integer days;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Integer getDays() {
|
||||
return days;
|
||||
}
|
||||
|
||||
public void setDays(Integer days) {
|
||||
this.days = days;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append(getClass().getSimpleName());
|
||||
sb.append(" [");
|
||||
sb.append("Hash = ").append(hashCode());
|
||||
sb.append(", id=").append(id);
|
||||
sb.append(", days=").append(days);
|
||||
sb.append("]");
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,49 @@
|
||||
package com.emr.entity;
|
||||
|
||||
public class EmrPatient {
|
||||
private String fpatno; //记账号,
|
||||
private String fpatfilen;//住院号
|
||||
private String fpattimes;//住院次数
|
||||
private String fpatname;//姓名
|
||||
private String farchieve_dt;//最后更改时间
|
||||
|
||||
public String getFpatno() {
|
||||
return fpatno;
|
||||
}
|
||||
|
||||
public void setFpatno(String fpatno) {
|
||||
this.fpatno = fpatno;
|
||||
}
|
||||
|
||||
public String getFpatfilen() {
|
||||
return fpatfilen;
|
||||
}
|
||||
|
||||
public void setFpatfilen(String fpatfilen) {
|
||||
this.fpatfilen = fpatfilen;
|
||||
}
|
||||
|
||||
public String getFpattimes() {
|
||||
return fpattimes;
|
||||
}
|
||||
|
||||
public void setFpattimes(String fpattimes) {
|
||||
this.fpattimes = fpattimes;
|
||||
}
|
||||
|
||||
public String getFpatname() {
|
||||
return fpatname;
|
||||
}
|
||||
|
||||
public void setFpatname(String fpatname) {
|
||||
this.fpatname = fpatname;
|
||||
}
|
||||
|
||||
public String getFarchieve_dt() {
|
||||
return farchieve_dt;
|
||||
}
|
||||
|
||||
public void setFarchieve_dt(String farchieve_dt) {
|
||||
this.farchieve_dt = farchieve_dt;
|
||||
}
|
||||
}
|
@ -0,0 +1,103 @@
|
||||
package com.emr.entity;
|
||||
|
||||
public class Emr_Archive_Detail {
|
||||
private Integer id;
|
||||
|
||||
private String archiveDetailId;
|
||||
|
||||
private String assortId;
|
||||
|
||||
private Integer parentId;
|
||||
|
||||
private String title;
|
||||
|
||||
private String creater;
|
||||
|
||||
private String createTime;
|
||||
|
||||
private String updater;
|
||||
|
||||
private String updateTime;
|
||||
|
||||
private String remaker;
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getArchiveDetailId() {
|
||||
return archiveDetailId;
|
||||
}
|
||||
|
||||
public void setArchiveDetailId(String archiveDetailId) {
|
||||
this.archiveDetailId = archiveDetailId == null ? null : archiveDetailId.trim();
|
||||
}
|
||||
|
||||
public String getAssortId() {
|
||||
return assortId;
|
||||
}
|
||||
|
||||
public void setAssortId(String assortId) {
|
||||
this.assortId = assortId == null ? null : assortId.trim();
|
||||
}
|
||||
|
||||
public Integer getParentId() {
|
||||
return parentId;
|
||||
}
|
||||
|
||||
public void setParentId(Integer parentId) {
|
||||
this.parentId = parentId;
|
||||
}
|
||||
|
||||
public String getTitle() {
|
||||
return title;
|
||||
}
|
||||
|
||||
public void setTitle(String title) {
|
||||
this.title = title == null ? null : title.trim();
|
||||
}
|
||||
|
||||
public String getCreater() {
|
||||
return creater;
|
||||
}
|
||||
|
||||
public void setCreater(String creater) {
|
||||
this.creater = creater == null ? null : creater.trim();
|
||||
}
|
||||
|
||||
public String getCreateTime() {
|
||||
return createTime;
|
||||
}
|
||||
|
||||
public void setCreateTime(String createTime) {
|
||||
this.createTime = createTime == null ? null : createTime.trim();
|
||||
}
|
||||
|
||||
public String getUpdater() {
|
||||
return updater;
|
||||
}
|
||||
|
||||
public void setUpdater(String updater) {
|
||||
this.updater = updater == null ? null : updater.trim();
|
||||
}
|
||||
|
||||
public String getUpdateTime() {
|
||||
return updateTime;
|
||||
}
|
||||
|
||||
public void setUpdateTime(String updateTime) {
|
||||
this.updateTime = updateTime == null ? null : updateTime.trim();
|
||||
}
|
||||
|
||||
public String getRemaker() {
|
||||
return remaker;
|
||||
}
|
||||
|
||||
public void setRemaker(String remaker) {
|
||||
this.remaker = remaker == null ? null : remaker.trim();
|
||||
}
|
||||
}
|
@ -0,0 +1,183 @@
|
||||
package com.emr.entity;
|
||||
|
||||
public class Emr_Dictionary {
|
||||
private Integer id;
|
||||
|
||||
private String typecode;
|
||||
|
||||
private String typename;
|
||||
|
||||
private String code;
|
||||
|
||||
private String name;
|
||||
|
||||
private String pyCode;
|
||||
|
||||
private String wbCode;
|
||||
|
||||
private String zipCode;
|
||||
|
||||
private String gbCode;
|
||||
|
||||
private Short flag;
|
||||
|
||||
private String cComment;
|
||||
|
||||
private String parentId;
|
||||
|
||||
private Integer effective;
|
||||
|
||||
private String updater;
|
||||
|
||||
private String updateTime;
|
||||
|
||||
private String creater;
|
||||
|
||||
private String createTime;
|
||||
|
||||
private String remark;
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getTypecode() {
|
||||
return typecode;
|
||||
}
|
||||
|
||||
public void setTypecode(String typecode) {
|
||||
this.typecode = typecode == null ? null : typecode.trim();
|
||||
}
|
||||
|
||||
public String getTypename() {
|
||||
return typename;
|
||||
}
|
||||
|
||||
public void setTypename(String typename) {
|
||||
this.typename = typename == null ? null : typename.trim();
|
||||
}
|
||||
|
||||
public String getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(String code) {
|
||||
this.code = code == null ? null : code.trim();
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name == null ? null : name.trim();
|
||||
}
|
||||
|
||||
public String getPyCode() {
|
||||
return pyCode;
|
||||
}
|
||||
|
||||
public void setPyCode(String pyCode) {
|
||||
this.pyCode = pyCode == null ? null : pyCode.trim();
|
||||
}
|
||||
|
||||
public String getWbCode() {
|
||||
return wbCode;
|
||||
}
|
||||
|
||||
public void setWbCode(String wbCode) {
|
||||
this.wbCode = wbCode == null ? null : wbCode.trim();
|
||||
}
|
||||
|
||||
public String getZipCode() {
|
||||
return zipCode;
|
||||
}
|
||||
|
||||
public void setZipCode(String zipCode) {
|
||||
this.zipCode = zipCode == null ? null : zipCode.trim();
|
||||
}
|
||||
|
||||
public String getGbCode() {
|
||||
return gbCode;
|
||||
}
|
||||
|
||||
public void setGbCode(String gbCode) {
|
||||
this.gbCode = gbCode == null ? null : gbCode.trim();
|
||||
}
|
||||
|
||||
public Short getFlag() {
|
||||
return flag;
|
||||
}
|
||||
|
||||
public void setFlag(Short flag) {
|
||||
this.flag = flag;
|
||||
}
|
||||
|
||||
public String getcComment() {
|
||||
return cComment;
|
||||
}
|
||||
|
||||
public void setcComment(String cComment) {
|
||||
this.cComment = cComment == null ? null : cComment.trim();
|
||||
}
|
||||
|
||||
public String getParentId() {
|
||||
return parentId;
|
||||
}
|
||||
|
||||
public void setParentId(String parentId) {
|
||||
this.parentId = parentId;
|
||||
}
|
||||
|
||||
public Integer getEffective() {
|
||||
return effective;
|
||||
}
|
||||
|
||||
public void setEffective(Integer effective) {
|
||||
this.effective = effective;
|
||||
}
|
||||
|
||||
public String getUpdater() {
|
||||
return updater;
|
||||
}
|
||||
|
||||
public void setUpdater(String updater) {
|
||||
this.updater = updater == null ? null : updater.trim();
|
||||
}
|
||||
|
||||
public String getUpdateTime() {
|
||||
return updateTime;
|
||||
}
|
||||
|
||||
public void setUpdateTime(String updateTime) {
|
||||
this.updateTime = updateTime == null ? null : updateTime.trim();
|
||||
}
|
||||
|
||||
public String getCreater() {
|
||||
return creater;
|
||||
}
|
||||
|
||||
public void setCreater(String creater) {
|
||||
this.creater = creater == null ? null : creater.trim();
|
||||
}
|
||||
|
||||
public String getCreateTime() {
|
||||
return createTime;
|
||||
}
|
||||
|
||||
public void setCreateTime(String createTime) {
|
||||
this.createTime = createTime == null ? null : createTime.trim();
|
||||
}
|
||||
|
||||
public String getRemark() {
|
||||
return remark;
|
||||
}
|
||||
|
||||
public void setRemark(String remark) {
|
||||
this.remark = remark == null ? null : remark.trim();
|
||||
}
|
||||
}
|
@ -0,0 +1,145 @@
|
||||
package com.emr.entity;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
public class Emr_Fault_Detail {
|
||||
private Integer id;
|
||||
|
||||
private String archiveDetailId;
|
||||
|
||||
private String assortId;
|
||||
|
||||
private Integer parentId;
|
||||
|
||||
private String content;
|
||||
|
||||
private BigDecimal score;
|
||||
|
||||
private String backContent;
|
||||
|
||||
private String firstTrial;
|
||||
|
||||
private String state;
|
||||
|
||||
private String recallReason;
|
||||
|
||||
private String creater;
|
||||
|
||||
private String createTime;
|
||||
|
||||
private String updater;
|
||||
|
||||
private String updateTime;
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getArchiveDetailId() {
|
||||
return archiveDetailId;
|
||||
}
|
||||
|
||||
public void setArchiveDetailId(String archiveDetailId) {
|
||||
this.archiveDetailId = archiveDetailId == null ? null : archiveDetailId.trim();
|
||||
}
|
||||
|
||||
public String getAssortId() {
|
||||
return assortId;
|
||||
}
|
||||
|
||||
public void setAssortId(String assortId) {
|
||||
this.assortId = assortId == null ? null : assortId.trim();
|
||||
}
|
||||
|
||||
public Integer getParentId() {
|
||||
return parentId;
|
||||
}
|
||||
|
||||
public void setParentId(Integer parentId) {
|
||||
this.parentId = parentId;
|
||||
}
|
||||
|
||||
public String getContent() {
|
||||
return content;
|
||||
}
|
||||
|
||||
public void setContent(String content) {
|
||||
this.content = content == null ? null : content.trim();
|
||||
}
|
||||
|
||||
public BigDecimal getScore() {
|
||||
return score;
|
||||
}
|
||||
|
||||
public void setScore(BigDecimal score) {
|
||||
this.score = score;
|
||||
}
|
||||
|
||||
public String getBackContent() {
|
||||
return backContent;
|
||||
}
|
||||
|
||||
public void setBackContent(String backContent) {
|
||||
this.backContent = backContent == null ? null : backContent.trim();
|
||||
}
|
||||
|
||||
public String getFirstTrial() {
|
||||
return firstTrial;
|
||||
}
|
||||
|
||||
public void setFirstTrial(String firstTrial) {
|
||||
this.firstTrial = firstTrial == null ? null : firstTrial.trim();
|
||||
}
|
||||
|
||||
public String getState() {
|
||||
return state;
|
||||
}
|
||||
|
||||
public void setState(String state) {
|
||||
this.state = state == null ? null : state.trim();
|
||||
}
|
||||
|
||||
public String getRecallReason() {
|
||||
return recallReason;
|
||||
}
|
||||
|
||||
public void setRecallReason(String recallReason) {
|
||||
this.recallReason = recallReason == null ? null : recallReason.trim();
|
||||
}
|
||||
|
||||
public String getCreater() {
|
||||
return creater;
|
||||
}
|
||||
|
||||
public void setCreater(String creater) {
|
||||
this.creater = creater == null ? null : creater.trim();
|
||||
}
|
||||
|
||||
public String getCreateTime() {
|
||||
return createTime;
|
||||
}
|
||||
|
||||
public void setCreateTime(String createTime) {
|
||||
this.createTime = createTime == null ? null : createTime.trim();
|
||||
}
|
||||
|
||||
public String getUpdater() {
|
||||
return updater;
|
||||
}
|
||||
|
||||
public void setUpdater(String updater) {
|
||||
this.updater = updater == null ? null : updater.trim();
|
||||
}
|
||||
|
||||
public String getUpdateTime() {
|
||||
return updateTime;
|
||||
}
|
||||
|
||||
public void setUpdateTime(String updateTime) {
|
||||
this.updateTime = updateTime == null ? null : updateTime.trim();
|
||||
}
|
||||
}
|
@ -0,0 +1,63 @@
|
||||
package com.emr.entity;
|
||||
|
||||
public class Emr_Fault_Detail_Vo extends Emr_Fault_Detail {
|
||||
private String returntoRole;
|
||||
|
||||
private String returnOperUsername;
|
||||
|
||||
private String checkedDateTime;
|
||||
|
||||
private String changeReason;
|
||||
|
||||
private String status;
|
||||
|
||||
private Integer targetCode;
|
||||
|
||||
public Integer getTargetCode() {
|
||||
return targetCode;
|
||||
}
|
||||
|
||||
public void setTargetCode(Integer targetCode) {
|
||||
this.targetCode = targetCode;
|
||||
}
|
||||
|
||||
public String getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(String status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public String getChangeReason() {
|
||||
return changeReason;
|
||||
}
|
||||
|
||||
public void setChangeReason(String changeReason) {
|
||||
this.changeReason = changeReason;
|
||||
}
|
||||
|
||||
public String getCheckedDateTime() {
|
||||
return checkedDateTime;
|
||||
}
|
||||
|
||||
public void setCheckedDateTime(String checkedDateTime) {
|
||||
this.checkedDateTime = checkedDateTime;
|
||||
}
|
||||
|
||||
public String getReturntoRole() {
|
||||
return returntoRole;
|
||||
}
|
||||
|
||||
public void setReturntoRole(String returntoRole) {
|
||||
this.returntoRole = returntoRole;
|
||||
}
|
||||
|
||||
public String getReturnOperUsername() {
|
||||
return returnOperUsername;
|
||||
}
|
||||
|
||||
public void setReturnOperUsername(String returnOperUsername) {
|
||||
this.returnOperUsername = returnOperUsername;
|
||||
}
|
||||
}
|
@ -0,0 +1,113 @@
|
||||
package com.emr.entity;
|
||||
|
||||
public class Emr_Fault_Type {
|
||||
private Integer id;
|
||||
|
||||
private String archiveDetailId;
|
||||
|
||||
private String typeFlag;
|
||||
|
||||
private String typeName;
|
||||
|
||||
private Integer typeSort;
|
||||
|
||||
private Integer effective;
|
||||
|
||||
private String remark;
|
||||
|
||||
private String creater;
|
||||
|
||||
private String createTime;
|
||||
|
||||
private String updater;
|
||||
|
||||
private String updateTime;
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getArchiveDetailId() {
|
||||
return archiveDetailId;
|
||||
}
|
||||
|
||||
public void setArchiveDetailId(String archiveDetailId) {
|
||||
this.archiveDetailId = archiveDetailId;
|
||||
}
|
||||
|
||||
public String getTypeFlag() {
|
||||
return typeFlag;
|
||||
}
|
||||
|
||||
public void setTypeFlag(String typeFlag) {
|
||||
this.typeFlag = typeFlag == null ? null : typeFlag.trim();
|
||||
}
|
||||
|
||||
public String getTypeName() {
|
||||
return typeName;
|
||||
}
|
||||
|
||||
public void setTypeName(String typeName) {
|
||||
this.typeName = typeName == null ? null : typeName.trim();
|
||||
}
|
||||
|
||||
public Integer getTypeSort() {
|
||||
return typeSort;
|
||||
}
|
||||
|
||||
public void setTypeSort(Integer typeSort) {
|
||||
this.typeSort = typeSort;
|
||||
}
|
||||
|
||||
public Integer getEffective() {
|
||||
return effective;
|
||||
}
|
||||
|
||||
public void setEffective(Integer effective) {
|
||||
this.effective = effective;
|
||||
}
|
||||
|
||||
public String getRemark() {
|
||||
return remark;
|
||||
}
|
||||
|
||||
public void setRemark(String remark) {
|
||||
this.remark = remark == null ? null : remark.trim();
|
||||
}
|
||||
|
||||
public String getCreater() {
|
||||
return creater;
|
||||
}
|
||||
|
||||
public void setCreater(String creater) {
|
||||
this.creater = creater == null ? null : creater.trim();
|
||||
}
|
||||
|
||||
public String getCreateTime() {
|
||||
return createTime;
|
||||
}
|
||||
|
||||
public void setCreateTime(String createTime) {
|
||||
this.createTime = createTime == null ? null : createTime.trim();
|
||||
}
|
||||
|
||||
public String getUpdater() {
|
||||
return updater;
|
||||
}
|
||||
|
||||
public void setUpdater(String updater) {
|
||||
this.updater = updater == null ? null : updater.trim();
|
||||
}
|
||||
|
||||
public String getUpdateTime() {
|
||||
return updateTime;
|
||||
}
|
||||
|
||||
public void setUpdateTime(String updateTime) {
|
||||
this.updateTime = updateTime == null ? null : updateTime.trim();
|
||||
}
|
||||
}
|
@ -0,0 +1,315 @@
|
||||
/**
|
||||
* Copyright (C), 2015-2019
|
||||
* Author: HJL
|
||||
* Date: 2019/7/22 12:06
|
||||
* Description:缺陷实体扩展
|
||||
*/
|
||||
package com.emr.entity;
|
||||
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
public class Emr_Fault_Vo {
|
||||
private Integer id;
|
||||
|
||||
private String archiveDetailId;
|
||||
|
||||
private String assortId;
|
||||
|
||||
private Integer parentId;
|
||||
|
||||
private String content;
|
||||
|
||||
private BigDecimal score;
|
||||
|
||||
private String backContent;
|
||||
|
||||
private String firstTrial;
|
||||
|
||||
private String state;
|
||||
|
||||
private String recallReason;
|
||||
|
||||
private String creater;
|
||||
|
||||
private String createTime;
|
||||
|
||||
private String updater;
|
||||
|
||||
private String updateTime;
|
||||
|
||||
private String inpNo;
|
||||
|
||||
private String visitId;
|
||||
|
||||
private String name;
|
||||
|
||||
private String deptName;
|
||||
|
||||
private String dischargeDateTime;
|
||||
|
||||
private String archivestate;
|
||||
|
||||
private String startDate;
|
||||
|
||||
private String endDate;
|
||||
|
||||
private String admissionDateTime;
|
||||
|
||||
private String deptAdmissionTo;
|
||||
|
||||
private String sex;
|
||||
|
||||
private String idNo;
|
||||
|
||||
private String dischargeDisposition;
|
||||
|
||||
private String startDateTo;
|
||||
|
||||
private String endDateTo;
|
||||
|
||||
private String patientId;
|
||||
|
||||
public String getPatientId() {
|
||||
return patientId;
|
||||
}
|
||||
|
||||
public void setPatientId(String patientId) {
|
||||
this.patientId = patientId;
|
||||
}
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getArchiveDetailId() {
|
||||
return archiveDetailId;
|
||||
}
|
||||
|
||||
public void setArchiveDetailId(String archiveDetailId) {
|
||||
this.archiveDetailId = archiveDetailId == null ? null : archiveDetailId.trim();
|
||||
}
|
||||
|
||||
public String getAssortId() {
|
||||
return assortId;
|
||||
}
|
||||
|
||||
public void setAssortId(String assortId) {
|
||||
this.assortId = assortId == null ? null : assortId.trim();
|
||||
}
|
||||
|
||||
public Integer getParentId() {
|
||||
return parentId;
|
||||
}
|
||||
|
||||
public void setParentId(Integer parentId) {
|
||||
this.parentId = parentId;
|
||||
}
|
||||
|
||||
public String getContent() {
|
||||
return content;
|
||||
}
|
||||
|
||||
public void setContent(String content) {
|
||||
this.content = content == null ? null : content.trim();
|
||||
}
|
||||
|
||||
public BigDecimal getScore() {
|
||||
return score;
|
||||
}
|
||||
|
||||
public void setScore(BigDecimal score) {
|
||||
this.score = score;
|
||||
}
|
||||
|
||||
public String getBackContent() {
|
||||
return backContent;
|
||||
}
|
||||
|
||||
public void setBackContent(String backContent) {
|
||||
this.backContent = backContent == null ? null : backContent.trim();
|
||||
}
|
||||
|
||||
public String getFirstTrial() {
|
||||
return firstTrial;
|
||||
}
|
||||
|
||||
public void setFirstTrial(String firstTrial) {
|
||||
this.firstTrial = firstTrial == null ? null : firstTrial.trim();
|
||||
}
|
||||
|
||||
public String getState() {
|
||||
return state;
|
||||
}
|
||||
|
||||
public void setState(String state) {
|
||||
this.state = state == null ? null : state.trim();
|
||||
}
|
||||
|
||||
public String getRecallReason() {
|
||||
return recallReason;
|
||||
}
|
||||
|
||||
public void setRecallReason(String recallReason) {
|
||||
this.recallReason = recallReason == null ? null : recallReason.trim();
|
||||
}
|
||||
|
||||
public String getCreater() {
|
||||
return creater;
|
||||
}
|
||||
|
||||
public void setCreater(String creater) {
|
||||
this.creater = creater == null ? null : creater.trim();
|
||||
}
|
||||
|
||||
public String getCreateTime() {
|
||||
return createTime;
|
||||
}
|
||||
|
||||
public void setCreateTime(String createTime) {
|
||||
this.createTime = createTime == null ? null : createTime.trim();
|
||||
}
|
||||
|
||||
public String getUpdater() {
|
||||
return updater;
|
||||
}
|
||||
|
||||
public void setUpdater(String updater) {
|
||||
this.updater = updater == null ? null : updater.trim();
|
||||
}
|
||||
|
||||
public String getUpdateTime() {
|
||||
return updateTime;
|
||||
}
|
||||
|
||||
public void setUpdateTime(String updateTime) {
|
||||
this.updateTime = updateTime == null ? null : updateTime.trim();
|
||||
}
|
||||
|
||||
public String getInpNo() {
|
||||
return inpNo;
|
||||
}
|
||||
|
||||
public void setInpNo(String inpNo) {
|
||||
this.inpNo = inpNo == null ? null : inpNo.trim();
|
||||
}
|
||||
|
||||
public String getVisitId() {
|
||||
return visitId;
|
||||
}
|
||||
|
||||
public void setVisitId(String visitId) {
|
||||
this.visitId = visitId == null ? null : visitId.trim();
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name == null ? null : name.trim();
|
||||
}
|
||||
|
||||
public String getDeptName() {
|
||||
return deptName;
|
||||
}
|
||||
|
||||
public void setDeptName(String deptName) {
|
||||
this.deptName = deptName == null ? null : deptName.trim();
|
||||
}
|
||||
|
||||
public String getDischargeDateTime() {
|
||||
return dischargeDateTime;
|
||||
}
|
||||
|
||||
public void setDischargeDateTime(String dischargeDateTime) {
|
||||
this.dischargeDateTime = dischargeDateTime == null ? null : dischargeDateTime.trim();
|
||||
}
|
||||
|
||||
public String getArchivestate() {
|
||||
return archivestate;
|
||||
}
|
||||
|
||||
public void setArchivestate(String archivestate) {
|
||||
this.archivestate = archivestate == null ? null : archivestate.trim();
|
||||
}
|
||||
|
||||
public String getStartDate() {
|
||||
return startDate;
|
||||
}
|
||||
|
||||
public void setStartDate(String startDate) {
|
||||
this.startDate = startDate == null ? null : startDate.trim();
|
||||
}
|
||||
|
||||
public String getEndDate() {
|
||||
return endDate;
|
||||
}
|
||||
|
||||
public void setEndDate(String endDate) {
|
||||
this.endDate = endDate == null ? null : endDate.trim();
|
||||
}
|
||||
|
||||
public String getAdmissionDateTime() {
|
||||
return admissionDateTime;
|
||||
}
|
||||
|
||||
public void setAdmissionDateTime(String admissionDateTime) {
|
||||
this.admissionDateTime = admissionDateTime == null ? null : admissionDateTime.trim();
|
||||
}
|
||||
|
||||
public String getDeptAdmissionTo() {
|
||||
return deptAdmissionTo;
|
||||
}
|
||||
|
||||
public void setDeptAdmissionTo(String deptAdmissionTo) {
|
||||
this.deptAdmissionTo = deptAdmissionTo == null ? null : deptAdmissionTo.trim();
|
||||
}
|
||||
|
||||
public String getSex() {
|
||||
return sex;
|
||||
}
|
||||
|
||||
public void setSex(String sex) {
|
||||
this.sex = sex == null ? null : sex.trim();
|
||||
}
|
||||
|
||||
public String getIdNo() {
|
||||
return idNo;
|
||||
}
|
||||
|
||||
public void setIdNo(String idNo) {
|
||||
this.idNo = idNo == null ? null : idNo.trim();
|
||||
}
|
||||
|
||||
public String getDischargeDisposition() {
|
||||
return dischargeDisposition;
|
||||
}
|
||||
|
||||
public void setDischargeDisposition(String dischargeDisposition) {
|
||||
this.dischargeDisposition = dischargeDisposition == null ? null : dischargeDisposition.trim();
|
||||
}
|
||||
|
||||
public String getStartDateTo() {
|
||||
return startDateTo;
|
||||
}
|
||||
|
||||
public void setStartDateTo(String startDateTo) {
|
||||
this.startDateTo = startDateTo == null ? null : startDateTo.trim();
|
||||
}
|
||||
|
||||
public String getEndDateTo() {
|
||||
return endDateTo;
|
||||
}
|
||||
|
||||
public void setEndDateTo(String endDateTo) {
|
||||
this.endDateTo = endDateTo == null ? null : endDateTo.trim();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
@ -0,0 +1,93 @@
|
||||
package com.emr.entity;
|
||||
|
||||
public class Emr_Log {
|
||||
private Integer logId;
|
||||
|
||||
private String logTitle;
|
||||
|
||||
private String logContent;
|
||||
|
||||
private String ip;
|
||||
|
||||
private Integer sysId;
|
||||
|
||||
private String sysFlag;
|
||||
|
||||
private String creater;
|
||||
|
||||
private String createDate;
|
||||
|
||||
private String remark;
|
||||
|
||||
public Integer getLogId() {
|
||||
return logId;
|
||||
}
|
||||
|
||||
public void setLogId(Integer logId) {
|
||||
this.logId = logId;
|
||||
}
|
||||
|
||||
public String getLogTitle() {
|
||||
return logTitle;
|
||||
}
|
||||
|
||||
public void setLogTitle(String logTitle) {
|
||||
this.logTitle = logTitle == null ? null : logTitle.trim();
|
||||
}
|
||||
|
||||
public String getLogContent() {
|
||||
return logContent;
|
||||
}
|
||||
|
||||
public void setLogContent(String logContent) {
|
||||
this.logContent = logContent == null ? null : logContent.trim();
|
||||
}
|
||||
|
||||
public String getIp() {
|
||||
return ip;
|
||||
}
|
||||
|
||||
public void setIp(String ip) {
|
||||
this.ip = ip;
|
||||
}
|
||||
|
||||
public Integer getSysId() {
|
||||
return sysId;
|
||||
}
|
||||
|
||||
public void setSysId(Integer sysId) {
|
||||
this.sysId = sysId;
|
||||
}
|
||||
|
||||
public String getSysFlag() {
|
||||
return sysFlag;
|
||||
}
|
||||
|
||||
public void setSysFlag(String sysFlag) {
|
||||
this.sysFlag = sysFlag == null ? null : sysFlag.trim();
|
||||
}
|
||||
|
||||
public String getCreateDate() {
|
||||
return createDate;
|
||||
}
|
||||
|
||||
public void setCreateDate(String createDate) {
|
||||
this.createDate = createDate == null ? null : createDate.trim();
|
||||
}
|
||||
|
||||
public String getCreater() {
|
||||
return creater;
|
||||
}
|
||||
|
||||
public void setCreater(String creater) {
|
||||
this.creater = creater == null ? null : creater.trim();
|
||||
}
|
||||
|
||||
public String getRemark() {
|
||||
return remark;
|
||||
}
|
||||
|
||||
public void setRemark(String remark) {
|
||||
this.remark = remark == null ? null : remark.trim();
|
||||
}
|
||||
}
|
@ -0,0 +1,231 @@
|
||||
/**
|
||||
* Copyright (C), 2015-2019
|
||||
* Author: HJL
|
||||
* Date: 2019/7/24 17:40
|
||||
* Description:
|
||||
*/
|
||||
package com.emr.entity;
|
||||
|
||||
public class Emr_Log_Vo {
|
||||
private String archiveDetailId;
|
||||
|
||||
private String state;
|
||||
|
||||
private String recallReason;
|
||||
|
||||
private String inpNo;
|
||||
|
||||
private String visitId;
|
||||
|
||||
private String name;
|
||||
|
||||
private String archivestate;
|
||||
|
||||
private String startDate;
|
||||
|
||||
private String endDate;
|
||||
|
||||
private String admissionDateTime;
|
||||
|
||||
private String deptAdmissionTo;
|
||||
|
||||
private String sex;
|
||||
|
||||
private String idNo;
|
||||
|
||||
private Integer logId;
|
||||
|
||||
private String logTitle;
|
||||
|
||||
private String logContent;
|
||||
|
||||
private String ip;
|
||||
|
||||
private Integer sysId;
|
||||
|
||||
private String sysFlag;
|
||||
|
||||
private String creater;
|
||||
|
||||
private String createDate;
|
||||
|
||||
private String remark;
|
||||
|
||||
public String getArchiveDetailId() {
|
||||
return archiveDetailId;
|
||||
}
|
||||
|
||||
public void setArchiveDetailId(String archiveDetailId) {
|
||||
this.archiveDetailId = archiveDetailId == null ? null : archiveDetailId.trim();
|
||||
}
|
||||
|
||||
public String getState() {
|
||||
return state;
|
||||
}
|
||||
|
||||
public void setState(String state) {
|
||||
this.state = state == null ? null : state.trim();
|
||||
}
|
||||
|
||||
public String getRecallReason() {
|
||||
return recallReason;
|
||||
}
|
||||
|
||||
public void setRecallReason(String recallReason) {
|
||||
this.recallReason = recallReason == null ? null : recallReason.trim();
|
||||
}
|
||||
|
||||
public String getInpNo() {
|
||||
return inpNo;
|
||||
}
|
||||
|
||||
public void setInpNo(String inpNo) {
|
||||
this.inpNo = inpNo == null ? null : inpNo.trim();
|
||||
}
|
||||
|
||||
public String getVisitId() {
|
||||
return visitId;
|
||||
}
|
||||
|
||||
public void setVisitId(String visitId) {
|
||||
this.visitId = visitId == null ? null : visitId.trim();
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name == null ? null : name.trim();
|
||||
}
|
||||
|
||||
public String getArchivestate() {
|
||||
return archivestate;
|
||||
}
|
||||
|
||||
public void setArchivestate(String archivestate) {
|
||||
this.archivestate = archivestate == null ? null : archivestate.trim();
|
||||
}
|
||||
|
||||
public String getStartDate() {
|
||||
return startDate;
|
||||
}
|
||||
|
||||
public void setStartDate(String startDate) {
|
||||
this.startDate = startDate == null ? null : startDate.trim();
|
||||
}
|
||||
|
||||
public String getEndDate() {
|
||||
return endDate;
|
||||
}
|
||||
|
||||
public void setEndDate(String endDate) {
|
||||
this.endDate = endDate == null ? null : endDate.trim();
|
||||
}
|
||||
|
||||
public String getSex() {
|
||||
return sex;
|
||||
}
|
||||
|
||||
public void setSex(String sex) {
|
||||
this.sex = sex == null ? null : sex.trim();
|
||||
}
|
||||
|
||||
public String getIdNo() {
|
||||
return idNo;
|
||||
}
|
||||
|
||||
public void setIdNo(String idNo) {
|
||||
this.idNo = idNo == null ? null : idNo.trim();
|
||||
}
|
||||
|
||||
public String getAdmissionDateTime() {
|
||||
return admissionDateTime;
|
||||
}
|
||||
|
||||
public void setAdmissionDateTime(String admissionDateTime) {
|
||||
this.admissionDateTime = admissionDateTime == null ? null : admissionDateTime.trim();
|
||||
}
|
||||
|
||||
public String getDeptAdmissionTo() {
|
||||
return deptAdmissionTo;
|
||||
}
|
||||
|
||||
public void setDeptAdmissionTo(String deptAdmissionTo) {
|
||||
this.deptAdmissionTo = deptAdmissionTo == null ? null : deptAdmissionTo.trim();
|
||||
}
|
||||
|
||||
public Integer getLogId() {
|
||||
return logId;
|
||||
}
|
||||
|
||||
public void setLogId(Integer logId) {
|
||||
this.logId = logId;
|
||||
}
|
||||
|
||||
public String getLogTitle() {
|
||||
return logTitle;
|
||||
}
|
||||
|
||||
public void setLogTitle(String logTitle) {
|
||||
this.logTitle = logTitle == null ? null : logTitle.trim();
|
||||
}
|
||||
|
||||
public String getLogContent() {
|
||||
return logContent;
|
||||
}
|
||||
|
||||
public void setLogContent(String logContent) {
|
||||
this.logContent = logContent == null ? null : logContent.trim();
|
||||
}
|
||||
|
||||
public String getIp() {
|
||||
return ip;
|
||||
}
|
||||
|
||||
public void setIp(String ip) {
|
||||
this.ip = ip;
|
||||
}
|
||||
|
||||
public Integer getSysId() {
|
||||
return sysId;
|
||||
}
|
||||
|
||||
public void setSysId(Integer sysId) {
|
||||
this.sysId = sysId;
|
||||
}
|
||||
|
||||
public String getSysFlag() {
|
||||
return sysFlag;
|
||||
}
|
||||
|
||||
public void setSysFlag(String sysFlag) {
|
||||
this.sysFlag = sysFlag == null ? null : sysFlag.trim();
|
||||
}
|
||||
|
||||
public String getCreateDate() {
|
||||
return createDate;
|
||||
}
|
||||
|
||||
public void setCreateDate(String createDate) {
|
||||
this.createDate = createDate == null ? null : createDate.trim();
|
||||
}
|
||||
|
||||
public String getCreater() {
|
||||
return creater;
|
||||
}
|
||||
|
||||
public void setCreater(String creater) {
|
||||
this.creater = creater == null ? null : creater.trim();
|
||||
}
|
||||
|
||||
public String getRemark() {
|
||||
return remark;
|
||||
}
|
||||
|
||||
public void setRemark(String remark) {
|
||||
this.remark = remark == null ? null : remark.trim();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -0,0 +1,153 @@
|
||||
package com.emr.entity;
|
||||
|
||||
public class Emr_Picture {
|
||||
private String id;
|
||||
|
||||
private String relationId;
|
||||
|
||||
private String assortId;
|
||||
|
||||
private Integer parentId;
|
||||
|
||||
private String typeFlag;
|
||||
|
||||
private String typeName;
|
||||
|
||||
private String minPicture;
|
||||
|
||||
private String maxPicture;
|
||||
|
||||
private Integer pictureSort;
|
||||
|
||||
private Integer effective;
|
||||
|
||||
private String creater;
|
||||
|
||||
private String createTime;
|
||||
|
||||
private String updater;
|
||||
|
||||
private String updateTime;
|
||||
|
||||
private String remark;
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id == null ? null : id.trim();
|
||||
}
|
||||
|
||||
public String getRelationId() {
|
||||
return relationId;
|
||||
}
|
||||
|
||||
public void setRelationId(String relationId) {
|
||||
this.relationId = relationId == null ? null : relationId.trim();
|
||||
}
|
||||
|
||||
public String getAssortId() {
|
||||
return assortId;
|
||||
}
|
||||
|
||||
public void setAssortId(String assortId) {
|
||||
this.assortId = assortId == null ? null : assortId.trim();
|
||||
}
|
||||
|
||||
public Integer getParentId() {
|
||||
return parentId;
|
||||
}
|
||||
|
||||
public void setParentId(Integer parentId) {
|
||||
this.parentId = parentId;
|
||||
}
|
||||
|
||||
public String getTypeFlag() {
|
||||
return typeFlag;
|
||||
}
|
||||
|
||||
public void setTypeFlag(String typeFlag) {
|
||||
this.typeFlag = typeFlag == null ? null : typeFlag.trim();
|
||||
}
|
||||
|
||||
public String getTypeName() {
|
||||
return typeName;
|
||||
}
|
||||
|
||||
public void setTypeName(String typeName) {
|
||||
this.typeName = typeName == null ? null : typeName.trim();
|
||||
}
|
||||
|
||||
public String getMinPicture() {
|
||||
return minPicture;
|
||||
}
|
||||
|
||||
public void setMinPicture(String minPicture) {
|
||||
this.minPicture = minPicture == null ? null : minPicture.trim();
|
||||
}
|
||||
|
||||
public String getMaxPicture() {
|
||||
return maxPicture;
|
||||
}
|
||||
|
||||
public void setMaxPicture(String maxPicture) {
|
||||
this.maxPicture = maxPicture == null ? null : maxPicture.trim();
|
||||
}
|
||||
|
||||
public Integer getPictureSort() {
|
||||
return pictureSort;
|
||||
}
|
||||
|
||||
public void setPictureSort(Integer pictureSort) {
|
||||
this.pictureSort = pictureSort;
|
||||
}
|
||||
|
||||
public Integer getEffective() {
|
||||
return effective;
|
||||
}
|
||||
|
||||
public void setEffective(Integer effective) {
|
||||
this.effective = effective;
|
||||
}
|
||||
|
||||
public String getCreater() {
|
||||
return creater;
|
||||
}
|
||||
|
||||
public void setCreater(String creater) {
|
||||
this.creater = creater == null ? null : creater.trim();
|
||||
}
|
||||
|
||||
public String getCreateTime() {
|
||||
return createTime;
|
||||
}
|
||||
|
||||
public void setCreateTime(String createTime) {
|
||||
this.createTime = createTime == null ? null : createTime.trim();
|
||||
}
|
||||
|
||||
public String getUpdater() {
|
||||
return updater;
|
||||
}
|
||||
|
||||
public void setUpdater(String updater) {
|
||||
this.updater = updater == null ? null : updater.trim();
|
||||
}
|
||||
|
||||
public String getUpdateTime() {
|
||||
return updateTime;
|
||||
}
|
||||
|
||||
public void setUpdateTime(String updateTime) {
|
||||
this.updateTime = updateTime == null ? null : updateTime.trim();
|
||||
}
|
||||
|
||||
public String getRemark() {
|
||||
return remark;
|
||||
}
|
||||
|
||||
public void setRemark(String remark) {
|
||||
this.remark = remark == null ? null : remark.trim();
|
||||
}
|
||||
}
|
@ -0,0 +1,32 @@
|
||||
/**
|
||||
* Copyright (C), 2015-2019
|
||||
* Author: HJL
|
||||
* Date: 2019/8/2 18:13
|
||||
* Description:文件实体
|
||||
*/
|
||||
package com.emr.entity;
|
||||
|
||||
public class File_Vo {
|
||||
//文件地址
|
||||
private String fileSrc;
|
||||
//文件类别
|
||||
private String selectVal;
|
||||
|
||||
public String getFileSrc() {
|
||||
return fileSrc;
|
||||
}
|
||||
|
||||
public void setFileSrc(String fileSrc) {
|
||||
this.fileSrc = fileSrc == null ? null : fileSrc.trim();
|
||||
}
|
||||
|
||||
public String getSelectVal() {
|
||||
return selectVal;
|
||||
}
|
||||
|
||||
public void setSelectVal(String selectVal) {
|
||||
this.selectVal = selectVal == null ? null : selectVal.trim();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -0,0 +1,47 @@
|
||||
/**
|
||||
* Copyright (C), 2015-2019
|
||||
* Author: HJL
|
||||
* Date: 2019/7/19 19:49
|
||||
* Description:
|
||||
*/
|
||||
package com.emr.entity;
|
||||
|
||||
import com.github.pagehelper.Page;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class OffsetLimitPage {
|
||||
private Long total;
|
||||
private List rows;
|
||||
|
||||
public Long getTotal() {
|
||||
return total;
|
||||
}
|
||||
|
||||
public void setTotal(Long total) {
|
||||
this.total = total;
|
||||
}
|
||||
|
||||
public List getRows() {
|
||||
return rows;
|
||||
}
|
||||
|
||||
public void setRows(List rows) {
|
||||
this.rows = rows;
|
||||
}
|
||||
|
||||
public OffsetLimitPage() {
|
||||
|
||||
}
|
||||
|
||||
public OffsetLimitPage(List rows, Long total) {
|
||||
this.rows = rows;
|
||||
this.total = total;
|
||||
}
|
||||
|
||||
public OffsetLimitPage(Page rows) {
|
||||
this(rows, rows.getTotal());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -0,0 +1,195 @@
|
||||
/**
|
||||
* Copyright (C), 2015-2019
|
||||
* Author: HJL
|
||||
* Date: 2019/8/22 13:48
|
||||
* Description:
|
||||
*/
|
||||
package com.emr.entity;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
public class Power_User {
|
||||
/**
|
||||
* 用户id
|
||||
*/
|
||||
private Integer userId;
|
||||
/**
|
||||
* 用户名
|
||||
*/
|
||||
private String userName;
|
||||
/**
|
||||
* 性别1为女0为男
|
||||
*/
|
||||
private Integer userSex;
|
||||
/**
|
||||
* 年龄
|
||||
*/
|
||||
private Integer userAge;
|
||||
/**
|
||||
* 手机号
|
||||
*/
|
||||
private String userTel;
|
||||
/**
|
||||
* 电子邮件
|
||||
*/
|
||||
private String userEmail;
|
||||
/**
|
||||
* 职位
|
||||
*/
|
||||
private String userPosition;
|
||||
/**
|
||||
* 角色id
|
||||
*/
|
||||
private Integer roleId;
|
||||
/**
|
||||
* 是否有效
|
||||
*/
|
||||
private Integer effective;
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private String createDate;
|
||||
/**
|
||||
* 创建者
|
||||
*/
|
||||
private String creater;
|
||||
/**
|
||||
* 修改时间
|
||||
*/
|
||||
private String updateDate;
|
||||
/**
|
||||
* 修改者
|
||||
*/
|
||||
private String updater;
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
private String remark;
|
||||
/**
|
||||
* 菜单以及功能权限标识集合
|
||||
*/
|
||||
private Set<String> menus;
|
||||
|
||||
public Integer getUserId() {
|
||||
return userId;
|
||||
}
|
||||
|
||||
public void setUserId(Integer userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public String getUserName() {
|
||||
return userName;
|
||||
}
|
||||
|
||||
public void setUserName(String userName) {
|
||||
this.userName = userName;
|
||||
}
|
||||
|
||||
public Integer getUserSex() {
|
||||
return userSex;
|
||||
}
|
||||
|
||||
public void setUserSex(Integer userSex) {
|
||||
this.userSex = userSex;
|
||||
}
|
||||
|
||||
public Integer getUserAge() {
|
||||
return userAge;
|
||||
}
|
||||
|
||||
public void setUserAge(Integer userAge) {
|
||||
this.userAge = userAge;
|
||||
}
|
||||
|
||||
public String getUserTel() {
|
||||
return userTel;
|
||||
}
|
||||
|
||||
public void setUserTel(String userTel) {
|
||||
this.userTel = userTel;
|
||||
}
|
||||
|
||||
public String getUserEmail() {
|
||||
return userEmail;
|
||||
}
|
||||
|
||||
public void setUserEmail(String userEmail) {
|
||||
this.userEmail = userEmail;
|
||||
}
|
||||
|
||||
public String getUserPosition() {
|
||||
return userPosition;
|
||||
}
|
||||
|
||||
public void setUserPosition(String userPosition) {
|
||||
this.userPosition = userPosition;
|
||||
}
|
||||
|
||||
public Integer getRoleId() {
|
||||
return roleId;
|
||||
}
|
||||
|
||||
public void setRoleId(Integer roleId) {
|
||||
this.roleId = roleId;
|
||||
}
|
||||
|
||||
public Integer getEffective() {
|
||||
return effective;
|
||||
}
|
||||
|
||||
public void setEffective(Integer effective) {
|
||||
this.effective = effective;
|
||||
}
|
||||
|
||||
public String getCreateDate() {
|
||||
return createDate;
|
||||
}
|
||||
|
||||
public void setCreateDate(String createDate) {
|
||||
this.createDate = createDate;
|
||||
}
|
||||
|
||||
public String getCreater() {
|
||||
return creater;
|
||||
}
|
||||
|
||||
public void setCreater(String creater) {
|
||||
this.creater = creater;
|
||||
}
|
||||
|
||||
public String getUpdateDate() {
|
||||
return updateDate;
|
||||
}
|
||||
|
||||
public void setUpdateDate(String updateDate) {
|
||||
this.updateDate = updateDate;
|
||||
}
|
||||
|
||||
public String getUpdater() {
|
||||
return updater;
|
||||
}
|
||||
|
||||
public void setUpdater(String updater) {
|
||||
this.updater = updater;
|
||||
}
|
||||
|
||||
public String getRemark() {
|
||||
return remark;
|
||||
}
|
||||
|
||||
public void setRemark(String remark) {
|
||||
this.remark = remark;
|
||||
}
|
||||
|
||||
public Set<String> getMenus() {
|
||||
return menus;
|
||||
}
|
||||
|
||||
public void setMenus(Set<String> menus) {
|
||||
this.menus = menus;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
@ -0,0 +1,30 @@
|
||||
/**
|
||||
* Copyright (C), 2015-2019
|
||||
* Author: HJL
|
||||
* Date: 2019/11/11 11:45
|
||||
* Description:
|
||||
*/
|
||||
package com.emr.entity;
|
||||
|
||||
public class ReturnAsmx {
|
||||
private String resultCode;
|
||||
private String resultDesc;
|
||||
|
||||
public String getResultCode() {
|
||||
return resultCode;
|
||||
}
|
||||
|
||||
public void setResultCode(String resultCode) {
|
||||
this.resultCode = resultCode;
|
||||
}
|
||||
|
||||
public String getResultDesc() {
|
||||
return resultDesc;
|
||||
}
|
||||
|
||||
public void setResultDesc(String resultDesc) {
|
||||
this.resultDesc = resultDesc;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -0,0 +1,39 @@
|
||||
package com.emr.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class TPrintinfo implements Serializable {
|
||||
private String patientId;
|
||||
|
||||
private String isprint;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public String getPatientId() {
|
||||
return patientId;
|
||||
}
|
||||
|
||||
public void setPatientId(String patientId) {
|
||||
this.patientId = patientId == null ? null : patientId.trim();
|
||||
}
|
||||
|
||||
public String getIsprint() {
|
||||
return isprint;
|
||||
}
|
||||
|
||||
public void setIsprint(String isprint) {
|
||||
this.isprint = isprint == null ? null : isprint.trim();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append(getClass().getSimpleName());
|
||||
sb.append(" [");
|
||||
sb.append("Hash = ").append(hashCode());
|
||||
sb.append(", patientId=").append(patientId);
|
||||
sb.append(", isprint=").append(isprint);
|
||||
sb.append("]");
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,153 @@
|
||||
package com.emr.entity;
|
||||
|
||||
public class TUuInfo {
|
||||
private String patientId;
|
||||
|
||||
private String inpNo;
|
||||
|
||||
private String visitId;
|
||||
|
||||
private String hzname;
|
||||
|
||||
private String sex;
|
||||
|
||||
private String dischargeDateTime;
|
||||
|
||||
private String admissionDateTime;
|
||||
|
||||
private String deptName;
|
||||
|
||||
private String doctorDept;
|
||||
|
||||
private String checkedDoctor;
|
||||
|
||||
private String checkedDatetime;
|
||||
|
||||
private String doctorInCharge;
|
||||
|
||||
private String sys;
|
||||
|
||||
private String uuname;
|
||||
|
||||
private String uploaddatetime;
|
||||
|
||||
public String getPatientId() {
|
||||
return patientId;
|
||||
}
|
||||
|
||||
public void setPatientId(String patientId) {
|
||||
this.patientId = patientId == null ? null : patientId.trim();
|
||||
}
|
||||
|
||||
public String getInpNo() {
|
||||
return inpNo;
|
||||
}
|
||||
|
||||
public void setInpNo(String inpNo) {
|
||||
this.inpNo = inpNo == null ? null : inpNo.trim();
|
||||
}
|
||||
|
||||
public String getVisitId() {
|
||||
return visitId;
|
||||
}
|
||||
|
||||
public void setVisitId(String visitId) {
|
||||
this.visitId = visitId == null ? null : visitId.trim();
|
||||
}
|
||||
|
||||
public String getHzname() {
|
||||
return hzname;
|
||||
}
|
||||
|
||||
public void setHzname(String hzname) {
|
||||
this.hzname = hzname == null ? null : hzname.trim();
|
||||
}
|
||||
|
||||
public String getSex() {
|
||||
return sex;
|
||||
}
|
||||
|
||||
public void setSex(String sex) {
|
||||
this.sex = sex == null ? null : sex.trim();
|
||||
}
|
||||
|
||||
public String getDischargeDateTime() {
|
||||
return dischargeDateTime;
|
||||
}
|
||||
|
||||
public void setDischargeDateTime(String dischargeDateTime) {
|
||||
this.dischargeDateTime = dischargeDateTime == null ? null : dischargeDateTime.trim();
|
||||
}
|
||||
|
||||
public String getAdmissionDateTime() {
|
||||
return admissionDateTime;
|
||||
}
|
||||
|
||||
public void setAdmissionDateTime(String admissionDateTime) {
|
||||
this.admissionDateTime = admissionDateTime == null ? null : admissionDateTime.trim();
|
||||
}
|
||||
|
||||
public String getDeptName() {
|
||||
return deptName;
|
||||
}
|
||||
|
||||
public void setDeptName(String deptName) {
|
||||
this.deptName = deptName == null ? null : deptName.trim();
|
||||
}
|
||||
|
||||
public String getDoctorDept() {
|
||||
return doctorDept;
|
||||
}
|
||||
|
||||
public void setDoctorDept(String doctorDept) {
|
||||
this.doctorDept = doctorDept == null ? null : doctorDept.trim();
|
||||
}
|
||||
|
||||
public String getCheckedDoctor() {
|
||||
return checkedDoctor;
|
||||
}
|
||||
|
||||
public void setCheckedDoctor(String checkedDoctor) {
|
||||
this.checkedDoctor = checkedDoctor == null ? null : checkedDoctor.trim();
|
||||
}
|
||||
|
||||
public String getCheckedDatetime() {
|
||||
return checkedDatetime;
|
||||
}
|
||||
|
||||
public void setCheckedDatetime(String checkedDatetime) {
|
||||
this.checkedDatetime = checkedDatetime == null ? null : checkedDatetime.trim();
|
||||
}
|
||||
|
||||
public String getDoctorInCharge() {
|
||||
return doctorInCharge;
|
||||
}
|
||||
|
||||
public void setDoctorInCharge(String doctorInCharge) {
|
||||
this.doctorInCharge = doctorInCharge == null ? null : doctorInCharge.trim();
|
||||
}
|
||||
|
||||
public String getSys() {
|
||||
return sys;
|
||||
}
|
||||
|
||||
public void setSys(String sys) {
|
||||
this.sys = sys == null ? null : sys.trim();
|
||||
}
|
||||
|
||||
public String getUuname() {
|
||||
return uuname;
|
||||
}
|
||||
|
||||
public void setUuname(String uuname) {
|
||||
this.uuname = uuname == null ? null : uuname.trim();
|
||||
}
|
||||
|
||||
public String getUploaddatetime() {
|
||||
return uploaddatetime;
|
||||
}
|
||||
|
||||
public void setUploaddatetime(String uploaddatetime) {
|
||||
this.uploaddatetime = uploaddatetime == null ? null : uploaddatetime.trim();
|
||||
}
|
||||
}
|
@ -0,0 +1,135 @@
|
||||
package com.emr.entity;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
public class TUuPrint {
|
||||
private String patientId;
|
||||
|
||||
private String inpNo;
|
||||
|
||||
private String visitId;
|
||||
|
||||
private String hzname;
|
||||
|
||||
private String sex;
|
||||
|
||||
private String admissionDateTime;
|
||||
|
||||
private String dischargeDateTime;
|
||||
|
||||
private String name;
|
||||
|
||||
private String doctorInCharge;
|
||||
|
||||
private String filetitle;
|
||||
|
||||
private String cpyuser;
|
||||
|
||||
private Date cpytime;
|
||||
|
||||
private Integer flag;
|
||||
|
||||
public String getPatientId() {
|
||||
return patientId;
|
||||
}
|
||||
|
||||
public void setPatientId(String patientId) {
|
||||
this.patientId = patientId == null ? null : patientId.trim();
|
||||
}
|
||||
|
||||
public String getInpNo() {
|
||||
return inpNo;
|
||||
}
|
||||
|
||||
public void setInpNo(String inpNo) {
|
||||
this.inpNo = inpNo == null ? null : inpNo.trim();
|
||||
}
|
||||
|
||||
public String getVisitId() {
|
||||
return visitId;
|
||||
}
|
||||
|
||||
public void setVisitId(String visitId) {
|
||||
this.visitId = visitId == null ? null : visitId.trim();
|
||||
}
|
||||
|
||||
public String getHzname() {
|
||||
return hzname;
|
||||
}
|
||||
|
||||
public void setHzname(String hzname) {
|
||||
this.hzname = hzname == null ? null : hzname.trim();
|
||||
}
|
||||
|
||||
public String getSex() {
|
||||
return sex;
|
||||
}
|
||||
|
||||
public void setSex(String sex) {
|
||||
this.sex = sex == null ? null : sex.trim();
|
||||
}
|
||||
|
||||
public String getAdmissionDateTime() {
|
||||
return admissionDateTime;
|
||||
}
|
||||
|
||||
public void setAdmissionDateTime(String admissionDateTime) {
|
||||
this.admissionDateTime = admissionDateTime == null ? null : admissionDateTime.trim();
|
||||
}
|
||||
|
||||
public String getDischargeDateTime() {
|
||||
return dischargeDateTime;
|
||||
}
|
||||
|
||||
public void setDischargeDateTime(String dischargeDateTime) {
|
||||
this.dischargeDateTime = dischargeDateTime == null ? null : dischargeDateTime.trim();
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name == null ? null : name.trim();
|
||||
}
|
||||
|
||||
public String getDoctorInCharge() {
|
||||
return doctorInCharge;
|
||||
}
|
||||
|
||||
public void setDoctorInCharge(String doctorInCharge) {
|
||||
this.doctorInCharge = doctorInCharge == null ? null : doctorInCharge.trim();
|
||||
}
|
||||
|
||||
public String getFiletitle() {
|
||||
return filetitle;
|
||||
}
|
||||
|
||||
public void setFiletitle(String filetitle) {
|
||||
this.filetitle = filetitle == null ? null : filetitle.trim();
|
||||
}
|
||||
|
||||
public String getCpyuser() {
|
||||
return cpyuser;
|
||||
}
|
||||
|
||||
public void setCpyuser(String cpyuser) {
|
||||
this.cpyuser = cpyuser == null ? null : cpyuser.trim();
|
||||
}
|
||||
|
||||
public Date getCpytime() {
|
||||
return cpytime;
|
||||
}
|
||||
|
||||
public void setCpytime(Date cpytime) {
|
||||
this.cpytime = cpytime;
|
||||
}
|
||||
|
||||
public Integer getFlag() {
|
||||
return flag;
|
||||
}
|
||||
|
||||
public void setFlag(Integer flag) {
|
||||
this.flag = flag;
|
||||
}
|
||||
}
|
@ -0,0 +1,33 @@
|
||||
/**
|
||||
* Copyright (C), 2015-2019
|
||||
* Author: HJL
|
||||
* Date: 2019/8/2 18:09
|
||||
* Description:上传文件实体
|
||||
*/
|
||||
package com.emr.entity;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class Upload_File_Vo {
|
||||
private String masterID;
|
||||
|
||||
private List<File_Vo> list;
|
||||
|
||||
public String getMasterID() {
|
||||
return masterID;
|
||||
}
|
||||
|
||||
public void setMasterID(String masterID) {
|
||||
this.masterID = masterID == null ? null : masterID.trim();
|
||||
}
|
||||
|
||||
public List<File_Vo> getList() {
|
||||
return list;
|
||||
}
|
||||
|
||||
public void setList(List<File_Vo> list) {
|
||||
this.list = list;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -0,0 +1,142 @@
|
||||
/**
|
||||
* Copyright (C), 2015-2019
|
||||
* Author: HJL
|
||||
* Date: 2019/9/2 14:22
|
||||
* Description:统计
|
||||
*/
|
||||
package com.emr.entity;
|
||||
|
||||
public class V_Count {
|
||||
private String deptCode;
|
||||
|
||||
private String deptName;
|
||||
|
||||
private Integer inNum;
|
||||
|
||||
private Integer outNum;
|
||||
|
||||
private Integer fileNum;
|
||||
|
||||
private Integer unfileNum;
|
||||
|
||||
private Integer deathNum;
|
||||
|
||||
private String fileRate;
|
||||
|
||||
private String day2Rate;
|
||||
|
||||
private String day3Rate;
|
||||
|
||||
private String day7Rate;
|
||||
|
||||
private String startDate;
|
||||
|
||||
private String endDate;
|
||||
|
||||
|
||||
public String getDeptCode() {
|
||||
return deptCode;
|
||||
}
|
||||
|
||||
public void setDeptCode(String deptCode) {
|
||||
this.deptCode = deptCode;
|
||||
}
|
||||
|
||||
public String getDeptName() {
|
||||
return deptName;
|
||||
}
|
||||
|
||||
public void setDeptName(String deptName) {
|
||||
this.deptName = deptName;
|
||||
}
|
||||
|
||||
public Integer getInNum() {
|
||||
return inNum;
|
||||
}
|
||||
|
||||
public void setInNum(Integer inNum) {
|
||||
this.inNum = inNum;
|
||||
}
|
||||
|
||||
public Integer getOutNum() {
|
||||
return outNum;
|
||||
}
|
||||
|
||||
public void setOutNum(Integer outNum) {
|
||||
this.outNum = outNum;
|
||||
}
|
||||
|
||||
public Integer getFileNum() {
|
||||
return fileNum;
|
||||
}
|
||||
|
||||
public void setFileNum(Integer fileNum) {
|
||||
this.fileNum = fileNum;
|
||||
}
|
||||
|
||||
public Integer getUnfileNum() {
|
||||
return unfileNum;
|
||||
}
|
||||
|
||||
public void setUnfileNum(Integer unfileNum) {
|
||||
this.unfileNum = unfileNum;
|
||||
}
|
||||
|
||||
public Integer getDeathNum() {
|
||||
return deathNum;
|
||||
}
|
||||
|
||||
public void setDeathNum(Integer deathNum) {
|
||||
this.deathNum = deathNum;
|
||||
}
|
||||
|
||||
public String getFileRate() {
|
||||
return fileRate;
|
||||
}
|
||||
|
||||
public void setFileRate(String fileRate) {
|
||||
this.fileRate = fileRate;
|
||||
}
|
||||
|
||||
public String getDay2Rate() {
|
||||
return day2Rate;
|
||||
}
|
||||
|
||||
public void setDay2Rate(String day2Rate) {
|
||||
this.day2Rate = day2Rate;
|
||||
}
|
||||
|
||||
public String getDay3Rate() {
|
||||
return day3Rate;
|
||||
}
|
||||
|
||||
public void setDay3Rate(String day3Rate) {
|
||||
this.day3Rate = day3Rate;
|
||||
}
|
||||
|
||||
public String getDay7Rate() {
|
||||
return day7Rate;
|
||||
}
|
||||
|
||||
public void setDay7Rate(String day7Rate) {
|
||||
this.day7Rate = day7Rate;
|
||||
}
|
||||
|
||||
public String getStartDate() {
|
||||
return startDate;
|
||||
}
|
||||
|
||||
public void setStartDate(String startDate) {
|
||||
this.startDate = startDate;
|
||||
}
|
||||
|
||||
public String getEndDate() {
|
||||
return endDate;
|
||||
}
|
||||
|
||||
public void setEndDate(String endDate) {
|
||||
this.endDate = endDate;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -0,0 +1,43 @@
|
||||
package com.emr.entity;
|
||||
|
||||
public class Zd_Assort {
|
||||
private String assortId;
|
||||
|
||||
private String assortName;
|
||||
|
||||
private Short assortSort;
|
||||
|
||||
private String printFlag;
|
||||
|
||||
public String getAssortId() {
|
||||
return assortId;
|
||||
}
|
||||
|
||||
public void setAssortId(String assortId) {
|
||||
this.assortId = assortId == null ? null : assortId.trim();
|
||||
}
|
||||
|
||||
public String getAssortName() {
|
||||
return assortName;
|
||||
}
|
||||
|
||||
public void setAssortName(String assortName) {
|
||||
this.assortName = assortName == null ? null : assortName.trim();
|
||||
}
|
||||
|
||||
public Short getAssortSort() {
|
||||
return assortSort;
|
||||
}
|
||||
|
||||
public void setAssortSort(Short assortSort) {
|
||||
this.assortSort = assortSort;
|
||||
}
|
||||
|
||||
public String getPrintFlag() {
|
||||
return printFlag;
|
||||
}
|
||||
|
||||
public void setPrintFlag(String printFlag) {
|
||||
this.printFlag = printFlag == null ? null : printFlag.trim();
|
||||
}
|
||||
}
|
@ -0,0 +1,87 @@
|
||||
/**
|
||||
* Copyright (C), 2015-2019
|
||||
* Author: HJL
|
||||
* Date: 2019/7/19 15:27
|
||||
* Description:病历文件信息表
|
||||
*/
|
||||
package com.emr.service;
|
||||
|
||||
import com.emr.entity.Archive_Detail;
|
||||
import com.emr.entity.Archive_Detail_Vo;
|
||||
import com.emr.entity.OffsetLimitPage;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.List;
|
||||
|
||||
public interface Archive_DetailService {
|
||||
/**
|
||||
* 根据条件查询分段目录
|
||||
*
|
||||
* @param record
|
||||
* @return
|
||||
*/
|
||||
List<Archive_Detail_Vo> selectByClo(Archive_Detail_Vo record);
|
||||
|
||||
/**
|
||||
* 根据条件查询分段详情列表分页
|
||||
*
|
||||
* @param record
|
||||
* @return
|
||||
*/
|
||||
OffsetLimitPage detailByClo(Archive_Detail_Vo record, Integer offset, Integer limit);
|
||||
|
||||
/**
|
||||
* 根据条件修改分段信息
|
||||
*
|
||||
* @param record
|
||||
* @return
|
||||
*/
|
||||
int updateCloById(Archive_Detail record);
|
||||
|
||||
/**
|
||||
* 根据条件插入分段信息
|
||||
* @param record
|
||||
* @return
|
||||
*/
|
||||
int insertSel(Archive_Detail record);
|
||||
|
||||
/**
|
||||
* 根据id查找分段信息
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
Archive_Detail selectByid(String id);
|
||||
|
||||
/**
|
||||
* 根据病案号+类别删除记录
|
||||
* @param record
|
||||
* @return
|
||||
*/
|
||||
int deleteByClo(Archive_Detail record);
|
||||
|
||||
/**
|
||||
* 根据条件查询记录
|
||||
* @param record
|
||||
* @return
|
||||
*/
|
||||
List<Archive_Detail> selectByColm(Archive_Detail record);
|
||||
|
||||
List<Archive_Detail> selectByCol(Archive_Detail record);
|
||||
|
||||
/**
|
||||
* 根据多个id合成字符串条件查询记录
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
List<Archive_Detail> selectByIdStr(Archive_Detail record);
|
||||
|
||||
void getPdfToPdf(HttpServletResponse response,String imgStr,String masterId,String pdfWater);
|
||||
|
||||
List<Archive_Detail> selectTypeTreeByPatientIdAndAssortIds(String patientId,String assortIds);
|
||||
|
||||
void selectPdfPathByIds(HttpServletResponse response, String detailIds, String masterId,String pdfWater);
|
||||
}
|
||||
|
||||
|
@ -0,0 +1,127 @@
|
||||
/**
|
||||
* Copyright (C), 2015-2019
|
||||
* Author: HJL
|
||||
* Date: 2019/7/19 15:27
|
||||
* Description:患者住院信息主索引表
|
||||
*/
|
||||
package com.emr.service;
|
||||
|
||||
import com.emr.entity.Archive_Master;
|
||||
import com.emr.entity.Archive_Master_Vo;
|
||||
import com.emr.entity.Emr_Fault_Detail_Vo;
|
||||
import com.emr.entity.OffsetLimitPage;
|
||||
import com.emr.util.Msg;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
public interface Archive_MasterService {
|
||||
/**
|
||||
* 根据条件查找病案在院列表分页
|
||||
* @param archiveMasterVo
|
||||
* @return
|
||||
*/
|
||||
OffsetLimitPage selectByCol(Archive_Master_Vo archiveMasterVo, Integer offset, Integer limit);
|
||||
|
||||
/**
|
||||
* 根据条件查找在院病案列表
|
||||
* @param archiveMasterVo
|
||||
* @return
|
||||
*/
|
||||
List<Archive_Master> selectByCol(Archive_Master_Vo archiveMasterVo);
|
||||
|
||||
/**
|
||||
* 根据条件查找病案终审列表分页
|
||||
*
|
||||
* @param archiveMasterVo
|
||||
* @return
|
||||
*/
|
||||
List<Archive_Master_Vo> selectByLast(Archive_Master_Vo archiveMasterVo);
|
||||
|
||||
/**
|
||||
* 根据条件查找'归档中','复审退回'病案列表
|
||||
*
|
||||
* @param archiveMasterVo
|
||||
* @return
|
||||
*/
|
||||
List<Archive_Master_Vo> selectByColumn(Archive_Master_Vo archiveMasterVo);
|
||||
|
||||
|
||||
/**
|
||||
* 根据条件查找病案未归档列表分页
|
||||
*
|
||||
* @param archiveMasterVo
|
||||
* @return
|
||||
*/
|
||||
List<Archive_Master_Vo> selectByUnfile(Archive_Master_Vo archiveMasterVo);
|
||||
/**
|
||||
* 根据条件查找病案'归档中','审核退回'列表分页
|
||||
*
|
||||
* @param archiveMasterVo
|
||||
* @return
|
||||
*/
|
||||
OffsetLimitPage selectByColumn(Archive_Master_Vo archiveMasterVo, Integer offset, Integer limit);
|
||||
|
||||
|
||||
/**
|
||||
* 根据条件查找未归档列表分页
|
||||
*
|
||||
* @param archiveMasterVo
|
||||
* @return
|
||||
*/
|
||||
OffsetLimitPage selectByUnfile(Archive_Master_Vo archiveMasterVo, Integer offset, Integer limit);
|
||||
|
||||
/**
|
||||
* 根据条件查找病案终审列表分页
|
||||
*
|
||||
* @param archiveMasterVo
|
||||
* @return
|
||||
*/
|
||||
OffsetLimitPage selectByLast(Archive_Master_Vo archiveMasterVo, Integer offset, Integer limit);
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 根据条件查询记录
|
||||
* @param record
|
||||
* @return
|
||||
*/
|
||||
int updateByClo(Archive_Master record);
|
||||
|
||||
/**
|
||||
* 根据id修改记录
|
||||
* @param record
|
||||
* @return
|
||||
*/
|
||||
int updateById(Archive_Master record);
|
||||
/**
|
||||
* 根据id查询记录
|
||||
* @param
|
||||
* @return
|
||||
*/
|
||||
Archive_Master selectByPrimaryKey(String id);
|
||||
|
||||
int updateReturn(Emr_Fault_Detail_Vo emrFaultDetail) throws Exception;
|
||||
|
||||
List<Archive_Master> selectByObject(Archive_Master master);
|
||||
|
||||
/**
|
||||
* 初审
|
||||
* */
|
||||
Msg updateStateByArchivId(Archive_Master_Vo master) throws Exception;
|
||||
|
||||
/**
|
||||
* 查询已归档记录
|
||||
* */
|
||||
OffsetLimitPage selectFiled(Archive_Master_Vo master,Integer offset, Integer limit);
|
||||
/**
|
||||
* 已归档操作
|
||||
* */
|
||||
void updateFiled(Archive_Master_Vo master) throws Exception;
|
||||
|
||||
Msg getRole();
|
||||
|
||||
List<Archive_Master_Vo> selectLastVerifyList(Archive_Master_Vo archiveMasterVo);
|
||||
}
|
||||
|
||||
|
@ -0,0 +1,13 @@
|
||||
/**
|
||||
* Copyright (C), 2015-2019
|
||||
* Author: HJL
|
||||
* Date: 2019/7/19 15:27
|
||||
* Description:病历文件归类表
|
||||
*/
|
||||
package com.emr.service;
|
||||
|
||||
public interface Emr_Archive_DetailService {
|
||||
|
||||
}
|
||||
|
||||
|
@ -0,0 +1,47 @@
|
||||
package com.emr.service;
|
||||
|
||||
import com.emr.entity.Emr_Dictionary;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface Emr_DictionaryService {
|
||||
/**
|
||||
* 根据类型代码查找字典列表
|
||||
*
|
||||
* @param emrDictionary
|
||||
* @return
|
||||
*/
|
||||
List<Emr_Dictionary> dicByTypeCode(Emr_Dictionary emrDictionary);
|
||||
|
||||
/**
|
||||
* 根据字段查找字典列表
|
||||
*
|
||||
* @param emrDictionary
|
||||
* @return
|
||||
*/
|
||||
List<Emr_Dictionary> dicByClo(Emr_Dictionary emrDictionary);
|
||||
|
||||
/**
|
||||
* 根据字段查找记录
|
||||
*
|
||||
* @param emrDictionary
|
||||
* @return
|
||||
*/
|
||||
int insertSel(Emr_Dictionary emrDictionary);
|
||||
|
||||
/**
|
||||
* 根据id删除记录
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
int delById(Integer id);
|
||||
|
||||
/**
|
||||
* 根据id修改记录
|
||||
*
|
||||
* @param emrDictionary
|
||||
* @return
|
||||
*/
|
||||
int updateCloById(Emr_Dictionary emrDictionary);
|
||||
}
|
@ -0,0 +1,54 @@
|
||||
/**
|
||||
* Copyright (C), 2015-2019
|
||||
* Author: HJL
|
||||
* Date: 2019/7/19 15:27
|
||||
* Description:缺陷或不通过审批表
|
||||
*/
|
||||
package com.emr.service;
|
||||
|
||||
import com.emr.entity.Emr_Fault_Detail;
|
||||
import com.emr.entity.Emr_Fault_Vo;
|
||||
import com.emr.entity.OffsetLimitPage;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface Emr_Fault_DetailService {
|
||||
/**
|
||||
* 根据查询条件分页查询
|
||||
* @param emrFaultVo
|
||||
* @param offset
|
||||
* @param limit
|
||||
* @return
|
||||
*/
|
||||
OffsetLimitPage selectByCol(Emr_Fault_Vo emrFaultVo, Integer offset, Integer limit);
|
||||
|
||||
/**
|
||||
* 根据查询条件导出
|
||||
* @param emrFaultVo
|
||||
* @return
|
||||
*/
|
||||
List<Emr_Fault_Vo> selectByCol(Emr_Fault_Vo emrFaultVo);
|
||||
|
||||
/**
|
||||
* 根据id修改相应的字段
|
||||
* @param emrFaultDetail
|
||||
* @return
|
||||
*/
|
||||
int updateCloByPrimaryKey(Emr_Fault_Detail emrFaultDetail);
|
||||
|
||||
/**
|
||||
* 根据病案号查询缺陷退回审核内容
|
||||
* @param record
|
||||
* @return
|
||||
*/
|
||||
Emr_Fault_Detail selectByArchiveDetailId(Emr_Fault_Detail record);
|
||||
|
||||
/**
|
||||
* 插入缺陷退回审核内容
|
||||
* @param record
|
||||
* @return
|
||||
*/
|
||||
int insertSel(Emr_Fault_Detail record);
|
||||
}
|
||||
|
||||
|
@ -0,0 +1,53 @@
|
||||
/**
|
||||
* Copyright (C), 2015-2019
|
||||
* Author: HJL
|
||||
* Date: 2019/7/19 15:35
|
||||
* Description:缺陷类别表
|
||||
*/
|
||||
package com.emr.service;
|
||||
|
||||
import com.emr.entity.Emr_Fault_Type;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface Emr_Fault_TypeService {
|
||||
/**
|
||||
* 根据条件查询所有缺陷类别列表
|
||||
* @param record
|
||||
* @return
|
||||
*/
|
||||
List<Emr_Fault_Type> selectByCol(Emr_Fault_Type record);
|
||||
|
||||
/**
|
||||
* 根据条件修改缺陷类别信息
|
||||
*
|
||||
* @param record
|
||||
* @return
|
||||
*/
|
||||
int updateByClo(Emr_Fault_Type record);
|
||||
|
||||
/**
|
||||
* 根据字段插入缺陷类别信息
|
||||
* @param record
|
||||
* @return
|
||||
*/
|
||||
int insertClo(Emr_Fault_Type record);
|
||||
|
||||
/**
|
||||
* 根据id删除缺陷类别记录
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
int delById(Integer id);
|
||||
|
||||
/**
|
||||
* 根据id修改缺陷类别信息
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
Emr_Fault_Type selectById(Integer id);
|
||||
|
||||
}
|
||||
|
||||
|
@ -0,0 +1,51 @@
|
||||
/**
|
||||
* Copyright (C), 2015-2019
|
||||
* Author: HJL
|
||||
* Date: 2019/7/19 15:28
|
||||
* Description:图片信息表
|
||||
*/
|
||||
package com.emr.service;
|
||||
|
||||
import com.emr.entity.Emr_Picture;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface Emr_PictureService {
|
||||
/**
|
||||
* 根据id查询图片详细查询
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
Emr_Picture selectByid(String id);
|
||||
|
||||
/**
|
||||
* 根据条件插入记录
|
||||
* @param record
|
||||
* @return
|
||||
*/
|
||||
int insertSel(Emr_Picture record);
|
||||
|
||||
/**
|
||||
* 根据id或标识修改记录
|
||||
* @param record
|
||||
* @return
|
||||
*/
|
||||
int updateCloByIdOrFlay(Emr_Picture record);
|
||||
|
||||
/**
|
||||
* 根据条件查询记录
|
||||
* @param record
|
||||
* @return
|
||||
*/
|
||||
List<Emr_Picture> selectByClo(Emr_Picture record);
|
||||
|
||||
/**
|
||||
* 根据id查询记录
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
int deleteById(String id);
|
||||
|
||||
}
|
||||
|
||||
|
@ -0,0 +1,33 @@
|
||||
/**
|
||||
* Copyright (C), 2015-2019
|
||||
* Author: HJL
|
||||
* Date: 2019/7/19 15:35
|
||||
* Description:缺陷类别表
|
||||
*/
|
||||
package com.emr.service;
|
||||
|
||||
import com.emr.entity.*;
|
||||
import com.emr.vo.V_CountVo;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface V_CountService {
|
||||
/**
|
||||
* 根据条件查询所有统计列表
|
||||
* @param record
|
||||
* @return
|
||||
*/
|
||||
List<V_Count> selectByCol(V_CountVo record);
|
||||
|
||||
/**
|
||||
* 根据条件查找统计列表分页
|
||||
*
|
||||
* @param record
|
||||
* @return
|
||||
*/
|
||||
OffsetLimitPage selectPageByClo(V_CountVo record, Integer offset, Integer limit);
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
@ -0,0 +1,7 @@
|
||||
package com.emr.service;
|
||||
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
@Component
|
||||
public class WebService {
|
||||
}
|
@ -0,0 +1,132 @@
|
||||
/**
|
||||
* Copyright (C), 2015-2019
|
||||
* Author: HJL
|
||||
* Date: 2019/7/19 15:37
|
||||
* Description:病历文件信息管理
|
||||
*/
|
||||
package com.emr.service.ipml;
|
||||
|
||||
import com.emr.dao.Archive_DetailMapper;
|
||||
import com.emr.entity.Archive_Detail;
|
||||
import com.emr.entity.Archive_Detail_Vo;
|
||||
import com.emr.entity.OffsetLimitPage;
|
||||
import com.emr.service.Archive_DetailService;
|
||||
import com.emr.util.Jpg2PdfUtil;
|
||||
import com.github.pagehelper.Page;
|
||||
import com.github.pagehelper.PageHelper;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
@Service
|
||||
public class Archive_DetailServiceImpl implements Archive_DetailService {
|
||||
@Autowired
|
||||
private Archive_DetailMapper archiveDetailMapper;
|
||||
|
||||
|
||||
@Override
|
||||
public List<Archive_Detail_Vo> selectByClo(Archive_Detail_Vo record) {
|
||||
return archiveDetailMapper.selectByClo(record);
|
||||
}
|
||||
|
||||
@Override
|
||||
public OffsetLimitPage detailByClo(Archive_Detail_Vo record, Integer offset, Integer limit) {
|
||||
PageHelper.offsetPage(offset, limit);
|
||||
List<Archive_Detail_Vo> list = archiveDetailMapper.detailByClo(record);
|
||||
return new OffsetLimitPage((Page) list);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int updateCloById(Archive_Detail record) {
|
||||
return archiveDetailMapper.updateCloById(record);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int insertSel(Archive_Detail record) {
|
||||
return archiveDetailMapper.insertSel(record);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Archive_Detail selectByid(String id) {
|
||||
return archiveDetailMapper.selectByid(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int deleteByClo(Archive_Detail record) {
|
||||
return archiveDetailMapper.deleteByClo(record);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Archive_Detail> selectByColm(Archive_Detail record) {
|
||||
return archiveDetailMapper.selectByColm(record);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Archive_Detail> selectByCol(Archive_Detail record) {
|
||||
return archiveDetailMapper.selectByCol(record);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Archive_Detail> selectByIdStr(Archive_Detail record) {
|
||||
return archiveDetailMapper.selectByIdStr(record);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void getPdfToPdf(HttpServletResponse response, String imgStr, String masterId,String pdfWater) {
|
||||
if (masterId != "" && masterId != null) {
|
||||
//获取废除的pdf文件名列表archive_detail
|
||||
List pdfList = new ArrayList();
|
||||
Archive_Detail archiveDetail = new Archive_Detail();
|
||||
archiveDetail.setFlag("0");
|
||||
archiveDetail.setMasterid(masterId.trim());
|
||||
archiveDetail.setTitle(imgStr);
|
||||
try {
|
||||
List<Archive_Detail> arList = selectByCol(archiveDetail);
|
||||
if (arList != null && !arList.isEmpty()) {
|
||||
for (int m = 0; m < arList.size(); m++) {
|
||||
String str = arList.get(m).getPdfPath();
|
||||
if (StringUtils.isNoneBlank(str)) {
|
||||
pdfList.add(str);
|
||||
}
|
||||
}
|
||||
}
|
||||
Jpg2PdfUtil.mulFile2One(response, pdfList, pdfWater);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void selectPdfPathByIds(HttpServletResponse response, String detailIds, String masterId,String pdfWater) {
|
||||
if (masterId != "" && masterId != null) {
|
||||
//获取废除的pdf文件名列表archive_detail
|
||||
List pdfList = new ArrayList();
|
||||
try {
|
||||
List<Archive_Detail> arList = archiveDetailMapper.selectPdfPathByIds(masterId,detailIds);
|
||||
if (arList != null && !arList.isEmpty()) {
|
||||
for (int m = 0; m < arList.size(); m++) {
|
||||
String str = arList.get(m).getPdfPath();
|
||||
if (StringUtils.isNoneBlank(str)) {
|
||||
pdfList.add(str);
|
||||
}
|
||||
}
|
||||
}
|
||||
Jpg2PdfUtil.mulFile2One(response, pdfList, pdfWater);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Archive_Detail> selectTypeTreeByPatientIdAndAssortIds(String patientId, String assortIds) {
|
||||
return archiveDetailMapper.selectTypeTreeByPatientIdAndAssortIds(patientId, assortIds);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -0,0 +1,21 @@
|
||||
/**
|
||||
* Copyright (C), 2015-2019
|
||||
* Author: HJL
|
||||
* Date: 2019/7/19 15:41
|
||||
* Description:病历文件归类管理
|
||||
*/
|
||||
package com.emr.service.ipml;
|
||||
|
||||
import com.emr.dao.Emr_Archive_DetailMapper;
|
||||
import com.emr.service.Emr_Archive_DetailService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
@Service
|
||||
public class Emr_Archive_DetailServiceImpl implements Emr_Archive_DetailService {
|
||||
|
||||
@Autowired
|
||||
private Emr_Archive_DetailMapper emrArchiveDetailMapper;
|
||||
}
|
||||
|
||||
|
@ -0,0 +1,49 @@
|
||||
/**
|
||||
* Copyright (C), 2015-2019
|
||||
* Author: HJL
|
||||
* Date: 2019/7/26 15:51
|
||||
* Description:
|
||||
*/
|
||||
package com.emr.service.ipml;
|
||||
|
||||
import com.emr.dao.Emr_Archive_DetailMapper;
|
||||
import com.emr.dao.Emr_DictionaryMapper;
|
||||
import com.emr.entity.Emr_Dictionary;
|
||||
import com.emr.service.Emr_DictionaryService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Service
|
||||
public class Emr_DictionaryServiceImpl implements Emr_DictionaryService {
|
||||
|
||||
@Autowired
|
||||
private Emr_DictionaryMapper emrDictionaryMapper;
|
||||
@Override
|
||||
public List<Emr_Dictionary> dicByTypeCode(Emr_Dictionary emrDictionary) {
|
||||
return emrDictionaryMapper.dicByTypeCode(emrDictionary);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Emr_Dictionary> dicByClo(Emr_Dictionary emrDictionary) {
|
||||
return emrDictionaryMapper.dicByClo(emrDictionary);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int insertSel(Emr_Dictionary emrDictionary) {
|
||||
return emrDictionaryMapper.insertSel(emrDictionary);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int delById(Integer id) {
|
||||
return emrDictionaryMapper.delById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int updateCloById(Emr_Dictionary emrDictionary) {
|
||||
return emrDictionaryMapper.updateCloById(emrDictionary);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -0,0 +1,142 @@
|
||||
/**
|
||||
* Copyright (C), 2015-2019
|
||||
* Author: HJL
|
||||
* Date: 2019/7/19 15:43
|
||||
* Description:缺陷管理
|
||||
*/
|
||||
package com.emr.service.ipml;
|
||||
|
||||
import com.emr.dao.Emr_Fault_DetailMapper;
|
||||
import com.emr.entity.*;
|
||||
import com.emr.service.Archive_MasterService;
|
||||
import com.emr.service.Emr_DictionaryService;
|
||||
import com.emr.service.Emr_Fault_DetailService;
|
||||
import com.emr.service.Emr_Fault_TypeService;
|
||||
import com.emr.util.Msg;
|
||||
import com.emr.vo.User;
|
||||
import com.github.pagehelper.Page;
|
||||
import com.github.pagehelper.PageHelper;
|
||||
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.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
@Service
|
||||
@Transactional
|
||||
public class Emr_Fault_DetailServiceImpl implements Emr_Fault_DetailService {
|
||||
|
||||
@Autowired
|
||||
private Emr_Fault_DetailMapper emrFaultDetailMapper;
|
||||
|
||||
@Autowired
|
||||
private Emr_Fault_TypeService emrFaultTypeService;
|
||||
|
||||
@Autowired
|
||||
private Emr_DictionaryService emrDictionaryService;
|
||||
@Autowired
|
||||
private Archive_MasterService archiveMasterService;
|
||||
@Autowired
|
||||
private StatisticsService statisticsService;
|
||||
/**
|
||||
* 根据条件查询缺陷列表
|
||||
* 病案终审退回
|
||||
* @param emrFaultVo
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public OffsetLimitPage selectByCol(Emr_Fault_Vo emrFaultVo, Integer offset, Integer limit) {
|
||||
PageHelper.offsetPage(offset, limit);
|
||||
List<Emr_Fault_Vo> list = selectByCol(emrFaultVo);
|
||||
return new OffsetLimitPage((Page) list);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Emr_Fault_Vo> selectByCol(Emr_Fault_Vo emrFaultVo) {
|
||||
List<Emr_Fault_Vo> list = emrFaultDetailMapper.selectByCol(emrFaultVo);
|
||||
Emr_Dictionary dic = new Emr_Dictionary();
|
||||
dic.setEffective(1);
|
||||
dic.setTypecode("dept_code");
|
||||
//科室列表
|
||||
List<Emr_Dictionary> dicList = emrDictionaryService.dicByTypeCode(dic);
|
||||
//获取缺陷类别列表
|
||||
Emr_Fault_Type obj = new Emr_Fault_Type();
|
||||
obj.setEffective(1);
|
||||
List<Emr_Fault_Type> typeLis = emrFaultTypeService.selectByCol(obj);
|
||||
Msg role = archiveMasterService.getRole();
|
||||
List<User> userList = statisticsService.getUserList();
|
||||
if(null != role) {
|
||||
for (int i = 0; i < list.size(); i++) {
|
||||
//根据状态code转换状态及判断显示按钮
|
||||
//计算属于哪种审核角色
|
||||
String archivestate = list.get(i).getArchivestate();
|
||||
if (StringUtils.isNotBlank(archivestate)) {
|
||||
//转换中文状态
|
||||
Integer status = Integer.valueOf(archivestate);
|
||||
archivestate = EnumVerify.DocState.GetStepName(status, role.getCode());
|
||||
list.get(i).setArchivestate(archivestate);
|
||||
}
|
||||
//替换科室
|
||||
for (int k = 0; k < dicList.size(); k++) {
|
||||
String deptName = list.get(i).getDeptName();
|
||||
//入院科室dept_admission_to
|
||||
String dept2 = list.get(i).getDeptAdmissionTo();
|
||||
|
||||
if ((deptName != null && deptName.equals(dicList.get(k).getCode())) || (dept2 != null && dept2.equals(dicList.get(k).getCode()))) {
|
||||
//出院科室
|
||||
deptName = deptName.replace(deptName, dicList.get(k).getName());
|
||||
list.get(i).setDeptName(deptName);
|
||||
|
||||
dept2 = dept2.replace(dept2, dicList.get(k).getName());
|
||||
list.get(i).setDeptAdmissionTo(dept2);
|
||||
}
|
||||
}
|
||||
|
||||
String assortId = list.get(i).getAssortId();
|
||||
if (assortId != "" && assortId != null) {
|
||||
String[] assorArr = assortId.split(",");
|
||||
//替换类别
|
||||
for (int j = 0; j < typeLis.size(); j++) {
|
||||
String id = String.valueOf(typeLis.get(j).getId());
|
||||
if (Arrays.asList(assorArr).contains(id)) {
|
||||
assortId = assortId.replace(id, typeLis.get(j).getTypeName());
|
||||
list.get(i).setAssortId(assortId);
|
||||
}
|
||||
}
|
||||
}
|
||||
//替换姓名
|
||||
if(!CollectionUtils.isEmpty(userList)) {
|
||||
//转换姓名
|
||||
String userName = list.get(i).getCreater();
|
||||
for (User user : userList) {
|
||||
if (StringUtils.isNotBlank(userName) && userName.equals(user.getUserName())) {
|
||||
list.get(i).setCreater(user.getName());
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int updateCloByPrimaryKey(Emr_Fault_Detail emrFaultDetail) {
|
||||
return emrFaultDetailMapper.updateCloByPrimaryKey(emrFaultDetail);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Emr_Fault_Detail selectByArchiveDetailId(Emr_Fault_Detail record) {
|
||||
return emrFaultDetailMapper.selectByArchiveDetailId(record);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int insertSel(Emr_Fault_Detail record) {
|
||||
return emrFaultDetailMapper.insertSel(record);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -0,0 +1,49 @@
|
||||
/**
|
||||
* Copyright (C), 2015-2019
|
||||
* Author: HJL
|
||||
* Date: 2019/7/19 15:46
|
||||
* Description:缺陷类别管理
|
||||
*/
|
||||
package com.emr.service.ipml;
|
||||
|
||||
import com.emr.dao.Emr_Fault_TypeMapper;
|
||||
import com.emr.entity.Emr_Fault_Type;
|
||||
import com.emr.service.Emr_Fault_TypeService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Service
|
||||
public class Emr_Fault_TypeServiceImpl implements Emr_Fault_TypeService {
|
||||
|
||||
@Autowired
|
||||
private Emr_Fault_TypeMapper emrFaultTypeMapper;
|
||||
|
||||
@Override
|
||||
public List<Emr_Fault_Type> selectByCol(Emr_Fault_Type record) {
|
||||
return emrFaultTypeMapper.selectByCol(record);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int updateByClo(Emr_Fault_Type record) {
|
||||
return emrFaultTypeMapper.updateByClo(record);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int insertClo(Emr_Fault_Type record) {
|
||||
return emrFaultTypeMapper.insertClo(record);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int delById(Integer id) {
|
||||
return emrFaultTypeMapper.delById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Emr_Fault_Type selectById(Integer id) {
|
||||
return emrFaultTypeMapper.selectById(id);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -0,0 +1,51 @@
|
||||
/**
|
||||
* Copyright (C), 2015-2019
|
||||
* Author: HJL
|
||||
* Date: 2019/7/19 15:48
|
||||
* Description:
|
||||
*/
|
||||
package com.emr.service.ipml;
|
||||
|
||||
import com.emr.dao.Emr_PictureMapper;
|
||||
import com.emr.entity.Emr_Picture;
|
||||
import com.emr.service.Emr_PictureService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Service
|
||||
public class Emr_PictureServiceImpl implements Emr_PictureService {
|
||||
|
||||
@Autowired
|
||||
private Emr_PictureMapper emrPictureMapper;
|
||||
|
||||
@Override
|
||||
public Emr_Picture selectByid(String id) {
|
||||
return emrPictureMapper.selectByid(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int insertSel(Emr_Picture record) {
|
||||
return emrPictureMapper.insertSel(record);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int updateCloByIdOrFlay(Emr_Picture record) {
|
||||
return emrPictureMapper.updateCloByIdOrFlay(record);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Emr_Picture> selectByClo(Emr_Picture record) {
|
||||
return emrPictureMapper.selectByClo(record);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int deleteById(String id) {
|
||||
return emrPictureMapper.deleteById(id);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
@ -0,0 +1,135 @@
|
||||
package com.emr.service.ipml;
|
||||
|
||||
import com.emr.dao.EmrHolidaySetMapper;
|
||||
import com.emr.entity.*;
|
||||
import com.emr.util.AccountDate;
|
||||
import com.github.pagehelper.Page;
|
||||
import com.github.pagehelper.PageHelper;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.*;
|
||||
|
||||
@Service
|
||||
@Transactional
|
||||
public class HolidaySetService {
|
||||
@Autowired
|
||||
private EmrHolidaySetMapper holidaySetMapper;
|
||||
public OffsetLimitPage selectByColumn(EmrHolidaySetVo holidaySetVo){
|
||||
PageHelper.offsetPage(holidaySetVo.getOffset(), holidaySetVo.getLimit());
|
||||
List<EmrHolidaySetVo> list = holidaySetMapper.selectByColumn(holidaySetVo);
|
||||
return new OffsetLimitPage((Page) list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量新增
|
||||
* @param startTime
|
||||
* @param endTime
|
||||
* @param checkBoxes
|
||||
* @param flag
|
||||
* @throws Exception
|
||||
*/
|
||||
public void update(String startTime,String endTime,String checkBoxes,Integer flag) throws Exception{
|
||||
Map<Integer,String> map = new HashMap<>();
|
||||
//将选中星期几添加进map
|
||||
String[] checkBoxList = checkBoxes.split(",");
|
||||
for(String checkBoxed:checkBoxList){
|
||||
if(StringUtils.isNoneBlank(checkBoxed)){
|
||||
map.put(Integer.valueOf(checkBoxed),checkBoxed);
|
||||
}
|
||||
}
|
||||
List<String> dateList = AccountDate.getEveryday(startTime,endTime);
|
||||
//查询时间段记录
|
||||
List<EmrHolidaySet> emrHolidaySets = holidaySetMapper.selectAllByDates(startTime, endTime);
|
||||
//定义批量添加集合
|
||||
List<EmrHolidaySet> insertList = new ArrayList<>();
|
||||
//定义批量更新集合
|
||||
List<EmrHolidaySet> updateList = new ArrayList<>();
|
||||
//定义批量修改的时间字符串
|
||||
String dates = "";
|
||||
SimpleDateFormat fmt = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
||||
//没有记录添加进insertList
|
||||
for(String date : dateList){
|
||||
//查询几天星期几
|
||||
Integer weekDay = AccountDate.getWeekDayByStr(date);
|
||||
//无记录,全部添加进批量添加集合
|
||||
EmrHolidaySet holidaySet = new EmrHolidaySet();
|
||||
holidaySet.setDate(date);
|
||||
holidaySet.setUpdateTime(fmt.format(new Date()));
|
||||
if(flag == 1){
|
||||
if(map.containsKey(weekDay)){
|
||||
holidaySet.setFlag(Short.valueOf("1"));
|
||||
}else{
|
||||
holidaySet.setFlag(Short.valueOf("2"));
|
||||
}
|
||||
}else{
|
||||
if(map.containsKey(weekDay)){
|
||||
holidaySet.setFlag(Short.valueOf("2"));
|
||||
}else{
|
||||
holidaySet.setFlag(Short.valueOf("1"));
|
||||
}
|
||||
}
|
||||
//如果存在记录就区分更新部分还是添加部分
|
||||
if(null != emrHolidaySets && !emrHolidaySets.isEmpty()){
|
||||
boolean isExist = false;
|
||||
for (int i = 0; i < emrHolidaySets.size(); i++) {
|
||||
if(emrHolidaySets.get(i).getDate().equals(date)){
|
||||
isExist = true;
|
||||
holidaySet.setId(emrHolidaySets.get(i).getId());
|
||||
break;
|
||||
}
|
||||
}
|
||||
//如果存在,添加进更新的字符串
|
||||
if(isExist){
|
||||
updateList.add(holidaySet);
|
||||
}else{
|
||||
//否则添加进批量添加集合
|
||||
insertList.add(holidaySet);
|
||||
}
|
||||
}else{
|
||||
//数据库无数,添加全部记录
|
||||
insertList.add(holidaySet);
|
||||
}
|
||||
}
|
||||
int colCount = holidaySetMapper.selectColByTableName("emr_holiday_set");
|
||||
int simpleInsertCount = 2100/(colCount);
|
||||
if(null != insertList && !insertList.isEmpty()){
|
||||
List<EmrHolidaySet> list = new ArrayList<>();
|
||||
for (int i = 0; i < insertList.size(); i++) {
|
||||
list.add(insertList.get(i));
|
||||
if(list.size()%simpleInsertCount == 0 || i == insertList.size() - 1){
|
||||
holidaySetMapper.SampleInsert(list);
|
||||
list.clear();
|
||||
}
|
||||
}
|
||||
}
|
||||
if(null != updateList && !updateList.isEmpty()){
|
||||
List<EmrHolidaySet> list = new ArrayList<>();
|
||||
for (int i = 0; i < updateList.size(); i++) {
|
||||
list.add(updateList.get(i));
|
||||
if(list.size()%simpleInsertCount == 0 || i == updateList.size() - 1){
|
||||
holidaySetMapper.SampleUpdate(updateList);
|
||||
list.clear();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 单个修改状态
|
||||
* @param flag
|
||||
* @param id
|
||||
*/
|
||||
public void update(Integer flag,Integer id){
|
||||
EmrHolidaySet emrHolidaySet = holidaySetMapper.selectByPrimaryKey(id);
|
||||
if(flag == 1){
|
||||
emrHolidaySet.setFlag(Short.valueOf("2"));
|
||||
}else{
|
||||
emrHolidaySet.setFlag(Short.valueOf("1"));
|
||||
}
|
||||
holidaySetMapper.updateByPrimaryKeySelective(emrHolidaySet);
|
||||
}
|
||||
}
|
@ -0,0 +1,214 @@
|
||||
package com.emr.service.ipml;
|
||||
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.emr.dao.StatisticsMapper;
|
||||
import com.emr.dao.TUuInfoMapper;
|
||||
import com.emr.dao.TUuPrintMapper;
|
||||
import com.emr.entity.Archive_Master_Vo;
|
||||
import com.emr.entity.OffsetLimitPage;
|
||||
import com.emr.entity.TUuPrint;
|
||||
import com.emr.vo.*;
|
||||
import com.github.pagehelper.Page;
|
||||
import com.github.pagehelper.PageHelper;
|
||||
import net.sf.json.JSONObject;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.apache.http.client.methods.CloseableHttpResponse;
|
||||
import org.apache.http.client.methods.HttpGet;
|
||||
import org.apache.http.impl.client.HttpClients;
|
||||
import org.apache.http.util.EntityUtils;
|
||||
import org.apache.shiro.util.CollectionUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
import org.springframework.web.context.request.RequestContextHolder;
|
||||
import org.springframework.web.context.request.ServletRequestAttributes;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @ProjectName:
|
||||
* @Description:
|
||||
* @Param 传输参数
|
||||
* @Return
|
||||
* @Author: 曾文和
|
||||
* @CreateDate: 2020/1/8 15:54
|
||||
* @UpdateUser: 曾文和
|
||||
* @UpdateDate: 2020/1/8 15:54
|
||||
* @UpdateRemark: 更新说明
|
||||
* @Version: 1.0
|
||||
*/
|
||||
@Service
|
||||
@Transactional
|
||||
public class StatisticsService {
|
||||
@Value("${POWER_URLHEAD}")
|
||||
private String POWER_URLHEAD;
|
||||
@Autowired
|
||||
private StatisticsMapper statisticsMapper;
|
||||
@Autowired
|
||||
private TUuPrintMapper uuPrintMapper;
|
||||
@Autowired
|
||||
private TUuInfoMapper uuInfoMapper;
|
||||
//终审按天统计
|
||||
public List<FinalAndFirstStatistics> getFinalStatistics(Integer offset, Integer limit, String startDate, String endDate,String sql) {
|
||||
if(null != offset && null != limit){
|
||||
PageHelper.offsetPage(offset, limit);
|
||||
}
|
||||
List<FinalAndFirstStatistics> list = statisticsMapper.finalStatistics(startDate, endDate,sql);
|
||||
//转换姓名
|
||||
List<User> userList = getUserList();
|
||||
if(!CollectionUtils.isEmpty(list) && !CollectionUtils.isEmpty(userList)) {
|
||||
for (FinalAndFirstStatistics statistics : list) {
|
||||
for (User user : userList) {
|
||||
if (StringUtils.isNotBlank(statistics.getCheckCode()) && statistics.getCheckCode().equals(user.getUserName())) {
|
||||
statistics.setCheckName(user.getName());
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
|
||||
//初审按天统计
|
||||
public List<FinalAndFirstStatistics> getFirstStatistics(HttpServletRequest request, Integer offset, Integer limit, String startDate, String endDate,String sql) {
|
||||
if(null != offset && null != limit){
|
||||
PageHelper.offsetPage(offset, limit);
|
||||
}
|
||||
List<FinalAndFirstStatistics> list = statisticsMapper.firstStatistics(startDate, endDate,sql);
|
||||
//转换姓名
|
||||
List<User> userList = getUserList();
|
||||
if(!CollectionUtils.isEmpty(list) && !CollectionUtils.isEmpty(userList)) {
|
||||
for (FinalAndFirstStatistics statistics : list) {
|
||||
for (User user : userList) {
|
||||
if (statistics.getCheckCode().equals(user.getUserName())) {
|
||||
statistics.setCheckName(user.getName());
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
/**
|
||||
* 终审审核明细
|
||||
* @param offset
|
||||
* @param limit
|
||||
* @param disStartDate
|
||||
* @param disEndDate
|
||||
* @param archiveMasterVo
|
||||
* @return
|
||||
*/
|
||||
public OffsetLimitPage getStatisticsDetail(Integer offset, Integer limit,String disStartDate, String disEndDate, Archive_Master_Vo archiveMasterVo,Integer flag) {
|
||||
if(null != offset && null != limit){
|
||||
PageHelper.offsetPage(offset, limit);
|
||||
}
|
||||
List<Archive_Master_Vo> list = getDetailList(disStartDate, disEndDate, archiveMasterVo,flag,null);
|
||||
return new OffsetLimitPage((Page) list);
|
||||
}
|
||||
|
||||
public List<Archive_Master_Vo> getDetailList(String disStartDate, String disEndDate, Archive_Master_Vo archiveMasterVo,Integer flag,String sql){
|
||||
//转换姓名
|
||||
List<User> userList = getUserList();
|
||||
String checkDoctor = archiveMasterVo.getCheckDoctor();
|
||||
//模糊搜索审核姓名转换工号
|
||||
if(StringUtils.isNoneBlank(checkDoctor)){
|
||||
String checkNames = "";
|
||||
for(User user:userList){
|
||||
if(StringUtils.isNoneBlank(user.getName()) && user.getName().contains(checkDoctor)){
|
||||
checkNames += "'" + user.getUserName() + "',";
|
||||
}
|
||||
}
|
||||
if(StringUtils.isNotBlank(checkNames)){
|
||||
checkNames = checkNames.substring(0,checkNames.length()-1);
|
||||
archiveMasterVo.setCheckDoctor(checkNames);
|
||||
}else{
|
||||
archiveMasterVo.setCheckDoctor("'" + checkDoctor + "'");
|
||||
}
|
||||
}
|
||||
List<Archive_Master_Vo> list = statisticsMapper.statistics(disStartDate,disEndDate,archiveMasterVo,flag,sql);
|
||||
if(!CollectionUtils.isEmpty(list) && !CollectionUtils.isEmpty(userList)) {
|
||||
for (Archive_Master_Vo statistics : list) {
|
||||
for (User user : userList) {
|
||||
if (StringUtils.isNotBlank(statistics.getCheckDoctor()) && statistics.getCheckDoctor().equals(user.getUserName())) {
|
||||
statistics.setCheckName(user.getName());
|
||||
}
|
||||
if (StringUtils.isNotBlank(statistics.getCheckedDoctor()) && statistics.getCheckedDoctor().equals(user.getUserName())) {
|
||||
statistics.setCheckedName(user.getName());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
//复印记录报表
|
||||
public List<TUuPrintVo> getPrintCount(TUuPrintSearch search){
|
||||
List<TUuPrintVo> list = uuPrintMapper.getPrintCount(search);
|
||||
return list;
|
||||
}
|
||||
|
||||
//复印记录明细
|
||||
public List<TUuPrintVo> getPrintInfo(TUuPrintSearch search){
|
||||
List<TUuPrintVo> list = uuPrintMapper.getPrintInfo(search);
|
||||
if(null != list && !list.isEmpty()){
|
||||
SimpleDateFormat fmt = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
||||
for(TUuPrintVo printVo : list){
|
||||
Date cpytime = printVo.getCpytime();
|
||||
printVo.setPrintTime(fmt.format(cpytime));
|
||||
}
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
//扫描记录报表
|
||||
public List<TUuInfoVo> getScanCount(TUuPrintSearch search){
|
||||
List<TUuInfoVo> list = uuInfoMapper.getScanCount(search);
|
||||
return list;
|
||||
}
|
||||
|
||||
//扫描记录明细
|
||||
public List<TUuInfoVo> getScanInfo(TUuPrintSearch search){
|
||||
List<TUuInfoVo> list = uuInfoMapper.getScanInfo(search);
|
||||
return list;
|
||||
}
|
||||
|
||||
public List<User> getUserList(){
|
||||
HttpServletRequest request = ((ServletRequestAttributes) RequestContextHolder.getRequestAttributes()).getRequest();
|
||||
List<User> userList = new ArrayList<>();
|
||||
try {
|
||||
//查询缓存时候存在
|
||||
userList = (List<User>)request.getSession().getAttribute("USER_LIST");
|
||||
if(null == userList || userList.isEmpty()){
|
||||
String userName = (String) request.getSession().getAttribute("userSession");
|
||||
//调用接口查询
|
||||
String resultString = "";
|
||||
// 创建uri
|
||||
String url = POWER_URLHEAD+"/font/getUserList?userName="+userName;
|
||||
// 执行请求
|
||||
CloseableHttpResponse response = HttpClients.createDefault().execute(new HttpGet(url));
|
||||
// 判断返回状态是否为200
|
||||
if (response.getStatusLine().getStatusCode() == 200) {
|
||||
resultString = EntityUtils.toString(response.getEntity(), "UTF-8");
|
||||
}
|
||||
JSONObject jsonObject = JSONObject.fromObject(resultString);
|
||||
String extend = jsonObject.getString("extend");
|
||||
JSONObject extendObject = JSONObject.fromObject(extend);
|
||||
String userList1 = extendObject.getString("userList");
|
||||
userList = (List<User>) JSON.parseArray(userList1,User.class);
|
||||
//设置进session
|
||||
request.getSession().setAttribute("USER_LIST",userList);
|
||||
}
|
||||
}catch (Exception e){
|
||||
e.printStackTrace();
|
||||
}
|
||||
return userList;
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,27 @@
|
||||
package com.emr.service.ipml;
|
||||
|
||||
import com.emr.dao.TPrintinfoMapper;
|
||||
import com.emr.entity.TPrintinfo;
|
||||
import com.emr.util.Msg;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Service
|
||||
public class TPrintinfoService {
|
||||
@Autowired
|
||||
private TPrintinfoMapper tPrintinfoMapper;
|
||||
public Msg selectIsPrintByPatienId(String patientId){
|
||||
TPrintinfo tPrintinfo = tPrintinfoMapper.selectLockByPatienId(patientId);
|
||||
if(!"0".equals(tPrintinfo.getIsprint())){
|
||||
return Msg.success().add("isPrint","1");
|
||||
}
|
||||
List<TPrintinfo> list = tPrintinfoMapper.selectIsPrintByPatienId(patientId);
|
||||
if(null != list && !list.isEmpty()){
|
||||
return Msg.success().add("isPrint",list.get(0).getIsprint());
|
||||
}else{
|
||||
return Msg.success().add("isPrint","0");
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,40 @@
|
||||
/**
|
||||
* Copyright (C), 2015-2019
|
||||
* Author: HJL
|
||||
* Date: 2019/7/19 15:46
|
||||
* Description:统计管理
|
||||
*/
|
||||
package com.emr.service.ipml;
|
||||
|
||||
import com.emr.dao.V_CountMapper;
|
||||
import com.emr.entity.*;
|
||||
import com.emr.service.V_CountService;
|
||||
import com.emr.vo.V_CountVo;
|
||||
import com.github.pagehelper.Page;
|
||||
import com.github.pagehelper.PageHelper;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
@Service
|
||||
public class V_CountServiceImpl implements V_CountService {
|
||||
@Autowired
|
||||
private V_CountMapper vCountMapper;
|
||||
|
||||
@Override
|
||||
public List<V_Count> selectByCol(V_CountVo record) {
|
||||
List<V_Count> v_counts = vCountMapper.selectByCol(record);
|
||||
return v_counts;
|
||||
}
|
||||
|
||||
@Override
|
||||
public OffsetLimitPage selectPageByClo(V_CountVo record, Integer offset, Integer limit) {
|
||||
PageHelper.offsetPage(offset, limit);
|
||||
List<V_Count> list = selectByCol(record);
|
||||
return new OffsetLimitPage((Page) list);
|
||||
}
|
||||
}
|
||||
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue