陈昶聿
6 天以前 aa0ae041b29f0c95dcdbdd237cd0351d0c9f979f
smartor/src/main/resources/mapper/smartor/PatMedOperationItemMapper.xml
@@ -29,6 +29,8 @@
            <result property="pid" column="pid"/>
            <result property="opercheckFlag" column="opercheck_flag"/>
            <result property="longTaskReason" column="long_task_reason"/>
            <result property="inhospstate" column="inhospstate"/>
            <result property="serialnum" column="serialnum"/>
            <result property="deptcode" column="deptcode"/>
            <result property="deptname" column="deptname"/>
@@ -46,7 +48,7 @@
    </resultMap>
    <sql id="selectPatMedOperationItemVo">
        select id, operationid, opid, opcode, opdesc, main_flag, incitypecode, incitypedesc, oplevelcode, opleveldesc, opposition, del_flag, update_by, update_time, create_by, create_time, isupload, upload_time, orgid, pguid, guid, pid, opercheck_flag, long_task_reason
        select id, operationid, opid, opcode, opdesc, main_flag, incitypecode, incitypedesc, oplevelcode, opleveldesc, opposition, del_flag, update_by, update_time, create_by, create_time, isupload, upload_time, orgid, pguid, guid, pid, opercheck_flag, long_task_reason, inhospstate, serialnum
        from pat_med_operation_item
    </sql>
@@ -101,6 +103,12 @@
                        </if>
                        <if test="pid != null ">
                            and pid = #{pid}
                        </if>
                        <if test="inhospstate != null  and inhospstate != ''">
                            and inhospstate = #{inhospstate}
                        </if>
                        <if test="serialnum != null  and serialnum != ''">
                            and serialnum = #{serialnum}
                        </if>
    </select>
@@ -159,6 +167,10 @@
                    </if>
                    <if test="longTaskReason != null">long_task_reason,
                    </if>
                    <if test="inhospstate != null">inhospstate,
                    </if>
                    <if test="serialnum != null">serialnum,
                    </if>
        </trim>
        <trim prefix="values (" suffix=")" suffixOverrides=",">
                    <if test="operationid != null">#{operationid},
@@ -206,6 +218,10 @@
                    <if test="opercheckFlag != null">#{opercheckFlag},
                    </if>
                    <if test="longTaskReason != null">#{longTaskReason},
                    </if>
                    <if test="inhospstate != null">#{inhospstate},
                    </if>
                    <if test="serialnum != null">#{serialnum},
                    </if>
        </trim>
    </insert>
@@ -282,6 +298,12 @@
                    <if test="longTaskReason != null">long_task_reason =
                        #{longTaskReason},
                    </if>
                    <if test="inhospstate != null">inhospstate =
                        #{inhospstate},
                    </if>
                    <if test="serialnum != null">serialnum =
                        #{serialnum},
                    </if>
        </trim>
        where id = #{id}
    </update>
@@ -335,6 +357,10 @@
            </if>
            <if test="longTaskReason != null">long_task_reason,
            </if>
            <if test="inhospstate != null">inhospstate,
            </if>
            <if test="serialnum != null">serialnum,
            </if>
        </trim>
        values
        <foreach item="item" index="index" collection="list" separator=",">
@@ -385,6 +411,10 @@
                </if>
                <if test="longTaskReason != null">#{item.longTaskReason},
                </if>
                <if test="inhospstate != null">#{item.inhospstate},
                </if>
                <if test="serialnum != null">#{item.serialnum},
                </if>
            </trim>
        </foreach>
    </insert>
@@ -421,7 +451,8 @@
        pmoi.pguid, pmoi.guid, pmoi.pid, pmoi.opercheck_flag, pmoi.long_task_reason,
        pmo.deptcode, pmo.deptname, pmo.hospitaldistrictcode, pmo.hospitaldistrictname,
        pmo.leaveldeptcode, pmo.leaveldeptname, pmo.leavehospitaldistrictcode, pmo.leavehospitaldistrictname, pmo.patid,
        pmo.drcode, pmo.drname, pmo.nurse_id, pmo.nurse_name
        pmo.drcode, pmo.drname, pmo.nurse_id, pmo.nurse_name,
        pmo.inhospstate, pmo.serialnum
        from pat_med_operation pmo
        join pat_med_operation_item pmoi
        on pmoi.opid = pmo.opid
@@ -478,6 +509,12 @@
        <if test="pid != null ">
            and pmoi.pid = #{pid}
        </if>
        <if test="inhospstate != null and inhospstate != ''">
            and pmo.inhospstate = #{inhospstate}
        </if>
        <if test="serialnum != null and serialnum != ''">
            and pmo.serialnum = #{serialnum}
        </if>
        <if test="deptcode != null and deptcode != ''">
            and pmo.deptcode = #{deptcode}
        </if>