|
@@ -1,6 +1,7 @@
|
|
|
package com.pj.tb_order;
|
|
|
|
|
|
import java.math.BigDecimal;
|
|
|
+import java.text.SimpleDateFormat;
|
|
|
import java.util.*;
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
@@ -68,7 +69,7 @@ import javax.annotation.Resource;
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
@Slf4j
|
|
|
public class TbOrderService extends ServiceImpl<TbOrderMapper, TbOrder> implements IService<TbOrder> {
|
|
|
-
|
|
|
+ static SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss sss");
|
|
|
/**
|
|
|
* 底层 Mapper 对象
|
|
|
*/
|
|
@@ -924,7 +925,9 @@ public class TbOrderService extends ServiceImpl<TbOrderMapper, TbOrder> implemen
|
|
|
//todo: 收到航通007报文即收到海关结关信息,转发结关信息给到银行
|
|
|
PaymentDto paymentDto = new PaymentDto();
|
|
|
paymentDto.setTradeNo(tbOrder.getTradeNo());
|
|
|
- paymentDto.setDeclTime(htTradeSettlement.getDeclTime());
|
|
|
+
|
|
|
+ String date = tbOrder.getFinishTime() != null ? sdf.format(tbOrder.getFinishTime()) : sdf.format(new Date());
|
|
|
+ paymentDto.setDeclTime(date);
|
|
|
paymentDto.setFieldCode(htTradeSettlement.getFieldCode());
|
|
|
paymentDto.setChannelNo(tbOrder.getChannelNo());
|
|
|
paymentDto.setTrans(tbOrder.getPlatSeqNo());
|
|
@@ -968,7 +971,9 @@ public class TbOrderService extends ServiceImpl<TbOrderMapper, TbOrder> implemen
|
|
|
|
|
|
//todo: 收到航通007报文即收到海关结关信息,转发结关信息给到银行
|
|
|
paymentDto.setTradeNo(tbOrder.getTradeNo());
|
|
|
- paymentDto.setDeclTime(htTradeSettlement.getDeclTime());
|
|
|
+
|
|
|
+ String date = tbOrder.getFinishTime() != null ? sdf.format(tbOrder.getFinishTime()) : sdf.format(new Date());
|
|
|
+ paymentDto.setDeclTime(date);
|
|
|
|
|
|
paymentDto.setFieldCode(htTradeSettlement.getFieldCode());
|
|
|
paymentDto.setChannelNo(tbOrder.getChannelNo());
|
|
@@ -1025,7 +1030,7 @@ public class TbOrderService extends ServiceImpl<TbOrderMapper, TbOrder> implemen
|
|
|
|
|
|
//todo: 收到航通007报文即收到海关结关信息,转发结关信息给到银行
|
|
|
paymentDto.setTradeNo(tbOrder.getTradeNo());
|
|
|
- paymentDto.setDeclTime(htPassCardDTO.getCheckTime());
|
|
|
+ paymentDto.setDeclTime(sdf.format(new Date()));
|
|
|
paymentDto.setFieldCode(htPassCardDTO.getAreaNo());
|
|
|
paymentDto.setChannelNo(htPassCardDTO.getChannelNo());
|
|
|
paymentDto.setTrans(tbOrder.getPlatSeqNo());
|