cast(( (filling_check_id IS NOT NULL ) + (within_scope IS NOT NULL ) + (sealed_state IS NOT NULL ) + (defective IS NOT NULL ) + (abnormal_temperature IS NOT NULL ) + (warning_sign IS NOT NULL ) + (compliance IS NOT NULL ) + (inspector IS NOT NULL ) + (inspection_date IS NOT NULL ) + (check_results IS NOT NULL ) + (nonconformances IS NOT NULL ))/ 11 as DECIMAL(10,2)) integrity
FROM
tm_cylinder_filling_check cfc
WHERE cfc.sync_state != 3 and filling_check_id is not null and filling_check_id != ''
limit 1000
</select>
<updateid="updateFillingCheckBatch">
update tm_cylinder_filling_check set sync_state = 3