|  |  |  | 
|---|
|  |  |  | if (whsType != 4) { | 
|---|
|  |  |  | int divides = (int) Arith.divides(1, curRow - 1, 16); | 
|---|
|  |  |  | curRow = (int) Arith.remainder(curRow, 16); | 
|---|
|  |  |  | if (curRow == 0) { | 
|---|
|  |  |  | curRow = 16; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | for (int i = 0; i < shelves.group; i ++) { | 
|---|
|  |  |  | curRow = shelves.start(curRow); | 
|---|
|  |  |  | if (curRow < 0) { | 
|---|
|  |  |  | 
|---|
|  |  |  | crnNo1 = crnNo1 + divides*4; | 
|---|
|  |  |  | if (basCrnpService.checkSiteError(crnNo1, true)) { | 
|---|
|  |  |  | crnNo = crnNo1; | 
|---|
|  |  |  | curRow = curRow + divides*16; | 
|---|
|  |  |  | break; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | //            case 223: | 
|---|
|  |  |  | case 227: | 
|---|
|  |  |  | return 3; | 
|---|
|  |  |  | case 305: | 
|---|
|  |  |  | case 303: | 
|---|
|  |  |  | case 301: | 
|---|
|  |  |  | return 4; | 
|---|
|  |  |  | default: | 
|---|
|  |  |  | throw new CoolException("根据入库站获取库位排号分配失败,入库站:" + sourceStaNo); | 
|---|
|  |  |  | } | 
|---|