接口加字段
This commit is contained in:
@@ -296,6 +296,9 @@
|
|||||||
from xfsg_point_info a
|
from xfsg_point_info a
|
||||||
LEFT JOIN xfsg_point_detail_info c on a.id = c.point_id
|
LEFT JOIN xfsg_point_detail_info c on a.id = c.point_id
|
||||||
where a.deleted = 0
|
where a.deleted = 0
|
||||||
|
<if test = "request.keyword!=null and request.keyword !=''">
|
||||||
|
and a.point_name like concat('%', #{request.keyword}, '%')
|
||||||
|
</if>
|
||||||
<if test = "request.type == 1">
|
<if test = "request.type == 1">
|
||||||
and a.point_status in( 4,5)
|
and a.point_status in( 4,5)
|
||||||
</if>
|
</if>
|
||||||
|
|||||||
@@ -17,11 +17,12 @@ public class MiniPointRequest extends PageBasicInfo {
|
|||||||
@ApiModelProperty(value = "1-推荐铺位,2-我创建的")
|
@ApiModelProperty(value = "1-推荐铺位,2-我创建的")
|
||||||
@NotNull
|
@NotNull
|
||||||
private Integer type;
|
private Integer type;
|
||||||
|
|
||||||
private Long lineId;
|
private Long lineId;
|
||||||
|
|
||||||
private String partnerId;
|
private String partnerId;
|
||||||
|
|
||||||
@ApiModelProperty("省市区编码,传最后一级")
|
@ApiModelProperty("省市区编码,传最后一级")
|
||||||
private String areaCode;
|
private String areaCode;
|
||||||
|
|
||||||
|
@ApiModelProperty("根据关键字搜索")
|
||||||
|
private String keyword;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -120,8 +120,8 @@ public class MiniShopController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@ApiOperation("获取推荐铺位和我创建的")
|
@ApiOperation("获取推荐铺位和我创建的")
|
||||||
@GetMapping("/getRecommendedOrMyPointList")
|
@PostMapping("/getRecommendedOrMyPointList")
|
||||||
public ResponseResult<PageInfo<MiniPointPageVO>> getRecommendedOrMyPointList(@RequestParam("request")MiniPointRequest request) {
|
public ResponseResult<PageInfo<MiniPointPageVO>> getRecommendedOrMyPointList(@RequestBody @Validated MiniPointRequest request) {
|
||||||
request.setLineId(PartnerUserHolder.getUser().getLineId());
|
request.setLineId(PartnerUserHolder.getUser().getLineId());
|
||||||
return ResponseResult.success(pointService.getRecommendedOrMyPointList( request));
|
return ResponseResult.success(pointService.getRecommendedOrMyPointList( request));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user