浏览代码

Merge branch 'master' of http://git.ycjcjy.com/xiangsong/xs-service

# Conflicts:
#	src/main/java/com/huiju/estateagents/controller/ExtendContentController.java
傅行帆 4 年前
父节点
当前提交
386dfdafa0

+ 3
- 3
pom.xml 查看文件

10
 	</parent>
10
 	</parent>
11
 	<groupId>com.huiju</groupId>
11
 	<groupId>com.huiju</groupId>
12
 	<artifactId>zcloud</artifactId>
12
 	<artifactId>zcloud</artifactId>
13
-	<version>v1.0.7</version>
14
-	<name>zhiyun</name>
15
-	<description>致云</description>
13
+	<version>1.0.0</version>
14
+	<name>香颂</name>
15
+	<description>香颂</description>
16
 
16
 
17
 	<properties>
17
 	<properties>
18
 		<java.version>1.8</java.version>
18
 		<java.version>1.8</java.version>

+ 5
- 2
src/main/java/com/huiju/estateagents/controller/ExtendContentController.java 查看文件

152
      * @return
152
      * @return
153
      */
153
      */
154
     @GetMapping("/wx/extendContent")
154
     @GetMapping("/wx/extendContent")
155
-    public ResponseBean extendContentListOfWX(@RequestParam(value = "cityId", required = false) Integer cityId, HttpServletRequest request) {
156
-        return iExtendContentService.selectExtendContentListShowType(null, null, null,null, null, null, cityId,getOrgId(request));
155
+    public ResponseBean extendContentListOfWX(@RequestParam(value = "cityId", required = false) Integer cityId,
156
+                                              @RequestParam(value = "showType", required = false) String showType,
157
+                                              @RequestParam(value = "showPosition", required = false) String showPosition,
158
+                                              HttpServletRequest request) {
159
+        return iExtendContentService.selectExtendContentListShowType(showType, showPosition, null,null, null, null, cityId,getOrgId(request));
157
     }
160
     }
158
 
161
 
159
 
162
 

+ 4
- 1
src/main/java/com/huiju/estateagents/controller/TaPointsRecordsController.java 查看文件

97
     })
97
     })
98
     @RequestMapping(value="/wx/taPointsRecords",method= RequestMethod.GET)
98
     @RequestMapping(value="/wx/taPointsRecords",method= RequestMethod.GET)
