|
|
|
|
@ -10,11 +10,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<result property="sceneId" column="scene_id" />
|
|
|
|
|
<result property="fenceType" column="fence_type" />
|
|
|
|
|
<result property="effectiveTimeFlag" column="effective_time_flag" />
|
|
|
|
|
<result property="timeZone" column="time_zone" />
|
|
|
|
|
<result property="effectiveTime" column="effective_time" />
|
|
|
|
|
<result property="triggerStatus" column="trigger_status" />
|
|
|
|
|
<result property="areaShapeFlag" column="area_shape_flag" />
|
|
|
|
|
<result property="polygonAreaRange" column="polygon_area_range" />
|
|
|
|
|
<result property="circleAreaRange" column="circle_area_range" />
|
|
|
|
|
<result property="areaRange" column="area_range" />
|
|
|
|
|
<result property="fencePushFlag" column="fence_push_flag" />
|
|
|
|
|
<result property="fencePushContent" column="fence_push_content" />
|
|
|
|
|
<result property="fenceRecoverContent" column="fence_recover_content" />
|
|
|
|
|
@ -27,7 +27,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<sql id="selectHwElectronicFenceVo">
|
|
|
|
|
select electronic_fence_id, electronic_fence_name, scene_id, fence_type, effective_time_flag, effective_time, trigger_status, area_shape_flag, polygon_area_range, circle_area_range, fence_push_flag, fence_push_content, fence_recover_content, remark, create_by, create_time, update_by, update_time, fence_field from hw_electronic_fence
|
|
|
|
|
select electronic_fence_id, electronic_fence_name, scene_id, fence_type, effective_time_flag, time_zone, effective_time, trigger_status, area_shape_flag, area_range, fence_push_flag, fence_push_content, fence_recover_content, remark, create_by, create_time, update_by, update_time, fence_field from hw_electronic_fence
|
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
<select id="selectHwElectronicFenceList" parameterType="HwElectronicFence" resultMap="HwElectronicFenceResult">
|
|
|
|
|
@ -35,14 +35,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<where>
|
|
|
|
|
<if test="electronicFenceName != null and electronicFenceName != ''"> and electronic_fence_name like concat('%', #{electronicFenceName}, '%')</if>
|
|
|
|
|
<if test="sceneId != null "> and scene_id = #{sceneId}</if>
|
|
|
|
|
<if test="fenceType != null "> and fence_type = #{fenceType}</if>
|
|
|
|
|
<if test="effectiveTimeFlag != null "> and effective_time_flag = #{effectiveTimeFlag}</if>
|
|
|
|
|
<if test="fenceType != null and fenceType != ''"> and fence_type = #{fenceType}</if>
|
|
|
|
|
<if test="effectiveTimeFlag != null and effectiveTimeFlag != ''"> and effective_time_flag = #{effectiveTimeFlag}</if>
|
|
|
|
|
<if test="timeZone != null and timeZone != ''"> and time_zone = #{timeZone}</if>
|
|
|
|
|
<if test="effectiveTime != null and effectiveTime != ''"> and effective_time = #{effectiveTime}</if>
|
|
|
|
|
<if test="triggerStatus != null "> and trigger_status = #{triggerStatus}</if>
|
|
|
|
|
<if test="areaShapeFlag != null "> and area_shape_flag = #{areaShapeFlag}</if>
|
|
|
|
|
<if test="polygonAreaRange != null and polygonAreaRange != ''"> and polygon_area_range = #{polygonAreaRange}</if>
|
|
|
|
|
<if test="circleAreaRange != null and circleAreaRange != ''"> and circle_area_range = #{circleAreaRange}</if>
|
|
|
|
|
<if test="fencePushFlag != null "> and fence_push_flag = #{fencePushFlag}</if>
|
|
|
|
|
<if test="triggerStatus != null and triggerStatus != ''"> and trigger_status = #{triggerStatus}</if>
|
|
|
|
|
<if test="areaShapeFlag != null and areaShapeFlag != ''"> and area_shape_flag = #{areaShapeFlag}</if>
|
|
|
|
|
<if test="areaRange != null and areaRange != ''"> and area_range = #{areaRange}</if>
|
|
|
|
|
<if test="fencePushFlag != null and fencePushFlag != ''"> and fence_push_flag = #{fencePushFlag}</if>
|
|
|
|
|
<if test="fencePushContent != null and fencePushContent != ''"> and fence_push_content = #{fencePushContent}</if>
|
|
|
|
|
<if test="fenceRecoverContent != null and fenceRecoverContent != ''"> and fence_recover_content = #{fenceRecoverContent}</if>
|
|
|
|
|
<if test="fenceField != null and fenceField != ''"> and fence_field = #{fenceField}</if>
|
|
|
|
|
@ -59,14 +59,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="electronicFenceName != null and electronicFenceName != ''">electronic_fence_name,</if>
|
|
|
|
|
<if test="sceneId != null">scene_id,</if>
|
|
|
|
|
<if test="fenceType != null">fence_type,</if>
|
|
|
|
|
<if test="effectiveTimeFlag != null">effective_time_flag,</if>
|
|
|
|
|
<if test="fenceType != null and fenceType != ''">fence_type,</if>
|
|
|
|
|
<if test="effectiveTimeFlag != null and effectiveTimeFlag != ''">effective_time_flag,</if>
|
|
|
|
|
<if test="timeZone != null">time_zone,</if>
|
|
|
|
|
<if test="effectiveTime != null and effectiveTime != ''">effective_time,</if>
|
|
|
|
|
<if test="triggerStatus != null">trigger_status,</if>
|
|
|
|
|
<if test="areaShapeFlag != null">area_shape_flag,</if>
|
|
|
|
|
<if test="polygonAreaRange != null">polygon_area_range,</if>
|
|
|
|
|
<if test="circleAreaRange != null">circle_area_range,</if>
|
|
|
|
|
<if test="fencePushFlag != null">fence_push_flag,</if>
|
|
|
|
|
<if test="triggerStatus != null and triggerStatus != ''">trigger_status,</if>
|
|
|
|
|
<if test="areaShapeFlag != null and areaShapeFlag != ''">area_shape_flag,</if>
|
|
|
|
|
<if test="areaRange != null">area_range,</if>
|
|
|
|
|
<if test="fencePushFlag != null and fencePushFlag != ''">fence_push_flag,</if>
|
|
|
|
|
<if test="fencePushContent != null">fence_push_content,</if>
|
|
|
|
|
<if test="fenceRecoverContent != null">fence_recover_content,</if>
|
|
|
|
|
<if test="remark != null">remark,</if>
|
|
|
|
|
@ -79,14 +79,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="electronicFenceName != null and electronicFenceName != ''">#{electronicFenceName},</if>
|
|
|
|
|
<if test="sceneId != null">#{sceneId},</if>
|
|
|
|
|
<if test="fenceType != null">#{fenceType},</if>
|
|
|
|
|
<if test="effectiveTimeFlag != null">#{effectiveTimeFlag},</if>
|
|
|
|
|
<if test="fenceType != null and fenceType != ''">#{fenceType},</if>
|
|
|
|
|
<if test="effectiveTimeFlag != null and effectiveTimeFlag != ''">#{effectiveTimeFlag},</if>
|
|
|
|
|
<if test="timeZone != null">#{timeZone},</if>
|
|
|
|
|
<if test="effectiveTime != null and effectiveTime != ''">#{effectiveTime},</if>
|
|
|
|
|
<if test="triggerStatus != null">#{triggerStatus},</if>
|
|
|
|
|
<if test="areaShapeFlag != null">#{areaShapeFlag},</if>
|
|
|
|
|
<if test="polygonAreaRange != null">#{polygonAreaRange},</if>
|
|
|
|
|
<if test="circleAreaRange != null">#{circleAreaRange},</if>
|
|
|
|
|
<if test="fencePushFlag != null">#{fencePushFlag},</if>
|
|
|
|
|
<if test="triggerStatus != null and triggerStatus != ''">#{triggerStatus},</if>
|
|
|
|
|
<if test="areaShapeFlag != null and areaShapeFlag != ''">#{areaShapeFlag},</if>
|
|
|
|
|
<if test="areaRange != null">#{areaRange},</if>
|
|
|
|
|
<if test="fencePushFlag != null and fencePushFlag != ''">#{fencePushFlag},</if>
|
|
|
|
|
<if test="fencePushContent != null">#{fencePushContent},</if>
|
|
|
|
|
<if test="fenceRecoverContent != null">#{fenceRecoverContent},</if>
|
|
|
|
|
<if test="remark != null">#{remark},</if>
|
|
|
|
|
@ -103,14 +103,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
|
|
<if test="electronicFenceName != null and electronicFenceName != ''">electronic_fence_name = #{electronicFenceName},</if>
|
|
|
|
|
<if test="sceneId != null">scene_id = #{sceneId},</if>
|
|
|
|
|
<if test="fenceType != null">fence_type = #{fenceType},</if>
|
|
|
|
|
<if test="effectiveTimeFlag != null">effective_time_flag = #{effectiveTimeFlag},</if>
|
|
|
|
|
<if test="fenceType != null and fenceType != ''">fence_type = #{fenceType},</if>
|
|
|
|
|
<if test="effectiveTimeFlag != null and effectiveTimeFlag != ''">effective_time_flag = #{effectiveTimeFlag},</if>
|
|
|
|
|
<if test="timeZone != null">time_zone = #{timeZone},</if>
|
|
|
|
|
<if test="effectiveTime != null and effectiveTime != ''">effective_time = #{effectiveTime},</if>
|
|
|
|
|
<if test="triggerStatus != null">trigger_status = #{triggerStatus},</if>
|
|
|
|
|
<if test="areaShapeFlag != null">area_shape_flag = #{areaShapeFlag},</if>
|
|
|
|
|
<if test="polygonAreaRange != null">polygon_area_range = #{polygonAreaRange},</if>
|
|
|
|
|
<if test="circleAreaRange != null">circle_area_range = #{circleAreaRange},</if>
|
|
|
|
|
<if test="fencePushFlag != null">fence_push_flag = #{fencePushFlag},</if>
|
|
|
|
|
<if test="triggerStatus != null and triggerStatus != ''">trigger_status = #{triggerStatus},</if>
|
|
|
|
|
<if test="areaShapeFlag != null and areaShapeFlag != ''">area_shape_flag = #{areaShapeFlag},</if>
|
|
|
|
|
<if test="areaRange != null">area_range = #{areaRange},</if>
|
|
|
|
|
<if test="fencePushFlag != null and fencePushFlag != ''">fence_push_flag = #{fencePushFlag},</if>
|
|
|
|
|
<if test="fencePushContent != null">fence_push_content = #{fencePushContent},</if>
|
|
|
|
|
<if test="fenceRecoverContent != null">fence_recover_content = #{fenceRecoverContent},</if>
|
|
|
|
|
<if test="remark != null">remark = #{remark},</if>
|
|
|
|
|
|