This commit is contained in:
18188916393
2022-08-02 17:38:50 +08:00
parent 0e68a529c7
commit 9f64af34cf

View File

@@ -230,14 +230,15 @@ public class ProductServiceImpl implements ProductService {
for (int i = 0; i < results.size(); i++) {
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();
returnjo.put("code", "1");
returnjo.put("desc", "操作成功!");