99
     public ResponseBean taWxPointsRecordsList(@RequestParam(value ="pageNumber",defaultValue = "1") Integer pageNumber,
99
     public ResponseBean taWxPointsRecordsList(@RequestParam(value ="pageNumber",defaultValue = "1") Integer pageNumber,
100
-                                            @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize,
100
+                                              @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize,
101
+                                              @RequestParam(value = "inout", required = false) Integer inOut,
101
                                               HttpServletRequest request){
102
                                               HttpServletRequest request){
102
         ResponseBean responseBean = new ResponseBean();
103
         ResponseBean responseBean = new ResponseBean();
103
         try {
104
         try {
112
             IPage<TaPointsRecords> pg = new Page<>(pageNumber, pageSize);
113
             IPage<TaPointsRecords> pg = new Page<>(pageNumber, pageSize);
113
             QueryWrapper<TaPointsRecords> queryWrapper = new QueryWrapper<>();
114
             QueryWrapper<TaPointsRecords> queryWrapper = new QueryWrapper<>();
114
             queryWrapper.eq("person_id",person.getPersonId());
115
             queryWrapper.eq("person_id",person.getPersonId());
116
+            queryWrapper.gt(inOut != null && inOut == 1, "points_amount", 0);
117
+            queryWrapper.lt(inOut != null && inOut == -1, "points_amount", 0);
115
             queryWrapper.orderByDesc("create_date");
118
             queryWrapper.orderByDesc("create_date");
116
 
119
 
117
             IPage<TaPointsRecords> result = iTaPointsRecordsService.page(pg, queryWrapper);
120
             IPage<TaPointsRecords> result = iTaPointsRecordsService.page(pg, queryWrapper);

+ 6
- 0
src/main/java/com/huiju/estateagents/property/service/impl/TpAnnouncementServiceImpl.java 查看文件

8
 import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
8
 import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
9
 import com.huiju.estateagents.base.ResponseBean;
9
 import com.huiju.estateagents.base.ResponseBean;
10
 import com.huiju.estateagents.center.taUser.entity.TaUser;
10
 import com.huiju.estateagents.center.taUser.entity.TaUser;
11
+import com.huiju.estateagents.common.StringUtils;
11
 import com.huiju.estateagents.property.dao.*;
12
 import com.huiju.estateagents.property.dao.*;
12
 import com.huiju.estateagents.property.model.*;
13
 import com.huiju.estateagents.property.model.*;
13
 import com.huiju.estateagents.property.service.TpAnnouncementService;
14
 import com.huiju.estateagents.property.service.TpAnnouncementService;
63
         Integer pageNum = jsonobject.getInteger("pageNum");
64
         Integer pageNum = jsonobject.getInteger("pageNum");
64
         Integer announcementNumber = jsonobject.getInteger("announcementNumber");
65
         Integer announcementNumber = jsonobject.getInteger("announcementNumber");
65
         Integer pageSize = jsonobject.getInteger("pageSize");
66
         Integer pageSize = jsonobject.getInteger("pageSize");
67
+        String announcementTitle = jsonobject.getString("announcementTitle");
66
         tpAnnouncement.setId(announcementNumber);
68
         tpAnnouncement.setId(announcementNumber);
69
+        if (!StringUtils.isEmpty(announcementTitle)) {
70
+            tpAnnouncement.setAnnouncementTitle(announcementTitle);
71
+        }
72
+
67
         // 分页
73
         // 分页
68
         Page<TpBuildingOwnerInfo> page = new Page<>();
74
         Page<TpBuildingOwnerInfo> page = new Page<>();
69
         page.setSize(pageSize == null ? 10 : pageSize);
75
         page.setSize(pageSize == null ? 10 : pageSize);

+ 9
- 9
src/main/java/com/huiju/estateagents/service/impl/ExtendContentServiceImpl.java 查看文件

177
         //一个城市、项目只能有一个开屏广告
177
         //一个城市、项目只能有一个开屏广告
178
         if (extendContent.getStatus() == 1 && CommConstant.OPEN_SCREEN.equals(extendContent.getShowType())){
178
         if (extendContent.getStatus() == 1 && CommConstant.OPEN_SCREEN.equals(extendContent.getShowType())){
179
             QueryWrapper<ExtendContent> taExtendContentQueryWrapper = new QueryWrapper<>();
179
             QueryWrapper<ExtendContent> taExtendContentQueryWrapper = new QueryWrapper<>();
180
-            if (extendContent.getCityId() == null){
181
-                TaBuilding taBuilding = taBuildingMapper.selectBuilding(extendContent.getBuildingId());
182
-                taExtendContentQueryWrapper.eq("city_id", taBuilding.getCityId());
183
-            }else{
184
-                taExtendContentQueryWrapper.eq("city_id", extendContent.getCityId());
185
-            }
180
+//            if (extendContent.getCityId() == null){
181
+//                TaBuilding taBuilding = taBuildingMapper.selectBuilding(extendContent.getBuildingId());
182
+//                taExtendContentQueryWrapper.eq("city_id", taBuilding.getCityId());
183
+//            }else{
184
+//                taExtendContentQueryWrapper.eq("city_id", extendContent.getCityId());
185
+//            }
186
 
186
 
187
             taExtendContentQueryWrapper.eq("org_id", orgId);
187
             taExtendContentQueryWrapper.eq("org_id", orgId);
188
             taExtendContentQueryWrapper.eq("status", 1);
188
             taExtendContentQueryWrapper.eq("status", 1);
192
                 taExtendContentQueryWrapper.ne("content_id", extendContent.getContentId());
192
                 taExtendContentQueryWrapper.ne("content_id", extendContent.getContentId());
193
             }
193
             }
194
 //            taExtendContentQueryWrapper.eq(StringUtils.isNotBlank(String.valueOf(extendContent.getIsHaveActive())), "is_have_active", extendContent.getIsHaveActive());
194
 //            taExtendContentQueryWrapper.eq(StringUtils.isNotBlank(String.valueOf(extendContent.getIsHaveActive())), "is_have_active", extendContent.getIsHaveActive());
195
-            if (null != extendContent.getIsHaveActive() && CommConstant.BANNER_BUILDING.equals(extendContent.getShowPosition())){
196
-                taExtendContentQueryWrapper.eq(StringUtils.isNotBlank(extendContent.getBuildingId()), "building_id", extendContent.getBuildingId());
197
-            }
195
+//            if (null != extendContent.getIsHaveActive() && CommConstant.BANNER_BUILDING.equals(extendContent.getShowPosition())){
196
+//                taExtendContentQueryWrapper.eq(StringUtils.isNotBlank(extendContent.getBuildingId()), "building_id", extendContent.getBuildingId());
197
+//            }
198
             List<ExtendContent> extContentInfo = extendContentMapper.selectList(taExtendContentQueryWrapper);
198
             List<ExtendContent> extContentInfo = extendContentMapper.selectList(taExtendContentQueryWrapper);
199
             if (!Collections.isEmpty(extContentInfo)){
199
             if (!Collections.isEmpty(extContentInfo)){
200
                 return false;
200
                 return false;

+ 2
- 2
src/main/resources/application-dev.yml 查看文件

4
   application:
4
   application:
5
     name: zhiyun
5
     name: zhiyun
6
   datasource:
6
   datasource:
7
-    username: root
8
-    password: DQ@0lW##kBb2+-jPZC1s$Ma0h5$9W((q
7
+    username: xiangsong
8
+    password: xiangsong@123
9
     url: jdbc:mysql://rm-uf6z3z6jq11x653d77o.mysql.rds.aliyuncs.com:3306/xiangsong?useUnicode=true&serverTimezone=CTT&characterEncoding=utf8&allowMultiQueries=true&autoReconnect=true&zeroDateTimeBehavior=convertToNull
9
     url: jdbc:mysql://rm-uf6z3z6jq11x653d77o.mysql.rds.aliyuncs.com:3306/xiangsong?useUnicode=true&serverTimezone=CTT&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 # 初始化连接数

+ 4
- 4
src/main/resources/application-prod.yml 查看文件

1
 server:
1
 server:
2
-  port: 8567
2
+  port: 80
3
 spring:
3
 spring:
4
   application:
4
   application:
5
     name: zhiyun
5
     name: zhiyun
6
   datasource:
6
   datasource:
7
-    username: zhiyun
8
-    password: Hf93UeZ4v44BBQTc
9
-    url: jdbc:mysql://rm-uf6z3z6jq11x653d77o.mysql.rds.aliyuncs.com:3306/zhiyun?useUnicode=true&serverTimezone=CTT&characterEncoding=utf8&allowMultiQueries=true&autoReconnect=true&zeroDateTimeBehavior=convertToNull
7
+    username: xiangsong
8
+    password: xiangsong@123
9
+    url: jdbc:mysql://rm-uf6z3z6jq11x653d77o.mysql.rds.aliyuncs.com:3306/xiangsong?useUnicode=true&serverTimezone=CTT&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 # 最大连接数