|
@@ -72,15 +72,15 @@ public interface TransferInOfExpensesDao {
|
|
|
"zy_serial_no " +
|
|
|
"from zy_detail_charge a,zd_charge_item b where (code=charge_code) and order_no=6 and inpatient_no = #{inpatientNo} " +
|
|
|
"<if test=\"chargeCodeMX!=null and chargeCodeMX!=''\"> " +
|
|
|
- "and charge_code_mx = #{chargeCodeMX} " +
|
|
|
+ "and (charge_code_mx = #{chargeCodeMX} or charge_code = #{chargeCodeMX}) " +
|
|
|
"</if> " +
|
|
|
"union " +
|
|
|
"select rtrim(inpatient_no)inpatient_no,admiss_times,detail_sn,ledger_sn, " +
|
|
|
"charge_date,charge_code,charge_fee,a.charge_amount,charge_code_mx,(b.name)charge_code_name, " +
|
|
|
"zy_serial_no " +
|
|
|
- "from zy_detail_charge a,yp_zd_dict b where (code=charge_code) and order_no=6 and inpatient_no = #{inpatientNo} " +
|
|
|
+ "from zy_detail_charge a,yp_zd_dict b where (code=charge_code) and order_no=6 and inpatient_no = #{inpatientNo} " +
|
|
|
"<if test=\"chargeCodeMX!=null and chargeCodeMX!=''\"> " +
|
|
|
- "and charge_code_mx = #{chargeCodeMX} " +
|
|
|
+ "and (charge_code_mx = #{chargeCodeMX} or charge_code = #{chargeCodeMX}) " +
|
|
|
"</if>" +
|
|
|
") temp" +
|
|
|
"</script> ")
|
|
@@ -88,6 +88,16 @@ public interface TransferInOfExpensesDao {
|
|
|
@Param("inpatientNo") String inpatientNo,
|
|
|
@Param("chargeCodeMX") String chargeCodeMX);
|
|
|
|
|
|
+ @Select("<script>" +
|
|
|
+ "select charge_fee,charge_amount " +
|
|
|
+ "from zy_detail_charge a where order_no=6 and inpatient_no = #{inpatientNo} " +
|
|
|
+ "<if test=\"chargeCodeMX!=null and chargeCodeMX!=''\"> " +
|
|
|
+ "and (charge_code_mx = #{chargeCodeMX} or charge_code = #{chargeCodeMX}) " +
|
|
|
+ "</if> " +
|
|
|
+ "</script>")
|
|
|
+ List<ZyDetailCharge> sumZyFee(@Param("inpatientNo") String inpatientNo,
|
|
|
+ @Param("chargeCodeMX") String chargeCodeMX);
|
|
|
+
|
|
|
/**
|
|
|
* 删除病人通过急门诊转入的费用 数据
|
|
|
*
|