|  |  | 
 |  |  | import com.zy.common.model.MesCombParam; | 
 |  |  | import com.zy.common.service.CommonService; | 
 |  |  | import com.zy.common.utils.HttpHandler; | 
 |  |  | import com.zy.system.entity.User; | 
 |  |  | import com.zy.system.service.UserService; | 
 |  |  | import lombok.extern.slf4j.Slf4j; | 
 |  |  | import org.springframework.beans.factory.annotation.Autowired; | 
 |  |  | import org.springframework.beans.factory.annotation.Value; | 
 |  |  | 
 |  |  |     private TestMastService testMastService; | 
 |  |  |     @Autowired | 
 |  |  |     private WorkService workService; | 
 |  |  |     @Autowired | 
 |  |  |     private UserService userService;//只查询  无修改操作 | 
 |  |  |  | 
 |  |  |     @Value("${mes.url}") | 
 |  |  |     private String mesUrl; | 
 |  |  | 
 |  |  |     public void startUpTestPACK(TestMast testMast) { | 
 |  |  |         if(Cools.isEmpty(testMast.getLocNo())){ | 
 |  |  |             throw new CoolException("库位号为空"); | 
 |  |  |         }else if(Cools.isEmpty(testMast.getChannel())){ | 
 |  |  |         }else if(Cools.isEmpty(testMast.getUserId())){ | 
 |  |  |             throw new CoolException("用户编码为空"); | 
 |  |  |         }else if(Cools.isEmpty(testMast.getBarcode())){ | 
 |  |  |             throw new CoolException("PACK码为空"); | 
 |  |  |         } | 
 |  |  |         User user = userService.selectOne(new EntityWrapper<User>().eq("username", testMast.getChannel().toString())); | 
 |  |  |         if (!Cools.isEmpty(user)){ | 
 |  |  |             testMast.setUserId(user.getMobile()); | 
 |  |  |         }else { | 
 |  |  |             throw new CoolException("未查到用户编号:"+testMast.getChannel()+"所属用户码"); | 
 |  |  |         } | 
 |  |  |         LocMast locMast = locMastService.selectOne(new EntityWrapper<LocMast>() | 
 |  |  |                 .eq("loc_no", testMast.getLocNo()) |