|
@@ -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")
|