|
@@ -13,6 +13,7 @@ import com.diagbot.entity.OrderDetailStatus;
|
|
|
import com.diagbot.entity.OrderDetails;
|
|
|
import com.diagbot.entity.ProductOrder;
|
|
|
import com.diagbot.entity.ProductOrderIndex;
|
|
|
+import com.diagbot.entity.wrapper.OrderDetailsWapper;
|
|
|
import com.diagbot.entity.wrapper.ProductOrderWrapper;
|
|
|
import com.diagbot.enums.AuditStatusEnum;
|
|
|
import com.diagbot.enums.VisibleIdTypeEnum;
|
|
@@ -26,6 +27,7 @@ import com.diagbot.util.ExportBeanExcelUtil;
|
|
|
import com.diagbot.util.GsonUtil;
|
|
|
import com.diagbot.util.UserUtils;
|
|
|
import com.diagbot.vo.AddOrderVO;
|
|
|
+import com.diagbot.vo.OrderDetialsVO;
|
|
|
import com.diagbot.vo.ProductOrderExportVO;
|
|
|
import com.diagbot.vo.ProductOrderVO;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -197,10 +199,16 @@ public class ProductOrderFacade extends ProductOrderServiceImpl {
|
|
|
}
|
|
|
List<ProductOrderWrapper> list =productOrderFacade.selectAllProductOrder(page,productOrderIndex).getRecords();
|
|
|
List<Long> list1 =new ArrayList<>();
|
|
|
+ List<String> orderNoList =new ArrayList<>();
|
|
|
for (ProductOrderWrapper productOrderWrapper:list) {
|
|
|
Long longs = productOrderWrapper.getUserId();
|
|
|
+ String orderNo =productOrderWrapper.getNum();
|
|
|
list1.add(longs);
|
|
|
+ orderNoList.add(orderNo);
|
|
|
}
|
|
|
+ OrderDetialsVO orderDetialsVO =new OrderDetialsVO();
|
|
|
+ orderDetialsVO.setOrderNum(orderNoList);
|
|
|
+ List<OrderDetailsWapper> orderDetilList = orderDetailsFacade.getAllOrderDetials(orderDetialsVO);
|
|
|
RespDTO<Map<Long, UserOrgDTO>> mapRespDTO = userServiceClient.getUserAndOrg(list1);
|
|
|
if(mapRespDTO == null || !"0".equals(mapRespDTO.code) ) {
|
|
|
throw new CommonException(CommonErrorCode.SERVER_IS_ERROR,
|
|
@@ -216,6 +224,11 @@ public class ProductOrderFacade extends ProductOrderServiceImpl {
|
|
|
bean.setOrgId(uo.getOrgId());
|
|
|
bean.setOrgName(uo.getOrgName());
|
|
|
}
|
|
|
+ for(int i = 0; i<orderDetilList.size();i++){
|
|
|
+ if(orderDetilList.get(i).getOrderNum().equals(bean.getNum())){
|
|
|
+ bean.setOrderDetial(orderDetilList);
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
return RespDTO.onSuc(page);
|
|
|
}
|