fix
This commit is contained in:
@@ -1,10 +1,15 @@
|
||||
package com.zt.plat.module.qms.business.config.dal.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.Wrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.framework.mybatis.core.query.LambdaQueryWrapperX;
|
||||
import com.zt.plat.framework.mybatis.core.mapper.BaseMapperX;
|
||||
import com.zt.plat.module.qms.business.config.controller.vo.ConfigReportFieldPageReqVO;
|
||||
import com.zt.plat.module.qms.business.config.dal.dataobject.ConfigReportFieldDO;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import com.zt.plat.module.qms.business.config.controller.vo.*;
|
||||
|
||||
@@ -35,5 +40,31 @@ public interface ConfigReportFieldMapper extends BaseMapperX<ConfigReportFieldDO
|
||||
.eqIfPresent(ConfigReportFieldDO::getVersion, reqVO.getVersion())
|
||||
.orderByDesc(ConfigReportFieldDO::getId));
|
||||
}
|
||||
|
||||
default List<ConfigReportFieldDO> selectList(ConfigReportFieldReqVO reqVO) {
|
||||
return selectList(new LambdaQueryWrapperX<ConfigReportFieldDO>()
|
||||
.eqIfPresent(ConfigReportFieldDO::getConfigReportTypeId, reqVO.getConfigReportTypeId())
|
||||
.eqIfPresent(ConfigReportFieldDO::getField, reqVO.getField())
|
||||
.likeIfPresent(ConfigReportFieldDO::getFieldName, reqVO.getFieldName())
|
||||
.eqIfPresent(ConfigReportFieldDO::getNo, reqVO.getNo())
|
||||
.eqIfPresent(ConfigReportFieldDO::getDataType, reqVO.getDataType())
|
||||
.eqIfPresent(ConfigReportFieldDO::getDecimalPosition, reqVO.getDecimalPosition())
|
||||
.eqIfPresent(ConfigReportFieldDO::getFieldWidth, reqVO.getFieldWidth())
|
||||
.eqIfPresent(ConfigReportFieldDO::getIsGroup, reqVO.getIsGroup())
|
||||
.betweenIfPresent(ConfigReportFieldDO::getIsUpdate, reqVO.getIsUpdate())
|
||||
.eqIfPresent(ConfigReportFieldDO::getFormula, reqVO.getFormula())
|
||||
.eqIfPresent(ConfigReportFieldDO::getTitleGroup, reqVO.getTitleGroup())
|
||||
.eqIfPresent(ConfigReportFieldDO::getSystemDepartmentCode, reqVO.getSystemDepartmentCode())
|
||||
.betweenIfPresent(ConfigReportFieldDO::getCreateTime, reqVO.getCreateTime())
|
||||
.eqIfPresent(ConfigReportFieldDO::getRemark, reqVO.getRemark())
|
||||
.eqIfPresent(ConfigReportFieldDO::getVersion, reqVO.getVersion())
|
||||
.orderByAsc(ConfigReportFieldDO::getNo));
|
||||
}
|
||||
|
||||
default List<ConfigReportFieldDO> selectByConfigReportTypeIds(List<Long> configReportTypeIds) {
|
||||
return selectList(new LambdaQueryWrapperX<ConfigReportFieldDO>()
|
||||
.in(ConfigReportFieldDO::getConfigReportTypeId, configReportTypeIds)
|
||||
.orderByAsc(ConfigReportFieldDO::getNo));
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user