123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384 |
- <?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.InpRecureRecordMapper" >
- <resultMap id="BaseResultMap" type="com.xinxin.topro.inpnurseservice.mysqlmodel.InpRecureRecord" >
- <id column="id" property="id" jdbcType="INTEGER" />
- <result column="patient_no" property="patientNo" jdbcType="VARCHAR" />
- <result column="dd_dep_dm" property="ddDepDm" jdbcType="VARCHAR" />
- <result column="dw_ward_dm" property="dwWardDm" jdbcType="VARCHAR" />
- <result column="db_bed_no" property="dbBedNo" jdbcType="VARCHAR" />
- <result column="recure_item" property="recureItem" jdbcType="VARCHAR" />
- <result column="recure_name" property="recureName" jdbcType="VARCHAR" />
- <result column="recure_target_code" property="recureTargetCode" jdbcType="VARCHAR" />
- <result column="recure_target_name" property="recureTargetName" jdbcType="VARCHAR" />
- <result column="neat" property="neat" jdbcType="INTEGER" />
- <result column="coordinate" property="coordinate" jdbcType="INTEGER" />
- <result column="obey" property="obey" jdbcType="INTEGER" />
- <result column="initiative" property="initiative" jdbcType="INTEGER" />
- <result column="persistence" property="persistence" jdbcType="INTEGER" />
- <result column="attention" property="attention" jdbcType="INTEGER" />
- <result column="achievements" property="achievements" jdbcType="INTEGER" />
- <result column="communication" property="communication" jdbcType="INTEGER" />
- <result column="total_score" property="totalScore" jdbcType="INTEGER" />
- <result column="clinical_feedback" property="clinicalFeedback" jdbcType="VARCHAR" />
- <result column="irt_recordor" property="irtRecordor" jdbcType="VARCHAR" />
- <result column="irt_record_time" property="irtRecordTime" jdbcType="TIMESTAMP" />
- <result column="irt_operation_time" property="irtOperationTime" jdbcType="TIMESTAMP" />
- <result column="irt_operator" property="irtOperator" jdbcType="VARCHAR" />
- <result column="del_flag" property="delFlag" jdbcType="BIT" />
- <result column="irt_stage" property="irtStage" jdbcType="INTEGER" />
- <result column="irt_time" property="irtTime" jdbcType="VARCHAR" />
- </resultMap>
- <sql id="Base_Column_List" >
- id, patient_no, dd_dep_dm, dw_ward_dm, db_bed_no, recure_item, recure_name, recure_target_code,
- recure_target_name, neat, coordinate, obey, initiative, persistence, attention, achievements,
- communication, total_score, clinical_feedback, irt_recordor, irt_record_time, irt_operation_time,
- irt_operator, del_flag, irt_stage, irt_time
- </sql>
- <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
- select
- <include refid="Base_Column_List" />
- from inp_recure_record
- where id = #{id,jdbcType=INTEGER}
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
- delete from inp_recure_record
- where id = #{id,jdbcType=INTEGER}
- </delete>
- <insert id="insert" parameterType="com.xinxin.topro.inpnurseservice.mysqlmodel.InpRecureRecord" >
- insert into inp_recure_record (id, patient_no, dd_dep_dm,
- dw_ward_dm, db_bed_no, recure_item,
- recure_name, recure_target_code, recure_target_name,
- neat, coordinate, obey,
- initiative, persistence, attention,
- achievements, communication, total_score,
- clinical_feedback, irt_recordor, irt_record_time,
- irt_operation_time, irt_operator, del_flag, irt_stage, irt_time
- )
- values (#{id,jdbcType=INTEGER}, #{patientNo,jdbcType=VARCHAR}, #{ddDepDm,jdbcType=VARCHAR},
- #{dwWardDm,jdbcType=VARCHAR}, #{dbBedNo,jdbcType=VARCHAR}, #{recureItem,jdbcType=VARCHAR},
- #{recureName,jdbcType=VARCHAR}, #{recureTargetCode,jdbcType=VARCHAR}, #{recureTargetName,jdbcType=VARCHAR},
- #{neat,jdbcType=INTEGER}, #{coordinate,jdbcType=INTEGER}, #{obey,jdbcType=INTEGER},
- #{initiative,jdbcType=INTEGER}, #{persistence,jdbcType=INTEGER}, #{attention,jdbcType=INTEGER},
- #{achievements,jdbcType=INTEGER}, #{communication,jdbcType=INTEGER}, #{totalScore,jdbcType=INTEGER},
- #{clinicalFeedback,jdbcType=VARCHAR}, #{irtRecordor,jdbcType=VARCHAR}, #{irtRecordTime,jdbcType=TIMESTAMP},
- #{irtOperationTime,jdbcType=TIMESTAMP}, #{irtOperator,jdbcType=VARCHAR}, #{delFlag,jdbcType=BIT},
- #{irtStage, jdbcType=INTEGER}, #{irtTime, jdbcType=VARCHAR}
- )
- </insert>
- <insert id="insertSelective" parameterType="com.xinxin.topro.inpnurseservice.mysqlmodel.InpRecureRecord" >
- insert into inp_recure_record
- <trim prefix="(" suffix=")" suffixOverrides="," >
- <if test="id != null" >
- id,
- </if>
- <if test="patientNo != null" >
- patient_no,
- </if>
- <if test="ddDepDm != null" >
- dd_dep_dm,
- </if>
- <if test="dwWardDm != null" >
- dw_ward_dm,
- </if>
- <if test="dbBedNo != null" >
- db_bed_no,
- </if>
- <if test="recureItem != null" >
- recure_item,
- </if>
- <if test="recureName != null" >
- recure_name,
- </if>
- <if test="recureTargetCode != null" >
- recure_target_code,
- </if>
- <if test="recureTargetName != null" >
- recure_target_name,
- </if>
- <if test="neat != null" >
- neat,
- </if>
- <if test="coordinate != null" >
- coordinate,
- </if>
- <if test="obey != null" >
- obey,
- </if>
- <if test="initiative != null" >
- initiative,
- </if>
- <if test="persistence != null" >
- persistence,
- </if>
- <if test="attention != null" >
- attention,
- </if>
- <if test="achievements != null" >
- achievements,
- </if>
- <if test="communication != null" >
- communication,
- </if>
- <if test="totalScore != null" >
- total_score,
- </if>
- <if test="clinicalFeedback != null" >
- clinical_feedback,
- </if>
- <if test="irtRecordor != null" >
- irt_recordor,
- </if>
- <if test="irtRecordTime != null" >
- irt_record_time,
- </if>
- <if test="irtOperationTime != null" >
- irt_operation_time,
- </if>
- <if test="irtOperator != null" >
- irt_operator,
- </if>
- <if test="delFlag != null" >
- del_flag,
- </if>
- <if test="irtStage != null" >
- irt_stage,
- </if>
- <if test="irtTime != null" >
- irt_time,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides="," >
- <if test="id != null" >
- #{id,jdbcType=INTEGER},
- </if>
- <if test="patientNo != null" >
- #{patientNo,jdbcType=VARCHAR},
- </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="recureItem != null" >
- #{recureItem,jdbcType=VARCHAR},
- </if>
- <if test="recureName != null" >
- #{recureName,jdbcType=VARCHAR},
- </if>
- <if test="recureTargetCode != null" >
- #{recureTargetCode,jdbcType=VARCHAR},
- </if>
- <if test="recureTargetName != null" >
- #{recureTargetName,jdbcType=VARCHAR},
- </if>
- <if test="neat != null" >
- #{neat,jdbcType=INTEGER},
- </if>
- <if test="coordinate != null" >
- #{coordinate,jdbcType=INTEGER},
- </if>
- <if test="obey != null" >
- #{obey,jdbcType=INTEGER},
- </if>
- <if test="initiative != null" >
- #{initiative,jdbcType=INTEGER},
- </if>
- <if test="persistence != null" >
- #{persistence,jdbcType=INTEGER},
- </if>
- <if test="attention != null" >
- #{attention,jdbcType=INTEGER},
- </if>
- <if test="achievements != null" >
- #{achievements,jdbcType=INTEGER},
- </if>
- <if test="communication != null" >
- #{communication,jdbcType=INTEGER},
- </if>
- <if test="totalScore != null" >
- #{totalScore,jdbcType=INTEGER},
- </if>
- <if test="clinicalFeedback != null" >
- #{clinicalFeedback,jdbcType=VARCHAR},
- </if>
- <if test="irtRecordor != null" >
- #{irtRecordor,jdbcType=VARCHAR},
- </if>
- <if test="irtRecordTime != null" >
- #{irtRecordTime,jdbcType=TIMESTAMP},
- </if>
- <if test="irtOperationTime != null" >
- #{irtOperationTime,jdbcType=TIMESTAMP},
- </if>
- <if test="irtOperator != null" >
- #{irtOperator,jdbcType=VARCHAR},
- </if>
- <if test="delFlag != null" >
- #{delFlag,jdbcType=BIT},
- </if>
- <if test="irtStage != null" >
- #{irtStage, jdbcType=INTEGER},
- </if>
- <if test="irtTime != null" >
- #{irtTime, jdbcType=VARCHAR},
- </if>
- </trim>
- </insert>
- <update id="updateByPrimaryKeySelective" parameterType="com.xinxin.topro.inpnurseservice.mysqlmodel.InpRecureRecord" >
- update inp_recure_record
- <set >
- <if test="patientNo != null" >
- patient_no = #{patientNo,jdbcType=VARCHAR},
- </if>
- <if test="ddDepDm != null" >
- dd_dep_dm = #{ddDepDm,jdbcType=VARCHAR},
- </if>
- <if test="dwWardDm != null" >
- dw_ward_dm = #{dwWardDm,jdbcType=VARCHAR},
- </if>
- <if test="dbBedNo != null" >
- db_bed_no = #{dbBedNo,jdbcType=VARCHAR},
- </if>
- <if test="recureItem != null" >
- recure_item = #{recureItem,jdbcType=VARCHAR},
- </if>
- <if test="recureName != null" >
- recure_name = #{recureName,jdbcType=VARCHAR},
- </if>
- <if test="recureTargetCode != null" >
- recure_target_code = #{recureTargetCode,jdbcType=VARCHAR},
- </if>
- <if test="recureTargetName != null" >
- recure_target_name = #{recureTargetName,jdbcType=VARCHAR},
- </if>
- <if test="neat != null" >
- neat = #{neat,jdbcType=INTEGER},
- </if>
- <if test="coordinate != null" >
- coordinate = #{coordinate,jdbcType=INTEGER},
- </if>
- <if test="obey != null" >
- obey = #{obey,jdbcType=INTEGER},
- </if>
- <if test="initiative != null" >
- initiative = #{initiative,jdbcType=INTEGER},
- </if>
- <if test="persistence != null" >
- persistence = #{persistence,jdbcType=INTEGER},
- </if>
- <if test="attention != null" >
- attention = #{attention,jdbcType=INTEGER},
- </if>
- <if test="achievements != null" >
- achievements = #{achievements,jdbcType=INTEGER},
- </if>
- <if test="communication != null" >
- communication = #{communication,jdbcType=INTEGER},
- </if>
- <if test="totalScore != null" >
- total_score = #{totalScore,jdbcType=INTEGER},
- </if>
- <if test="clinicalFeedback != null" >
- clinical_feedback = #{clinicalFeedback,jdbcType=VARCHAR},
- </if>
- <if test="irtRecordor != null" >
- irt_recordor = #{irtRecordor,jdbcType=VARCHAR},
- </if>
- <if test="irtRecordTime != null" >
- irt_record_time = #{irtRecordTime,jdbcType=TIMESTAMP},
- </if>
- <if test="irtOperationTime != null" >
- irt_operation_time = #{irtOperationTime,jdbcType=TIMESTAMP},
- </if>
- <if test="irtOperator != null" >
- irt_operator = #{irtOperator,jdbcType=VARCHAR},
- </if>
- <if test="delFlag != null" >
- del_flag = #{delFlag,jdbcType=BIT},
- </if>
- <if test="irtStage != null" >
- irt_stage = #{irtStage, jdbcType=INTEGER},
- </if>
- <if test="irtTime != null" >
- irt_time = #{irtTime, jdbcType=VARCHAR},
- </if>
- </set>
- where id = #{id,jdbcType=INTEGER}
- </update>
- <update id="updateByPrimaryKey" parameterType="com.xinxin.topro.inpnurseservice.mysqlmodel.InpRecureRecord" >
- update inp_recure_record
- set patient_no = #{patientNo,jdbcType=VARCHAR},
- dd_dep_dm = #{ddDepDm,jdbcType=VARCHAR},
- dw_ward_dm = #{dwWardDm,jdbcType=VARCHAR},
- db_bed_no = #{dbBedNo,jdbcType=VARCHAR},
- recure_item = #{recureItem,jdbcType=VARCHAR},
- recure_name = #{recureName,jdbcType=VARCHAR},
- recure_target_code = #{recureTargetCode,jdbcType=VARCHAR},
- recure_target_name = #{recureTargetName,jdbcType=VARCHAR},
- neat = #{neat,jdbcType=INTEGER},
- coordinate = #{coordinate,jdbcType=INTEGER},
- obey = #{obey,jdbcType=INTEGER},
- initiative = #{initiative,jdbcType=INTEGER},
- persistence = #{persistence,jdbcType=INTEGER},
- attention = #{attention,jdbcType=INTEGER},
- achievements = #{achievements,jdbcType=INTEGER},
- communication = #{communication,jdbcType=INTEGER},
- total_score = #{totalScore,jdbcType=INTEGER},
- clinical_feedback = #{clinicalFeedback,jdbcType=VARCHAR},
- irt_recordor = #{irtRecordor,jdbcType=VARCHAR},
- irt_record_time = #{irtRecordTime,jdbcType=TIMESTAMP},
- irt_operation_time = #{irtOperationTime,jdbcType=TIMESTAMP},
- irt_operator = #{irtOperator,jdbcType=VARCHAR},
- del_flag = #{delFlag,jdbcType=BIT},
- irt_stage = #{irtStage, jdbcType=INTEGER},
- irt_time = #{irtTime, jdbcType=VARCHAR}
- where id = #{id,jdbcType=INTEGER}
- </update>
- <select id="selectByPatientNo" resultMap="BaseResultMap">
- select
- <include refid="Base_Column_List" />
- from inp_recure_record
- where patient_no = #{patientNo,jdbcType=VARCHAR}
- and del_flag = 0
- order by irt_record_time desc
- </select>
- <select id="selectSameStageIds" resultType="java.lang.Integer" parameterType="com.xinxin.topro.inpnurseservice.mysqlmodel.InpRecureRecord">
- SELECT id FROM inp_recure_record
- <where>
- <if test="patientNo != null">
- AND patient_no = #{patientNo}
- </if>
- <if test="recureItem != null ">
- AND recure_item = #{recureItem}
- </if>
- <if test="irtStage != null ">
- AND irt_stage < #{irtStage}
- </if>
- and del_flag = 0
- </where>
- </select>
- <select id="selectByQuery" resultMap="BaseResultMap" parameterType="com.xinxin.topro.inpnurseservice.mysqlmodel.InpRecureRecord">
- select
- <include refid="Base_Column_List" />
- from inp_recure_record
- <where>
- <if test="patientNo != null">
- AND patient_no = #{patientNo}
- </if>
- <if test="recureItem != null ">
- AND recure_item = #{recureItem}
- </if>
- and del_flag = 0
- </where>
- order by irt_record_time desc
- </select>
- </mapper>
|