From 3d18d3d08ac794ec39ba2e973befd7fb8782a024 Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: 星期一, 15 六月 2020 16:16:12 +0800
Subject: [PATCH] 测试后端写了400 前台还是返回200 问题
---
java110-db/src/main/resources/mapper/community/CommunityServiceDaoImplMapper.xml | 18 +++++++++++++-----
1 files changed, 13 insertions(+), 5 deletions(-)
diff --git a/java110-db/src/main/resources/mapper/community/CommunityServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/community/CommunityServiceDaoImplMapper.xml
index 99205c9..ee252fd 100644
--- a/java110-db/src/main/resources/mapper/community/CommunityServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/community/CommunityServiceDaoImplMapper.xml
@@ -339,7 +339,9 @@
<if test="communityName != null and communityName != '' and needCommunityInfo == true">
and sc.name like concat('%',#{communityName},'%')
</if>
- group by ms.community_id
+ <if test="needCommunityInfo == true">
+ group by ms.community_id
+ </if>
order by ms.create_time desc
<if test="page != -1 and page != null">
limit #{page},#{row}
@@ -367,7 +369,7 @@
<!-- 鏌ヨ灏忓尯鎴愬憳 add by wuxw 2018-07-03 -->
<select id="getCommunityMemberCount" parameterType="Map" resultType="Map">
- select count(1) count
+ select ms.community_id,count(1) count
from s_community_member ms
<if test="needCommunityInfo == true">
,s_community sc,
@@ -425,7 +427,10 @@
<if test="communityName != null and communityName != '' and needCommunityInfo == true">
and sc.name like concat('%',#{communityName},'%')
</if>
- group by ms.community_id
+ <if test="needCommunityInfo == true">
+ group by ms.community_id
+ </if>
+
</select>
<!-- 鏌ヨ灏忓尯淇℃伅 add by wuxw 2018-07-03 -->
@@ -440,12 +445,15 @@
THEN '瀹℃牳瀹屾垚'
ELSE
'瀹℃牳鎷掔粷'
- END) stateName
- from s_community t
+ END) stateName,ca.area_code areaCode,ca.area_name areaName,
+ ca.parent_area_code parentAreaCode,ca.parent_area_name parentAreaName
+ from s_community t,city_area ca
<if test="memberId !=null and memberId !=''">
,s_community_member cm
</if>
where 1 =1
+ and t.city_code = ca.area_code
+ and ca.status_cd = '0'
<if test="address !=null and address != ''">
and t.address= #{address}
</if>
--
Gitblit v1.8.0