From dc998c9c02140cffdf39a2e814693f253b9a6b32 Mon Sep 17 00:00:00 2001
From: liurunyu <lry9898@163.com>
Date: 星期日, 12 十一月 2023 16:32:18 +0800
Subject: [PATCH] 1、对象转map改用org.apache.dubbo(阿里开发) 2、实现用户管理UserCtrl,及其分页查询数据功能
---
pipIrr-platform/pipIrr-global/src/main/resources/mapper/BaBlockMapper.xml | 32 ++++++++++++++++----------------
1 files changed, 16 insertions(+), 16 deletions(-)
diff --git a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/BaBlockMapper.xml b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/BaBlockMapper.xml
index c7da490..67ccd91 100644
--- a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/BaBlockMapper.xml
+++ b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/BaBlockMapper.xml
@@ -23,25 +23,24 @@
from ba_block
where id = #{id,jdbcType=BIGINT}
</select>
- <select id="selectTotal" parameterType="java.lang.Long" resultType="java.lang.Long">
- <!--@mbg.generated-->
+ <select id="selectTotal" parameterType="java.util.Map" resultType="java.lang.Long">
select
count(*)
from ba_block
- <trim prefix="where ">
- <if test="name != null">
- name like '%#{name,jdbcType=VARCHAR}%' and
- </if>
- <if test="header != null">
- header = '#{header,jdbcType=VARCHAR}' and
- </if>
- <if test="phone != null">
- phone = '#{phone,jdbcType=VARCHAR}' and
- </if>
- <if test="area != null">
- area = #{area,jdbcType=INTEGER}
- </if>
- </trim>
+ <trim prefix="where ">
+ <if test="name != null">
+ name like '%#{name,jdbcType=VARCHAR}%' and
+ </if>
+ <if test="header != null">
+ header = '#{header,jdbcType=VARCHAR}' and
+ </if>
+ <if test="phone != null">
+ phone = '#{phone,jdbcType=VARCHAR}' and
+ </if>
+ <if test="area != null">
+ area = #{area,jdbcType=INTEGER}
+ </if>
+ </trim>
</select>
<select id="selectSome" parameterType="java.util.Map" resultMap="BaseResultMap">
<!--@mbg.generated-->
@@ -62,6 +61,7 @@
area = #{area,jdbcType=INTEGER}
</if>
</trim>
+ order by id DESC
<trim prefix="limit " >
<if test="queryStart != null and queryCount != null">
#{queryStart}, #{queryCount}
--
Gitblit v1.8.0