Commit 6c21e29a by kangxiaoshan

1

parent 919f3ba4
......@@ -516,6 +516,7 @@ public class ContractServiceImpl implements ContractService {
this.calculateShareIncome(resource);//判断是否计算调整金
resource = contractRepository.save(resource);
this.saveContractRelations(resource, resource.getId());
......@@ -542,6 +543,8 @@ public class ContractServiceImpl implements ContractService {
int day1 = Days.daysBetween(contractStart, contractEnd).getDays();
int day2 = Days.daysBetween(contractStart, new DateTime().plusMonths(-1).dayOfMonth().withMaximumValue()).getDays();
resource.setAdjustmentFund(resource.getMoney() * 6 / day1 * day2); // 此处为 *100的结果
} else {
resource.setAdjustmentFund(0L);
}
}
......
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