提交
This commit is contained in:
@@ -230,14 +230,15 @@ public class ProductServiceImpl implements ProductService {
|
|||||||
for (int i = 0; i < results.size(); i++) {
|
for (int i = 0; i < results.size(); i++) {
|
||||||
count_num_flag = count_num_flag + results.getJSONObject(i).getIntValue("real_qty");
|
count_num_flag = count_num_flag + results.getJSONObject(i).getIntValue("real_qty");
|
||||||
}
|
}
|
||||||
|
if (count_num_flag < sum_count) {
|
||||||
|
JSONObject joo = new JSONObject();
|
||||||
|
joo.put("material_name", "其他");
|
||||||
|
joo.put("material_spec", "其他");
|
||||||
|
joo.put("real_qty", sum_count - count_num_flag);
|
||||||
|
results.add(joo);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (count_num_flag < sum_count) {
|
|
||||||
JSONObject joo = new JSONObject();
|
|
||||||
joo.put("material_name", "其他");
|
|
||||||
joo.put("material_spec", "其他");
|
|
||||||
joo.put("real_qty", sum_count - count_num_flag);
|
|
||||||
results.add(joo);
|
|
||||||
}
|
|
||||||
JSONObject returnjo = new JSONObject();
|
JSONObject returnjo = new JSONObject();
|
||||||
returnjo.put("code", "1");
|
returnjo.put("code", "1");
|
||||||
returnjo.put("desc", "操作成功!");
|
returnjo.put("desc", "操作成功!");
|
||||||
|
|||||||
Reference in New Issue
Block a user