|
@@ -1071,7 +1071,7 @@ public interface MzChargeDetailMapper {
|
|
|
* @param mzYjReq
|
|
|
* @return
|
|
|
*/
|
|
|
- @Select("select count(1) from mz_charge_detail where charge_item_code ='019004' and pay_mark = '0' and cash_id <>'99997' and price_time >= #{beginTime} and price_time <=#{endTime} ")
|
|
|
+ @Select("select count(1) from mz_charge_detail where charge_item_code =#{orderCode} and pay_mark = '0' and cash_id <>'99997' and price_time >= #{beginTime} and price_time <=#{endTime} ")
|
|
|
int selectCountHybridTestListByPatientIdAndReqDate(MzYjReq mzYjReq);
|
|
|
|
|
|
|
|
@@ -1082,7 +1082,7 @@ public interface MzChargeDetailMapper {
|
|
|
* @return
|
|
|
*/
|
|
|
@Select({"<script>",
|
|
|
- "select top ${pageSize} patient_id,name,tc_name,price_time,times,charge_date FROM (SELECT ROW_NUMBER() OVER (ORDER BY mz_charge_detail_page.price_time desc) AS RowNumber,* from mz_charge_detail mz_charge_detail_page WITH(NOLOCK) where charge_item_code ='019004' and pay_mark = '0' and cash_id <![CDATA[<>]]>'99997' ",
|
|
|
+ "select top ${pageSize} patient_id,name,tc_name,price_time,times,charge_date FROM (SELECT ROW_NUMBER() OVER (ORDER BY mz_charge_detail_page.price_time desc) AS RowNumber,* from mz_charge_detail mz_charge_detail_page WITH(NOLOCK) where charge_item_code =#{orderCode} and pay_mark = '0' and cash_id <![CDATA[<>]]>'99997' ",
|
|
|
"<when test='patientId!=null'>",
|
|
|
" and patient_id =#{patientId} ",
|
|
|
"</when>",
|
|
@@ -1109,7 +1109,7 @@ public interface MzChargeDetailMapper {
|
|
|
* 查询患者是否有已经缴费且未确认的检查记录的缴费次数
|
|
|
* @return
|
|
|
*/
|
|
|
- @Select("select times from mz_charge_detail where patient_id=#{patientId} and pay_mark =0 and confirm_flag=0 and charge_item_code=#{chargeItemCode} ")
|
|
|
+ @Select("select top 1 times from mz_charge_detail where patient_id=#{patientId} and pay_mark =0 and confirm_flag=0 and charge_item_code=#{chargeItemCode} ")
|
|
|
Integer selectCountMzChargeDetailByPatientIdAndChargeItemCode(@Param("patientId") String patientId, @Param("chargeItemCode") String chargeItemCode);
|
|
|
|
|
|
|