| | |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <update id="updatePatMedOperationItemByOperationid" parameterType="com.smartor.domain.PatMedOperationItem"> |
| | | update pat_med_operation_item |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="opid != null">opid = |
| | | #{opid}, |
| | | </if> |
| | | <if test="opcode != null">opcode = |
| | | #{opcode}, |
| | | </if> |
| | | <if test="opdesc != null">opdesc = |
| | | #{opdesc}, |
| | | </if> |
| | | <if test="mainFlag != null">main_flag = |
| | | #{mainFlag}, |
| | | </if> |
| | | <if test="incitypecode != null">incitypecode = |
| | | #{incitypecode}, |
| | | </if> |
| | | <if test="incitypedesc != null">incitypedesc = |
| | | #{incitypedesc}, |
| | | </if> |
| | | <if test="oplevelcode != null">oplevelcode = |
| | | #{oplevelcode}, |
| | | </if> |
| | | <if test="opleveldesc != null">opleveldesc = |
| | | #{opleveldesc}, |
| | | </if> |
| | | <if test="opposition != null">opposition = |
| | | #{opposition}, |
| | | </if> |
| | | <if test="delFlag != null">del_flag = |
| | | #{delFlag}, |
| | | </if> |
| | | <if test="updateBy != null">update_by = |
| | | #{updateBy}, |
| | | </if> |
| | | <if test="updateTime != null">update_time = |
| | | #{updateTime}, |
| | | </if> |
| | | <if test="createBy != null">create_by = |
| | | #{createBy}, |
| | | </if> |
| | | <if test="createTime != null">create_time = |
| | | #{createTime}, |
| | | </if> |
| | | <if test="isupload != null">isupload = |
| | | #{isupload}, |
| | | </if> |
| | | <if test="uploadTime != null">upload_time = |
| | | #{uploadTime}, |
| | | </if> |
| | | <if test="orgid != null">orgid = |
| | | #{orgid}, |
| | | </if> |
| | | <if test="pguid != null">pguid = |
| | | #{pguid}, |
| | | </if> |
| | | <if test="guid != null">guid = |
| | | #{guid}, |
| | | </if> |
| | | <if test="pid != null">pid = |
| | | #{pid}, |
| | | </if> |
| | | <if test="opercheckFlag != null">opercheck_flag = |
| | | #{opercheckFlag}, |
| | | </if> |
| | | <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 operationid = #{operationid} |
| | | and opcode = #{opcode} |
| | | </update> |
| | | |
| | | <insert id="insertPatMedOperationItems"> |
| | | insert into pat_med_operation_item |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | |
| | | <delete id="deleteHardPatMedOperationItemByOpId" parameterType="String"> |
| | | delete from pat_med_operation_item |
| | | where opid = #{opid} |
| | | and opercheck_flag != 1 |
| | | </delete> |
| | | |
| | | <update id="deletePatMedOperationItemByOperationid" parameterType="Long"> |
| | | update pat_med_operation_item |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | del_flag =1 |
| | | </trim> |
| | | where operationid = #{operationid} |
| | | and opercheck_flag != 1 |
| | | </update> |
| | | |
| | | <update id="deleteSoftPatMedOperationItemByOpId" parameterType="String"> |
| | | update pat_med_operation_item |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | del_flag =1 |
| | | </trim> |
| | | where opid = #{opid} |
| | | </update> |
| | | |
| | | <select id="selectOperationItemList" parameterType="com.smartor.domain.PatMedOperationItem" |
| | | resultMap="PatMedOperationItemResult"> |
| | |
| | | from pat_med_operation pmo |
| | | join pat_med_operation_item pmoi |
| | | on pmoi.opid = pmo.opid |
| | | left join pat_med_inhosp pmi |
| | | join pat_med_inhosp pmi |
| | | on pmo.serialnum = pmi.serialnum |
| | | where |
| | | pmo.del_flag = '0' |