123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186 |
- <?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.InpRecureRecordDetailMapper" >
- <resultMap id="BaseResultMap" type="com.xinxin.topro.inpnurseservice.mysqlmodel.InpRecureRecordDetail" >
- <id column="id" property="id" jdbcType="INTEGER" />
- <result column="irr_id" property="irrId" jdbcType="INTEGER" />
- <result column="irtd_time" property="irtdTime" jdbcType="TIMESTAMP" />
- <result column="irtd_often" property="irtdOften" jdbcType="VARCHAR" />
- <result column="irtd_recure_code" property="irtdRecureCode" jdbcType="VARCHAR" />
- <result column="irtd_recure_name" property="irtdRecureName" jdbcType="VARCHAR" />
- <result column="irtr_therapist" property="irtrTherapist" jdbcType="VARCHAR" />
- <result column="irtr_recordor" property="irtrRecordor" jdbcType="VARCHAR" />
- <result column="irtr_record_time" property="irtrRecordTime" jdbcType="TIMESTAMP" />
- <result column="irtr_operation_time" property="irtrOperationTime" jdbcType="TIMESTAMP" />
- <result column="irtr_operator" property="irtrOperator" jdbcType="VARCHAR" />
- <result column="del_flag" property="delFlag" jdbcType="BIT" />
- </resultMap>
- <sql id="Base_Column_List" >
- id, irr_id, irtd_time, irtd_often, irtd_recure_code, irtd_recure_name, irtr_therapist,
- irtr_recordor, irtr_record_time, irtr_operation_time, irtr_operator, del_flag
- </sql>
- <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
- select
- <include refid="Base_Column_List" />
- from inp_recure_record_detail
- where id = #{id,jdbcType=INTEGER}
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
- delete from inp_recure_record_detail
- where id = #{id,jdbcType=INTEGER}
- </delete>
- <insert id="insert" parameterType="com.xinxin.topro.inpnurseservice.mysqlmodel.InpRecureRecordDetail" >
- insert into inp_recure_record_detail (id, irr_id, irtd_time,
- irtd_often, irtd_recure_code, irtd_recure_name,
- irtr_therapist, irtr_recordor, irtr_record_time,
- irtr_operation_time, irtr_operator, del_flag
- )
- values (#{id,jdbcType=INTEGER}, #{irrId,jdbcType=INTEGER}, #{irtdTime,jdbcType=TIMESTAMP},
- #{irtdOften,jdbcType=VARCHAR}, #{irtdRecureCode,jdbcType=VARCHAR}, #{irtdRecureName,jdbcType=VARCHAR},
- #{irtrTherapist,jdbcType=VARCHAR}, #{irtrRecordor,jdbcType=VARCHAR}, #{irtrRecordTime,jdbcType=TIMESTAMP},
- #{irtrOperationTime,jdbcType=TIMESTAMP}, #{irtrOperator,jdbcType=VARCHAR}, #{delFlag,jdbcType=BIT}
- )
- </insert>
- <insert id="insertSelective" parameterType="com.xinxin.topro.inpnurseservice.mysqlmodel.InpRecureRecordDetail" >
- insert into inp_recure_record_detail
- <trim prefix="(" suffix=")" suffixOverrides="," >
- <if test="id != null" >
- id,
- </if>
- <if test="irrId != null" >
- irr_id,
- </if>
- <if test="irtdTime != null" >
- irtd_time,
- </if>
- <if test="irtdOften != null" >
- irtd_often,
- </if>
- <if test="irtdRecureCode != null" >
- irtd_recure_code,
- </if>
- <if test="irtdRecureName != null" >
- irtd_recure_name,
- </if>
- <if test="irtrTherapist != null" >
- irtr_therapist,
- </if>
- <if test="irtrRecordor != null" >
- irtr_recordor,
- </if>
- <if test="irtrRecordTime != null" >
- irtr_record_time,
- </if>
- <if test="irtrOperationTime != null" >
- irtr_operation_time,
- </if>
- <if test="irtrOperator != null" >
- irtr_operator,
- </if>
- <if test="delFlag != null" >
- del_flag,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides="," >
- <if test="id != null" >
- #{id,jdbcType=INTEGER},
- </if>
- <if test="irrId != null" >
- #{irrId,jdbcType=INTEGER},
- </if>
- <if test="irtdTime != null" >
- #{irtdTime,jdbcType=TIMESTAMP},
- </if>
- <if test="irtdOften != null" >
- #{irtdOften,jdbcType=VARCHAR},
- </if>
- <if test="irtdRecureCode != null" >
- #{irtdRecureCode,jdbcType=VARCHAR},
- </if>
- <if test="irtdRecureName != null" >
- #{irtdRecureName,jdbcType=VARCHAR},
- </if>
- <if test="irtrTherapist != null" >
- #{irtrTherapist,jdbcType=VARCHAR},
- </if>
- <if test="irtrRecordor != null" >
- #{irtrRecordor,jdbcType=VARCHAR},
- </if>
- <if test="irtrRecordTime != null" >
- #{irtrRecordTime,jdbcType=TIMESTAMP},
- </if>
- <if test="irtrOperationTime != null" >
- #{irtrOperationTime,jdbcType=TIMESTAMP},
- </if>
- <if test="irtrOperator != null" >
- #{irtrOperator,jdbcType=VARCHAR},
- </if>
- <if test="delFlag != null" >
- #{delFlag,jdbcType=BIT},
- </if>
- </trim>
- </insert>
- <update id="updateByPrimaryKeySelective" parameterType="com.xinxin.topro.inpnurseservice.mysqlmodel.InpRecureRecordDetail" >
- update inp_recure_record_detail
- <set >
- <if test="irrId != null" >
- irr_id = #{irrId,jdbcType=INTEGER},
- </if>
- <if test="irtdTime != null" >
- irtd_time = #{irtdTime,jdbcType=TIMESTAMP},
- </if>
- <if test="irtdOften != null" >
- irtd_often = #{irtdOften,jdbcType=VARCHAR},
- </if>
- <if test="irtdRecureCode != null" >
- irtd_recure_code = #{irtdRecureCode,jdbcType=VARCHAR},
- </if>
- <if test="irtdRecureName != null" >
- irtd_recure_name = #{irtdRecureName,jdbcType=VARCHAR},
- </if>
- <if test="irtrTherapist != null" >
- irtr_therapist = #{irtrTherapist,jdbcType=VARCHAR},
- </if>
- <if test="irtrRecordor != null" >
- irtr_recordor = #{irtrRecordor,jdbcType=VARCHAR},
- </if>
- <if test="irtrRecordTime != null" >
- irtr_record_time = #{irtrRecordTime,jdbcType=TIMESTAMP},
- </if>
- <if test="irtrOperationTime != null" >
- irtr_operation_time = #{irtrOperationTime,jdbcType=TIMESTAMP},
- </if>
- <if test="irtrOperator != null" >
- irtr_operator = #{irtrOperator,jdbcType=VARCHAR},
- </if>
- <if test="delFlag != null" >
- del_flag = #{delFlag,jdbcType=BIT},
- </if>
- </set>
- where id = #{id,jdbcType=INTEGER}
- </update>
- <update id="updateByPrimaryKey" parameterType="com.xinxin.topro.inpnurseservice.mysqlmodel.InpRecureRecordDetail" >
- update inp_recure_record_detail
- set irr_id = #{irrId,jdbcType=INTEGER},
- irtd_time = #{irtdTime,jdbcType=TIMESTAMP},
- irtd_often = #{irtdOften,jdbcType=VARCHAR},
- irtd_recure_code = #{irtdRecureCode,jdbcType=VARCHAR},
- irtd_recure_name = #{irtdRecureName,jdbcType=VARCHAR},
- irtr_therapist = #{irtrTherapist,jdbcType=VARCHAR},
- irtr_recordor = #{irtrRecordor,jdbcType=VARCHAR},
- irtr_record_time = #{irtrRecordTime,jdbcType=TIMESTAMP},
- irtr_operation_time = #{irtrOperationTime,jdbcType=TIMESTAMP},
- irtr_operator = #{irtrOperator,jdbcType=VARCHAR},
- del_flag = #{delFlag,jdbcType=BIT}
- where id = #{id,jdbcType=INTEGER}
- </update>
- <select id="selectByIrrId" resultMap="BaseResultMap">
- select
- <include refid="Base_Column_List" />
- from inp_recure_record_detail
- where irr_id = #{irrId,jdbcType=INTEGER}
- and del_flag = 0
- order By irtd_time
- </select>
- </mapper>
|