fix:快递100推送过来的数据,如果当前订单已经被签收,则当前推送过来的记录都是已签收,原来的for循环逻辑只能存一条签收记录,会出现记录丢失的情况
Showing
1 changed file
with
3 additions
and
1 deletions
@@ -176,7 +176,9 @@ private static final Logger LOGGER = LoggerUtils.getMqConsumerLogger(); | @@ -176,7 +176,9 @@ private static final Logger LOGGER = LoggerUtils.getMqConsumerLogger(); | ||
176 | createTime = DateUtil.getCurrentTimeSecond(); | 176 | createTime = DateUtil.getCurrentTimeSecond(); |
177 | } | 177 | } |
178 | 178 | ||
179 | - List<ExpressInfo> expressInfos = expressInfoMapper.selectByOrderCodeAndStatesAndUidAndExpressType(uid, orderCode, Lists.newArrayList(ExpressInfoConstant.EXPRESS_STATUS_SIGN), expressType); | 179 | + //快递100推送过来的数据,如果当前订单已经被签收,则所有推送过来的记录都是已签收,原来的for循环逻辑只能存一条签收记录, |
180 | + //因此修改为以下方式,不管如何都直接存下来。 | ||
181 | + List<ExpressInfo> expressInfos = null;//expressInfoMapper.selectByOrderCodeAndStatesAndUidAndExpressType(uid, orderCode, Lists.newArrayList(ExpressInfoConstant.EXPRESS_STATUS_SIGN), expressType); | ||
180 | processExpressInfo(expressInfos, state, logisticsType, orderCode, waybillCode, acceptAddress, acceptRemark, createTime, uid, expressType); | 182 | processExpressInfo(expressInfos, state, logisticsType, orderCode, waybillCode, acceptAddress, acceptRemark, createTime, uid, expressType); |
181 | } | 183 | } |
182 | 184 |
-
Please register or login to post a comment