Sign in

wms / wms_ningbohuazhang · Files

Logo

GitLab

  • Back to group
  • Project
  • Activity
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • wms_ningbohuazhang
  • ..
  • domain
  • Data.java
  • 数字孪生接口默认值为0
    d4e58ce1
    周峰 authored
    2023-05-11 21:28:26 +0800  
    Browse Code »
Data.java 439 Bytes
Edit Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
package com.huaheng.api.wmsinfo2.domain;

import java.math.BigDecimal;

/**
 * 数据项
 */
public class Data {
    public boolean show = true;
    public BigDecimal value;
    public int x = 0;

    public Data(BigDecimal value) {
        this.value = value;
        if(value != null){
            value.setScale(2, BigDecimal.ROUND_HALF_UP);
        }else{
            this.value = BigDecimal.ZERO;
        }
    }
}