Преглед изворни кода

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,9 +10,9 @@
10 10
 	</parent>
11 11
 	<groupId>com.huiju</groupId>
12 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 17
 	<properties>
18 18
 		<java.version>1.8</java.version>

+ 5
- 2
src/main/java/com/huiju/estateagents/controller/ExtendContentController.java Прегледај датотеку

@@ -152,8 +152,11 @@ public class ExtendContentController extends BaseController {
152 152
      * @return
153 153
      */
154 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,7 +97,8 @@ public class TaPointsRecordsController extends BaseController {
97 97
     })
98 98
     @RequestMapping(value="/wx/taPointsRecords",method= RequestMethod.GET)
99 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 102
                                               HttpServletRequest request){
102 103
         ResponseBean responseBean = new ResponseBean();
103 104
         try {
@@ -112,6 +113,8 @@ public class TaPointsRecordsController extends BaseController {
112 113
             IPage<TaPointsRecords> pg = new Page<>(pageNumber, pageSize);
113 114
             QueryWrapper<TaPointsRecords> queryWrapper = new QueryWrapper<>();
114 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 118
             queryWrapper.orderByDesc("create_date");
116 119
 
117 120
             IPage<TaPointsRecords> result = iTaPointsRecordsService.page(pg, queryWrapper);

+ 6
- 0
src/main/java/com/huiju/estateagents/property/service/impl/TpAnnouncementServiceImpl.java Прегледај датотеку

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

+ 9
- 9
src/main/java/com/huiju/estateagents/service/impl/ExtendContentServiceImpl.java Прегледај датотеку

@@ -177,12 +177,12 @@ public class ExtendContentServiceImpl extends ServiceImpl<ExtendContentMapper, E
177 177
         //一个城市、项目只能有一个开屏广告
178 178
         if (extendContent.getStatus() == 1 && CommConstant.OPEN_SCREEN.equals(extendContent.getShowType())){
179 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 187
             taExtendContentQueryWrapper.eq("org_id", orgId);
188 188
             taExtendContentQueryWrapper.eq("status", 1);
@@ -192,9 +192,9 @@ public class ExtendContentServiceImpl extends ServiceImpl<ExtendContentMapper, E
192 192
                 taExtendContentQueryWrapper.ne("content_id", extendContent.getContentId());
193 193
             }
194 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 198
             List<ExtendContent> extContentInfo = extendContentMapper.selectList(taExtendContentQueryWrapper);
199 199
             if (!Collections.isEmpty(extContentInfo)){
200 200
                 return false;

+ 2
- 2
src/main/resources/application-dev.yml Прегледај датотеку

@@ -4,8 +4,8 @@ spring:
4 4
   application:
5 5
     name: zhiyun
6 6
   datasource:
7
-    username: root
8
-    password: DQ@0lW##kBb2+-jPZC1s$Ma0h5$9W((q
7
+    username: xiangsong
8
+    password: xiangsong@123
9 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 10
     driver-class-name: com.mysql.cj.jdbc.Driver
11 11
     initial-size: 10 # 初始化连接数

+ 4
- 4
src/main/resources/application-prod.yml Прегледај датотеку

@@ -1,12 +1,12 @@
1 1
 server:
2
-  port: 8567
2
+  port: 80
3 3
 spring:
4 4
   application:
5 5
     name: zhiyun
6 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 10
     driver-class-name: com.mysql.cj.jdbc.Driver
11 11
     initial-size: 10 # 初始化连接数
12 12
     max-active: 20 # 最大连接数