| | |
| | | if (!systemSign){ |
| | | if (new LicenseVerify().verify()){ |
| | | SystemProperties.WCS_RUNNING_STATUS.set(Boolean.TRUE); |
| | | return R.ok().add(Cools.add("status", SystemProperties.WCS_RUNNING_STATUS.get())); |
| | | return R.ok(); |
| | | } |
| | | } |
| | | } catch (Exception e){ |
| | | log.error("许可证验证失败!!异常:{}",e.getMessage()); |
| | | return R.error(); |
| | | } |
| | | SystemProperties.WCS_RUNNING_STATUS.set(Boolean.FALSE); |
| | | return R.ok().add(Cools.add("status", SystemProperties.WCS_RUNNING_STATUS.get())); |
| | | return R.ok(); |
| | | } |
| | | |
| | | /****************************************************************/ |
| | |
| | | if (null != devpThread) { |
| | | StaProtocol staProtocol = devpThread.getStation().get(siteId); |
| | | if (staProtocol != null) { |
| | | BasDevp basDevp = basDevpService.selectById(siteId); |
| | | BasDevp basDevp = basDevpService.getById(siteId); |
| | | if (basDevp == null) { |
| | | return R.error("数据库维护异常"); |
| | | } |
| | |
| | | vo.setWorkNo(staProtocol.getWorkNo()); // 工作号 |
| | | |
| | | if (staProtocol.getWorkNo() > 0) { |
| | | WrkMast wrkMast = wrkMastService.selectById(staProtocol.getWorkNo()); |
| | | WrkMast wrkMast = wrkMastService.getById(staProtocol.getWorkNo()); |
| | | if (wrkMast != null) { |
| | | vo.setWrkSts(wrkMast.getWrkSts$()); // 工作状态 |
| | | vo.setIoType(wrkMast.getIoType$()); // 入出库类型 |