|
@@ -138,8 +138,9 @@ public class AccountingProductServiceImpl extends ServiceImpl<AccountingProductM
|
|
|
|
|
|
// 校验已经绑定过的数据 (1:n)
|
|
|
List<AccountingProduct> list = this.list(
|
|
|
- new LambdaQueryWrapper<AccountingProduct>().select(AccountingProduct::getId)
|
|
|
- .eq(AccountingProduct::getAccountingId, accountId)
|
|
|
+ new LambdaQueryWrapper<AccountingProduct>()
|
|
|
+ .select(AccountingProduct::getId)
|
|
|
+// .eq(AccountingProduct::getAccountingId, accountId)
|
|
|
.eq(AccountingProduct::getHospId, user.getHospId())
|
|
|
.in(AccountingProduct::getProductId, accountProductSaveDTO.getProducts())
|
|
|
);
|