| | |
| | | ON DUPLICATE KEY UPDATE |
| | | value = VALUES(value); |
| | | </insert> |
| | | <select id="getResultList" resultType="com.iailab.module.model.mcs.pre.vo.MmPredictInfluenceFactorResultVO" |
| | | parameterType="com.iailab.module.model.mcs.pre.vo.MmPredictInfluenceFactorResultListReqVO"> |
| | | SELECT |
| | | t1.output_id, |
| | | t1.pattern, |
| | | t3.result_name factor_output_name, |
| | | t4.time, |
| | | t4.value |
| | | 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 |
| | | LEFT JOIN t_mm_predict_influence_factor_result t4 ON t4.factor_id = t2.id |
| | | WHERE |
| | | t1.is_enable = 1 |
| | | and t1.output_id IN |
| | | <foreach collection="outIds" item="item" open="(" close=")" separator=","> |
| | | #{item} |
| | | </foreach> |
| | | <if test="startTime != null"> |
| | | AND t4.time >= #{startTime} |
| | | </if> |
| | | <if test="endTime != null"> |
| | | AND t4.time <= #{endTime} |
| | | </if> |
| | | </select> |
| | | </mapper> |