更新版本20210313新增上架信息维护
parent
f53754345c
commit
243a7c2a24
@ -0,0 +1,38 @@
|
||||
package com.emr.controller;
|
||||
|
||||
import com.emr.entity.EmrPaperPositionDictionary;
|
||||
import com.emr.entity.EmrPaperPositionInfo;
|
||||
import com.emr.service.ipml.PaperPostionService;
|
||||
import com.emr.util.ExceptionPrintUtil;
|
||||
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;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Controller
|
||||
@RequestMapping("paperPostion")
|
||||
public class PaperPostionController {
|
||||
@Autowired
|
||||
private PaperPostionService paperPostionService;
|
||||
@RequestMapping("selectPaperPositonDictionary")
|
||||
@ResponseBody
|
||||
public List<EmrPaperPositionDictionary> selectPaperPositonDictionary(){
|
||||
try{
|
||||
return paperPostionService.selectPaperPositonDictionary();
|
||||
}catch (Exception e){
|
||||
e.printStackTrace();
|
||||
ExceptionPrintUtil.printException(e);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
@RequestMapping("updatePaperPostion")
|
||||
@ResponseBody
|
||||
public Msg updatePaperPostion(EmrPaperPositionInfo obj) throws Exception{
|
||||
paperPostionService.updatePaperPostion(obj);
|
||||
return Msg.success();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,22 @@
|
||||
package com.emr.dao;
|
||||
|
||||
import com.emr.entity.EmrPaperPositionDictionary;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface EmrPaperPositionDictionaryMapper {
|
||||
int deleteByPrimaryKey(Long id);
|
||||
|
||||
int insert(EmrPaperPositionDictionary record);
|
||||
|
||||
int insertSelective(EmrPaperPositionDictionary record);
|
||||
|
||||
EmrPaperPositionDictionary selectByPrimaryKey(Long id);
|
||||
|
||||
int updateByPrimaryKeySelective(EmrPaperPositionDictionary record);
|
||||
|
||||
int updateByPrimaryKey(EmrPaperPositionDictionary record);
|
||||
|
||||
List<EmrPaperPositionDictionary> selectAll();
|
||||
|
||||
}
|
||||
@ -0,0 +1,19 @@
|
||||
package com.emr.dao;
|
||||
|
||||
import com.emr.entity.EmrPaperPositionInfo;
|
||||
|
||||
public interface EmrPaperPositionInfoMapper {
|
||||
int deleteByPrimaryKey(Long id);
|
||||
|
||||
int insert(EmrPaperPositionInfo record);
|
||||
|
||||
int insertSelective(EmrPaperPositionInfo record);
|
||||
|
||||
EmrPaperPositionInfo selectByPrimaryKey(Long id);
|
||||
|
||||
int updateByPrimaryKeySelective(EmrPaperPositionInfo record);
|
||||
|
||||
int updateByPrimaryKey(EmrPaperPositionInfo record);
|
||||
|
||||
EmrPaperPositionInfo selectPaperPositionInfoByPatientId(String patientId);
|
||||
}
|
||||
@ -0,0 +1,172 @@
|
||||
package com.emr.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
public class EmrPaperPositionDictionary implements Serializable {
|
||||
private Long id;
|
||||
|
||||
private String typename;
|
||||
|
||||
private String typevalue;
|
||||
|
||||
private Integer effective;
|
||||
|
||||
private Date createTime;
|
||||
|
||||
private String createUserName;
|
||||
|
||||
private Date updateTime;
|
||||
|
||||
private String updateUserName;
|
||||
|
||||
private Integer int1;
|
||||
|
||||
private String str1;
|
||||
|
||||
private Date time1;
|
||||
|
||||
private Integer int2;
|
||||
|
||||
private String str2;
|
||||
|
||||
private Date time2;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getTypename() {
|
||||
return typename;
|
||||
}
|
||||
|
||||
public void setTypename(String typename) {
|
||||
this.typename = typename == null ? null : typename.trim();
|
||||
}
|
||||
|
||||
public String getTypevalue() {
|
||||
return typevalue;
|
||||
}
|
||||
|
||||
public void setTypevalue(String typevalue) {
|
||||
this.typevalue = typevalue == null ? null : typevalue.trim();
|
||||
}
|
||||
|
||||
public Integer getEffective() {
|
||||
return effective;
|
||||
}
|
||||
|
||||
public void setEffective(Integer effective) {
|
||||
this.effective = effective;
|
||||
}
|
||||
|
||||
public Date getCreateTime() {
|
||||
return createTime;
|
||||
}
|
||||
|
||||
public void setCreateTime(Date createTime) {
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
public String getCreateUserName() {
|
||||
return createUserName;
|
||||
}
|
||||
|
||||
public void setCreateUserName(String createUserName) {
|
||||
this.createUserName = createUserName == null ? null : createUserName.trim();
|
||||
}
|
||||
|
||||
public Date getUpdateTime() {
|
||||
return updateTime;
|
||||
}
|
||||
|
||||
public void setUpdateTime(Date updateTime) {
|
||||
this.updateTime = updateTime;
|
||||
}
|
||||
|
||||
public String getUpdateUserName() {
|
||||
return updateUserName;
|
||||
}
|
||||
|
||||
public void setUpdateUserName(String updateUserName) {
|
||||
this.updateUserName = updateUserName == null ? null : updateUserName.trim();
|
||||
}
|
||||
|
||||
public Integer getInt1() {
|
||||
return int1;
|
||||
}
|
||||
|
||||
public void setInt1(Integer int1) {
|
||||
this.int1 = int1;
|
||||
}
|
||||
|
||||
public String getStr1() {
|
||||
return str1;
|
||||
}
|
||||
|
||||
public void setStr1(String str1) {
|
||||
this.str1 = str1 == null ? null : str1.trim();
|
||||
}
|
||||
|
||||
public Date getTime1() {
|
||||
return time1;
|
||||
}
|
||||
|
||||
public void setTime1(Date time1) {
|
||||
this.time1 = time1;
|
||||
}
|
||||
|
||||
public Integer getInt2() {
|
||||
return int2;
|
||||
}
|
||||
|
||||
public void setInt2(Integer int2) {
|
||||
this.int2 = int2;
|
||||
}
|
||||
|
||||
public String getStr2() {
|
||||
return str2;
|
||||
}
|
||||
|
||||
public void setStr2(String str2) {
|
||||
this.str2 = str2 == null ? null : str2.trim();
|
||||
}
|
||||
|
||||
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(", typename=").append(typename);
|
||||
sb.append(", typevalue=").append(typevalue);
|
||||
sb.append(", effective=").append(effective);
|
||||
sb.append(", createTime=").append(createTime);
|
||||
sb.append(", createUserName=").append(createUserName);
|
||||
sb.append(", updateTime=").append(updateTime);
|
||||
sb.append(", updateUserName=").append(updateUserName);
|
||||
sb.append(", int1=").append(int1);
|
||||
sb.append(", str1=").append(str1);
|
||||
sb.append(", time1=").append(time1);
|
||||
sb.append(", int2=").append(int2);
|
||||
sb.append(", str2=").append(str2);
|
||||
sb.append(", time2=").append(time2);
|
||||
sb.append("]");
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,205 @@
|
||||
package com.emr.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
public class EmrPaperPositionInfo implements Serializable {
|
||||
private Long id;
|
||||
|
||||
private String patientId;
|
||||
|
||||
private String paperPosition;
|
||||
|
||||
private String paperPosition1;
|
||||
|
||||
private String paperPosition2;
|
||||
|
||||
private String paperPosition3;
|
||||
|
||||
private String paperPosition4;
|
||||
|
||||
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 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 getPaperPosition() {
|
||||
return paperPosition;
|
||||
}
|
||||
|
||||
public void setPaperPosition(String paperPosition) {
|
||||
this.paperPosition = paperPosition == null ? null : paperPosition.trim();
|
||||
}
|
||||
|
||||
public String getPaperPosition1() {
|
||||
return paperPosition1;
|
||||
}
|
||||
|
||||
public void setPaperPosition1(String paperPosition1) {
|
||||
this.paperPosition1 = paperPosition1 == null ? null : paperPosition1.trim();
|
||||
}
|
||||
|
||||
public String getPaperPosition2() {
|
||||
return paperPosition2;
|
||||
}
|
||||
|
||||
public void setPaperPosition2(String paperPosition2) {
|
||||
this.paperPosition2 = paperPosition2 == null ? null : paperPosition2.trim();
|
||||
}
|
||||
|
||||
public String getPaperPosition3() {
|
||||
return paperPosition3;
|
||||
}
|
||||
|
||||
public void setPaperPosition3(String paperPosition3) {
|
||||
this.paperPosition3 = paperPosition3 == null ? null : paperPosition3.trim();
|
||||
}
|
||||
|
||||
public String getPaperPosition4() {
|
||||
return paperPosition4;
|
||||
}
|
||||
|
||||
public void setPaperPosition4(String paperPosition4) {
|
||||
this.paperPosition4 = paperPosition4 == null ? null : paperPosition4.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(", patientId=").append(patientId);
|
||||
sb.append(", paperPosition=").append(paperPosition);
|
||||
sb.append(", paperPosition1=").append(paperPosition1);
|
||||
sb.append(", paperPosition2=").append(paperPosition2);
|
||||
sb.append(", paperPosition3=").append(paperPosition3);
|
||||
sb.append(", paperPosition4=").append(paperPosition4);
|
||||
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,203 @@
|
||||
<?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.EmrPaperPositionDictionaryMapper" >
|
||||
<resultMap id="BaseResultMap" type="com.emr.entity.EmrPaperPositionDictionary" >
|
||||
<id column="id" property="id" jdbcType="BIGINT" />
|
||||
<result column="typeName" property="typename" jdbcType="NVARCHAR" />
|
||||
<result column="typeValue" property="typevalue" jdbcType="NVARCHAR" />
|
||||
<result column="effective" property="effective" jdbcType="INTEGER" />
|
||||
<result column="create_time" property="createTime" jdbcType="TIMESTAMP" />
|
||||
<result column="create_user_name" property="createUserName" jdbcType="NVARCHAR" />
|
||||
<result column="update_time" property="updateTime" jdbcType="TIMESTAMP" />
|
||||
<result column="update_user_name" property="updateUserName" jdbcType="NVARCHAR" />
|
||||
<result column="int1" property="int1" jdbcType="INTEGER" />
|
||||
<result column="str1" property="str1" jdbcType="NVARCHAR" />
|
||||
<result column="time1" property="time1" jdbcType="TIMESTAMP" />
|
||||
<result column="int2" property="int2" jdbcType="INTEGER" />
|
||||
<result column="str2" property="str2" jdbcType="NVARCHAR" />
|
||||
<result column="time2" property="time2" jdbcType="TIMESTAMP" />
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List" >
|
||||
id, typeName, typeValue, effective, create_time, create_user_name, update_time, update_user_name,
|
||||
int1, str1, time1, int2, str2, time2
|
||||
</sql>
|
||||
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" >
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from emr_paper_position_dictionary
|
||||
where id = #{id,jdbcType=BIGINT}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long" >
|
||||
delete from emr_paper_position_dictionary
|
||||
where id = #{id,jdbcType=BIGINT}
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.emr.entity.EmrPaperPositionDictionary" >
|
||||
insert into emr_paper_position_dictionary (id, typeName, typeValue,
|
||||
effective, create_time, create_user_name,
|
||||
update_time, update_user_name, int1,
|
||||
str1, time1, int2,
|
||||
str2, time2)
|
||||
values (#{id,jdbcType=BIGINT}, #{typename,jdbcType=NVARCHAR}, #{typevalue,jdbcType=NVARCHAR},
|
||||
#{effective,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{createUserName,jdbcType=NVARCHAR},
|
||||
#{updateTime,jdbcType=TIMESTAMP}, #{updateUserName,jdbcType=NVARCHAR}, #{int1,jdbcType=INTEGER},
|
||||
#{str1,jdbcType=NVARCHAR}, #{time1,jdbcType=TIMESTAMP}, #{int2,jdbcType=INTEGER},
|
||||
#{str2,jdbcType=NVARCHAR}, #{time2,jdbcType=TIMESTAMP})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.emr.entity.EmrPaperPositionDictionary" >
|
||||
insert into emr_paper_position_dictionary
|
||||
<trim prefix="(" suffix=")" suffixOverrides="," >
|
||||
<if test="id != null" >
|
||||
id,
|
||||
</if>
|
||||
<if test="typename != null" >
|
||||
typeName,
|
||||
</if>
|
||||
<if test="typevalue != null" >
|
||||
typeValue,
|
||||
</if>
|
||||
<if test="effective != null" >
|
||||
effective,
|
||||
</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="int1 != null" >
|
||||
int1,
|
||||
</if>
|
||||
<if test="str1 != null" >
|
||||
str1,
|
||||
</if>
|
||||
<if test="time1 != null" >
|
||||
time1,
|
||||
</if>
|
||||
<if test="int2 != null" >
|
||||
int2,
|
||||
</if>
|
||||
<if test="str2 != null" >
|
||||
str2,
|
||||
</if>
|
||||
<if test="time2 != null" >
|
||||
time2,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
||||
<if test="id != null" >
|
||||
#{id,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="typename != null" >
|
||||
#{typename,jdbcType=NVARCHAR},
|
||||
</if>
|
||||
<if test="typevalue != null" >
|
||||
#{typevalue,jdbcType=NVARCHAR},
|
||||
</if>
|
||||
<if test="effective != null" >
|
||||
#{effective,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="createTime != null" >
|
||||
#{createTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="createUserName != null" >
|
||||
#{createUserName,jdbcType=NVARCHAR},
|
||||
</if>
|
||||
<if test="updateTime != null" >
|
||||
#{updateTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="updateUserName != null" >
|
||||
#{updateUserName,jdbcType=NVARCHAR},
|
||||
</if>
|
||||
<if test="int1 != null" >
|
||||
#{int1,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="str1 != null" >
|
||||
#{str1,jdbcType=NVARCHAR},
|
||||
</if>
|
||||
<if test="time1 != null" >
|
||||
#{time1,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="int2 != null" >
|
||||
#{int2,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="str2 != null" >
|
||||
#{str2,jdbcType=NVARCHAR},
|
||||
</if>
|
||||
<if test="time2 != null" >
|
||||
#{time2,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.emr.entity.EmrPaperPositionDictionary" >
|
||||
update emr_paper_position_dictionary
|
||||
<set >
|
||||
<if test="typename != null" >
|
||||
typeName = #{typename,jdbcType=NVARCHAR},
|
||||
</if>
|
||||
<if test="typevalue != null" >
|
||||
typeValue = #{typevalue,jdbcType=NVARCHAR},
|
||||
</if>
|
||||
<if test="effective != null" >
|
||||
effective = #{effective,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="createTime != null" >
|
||||
create_time = #{createTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="createUserName != null" >
|
||||
create_user_name = #{createUserName,jdbcType=NVARCHAR},
|
||||
</if>
|
||||
<if test="updateTime != null" >
|
||||
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="updateUserName != null" >
|
||||
update_user_name = #{updateUserName,jdbcType=NVARCHAR},
|
||||
</if>
|
||||
<if test="int1 != null" >
|
||||
int1 = #{int1,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="str1 != null" >
|
||||
str1 = #{str1,jdbcType=NVARCHAR},
|
||||
</if>
|
||||
<if test="time1 != null" >
|
||||
time1 = #{time1,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="int2 != null" >
|
||||
int2 = #{int2,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="str2 != null" >
|
||||
str2 = #{str2,jdbcType=NVARCHAR},
|
||||
</if>
|
||||
<if test="time2 != null" >
|
||||
time2 = #{time2,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=BIGINT}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.emr.entity.EmrPaperPositionDictionary" >
|
||||
update emr_paper_position_dictionary
|
||||
set typeName = #{typename,jdbcType=NVARCHAR},
|
||||
typeValue = #{typevalue,jdbcType=NVARCHAR},
|
||||
effective = #{effective,jdbcType=INTEGER},
|
||||
create_time = #{createTime,jdbcType=TIMESTAMP},
|
||||
create_user_name = #{createUserName,jdbcType=NVARCHAR},
|
||||
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
||||
update_user_name = #{updateUserName,jdbcType=NVARCHAR},
|
||||
int1 = #{int1,jdbcType=INTEGER},
|
||||
str1 = #{str1,jdbcType=NVARCHAR},
|
||||
time1 = #{time1,jdbcType=TIMESTAMP},
|
||||
int2 = #{int2,jdbcType=INTEGER},
|
||||
str2 = #{str2,jdbcType=NVARCHAR},
|
||||
time2 = #{time2,jdbcType=TIMESTAMP}
|
||||
where id = #{id,jdbcType=BIGINT}
|
||||
</update>
|
||||
<!--查询全部-->
|
||||
<select id="selectAll" resultMap="BaseResultMap">
|
||||
select * from emr_paper_position_dictionary
|
||||
</select>
|
||||
</mapper>
|
||||
@ -0,0 +1,239 @@
|
||||
<?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="BIGINT" />
|
||||
<result column="patient_id" property="patientId" jdbcType="NVARCHAR" />
|
||||
<result column="paper_position" property="paperPosition" jdbcType="NVARCHAR" />
|
||||
<result column="paper_position1" property="paperPosition1" jdbcType="NVARCHAR" />
|
||||
<result column="paper_position2" property="paperPosition2" jdbcType="NVARCHAR" />
|
||||
<result column="paper_position3" property="paperPosition3" jdbcType="NVARCHAR" />
|
||||
<result column="paper_position4" property="paperPosition4" 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, patient_id, paper_position, paper_position1, paper_position2, paper_position3,
|
||||
paper_position4, 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.Long" >
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from emr_paper_position_info
|
||||
where id = #{id,jdbcType=BIGINT}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long" >
|
||||
delete from emr_paper_position_info
|
||||
where id = #{id,jdbcType=BIGINT}
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.emr.entity.EmrPaperPositionInfo" >
|
||||
insert into emr_paper_position_info (id, patient_id, paper_position,
|
||||
paper_position1, paper_position2, paper_position3,
|
||||
paper_position4, create_time, create_user_name,
|
||||
update_time, update_user_name, str1,
|
||||
int1, str2, int2,
|
||||
time1, time2)
|
||||
values (#{id,jdbcType=BIGINT}, #{patientId,jdbcType=NVARCHAR}, #{paperPosition,jdbcType=NVARCHAR},
|
||||
#{paperPosition1,jdbcType=NVARCHAR}, #{paperPosition2,jdbcType=NVARCHAR}, #{paperPosition3,jdbcType=NVARCHAR},
|
||||
#{paperPosition4,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="patientId != null" >
|
||||
patient_id,
|
||||
</if>
|
||||
<if test="paperPosition != null" >
|
||||
paper_position,
|
||||
</if>
|
||||
<if test="paperPosition1 != null" >
|
||||
paper_position1,
|
||||
</if>
|
||||
<if test="paperPosition2 != null" >
|
||||
paper_position2,
|
||||
</if>
|
||||
<if test="paperPosition3 != null" >
|
||||
paper_position3,
|
||||
</if>
|
||||
<if test="paperPosition4 != null" >
|
||||
paper_position4,
|
||||
</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=BIGINT},
|
||||
</if>
|
||||
<if test="patientId != null" >
|
||||
#{patientId,jdbcType=NVARCHAR},
|
||||
</if>
|
||||
<if test="paperPosition != null" >
|
||||
#{paperPosition,jdbcType=NVARCHAR},
|
||||
</if>
|
||||
<if test="paperPosition1 != null" >
|
||||
#{paperPosition1,jdbcType=NVARCHAR},
|
||||
</if>
|
||||
<if test="paperPosition2 != null" >
|
||||
#{paperPosition2,jdbcType=NVARCHAR},
|
||||
</if>
|
||||
<if test="paperPosition3 != null" >
|
||||
#{paperPosition3,jdbcType=NVARCHAR},
|
||||
</if>
|
||||
<if test="paperPosition4 != null" >
|
||||
#{paperPosition4,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="patientId != null" >
|
||||
patient_id = #{patientId,jdbcType=NVARCHAR},
|
||||
</if>
|
||||
<if test="paperPosition != null" >
|
||||
paper_position = #{paperPosition,jdbcType=NVARCHAR},
|
||||
</if>
|
||||
<if test="paperPosition1 != null" >
|
||||
paper_position1 = #{paperPosition1,jdbcType=NVARCHAR},
|
||||
</if>
|
||||
<if test="paperPosition2 != null" >
|
||||
paper_position2 = #{paperPosition2,jdbcType=NVARCHAR},
|
||||
</if>
|
||||
<if test="paperPosition3 != null" >
|
||||
paper_position3 = #{paperPosition3,jdbcType=NVARCHAR},
|
||||
</if>
|
||||
<if test="paperPosition4 != null" >
|
||||
paper_position4 = #{paperPosition4,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=BIGINT}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.emr.entity.EmrPaperPositionInfo" >
|
||||
update emr_paper_position_info
|
||||
set patient_id = #{patientId,jdbcType=NVARCHAR},
|
||||
paper_position = #{paperPosition,jdbcType=NVARCHAR},
|
||||
paper_position1 = #{paperPosition1,jdbcType=NVARCHAR},
|
||||
paper_position2 = #{paperPosition2,jdbcType=NVARCHAR},
|
||||
paper_position3 = #{paperPosition3,jdbcType=NVARCHAR},
|
||||
paper_position4 = #{paperPosition4,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=BIGINT}
|
||||
</update>
|
||||
<!--根据记账号查询记录-->
|
||||
<select id="selectPaperPositionInfoByPatientId" resultType="com.emr.entity.EmrPaperPositionInfo">
|
||||
select * from emr_paper_position_info where patient_id = #{patientId}
|
||||
</select>
|
||||
</mapper>
|
||||
Loading…
Reference in New Issue