A.snapshot_id,
        A.snapshot_title,
        A.snapshot_remark,
        A.status,
        A.submit_group_id,
        B.group_name    AS submit_group_name,
        A.submit_account_id,
        C.account_name  AS submit_account_name,
        A.submit_time,
        A.handle_group_id,
        D.group_name    AS handle_group_name,
        A.handle_account_id,
        E.account_name  AS handle_account_name,
        A.handle_time,
        N.file_url,
        A.created_by,
        A.created_at,
        A.updated_by,
        A.updated_at
    
    
    
    
    
    
    
    
    
        INSERT INTO snapshot
        
            
                snapshot_id,
            
            
                snapshot_title,
            
            
                snapshot_remark,
            
            
                submit_group_id,
            
            
                status,
            
            
                submit_account_id,
            
            
                submit_time,
            
            
                handle_group_id,
            
            
                handle_account_id,
            
            
                handle_time,
            
            
                created_by,
            
            
                created_at,
            
        
        
            
                #{snapshotId,jdbcType=BIGINT},
            
            
                #{snapshotTitle,jdbcType=VARCHAR},
            
            
                #{snapshotRemark,jdbcType=VARCHAR},
            
            
                #{status ,jdbcType=BIGINT},
            
            
                #{submitGroupId,jdbcType=BIGINT},
            
            
                #{submitAccountId,jdbcType=BIGINT},
            
            
                #{submitTime ,jdbcType=TIMESTAMP},
            
            
                #{handleGroupId ,jdbcType=BIGINT},
            
            
                #{handleAccountId ,jdbcType=BIGINT},
            
            
                #{handleTime ,jdbcType=TIMESTAMP},
            
            
                #{createdBy,jdbcType=BIGINT},
            
            
                #{createdAt,jdbcType=DATE},
            
        
    
    
    
        UPDATE snapshot
        
            
                
                    snapshot_title   = #{snapshotTitle,jdbcType=VARCHAR},
                
                
                    snapshot_remark   = #{snapshotRemark,jdbcType=VARCHAR},
                
                
                    status  = #{status ,jdbcType=BIGINT},
                
                
                    handle_group_id = #{handleGroupId,jdbcType=BIGINT},
                
                
                    handle_account_id = #{handleAccountId,jdbcType=BIGINT},
                
                
                    handle_time = #{handleTime ,jdbcType=TIMESTAMP},
                
                
                    updated_by     = #{updatedBy,jdbcType=BIGINT},
                
                
                    updated_at    = #{updatedAt,jdbcType=DATE},
                
            
        
        WHERE snapshot_id = #{snapshotId,  jdbcType=BIGINT}
    
    
    
        UPDATE snapshot
        
            
                
                    deleted_by    = #{deletedBy ,jdbcType=BIGINT},
                
                
                    deleted_at    = #{deletedAt ,jdbcType=DATE},
                
                
                    deleted_flag  = #{deletedFlag ,jdbcType=BIGINT},
                
            
        
        WHERE snapshot_id = #{snapshotId,  jdbcType=BIGINT}