|
|
@ -7,6 +7,7 @@ import com.hfkj.common.exception.ErrorCode; |
|
|
|
import com.hfkj.common.exception.ErrorHelp; |
|
|
|
import com.hfkj.common.exception.ErrorHelp; |
|
|
|
import com.hfkj.common.exception.SysCode; |
|
|
|
import com.hfkj.common.exception.SysCode; |
|
|
|
import com.hfkj.common.security.UserCenter; |
|
|
|
import com.hfkj.common.security.UserCenter; |
|
|
|
|
|
|
|
import com.hfkj.common.utils.PageUtil; |
|
|
|
import com.hfkj.common.utils.ResponseMsgUtil; |
|
|
|
import com.hfkj.common.utils.ResponseMsgUtil; |
|
|
|
import com.hfkj.entity.BsOrder; |
|
|
|
import com.hfkj.entity.BsOrder; |
|
|
|
import com.hfkj.model.ResponseData; |
|
|
|
import com.hfkj.model.ResponseData; |
|
|
@ -29,6 +30,7 @@ import org.springframework.stereotype.Controller; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
|
|
|
|
|
|
|
|
import javax.annotation.Resource; |
|
|
|
import javax.annotation.Resource; |
|
|
|
|
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.HashMap; |
|
|
|
import java.util.HashMap; |
|
|
|
import java.util.List; |
|
|
|
import java.util.List; |
|
|
|
import java.util.Map; |
|
|
|
import java.util.Map; |
|
|
@ -143,7 +145,14 @@ public class OrderController { |
|
|
|
param.put("orderStatus", orderStatus); |
|
|
|
param.put("orderStatus", orderStatus); |
|
|
|
|
|
|
|
|
|
|
|
PageHelper.startPage(pageNum, pageSize); |
|
|
|
PageHelper.startPage(pageNum, pageSize); |
|
|
|
return ResponseMsgUtil.success(new PageInfo<>(orderService.getUserOrderList(param))); |
|
|
|
PageInfo<BsOrder> pageInfo = new PageInfo<>(orderService.getOrderList(param)); |
|
|
|
|
|
|
|
PageInfo<OrderModel> objectPageInfo = PageUtil.PageInfo2PageInfoVo(pageInfo); |
|
|
|
|
|
|
|
List<OrderModel> orderModelList = new ArrayList<>(); |
|
|
|
|
|
|
|
for (BsOrder order : pageInfo.getList()) { |
|
|
|
|
|
|
|
orderModelList.add(orderService.getDetail(order.getOrderNo())); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
objectPageInfo.setList(orderModelList); |
|
|
|
|
|
|
|
return ResponseMsgUtil.success(objectPageInfo); |
|
|
|
|
|
|
|
|
|
|
|
} catch (Exception e) { |
|
|
|
} catch (Exception e) { |
|
|
|
log.error("error!",e); |
|
|
|
log.error("error!",e); |
|
|
|