|
@@ -1,15 +1,12 @@
|
|
|
package com.lantone.daqe.facade;
|
|
|
|
|
|
|
|
|
-import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
-import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.lantone.common.enums.IsDeleteEnum;
|
|
|
import com.lantone.common.exception.Asserts;
|
|
|
import com.lantone.common.util.BeanUtil;
|
|
|
import com.lantone.common.util.DateUtil;
|
|
|
-import com.lantone.common.util.StringUtil;
|
|
|
import com.lantone.common.util.SysUserUtils;
|
|
|
import com.lantone.daqe.dto.GetRegularPageDTO;
|
|
|
import com.lantone.daqe.entity.RegularInfo;
|
|
@@ -26,8 +23,6 @@ import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
-import java.util.List;
|
|
|
-
|
|
|
/**
|
|
|
* @Description: 正则式维护-业务处理类
|
|
|
* @author: songxl
|
|
@@ -52,18 +47,7 @@ public class RegularManagementFacade {
|
|
|
* @Return com.baomidou.mybatisplus.core.metadata.IPage<com.lantone.daqe.dto.GetRegularPageDTO>
|
|
|
*/
|
|
|
public IPage<GetRegularPageDTO> getRegularPage(GetRegularPageVO getRegularPageVO) {
|
|
|
-
|
|
|
- Page<GetRegularPageDTO> getRegularPageDTOPage = new Page<>();
|
|
|
- QueryWrapper<RegularInfo> regularInfoQueryWrapper = new QueryWrapper<>();
|
|
|
- regularInfoQueryWrapper.eq("is_deleted", IsDeleteEnum.N.getKey());
|
|
|
- regularInfoQueryWrapper.like(StringUtil.isNotBlank(getRegularPageVO.getName()), "name", getRegularPageVO.getName());
|
|
|
- Page<RegularInfo> regularInfoPage = new Page<>(getRegularPageVO.getCurrent(), getRegularPageVO.getSize());
|
|
|
- regularInfoFacade.page(regularInfoPage, regularInfoQueryWrapper);
|
|
|
- BeanUtil.copyProperties(regularInfoPage, getRegularPageDTOPage);
|
|
|
- List<GetRegularPageDTO> getRegularPageDTOList = BeanUtil.listCopyTo(regularInfoPage.getRecords(), GetRegularPageDTO.class);
|
|
|
-
|
|
|
- getRegularPageDTOPage.setRecords(getRegularPageDTOList);
|
|
|
- return getRegularPageDTOPage;
|
|
|
+ return regularInfoFacade.getBaseMapper().getRegularPage(getRegularPageVO);
|
|
|
}
|
|
|
|
|
|
/**
|