Commit 8f4fd394 authored by 刘林's avatar 刘林

fix(jg):车用气瓶驳回撤回添加日志记录

parent 067762c9
......@@ -517,14 +517,37 @@ public class JgVehicleInformationServiceImpl extends BaseService<JgVehicleInform
* 删除 redis校验重复引用设备的数据
*/
private void delRepeatUseEquipData(JgVehicleInformation notice) {
log.info("status = {}", notice.getStatus());
log.info("【车用气瓶-撤回校验开始】applyNo={}, status={}, useUnitCreditCode={}",
notice.getApplyNo(), notice.getStatus(), notice.getUseUnitCreditCode());
if (NOT_FLOWING_STATE.contains(notice.getStatus())) {
LambdaQueryWrapper<JgVehicleInformationEq> queryWrapper = new LambdaQueryWrapper<>();
queryWrapper.eq(JgVehicleInformationEq::getVehicleId, notice.getSequenceNbr());
List<JgVehicleInformationEq> noticeEqList = jgVehicleInformationEqService.list(queryWrapper);
noticeEqList.forEach(noticeEq -> EquipUsedCheckStrategyContext.getUsedStrategy(DEFINITION_KEY)
.delDataForCheckEquipRepeatUsed(Collections.singletonList(noticeEq.getEquId()), notice.getUseUnitCreditCode()));
log.info("【车用气瓶-查询设备】applyNo={}, 查询到设备数量={}",
notice.getApplyNo(),
noticeEqList == null ? 0 : noticeEqList.size());
if (noticeEqList != null && !noticeEqList.isEmpty()) {
noticeEqList.forEach(noticeEq -> {
log.info("【车用气瓶-删除重复使用校验】applyNo={}, equId={}, useUnitCreditCode={}",
notice.getApplyNo(),
noticeEq.getEquId(),
notice.getUseUnitCreditCode());
EquipUsedCheckStrategyContext
.getUsedStrategy(DEFINITION_KEY)
.delDataForCheckEquipRepeatUsed(
Collections.singletonList(noticeEq.getEquId()),
notice.getUseUnitCreditCode()
);
});
} else {
log.info("【车用气瓶-删除重复使用校验】applyNo={} 未查询到设备信息,无需处理",
notice.getApplyNo());
}
} else {
log.info("【车用气瓶-驳回校验跳过】applyNo={}, status={} 不在撤回处理状态范围",
notice.getApplyNo(), notice.getStatus());
}
log.info("【车用气瓶-撤回校验结束】applyNo={}", notice.getApplyNo());
}
private List<String> getEquList(JgVehicleInformation notice) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment