Skip to content

Commit

Permalink
Update TargetTableModel.java
Browse files Browse the repository at this point in the history
  • Loading branch information
bit4woo committed Dec 20, 2024
1 parent a69238d commit 9abd980
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/domain/target/TargetTableModel.java
Original file line number Diff line number Diff line change
Expand Up @@ -548,8 +548,13 @@ public void debugPrint(String domain, int type, String reason) {

public void refreshSubdomainCount() {
for (TargetEntry entry:targetEntries.values()) {
int oldCount = entry.getSubdomainCount();
entry.countSubdomain(guiMain.getDomainPanel().getDomainResult().getSubDomainSet());
guiMain.getDomainPanel().getTargetDao().addOrUpdateTarget(entry);
int newCount = entry.getSubdomainCount();
if (oldCount!= newCount) {
//减少数据库操作
guiMain.getDomainPanel().getTargetDao().addOrUpdateTarget(entry);
}
}
int size = targetEntries.size();
if (size>=1) {
Expand Down

0 comments on commit 9abd980

Please sign in to comment.