| | |
| | | import com.vincent.rsf.server.manager.enums.LocStsType; |
| | | import com.vincent.rsf.server.manager.enums.TaskType; |
| | | import com.vincent.rsf.server.manager.service.*; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | |
| | | import javax.annotation.PostConstruct; |
| | | import javax.annotation.RegEx; |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | | |
| | | @Component |
| | | public class LocUtils { |
| | | |
| | | public static final Logger logger = LoggerFactory.getLogger(LocUtils.class); |
| | | |
| | | private static List<Integer> doubleLocs; |
| | | |
| | | private static Boolean isDoubleDeep; |
| | | |
| | | @Autowired |
| | | private SlaveProperties slavePropertie; |
| | | |
| | | @PostConstruct |
| | | public void init() { |
| | | doubleLocs = slavePropertie.getDoubleLocs(); |
| | | isDoubleDeep = slavePropertie.isDoubleDeep(); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 获取 浅库位对应的深库位号 |
| | |
| | | return LocNecessaryParametersDoubleExtension(curRow, crnNumber); //已完善 |
| | | } |
| | | |
| | | //经典双伸库位 |
| | | //经典双伸库位, 获取双深排 |
| | | public static int[] LocNecessaryParametersDoubleExtension( Integer curRow, Integer crnNumber) { |
| | | int[] necessaryParameters = new int[]{0, 0, 0, 0}; |
| | | |
| | |
| | | return dto.getLocType1().equals(Integer.parseInt(loc.getType())); |
| | | } |
| | | |
| | | public static String getCrnLoc() { |
| | | SlaveProperties bean = SpringUtils.getBean(SlaveProperties.class); |
| | | System.out.println(bean.getDoubleLocs()); |
| | | |
| | | return null; |
| | | } |
| | | |
| | | |
| | | public static String zerofill(String msg, Integer count) { |
| | | if (msg.length() == count) { |
| | | return msg; |