| | |
| | | FROM |
| | | mom_eam_predictive_work_plan_parameter t1 |
| | | WHERE t1.del_flag = 0 |
| | | <if test="params.planId != null and params.planId != ''"> |
| | | and t1.work_plan_id = #{params.planId} |
| | | <if test="predictiveWorkPlanId != null and predictiveWorkPlanId != ''"> |
| | | and t1.work_plan_id = #{predictiveWorkPlanId} |
| | | </if> |
| | | ORDER BY t1.create_time desc |
| | | </select> |
| | |
| | | t1.CollectTime collectTime, |
| | | t1.${parameterCode} actualValue |
| | | FROM |
| | | [${saveTableName}] t1 |
| | | ${saveTableName} t1 |
| | | WHERE |
| | | t1.${parameterCode} <![CDATA[ < ]]> #{lowerLimitValue} |
| | | OR t1.${parameterCode} > #{upperLimitValue} |
| | | OR t1.${parameterCode} > #{upperLimitValue} |
| | | ORDER BY |
| | | t1.CollectTime DESC |
| | | </select> |