From a0879b60391616bb077b53815114af74ec7a77cd Mon Sep 17 00:00:00 2001 From: hjg <hjg@123.com> Date: 星期五, 05 七月 2024 09:38:04 +0800 Subject: [PATCH] 更新pda接口 --- JavaSource/com/mandi/webservice/service/impl/InvoiceService.java | 24 ++++++++++++++++++++++-- 1 files changed, 22 insertions(+), 2 deletions(-) diff --git a/JavaSource/com/mandi/webservice/service/impl/InvoiceService.java b/JavaSource/com/mandi/webservice/service/impl/InvoiceService.java index d3bede5..c6c5203 100644 --- a/JavaSource/com/mandi/webservice/service/impl/InvoiceService.java +++ b/JavaSource/com/mandi/webservice/service/impl/InvoiceService.java @@ -276,18 +276,22 @@ // Fileoperation.AppendContentToFile(Fileoperation.gettestFileName(), "鍙傛暟yktkh::::"+RequestParam.getString(r, "yktkh")); String cardID=""; + boolean needRecord=true; Map<String, Object> mm=new HashMap<String, Object>(); try { JsonParser jp=new JsonParser(); JsonObject jo=jp.parse(jsonParam).getAsJsonObject(); cardID=JSONobj.getstring(jo, "yktkh"); + if(jo.has("needRecord")) { + needRecord = JSONobj.getbool(jo, "needRecord"); + } } catch (Exception e) { mm.put("respcode", 999); mm.put("respmsg", "鏁版嵁瑙f瀽鍑洪敊锛�"); String str=Jacksonmethod.tojson(mm, false); return str; } - ObjectResult<Map<String, Object>> prs=fdser.getcInfo(cardID); + ObjectResult<Map<String, Object>> prs=fdser.getcInfo(cardID,needRecord); if(prs.getCode() == 1) { log.info("鍗″彿:" + cardID + "---- 閿欒锛�"+ prs.getErrmsg()); } @@ -398,7 +402,7 @@ FdXSTDService.refreshMsLedLock = false; } } - }else if ("08".equals(sdepartNo)) { // 涔夌憺 + } else if ("08".equals(sdepartNo)) { // 涔夌憺 synchronized (FdXSTDService.refreshYrLedLock) { if (FdXSTDService.refreshYrLedLock) { // 绯荤粺绻佸繖 return null; @@ -415,6 +419,22 @@ } } } + } else if ("04".equals(sdepartNo)) { // 绉戞妧 + synchronized (FdXSTDService.refreshYrLedLock) { + if (FdXSTDService.refreshKjLedLock) { // 绯荤粺绻佸繖 + return null; + } + } + try { + synchronized (FdXSTDService.refreshKjLedLock) { + FdXSTDService.refreshKjLedLock = true; + } + fdser.sendToKjLed(null); + } finally { + synchronized (FdXSTDService.refreshKjLedLock) { + FdXSTDService.refreshKjLedLock = false; + } + } } return null; } -- Gitblit v1.9.3