smartor/src/main/resources/mapper/smartor/PatMedOperationItemMapper.xml
@@ -457,7 +457,7 @@ 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' @@ -514,6 +514,9 @@ </if> <if test="inhospstate != null and inhospstate != ''"> and pmi.inhospstate = #{inhospstate} <if test="inhospstate == '1'"> and pmi.endtime is not null </if> </if> <if test="serialnum != null and serialnum != ''"> and pmo.serialnum = #{serialnum}