From 04821fd724cc279ae6d41f968f79c767cfd9233e Mon Sep 17 00:00:00 2001 From: wuzeyu <1223318623@qq.com> Date: 星期四, 12 九月 2024 17:17:55 +0800 Subject: [PATCH] 优化代码 指定时间段内开阀次数高于指定值的农户 指定时间段内开阀次数低于指定值的农户 --- pipIrr-platform/pipIrr-global/src/main/resources/mapper/SeCardOperateMapper.xml | 12 +++++------- 1 files changed, 5 insertions(+), 7 deletions(-) diff --git a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/SeCardOperateMapper.xml b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/SeCardOperateMapper.xml index 8c1b53c..d413173 100644 --- a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/SeCardOperateMapper.xml +++ b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/SeCardOperateMapper.xml @@ -344,10 +344,6 @@ <if test = "cashierId != null and cashierId > 0"> AND cashierId = #{cashierId} </if> - - <if test = "tradeTime != null"> - AND tradeTime = #{tradeTime} - </if> </where> </select> @@ -368,9 +364,11 @@ </if> </where> ORDER BY tradeTime - <if test="pageCurr != null and pageSize != null"> - LIMIT #{pageCurr}, #{pageSize} - </if> + <trim prefix="limit "> + <if test="start != null and count != null"> + #{start,javaType=Integer,jdbcType=INTEGER}, #{count,javaType=Integer,jdbcType=INTEGER} + </if> + </trim> </select> <!--鏍规嵁鎸囧畾鏉′欢鑾峰彇寮�鍗¤褰曟暟閲�--> -- Gitblit v1.8.0