添加纸质病历签收模块及一些小的功能修改

master
xuhaoxiang 4 years ago
parent 2689ad946a
commit bf145294d5

@ -117,7 +117,19 @@ public class inHospitalController {
@RequestMapping(value = "/getAssort")
public List<Archive_Detail_Vo> getAssort(HttpServletResponse response, Archive_Detail_Vo archiveDetailVo) throws Exception {
//分段列表
return archiveDetailService.selectByClo(archiveDetailVo);
List<Archive_Detail_Vo> newList=archiveDetailService.selectByClo(archiveDetailVo);
//查询新生儿数据并存入list
Integer page=archiveDetailService.selectChildByClo(archiveDetailVo);
if(page!=0){
Archive_Detail_Vo archiveDetailVoNew=new Archive_Detail_Vo();
archiveDetailVoNew.setAssortId("1000");
archiveDetailVoNew.setAssortName("新生儿病历");
archiveDetailVoNew.setPrintFlag("0");
archiveDetailVoNew.setPageNum(page);
archiveDetailVoNew.setAssortSort((short)1000);
newList.add(archiveDetailVoNew);
}
return newList;
}
//@OptionalLog(methods = "调用单个作废")
@ -125,7 +137,13 @@ public class inHospitalController {
@RequestMapping(value = "/getAssortdetail")
public OffsetLimitPage getAssortdetail(HttpServletResponse response, Archive_Detail_Vo archiveDetailVo, Integer offset, Integer limit) throws Exception {
//分段详情列表分页
OffsetLimitPage result = archiveDetailService.detailByClo(archiveDetailVo, offset, limit);
OffsetLimitPage result =null;
//判断是否是新生儿数据 assortId=1000
if("1000".equals(archiveDetailVo.getAssortId())){
result = archiveDetailService.selectChild(archiveDetailVo, offset, limit);
}else {
result = archiveDetailService.detailByClo(archiveDetailVo, offset, limit);
}
return result;
}

@ -0,0 +1,669 @@
/**
* Copyright (C), 2015-2019
* Author: HJL
* Date: 2019/8/8 12:46
* Description:
*/
package com.emr.controller;
import com.emr.dao.Archive_MasterMapper;
import com.emr.entity.*;
import com.emr.service.*;
import com.emr.util.IDHelper;
import com.emr.util.ThreadExcelUtils;
import com.emr.util.XMLUtil;
import com.emr.webservice.MedicalRecordShowBackContent.MR_FILE_CALLBACK_RECORD;
import com.emr.webservice.MedicalRecordShowBackContent.MR_FILE_INDEX_CALLBACK;
import org.apache.axis.client.Call;
import org.apache.axis.client.Service;
import org.apache.axis.encoding.XMLType;
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.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.transaction.annotation.Transactional;
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 javax.xml.namespace.QName;
import javax.xml.rpc.ParameterMode;
import javax.xml.rpc.ServiceException;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.io.UnsupportedEncodingException;
import java.rmi.RemoteException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
@Controller
@RequestMapping("signList")
public class signListController {
@Value("${EMRQualityControl}")
private String EMRQualityControl;
@Value("${EMRQualityControlParamName}")
private String EMRQualityControlParamName;
@Autowired
private Sign_ListService signListService;
@Autowired
private Archive_MasterService archiveMasterService;
@Autowired
private Emr_Fault_TypeService emrFaultTypeService;
@Autowired
private Emr_Fault_DetailService emrFaultDetailService;
@Autowired(required = false)
private Archive_Master_FollowingService archive_master_followingService;
@RequestMapping(value = "/signLists")
public String faults(Model model) {
return "signListDir/signList";
}
@ResponseBody
@RequestMapping(value = "/signList")
public OffsetLimitPage signList(HttpServletRequest request, HttpServletResponse response, Sign_List_Vo signListVo, Integer offset, Integer limit) throws UnsupportedEncodingException {
response.setCharacterEncoding("utf-8");
request.setCharacterEncoding("utf-8");
SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd");
//签收日期没进行选择的话则默认显示的是当前日期的数据
if(signListVo.getStartSignDate()==null||"".equals(signListVo.getStartSignDate())){
signListVo.setStartSignDate(sdf.format(new Date()));
}
if(signListVo.getEndSignDate()==null||"".equals(signListVo.getEndSignDate())){
signListVo.setEndSignDate(sdf.format(new Date()));
}
OffsetLimitPage result = signListService.selectSignList(signListVo, offset, limit);
return result;
}
/*@ResponseBody
@RequestMapping(value = "/lastVerifyList")
public String lastVerifyList(HttpServletRequest request, HttpServletResponse response, Sign_List signList) throws UnsupportedEncodingException {
SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd");
request.setCharacterEncoding("utf-8");
response.setCharacterEncoding("utf-8");
//点击签收生成一条数据
String result="";
int isSign=signList.getIsSign();
List<Archive_Master> list = archiveMasterService.selByCol(archiveMaster);
if(list.size()>0){
//修改
archiveMaster=list.get(0);
if(archiveMaster.getIsSign()!=isSign) {
// 从session获取用户名
Subject currentUser = SecurityUtils.getSubject();
Session session = currentUser.getSession();
String username = (String) session.getAttribute("userSession");//获取前面登录的用户名
//参数输入
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
String nowTime = format.format(new Date());
archiveMaster.setIsSign(isSign);
if (isSign == 0) {
archiveMaster.setSigner("");
archiveMaster.setSignTime("");
} else if (isSign == 1) {
System.out.println((archiveMaster.getIsscaned().equals("1"))+"===="+archiveMaster.getIsscaned()!="1");
if(archiveMaster.getIsscaned().equals("0")) {
result = "无纸质,无需签收!";
return result;
}else {
archiveMaster.setSigner(username);
archiveMaster.setSignTime(nowTime);
}
}
int bol = archiveMasterService.updateByClo(archiveMaster);
if (bol == 1) {
String followingContent="";
String followingType="";
if(isSign == 1) {
result = "该份病案签收成功!";
followingContent="病案签收成功";
followingType="13";
}else{
result = "该份病案取消签收成功!";
followingContent="病案取消签收成功";
followingType="14";
}
//2021-05-13 following表中添加签收操作记录
Power_User user = (Power_User) request.getSession().getAttribute("CURRENT_USER");
String handleName = user.getUserPosition();//姓名
Archive_Master_Following archive_master_following = new Archive_Master_Following();
archive_master_following.setMasterId(archiveMaster.getId());
archive_master_following.setFollowingType(followingType);
archive_master_following.setFollowingContent(followingContent);
archive_master_following.setHandleTime(nowTime);
archive_master_following.setHandleId(username);
archive_master_following.setHandleName(handleName);
archive_master_followingService.insertSelective(archive_master_following);
} else {
result = "该份病案签收失败!";
}
}else{
if(isSign==1) {
result = "该份病案已经签收!";
}else if(isSign==0){
result = "该份病案已经取消签收!";
}
}
}else{
result="该份病案并不存在!";
}
return result;
}*/
@ResponseBody
@RequestMapping(value = "/addSignList")
public String addSignList(HttpServletRequest request, HttpServletResponse response, Archive_Master_Vo archiveMasterVo) throws Exception {
response.setCharacterEncoding("utf-8");
request.setCharacterEncoding("utf-8");
String result="";
SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
List<Archive_Master> master=archiveMasterService.selectByCol(archiveMasterVo);
Sign_List signList=new Sign_List();
if(master!=null&&master.size()>0){
signList.setSysFlag(1);
signList.setMasterID(master.get(0).getId());
signList.setPid(master.get(0).getPatientId());
Subject currentUser = SecurityUtils.getSubject();
Session session = currentUser.getSession();
signList.setC1((String)session.getAttribute("userSession"));
signList.setC5("1");
List<Sign_List> returnList=signListService.selectSignListWith(signList);
signList.setId(IDHelper.NewID());
/*signList.setC2(master.get(0).getSigner());
signList.setC3(master.get(0).getDeptName());*/
signList.setCreatedtime(sdf.format(new Date()));
signList.setdTime(sdf.format(new Date()));
signList.setT1(sdf.format(new Date()));
int z=signListService.insertSignList(signList);
result="签收成功";
}
//OffsetLimitPage result = archiveMasterService.selectByLast(archiveMasterVo);
return result;
}
/* @ResponseBody
@RequestMapping(value = "/signList")
public OffsetLimitPage signList(HttpServletRequest request, HttpServletResponse response, Archive_Master_Vo archiveMasterVo, Integer offset, Integer limit) throws UnsupportedEncodingException {
response.setCharacterEncoding("utf-8");
request.setCharacterEncoding("utf-8");
OffsetLimitPage result = archiveMasterService.selectByLast(archiveMasterVo, offset, limit);
return result;
}*/
@ResponseBody
@RequestMapping(value = "/exportExcel")
public void exportExcel(HttpServletResponse response, Archive_Master_Vo archiveMasterVo) throws Exception {
response.setContentType("application/vnd.ms-excel;charset=UTF-8");
String[] header = {"病历清单id","住院号","住院次数","名字","性别","身份证","出院科室","出院日期","主管医生","状态","医生是否提交","医生","医生提交日期","护士是否提交","护士","护士提交日期","电子病历医生提交","电子病历护士提交","是否死亡","是否签收","签收人","签收时间"};
String[] fileNames = {"id","inpNo","visitId","name","sex","idNo","deptName","dischargeDateTime","doctorInCharge","archivestate","cmtDoctor","doctorName","cmtDoctorDate","cmtNurse","nurseName","cmtDurseDate","emrDoctorCmt","emrNureCmt","deathFlag","is_sign","signer","sign_time"};
//文件名
String fileName = "病案室终审" + new SimpleDateFormat("yyyyMMddHHmmss").format(new Date()) + ".xls";
//构造excel的数据
List<Archive_Master_Vo> list = archiveMasterService.selectByLast(archiveMasterVo);
ThreadExcelUtils utils = new ThreadExcelUtils(fileName, "", header, fileNames);
String result=utils.exportExcelToFilePath(response,utils.listConvert(list));
}
@ResponseBody
@RequestMapping(value = "/getFaultType")
public List<Emr_Fault_Type> getFaultType(HttpServletRequest request, HttpServletResponse response, Emr_Fault_Type emrFaultType) throws UnsupportedEncodingException {
response.setCharacterEncoding("utf-8");
request.setCharacterEncoding("utf-8");
List<Emr_Fault_Type> result = emrFaultTypeService.selectByCol(emrFaultType);
return result;
}
@ResponseBody
@RequestMapping(value = "/getDetailByArchId")
public Emr_Fault_Detail getDetailByArchId(HttpServletRequest request, HttpServletResponse response, Emr_Fault_Detail emrFaultDetail) throws UnsupportedEncodingException {
response.setCharacterEncoding("utf-8");
request.setCharacterEncoding("utf-8");
Emr_Fault_Detail result = emrFaultDetailService.selectByArchiveDetailId(emrFaultDetail);
return result;
}
@Transactional
@ResponseBody
@RequestMapping(value = "/updateDetailByArchivId")
public int updateDetailByArchivId(HttpServletRequest request, HttpServletResponse response, Emr_Fault_Detail emrFaultDetail) throws UnsupportedEncodingException {
request.setCharacterEncoding("utf-8");
response.setCharacterEncoding("utf-8");
int bol=0;
//修改病案归档状态:复审退回或主任退回
Archive_Master archiveMaster = archiveMasterService.selectById(emrFaultDetail.getArchiveDetailId());
if(archiveMaster!=null) {
archiveMaster.setArchivestate(emrFaultDetail.getState());
//查询该病案号缺陷,如果有医生就退回医生如果有护士则退回护士否则不退回提示
Emr_Fault_Detail entityFault=new Emr_Fault_Detail();
entityFault.setArchiveDetailId(emrFaultDetail.getArchiveDetailId());
List<Emr_Fault_Detail> list=emrFaultDetailService.selectByArchiveId(entityFault);
int doctorFlagNum=0;
int nurseFlagNum=0;
if(list!=null && list.size()>0){
// 从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());
//2021-01-30
Power_User user = (Power_User) request.getSession().getAttribute("CURRENT_USER");
String handleName = user.getUserPosition();//姓名
Archive_Master_Following archive_master_following = new Archive_Master_Following();
archive_master_following.setMasterId(emrFaultDetail.getArchiveDetailId());
if (emrFaultDetail.getState().equals("主任退回")) {
//1医生 2护士
for (int k = 0; k < list.size(); k++) {
if ("1".equals(list.get(k).getBackFlag()) || "5".equals(list.get(k).getBackFlag())) {
doctorFlagNum+=1;
}
if ("2".equals(list.get(k).getBackFlag()) || "6".equals(list.get(k).getBackFlag())) {
nurseFlagNum+=1;
}
}
if(doctorFlagNum>0){
archiveMaster.setCmtDoctor(0);
archiveMaster.setDoctorName("");
archiveMaster.setCmtDoctorDate("");
//2021-01-30 following表中添加科主任退回主管医生操作记录
archive_master_following.setFollowingType("7");
archive_master_following.setFollowingContent("科主任退回主管医生");
archive_master_following.setHandleTime(nowTime);
archive_master_following.setHandleId(username);
archive_master_following.setHandleName(handleName);
archive_master_followingService.insertSelective(archive_master_following);
}
if(nurseFlagNum>0){
archiveMaster.setCmtNurse(0);
archiveMaster.setNurseName("");
archiveMaster.setCmtNurseDate("");
//2021-01-30 following表中添加科主任退回护士长操作记录
archive_master_following.setFollowingType("6");
archive_master_following.setFollowingContent("科主任退回护士长");
archive_master_following.setHandleTime(nowTime);
archive_master_following.setHandleId(username);
archive_master_following.setHandleName(handleName);
archive_master_followingService.insertSelective(archive_master_following);
}
//修改复审内容
if (bol == 1) {
//判断缺陷记录是否有医生或护士有则退回状态改1
//参数输入
emrFaultDetail.setCreater(username);
emrFaultDetail.setCreateTime(nowTime);
//插入缺陷记录
bol = emrFaultDetailService.insertSel(emrFaultDetail);
}
}
if(doctorFlagNum==0 && nurseFlagNum==0){
archiveMaster.setCmtDoctor(1);
archiveMaster.setCmtNurse(1);
}
bol = archiveMasterService.updateByClo(archiveMaster);
if (emrFaultDetail.getState().equals("复审退回")){
//2021-01-30 following表中添加病案室退回操作记录
archive_master_following.setFollowingType("9");
archive_master_following.setFollowingContent("病案室退回科主任");
archive_master_following.setHandleTime(nowTime);
archive_master_following.setHandleId(username);
archive_master_following.setHandleName(handleName);
archive_master_followingService.insertSelective(archive_master_following);
}
}else{
bol=2;
}
}
return bol;
}
@Transactional
@ResponseBody
@RequestMapping(value = "/updateStateByArchivId")
public int updateStateByArchivId(HttpServletRequest request, HttpServletResponse response, Emr_Fault_Detail emrFaultDetail) throws UnsupportedEncodingException {
request.setCharacterEncoding("utf-8");
response.setCharacterEncoding("utf-8");
//修改病案归档状态
Archive_Master archiveMaster = new Archive_Master();
archiveMaster.setId(emrFaultDetail.getArchiveDetailId());
archiveMaster.setArchivestate("已归档");
archiveMaster.setCmtDoctor(1);
archiveMaster.setCmtNurse(1);
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.setCreater(username);
emrFaultDetail.setCreateTime(nowTime);
emrFaultDetail.setState("未召回");
//判断是否已经有召回记录
Emr_Fault_Vo vo=new Emr_Fault_Vo();
vo.setArchiveDetailId(emrFaultDetail.getArchiveDetailId());
List<Emr_Fault_Vo> list = emrFaultDetailService.selectByCol(vo);
if(list.size()>0){
bol = emrFaultDetailService.delbyCol(emrFaultDetail);
if(bol==1){
bol = emrFaultDetailService.insertSel(emrFaultDetail);
}
}else{
bol = emrFaultDetailService.insertSel(emrFaultDetail);
}
//初审成功日志
Power_User user = (Power_User) request.getSession().getAttribute("CURRENT_USER");
String handleName = user.getUserPosition();//姓名
Archive_Master_Following archive_master_following = new Archive_Master_Following();
archive_master_following.setMasterId(emrFaultDetail.getArchiveDetailId());
//following表中添加病案室审核操作记录
archive_master_following.setFollowingType("8");
archive_master_following.setFollowingContent("病案室审核(已归档)");
archive_master_following.setHandleTime(nowTime);
archive_master_following.setHandleId(username);
archive_master_following.setHandleName(handleName);
archive_master_followingService.insertSelective(archive_master_following);
}
return bol;
}
@ResponseBody
@RequestMapping(value = "/updateSignState")
public String updateSignState(HttpServletRequest request, HttpServletResponse response, Archive_Master archiveMaster) throws UnsupportedEncodingException {
request.setCharacterEncoding("utf-8");
response.setCharacterEncoding("utf-8");
String result="";
int isSign=archiveMaster.getIsSign();
List<Archive_Master> list = archiveMasterService.selByCol(archiveMaster);
if(list.size()>0){
//修改
archiveMaster=list.get(0);
if(archiveMaster.getIsSign()!=isSign) {
// 从session获取用户名
Subject currentUser = SecurityUtils.getSubject();
Session session = currentUser.getSession();
String username = (String) session.getAttribute("userSession");//获取前面登录的用户名
//参数输入
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
String nowTime = format.format(new Date());
archiveMaster.setIsSign(isSign);
if (isSign == 0) {
archiveMaster.setSigner("");
archiveMaster.setSignTime("");
} else if (isSign == 1) {
System.out.println((archiveMaster.getIsscaned().equals("1"))+"===="+archiveMaster.getIsscaned()!="1");
if(archiveMaster.getIsscaned().equals("0")) {
result = "无纸质,无需签收!";
return result;
}else {
archiveMaster.setSigner(username);
archiveMaster.setSignTime(nowTime);
}
}
int bol = archiveMasterService.updateByClo(archiveMaster);
if (bol == 1) {
String followingContent="";
String followingType="";
if(isSign == 1) {
result = "该份病案签收成功!";
followingContent="病案签收成功";
followingType="13";
}else{
result = "该份病案取消签收成功!";
followingContent="病案取消签收成功";
followingType="14";
}
//2021-05-13 following表中添加签收操作记录
Power_User user = (Power_User) request.getSession().getAttribute("CURRENT_USER");
String handleName = user.getUserPosition();//姓名
Archive_Master_Following archive_master_following = new Archive_Master_Following();
archive_master_following.setMasterId(archiveMaster.getId());
archive_master_following.setFollowingType(followingType);
archive_master_following.setFollowingContent(followingContent);
archive_master_following.setHandleTime(nowTime);
archive_master_following.setHandleId(username);
archive_master_following.setHandleName(handleName);
archive_master_followingService.insertSelective(archive_master_following);
} else {
result = "该份病案签收失败!";
}
}else{
if(isSign==1) {
result = "该份病案已经签收!";
}else if(isSign==0){
result = "该份病案已经取消签收!";
}
}
}else{
result="该份病案并不存在!";
}
return result;
}
@RequestMapping("getImg2")
public void getImg2(HttpServletRequest request, HttpServletResponse response, String path) throws IOException {
FileInputStream fis = null;
OutputStream os = null;
try {
fis = new FileInputStream(path);
os = response.getOutputStream();
int count = 0;
byte[] buffer = new byte[1024 * 8];
while ((count = fis.read(buffer)) != -1) {
os.write(buffer, 0, count);
os.flush();
}
} catch (Exception e) {
e.printStackTrace();
} finally {
try {
fis.close();
os.close();
} catch (IOException e) {
e.printStackTrace();
}
}
}
@ResponseBody
@RequestMapping(value = "/updateScore")
public int updateScore(Archive_Master archive_master){
return archiveMasterService.updateByClo(archive_master);
}
@Transactional
@ResponseBody
@RequestMapping(value = "/emrShowBackReason")
public String emrShowBackReason(HttpServletRequest request, HttpServletResponse response, Emr_Fault_Detail emrFaultDetail) throws Exception {
SimpleDateFormat format1 = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss");
String nowTime = format1.format(new Date());
//退回原因
StringBuffer assortName = new StringBuffer();
List<Emr_Fault_Vo> list = emrFaultDetailService.selectByColumn(emrFaultDetail);
for (Emr_Fault_Vo emr_fault_vo:list) {
assortName.append(emr_fault_vo.getAssortName()+";");
}
Archive_Master archive_master = archiveMasterService.selectById(emrFaultDetail.getArchiveDetailId());
String result="false";
if (archive_master!=null){
result = emrWebServiceShowBackReason(archive_master.getPatientId(),
Integer.parseInt(archive_master.getVisitId()),
nowTime,
assortName.toString(),
archive_master.getInpNo());
if (result.contains("true")){
result = "true";
}
}
return result;
}
public String emrWebServiceShowBackReason(String PATIENT_ID,int VISIT_ID,String nowTime,String APPLY_REASON,String INP_NO) throws Exception {
String MR_FILE_CALLBACK_RECORD="";//入参1
String MR_FILE_INDEX_CALLBACK="";//入参2
com.emr.webservice.MedicalRecordShowBackContent.MR_FILE_CALLBACK_RECORD inputParam1 = new MR_FILE_CALLBACK_RECORD();
inputParam1.setPATIENT_ID(PATIENT_ID);
inputParam1.setVISIT_ID(VISIT_ID);
inputParam1.setFILE_UNIQUE_ID("1");
inputParam1.setAPPLY_DATE_TIME(nowTime);
inputParam1.setAPPLY_TIME_LIMIT(nowTime);
inputParam1.setAPPLY_REASON(APPLY_REASON);
inputParam1.setEXPIRY_TIME(nowTime);
//其他为""参数
inputParam1.setAPPLY_USER_ID("1");
inputParam1.setAPPLY_USER_NAME("1");
inputParam1.setAPPLY_DEPT_CODE("1");
inputParam1.setSTATUS(0);
inputParam1.setAPPROVE_USER_ID("1");
inputParam1.setAPPROVE_USER_NAME("1");
inputParam1.setAPPROVE_DEPT_CODE("1");
inputParam1.setAPPROVE_DATE_TIME(nowTime);
inputParam1.setCLINIC_TYPE(0);
inputParam1.setAPPROVE_REASON("1");
inputParam1.setAPPROVE_USER_ID_DIRECTOR("1");
inputParam1.setAPPLY_USER_NAME_DIRECTOR("1");
inputParam1.setAPPROVE_DEPT_CODE_DIRECTOR("1");
inputParam1.setAPPROVE_DATE_TIME_DIRECTOR(nowTime);
inputParam1.setAPPLY_REASON_DIRECTOR("1");
inputParam1.setAPPROVE_USER_ID_MEDICAL("1");
inputParam1.setAPPLY_USER_NAME_MEDICAL("1");
inputParam1.setAPPROVE_DEPT_CODE_MEDICAL("1");
inputParam1.setAPPROVE_DATE_TIME_MEDICAL(nowTime);
inputParam1.setAPPLY_REASON_MEDICAL("1");
inputParam1.setRECEIVE_USERID("1");
com.emr.webservice.MedicalRecordShowBackContent.MR_FILE_INDEX_CALLBACK inputParam2 = new MR_FILE_INDEX_CALLBACK();
inputParam2.setPATIENT_ID(PATIENT_ID);
inputParam2.setVISIT_ID(VISIT_ID);
inputParam2.setAPPLY_DATE_TIME(nowTime);
inputParam2.setAPPLY_TIME_LIMIT(nowTime);
inputParam2.setAPPLY_USER_NAME("1");
inputParam2.setAPPLY_DEPT_CODE("1");
inputParam2.setSTATUS(1);
inputParam2.setAPPROVE_USER_ID("1");
inputParam2.setAPPROVE_USER_NAME("1");
inputParam2.setAPPROVE_DEPT_CODE("1");
inputParam2.setAPPROVE_DATE_TIME(nowTime);
inputParam2.setAPPLY_REASON(APPLY_REASON);
inputParam2.setCLINIC_TYPE(0);
inputParam2.setOPERATOR_TYPE(0);
inputParam2.setLIMIT_DATE(nowTime);
//其他为""参数
inputParam2.setAPPROVE_REASON("1");
inputParam2.setISCOPYBACK(0);
inputParam2.setIS_FIRSTPAGE(0);
inputParam2.setMRBACK_STATUS(0);
inputParam2.setIS_APPROVE(1);
inputParam2.setINP_NO(INP_NO);
inputParam2.setBACK_TYPE(0);
inputParam2.setFINISH_DATE_TIME(nowTime);
inputParam2.setAPPROVE_USER_ID_DIRECTOR("1");
inputParam2.setAPPLY_USER_NAME_DIRECTOR("1");
inputParam2.setAPPROVE_DEPT_CODE_DIRECTOR("1");
inputParam2.setAPPROVE_DATE_TIME_DIRECTOR(nowTime);
inputParam2.setAPPLY_REASON_DIRECTOR("1");
inputParam2.setAPPROVE_USER_ID_MEDICAL("1");
inputParam2.setAPPLY_USER_NAME_MEDICAL("1");
inputParam2.setAPPROVE_DEPT_CODE_MEDICAL("1");
inputParam2.setAPPROVE_DATE_TIME_MEDICAL(nowTime);
inputParam2.setAPPLY_REASON_MEDICAL("1");
inputParam2.setAPPROVE_HOST_IP("1");
inputParam2.setAPPROVE_HOST_NAME("1");
inputParam2.setAPPROVE_HOST_MAC_ADD("1");
inputParam2.setHOSPITAL_NO("12440000455858169P");
MR_FILE_CALLBACK_RECORD = XMLUtil.convertToXml(inputParam1);
MR_FILE_INDEX_CALLBACK = XMLUtil.convertToXml(inputParam2);
StringBuffer sb = new StringBuffer("<?xml version=\"1.0\"?>\n<root>\n");
sb.append(MR_FILE_CALLBACK_RECORD);
sb.append("\n");
sb.append(MR_FILE_INDEX_CALLBACK);
sb.append("\n");
sb.append("</root>");
String result="";
try {
String endpoint = EMRQualityControl;
String[] subStrs = endpoint.split("=");
String url = "";
String subStr ="";
url = subStrs[0];
if(subStrs.length>1){
subStr = getURLEncoderString(subStrs[1]);
}
endpoint = url+"="+subStr;
Service service = new Service();
Call call = null;
try {
call = (Call) service.createCall();
} catch (ServiceException e) {
}
call.setTargetEndpointAddress(endpoint);
call.setOperationName(new QName("http://bjgoodwillcis.com", "XMLMessageServer"));
call.addParameter(EMRQualityControlParamName, XMLType.XSD_STRING, ParameterMode.IN);//接口的参数
call.setReturnType(XMLType.XSD_STRING);//设置返回类型
try {
result = (String) call.invoke(new Object[]{sb.toString()});
} catch (RemoteException e) {
e.printStackTrace();
result = e.getMessage();
System.err.println(result);
}
} catch (Exception e) {
System.err.println(e.toString());
}
return result;
}
public static String getURLEncoderString(String str) {
String result = "";
if (null == str) {
return "";
}
try {
result = java.net.URLEncoder.encode(str, "UTF-8");
} catch (UnsupportedEncodingException e) {
e.printStackTrace();
}
return result;
}
}

@ -77,6 +77,20 @@ public interface Archive_DetailMapper {
*/
List<Archive_Detail> selectByCol(Archive_Detail record);
/**
* ()
* @param record
* @return
*/
int selectChildByClo(Archive_Detail_Vo record);
/**
*
* @param record
* @return
*/
List<Archive_Detail_Vo> selectChild(Archive_Detail_Vo record);
/**
*
* @param record
@ -91,6 +105,13 @@ public interface Archive_DetailMapper {
*/
List<Archive_Detail_Vo> detailByClo(Archive_Detail_Vo record);
/**
*
* @param record
* @return
*/
List<Archive_Detail_Vo> detailWithChildByClo(Archive_Detail_Vo record);
/**
* Source
* @param record

@ -70,6 +70,13 @@ public interface Archive_MasterMapper {
*/
List<Archive_Master_Vo> selectByUnfile(Archive_Master_Vo record);
/**
* (inpNoB)
* @param record
* @return
*/
List<Archive_Master_Vo> selectByUnfileNew(Archive_Master_Vo record);
//List<Archive_Master> selectByUnfile2(Archive_Master_Vo record);
/**
* 7

@ -0,0 +1,153 @@
package com.emr.dao;
import com.emr.entity.*;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface Sign_ListMapper {
/**
* Vo
* @return
*/
List<Sign_List_Vo> selectSignList(Sign_List_Vo signListVo);
/**
*
* @return
*/
List<Sign_List> selectSignListWith(Sign_List signList);
/**
* id
* @param id
* @return
*/
Sign_List selectSignListById(Integer id);
/**
*
* @param signList
* @return
*/
int insertSignList(Sign_List signList);
/**
*
* @param signList
* @return
*/
int updateSignList(Sign_List signList);
/**
* id
* @param id
* @return
*/
int deleteSignListById(Integer id);
/**
* id
* @param ids
* @return
*/
int deleteSignListByIds(String ids);
/**
*
* @param record
* @return
int updateCloById(Archive_Detail record);
*//**
*
* @param record
* @return
*//*
int updateByPrimaryKey(Archive_Detail record);
*//**
*
* @param record
* @return
*//*
List<Archive_Detail> selectByColm(Archive_Detail record);
*//**
*
* @param record
* @return
*//*
List<Archive_Detail> selectByCol(Archive_Detail record);
*//**
* ()
* @param record
* @return
*//*
int selectChildByClo(Archive_Detail_Vo record);
*//**
*
* @param record
* @return
*//*
List<Archive_Detail_Vo> selectChild(Archive_Detail_Vo record);
*//**
*
* @param record
* @return
*//*
List<Archive_Detail_Vo> selectByClo(Archive_Detail_Vo record);
*//**
*
* @param record
* @return
*//*
List<Archive_Detail_Vo> detailByClo(Archive_Detail_Vo record);
*//**
*
* @param record
* @return
*//*
List<Archive_Detail_Vo> detailWithChildByClo(Archive_Detail_Vo record);
*//**
* Source
* @param record
* @return
*//*
List<Archive_Detail_Vo> sourceByClo(Archive_Detail_Vo record);
*//**
*
* @param record
* @return
*//*
List<Archive_Detail> selectByIdStr(Archive_Detail record);
*//**
* archive_detail
* @param record
* @return
*//*
List<Archive_Detail> selectByCol2(Archive_Detail record);
*//**
* masterid
* @param patientId
* @param assortIds
* @return
*//*
List<Archive_Detail> selectTypeTreeByPatientIdAndAssortIds(@Param("patientId") String patientId, @Param("assortIds") String assortIds);
*//**
* flag=0,id
* @param record
* @return
*//*
List<Archive_Detail> selectByIdStr1(Archive_Detail record);*/
}

@ -0,0 +1,246 @@
/**
* Copyright (C), 2015-2019
* Author: HJL
* Date: 2019/9/2 14:22
* Description:
*/
package com.emr.entity;
import java.math.BigDecimal;
public class Sign_List {
private Long id;
/**
* masterpatient_id
*/
private String pid;
/**
*
*/
private String createdtime;
/**
*
*/
private String otherInfo;
private String masterID;
/**
*
*/
private String detailID;
/**
*
*/
private String dTime;
/**
* 1 2
*/
private Integer sysFlag;
/**
*
*/
private String c1;
/**
*
*/
private String c2;
/**
*
*/
private String c3;
private String c4;
private String c5;
private BigDecimal n1;
private BigDecimal n2;
private BigDecimal n3;
/**
*
*/
private String t1;
private String t2;
private String T3;
private String isFullText;
/**
* 1 2
*/
private Integer isSign;
public String getPid() {
return pid;
}
public void setPid(String pid) {
this.pid = pid;
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getCreatedtime() {
return createdtime;
}
public void setCreatedtime(String createdtime) {
this.createdtime = createdtime;
}
public String getOtherInfo() {
return otherInfo;
}
public void setOtherInfo(String otherInfo) {
this.otherInfo = otherInfo;
}
public String getMasterID() {
return masterID;
}
public void setMasterID(String masterID) {
this.masterID = masterID;
}
public String getDetailID() {
return detailID;
}
public void setDetailID(String detailID) {
this.detailID = detailID;
}
public String getdTime() {
return dTime;
}
public void setdTime(String dTime) {
this.dTime = dTime;
}
public Integer getSysFlag() {
return sysFlag;
}
public void setSysFlag(Integer sysFlag) {
this.sysFlag = sysFlag;
}
public String getC1() {
return c1;
}
public void setC1(String c1) {
this.c1 = c1;
}
public String getC2() {
return c2;
}
public void setC2(String c2) {
this.c2 = c2;
}
public String getC3() {
return c3;
}
public void setC3(String c3) {
this.c3 = c3;
}
public String getC4() {
return c4;
}
public void setC4(String c4) {
this.c4 = c4;
}
public String getC5() {
return c5;
}
public void setC5(String c5) {
this.c5 = c5;
}
public BigDecimal getN1() {
return n1;
}
public void setN1(BigDecimal n1) {
this.n1 = n1;
}
public BigDecimal getN2() {
return n2;
}
public void setN2(BigDecimal n2) {
this.n2 = n2;
}
public BigDecimal getN3() {
return n3;
}
public void setN3(BigDecimal n3) {
this.n3 = n3;
}
public String getT1() {
return t1;
}
public void setT1(String t1) {
this.t1 = t1;
}
public String getT2() {
return t2;
}
public void setT2(String t2) {
this.t2 = t2;
}
public String getT3() {
return T3;
}
public void setT3(String t3) {
T3 = t3;
}
public String getIsFullText() {
return isFullText;
}
public void setIsFullText(String isFullText) {
this.isFullText = isFullText;
}
public Integer getIsSign() {
return isSign;
}
public void setIsSign(Integer isSign) {
this.isSign = isSign;
}
}

@ -0,0 +1,360 @@
/**
* Copyright (C), 2015-2019
* Author: HJL
* Date: 2019/9/2 14:22
* Description:
*/
package com.emr.entity;
import java.math.BigDecimal;
public class Sign_List_Vo {
private String id;
/**
* masterpatient_id
*/
private String pid;
/**
*
*/
private String createdtime;
/**
*
*/
private String otherInfo;
private String masterID;
/**
*
*/
private String detailID;
/**
*
*/
private String dTime;
/**
* 1 2
*/
private Integer sysFlag;
/**
*
*/
private String c1;
/**
*
*/
private String c2;
/**
*
*/
private String c3;
private String c4;
private String c5;
private BigDecimal n1;
private BigDecimal n2;
private BigDecimal n3;
/**
*
*/
private String t1;
private String t2;
private String T3;
private String isFullText;
/**
* 1 2
*/
private Integer isSign;
/**
*
*/
private String inpNo;
/**
*
*/
private String visitId;
/**
*
*/
private String name;
/**
*
*/
private String deptName;
/**
*
*/
private String dischargeDateTime;
/**
*
*/
private String isscaned;
/**
*
*/
private String num;
/**
*
*/
private String startSignDate;
/**
*
*/
private String endSignDate;
public String getNum() {
return num;
}
public void setNum(String num) {
this.num = num;
}
public String getStartSignDate() {
return startSignDate;
}
public void setStartSignDate(String startSignDate) {
this.startSignDate = startSignDate;
}
public String getEndSignDate() {
return endSignDate;
}
public void setEndSignDate(String endSignDate) {
this.endSignDate = endSignDate;
}
public String getInpNo() {
return inpNo;
}
public void setInpNo(String inpNo) {
this.inpNo = inpNo;
}
public String getVisitId() {
return visitId;
}
public void setVisitId(String visitId) {
this.visitId = visitId;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getDeptName() {
return deptName;
}
public void setDeptName(String deptName) {
this.deptName = deptName;
}
public String getDischargeDateTime() {
return dischargeDateTime;
}
public void setDischargeDateTime(String dischargeDateTime) {
this.dischargeDateTime = dischargeDateTime;
}
public String getIsscaned() {
return isscaned;
}
public void setIsscaned(String isscaned) {
this.isscaned = isscaned;
}
public String getPid() {
return pid;
}
public void setPid(String pid) {
this.pid = pid;
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getCreatedtime() {
return createdtime;
}
public void setCreatedtime(String createdtime) {
this.createdtime = createdtime;
}
public String getOtherInfo() {
return otherInfo;
}
public void setOtherInfo(String otherInfo) {
this.otherInfo = otherInfo;
}
public String getMasterID() {
return masterID;
}
public void setMasterID(String masterID) {
this.masterID = masterID;
}
public String getDetailID() {
return detailID;
}
public void setDetailID(String detailID) {
this.detailID = detailID;
}
public String getdTime() {
return dTime;
}
public void setdTime(String dTime) {
this.dTime = dTime;
}
public Integer getSysFlag() {
return sysFlag;
}
public void setSysFlag(Integer sysFlag) {
this.sysFlag = sysFlag;
}
public String getC1() {
return c1;
}
public void setC1(String c1) {
this.c1 = c1;
}
public String getC2() {
return c2;
}
public void setC2(String c2) {
this.c2 = c2;
}
public String getC3() {
return c3;
}
public void setC3(String c3) {
this.c3 = c3;
}
public String getC4() {
return c4;
}
public void setC4(String c4) {
this.c4 = c4;
}
public String getC5() {
return c5;
}
public void setC5(String c5) {
this.c5 = c5;
}
public BigDecimal getN1() {
return n1;
}
public void setN1(BigDecimal n1) {
this.n1 = n1;
}
public BigDecimal getN2() {
return n2;
}
public void setN2(BigDecimal n2) {
this.n2 = n2;
}
public BigDecimal getN3() {
return n3;
}
public void setN3(BigDecimal n3) {
this.n3 = n3;
}
public String getT1() {
return t1;
}
public void setT1(String t1) {
this.t1 = t1;
}
public String getT2() {
return t2;
}
public void setT2(String t2) {
this.t2 = t2;
}
public String getT3() {
return T3;
}
public void setT3(String t3) {
T3 = t3;
}
public String getIsFullText() {
return isFullText;
}
public void setIsFullText(String isFullText) {
this.isFullText = isFullText;
}
public Integer getIsSign() {
return isSign;
}
public void setIsSign(Integer isSign) {
this.isSign = isSign;
}
}

@ -24,6 +24,22 @@ public interface Archive_DetailService {
*/
List<Archive_Detail_Vo> selectByClo(Archive_Detail_Vo record);
/**
* ()
*
* @param record
* @return
*/
Integer selectChildByClo(Archive_Detail_Vo record);
/**
*
*
* @param record
* @return
*/
OffsetLimitPage selectChild(Archive_Detail_Vo record, Integer offset, Integer limit);
/**
*
*

@ -0,0 +1,65 @@
/**
* Copyright (C), 2015-2019
* Author: HJL
* Date: 2019/7/19 15:27
* Description:
*/
package com.emr.service;
import com.emr.entity.*;
import java.util.List;
public interface Sign_ListService {
/**
* id
* @param id
* @return
*/
Sign_List selectSignListById(Integer id);
/**
* Vo
* @param
* @return
*/
OffsetLimitPage selectSignList(Sign_List_Vo signListVo, Integer offset, Integer limit);
/**
*
* @param
* @return
*/
List<Sign_List> selectSignListWith(Sign_List signList);
/**
*
* @param
* @return
*/
int insertSignList(Sign_List signList);
/**
*
* @param
* @return
*/
int updateSignList(Sign_List signList);
/**
*
*
* @param
* @return
*/
int deleteSignListById(Integer id);
/**
*
*
* @param
* @return
*/
int deleteSignListByIds(String ids);
}

@ -7,6 +7,7 @@
package com.emr.service.ipml;
import com.emr.dao.Archive_DetailMapper;
import com.emr.dao.Archive_MasterMapper;
import com.emr.entity.Archive_Detail;
import com.emr.entity.Archive_Detail_Vo;
import com.emr.entity.Emr_Fault_Vo;
@ -31,6 +32,9 @@ public class Archive_DetailServiceImpl implements Archive_DetailService {
@Autowired
private Archive_DetailMapper archiveDetailMapper;
@Autowired
private Archive_MasterMapper archiveMasterMapper;
@Override
public List<Archive_Detail_Vo> selectByClo(Archive_Detail_Vo record) {
@ -38,12 +42,40 @@ public class Archive_DetailServiceImpl implements Archive_DetailService {
}
@Override
public OffsetLimitPage detailByClo(Archive_Detail_Vo record, Integer offset, Integer limit) {
public Integer selectChildByClo(Archive_Detail_Vo record) {
return archiveDetailMapper.selectChildByClo(record);
}
@Override
public OffsetLimitPage selectChild(Archive_Detail_Vo record, Integer offset, Integer limit) {
PageHelper.offsetPage(offset, limit);
List<Archive_Detail_Vo> list = archiveDetailMapper.detailByClo(record);
List<Archive_Detail_Vo> list = archiveDetailMapper.selectChild(record);
for(Archive_Detail_Vo returnList:list){
//改变新生儿数据的title新格式为title+inpNo
returnList=changeTitle(returnList);
}
return new OffsetLimitPage((Page) list);
}
@Override
public OffsetLimitPage detailByClo(Archive_Detail_Vo record, Integer offset, Integer limit) {
PageHelper.offsetPage(offset, limit);
//如果是进入新打开的页面,就把新生儿数据加上
if((record.getAssortId()==null||"".equals(record.getAssortId()))&&(!"".equals(record.getPatientId())&&record.getPatientId()!=null)){
List<Archive_Detail_Vo> list1= archiveDetailMapper.detailWithChildByClo(record);
for(Archive_Detail_Vo returnList:list1){
if(!record.getPatientId().equals(returnList.getMasterid())){
//改变新生儿数据的title新格式为title+inpNo
returnList=changeTitle(returnList);
}
}
return new OffsetLimitPage((Page) list1);
}else{
List<Archive_Detail_Vo> list = archiveDetailMapper.detailByClo(record);
return new OffsetLimitPage((Page) list);
}
}
@Override
public List<Archive_Detail_Vo> sourceByClo(Archive_Detail_Vo record) {
return archiveDetailMapper.sourceByClo(record);
@ -176,6 +208,28 @@ public class Archive_DetailServiceImpl implements Archive_DetailService {
//删除缓存` ` `
session.removeAttribute("showRecord");
}
public List<Archive_Detail_Vo> getList(List<Archive_Detail_Vo> record){
List<Archive_Detail_Vo> list =new ArrayList<Archive_Detail_Vo>();
for (Archive_Detail_Vo newrecord:record){
List<Archive_Detail_Vo> returnList = archiveDetailMapper.detailByClo(newrecord);
for (Archive_Detail_Vo newReturnList:returnList){
list.add(newReturnList);
}
}
return list;
}
public Archive_Detail_Vo changeTitle(Archive_Detail_Vo newList){
//改变title变成title+inpNo
if (archiveMasterMapper.selectById(newList.getMasterid()) != null) {
String inpNo = archiveMasterMapper.selectById(newList.getMasterid()).getInpNo();
if (inpNo != null && !"".equals(inpNo)) {
newList.setTitle(newList.getTitle() +"_"+ inpNo);
}
}
return newList;
}
}

@ -155,7 +155,7 @@ public class Archive_MasterServiceImpl implements Archive_MasterService {
@Override
public OffsetLimitPage selectByUnfile(Archive_Master_Vo archiveMasterVo, Integer offset, Integer limit) {
PageHelper.offsetPage(offset, limit);
List<Archive_Master_Vo> list = archiveMasterMapper.selectByUnfile(archiveMasterVo);
List<Archive_Master_Vo> list = archiveMasterMapper.selectByUnfileNew(archiveMasterVo);
JSONArray powerUsers = powerUserService.getPowerUserList("1");
List<JSONObject> powerUserList = JSONArray.parseArray(powerUsers.toJSONString(), JSONObject.class);

@ -0,0 +1,81 @@
/**
* Copyright (C), 2015-2019
* Author: HJL
* Date: 2019/7/19 15:39
* Description:
*/
package com.emr.service.ipml;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.emr.dao.Archive_MasterMapper;
import com.emr.dao.Sign_ListMapper;
import com.emr.entity.*;
import com.emr.service.Archive_MasterService;
import com.emr.service.Emr_DictionaryService;
import com.emr.service.PowerUserService;
import com.emr.service.Sign_ListService;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import com.google.common.base.Function;
import com.google.common.collect.Maps;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
import java.util.Map;
@Service
public class Sign_ListServiceImpl implements Sign_ListService {
@Autowired
private Sign_ListMapper signListMapper;
@Autowired
private Emr_DictionaryService emrDictionaryService;
@Autowired
private PowerUserService powerUserService;
@Override
public OffsetLimitPage selectSignList(Sign_List_Vo signListVo, Integer offset, Integer limit) {
PageHelper.offsetPage(offset, limit);
List<Sign_List_Vo> list =signListMapper.selectSignList(signListVo);
return new OffsetLimitPage((Page) list);
}
@Override
public List<Sign_List> selectSignListWith(Sign_List signList) {
return signListMapper.selectSignListWith(signList);
}
@Override
public Sign_List selectSignListById(Integer id) {
return signListMapper.selectSignListById(id);
}
@Override
public int insertSignList(Sign_List signList) {
return signListMapper.insertSignList(signList);
}
@Override
public int updateSignList(Sign_List signList) {
return signListMapper.updateSignList(signList);
}
@Override
public int deleteSignListById(Integer id) {
return signListMapper.deleteSignListById(id);
}
@Override
public int deleteSignListByIds(String ids) {
return signListMapper.deleteSignListByIds(ids);
}
}

@ -41,10 +41,50 @@
<result column="create_time" jdbcType="NCHAR" property="createTime"/>
</resultMap>
<resultMap id="BaseResultMap3" type="java.lang.Integer">
<result column="pageNum" jdbcType="INTEGER"/>
</resultMap>
<sql id="Base_Column_List">
id, PDF_PATH, MasterID, UpLoadDateTime, AssortID, Source, SubAssort, Title, flag,
Sys,page_number,recover_pdf_path
</sql>
<select id="selectChildByClo" resultMap="BaseResultMap3" parameterType="com.emr.entity.Archive_Detail_Vo">
select sum(s.pageNum) pageNum from
(select count(*) pageNum from
archive_detail
where MasterID in (select id from archive_master where inp_no like(
select inp_no from archive_master where 1=1
<if test="patientId != null and patientId != ''">
and id=#{patientId,jdbcType=VARCHAR}
</if>)
and id!=#{patientId,jdbcType=VARCHAR}
)
<if test="assortId != null and assortId != ''">
and AssortID=#{assortId,jdbcType=VARCHAR}
</if>
<if test="flag != null">
and flag = #{flag,jdbcType=NVARCHAR}
</if>
) s
</select>
<select id="selectChild" resultMap="BaseResultMap2" parameterType="com.emr.entity.Archive_Detail_Vo">
select
<include refid="Base_Column_List"/>
from
archive_detail
where MasterID in (select id from archive_master where inp_no like(
select inp_no from archive_master where 1=1
<if test="patientId != null and patientId != ''">
and id=#{patientId,jdbcType=VARCHAR}
</if>)
and id!=#{patientId,jdbcType=VARCHAR}
)
<if test="flag != null">
and flag = #{flag,jdbcType=NVARCHAR}
</if>
</select>
<select id="selectByClo" resultMap="BaseResultMap2" parameterType="com.emr.entity.Archive_Detail_Vo">
SELECT z.assort_id,z.assort_name,z.assort_sort,z.print_flag,s.pageNum
from(select AssortID,count(*) pageNum from
@ -105,6 +145,52 @@
ORDER BY z.assort_sort,t.Title,t.page_number,t.UpLoadDateTime
</select>
<select id="detailWithChildByClo" resultMap="BaseResultMap2" parameterType="com.emr.entity.Archive_Detail_Vo">
select
t.MasterID,t.id,t.PDF_PATH,t.Source,CONVERT(varchar(100),t.UpLoadDateTime, 120) UpLoadDateTime,t.SubAssort,t.Title,t.flag,t.page_number,
z.assort_id,z.assort_name,z.assort_sort,z.print_flag,s.create_time,s.cmt_doctor_date,s.cmt_nurse_date,s.ArchiveState
from zd_assort z
left join archive_detail t
on z.assort_id=t.AssortID
LEFT JOIN(
select top 1 f.id,m.create_time,f.cmt_doctor_date,f.cmt_nurse_date,f.ArchiveState from
emr_fault_detail m
left join archive_master f
on m.archive_detail_id=f.id
where 1=1 and m.back_flag= 3
<if test="patientId != null">
and f.id in (select id from archive_master where inp_no like(
select inp_no from archive_master where 1=1
<if test="patientId != null and patientId != ''">
and id=#{patientId,jdbcType=VARCHAR}
</if>)
)
</if>
) s
on s.id=t.MasterID
where 1=1
<if test="patientId != null">
and t.MasterID in (select id from archive_master where inp_no like(
select inp_no from archive_master where 1=1
<if test="patientId != null and patientId != ''">
and id=#{patientId,jdbcType=VARCHAR}
</if>)
)
</if>
<if test="source != null and source != '' and source!='-1'">
and t.Source=#{source,jdbcType=VARCHAR}
</if>
<if test="source=='-1'">
and t.Source is null
</if>
<if test="flag != null and flag != ''">
and t.flag = #{flag,jdbcType=NVARCHAR}
</if>
<if test="title != null and title != ''">
and t.title like '%'+#{title,jdbcType=VARCHAR}+'%'
</if>
</select>
<select id="sourceByClo" resultMap="BaseResultMap2" parameterType="com.emr.entity.Archive_Detail_Vo">
select DISTINCT t.Source
from zd_assort z

@ -159,6 +159,7 @@
typeCode='dept_code' )) f
on m.dept_name=f.code
where 1=1
and patindex('%B%',m.inp_no) = 0
<if test="deptAdmissionTo!= null and deptAdmissionTo!= ''">
and (m.dept_admission_to in
<foreach item="item" collection="deptAdmissionTo.split(',')" open="(" separator="," close=")">
@ -268,6 +269,7 @@
LEFT JOIN(select archive_detail_id,count(*) numb from emr_fault_detail where 1=1 and content!='' and content is not null and back_flag is not null GROUP BY archive_detail_id) s
on m.id=s.archive_detail_id
where 1=1 and ArchiveState in('归档中','提交','主任退回')
and patindex('%B%',m.inp_no) = 0
<if test="emrCmit!=null and emrCmit!=''">
<if test="emrCmit==1">
and m.emr_doctor_cmt='提交'
@ -381,6 +383,7 @@
LEFT JOIN(select archive_detail_id,count(*) numb from emr_fault_detail where 1=1 and content!='' and content is not null and back_flag is not null GROUP BY archive_detail_id) s
on m.id=s.archive_detail_id
where 1=1 and ArchiveState in('初审')
and patindex('%B%',m.inp_no) = 0
<if test="id != null and id != ''">
and m.id = #{id,jdbcType=NVARCHAR}
</if>
@ -617,6 +620,130 @@
ORDER BY discharge_date_time desc
</select>
<select id="selectByUnfileNew" parameterType="com.emr.entity.Archive_Master_Vo" resultMap="BaseResultMap2">
select m.id,m.patient_id,m.inp_no,m.visit_id,m.name,m.sex,f.name
dept_name,CONVERT(varchar(10),m.discharge_date_time, 120) discharge_date_time,m.ArchiveState,CONVERT(varchar(10),m.admission_date_time, 120) admission_date_time,d.name dept_admission_to
,m.check_doctor,m.checked_datetime,m.checked_doctor,m.LockInfo,m.DOCTOR_IN_CHARGE,m.ID_NO,m.DISCHARGE_DISPOSITION,m.dept_code_lend,m.isscaned,
m.cmt_doctor,m.cmt_nurse,m.doctor_name,m.nurse_name,m.cmt_doctor_date,m.cmt_nurse_date,m.emr_doctor_cmt,m.emr_nure_cmt,m.death_flag,m.is_scanning,
m.bed_number,ISNULL(s.numb, 0) numb
from archive_master m
LEFT JOIN (select code,name from emr_dictionary where parent_id=(select id from emr_dictionary where
typeCode='dept_code' )) d
on m.dept_admission_to=d.code
LEFT JOIN (select code,name from emr_dictionary where parent_id=(select id from emr_dictionary where
typeCode='dept_code' )) f
on m.dept_name=f.code
LEFT JOIN(select archive_detail_id,count(*) numb from emr_fault_detail where 1=1 and content!='' and content is not null and back_flag is not null GROUP BY archive_detail_id) s
on m.id=s.archive_detail_id
where 1=1
and patindex('%B%',m.inp_no) = 0
and m.ArchiveState not in('作废')
<if test="id != null and id != ''">
and m.id = #{id,jdbcType=NVARCHAR}
</if>
<if test="inpNo != null and inpNo != ''">
and m.inp_no like '%'+#{inpNo,jdbcType=NCHAR}+'%'
</if>
<if test="bedNumber != null and bedNumber != ''">
and m.bed_number like '%'+#{bedNumber,jdbcType=NVARCHAR}+'%'
</if>
<if test="visitId != null and visitId != ''">
and m.visit_id=#{visitId,jdbcType=NCHAR}
</if>
<if test="name != null and name != ''">
and m.name like '%'+#{name,jdbcType=NCHAR}+'%'
</if>
<if test="archivestate != null and archivestate != ''">
and m.ArchiveState in
<foreach item="item" collection="archivestate.split(',')" open="(" separator="," close=")">
#{item}
</foreach>
</if>
<if test="idNo != null and idNo != ''">
and m.ID_NO like '%'+#{idNo,jdbcType=NCHAR}+'%'
</if>
<if test="sex != null">
and m.sex = #{sex,jdbcType=NVARCHAR}
</if>
<if test="deptName!= null and deptName!= ''">
and m.dept_name in
<foreach item="item" collection="deptName.split(',')" open="(" separator="," close=")">
#{item}
</foreach>
</if>
<if test="deptAdmissionTo != null and deptAdmissionTo!=''">
and m.dept_admission_to in
<foreach item="item" collection="deptAdmissionTo.split(',')" open="(" separator="," close=")">
#{item}
</foreach>
</if>
<!--<if test="deptAdmissionTo != null and deptAdmissionTo!=''">-->
<!--and m.dept_admission_to = #{deptAdmissionTo,jdbcType=NVARCHAR}-->
<!--</if>-->
<if test="dischargeDateTime != null">
and m.discharge_date_time = #{dischargeDateTime,jdbcType=NVARCHAR}
</if>
<choose>
<when test="startDateTo != null and startDateTo != '' and endDateTo != null and endDateTo != ''">
and m.discharge_date_time between CONVERT(VARCHAR(10),#{startDateTo,jdbcType=NCHAR},120) and
#{endDateTo,jdbcType=NCHAR}+ ' 23:59:59'
</when>
<when test="startDateTo != null and startDateTo != ''">
and m.discharge_date_time >= CONVERT(VARCHAR(10),#{startDateTo,jdbcType=NCHAR},120)
</when>
<when test="endDateTo != null and endDateTo != ''">
and m.discharge_date_time &lt;= #{endDateTo,jdbcType=NCHAR}+ ' 23:59:59'
</when>
</choose>
<choose>
<when test="startDate != null and startDate != '' and endDate != null and endDate != ''">
and m.admission_date_time between CONVERT(VARCHAR(10),#{startDate,jdbcType=NCHAR},120) and
#{endDate,jdbcType=NCHAR}+ ' 23:59:59'
</when>
<when test="startDate != null and startDate != ''">
and m.admission_date_time >= CONVERT(VARCHAR(10),#{startDate,jdbcType=NCHAR},120)
</when>
<when test="endDate != null and endDate != ''">
and m.admission_date_time &lt;= #{endDate,jdbcType=NCHAR}+ ' 23:59:59'
</when>
</choose>
<if test="checkDoctor != null">
and m.check_doctor = #{checkDoctor,jdbcType=NVARCHAR}
</if>
<if test="checkedDoctor != null">
and m.checked_doctor = #{checkedDoctor,jdbcType=NVARCHAR}
</if>
<if test="checkDatetime != null">
and m.check_datetime = #{checkDatetime,jdbcType=NVARCHAR}
</if>
<if test="checkedDatetime != null">
and m.checked_datetime = #{checkedDatetime,jdbcType=NVARCHAR}
</if>
<if test="lockinfo != null">
and m.LockInfo = #{lockinfo,jdbcType=NVARCHAR}
</if>
<if test="doctorInCharge != null">
and m.DOCTOR_IN_CHARGE = #{doctorInCharge,jdbcType=NVARCHAR}
</if>
<if test="dischargeDisposition != null">
and m.DISCHARGE_DISPOSITION = #{dischargeDisposition,jdbcType=NVARCHAR}
</if>
<if test="deptCodeLend != null">
and m.dept_code_lend = #{deptCodeLend,jdbcType=NVARCHAR}
</if>
<if test="isscaned != null and isscaned != ''">
and m.isscaned = #{isscaned,jdbcType=NVARCHAR}
</if>
<if test="isScanning != null and isScanning != ''">
and m.is_scanning = #{isScanning,jdbcType=NVARCHAR}
</if>
<if test="deathFlag != null and deathFlag != ''">
and m.death_flag = #{deathFlag,jdbcType=NVARCHAR}
</if>
ORDER BY discharge_date_time desc
</select>
<select id="selectByCmtCol" parameterType="com.emr.entity.Archive_Master_Vo" resultMap="BaseResultMap2">
select m.id,m.patient_id,m.inp_no,m.visit_id,m.name,m.sex,f.name
dept_name,CONVERT(varchar(10),m.discharge_date_time, 120) discharge_date_time,m.ArchiveState,CONVERT(varchar(10),m.admission_date_time, 120) admission_date_time,d.name dept_admission_to
@ -632,6 +759,7 @@
LEFT JOIN(select archive_detail_id,count(*) numb from emr_fault_detail where 1=1 and content!='' and content is not null and back_flag is not null GROUP BY archive_detail_id) s
on m.id=s.archive_detail_id
where 1=1 and ArchiveState in('提交','主任退回','归档中','复审退回')
and patindex('%B%',m.inp_no) = 0
<if test="id != null and id != ''">
and m.id = #{id,jdbcType=NVARCHAR}
</if>
@ -1188,10 +1316,10 @@
ORDER BY f.handle_time desc
</select>
<select id="selectOverdue" parameterType="com.emr.entity.Archive_Master_Vo" resultMap="BaseResultMap2">
select m.id,m.patient_id, m.inp_no,m.visit_id,m.name,m.discharge_date_time
select m.id,m.patient_id, m.inp_no,m.visit_id,m.name,CONVERT(varchar(10),m.discharge_date_time, 120)discharge_date_time
,CONVERT(varchar(10),m.admission_date_time, 120)admission_date_time,t.name dept_admission_to,g.name dept_name,m.DOCTOR_IN_CHARGE,m.death_flag,
d.*,[dbo].[getWorkday](m.discharge_date_time,d.create_time) overdue from archive_master m
LEFT JOIN(select master_id archive_detail_id,handle_time create_time,handle_name first_instance from (
LEFT JOIN(select master_id archive_detail_id,handle_time,CONVERT(varchar(10),create_time, 120) create_time,handle_name first_instance from (
select ROW_NUMBER() over(partition by master_id order by handle_time asc) RowNum
,Archive_Master_Following.*
from Archive_Master_Following where 1=1 and following_type ='5' ) as t1 where 1=1 and RowNum = 1

@ -0,0 +1,232 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.emr.dao.Sign_ListMapper">
<!-- 通用查询映射结果 -->
<resultMap id="BaseResultMap" type="com.emr.entity.Sign_List">
<id column="ID" property="id"/>
<result column="pid" property="pid"/>
<result column="createdtime" property="createdtime"/>
<result column="otherInfo" property="otherInfo"/>
<result column="masterID" property="masterID"/>
<result column="detailID" property="detailID"/>
<result column="dTime" property="dTime"/>
<result column="sysFlag" property="sysFlag"/>
<result column="C1" property="c1"/>
<result column="C2" property="c2"/>
<result column="C3" property="c3"/>
<result column="C4" property="c4"/>
<result column="C5" property="c5"/>
<result column="N1" property="n1"/>
<result column="N2" property="n2"/>
<result column="N3" property="n3"/>
<result column="T1" property="t1"/>
<result column="T2" property="t2"/>
<result column="T3" property="t3"/>
<result column="IsFullText" property="isFullText"/>
</resultMap>
<resultMap id="BaseResultMapNew" type="com.emr.entity.Sign_List_Vo">
<id column="ID" property="id"/>
<result column="pid" property="pid"/>
<result column="createdtime" property="createdtime"/>
<result column="otherInfo" property="otherInfo"/>
<result column="masterID" property="masterID"/>
<result column="detailID" property="detailID"/>
<result column="dTime" property="dTime"/>
<result column="sysFlag" property="sysFlag"/>
<result column="C1" property="c1"/>
<result column="C2" property="c2"/>
<result column="C3" property="c3"/>
<result column="C4" property="c4"/>
<result column="C5" property="c5"/>
<result column="N1" property="n1"/>
<result column="N2" property="n2"/>
<result column="N3" property="n3"/>
<result column="T1" property="t1"/>
<result column="T2" property="t2"/>
<result column="T3" property="t3"/>
<result column="IsFullText" property="isFullText"/>
<result column="inp_no" property="inpNo" />
<result column="visit_id" property="visitId" />
<result column="name" property="name" />
<result column="dept_name" property="deptName" />
<result column="discharge_date_time" property="dischargeDateTime" />
<result column="isscaned" jdbcType="NVARCHAR" property="isscaned" />
<result column="num" property="num" />
</resultMap>
<sql id="Base_Column_List">
select ID, pid, createdtime, otherInfo, masterID, detailID, dTime,sysFlag, C1, C2, C3, C4, C5, N1, N2, N3, T1,
T2,T3,IsFullText from archive_other
</sql>
<select id="selectSignList" parameterType="Sign_List_Vo" resultMap="BaseResultMapNew">
select
DISTINCT m.id, s.pid,s.createdtime, s.otherInfo, s.masterID, s.detailID, s.dTime,s.sysFlag, s.C1, s.C2, s.C3, s.C4, s.C5, s.N1, s.N2, s.N3, s.T1,
s.T2,s.T3,s.IsFullText,m.inp_no,m.visit_id,m.name,d.name as deptName,m.discharge_date_time,m.isscaned,(select COUNT(*) from archive_other where archive_other.pid=s.pid)as num
from archive_other s
left join archive_master m
on s.masterID=m.id
LEFT JOIN emr_dictionary d
on m.dept_admission_to=d.code
where s.id in(
(select top 1 id from archive_other a where a.pid=s.pid and a.masterID=s.masterID ORDER BY createdtime desc)
)
<if test="id != null and id != ''"> and s.ID = #{id}</if>
<if test="pid != null and pid != ''"> and s.pid = #{pid}</if>
<choose>
<when test="startSignDate != null and startSignDate != '' and endSignDate != null and endSignDate != ''">
and s.createdtime between CONVERT(VARCHAR(10),#{startSignDate,jdbcType=NCHAR},120) and
#{endSignDate,jdbcType=NCHAR}+ ' 23:59:59'
</when>
<when test="startSignDate != null and startSignDate != ''">
and s.createdtime >= CONVERT(VARCHAR(10),#{startDate,jdbcType=NCHAR},120)
</when>
<when test="endSignDate != null and endSignDate != ''">
and s.createdtime &lt;= #{endSignDate,jdbcType=NCHAR}+ ' 23:59:59'
</when>
</choose>
<if test="otherInfo != null and otherInfo != ''"> and s.otherInfo = #{otherInfo}</if>
<if test="masterID != null and masterID != ''"> and s.masterID = #{masterID}</if>
<if test="detailID != null and detailID != ''"> and s.detailID = #{detailID}</if>
<if test="dTime != null and dTime != ''"> and s.dTime = #{dTime}</if>
<if test="sysFlag != null and sysFlag != ''"> and s.sysFlag = #{sysFlag}</if>
<if test="c1 != null and c1 != ''"> and s.C1 = #{c1}</if>
<if test="c2 != null and c2 != ''"> and s.C2 = #{c2}</if>
<if test="c3 != null and c3 != ''"> and s.C3 = #{c3}</if>
<if test="c4 != null and c4 != ''"> and s.C4 = #{c4}</if>
<if test="c5 != null and c5 != ''"> and s.C5 = #{c5}</if>
<if test="n1 != null and n1 != '' "> and s.N1 = #{n1}</if>
<if test="n2 != null and n2 != ''"> and s.N2 = #{n2}</if>
<if test="n3 != null and n3 != ''"> and s.N3 = #{n3} </if>
<if test="t1 != null and t1 != ''"> and s.T1 = #{t1}</if>
<if test="t2 != null and t2 != ''"> and s.T2 = #{t2}</if>
<if test="t3 != null and t3 != ''"> and s.T3 = #{t3}</if>
<if test="isFullText != null and isFullText != ''"> and s.IsFullText = #{isFullText}</if>
<if test="inpNo != null and inpNo != ''"> and m.inp_no = #{inpNo}</if>
<if test="visitId != null and visitId != ''"> and m.visit_id = #{visitId}</if>
<if test="name != null and name != ''"> and m.name like '%'+#{name}+'%'</if>
ORDER BY s.dTime desc
</select>
<select id="selectSignListWith" parameterType="Sign_List" resultMap="BaseResultMap">
<include refid="Base_Column_List"/>
<where>
<if test="id != null and id != ''"> and ID = #{id}</if>
<if test="pid != null and pid != ''"> and pid = #{pid}</if>
<if test="otherInfo != null and otherInfo != ''"> and otherInfo = #{otherInfo}</if>
<if test="masterID != null and masterID != ''"> and masterID = #{masterID}</if>
<if test="detailID != null and detailID != ''"> and detailID = #{detailID}</if>
<if test="dTime != null and dTime != ''"> and dTime = #{dTime}</if>
<if test="sysFlag != null and sysFlag != ''"> and sysFlag = #{sysFlag}</if>
<if test="c1 != null and c1 != ''"> and C1 = #{c1}</if>
<if test="c2 != null and c2 != ''"> and C2 = #{c2}</if>
<if test="c3 != null and c3 != ''"> and C3 = #{c3}</if>
<if test="c4 != null and c4 != ''"> and C4 = #{c4}</if>
<if test="c5 != null and c5 != ''"> and C5 = #{c5}</if>
<if test="n1 != null and n1 != '' "> and N1 = #{n1}</if>
<if test="n2 != null and n2 != ''"> and N2 = #{n2}</if>
<if test="n3 != null and n3 != ''"> and N3 = #{n3} </if>
<if test="t1 != null and t1 != ''"> and T1 = #{t1}</if>
<if test="t2 != null and t2 != ''"> and T2 = #{t2}</if>
<if test="t3 != null and t3 != ''"> and T3 = #{t3}</if>
<if test="isFullText != null and isFullText != ''"> and IsFullText = #{isFullText}</if>
<if test="createdtime != null and createdtime != ''"> and createdtime = #{createdtime}</if>
</where>
ORDER BY dTime desc
</select>
<select id="selectSignListById" parameterType="java.lang.Integer" resultMap="BaseResultMap">
<include refid="Base_Column_List"/>
where ID = #{id}
</select>
<insert id="insertSignList" parameterType="Sign_List" useGeneratedKeys="true" keyProperty="id">
insert into archive_other
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null and id != ''">ID,</if>
<if test="pid != null and pid != ''">pid,</if>
<if test="createdtime != null and createdtime != ''">createdtime,</if>
<if test="otherInfo != null and otherInfo != ''">otherInfo,</if>
<if test="masterID != null and masterID != ''">masterID,</if>
<if test="detailID != null and detailID != ''">detailID,</if>
<if test="dTime != null and dTime != ''">dTime,</if>
<if test="sysFlag != null and sysFlag != ''">sysFlag,</if>
<if test="c1 != null and c1 != '' ">C1,</if>
<if test="c2 != null and c2 != ''">C2,</if>
<if test="c3 != null and c3 != ''">C3,</if>
<if test="c4 != null and c4 != ''">C4,</if>
<if test="c5 != null and c5 != ''">C5,</if>
<if test="n1 != null and n1 != ''">N1,</if>
<if test="n2 != null and n2 != ''">N2,</if>
<if test="n3 != null and n3 != ''">N3,</if>
<if test="t1 != null and t1 != ''">T1,</if>
<if test="t2 != null and t2 != ''">T2</if>
<if test="t3 != null and t3 != ''">T3,</if>
<if test="isFullText != null and isFullText != ''">IsFullText,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null and id != ''">#{id},</if>
<if test="pid != null and pid != ''">#{pid},</if>
<if test="createdtime != null and createdtime != ''">#{createdtime},</if>
<if test="otherInfo != null and otherInfo != ''">#{otherInfo},</if>
<if test="masterID != null and masterID != ''">#{masterID},</if>
<if test="detailID != null and detailID != ''">#{detailID},</if>
<if test="dTime != null and dTime != ''">#{dTime},</if>
<if test="sysFlag != null and sysFlag != ''">#{sysFlag},</if>
<if test="c1 != null and c1 != '' ">#{c1},</if>
<if test="c2 != null and c2 != ''">#{c2},</if>
<if test="c3 != null and c3 != ''">#{c3},</if>
<if test="c4 != null and c4 != ''">#{c4},</if>
<if test="c5 != null and c5 != ''">#{c5},</if>
<if test="n1 != null and n1 != ''">#{n1},</if>
<if test="n2 != null and n2 != ''">#{n2},</if>
<if test="n3 != null and n3 != ''">#{n3},</if>
<if test="t1 != null and t1 != ''">#{t1},</if>
<if test="t2 != null and t2 != ''"> #{t2},</if>
<if test="t3 != null and t3 != ''">#{t3},</if>
<if test="isFullText != null and isFullText != ''">#{isFullText},</if>
<if test="isSign != null and isSign != ''"> #{isSign},</if>
</trim>
</insert>
<update id="updateSignList" parameterType="Sign_List">
update archive_other
<trim prefix="SET" suffixOverrides=",">
<if test="pid != null and pid != ''">pid = #{pid},</if>
<if test="createdtime != null and createdtime != ''">createdtime = #{createdtime},</if>
<if test="otherInfo != null and otherInfo != ''">otherInfo = #{otherInfo},</if>
<if test="masterID != null and masterID != ''">masterID = #{masterID},</if>
<if test="detailID != null and detailID != ''">detailID = #{detailID},</if>
<if test="dTime != null and dTime != ''">dTime = #{dTime},</if>
<if test="sysFlag != null and sysFlag != ''">sysFlag = #{sysFlag},</if>
<if test="c1 != null and c1 != '' ">C1 = #{c1},</if>
<if test="c2 != null and c2 != ''">C2 = #{c2},</if>
<if test="c3 != null and c3 != ''">C3 = #{c3},</if>
<if test="c4 != null and c4 != ''">C4 = #{c4},</if>
<if test="c5 != null and c5 != ''">C5 = #{c5},</if>
<if test="n1 != null and n1 != ''">N1 = #{n1},</if>
<if test="n2 != null and n2 != ''">N2 = #{n2},</if>
<if test="n3 != null and n3 != ''">N3 = #{n3},</if>
<if test="t1 != null and t1 != ''">T1 = #{t1},</if>
<if test="t2 != null and t2 != ''">T2 = #{t2},</if>
<if test="t3 != null and t3 != ''">T3 = #{t3},</if>
<if test="isFullText != null and isFullText != ''">IsFullText = #{isFullText},</if>
</trim>
where ID = #{id}
</update>
<delete id="deleteSignListById" parameterType="java.lang.Integer">
delete from archive_other where ID = #{id}
</delete>
<delete id="deleteSignListByIds" parameterType="java.lang.String">
delete from archive_other where ID in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save