jiangping
2024-01-15 bdda11f8b6777a2d476adfc689578b8b84a92317
server/service/src/main/java/com/doumee/service/business/impl/SolutionsServiceImpl.java
@@ -17,9 +17,9 @@
import java.util.List;
/**
 * 保险方案信息表(历史版本)Service实现
 * 保险方案信息表Service实现
 * @author 江蹄蹄
 * @date 2024/01/15 11:15
 * @date 2024/01/15 15:07
 */
@Service
public class SolutionsServiceImpl implements SolutionsService {
@@ -172,6 +172,12 @@
        if (pageWrap.getModel().getVersion() != null) {
            queryWrapper.lambda().eq(Solutions::getVersion, pageWrap.getModel().getVersion());
        }
        if (pageWrap.getModel().getDataType() != null) {
            queryWrapper.lambda().eq(Solutions::getDataType, pageWrap.getModel().getDataType());
        }
        if (pageWrap.getModel().getBaseId() != null) {
            queryWrapper.lambda().eq(Solutions::getBaseId, pageWrap.getModel().getBaseId());
        }
        for(PageWrap.SortData sortData: pageWrap.getSorts()) {
            if (sortData.getDirection().equalsIgnoreCase(PageWrap.DESC)) {
                queryWrapper.orderByDesc(sortData.getProperty());