| | |
| | | <result column="desc" property="desc" /> |
| | | </resultMap> |
| | | |
| | | <sql id="Base_Column_List"> |
| | | mp.id,mp.name,mp.longitude,mp.latitude,mp.province_code,mp.city_code,mp.area_code,mp.address,mp.organization_id,mp.create_time,mp.update_time,mp.is_delete,mp.desc |
| | | </sql> |
| | | |
| | | <update id="updateMonitorPoint" parameterType="java.util.Map"> |
| | | update monitor_point |
| | | <set> |
| | | <if test="name != null"> |
| | | name = #{name}, |
| | | </if> |
| | | <if test="longitude != null"> |
| | | longitude = #{longitude}, |
| | | </if> |
| | | <if test="latitude != null"> |
| | | latitude = #{latitude}, |
| | | </if> |
| | | <if test="province_code != null"> |
| | | province_code = #{province_code}, |
| | | </if> |
| | | <if test="city_code != null"> |
| | | city_code = #{city_code}, |
| | | </if> |
| | | <if test="area_code != null"> |
| | | area_code = #{area_code}, |
| | | </if> |
| | | <if test="address != null"> |
| | | address = #{address}, |
| | | </if> |
| | | <if test="organization_id != null"> |
| | | organization_id = #{organization_id}, |
| | | </if> |
| | | <if test="desc != null"> |
| | | `desc` = #{desc}, |
| | | </if> |
| | | <if test="isDelete != null"> |
| | | is_delete = #{isDelete}, |
| | | </if> |
| | | </set> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | </mapper> |