123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258 |
- <?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.InpBloodMapper" >
- <resultMap id="BaseResultMap" type="com.xinxin.topro.inpnurseservice.mysqlmodel.InpBlood" >
- <id column="ID_ID" property="idId" jdbcType="INTEGER" />
- <result column="IB_Pack_No" property="ibPackNo" jdbcType="VARCHAR" />
- <result column="IB_Blood_Name" property="ibBloodName" jdbcType="VARCHAR" />
- <result column="IB_Dosage" property="ibDosage" jdbcType="DOUBLE" />
- <result column="IB_Unit" property="ibUnit" jdbcType="VARCHAR" />
- <result column="IB_Pack_Blood_Type" property="ibPackBloodType" jdbcType="VARCHAR" />
- <result column="IB_PatientNo" property="ibPatientno" jdbcType="VARCHAR" />
- <result column="IB_Grant_Time" property="ibGrantTime" jdbcType="TIMESTAMP" />
- <result column="IB_Patient_Blood_Type" property="ibPatientBloodType" jdbcType="VARCHAR" />
- <result column="IB_Rh_Type" property="ibRhType" jdbcType="VARCHAR" />
- <result column="IB_Blood_Type_Code" property="ibBloodTypeCode" jdbcType="VARCHAR" />
- <result column="IB_Aead_Time" property="ibAeadTime" jdbcType="TIMESTAMP" />
- <result column="IB_Bcode" property="ibBcode" jdbcType="VARCHAR" />
- <result column="IB_OrderNo" property="ibOrderno" jdbcType="VARCHAR" />
- <result column="IB_Real_Trans_Num" property="ibRealTransNum" jdbcType="DOUBLE" />
- <result column="IB_Doctor" property="ibDoctor" jdbcType="VARCHAR" />
- <result column="IB_DepDm" property="ibDepdm" jdbcType="VARCHAR" />
- <result column="IB_WardDm" property="ibWarddm" jdbcType="VARCHAR" />
- </resultMap>
- <sql id="Base_Column_List" >
- ID_ID, IB_Pack_No, IB_Blood_Name, IB_Dosage, IB_Unit, IB_Pack_Blood_Type, IB_PatientNo,
- IB_Grant_Time, IB_Patient_Blood_Type, IB_Rh_Type, IB_Blood_Type_Code, IB_Aead_Time,
- IB_Bcode, IB_OrderNo, IB_Real_Trans_Num, IB_Doctor, IB_DepDm, IB_WardDm
- </sql>
- <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
- select
- <include refid="Base_Column_List" />
- from inp_blood
- where ID_ID = #{idId,jdbcType=INTEGER}
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
- delete from inp_blood
- where ID_ID = #{idId,jdbcType=INTEGER}
- </delete>
- <insert id="insert" parameterType="com.xinxin.topro.inpnurseservice.mysqlmodel.InpBlood" >
- insert into inp_blood (ID_ID, IB_Pack_No, IB_Blood_Name,
- IB_Dosage, IB_Unit, IB_Pack_Blood_Type,
- IB_PatientNo, IB_Grant_Time, IB_Patient_Blood_Type,
- IB_Rh_Type, IB_Blood_Type_Code, IB_Aead_Time,
- IB_Bcode, IB_OrderNo, IB_Real_Trans_Num,
- IB_Doctor, IB_DepDm, IB_WardDm
- )
- values (#{idId,jdbcType=INTEGER}, #{ibPackNo,jdbcType=VARCHAR}, #{ibBloodName,jdbcType=VARCHAR},
- #{ibDosage,jdbcType=DOUBLE}, #{ibUnit,jdbcType=VARCHAR}, #{ibPackBloodType,jdbcType=VARCHAR},
- #{ibPatientno,jdbcType=VARCHAR}, #{ibGrantTime,jdbcType=TIMESTAMP}, #{ibPatientBloodType,jdbcType=VARCHAR},
- #{ibRhType,jdbcType=VARCHAR}, #{ibBloodTypeCode,jdbcType=VARCHAR}, #{ibAeadTime,jdbcType=TIMESTAMP},
- #{ibBcode,jdbcType=VARCHAR}, #{ibOrderno,jdbcType=VARCHAR}, #{ibRealTransNum,jdbcType=DOUBLE},
- #{ibDoctor,jdbcType=VARCHAR}, #{ibDepdm,jdbcType=VARCHAR}, #{ibWarddm,jdbcType=VARCHAR}
- )
- </insert>
- <insert id="insertSelective" parameterType="com.xinxin.topro.inpnurseservice.mysqlmodel.InpBlood" >
- insert into inp_blood
- <trim prefix="(" suffix=")" suffixOverrides="," >
- <if test="idId != null" >
- ID_ID,
- </if>
- <if test="ibPackNo != null" >
- IB_Pack_No,
- </if>
- <if test="ibBloodName != null" >
- IB_Blood_Name,
- </if>
- <if test="ibDosage != null" >
- IB_Dosage,
- </if>
- <if test="ibUnit != null" >
- IB_Unit,
- </if>
- <if test="ibPackBloodType != null" >
- IB_Pack_Blood_Type,
- </if>
- <if test="ibPatientno != null" >
- IB_PatientNo,
- </if>
- <if test="ibGrantTime != null" >
- IB_Grant_Time,
- </if>
- <if test="ibPatientBloodType != null" >
- IB_Patient_Blood_Type,
- </if>
- <if test="ibRhType != null" >
- IB_Rh_Type,
- </if>
- <if test="ibBloodTypeCode != null" >
- IB_Blood_Type_Code,
- </if>
- <if test="ibAeadTime != null" >
- IB_Aead_Time,
- </if>
- <if test="ibBcode != null" >
- IB_Bcode,
- </if>
- <if test="ibOrderno != null" >
- IB_OrderNo,
- </if>
- <if test="ibRealTransNum != null" >
- IB_Real_Trans_Num,
- </if>
- <if test="ibDoctor != null" >
- IB_Doctor,
- </if>
- <if test="ibDepdm != null" >
- IB_DepDm,
- </if>
- <if test="ibWarddm != null" >
- IB_WardDm,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides="," >
- <if test="idId != null" >
- #{idId,jdbcType=INTEGER},
- </if>
- <if test="ibPackNo != null" >
- #{ibPackNo,jdbcType=VARCHAR},
- </if>
- <if test="ibBloodName != null" >
- #{ibBloodName,jdbcType=VARCHAR},
- </if>
- <if test="ibDosage != null" >
- #{ibDosage,jdbcType=DOUBLE},
- </if>
- <if test="ibUnit != null" >
- #{ibUnit,jdbcType=VARCHAR},
- </if>
- <if test="ibPackBloodType != null" >
- #{ibPackBloodType,jdbcType=VARCHAR},
- </if>
- <if test="ibPatientno != null" >
- #{ibPatientno,jdbcType=VARCHAR},
- </if>
- <if test="ibGrantTime != null" >
- #{ibGrantTime,jdbcType=TIMESTAMP},
- </if>
- <if test="ibPatientBloodType != null" >
- #{ibPatientBloodType,jdbcType=VARCHAR},
- </if>
- <if test="ibRhType != null" >
- #{ibRhType,jdbcType=VARCHAR},
- </if>
- <if test="ibBloodTypeCode != null" >
- #{ibBloodTypeCode,jdbcType=VARCHAR},
- </if>
- <if test="ibAeadTime != null" >
- #{ibAeadTime,jdbcType=TIMESTAMP},
- </if>
- <if test="ibBcode != null" >
- #{ibBcode,jdbcType=VARCHAR},
- </if>
- <if test="ibOrderno != null" >
- #{ibOrderno,jdbcType=VARCHAR},
- </if>
- <if test="ibRealTransNum != null" >
- #{ibRealTransNum,jdbcType=DOUBLE},
- </if>
- <if test="ibDoctor != null" >
- #{ibDoctor,jdbcType=VARCHAR},
- </if>
- <if test="ibDepdm != null" >
- #{ibDepdm,jdbcType=VARCHAR},
- </if>
- <if test="ibWarddm != null" >
- #{ibWarddm,jdbcType=VARCHAR},
- </if>
- </trim>
- </insert>
- <update id="updateByPrimaryKeySelective" parameterType="com.xinxin.topro.inpnurseservice.mysqlmodel.InpBlood" >
- update inp_blood
- <set >
- <if test="ibPackNo != null" >
- IB_Pack_No = #{ibPackNo,jdbcType=VARCHAR},
- </if>
- <if test="ibBloodName != null" >
- IB_Blood_Name = #{ibBloodName,jdbcType=VARCHAR},
- </if>
- <if test="ibDosage != null" >
- IB_Dosage = #{ibDosage,jdbcType=DOUBLE},
- </if>
- <if test="ibUnit != null" >
- IB_Unit = #{ibUnit,jdbcType=VARCHAR},
- </if>
- <if test="ibPackBloodType != null" >
- IB_Pack_Blood_Type = #{ibPackBloodType,jdbcType=VARCHAR},
- </if>
- <if test="ibPatientno != null" >
- IB_PatientNo = #{ibPatientno,jdbcType=VARCHAR},
- </if>
- <if test="ibGrantTime != null" >
- IB_Grant_Time = #{ibGrantTime,jdbcType=TIMESTAMP},
- </if>
- <if test="ibPatientBloodType != null" >
- IB_Patient_Blood_Type = #{ibPatientBloodType,jdbcType=VARCHAR},
- </if>
- <if test="ibRhType != null" >
- IB_Rh_Type = #{ibRhType,jdbcType=VARCHAR},
- </if>
- <if test="ibBloodTypeCode != null" >
- IB_Blood_Type_Code = #{ibBloodTypeCode,jdbcType=VARCHAR},
- </if>
- <if test="ibAeadTime != null" >
- IB_Aead_Time = #{ibAeadTime,jdbcType=TIMESTAMP},
- </if>
- <if test="ibBcode != null" >
- IB_Bcode = #{ibBcode,jdbcType=VARCHAR},
- </if>
- <if test="ibOrderno != null" >
- IB_OrderNo = #{ibOrderno,jdbcType=VARCHAR},
- </if>
- <if test="ibRealTransNum != null" >
- IB_Real_Trans_Num = #{ibRealTransNum,jdbcType=DOUBLE},
- </if>
- <if test="ibDoctor != null" >
- IB_Doctor = #{ibDoctor,jdbcType=VARCHAR},
- </if>
- <if test="ibDepdm != null" >
- IB_DepDm = #{ibDepdm,jdbcType=VARCHAR},
- </if>
- <if test="ibWarddm != null" >
- IB_WardDm = #{ibWarddm,jdbcType=VARCHAR},
- </if>
- </set>
- where ID_ID = #{idId,jdbcType=INTEGER}
- </update>
- <update id="updateByPrimaryKey" parameterType="com.xinxin.topro.inpnurseservice.mysqlmodel.InpBlood" >
- update inp_blood
- set IB_Pack_No = #{ibPackNo,jdbcType=VARCHAR},
- IB_Blood_Name = #{ibBloodName,jdbcType=VARCHAR},
- IB_Dosage = #{ibDosage,jdbcType=DOUBLE},
- IB_Unit = #{ibUnit,jdbcType=VARCHAR},
- IB_Pack_Blood_Type = #{ibPackBloodType,jdbcType=VARCHAR},
- IB_PatientNo = #{ibPatientno,jdbcType=VARCHAR},
- IB_Grant_Time = #{ibGrantTime,jdbcType=TIMESTAMP},
- IB_Patient_Blood_Type = #{ibPatientBloodType,jdbcType=VARCHAR},
- IB_Rh_Type = #{ibRhType,jdbcType=VARCHAR},
- IB_Blood_Type_Code = #{ibBloodTypeCode,jdbcType=VARCHAR},
- IB_Aead_Time = #{ibAeadTime,jdbcType=TIMESTAMP},
- IB_Bcode = #{ibBcode,jdbcType=VARCHAR},
- IB_OrderNo = #{ibOrderno,jdbcType=VARCHAR},
- IB_Real_Trans_Num = #{ibRealTransNum,jdbcType=DOUBLE},
- IB_Doctor = #{ibDoctor,jdbcType=VARCHAR},
- IB_DepDm = #{ibDepdm,jdbcType=VARCHAR},
- IB_WardDm = #{ibWarddm,jdbcType=VARCHAR}
- where ID_ID = #{idId,jdbcType=INTEGER}
- </update>
- <select id="selectByBarCodes" resultMap="BaseResultMap" parameterType="java.util.List" >
- select
- <include refid="Base_Column_List" />
- from inp_blood
- where IB_Pack_No in
- <foreach collection="barCodes" item="item" index="index" open="(" close=")" separator=",">
- #{item,jdbcType=VARCHAR}
- </foreach>
- </select>
- </mapper>
|