|
@@ -260,8 +260,9 @@ public class TaGoodsController extends BaseController {
|
260
|
260
|
@RequestMapping(value="/wx/goods",method= RequestMethod.GET)
|
261
|
261
|
public ResponseBean wxGoodsList(@RequestParam(value ="pageNumber",defaultValue = "1") Integer pageNumber,
|
262
|
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
|
266
|
HttpServletRequest request){
|
266
|
267
|
ResponseBean responseBean = new ResponseBean();
|
267
|
268
|
String openid = getOpenId(request);
|
|
@@ -275,16 +276,15 @@ public class TaGoodsController extends BaseController {
|
275
|
276
|
//使用分页插件
|
276
|
277
|
IPage<TaGoods> pg = new Page<>(pageNumber, pageSize);
|
277
|
278
|
QueryWrapper<TaGoods> queryWrapper = new QueryWrapper<>();
|
|
279
|
+ queryWrapper.eq("org_id", orgId);
|
|
280
|
+ queryWrapper.like(!StringUtils.isEmpty(goodsName), "goods_name", "%"+goodsName+"%");
|
278
|
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
|
288
|
queryWrapper.orderByDesc("order_no");
|
289
|
289
|
queryWrapper.orderByDesc("create_date");
|
290
|
290
|
|