Skip to content

Commit 2d7420f

Browse files
committed
[Fix] 循环不需要终止
1 parent 67b16a8 commit 2d7420f

File tree

1 file changed

+1
-1
lines changed
  • students/812350401/src/main/java/com/coderising/myood/payroll/my_payroll/domain

1 file changed

+1
-1
lines changed

students/812350401/src/main/java/com/coderising/myood/payroll/my_payroll/domain/PayTransaction.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public void execute(){
2020

2121
Paycheck pc = new Paycheck(e.getId(), e.getPayPeriodStart(date), date);
2222
if (!payrollService.checkRepeatedPay(pc)) {
23-
break;
23+
continue;
2424
}
2525
e.payDay(pc);
2626
payrollService.savePaycheck(pc);

0 commit comments

Comments
 (0)