|
|
@@ -213,7 +213,7 @@ public interface MzDepositFileMapper {
|
|
|
@Select({"<script>",
|
|
|
"SELECT top ${pageSize} rtrim(patient_id) patient_id,times,receipt_no,rtrim(pay_mark) pay_mark,rtrim(cheque_type) cheque_type,rtrim(cheque_no) cheque_no,",
|
|
|
"amount,charge_date,dcount_date,rtrim(dcount_no) dcount_no,rtrim(op_id) op_id,receipt_sn,serial_no,rtrim(responce_type) responce_type,yb_jlh,yb_ywh,dept_no,",
|
|
|
- "psordnum,agtordnum,hisrefundnum,contract_id FROM (SELECT ROW_NUMBER() OVER (ORDER BY mz_deposit_file_page.${orderByCase} asc) ",
|
|
|
+ "psordnum,agtordnum,hisrefundnum,contract_id FROM (SELECT ROW_NUMBER() OVER (ORDER BY mz_deposit_file_page.${orderByCase} desc) ",
|
|
|
"AS RowNumber,* from ${tableName} mz_deposit_file_page WITH(NOLOCK) where 1=1 ",
|
|
|
"<when test='patientId!=null'>",
|
|
|
" and patient_id =#{patientId}",
|