修改第三方病案浏览过滤已归档,并记录浏览记录
parent
dc5f050e8e
commit
ea2d5b5c61
@ -0,0 +1,17 @@
|
||||
package com.emr.dao;
|
||||
|
||||
import com.emr.entity.TBasicBrowseHistory;
|
||||
|
||||
public interface TBasicBrowseHistoryMapper {
|
||||
int deleteByPrimaryKey(Long id);
|
||||
|
||||
int insert(TBasicBrowseHistory record);
|
||||
|
||||
int insertSelective(TBasicBrowseHistory record);
|
||||
|
||||
TBasicBrowseHistory selectByPrimaryKey(Long id);
|
||||
|
||||
int updateByPrimaryKeySelective(TBasicBrowseHistory record);
|
||||
|
||||
int updateByPrimaryKey(TBasicBrowseHistory record);
|
||||
}
|
@ -0,0 +1,117 @@
|
||||
package com.emr.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
public class TBasicBrowseHistory implements Serializable {
|
||||
private Long id;
|
||||
|
||||
private String patientId;
|
||||
|
||||
private String visitId;
|
||||
|
||||
private String classify;
|
||||
|
||||
private String classifyName;
|
||||
|
||||
private String ip;
|
||||
|
||||
private String creater;
|
||||
|
||||
private String createrName;
|
||||
|
||||
private Date createTime;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getPatientId() {
|
||||
return patientId;
|
||||
}
|
||||
|
||||
public void setPatientId(String patientId) {
|
||||
this.patientId = patientId == null ? null : patientId.trim();
|
||||
}
|
||||
|
||||
public String getVisitId() {
|
||||
return visitId;
|
||||
}
|
||||
|
||||
public void setVisitId(String visitId) {
|
||||
this.visitId = visitId == null ? null : visitId.trim();
|
||||
}
|
||||
|
||||
public String getClassify() {
|
||||
return classify;
|
||||
}
|
||||
|
||||
public void setClassify(String classify) {
|
||||
this.classify = classify == null ? null : classify.trim();
|
||||
}
|
||||
|
||||
public String getClassifyName() {
|
||||
return classifyName;
|
||||
}
|
||||
|
||||
public void setClassifyName(String classifyName) {
|
||||
this.classifyName = classifyName == null ? null : classifyName.trim();
|
||||
}
|
||||
|
||||
public String getIp() {
|
||||
return ip;
|
||||
}
|
||||
|
||||
public void setIp(String ip) {
|
||||
this.ip = ip == null ? null : ip.trim();
|
||||
}
|
||||
|
||||
public String getCreater() {
|
||||
return creater;
|
||||
}
|
||||
|
||||
public void setCreater(String creater) {
|
||||
this.creater = creater == null ? null : creater.trim();
|
||||
}
|
||||
|
||||
public String getCreaterName() {
|
||||
return createrName;
|
||||
}
|
||||
|
||||
public void setCreaterName(String createrName) {
|
||||
this.createrName = createrName == null ? null : createrName.trim();
|
||||
}
|
||||
|
||||
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(", patientId=").append(patientId);
|
||||
sb.append(", visitId=").append(visitId);
|
||||
sb.append(", classify=").append(classify);
|
||||
sb.append(", classifyName=").append(classifyName);
|
||||
sb.append(", ip=").append(ip);
|
||||
sb.append(", creater=").append(creater);
|
||||
sb.append(", createrName=").append(createrName);
|
||||
sb.append(", createTime=").append(createTime);
|
||||
sb.append("]");
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,141 @@
|
||||
<?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.TBasicBrowseHistoryMapper" >
|
||||
<resultMap id="BaseResultMap" type="com.emr.entity.TBasicBrowseHistory" >
|
||||
<id column="id" property="id" jdbcType="BIGINT" />
|
||||
<result column="patient_id" property="patientId" jdbcType="NVARCHAR" />
|
||||
<result column="visit_id" property="visitId" jdbcType="VARCHAR" />
|
||||
<result column="classify" property="classify" jdbcType="NVARCHAR" />
|
||||
<result column="classify_name" property="classifyName" jdbcType="NVARCHAR" />
|
||||
<result column="ip" property="ip" jdbcType="NVARCHAR" />
|
||||
<result column="creater" property="creater" jdbcType="NVARCHAR" />
|
||||
<result column="creater_name" property="createrName" jdbcType="NVARCHAR" />
|
||||
<result column="create_time" property="createTime" jdbcType="TIMESTAMP" />
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List" >
|
||||
id, patient_id, visit_id, classify, classify_name, ip, creater, creater_name, create_time
|
||||
</sql>
|
||||
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" >
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from t_basic_browse_history
|
||||
where id = #{id,jdbcType=BIGINT}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long" >
|
||||
delete from t_basic_browse_history
|
||||
where id = #{id,jdbcType=BIGINT}
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.emr.entity.TBasicBrowseHistory" >
|
||||
insert into t_basic_browse_history (id, patient_id, visit_id,
|
||||
classify, classify_name, ip,
|
||||
creater, creater_name, create_time
|
||||
)
|
||||
values (#{id,jdbcType=BIGINT}, #{patientId,jdbcType=NVARCHAR}, #{visitId,jdbcType=VARCHAR},
|
||||
#{classify,jdbcType=NVARCHAR}, #{classifyName,jdbcType=NVARCHAR}, #{ip,jdbcType=NVARCHAR},
|
||||
#{creater,jdbcType=NVARCHAR}, #{createrName,jdbcType=NVARCHAR}, #{createTime,jdbcType=TIMESTAMP}
|
||||
)
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.emr.entity.TBasicBrowseHistory" >
|
||||
insert into t_basic_browse_history
|
||||
<trim prefix="(" suffix=")" suffixOverrides="," >
|
||||
<if test="id != null" >
|
||||
id,
|
||||
</if>
|
||||
<if test="patientId != null" >
|
||||
patient_id,
|
||||
</if>
|
||||
<if test="visitId != null" >
|
||||
visit_id,
|
||||
</if>
|
||||
<if test="classify != null" >
|
||||
classify,
|
||||
</if>
|
||||
<if test="classifyName != null" >
|
||||
classify_name,
|
||||
</if>
|
||||
<if test="ip != null" >
|
||||
ip,
|
||||
</if>
|
||||
<if test="creater != null" >
|
||||
creater,
|
||||
</if>
|
||||
<if test="createrName != null" >
|
||||
creater_name,
|
||||
</if>
|
||||
<if test="createTime != null" >
|
||||
create_time,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
||||
<if test="id != null" >
|
||||
#{id,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="patientId != null" >
|
||||
#{patientId,jdbcType=NVARCHAR},
|
||||
</if>
|
||||
<if test="visitId != null" >
|
||||
#{visitId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="classify != null" >
|
||||
#{classify,jdbcType=NVARCHAR},
|
||||
</if>
|
||||
<if test="classifyName != null" >
|
||||
#{classifyName,jdbcType=NVARCHAR},
|
||||
</if>
|
||||
<if test="ip != null" >
|
||||
#{ip,jdbcType=NVARCHAR},
|
||||
</if>
|
||||
<if test="creater != null" >
|
||||
#{creater,jdbcType=NVARCHAR},
|
||||
</if>
|
||||
<if test="createrName != null" >
|
||||
#{createrName,jdbcType=NVARCHAR},
|
||||
</if>
|
||||
<if test="createTime != null" >
|
||||
#{createTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.emr.entity.TBasicBrowseHistory" >
|
||||
update t_basic_browse_history
|
||||
<set >
|
||||
<if test="patientId != null" >
|
||||
patient_id = #{patientId,jdbcType=NVARCHAR},
|
||||
</if>
|
||||
<if test="visitId != null" >
|
||||
visit_id = #{visitId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="classify != null" >
|
||||
classify = #{classify,jdbcType=NVARCHAR},
|
||||
</if>
|
||||
<if test="classifyName != null" >
|
||||
classify_name = #{classifyName,jdbcType=NVARCHAR},
|
||||
</if>
|
||||
<if test="ip != null" >
|
||||
ip = #{ip,jdbcType=NVARCHAR},
|
||||
</if>
|
||||
<if test="creater != null" >
|
||||
creater = #{creater,jdbcType=NVARCHAR},
|
||||
</if>
|
||||
<if test="createrName != null" >
|
||||
creater_name = #{createrName,jdbcType=NVARCHAR},
|
||||
</if>
|
||||
<if test="createTime != null" >
|
||||
create_time = #{createTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=BIGINT}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.emr.entity.TBasicBrowseHistory" >
|
||||
update t_basic_browse_history
|
||||
set patient_id = #{patientId,jdbcType=NVARCHAR},
|
||||
visit_id = #{visitId,jdbcType=VARCHAR},
|
||||
classify = #{classify,jdbcType=NVARCHAR},
|
||||
classify_name = #{classifyName,jdbcType=NVARCHAR},
|
||||
ip = #{ip,jdbcType=NVARCHAR},
|
||||
creater = #{creater,jdbcType=NVARCHAR},
|
||||
creater_name = #{createrName,jdbcType=NVARCHAR},
|
||||
create_time = #{createTime,jdbcType=TIMESTAMP}
|
||||
where id = #{id,jdbcType=BIGINT}
|
||||
</update>
|
||||
</mapper>
|
Loading…
Reference in New Issue