|
@@ -5,14 +5,12 @@ import com.miaxis.common.core.controller.BaseController;
|
|
import com.miaxis.common.core.domain.entity.UserInfo;
|
|
import com.miaxis.common.core.domain.entity.UserInfo;
|
|
import com.miaxis.common.core.page.ResponsePageInfo;
|
|
import com.miaxis.common.core.page.ResponsePageInfo;
|
|
import com.miaxis.common.utils.SecurityUtils;
|
|
import com.miaxis.common.utils.SecurityUtils;
|
|
|
|
+import com.miaxis.customer.dto.AppletCustomerInfoDto;
|
|
import com.miaxis.customer.service.ICustomerInfoService;
|
|
import com.miaxis.customer.service.ICustomerInfoService;
|
|
import com.miaxis.customer.vo.ExhibitionCustomerInfoVo;
|
|
import com.miaxis.customer.vo.ExhibitionCustomerInfoVo;
|
|
import io.swagger.annotations.*;
|
|
import io.swagger.annotations.*;
|
|
import lombok.RequiredArgsConstructor;
|
|
import lombok.RequiredArgsConstructor;
|
|
-import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
-import org.springframework.web.bind.annotation.PathVariable;
|
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
|
|
@@ -40,14 +38,11 @@ public class AppletCustomerInfoController extends BaseController {
|
|
@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(
|
|
|
|
- @ApiParam(name = "id", value = "品类id (0:精选列表)", required = true)
|
|
|
|
- @PathVariable("id") Long id
|
|
|
|
- ) {
|
|
|
|
|
|
+ public ResponsePageInfo<ExhibitionCustomerInfoVo> getCustomerListByProductId(@ModelAttribute AppletCustomerInfoDto appletCustomerInfoDto) {
|
|
startPage();
|
|
startPage();
|
|
//获取当前用户
|
|
//获取当前用户
|
|
UserInfo userInfo = SecurityUtils.getLoginUser().getStudent();
|
|
UserInfo userInfo = SecurityUtils.getLoginUser().getStudent();
|
|
- List<ExhibitionCustomerInfoVo> list = customerInfoService.getCustomerListByProductId(id,userInfo.getId());
|
|
|
|
|
|
+ List<ExhibitionCustomerInfoVo> list = customerInfoService.getCustomerListByProductId(appletCustomerInfoDto,userInfo.getId());
|
|
return toResponsePageInfo(list);
|
|
return toResponsePageInfo(list);
|
|
}
|
|
}
|
|
|
|
|