| | |
| | | and o.id=mp.organization_id |
| | | and a.id=#{id}; |
| | | </select> |
| | | <select id="byIdGetMonitorPoint" resultType="com.moral.entity.MonitorPoint"> |
| | | SELECT * FROM `monitor_point` where id=#{id} |
| | | </select> |
| | | |
| | | <select id="getFirstMonitorPointByAreaCode" resultType="com.moral.entity.MonitorPoint" resultMap="BaseResultMap"> |
| | | select * from monitor_point where area_code=#{areaCode} limit 0,1 |
| | |
| | | select * from monitor_point |
| | | where |
| | | <if test="areaCode != null"> |
| | | area_Code = #{areaCode} |
| | | area_code = #{areaCode} |
| | | </if> |
| | | |
| | | <if test="cityCode != null"> |
| | | city_Code = #{cityCode} |
| | | city_code = #{cityCode} |
| | | </if> |
| | | </select> |
| | | </mapper> |