Authored by qinchao

fix:快递100推送过来的数据,如果当前订单已经被签收,则当前推送过来的记录都是已签收,原来的for循环逻辑只能存一条签收记录,会出现记录丢失的情况

... ... @@ -176,7 +176,9 @@ private static final Logger LOGGER = LoggerUtils.getMqConsumerLogger();
createTime = DateUtil.getCurrentTimeSecond();
}
List<ExpressInfo> expressInfos = expressInfoMapper.selectByOrderCodeAndStatesAndUidAndExpressType(uid, orderCode, Lists.newArrayList(ExpressInfoConstant.EXPRESS_STATUS_SIGN), expressType);
//快递100推送过来的数据,如果当前订单已经被签收,则所有推送过来的记录都是已签收,原来的for循环逻辑只能存一条签收记录,
//因此修改为以下方式,不管如何都直接存下来。
List<ExpressInfo> expressInfos = null;//expressInfoMapper.selectByOrderCodeAndStatesAndUidAndExpressType(uid, orderCode, Lists.newArrayList(ExpressInfoConstant.EXPRESS_STATUS_SIGN), expressType);
processExpressInfo(expressInfos, state, logisticsType, orderCode, waybillCode, acceptAddress, acceptRemark, createTime, uid, expressType);
}
... ...