INSERT INTO hos_assess_month_record
        
            
                oc_id,
            
            
                story_id,
            
            
                target_id,
            
            
                item_id,
            
            
                point_id,
            
            
                record_id,
            
            
                year,
            
            
                month,
            
            
                nhc_score,
            
            
                hos_score,
            
            
                created_by,
            
            
                created_at,
            
        
        
            
                #{ocId,jdbcType=BIGINT},
            
            
                #{storyId ,jdbcType=BIGINT},
            
            
                #{targetId ,jdbcType=BIGINT},
            
            
                #{itemId ,jdbcType=BIGINT},
            
            
                #{pointId ,jdbcType=BIGINT},
            
            
                #{recordId ,jdbcType=BIGINT},
            
            
                #{year ,jdbcType=BIGINT},
            
            
                #{month ,jdbcType=BIGINT},
            
            
                #{nhcScore ,jdbcType=DOUBLE},
            
            
                #{hosScore ,jdbcType=DOUBLE},
            
            
                #{createdBy ,jdbcType=BIGINT},
            
            
                #{createdAt ,jdbcType=TIMESTAMP},
            
        
    
    
    
        UPDATE hos_assess_month_record
        
            
                
                    record_id = #{recordId ,jdbcType=BIGINT},
                
                
                    nhc_score = #{nhcScore ,jdbcType=DOUBLE},
                
                
                    hos_score = #{hosScore ,jdbcType=DOUBLE},
                
                
                    updated_by = #{updatedBy ,jdbcType=BIGINT},
                
                
                    updated_at = #{updatedAt ,jdbcType=TIMESTAMP},
                
            
        
        WHERE oc_id     = #{ocId ,jdbcType=BIGINT}
        AND   story_id  = #{storyId, jdbcType=BIGINT}
        AND   target_id = #{targetId, jdbcType=BIGINT}
        AND   item_id   = #{itemId, jdbcType=BIGINT}
        AND   point_id  = #{pointId, jdbcType=BIGINT}
        AND   year      = #{year, jdbcType=BIGINT}
        AND   month     = #{month, jdbcType=BIGINT}
    
    
    
        DELETE FROM hos_assess_month_record
        WHERE oc_id = #{ocId ,jdbcType=BIGINT}
        
            AND story_id = #{storyId ,jdbcType=BIGINT}
        
        
            AND target_id = #{targetId ,jdbcType=BIGINT}
        
        
            AND item_id = #{itemId ,jdbcType=BIGINT}
        
        
            AND point_id = #{pointId ,jdbcType=BIGINT}
        
        
           AND record_id = #{recordId ,jdbcType=BIGINT}
        
        
            AND year = #{year ,jdbcType=BIGINT}
        
        
            AND month = #{month ,jdbcType=BIGINT}