Commit 881f6eae authored by wangqiang's avatar wangqiang

在ExtIncomeContractServiceFeign中增加“重新计算收入到款”接口

parent fd011fbc
......@@ -34,4 +34,11 @@ public interface ExtIncomeContractService<V extends ExtIncomeContractVO> extends
void calculateIncomeByYear(Long id, String year, ExtIncomeContractVO extIncomeContractVO);
/**
* 重新计算收入到款
*
* @param id
*/
void reCalculIncomeById(Long id);
}
......@@ -173,6 +173,17 @@ public class ExtIncomeContractServiceImpl<V extends ExtIncomeContractVO> impleme
return bigss;
}
/**
* 重新计算xxx到款方法
*
* @param id
*/
@Override
public void reCalculIncomeById(Long id) {
ExtIncomeContractVO extIncomeContractVO = this.findRecursionExtIncomeContractVO(id);
this.calculateIncomeByYear(id, null, extIncomeContractVO);
}
}
......
......@@ -26,4 +26,10 @@ public interface ExtIncomeContractServiceFeign<V extends ExtIncomeContractVO> ex
@ApiOperation(value = "xxx年到款计算", notes = "xxx年到款计算", httpMethod = "GET")
@GetMapping("/calculateIncome")
ExtIncomeContractVO calculateIncomeByYear(@RequestParam Long id, String year);
@ApiOperation(value = "重新计算收入到款", notes = "重新计算收入到款", httpMethod = "GET")
@GetMapping("/reCalculIncomeById")
void reCalculIncomeById(Long id);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment