123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214 |
- <?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.inpnurseservice.sqlservermapper.VHISBINGRENBDJLMapper" >
- <resultMap id="BaseResultMap" type="com.xinxin.topro.inpnurseservice.sqlservermodel.VHISBINGRENBDJL" >
- <result column="ChargeID" property="chargeid" jdbcType="VARCHAR" />
- <result column="patientNo" property="patientno" jdbcType="VARCHAR" />
- <result column="oldDeptNo" property="olddeptno" jdbcType="VARCHAR" />
- <result column="oldDeptName" property="olddeptname" jdbcType="VARCHAR" />
- <result column="oldWardNo" property="oldwardno" jdbcType="VARCHAR" />
- <result column="oldWardName" property="oldwardname" jdbcType="VARCHAR" />
- <result column="oldBedNo" property="oldbedno" jdbcType="VARCHAR" />
- <result column="newDeptNo" property="newdeptno" jdbcType="VARCHAR" />
- <result column="newDeptName" property="newdeptname" jdbcType="VARCHAR" />
- <result column="newWardNo" property="newwardno" jdbcType="VARCHAR" />
- <result column="newWardName" property="newwardname" jdbcType="VARCHAR" />
- <result column="newBedNo" property="newbedno" jdbcType="VARCHAR" />
- <result column="oldAttendDivNo" property="oldattenddivno" jdbcType="VARCHAR" />
- <result column="newAddendDivNo" property="newaddenddivno" jdbcType="VARCHAR" />
- <result column="oldChief" property="oldchief" jdbcType="VARCHAR" />
- <result column="newChief" property="newchief" jdbcType="VARCHAR" />
- <result column="oldResident" property="oldresident" jdbcType="VARCHAR" />
- <result column="newResident" property="newresident" jdbcType="VARCHAR" />
- <result column="dynamicType" property="dynamictype" jdbcType="VARCHAR" />
- <result column="updateUser" property="updateuser" jdbcType="VARCHAR" />
- <result column="updateTime" property="updatetime" jdbcType="TIMESTAMP" />
- <result column="dynamicTime" property="dynamictime" jdbcType="TIMESTAMP" />
- <result column="isDel" property="isdel" jdbcType="INTEGER" />
- <result column="endTime" property="endtime" jdbcType="TIMESTAMP" />
- </resultMap>
- <insert id="insert" parameterType="com.xinxin.topro.inpnurseservice.sqlservermodel.VHISBINGRENBDJL" >
- insert into V_HIS_BINGRENBDJL (ChargeID, patientNo, oldDeptNo,
- oldDeptName, oldWardNo, oldWardName,
- oldBedNo, newDeptNo, newDeptName,
- newWardNo, newWardName, newBedNo,
- oldAttendDivNo, newAddendDivNo, oldChief,
- newChief, oldResident, newResident,
- dynamicType, updateUser, updateTime,
- dynamicTime, isDel, endTime
- )
- values (#{chargeid,jdbcType=VARCHAR}, #{patientno,jdbcType=VARCHAR}, #{olddeptno,jdbcType=VARCHAR},
- #{olddeptname,jdbcType=VARCHAR}, #{oldwardno,jdbcType=VARCHAR}, #{oldwardname,jdbcType=VARCHAR},
- #{oldbedno,jdbcType=VARCHAR}, #{newdeptno,jdbcType=VARCHAR}, #{newdeptname,jdbcType=VARCHAR},
- #{newwardno,jdbcType=VARCHAR}, #{newwardname,jdbcType=VARCHAR}, #{newbedno,jdbcType=VARCHAR},
- #{oldattenddivno,jdbcType=VARCHAR}, #{newaddenddivno,jdbcType=VARCHAR}, #{oldchief,jdbcType=VARCHAR},
- #{newchief,jdbcType=VARCHAR}, #{oldresident,jdbcType=VARCHAR}, #{newresident,jdbcType=VARCHAR},
- #{dynamictype,jdbcType=VARCHAR}, #{updateuser,jdbcType=VARCHAR}, #{updatetime,jdbcType=TIMESTAMP},
- #{dynamictime,jdbcType=TIMESTAMP}, #{isdel,jdbcType=INTEGER}, #{endtime,jdbcType=TIMESTAMP}
- )
- </insert>
- <insert id="insertSelective" parameterType="com.xinxin.topro.inpnurseservice.sqlservermodel.VHISBINGRENBDJL" >
- insert into V_HIS_BINGRENBDJL
- <trim prefix="(" suffix=")" suffixOverrides="," >
- <if test="chargeid != null" >
- ChargeID,
- </if>
- <if test="patientno != null" >
- patientNo,
- </if>
- <if test="olddeptno != null" >
- oldDeptNo,
- </if>
- <if test="olddeptname != null" >
- oldDeptName,
- </if>
- <if test="oldwardno != null" >
- oldWardNo,
- </if>
- <if test="oldwardname != null" >
- oldWardName,
- </if>
- <if test="oldbedno != null" >
- oldBedNo,
- </if>
- <if test="newdeptno != null" >
- newDeptNo,
- </if>
- <if test="newdeptname != null" >
- newDeptName,
- </if>
- <if test="newwardno != null" >
- newWardNo,
- </if>
- <if test="newwardname != null" >
- newWardName,
- </if>
- <if test="newbedno != null" >
- newBedNo,
- </if>
- <if test="oldattenddivno != null" >
- oldAttendDivNo,
- </if>
- <if test="newaddenddivno != null" >
- newAddendDivNo,
- </if>
- <if test="oldchief != null" >
- oldChief,
- </if>
- <if test="newchief != null" >
- newChief,
- </if>
- <if test="oldresident != null" >
- oldResident,
- </if>
- <if test="newresident != null" >
- newResident,
- </if>
- <if test="dynamictype != null" >
- dynamicType,
- </if>
- <if test="updateuser != null" >
- updateUser,
- </if>
- <if test="updatetime != null" >
- updateTime,
- </if>
- <if test="dynamictime != null" >
- dynamicTime,
- </if>
- <if test="isdel != null" >
- isDel,
- </if>
- <if test="endtime != null" >
- endTime,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides="," >
- <if test="chargeid != null" >
- #{chargeid,jdbcType=VARCHAR},
- </if>
- <if test="patientno != null" >
- #{patientno,jdbcType=VARCHAR},
- </if>
- <if test="olddeptno != null" >
- #{olddeptno,jdbcType=VARCHAR},
- </if>
- <if test="olddeptname != null" >
- #{olddeptname,jdbcType=VARCHAR},
- </if>
- <if test="oldwardno != null" >
- #{oldwardno,jdbcType=VARCHAR},
- </if>
- <if test="oldwardname != null" >
- #{oldwardname,jdbcType=VARCHAR},
- </if>
- <if test="oldbedno != null" >
- #{oldbedno,jdbcType=VARCHAR},
- </if>
- <if test="newdeptno != null" >
- #{newdeptno,jdbcType=VARCHAR},
- </if>
- <if test="newdeptname != null" >
- #{newdeptname,jdbcType=VARCHAR},
- </if>
- <if test="newwardno != null" >
- #{newwardno,jdbcType=VARCHAR},
- </if>
- <if test="newwardname != null" >
- #{newwardname,jdbcType=VARCHAR},
- </if>
- <if test="newbedno != null" >
- #{newbedno,jdbcType=VARCHAR},
- </if>
- <if test="oldattenddivno != null" >
- #{oldattenddivno,jdbcType=VARCHAR},
- </if>
- <if test="newaddenddivno != null" >
- #{newaddenddivno,jdbcType=VARCHAR},
- </if>
- <if test="oldchief != null" >
- #{oldchief,jdbcType=VARCHAR},
- </if>
- <if test="newchief != null" >
- #{newchief,jdbcType=VARCHAR},
- </if>
- <if test="oldresident != null" >
- #{oldresident,jdbcType=VARCHAR},
- </if>
- <if test="newresident != null" >
- #{newresident,jdbcType=VARCHAR},
- </if>
- <if test="dynamictype != null" >
- #{dynamictype,jdbcType=VARCHAR},
- </if>
- <if test="updateuser != null" >
- #{updateuser,jdbcType=VARCHAR},
- </if>
- <if test="updatetime != null" >
- #{updatetime,jdbcType=TIMESTAMP},
- </if>
- <if test="dynamictime != null" >
- #{dynamictime,jdbcType=TIMESTAMP},
- </if>
- <if test="isdel != null" >
- #{isdel,jdbcType=INTEGER},
- </if>
- <if test="endtime != null" >
- #{endtime,jdbcType=TIMESTAMP},
- </if>
- </trim>
- </insert>
- <select id="selectByPatientNo" resultMap="BaseResultMap" parameterType="com.xinxin.topro.inpnurseservice.vo.InpChargeRecordVo">
- select
- ChargeID, patientNo, oldDeptNo,
- oldDeptName, oldWardNo, oldWardName,
- oldBedNo, newDeptNo, newDeptName,
- newWardNo, newWardName, newBedNo,
- oldAttendDivNo, newAddendDivNo, oldChief,
- newChief, oldResident, newResident,
- dynamicType, updateUser, updateTime,
- dynamicTime, isDel, endTime
- from V_HIS_BINGRENBDJL where patientNo=#{patientNo,jdbcType=VARCHAR}
- and dynamicType=#{dynamicType,jdbcType=VARCHAR}
- </select>
- </mapper>
|