123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371 |
- <?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.xinxin.topro.pubservice.mysqlmapper.Hl7ScanMapper" >
- <resultMap id="BaseResultMap" type="com.xinxin.topro.pubservice.mysqlModel.Hl7Scan" >
- <id column="SeqNo" property="seqno" jdbcType="INTEGER" />
- <id column="ID" property="id" jdbcType="VARCHAR" />
- <result column="ChartNo" property="chartno" jdbcType="VARCHAR" />
- <result column="VisitNo" property="visitno" jdbcType="VARCHAR" />
- <result column="OtherNo1" property="otherno1" jdbcType="VARCHAR" />
- <result column="OtherNo2" property="otherno2" jdbcType="VARCHAR" />
- <result column="OtherNo3" property="otherno3" jdbcType="VARCHAR" />
- <result column="OtherName" property="othername" jdbcType="VARCHAR" />
- <result column="TaskType" property="tasktype" jdbcType="VARCHAR" />
- <result column="TaskStatus" property="taskstatus" jdbcType="INTEGER" />
- <result column="UpdateUser" property="updateuser" jdbcType="VARCHAR" />
- <result column="UpdateTime" property="updatetime" jdbcType="TIMESTAMP" />
- <result column="Reserve1" property="reserve1" jdbcType="VARCHAR" />
- <result column="Reserve2" property="reserve2" jdbcType="VARCHAR" />
- <result column="Reserve3" property="reserve3" jdbcType="VARCHAR" />
- <result column="IP" property="ip" jdbcType="VARCHAR" />
- <result column="MAC" property="mac" jdbcType="VARCHAR" />
- <result column="BeginTime" property="begintime" jdbcType="TIMESTAMP" />
- <result column="EndTime" property="endtime" jdbcType="TIMESTAMP" />
- <result column="Result" property="result" jdbcType="INTEGER" />
- <result column="TaskMsg" property="taskmsg" jdbcType="VARCHAR" />
- <result column="ResultTime" property="resulttime" jdbcType="TIMESTAMP" />
- <result column="ErrNum" property="errnum" jdbcType="INTEGER" />
- <result column="SysTime" property="systime" jdbcType="TIMESTAMP" />
- </resultMap>
- <sql id="Base_Column_List" >
- SeqNo, ID, ChartNo, VisitNo, OtherNo1, OtherNo2, OtherNo3, OtherName, TaskType, TaskStatus,
- UpdateUser, UpdateTime, Reserve1, Reserve2, Reserve3, IP, MAC, BeginTime, EndTime,
- Result, TaskMsg, ResultTime, ErrNum, SysTime
- </sql>
- <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="com.xinxin.topro.pubservice.mysqlModel.Hl7ScanKey" >
- select
- <include refid="Base_Column_List" />
- from topprohl7.hl7_scan
- where SeqNo = #{seqno,jdbcType=INTEGER}
- and ID = #{id,jdbcType=VARCHAR}
- </select>
- <delete id="deleteByPrimaryKey" parameterType="com.xinxin.topro.pubservice.mysqlModel.Hl7ScanKey" >
- delete from topprohl7.hl7_scan
- where SeqNo = #{seqno,jdbcType=INTEGER}
- and ID = #{id,jdbcType=VARCHAR}
- </delete>
- <delete id="deleteByNameAndId">
- delete from topprohl7.hl7_scan
- where otherNo1 in
- <foreach collection="list" item="item" open="(" separator="," close=")">
- #{item}
- </foreach>
- and otherName= #{name}
- </delete>
- <insert id="insert" parameterType="com.xinxin.topro.pubservice.mysqlModel.Hl7Scan" >
- insert into topprohl7.hl7_scan (SeqNo, ID, ChartNo,
- VisitNo, OtherNo1, OtherNo2,
- OtherNo3, OtherName, TaskType,
- TaskStatus, UpdateUser, UpdateTime,
- Reserve1, Reserve2, Reserve3,
- IP, MAC, BeginTime,
- EndTime, Result, TaskMsg,
- ResultTime, ErrNum, SysTime
- )
- values (#{seqno,jdbcType=INTEGER}, #{id,jdbcType=VARCHAR}, #{chartno,jdbcType=VARCHAR},
- #{visitno,jdbcType=VARCHAR}, #{otherno1,jdbcType=VARCHAR}, #{otherno2,jdbcType=VARCHAR},
- #{otherno3,jdbcType=VARCHAR}, #{othername,jdbcType=VARCHAR}, #{tasktype,jdbcType=VARCHAR},
- #{taskstatus,jdbcType=INTEGER}, #{updateuser,jdbcType=VARCHAR}, #{updatetime,jdbcType=TIMESTAMP},
- #{reserve1,jdbcType=VARCHAR}, #{reserve2,jdbcType=VARCHAR}, #{reserve3,jdbcType=VARCHAR},
- #{ip,jdbcType=VARCHAR}, #{mac,jdbcType=VARCHAR}, #{begintime,jdbcType=TIMESTAMP},
- #{endtime,jdbcType=TIMESTAMP}, #{result,jdbcType=INTEGER}, #{taskmsg,jdbcType=VARCHAR},
- #{resulttime,jdbcType=TIMESTAMP}, #{errnum,jdbcType=INTEGER}, #{systime,jdbcType=TIMESTAMP}
- )
- </insert>
- <insert id="batchInsert" parameterType="java.util.List" >
- insert into topprohl7.hl7_scan (SeqNo, ID, ChartNo,
- VisitNo, OtherNo1, OtherNo2,
- OtherNo3, OtherName, TaskType,
- TaskStatus, UpdateUser, UpdateTime,
- Reserve1, Reserve2, Reserve3,
- IP, MAC, BeginTime,
- EndTime, Result, TaskMsg,
- ResultTime, ErrNum, SysTime
- )
- values <foreach collection="list" item="item" separator=",">
- (#{item.seqno,jdbcType=INTEGER}, #{item.id,jdbcType=VARCHAR}, #{item.chartno,jdbcType=VARCHAR},
- #{item.visitno,jdbcType=VARCHAR}, #{item.otherno1,jdbcType=VARCHAR}, #{item.otherno2,jdbcType=VARCHAR},
- #{item.otherno3,jdbcType=VARCHAR}, #{item.othername,jdbcType=VARCHAR}, #{item.tasktype,jdbcType=VARCHAR},
- #{item.taskstatus,jdbcType=INTEGER}, #{item.updateuser,jdbcType=VARCHAR}, #{item.updatetime,jdbcType=TIMESTAMP},
- #{item.reserve1,jdbcType=VARCHAR}, #{item.reserve2,jdbcType=VARCHAR}, #{item.reserve3,jdbcType=VARCHAR},
- #{item.ip,jdbcType=VARCHAR}, #{item.mac,jdbcType=VARCHAR}, #{item.begintime,jdbcType=TIMESTAMP},
- #{item.endtime,jdbcType=TIMESTAMP}, #{item.result,jdbcType=INTEGER}, #{item.taskmsg,jdbcType=VARCHAR},
- #{item.resulttime,jdbcType=TIMESTAMP}, #{item.errnum,jdbcType=INTEGER}, #{item.systime,jdbcType=TIMESTAMP}
- )
- </foreach>
- </insert>
- <insert id="batchInsertV2" parameterType="java.util.List" >
- insert into topprohl7.hl7_scan (ID, ChartNo,
- VisitNo, OtherNo1, OtherNo2,
- OtherNo3, OtherName, TaskType,
- TaskStatus, UpdateUser, UpdateTime,
- Reserve1, Reserve2, Reserve3,
- IP, MAC, BeginTime,
- EndTime, Result, TaskMsg,
- ResultTime, ErrNum, SysTime
- )
- values <foreach collection="list" item="item" separator=",">
- ( UUID(), #{item.chartno,jdbcType=VARCHAR},
- #{item.visitno,jdbcType=VARCHAR}, #{item.otherno1,jdbcType=VARCHAR}, #{item.otherno2,jdbcType=VARCHAR},
- #{item.otherno3,jdbcType=VARCHAR}, #{item.othername,jdbcType=VARCHAR}, #{item.tasktype,jdbcType=VARCHAR},
- #{item.taskstatus,jdbcType=INTEGER}, #{item.updateuser,jdbcType=VARCHAR}, #{item.updatetime,jdbcType=TIMESTAMP},
- #{item.reserve1,jdbcType=VARCHAR}, #{item.reserve2,jdbcType=VARCHAR}, #{item.reserve3,jdbcType=VARCHAR},
- #{item.ip,jdbcType=VARCHAR}, #{item.mac,jdbcType=VARCHAR}, #{item.begintime,jdbcType=TIMESTAMP},
- #{item.endtime,jdbcType=TIMESTAMP}, #{item.result,jdbcType=INTEGER}, #{item.taskmsg,jdbcType=VARCHAR},
- #{item.resulttime,jdbcType=TIMESTAMP}, #{item.errnum,jdbcType=INTEGER}, #{item.systime,jdbcType=TIMESTAMP}
- )
- </foreach>
- </insert>
- <insert id="insertSelective" parameterType="com.xinxin.topro.pubservice.mysqlModel.Hl7Scan" >
- insert into topprohl7.hl7_scan
- <trim prefix="(" suffix=")" suffixOverrides="," >
- <if test="seqno != null" >
- SeqNo,
- </if>
- <if test="id != null" >
- ID,
- </if>
- <if test="chartno != null" >
- ChartNo,
- </if>
- <if test="visitno != null" >
- VisitNo,
- </if>
- <if test="otherno1 != null" >
- OtherNo1,
- </if>
- <if test="otherno2 != null" >
- OtherNo2,
- </if>
- <if test="otherno3 != null" >
- OtherNo3,
- </if>
- <if test="othername != null" >
- OtherName,
- </if>
- <if test="tasktype != null" >
- TaskType,
- </if>
- <if test="taskstatus != null" >
- TaskStatus,
- </if>
- <if test="updateuser != null" >
- UpdateUser,
- </if>
- <if test="updatetime != null" >
- UpdateTime,
- </if>
- <if test="reserve1 != null" >
- Reserve1,
- </if>
- <if test="reserve2 != null" >
- Reserve2,
- </if>
- <if test="reserve3 != null" >
- Reserve3,
- </if>
- <if test="ip != null" >
- IP,
- </if>
- <if test="mac != null" >
- MAC,
- </if>
- <if test="begintime != null" >
- BeginTime,
- </if>
- <if test="endtime != null" >
- EndTime,
- </if>
- <if test="result != null" >
- Result,
- </if>
- <if test="taskmsg != null" >
- TaskMsg,
- </if>
- <if test="resulttime != null" >
- ResultTime,
- </if>
- <if test="errnum != null" >
- ErrNum,
- </if>
- <if test="systime != null" >
- SysTime,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides="," >
- <if test="seqno != null" >
- #{seqno,jdbcType=INTEGER},
- </if>
- <if test="id != null" >
- #{id,jdbcType=VARCHAR},
- </if>
- <if test="chartno != null" >
- #{chartno,jdbcType=VARCHAR},
- </if>
- <if test="visitno != null" >
- #{visitno,jdbcType=VARCHAR},
- </if>
- <if test="otherno1 != null" >
- #{otherno1,jdbcType=VARCHAR},
- </if>
- <if test="otherno2 != null" >
- #{otherno2,jdbcType=VARCHAR},
- </if>
- <if test="otherno3 != null" >
- #{otherno3,jdbcType=VARCHAR},
- </if>
- <if test="othername != null" >
- #{othername,jdbcType=VARCHAR},
- </if>
- <if test="tasktype != null" >
- #{tasktype,jdbcType=VARCHAR},
- </if>
- <if test="taskstatus != null" >
- #{taskstatus,jdbcType=INTEGER},
- </if>
- <if test="updateuser != null" >
- #{updateuser,jdbcType=VARCHAR},
- </if>
- <if test="updatetime != null" >
- #{updatetime,jdbcType=TIMESTAMP},
- </if>
- <if test="reserve1 != null" >
- #{reserve1,jdbcType=VARCHAR},
- </if>
- <if test="reserve2 != null" >
- #{reserve2,jdbcType=VARCHAR},
- </if>
- <if test="reserve3 != null" >
- #{reserve3,jdbcType=VARCHAR},
- </if>
- <if test="ip != null" >
- #{ip,jdbcType=VARCHAR},
- </if>
- <if test="mac != null" >
- #{mac,jdbcType=VARCHAR},
- </if>
- <if test="begintime != null" >
- #{begintime,jdbcType=TIMESTAMP},
- </if>
- <if test="endtime != null" >
- #{endtime,jdbcType=TIMESTAMP},
- </if>
- <if test="result != null" >
- #{result,jdbcType=INTEGER},
- </if>
- <if test="taskmsg != null" >
- #{taskmsg,jdbcType=VARCHAR},
- </if>
- <if test="resulttime != null" >
- #{resulttime,jdbcType=TIMESTAMP},
- </if>
- <if test="errnum != null" >
- #{errnum,jdbcType=INTEGER},
- </if>
- <if test="systime != null" >
- #{systime,jdbcType=TIMESTAMP},
- </if>
- </trim>
- </insert>
- <update id="updateByPrimaryKeySelective" parameterType="com.xinxin.topro.pubservice.mysqlModel.Hl7Scan" >
- update topprohl7.hl7_scan
- <set >
- <if test="chartno != null" >
- ChartNo = #{chartno,jdbcType=VARCHAR},
- </if>
- <if test="visitno != null" >
- VisitNo = #{visitno,jdbcType=VARCHAR},
- </if>
- <if test="otherno1 != null" >
- OtherNo1 = #{otherno1,jdbcType=VARCHAR},
- </if>
- <if test="otherno2 != null" >
- OtherNo2 = #{otherno2,jdbcType=VARCHAR},
- </if>
- <if test="otherno3 != null" >
- OtherNo3 = #{otherno3,jdbcType=VARCHAR},
- </if>
- <if test="othername != null" >
- OtherName = #{othername,jdbcType=VARCHAR},
- </if>
- <if test="tasktype != null" >
- TaskType = #{tasktype,jdbcType=VARCHAR},
- </if>
- <if test="taskstatus != null" >
- TaskStatus = #{taskstatus,jdbcType=INTEGER},
- </if>
- <if test="updateuser != null" >
- UpdateUser = #{updateuser,jdbcType=VARCHAR},
- </if>
- <if test="updatetime != null" >
- UpdateTime = #{updatetime,jdbcType=TIMESTAMP},
- </if>
- <if test="reserve1 != null" >
- Reserve1 = #{reserve1,jdbcType=VARCHAR},
- </if>
- <if test="reserve2 != null" >
- Reserve2 = #{reserve2,jdbcType=VARCHAR},
- </if>
- <if test="reserve3 != null" >
- Reserve3 = #{reserve3,jdbcType=VARCHAR},
- </if>
- <if test="ip != null" >
- IP = #{ip,jdbcType=VARCHAR},
- </if>
- <if test="mac != null" >
- MAC = #{mac,jdbcType=VARCHAR},
- </if>
- <if test="begintime != null" >
- BeginTime = #{begintime,jdbcType=TIMESTAMP},
- </if>
- <if test="endtime != null" >
- EndTime = #{endtime,jdbcType=TIMESTAMP},
- </if>
- <if test="result != null" >
- Result = #{result,jdbcType=INTEGER},
- </if>
- <if test="taskmsg != null" >
- TaskMsg = #{taskmsg,jdbcType=VARCHAR},
- </if>
- <if test="resulttime != null" >
- ResultTime = #{resulttime,jdbcType=TIMESTAMP},
- </if>
- <if test="errnum != null" >
- ErrNum = #{errnum,jdbcType=INTEGER},
- </if>
- <if test="systime != null" >
- SysTime = #{systime,jdbcType=TIMESTAMP},
- </if>
- </set>
- where SeqNo = #{seqno,jdbcType=INTEGER}
- and ID = #{id,jdbcType=VARCHAR}
- </update>
- <update id="updateByPrimaryKey" parameterType="com.xinxin.topro.pubservice.mysqlModel.Hl7Scan" >
- update topprohl7.hl7_scan
- set ChartNo = #{chartno,jdbcType=VARCHAR},
- VisitNo = #{visitno,jdbcType=VARCHAR},
- OtherNo1 = #{otherno1,jdbcType=VARCHAR},
- OtherNo2 = #{otherno2,jdbcType=VARCHAR},
- OtherNo3 = #{otherno3,jdbcType=VARCHAR},
- OtherName = #{othername,jdbcType=VARCHAR},
- TaskType = #{tasktype,jdbcType=VARCHAR},
- TaskStatus = #{taskstatus,jdbcType=INTEGER},
- UpdateUser = #{updateuser,jdbcType=VARCHAR},
- UpdateTime = #{updatetime,jdbcType=TIMESTAMP},
- Reserve1 = #{reserve1,jdbcType=VARCHAR},
- Reserve2 = #{reserve2,jdbcType=VARCHAR},
- Reserve3 = #{reserve3,jdbcType=VARCHAR},
- IP = #{ip,jdbcType=VARCHAR},
- MAC = #{mac,jdbcType=VARCHAR},
- BeginTime = #{begintime,jdbcType=TIMESTAMP},
- EndTime = #{endtime,jdbcType=TIMESTAMP},
- Result = #{result,jdbcType=INTEGER},
- TaskMsg = #{taskmsg,jdbcType=VARCHAR},
- ResultTime = #{resulttime,jdbcType=TIMESTAMP},
- ErrNum = #{errnum,jdbcType=INTEGER},
- SysTime = #{systime,jdbcType=TIMESTAMP}
- where SeqNo = #{seqno,jdbcType=INTEGER}
- and ID = #{id,jdbcType=VARCHAR}
- </update>
- </mapper>
|