|
@@ -1156,6 +1156,16 @@ public class WmScorePackaeServiceImpl extends ServiceImpl<WmScorePackageMapper,
|
|
return typeQty;
|
|
return typeQty;
|
|
}).collect(Collectors.toList());
|
|
}).collect(Collectors.toList());
|
|
|
|
|
|
|
|
+ long sum = collect.stream().mapToLong(ttq -> (long) ttq.getPrice() * ttq.getQty()).sum();
|
|
|
|
+
|
|
|
|
+ if (sum == 0L) {
|
|
|
|
+ throw new RuntimeException("拆解子项总分值为0,请核实");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if (sum - wmScorePackage.getScore() != 0L) {
|
|
|
|
+ throw new RuntimeException("拆解子项总分值" + sum + "与发包分值不想等,请核实");
|
|
|
|
+ }
|
|
|
|
+
|
|
// 获取关联积分包的剩余用量
|
|
// 获取关联积分包的剩余用量
|
|
if (relatedScoreId) {
|
|
if (relatedScoreId) {
|
|
|
|
|