|
|
@@ -12,6 +12,7 @@ import com.alibaba.fastjson.JSONArray;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
|
|
|
import beans.invbal.Invbal;
|
|
|
+import com.sun.tools.internal.xjc.reader.gbind.ElementSets;
|
|
|
import common.Controller;
|
|
|
import common.YosException;
|
|
|
import common.annotation.API;
|
|
|
@@ -183,21 +184,20 @@ public class invbal extends Controller {
|
|
|
}
|
|
|
for (Row row:rows) {
|
|
|
row.put("itemclass", itemclassRowsMap.get(row.getString("itemid")));
|
|
|
- if(sumQtyRowsMap.containsKey(row.getString("itemno"))){
|
|
|
- if(sumQtyRowsMap.get(row.getString("itemno")).isNotEmpty()){
|
|
|
- row.put("unsoldqty", sumQtyRowsMap.get(row.getString("itemno")).get(0).getBigDecimal("qty"));
|
|
|
- }else {
|
|
|
- row.put("unsoldqty", BigDecimal.ZERO);
|
|
|
- }
|
|
|
- if(sumUnQtyRowsMap.get(row.getString("itemno")).isNotEmpty()){
|
|
|
- row.put("undelqty", sumUnQtyRowsMap.get(row.getString("itemno")).get(0).getBigDecimal("undeliqty"));
|
|
|
- }else {
|
|
|
- row.put("undelqty", BigDecimal.ZERO);
|
|
|
- }
|
|
|
- if(!row.containsKey("invbalqty")){
|
|
|
- row.put("invbalqty",BigDecimal.ZERO);
|
|
|
- }
|
|
|
+ if(sumQtyRowsMap.get(row.getString("itemno")).isNotEmpty()){
|
|
|
+ row.put("unsoldqty", sumQtyRowsMap.get(row.getString("itemno")).get(0).getBigDecimal("qty"));
|
|
|
+ }else {
|
|
|
+ row.put("unsoldqty", BigDecimal.ZERO);
|
|
|
+ }
|
|
|
+ if(sumUnQtyRowsMap.get(row.getString("itemno")).isNotEmpty()){
|
|
|
+ row.put("undelqty", sumUnQtyRowsMap.get(row.getString("itemno")).get(0).getBigDecimal("undeliqty"));
|
|
|
+ }else {
|
|
|
+ row.put("undelqty", BigDecimal.ZERO);
|
|
|
}
|
|
|
+ if(!row.containsKey("invbalqty")){
|
|
|
+ row.put("invbalqty",BigDecimal.ZERO);
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
return getSucReturnObject().setData(rows).toString();
|
|
|
}
|