张延森 4 лет назад
Родитель
Сommit
b2e9d13d26

+ 1
- 1
pom.xml Просмотреть файл

10
 	</parent>
10
 	</parent>
11
 	<groupId>com.huiju</groupId>
11
 	<groupId>com.huiju</groupId>
12
 	<artifactId>xiangsong</artifactId>
12
 	<artifactId>xiangsong</artifactId>
13
-	<version>1.0.11</version>
13
+	<version>1.0.12</version>
14
 	<name>xiangsong</name>
14
 	<name>xiangsong</name>
15
 	<description>香颂</description>
15
 	<description>香颂</description>
16
 
16
 

+ 1
- 0
src/main/java/com/huiju/estateagents/center/taUser/controller/TaUserController.java Просмотреть файл

600
         }
600
         }
601
         return responseBean;
601
         return responseBean;
602
     }
602
     }
603
+
603
 }
604
 }

+ 11
- 11
src/main/java/com/huiju/estateagents/controller/TaGoodsController.java Просмотреть файл

260
     @RequestMapping(value="/wx/goods",method= RequestMethod.GET)
260
     @RequestMapping(value="/wx/goods",method= RequestMethod.GET)
261
     public ResponseBean wxGoodsList(@RequestParam(value ="pageNumber",defaultValue = "1") Integer pageNumber,
261
     public ResponseBean wxGoodsList(@RequestParam(value ="pageNumber",defaultValue = "1") Integer pageNumber,
262
                                     @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize,
262
                                     @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize,
263
-                                    @RequestParam(value = "buildingId",required = false) String buildingId,
264
-                                    @RequestParam(value = "cityId", required = false) Integer cityId,
263
+                                    @RequestParam(value = "goodsName",required = false) String goodsName,
264
+//                                    @RequestParam(value = "buildingId",required = false) String buildingId,
265
+//                                    @RequestParam(value = "cityId", required = false) Integer cityId,
265
                                     HttpServletRequest request){
266
                                     HttpServletRequest request){
266
         ResponseBean responseBean = new ResponseBean();
267
         ResponseBean responseBean = new ResponseBean();
267
         String openid = getOpenId(request);
268
         String openid = getOpenId(request);
275
             //使用分页插件
276
             //使用分页插件
276
             IPage<TaGoods> pg = new Page<>(pageNumber, pageSize);
277
             IPage<TaGoods> pg = new Page<>(pageNumber, pageSize);
277
             QueryWrapper<TaGoods> queryWrapper = new QueryWrapper<>();
278
             QueryWrapper<TaGoods> queryWrapper = new QueryWrapper<>();
279
+            queryWrapper.eq("org_id", orgId);
280
+            queryWrapper.like(!StringUtils.isEmpty(goodsName), "goods_name", "%"+goodsName+"%");
278
             queryWrapper.eq("status", CommConstant.STATUS_NORMAL);
281
             queryWrapper.eq("status", CommConstant.STATUS_NORMAL);
279
-            if (!StringUtils.isEmpty(buildingId)){
280
-                queryWrapper.eq("building_id", buildingId);
281
-            }
282
-            if (null != orgId){
283
-                queryWrapper.eq("org_id", orgId);
284
-            }
285
-            if (null != cityId){
286
-                queryWrapper.eq("city_id", cityId);
287
-            }
282
+//            if (!StringUtils.isEmpty(buildingId)){
283
+//                queryWrapper.eq("building_id", buildingId);
284
+//            }
285
+//            if (null != cityId){
286
+//                queryWrapper.eq("city_id", cityId);
287
+//            }
288
             queryWrapper.orderByDesc("order_no");
288
             queryWrapper.orderByDesc("order_no");
289
             queryWrapper.orderByDesc("create_date");
289
             queryWrapper.orderByDesc("create_date");
290
             
290
             

+ 4
- 0
src/main/java/com/huiju/estateagents/controller/TpNewsTypeController.java Просмотреть файл

3
 import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
3
 import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
4
 import com.huiju.estateagents.base.BaseController;
4
 import com.huiju.estateagents.base.BaseController;
5
 import com.huiju.estateagents.base.ResponseBean;
5
 import com.huiju.estateagents.base.ResponseBean;
6
+import com.huiju.estateagents.common.CommConstant;
6
 import com.huiju.estateagents.entity.TpNewsType;
7
 import com.huiju.estateagents.entity.TpNewsType;
7
 import com.huiju.estateagents.service.ITpNewsTypeService;
8
 import com.huiju.estateagents.service.ITpNewsTypeService;
8
 import io.swagger.annotations.Api;
9
 import io.swagger.annotations.Api;
127
                                        HttpServletRequest request){
128
                                        HttpServletRequest request){
128
         QueryWrapper<TpNewsType> queryWrapper = new QueryWrapper<>();
129
         QueryWrapper<TpNewsType> queryWrapper = new QueryWrapper<>();
129
         queryWrapper.eq("org_id",getOrgId(request));
130
         queryWrapper.eq("org_id",getOrgId(request));
131
+        queryWrapper.eq("status", CommConstant.STATUS_NORMAL);
132
+        queryWrapper.orderByDesc("create_date");
133
+
130
         return ResponseBean.success(iTpNewsTypeService.list(queryWrapper));
134
         return ResponseBean.success(iTpNewsTypeService.list(queryWrapper));
131
     }
135
     }
