|  |  |  | @ -1,6 +1,7 @@ | 
			
		
	
		
			
				
					|  |  |  |  | package com.glxp.api.service.collect; | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | import cn.hutool.core.thread.ThreadUtil; | 
			
		
	
		
			
				
					|  |  |  |  | import cn.hutool.core.util.StrUtil; | 
			
		
	
		
			
				
					|  |  |  |  | import cn.hutool.json.JSONUtil; | 
			
		
	
		
			
				
					|  |  |  |  | import com.alibaba.fastjson.JSONObject; | 
			
		
	
		
			
				
					|  |  |  |  | import com.alibaba.fastjson.TypeReference; | 
			
		
	
	
		
			
				
					|  |  |  | @ -8,6 +9,7 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; | 
			
		
	
		
			
				
					|  |  |  |  | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; | 
			
		
	
		
			
				
					|  |  |  |  | import com.github.pagehelper.PageHelper; | 
			
		
	
		
			
				
					|  |  |  |  | import com.glxp.api.common.res.BaseResponse; | 
			
		
	
		
			
				
					|  |  |  |  | import com.glxp.api.common.util.ResultVOUtils; | 
			
		
	
		
			
				
					|  |  |  |  | import com.glxp.api.dao.collect.IoCollectLedGroupMapper; | 
			
		
	
		
			
				
					|  |  |  |  | import com.glxp.api.entity.basic.SysWorkplaceQueue; | 
			
		
	
		
			
				
					|  |  |  |  | import com.glxp.api.entity.collect.IoCollectLedGroup; | 
			
		
	
	
		
			
				
					|  |  |  | @ -15,10 +17,12 @@ import com.glxp.api.entity.collect.IoCollectOrder; | 
			
		
	
		
			
				
					|  |  |  |  | import com.glxp.api.entity.collect.IoCollectOrderBiz; | 
			
		
	
		
			
				
					|  |  |  |  | import com.glxp.api.entity.collect.SysOrderLed; | 
			
		
	
		
			
				
					|  |  |  |  | import com.glxp.api.entity.thrsys.CodeRel; | 
			
		
	
		
			
				
					|  |  |  |  | import com.glxp.api.entity.thrsys.ThrManufacturerEntity; | 
			
		
	
		
			
				
					|  |  |  |  | import com.glxp.api.enums.led.LedColorStatusEnum; | 
			
		
	
		
			
				
					|  |  |  |  | import com.glxp.api.exception.JsonException; | 
			
		
	
		
			
				
					|  |  |  |  | import com.glxp.api.req.collect.CollectLedGroupRequest; | 
			
		
	
		
			
				
					|  |  |  |  | import com.glxp.api.req.collect.LedGroupRequest; | 
			
		
	
		
			
				
					|  |  |  |  | import com.glxp.api.res.PageSimpleResponse; | 
			
		
	
		
			
				
					|  |  |  |  | import com.glxp.api.res.collect.IoCollectLedGroupResponse; | 
			
		
	
		
			
				
					|  |  |  |  | import com.glxp.api.service.basic.SysWorkplaceQueueService; | 
			
		
	
		
			
				
					|  |  |  |  | import com.glxp.api.util.IntUtil; | 
			
		
	
	
		
			
				
					|  |  |  | @ -73,6 +77,7 @@ public class IoCollectLedGroupService extends ServiceImpl<IoCollectLedGroupMappe | 
			
		
	
		
			
				
					|  |  |  |  |     IoCollectOrderBizService collectOrderBizService; | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     public BaseResponse<String> openLed(List<IoCollectOrderBiz> collectOrderBizs) { | 
			
		
	
		
			
				
					|  |  |  |  |         log.error("获取灯组=============="); | 
			
		
	
		
			
				
					|  |  |  |  |         LedGroupRequest ledGroupRequest = new LedGroupRequest(); | 
			
		
	
		
			
				
					|  |  |  |  |         for (IoCollectOrderBiz collectOrderBiz : collectOrderBizs) { | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
	
		
			
				
					|  |  |  | @ -113,11 +118,17 @@ public class IoCollectLedGroupService extends ServiceImpl<IoCollectLedGroupMappe | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |         String json = JSONUtil.toJsonStr(ledGroupRequest); | 
			
		
	
		
			
				
					|  |  |  |  |         log.error("json:{}" + json); | 
			
		
	
		
			
				
					|  |  |  |  |         try { | 
			
		
	
		
			
				
					|  |  |  |  |             String result = okHttpCli.doPostJson("http://192.168.0.166:9099/wms/associate/lighttagsled", json); | 
			
		
	
		
			
				
					|  |  |  |  |             BaseResponse<String> response = | 
			
		
	
		
			
				
					|  |  |  |  |                     JSONObject.parseObject(result, new TypeReference<BaseResponse<String>>() { | 
			
		
	
		
			
				
					|  |  |  |  |                     }); | 
			
		
	
		
			
				
					|  |  |  |  |             return response; | 
			
		
	
		
			
				
					|  |  |  |  |         } catch (Exception e) { | 
			
		
	
		
			
				
					|  |  |  |  |             log.error("灯组获取异常", e); | 
			
		
	
		
			
				
					|  |  |  |  |             return ResultVOUtils.error(500, "连接灯组异常!"); | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
	
		
			
				
					|  |  |  | 
 |