订单列表返回时间

This commit is contained in:
2024-10-12 14:22:31 +08:00
parent b8345065b9
commit 6abcd3cdf8

View File

@@ -534,8 +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())));
map.put("createAt", DateUtil.formatDateTime(DateUtil.date(orderInfo.getCreatedAt())));
map.put("paidTime", orderInfo.getPaidTime() == null ? null : DateUtil.formatDateTime(DateUtil.date(orderInfo.getPaidTime())));
return map;
}
}