|
|
|
|
@ -31,15 +31,31 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<sql id="selectDmsBillsMaintDetailVo">
|
|
|
|
|
select bills_maint_detail_id, maint_instance_id, device_id, station_id, maint_standard_id, operation_description, maint_status, is_flag, remark, create_by, create_time, update_by, update_time from dms_bills_maint_detail
|
|
|
|
|
select
|
|
|
|
|
bills_maint_detail_id,
|
|
|
|
|
maint_instance_id,
|
|
|
|
|
machine_id as device_id,
|
|
|
|
|
maint_station_id as station_id,
|
|
|
|
|
maint_standard_id,
|
|
|
|
|
operation_description,
|
|
|
|
|
maint_status,
|
|
|
|
|
is_flag,
|
|
|
|
|
remark,
|
|
|
|
|
create_by,
|
|
|
|
|
create_time,
|
|
|
|
|
update_by,
|
|
|
|
|
update_time,
|
|
|
|
|
begin_time,
|
|
|
|
|
end_time
|
|
|
|
|
from dms_bills_maint_detail
|
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
<select id="selectDmsBillsMaintDetailList" parameterType="DmsBillsMaintDetail" resultMap="DmsBillsMaintDetailResult">
|
|
|
|
|
<include refid="selectDmsBillsMaintDetailVo"/>
|
|
|
|
|
<where>
|
|
|
|
|
<if test="maintInstanceId != null "> and maint_instance_id = #{maintInstanceId}</if>
|
|
|
|
|
<if test="deviceId != null "> and device_id = #{deviceId}</if>
|
|
|
|
|
<if test="stationId != null "> and station_id = #{stationId}</if>
|
|
|
|
|
<if test="deviceId != null "> and machine_id = #{deviceId}</if>
|
|
|
|
|
<if test="stationId != null "> and maint_station_id = #{stationId}</if>
|
|
|
|
|
<if test="maintStandardId != null "> and maint_standard_id = #{maintStandardId}</if>
|
|
|
|
|
<if test="operationDescription != null and operationDescription != ''"> and operation_description = #{operationDescription}</if>
|
|
|
|
|
<if test="maintStatus != null "> and maint_status = #{maintStatus}</if>
|
|
|
|
|
@ -60,8 +76,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="billsMaintDetailId != null">bills_maint_detail_id,</if>
|
|
|
|
|
<if test="maintInstanceId != null">maint_instance_id,</if>
|
|
|
|
|
<if test="deviceId != null">device_id,</if>
|
|
|
|
|
<if test="stationId != null">station_id,</if>
|
|
|
|
|
<if test="deviceId != null">machine_id,</if>
|
|
|
|
|
<if test="stationId != null">maint_station_id,</if>
|
|
|
|
|
<if test="maintStandardId != null">maint_standard_id,</if>
|
|
|
|
|
<if test="operationDescription != null">operation_description,</if>
|
|
|
|
|
<if test="maintStatus != null">maint_status,</if>
|
|
|
|
|
@ -97,8 +113,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
update dms_bills_maint_detail
|
|
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
|
|
<if test="maintInstanceId != null">maint_instance_id = #{maintInstanceId},</if>
|
|
|
|
|
<if test="deviceId != null">device_id = #{deviceId},</if>
|
|
|
|
|
<if test="stationId != null">station_id = #{stationId},</if>
|
|
|
|
|
<if test="deviceId != null">machine_id = #{deviceId},</if>
|
|
|
|
|
<if test="stationId != null">maint_station_id = #{stationId},</if>
|
|
|
|
|
<if test="maintStandardId != null">maint_standard_id = #{maintStandardId},</if>
|
|
|
|
|
<if test="operationDescription != null">operation_description = #{operationDescription},</if>
|
|
|
|
|
<if test="maintStatus != null">maint_status = #{maintStatus},</if>
|
|
|
|
|
@ -132,8 +148,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
select
|
|
|
|
|
dbmd.bills_maint_detail_id,
|
|
|
|
|
dbmd.maint_instance_id,
|
|
|
|
|
dbmd.machine_id,
|
|
|
|
|
dbmd.maint_station_id,
|
|
|
|
|
dbmd.machine_id as device_id,
|
|
|
|
|
dbmd.maint_station_id as station_id,
|
|
|
|
|
dbmd.maint_standard_id,
|
|
|
|
|
dbmd.operation_description,
|
|
|
|
|
dbmd.maint_status,
|
|
|
|
|
@ -164,7 +180,24 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
</select>
|
|
|
|
|
<select id="selectDetailList" resultType="com.aucma.dms.domain.DmsBillsMaintDetail"
|
|
|
|
|
parameterType="java.lang.Long">
|
|
|
|
|
select * from dms_bills_maint_detail where maint_instance_id = #{maintInstanceId}
|
|
|
|
|
select
|
|
|
|
|
bills_maint_detail_id,
|
|
|
|
|
maint_instance_id,
|
|
|
|
|
machine_id as device_id,
|
|
|
|
|
maint_station_id as station_id,
|
|
|
|
|
maint_standard_id,
|
|
|
|
|
operation_description,
|
|
|
|
|
maint_status,
|
|
|
|
|
is_flag,
|
|
|
|
|
remark,
|
|
|
|
|
create_by,
|
|
|
|
|
create_time,
|
|
|
|
|
update_by,
|
|
|
|
|
update_time,
|
|
|
|
|
begin_time,
|
|
|
|
|
end_time
|
|
|
|
|
from dms_bills_maint_detail
|
|
|
|
|
where maint_instance_id = #{maintInstanceId}
|
|
|
|
|
</select>
|
|
|
|
|
<select id="selectMainStation" resultType="com.aucma.dms.domain.DmsBaseMaintStation"
|
|
|
|
|
parameterType="java.lang.Long">
|
|
|
|
|
|