123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699 |
- <?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.InpAuditSoreMapper" >
- <resultMap id="BaseResultMap" type="com.xinxin.topro.inpnurseservice.mysqlmodel.InpAuditSore" >
- <id column="IAS_ID" property="iasId" 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="IAS_SoreId" property="iasSoreid" jdbcType="VARCHAR" />
- <result column="IAS_RiskId" property="iasRiskid" jdbcType="VARCHAR" />
- <result column="IAS_PressureId" property="iasPressureId" jdbcType="INTEGER"/>
- <result column="IAS_IsExamHZ" property="iasIsExamHlb" jdbcType="INTEGER"/>
- <result column="IAS_IsHzAuditor" property="iasIsHlbAuditor" jdbcType="VARCHAR"/>
- <result column="IAS_IsExamHLB" property="iasIsEndState" jdbcType="INTEGER"/>
- <result column="IAS_IsHlbAuditor" property="iasIsHlbAuditor" jdbcType="VARCHAR"/>
- <result column="IAS_IsEndState" property="iasIsOutComeEnd" jdbcType="INTEGER"/>
- <result column="IAS_AuditorPerson" property="iasAuditorPerson" jdbcType="VARCHAR"/>
- <result column="IAS_IsOutComeEnd" property="iasIsEndState" jdbcType="INTEGER"/>
- <result column="IAS_Init" property="iasInit" jdbcType="INTEGER" />
- <result column="IAS_Score" property="iasScore" jdbcType="DOUBLE" />
- <result column="IAS_Size" property="iasSize" jdbcType="VARCHAR" />
- <result column="IAS_Position" property="iasPosition" jdbcType="VARCHAR" />
- <result column="IAS_bradenSource" property="bradenSource" jdbcType="VARCHAR"/>
- <result column="IAS_Classification" property="iasClassification" jdbcType="VARCHAR" />
- <result column="IAS_Outcome" property="iasOutcome" jdbcType="VARCHAR" />
- <result column="IAS_Whereabouts" property="iasWhereabouts" jdbcType="VARCHAR" />
- <result column="IAS_IsEnd" property="iasIsend" jdbcType="INTEGER" />
- <result column="IAS_IsEndTime" property="iasIsendtime" jdbcType="TIMESTAMP" />
- <result column="IAS_IsExam" property="iasIsexam" jdbcType="INTEGER" />
- <result column="IAS_IsPrint" property="iasIsprint" jdbcType="INTEGER" />
- <result column="IAS_IsAudit" property="iasIsaudit" jdbcType="INTEGER" />
- <result column="IAS_Recordor" property="iasRecordor" jdbcType="VARCHAR" />
- <result column="IAS_Record_Time" property="iasRecordTime" jdbcType="TIMESTAMP" />
- <result column="IAS_Auditor1" property="iasAuditor1" jdbcType="VARCHAR" />
- <result column="IAS_AuditorDetail1" property="iasAuditordetail1" jdbcType="VARCHAR" />
- <result column="IAS_Auditor_Time1" property="iasAuditorTime1" jdbcType="TIMESTAMP" />
- <result column="IAS_Auditor2" property="iasAuditor2" jdbcType="VARCHAR" />
- <result column="IAS_AuditorDetail2" property="iasAuditordetail2" jdbcType="VARCHAR" />
- <result column="IAS_Auditor_Time2" property="iasAuditorTime2" jdbcType="TIMESTAMP" />
- <result column="IAS_Operation_Time" property="iasOperationTime" jdbcType="TIMESTAMP" />
- <result column="IAS_Operator" property="iasOperator" jdbcType="VARCHAR" />
- <result column="IAS_IsDel" property="iasIsdel" jdbcType="INTEGER" />
- <result column="IAS_IsEndDetail" property="iasIsEndDetail" jdbcType="VARCHAR" />
- </resultMap>
- <sql id="Base_Column_List" >
- IAS_ID, PatientNo, HI_ID, DD_DepDm, DW_WardDm, DB_BedNo, IAS_SoreId, IAS_RiskId, IAS_PressureId,
- IAS_IsExamHZ,IAS_IsExamHLB,IAS_IsHzAuditor,IAS_IsHlbAuditor,IAS_IsEndState,IAS_IsOutComeEnd,IAS_Init, IAS_Score, IAS_Size, IAS_Position,
- IAS_Classification, IAS_bradenSource,IAS_Outcome,IAS_AuditorPerson, IAS_Whereabouts,
- IAS_IsEnd, IAS_IsEndTime, IAS_IsExam, IAS_IsPrint, IAS_IsAudit, IAS_Recordor, IAS_Record_Time,
- IAS_Auditor1, IAS_AuditorDetail1, IAS_Auditor_Time1, IAS_Auditor2, IAS_AuditorDetail2,
- IAS_Auditor_Time2, IAS_Operation_Time, IAS_Operator, IAS_IsDel, IAS_IsEndDetail
- </sql>
- <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
- select
- <include refid="Base_Column_List" />
- from inp_audit_sore
- where IAS_IsDel = 0 and IAS_ID = #{iasId,jdbcType=INTEGER}
- </select>
- <select id="selectSearchList" resultMap="BaseResultMap" parameterType="com.xinxin.topro.inpnurseservice.request.InpAuditSoreSearchRequest" >
- select
- <include refid="Base_Column_List" />
- from inp_audit_sore
- where IAS_IsDel = 0
- <if test="beginDate != null" >
- and IAS_Record_Time <![CDATA[>=]]> #{beginDate}
- </if>
- <if test="endDate != null" >
- and IAS_Record_Time <![CDATA[<=]]>#{endDate}
- </if>
- <if test="hiId != null" >
- and HI_ID = #{hiId,jdbcType=INTEGER}
- </if>
- <if test="dwWarddm != null" >
- and DW_WardDm = #{dwWarddm,jdbcType=VARCHAR}
- </if>
- <if test="isAuditState != null" >
- and
- <if test="isAuditState == 1">
- ias.IAS_IsExamHZ = 1
- </if>
- <if test="isAuditState == 2">
- IAS_IsExamHLB = 1
- </if>
- <if test="isAuditState == 3">
- IAS_IsOutComeEnd=1
- </if>
- </if>
- <if test="iasIsEndState != null" >
- and ias.IAS_IsEndState = #{iasIsEndState,jdbcType=INTEGER}
- </if>
- <if test="patientNo != null" >
- and PatientNo = #{patientNo,jdbcType=VARCHAR}
- </if>
- order by IAS_Record_Time desc
- </select>
- <select id="selectList" resultType="com.xinxin.topro.inpnurseservice.response.InpAuditSoreListLSResponse" parameterType="com.xinxin.topro.inpnurseservice.request.InpAuditLSSoreSearchRequest" >
- select
- ias.IAS_ID as iasId,ias.HI_ID as hiId,vp.DB_BedNo as dbBedno,ias.DW_WardDm as dwWardDm, ias.IAS_Recordor as iasRecordor,
- ias.IAS_SoreId as iasSoreid,ias.IAS_RiskId as iasRiskId,ias.PatientNo as patientNo,ias.IAS_PressureId as iasPressureId,
- ias.IAS_IsHzAuditor as iasHzAuditor,ias.IAS_IsHlbAuditor as iasHlbAuditor,ias.IAS_bradenSource as bradenSource,ias.IAS_AuditorPerson as iasAuditorPerson,
- ias.IAS_Init as iasInit,ias.IAS_Score as iasScore,ias.IAS_Size as iasSize,ias.IAS_Position as iasPosition,
- ias.IAS_Classification as iasClassification,ias.IAS_Outcome as iasOutcome,ias.IAS_Whereabouts as iasWhereabouts,
- ias.IAS_IsExam as iasIsexam,ias.IAS_IsPrint as iasIsprint,ias.IAS_Record_Time as iasRecordTime,ias.IAS_IsEndTime as iasIsendtime,
- ias.IAS_IsEndDetail as iasIsEndDetail,
- vp.IP_Name as ptName,(
- CASE vp.IP_Sex
- WHEN 1 THEN
- '男'
- WHEN 2 THEN
- '女'
- ELSE
- '未知'
- END
- ) AS `Gender`,vp.IP_Med_Rec as ChartNo,
- f_getAge(vp.IP_Birth,vp.IP_Admit_Time) as age,vp.IP_Admit_Time as adminTime,vp.IP_Admit_Diagnosis as DiagName,dw.DW_WardName as DepartName
- from inp_audit_sore ias
- inner join inp_patient vp on ias.PatientNo = vp.IP_PatientNo
- inner join dic_ward dw on ias.DW_WardDm = dw.DW_WardDm
- where ias.IAS_IsDel = 0
- <if test="beginDate != null" >
- and ias.IAS_Record_Time <![CDATA[>=]]> #{beginDate}
- </if>
- <if test="endDate != null" >
- and ias.IAS_Record_Time <![CDATA[<=]]>#{endDate}
- </if>
- <if test="hiId != null" >
- and ias.HI_ID = #{hiId,jdbcType=INTEGER}
- </if>
- <if test="dwWarddm != null and dwWarddm != ''" >
- and ias.DW_WardDm = #{dwWarddm,jdbcType=VARCHAR}
- </if>
- <if test="isAuditState != null" >
- and
- <if test="isAuditState==1">
- ias.IAS_IsExamHZ = 1
- </if>
- <if test="isAuditState==2">
- IAS_IsExamHLB = 1
- </if>
- <if test="isAuditState ==3">
- IAS_IsOutComeEnd=1
- </if>
- </if>
- <if test="iasIsEndState != null" >
- and ias.IAS_IsEndState = #{iasIsEndState,jdbcType=INTEGER}
- </if>
- <if test="patientNo != null" >
- and ias.PatientNo = #{patientNo,jdbcType=VARCHAR}
- </if>
- <if test="chartNo != null and chartNo != ''" >
- and vp.IP_Med_Rec = #{chartNo,jdbcType=VARCHAR}
- </if>
- order by ias.IAS_Record_Time desc
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
- delete from inp_audit_sore
- where IAS_ID = #{iasId,jdbcType=INTEGER}
- </delete>
- <insert id="insert" parameterType="com.xinxin.topro.inpnurseservice.mysqlmodel.InpAuditSore" >
- insert into inp_audit_sore (IAS_ID, PatientNo, HI_ID,
- DD_DepDm, DW_WardDm, DB_BedNo,
- IAS_SoreId, IAS_RiskId,IAS_PressureId,
- IAS_IsExamHZ,IAS_IsHzAuditor,IAS_IsExamHLB,IAS_IsHlbAuditor,IAS_IsEndState,IAS_AuditorPerson,IAS_IsOutComeEnd,
- IAS_Init,
- IAS_Score, IAS_Size, IAS_Position,
- IAS_Classification, IAS_Outcome, IAS_Whereabouts,
- IAS_IsEnd, IAS_IsEndTime, IAS_IsExam,
- IAS_IsPrint, IAS_IsAudit, IAS_Recordor,
- IAS_Record_Time, IAS_Auditor1, IAS_AuditorDetail1,
- IAS_Auditor_Time1, IAS_Auditor2, IAS_AuditorDetail2,
- IAS_Auditor_Time2, IAS_Operation_Time,
- IAS_Operator, IAS_IsDel,IAS_IsEndDetail)
- values (#{iasId,jdbcType=INTEGER}, #{patientno,jdbcType=VARCHAR}, #{hiId,jdbcType=INTEGER},
- #{ddDepdm,jdbcType=VARCHAR}, #{dwWarddm,jdbcType=VARCHAR}, #{dbBedno,jdbcType=VARCHAR},
- #{iasSoreid,jdbcType=VARCHAR}, #{iasRiskid,jdbcType=VARCHAR},#{iasPressureId,jdbcType=INTEGER},
- #{iasIsExamHz,jdbcType=INTEGER},#{iasIsHzAuditor,jdbcType=VARCHAR},
- #{iasIsExamHlb,jdbcType=INTEGER},#{iasIsHlbAuditor,jdbcType=VARCHAR},#{iasIsEndState,jdbcType=INTEGER},
- #{iasAuditorPerson,jdbcType=VARCHAR},
- #{iasIsOutComeEnd,jdbcType=INTEGER},#{iasInit,jdbcType=INTEGER},
- #{iasScore,jdbcType=DOUBLE}, #{iasSize,jdbcType=VARCHAR}, #{iasPosition,jdbcType=VARCHAR},
- #{iasClassification,jdbcType=VARCHAR}, #{iasOutcome,jdbcType=VARCHAR}, #{iasWhereabouts,jdbcType=VARCHAR},
- #{iasIsend,jdbcType=INTEGER}, #{iasIsendtime,jdbcType=TIMESTAMP}, #{iasIsexam,jdbcType=INTEGER},
- #{iasIsprint,jdbcType=INTEGER}, #{iasIsaudit,jdbcType=INTEGER}, #{iasRecordor,jdbcType=VARCHAR},
- #{iasRecordTime,jdbcType=TIMESTAMP}, #{iasAuditor1,jdbcType=VARCHAR}, #{iasAuditordetail1,jdbcType=VARCHAR},
- #{iasAuditorTime1,jdbcType=TIMESTAMP}, #{iasAuditor2,jdbcType=VARCHAR}, #{iasAuditordetail2,jdbcType=VARCHAR},
- #{iasAuditorTime2,jdbcType=TIMESTAMP}, #{iasOperationTime,jdbcType=TIMESTAMP},
- #{iasOperator,jdbcType=VARCHAR}, #{iasIsdel,jdbcType=INTEGER}, #{iasIsEndDetail,jdbcType=VARCHAR})
- </insert>
- <insert id="insertSelective" parameterType="com.xinxin.topro.inpnurseservice.mysqlmodel.InpAuditSore" >
- insert into inp_audit_sore
- <trim prefix="(" suffix=")" suffixOverrides="," >
- <if test="iasId != null" >
- IAS_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="iasSoreid != null" >
- IAS_SoreId,
- </if>
- <if test="iasRiskid != null" >
- IAS_RiskId,
- </if>
- <if test="iasPressureId != null ">
- IAS_PressureId,
- </if>
- <if test="iasIsExamHz != null ">
- IAS_IsExamHZ,
- </if>
- <if test="iasIsHzAuditor != null">
- IAS_IsHzAuditor,
- </if>
- <if test="iasIsExamHlb != null ">
- IAS_IsExamHLB,
- </if>
- <if test="iasIsHlbAuditor != null">
- IAS_IsHlbAuditor,
- </if>
- <if test="iasIsEndState != null ">
- IAS_IsEndState,
- </if>
- <if test="iasAuditorPerson != null and iasAuditorPerson != ''">
- IAS_AuditorPerson,
- </if>
- <if test="iasIsOutComeEnd != null ">
- IAS_IsOutComeEnd,
- </if>
- <if test="iasInit != null" >
- IAS_Init,
- </if>
- <if test="iasScore != null" >
- IAS_Score,
- </if>
- <if test="iasSize != null" >
- IAS_Size,
- </if>
- <if test="iasPosition != null" >
- IAS_Position,
- </if>
- <if test="bradenSource != null and bradenSource != ''">
- IAS_bradenSource,
- </if>
- <if test="iasClassification != null" >
- IAS_Classification,
- </if>
- <if test="iasOutcome != null" >
- IAS_Outcome,
- </if>
- <if test="iasWhereabouts != null" >
- IAS_Whereabouts,
- </if>
- <if test="iasIsend != null" >
- IAS_IsEnd,
- </if>
- <if test="iasIsendtime != null" >
- IAS_IsEndTime,
- </if>
- <if test="iasIsexam != null" >
- IAS_IsExam,
- </if>
- <if test="iasIsprint != null" >
- IAS_IsPrint,
- </if>
- <if test="iasIsaudit != null" >
- IAS_IsAudit,
- </if>
- <if test="iasRecordor != null" >
- IAS_Recordor,
- </if>
- <if test="iasRecordTime != null" >
- IAS_Record_Time,
- </if>
- <if test="iasAuditor1 != null" >
- IAS_Auditor1,
- </if>
- <if test="iasAuditordetail1 != null" >
- IAS_AuditorDetail1,
- </if>
- <if test="iasAuditorTime1 != null" >
- IAS_Auditor_Time1,
- </if>
- <if test="iasAuditor2 != null" >
- IAS_Auditor2,
- </if>
- <if test="iasAuditordetail2 != null" >
- IAS_AuditorDetail2,
- </if>
- <if test="iasAuditorTime2 != null" >
- IAS_Auditor_Time2,
- </if>
- <if test="iasOperationTime != null" >
- IAS_Operation_Time,
- </if>
- <if test="iasOperator != null" >
- IAS_Operator,
- </if>
- <if test="iasIsdel != null" >
- IAS_IsDel,
- </if>
- <if test="iasIsEndDetail != null" >
- IAS_IsEndDetail,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides="," >
- <if test="iasId != null" >
- #{iasId,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="iasSoreid != null" >
- #{iasSoreid,jdbcType=VARCHAR},
- </if>
- <if test="iasRiskid != null" >
- #{iasRiskid,jdbcType=VARCHAR},
- </if>
- <if test="iasPressureId != null ">
- #{iasPressureId,jdbcType=INTEGER},
- </if>
- <if test="iasIsExamHz != null ">
- #{iasIsExamHz,jdbcType=INTEGER},
- </if>
- <if test="iasIsHzAuditor != null">
- #{iasIsHzAuditor,jdbcType=VARCHAR},
- </if>
- <if test="iasIsExamHlb != null ">
- #{iasIsExamHlb,jdbcType=INTEGER},
- </if>
- <if test="iasIsHlbAuditor != null">
- #{iasIsHlbAuditor,jdbcType=VARCHAR},
- </if>
- <if test="iasIsEndState != null ">
- #{iasIsEndState,jdbcType=INTEGER},
- </if>
- <if test="iasAuditorPerson != null and iasAuditorPerson != ''">
- #{iasAuditorPerson,jdbcType=VARCHAR},
- </if>
- <if test="iasIsOutComeEnd != null ">
- #{iasIsOutComeEnd,jdbcType=INTEGER},
- </if>
- <if test="iasInit != null" >
- #{iasInit,jdbcType=INTEGER},
- </if>
- <if test="iasScore != null" >
- #{iasScore,jdbcType=DOUBLE},
- </if>
- <if test="iasSize != null" >
- #{iasSize,jdbcType=VARCHAR},
- </if>
- <if test="iasPosition != null" >
- #{iasPosition,jdbcType=VARCHAR},
- </if>
- <if test="bradenSource != null and bradenSource != ''">
- #{bradenSource,jdbcType=VARCHAR},
- </if>
- <if test="iasClassification != null" >
- #{iasClassification,jdbcType=VARCHAR},
- </if>
- <if test="iasOutcome != null" >
- #{iasOutcome,jdbcType=VARCHAR},
- </if>
- <if test="iasWhereabouts != null" >
- #{iasWhereabouts,jdbcType=VARCHAR},
- </if>
- <if test="iasIsend != null" >
- #{iasIsend,jdbcType=INTEGER},
- </if>
- <if test="iasIsendtime != null" >
- #{iasIsendtime,jdbcType=TIMESTAMP},
- </if>
- <if test="iasIsexam != null" >
- #{iasIsexam,jdbcType=INTEGER},
- </if>
- <if test="iasIsprint != null" >
- #{iasIsprint,jdbcType=INTEGER},
- </if>
- <if test="iasIsaudit != null" >
- #{iasIsaudit,jdbcType=INTEGER},
- </if>
- <if test="iasRecordor != null" >
- #{iasRecordor,jdbcType=VARCHAR},
- </if>
- <if test="iasRecordTime != null" >
- #{iasRecordTime,jdbcType=TIMESTAMP},
- </if>
- <if test="iasAuditor1 != null" >
- #{iasAuditor1,jdbcType=VARCHAR},
- </if>
- <if test="iasAuditordetail1 != null" >
- #{iasAuditordetail1,jdbcType=VARCHAR},
- </if>
- <if test="iasAuditorTime1 != null" >
- #{iasAuditorTime1,jdbcType=TIMESTAMP},
- </if>
- <if test="iasAuditor2 != null" >
- #{iasAuditor2,jdbcType=VARCHAR},
- </if>
- <if test="iasAuditordetail2 != null" >
- #{iasAuditordetail2,jdbcType=VARCHAR},
- </if>
- <if test="iasAuditorTime2 != null" >
- #{iasAuditorTime2,jdbcType=TIMESTAMP},
- </if>
- <if test="iasOperationTime != null" >
- #{iasOperationTime,jdbcType=TIMESTAMP},
- </if>
- <if test="iasOperator != null" >
- #{iasOperator,jdbcType=VARCHAR},
- </if>
- <if test="iasIsdel != null" >
- #{iasIsdel,jdbcType=INTEGER},
- </if>
- <if test="iasIsEndDetail != null" >
- #{iasIsEndDetail,jdbcType=VARCHAR},
- </if>
- </trim>
- </insert>
- <update id="updateByPrimaryKeySelective" parameterType="com.xinxin.topro.inpnurseservice.mysqlmodel.InpAuditSore" >
- update inp_audit_sore
- <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="iasSoreid != null" >
- IAS_SoreId = #{iasSoreid,jdbcType=VARCHAR},
- </if>
- <if test="iasRiskid != null" >
- IAS_RiskId = #{iasRiskid,jdbcType=VARCHAR},
- </if>
- <if test="iasPressureId != null ">
- #{iasPressureId,jdbcType=INTEGER},
- </if>
- <if test="iasIsExamHz != null ">
- #{iasIsExamHz,jdbcType=INTEGER},
- </if>
- <if test="iasIsHzAuditor != null">
- #{iasIsHzAuditor,jdbcType=VARCHAR},
- </if>
- <if test="iasIsExamHlb != null ">
- #{iasIsExamHlb,jdbcType=INTEGER},
- </if>
- <if test="iasIsHlbAuditor != null">
- #{iasIsHlbAuditor,jdbcType=VARCHAR},
- </if>
- <if test="iasIsEndState != null ">
- #{iasIsEndState,jdbcType=INTEGER},
- </if>
- <if test="iasAuditorPerson != null and iasAuditorPerson != ''">
- #{iasAuditorPerson,jdbcType=VARCHAR},
- </if>
- <if test="iasIsOutComeEnd != null ">
- #{iasIsOutComeEnd,jdbcType=INTEGER},
- </if>
- <if test="iasInit != null" >
- IAS_Init = #{iasInit,jdbcType=INTEGER},
- </if>
- <if test="iasScore != null" >
- IAS_Score = #{iasScore,jdbcType=DOUBLE},
- </if>
- <if test="iasSize != null" >
- IAS_Size = #{iasSize,jdbcType=VARCHAR},
- </if>
- <if test="iasPosition != null" >
- IAS_Position = #{iasPosition,jdbcType=VARCHAR},
- </if>
- <if test="iasClassification != null" >
- IAS_Classification = #{iasClassification,jdbcType=VARCHAR},
- </if>
- <if test="iasOutcome != null" >
- IAS_Outcome = #{iasOutcome,jdbcType=VARCHAR},
- </if>
- <if test="iasWhereabouts != null" >
- IAS_Whereabouts = #{iasWhereabouts,jdbcType=VARCHAR},
- </if>
- <if test="iasIsend != null" >
- IAS_IsEnd = #{iasIsend,jdbcType=INTEGER},
- </if>
- <if test="iasIsendtime != null" >
- IAS_IsEndTime = #{iasIsendtime,jdbcType=TIMESTAMP},
- </if>
- <if test="iasIsexam != null" >
- IAS_IsExam = #{iasIsexam,jdbcType=INTEGER},
- </if>
- <if test="iasIsprint != null" >
- IAS_IsPrint = #{iasIsprint,jdbcType=INTEGER},
- </if>
- <if test="iasIsaudit != null" >
- IAS_IsAudit = #{iasIsaudit,jdbcType=INTEGER},
- </if>
- <if test="iasRecordor != null" >
- IAS_Recordor = #{iasRecordor,jdbcType=VARCHAR},
- </if>
- <if test="iasRecordTime != null" >
- IAS_Record_Time = #{iasRecordTime,jdbcType=TIMESTAMP},
- </if>
- <if test="iasAuditor1 != null" >
- IAS_Auditor1 = #{iasAuditor1,jdbcType=VARCHAR},
- </if>
- <if test="iasAuditordetail1 != null" >
- IAS_AuditorDetail1 = #{iasAuditordetail1,jdbcType=VARCHAR},
- </if>
- <if test="iasAuditorTime1 != null" >
- IAS_Auditor_Time1 = #{iasAuditorTime1,jdbcType=TIMESTAMP},
- </if>
- <if test="iasAuditor2 != null" >
- IAS_Auditor2 = #{iasAuditor2,jdbcType=VARCHAR},
- </if>
- <if test="iasAuditordetail2 != null" >
- IAS_AuditorDetail2 = #{iasAuditordetail2,jdbcType=VARCHAR},
- </if>
- <if test="iasAuditorTime2 != null" >
- IAS_Auditor_Time2 = #{iasAuditorTime2,jdbcType=TIMESTAMP},
- </if>
- <if test="iasOperationTime != null" >
- IAS_Operation_Time = #{iasOperationTime,jdbcType=TIMESTAMP},
- </if>
- <if test="iasOperator != null" >
- IAS_Operator = #{iasOperator,jdbcType=VARCHAR},
- </if>
- <if test="iasIsdel != null" >
- IAS_IsDel = #{iasIsdel,jdbcType=INTEGER},
- </if>
- <if test="iasIsEndDetail != null" >
- IAS_IsEndDetail = #{iasIsEndDetail,jdbcType=VARCHAR},
- </if>
- </set>
- where IAS_ID = #{iasId,jdbcType=INTEGER}
- </update>
- <update id="updateByPrimaryKey" parameterType="com.xinxin.topro.inpnurseservice.mysqlmodel.InpAuditSore" >
- update inp_audit_sore
- set PatientNo = #{patientno,jdbcType=VARCHAR},
- HI_ID = #{hiId,jdbcType=INTEGER},
- DD_DepDm = #{ddDepdm,jdbcType=VARCHAR},
- DW_WardDm = #{dwWarddm,jdbcType=VARCHAR},
- DB_BedNo = #{dbBedno,jdbcType=VARCHAR},
- IAS_SoreId = #{iasSoreid,jdbcType=VARCHAR},
- IAS_RiskId = #{iasRiskid,jdbcType=VARCHAR},
- IAS_PressureId=#{iasPressureId,jdbcType=INTEGER},
- IAS_IsExamHZ=#{iasIsExamHz,jdbcType=INTEGER},
- IAS_IsHzAuditor=#{iasIsHzAuditor,jdbcType=VARCHAR},
- IAS_IsExamHLB=#{iasIsExamHlb,jdbcType=INTEGER},
- IAS_IsHlbAuditor=#{iasIsHlbAuditor,jdbcType=VARCHAR},
- IAS_IsEndState=#{iasIsEndState,jdbcType=INTEGER},
- IAS_AuditorPerson=#{iasAuditorPerson,jdbcType=VARCHAR},
- IAS_IsOutComeEnd=#{iasIsOutComeEnd,jdbcType=INTEGER},
- IAS_Init = #{iasInit,jdbcType=INTEGER},
- IAS_Score = #{iasScore,jdbcType=DOUBLE},
- IAS_Size = #{iasSize,jdbcType=VARCHAR},
- IAS_Position = #{iasPosition,jdbcType=VARCHAR},
- IAS_bradenSource = #{bradenSource,jdbcType=VARCHAR},
- IAS_Classification = #{iasClassification,jdbcType=VARCHAR},
- IAS_Outcome = #{iasOutcome,jdbcType=VARCHAR},
- IAS_Whereabouts = #{iasWhereabouts,jdbcType=VARCHAR},
- IAS_IsEnd = #{iasIsend,jdbcType=INTEGER},
- IAS_IsEndTime = #{iasIsendtime,jdbcType=TIMESTAMP},
- IAS_IsExam = #{iasIsexam,jdbcType=INTEGER},
- IAS_IsPrint = #{iasIsprint,jdbcType=INTEGER},
- IAS_IsAudit = #{iasIsaudit,jdbcType=INTEGER},
- IAS_Recordor = #{iasRecordor,jdbcType=VARCHAR},
- IAS_Record_Time = #{iasRecordTime,jdbcType=TIMESTAMP},
- IAS_Auditor1 = #{iasAuditor1,jdbcType=VARCHAR},
- IAS_AuditorDetail1 = #{iasAuditordetail1,jdbcType=VARCHAR},
- IAS_Auditor_Time1 = #{iasAuditorTime1,jdbcType=TIMESTAMP},
- IAS_Auditor2 = #{iasAuditor2,jdbcType=VARCHAR},
- IAS_AuditorDetail2 = #{iasAuditordetail2,jdbcType=VARCHAR},
- IAS_Auditor_Time2 = #{iasAuditorTime2,jdbcType=TIMESTAMP},
- IAS_Operation_Time = #{iasOperationTime,jdbcType=TIMESTAMP},
- IAS_Operator = #{iasOperator,jdbcType=VARCHAR},
- IAS_IsDel = #{iasIsdel,jdbcType=INTEGER},
- IAS_IsEndDetail = #{iasIsEndDetail,jdbcType=VARCHAR}
- where IAS_ID = #{iasId,jdbcType=INTEGER}
- </update>
- <update id="updateDelStatus" parameterType="com.xinxin.topro.inpnurseservice.mysqlmodel.InpAuditSore" >
- update inp_audit_sore
- set IAS_Operation_Time = #{iasOperationTime,jdbcType=TIMESTAMP},
- IAS_Operator = #{iasOperator,jdbcType=VARCHAR},
- IAS_IsDel = -1
- where IAS_ID = #{iasId,jdbcType=INTEGER}
- </update>
- <select id="selectByPatientNo" resultMap="BaseResultMap">
- select
- IAS_ID,
- IAS_Record_Time,
- (select UI_Name from sys_userinfo where UI_Code = ias.IAS_Recordor and HI_ID = ias.HI_ID limit 1) IAS_Recordor
- from inp_audit_sore ias
- where IAS_IsDel = 0
- and PatientNo = #{patientNo,jdbcType=VARCHAR}
- and HI_ID = #{hiId,jdbcType=INTEGER}
- order by IAS_Record_Time desc
- </select>
- <select id="selectByPressureId" resultMap="BaseResultMap">
- select
- <include refid="Base_Column_List"/>
- from inp_audit_sore
- where IAS_IsDel=0
- <if test="iaId !=null ">
- AND IAS_PressureId=#{iaId,jdbcType=VARCHAR}
- </if>
- </select>
- <update id="updateIaDel">
- update inp_audit_sore
- set
- IAS_IsDel = -1
- where IAS_PressureId = #{iaId,jdbcType=INTEGER}
- </update>
- <update id="updateByPressureId" parameterType="com.xinxin.topro.inpnurseservice.mysqlmodel.InpAuditSore">
- update inp_audit_sore
- set PatientNo = #{record.patientno,jdbcType=VARCHAR},
- HI_ID = #{record.hiId,jdbcType=INTEGER},
- DD_DepDm = #{record.ddDepdm,jdbcType=VARCHAR},
- DW_WardDm = #{record.dwWarddm,jdbcType=VARCHAR},
- DB_BedNo = #{record.dbBedno,jdbcType=VARCHAR},
- IAS_SoreId = #{record.iasSoreid,jdbcType=VARCHAR},
- IAS_RiskId = #{record.iasRiskid,jdbcType=VARCHAR},
- IAS_PressureId=#{record.iasPressureId,jdbcType=INTEGER},
- IAS_IsExamHZ=#{record.iasIsExamHz,jdbcType=INTEGER},
- IAS_IsHzAuditor=#{record.iasIsHzAuditor,jdbcType=VARCHAR},
- IAS_IsExamHLB=#{record.iasIsExamHlb,jdbcType=INTEGER},
- IAS_IsHlbAuditor=#{record.iasIsHlbAuditor,jdbcType=VARCHAR},
- IAS_IsEndState=#{record.iasIsEndState,jdbcType=INTEGER},
- IAS_AuditorPerson=#{record.iasAuditorPerson,jdbcType=VARCHAR},
- IAS_IsOutComeEnd=#{record.iasIsOutComeEnd,jdbcType=INTEGER},
- IAS_Init = #{record.iasInit,jdbcType=INTEGER},
- IAS_Score = #{record.iasScore,jdbcType=DOUBLE},
- IAS_Size = #{record.iasSize,jdbcType=VARCHAR},
- IAS_Position = #{record.iasPosition,jdbcType=VARCHAR},
- IAS_bradenSource = #{record.bradenSource,jdbcType=VARCHAR},
- IAS_Classification = #{record.iasClassification,jdbcType=VARCHAR},
- IAS_Outcome = #{record.iasOutcome,jdbcType=VARCHAR},
- IAS_Whereabouts = #{record.iasWhereabouts,jdbcType=VARCHAR},
- IAS_IsEnd = #{record.iasIsend,jdbcType=INTEGER},
- IAS_IsEndTime = #{record.iasIsendtime,jdbcType=TIMESTAMP},
- IAS_IsExam = #{record.iasIsexam,jdbcType=INTEGER},
- IAS_IsPrint = #{record.iasIsprint,jdbcType=INTEGER},
- IAS_IsAudit = #{record.iasIsaudit,jdbcType=INTEGER},
- IAS_Recordor = #{record.iasRecordor,jdbcType=VARCHAR},
- IAS_Record_Time = #{record.iasRecordTime,jdbcType=TIMESTAMP},
- IAS_Auditor1 = #{record.iasAuditor1,jdbcType=VARCHAR},
- IAS_AuditorDetail1 = #{record.iasAuditordetail1,jdbcType=VARCHAR},
- IAS_Auditor_Time1 = #{record.iasAuditorTime1,jdbcType=TIMESTAMP},
- IAS_Auditor2 = #{record.iasAuditor2,jdbcType=VARCHAR},
- IAS_AuditorDetail2 = #{record.iasAuditordetail2,jdbcType=VARCHAR},
- IAS_Auditor_Time2 = #{record.iasAuditorTime2,jdbcType=TIMESTAMP},
- IAS_Operation_Time = #{record.iasOperationTime,jdbcType=TIMESTAMP},
- IAS_Operator = #{record.iasOperator,jdbcType=VARCHAR},
- IAS_IsDel = #{record.iasIsdel,jdbcType=INTEGER},
- IAS_IsEndDetail = #{record.iasIsEndDetail,jdbcType=VARCHAR}
- where IAS_ID = #{record.iasId,jdbcType=INTEGER} and IAS_PressureId=#{iaId,jdbcType=INTEGER}
- </update>
- </mapper>
|