|
|
|
@ -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(actCount));
|
|
|
|
|
stockOrderDetailEntity.setReCount(String.valueOf(Long.valueOf(stockOrderDetailEntity.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(actCount));
|
|
|
|
|
item.setReCount(String.valueOf(Long.valueOf(stockOrderDetailEntity.getCount()) * actCount));
|
|
|
|
|
resultList.add(item);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|