|
|
@@ -1,5 +1,7 @@
|
|
|
package com.uas.platform.b2c.trade.seek.controller;
|
|
|
|
|
|
+import com.uas.platform.b2c.common.account.model.User;
|
|
|
+import com.uas.platform.b2c.core.support.SystemSession;
|
|
|
import com.uas.platform.b2c.core.support.log.UsageBufferedLogger;
|
|
|
import com.uas.platform.b2c.trade.seek.model.SeekPurchase;
|
|
|
import com.uas.platform.b2c.trade.seek.model.SeekQualityBuyer;
|
|
|
@@ -11,6 +13,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.data.domain.Page;
|
|
|
import org.springframework.http.HttpStatus;
|
|
|
import org.springframework.http.ResponseEntity;
|
|
|
+import org.springframework.util.StringUtils;
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
@@ -44,7 +47,10 @@ public class SeekQualityBuyerController {
|
|
|
*/
|
|
|
@RequestMapping(value = "/getBuyerPageInfo", method = RequestMethod.GET)
|
|
|
public Page<SeekQualityBuyer> getBuyerPageInfo(PageParams params) {
|
|
|
- logger.log("求购", "分页获取优质采购商列表,参数为" + params);
|
|
|
+ User user = SystemSession.getUser();
|
|
|
+ if (!StringUtils.isEmpty(user)) {
|
|
|
+ logger.log("求购", "分页获取优质采购商列表");
|
|
|
+ }
|
|
|
PageInfo info = new PageInfo(params);
|
|
|
return seekQualityBuyerService.getBuyerPageInfo(info);
|
|
|
}
|