叉车任务指定机器人作业
							parent
							
								
									7a131b0ac3
								
							
						
					
					
						commit
						8ac180f9e8
					
				| 
						 | 
				
			
			@ -312,9 +312,18 @@ public class KMReServiceImpl implements KMReService {
 | 
			
		|||
     */
 | 
			
		||||
    @Override
 | 
			
		||||
    public String sendAgvTaskCcJson(AgvTask agvTasks) {
 | 
			
		||||
 | 
			
		||||
        JSONObject jsonObject = new JSONObject(new LinkedHashMap<>());
 | 
			
		||||
        String requestId = TimeNumberUtils.getCcCode();
 | 
			
		||||
        Map<String, Object> objMap = new LinkedHashMap<>();
 | 
			
		||||
        //默认大件机器人编号
 | 
			
		||||
        String robotId = "1007";
 | 
			
		||||
        Point point = pointService.queryPoint(agvTasks.getEndSlotCode(), null, null, null);
 | 
			
		||||
        if (point != null && point.getArea() != null) {
 | 
			
		||||
            if(AreaNameDic.XJQ.equals(point.getArea().getName()) || AreaNameDic.XJFBQ.equals(point.getArea().getName())){
 | 
			
		||||
                robotId="1006";
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
        objMap.put("orgId", agvTasks.getId());//库存组织 ID
 | 
			
		||||
        objMap.put("requestId", requestId);//请求 id
 | 
			
		||||
        objMap.put("missionCode", agvTasks.getId());//任务编号
 | 
			
		||||
| 
						 | 
				
			
			@ -322,6 +331,7 @@ public class KMReServiceImpl implements KMReService {
 | 
			
		|||
        objMap.put("viewBoardType", "");//
 | 
			
		||||
        objMap.put("containerCode", agvTasks.getStockCode());//
 | 
			
		||||
        objMap.put("robotType", "FORKLIFT");//机器人功能类型
 | 
			
		||||
        objMap.put("robotId", robotId);//机器人编号
 | 
			
		||||
        objMap.put("priority", "1");//数值越小,优先级越高,默认是 1
 | 
			
		||||
        JSONArray missionDataArray = new JSONArray();
 | 
			
		||||
        JSONObject missionDataObj = new JSONObject(new LinkedHashMap<>());
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue