| | |
| | | <mapper namespace="cn.gistack.nky.mapper.ArimaPredictMapper"> |
| | | |
| | | |
| | | <select id="getFutureData" resultType="cn.gistack.nky.entity.ArimaPredict"> |
| | | <select id="getFutureData" resultType="cn.gistack.nky.vo.ArimaPredictVO"> |
| | | |
| | | SELECT * FROM NKY_ARIMA_PREDICT |
| | | SELECT NAP.*, acb."cd_nm" cdNm FROM NKY_ARIMA_PREDICT NAP |
| | | LEFT JOIN SJZT_MD."att_cd_base" acb ON acb."res_cd" = NAP.DAM_ID AND NAP.POINT_ID = acb."cd" |
| | | WHERE DATE_FORMAT(create_time,'%Y-%m-%d')>= CURDATE() |
| | | <if test="resCd != null and resCd !='' "> |
| | | AND DAM_ID = #{resCd} |
| | | AND NAP.DAM_ID = #{resCd} |
| | | </if> |
| | | <if test="type != null and type !='' and type == 1 "> |
| | | AND type = #{type} |
| | | AND NAP.type = #{type} |
| | | </if> |
| | | <if test="type != null and type !='' and type == 2"> |
| | | AND type = #{type} |
| | | AND NAP.type = #{type} |
| | | </if> |
| | | <if test="type != null and type !='' and type == 3"> |
| | | AND (type = '3' or type = '4' or type = '5') |
| | | AND (NAP.type = '3' or NAP.type = '4' or NAP.type = '5') |
| | | </if> |
| | | ORDER BY POINT_ID ASC |
| | | ORDER BY NAP.POINT_ID ASC |
| | | </select> |
| | | |
| | | <select id="getFutureDataWy" resultType="cn.gistack.nky.vo.ArimaPredictVO"> |
| | | SELECT NAP.*, awcb."cd_nm" cdNm FROM NKY_ARIMA_PREDICT NAP |
| | | LEFT JOIN SJZT_MD."att_wy_cd_base" awcb ON awcb."res_cd" = NAP.dam_id and awcb."cd" = NAP.point_id |
| | | WHERE DATE_FORMAT(create_time,'%Y-%m-%d')>= CURDATE() |
| | | <if test="resCd != null and resCd !='' "> |
| | | AND NAP.DAM_ID = #{resCd} |
| | | </if> |
| | | <if test="type != null and type !='' and type == 1 "> |
| | | AND NAP.type = #{type} |
| | | </if> |
| | | <if test="type != null and type !='' and type == 2"> |
| | | AND NAP.type = #{type} |
| | | </if> |
| | | <if test="type != null and type !='' and type == 3"> |
| | | AND (NAP.type = '3' or NAP.type = '4' or NAP.type = '5') |
| | | </if> |
| | | ORDER BY NAP.POINT_ID ASC |
| | | </select> |
| | | |
| | | |
| | | |
| | | |
| | | <select id="selectTodayData" resultType="cn.gistack.nky.entity.ArimaPredict"> |
| | | SELECT id FROM NKY_ARIMA_PREDICT |
| | | WHERE 1=1 |