|
@@ -870,7 +870,7 @@ public interface XiangMuLuRuDao extends BaseMapper<ZyDetailCharge> {
|
|
|
Integer getHuanZheSFZaiYuan(@Param("inpatientNo") String inpatientNo,
|
|
|
@Param("admissTimes") Integer admissTimes);
|
|
|
|
|
|
- @Select("select settle_type from zy_ledger_file where " +
|
|
|
+ @Select("select case settle_type when '1' then '0' else settle_type end as settle_type from zy_ledger_file where " +
|
|
|
"inpatient_no = #{inpatientNo} and admiss_times = #{admissTimes} " +
|
|
|
"and ledger_sn = (select max(ledger_sn)ledger_sn from zy_ledger_file where zy_ledger_file.inpatient_no = #{inpatientNo} " +
|
|
|
"and zy_ledger_file.admiss_times = #{admissTimes}) ")
|