Browse Source

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

魏超 5 years ago
parent
commit
7d9a4b60f1

+ 11
- 11
src/main/java/com/huiju/estateagents/service/impl/TaBuildingServiceImpl.java View File

134
      */
134
      */
135
     private List<TaBuildingImg> getBuildingImg(String buildingId, String imgType) {
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
         return  buildingImg.size() > 0 ? buildingImg : null;
142
         return  buildingImg.size() > 0 ? buildingImg : null;
142
     }
143
     }
143
 
144
 
406
 
407
 
407
         // 视频封面图
408
         // 视频封面图
408
         String videoImage = object.getString("videoImage");
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
         if (CollectionUtils.isNotEmpty(videoImageList)) {
411
         if (CollectionUtils.isNotEmpty(videoImageList)) {
411
             videoImageList = insertImgBatch(videoImageList, building.getBuildingId());
412
             videoImageList = insertImgBatch(videoImageList, building.getBuildingId());
412
         }
413
         }
748
         buildingApartmentQueryWrapper.eq("apartment_id", id);
749
         buildingApartmentQueryWrapper.eq("apartment_id", id);
749
         TaBuildingApartment buildingApartment = taBuildingApartmentMapper.selectOne(buildingApartmentQueryWrapper);
750
         TaBuildingApartment buildingApartment = taBuildingApartmentMapper.selectOne(buildingApartmentQueryWrapper);
750
 
751
 
751
-        TaBuilding  building= new TaBuilding();
752
+//        TaBuilding  building= new TaBuilding();
752
         QueryWrapper<TaBuilding> buildingtWrapper = new QueryWrapper<>();
753
         QueryWrapper<TaBuilding> buildingtWrapper = new QueryWrapper<>();
753
         buildingtWrapper.lambda().eq(TaBuilding::getBuildingId,buildingApartment.getBuildingId());
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
         buildingApartment.setStatus(-1);
760
         buildingApartment.setStatus(-1);
761
        taBuildingApartmentMapper.update(buildingApartment,buildingApartmentQueryWrapper);
761
        taBuildingApartmentMapper.update(buildingApartment,buildingApartmentQueryWrapper);

+ 1
- 1
src/main/java/com/huiju/estateagents/statistic/entity/TsCustomerStatisticDaily.java View File

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

+ 1
- 1
src/main/java/com/huiju/estateagents/statistic/entity/TsCustomerStatisticMonthly.java View File

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

+ 15
- 15
src/main/resources/application-test.yml View File

1
 server:
1
 server:
2
-  port: 8566
2
+  port: 8080
3
 spring:
3
 spring:
4
   application:
4
   application:
5
     name: estateagents
5
     name: estateagents
6
   datasource:
6
   datasource:
7
     username: estateagents
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
     driver-class-name: com.mysql.cj.jdbc.Driver
10
     driver-class-name: com.mysql.cj.jdbc.Driver
11
     initial-size: 10 # 初始化连接数
11
     initial-size: 10 # 初始化连接数
12
     max-active: 20 # 最大连接数
12
     max-active: 20 # 最大连接数
25
   mapper-locations: classpath:mapper/**/*.xml
25
   mapper-locations: classpath:mapper/**/*.xml
26
 wx:
26
 wx:
27
   miniapp:
27
   miniapp:
28
-    appid: wxc56decdcbc64d8de
29
-    secret: 80864fa371a8db79e719c07df52d59d0
28
+    appid: wxd6f47a9bb3052175
29
+    secret: 28f33b6bbc0f778c11a0bb234a7d6d4e
30
     token:
30
     token:
31
     aesKey:
31
     aesKey:
32
     msgDataFormat: JSON
32
     msgDataFormat: JSON
33
   tpls:
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
 ali:
43
 ali:
44
   accessKeyId: LTAIkc75dpkJw8Lb
44
   accessKeyId: LTAIkc75dpkJw8Lb
45
   accessKeySecret: v4bvXCaix6vSDTCFfwSAdqV53iFEQw
45
   accessKeySecret: v4bvXCaix6vSDTCFfwSAdqV53iFEQw
68
     # 验证码长度
68
     # 验证码长度
69
     size: 4
69
     size: 4
70
     # 短信签名
70
     # 短信签名
71
-    sign: AI智慧案场
71
+    sign: 营销云
72
 
72
 
73
   visitor:
73
   visitor:
74
     code: "0501"
74
     code: "0501"

+ 1
- 1
src/main/resources/mapper/TaBuildingImgMapper.xml View File

3
 <mapper namespace="com.huiju.estateagents.mapper.TaBuildingImgMapper">
3
 <mapper namespace="com.huiju.estateagents.mapper.TaBuildingImgMapper">
4
     <select id="getBuildingImgByApartment" resultType="com.huiju.estateagents.entity.TaBuildingImg" >
4
     <select id="getBuildingImgByApartment" resultType="com.huiju.estateagents.entity.TaBuildingImg" >
5
       select a.* from ta_building_img a inner join ta_apartment_img b on a.img_id = b.img_id
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
     </select>
7
     </select>
8
 
8
 
9
     <delete id="delBuildingImgByApartment" >
9
     <delete id="delBuildingImgByApartment" >

+ 1
- 1
src/main/resources/mapper/statistic/TsCustomerGenderStatisticMapper.xml View File

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

+ 2
- 2
src/main/resources/mapper/statistic/TsCustomerStatisticDailyMapper.xml View File

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

+ 2
- 2
src/main/resources/mapper/statistic/TsCustomerStatisticMonthlyMapper.xml View File

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