package com.iailab.module.model.mcs.pre.dao;
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
import com.iailab.framework.mybatis.core.mapper.BaseMapperX;
|
import com.iailab.framework.tenant.core.db.dynamic.TenantDS;
|
import com.iailab.module.model.mcs.pre.entity.MmPredictAutoAdjustConfigEntity;
|
import com.iailab.module.model.mcs.pre.entity.MmPredictInfluenceFactorConfigEntity;
|
import com.iailab.module.model.mcs.pre.vo.*;
|
import org.apache.ibatis.annotations.Delete;
|
import org.apache.ibatis.annotations.Mapper;
|
import org.apache.ibatis.annotations.Param;
|
import org.apache.ibatis.annotations.Select;
|
|
import java.util.List;
|
import java.util.Map;
|
|
/**
|
* @description:
|
* @author: dzd
|
* @date: 2025/4/8 14:16
|
**/
|
@TenantDS
|
@Mapper
|
public interface MmPredictInfluenceFactorDao extends BaseMapperX<MmPredictInfluenceFactorConfigEntity> {
|
|
IPage<MmPredictInfluenceFactorConfigVO> getPage(IPage<MmPredictInfluenceFactorConfigEntity> page, @Param("params") MmPredictInfluenceFactorPageReqVO reqVO);
|
|
default IPage<MmPredictInfluenceFactorConfigVO> selectPage(MmPredictInfluenceFactorPageReqVO params) {
|
return getPage(getPage(params), params);
|
}
|
|
MmPredictInfluenceFactorConfigVO getInfo(String id);
|
|
void insertInfluenceFactor(List<MmPredictInfluenceFactorVO> list);
|
|
@Delete("DELETE FROM t_mm_predict_influence_factor WHERE config_id = #{configId}")
|
void deleteInfluenceFactor(String configId);
|
|
List<MmPredictInfluenceFactorHandleVO> selectList(@Param("params") Map<String, Object> params);
|
|
@Select("SELECT t1.pattern,t2.factor_output_id,t3.result_name factor_output_name FROM t_mm_predict_influence_factor_config t1 LEFT JOIN t_mm_predict_influence_factor t2 ON t1.id = t2.config_id LEFT JOIN t_mm_item_output t3 ON t2.factor_output_id = t3.id WHERE t1.is_enable = 1 AND t1.output_id = #{outId}")
|
List<MmPredictInfluenceFactorVO> getListByOutId(String outId);
|
}
|