|
|
|
|
@ -10,7 +10,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<result property="routeName" column="route_name" />
|
|
|
|
|
<result property="inspectType" column="inspect_type" />
|
|
|
|
|
<result property="cyclePeriod" column="cycle_period" />
|
|
|
|
|
<result property="deviceTypeId" column="device_type_id" />
|
|
|
|
|
<!-- <result property="deviceTypeId" column="device_type_id" />-->
|
|
|
|
|
<result property="isFlag" column="is_flag" />
|
|
|
|
|
<result property="createBy" column="create_by" />
|
|
|
|
|
<result property="createTime" column="create_time" />
|
|
|
|
|
@ -19,7 +19,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<sql id="selectDmsBaseInspectRouteVo">
|
|
|
|
|
select inspect_route_id, route_code, route_name, inspect_type, cycle_period, device_type_id, is_flag, create_by, create_time, update_by, update_time from dms_base_inspect_route
|
|
|
|
|
select inspect_route_id, route_code, route_name, inspect_type, cycle_period,
|
|
|
|
|
-- device_type_id,
|
|
|
|
|
is_flag, create_by, create_time, update_by, update_time from dms_base_inspect_route
|
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
<select id="selectDmsBaseInspectRouteList" parameterType="DmsBaseInspectRoute" resultMap="DmsBaseInspectRouteResult">
|
|
|
|
|
@ -30,7 +32,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="routeName != null and routeName != ''"> and route_name like concat('%', #{routeName}, '%')</if>
|
|
|
|
|
<if test="inspectType != null and inspectType != ''"> and inspect_type = #{inspectType}</if>
|
|
|
|
|
<if test="cyclePeriod != null and cyclePeriod != ''"> and cycle_period = #{cyclePeriod}</if>
|
|
|
|
|
<if test="deviceTypeId != null "> and device_type_id = #{deviceTypeId}</if>
|
|
|
|
|
<!-- <if test="deviceTypeId != null "> and device_type_id = #{deviceTypeId}</if>-->
|
|
|
|
|
<if test="isFlag != null and isFlag != ''"> and is_flag = #{isFlag}</if>
|
|
|
|
|
</where>
|
|
|
|
|
</select>
|
|
|
|
|
|