this is 3.24 update
This commit is contained in:
parent
4a83d795e9
commit
5d11ef86d2
|
@ -257,29 +257,6 @@ public class OrderController {
|
|||
orderVO.setOrderItemList(orderItemsTempList);
|
||||
}
|
||||
|
||||
// TODO
|
||||
// for (OrderVO orderVO : orderVOS) {
|
||||
// boolean isGeneral = orderService.isGeneralGood(orderVO.getOrderType());
|
||||
// List<OrderItems> orderItemList = orderVO.getOrderItemList();
|
||||
// for (OrderItems orderItems : orderItemList) {
|
||||
// GoodSnapshot goodSnapshot = orderItems.getGoodSnapshot();
|
||||
// String goodImg = goodSnapshot.getGoodImg();
|
||||
// if (isGeneral) {
|
||||
// String[] goodImgArr = goodImg.split(";");
|
||||
// for (int i = 0; i < goodImgArr.length; i++) {
|
||||
// goodImgArr[i] = FileConstant.SERVER_HOST + goodImgArr[i];
|
||||
// }
|
||||
// String joinImg = String.join(";", goodImgArr);
|
||||
// goodSnapshot.setGoodImg(joinImg);
|
||||
// } else {
|
||||
// goodSnapshot.setGoodImg(FileConstant.SERVER_HOST + goodSnapshot.getGoodImg());
|
||||
// }
|
||||
// orderItems.setGoodSnapshot(goodSnapshot);
|
||||
// }
|
||||
// orderVO.setOrderItemList(orderItemList);
|
||||
// }
|
||||
|
||||
|
||||
Page<OrderVO> orderVOPage = new Page<>();
|
||||
orderVOPage.setRecords(orderVOS);
|
||||
orderVOPage.setTotal(page.getTotal());
|
||||
|
@ -333,28 +310,6 @@ public class OrderController {
|
|||
orderVO.setOrderItemList(orderItemsList);
|
||||
return orderVO;
|
||||
}).toList();
|
||||
|
||||
// TODO
|
||||
// for (OrderVO orderVO : orderVOS) {
|
||||
// boolean isGeneral = orderService.isGeneralGood(orderVO.getOrderType());
|
||||
// List<OrderItems> orderItemList = orderVO.getOrderItemList();
|
||||
// for (OrderItems orderItems : orderItemList) {
|
||||
// GoodSnapshot goodSnapshot = orderItems.getGoodSnapshot();
|
||||
// String goodImg = goodSnapshot.getGoodImg();
|
||||
// if (isGeneral) {
|
||||
// String[] goodImgArr = goodImg.split(";");
|
||||
// for (int i = 0; i < goodImgArr.length; i++) {
|
||||
// goodImgArr[i] = FileConstant.SERVER_HOST + goodImgArr[i];
|
||||
// }
|
||||
// String joinImg = String.join(";", goodImgArr);
|
||||
// goodSnapshot.setGoodImg(joinImg);
|
||||
// } else {
|
||||
// goodSnapshot.setGoodImg(FileConstant.SERVER_HOST + goodSnapshot.getGoodImg());
|
||||
// }
|
||||
// orderItems.setGoodSnapshot(goodSnapshot);
|
||||
// }
|
||||
// orderVO.setOrderItemList(orderItemList);
|
||||
// }
|
||||
return ResultUtils.success(orderVOS);
|
||||
}
|
||||
|
||||
|
@ -402,25 +357,6 @@ public class OrderController {
|
|||
BeanUtils.copyProperties(order, orderVO);
|
||||
List<OrderItems> orderItemsList = commonService.findByFieldEqTargetField("orderId", orderId, orderItemService);
|
||||
orderVO.setOrderItemList(orderItemsList);
|
||||
// TODO
|
||||
// boolean isGeneral = orderService.isGeneralGood(orderVO.getOrderType());
|
||||
// List<OrderItems> orderItemList = orderVO.getOrderItemList();
|
||||
// for (OrderItems orderItems : orderItemList) {
|
||||
// GoodSnapshot goodSnapshot = orderItems.getGoodSnapshot();
|
||||
// String goodImg = goodSnapshot.getGoodImg();
|
||||
// if (isGeneral) {
|
||||
// String[] goodImgArr = goodImg.split(";");
|
||||
// for (int i = 0; i < goodImgArr.length; i++) {
|
||||
// goodImgArr[i] = FileConstant.SERVER_HOST + goodImgArr[i];
|
||||
// }
|
||||
// String joinImg = String.join(";", goodImgArr);
|
||||
// goodSnapshot.setGoodImg(joinImg);
|
||||
// } else {
|
||||
// goodSnapshot.setGoodImg(FileConstant.SERVER_HOST + goodSnapshot.getGoodImg());
|
||||
// }
|
||||
// orderItems.setGoodSnapshot(goodSnapshot);
|
||||
// }
|
||||
// orderVO.setOrderItemList(orderItemList);
|
||||
|
||||
return ResultUtils.success(orderVO);
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@ public class TimeSplitterUtils {
|
|||
|
||||
public static List<Long> splitTime(long totalSeconds) {
|
||||
List<Long> timeIntervals = new ArrayList<>();
|
||||
long oneDayInSeconds = 86400; // 1天的秒数
|
||||
long oneDayInSeconds = 864000; // 10天的秒数
|
||||
|
||||
// 拆分完整的天数
|
||||
while (totalSeconds >= oneDayInSeconds) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user