mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-12 21:02:08 +08:00
webcad拆单板材库长宽可空处理
This commit is contained in:
+12
-2
@@ -446,8 +446,8 @@ public class WebCadOrderImportAsyncFactory {
|
||||
.texture(materialReqVO.getTexture())
|
||||
.color(materialReqVO.getColor())
|
||||
.colorBlack(EMPTY_STRING)
|
||||
.width(BigDecimal.valueOf(materialReqVO.getWidth()))
|
||||
.height(BigDecimal.valueOf(materialReqVO.getHeight()))
|
||||
.width(BigDecimal.valueOf(getZeroDouble(materialReqVO.getWidth())))
|
||||
.height(BigDecimal.valueOf(getZeroDouble(materialReqVO.getHeight())))
|
||||
.thickness(BigDecimal.valueOf(materialReqVO.getThickness()))
|
||||
.spec(materialReqVO.getSpec())
|
||||
.brand(materialReqVO.getBrand())
|
||||
@@ -1689,6 +1689,16 @@ public class WebCadOrderImportAsyncFactory {
|
||||
return StringUtils.defaultIfEmpty(value, EMPTY_STRING);
|
||||
}
|
||||
|
||||
/**
|
||||
* value为空返回0.0
|
||||
*
|
||||
* @param value
|
||||
* @return
|
||||
*/
|
||||
private double getZeroDouble(Double value) {
|
||||
return ObjectUtil.defaultIfNull(value, 0.0);
|
||||
}
|
||||
|
||||
/**
|
||||
* value为空返回false
|
||||
*
|
||||
|
||||
+2
-2
@@ -382,8 +382,8 @@ public class WebCadOrderImportFactory {
|
||||
.texture(materialReqVO.getTexture())
|
||||
.color(materialReqVO.getColor())
|
||||
.colorBlack(EMPTY_STRING)
|
||||
.width(BigDecimal.valueOf(materialReqVO.getWidth()))
|
||||
.height(BigDecimal.valueOf(materialReqVO.getHeight()))
|
||||
.width(BigDecimal.valueOf(getZeroDouble(materialReqVO.getWidth())))
|
||||
.height(BigDecimal.valueOf(getZeroDouble(materialReqVO.getHeight())))
|
||||
.thickness(BigDecimal.valueOf(materialReqVO.getThickness()))
|
||||
.spec(materialReqVO.getSpec())
|
||||
.brand(materialReqVO.getBrand())
|
||||
|
||||
Reference in New Issue
Block a user