傅行帆 5 년 전
부모
커밋
c2c73aef11

+ 2
- 2
src/main/java/com/huiju/estateagents/center/taUser/service/impl/TaUserServiceImpl.java 파일 보기

@@ -140,10 +140,10 @@ public class TaUserServiceImpl extends ServiceImpl<TaUserMapper, TaUser> impleme
140 140
         verificationCity(taUser.getSelectCityTree(), taUser.getDefaultCityId());
141 141
 
142 142
         QueryWrapper<TaUser> wrapper = new QueryWrapper<>();
143
-        wrapper.eq("phone", taUser.getPhone()).or().eq("login_Name", taUser.getLoginName());
143
+        wrapper.eq("login_Name", taUser.getLoginName());
144 144
         List<TaUser> taUserList = this.list(wrapper);
145 145
         if (null != taUserList && taUserList.size() > 0) {
146
-            throw new Exception("电话号码或登录名重复");
146
+            throw new Exception("登录名重复");
147 147
         }
148 148
 
149 149
         //判断渠道端新增小程序最大数

+ 5
- 0
src/main/java/com/huiju/estateagents/entity/TaBuildingApartment.java 파일 보기

@@ -77,6 +77,11 @@ public class TaBuildingApartment implements Serializable {
77 77
 
78 78
     private String houseType;
79 79
 
80
+    /**
81
+     * 权重
82
+     */
83
+    private Integer orderNo;
84
+
80 85
     /**
81 86
      * 户型图片列表
82 87
      */

+ 4
- 0
src/main/java/com/huiju/estateagents/service/impl/TaBuildingServiceImpl.java 파일 보기

@@ -259,6 +259,7 @@ public class TaBuildingServiceImpl extends ServiceImpl<TaBuildingMapper, TaBuild
259 259
         QueryWrapper<TaBuildingApartment> AppointmentQueryWrapper = new QueryWrapper<>();
260 260
         AppointmentQueryWrapper.eq("building_id", id);
261 261
         AppointmentQueryWrapper.eq("status", 1);
262
+        AppointmentQueryWrapper.orderByDesc("order_no");
262 263
         AppointmentQueryWrapper.orderByDesc("create_date");
263 264
         List<TaBuildingApartment> appoint = taBuildingApartmentMapper.selectList(AppointmentQueryWrapper);
264 265
         for (TaBuildingApartment apar : appoint) {
@@ -911,6 +912,8 @@ public class TaBuildingServiceImpl extends ServiceImpl<TaBuildingMapper, TaBuild
911 912
         // 楼盘户型
912 913
         QueryWrapper<TaBuildingApartment> buildingApartmentQueryWrapper = new QueryWrapper<>();
913 914
         buildingApartmentQueryWrapper.eq("building_id", building.getBuildingId());
915
+        buildingApartmentQueryWrapper.orderByDesc("order_no");
916
+        buildingApartmentQueryWrapper.orderByDesc("create_date");
914 917
         List<TaBuildingApartment> buildingApartmentList = taBuildingApartmentMapper.selectList(buildingApartmentQueryWrapper);
915 918
 
916 919
         // 楼盘户型图
@@ -934,6 +937,7 @@ public class TaBuildingServiceImpl extends ServiceImpl<TaBuildingMapper, TaBuild
934 937
         buildingApartmentQueryWrapper.eq("building_id", id);
935 938
         buildingApartmentQueryWrapper.eq("status", 1);
936 939
         buildingApartmentQueryWrapper.eq(org.apache.commons.lang3.StringUtils.isNotBlank(apartmentType), "apartment_type", apartmentType);
940
+        buildingApartmentQueryWrapper.orderByDesc("order_no");
937 941
         buildingApartmentQueryWrapper.orderByDesc("create_date");
938 942
         List<TaBuildingApartment> buildingApartment = taBuildingApartmentMapper.selectList(buildingApartmentQueryWrapper);
939 943
         buildingApartment.forEach(e -> {