|
@@ -31,32 +31,16 @@ public class AppletCustomerInfoController extends BaseController {
|
|
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
- * 查询客户信息列表
|
|
|
|
- */
|
|
|
|
- @GetMapping("/list")
|
|
|
|
- @ApiOperation("查询客户信息列表")
|
|
|
|
- @ApiImplicitParams({
|
|
|
|
- @ApiImplicitParam(name = "pageNum", value = "当前页码", dataType = "int", paramType = "query", required = false),
|
|
|
|
- @ApiImplicitParam(name = "pageSize", value = "每页数据量", dataType = "int", paramType = "query", required = false),
|
|
|
|
- })
|
|
|
|
- public ResponsePageInfo<CustomerInfo> list(@ModelAttribute CustomerInfo customerInfo) {
|
|
|
|
- startPage();
|
|
|
|
- List<CustomerInfo> list = customerInfoService.selectCustomerInfoList(customerInfo);
|
|
|
|
- return toResponsePageInfo(list);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- /**
|
|
|
|
- * 查询所属品类商家
|
|
|
|
|
|
+ * 查询商家列表
|
|
*/
|
|
*/
|
|
@GetMapping(value = "/getCustomerListByProductId/{id}")
|
|
@GetMapping(value = "/getCustomerListByProductId/{id}")
|
|
- @ApiOperation("查询所属品类商家")
|
|
|
|
|
|
+ @ApiOperation("查询商家列表")
|
|
@ApiImplicitParams({
|
|
@ApiImplicitParams({
|
|
@ApiImplicitParam(name = "pageNum", value = "当前页码", dataType = "int", paramType = "query", required = false),
|
|
@ApiImplicitParam(name = "pageNum", value = "当前页码", dataType = "int", paramType = "query", required = false),
|
|
@ApiImplicitParam(name = "pageSize", value = "每页数据量", dataType = "int", paramType = "query", required = false),
|
|
@ApiImplicitParam(name = "pageSize", value = "每页数据量", dataType = "int", paramType = "query", required = false),
|
|
})
|
|
})
|
|
public ResponsePageInfo<ExhibitionCustomerInfoVo> getCustomerListByProductId(
|
|
public ResponsePageInfo<ExhibitionCustomerInfoVo> getCustomerListByProductId(
|
|
- @ApiParam(name = "id", value = "品类id", required = true)
|
|
|
|
|
|
+ @ApiParam(name = "id", value = "品类id (0:精选列表)", required = true)
|
|
@PathVariable("id") Long id
|
|
@PathVariable("id") Long id
|
|
) {
|
|
) {
|
|
startPage();
|
|
startPage();
|
|
@@ -66,22 +50,5 @@ public class AppletCustomerInfoController extends BaseController {
|
|
return toResponsePageInfo(list);
|
|
return toResponsePageInfo(list);
|
|
}
|
|
}
|
|
|
|
|
|
- /**
|
|
|
|
- * 查询精选商家列表 根据收藏数排行
|
|
|
|
- */
|
|
|
|
- @GetMapping(value = "/getCustomerListByCollectionCount")
|
|
|
|
- @ApiOperation("查询精选商家列表")
|
|
|
|
- @ApiImplicitParams({
|
|
|
|
- @ApiImplicitParam(name = "pageNum", value = "当前页码", dataType = "int", paramType = "query", required = false),
|
|
|
|
- @ApiImplicitParam(name = "pageSize", value = "每页数据量", dataType = "int", paramType = "query", required = false),
|
|
|
|
- })
|
|
|
|
- public ResponsePageInfo<ExhibitionCustomerInfoVo> getCustomerListByCollectionCount() {
|
|
|
|
- startPage();
|
|
|
|
- //获取当前用户
|
|
|
|
- UserInfo userInfo = SecurityUtils.getLoginUser().getStudent();
|
|
|
|
- List<ExhibitionCustomerInfoVo> list = customerInfoService.getCustomerListByCollectionCount(userInfo.getId());
|
|
|
|
- return toResponsePageInfo(list);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
|
|
|
|
}
|
|
}
|