czt
8 天以前 1652aa57e12625926886c9450c7fbbfab6f2b2b5
src/main/java/com/fzzy/push/gd2023/GD2023ApiRemoteService2023.java
@@ -30,6 +30,8 @@
import java.lang.reflect.Field;
import java.math.BigDecimal;
import java.math.RoundingMode;
import java.text.DecimalFormat;
import java.util.*;
/**
@@ -127,7 +129,9 @@
            responseDto.setBizId(bizId);
            apiLog.setStatus(responseDto.getCode() == 200 ? 0 : responseDto.getCode());
            apiLog.setResult(responseDto.getMsg());
            apiLogRep.save(apiLog);
            if (responseDto.getCode() != 200) {
                apiLogRep.save(apiLog);
            }
            ResponseDto resd = new ResponseDto();
            resd.setSuccess(responseDto.getCode() == 200 ? 0 : responseDto.getCode());
            resd.setMsg(responseDto.getMsg());
@@ -625,6 +629,8 @@
                String tyhwbm = apiCommonService.getTyhwbm(apiData.getHwdm());
                apiData.setTyhwbm(tyhwbm);
            }
            BigDecimal bigDecimal = BigDecimal.valueOf(apiData.getQzzrshde());
            apiData.setQzzrshde(bigDecimal.setScale(3, RoundingMode.UP).doubleValue());
            apiData.setZhgxsj(DateUtils.addSeconds(new Date(), -10));
            return JSON.toJSONString(apiData);
        }
@@ -878,8 +884,8 @@
                }
            }
            api1403.setRotationInQty(Double.valueOf(String.format("%.3f",lrsl)));
            api1403.setRotationOutQty(Double.valueOf(String.format("%.3f",lcsl)));
            api1403.setRotationInQty(Double.valueOf(String.format("%.3f", lrsl)));
            api1403.setRotationOutQty(Double.valueOf(String.format("%.3f", lcsl)));
            api1403.setDtls(dtls);
            //先上传文件,获取文件id
            GD2023ResponseDto responseDto = GD2023HttpClientUtil.postUploadData(url, authToken, api1403.getWjdz());