hjg
2024-07-05 a0879b60391616bb077b53815114af74ec7a77cd
更新pda接口
已修改3个文件
14 ■■■■ 文件已修改
JavaSource/com/mandi/webservice/service/IFdXSTDService.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
JavaSource/com/mandi/webservice/service/impl/FdXSTDService.java 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
JavaSource/com/mandi/webservice/service/impl/InvoiceService.java 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
JavaSource/com/mandi/webservice/service/IFdXSTDService.java
@@ -68,7 +68,7 @@
    /**
     * 根据卡号获取信息
     */
    public ObjectResult<Map<String, Object>> getcInfo(String cardID);
    public ObjectResult<Map<String, Object>> getcInfo(String cardID,boolean needRecord);
    
    /**
     * 获取销售提单信息
JavaSource/com/mandi/webservice/service/impl/FdXSTDService.java
@@ -1081,7 +1081,7 @@
    }
    @Override
    public ObjectResult<Map<String, Object>> getcInfo(String cardID) {
    public ObjectResult<Map<String, Object>> getcInfo(String cardID,boolean needRecord) {
        ObjectResult<Map<String, Object>> orr=new ObjectResult<Map<String,Object>>();
        Map<String, Object> rem=new HashMap<String, Object>();
        Map<String, Object> mp=this.yktper.getcardinuse(cardID);
@@ -1197,7 +1197,9 @@
            }else {
                mr.put("firstzxhtime", new Date());
            }
            this.bsper.updateTaskTime(mr);
            if(needRecord) { // 为true 则更新第一次扫卡时间,否则不记录
                this.bsper.updateTaskTime(mr);
            }
        }else {
            orr.setCode(1);
            orr.setErrmsg("未找到装车记录");
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", "数据解析出错!");
            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());
        }