Commit 2a61e0d0 by songyinghui

feat: 数据类型

parent c18196a5
...@@ -145,7 +145,7 @@ public class MaterialDataAdaptor { ...@@ -145,7 +145,7 @@ public class MaterialDataAdaptor {
return null; return null;
} }
JSONObject jsonObject = jsonObjects.get(0); JSONObject jsonObject = jsonObjects.get(0);
int dayAvgUseMatlNum = jsonObject.getIntValue("dayAvgUseMatlNum"); BigDecimal dayAvgUseMatlNum = jsonObject.getBigDecimal("dayAvgUseMatlNum");
BigDecimal convSalesAmt = Optional.ofNullable(jsonObject.getBigDecimal("convSalesAmt")).orElse(BigDecimal.ZERO); BigDecimal convSalesAmt = Optional.ofNullable(jsonObject.getBigDecimal("convSalesAmt")).orElse(BigDecimal.ZERO);
String amountUnit = ""; String amountUnit = "";
if (convSalesAmt.compareTo(new BigDecimal(10000)) >= 0) { if (convSalesAmt.compareTo(new BigDecimal(10000)) >= 0) {
......
...@@ -20,7 +20,7 @@ public class MaterialAreaUsedDataVO implements Serializable { ...@@ -20,7 +20,7 @@ public class MaterialAreaUsedDataVO implements Serializable {
/** /**
* 日均使用素材导购数 * 日均使用素材导购数
*/ */
private Integer dayAvgUseMatlNum; private BigDecimal dayAvgUseMatlNum;
/** /**
* | 日均使用素材导购数环比 | * | 日均使用素材导购数环比 |
......
...@@ -20,7 +20,7 @@ public class MaterialStoreUsedDataVO implements Serializable { ...@@ -20,7 +20,7 @@ public class MaterialStoreUsedDataVO implements Serializable {
/** /**
* 日均使用素材导购数 * 日均使用素材导购数
*/ */
private Integer dayAvgUseMatlNum; private BigDecimal dayAvgUseMatlNum;
/** /**
* 日均使用导购数环比 * 日均使用导购数环比
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment