月球大数据地理空间分析展示平台-【后端】-月球后台服务
13693261870
2023-11-28 4393d934ba300601a91084763616ea80379b550e
src/main/java/com/moon/server/helper/WebHelper.java
@@ -34,6 +34,15 @@
    private final static Log log = LogFactory.getLog(WebHelper.class);
    /**
     * 保留小数位
     */
    public static double round(double val, double size) {
        double power = Math.pow(10.0, size);
        return Math.round(val * power) / power;
    }
    /**
     * 获取GUID
     */
    public static String getGuid() {
@@ -360,7 +369,8 @@
     */
    public static void exec(String cmd) {
        try {
            Runtime.getRuntime().exec(cmd);
            Process process = Runtime.getRuntime().exec(cmd);
            process.waitFor();
        } catch (Exception ex) {
            log.error(ex.getMessage(), ex);
        }