kimi
2020-04-22 f9a4612e1f3ed276f5eb057fd7d69d54e71aec41
src/main/java/com/highdatas/mdm/util/pool/MqEntity.java
@@ -144,13 +144,14 @@
    public void send2Mq() {
        String s = JSONObject.toJSONString(this);
        log.info(s);
        MqResult mqResult = DbUtils.mqClient.asyncProduce(this);
        MqResult mqResult = DbUtils.mqClient.syncProduce(this);
        SysDispenseLogs logByMqEntity = DbUtils.dispenseLogsService.getLogByMqEntity(this);
        if (logByMqEntity == null) {
            return;
        }
        String code = mqResult.getCode();
        logByMqEntity.setPageNo(pageNo.get()).setMsgCode(code);
        logByMqEntity.setPages(pages.get()).setTotal(totalSize.get()).setPageSize(pageSize.get());
        if (!code.equalsIgnoreCase(Constant.SUCCESSCODE)) {
            logByMqEntity.setStatus("false");
        }