新增对外预览病案接口点击刷新按需采集功能和第三方使用固定token登录
parent
ae336255d0
commit
fcd92347fa
@ -0,0 +1,26 @@
|
||||
package com.emr.dao;
|
||||
|
||||
import com.emr.entity.ArchiveOther;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface ArchiveOtherMapper {
|
||||
int deleteByPrimaryKey(Long id);
|
||||
|
||||
int insert(ArchiveOther record);
|
||||
|
||||
int insertSelective(ArchiveOther record);
|
||||
|
||||
ArchiveOther selectByPrimaryKey(Long id);
|
||||
|
||||
int updateByPrimaryKeySelective(ArchiveOther record);
|
||||
|
||||
int updateByPrimaryKey(ArchiveOther record);
|
||||
|
||||
/**
|
||||
* 根据patientId查询是否存在
|
||||
* @param patientId 记账号
|
||||
* @return
|
||||
*/
|
||||
List<ArchiveOther> selectExistByPatientId(String patientId);
|
||||
}
|
@ -0,0 +1,239 @@
|
||||
package com.emr.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
public class ArchiveOther implements Serializable {
|
||||
private Long id;
|
||||
|
||||
private String pid;
|
||||
|
||||
private Date createdtime;
|
||||
|
||||
private String otherinfo;
|
||||
|
||||
private String masterid;
|
||||
|
||||
private String detailid;
|
||||
|
||||
private Date dtime;
|
||||
|
||||
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 Date t1;
|
||||
|
||||
private Date t2;
|
||||
|
||||
private Date t3;
|
||||
|
||||
private Boolean isfulltext;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getPid() {
|
||||
return pid;
|
||||
}
|
||||
|
||||
public void setPid(String pid) {
|
||||
this.pid = pid == null ? null : pid.trim();
|
||||
}
|
||||
|
||||
public Date getCreatedtime() {
|
||||
return createdtime;
|
||||
}
|
||||
|
||||
public void setCreatedtime(Date createdtime) {
|
||||
this.createdtime = createdtime;
|
||||
}
|
||||
|
||||
public String getOtherinfo() {
|
||||
return otherinfo;
|
||||
}
|
||||
|
||||
public void setOtherinfo(String otherinfo) {
|
||||
this.otherinfo = otherinfo == null ? null : otherinfo.trim();
|
||||
}
|
||||
|
||||
public String getMasterid() {
|
||||
return masterid;
|
||||
}
|
||||
|
||||
public void setMasterid(String masterid) {
|
||||
this.masterid = masterid == null ? null : masterid.trim();
|
||||
}
|
||||
|
||||
public String getDetailid() {
|
||||
return detailid;
|
||||
}
|
||||
|
||||
public void setDetailid(String detailid) {
|
||||
this.detailid = detailid == null ? null : detailid.trim();
|
||||
}
|
||||
|
||||
public Date getDtime() {
|
||||
return dtime;
|
||||
}
|
||||
|
||||
public void setDtime(Date 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 == null ? null : c1.trim();
|
||||
}
|
||||
|
||||
public String getC2() {
|
||||
return c2;
|
||||
}
|
||||
|
||||
public void setC2(String c2) {
|
||||
this.c2 = c2 == null ? null : c2.trim();
|
||||
}
|
||||
|
||||
public String getC3() {
|
||||
return c3;
|
||||
}
|
||||
|
||||
public void setC3(String c3) {
|
||||
this.c3 = c3 == null ? null : c3.trim();
|
||||
}
|
||||
|
||||
public String getC4() {
|
||||
return c4;
|
||||
}
|
||||
|
||||
public void setC4(String c4) {
|
||||
this.c4 = c4 == null ? null : c4.trim();
|
||||
}
|
||||
|
||||
public String getC5() {
|
||||
return c5;
|
||||
}
|
||||
|
||||
public void setC5(String c5) {
|
||||
this.c5 = c5 == null ? null : c5.trim();
|
||||
}
|
||||
|
||||
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 Date getT1() {
|
||||
return t1;
|
||||
}
|
||||
|
||||
public void setT1(Date t1) {
|
||||
this.t1 = t1;
|
||||
}
|
||||
|
||||
public Date getT2() {
|
||||
return t2;
|
||||
}
|
||||
|
||||
public void setT2(Date t2) {
|
||||
this.t2 = t2;
|
||||
}
|
||||
|
||||
public Date getT3() {
|
||||
return t3;
|
||||
}
|
||||
|
||||
public void setT3(Date t3) {
|
||||
this.t3 = t3;
|
||||
}
|
||||
|
||||
public Boolean getIsfulltext() {
|
||||
return isfulltext;
|
||||
}
|
||||
|
||||
public void setIsfulltext(Boolean isfulltext) {
|
||||
this.isfulltext = isfulltext;
|
||||
}
|
||||
|
||||
@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(", pid=").append(pid);
|
||||
sb.append(", createdtime=").append(createdtime);
|
||||
sb.append(", otherinfo=").append(otherinfo);
|
||||
sb.append(", masterid=").append(masterid);
|
||||
sb.append(", detailid=").append(detailid);
|
||||
sb.append(", dtime=").append(dtime);
|
||||
sb.append(", sysflag=").append(sysflag);
|
||||
sb.append(", c1=").append(c1);
|
||||
sb.append(", c2=").append(c2);
|
||||
sb.append(", c3=").append(c3);
|
||||
sb.append(", c4=").append(c4);
|
||||
sb.append(", c5=").append(c5);
|
||||
sb.append(", n1=").append(n1);
|
||||
sb.append(", n2=").append(n2);
|
||||
sb.append(", n3=").append(n3);
|
||||
sb.append(", t1=").append(t1);
|
||||
sb.append(", t2=").append(t2);
|
||||
sb.append(", t3=").append(t3);
|
||||
sb.append(", isfulltext=").append(isfulltext);
|
||||
sb.append("]");
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,96 @@
|
||||
package com.emr.service.ipml;
|
||||
|
||||
import com.emr.dao.ArchiveOtherMapper;
|
||||
import com.emr.entity.ArchiveOther;
|
||||
import com.emr.util.IDHelper;
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.apache.shiro.util.CollectionUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @ProjectName:
|
||||
* @Description:
|
||||
* @Param 传输参数
|
||||
* @Return
|
||||
* @Author: 曾文和
|
||||
* @CreateDate: 2020/7/8 10:33
|
||||
* @UpdateUser: 曾文和
|
||||
* @UpdateDate: 2020/7/8 10:33
|
||||
* @UpdateRemark: 更新说明
|
||||
* @Version: 1.0
|
||||
*/
|
||||
@Service
|
||||
@Transactional
|
||||
public class ArchiveOtherService {
|
||||
@Autowired
|
||||
private ArchiveOtherMapper archiveOtherMapper;
|
||||
|
||||
/**
|
||||
* 存在将C1置为'' 不存在新增一条记录
|
||||
* @param patientId 记账号
|
||||
*/
|
||||
public void updateArchiveOther(String patientId,String masterId) throws Exception{
|
||||
//查询记账号是否存在
|
||||
List<ArchiveOther> archiveOthers = archiveOtherMapper.selectExistByPatientId(patientId);
|
||||
if(!CollectionUtils.isEmpty(archiveOthers)){
|
||||
//存在则将C1值置为空字符串
|
||||
ArchiveOther archiveOther = archiveOthers.get(0);
|
||||
archiveOther.setC1("");
|
||||
archiveOtherMapper.updateByPrimaryKeySelective(archiveOther);
|
||||
}else{
|
||||
//不存在则新增
|
||||
ArchiveOther archiveOther = new ArchiveOther();
|
||||
long id = IDHelper.NewID();
|
||||
archiveOther.setId(id);
|
||||
archiveOther.setPid(patientId);
|
||||
archiveOther.setCreatedtime(new Date());
|
||||
archiveOther.setOtherinfo("护理系统按需采集");
|
||||
archiveOther.setMasterid(masterId);
|
||||
archiveOther.setDetailid("0");
|
||||
archiveOther.setDtime(new Date());
|
||||
archiveOther.setSysflag(-2);
|
||||
archiveOther.setC1("");
|
||||
archiveOther.setC2("");
|
||||
archiveOther.setC3("");
|
||||
archiveOther.setC4("");
|
||||
archiveOther.setC5("");
|
||||
archiveOther.setN1(BigDecimal.valueOf(0));
|
||||
archiveOther.setN2(BigDecimal.valueOf(0));
|
||||
archiveOther.setN3(BigDecimal.valueOf(0));
|
||||
String date = "1801-02-03 00:00:00";
|
||||
SimpleDateFormat fmt = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
||||
archiveOther.setT1(fmt.parse(date));
|
||||
archiveOther.setT2(fmt.parse(date));
|
||||
archiveOther.setT3(fmt.parse(date));
|
||||
archiveOther.setIsfulltext(false);
|
||||
archiveOtherMapper.insert(archiveOther);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @param patientId 记账号
|
||||
* @return
|
||||
*/
|
||||
public int selectC1ByPatientId(String patientId) {
|
||||
List<ArchiveOther> archiveOthers = archiveOtherMapper.selectExistByPatientId(patientId);
|
||||
if(!CollectionUtils.isEmpty(archiveOthers)){
|
||||
//获取对象
|
||||
ArchiveOther archiveOther = archiveOthers.get(0);
|
||||
//获取C1值
|
||||
String c1 = archiveOther.getC1();
|
||||
//定义c1需求值
|
||||
String c1Temp = "done";
|
||||
if(StringUtils.isNotBlank(c1) && c1Temp.equals(c1)){
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
package com.emr.util;
|
||||
|
||||
|
||||
public class ExSys extends Exception {
|
||||
public ExSys(String message, Object... args)
|
||||
{
|
||||
super(String.format(message, args));
|
||||
}
|
||||
}
|
@ -0,0 +1,271 @@
|
||||
<?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.ArchiveOtherMapper" >
|
||||
<resultMap id="BaseResultMap" type="com.emr.entity.ArchiveOther" >
|
||||
<id column="ID" property="id" jdbcType="BIGINT" />
|
||||
<result column="pid" property="pid" jdbcType="NVARCHAR" />
|
||||
<result column="createdtime" property="createdtime" jdbcType="TIMESTAMP" />
|
||||
<result column="otherInfo" property="otherinfo" jdbcType="VARCHAR" />
|
||||
<result column="masterID" property="masterid" jdbcType="NVARCHAR" />
|
||||
<result column="detailID" property="detailid" jdbcType="NVARCHAR" />
|
||||
<result column="dTime" property="dtime" jdbcType="TIMESTAMP" />
|
||||
<result column="sysFlag" property="sysflag" jdbcType="INTEGER" />
|
||||
<result column="C1" property="c1" jdbcType="NVARCHAR" />
|
||||
<result column="C2" property="c2" jdbcType="NVARCHAR" />
|
||||
<result column="C3" property="c3" jdbcType="NVARCHAR" />
|
||||
<result column="C4" property="c4" jdbcType="NVARCHAR" />
|
||||
<result column="C5" property="c5" jdbcType="NVARCHAR" />
|
||||
<result column="N1" property="n1" jdbcType="DECIMAL" />
|
||||
<result column="N2" property="n2" jdbcType="DECIMAL" />
|
||||
<result column="N3" property="n3" jdbcType="DECIMAL" />
|
||||
<result column="T1" property="t1" jdbcType="TIMESTAMP" />
|
||||
<result column="T2" property="t2" jdbcType="TIMESTAMP" />
|
||||
<result column="T3" property="t3" jdbcType="TIMESTAMP" />
|
||||
<result column="IsFullText" property="isfulltext" jdbcType="BIT" />
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List" >
|
||||
ID, pid, createdtime, otherInfo, masterID, detailID, dTime, sysFlag, C1, C2, C3,
|
||||
C4, C5, N1, N2, N3, T1, T2, T3, IsFullText
|
||||
</sql>
|
||||
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" >
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from archive_other
|
||||
where ID = #{id,jdbcType=BIGINT}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long" >
|
||||
delete from archive_other
|
||||
where ID = #{id,jdbcType=BIGINT}
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.emr.entity.ArchiveOther" >
|
||||
insert into archive_other (ID, pid, createdtime,
|
||||
otherInfo, masterID, detailID,
|
||||
dTime, sysFlag, C1,
|
||||
C2, C3, C4, C5,
|
||||
N1, N2, N3, T1,
|
||||
T2, T3, IsFullText)
|
||||
values (#{id,jdbcType=BIGINT}, #{pid,jdbcType=NVARCHAR}, #{createdtime,jdbcType=TIMESTAMP},
|
||||
#{otherinfo,jdbcType=VARCHAR}, #{masterid,jdbcType=NVARCHAR}, #{detailid,jdbcType=NVARCHAR},
|
||||
#{dtime,jdbcType=TIMESTAMP}, #{sysflag,jdbcType=INTEGER}, #{c1,jdbcType=NVARCHAR},
|
||||
#{c2,jdbcType=NVARCHAR}, #{c3,jdbcType=NVARCHAR}, #{c4,jdbcType=NVARCHAR}, #{c5,jdbcType=NVARCHAR},
|
||||
#{n1,jdbcType=DECIMAL}, #{n2,jdbcType=DECIMAL}, #{n3,jdbcType=DECIMAL}, #{t1,jdbcType=TIMESTAMP},
|
||||
#{t2,jdbcType=TIMESTAMP}, #{t3,jdbcType=TIMESTAMP}, #{isfulltext,jdbcType=BIT})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.emr.entity.ArchiveOther" >
|
||||
insert into archive_other
|
||||
<trim prefix="(" suffix=")" suffixOverrides="," >
|
||||
<if test="id != null" >
|
||||
ID,
|
||||
</if>
|
||||
<if test="pid != null" >
|
||||
pid,
|
||||
</if>
|
||||
<if test="createdtime != null" >
|
||||
createdtime,
|
||||
</if>
|
||||
<if test="otherinfo != null" >
|
||||
otherInfo,
|
||||
</if>
|
||||
<if test="masterid != null" >
|
||||
masterID,
|
||||
</if>
|
||||
<if test="detailid != null" >
|
||||
detailID,
|
||||
</if>
|
||||
<if test="dtime != null" >
|
||||
dTime,
|
||||
</if>
|
||||
<if test="sysflag != null" >
|
||||
sysFlag,
|
||||
</if>
|
||||
<if test="c1 != null" >
|
||||
C1,
|
||||
</if>
|
||||
<if test="c2 != null" >
|
||||
C2,
|
||||
</if>
|
||||
<if test="c3 != null" >
|
||||
C3,
|
||||
</if>
|
||||
<if test="c4 != null" >
|
||||
C4,
|
||||
</if>
|
||||
<if test="c5 != null" >
|
||||
C5,
|
||||
</if>
|
||||
<if test="n1 != null" >
|
||||
N1,
|
||||
</if>
|
||||
<if test="n2 != null" >
|
||||
N2,
|
||||
</if>
|
||||
<if test="n3 != null" >
|
||||
N3,
|
||||
</if>
|
||||
<if test="t1 != null" >
|
||||
T1,
|
||||
</if>
|
||||
<if test="t2 != null" >
|
||||
T2,
|
||||
</if>
|
||||
<if test="t3 != null" >
|
||||
T3,
|
||||
</if>
|
||||
<if test="isfulltext != null" >
|
||||
IsFullText,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
||||
<if test="id != null" >
|
||||
#{id,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="pid != null" >
|
||||
#{pid,jdbcType=NVARCHAR},
|
||||
</if>
|
||||
<if test="createdtime != null" >
|
||||
#{createdtime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="otherinfo != null" >
|
||||
#{otherinfo,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="masterid != null" >
|
||||
#{masterid,jdbcType=NVARCHAR},
|
||||
</if>
|
||||
<if test="detailid != null" >
|
||||
#{detailid,jdbcType=NVARCHAR},
|
||||
</if>
|
||||
<if test="dtime != null" >
|
||||
#{dtime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="sysflag != null" >
|
||||
#{sysflag,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="c1 != null" >
|
||||
#{c1,jdbcType=NVARCHAR},
|
||||
</if>
|
||||
<if test="c2 != null" >
|
||||
#{c2,jdbcType=NVARCHAR},
|
||||
</if>
|
||||
<if test="c3 != null" >
|
||||
#{c3,jdbcType=NVARCHAR},
|
||||
</if>
|
||||
<if test="c4 != null" >
|
||||
#{c4,jdbcType=NVARCHAR},
|
||||
</if>
|
||||
<if test="c5 != null" >
|
||||
#{c5,jdbcType=NVARCHAR},
|
||||
</if>
|
||||
<if test="n1 != null" >
|
||||
#{n1,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="n2 != null" >
|
||||
#{n2,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="n3 != null" >
|
||||
#{n3,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="t1 != null" >
|
||||
#{t1,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="t2 != null" >
|
||||
#{t2,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="t3 != null" >
|
||||
#{t3,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="isfulltext != null" >
|
||||
#{isfulltext,jdbcType=BIT},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.emr.entity.ArchiveOther" >
|
||||
update archive_other
|
||||
<set >
|
||||
<if test="pid != null" >
|
||||
pid = #{pid,jdbcType=NVARCHAR},
|
||||
</if>
|
||||
<if test="createdtime != null" >
|
||||
createdtime = #{createdtime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="otherinfo != null" >
|
||||
otherInfo = #{otherinfo,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="masterid != null" >
|
||||
masterID = #{masterid,jdbcType=NVARCHAR},
|
||||
</if>
|
||||
<if test="detailid != null" >
|
||||
detailID = #{detailid,jdbcType=NVARCHAR},
|
||||
</if>
|
||||
<if test="dtime != null" >
|
||||
dTime = #{dtime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="sysflag != null" >
|
||||
sysFlag = #{sysflag,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="c1 != null" >
|
||||
C1 = #{c1,jdbcType=NVARCHAR},
|
||||
</if>
|
||||
<if test="c2 != null" >
|
||||
C2 = #{c2,jdbcType=NVARCHAR},
|
||||
</if>
|
||||
<if test="c3 != null" >
|
||||
C3 = #{c3,jdbcType=NVARCHAR},
|
||||
</if>
|
||||
<if test="c4 != null" >
|
||||
C4 = #{c4,jdbcType=NVARCHAR},
|
||||
</if>
|
||||
<if test="c5 != null" >
|
||||
C5 = #{c5,jdbcType=NVARCHAR},
|
||||
</if>
|
||||
<if test="n1 != null" >
|
||||
N1 = #{n1,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="n2 != null" >
|
||||
N2 = #{n2,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="n3 != null" >
|
||||
N3 = #{n3,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="t1 != null" >
|
||||
T1 = #{t1,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="t2 != null" >
|
||||
T2 = #{t2,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="t3 != null" >
|
||||
T3 = #{t3,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="isfulltext != null" >
|
||||
IsFullText = #{isfulltext,jdbcType=BIT},
|
||||
</if>
|
||||
</set>
|
||||
where ID = #{id,jdbcType=BIGINT}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.emr.entity.ArchiveOther" >
|
||||
update archive_other
|
||||
set pid = #{pid,jdbcType=NVARCHAR},
|
||||
createdtime = #{createdtime,jdbcType=TIMESTAMP},
|
||||
otherInfo = #{otherinfo,jdbcType=VARCHAR},
|
||||
masterID = #{masterid,jdbcType=NVARCHAR},
|
||||
detailID = #{detailid,jdbcType=NVARCHAR},
|
||||
dTime = #{dtime,jdbcType=TIMESTAMP},
|
||||
sysFlag = #{sysflag,jdbcType=INTEGER},
|
||||
C1 = #{c1,jdbcType=NVARCHAR},
|
||||
C2 = #{c2,jdbcType=NVARCHAR},
|
||||
C3 = #{c3,jdbcType=NVARCHAR},
|
||||
C4 = #{c4,jdbcType=NVARCHAR},
|
||||
C5 = #{c5,jdbcType=NVARCHAR},
|
||||
N1 = #{n1,jdbcType=DECIMAL},
|
||||
N2 = #{n2,jdbcType=DECIMAL},
|
||||
N3 = #{n3,jdbcType=DECIMAL},
|
||||
T1 = #{t1,jdbcType=TIMESTAMP},
|
||||
T2 = #{t2,jdbcType=TIMESTAMP},
|
||||
T3 = #{t3,jdbcType=TIMESTAMP},
|
||||
IsFullText = #{isfulltext,jdbcType=BIT}
|
||||
where ID = #{id,jdbcType=BIGINT}
|
||||
</update>
|
||||
<!--根据记账号查询数据是否存在-->
|
||||
<select id="selectExistByPatientId" resultMap="BaseResultMap">
|
||||
select * from archive_other where sysFlag = -2 and pid = #{patientId}
|
||||
</select>
|
||||
</mapper>
|
Loading…
Reference in New Issue