소스 검색

增加例外设置字段

xueyiming 9 달 전
부모
커밋
3bc065e111
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      long-article-server/src/main/java/com/tzld/piaoquan/longarticle/service/local/impl/CoreServiceImpl.java

+ 1 - 0
long-article-server/src/main/java/com/tzld/piaoquan/longarticle/service/local/impl/CoreServiceImpl.java

@@ -863,6 +863,7 @@ public class CoreServiceImpl implements CoreService {
             Optional<PlanAccount> firstAccount = planAccountList.stream().min((a1, a2) -> -a1.getPublishNum().compareTo(a2.getPublishNum()));
             PlanAccount targetPlanAccount = firstAccount.get();
             updateAccountSetting(accountSpecialSetting, targetPlanAccount);
+            targetPlanAccount.setIsSpecialSetting(1);
             targetPlanAccount.setId(null);
             planAccountService.saveOrUpdatePlanAccount(targetPlanAccount);
         }