|
@@ -2264,6 +2264,27 @@ public class DyoaHistoryServiceImpl implements IDyoaHistoryService{
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public Boolean fixReamAmountForProductionType() {
|
|
|
+ List<ProductionFund> diff = productionFundService.queryDiffReamAmountForProductionType();
|
|
|
+ for (ProductionFund productionFund : diff){
|
|
|
+ Long orderFundId = productionFund.getOrderFundId();
|
|
|
+ BigDecimal realAmount = productionFund.getRealAmount();
|
|
|
+ Long id = productionFund.getId();
|
|
|
+ List<FinanceClaim> list = financeClaimService.list(new LambdaQueryWrapper<FinanceClaim>()
|
|
|
+ .eq(FinanceClaim::getOrderFundId, orderFundId));
|
|
|
+
|
|
|
+ if (list.size()>0){
|
|
|
+ for (FinanceClaim financeClaim : list){
|
|
|
+ financeClaimService.update(new LambdaUpdateWrapper<FinanceClaim>().eq(BaseEntity::getId,financeClaim.getId())
|
|
|
+ .set(FinanceClaim::getProductionFundId,id));
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
@Override
|
|
|
public Boolean updateProductionFund() {
|