Jelajahi Sumber

07 29 02 fix 递归算法

hr 4 tahun lalu
induk
melakukan
4ab713e901

+ 1 - 1
src/main/java/com/imed/costaccount/service/impl/AccountingServiceImpl.java

@@ -198,7 +198,7 @@ public class AccountingServiceImpl extends ServiceImpl<AccountingMapper, Account
         Integer id = accountingEditDTO.getId();
 //        this.checkAccountingCode(accountingEditDTO.getAccountingCode(), user.getHospId());
         Accounting  one = this.baseMapper.selectOne(
-                new QueryWrapper<Accounting>().lambda().select(Accounting::getId)
+                new QueryWrapper<Accounting>().lambda()
                         .eq(Accounting::getAccountingCode, accountingEditDTO.getAccountingCode())
                         .eq(Accounting::getHospId, user.getHospId())
                         .last("limit 1")