java110 лет назад: 4
Родитель
Сommit
67ce64cb7c

+ 4 - 3
java110-db/src/main/resources/mapper/community/CommunityMemberV1ServiceDaoImplMapper.xml

@@ -67,9 +67,7 @@
         <if test="endTime !=null and endTime != ''">
             , t.end_time= #{endTime}
         </if>
-        <if test="communityId !=null and communityId != ''">
-            , t.community_id= #{communityId}
-        </if>
+
         <if test="communityMemberId !=null and communityMemberId != ''">
             , t.community_member_id= #{communityMemberId}
         </if>
@@ -80,6 +78,9 @@
         <if test="memberId !=null and memberId != ''">
             and t.member_id= #{memberId}
         </if>
+        <if test="communityId !=null and communityId != ''">
+            and t.community_id= #{communityId}
+        </if>
 
     </update>
 

+ 1 - 0
service-store/src/main/java/com/java110/store/cmd/property/MemberQuitCommunityCmd.java

@@ -124,6 +124,7 @@ public class MemberQuitCommunityCmd extends AbstractServiceCmdListener {
         //释放小区
         CommunityMemberPo communityMemberPo = new CommunityMemberPo();
         communityMemberPo.setMemberId(storeDto.getStoreId());
+        communityMemberPo.setCommunityId(communityId);
         int flag = communityMemberV1InnerServiceSMOImpl.deleteCommunityMember(communityMemberPo);
         if (flag < 1) {
             throw new CmdException("删除数据失败");