扫码的时候如果没查到码关联关系数据去调用阿里接口进行插入

dev_unify
qiuyt 8 months ago
parent a970e840be
commit b1b91af660

@ -375,7 +375,7 @@ public class RelCodeBatchService extends ServiceImpl<RelCodeBatchMapper, RelCode
if (udiProductEntity == null) if (udiProductEntity == null)
return; return;
List<RelCodeBatch> navList = this.list(new LambdaQueryWrapper<RelCodeBatch>() List<RelCodeBatch> navList = this.list(new LambdaQueryWrapper<RelCodeBatch>()
.eq(RelCodeBatch::getParentCode, parentCode)); .eq(RelCodeBatch::getCurCode, parentCode));
// codeTempEntity.getSupId() // codeTempEntity.getSupId()
//todo if(navList)是空的 1.查供应商key2根据parentCode查阿里接口3根据返回结果再次查询 //todo if(navList)是空的 1.查供应商key2根据parentCode查阿里接口3根据返回结果再次查询
if(navList == null || navList.size() == 0 ){ if(navList == null || navList.size() == 0 ){
@ -383,7 +383,7 @@ public class RelCodeBatchService extends ServiceImpl<RelCodeBatchMapper, RelCode
if(baseResponse.getCode() == 20000){ if(baseResponse.getCode() == 20000){
// 插入成功就重新查询一下 // 插入成功就重新查询一下
navList = this.list(new LambdaQueryWrapper<RelCodeBatch>() navList = this.list(new LambdaQueryWrapper<RelCodeBatch>()
.eq(RelCodeBatch::getParentCode, parentCode)); .eq(RelCodeBatch::getCurCode, parentCode));
}else { }else {
log.error(baseResponse.getMessage()); log.error(baseResponse.getMessage());
} }

Loading…
Cancel
Save