Ver código fonte

Merge branch 'v3.5.1' of http://git.ycjcjy.com/zhiyuxing/estateagents into v3.5.1

魏超 5 anos atrás
pai
commit
7d9a4b60f1

+ 11
- 11
src/main/java/com/huiju/estateagents/service/impl/TaBuildingServiceImpl.java Ver arquivo

@@ -134,10 +134,11 @@ public class TaBuildingServiceImpl extends ServiceImpl<TaBuildingMapper, TaBuild
134 134
      */
135 135
     private List<TaBuildingImg> getBuildingImg(String buildingId, String imgType) {
136 136
         //查询当前图片
137
-        QueryWrapper<TaBuildingImg> BuildingImgQueryWrapper = new QueryWrapper<>();
138
-        BuildingImgQueryWrapper.eq("building_id", buildingId);
139
-        BuildingImgQueryWrapper.eq("img_type", imgType);
140
-        List<TaBuildingImg> buildingImg = taBuildingImgMapper.selectList(BuildingImgQueryWrapper);
137
+        QueryWrapper<TaBuildingImg> buildingImgQueryWrapper = new QueryWrapper<>();
138
+        buildingImgQueryWrapper.eq("building_id", buildingId);
139
+        buildingImgQueryWrapper.eq("img_type", imgType);
140
+        buildingImgQueryWrapper.orderByAsc("order_no");
141
+        List<TaBuildingImg> buildingImg = taBuildingImgMapper.selectList(buildingImgQueryWrapper);
141 142
         return  buildingImg.size() > 0 ? buildingImg : null;
142 143
     }
143 144
 
@@ -406,7 +407,7 @@ public class TaBuildingServiceImpl extends ServiceImpl<TaBuildingMapper, TaBuild
406 407
 
407 408
         // 视频封面图
408 409
         String videoImage = object.getString("videoImage");
409
-        List<TaBuildingImg> videoImageList = JSONObject.parseArray(imgStr, TaBuildingImg.class);
410
+        List<TaBuildingImg> videoImageList = JSONObject.parseArray(videoImage, TaBuildingImg.class);
410 411
         if (CollectionUtils.isNotEmpty(videoImageList)) {
411 412
             videoImageList = insertImgBatch(videoImageList, building.getBuildingId());
412 413
         }
@@ -748,14 +749,13 @@ public class TaBuildingServiceImpl extends ServiceImpl<TaBuildingMapper, TaBuild
748 749
         buildingApartmentQueryWrapper.eq("apartment_id", id);
749 750
         TaBuildingApartment buildingApartment = taBuildingApartmentMapper.selectOne(buildingApartmentQueryWrapper);
750 751
 
751
-        TaBuilding  building= new TaBuilding();
752
+//        TaBuilding  building= new TaBuilding();
752 753
         QueryWrapper<TaBuilding> buildingtWrapper = new QueryWrapper<>();
753 754
         buildingtWrapper.lambda().eq(TaBuilding::getBuildingId,buildingApartment.getBuildingId());
754
-        TaBuilding bui= taBuildingMapper.selectOne(buildingtWrapper);
755
-
756
-        if (bui.getStatus().equals(1)){
757
-            return ResponseBean.error("楼盘已发布不可以删除", ResponseBean.ERROR_UNAVAILABLE);
758
-        }
755
+//        TaBuilding bui= taBuildingMapper.selectOne(buildingtWrapper);
756
+//        if (bui.getStatus().equals(1)){
757
+//            return ResponseBean.error("楼盘已发布不可以删除", ResponseBean.ERROR_UNAVAILABLE);
758
+//        }
759 759
 
760 760
         buildingApartment.setStatus(-1);
761 761
        taBuildingApartmentMapper.update(buildingApartment,buildingApartmentQueryWrapper);

+ 1
- 1
src/main/java/com/huiju/estateagents/statistic/entity/TsCustomerStatisticDaily.java Ver arquivo

@@ -21,7 +21,7 @@ import java.time.LocalDateTime;
21 21
 @Data
22 22
 @EqualsAndHashCode(callSuper = false)
23 23
 @Accessors(chain = true)
24
-@TableName("ta_customer_statistic_daily")
24
+@TableName("ts_customer_statistic_daily")
25 25
 public class TsCustomerStatisticDaily implements Serializable {
26 26
 
27 27
     private static final long serialVersionUID = 1L;

+ 1
- 1
src/main/java/com/huiju/estateagents/statistic/entity/TsCustomerStatisticMonthly.java Ver arquivo

@@ -21,7 +21,7 @@ import java.time.LocalDateTime;
21 21
 @Data
22 22
 @EqualsAndHashCode(callSuper = false)
23 23
 @Accessors(chain = true)
24
-@TableName("ta_customer_statistic_monthly")
24
+@TableName("ts_customer_statistic_monthly")
25 25
 public class TsCustomerStatisticMonthly implements Serializable {
26 26
 
27 27
     private static final long serialVersionUID = 1L;

+ 15
- 15
src/main/resources/application-test.yml Ver arquivo

@@ -1,12 +1,12 @@
1 1
 server:
2
-  port: 8566
2
+  port: 8080
3 3
 spring:
4 4
   application:
5 5
     name: estateagents
6 6
   datasource:
7 7
     username: estateagents
8
-    password: DQ@0lW##kBb2+-jPZ
9
-    url: jdbc:mysql://rm-uf6z3z6jq11x653d77o.mysql.rds.aliyuncs.com:3306/estateagents_t?useUnicode=true&serverTimezone=CTT&characterEncoding=utf8&allowMultiQueries=true&autoReconnect=true&zeroDateTimeBehavior=convertToNull
8
+    password: estateagents
9
+    url: jdbc:mysql://47.101.36.130:3306/estateagents_3.5.1_test?useUnicode=true&serverTimezone=GMT%2B8&characterEncoding=utf8&allowMultiQueries=true&autoReconnect=true&zeroDateTimeBehavior=convertToNull
10 10
     driver-class-name: com.mysql.cj.jdbc.Driver
11 11
     initial-size: 10 # 初始化连接数
12 12
     max-active: 20 # 最大连接数
@@ -25,21 +25,21 @@ mybatis-plus:
25 25
   mapper-locations: classpath:mapper/**/*.xml
26 26
 wx:
27 27
   miniapp:
28
-    appid: wxc56decdcbc64d8de
29
-    secret: 80864fa371a8db79e719c07df52d59d0
28
+    appid: wxd6f47a9bb3052175
29
+    secret: 28f33b6bbc0f778c11a0bb234a7d6d4e
30 30
     token:
31 31
     aesKey:
32 32
     msgDataFormat: JSON
33 33
   tpls:
34
-    - name: notice
35
-      id: 6hWKexNlaVpAOvrcWxHHQ_Duz1gRIkg2-Clsktp2-Os
36
-      keywords: 4
37
-    - name: newCustomer
38
-      id: WiBYjqkE9KvwDv1WSq5vnuv5A6FSaOB8ETFcrVmtCEI
39
-      keywords: 4
40
-    - name: mainbiz
41
-      id: WiBYjqkE9KvwDv1WSq5vniGU4P0gvwlat-5ENYKpfxg
42
-      keywords: 6
34
+  - name: notice
35
+    id: 6hWKexNlaVpAOvrcWxHHQ_Duz1gRIkg2-Clsktp2-Os
36
+    keywords: 4
37
+  - name: newCustomer
38
+    id: WiBYjqkE9KvwDv1WSq5vnuv5A6FSaOB8ETFcrVmtCEI
39
+    keywords: 4
40
+  - name: mainbiz
41
+    id: WiBYjqkE9KvwDv1WSq5vniGU4P0gvwlat-5ENYKpfxg
42
+    keywords: 6
43 43
 ali:
44 44
   accessKeyId: LTAIkc75dpkJw8Lb
45 45
   accessKeySecret: v4bvXCaix6vSDTCFfwSAdqV53iFEQw
@@ -68,7 +68,7 @@ sms:
68 68
     # 验证码长度
69 69
     size: 4
70 70
     # 短信签名
71
-    sign: AI智慧案场
71
+    sign: 营销云
72 72
 
73 73
   visitor:
74 74
     code: "0501"

+ 1
- 1
src/main/resources/mapper/TaBuildingImgMapper.xml Ver arquivo

@@ -3,7 +3,7 @@
3 3
 <mapper namespace="com.huiju.estateagents.mapper.TaBuildingImgMapper">
4 4
     <select id="getBuildingImgByApartment" resultType="com.huiju.estateagents.entity.TaBuildingImg" >
5 5
       select a.* from ta_building_img a inner join ta_apartment_img b on a.img_id = b.img_id
6
-      where a.status = 1 and b.status= 1 and b.apartment_id = #{id}
6
+      where a.status = 1 and b.status= 1 and b.apartment_id = #{id} order by a.order_no asc
7 7
     </select>
8 8
 
9 9
     <delete id="delBuildingImgByApartment" >

+ 1
- 1
src/main/resources/mapper/statistic/TsCustomerGenderStatisticMapper.xml Ver arquivo

@@ -46,7 +46,7 @@
46 46
                     t.enlist_id,
47 47
                     c.*
48 48
                 FROM
49
-                    ts_activity_dynamic_enlist t
49
+                    ta_activity_dynamic_enlist t
50 50
                     LEFT JOIN ta_recommend_customer c ON t.person_id = c.person_id
51 51
                     AND t.building_id = c.building_id
52 52
                     AND t.org_id = c.org_id

+ 2
- 2
src/main/resources/mapper/statistic/TsCustomerStatisticDailyMapper.xml Ver arquivo

@@ -13,7 +13,7 @@
13 13
             org_id,
14 14
             count( DISTINCT ( customer_id ) ) as customer_num
15 15
         FROM
16
-            ts_customer_follow_up_record
16
+            ta_customer_follow_up_record
17 17
         WHERE
18 18
             date_format( create_date, '%Y-%m-%d' ) = date_format( #{nowDate}, '%Y-%m-%d' )
19 19
         GROUP BY
@@ -37,7 +37,7 @@
37 37
             count( DISTINCT ( c.customer_id ) ) as customer_num,
38 38
             c.org_id
39 39
         FROM
40
-            ts_activity_dynamic_enlist t
40
+            ta_activity_dynamic_enlist t
41 41
             LEFT JOIN ta_recommend_customer c ON t.person_id = c.person_id
42 42
             AND t.building_id = c.building_id
43 43
             AND t.org_id = c.org_id

+ 2
- 2
src/main/resources/mapper/statistic/TsCustomerStatisticMonthlyMapper.xml Ver arquivo

@@ -22,7 +22,7 @@
22 22
             org_id,
23 23
             count( DISTINCT ( customer_id ) ) as customer_num
24 24
         FROM
25
-            ts_customer_follow_up_record
25
+            ta_customer_follow_up_record
26 26
         WHERE
27 27
             date_format( create_date, '%Y-%m' ) = date_format( #{nowDate}, '%Y-%m' )
28 28
         GROUP BY
@@ -34,7 +34,7 @@
34 34
             count( DISTINCT ( c.customer_id ) ) as customer_num,
35 35
             c.org_id
36 36
         FROM
37
-            ts_activity_dynamic_enlist t
37
+            ta_activity_dynamic_enlist t
38 38
             LEFT JOIN ta_recommend_customer c ON t.person_id = c.person_id
39 39
             AND t.building_id = c.building_id
40 40
             AND t.org_id = c.org_id