|
@@ -28,6 +28,7 @@ import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.Arrays;
|
|
|
+import java.util.Collection;
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
|
|
|
@@ -139,7 +140,7 @@ public class OrderDetailsFacade extends OrderDetailsServiceImpl {
|
|
|
orderDetailsIndex.setIndex((orderDetialsVO.getCurrent().longValue()-1)*orderDetialsVO.getSize().longValue());
|
|
|
List<OrderDetailsWapper> list =this.seleAllOrderDetials(orderDetailsIndex);
|
|
|
List<Long> list1 =new ArrayList<>();
|
|
|
- for (OrderDetails orderDetails:list) {
|
|
|
+ for (OrderDetailsWapper orderDetails:list) {
|
|
|
Long longs = orderDetails.getUserId();
|
|
|
list1.add(longs);
|
|
|
}
|
|
@@ -154,6 +155,13 @@ public class OrderDetailsFacade extends OrderDetailsServiceImpl {
|
|
|
if(uo != null) {
|
|
|
BeanUtil.copyProperties(uo,bean);
|
|
|
}
|
|
|
+ if(bean.getAuditStatus()==AuditStatusEnum.Adopt.getKey()){
|
|
|
+ Collection<OpenedProducts> openedProductTime =openedProductsFacade.listByIds(list1);
|
|
|
+ for (OpenedProducts openedProducts:openedProductTime) {
|
|
|
+ bean.setStartTime(openedProducts.getStartTime());
|
|
|
+ bean.setEndTime(openedProducts.getEndTime());
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
return list;
|
|
|
}
|