dengzedong
3 天以前 5665c6d9ff476abd922b1f6a43ea1dac0600cb05
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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);
}