132
 
136
 

+ 5
- 3
src/main/java/com/huiju/estateagents/property/controller/TpRepairTypeController.java Просмотреть файл

65
         queryWrapper.eq("wx".equals(client),"status", CommConstant.STATUS_NORMAL);
65
         queryWrapper.eq("wx".equals(client),"status", CommConstant.STATUS_NORMAL);
66
         queryWrapper.gt("admin".equals(client),"status", CommConstant.STATUS_DELETE);
66
         queryWrapper.gt("admin".equals(client),"status", CommConstant.STATUS_DELETE);
67
         queryWrapper.orderByDesc("sort_num");
67
         queryWrapper.orderByDesc("sort_num");
68
-        queryWrapper.orderByDesc("create_time");
68
+        queryWrapper.orderByDesc("created_time");
69
 
69
 
70
         IPage<TpRepairType> result = iTpRepairTypeService.page(pg, queryWrapper);
70
         IPage<TpRepairType> result = iTpRepairTypeService.page(pg, queryWrapper);
71
         return ResponseBean.success(result);
71
         return ResponseBean.success(result);
104
     public ResponseBean tpRepairTypeDelete(@ApiParam("对象ID") @PathVariable Integer id,
104
     public ResponseBean tpRepairTypeDelete(@ApiParam("对象ID") @PathVariable Integer id,
105
                                            HttpServletRequest request) throws Exception{
105
                                            HttpServletRequest request) throws Exception{
106
         TpRepairType tpRepairType = iTpRepairTypeService.getById(id);
106
         TpRepairType tpRepairType = iTpRepairTypeService.getById(id);
107
+        tpRepairType.setStatus(CommConstant.STATUS_DELETE);
107
         return tpRepairTypeUpdate(tpRepairType.getTypeId(), tpRepairType, request);
108
         return tpRepairTypeUpdate(tpRepairType.getTypeId(), tpRepairType, request);
108
     }
109
     }
109
 
110
 
135
      * 根据id查询对象
136
      * 根据id查询对象
136
      * @param id  实体ID
137
      * @param id  实体ID
137
      */
138
      */
138
-    @RequestMapping(value="/admin/tpRepairType/{id}",method= RequestMethod.GET)
139
+    @RequestMapping(value="/{client}/tpRepairType/{id}",method= RequestMethod.GET)
139
     @ApiOperation(value="详情", notes = "详情", httpMethod = "GET", response = ResponseBean.class)
140
     @ApiOperation(value="详情", notes = "详情", httpMethod = "GET", response = ResponseBean.class)
140
-    public ResponseBean tpRepairTypeGet(@ApiParam("对象ID") @PathVariable Integer id,
141
+    public ResponseBean tpRepairTypeGet(@ApiParam("客户端") @PathVariable String client,
142
+                                        @ApiParam("对象ID") @PathVariable Integer id,
141
                                         HttpServletRequest request) throws Exception{
143
                                         HttpServletRequest request) throws Exception{
142
         TpRepairType tpRepairType = iTpRepairTypeService.getById(id);
144
         TpRepairType tpRepairType = iTpRepairTypeService.getById(id);
143
         if (null == tpRepairType || tpRepairType.getStatus().equals(CommConstant.STATUS_DELETE) || !tpRepairType.getOrgId().equals(getOrgId(request))) {
145
         if (null == tpRepairType || tpRepairType.getStatus().equals(CommConstant.STATUS_DELETE) || !tpRepairType.getOrgId().equals(getOrgId(request))) {

+ 3
- 5
src/main/java/com/huiju/estateagents/property/entity/TpRepairType.java Просмотреть файл

53
     private Integer status;
53
     private Integer status;
54
 
54
 
55
     @ApiModelProperty(value = "创建人")
55
     @ApiModelProperty(value = "创建人")
56
-    @TableField("CREATED_BY")
57
     private String createdBy;
56
     private String createdBy;
58
 
57
 
59
     @ApiModelProperty(value = "创建时间")
58
     @ApiModelProperty(value = "创建时间")
60
-    @TableField("CREATED_TIME")
61
     private LocalDateTime createdTime;
59
     private LocalDateTime createdTime;
62
 
60
 
63
     @ApiModelProperty(value = "更新人")
61
     @ApiModelProperty(value = "更新人")
64
-    @TableField("UPDATED_BY")
65
     private String updatedBy;
62
     private String updatedBy;
66
 
63
 
67
     @ApiModelProperty(value = "更新时间")
64
     @ApiModelProperty(value = "更新时间")
68
-    @TableField("UPDATED_TIME")
69
     private LocalDateTime updatedTime;
65
     private LocalDateTime updatedTime;
70
 
66
 
71
-
67
+    @ApiModelProperty(value = "说明")
68
+    @TableField("`desc`")
69
+    private String desc;
72
 }
70
 }