|
|
|
@ -44,6 +44,18 @@ |
|
|
|
eo.asset_no, |
|
|
|
eo.model_no as modelNo, |
|
|
|
eo.asset_remark, |
|
|
|
eo.workshop, |
|
|
|
es.Phone as contactMethod, |
|
|
|
eo.warranty_start_date as warrantyStartDate, |
|
|
|
eo.warranty_end_date as warrantyEndDate, |
|
|
|
eo.warranty_expired_flag as warrantyExpiredFlag, |
|
|
|
eo.voltage, |
|
|
|
eo.current_a as currentA, |
|
|
|
eo.power_kw as powerKw, |
|
|
|
eo.total_size as totalSize, |
|
|
|
eo.split_size as splitSize, |
|
|
|
eo.total_weight as totalWeight, |
|
|
|
eo.split_module_weight as splitModuleWeight, |
|
|
|
eo.standard_maintenance_duration, |
|
|
|
eo.time_out_maintenance_duration, |
|
|
|
eo.standard_response_duration, |
|
|
|
@ -132,9 +144,28 @@ |
|
|
|
ClosedDate, |
|
|
|
ClosedBy, |
|
|
|
resourceID, |
|
|
|
model_no as modelNo |
|
|
|
FROM eam_object |
|
|
|
where site = #{site} and bu_no = #{buNo} AND ObjectID = #{objectID} |
|
|
|
model_no as modelNo, |
|
|
|
( |
|
|
|
SELECT TOP 1 s.Phone |
|
|
|
FROM eam_supplier s |
|
|
|
WHERE s.site = eo.site |
|
|
|
AND s.bu_no = eo.bu_no |
|
|
|
AND s.SupplierID = eo.SupplierID |
|
|
|
AND s.Active = 'Y' |
|
|
|
) as contactMethod, |
|
|
|
workshop, |
|
|
|
warranty_start_date as warrantyStartDate, |
|
|
|
warranty_end_date as warrantyEndDate, |
|
|
|
warranty_expired_flag as warrantyExpiredFlag, |
|
|
|
voltage, |
|
|
|
current_a as currentA, |
|
|
|
power_kw as powerKw, |
|
|
|
total_size as totalSize, |
|
|
|
split_size as splitSize, |
|
|
|
total_weight as totalWeight, |
|
|
|
split_module_weight as splitModuleWeight |
|
|
|
FROM eam_object eo |
|
|
|
where eo.site = #{site} and eo.bu_no = #{buNo} AND eo.ObjectID = #{objectID} |
|
|
|
</select> |
|
|
|
|
|
|
|
<!--插入设备清单的数据--> |
|
|
|
@ -142,12 +173,14 @@ |
|
|
|
insert into eam_object |
|
|
|
(Site, bu_no, ObjectID, ObjectDesc, LocationID, FamilyID, GroupID, SupplierID, ManufacturerID, SeqNo, PurchessDate, |
|
|
|
Active, CreateDate, CreateBy, resourceID, update_date, update_by, dept_id, asset_no, model_no, asset_remark, standard_maintenance_duration, |
|
|
|
time_out_maintenance_duration, standard_response_duration, time_out_response_duration, cycle_time_send, |
|
|
|
workshop, warranty_start_date, warranty_end_date, warranty_expired_flag, voltage, current_a, power_kw, |
|
|
|
total_size, split_size, total_weight, split_module_weight, time_out_maintenance_duration, standard_response_duration, time_out_response_duration, cycle_time_send, |
|
|
|
public_facilities_flag, calibration_enable_flag, calibration_period) |
|
|
|
values |
|
|
|
(#{site}, #{buNo}, #{objectID}, #{objectDesc}, #{locationID}, #{familyID}, #{groupID}, #{supplierID}, #{manufacturerID}, #{seqNo}, #{purchessDate}, |
|
|
|
#{active}, #{createDate}, #{createBy}, #{resourceID}, getDate(), #{updateBy}, #{deptID}, #{assetNo}, #{modelNo}, #{assetRemark}, #{standardMaintenanceDuration}, |
|
|
|
#{timeOutMaintenanceDuration}, #{standardResponseDuration}, #{timeOutResponseDuration}, #{cycleTimeSend}, #{publicFacilitiesFlag}, |
|
|
|
#{workshop}, #{warrantyStartDate}, #{warrantyEndDate}, #{warrantyExpiredFlag}, #{voltage}, #{currentA}, #{powerKw}, |
|
|
|
#{totalSize}, #{splitSize}, #{totalWeight}, #{splitModuleWeight}, #{timeOutMaintenanceDuration}, #{standardResponseDuration}, #{timeOutResponseDuration}, #{cycleTimeSend}, #{publicFacilitiesFlag}, |
|
|
|
#{calibrationEnableFlag}, #{calibrationPeriod,jdbcType=INTEGER}) |
|
|
|
</insert> |
|
|
|
|
|
|
|
@ -172,6 +205,17 @@ |
|
|
|
asset_no = #{assetNo}, |
|
|
|
model_no = #{modelNo}, |
|
|
|
asset_remark = #{assetRemark}, |
|
|
|
workshop = #{workshop}, |
|
|
|
warranty_start_date = #{warrantyStartDate}, |
|
|
|
warranty_end_date = #{warrantyEndDate}, |
|
|
|
warranty_expired_flag = #{warrantyExpiredFlag}, |
|
|
|
voltage = #{voltage}, |
|
|
|
current_a = #{currentA}, |
|
|
|
power_kw = #{powerKw}, |
|
|
|
total_size = #{totalSize}, |
|
|
|
split_size = #{splitSize}, |
|
|
|
total_weight = #{totalWeight}, |
|
|
|
split_module_weight = #{splitModuleWeight}, |
|
|
|
standard_maintenance_duration = #{standardMaintenanceDuration}, |
|
|
|
time_out_maintenance_duration = #{timeOutMaintenanceDuration}, |
|
|
|
standard_response_duration = #{standardResponseDuration}, |
|
|
|
|