|
|
|
@ -240,7 +240,7 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
|
if (placeId == null || "".equals(placeId) || "0".equals(placeId)) { |
|
|
|
map.put("placeId", 0); |
|
|
|
} |
|
|
|
double quantity = Double.parseDouble((String) map.get("quantity")); |
|
|
|
double quantity = Double.parseDouble((String) map.get("quantity")) * 100; |
|
|
|
Long time = DateUtil.DateTimeToTimeStamp(DateUtil.getSimpleTime(new Date())); |
|
|
|
map.put("applicantTime", time); |
|
|
|
Integer mid = ObjectFormatUtil.toInteger(map.get("mid")); |
|
|
|
@ -252,7 +252,7 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
|
Inventory materialById = materialMapper.findInventoryById(mid); |
|
|
|
map.put("price", 0); |
|
|
|
if (materialById.getPrice() != null) { |
|
|
|
int amounts = (int) ((materialById.getPrice() / 100) * quantity * 100); |
|
|
|
int amounts = (int) ((materialById.getPrice() / 100) * quantity); |
|
|
|
map.put("price", amounts); |
|
|
|
} |
|
|
|
Depository depositoryRecordById = depositoryMapper.findDepositoryById(materialById.getDepositoryId()); |
|
|
|
@ -262,6 +262,7 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
|
String code = createCode(dname, "outOrderNumber", "out", company.getName()); |
|
|
|
map.put("code", code); |
|
|
|
map.put("pass", 3); |
|
|
|
map.put("quantity",quantity); |
|
|
|
return depositoryRecordMapper.insertApplicationOutRecord(map); |
|
|
|
} |
|
|
|
|
|
|
|
@ -853,6 +854,7 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
|
// 修改库存记录
|
|
|
|
materialMapper.updateInventory(inventoryById); |
|
|
|
} |
|
|
|
map.put("quantity",ObjectFormatUtil.toDouble(map.get("quantity")) * 100); |
|
|
|
return depositoryRecordMapper.insertApplicationOutRecordMin(map); |
|
|
|
} |
|
|
|
|
|
|
|
|