|
@@ -1031,6 +1031,9 @@ public interface XiangMuLuRuDao extends BaseMapper<ZyDetailCharge> {
|
|
|
" and charge_fee < 0 and charge_code not like 'BILL%' " +
|
|
|
" and trans_flag_yb not in (1,2) " +
|
|
|
" and ori_detail_sn is null " +
|
|
|
+ "<if test=\"chuYuanYiZhu == 1\">" +
|
|
|
+ " and charge_date <= CONVERT(varchar(100), GETDATE(), 23)" +
|
|
|
+ "</if>" +
|
|
|
"<if test=\"list.size >0 \">" +
|
|
|
" and exec_unit in " +
|
|
|
"<foreach collection='list' item='item' index='index' open='(' close=')' separator=','>" +
|
|
@@ -1042,7 +1045,8 @@ public interface XiangMuLuRuDao extends BaseMapper<ZyDetailCharge> {
|
|
|
@Param("admissTimes") Integer admissTimes,
|
|
|
@Param("ledger") Integer ledger,
|
|
|
@Param("infantFlag") Integer infantFlag,
|
|
|
- @Param("list") List<String> execUnit);
|
|
|
+ @Param("list") List<String> execUnit,
|
|
|
+ @Param("chuYuanYiZhu") Integer chuYuanYiZhu);
|
|
|
|
|
|
@Select("<script>" +
|
|
|
"select rtrim(inpatient_no) inpatient_no,admiss_times,ledger_sn,charge_code_mx,detail_sn,ori_detail_sn,charge_fee,charge_amount, " +
|
|
@@ -1053,7 +1057,10 @@ public interface XiangMuLuRuDao extends BaseMapper<ZyDetailCharge> {
|
|
|
" and charge_fee < 0 and charge_code like 'BILL%' " +
|
|
|
" and trans_flag_yb not in (1,2) " +
|
|
|
" and ori_detail_sn is null" +
|
|
|
- "<if test=\"list.size >0 \">" +
|
|
|
+ "<if test=\"chuYuanYiZhu == 1\">" +
|
|
|
+ " and charge_date <= CONVERT(varchar(100), GETDATE(), 23)" +
|
|
|
+ "</if>" +
|
|
|
+ "<if test=\"list.size > 0 \">" +
|
|
|
" and exec_unit in " +
|
|
|
"<foreach collection='list' item='item' index='index' open='(' close=')' separator=','>" +
|
|
|
"#{item}" +
|
|
@@ -1064,7 +1071,8 @@ public interface XiangMuLuRuDao extends BaseMapper<ZyDetailCharge> {
|
|
|
@Param("admissTimes") Integer admissTimes,
|
|
|
@Param("ledger") Integer ledger,
|
|
|
@Param("infantFlag") Integer infantFlag,
|
|
|
- @Param("list") List<String> execUnit);
|
|
|
+ @Param("list") List<String> execUnit,
|
|
|
+ @Param("chuYuanYiZhu") Integer chuYuanYiZhu);
|
|
|
|
|
|
@Select("<script>" +
|
|
|
"select inpatient_no,admiss_times,ledger_sn,detail_sn,charge_amount,charge_fee,charge_code_mx,charge_date,ori_detail_sn " +
|