| | |
| | | import com.vincent.rsf.framework.common.Cools; |
| | | import com.vincent.rsf.framework.common.SpringUtils; |
| | | import com.vincent.rsf.framework.exception.CoolException; |
| | | import com.vincent.rsf.server.api.controller.params.TaskInParam; |
| | | import com.vincent.rsf.server.api.entity.dto.InTaskMsgDto; |
| | | import com.vincent.rsf.server.api.entity.dto.LocTypeDto; |
| | | import com.vincent.rsf.server.manager.entity.DeviceBind; |
| | | import com.vincent.rsf.server.manager.entity.Loc; |
| | | import com.vincent.rsf.server.manager.service.DeviceBindService; |
| | | import com.vincent.rsf.server.manager.service.LocService; |
| | | import com.vincent.rsf.server.manager.entity.*; |
| | | 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.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | |
| | | import javax.annotation.RegEx; |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | | |
| | | public class LocUtils { |
| | |
| | | public static String getShallowLoc(SlaveProperties slaveProperties, String deepLoc) { |
| | | LocService locService = SpringUtils.getBean(LocService.class); |
| | | Loc depLoc = locService.getOne(new LambdaQueryWrapper<Loc>().eq(Loc::getCode, deepLoc)); |
| | | int row = depLoc.getRow()-1; |
| | | int row; |
| | | if (depLoc.getRow() != 1) { |
| | | row = depLoc.getRow()-1; |
| | | } else { |
| | | row = depLoc.getRow(); |
| | | } |
| | | boolean contains = slaveProperties.getDoubleLocs().contains(row); |
| | | Loc shallowLoc = null; |
| | | if (!contains) { |
| | |
| | | |
| | | //库位排号分配 |
| | | public static int[] LocNecessaryParameters(DeviceBind deviceBind, Integer curRow, Integer crnNumber) { |
| | | |
| | | return LocNecessaryParametersDoubleExtension(curRow, crnNumber); //已完善 |
| | | |
| | | |
| | | } |
| | | |
| | | //经典双伸库位 |