id,
measuring_point_name,
code_name,
data_unit,
measuring_point_type,
status,
create_date,
create_by,
update_date,
update_by
INSERT INTO sc_device_measuring_point (
id,
measuring_point_name,
code_name,
data_unit,
measuring_point_type,
status,
create_date,
create_by,
update_date,
update_by
) VALUES (
#{deviceMeasuringPoint.id,jdbcType=INTEGER},
#{deviceMeasuringPoint.measuringPointName,jdbcType=VARCHAR},
#{deviceMeasuringPoint.codeName,jdbcType=VARCHAR},
#{deviceMeasuringPoint.dataUnit,jdbcType=VARCHAR},
#{deviceMeasuringPoint.measuringPointType,jdbcType=INTEGER},
#{deviceMeasuringPoint.status,jdbcType=INTEGER},
#{deviceMeasuringPoint.createDate,jdbcType=TIMESTAMP},
#{deviceMeasuringPoint.createBy,jdbcType=VARCHAR},
#{deviceMeasuringPoint.updateDate,jdbcType=TIMESTAMP},
#{deviceMeasuringPoint.updateBy,jdbcType=VARCHAR}
)
INSERT INTO sc_device_measuring_point
id,
measuring_point_name,
code_name,
data_unit,
measuring_point_type,
status,
create_date,
create_by,
update_date,
update_by,
VALUES
#{deviceMeasuringPoint.id,jdbcType=INTEGER},
#{deviceMeasuringPoint.measuringPointName,jdbcType=VARCHAR},
#{deviceMeasuringPoint.codeName,jdbcType=VARCHAR},
#{deviceMeasuringPoint.dataUnit,jdbcType=VARCHAR},
#{deviceMeasuringPoint.measuringPointType,jdbcType=INTEGER},
#{deviceMeasuringPoint.status,jdbcType=INTEGER},
#{deviceMeasuringPoint.createDate,jdbcType=TIMESTAMP},
#{deviceMeasuringPoint.createBy,jdbcType=VARCHAR},
#{deviceMeasuringPoint.updateDate,jdbcType=TIMESTAMP},
#{deviceMeasuringPoint.updateBy,jdbcType=VARCHAR},
INSERT INTO sc_device_measuring_point (
id,
measuring_point_name,
code_name,
data_unit,
measuring_point_type,
status,
create_date,
create_by,
update_date,
update_by
)VALUES
(
#{deviceMeasuringPoint.id,jdbcType=INTEGER},
#{deviceMeasuringPoint.measuringPointName,jdbcType=VARCHAR},
#{deviceMeasuringPoint.codeName,jdbcType=VARCHAR},
#{deviceMeasuringPoint.dataUnit,jdbcType=VARCHAR},
#{deviceMeasuringPoint.measuringPointType,jdbcType=INTEGER},
#{deviceMeasuringPoint.status,jdbcType=INTEGER},
#{deviceMeasuringPoint.createDate,jdbcType=TIMESTAMP},
#{deviceMeasuringPoint.createBy,jdbcType=VARCHAR},
#{deviceMeasuringPoint.updateDate,jdbcType=TIMESTAMP},
#{deviceMeasuringPoint.updateBy,jdbcType=VARCHAR}
)
UPDATE sc_device_measuring_point
measuring_point_name= #{deviceMeasuringPoint.measuringPointName,jdbcType=VARCHAR},
code_name= #{deviceMeasuringPoint.codeName,jdbcType=VARCHAR},
data_unit= #{deviceMeasuringPoint.dataUnit,jdbcType=VARCHAR},
measuring_point_type= #{deviceMeasuringPoint.measuringPointType,jdbcType=INTEGER},
status= #{deviceMeasuringPoint.status,jdbcType=INTEGER},
create_date= #{deviceMeasuringPoint.createDate,jdbcType=TIMESTAMP},
create_by= #{deviceMeasuringPoint.createBy,jdbcType=VARCHAR},
update_date= #{deviceMeasuringPoint.updateDate,jdbcType=TIMESTAMP},
update_by= #{deviceMeasuringPoint.updateBy,jdbcType=VARCHAR}
WHERE id = #{deviceMeasuringPoint.id,jdbcType=INTEGER}