| | |
| | | AND (type = '3' or type = '4' or type = '5') |
| | | </if> |
| | | </select> |
| | | |
| | | |
| | | <select id="selectTodayData" resultType="cn.gistack.nky.entity.HstPredict"> |
| | | SELECT * FROM NKY_HST_PREDICT |
| | | WHERE 1= 1 |
| | | <if test="entity.createTime != null "> |
| | | AND DATE_FORMAT(create_time,'%Y-%m-%d')>= DATE_FORMAT(#{entity.createTime},'%Y-%m-%d') |
| | | </if> |
| | | <if test="entity.damId != null and entity.damId != ''"> |
| | | AND DAM_ID = #{entity.damId} |
| | | </if> |
| | | <if test="entity.pointId != null and entity.pointId !=''"> |
| | | AND POINT_ID = #{entity.pointId} |
| | | </if> |
| | | <if test="entity.type != null and entity.type !='' "> |
| | | AND type = #{entity.type} |
| | | </if> |
| | | </select> |
| | | </mapper> |