Commit cc2fae4e by zhiwj

精度丢失修复

parent 15158367
......@@ -1595,7 +1595,7 @@ public class StoreApiServiceImpl implements StoreApiService {
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("HH:mm");
List<StoreBusinessTimeDTO> businessTimeList = storeDTO.getBusinessTimeList();
if (CollectionUtils.isNotEmpty(businessTimeList)) {
businessTimeList.stream().filter(e -> e != null).map(e -> {
businessTimeList.stream().filter(e -> e != null && StringUtils.isNotBlank(e.getWeekday())).map(e -> {
String businessHours = simpleDateFormat.format(e.getOpenTime()) + "-" + simpleDateFormat.format(e.getCloseTime());
return e.getWeekdayShow() + businessHours;
}).forEach(businessTime::append);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment