| | |
| | | </if> |
| | | |
| | | <if test="startTemp != null"> |
| | | and cast(value->'$.temp' as decimal(10, 1)) >= #{startTemp} |
| | | and cast(value->'$.temp' as decimal(10, 0)) >= #{startTemp} |
| | | </if> |
| | | |
| | | <if test="endTemp != null"> |
| | | and cast(value->'$.temp' as decimal(10, 1)) <![CDATA[<=]]> #{endTemp} |
| | | and cast(value->'$.temp' as decimal(10, 0)) <![CDATA[<=]]> #{endTemp} |
| | | </if> |
| | | |
| | | <if test="startPressure != null"> |
| | |
| | | <foreach collection="hours" open="(" separator="," close=")" item="hour"> |
| | | #{hour} |
| | | </foreach> |
| | | </if> |
| | | |
| | | <if test="month != null"> |
| | | and DATE_FORMAT(time, '%m') = #{month} |
| | | </if> |
| | | </where> |
| | | </select> |
| | |
| | | </if> |
| | | |
| | | <if test="startTemp != null"> |
| | | and cast(json->'$.temp' as decimal(10, 1)) >= #{startTemp} |
| | | and cast(json->'$.temp' as decimal(10, 0)) >= #{startTemp} |
| | | </if> |
| | | |
| | | <if test="endTemp != null"> |
| | | and cast(json->'$.temp' as decimal(10, 1)) <![CDATA[<=]]> #{endTemp} |
| | | and cast(json->'$.temp' as decimal(10, 0)) <![CDATA[<=]]> #{endTemp} |
| | | </if> |
| | | |
| | | <if test="startPressure != null"> |
| | |
| | | <foreach collection="hours" open="(" separator="," close=")" item="hour"> |
| | | #{hour} |
| | | </foreach> |
| | | </if> |
| | | |
| | | <if test="month != null"> |
| | | and DATE_FORMAT(time, '%m') = #{month} |
| | | </if> |
| | | </where> |
| | | </select> |