|
@@ -243,9 +243,9 @@ public class ContractServiceImpl extends ServiceImpl<ContractMapper, Contract>
|
|
|
List<Long> corporationIds = corporationService.listObject(Corporation::getId, q -> q.like(Corporation::getName, dto.getKeyword()));
|
|
|
List<Long> customerIds = customerService.listObject(Customer::getId, q -> q.like(Customer::getName, dto.getKeyword()));
|
|
|
wrapper.and(q -> q
|
|
|
- .eq("t1", Contract::getCode, dto.getKeyword())
|
|
|
- .in("t1", Contract::getSellCorporationId, corporationIds)
|
|
|
- .in("t1", Contract::getBuyCorporationId, customerIds)
|
|
|
+ .like("t1", Contract::getCode, dto.getKeyword())
|
|
|
+ .or().in("t1", Contract::getSellCorporationId, corporationIds)
|
|
|
+ .or().in("t1", Contract::getBuyCorporationId, customerIds)
|
|
|
);
|
|
|
}
|
|
|
|