优化
This commit is contained in:
@@ -225,11 +225,11 @@ public class RawUatWcQueryServiceImpl implements RawUatWcQueryService {
|
|||||||
String inspection_item_id = jsonItem.getString("inspection_item_id");
|
String inspection_item_id = jsonItem.getString("inspection_item_id");
|
||||||
double value = jsonItem.getDoubleValue("value");
|
double value = jsonItem.getDoubleValue("value");
|
||||||
if (value > 0 && value < 1){
|
if (value > 0 && value < 1){
|
||||||
jsonResuft.put(inspection_item_id,"0"+NumberUtil.decimalFormat("#.00", value));
|
jsonResuft.put(inspection_item_id,"0"+NumberUtil.decimalFormat("#.0000", value));
|
||||||
} else if (value == 0){
|
} else if (value == 0){
|
||||||
jsonResuft.put(inspection_item_id,"0.00");
|
jsonResuft.put(inspection_item_id,"0.0000");
|
||||||
} else {
|
} else {
|
||||||
jsonResuft.put(inspection_item_id,NumberUtil.decimalFormat("#.00", value));
|
jsonResuft.put(inspection_item_id,NumberUtil.decimalFormat("#.0000", value));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// 根据物料批次查找理化单对应的项点
|
// 根据物料批次查找理化单对应的项点
|
||||||
@@ -239,11 +239,11 @@ public class RawUatWcQueryServiceImpl implements RawUatWcQueryService {
|
|||||||
String inspection_item_id = jsonItem.getString("inspection_item_id");
|
String inspection_item_id = jsonItem.getString("inspection_item_id");
|
||||||
double value = jsonItem.getDoubleValue("value");
|
double value = jsonItem.getDoubleValue("value");
|
||||||
if (value > 0 && value < 1) {
|
if (value > 0 && value < 1) {
|
||||||
jsonResuft.put(inspection_item_id,"0"+NumberUtil.decimalFormat("#.00", value));
|
jsonResuft.put(inspection_item_id,"0"+NumberUtil.decimalFormat("#.0000", value));
|
||||||
} else if (value == 0){
|
} else if (value == 0){
|
||||||
jsonResuft.put(inspection_item_id,"0.00");
|
jsonResuft.put(inspection_item_id,"0.0000");
|
||||||
} else {
|
} else {
|
||||||
jsonResuft.put(inspection_item_id,NumberUtil.decimalFormat("#.00", value));
|
jsonResuft.put(inspection_item_id,NumberUtil.decimalFormat("#.0000", value));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
array.add(jsonResuft);
|
array.add(jsonResuft);
|
||||||
|
|||||||
Reference in New Issue
Block a user