| | |
| | | <result property="opreqid" column="opreqid"/> |
| | | <result property="opreqcode" column="opreqcode"/> |
| | | <result property="opsstatus" column="opsstatus"/> |
| | | <result property="operationcode" column="operationcode"/> |
| | | <result property="operationname" column="operationname"/> |
| | | <result property="optypecode" column="optypecode"/> |
| | | <result property="optypename" column="optypename"/> |
| | | <result property="operatortime" column="operatortime"/> |
| | | <result property="opreqtime" column="opreqtime"/> |
| | | <result property="reqdoccode" column="reqdoccode"/> |
| | |
| | | <result property="drname" column="drname"/> |
| | | <result property="nurseId" column="nurse_id"/> |
| | | <result property="nurseName" column="nurse_name"/> |
| | | <result property="checkFlag" column="check_flag"/> |
| | | <result property="longTaskReason" column="long_task_reason"/> |
| | | <result property="opid" column="opid"/> |
| | | <result property="opcode" column="opcode"/> |
| | | <result property="opdesc" column="opdesc"/> |
| | | <result property="oplevelcode" column="oplevelcode"/> |
| | | <result property="opleveldesc" column="opleveldesc"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectPatMedOperationVo"> |
| | |
| | | opreqid, |
| | | opreqcode, |
| | | opsstatus, |
| | | operationcode, |
| | | operationname, |
| | | optypecode, |
| | | optypename, |
| | | operatortime, |
| | | opreqtime, |
| | | reqdoccode, |
| | |
| | | drcode, |
| | | drname, |
| | | nurse_id, |
| | | nurse_name |
| | | nurse_name, |
| | | check_flag, |
| | | long_task_reason, |
| | | opid, |
| | | opcode, |
| | | opdesc, |
| | | oplevelcode, |
| | | opleveldesc |
| | | from pat_med_operation |
| | | </sql> |
| | | |
| | |
| | | resultMap="PatMedOperationResult"> |
| | | <include refid="selectPatMedOperationVo"/> |
| | | <where> |
| | | del_flag='0' |
| | | <if test="patid != null "> |
| | | and patid = #{patid} |
| | | </if> |
| | |
| | | <if test="opsstatus != null and opsstatus != ''"> |
| | | and opsstatus = #{opsstatus} |
| | | </if> |
| | | <if test="operationcode != null and operationcode != ''"> |
| | | and operationcode = #{operationcode} |
| | | <if test="optypecode != null and optypecode != ''"> |
| | | and optypecode = #{optypecode} |
| | | </if> |
| | | <if test="operationname != null and operationname != ''"> |
| | | and operationname like concat('%', #{operationname}, '%') |
| | | <if test="optypename != null and optypename != ''"> |
| | | and optypename like concat('%', #{optypename}, '%') |
| | | </if> |
| | | |
| | | <if test="operatortime != null "> |
| | | and operatortime = #{operatortime} |
| | | <!-- <if test="operatortime != null ">--> |
| | | <!-- and operatortime = #{operatortime}--> |
| | | <!-- </if>--> |
| | | <if test="beginTime != null ">and date_format(operatortime,'%y%m%d') >= |
| | | date_format(#{beginTime},'%y%m%d') |
| | | </if> |
| | | <if test="endTime != null ">and date_format(operatortime,'%y%m%d') <= |
| | | date_format(#{endTime},'%y%m%d') |
| | | </if> |
| | | <if test="opreqtime != null "> |
| | | and opreqtime = #{opreqtime} |
| | |
| | | <if test="nurseName != null and nurseName != ''"> |
| | | and nurse_name like concat('%', #{nurseName}, '%') |
| | | </if> |
| | | <if test="checkFlag != null and checkFlag != ''"> |
| | | and check_flag = #{checkFlag} |
| | | </if> |
| | | <if test="longTaskReason != null and longTaskReason != ''"> |
| | | and long_task_reason = #{longTaskReason} |
| | | </if> |
| | | <if test="opid != null and opid != ''"> |
| | | and opid = #{opid} |
| | | </if> |
| | | <if test="opcode != null and opcode != ''"> |
| | | and opcode = #{opcode} |
| | | </if> |
| | | <if test="opdesc != null and opdesc != ''"> |
| | | and opdesc = #{opdesc} |
| | | </if> |
| | | <if test="oplevelcode != null and oplevelcode != ''"> |
| | | and oplevelcode = #{oplevelcode} |
| | | </if> |
| | | <if test="opleveldesc != null and opleveldesc != ''"> |
| | | and opleveldesc = #{opleveldesc} |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertPatMedOperation" parameterType="com.smartor.domain.PatMedOperation" useGeneratedKeys="true" |
| | | keyProperty="id"> |
| | | <insert id="insertPatMedOperation" parameterType="com.smartor.domain.PatMedOperation"> |
| | | insert into pat_med_operation |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">id, |
| | |
| | | </if> |
| | | <if test="opsstatus != null">opsstatus, |
| | | </if> |
| | | <if test="operationcode != null">operationcode, |
| | | <if test="optypecode != null">optypecode, |
| | | </if> |
| | | <if test="operationname != null">operationname, |
| | | <if test="optypename != null">optypename, |
| | | </if> |
| | | <if test="operatortime != null">operatortime, |
| | | </if> |
| | |
| | | </if> |
| | | <if test="nurseName != null">nurse_name, |
| | | </if> |
| | | <if test="checkFlag != null">check_flag, |
| | | </if> |
| | | <if test="longTaskReason != null">long_task_reason, |
| | | </if> |
| | | <if test="opid != null">opid, |
| | | </if> |
| | | <if test="opcode != null">opcode, |
| | | </if> |
| | | <if test="opdesc != null">opdesc, |
| | | </if> |
| | | <if test="oplevelcode != null">oplevelcode, |
| | | </if> |
| | | <if test="opleveldesc != null">opleveldesc, |
| | | </if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">#{id}, |
| | |
| | | </if> |
| | | <if test="opsstatus != null">#{opsstatus}, |
| | | </if> |
| | | <if test="operationcode != null">#{operationcode}, |
| | | <if test="optypecode != null">#{optypecode}, |
| | | </if> |
| | | <if test="operationname != null">#{operationname}, |
| | | <if test="optypename != null">#{optypename}, |
| | | </if> |
| | | <if test="operatortime != null">#{operatortime}, |
| | | </if> |
| | |
| | | </if> |
| | | <if test="nurseName != null">#{nurseName}, |
| | | </if> |
| | | <if test="checkFlag != null">#{checkFlag}, |
| | | </if> |
| | | <if test="longTaskReason != null">#{longTaskReason}, |
| | | </if> |
| | | <if test="opid != null">#{opid}, |
| | | </if> |
| | | <if test="opcode != null">#{opcode}, |
| | | </if> |
| | | <if test="opdesc != null">#{opdesc}, |
| | | </if> |
| | | <if test="oplevelcode != null">#{oplevelcode}, |
| | | </if> |
| | | <if test="opleveldesc != null">#{opleveldesc}, |
| | | </if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="opsstatus != null">opsstatus = |
| | | #{opsstatus}, |
| | | </if> |
| | | <if test="operationcode != null">operationcode = |
| | | #{operationcode}, |
| | | <if test="optypecode != null">optypecode = |
| | | #{optypecode}, |
| | | </if> |
| | | <if test="operationname != null">operationname = |
| | | #{operationname}, |
| | | <if test="optypename != null">optypename = |
| | | #{optypename}, |
| | | </if> |
| | | <if test="operatortime != null">operatortime = |
| | | #{operatortime}, |
| | |
| | | <if test="nurseName != null">nurse_name = |
| | | #{nurseName}, |
| | | </if> |
| | | <if test="checkFlag != null">check_flag = |
| | | #{checkFlag}, |
| | | </if> |
| | | <if test="longTaskReason != null">long_task_reason = |
| | | #{longTaskReason}, |
| | | </if> |
| | | <if test="opid != null">opid = |
| | | #{opid}, |
| | | </if> |
| | | <if test="opcode != null">opcode = |
| | | #{opcode}, |
| | | </if> |
| | | <if test="opdesc != null">opdesc = |
| | | #{opdesc}, |
| | | </if> |
| | | <if test="oplevelcode != null">oplevelcode = |
| | | #{oplevelcode}, |
| | | </if> |
| | | <if test="opleveldesc != null">opleveldesc = |
| | | #{opleveldesc}, |
| | | </if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |