2020-12-23备份
parent
949d7c9307
commit
c6090903cb
Binary file not shown.
@ -0,0 +1,21 @@
|
||||
package com.emr.controller;
|
||||
|
||||
import com.emr.service.ipml.EmrPaperPositionInfoServer;
|
||||
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("paperPosition")
|
||||
public class PaperPositionController {
|
||||
@Autowired
|
||||
private EmrPaperPositionInfoServer paperPositionInfoServer;
|
||||
@RequestMapping("savePaperPosition")
|
||||
@ResponseBody
|
||||
public Msg savePaperPosition(String masterId,String paperPosition) throws Exception{
|
||||
paperPositionInfoServer.savePaperPositionInfo(masterId,paperPosition);
|
||||
return Msg.success();
|
||||
}
|
||||
}
|
@ -0,0 +1,32 @@
|
||||
package com.emr.controller;
|
||||
|
||||
import com.emr.entity.Archive_Master_Vo;
|
||||
import com.emr.entity.OffsetLimitPage;
|
||||
import com.emr.service.ipml.PatientListService;
|
||||
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("patientList")
|
||||
public class PatientListController {
|
||||
@Autowired
|
||||
private PatientListService patientListService;
|
||||
@RequestMapping("select")
|
||||
public String select(){
|
||||
return "statistics/patientList";
|
||||
}
|
||||
|
||||
@ResponseBody
|
||||
@RequestMapping(value = "getPatientList")
|
||||
public OffsetLimitPage getPatientList( Archive_Master_Vo archiveMasterVo, Integer offset, Integer limit,Integer isSearch) {
|
||||
//判断是否是初始化查询,是初始化查询把开始结束时间置空
|
||||
if(isSearch == 0){
|
||||
archiveMasterVo.setStartDateTo(null);
|
||||
archiveMasterVo.setEndDateTo(null);
|
||||
}
|
||||
OffsetLimitPage result = patientListService.getPatientList(archiveMasterVo, offset, limit);
|
||||
return result;
|
||||
}
|
||||
}
|
@ -0,0 +1,20 @@
|
||||
package com.emr.dao;
|
||||
|
||||
import com.emr.entity.EmrPaperPositionInfo;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
public interface EmrPaperPositionInfoMapper {
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
int insert(EmrPaperPositionInfo record);
|
||||
|
||||
int insertSelective(EmrPaperPositionInfo record);
|
||||
|
||||
EmrPaperPositionInfo selectByPrimaryKey(Integer id);
|
||||
|
||||
int updateByPrimaryKeySelective(EmrPaperPositionInfo record);
|
||||
|
||||
int updateByPrimaryKey(EmrPaperPositionInfo record);
|
||||
|
||||
EmrPaperPositionInfo selectByMasterId(@Param("masterId")String masterId);
|
||||
}
|
@ -0,0 +1,161 @@
|
||||
package com.emr.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
public class EmrPaperPositionInfo implements Serializable {
|
||||
private Integer id;
|
||||
|
||||
private String masterId;
|
||||
|
||||
private String paperPosition;
|
||||
|
||||
private String createTime;
|
||||
|
||||
private String createUserName;
|
||||
|
||||
private String updateTime;
|
||||
|
||||
private String updateUserName;
|
||||
|
||||
private String str1;
|
||||
|
||||
private Integer int1;
|
||||
|
||||
private String str2;
|
||||
|
||||
private Integer int2;
|
||||
|
||||
private Date time1;
|
||||
|
||||
private Date time2;
|
||||
|
||||
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 String getPaperPosition() {
|
||||
return paperPosition;
|
||||
}
|
||||
|
||||
public void setPaperPosition(String paperPosition) {
|
||||
this.paperPosition = paperPosition == null ? null : paperPosition.trim();
|
||||
}
|
||||
|
||||
public String getCreateTime() {
|
||||
return createTime;
|
||||
}
|
||||
|
||||
public void setCreateTime(String createTime) {
|
||||
this.createTime = createTime == null ? null : createTime.trim();
|
||||
}
|
||||
|
||||
public String getCreateUserName() {
|
||||
return createUserName;
|
||||
}
|
||||
|
||||
public void setCreateUserName(String createUserName) {
|
||||
this.createUserName = createUserName == null ? null : createUserName.trim();
|
||||
}
|
||||
|
||||
public String getUpdateTime() {
|
||||
return updateTime;
|
||||
}
|
||||
|
||||
public void setUpdateTime(String updateTime) {
|
||||
this.updateTime = updateTime == null ? null : updateTime.trim();
|
||||
}
|
||||
|
||||
public String getUpdateUserName() {
|
||||
return updateUserName;
|
||||
}
|
||||
|
||||
public void setUpdateUserName(String updateUserName) {
|
||||
this.updateUserName = updateUserName == null ? null : updateUserName.trim();
|
||||
}
|
||||
|
||||
public String getStr1() {
|
||||
return str1;
|
||||
}
|
||||
|
||||
public void setStr1(String str1) {
|
||||
this.str1 = str1 == null ? null : str1.trim();
|
||||
}
|
||||
|
||||
public Integer getInt1() {
|
||||
return int1;
|
||||
}
|
||||
|
||||
public void setInt1(Integer int1) {
|
||||
this.int1 = int1;
|
||||
}
|
||||
|
||||
public String getStr2() {
|
||||
return str2;
|
||||
}
|
||||
|
||||
public void setStr2(String str2) {
|
||||
this.str2 = str2 == null ? null : str2.trim();
|
||||
}
|
||||
|
||||
public Integer getInt2() {
|
||||
return int2;
|
||||
}
|
||||
|
||||
public void setInt2(Integer int2) {
|
||||
this.int2 = int2;
|
||||
}
|
||||
|
||||
public Date getTime1() {
|
||||
return time1;
|
||||
}
|
||||
|
||||
public void setTime1(Date time1) {
|
||||
this.time1 = time1;
|
||||
}
|
||||
|
||||
public Date getTime2() {
|
||||
return time2;
|
||||
}
|
||||
|
||||
public void setTime2(Date time2) {
|
||||
this.time2 = time2;
|
||||
}
|
||||
|
||||
@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(", paperPosition=").append(paperPosition);
|
||||
sb.append(", createTime=").append(createTime);
|
||||
sb.append(", createUserName=").append(createUserName);
|
||||
sb.append(", updateTime=").append(updateTime);
|
||||
sb.append(", updateUserName=").append(updateUserName);
|
||||
sb.append(", str1=").append(str1);
|
||||
sb.append(", int1=").append(int1);
|
||||
sb.append(", str2=").append(str2);
|
||||
sb.append(", int2=").append(int2);
|
||||
sb.append(", time1=").append(time1);
|
||||
sb.append(", time2=").append(time2);
|
||||
sb.append("]");
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,43 @@
|
||||
package com.emr.service.ipml;
|
||||
|
||||
import com.emr.dao.EmrPaperPositionInfoMapper;
|
||||
import com.emr.entity.EmrPaperPositionInfo;
|
||||
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.Date;
|
||||
|
||||
@Service
|
||||
@Transactional
|
||||
public class EmrPaperPositionInfoServer {
|
||||
@Autowired
|
||||
private EmrPaperPositionInfoMapper paperPositionInfoMapper;
|
||||
@Autowired
|
||||
private StatisticsService statisticsService;
|
||||
public void savePaperPositionInfo(String masterId,String paperPosition){
|
||||
//查询masterId在该表中是否存在
|
||||
EmrPaperPositionInfo emrPaperPositionInfo = paperPositionInfoMapper.selectByMasterId(masterId);
|
||||
if(null == emrPaperPositionInfo){
|
||||
emrPaperPositionInfo = new EmrPaperPositionInfo();
|
||||
}
|
||||
String currentUserName = statisticsService.getCurrentUserName();
|
||||
emrPaperPositionInfo.setUpdateUserName(currentUserName);
|
||||
SimpleDateFormat fmt = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
||||
String nowTime = fmt.format(new Date());
|
||||
emrPaperPositionInfo.setUpdateTime(nowTime);
|
||||
if(emrPaperPositionInfo.getId() == null){
|
||||
//不存在新建
|
||||
emrPaperPositionInfo.setCreateUserName(currentUserName);
|
||||
emrPaperPositionInfo.setCreateTime(nowTime);
|
||||
emrPaperPositionInfo.setPaperPosition(paperPosition);
|
||||
emrPaperPositionInfo.setMasterId(masterId);
|
||||
paperPositionInfoMapper.insertSelective(emrPaperPositionInfo);
|
||||
}else{
|
||||
//存在则修改
|
||||
emrPaperPositionInfo.setPaperPosition(paperPosition);
|
||||
paperPositionInfoMapper.updateByPrimaryKey(emrPaperPositionInfo);
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,28 @@
|
||||
package com.emr.service.ipml;
|
||||
|
||||
import com.emr.dao.Archive_MasterMapper;
|
||||
import com.emr.entity.Archive_Master_Vo;
|
||||
import com.emr.entity.OffsetLimitPage;
|
||||
import com.emr.service.Archive_MasterService;
|
||||
import com.github.pagehelper.Page;
|
||||
import com.github.pagehelper.PageHelper;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Service
|
||||
@Transactional
|
||||
public class PatientListService {
|
||||
@Autowired
|
||||
private Archive_MasterMapper archiveMasterMapper;
|
||||
@Autowired
|
||||
private Archive_MasterService archiveMasterService;
|
||||
public OffsetLimitPage getPatientList(Archive_Master_Vo archiveMasterVo, Integer offset, Integer limit) {
|
||||
PageHelper.offsetPage(offset, limit);
|
||||
List<Archive_Master_Vo> list = archiveMasterMapper.selectAllPatient(archiveMasterVo);
|
||||
archiveMasterService.setPaperStatusAndCallbackStatus(list);
|
||||
return new OffsetLimitPage((Page) list);
|
||||
}
|
||||
}
|
@ -1,9 +1,15 @@
|
||||
##退回病案给金蝶公司的webService接口地址
|
||||
##\u9000\u56DE\u75C5\u6848\u7ED9\u91D1\u8776\u516C\u53F8\u7684webService\u63A5\u53E3\u5730\u5740
|
||||
RETURNWEBSERVICE = http://192.168.10.39:8001/KingdeeEmrArchiveReturn.asmx?wsdl
|
||||
##webService qName参数1
|
||||
##webService qName\u53C2\u65701
|
||||
RETURNPARM1 = http://tempuri.org/
|
||||
##webService qName参数2
|
||||
##webService qName\u53C2\u65702
|
||||
RETURNPARM2 = SetArchieveReturn
|
||||
|
||||
#pdf水印
|
||||
pdfWater = 广东省英德市人民医院
|
||||
#pdf\u6C34\u5370
|
||||
pdfWater = \u5E7F\u4E1C\u7701\u82F1\u5FB7\u5E02\u4EBA\u6C11\u533B\u9662
|
||||
|
||||
#\u75C5\u6848\u5BA4\u79D1\u5BA4\u7F16\u53F7
|
||||
medicalRecordsRoomDeptId = 1315
|
||||
|
||||
#\u533B\u52A1\u79D1\u79D1\u5BA4\u7F16\u53F7
|
||||
medicalepartmentDeptId = 1145
|
@ -0,0 +1,192 @@
|
||||
<?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.EmrPaperPositionInfoMapper" >
|
||||
<resultMap id="BaseResultMap" type="com.emr.entity.EmrPaperPositionInfo" >
|
||||
<id column="id" property="id" jdbcType="INTEGER" />
|
||||
<result column="master_id" property="masterId" jdbcType="NVARCHAR" />
|
||||
<result column="paper_position" property="paperPosition" jdbcType="NVARCHAR" />
|
||||
<result column="create_time" property="createTime" jdbcType="VARCHAR" />
|
||||
<result column="create_user_name" property="createUserName" jdbcType="NVARCHAR" />
|
||||
<result column="update_time" property="updateTime" jdbcType="VARCHAR" />
|
||||
<result column="update_user_name" property="updateUserName" jdbcType="NVARCHAR" />
|
||||
<result column="str1" property="str1" jdbcType="NVARCHAR" />
|
||||
<result column="int1" property="int1" jdbcType="INTEGER" />
|
||||
<result column="str2" property="str2" jdbcType="NVARCHAR" />
|
||||
<result column="int2" property="int2" jdbcType="INTEGER" />
|
||||
<result column="time1" property="time1" jdbcType="TIMESTAMP" />
|
||||
<result column="time2" property="time2" jdbcType="TIMESTAMP" />
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List" >
|
||||
id, master_id, paper_position, create_time, create_user_name, update_time, update_user_name,
|
||||
str1, int1, str2, int2, time1, time2
|
||||
</sql>
|
||||
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from emr_paper_position_info
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
|
||||
delete from emr_paper_position_info
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.emr.entity.EmrPaperPositionInfo" >
|
||||
insert into emr_paper_position_info (id, master_id, paper_position,
|
||||
create_time, create_user_name, update_time,
|
||||
update_user_name, str1, int1,
|
||||
str2, int2, time1,
|
||||
time2)
|
||||
values (#{id,jdbcType=INTEGER}, #{masterId,jdbcType=NVARCHAR}, #{paperPosition,jdbcType=NVARCHAR},
|
||||
#{createTime,jdbcType=VARCHAR}, #{createUserName,jdbcType=NVARCHAR}, #{updateTime,jdbcType=VARCHAR},
|
||||
#{updateUserName,jdbcType=NVARCHAR}, #{str1,jdbcType=NVARCHAR}, #{int1,jdbcType=INTEGER},
|
||||
#{str2,jdbcType=NVARCHAR}, #{int2,jdbcType=INTEGER}, #{time1,jdbcType=TIMESTAMP},
|
||||
#{time2,jdbcType=TIMESTAMP})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.emr.entity.EmrPaperPositionInfo" >
|
||||
insert into emr_paper_position_info
|
||||
<trim prefix="(" suffix=")" suffixOverrides="," >
|
||||
<if test="id != null" >
|
||||
id,
|
||||
</if>
|
||||
<if test="masterId != null" >
|
||||
master_id,
|
||||
</if>
|
||||
<if test="paperPosition != null" >
|
||||
paper_position,
|
||||
</if>
|
||||
<if test="createTime != null" >
|
||||
create_time,
|
||||
</if>
|
||||
<if test="createUserName != null" >
|
||||
create_user_name,
|
||||
</if>
|
||||
<if test="updateTime != null" >
|
||||
update_time,
|
||||
</if>
|
||||
<if test="updateUserName != null" >
|
||||
update_user_name,
|
||||
</if>
|
||||
<if test="str1 != null" >
|
||||
str1,
|
||||
</if>
|
||||
<if test="int1 != null" >
|
||||
int1,
|
||||
</if>
|
||||
<if test="str2 != null" >
|
||||
str2,
|
||||
</if>
|
||||
<if test="int2 != null" >
|
||||
int2,
|
||||
</if>
|
||||
<if test="time1 != null" >
|
||||
time1,
|
||||
</if>
|
||||
<if test="time2 != null" >
|
||||
time2,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
||||
<if test="id != null" >
|
||||
#{id,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="masterId != null" >
|
||||
#{masterId,jdbcType=NVARCHAR},
|
||||
</if>
|
||||
<if test="paperPosition != null" >
|
||||
#{paperPosition,jdbcType=NVARCHAR},
|
||||
</if>
|
||||
<if test="createTime != null" >
|
||||
#{createTime,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="createUserName != null" >
|
||||
#{createUserName,jdbcType=NVARCHAR},
|
||||
</if>
|
||||
<if test="updateTime != null" >
|
||||
#{updateTime,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="updateUserName != null" >
|
||||
#{updateUserName,jdbcType=NVARCHAR},
|
||||
</if>
|
||||
<if test="str1 != null" >
|
||||
#{str1,jdbcType=NVARCHAR},
|
||||
</if>
|
||||
<if test="int1 != null" >
|
||||
#{int1,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="str2 != null" >
|
||||
#{str2,jdbcType=NVARCHAR},
|
||||
</if>
|
||||
<if test="int2 != null" >
|
||||
#{int2,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="time1 != null" >
|
||||
#{time1,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="time2 != null" >
|
||||
#{time2,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.emr.entity.EmrPaperPositionInfo" >
|
||||
update emr_paper_position_info
|
||||
<set >
|
||||
<if test="masterId != null" >
|
||||
master_id = #{masterId,jdbcType=NVARCHAR},
|
||||
</if>
|
||||
<if test="paperPosition != null" >
|
||||
paper_position = #{paperPosition,jdbcType=NVARCHAR},
|
||||
</if>
|
||||
<if test="createTime != null" >
|
||||
create_time = #{createTime,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="createUserName != null" >
|
||||
create_user_name = #{createUserName,jdbcType=NVARCHAR},
|
||||
</if>
|
||||
<if test="updateTime != null" >
|
||||
update_time = #{updateTime,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="updateUserName != null" >
|
||||
update_user_name = #{updateUserName,jdbcType=NVARCHAR},
|
||||
</if>
|
||||
<if test="str1 != null" >
|
||||
str1 = #{str1,jdbcType=NVARCHAR},
|
||||
</if>
|
||||
<if test="int1 != null" >
|
||||
int1 = #{int1,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="str2 != null" >
|
||||
str2 = #{str2,jdbcType=NVARCHAR},
|
||||
</if>
|
||||
<if test="int2 != null" >
|
||||
int2 = #{int2,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="time1 != null" >
|
||||
time1 = #{time1,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="time2 != null" >
|
||||
time2 = #{time2,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.emr.entity.EmrPaperPositionInfo" >
|
||||
update emr_paper_position_info
|
||||
set master_id = #{masterId,jdbcType=NVARCHAR},
|
||||
paper_position = #{paperPosition,jdbcType=NVARCHAR},
|
||||
create_time = #{createTime,jdbcType=VARCHAR},
|
||||
create_user_name = #{createUserName,jdbcType=NVARCHAR},
|
||||
update_time = #{updateTime,jdbcType=VARCHAR},
|
||||
update_user_name = #{updateUserName,jdbcType=NVARCHAR},
|
||||
str1 = #{str1,jdbcType=NVARCHAR},
|
||||
int1 = #{int1,jdbcType=INTEGER},
|
||||
str2 = #{str2,jdbcType=NVARCHAR},
|
||||
int2 = #{int2,jdbcType=INTEGER},
|
||||
time1 = #{time1,jdbcType=TIMESTAMP},
|
||||
time2 = #{time2,jdbcType=TIMESTAMP}
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
<!--按masterId查询记录-->
|
||||
<select id="selectByMasterId" resultType="com.emr.entity.EmrPaperPositionInfo">
|
||||
select * from emr_paper_position_info where master_id = #{masterId}
|
||||
</select>
|
||||
</mapper>
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue