|  |  |  | 
|---|
|  |  |  | if (currentCodeData == null || CodeNodeType.NONE.val.equals(currentCodeData)) { | 
|---|
|  |  |  | continue; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | Code currCode = codeService.selectByData(currentCodeData); | 
|---|
|  |  |  | Code currCode = codeService.getCacheByData(currentCodeData); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 检查右边相邻条码 | 
|---|
|  |  |  | if (j + 1 < cols) { | 
|---|
|  |  |  | String rightCodeData = codeMatrix[i][j + 1]; | 
|---|
|  |  |  | if (!Cools.isEmpty(rightCodeData) && !CodeNodeType.NONE.val.equals(rightCodeData)) { | 
|---|
|  |  |  | Code rightCode = codeService.selectByData(rightCodeData); | 
|---|
|  |  |  | Code rightCode = codeService.getCacheByData(rightCodeData); | 
|---|
|  |  |  | list.add(currCode.getData() + "-" + rightCode.getData()); | 
|---|
|  |  |  | routeService.createRouteByCode(currCode, rightCode, 0, null); | 
|---|
|  |  |  | codeGapService.createCodeGapByCode(currCode, rightCode, null); | 
|---|
|  |  |  | 
|---|
|  |  |  | if (i + 1 < rows) { | 
|---|
|  |  |  | String bottomCodeData = codeMatrix[i + 1][j]; | 
|---|
|  |  |  | if (!Cools.isEmpty(bottomCodeData) && !CodeNodeType.NONE.val.equals(bottomCodeData)) { | 
|---|
|  |  |  | Code bottomCode = codeService.selectByData(bottomCodeData); | 
|---|
|  |  |  | Code bottomCode = codeService.getCacheByData(bottomCodeData); | 
|---|
|  |  |  | list.add(currCode.getData() + "-" + bottomCode.getData()); | 
|---|
|  |  |  | routeService.createRouteByCode(currCode, bottomCode, 0, null); | 
|---|
|  |  |  | codeGapService.createCodeGapByCode(currCode, bottomCode, null); | 
|---|