|
@@ -987,7 +987,7 @@ public interface XiangMuLuRuDao extends BaseMapper<ZyDetailCharge> {
|
|
|
"(select top(1) rtrim(name) from yp_zd_dict where code = a.charge_code_mx) end as name " +
|
|
|
"from zy_detail_charge a left join zd_charge_item_hnsgs b " +
|
|
|
"on (a.charge_code_mx = b.hosp_code) where " +
|
|
|
- "inpatient_no = #{inpatientNo} and admiss_times = #{admissTimes} and ledger_sn = #{ledger} and infant_flag = #{infantFlag} and isnull(b.hnsyb_item_code,'') = '' " +
|
|
|
+ "inpatient_no = #{inpatientNo} and admiss_times = #{admissTimes} and ledger_sn = #{ledger} and infant_flag = #{infantFlag} and ori_detail_sn is null and isnull(b.hnsyb_item_code,'') = '' " +
|
|
|
"group by a.charge_code_mx ")
|
|
|
List<WeiGuiFeiYongFenXi> gongShangWeiPiPei(@Param("inpatientNo") String inpatientNo,
|
|
|
@Param("admissTimes") Integer admissTimes,
|
|
@@ -1005,7 +1005,7 @@ public interface XiangMuLuRuDao extends BaseMapper<ZyDetailCharge> {
|
|
|
@Select("select charge_code_mx,b.name from zy_detail_charge a, yp_zd_dict b " +
|
|
|
"where trans_flag_yb not in (1,2) and charge_code like 'BILL%' " +
|
|
|
" and isnull(b.national_code,'') = '' and inpatient_no = #{inpatientNo} and admiss_times = #{admissTimes} and ledger_sn = #{ledger} " +
|
|
|
- "and a.infant_flag = #{infantFlag} " +
|
|
|
+ "and a.infant_flag = #{infantFlag} " +
|
|
|
" and a.charge_code_mx = b.code " +
|
|
|
"group by charge_code_mx, b.name")
|
|
|
List<WeiGuiFeiYongFenXi> weiGuiYaoPin(@Param("inpatientNo") String inpatientNo,
|
|
@@ -1089,7 +1089,7 @@ public interface XiangMuLuRuDao extends BaseMapper<ZyDetailCharge> {
|
|
|
"and order_no = #{orderNo}" +
|
|
|
"</otherwise>" +
|
|
|
"</choose>" +
|
|
|
- "and trans_flag_yb <> 2 and order_no <> 6 and charge_fee > 0 and charge_amount > 0 and ori_detail_sn is null " +
|
|
|
+ "and trans_flag_yb <> 2 and order_no <> 6 and charge_fee > 0 and charge_amount > 0 " +
|
|
|
"and infant_flag = #{infantFlag} " +
|
|
|
"<if test=\"startTime != null and startTime != '' \">" +
|
|
|
"and charge_date >= #{startTime} and charge_date <= #{endTime} " +
|