Browse Source

1.修复时间格式化的问题

2.修复梦天自提推送的日志
dist.1.3.0
pref_mail@163.com 6 months ago
parent
commit
8f5a3674ee
  1. 2
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistrilbutionBillLadingServiceImpl.java
  2. 6
      blade-service/logpm-factory/src/main/java/com/logpm/factory/mt/service/impl/MtOrderLogFailRetryServiceImpl.java

2
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistrilbutionBillLadingServiceImpl.java

@ -3294,7 +3294,7 @@ public class DistrilbutionBillLadingServiceImpl extends BaseServiceImpl<Distrilb
distributionBillLadingScan.setQuantity(1); distributionBillLadingScan.setQuantity(1);
distributionBillLadingScan.setBillLadingId( billLadingId); distributionBillLadingScan.setBillLadingId( billLadingId);
packageLockIds.add(distributionParcelListEntity.getId()); packageLockIds.add(distributionParcelListEntity.getId());
String signTime=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss:SSS").format(new Date()); String signTime=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.sss").format(new Date());
sendNodeWorkDataBroadcast(distributionParcelListEntity,billLadingId,signTime, myCurrentWarehouse); sendNodeWorkDataBroadcast(distributionParcelListEntity,billLadingId,signTime, myCurrentWarehouse);

6
blade-service/logpm-factory/src/main/java/com/logpm/factory/mt/service/impl/MtOrderLogFailRetryServiceImpl.java

@ -92,7 +92,7 @@ public class MtOrderLogFailRetryServiceImpl implements MtOrderLogFailRetryServic
Integer PUSH_STATUS_EXPIRE = 3; Integer PUSH_STATUS_EXPIRE = 3;
JSONObject jsonObject = JSONObject.parseObject(result); JSONObject jsonObject = JSONObject.parseObject(result);
if (jsonObject == null || jsonObject.isEmpty() || 0 != jsonObject.getInteger("code")) { if (jsonObject == null || jsonObject.isEmpty() || 0 != jsonObject.getInteger("Result")) {
mtOrderLogEntity.setPushStatus( mtOrderLogEntity.setPushStatus(
isExpire(mtOrderLogEntity.getCreateTime()) ? PUSH_STATUS_EXPIRE : PUSH_STATUS_FAIL isExpire(mtOrderLogEntity.getCreateTime()) ? PUSH_STATUS_EXPIRE : PUSH_STATUS_FAIL
); );
@ -101,10 +101,10 @@ public class MtOrderLogFailRetryServiceImpl implements MtOrderLogFailRetryServic
} }
// 由于要存储每次的响应结果,所以每次请求后都立即保存 // 由于要存储每次的响应结果,所以每次请求后都立即保存
mtOrderLogService.save(mtOrderLogEntity); mtOrderLogService.updateById(mtOrderLogEntity);
} catch (Exception e) { } catch (Exception e) {
log.error("梦天重推 error: {}", e.getMessage()); log.error("梦天重推 error", e);
} }
} }

Loading…
Cancel
Save