傅行帆 5 年前
父节点
当前提交
c2c73aef11

+ 2
- 2
src/main/java/com/huiju/estateagents/center/taUser/service/impl/TaUserServiceImpl.java 查看文件

140
         verificationCity(taUser.getSelectCityTree(), taUser.getDefaultCityId());
140
         verificationCity(taUser.getSelectCityTree(), taUser.getDefaultCityId());
141
 
141
 
142
         QueryWrapper<TaUser> wrapper = new QueryWrapper<>();
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
         List<TaUser> taUserList = this.list(wrapper);
144
         List<TaUser> taUserList = this.list(wrapper);
145
         if (null != taUserList && taUserList.size() > 0) {
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
 
77
 
78
     private String houseType;
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
         QueryWrapper<TaBuildingApartment> AppointmentQueryWrapper = new QueryWrapper<>();
259
         QueryWrapper<TaBuildingApartment> AppointmentQueryWrapper = new QueryWrapper<>();
260
         AppointmentQueryWrapper.eq("building_id", id);
260
         AppointmentQueryWrapper.eq("building_id", id);
261
         AppointmentQueryWrapper.eq("status", 1);
261
         AppointmentQueryWrapper.eq("status", 1);
262
+        AppointmentQueryWrapper.orderByDesc("order_no");
262
         AppointmentQueryWrapper.orderByDesc("create_date");
263
         AppointmentQueryWrapper.orderByDesc("create_date");
263
         List<TaBuildingApartment> appoint = taBuildingApartmentMapper.selectList(AppointmentQueryWrapper);
264
         List<TaBuildingApartment> appoint = taBuildingApartmentMapper.selectList(AppointmentQueryWrapper);
264
         for (TaBuildingApartment apar : appoint) {
265
         for (TaBuildingApartment apar : appoint) {
911
         // 楼盘户型
912
         // 楼盘户型
912
         QueryWrapper<TaBuildingApartment> buildingApartmentQueryWrapper = new QueryWrapper<>();
913
         QueryWrapper<TaBuildingApartment> buildingApartmentQueryWrapper = new QueryWrapper<>();
913
         buildingApartmentQueryWrapper.eq("building_id", building.getBuildingId());
914
         buildingApartmentQueryWrapper.eq("building_id", building.getBuildingId());
915
+        buildingApartmentQueryWrapper.orderByDesc("order_no");
916
+        buildingApartmentQueryWrapper.orderByDesc("create_date");
914
         List<TaBuildingApartment> buildingApartmentList = taBuildingApartmentMapper.selectList(buildingApartmentQueryWrapper);
917
         List<TaBuildingApartment> buildingApartmentList = taBuildingApartmentMapper.selectList(buildingApartmentQueryWrapper);
915
 
918
 
916
         // 楼盘户型图
919
         // 楼盘户型图
934
         buildingApartmentQueryWrapper.eq("building_id", id);
937
         buildingApartmentQueryWrapper.eq("building_id", id);
935
         buildingApartmentQueryWrapper.eq("status", 1);
938
         buildingApartmentQueryWrapper.eq("status", 1);
936
         buildingApartmentQueryWrapper.eq(org.apache.commons.lang3.StringUtils.isNotBlank(apartmentType), "apartment_type", apartmentType);
939
         buildingApartmentQueryWrapper.eq(org.apache.commons.lang3.StringUtils.isNotBlank(apartmentType), "apartment_type", apartmentType);
940
+        buildingApartmentQueryWrapper.orderByDesc("order_no");
937
         buildingApartmentQueryWrapper.orderByDesc("create_date");
941
         buildingApartmentQueryWrapper.orderByDesc("create_date");
938
         List<TaBuildingApartment> buildingApartment = taBuildingApartmentMapper.selectList(buildingApartmentQueryWrapper);
942
         List<TaBuildingApartment> buildingApartment = taBuildingApartmentMapper.selectList(buildingApartmentQueryWrapper);
939
         buildingApartment.forEach(e -> {
943
         buildingApartment.forEach(e -> {