From a61a88ecd7b89378319644f902a3964b8689fd84 Mon Sep 17 00:00:00 2001 From: Helius <wangdoubleone@gmail.com> Date: Wed, 03 Feb 2021 10:58:35 +0800 Subject: [PATCH] modify --- zq-erp/src/main/resources/mybatis/mapper/hive/SysOrderFlowDao.xml | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/zq-erp/src/main/resources/mybatis/mapper/hive/SysOrderFlowDao.xml b/zq-erp/src/main/resources/mybatis/mapper/hive/SysOrderFlowDao.xml index 138bd76..eb0d269 100644 --- a/zq-erp/src/main/resources/mybatis/mapper/hive/SysOrderFlowDao.xml +++ b/zq-erp/src/main/resources/mybatis/mapper/hive/SysOrderFlowDao.xml @@ -125,8 +125,11 @@ <if test="record.shopId != null and record.shopId != ''"> and a.shop_id=#{record.shopId} </if> - </where> + <if test="record.sort !=null"> + order by + a.${record.sort} ${record.order} + </if> <if test="record.offset >=0 and record.limit >0"> limit #{record.offset},#{record.limit} -- Gitblit v1.9.1