接口加字段

This commit is contained in:
shuo.wang
2025-04-05 16:15:28 +08:00
parent 6c39f6fa41
commit 5e99cdb5d4
3 changed files with 8 additions and 4 deletions

View File

@@ -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>

View File

@@ -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;
} }

View File

@@ -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));
} }