订单列表返回时间

This commit is contained in:
2024-10-12 14:20:28 +08:00
parent 8556016e56
commit b8345065b9

View File

@@ -534,6 +534,8 @@ public class OrderService {
map.put("detailList", dataList);
map.put("orderInfo", orderInfo);
map.putAll(BeanUtil.beanToMap(orderVo, false, false));
map.put("createAt", DateUtil.formatDate(DateUtil.date(orderInfo.getCreatedAt())));
map.put("paidTime", orderInfo.getPaidTime() == null ? null : DateUtil.formatDate(DateUtil.date(orderInfo.getPaidTime())));
return map;
}
}