id, read_date, site_id, sys_id, province, city, region, community, customer_id, concentrator_id, collector_id, building_id, `location`, device_type_id, device_id, device_no, meter_no, meter_file_no, read_time, read_status, read_data, last_valid, last_cost, `status`, date_create, date_update, create_by, update_by delete from sc_meter_read_record where id = #{id,jdbcType=BIGINT} insert into sc_meter_read_record (id, read_date, site_id, sys_id, province, city, region, community, customer_id, concentrator_id, collector_id, building_id, `location`, device_type_id, device_id, device_no, meter_no, meter_file_no, read_time, read_status, read_data, last_valid, last_cost, `status`, date_create, date_update, create_by, update_by) values (#{id,jdbcType=BIGINT}, #{readDate,jdbcType=INTEGER}, #{siteId,jdbcType=INTEGER}, #{sysId,jdbcType=INTEGER}, #{province,jdbcType=INTEGER}, #{city,jdbcType=INTEGER}, #{region,jdbcType=INTEGER}, #{community,jdbcType=INTEGER}, #{customerId,jdbcType=INTEGER}, #{concentratorId,jdbcType=INTEGER}, #{collectorId,jdbcType=INTEGER}, #{buildingId,jdbcType=INTEGER}, #{location,jdbcType=VARCHAR}, #{deviceTypeId,jdbcType=INTEGER}, #{deviceId,jdbcType=BIGINT}, #{deviceNo,jdbcType=VARCHAR}, #{meterNo,jdbcType=VARCHAR}, #{meterFileNo,jdbcType=VARCHAR}, #{readTime,jdbcType=TIMESTAMP}, #{readStatus,jdbcType=VARCHAR}, #{readData,jdbcType=VARCHAR}, #{lastValid,jdbcType=VARCHAR}, #{lastCost,jdbcType=DECIMAL}, #{status,jdbcType=INTEGER}, #{dateCreate,jdbcType=TIMESTAMP}, #{dateUpdate,jdbcType=TIMESTAMP}, #{createBy,jdbcType=VARCHAR}, #{updateBy,jdbcType=VARCHAR}) insert into sc_meter_read_record id, read_date, site_id, sys_id, province, city, region, community, customer_id, concentrator_id, collector_id, building_id, `location`, device_type_id, device_id, device_no, meter_no, meter_file_no, read_time, read_status, read_data, last_valid, last_cost, `status`, date_create, date_update, create_by, update_by, #{id,jdbcType=BIGINT}, #{readDate,jdbcType=INTEGER}, #{siteId,jdbcType=INTEGER}, #{sysId,jdbcType=INTEGER}, #{province,jdbcType=INTEGER}, #{city,jdbcType=INTEGER}, #{region,jdbcType=INTEGER}, #{community,jdbcType=INTEGER}, #{customerId,jdbcType=INTEGER}, #{concentratorId,jdbcType=INTEGER}, #{collectorId,jdbcType=INTEGER}, #{buildingId,jdbcType=INTEGER}, #{location,jdbcType=VARCHAR}, #{deviceTypeId,jdbcType=INTEGER}, #{deviceId,jdbcType=BIGINT}, #{deviceNo,jdbcType=VARCHAR}, #{meterNo,jdbcType=VARCHAR}, #{meterFileNo,jdbcType=VARCHAR}, #{readTime,jdbcType=TIMESTAMP}, #{readStatus,jdbcType=VARCHAR}, #{readData,jdbcType=VARCHAR}, #{lastValid,jdbcType=VARCHAR}, #{lastCost,jdbcType=DECIMAL}, #{status,jdbcType=INTEGER}, #{dateCreate,jdbcType=TIMESTAMP}, #{dateUpdate,jdbcType=TIMESTAMP}, #{createBy,jdbcType=VARCHAR}, #{updateBy,jdbcType=VARCHAR}, update sc_meter_read_record read_date = #{readDate,jdbcType=INTEGER}, site_id = #{siteId,jdbcType=INTEGER}, sys_id = #{sysId,jdbcType=INTEGER}, province = #{province,jdbcType=INTEGER}, city = #{city,jdbcType=INTEGER}, region = #{region,jdbcType=INTEGER}, community = #{community,jdbcType=INTEGER}, customer_id = #{customerId,jdbcType=INTEGER}, concentrator_id = #{concentratorId,jdbcType=INTEGER}, collector_id = #{collectorId,jdbcType=INTEGER}, building_id = #{buildingId,jdbcType=INTEGER}, `location` = #{location,jdbcType=VARCHAR}, device_type_id = #{deviceTypeId,jdbcType=INTEGER}, device_id = #{deviceId,jdbcType=BIGINT}, device_no = #{deviceNo,jdbcType=VARCHAR}, meter_no = #{meterNo,jdbcType=VARCHAR}, meter_file_no = #{meterFileNo,jdbcType=VARCHAR}, read_time = #{readTime,jdbcType=TIMESTAMP}, read_status = #{readStatus,jdbcType=VARCHAR}, read_data = #{readData,jdbcType=VARCHAR}, last_valid = #{lastValid,jdbcType=VARCHAR}, last_cost = #{lastCost,jdbcType=DECIMAL}, `status` = #{status,jdbcType=INTEGER}, date_create = #{dateCreate,jdbcType=TIMESTAMP}, date_update = #{dateUpdate,jdbcType=TIMESTAMP}, create_by = #{createBy,jdbcType=VARCHAR}, update_by = #{updateBy,jdbcType=VARCHAR}, where id = #{id,jdbcType=BIGINT} update sc_meter_read_record set read_date = #{readDate,jdbcType=INTEGER}, site_id = #{siteId,jdbcType=INTEGER}, sys_id = #{sysId,jdbcType=INTEGER}, province = #{province,jdbcType=INTEGER}, city = #{city,jdbcType=INTEGER}, region = #{region,jdbcType=INTEGER}, community = #{community,jdbcType=INTEGER}, customer_id = #{customerId,jdbcType=INTEGER}, concentrator_id = #{concentratorId,jdbcType=INTEGER}, collector_id = #{collectorId,jdbcType=INTEGER}, building_id = #{buildingId,jdbcType=INTEGER}, `location` = #{location,jdbcType=VARCHAR}, device_type_id = #{deviceTypeId,jdbcType=INTEGER}, device_id = #{deviceId,jdbcType=BIGINT}, device_no = #{deviceNo,jdbcType=VARCHAR}, meter_no = #{meterNo,jdbcType=VARCHAR}, meter_file_no = #{meterFileNo,jdbcType=VARCHAR}, read_time = #{readTime,jdbcType=TIMESTAMP}, read_status = #{readStatus,jdbcType=VARCHAR}, read_data = #{readData,jdbcType=VARCHAR}, last_valid = #{lastValid,jdbcType=VARCHAR}, last_cost = #{lastCost,jdbcType=DECIMAL}, `status` = #{status,jdbcType=INTEGER}, date_create = #{dateCreate,jdbcType=TIMESTAMP}, date_update = #{dateUpdate,jdbcType=TIMESTAMP}, create_by = #{createBy,jdbcType=VARCHAR}, update_by = #{updateBy,jdbcType=VARCHAR} where id = #{id,jdbcType=BIGINT} replace into sc_meter_read_record (id, read_date, site_id, sys_id, province, city, region, community, customer_id, concentrator_id, collector_id, building_id, `location`, device_type_id, device_id, device_no, meter_no, meter_file_no, read_time, read_status, read_data, last_valid, last_cost, `status`, date_create, date_update, create_by, update_by) values (#{item.id,jdbcType=BIGINT}, #{item.readDate,jdbcType=INTEGER}, #{item.siteId,jdbcType=INTEGER}, #{item.sysId,jdbcType=INTEGER}, #{item.province,jdbcType=INTEGER}, #{item.city,jdbcType=INTEGER}, #{item.region,jdbcType=INTEGER}, #{item.community,jdbcType=INTEGER}, #{item.customerId,jdbcType=INTEGER}, #{item.concentratorId,jdbcType=INTEGER}, #{item.collectorId,jdbcType=INTEGER}, #{item.buildingId,jdbcType=INTEGER}, #{item.location,jdbcType=VARCHAR}, #{item.deviceTypeId,jdbcType=INTEGER}, #{item.deviceId,jdbcType=BIGINT}, #{item.deviceNo,jdbcType=VARCHAR}, #{item.meterNo,jdbcType=VARCHAR}, #{item.meterFileNo,jdbcType=VARCHAR}, #{item.readTime,jdbcType=TIMESTAMP}, #{item.readStatus,jdbcType=VARCHAR}, #{item.readData,jdbcType=VARCHAR}, #{item.lastValid,jdbcType=VARCHAR}, #{item.lastCost,jdbcType=DECIMAL}, #{item.status,jdbcType=INTEGER}, #{item.dateCreate,jdbcType=TIMESTAMP}, #{item.dateUpdate,jdbcType=TIMESTAMP}, #{item.createBy,jdbcType=VARCHAR}, #{item.updateBy,jdbcType=VARCHAR}) update sc_meter_read_record set status = 0 where read_date = #{readDate,jdbcType=INTEGER} and device_id = #{deviceId,jdbcType=BIGINT}