1.调整实际数量计算方式

busUser
x_z 2 years ago
parent 7bf73d773f
commit 0f09e030e2

@ -105,7 +105,7 @@ public class StockOrderDetailController {
codeList.forEach(codeEntity -> {
if (StrUtil.trimToEmpty(codeEntity.getRelId()).equals(StrUtil.trimToEmpty(stockOrderDetailEntity.getRelId())) && (StrUtil.trimToEmpty(codeEntity.getBatchNo()).equals(StrUtil.trimToEmpty(stockOrderDetailEntity.getBatchNo())))) {
int actCount = udiRelevanceService.getActCountByRelIdAndNameCode(stockOrderDetailEntity.getRelId(), codeEntity.getNameCode());
stockOrderDetailEntity.setReCount(String.valueOf(Long.valueOf(stockOrderDetailEntity.getCount()) * actCount));
stockOrderDetailEntity.setReCount(String.valueOf(codeEntity.getCount() * actCount));
}
});
@ -149,7 +149,7 @@ public class StockOrderDetailController {
//item.setReCount(codeDetaiEntity.getCount() + "");
//计算实际数量
int actCount = udiRelevanceService.getActCountByRelIdAndNameCode(codeDetaiEntity.getRelId(), codeDetaiEntity.getNameCode());
item.setReCount(String.valueOf(Long.valueOf(stockOrderDetailEntity.getCount()) * actCount));
item.setReCount(String.valueOf(codeDetaiEntity.getCount() * actCount));
resultList.add(item);
}

Loading…
Cancel
Save