|
@@ -290,7 +290,8 @@ public interface Routines {
|
|
|
|
|
|
@Select("select charge_amount,detail_sn,ori_detail_sn from zy_detail_charge " +
|
|
|
"where inpatient_no=#{zyh} and admiss_times=#{zycs} and ledger_sn=#{sn} " +
|
|
|
- "and isnull(infant_flag,0)!=1 and isnull(trans_flag_yb,0) not in (1,2)")
|
|
|
+ "and isnull(infant_flag,0)!=1 and isnull(trans_flag_yb,0) not in (1,2) " +
|
|
|
+ "and isnull(ori_detail_sn,-1)!=-1")
|
|
|
List<FeeCounteract> selectNegativeFeesWithOriDetlSn(@Param("zyh") String zyh,
|
|
|
@Param("zycs") Integer zycs,
|
|
|
@Param("sn") Integer sn);
|
|
@@ -311,15 +312,4 @@ public interface Routines {
|
|
|
@Update("update zy_detail_charge set trans_flag_yb=2 where inpatient_no=#{zyh} and " +
|
|
|
"admiss_times=#{zycs} and detail_sn in (#{sn}, #{sn2})")
|
|
|
void updateYbTransFlagInPair(@Param("zyh") String zyh, @Param("zycs") Integer zycs, @Param("sn") Integer sn, @Param("sn2") Integer sn2);
|
|
|
-
|
|
|
- @Select("select max(start_time) from yz_act_order where inpatient_no=#{inpatientNo} and admiss_times=#{admissTimes} " +
|
|
|
- "and status_flag > '1' and isnull(group_no, '00')='00' and order_code in ('06026','06053','05973')")
|
|
|
- Date selectDismissOrderDate(@Param("inpatientNo") String inpatientNo, @Param("admissTimes") Integer admissTimes);
|
|
|
-
|
|
|
- @Update("update zy_detail_charge set charge_date=#{disdate}, gen_time=#{disdate} where inpatient_no=#{zyh} " +
|
|
|
- "and admiss_times=#{zycs} and ledger_sn=#{sn} and charge_date>#{disdate}")
|
|
|
- int updateChargeDate(@Param("zyh") String zyh,
|
|
|
- @Param("zycs") Integer zycs,
|
|
|
- @Param("sn") Integer sn,
|
|
|
- @Param("disdate") Date disdate);
|
|
|
}
|