|
@@ -10,7 +10,6 @@ import thyyxxk.webserver.entity.medicalinsurance.inpatient.BatjBa4;
|
|
|
import thyyxxk.webserver.entity.medicalinsurance.inpatient.YbZyDisDiag;
|
|
|
import thyyxxk.webserver.entity.medicalinsurance.inpatient.ZyDisDiagYb;
|
|
|
import thyyxxk.webserver.entity.medicalinsurance.inpatient.ZyInactpatient;
|
|
|
-import thyyxxk.webserver.entity.medicalinsurance.query.SiPatInfo;
|
|
|
import thyyxxk.webserver.entity.medicalinsurance.setllistupld.*;
|
|
|
import thyyxxk.webserver.entity.querydata.SiSetlinfoTemp;
|
|
|
|
|
@@ -295,14 +294,21 @@ public interface UpIdCollectionDao {
|
|
|
List<IteminfoUpld> totalCost(@Param("setlId") String setlId);
|
|
|
|
|
|
@Select("select med_chrgitm_type as med_chrgitm,\n" +
|
|
|
- " sum(det_item_fee_sumamt) as ${feeName} " +
|
|
|
+ " sum(det_item_fee_sumamt - fulamt_ownpay_amt) as ${feeName} " +
|
|
|
"from t_si_setl_fee_detl " +
|
|
|
"where setl_id = #{setlId} " +
|
|
|
" and chrgitm_lv = #{chrgitmLv} " +
|
|
|
"group by med_chrgitm_type")
|
|
|
- List<IteminfoUpld> aAndBAndCFees(@Param("setlId") String setlId,
|
|
|
- @Param("chrgitmLv") String chrgitmLv,
|
|
|
- @Param("feeName") String feeName);
|
|
|
+ List<IteminfoUpld> aAndBFees(@Param("setlId") String setlId,
|
|
|
+ @Param("chrgitmLv") String chrgitmLv,
|
|
|
+ @Param("feeName") String feeName);
|
|
|
+
|
|
|
+ @Select("SELECT med_chrgitm_type as med_chrgitm,\n" +
|
|
|
+ " sum(fulamt_ownpay_amt) as fulamtOwnpayAmt\n" +
|
|
|
+ "FROM t_si_setl_fee_detl " +
|
|
|
+ "where setl_id = #{setlId} " +
|
|
|
+ "group by med_chrgitm_type")
|
|
|
+ List<IteminfoUpld> patientPays(@Param("setlId") String setlId);
|
|
|
|
|
|
@Select("SELECT sum(DATEDIFF(second, start_time, end_time))\n" +
|
|
|
"from yz_inact_order\n" +
|