Showing
1 changed file
with
2 additions
and
4 deletions
| 1 | package com.tianting.infoloop.service.impl; | 1 | package com.tianting.infoloop.service.impl; |
| 2 | 2 | ||
| 3 | +import cn.hutool.core.date.LocalDateTimeUtil; | ||
| 3 | import cn.hutool.core.util.IdUtil; | 4 | import cn.hutool.core.util.IdUtil; |
| 4 | import cn.hutool.extra.spring.SpringUtil; | 5 | import cn.hutool.extra.spring.SpringUtil; |
| 5 | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; | 6 | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| ... | @@ -325,10 +326,7 @@ public class OrderDbServiceImpl extends ServiceImpl<OrderDbMapper, OrderDb> impl | ... | @@ -325,10 +326,7 @@ public class OrderDbServiceImpl extends ServiceImpl<OrderDbMapper, OrderDb> impl |
| 325 | .build()); | 326 | .build()); |
| 326 | orderDb.setCustomerNoticeJson(notice); | 327 | orderDb.setCustomerNoticeJson(notice); |
| 327 | } | 328 | } |
| 328 | - LocalDateTime mealTime = Instant.ofEpochMilli(creation.getMealTime()) | 329 | + orderDb.setMealTime(LocalDateTimeUtil.of(creation.getMealTime())); |
| 329 | - .atZone(ZoneOffset.ofHours(8)) | ||
| 330 | - .toLocalDateTime(); | ||
| 331 | - orderDb.setMealTime(mealTime); | ||
| 332 | orderDb.setCreatedBy(batchCreateOrdersRequest.getCreatedBy()); | 330 | orderDb.setCreatedBy(batchCreateOrdersRequest.getCreatedBy()); |
| 333 | orderDb.setCreationSource(batchCreateOrdersRequest.getCreationSourceValue()); | 331 | orderDb.setCreationSource(batchCreateOrdersRequest.getCreationSourceValue()); |
| 334 | orderDb.setUpdatedBy(batchCreateOrdersRequest.getCreatedBy()); | 332 | orderDb.setUpdatedBy(batchCreateOrdersRequest.getCreatedBy()); | ... | ... |
-
Please register or login to post a comment