|  |  |  | 
|---|
|  |  |  | import com.doumee.core.utils.Utils; | 
|---|
|  |  |  | import com.doumee.dao.business.CompanySolutionMapper; | 
|---|
|  |  |  | import com.doumee.dao.business.join.CompanySolutionJoinMapper; | 
|---|
|  |  |  | import com.doumee.dao.business.model.Company; | 
|---|
|  |  |  | import com.doumee.dao.business.model.CompanySolution; | 
|---|
|  |  |  | import com.doumee.dao.business.model.Solutions; | 
|---|
|  |  |  | import com.doumee.service.business.CompanySolutionService; | 
|---|
|  |  |  | 
|---|
|  |  |  | public List<CompanySolution> findListForCompany(CompanySolution companySolution) { | 
|---|
|  |  |  | MPJLambdaWrapper<CompanySolution> csWrapper = new MPJLambdaWrapper<>(); | 
|---|
|  |  |  | csWrapper.selectAll(CompanySolution.class); | 
|---|
|  |  |  | csWrapper.selectAs(Solutions::getType,CompanySolution::getSolutionType); | 
|---|
|  |  |  | csWrapper.selectAs(Solutions::getName,CompanySolution::getSolutionName); | 
|---|
|  |  |  | csWrapper.selectAs(Company::getName,CompanySolution::getShopName); | 
|---|
|  |  |  | csWrapper.leftJoin(Solutions.class,Solutions::getId,CompanySolution::getSolutionBaseId); | 
|---|
|  |  |  | csWrapper.leftJoin(Company.class, Company::getId,CompanySolution::getShopId); | 
|---|
|  |  |  | csWrapper.eq(CompanySolution::getCompanyId,companySolution.getCompanyId()); | 
|---|
|  |  |  | csWrapper.eq(CompanySolution::getIsdeleted, Constants.ZERO); | 
|---|
|  |  |  | csWrapper.eq(Solutions::getIsdeleted, Constants.ZERO); | 
|---|