|
|
|
@ -6,11 +6,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
|
|
|
|
|
|
<resultMap type="DmsRecordInspect" id="DmsRecordInspectResult">
|
|
|
|
<resultMap type="DmsRecordInspect" id="DmsRecordInspectResult">
|
|
|
|
<result property="recordInspectId" column="record_inspect_id" />
|
|
|
|
<result property="recordInspectId" column="record_inspect_id" />
|
|
|
|
|
|
|
|
<result property="planInspectId" column="plan_inspect_id" />
|
|
|
|
<result property="billsInspectCode" column="bills_inspect_code" />
|
|
|
|
<result property="billsInspectCode" column="bills_inspect_code" />
|
|
|
|
<result property="inspectType" column="inspect_type" />
|
|
|
|
<result property="inspectType" column="inspect_type" />
|
|
|
|
<result property="inspectRouteId" column="inspect_route_id" />
|
|
|
|
<result property="inspectRouteId" column="inspect_route_id" />
|
|
|
|
<result property="deviceAmount" column="device_amount" />
|
|
|
|
<result property="deviceAmount" column="device_amount" />
|
|
|
|
<result property="planTime" column="plan_time" />
|
|
|
|
<result property="planBeginTime" column="plan_begin_time" />
|
|
|
|
|
|
|
|
<result property="planEndTime" column="plan_end_time" />
|
|
|
|
<result property="realBeginTime" column="real_begin_time" />
|
|
|
|
<result property="realBeginTime" column="real_begin_time" />
|
|
|
|
<result property="realEndTime" column="real_end_time" />
|
|
|
|
<result property="realEndTime" column="real_end_time" />
|
|
|
|
<result property="performer" column="performer" />
|
|
|
|
<result property="performer" column="performer" />
|
|
|
|
@ -25,7 +27,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
</resultMap>
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
|
|
<sql id="selectDmsRecordInspectVo">
|
|
|
|
<sql id="selectDmsRecordInspectVo">
|
|
|
|
select record_inspect_id, bills_inspect_code, inspect_type, inspect_route_id, device_amount, plan_time, real_begin_time, real_end_time, performer, inspect_status, inspect_duration, is_flag, remark, create_by, create_time, update_by, update_time from dms_record_inspect
|
|
|
|
select record_inspect_id,plan_inspect_id,bills_inspect_code, inspect_type, inspect_route_id, device_amount,
|
|
|
|
|
|
|
|
plan_begin_time,plan_end_time, real_begin_time, real_end_time, performer, inspect_status, inspect_duration,
|
|
|
|
|
|
|
|
is_flag, remark, create_by, create_time, update_by, update_time from dms_record_inspect
|
|
|
|
</sql>
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectDmsRecordInspectList" parameterType="DmsRecordInspect" resultMap="DmsRecordInspectResult">
|
|
|
|
<select id="selectDmsRecordInspectList" parameterType="DmsRecordInspect" resultMap="DmsRecordInspectResult">
|
|
|
|
@ -35,7 +39,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
<if test="inspectType != null and inspectType != ''"> and inspect_type = #{inspectType}</if>
|
|
|
|
<if test="inspectType != null and inspectType != ''"> and inspect_type = #{inspectType}</if>
|
|
|
|
<if test="inspectRouteId != null "> and inspect_route_id = #{inspectRouteId}</if>
|
|
|
|
<if test="inspectRouteId != null "> and inspect_route_id = #{inspectRouteId}</if>
|
|
|
|
<if test="deviceAmount != null "> and device_amount = #{deviceAmount}</if>
|
|
|
|
<if test="deviceAmount != null "> and device_amount = #{deviceAmount}</if>
|
|
|
|
<if test="planTime != null "> and plan_time = #{planTime}</if>
|
|
|
|
<if test="planBeginTime != null "> and #{planBeginTime}>=plan_begin_time</if>
|
|
|
|
|
|
|
|
<if test="planEndTime != null "> and planEndTime >= #{plan_end_time}</if>
|
|
|
|
<if test="realBeginTime != null "> and #{realBeginTime}>=real_begin_time</if>
|
|
|
|
<if test="realBeginTime != null "> and #{realBeginTime}>=real_begin_time</if>
|
|
|
|
<if test="realEndTime != null "> and real_end_time >= #{realEndTime}</if>
|
|
|
|
<if test="realEndTime != null "> and real_end_time >= #{realEndTime}</if>
|
|
|
|
<if test="performer != null and performer != ''"> and performer = #{performer}</if>
|
|
|
|
<if test="performer != null and performer != ''"> and performer = #{performer}</if>
|
|
|
|
@ -54,10 +59,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
insert into dms_record_inspect
|
|
|
|
insert into dms_record_inspect
|
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
<if test="billsInspectCode != null">bills_inspect_code,</if>
|
|
|
|
<if test="billsInspectCode != null">bills_inspect_code,</if>
|
|
|
|
|
|
|
|
<if test="planInspectId != null">plan_inspect_id,</if>
|
|
|
|
<if test="inspectType != null and inspectType != ''">inspect_type,</if>
|
|
|
|
<if test="inspectType != null and inspectType != ''">inspect_type,</if>
|
|
|
|
<if test="inspectRouteId != null">inspect_route_id,</if>
|
|
|
|
<if test="inspectRouteId != null">inspect_route_id,</if>
|
|
|
|
<if test="deviceAmount != null">device_amount,</if>
|
|
|
|
<if test="deviceAmount != null">device_amount,</if>
|
|
|
|
<if test="planTime != null">plan_time,</if>
|
|
|
|
<if test="planBeginTime != null">plan_begin_time,</if>
|
|
|
|
|
|
|
|
<if test="planEndTime != null">plan_begin_time,</if>
|
|
|
|
<if test="realBeginTime != null">real_begin_time,</if>
|
|
|
|
<if test="realBeginTime != null">real_begin_time,</if>
|
|
|
|
<if test="realEndTime != null">real_end_time,</if>
|
|
|
|
<if test="realEndTime != null">real_end_time,</if>
|
|
|
|
<if test="performer != null">performer,</if>
|
|
|
|
<if test="performer != null">performer,</if>
|
|
|
|
@ -72,10 +79,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
</trim>
|
|
|
|
</trim>
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
<if test="billsInspectCode != null">#{billsInspectCode},</if>
|
|
|
|
<if test="billsInspectCode != null">#{billsInspectCode},</if>
|
|
|
|
|
|
|
|
<if test="planInspectId != null">#{planInspectId},</if>
|
|
|
|
<if test="inspectType != null and inspectType != ''">#{inspectType},</if>
|
|
|
|
<if test="inspectType != null and inspectType != ''">#{inspectType},</if>
|
|
|
|
<if test="inspectRouteId != null">#{inspectRouteId},</if>
|
|
|
|
<if test="inspectRouteId != null">#{inspectRouteId},</if>
|
|
|
|
<if test="deviceAmount != null">#{deviceAmount},</if>
|
|
|
|
<if test="deviceAmount != null">#{deviceAmount},</if>
|
|
|
|
<if test="planTime != null">#{planTime},</if>
|
|
|
|
<if test="planBeginTime != null">#{planBeginTime},</if>
|
|
|
|
|
|
|
|
<if test="planEndTime != null">#{planEndTime},</if>
|
|
|
|
<if test="realBeginTime != null">#{realBeginTime},</if>
|
|
|
|
<if test="realBeginTime != null">#{realBeginTime},</if>
|
|
|
|
<if test="realEndTime != null">#{realEndTime},</if>
|
|
|
|
<if test="realEndTime != null">#{realEndTime},</if>
|
|
|
|
<if test="performer != null">#{performer},</if>
|
|
|
|
<if test="performer != null">#{performer},</if>
|
|
|
|
@ -94,10 +103,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
update dms_record_inspect
|
|
|
|
update dms_record_inspect
|
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
|
<if test="billsInspectCode != null">bills_inspect_code = #{billsInspectCode},</if>
|
|
|
|
<if test="billsInspectCode != null">bills_inspect_code = #{billsInspectCode},</if>
|
|
|
|
|
|
|
|
<if test="planInspectCode != null">plan_inspect_id = #{planInspectCode},</if>
|
|
|
|
<if test="inspectType != null and inspectType != ''">inspect_type = #{inspectType},</if>
|
|
|
|
<if test="inspectType != null and inspectType != ''">inspect_type = #{inspectType},</if>
|
|
|
|
<if test="inspectRouteId != null">inspect_route_id = #{inspectRouteId},</if>
|
|
|
|
<if test="inspectRouteId != null">inspect_route_id = #{inspectRouteId},</if>
|
|
|
|
<if test="deviceAmount != null">device_amount = #{deviceAmount},</if>
|
|
|
|
<if test="deviceAmount != null">device_amount = #{deviceAmount},</if>
|
|
|
|
<if test="planTime != null">plan_time = #{planTime},</if>
|
|
|
|
<if test="planBeginTime != null">plan_begin_time = #{planBeginTime},</if>
|
|
|
|
|
|
|
|
<if test="planEndTime != null">plan_end_time = #{planEndTime},</if>
|
|
|
|
<if test="realBeginTime != null">real_begin_time = #{realBeginTime},</if>
|
|
|
|
<if test="realBeginTime != null">real_begin_time = #{realBeginTime},</if>
|
|
|
|
<if test="realEndTime != null">real_end_time = #{realEndTime},</if>
|
|
|
|
<if test="realEndTime != null">real_end_time = #{realEndTime},</if>
|
|
|
|
<if test="performer != null">performer = #{performer},</if>
|
|
|
|
<if test="performer != null">performer = #{performer},</if>
|
|
|
|
|