#
luxiaotao1123
2021-06-29 cc2b7c021293f25748711617ef182b2d15192dbd
src/main/java/zy/cloud/wms/common/service/erp/ErpService.java
@@ -37,14 +37,14 @@
    /**
     * 单据上报
     */
    public Boolean uploadBill(List<BillDto> dtos, Integer docId, String docNumber){
    public ErpR uploadBill(List<BillDto> dtos, Integer docId, String docNumber){
        try {
            if (Cools.isEmpty(dtos)) {
                return false;
                return new ErpR(false, null);
            }
            DocType docType = docTypeService.selectById(docId);
            if (Cools.isEmpty(docType)) {
                return false;
                return new ErpR(false, null);
            }
            UploadBill uploadBill = new UploadBill();
@@ -95,14 +95,14 @@
                log.warn(response);
                Result result = JSON.parseObject(response, Result.class);
                if (result.getCode() != 1) {
                    return false;
                    return new ErpR(false, result.getMsg());
                }
            }
        } catch (Exception e) {
            e.printStackTrace();
            return false;
            return new ErpR(false, e.getMessage());
        }
        return Boolean.TRUE;
        return new ErpR(true, null);
    }