|
|
|
|
@ -165,38 +165,50 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<insert id="batchDmsBillsMaintDetail">
|
|
|
|
|
insert into dms_bills_maint_detail( 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) values
|
|
|
|
|
<foreach item="item" index="index" collection="list" separator=",">
|
|
|
|
|
( HAIWEI.SEQ_DMS_MAINT_DETAIL.NEXTVAL,
|
|
|
|
|
#{item.maintInstanceId,jdbcType=NUMERIC},
|
|
|
|
|
#{item.deviceId,jdbcType=NUMERIC},
|
|
|
|
|
#{item.stationId,jdbcType=NUMERIC},
|
|
|
|
|
#{item.maintStandardId,jdbcType=NUMERIC},
|
|
|
|
|
#{item.operationDescription,jdbcType=VARCHAR},
|
|
|
|
|
#{item.maintStatus,jdbcType=NUMERIC},
|
|
|
|
|
#{item.isFlag,jdbcType=NUMERIC},
|
|
|
|
|
#{item.remark,jdbcType=VARCHAR},
|
|
|
|
|
#{item.createBy,jdbcType=NUMERIC},
|
|
|
|
|
#{item.createTime,jdbcType=TIMESTAMP},
|
|
|
|
|
#{item.updateBy,jdbcType=NUMERIC},
|
|
|
|
|
#{item.updateTime,jdbcType=TIMESTAMP})
|
|
|
|
|
insert all
|
|
|
|
|
<foreach item="item" index="index" collection="list">
|
|
|
|
|
into dms_bills_maint_detail(
|
|
|
|
|
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
|
|
|
|
|
) values (
|
|
|
|
|
HAIWEI.SEQ_DMS_MAINT_DETAIL.NEXTVAL,
|
|
|
|
|
#{item.maintInstanceId,jdbcType=NUMERIC},
|
|
|
|
|
#{item.deviceId,jdbcType=NUMERIC},
|
|
|
|
|
#{item.stationId,jdbcType=NUMERIC},
|
|
|
|
|
#{item.maintStandardId,jdbcType=NUMERIC},
|
|
|
|
|
#{item.operationDescription,jdbcType=VARCHAR},
|
|
|
|
|
#{item.maintStatus,jdbcType=NUMERIC},
|
|
|
|
|
#{item.isFlag,jdbcType=NUMERIC},
|
|
|
|
|
#{item.remark,jdbcType=VARCHAR},
|
|
|
|
|
#{item.createBy,jdbcType=NUMERIC},
|
|
|
|
|
#{item.createTime,jdbcType=TIMESTAMP},
|
|
|
|
|
#{item.updateBy,jdbcType=NUMERIC},
|
|
|
|
|
#{item.updateTime,jdbcType=TIMESTAMP}
|
|
|
|
|
)
|
|
|
|
|
</foreach>
|
|
|
|
|
select 1 from dual
|
|
|
|
|
</insert>
|
|
|
|
|
<insert id="batchDmsProject">
|
|
|
|
|
insert into dms_bills_maint_detail_project( maint_detail_project_id, bills_maint_detail_id, maint_project_id, maint_project_name, maint_project_desc, maint_project_status, remark, create_by, create_time, update_by, update_time) values
|
|
|
|
|
<foreach item="item" index="index" collection="list" separator=",">
|
|
|
|
|
( HAIWEI.SEQ_DMS_MAINT_DTL_PROJ.NEXTVAL,
|
|
|
|
|
#{item.billsMaintDetailId,jdbcType=NUMERIC},
|
|
|
|
|
#{item.maintProjectId,jdbcType=NUMERIC},
|
|
|
|
|
#{item.maintProjectName,jdbcType=VARCHAR},
|
|
|
|
|
#{item.maintProjectDesc,jdbcType=VARCHAR},
|
|
|
|
|
#{item.maintProjectStatus,jdbcType=VARCHAR},
|
|
|
|
|
#{item.remark,jdbcType=VARCHAR},
|
|
|
|
|
#{item.createBy,jdbcType=NUMERIC},
|
|
|
|
|
#{item.createTime,jdbcType=TIMESTAMP},
|
|
|
|
|
#{item.updateBy,jdbcType=NUMERIC},
|
|
|
|
|
#{item.updateTime,jdbcType=TIMESTAMP})
|
|
|
|
|
insert all
|
|
|
|
|
<foreach item="item" index="index" collection="list">
|
|
|
|
|
into dms_bills_maint_detail_project(
|
|
|
|
|
maint_detail_project_id, bills_maint_detail_id, maint_project_id, maint_project_name,
|
|
|
|
|
maint_project_desc, maint_project_status, remark, create_by, create_time, update_by, update_time
|
|
|
|
|
) values (
|
|
|
|
|
HAIWEI.SEQ_DMS_MAINT_DTL_PROJ.NEXTVAL,
|
|
|
|
|
#{item.billsMaintDetailId,jdbcType=NUMERIC},
|
|
|
|
|
#{item.maintProjectId,jdbcType=NUMERIC},
|
|
|
|
|
#{item.maintProjectName,jdbcType=VARCHAR},
|
|
|
|
|
#{item.maintProjectDesc,jdbcType=VARCHAR},
|
|
|
|
|
#{item.maintProjectStatus,jdbcType=VARCHAR},
|
|
|
|
|
#{item.remark,jdbcType=VARCHAR},
|
|
|
|
|
#{item.createBy,jdbcType=NUMERIC},
|
|
|
|
|
#{item.createTime,jdbcType=TIMESTAMP},
|
|
|
|
|
#{item.updateBy,jdbcType=NUMERIC},
|
|
|
|
|
#{item.updateTime,jdbcType=TIMESTAMP}
|
|
|
|
|
)
|
|
|
|
|
</foreach>
|
|
|
|
|
select 1 from dual
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
<select id="selectNewestDmsBillsMaintInstance" parameterType="DmsBillsMaintInstance" resultMap="DmsBillsMaintInstanceResult">
|
|
|
|
|
|