|
@@ -48,7 +48,9 @@ public interface MzmxsrMapper {
|
|
|
* @return
|
|
|
*/
|
|
|
@Select({"<script>" +
|
|
|
- "select id,xm, patient_id, jz_sq_dept, jz_sq_doctor, exec_dept, xmm, hsm, je, charge_date, dcount_date, quty, price, parent_code, input_date from t_mzmxsr where 1=1"+
|
|
|
+ "select a.id,xm, patient_id, jz_sq_dept, jz_sq_doctor, exec_dept, xmm, hsm, je, charge_date, dcount_date, quty, price, parent_code, " +
|
|
|
+ "input_date from t_mzmxsr a join ("+
|
|
|
+ "select id from t_mzmxsr where 1=1"+
|
|
|
"<when test='caseType==1'>" +
|
|
|
" and charge_date <![CDATA[>=]]>#{beginDate,jdbcType=TIMESTAMP} and charge_date <![CDATA[<=]]>#{endDate,jdbcType=TIMESTAMP}" +
|
|
|
"</when>" +
|
|
@@ -79,7 +81,7 @@ public interface MzmxsrMapper {
|
|
|
"<when test='xmm!=null'>" +
|
|
|
" and xmm =#{xmm}" +
|
|
|
"</when>"+
|
|
|
- " order by id limit #{pageSize}"
|
|
|
+ " order by id limit #{offset},#{pageSize} )b on a.id=b.id"
|
|
|
+ "</script>"})
|
|
|
List<Mzmxsr> selectMzmxsrWithPage(ThmzmxsrParamsVo thmzmxsrParamsVo);
|
|
|
|