优化
This commit is contained in:
@@ -892,7 +892,10 @@ public class InAndOutRetrunServiceImpl implements InAndOutReturnService {
|
||||
item.appendChild(ftaxtypeflag);
|
||||
|
||||
Element nassistnum = doc.createElement("nassistnum");
|
||||
nassistnum.setTextContent(jo.getString("real_qty"));
|
||||
double real_qty2 = jo.getDouble("real_qty");
|
||||
//四舍五入
|
||||
String real_str = NumberUtil.round(real_qty2,2).doubleValue()+"";
|
||||
nassistnum.setTextContent(real_str);
|
||||
item.appendChild(nassistnum);
|
||||
|
||||
Element nchangestdrate = doc.createElement("nchangestdrate");
|
||||
@@ -900,7 +903,7 @@ public class InAndOutRetrunServiceImpl implements InAndOutReturnService {
|
||||
item.appendChild(nchangestdrate);
|
||||
|
||||
Element nnum = doc.createElement("nnum");
|
||||
nnum.setTextContent(jo.getString("real_qty"));
|
||||
nnum.setTextContent(real_str);
|
||||
item.appendChild(nnum);
|
||||
|
||||
Element nqtunitnum = doc.createElement("nqtunitnum");
|
||||
@@ -1236,12 +1239,18 @@ public class InAndOutRetrunServiceImpl implements InAndOutReturnService {
|
||||
|
||||
} else {
|
||||
Element nshouldassistnum = doc.createElement("nshouldassistnum");
|
||||
nshouldassistnum.setTextContent(jo.getString("real_qty"));
|
||||
double real_qty = jo.getDouble("real_qty");
|
||||
//四舍五入
|
||||
String real_str = NumberUtil.round(real_qty,2).doubleValue()+"";
|
||||
nshouldassistnum.setTextContent(real_str);
|
||||
item.appendChild(nshouldassistnum);
|
||||
}
|
||||
|
||||
Element nshouldnum = doc.createElement("nshouldnum");
|
||||
nshouldnum.setTextContent(jo.getString("real_qty"));
|
||||
double real_qty = jo.getDouble("real_qty");
|
||||
//四舍五入
|
||||
String real_str = NumberUtil.round(real_qty,2).doubleValue()+"";
|
||||
nshouldnum.setTextContent(real_str);
|
||||
item.appendChild(nshouldnum);
|
||||
|
||||
item.appendChild(pk_group.cloneNode(true));
|
||||
@@ -1507,7 +1516,10 @@ public class InAndOutRetrunServiceImpl implements InAndOutReturnService {
|
||||
|
||||
if (jo.getString("real_qty").startsWith("-")) {
|
||||
Element nassistnum = doc.createElement("nassistnum");
|
||||
nassistnum.setTextContent(jo.getString("real_qty"));
|
||||
double real_qty = jo.getDouble("real_qty");
|
||||
//四舍五入
|
||||
String real_str = NumberUtil.round(real_qty,2).doubleValue()+"";
|
||||
nassistnum.setTextContent(real_str);
|
||||
item.appendChild(nassistnum);
|
||||
} else {
|
||||
Element nassistnum = doc.createElement("nassistnum");
|
||||
@@ -1517,7 +1529,10 @@ public class InAndOutRetrunServiceImpl implements InAndOutReturnService {
|
||||
|
||||
if (jo.getString("real_qty").startsWith("-")) {
|
||||
Element nnum = doc.createElement("nnum");
|
||||
nnum.setTextContent(jo.getString("real_qty"));
|
||||
double real_qty = jo.getDouble("real_qty");
|
||||
//四舍五入
|
||||
String real_str = NumberUtil.round(real_qty,2).doubleValue()+"";
|
||||
nnum.setTextContent(real_str);
|
||||
item.appendChild(nnum);
|
||||
} else {
|
||||
Element nnum = doc.createElement("nnum");
|
||||
@@ -1575,12 +1590,18 @@ public class InAndOutRetrunServiceImpl implements InAndOutReturnService {
|
||||
}
|
||||
} else {
|
||||
Element nshouldassistnum = doc.createElement("nshouldassistnum");
|
||||
nshouldassistnum.setTextContent(jo.getString("real_qty"));
|
||||
double real_qty = jo.getDouble("real_qty");
|
||||
//四舍五入
|
||||
String real_str = NumberUtil.round(real_qty,2).doubleValue()+"";
|
||||
nshouldassistnum.setTextContent(real_str);
|
||||
item.appendChild(nshouldassistnum);
|
||||
}
|
||||
|
||||
Element nshouldnum = doc.createElement("nshouldnum");
|
||||
nshouldnum.setTextContent(jo.getString("real_qty"));
|
||||
double real_qty = jo.getDouble("real_qty");
|
||||
//四舍五入
|
||||
String real_str = NumberUtil.round(real_qty,2).doubleValue()+"";
|
||||
nshouldnum.setTextContent(real_str);
|
||||
item.appendChild(nshouldnum);
|
||||
|
||||
item.appendChild(pk_group.cloneNode(true));
|
||||
@@ -1828,7 +1849,10 @@ public class InAndOutRetrunServiceImpl implements InAndOutReturnService {
|
||||
item.appendChild(nnum);
|
||||
|
||||
Element nshouldnum = doc.createElement("nshouldnum");
|
||||
nshouldnum.setTextContent(jo.getString("real_qty"));
|
||||
double real_qty = jo.getDouble("real_qty");
|
||||
//四舍五入
|
||||
String real_str = NumberUtil.round(real_qty,2).doubleValue()+"";
|
||||
nshouldnum.setTextContent(real_str);
|
||||
item.appendChild(nshouldnum);
|
||||
|
||||
item.appendChild(pk_group.cloneNode(true));
|
||||
|
||||
Reference in New Issue
Block a user