id, site_id, instance_id, plan_id, object_id, index_id, index_value, status, date_create, date_update, create_by, update_by, object_result_id, index_name, index_type, index_definition_value INSERT INTO sc_inspection_result ( id, site_id, instance_id, plan_id, object_id, index_id, index_value, status, date_create, date_update, create_by, update_by, object_result_id, index_name, index_type, index_definition_value ) VALUES ( #{inspectionResult.id,jdbcType=INTEGER}, #{inspectionResult.siteId,jdbcType=INTEGER}, #{inspectionResult.instanceId,jdbcType=INTEGER}, #{inspectionResult.planId,jdbcType=INTEGER}, #{inspectionResult.objectId,jdbcType=INTEGER}, #{inspectionResult.indexId,jdbcType=INTEGER}, #{inspectionResult.indexValue,jdbcType=VARCHAR}, #{inspectionResult.status,jdbcType=INTEGER}, #{inspectionResult.dateCreate,jdbcType=TIMESTAMP}, #{inspectionResult.dateUpdate,jdbcType=TIMESTAMP}, #{inspectionResult.createBy,jdbcType=VARCHAR}, #{inspectionResult.updateBy,jdbcType=VARCHAR}, #{inspectionResult.objectResultId,jdbcType=INTEGER}, #{inspectionResult.indexName,jdbcType=VARCHAR}, #{inspectionResult.indexType,jdbcType=INTEGER}, #{inspectionResult.indexDefinitionValue,jdbcType=VARCHAR} ) INSERT INTO sc_inspection_result id, site_id, instance_id, plan_id, object_id, index_id, index_value, status, date_create, date_update, create_by, update_by, object_result_id, index_name, index_type, index_definition_value VALUES #{inspectionResult.id,jdbcType=INTEGER}, #{inspectionResult.siteId,jdbcType=INTEGER}, #{inspectionResult.instanceId,jdbcType=INTEGER}, #{inspectionResult.planId,jdbcType=INTEGER}, #{inspectionResult.objectId,jdbcType=INTEGER}, #{inspectionResult.indexId,jdbcType=INTEGER}, #{inspectionResult.indexValue,jdbcType=VARCHAR}, #{inspectionResult.status,jdbcType=INTEGER}, #{inspectionResult.dateCreate,jdbcType=TIMESTAMP}, #{inspectionResult.dateUpdate,jdbcType=TIMESTAMP}, #{inspectionResult.createBy,jdbcType=VARCHAR}, #{inspectionResult.updateBy,jdbcType=VARCHAR}, #{inspectionResult.objectResultId,jdbcType=INTEGER}, #{inspectionResult.indexName,jdbcType=VARCHAR}, #{inspectionResult.indexType,jdbcType=INTEGER}, #{inspectionResult.indexDefinitionValue,jdbcType=VARCHAR} INSERT INTO sc_inspection_result( id, site_id, instance_id, plan_id, object_id, index_id, index_value, status, date_create, date_update, create_by, update_by, object_result_id, index_name, index_type, index_definition_value )VALUES ( #{inspectionResult.id,jdbcType=INTEGER}, #{inspectionResult.siteId,jdbcType=INTEGER}, #{inspectionResult.instanceId,jdbcType=INTEGER}, #{inspectionResult.planId,jdbcType=INTEGER}, #{inspectionResult.objectId,jdbcType=INTEGER}, #{inspectionResult.indexId,jdbcType=INTEGER}, #{inspectionResult.indexValue,jdbcType=VARCHAR}, #{inspectionResult.status,jdbcType=INTEGER}, #{inspectionResult.dateCreate,jdbcType=TIMESTAMP}, #{inspectionResult.dateUpdate,jdbcType=TIMESTAMP}, #{inspectionResult.createBy,jdbcType=VARCHAR}, #{inspectionResult.updateBy,jdbcType=VARCHAR}, #{inspectionResult.objectResultId,jdbcType=INTEGER}, #{inspectionResult.indexName,jdbcType=VARCHAR}, #{inspectionResult.indexType,jdbcType=INTEGER}, #{inspectionResult.indexDefinitionValue,jdbcType=VARCHAR} ) UPDATE sc_inspection_result id = #{inspectionResult.id,jdbcType=INTEGER}, site_id = #{inspectionResult.siteId,jdbcType=INTEGER}, instance_id = #{inspectionResult.instanceId,jdbcType=INTEGER}, plan_id = #{inspectionResult.planId,jdbcType=INTEGER}, object_id = #{inspectionResult.objectId,jdbcType=INTEGER}, index_id = #{inspectionResult.indexId,jdbcType=INTEGER}, index_value = #{inspectionResult.indexValue,jdbcType=VARCHAR}, status = #{inspectionResult.status,jdbcType=INTEGER}, date_create = #{inspectionResult.dateCreate,jdbcType=TIMESTAMP}, date_update = #{inspectionResult.dateUpdate,jdbcType=TIMESTAMP}, create_by = #{inspectionResult.createBy,jdbcType=VARCHAR}, update_by = #{inspectionResult.updateBy,jdbcType=VARCHAR}, object_result_id = #{inspectionResult.objectResultId,jdbcType=INTEGER}, index_name = #{inspectionResult.indexName,jdbcType=VARCHAR}, index_type = #{inspectionResult.indexType,jdbcType=INTEGER}, index_definition_value = #{inspectionResult.indexDefinitionValue,jdbcType=VARCHAR} WHERE id = #{inspectionResult.id,jdbcType=INTEGER}