123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210 |
- <?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.mysqlmapper.InpMattressMapper" >
- <resultMap id="BaseResultMap" type="com.xinxin.topro.inpnurseservice.mysqlmodel.InpMattress" >
- <id column="IM_ID" property="imId" jdbcType="INTEGER" />
- <result column="PatientNo" property="patientno" jdbcType="VARCHAR" />
- <result column="HI_ID" property="hiId" jdbcType="INTEGER" />
- <result column="DD_DepDm" property="ddDepdm" jdbcType="VARCHAR" />
- <result column="DW_WardDm" property="dwWarddm" jdbcType="VARCHAR" />
- <result column="DB_BedNo" property="dbBedno" jdbcType="VARCHAR" />
- <result column="IM_Import_id" property="imImportId" jdbcType="VARCHAR" />
- <result column="IM_Import_Time" property="imImportTime" jdbcType="TIMESTAMP" />
- <result column="IM_Measure_Time" property="imMeasureTime" jdbcType="TIMESTAMP" />
- <result column="IM_IsConfirm" property="imIsconfirm" jdbcType="INTEGER" />
- <result column="IM_Confirmor" property="imConfirmor" jdbcType="VARCHAR" />
- <result column="IM_IsDel" property="imIsdel" jdbcType="INTEGER" />
- <result column="IM_Time_Point" property="imTimePoint" jdbcType="VARCHAR" />
- <result column="IM_Original" property="imOriginal" jdbcType="VARCHAR" />
- <result column="IM_Original_ID" property="imOriginalId" jdbcType="INTEGER" />
- <result column="IM_Source" property="imSource" jdbcType="INTEGER" />
- </resultMap>
- <sql id="Base_Column_List" >
- IM_ID, PatientNo, HI_ID, DD_DepDm, DW_WardDm, DB_BedNo, IM_Import_id, IM_Import_Time,
- IM_Measure_Time, IM_IsConfirm, IM_Confirmor, IM_IsDel, IM_Time_Point, IM_Original,
- IM_Original_ID, IM_Source
- </sql>
- <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
- select
- <include refid="Base_Column_List" />
- from inp_mattress
- where IM_ID = #{imId,jdbcType=INTEGER}
- </select>
- <select id="selectTimeAll" resultMap="BaseResultMap">
- select
- <include refid="Base_Column_List" />
- from inp_mattress
- where IM_IsDel = 0
- <if test="patientNo != null" >
- and PatientNo = #{patientNo,jdbcType=VARCHAR}
- </if>
- <if test="begin != null" >
- and IM_Measure_Time <![CDATA[>=]]> #{begin}
- </if>
- <if test="end != null" >
- and IM_Measure_Time <![CDATA[<=]]>#{end}
- </if>
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
- delete from inp_mattress
- where IM_ID = #{imId,jdbcType=INTEGER}
- </delete>
- <insert id="insertSelective" parameterType="com.xinxin.topro.inpnurseservice.mysqlmodel.InpMattress" >
- insert into inp_mattress
- <trim prefix="(" suffix=")" suffixOverrides="," >
- <if test="imId != null" >
- IM_ID,
- </if>
- <if test="patientno != null" >
- PatientNo,
- </if>
- <if test="hiId != null" >
- HI_ID,
- </if>
- <if test="ddDepdm != null" >
- DD_DepDm,
- </if>
- <if test="dwWarddm != null" >
- DW_WardDm,
- </if>
- <if test="dbBedno != null" >
- DB_BedNo,
- </if>
- <if test="imImportId != null" >
- IM_Import_id,
- </if>
- <if test="imImportTime != null" >
- IM_Import_Time,
- </if>
- <if test="imMeasureTime != null" >
- IM_Measure_Time,
- </if>
- <if test="imIsconfirm != null" >
- IM_IsConfirm,
- </if>
- <if test="imConfirmor != null" >
- IM_Confirmor,
- </if>
- <if test="imIsdel != null" >
- IM_IsDel,
- </if>
- <if test="imTimePoint != null" >
- IM_Time_Point,
- </if>
- <if test="imOriginal != null" >
- IM_Original,
- </if>
- <if test="imOriginalId != null" >
- IM_Original_ID,
- </if>
- <if test="imSource != null" >
- IM_Source,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides="," >
- <if test="imId != null" >
- #{imId,jdbcType=INTEGER},
- </if>
- <if test="patientno != null" >
- #{patientno,jdbcType=VARCHAR},
- </if>
- <if test="hiId != null" >
- #{hiId,jdbcType=INTEGER},
- </if>
- <if test="ddDepdm != null" >
- #{ddDepdm,jdbcType=VARCHAR},
- </if>
- <if test="dwWarddm != null" >
- #{dwWarddm,jdbcType=VARCHAR},
- </if>
- <if test="dbBedno != null" >
- #{dbBedno,jdbcType=VARCHAR},
- </if>
- <if test="imImportId != null" >
- #{imImportId,jdbcType=VARCHAR},
- </if>
- <if test="imImportTime != null" >
- #{imImportTime,jdbcType=TIMESTAMP},
- </if>
- <if test="imMeasureTime != null" >
- #{imMeasureTime,jdbcType=TIMESTAMP},
- </if>
- <if test="imIsconfirm != null" >
- #{imIsconfirm,jdbcType=INTEGER},
- </if>
- <if test="imConfirmor != null" >
- #{imConfirmor,jdbcType=VARCHAR},
- </if>
- <if test="imIsdel != null" >
- #{imIsdel,jdbcType=INTEGER},
- </if>
- <if test="imTimePoint != null" >
- #{imTimePoint,jdbcType=VARCHAR},
- </if>
- <if test="imOriginal != null" >
- #{imOriginal,jdbcType=VARCHAR},
- </if>
- <if test="imOriginalId != null" >
- #{imOriginalId,jdbcType=INTEGER},
- </if>
- <if test="imSource != null" >
- #{imSource,jdbcType=INTEGER},
- </if>
- </trim>
- </insert>
- <update id="updateByPrimaryKeySelective" parameterType="com.xinxin.topro.inpnurseservice.mysqlmodel.InpMattress" >
- update inp_mattress
- <set >
- <if test="patientno != null" >
- PatientNo = #{patientno,jdbcType=VARCHAR},
- </if>
- <if test="hiId != null" >
- HI_ID = #{hiId,jdbcType=INTEGER},
- </if>
- <if test="ddDepdm != null" >
- DD_DepDm = #{ddDepdm,jdbcType=VARCHAR},
- </if>
- <if test="dwWarddm != null" >
- DW_WardDm = #{dwWarddm,jdbcType=VARCHAR},
- </if>
- <if test="dbBedno != null" >
- DB_BedNo = #{dbBedno,jdbcType=VARCHAR},
- </if>
- <if test="imImportId != null" >
- IM_Import_id = #{imImportId,jdbcType=VARCHAR},
- </if>
- <if test="imImportTime != null" >
- IM_Import_Time = #{imImportTime,jdbcType=TIMESTAMP},
- </if>
- <if test="imMeasureTime != null" >
- IM_Measure_Time = #{imMeasureTime,jdbcType=TIMESTAMP},
- </if>
- <if test="imIsconfirm != null" >
- IM_IsConfirm = #{imIsconfirm,jdbcType=INTEGER},
- </if>
- <if test="imConfirmor != null" >
- IM_Confirmor = #{imConfirmor,jdbcType=VARCHAR},
- </if>
- <if test="imIsdel != null" >
- IM_IsDel = #{imIsdel,jdbcType=INTEGER},
- </if>
- <if test="imTimePoint != null" >
- IM_Time_Point = #{imTimePoint,jdbcType=VARCHAR},
- </if>
- <if test="imOriginal != null" >
- IM_Original = #{imOriginal,jdbcType=VARCHAR},
- </if>
- <if test="imOriginalId != null" >
- IM_Original_ID = #{imOriginalId,jdbcType=INTEGER},
- </if>
- <if test="imSource != null" >
- IM_Source = #{imSource,jdbcType=INTEGER},
- </if>
- </set>
- where IM_ID = #{imId,jdbcType=INTEGER}
- </update>
- </mapper>
|