|
@@ -1,6 +1,7 @@
|
|
|
package com.trade.client.trade.salesorder.controller;
|
|
|
|
|
|
import com.github.pagehelper.PageInfo;
|
|
|
+import com.trade.client.security.utils.UserUtils;
|
|
|
import com.trade.client.trade.salesorder.service.SalesOrderCService;
|
|
|
import com.trade.service.trade.salesorder.dto.SalesOrderDTO;
|
|
|
import com.trade.service.trade.salesorder.dto.SalesOrderDeliverDTO;
|
|
@@ -8,10 +9,8 @@ import com.trade.common.core.domain.ResponseResult;
|
|
|
import com.trade.service.trade.salesorder.vo.SalesOrderDtlVO;
|
|
|
import com.trade.service.trade.salesorder.vo.SalesOrderSearch;
|
|
|
import com.trade.service.trade.salesorder.vo.SalesOrderVO;
|
|
|
-import org.springframework.http.HttpStatus;
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.ResponseStatus;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
@@ -37,6 +36,7 @@ public class SalesOrderController {
|
|
|
*/
|
|
|
@RequestMapping("/list")
|
|
|
public ResponseResult<PageInfo<SalesOrderVO>> list(SalesOrderSearch search) {
|
|
|
+ search.setCustomerUserId(UserUtils.getCustomerUserId());
|
|
|
return ResponseResult.success(salesOrderCService.queryListBySearch(search));
|
|
|
}
|
|
|
|