A.oc_id,
        A.group_id,
        B.group_name,
        A.position_id,
        C.position_name,
        A.account_id,
        D.account_name,
        D.account_real_name,
        D.account_avatar,
        A.record_id,
        A.target_oc_id,
        A.event,
        A.story_id,
        A.target_id,
        A.item_id,
        A.point_id,
        A.score,
        A.assess_time,
        A.remark
    
    
    
    
    
    
    
    
        INSERT INTO hos_assess_record
        
            
                oc_id,
            
            
                group_id,
            
            
                position_id,
            
            
                account_id,
            
            
                record_id,
            
            
                event,
            
            
                target_oc_id,
            
            
                story_id,
            
            
                target_id,
            
            
                item_id,
            
            
                point_id,
            
            
                score,
            
            
                assess_time,
            
            
                remark,
            
            
                created_by,
            
            
                created_at,
            
        
        
            
                #{ocId,jdbcType=BIGINT},
            
            
                #{groupId, jdbcType=BIGINT},
            
            
                #{positionId, jdbcType=BIGINT},
            
            
                #{accountId, jdbcType=BIGINT},
            
            
                #{recordId, jdbcType=BIGINT},
            
            
                #{event, jdbcType=VARCHAR},
            
            
                #{targetOcId, jdbcType=BIGINT},
            
            
                #{storyId ,jdbcType=BIGINT},
            
            
                #{targetId ,jdbcType=BIGINT},
            
            
                #{itemId ,jdbcType=BIGINT},
            
            
                #{pointId ,jdbcType=BIGINT},
            
            
                #{score ,jdbcType=DOUBLE},
            
            
                #{assessTime ,jdbcType=TIMESTAMP},
            
            
                #{remark ,jdbcType=VARCHAR},
            
            
                #{createdBy ,jdbcType=BIGINT},
            
            
                #{createdAt ,jdbcType=TIMESTAMP},
            
        
    
    
    
        UPDATE hos_assess_record
        
            
                
                   group_id = #{groupId, jdbcType=BIGINT},
                
                
                   position_id = #{positionId, jdbcType=BIGINT},
                
                
                   account_id = #{accountId, jdbcType=BIGINT},
                
                
                   event =  #{event, jdbcType=VARCHAR},
                
                
                  target_oc_id =  #{targetOcId, jdbcType=BIGINT},
                
                
                   story_id = #{storyId ,jdbcType=BIGINT},
                
                
                   target_id = #{targetId ,jdbcType=BIGINT},
                
                
                   item_id = #{itemId ,jdbcType=BIGINT},
                
                
                   point_id = #{pointId ,jdbcType=BIGINT},
                
                
                   score = #{score ,jdbcType=DOUBLE},
                
                
                   assess_time = #{assessTime ,jdbcType=TIMESTAMP},
                
                
                   remark = #{remark ,jdbcType=VARCHAR},
                
                
                    updated_by = #{updatedBy ,jdbcType=BIGINT},
                
                
                    updated_at = #{updatedAt ,jdbcType=TIMESTAMP},
                
            
        
        WHERE 1 = 1
        
            AND oc_id = #{ocId ,jdbcType=BIGINT}
        
        
            AND record_id = #{recordId ,jdbcType=BIGINT}
        
    
    
    
        DELETE FROM hos_assess_record
        WHERE 1 = 1
        
            AND oc_id = #{ocId ,jdbcType=BIGINT}
        
        
            AND year(assess_time) = #{year, jdbcType=BIGINT}
        
        
            AND month(assess_time) = #{month, jdbcType=BIGINT}
        
        
            AND record_id = #{recordId ,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}