|  |  | 
 |  |  | import com.zy.asrs.utils.Utils; | 
 |  |  | import com.zy.asrs.utils.VersionUtils; | 
 |  |  | import com.zy.common.model.LocTypeDto; | 
 |  |  | import com.zy.common.model.Shelves; | 
 |  |  | import com.zy.common.model.StartupDto; | 
 |  |  | import com.zy.common.properties.SlaveProperties; | 
 |  |  | import lombok.extern.slf4j.Slf4j; | 
 |  |  | 
 |  |  |         if (null == locMast) { | 
 |  |  |             switch (whsType) { | 
 |  |  |                 case 1: | 
 |  |  |                     if (curRow == 1) { | 
 |  |  |                         curRow = 7; | 
 |  |  |                     } else if (curRow == 7) { | 
 |  |  |                         curRow = 1; | 
 |  |  |                     } | 
 |  |  |                     crnNo = 1; | 
 |  |  |                     break; | 
 |  |  |                 case 2: | 
 |  |  |                     if (curRow == 8) { | 
 |  |  |                         curRow = 14; | 
 |  |  |                     } else if (curRow == 14) { | 
 |  |  |                         curRow = 8; | 
 |  |  |                     } | 
 |  |  |                     crnNo = 2; | 
 |  |  |                     break; | 
 |  |  |                 case 3: | 
 |  |  |                     if (curRow == 15) { | 
 |  |  |                         curRow = 21; | 
 |  |  |                     } else if (curRow == 21) { | 
 |  |  |                         curRow = 15; | 
 |  |  |                     } | 
 |  |  |                     crnNo = 3; | 
 |  |  |                     break; | 
 |  |  |                 default: | 
 |  |  |                     throw new CoolException("检索库位失败,请联系管理员"); | 
 |  |  |             } | 
 |  |  |             Shelves shelves = new Shelves(rowCount, crn_qty); | 
 |  |  |             for (int i = 0; i < shelves.group; i ++) { | 
 |  |  |                 curRow = shelves.start(curRow); | 
 |  |  |                 if (curRow < 0) { | 
 |  |  |                     throw new CoolException("检索库位失败,请联系管理员"); | 
 |  |  |                 } | 
 |  |  |                 Integer crnNo1 = shelves.get(curRow) + 1; | 
 |  |  |                 if (whsType != 1) { | 
 |  |  |                     crnNo1 = whsType; | 
 |  |  |                 } | 
 |  |  |                 if (basCrnpService.checkSiteError(crnNo1, true)) { | 
 |  |  |                     crnNo = crnNo1; | 
 |  |  |                     break; | 
 |  |  |                 } | 
 |  |  |             } | 
 |  |  |         } | 
 |  |  |  |