|  |  | 
 |  |  | import com.zy.asrs.entity.LocMast; | 
 |  |  | import com.zy.asrs.entity.RowLastno; | 
 |  |  | import com.zy.asrs.service.RowLastnoService; | 
 |  |  | import com.zy.common.CodeBuilder; | 
 |  |  | import com.zy.common.model.LocDetlDto; | 
 |  |  | import com.zy.common.properties.SlaveProperties; | 
 |  |  | import com.zy.common.service.CommonService; | 
 |  |  | import com.zy.system.service.UserService; | 
 |  |  |  | 
 |  |  |  | 
 |  |  | import java.text.DecimalFormat; | 
 |  |  | import java.util.ArrayList; | 
 |  |  | import java.util.Arrays; | 
 |  |  | import java.util.Collections; | 
 |  |  | import java.util.List; | 
 |  |  |  | 
 |  |  | /** | 
 |  |  | 
 |  |  |  | 
 |  |  |         return necessaryParameters; | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     //四向库(牛眼\光泰) | 
 |  |  |     public static int[] LocNecessaryParametersDoubleExtension6(RowLastno rowLastno, Integer curRow, Integer crnNumber) { | 
 |  |  |         int[] necessaryParameters = new int[]{0, 0, 0, 0}; | 
 |  |  | 
 |  |  |         necessaryParameters[0] = crnNumber; // 轮询次数 | 
 |  |  |         curRow = curRow - offset; | 
 |  |  |         //满板正常入库 | 
 |  |  |         switch (curRow){ | 
 |  |  |         switch (curRow) { | 
 |  |  |             case 1: | 
 |  |  |                 necessaryParameters[1] = 4;    //curRow   最深库位排 | 
 |  |  |                 necessaryParameters[2] = sCrnNo;     //crnNo     堆垛机号 | 
 |  |  | 
 |  |  |         Integer sCrnNo = rowLastno.getsCrnNo();//起始堆垛机号 | 
 |  |  |         necessaryParameters[0] = crnNumber; // 轮询次数 | 
 |  |  |         //满板正常入库 | 
 |  |  |         if (curRow.equals(rowLastno.geteRow())){ | 
 |  |  |         if (curRow.equals(rowLastno.geteRow())) { | 
 |  |  |             necessaryParameters[1] = sRow;    //curRow   最深库位排 | 
 |  |  |             necessaryParameters[2] = sCrnNo;     //crnNo     堆垛机号 | 
 |  |  |             necessaryParameters[3] = sRow;    //nearRow  最浅库位排 | 
 |  |  | 
 |  |  |     // 外侧方向的货位  优先入库方向 ===>> 反之 | 
 |  |  |     public static List<String> getGroupOutLocCrn(Integer curRow, Integer nearRow, String locNo, boolean pakin) { | 
 |  |  |         List<String> result = new ArrayList<>(); | 
 |  |  |         if (pakin){ | 
 |  |  |             for (int row = curRow;row>=nearRow;row--){ | 
 |  |  |         if (pakin) { | 
 |  |  |             for (int row = curRow; row >= nearRow; row--) { | 
 |  |  |                 result.add(zerofill(String.valueOf(row), 2) + locNo.substring(2)); | 
 |  |  |             } | 
 |  |  |         }else { | 
 |  |  |             for (int row = curRow;row<=nearRow;row++){ | 
 |  |  |         } else { | 
 |  |  |             for (int row = curRow; row <= nearRow; row++) { | 
 |  |  |                 result.add(zerofill(String.valueOf(row), 2) + locNo.substring(2)); | 
 |  |  |             } | 
 |  |  |         } |