大屏
This commit is contained in:
		
							parent
							
								
									8f1532e976
								
							
						
					
					
						commit
						47b6fe7d34
					
				| @ -432,7 +432,7 @@ public class ScrProductionServiceImpl extends ServiceImpl<ScrProductionMapper, S | ||||
| 
 | ||||
|                     // 聚合该产品的总产量 | ||||
|                     BigDecimal totalProduction = productProductions.stream() | ||||
|                             .map(ScrProduction::getProduction) | ||||
|                             .map(ScrProduction::getPower) | ||||
|                             .filter(ObjectUtil::isNotEmpty) | ||||
|                             .reduce(BigDecimal.ZERO, BigDecimal::add); | ||||
|                     productParam.setPower(totalProduction); // 使用power字段存储总产量 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 zhangyanan
						zhangyanan