Browse Source

修改出库后退库功能

lwx_dev
erdanergou 3 years ago
parent
commit
2dadd60995
  1. 9
      src/main/java/com/dreamchaser/depository_manage/controller/PlaceController.java

9
src/main/java/com/dreamchaser/depository_manage/controller/PlaceController.java

@ -105,10 +105,11 @@ public class PlaceController {
} }
if (!"".equals(max)) { if (!"".equals(max)) {
Double maxQuantity = ObjectFormatUtil.toDouble(max); Double maxQuantity = ObjectFormatUtil.toDouble(max);
maxQuantity *= 100;
if (maxQuantity >= 999999999) { if (maxQuantity >= 999999999) {
insert.put("max", 999999999); insert.put("max", 999999999);
} else { } else {
insert.put("max", map.get("max")); insert.put("max",maxQuantity);
} }
} else { } else {
insert.put("max", 0); insert.put("max", 0);
@ -148,10 +149,11 @@ public class PlaceController {
insert.put("kingdeecode", kingdeeCode); insert.put("kingdeecode", kingdeeCode);
insert.put("min", min); insert.put("min", min);
Double maxQuantity = ObjectFormatUtil.toDouble(max); Double maxQuantity = ObjectFormatUtil.toDouble(max);
maxQuantity *= 100;
if (maxQuantity >= 999999999) { if (maxQuantity >= 999999999) {
insert.put("max", 999999999); insert.put("max", 999999999);
} else { } else {
insert.put("max", map.get("max")); insert.put("max", maxQuantity);
} }
insert.put("state", 1); insert.put("state", 1);
insert.put("quantity", 0); insert.put("quantity", 0);
@ -189,10 +191,11 @@ public class PlaceController {
} }
if (!"".equals(max)) { if (!"".equals(max)) {
Double maxQuantity = ObjectFormatUtil.toDouble(max); Double maxQuantity = ObjectFormatUtil.toDouble(max);
maxQuantity *= 100;
if (maxQuantity >= 999999999) { if (maxQuantity >= 999999999) {
insert.put("max", 999999999); insert.put("max", 999999999);
} else { } else {
insert.put("max", map.get("max")); insert.put("max", maxQuantity);
} }
} else { } else {
insert.put("max", 0); insert.put("max", 0);

Loading…
Cancel
Save