|
@@ -347,15 +347,11 @@ 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()));
|
|
|
|
|
|
- //归属公司
|
|
|
- List<SysDept> companyList = deptService.list(Wrappers.<SysDept>query().eq("type", 0));
|
|
|
- List<Long> companyIds = companyList.stream().map(SysDept::getDeptId).collect(Collectors.toList());
|
|
|
wrapper.and(q -> q
|
|
|
.like("t1", Contract::getCode, dto.getKeyword())
|
|
|
.or().like("t1", Contract::getUserName, dto.getUserName())
|
|
|
.or().in("t1", Contract::getSellCorporationId, corporationIds)
|
|
|
.or().in("t1", Contract::getBuyCorporationId, customerIds)
|
|
|
- .or().in("t1", Contract::getCompanyId, companyIds)
|
|
|
);
|
|
|
}
|
|
|
|