| | |
| | | } |
| | | |
| | | public void setBarcode(String barcode) { |
| | | String methodName = Thread.currentThread().getStackTrace()[1].getMethodName(); |
| | | |
| | | this.barcode.delete(0, this.barcode.length()); |
| | | this.barcode.append(barcode); |
| | | if(!Cools.isEmpty(barcode)) { |
| | | News.info("{}号条码器,检索数据:{}", slave.getId(), this.barcode); |
| | | // News.info(methodName + ":{}号条码器,检索数据:{}", slave.getId(), this.barcode); |
| | | JSONObject jsonObject = new JSONObject(); |
| | | jsonObject.put("time", DateUtils.convert(new Date(), DateUtils.yyyyMMddHHmmss_F)); |
| | | jsonObject.put("barcode", barcode); |