|
|
@@ -14,6 +14,7 @@ import java.util.stream.Collectors;
|
|
|
|
|
|
import cn.hutool.core.collection.CollectionUtil;
|
|
|
import cn.hutool.core.date.DateTime;
|
|
|
+import cn.hutool.core.date.DateUtil;
|
|
|
import cn.hutool.core.util.IdUtil;
|
|
|
import cn.hutool.core.util.NumberUtil;
|
|
|
import cn.hutool.core.util.ObjectUtil;
|
|
|
@@ -559,7 +560,7 @@ public class LiveOrderServiceImpl implements ILiveOrderService {
|
|
|
|
|
|
order.setStatus(2);
|
|
|
order.setIsPay("1");
|
|
|
- order.setPayTime(LocalDateTime.now());
|
|
|
+ order.setPayTime(new Date());
|
|
|
baseMapper.updateLiveOrder(order);
|
|
|
return "SUCCESS";
|
|
|
}catch (Exception e){
|
|
|
@@ -776,7 +777,7 @@ public class LiveOrderServiceImpl implements ILiveOrderService {
|
|
|
}
|
|
|
Map<Long, FsStoreDelivers> byOrderIdWithTypeBatch = fsStoreDeliversMapper
|
|
|
.findByOrderIdWithTypeBatch(collect, 1);
|
|
|
- Map<Long, LiveOrderPayment> paymentMap = liveOrderPaymentMapper.selectAllPayments();
|
|
|
+ Map<String, LiveOrderPayment> paymentMap = liveOrderPaymentMapper.selectAllPayments();
|
|
|
|
|
|
for (LiveOrder order : liveOrders) {
|
|
|
FsStoreDelivers delivers = byOrderIdWithTypeBatch.get(order.getOrderId());
|
|
|
@@ -795,7 +796,7 @@ public class LiveOrderServiceImpl implements ILiveOrderService {
|
|
|
}
|
|
|
order.setPayPrice(order.getTotalPrice());
|
|
|
|
|
|
- LiveOrderPayment liveOrderPayment = paymentMap.get(order.getOrderId());
|
|
|
+ LiveOrderPayment liveOrderPayment = paymentMap.get(String.valueOf(order.getOrderId()));
|
|
|
if(ObjectUtil.isNotNull(liveOrderPayment)){
|
|
|
order.setBankTrxId(liveOrderPayment.getBankTransactionId());
|
|
|
}
|
|
|
@@ -1206,7 +1207,7 @@ public class LiveOrderServiceImpl implements ILiveOrderService {
|
|
|
payment.setPayment(order.getPayMoney().doubleValue());
|
|
|
if(order.getPayTime()!=null){
|
|
|
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
|
- String timeString = order.getPayTime().format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"));
|
|
|
+ String timeString = DateUtil.format(order.getPayTime(),"yyyy-MM-dd HH:mm:ss");
|
|
|
Date date = sdf.parse(timeString); // 时间格式转为时间戳
|
|
|
long timeLong = date.getTime();
|
|
|
payment.setPaytime(new Timestamp(timeLong));
|
|
|
@@ -1359,7 +1360,8 @@ public class LiveOrderServiceImpl implements ILiveOrderService {
|
|
|
|
|
|
if(order.getPayTime()!=null){
|
|
|
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
|
- String format = order.getPayTime().format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"));
|
|
|
+ String format = DateUtil.format(order.getPayTime(),"yyyy-MM-dd HH:mm:ss");
|
|
|
+
|
|
|
remarkDTO.setPayTime(format);
|
|
|
}
|
|
|
erpOrder.setSeller_memo(erpOrder.getSeller_memo()+JSONUtil.toJsonStr(remarkDTO));
|
|
|
@@ -2416,7 +2418,7 @@ public class LiveOrderServiceImpl implements ILiveOrderService {
|
|
|
userService.incPayCount(Long.valueOf(liveOrder.getUserId()));
|
|
|
|
|
|
liveOrder.setStatus(2);
|
|
|
- liveOrder.setPayTime(LocalDateTime.now());
|
|
|
+ liveOrder.setPayTime(new Date());
|
|
|
liveUserLotteryRecordMapper.updateOrderStatusByOrderId(liveOrder.getOrderId(), 2);
|
|
|
baseMapper.updateLiveOrder(liveOrder);
|
|
|
return R.ok("支付成功");
|