| | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 保险方案信息表(基表)Service实现 |
| | | * 保险方案信息表Service实现 |
| | | * @author 江蹄蹄 |
| | | * @date 2024/01/16 10:03 |
| | | * @date 2024/10/28 19:16 |
| | | */ |
| | | @Service |
| | | public class SolutionsBaseServiceImpl implements SolutionsBaseService { |
| | |
| | | if (pageWrap.getModel().getValidType() != null) { |
| | | queryWrapper.lambda().eq(SolutionsBase::getValidType, pageWrap.getModel().getValidType()); |
| | | } |
| | | if (pageWrap.getModel().getType() != null) { |
| | | queryWrapper.lambda().eq(SolutionsBase::getType, pageWrap.getModel().getType()); |
| | | } |
| | | if (pageWrap.getModel().getMinAge() != null) { |
| | | queryWrapper.lambda().eq(SolutionsBase::getMinAge, pageWrap.getModel().getMinAge()); |
| | | } |
| | | if (pageWrap.getModel().getMaxAge() != null) { |
| | | queryWrapper.lambda().eq(SolutionsBase::getMaxAge, pageWrap.getModel().getMaxAge()); |
| | | } |
| | | if (pageWrap.getModel().getPrice() != null) { |
| | | queryWrapper.lambda().eq(SolutionsBase::getPrice, pageWrap.getModel().getPrice()); |
| | | } |
| | | if (pageWrap.getModel().getTimeUnit() != null) { |
| | | queryWrapper.lambda().eq(SolutionsBase::getTimeUnit, pageWrap.getModel().getTimeUnit()); |
| | | } |
| | | if (pageWrap.getModel().getInsureCycle() != null) { |
| | | queryWrapper.lambda().eq(SolutionsBase::getInsureCycle, pageWrap.getModel().getInsureCycle()); |
| | | } |
| | | if (pageWrap.getModel().getInsureCycleUnit() != null) { |
| | | queryWrapper.lambda().eq(SolutionsBase::getInsureCycleUnit, pageWrap.getModel().getInsureCycleUnit()); |
| | | } |
| | | if (pageWrap.getModel().getPriceCycleUnit() != null) { |
| | | queryWrapper.lambda().eq(SolutionsBase::getPriceCycleUnit, pageWrap.getModel().getPriceCycleUnit()); |
| | | } |
| | | if (pageWrap.getModel().getSingleWorktype() != null) { |
| | | queryWrapper.lambda().eq(SolutionsBase::getSingleWorktype, pageWrap.getModel().getSingleWorktype()); |
| | | } |
| | | if (pageWrap.getModel().getEmail() != null) { |
| | | queryWrapper.lambda().eq(SolutionsBase::getEmail, pageWrap.getModel().getEmail()); |
| | | } |
| | | if (pageWrap.getModel().getSpecialAgreement() != null) { |
| | | queryWrapper.lambda().eq(SolutionsBase::getSpecialAgreement, pageWrap.getModel().getSpecialAgreement()); |
| | |
| | | if (pageWrap.getModel().getVersion() != null) { |
| | | queryWrapper.lambda().eq(SolutionsBase::getVersion, pageWrap.getModel().getVersion()); |
| | | } |
| | | if (pageWrap.getModel().getDataType() != null) { |
| | | queryWrapper.lambda().eq(SolutionsBase::getDataType, pageWrap.getModel().getDataType()); |
| | | } |
| | | if (pageWrap.getModel().getBaseId() != null) { |
| | | queryWrapper.lambda().eq(SolutionsBase::getBaseId, pageWrap.getModel().getBaseId()); |
| | | } |
| | | if (pageWrap.getModel().getSignKeyword() != null) { |
| | | queryWrapper.lambda().eq(SolutionsBase::getSignKeyword, pageWrap.getModel().getSignKeyword()); |
| | | } |
| | | if (pageWrap.getModel().getValidTypeNum() != null) { |
| | | queryWrapper.lambda().eq(SolutionsBase::getValidTypeNum, pageWrap.getModel().getValidTypeNum()); |
| | | } |
| | | if (pageWrap.getModel().getShopId() != null) { |
| | | queryWrapper.lambda().eq(SolutionsBase::getShopId, pageWrap.getModel().getShopId()); |
| | | } |
| | | if (pageWrap.getModel().getAddValidDays() != null) { |
| | | queryWrapper.lambda().eq(SolutionsBase::getAddValidDays, pageWrap.getModel().getAddValidDays()); |
| | | } |
| | | if (pageWrap.getModel().getDelValidDays() != null) { |
| | | queryWrapper.lambda().eq(SolutionsBase::getDelValidDays, pageWrap.getModel().getDelValidDays()); |
| | | } |
| | | if (pageWrap.getModel().getCanAdd() != null) { |
| | | queryWrapper.lambda().eq(SolutionsBase::getCanAdd, pageWrap.getModel().getCanAdd()); |
| | | } |
| | | if (pageWrap.getModel().getCanReduce() != null) { |
| | | queryWrapper.lambda().eq(SolutionsBase::getCanReduce, pageWrap.getModel().getCanReduce()); |
| | | } |
| | | if (pageWrap.getModel().getCanChangeUnit() != null) { |
| | | queryWrapper.lambda().eq(SolutionsBase::getCanChangeUnit, pageWrap.getModel().getCanChangeUnit()); |
| | | } |
| | | if (pageWrap.getModel().getDelOnlyReplace() != null) { |
| | | queryWrapper.lambda().eq(SolutionsBase::getDelOnlyReplace, pageWrap.getModel().getDelOnlyReplace()); |
| | | } |
| | | if (pageWrap.getModel().getCompanyName() != null) { |
| | | queryWrapper.lambda().eq(SolutionsBase::getCompanyName, pageWrap.getModel().getCompanyName()); |
| | | } |
| | | for(PageWrap.SortData sortData: pageWrap.getSorts()) { |
| | | if (sortData.getDirection().equalsIgnoreCase(PageWrap.DESC)) { |
| | | queryWrapper.orderByDesc(sortData.getProperty()); |