|
|
|
@ -4,9 +4,12 @@ import cn.iocoder.yudao.framework.common.pojo.PageResult; |
|
|
|
import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX; |
|
|
|
import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX; |
|
|
|
import cn.iocoder.yudao.module.alert.controller.admin.instant.vo.InstantPageReqVO; |
|
|
|
import cn.iocoder.yudao.module.alert.controller.admin.instant.vo.InstantReqVO; |
|
|
|
import cn.iocoder.yudao.module.alert.dal.dataobject.instant.InstantDO; |
|
|
|
import org.apache.ibatis.annotations.Mapper; |
|
|
|
|
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
@Mapper |
|
|
|
public interface InstantMapper extends BaseMapperX<InstantDO> { |
|
|
|
|
|
|
|
@ -23,7 +26,19 @@ public interface InstantMapper extends BaseMapperX<InstantDO> { |
|
|
|
.eqIfPresent(InstantDO::getAlgorithmId,reqVO.getAlgorithmId()) |
|
|
|
.orderByAsc(InstantDO::getMpId)); |
|
|
|
} |
|
|
|
default List<InstantDO> selectList(InstantReqVO reqVO) { |
|
|
|
|
|
|
|
return selectList(new LambdaQueryWrapperX<InstantDO>() |
|
|
|
.likeIfPresent(InstantDO::getMpName, reqVO.getMpName()) |
|
|
|
.eqIfPresent(InstantDO::getIsUpdate,reqVO.getIsUpdate()) |
|
|
|
.eqIfPresent(InstantDO::getRunning,reqVO.getRunning()) |
|
|
|
.eqIfPresent(InstantDO::getRunningLog,reqVO.getRunningLog()) |
|
|
|
.eqIfPresent(InstantDO::getUnitId,reqVO.getUnit()) |
|
|
|
.eqIfPresent(InstantDO::getSystemTypeId,reqVO.getType()) |
|
|
|
.eqIfPresent(InstantDO::getSystemId,reqVO.getSystem()) |
|
|
|
.eqIfPresent(InstantDO::getAlgorithmId,reqVO.getAlgorithmId()) |
|
|
|
.orderByAsc(InstantDO::getMpId)); |
|
|
|
} |
|
|
|
default Long selectCountByRunningLog(String runningLog){ |
|
|
|
return selectCount(InstantDO::getRunningLog,runningLog); |
|
|
|
} |
|
|
|
|